/*
 RequireJS text 0.24.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
 RequireJS i18n 0.24.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
*/
(function(){function b(a,d,e){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var g=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"],j=0,h;h=g[j++];)console[h]||function(){var n=h+"";console[n]="log"in console?function(){var o=Array.apply({},arguments);o.unshift(n+":");console.log(o.join(" "))}:function(){};console[n]._fake=true}()}if(typeof a==
"undefined")a={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};var k=a;if(typeof d=="undefined")d={_scopeName:"dijit"};if(typeof e=="undefined")e={_scopeName:"dojox"};if(!k._scopeArgs)k._scopeArgs=[a,d,e];k.global=this;k.config={isDebug:false,debugAtAllCosts:false};if(g=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var f in g)k.config[f]=g[f];a.locale=k.config.locale;f="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:f?+f[0]:NaN,toString:function(){with(k.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",k.version.toString());var l,m,r={};for(j in{toString:1}){l=[];break}a._extraNames=l=l||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];m=l.length;a._mixin=function(n,o){var p,s,q;for(p in o){s=o[p];
if(!(p in n)||n[p]!==s&&(!(p in r)||r[p]!==s))n[p]=s}if(m&&o)for(q=0;q<m;++q){p=l[q];s=o[p];if(!(p in n)||n[p]!==s&&(!(p in r)||r[p]!==s))n[p]=s}return n};a.mixin=function(n){n||(n={});for(var o=1,p=arguments.length;o<p;o++)k._mixin(n,arguments[o]);return n};a._getProp=function(n,o,p){p=p||k.global;for(var s=0,q;p&&(q=n[s]);s++){if(s==0&&k._scopeMap[q])q=k._scopeMap[q];p=q in p?p[q]:o?(p[q]={}):undefined}return p};a.setObject=function(n,o,p){var s=n.split(".");n=s.pop();return(p=k._getProp(s,true,
p))&&n?(p[n]=o):undefined};a.getObject=function(n,o,p){return k._getProp(n.split("."),o,p)};a.exists=function(n,o){return k.getObject(n,false,o)!==undefined};a.eval=function(n){return k.global.eval?k.global.eval(n):eval(n)};k.deprecated=k.experimental=function(){}})();return{dojo:a,dijit:d,dojox:e}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=b();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var c=b();dojo=c.dojo;dijit=c.dijit;dojox=c.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(b,c){var a=["_moduleHasPrefix","_loadPath","_loadUri","_loadUriAndCheck","loaded","_callLoaded","_getModuleSymbols","_loadModule","require","provide","platformRequire","requireIf","requireAfterIf","registerModulePath"],d,e;for(d=0;d<a.length;){e=a[d++];c[e]=function(n){return function(){console.warn("dojo."+n+" not available when using an AMD loader.")}}(e)}var g=function(n){var o=[],p;for(p=0;p<n.length;)o.push(n[p++]);
return o},j=function(n,o){return o?typeof o=="string"?function(){n[o]()}:function(){o.call(n)}:n};c.ready=c.addOnLoad=function(n,o){b.ready(o?j(n,o):n)};c.addOnLoad(function(){c.postLoad=c.config.afterOnLoad=true});if(a=c.config.addOnLoad)c.addOnLoad[a instanceof Array?"apply":"call"](c,a);var h=c._loaders=[],k=function(){var n=h.slice(0);for(Array.prototype.splice.apply(h,[0,h.length]);n.length;)n.shift().call()};h.unshift=function(){Array.prototype.unshift.apply(h,g(arguments));b.ready(k)};h.splice=
function(){Array.prototype.splice.apply(h,g(arguments));b.ready(k)};var f=c._unloaders=[];c.unloaded=function(){for(;f.length;)f.pop().call()};c._onto=function(n,o,p){n.push(p?j(o,p):o)};c._modulesLoaded=function(){};c.loadInit=function(n){n()};var l=function(n){return n.replace(/\./g,"/")};c.getL10nName=function(n,o,p){p=p?p.toLowerCase():c.locale;n="i18n!"+l(n);return/root/i.test(p)?n+"/nls/"+o:n+"/nls/"+p+"/"+o};c.requireLocalization=function(n,o,p){if(b.vendor!="altoviso.com")p=!p||p.toLowerCase()===
c.locale?"root":p;return b(c.getL10nName(n,o,p))};c.i18n={getLocalization:c.requireLocalization,normalizeLocale:function(n){n=n?n.toLowerCase():c.locale;if(n=="root")n="ROOT";return n}};var m=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,r=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;c._Url=function(){for(var n=arguments,o=[n[0]],p=1;p<n.length;p++)if(n[p]){var s=new c._Url(n[p]+"");o=new c._Url(o[0]+"");if(s.path==""&&!s.scheme&&!s.authority&&!s.query){if(s.fragment!=
null)o.fragment=s.fragment;s=o}else if(!s.scheme){s.scheme=o.scheme;if(!s.authority){s.authority=o.authority;if(s.path.charAt(0)!="/"){o=(o.path.substring(0,o.path.lastIndexOf("/")+1)+s.path).split("/");for(var q=0;q<o.length;q++)if(o[q]==".")if(q==o.length-1)o[q]="";else{o.splice(q,1);q--}else if(q>0&&!(q==1&&o[0]=="")&&o[q]==".."&&o[q-1]!="..")if(q==o.length-1){o.splice(q,1);o[q-1]=""}else{o.splice(q-1,2);q-=2}s.path=o.join("/")}}}o=[];s.scheme&&o.push(s.scheme,":");s.authority&&o.push("//",s.authority);
o.push(s.path);s.query&&o.push("?",s.query);s.fragment&&o.push("#",s.fragment)}this.uri=o.join("");p=this.uri.match(m);this.scheme=p[2]||(p[1]?"":null);this.authority=p[4]||(p[3]?"":null);this.path=p[5];this.query=p[7]||(p[6]?"":null);this.fragment=p[9]||(p[8]?"":null);if(this.authority!=null){p=this.authority.match(r);this.user=p[3]||null;this.password=p[4]||null;this.host=p[6]||p[7];this.port=p[9]||null}};c._Url.prototype.toString=function(){return this.uri};c.moduleUrl=function(n,o){if(!n)return null;
n=l(n)+(o?"/"+o:"");o="";var p=n.match(/(.+)(\.[^\/]*)$/);if(p){n=p[1];o=p[2]}return new c._Url(b.nameToUrl(n,o))};return c});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=true;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var d=document.getElementsByTagName("script"),e=/dojo(\.xd)?\.js(\W|$)/i,g=0;g<d.length;g++){var j=d[g].getAttribute("src");if(j){var h=j.match(e);if(h){if(!a.config.baseUrl)a.config.baseUrl=j.substring(0,h.index);if(d=d[g].getAttribute("djConfig")||d[g].getAttribute("data-dojo-config")){d=
eval("({ "+d+" })");for(var k in d)b.config[k]=d[k]}break}}}a.baseUrl=a.config.baseUrl;k=navigator;d=k.userAgent;e=k.appVersion;g=parseFloat(e);if(d.indexOf("Opera")>=0)a.isOpera=g;if(d.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=e.indexOf("Konqueror")>=0?g:0;a.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined;a.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;a.isMac=e.indexOf("Macintosh")>=0;if((j=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!b.isChrome){a.isSafari=parseFloat(e.split("Version/")[1]);
if(!a.isSafari||parseFloat(e.substr(j+7))<=419.3)a.isSafari=2}if(d.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=g;if(a.isMoz)a.isFF=parseFloat(d.split("Firefox/")[1]||d.split("Minefield/")[1])||undefined;if(document.all&&!a.isOpera){a.isIE=parseFloat(e.split("MSIE ")[1])||undefined;if((d=document.documentMode)&&d!=5&&Math.floor(a.isIE)!=d)a.isIE=d}if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=true;a.isQuirks=document.compatMode=="BackCompat";a.locale=
b.config.locale||(a.isIE?k.userLanguage:k.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var p,s;if(!b.isIE||!b.config.ieForceActiveXXhr)try{p=new XMLHttpRequest}catch(q){}if(!p)for(var u=0;u<3;++u){var y=a._XMLHTTP_PROGIDS[u];try{p=new ActiveXObject(y)}catch(C){s=C}if(p){a._XMLHTTP_PROGIDS=[y];break}}if(!p)throw new Error("XMLHTTP not available: "+s);return p};a._isDocumentOk=function(p){p=p.status||0;var s=location.protocol;
return p>=200&&p<300||p==304||p==1223||!p&&(s=="file:"||s=="chrome:"||s=="chrome-extension:"||s=="app:")};var f=window.location+"";var l=(k=document.getElementsByTagName("base"))&&k.length>0;a._getText=function(p,s){var q=a._xhrObj();if(!l&&b._Url)p=(new b._Url(f,p)).toString();if(a.config.cacheBust){p+="";p+=(p.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}q.open("GET",p,false);try{q.send(null);if(!a._isDocumentOk(q)){var u=Error("Unable to load "+p+" status:"+q.status);
u.status=q.status;u.responseText=q.responseText;throw u;}}catch(y){if(s)return null;throw y;}return q.responseText};var m=window,r=function(p,s){var q=m.attachEvent||m.addEventListener;p=m.attachEvent?p:p.substring(2);q(p,function(){s.apply(m,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var p=a._windowUnloaders;p.length;)p.pop()();a=null};var n=0;a.addOnWindowUnload=function(p,s){a._onto(a._windowUnloaders,p,s);if(!n){n=1;r("onunload",a.windowUnloaded)}};var o=0;a.addOnUnload=
function(p,s){a._onto(a._unloaders,p,s);if(!o){o=1;r("onbeforeunload",b.unloaded)}}})();b._initFired=false;b._loadInit=function(){if(b._scrollIntervalId){clearInterval(b._scrollIntervalId);b._scrollIntervalId=0}if(!b._initFired){b._initFired=true;!b.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",b._loadInit);b._inFlightCount==0&&b._modulesLoaded()}};if(!b.config.afterOnLoad)if(document.addEventListener){document.addEventListener("DOMContentLoaded",b._loadInit,false);window.addEventListener("load",
b._loadInit,false)}else if(window.attachEvent){window.attachEvent("onload",b._loadInit);if(!b.config.skipIeDomLoaded&&self===self.top)b._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");b._loadInit()}}catch(a){}},30)}if(b.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],d=0,e=1,g=document.createStyleSheet();if(b.isIE>=8){d=
1;e=a.length}for(;d<e;++d)g.addRule("v\\:"+a[d],"behavior:url(#default#VML); display:inline-block")})()}catch(c){}}(function(){var a=b.config.modulePaths;if(a)for(var d in a)b.registerModulePath(d,a[d])})();b.config.isDebug&&b.require("dojo._firebug.firebug");if(b.config.debugAtAllCosts){b.require("dojo._base._loader.loader_debug");b.require("dojo.i18n")}return b});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(b){return dojo=b});
define("dojo/_base/lang",["dojo/lib/kernel"],function(b){(function(){var c=Object.prototype.toString;b.isString=function(k){return typeof k=="string"||k instanceof String};b.isArray=function(k){return k&&(k instanceof Array||typeof k=="array")};b.isFunction=function(k){return c.call(k)==="[object Function]"};b.isObject=function(k){return k!==undefined&&(k===null||typeof k=="object"||b.isArray(k)||b.isFunction(k))};b.isArrayLike=function(k){return k&&k!==undefined&&!b.isString(k)&&!b.isFunction(k)&&
!(k.tagName&&k.tagName.toLowerCase()=="form")&&(b.isArray(k)||isFinite(k.length))};b.isAlien=function(k){return k&&!b.isFunction(k)&&/\{\s*\[native code\]\s*\}/.test(String(k))};b.extend=function(k){for(var f=1,l=arguments.length;f<l;f++)b._mixin(k.prototype,arguments[f]);return k};b._hitchArgs=function(k,f){var l=b._toArray(arguments,2),m=b.isString(f);return function(){var r=b._toArray(arguments),n=m?(k||b.global)[f]:f;return n&&n.apply(k||this,l.concat(r))}};b.hitch=function(k,f){if(arguments.length>
2)return b._hitchArgs.apply(b,arguments);if(!f){f=k;k=null}if(b.isString(f)){k=k||b.global;if(!k[f])throw['dojo.hitch: scope["',f,'"] is null (scope="',k,'")'].join("");return function(){return k[f].apply(k,arguments||[])}}return!k?f:function(){return f.apply(k,arguments||[])}};b.delegate=b._delegate=function(){function k(){}return function(f,l){k.prototype=f;f=new k;k.prototype=null;l&&b._mixin(f,l);return f}}();var a=function(k,f,l){return(l||[]).concat(Array.prototype.slice.call(k,f||0))},d=function(k,
f,l){l=l||[];for(f=f||0;f<k.length;f++)l.push(k[f]);return l};b._toArray=b.isIE?function(k){return(k.item?d:a).apply(this,arguments)}:a;b.partial=function(){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var e=b._extraNames,g=e.length,j={};b.clone=function(k){if(!k||typeof k!="object"||b.isFunction(k))return k;if(k.nodeType&&"cloneNode"in k)return k.cloneNode(true);if(k instanceof Date)return new Date(k.getTime());if(k instanceof RegExp)return new RegExp(k);var f,l,m,r;if(b.isArray(k)){f=
[];l=0;for(m=k.length;l<m;++l)l in k&&f.push(b.clone(k[l]))}else f=k.constructor?new k.constructor:{};for(r in k){m=k[r];if(!(r in f)||f[r]!==m&&(!(r in j)||j[r]!==m))f[r]=b.clone(m)}if(g)for(l=0;l<g;++l){r=e[l];m=k[r];if(!(r in f)||f[r]!==m&&(!(r in j)||j[r]!==m))f[r]=m}return f};b.trim=String.prototype.trim?function(k){return k.trim()}:function(k){return k.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(k,f,l){return k.replace(l||h,b.isFunction(f)?f:function(m,
r){return b.getObject(r,false,f)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var c=function(d,e,g){return[typeof d=="string"?d.split(""):d,e||b.global,typeof g=="string"?new Function("item","index","array",g):g]},a=function(d,e,g,j){var h=c(e,j,g);e=h[0];g=0;for(j=e.length;g<j;++g){var k=!!h[2].call(h[1],e[g],g,e);if(d^k)return k}return d};b.mixin(b,{indexOf:function(d,e,g,j){var h=1,k=d.length||0,f=0;if(j){f=k-1;h=k=-1}if(g!=undefined)f=g;if(j&&f>k||f<k)for(;f!=k;f+=h)if(d[f]==e)return f;
return-1},lastIndexOf:function(d,e,g){return b.indexOf(d,e,g,true)},forEach:function(d,e,g){if(d&&d.length){var j=c(d,g,e);d=j[0];e=0;for(g=d.length;e<g;++e)j[2].call(j[1],d[e],e,d)}},every:function(d,e,g){return a(true,d,e,g)},some:function(d,e,g){return a(false,d,e,g)},map:function(d,e,g,j){var h=c(d,g,e);d=h[0];e=j?new j:[];g=0;for(j=d.length;g<j;++g)e.push(h[2].call(h[1],d[g],g,d));return e},filter:function(d,e,g){var j=c(d,g,e);d=j[0];e=[];g=0;for(var h=d.length;g<h;++g)j[2].call(j[1],d[g],g,
d)&&e.push(d[g]);return e}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function c(w,A){throw new Error("declare"+(A?" "+A:"")+": "+w);}function a(w,A){for(var z=[],F=[{cls:0,refs:[]}],G={},K=1,L=w.length,M=0,N,R,O,T,Y;M<L;++M){if(N=w[M])u.call(N)!="[object Function]"&&c("mixin #"+M+" is not a callable constructor.",A);else c("mixin #"+M+" is unknown. Did you use dojo.require to pull it in?",A);R=N._meta?N._meta.bases:[N];O=0;for(N=R.length-1;N>=0;--N){T=R[N].prototype;
if(!T.hasOwnProperty("declaredClass"))T.declaredClass="uniqName_"+C++;T=T.declaredClass;if(!G.hasOwnProperty(T)){G[T]={count:0,refs:[],cls:R[N]};++K}T=G[T];if(O&&O!==T){T.refs.push(O);++O.count}O=T}++O.count;F[0].refs.push(O)}for(;F.length;){O=F.pop();z.push(O.cls);for(--K;Y=O.refs,Y.length==1;){O=Y[0];if(!O||--O.count){O=0;break}z.push(O.cls);--K}if(O){M=0;for(L=Y.length;M<L;++M){O=Y[M];--O.count||F.push(O)}}}K&&c("can't build consistent linearization",A);N=w[0];z[0]=N?N._meta&&N===z[z.length-N._meta.bases.length]?
N._meta.bases.length:1:0;return z}function d(w,A,z){var F,G,K,L,M,N,R,O=this._inherited=this._inherited||{};if(typeof w=="string"){F=w;w=A;A=z}z=0;L=w.callee;(F=F||L.nom)||c("can't deduce a name to call inherited()",this.declaredClass);M=this.constructor._meta;K=M.bases;R=O.p;if(F!=v){if(O.c!==L){R=0;N=K[0];M=N._meta;if(M.hidden[F]!==L){(G=M.chains)&&typeof G[F]=="string"&&c("calling chained method with inherited: "+F,this.declaredClass);do{M=N._meta;G=N.prototype;if(M&&(G[F]===L&&G.hasOwnProperty(F)||
M.hidden[F]===L))break}while(N=K[++R]);R=N?R:-1}}if(N=K[++R]){G=N.prototype;if(N._meta&&G.hasOwnProperty(F))z=G[F];else{L=q[F];do{G=N.prototype;if((z=G[F])&&(N._meta?G.hasOwnProperty(F):z!==L))break}while(N=K[++R])}}z=N&&z||q[F]}else{if(O.c!==L){R=0;if((M=K[0]._meta)&&M.ctor!==L){G=M.chains;if(!G||G.constructor!=="manual")c("calling chained constructor with inherited",this.declaredClass);for(;N=K[++R];)if((M=N._meta)&&M.ctor===L)break;R=N?R:-1}}for(;N=K[++R];)if(z=(M=N._meta)?M.ctor:N)break;z=N&&
z}O.c=z;O.p=R;if(z)return A===true?z:z.apply(this,A||w)}function e(w,A){if(typeof w=="string")return this.inherited(w,A,true);return this.inherited(w,true)}function g(w){for(var A=this.constructor._meta.bases,z=0,F=A.length;z<F;++z)if(A[z]===w)return true;return this instanceof w}function j(w,A){var z,F=0,G=p._extraNames.length;for(z in A)if(z!=v&&A.hasOwnProperty(z))w[z]=A[z];for(;F<G;++F){z=p._extraNames[F];if(z!=v&&A.hasOwnProperty(z))w[z]=A[z]}}function h(w,A){var z,F,G=0,K=p._extraNames.length;
for(z in A){F=A[z];if((F!==q[z]||!(z in q))&&z!=v){if(u.call(F)=="[object Function]")F.nom=z;w[z]=F}}for(;G<K;++G){z=p._extraNames[G];F=A[z];if((F!==q[z]||!(z in q))&&z!=v){if(u.call(F)=="[object Function]")F.nom=z;w[z]=F}}return w}function k(w){h(this.prototype,w);return this}function f(w,A){return function(){var z=arguments,F=z,G=z[0],K,L;L=w.length;var M;if(!(this instanceof z.callee))return o(z);if(A&&(G&&G.preamble||this.preamble)){M=new Array(w.length);M[0]=z;for(K=0;;){if(G=z[0])if(G=G.preamble)z=
G.apply(this,z)||z;G=w[K].prototype;if(G=G.hasOwnProperty("preamble")&&G.preamble)z=G.apply(this,z)||z;if(++K==L)break;M[K]=z}}for(K=L-1;K>=0;--K){G=w[K];if(G=(L=G._meta)?L.ctor:G)G.apply(this,M?M[K]:z)}(G=this.postscript)&&G.apply(this,F)}}function l(w,A){return function(){var z=arguments,F=z,G=z[0];if(!(this instanceof z.callee))return o(z);if(A){if(G)if(G=G.preamble)F=G.apply(this,F)||F;(G=this.preamble)&&G.apply(this,F)}w&&w.apply(this,z);(G=this.postscript)&&G.apply(this,z)}}function m(w){return function(){var A=
arguments,z=0,F,G;if(!(this instanceof A.callee))return o(A);for(;F=w[z];++z)if(F=(G=F._meta)?G.ctor:F){F.apply(this,A);break}(F=this.postscript)&&F.apply(this,A)}}function r(w,A,z){return function(){var F,G,K=0,L=1;if(z){K=A.length-1;L=-1}for(;F=A[K];K+=L){G=F._meta;(F=(G?G.hidden:F.prototype)[w])&&F.apply(this,arguments)}}}function n(w){y.prototype=w.prototype;w=new y;y.prototype=null;return w}function o(w){var A=w.callee,z=n(A);A.apply(z,w);return z}var p=b,s=p._mixin,q=Object.prototype,u=q.toString,
y=new Function,C=0,v="constructor";p.declare=function(w,A,z){if(typeof w!="string"){z=A;A=w;w=""}z=z||{};var F,G,K,L,M,N,R,O=1,T=A;if(u.call(A)=="[object Array]"){N=a(A,w);K=N[0];O=N.length-K;A=N[O]}else{N=[0];if(A)if(u.call(A)=="[object Function]"){K=A._meta;N=N.concat(K?K.bases:A)}else c("base class is not a callable constructor.",w);else A!==null&&c("unknown base class. Did you use dojo.require to pull it in?",w)}if(A)for(G=O-1;;--G){F=n(A);if(!G)break;K=N[G];(K._meta?j:s)(F,K.prototype);L=new Function;
L.superclass=A;L.prototype=F;A=F.constructor=L}else F={};h(F,z);K=z.constructor;if(K!==q.constructor){K.nom=v;F.constructor=K}for(G=O-1;G;--G)if((K=N[G]._meta)&&K.chains)R=s(R||{},K.chains);if(F["-chains-"])R=s(R||{},F["-chains-"]);K=!R||!R.hasOwnProperty(v);N[0]=L=R&&R.constructor==="manual"?m(N):N.length==1?l(z.constructor,K):f(N,K);L._meta={bases:N,hidden:z,chains:R,parents:T,ctor:z.constructor};L.superclass=A&&A.prototype;L.extend=k;L.prototype=F;F.constructor=L;F.getInherited=e;F.inherited=d;
F.isInstanceOf=g;if(w){F.declaredClass=w;p.setObject(w,L)}if(R)for(M in R)if(F[M]&&typeof R[M]=="string"&&M!=v){K=F[M]=r(M,N,R[M]==="after");K.nom=M}return L};p.safeMixin=h})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var c=Array.prototype,a=arguments.callee,d=a._listeners;a=(a=a.target)&&a.apply(this,arguments);var e;d=[].concat(d);for(e in d)e in c||d[e].apply(this,arguments);return a}},add:function(c,a,d){c=c||b.global;var e=c[a];if(!e||!e._listeners){var g=b._listener.getDispatcher();g.target=e;g._listeners=[];e=c[a]=g}return e._listeners.push(d)},remove:function(c,a,d){(c=(c||
b.global)[a])&&c._listeners&&d--&&delete c._listeners[d]}};b.connect=function(){var c=arguments,a=[],d=0;a.push(b.isString(c[0])?null:c[d++],c[d++]);var e=c[d+1];a.push(b.isString(e)||b.isFunction(e)?c[d++]:null,c[d++]);for(e=c.length;d<e;d++)a.push(c[d]);return b._connect.apply(this,a)};b._connect=function(c,a,d,e){var g=b._listener;d=g.add(c,a,b.hitch(d,e));return[c,a,d,g]};b.disconnect=function(c){if(c&&c[0]!==undefined){b._disconnect.apply(this,c);delete c[0]}};b._disconnect=function(c,a,d,e){e.remove(c,
a,d)};b._topics={};b.subscribe=function(c,a,d){return[c,b._listener.add(b._topics,c,b.hitch(a,d))]};b.unsubscribe=function(c){c&&b._listener.remove(b._topics,c[0],c[1])};b.publish=function(c,a){if(c=b._topics[c])c.apply(this,a||[])};b.connectPublisher=function(c,a,d){var e=function(){b.publish(c,arguments)};return d?b.connect(a,d,e):b.connect(a,e)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var c=function(){},a=Object.freeze||function(){};b.Deferred=function(d){function e(n){if(h)throw new Error("This deferred has already been resolved");j=n;h=true;g()}function g(){for(var n;!n&&l;){var o=l;l=l.next;if(n=o.progress==c)h=false;var p=k?o.error:o.resolved;if(p)try{var s=p(j);if(s&&typeof s.then==="function")s.then(b.hitch(o.deferred,"resolve"),b.hitch(o.deferred,"reject"),b.hitch(o.deferred,"progress"));
else{p=n&&s===undefined;if(n&&!p)k=s instanceof Error;o.deferred[p&&k?"reject":"resolve"](p?j:s)}}catch(q){o.deferred.reject(q)}else k?o.deferred.reject(j):o.deferred.resolve(j)}}var j,h,k,f,l,m=this.promise={};this.resolve=this.callback=function(n){this.fired=0;this.results=[n,null];e(n)};this.reject=this.errback=function(n){k=true;this.fired=1;e(n);this.results=[null,n];if(!n||n.log!==false)(b.config.deferredOnError||function(o){console.error(o)})(n)};this.progress=function(n){for(var o=l;o;){var p=
o.progress;p&&p(n);o=o.next}};this.addCallbacks=function(n,o){this.then(n,o,c);return this};this.then=m.then=function(n,o,p){var s=p==c?this:new b.Deferred(m.cancel);n={resolved:n,error:o,progress:p,deferred:s};if(l)f=f.next=n;else l=f=n;h&&g();return s.promise};var r=this;this.cancel=m.cancel=function(){if(!h){var n=d&&d(r);if(!h){n instanceof Error||(n=new Error(n));n.log=false;r.reject(n)}}};a(m)};b.extend(b.Deferred,{addCallback:function(){return this.addCallbacks(b.hitch.apply(b,arguments))},
addErrback:function(){return this.addCallbacks(null,b.hitch.apply(b,arguments))},addBoth:function(){var d=b.hitch.apply(b,arguments);return this.addCallbacks(d,d)},fired:-1})})();b.when=function(c,a,d,e){if(c&&typeof c.then==="function")return c.then(a,d,e);return a(c)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(c){return eval("("+c+")")};b._escapeString=function(c){return('"'+c.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};b.toJsonIndentStr="\t";b.toJson=function(c,a,d){if(c===undefined)return"undefined";var e=typeof c;if(e=="number"||e=="boolean")return c+"";if(c===null)return"null";if(b.isString(c))return b._escapeString(c);var g=
arguments.callee,j;d=d||"";var h=a?d+b.toJsonIndentStr:"";j=c.__json__||c.json;if(b.isFunction(j)){j=j.call(c);if(c!==j)return g(j,a,h)}if(c.nodeType&&c.cloneNode)throw new Error("Can't serialize DOM nodes");j=a?" ":"";var k=a?"\n":"";if(b.isArray(c))return"["+b.map(c,function(r){r=g(r,a,h);if(typeof r!="string")r="undefined";return k+h+r}).join(","+j)+k+d+"]";if(e=="function")return null;e=[];var f;for(f in c){var l,m;if(typeof f=="number")l='"'+f+'"';else if(typeof f=="string")l=b._escapeString(f);
else continue;m=g(c[f],a,h);typeof m=="string"&&e.push(k+h+l+":"+j+m)}return"{"+e.join(","+j)+k+d+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(c){c&&this.setColor(c)};b.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:b.config.transparentColor||[255,255,255]};b.extend(b.Color,
{r:255,g:255,b:255,a:1,_set:function(c,a,d,e){this.r=c;this.g=a;this.b=d;this.a=e},setColor:function(c){if(b.isString(c))b.colorFromString(c,this);else if(b.isArray(c))b.colorFromArray(c,this);else{this._set(c.r,c.g,c.b,c.a);c instanceof b.Color||this.sanitize()}return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+b.map(["r","g","b"],function(c){c=this[c].toString(16);return c.length<
2?"0"+c:c},this).join("")},toCss:function(c){var a=this.r+", "+this.g+", "+this.b;return(c?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});b.blendColors=function(c,a,d,e){var g=e||new b.Color;b.forEach(["r","g","b","a"],function(j){g[j]=c[j]+(a[j]-c[j])*d;if(j!="a")g[j]=Math.round(g[j])});return g.sanitize()};b.colorFromRgb=function(c,a){return(c=c.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&b.colorFromArray(c[1].split(/\s*,\s*/),a)};b.colorFromHex=function(c,
a){var d=a||new b.Color,e=c.length==4?4:8,g=(1<<e)-1;c=Number("0x"+c.substr(1));if(isNaN(c))return null;b.forEach(["b","g","r"],function(j){var h=c&g;c>>=e;d[j]=e==4?17*h:h});d.a=1;return d};b.colorFromArray=function(c,a){a=a||new b.Color;a._set(Number(c[0]),Number(c[1]),Number(c[2]),Number(c[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};b.colorFromString=function(c,a){var d=b.Color.named[c];return d&&b.colorFromArray(d,a)||b.colorFromRgb(c,a)||b.colorFromHex(c,a)}})();return b.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(b){b.doc=window.document||null;b.body=function(){return b.doc.body||b.doc.getElementsByTagName("body")[0]};b.setContext=function(c,a){b.global=c;b.doc=a};b.withGlobal=function(c,a,d,e){var g=b.global;try{b.global=c;return b.withDoc.call(null,c.document,a,d,e)}finally{b.global=g}};b.withDoc=function(c,a,d,e){var g=b.doc,j=b._bodyLtr,h=b.isQuirks;try{b.doc=c;delete b._bodyLtr;b.isQuirks=b.doc.compatMode=="BackCompat";if(d&&typeof a=="string")a=
d[a];return a.apply(d,e||[])}finally{b.doc=g;delete b._bodyLtr;if(j!==undefined)b._bodyLtr=j;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var c=b._event_listener={add:function(k,f,l){if(k){f=c._normalizeEventName(f);l=c._fixCallback(f,l);if(!b.isIE&&(f=="mouseenter"||f=="mouseleave")){var m=l;f=f=="mouseenter"?"mouseover":"mouseout";l=function(r){if(!b.isDescendant(r.relatedTarget,k))return m.call(this,r)}}k.addEventListener(f,l,false);return l}},remove:function(k,f,l){if(k){f=c._normalizeEventName(f);if(!b.isIE&&(f=="mouseenter"||f=="mouseleave"))f=
f=="mouseenter"?"mouseover":"mouseout";k.removeEventListener(f,l,false)}},_normalizeEventName:function(k){return k.slice(0,2)=="on"?k.slice(2):k},_fixCallback:function(k,f){return k!="keypress"?f:function(l){return f.call(this,c._fixEvent(l,this))}},_fixEvent:function(k){switch(k.type){case "keypress":c._setKeyChar(k);break}return k},_setKeyChar:function(k){k.keyChar=k.charCode>=32?String.fromCharCode(k.charCode):"";k.charOrCode=k.keyChar||k.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,
189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}};b.fixEvent=function(k,f){return c._fixEvent(k,f)};b.stopEvent=function(k){k.preventDefault();k.stopPropagation()};var a=b._listener;b._connect=function(k,f,l,m,r){r=k&&(k.nodeType||k.attachEvent||k.addEventListener)?r?2:1:0;l=[b._listener,c,a][r].add(k,f,b.hitch(l,m));return[k,f,l,r]};b._disconnect=function(k,f,l,m){[b._listener,c,a][m].remove(k,f,l)};b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:b.isSafari?91:224,
PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,
F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:b.isMac&&!b.isAIR?b.isSafari?91:224:17};var d=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(k){return k[d]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(k,f){return k.button&f},isLeft:function(k){return k.button&1},isMiddle:function(k){return k.button&4},isRight:function(k){return k.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(k,f){return k.button==f},isLeft:function(k){return k.button==
0},isMiddle:function(k){return k.button==1},isRight:function(k){return k.button==2}};if(b.isIE){var e=function(k,f){try{return k.keyCode=f}catch(l){return 0}},g=b._listener,j=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks){a=g=b._ie_listener={handlers:[],add:function(k,f,l){k=k||b.global;var m=k[f];if(!m||!m[j]){var r=b._getIeDispatcher();r.target=m&&h.push(m)-1;r[j]=[];m=k[f]=r}return m[j].push(h.push(l)-1)},remove:function(k,f,l){f=(k=(k||b.global)[f])&&k[j];if(k&&f&&
l--){delete h[f[l]];delete f[l]}}};var h=g.handlers}b.mixin(c,{add:function(k,f,l){if(k){f=c._normalizeEventName(f);if(f=="onkeypress"){var m=k.onkeydown;if(!m||!m[j]||!m._stealthKeydownHandle){var r=c.add(k,"onkeydown",c._stealthKeyDown);m=k.onkeydown;m._stealthKeydownHandle=r;m._stealthKeydownRefs=1}else m._stealthKeydownRefs++}return g.add(k,f,c._fixCallback(l))}},remove:function(k,f,l){f=c._normalizeEventName(f);g.remove(k,f,l);if(f=="onkeypress"){f=k.onkeydown;if(--f._stealthKeydownRefs<=0){g.remove(k,
"onkeydown",f._stealthKeydownHandle);delete f._stealthKeydownHandle}}},_normalizeEventName:function(k){return k.slice(0,2)!="on"?"on"+k:k},_nop:function(){},_fixEvent:function(k,f){if(!k)k=(f&&(f.ownerDocument||f.document||f).parentWindow||window).event;if(!k)return k;k.target=k.srcElement;k.currentTarget=f||k.srcElement;k.layerX=k.offsetX;k.layerY=k.offsetY;f=(f=k.srcElement)&&f.ownerDocument||document;f=b.isIE<6||f.compatMode=="BackCompat"?f.body:f.documentElement;var l=b._getIeDocumentElementOffset();
k.pageX=k.clientX+b._fixIeBiDiScrollLeft(f.scrollLeft||0)-l.x;k.pageY=k.clientY+(f.scrollTop||0)-l.y;if(k.type=="mouseover")k.relatedTarget=k.fromElement;if(k.type=="mouseout")k.relatedTarget=k.toElement;if(b.isIE<9||b.isQuirks){k.stopPropagation=c._stopPropagation;k.preventDefault=c._preventDefault}return c._fixKeys(k)},_fixKeys:function(k){switch(k.type){case "keypress":var f="charCode"in k?k.charCode:k.keyCode;if(f==10){f=0;k.keyCode=13}else if(f==13||f==27)f=0;else if(f==3)f=99;k.charCode=f;c._setKeyChar(k);
break}return k},_stealthKeyDown:function(k){var f=k.currentTarget.onkeypress;if(f&&f[j]){var l=k.keyCode,m=(l!=13||b.isIE>=9&&!b.isQuirks)&&l!=32&&l!=27&&(l<48||l>90)&&(l<96||l>111)&&(l<186||l>192)&&(l<219||l>222);if(m||k.ctrlKey){m=m?0:l;if(k.ctrlKey)if(l==3||l==13)return;else if(m>95&&m<106)m-=48;else if(!k.shiftKey&&m>=65&&m<=90)m+=32;else m=c._punctMap[m]||m;l=c._synthesizeEvent(k,{type:"keypress",faux:true,charCode:m});f.call(k.currentTarget,l);if(b.isIE<9||b.isIE&&b.isQuirks)k.cancelBubble=
l.cancelBubble;k.returnValue=l.returnValue;e(k,l.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=false}});b.stopEvent=b.isIE<9||b.isQuirks?function(k){k=k||window.event;c._stopPropagation.call(k);c._preventDefault.call(k)}:b.stopEvent}c._synthesizeEvent=function(k,f){f=b.mixin({},k,f);c._setKeyChar(f);f.preventDefault=function(){k.preventDefault()};f.stopPropagation=function(){k.stopPropagation()};
return f};b.isOpera&&b.mixin(c,{_fixEvent:function(k){switch(k.type){case "keypress":var f=k.which;if(f==3)f=99;f=f<41&&!k.shiftKey?0:f;if(k.ctrlKey&&!k.shiftKey&&f>=65&&f<=90)f+=32;return c._synthesizeEvent(k,{charCode:f})}return k}});if(b.isWebKit){c._add=c.add;c._remove=c.remove;b.mixin(c,{add:function(k,f,l){if(k){var m=c._add(k,f,l);if(c._normalizeEventName(f)=="keypress")m._stealthKeyDownHandle=c._add(k,"keydown",function(r){var n=r.keyCode,o=n!=13&&n!=32&&(n<48||n>90)&&(n<96||n>111)&&(n<186||
n>192)&&(n<219||n>222);if(o||r.ctrlKey){o=o?0:n;if(r.ctrlKey)if(n==3||n==13)return;else if(o>95&&o<106)o-=48;else if(!r.shiftKey&&o>=65&&o<=90)o+=32;else o=c._punctMap[o]||o;n=c._synthesizeEvent(r,{type:"keypress",faux:true,charCode:o});l.call(r.currentTarget,n)}});return m}},remove:function(k,f,l){if(k){l._stealthKeyDownHandle&&c._remove(k,"keydown",l._stealthKeyDownHandle);c._remove(k,f,l)}},_fixEvent:function(k){switch(k.type){case "keypress":if(k.faux)return k;var f=k.charCode;f=f>=32?f:0;return c._synthesizeEvent(k,
{charCode:f,faux:true})}return k}})}})();if(b.isIE){b._ieDispatcher=function(c,a){var d=Array.prototype,e=b._ie_listener.handlers,g=c.callee,j=g[b._ieListenersName];g=(g=e[g.target])&&g.apply(a,c);j=[].concat(j);for(var h in j){var k=e[j[h]];!(h in d)&&k&&k.apply(a,c)}return g};b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")};b._event_listener._fixCallback=function(c){var a=b._event_listener._fixEvent;return function(d){return c.call(this,a(d,this))}}}return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",false,true)}catch(c){}b.byId=b.isIE?function(a,d){if(typeof a!="string")return a;var e=d||b.doc;if((d=e.getElementById(a))&&(d.attributes.id.value==a||d.id==a))return d;else{var g=e.all[a];if(!g||g.nodeName)g=[g];for(var j=0;d=g[j++];)if(d.attributes&&d.attributes.id&&d.attributes.id.value==a||d.id==a)return d}}:function(a,d){return(typeof a=="string"?(d||b.doc).getElementById(a):
a)||null};(function(){var a=b.byId,d=null,e;b.addOnWindowUnload(function(){d=null});b._destroyElement=b.destroy=function(t){t=a(t);try{var x=t.ownerDocument;if(!d||e!=x){d=x.createElement("div");e=x}d.appendChild(t.parentNode?t.parentNode.removeChild(t):t);d.innerHTML=""}catch(D){}};b.isDescendant=function(t,x){try{t=a(t);for(x=a(x);t;){if(t==x)return true;t=t.parentNode}}catch(D){}return false};b.setSelectable=function(t,x){t=a(t);if(b.isMozilla)t.style.MozUserSelect=x?"":"none";else if(b.isKhtml||
b.isWebKit)t.style.KhtmlUserSelect=x?"auto":"none";else if(b.isIE){x=t.unselectable=x?"":"on";b.query("*",t).forEach("item.unselectable = '"+x+"'")}};var g=function(t,x){var D=x.parentNode;D&&D.insertBefore(t,x)},j=function(t,x){var D=x.parentNode;if(D)D.lastChild==x?D.appendChild(t):D.insertBefore(t,x.nextSibling)};b.place=function(t,x,D){x=a(x);if(typeof t=="string")t=/^\s*</.test(t)?b._toDom(t,x.ownerDocument):a(t);if(typeof D=="number"){var J=x.childNodes;!J.length||J.length<=D?x.appendChild(t):
g(t,J[D<0?0:D])}else switch(D){case "before":g(t,x);break;case "after":j(t,x);break;case "replace":x.parentNode.replaceChild(t,x);break;case "only":b.empty(x);x.appendChild(t);break;case "first":if(x.firstChild){g(t,x.firstChild);break}default:x.appendChild(t)}return t};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var h;h=b.isWebKit?function(t){var x;if(t.nodeType==1){var D=t.ownerDocument.defaultView;x=D.getComputedStyle(t,null);if(!x&&
t.style){t.style.display="";x=D.getComputedStyle(t,null)}}return x||{}}:b.isIE?function(t){return t.nodeType==1?t.currentStyle:{}}:function(t){return t.nodeType==1?t.ownerDocument.defaultView.getComputedStyle(t,null):{}};b.getComputedStyle=h;b._toPixelValue=b.isIE?function(t,x){if(!x)return 0;if(x=="medium")return 4;if(x.slice&&x.slice(-2)=="px")return parseFloat(x);with(t){t=style.left;var D=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=x;x=style.pixelLeft}catch(J){x=0}style.left=
t;runtimeStyle.left=D}return x}:function(t,x){return parseFloat(x)||0};var k=b._toPixelValue,f=function(t,x){try{return t.filters.item("DXImageTransform.Microsoft.Alpha")}catch(D){return x?{}:null}};b._getOpacity=b.isIE<9?function(t){try{return f(t).Opacity/100}catch(x){return 1}}:function(t){return h(t).opacity};b._setOpacity=b.isIE<9?function(t,x){var D=x*100,J=x==1;t.style.zoom=J?"":1;if(f(t))f(t,1).Opacity=D;else{if(J)return x;t.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
D+")"}f(t,1).Enabled=!J;t.nodeName.toLowerCase()=="tr"&&b.query("> td",t).forEach(function(P){b._setOpacity(P,x)});return x}:function(t,x){return t.style.opacity=x};var l={left:true,top:true},m=/margin|padding|width|height|max|min|offset/,r=function(t,x,D){x=x.toLowerCase();if(b.isIE){if(D=="auto"){if(x=="height")return t.offsetHeight;if(x=="width")return t.offsetWidth}if(x=="fontweight")switch(D){case 700:return"bold";case 400:default:return"normal"}}x in l||(l[x]=m.test(x));return l[x]?k(t,D):D},
n=b.isIE?"styleFloat":"cssFloat",o={cssFloat:n,styleFloat:n,"float":n};b.style=function(t,x,D){var J=a(t),P=arguments.length,S=x=="opacity";x=o[x]||x;if(P==3)return S?b._setOpacity(J,D):(J.style[x]=D);if(P==2&&S)return b._getOpacity(J);S=h(J);if(P==2&&typeof x!="string"){for(var $ in x)b.style(t,$,x[$]);return S}return P==1?S:r(J,x,S[x]||J.style[x])};b._getPadExtents=function(t,x){x=x||h(t);var D=k(t,x.paddingLeft),J=k(t,x.paddingTop);return{l:D,t:J,w:D+k(t,x.paddingRight),h:J+k(t,x.paddingBottom)}};
b._getBorderExtents=function(t,x){x=x||h(t);var D=x.borderLeftStyle!="none"?k(t,x.borderLeftWidth):0,J=x.borderTopStyle!="none"?k(t,x.borderTopWidth):0;return{l:D,t:J,w:D+(x.borderRightStyle!="none"?k(t,x.borderRightWidth):0),h:J+(x.borderBottomStyle!="none"?k(t,x.borderBottomWidth):0)}};b._getPadBorderExtents=function(t,x){var D=x||h(t);x=b._getPadExtents(t,D);t=b._getBorderExtents(t,D);return{l:x.l+t.l,t:x.t+t.t,w:x.w+t.w,h:x.h+t.h}};b._getMarginExtents=function(t,x){x=x||h(t);var D=k(t,x.marginLeft),
J=k(t,x.marginTop),P=k(t,x.marginRight);t=k(t,x.marginBottom);if(b.isWebKit&&x.position!="absolute")P=D;return{l:D,t:J,w:D+P,h:J+t}};b._getMarginBox=function(t,x){var D=x||h(t);x=b._getMarginExtents(t,D);var J=t.offsetLeft-x.l,P=t.offsetTop-x.t,S=t.parentNode;if(b.isMoz){var $=parseFloat(D.left);D=parseFloat(D.top);if(!isNaN($)&&!isNaN(D)){J=$;P=D}else if(S&&S.style){$=h(S);if($.overflow!="visible"){S=b._getBorderExtents(S,$);J+=S.l;P+=S.t}}}else if(b.isOpera||b.isIE>7&&!b.isQuirks)if(S){S=b._getBorderExtents(S);
J-=S.l;P-=S.t}return{l:J,t:P,w:t.offsetWidth+x.w,h:t.offsetHeight+x.h}};b._getMarginSize=function(t,x){t=a(t);x=b._getMarginExtents(t,x||h(t));t=t.getBoundingClientRect();return{w:t.right-t.left+x.w,h:t.bottom-t.top+x.h}};b._getContentBox=function(t,x){var D=x||h(t);x=b._getPadExtents(t,D);D=b._getBorderExtents(t,D);var J=t.clientWidth;if(J){t=t.clientHeight;D.w=D.h=0}else{J=t.offsetWidth;t=t.offsetHeight}if(b.isOpera){x.l+=D.l;x.t+=D.t}return{l:x.l,t:x.t,w:J-x.w-D.w,h:t-x.h-D.h}};b._getBorderBox=
function(t,x){var D=x||h(t);x=b._getPadExtents(t,D);t=b._getContentBox(t,D);return{l:t.l-x.l,t:t.t-x.t,w:t.w+x.w,h:t.h+x.h}};b._setBox=function(t,x,D,J,P,S){S=S||"px";t=t.style;if(!isNaN(x))t.left=x+S;if(!isNaN(D))t.top=D+S;if(J>=0)t.width=J+S;if(P>=0)t.height=P+S};b._isButtonTag=function(t){return t.tagName=="BUTTON"||t.tagName=="INPUT"&&(t.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(t){var x=t.tagName;return b.boxModel=="border-box"||x=="TABLE"||b._isButtonTag(t)};
b._setContentSize=function(t,x,D,J){if(b._usesBorderBox(t)){J=b._getPadBorderExtents(t,J);if(x>=0)x+=J.w;if(D>=0)D+=J.h}b._setBox(t,NaN,NaN,x,D)};b._setMarginBox=function(t,x,D,J,P,S){var $=S||h(t);S=b._usesBorderBox(t)?p:b._getPadBorderExtents(t,$);if(b.isWebKit)if(b._isButtonTag(t)){var ha=t.style;if(J>=0&&!ha.width)ha.width="4px";if(P>=0&&!ha.height)ha.height="4px"}$=b._getMarginExtents(t,$);if(J>=0)J=Math.max(J-S.w-$.w,0);if(P>=0)P=Math.max(P-S.h-$.h,0);b._setBox(t,x,D,J,P)};var p={l:0,t:0,w:0,
h:0};b.marginBox=function(t,x){t=a(t);var D=h(t);return!x?b._getMarginBox(t,D):b._setMarginBox(t,x.l,x.t,x.w,x.h,D)};b.contentBox=function(t,x){t=a(t);var D=h(t);return!x?b._getContentBox(t,D):b._setContentSize(t,x.w,x.h,D)};b._docScroll=function(){var t=b.global;return"pageXOffset"in t?{x:t.pageXOffset,y:t.pageYOffset}:(t=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(t.scrollLeft||0),y:t.scrollTop||0})};b._isBodyLtr=function(){return"_bodyLtr"in b?b._bodyLtr:(b._bodyLtr=(b.body().dir||
b.doc.documentElement.dir||"ltr").toLowerCase()=="ltr")};b._getIeDocumentElementOffset=function(){var t=b.doc.documentElement;if(b.isIE<8){var x=t.getBoundingClientRect(),D=x.left;x=x.top;if(b.isIE<7){D+=t.clientLeft;x+=t.clientTop}return{x:D<0?0:D,y:x<0?0:x}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(t){var x=b.isIE;if(x&&!b._isBodyLtr()){var D=b.isQuirks,J=D?b.doc.body:b.doc.documentElement;if(x==6&&!D&&b.global.frameElement&&J.scrollHeight>J.clientHeight)t+=J.clientLeft;return x<8||
D?t+J.clientWidth-J.scrollWidth:-t}return t};b._abs=b.position=function(t,x){t=a(t);var D=b.body(),J=D.parentNode;t=t.getBoundingClientRect();t={x:t.left,y:t.top,w:t.right-t.left,h:t.bottom-t.top};if(b.isIE){J=b._getIeDocumentElementOffset();t.x-=J.x+(b.isQuirks?D.clientLeft+D.offsetLeft:0);t.y-=J.y+(b.isQuirks?D.clientTop+D.offsetTop:0)}else if(b.isFF==3){D=h(J);t.x-=k(J,D.marginLeft)+k(J,D.borderLeftWidth);t.y-=k(J,D.marginTop)+k(J,D.borderTopWidth)}if(x){x=b._docScroll();t.x+=x.x;t.y+=x.y}return t};
b.coords=function(t,x){t=a(t);var D=h(t);D=b._getMarginBox(t,D);x=b.position(t,x);D.x=x.x;D.y=x.y;return D};var s={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},q={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},u={innerHTML:1,className:1,htmlFor:b.isIE,value:1},y=function(t){return q[t.toLowerCase()]||t},C=function(t,x){return(t=t.getAttributeNode&&t.getAttributeNode(x))&&
t.specified};b.hasAttr=function(t,x){var D=x.toLowerCase();return u[s[D]||x]||C(a(t),q[D]||x)};var v={},w=0,A=b._scopeName+"attrid",z={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(t,x,D){t=a(t);var J=arguments.length;if(J==2&&typeof x!="string"){for(var P in x)b.attr(t,P,x[P]);return t}var S=x.toLowerCase();P=s[S]||x;var $=u[P];S=q[S]||x;if(J==3){if(P=="style"&&typeof D!="string")b.style(t,D);else if(P=="innerHTML")if(b.isIE&&t.tagName.toLowerCase()in z){b.empty(t);
t.appendChild(b._toDom(D,t.ownerDocument))}else t[P]=D;else if(b.isFunction(D)){J=b.attr(t,A);if(!J){J=w++;b.attr(t,A,J)}v[J]||(v[J]={});if($=v[J][P])b.disconnect($);else try{delete t[P]}catch(ha){}v[J][P]=b.connect(t,P,D)}else if($||typeof D=="boolean")t[P]=D;else t.setAttribute(S,D);return t}D=t[P];if($&&typeof D!="undefined")return D;if(P!="href"&&(typeof D=="boolean"||b.isFunction(D)))return D;return C(t,S)?t.getAttribute(S):null};b.removeAttr=function(t,x){a(t).removeAttribute(y(x))};b.getNodeProp=
function(t,x){t=a(t);var D=x.toLowerCase(),J=s[D]||x;if(J in t&&J!="href")return t[J];x=q[D]||x;return C(t,x)?t.getAttribute(x):null};b.create=function(t,x,D,J){var P=b.doc;if(D){D=a(D);P=D.ownerDocument}if(typeof t=="string")t=P.createElement(t);x&&b.attr(t,x);D&&b.place(t,D,J);return t};b.empty=b.isIE?function(t){t=a(t);for(var x;x=t.lastChild;)b.destroy(x)}:function(t){a(t).innerHTML=""};var F={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody",
"tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},G=/<\s*([\w\:]+)/,K={},L=0,M="__"+b._scopeName+"ToDomId";for(var N in F)if(F.hasOwnProperty(N)){var R=F[N];R.pre=N=="option"?'<select multiple="multiple">':"<"+R.join("><")+">";R.post="</"+R.reverse().join("></")+">"}b._toDom=function(t,x){x=x||b.doc;var D=x[M];if(!D){x[M]=D=++L+"";K[D]=x.createElement("div")}t+="";var J=t.match(G),P=J?J[1].toLowerCase():"";D=K[D];if(J&&F[P]){J=
F[P];D.innerHTML=J.pre+t+J.post;for(t=J.length;t;--t)D=D.firstChild}else D.innerHTML=t;if(D.childNodes.length==1)return D.removeChild(D.firstChild);for(t=x.createDocumentFragment();x=D.firstChild;)t.appendChild(x);return t};var O="className";b.hasClass=function(t,x){return(" "+a(t)[O]+" ").indexOf(" "+x+" ")>=0};var T=/\s+/,Y=[""],da={},ga=function(t){if(typeof t=="string"||t instanceof String)if(t.indexOf(" ")<0){Y[0]=t;return Y}else return t.split(T);return t||""};b.addClass=function(t,x){t=a(t);
x=ga(x);var D=t[O],J;D=D?" "+D+" ":" ";J=D.length;for(var P=0,S=x.length,$;P<S;++P)if(($=x[P])&&D.indexOf(" "+$+" ")<0)D+=$+" ";if(J<D.length)t[O]=D.substr(1,D.length-2)};b.removeClass=function(t,x){t=a(t);var D;if(x!==undefined){x=ga(x);D=" "+t[O]+" ";for(var J=0,P=x.length;J<P;++J)D=D.replace(" "+x[J]+" "," ");D=b.trim(D)}else D="";if(t[O]!=D)t[O]=D};b.replaceClass=function(t,x,D){t=a(t);da.className=t.className;b.removeClass(da,D);b.addClass(da,x);if(t.className!==da.className)t.className=da.className};
b.toggleClass=function(t,x,D){if(D===undefined)D=!b.hasClass(t,x);b[D?"addClass":"removeClass"](t,x)}})();return b});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(b){(function(){var c=Array.prototype,a=c.slice,d=c.concat,e=function(n,o,p){n.sort||(n=a.call(n,0));p=p||this._NodeListCtor||b._NodeListCtor;n.constructor=p;b._mixin(n,p.prototype);n._NodeListCtor=p;return o?n._stash(o):n},g=function(n,o,p){o=[0].concat(a.call(o,0));p=p||b.global;return function(s){o[0]=s;return n.apply(p,o)}},j=function(n,o){return function(){this.forEach(g(n,
arguments,o));return this}},h=function(n,o){return function(){return this.map(g(n,arguments,o))}},k=function(n,o,p){return function(){var s=arguments,q=g(n,s,p);if(o.call(p||b.global,s))return this.map(q);this.forEach(q);return this}},f=function(n){return n.length==1&&typeof n[0]=="string"},l=function(n){var o=n.parentNode;o&&o.removeChild(n)};b.NodeList=function(){return e(Array.apply(null,arguments))};var m=b._NodeListCtor=b.NodeList,r=m.prototype;m._wrap=r._wrap=e;m._adaptAsMap=h;m._adaptAsForEach=
j;m._adaptAsFilter=function(n,o){return function(){return this.filter(g(n,arguments,o))}};m._adaptWithCondition=k;b.forEach(["slice","splice"],function(n){var o=c[n];r[n]=function(){return this._wrap(o.apply(this,arguments),n=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(n){var o=b[n];r[n]=function(){return o.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(n){r[n]=k(b[n],f)});b.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(n){r[n]=j(b[n])});b.extend(b.NodeList,{_normalize:function(n,o){var p=n.parse===true?true:false;if(typeof n.template=="string"){var s=n.templateFunc||b.string&&b.string.substitute;n=s?s(n.template,n):n}s=typeof n;if(s=="string"||s=="number"){n=b._toDom(n,o&&o.ownerDocument);n=n.nodeType==11?b._toArray(n.childNodes):[n]}else if(b.isArrayLike(n))b.isArray(n)||(n=b._toArray(n));else n=[n];if(p)n._runParse=true;return n},_cloneNode:function(n){return n.cloneNode(true)},
_place:function(n,o,p,s){if(!(o.nodeType!=1&&p=="only")){o=o;for(var q,u=n.length,y=u-1;y>=0;y--){var C=s?this._cloneNode(n[y]):n[y];if(n._runParse&&b.parser&&b.parser.parse){q||(q=o.ownerDocument.createElement("div"));q.appendChild(C);b.parser.parse(q);for(C=q.firstChild;q.firstChild;)q.removeChild(q.firstChild)}y==u-1?b.place(C,o,p):o.parentNode.insertBefore(C,o);o=C}}},_stash:function(n){this._parent=n;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var n=
b.isArray(this)?this:a.call(this,0),o=b.map(arguments,function(p){return p&&!b.isArray(p)&&(typeof NodeList!="undefined"&&p.constructor===NodeList||p.constructor===this._NodeListCtor)?a.call(p,0):p});return this._wrap(d.apply(n,o),this)},map:function(n,o){return this._wrap(b.map(this,n,o),this)},forEach:function(n,o){b.forEach(this,n,o);return this},coords:h(b.coords),position:h(b.position),place:function(n,o){var p=b.query(n)[0];return this.forEach(function(s){b.place(s,p,o)})},orphan:function(n){return(n?
b._filterQueryResult(this,n):this).forEach(l)},adopt:function(n,o){return b.query(n).place(this[0],o)._stash(this)},query:function(n){if(!n)return this;var o=this.map(function(p){return b.query(n,p).filter(function(s){return s!==undefined})});return this._wrap(d.apply([],o),this)},filter:function(n){var o=arguments,p=this,s=0;if(typeof n=="string"){p=b._filterQueryResult(this,o[0]);if(o.length==1)return p._stash(this);s=1}return this._wrap(b.filter(p,o[s],o[s+1]),this)},addContent:function(n,o){n=
this._normalize(n,this[0]);for(var p=0,s;s=this[p];p++)this._place(n,s,o,p>0);return this},instantiate:function(n,o){var p=b.isFunction(n)?n:b.getObject(n);o=o||{};return this.forEach(function(s){new p(o,s)})},at:function(){var n=new this._NodeListCtor;b.forEach(arguments,function(o){if(o<0)o=this.length+o;this[o]&&n.push(this[o])},this);return n._stash(this)}});m.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove",
"mouseout","mouseover","mouseup","submit"];b.forEach(m.events,function(n){var o="on"+n;r[o]=function(p,s){return this.connect(o,p,s)}})})();return b.NodeList});
(function(){var b=function(a){var d=a.trim,e=a.forEach,g=a._NodeListCtor=a.NodeList,j=function(){return a.doc},h=(a.isWebKit||a.isMozilla)&&j().compatMode=="BackCompat",k=j().firstChild.children?"children":"childNodes",f=false,l=function(){return true},m=function(B){B+=">~+".indexOf(B.slice(-1))>=0?" * ":" ";for(var E=function(na,oa){return d(B.slice(na,oa))},H=[],I=-1,Q=-1,V=-1,W=-1,U=-1,X=-1,ba=-1,ea="",ca="",ja,aa=0,pa=B.length,Z=null,fa=null,qa=function(){if(ba>=0){var na=ba==aa?null:E(ba,aa);
Z[">~+".indexOf(na)<0?"tag":"oper"]=na;ba=-1}},ra=function(){if(X>=0){Z.id=E(X,aa).replace(/\\/g,"");X=-1}},sa=function(){if(U>=0){Z.classes.push(E(U+1,aa).replace(/\\/g,""));U=-1}},ma=function(){ra();qa();sa()},ta=function(){ma();W>=0&&Z.pseudos.push({name:E(W+1,aa)});Z.loops=Z.pseudos.length||Z.attrs.length||Z.classes.length;Z.oquery=Z.query=E(ja,aa);Z.otag=Z.tag=Z.oper?null:Z.tag||"*";if(Z.tag)Z.tag=Z.tag.toUpperCase();if(H.length&&H[H.length-1].oper){Z.infixOper=H.pop();Z.query=Z.infixOper.query+
" "+Z.query}H.push(Z);Z=null};ea=ca,ca=B.charAt(aa),aa<pa;aa++)if(ea!="\\"){if(!Z){ja=aa;Z={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return f?this.otag:this.tag}};ba=aa}if(I>=0)if(ca=="]"){if(fa.attr)fa.matchFor=E(V||I+1,aa);else fa.attr=E(I+1,aa);if(I=fa.matchFor)if(I.charAt(0)=='"'||I.charAt(0)=="'")fa.matchFor=I.slice(1,-1);Z.attrs.push(fa);fa=null;I=V=-1}else{if(ca=="="){V="|~^$*".indexOf(ea)>=0?ea:"";fa.type=V+ca;fa.attr=E(I+1,aa-V.length);V=aa+1}}else if(Q>=
0){if(ca==")"){if(W>=0)fa.value=E(Q+1,aa);W=Q=-1}}else if(ca=="#"){ma();X=aa+1}else if(ca=="."){ma();U=aa}else if(ca==":"){ma();W=aa}else if(ca=="["){ma();I=aa;fa={}}else if(ca=="("){if(W>=0){fa={name:E(W+1,aa),value:null};Z.pseudos.push(fa)}Q=aa}else ca==" "&&ea!=ca&&ta()}return H},r=function(B,E){if(!B)return E;if(!E)return B;return function(){return B.apply(window,arguments)&&E.apply(window,arguments)}},n=function(B,E){E=E||[];B&&E.push(B);return E},o=function(B){return 1==B.nodeType},p=function(B,
E){if(!B)return"";if(E=="class")return B.className||"";if(E=="for")return B.htmlFor||"";if(E=="style")return B.style.cssText||"";return(f?B.getAttribute(E):B.getAttribute(E,2))||""},s={"*=":function(B,E){return function(H){return p(H,B).indexOf(E)>=0}},"^=":function(B,E){return function(H){return p(H,B).indexOf(E)==0}},"$=":function(B,E){return function(H){H=" "+p(H,B);return H.lastIndexOf(E)==H.length-E.length}},"~=":function(B,E){var H=" "+E+" ";return function(I){return(" "+p(I,B)+" ").indexOf(H)>=
0}},"|=":function(B,E){var H=" "+E+"-";return function(I){I=" "+p(I,B);return I==E||I.indexOf(H)==0}},"=":function(B,E){return function(H){return p(H,B)==E}}},q=typeof j().firstChild.nextElementSibling=="undefined",u=!q?"nextElementSibling":"nextSibling",y=!q?"previousElementSibling":"previousSibling",C=q?o:l,v=function(B){for(;B=B[y];)if(C(B))return false;return true},w=function(B){for(;B=B[u];)if(C(B))return false;return true},A=function(B){var E=B.parentNode,H=0,I=E[k],Q=B._i||-1,V=E._l||-1;if(!I)return-1;
I=I.length;if(V==I&&Q>=0&&V>=0)return Q;E._l=I;Q=-1;for(E=E.firstElementChild||E.firstChild;E;E=E[u])if(C(E)){E._i=++H;if(B===E)Q=H}return Q},z=function(B){return!(A(B)%2)},F=function(B){return A(B)%2},G={checked:function(){return function(B){return!!("checked"in B?B.checked:B.selected)}},"first-child":function(){return v},"last-child":function(){return w},"only-child":function(){return function(B){if(!v(B))return false;if(!w(B))return false;return true}},empty:function(){return function(B){var E=
B.childNodes;for(B=B.childNodes.length-1;B>=0;B--){var H=E[B].nodeType;if(H===1||H==3)return false}return true}},contains:function(B,E){B=E.charAt(0);if(B=='"'||B=="'")E=E.slice(1,-1);return function(H){return H.innerHTML.indexOf(E)>=0}},not:function(B,E){B=m(E)[0];E={el:1};if(B.tag!="*")E.tag=1;if(!B.classes.length)E.classes=1;var H=L(B,E);return function(I){return!H(I)}},"nth-child":function(B,E){B=parseInt;if(E=="odd")return F;else if(E=="even")return z;if(E.indexOf("n")!=-1){E=E.split("n",2);
var H=E[0]?E[0]=="-"?-1:B(E[0]):1,I=E[1]?B(E[1]):0,Q=0,V=-1;if(H>0)if(I<0)I=I%H&&H+I%H;else{if(I>0){if(I>=H)Q=I-I%H;I%=H}}else if(H<0){H*=-1;if(I>0){V=I;I%=H}}if(H>0)return function(U){U=A(U);return U>=Q&&(V<0||U<=V)&&U%H==I};else E=I}var W=B(E);return function(U){return A(U)==W}}},K=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(B){var E=B.toLowerCase();if(E=="class")B="className";return function(H){return f?H.getAttribute(B):H[B]||H[E]}}:function(B){return function(E){return E&&E.getAttribute&&E.hasAttribute(B)}},
L=function(B,E){if(!B)return l;E=E||{};var H=null;"el"in E||(H=r(H,o));if(!("tag"in E))if(B.tag!="*")H=r(H,function(I){return I&&I.tagName==B.getTag()});"classes"in E||e(B.classes,function(I,Q){var V=new RegExp("(?:^|\\s)"+I+"(?:\\s|$)");H=r(H,function(W){return V.test(W.className)});H.count=Q});"pseudos"in E||e(B.pseudos,function(I){var Q=I.name;if(G[Q])H=r(H,G[Q](Q,I.value))});"attrs"in E||e(B.attrs,function(I){var Q,V=I.attr;if(I.type&&s[I.type])Q=s[I.type](V,I.matchFor);else if(V.length)Q=K(V);
if(Q)H=r(H,Q)});if(!("id"in E))if(B.id)H=r(H,function(I){return!!I&&I.id==B.id});H||"default"in E||(H=l);return H},M=function(B){return function(E,H,I){for(;E=E[u];)if(!(q&&!o(E))){if((!I||ka(E,I))&&B(E))H.push(E);break}return H}},N=function(B){return function(E,H,I){for(E=E[u];E;){if(C(E)){if(I&&!ka(E,I))break;B(E)&&H.push(E)}E=E[u]}return H}},R=function(B){B=B||l;return function(E,H,I){for(var Q=0,V=E[k];E=V[Q++];)if(C(E)&&(!I||ka(E,I))&&B(E,Q))H.push(E);return H}},O=function(B,E){for(B=B.parentNode;B;){if(B==
E)break;B=B.parentNode}return!!B},T={},Y=function(B){var E=T[B.query];if(E)return E;var H=B.infixOper;H=H?H.oper:"";var I=L(B,{el:1}),Q="*"==B.tag,V=j().getElementsByClassName;if(H){V={el:1};if(Q)V.tag=1;I=L(B,V);if("+"==H)E=M(I);else if("~"==H)E=N(I);else if(">"==H)E=R(I)}else if(B.id){I=!B.loops&&Q?l:L(B,{el:1,id:1});E=function(U,X){var ba=a.byId(B.id,U.ownerDocument||U);if(ba&&I(ba))if(9==U.nodeType)return n(ba,X);else if(O(ba,U))return n(ba,X)}}else if(V&&/\{\s*\[native code\]\s*\}/.test(String(V))&&
B.classes.length&&!h){I=L(B,{el:1,classes:1,id:1});var W=B.classes.join(" ");E=function(U,X,ba){X=n(0,X);for(var ea,ca=0,ja=U.getElementsByClassName(W);ea=ja[ca++];)I(ea,U)&&ka(ea,ba)&&X.push(ea);return X}}else if(!Q&&!B.loops)E=function(U,X,ba){X=n(0,X);for(var ea=0,ca=U.getElementsByTagName(B.getTag());U=ca[ea++];)ka(U,ba)&&X.push(U);return X};else{I=L(B,{el:1,tag:1,id:1});E=function(U,X,ba){X=n(0,X);for(var ea,ca=0,ja=U.getElementsByTagName(B.getTag());ea=ja[ca++];)I(ea,U)&&ka(ea,ba)&&X.push(ea);
return X}}return T[B.query]=E},da=function(B,E){B=n(B);for(var H,I,Q=E.length,V,W,U=0;U<Q;U++){W=[];H=E[U];I=B.length-1;if(I>0){V={};W.nozip=true}I=Y(H);for(var X=0;H=B[X];X++)I(H,W,V);if(!W.length)break;B=W}return W},ga={},t={},x=function(B){var E=m(d(B));if(E.length==1){var H=Y(E[0]);return function(I){if(I=H(I,new g))I.nozip=true;return I}}return function(I){return da(I,E)}},D=navigator.userAgent;D=a.isWebKit&&D.indexOf("WebKit/")>0&&parseFloat(D.split("WebKit/")[1])>528;var J=a.isIE?"commentStrip":
"nozip",P=!!j().querySelectorAll&&(!a.isSafari||a.isSafari>3.1||D),S=/n\+\d|([^ ])?([>~+])([^ =])?/g,$=function(B,E,H,I){return H?(E?E+" ":"")+H+(I?" "+I:""):B},ha=function(B,E){B=B.replace(S,$);if(P){var H=t[B];if(H&&!E)return H}if(H=ga[B])return H;H=B.charAt(0);var I=-1==B.indexOf(" ");if(B.indexOf("#")>=0&&I)E=true;if(P&&!E&&">~+".indexOf(H)==-1&&(!a.isIE||B.indexOf(":")==-1)&&!(h&&B.indexOf(".")>=0)&&B.indexOf(":contains")==-1&&B.indexOf(":checked")==-1&&B.indexOf("|=")==-1){var Q=">~+".indexOf(B.charAt(B.length-
1))>=0?B+" *":B;return t[B]=function(W){try{if(!(9==W.nodeType||I))throw"";var U=W.querySelectorAll(Q);U[J]=true;return U}catch(X){return ha(B,true)(W)}}}else{var V=B.split(/\s*,\s*/);return ga[B]=V.length<2?x(B):function(W){for(var U=0,X=[],ba;ba=V[U++];)X=X.concat(x(ba)(W));return X}}},ia=0,ua=a.isIE?function(B){return f?B.getAttribute("_uid")||B.setAttribute("_uid",++ia)||ia:B.uniqueID}:function(B){return B._uid||(B._uid=++ia)},ka=function(B,E){if(!E)return 1;B=ua(B);if(!E[B])return E[B]=1;return 0},
la="_zipIdx",va=function(B){if(B&&B.nozip)return g._wrap?g._wrap(B):B;var E=new g;if(!B||!B.length)return E;B[0]&&E.push(B[0]);if(B.length<2)return E;ia++;if(a.isIE&&f){var H=ia+"";B[0].setAttribute(la,H);for(var I=1,Q;Q=B[I];I++){B[I].getAttribute(la)!=H&&E.push(Q);Q.setAttribute(la,H)}}else if(a.isIE&&B.commentStrip)try{for(I=1;Q=B[I];I++)o(Q)&&E.push(Q)}catch(V){}else{if(B[0])B[0][la]=ia;for(I=1;Q=B[I];I++){B[I][la]!=ia&&E.push(Q);Q[la]=ia}}return E};a.query=function(B,E){g=a._NodeListCtor;if(!B)return new g;
if(B.constructor==g)return B;if(typeof B!="string")return new g(B);if(typeof E=="string"){E=a.byId(E);if(!E)return new g}E=E||j();var H=E.ownerDocument||E.documentElement;f=E.contentType&&E.contentType=="application/xml"||a.isOpera&&(E.doctype||H.toString()=="[object XMLDocument]")||!!H&&(a.isIE?H.xml:E.xmlVersion||H.xmlVersion);if((B=ha(B)(E))&&B.nozip&&!g._wrap)return B;return va(B)};a.query.pseudos=G;a._filterQueryResult=function(B,E,H){var I=new a._NodeListCtor,Q=m(E);Q=Q.length==1&&!/[^\w#\.]/.test(E)?
L(Q[0]):function(U){return dojo.query(E,H).indexOf(U)!=-1};for(var V=0,W;W=B[V];V++)Q(W)&&I.push(W);return I}},c=function(){acme={trim:function(g){g=g.replace(/^\s+/,"");for(var j=g.length-1;j>=0;j--)if(/\S/.test(g.charAt(j))){g=g.substring(0,j+1);break}return g},forEach:function(g,j,h){if(g&&g.length)for(var k=0,f=g.length;k<f;++k)j.call(h||window,g[k],k,g)},byId:function(g,j){return typeof g=="string"?(j||document).getElementById(g):g},doc:document,NodeList:Array};var a=navigator,d=a.userAgent;
a=a.appVersion;var e=parseFloat(a);acme.isOpera=d.indexOf("Opera")>=0?e:undefined;acme.isKhtml=a.indexOf("Konqueror")>=0?e:undefined;acme.isWebKit=parseFloat(d.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(d.split("Chrome/")[1])||undefined;if((d=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome){acme.isSafari=parseFloat(a.split("Version/")[1]);if(!acme.isSafari||parseFloat(a.substr(d+7))<=419.3)acme.isSafari=2}if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||
undefined;Array._wrap=function(g){return g};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel","dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(a){b(this.queryPortability||this.acme||a)});if(typeof define!="function")if(this.dojo){dojo.provide("dojo._base.query");dojo.require("dojo._base.NodeList");dojo.require("dojo._base.lang");b(this.queryPortability||this.acme||dojo)}else b(this.queryPortability||this.acme||c())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){function c(q,u,y){if(y!==null){var C=q[u];if(typeof C=="string")q[u]=[C,y];else if(a.isArray(C))C.push(y);else q[u]=y}}var a=b,d=a.config;b.fieldToObject=function(q){var u=null;if(q=a.byId(q)){var y=q.name,C=(q.type||"").toLowerCase();if(y&&C&&!q.disabled)if(C=="radio"||C=="checkbox"){if(q.checked)u=q.value}else if(q.multiple){u=[];a.query("option",q).forEach(function(v){v.selected&&
u.push(v.value)})}else u=q.value}return u};b.formToObject=function(q){var u={};a.forEach(b.byId(q).elements,function(y){var C=y.name,v=(y.type||"").toLowerCase();if(C&&v&&"file|submit|image|reset|button|".indexOf(v)==-1&&!y.disabled){c(u,C,a.fieldToObject(y));if(v=="image")u[C+".x"]=u[C+".y"]=u[C].x=u[C].y=0}});return u};b.objectToQuery=function(q){var u=encodeURIComponent,y=[],C={};for(var v in q){var w=q[v];if(w!=C[v]){var A=u(v)+"=";if(a.isArray(w))for(var z=0;z<w.length;z++)y.push(A+u(w[z]));
else y.push(A+u(w))}}return y.join("&")};b.formToQuery=function(q){return a.objectToQuery(a.formToObject(q))};b.formToJson=function(q,u){return a.toJson(a.formToObject(q),u)};b.queryToObject=function(q){var u={};q=q.split("&");var y=decodeURIComponent;a.forEach(q,function(C){if(C.length){var v=C.split("=");C=y(v.shift());v=y(v.join("="));if(typeof u[C]=="string")u[C]=[u[C]];if(a.isArray(u[C]))u[C].push(v);else u[C]=v}});return u};b._blockAsync=false;var e=a._contentHandlers=b.contentHandlers={text:function(q){return q.responseText},
json:function(q){return a.fromJson(q.responseText||null)},"json-comment-filtered":function(q){b.config.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");q=q.responseText;var u=q.indexOf("/*"),y=q.lastIndexOf("*/");if(u==-1||y==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(q.substring(u+2,y))},javascript:function(q){return a.eval(q.responseText)},xml:function(q){var u=q.responseXML;if(a.isIE&&(!u||!u.documentElement)){var y=function(C){return"MSXML"+C+".DOMDocument"};y=["Microsoft.XMLDOM",y(6),y(4),y(3),y(2)];a.some(y,function(C){try{var v=new ActiveXObject(C);v.async=false;v.loadXML(q.responseText);u=v}catch(w){return false}return true})}return u},"json-comment-optional":function(q){return q.responseText&&/^[^{\[]*\/\*/.test(q.responseText)?e["json-comment-filtered"](q):
e.json(q)}};b._ioSetArgs=function(q,u,y,C){var v={args:q,url:q.url},w=null;if(q.form){w=a.byId(q.form);var A=w.getAttributeNode("action");v.url=v.url||(A?A.value:null);w=a.formToObject(w)}A=[{}];w&&A.push(w);q.content&&A.push(q.content);q.preventCache&&A.push({"dojo.preventCache":(new Date).valueOf()});v.query=a.objectToQuery(a.mixin.apply(null,A));v.handleAs=q.handleAs||"text";var z=new a.Deferred(u);z.addCallbacks(y,function(L){return C(L,z)});var F=q.load;F&&a.isFunction(F)&&z.addCallback(function(L){return F.call(q,
L,v)});var G=q.error;G&&a.isFunction(G)&&z.addErrback(function(L){return G.call(q,L,v)});var K=q.handle;K&&a.isFunction(K)&&z.addBoth(function(L){return K.call(q,L,v)});if(d.ioPublish&&a.publish&&v.args.ioPublish!==false){z.addCallbacks(function(L){a.publish("/dojo/io/load",[z,L]);return L},function(L){a.publish("/dojo/io/error",[z,L]);return L});z.addBoth(function(L){a.publish("/dojo/io/done",[z,L]);return L})}z.ioArgs=v;return z};var g=function(q){q.canceled=true;var u=q.ioArgs.xhr,y=typeof u.abort;
if(y=="function"||y=="object"||y=="unknown")u.abort();q=q.ioArgs.error;if(!q){q=new Error("xhr cancelled");q.dojoType="cancel"}return q},j=function(q){q=e[q.ioArgs.handleAs](q.ioArgs.xhr);return q===undefined?null:q},h=function(q,u){u.ioArgs.args.failOk||console.error(q);return q},k=null,f=[],l=0,m=function(q){if(l<=0){l=0;if(d.ioPublish&&a.publish&&(!q||q&&q.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},r=function(){var q=(new Date).getTime();if(!a._blockAsync)for(var u=0,y;u<f.length&&
(y=f[u]);u++){var C=y.dfd,v=function(){if(!C||C.canceled||!y.validCheck(C)){f.splice(u--,1);l-=1}else if(y.ioCheck(C)){f.splice(u--,1);y.resHandle(C);l-=1}else if(C.startTime)if(C.startTime+(C.ioArgs.args.timeout||0)<q){f.splice(u--,1);var A=new Error("timeout exceeded");A.dojoType="timeout";C.errback(A);C.cancel();l-=1}};if(b.config.debugAtAllCosts)v.call(this);else try{v.call(this)}catch(w){C.errback(w)}}m(C);if(!f.length){clearInterval(k);k=null}};b._ioCancelAll=function(){try{a.forEach(f,function(u){try{u.dfd.cancel()}catch(y){}})}catch(q){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(q){if(d.ioPublish&&a.publish&&q.ioArgs.args.ioPublish!==false){l||a.publish("/dojo/io/start");l+=1;a.publish("/dojo/io/send",[q])}};a._ioWatch=function(q,u,y,C){var v=q.ioArgs.args;if(v.timeout)q.startTime=(new Date).getTime();f.push({dfd:q,validCheck:u,ioCheck:y,resHandle:C});k||(k=setInterval(r,50));v.sync&&r()};var n="application/x-www-form-urlencoded",o=function(q){return q.ioArgs.xhr.readyState},p=function(q){return 4==q.ioArgs.xhr.readyState},
s=function(q){var u=q.ioArgs.xhr;if(a._isDocumentOk(u))q.callback(q);else{var y=new Error("Unable to load "+q.ioArgs.url+" status:"+u.status);y.status=u.status;y.responseText=u.responseText;q.errback(y)}};b._ioAddQueryToUrl=function(q){if(q.query.length){q.url+=(q.url.indexOf("?")==-1?"?":"&")+q.query;q.query=null}};b.xhr=function(q,u,y){var C=a._ioSetArgs(u,g,j,h),v=C.ioArgs,w=v.xhr=a._xhrObj(v.args);if(!w){C.cancel();return C}if("postData"in u)v.query=u.postData;else if("putData"in u)v.query=u.putData;
else if("rawBody"in u)v.query=u.rawBody;else if(arguments.length>2&&!y||"POST|PUT".indexOf(q.toUpperCase())==-1)a._ioAddQueryToUrl(v);w.open(q,v.url,u.sync!==true,u.user||undefined,u.password||undefined);if(u.headers)for(var A in u.headers)if(A.toLowerCase()==="content-type"&&!u.contentType)u.contentType=u.headers[A];else u.headers[A]&&w.setRequestHeader(A,u.headers[A]);w.setRequestHeader("Content-Type",u.contentType||n);if(!u.headers||!("X-Requested-With"in u.headers))w.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(C);if(b.config.debugAtAllCosts)w.send(v.query);else try{w.send(v.query)}catch(z){v.error=z;C.cancel()}a._ioWatch(C,o,p,s);return C};b.xhrGet=function(q){return a.xhr("GET",q)};b.rawXhrPost=b.xhrPost=function(q){return a.xhr("POST",q,true)};b.rawXhrPut=b.xhrPut=function(q){return a.xhr("PUT",q,true)};b.xhrDelete=function(q){return a.xhr("DELETE",q)}})();return b.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(b){(function(){var c=b._mixin;b._Line=function(h,k){this.start=h;this.end=k};b._Line.prototype.getValue=function(h){return(this.end-this.start)*h+this.start};b.Animation=function(h){c(this,h);if(b.isArray(this.curve))this.curve=new b._Line(this.curve[0],this.curve[1])};b._Animation=b.Animation;b.extend(b.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var h=this._percent,k=this.easing;return k?k(h):h},_fire:function(h,k){k=k||[];if(this[h])if(b.config.debugAtAllCosts)this[h].apply(this,k);else try{this[h].apply(this,k)}catch(f){console.error("exception in animation handler for:",h);console.error(f)}return this},play:function(h,k){var f=this;f._delayTimer&&f._clearTimer();if(k){f._stopTimer();f._active=f._paused=false;f._percent=0}else if(f._active&&!f._paused)return f;f._fire("beforeBegin",[f.node]);h=h||f.delay;var l=b.hitch(f,
"_play",k);if(h>0){f._delayTimer=setTimeout(l,h);return f}l();return f},_play:function(){var h=this;h._delayTimer&&h._clearTimer();h._startTime=(new Date).valueOf();if(h._paused)h._startTime-=h.duration*h._percent;h._active=true;h._paused=false;var k=h.curve.getValue(h._getStep());if(!h._percent){if(!h._startRepeatCount)h._startRepeatCount=h.repeat;h._fire("onBegin",[k])}h._fire("onPlay",[k]);h._cycle();return h},pause:function(){var h=this;h._delayTimer&&h._clearTimer();h._stopTimer();if(!h._active)return h;
h._paused=true;h._fire("onPause",[h.curve.getValue(h._getStep())]);return h},gotoPercent:function(h,k){var f=this;f._stopTimer();f._active=f._paused=true;f._percent=h;k&&f.play();return f},stop:function(h){var k=this;k._delayTimer&&k._clearTimer();if(!k._timer)return k;k._stopTimer();if(h)k._percent=1;k._fire("onStop",[k.curve.getValue(k._getStep())]);k._active=k._paused=false;return k},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var h=
this;if(h._active){var k=((new Date).valueOf()-h._startTime)/h.duration;if(k>=1)k=1;h._percent=k;if(h.easing)k=h.easing(k);h._fire("onAnimate",[h.curve.getValue(k)]);if(h._percent<1)h._startTimer();else{h._active=false;if(h.repeat>0){h.repeat--;h.play(null,true)}else if(h.repeat==-1)h.play(null,true);else if(h._startRepeatCount){h.repeat=h._startRepeatCount;h._startRepeatCount=0}h._percent=0;h._fire("onEnd",[h.node]);!h.repeat&&h._stopTimer()}}return h},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,d=null,e={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer){this._timer=b.connect(e,"run",this,"_cycle");a++}d||(d=setInterval(b.hitch(e,"run"),this.rate))},_stopTimer:function(){if(this._timer){b.disconnect(this._timer);this._timer=null;a--}if(a<=0){clearInterval(d);d=null;a=0}}});var g=b.isIE?function(h){var k=h.style;if(!k.width.length&&b.style(h,"width")=="auto")k.width="auto"}:function(){};b._fade=function(h){h.node=b.byId(h.node);
var k=c({properties:{}},h);h=k.properties.opacity={};h.start=!("start"in k)?function(){return+b.style(k.node,"opacity")||0}:k.start;h.end=k.end;h=b.animateProperty(k);b.connect(h,"beforeBegin",b.partial(g,k.node));return h};b.fadeIn=function(h){return b._fade(c({end:1},h))};b.fadeOut=function(h){return b._fade(c({end:0},h))};b._defaultEasing=function(h){return 0.5+Math.sin((h+1.5)*Math.PI)/2};var j=function(h){this._properties=h;for(var k in h){var f=h[k];if(f.start instanceof b.Color)f.tempColor=
new b.Color}};j.prototype.getValue=function(h){var k={};for(var f in this._properties){var l=this._properties[f],m=l.start;if(m instanceof b.Color)k[f]=b.blendColors(m,l.end,h,l.tempColor).toCss();else b.isArray(m)||(k[f]=(l.end-m)*h+m+(f!="opacity"?l.units||"px":0))}return k};b.animateProperty=function(h){var k=h.node=b.byId(h.node);if(!h.easing)h.easing=b._defaultEasing;h=new b.Animation(h);b.connect(h,"beforeBegin",h,function(){var f={};for(var l in this.properties){if(l=="width"||l=="height")this.node.display=
"block";var m=this.properties[l];if(b.isFunction(m))m=m(k);m=f[l]=c({},b.isObject(m)?m:{end:m});if(b.isFunction(m.start))m.start=m.start(k);if(b.isFunction(m.end))m.end=m.end(k);var r=l.toLowerCase().indexOf("color")>=0,n=function(o,p){var s={height:o.offsetHeight,width:o.offsetWidth}[p];if(s!==undefined)return s;s=b.style(o,p);return p=="opacity"?+s:r?s:parseFloat(s)};if("end"in m){if(!("start"in m))m.start=n(k,l)}else m.end=n(k,l);if(r){m.start=new b.Color(m.start);m.end=new b.Color(m.end)}else m.start=
l=="opacity"?+m.start:parseFloat(m.start)}this.curve=new j(f)});b.connect(h,"onAnimate",b.hitch(b,"style",h.node));return h};b.anim=function(h,k,f,l,m,r){return b.animateProperty({node:h,duration:f||b.Animation.prototype.duration,properties:k,easing:l,onEnd:m}).play(r||0)}})();return b.animateProperty});
define("dojo",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/Deferred","dojo/_base/json","dojo/_base/Color","dojo/_base/window","dojo/_base/event","dojo/_base/html","dojo/_base/NodeList","dojo/_base/query","dojo/_base/xhr","dojo/_base/fx"],function(b){return b});
define("orion/serviceregistry",["dojo"],function(b){function c(j,h,k){this.serviceId=j;this.name=h;this.properties=k}function a(j,h,k){this.serviceId=j;this.serviceReference=h;this.internalRegistry=k}function d(j,h,k){this.serviceId=j;this.implementation=h;this.internalRegistry=k;var f;for(f in h)if(typeof h[f]==="function")this[f]=function(l){return function(){if(k.isRegistered(j)){var m=new b.Deferred;try{var r=h[l].apply(h,Array.prototype.slice.call(arguments));b.when(r,b.hitch(m,m.resolve),b.hitch(m,
m.reject),b.hitch(m,m.progress))}catch(n){m.reject(n)}return m}throw new Error("Service was unregistered");}}(f)}function e(){this._namedlisteners={}}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var j=this;this.internalRegistry={isRegistered:function(h){return j._entries[h]?true:false},unregisterService:function(h){var k=j._entries[h];if(k){for(var f=k.reference,l=j._namedReferences[f.getName()],m=0;m<l.length;m++)if(l[m]===f){if(l.length===1)delete j._namedReferences[f.getName()];
else l.splice(m,1);break}j._entries[h]=null;j._serviceEventTarget.dispatchEvent("serviceRemoved",f,k.service)}},dispatchEvent:function(h,k){var f=j._entries[h];f&&f.eventTarget.dispatchEvent.apply(f.eventTarget,[k].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(h,k,f){(h=j._entries[h])&&h.eventTarget.addEventListener(k,f)},removeEventListener:function(h,k,f){(h=j._entries[h])&&h.eventTarget.removeEventListener(k,f)}}}c.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var j=[],h;for(h in this.properties)this.properties.hasOwnProperty(h)&&j.push(h);return j},getProperty:function(j){return this.properties[j]}};c.prototype.constructor=c;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(j){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,j].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;d.prototype={addEventListener:function(j,h){this.internalRegistry.addEventListener(this.serviceId,j,h)},removeEventListener:function(j,h){this.internalRegistry.removeEventListener(this.serviceId,j,h)}};d.prototype.constructor=d;e.prototype={dispatchEvent:function(j){var h=this._namedlisteners[j];if(h)for(var k=0;k<h.length;k++)try{var f=Array.prototype.slice.call(arguments,1);h[k].apply(null,f)}catch(l){console.log(l)}},addEventListener:function(j,h){this._namedlisteners[j]=
this._namedlisteners[j]||[];this._namedlisteners[j].push(h)},removeEventListener:function(j,h){var k=this._namedlisteners[j];if(k)for(var f=0;f<k.length;f++)if(k[f]===h){if(k.length===1)delete this._namedlisteners[j];else k.splice(f,1);break}}};e.prototype.constructor=e;g.prototype={getService:function(j,h){var k,f=new b.Deferred;if(typeof j==="string"){if(this._namedReferences[j])for(var l=0;l<this._namedReferences[j].length;l++)if(k=this._entries[this._namedReferences[j][l].getServiceId()].service)break}else k=
this._entries[j.getServiceId()].service;if(k)f.resolve(k);else if(h===0)f.reject(new Error("timeout: getService"));else{var m=this,r=function(n,o){if(j===n||j===n.getName()){f.resolve(o);m._serviceEventTarget.removeEventListener("serviceAdded",r)}};this._serviceEventTarget.addEventListener("serviceAdded",r)}return f.promise},getServiceReferences:function(j){if(j)return this._namedReferences[j]?this._namedReferences[j]:[];j=[];for(var h=0;h<this._entries.length;h++)this._entries[h]&&j.push(this._entries[h].reference);
return j},registerService:function(j,h,k){var f=this._entries.length;k=new c(f,j,k);h=new d(f,h,this.internalRegistry);this._namedReferences[j]=this._namedReferences[j]||[];this._namedReferences[j].push(k);this._entries.push({reference:k,service:h,eventTarget:new e});this._serviceEventTarget.dispatchEvent("serviceAdded",k,h);return new a(f,k,this.internalRegistry)},addEventListener:function(j,h){this._serviceEventTarget.addEventListener(j,h)},removeEventListener:function(j,h){this._serviceEventTarget.removeEventListener(j,
h)}};g.prototype.constructor=g;return{ServiceReference:c,ServiceRegistration:a,Service:d,EventTarget:e,ServiceRegistry:g}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("dojo/hash",["dojo"],function(b){(function(){function c(m,r){r=m.indexOf(r);return r>=0?m.substring(r+1):""}function a(){return c(location.href,"#")}function d(){b.publish("/dojo/hashchange",[a()])}function e(){if(a()!==h){h=a();d()}}function g(m){if(k)if(k.isTransitioning())setTimeout(b.hitch(null,g,m),l);else{var r=k.iframe.location.href,n=r.indexOf("?");k.iframe.location.replace(r.substring(0,n)+"?"+m)}else{location.replace("#"+m);!f&&e()}}function j(){function m(){h=a();o=u?h:c(y.href,
"?");p=false;s=null}var r=document.createElement("iframe"),n=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html");b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");r.id="dojo-hash-iframe";r.src=n+"?"+a();r.style.display="none";document.body.appendChild(r);this.iframe=b.global["dojo-hash-iframe"];
var o,p,s,q,u,y=this.iframe.location;this.isTransitioning=function(){return p};this.pollLocation=function(){if(!u)try{var C=c(y.href,"?");if(document.title!=q)q=this.iframe.document.title=document.title}catch(v){u=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var w=a();if(p&&h===w)if(u||C===s){m();d()}else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===w&&(u||o===C)))if(h!==w){h=w;p=true;s=w;r.src=n+"?"+s;u=false;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!u){location.href="#"+y.search.substring(1);m();d()}setTimeout(b.hitch(this,this.pollLocation),l)};m();setTimeout(b.hitch(this,this.pollLocation),l)}b.hash=function(m,r){if(!arguments.length)return a();if(m.charAt(0)=="#")m=m.substring(1);if(r)g(m);else location.href="#"+m;return m};var h,k,f,l=b.config.hashPollFrequency||100;b.addOnLoad(function(){if("onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat"))f=b.connect(b.global,"onhashchange",d);else if(document.addEventListener){h=
a();setInterval(e,l)}else if(document.attachEvent)k=new j})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],c=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,d=[];define("text",["require","exports","module"],function(){var e,g,j;if(typeof window!=="undefined"&&window.navigator&&window.document)g=function(h,k){var f=e.createXhr();f.open("GET",h,true);f.onreadystatechange=function(){f.readyState===4&&k(f.responseText)};f.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){j=require.nodeRequire("fs");g=function(h,k){k(j.readFileSync(h,"utf8"))}}else if(typeof Packages!=="undefined")g=function(h,k){var f=new java.io.File(h);h=java.lang.System.getProperty("line.separator");f=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(f),"utf-8"));var l,m,r="";try{l=new java.lang.StringBuffer;if((m=f.readLine())&&m.length()&&m.charAt(0)===65279)m=m.substring(1);for(l.append(m);(m=f.readLine())!==null;){l.append(h);l.append(m)}r=
String(l.toString())}finally{f.close()}k(r)};return e={version:"0.24.0",strip:function(h){if(h){h=h.replace(c,"");var k=h.match(a);if(k)h=k[1]}else h="";return h},jsEscape:function(h){return h.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 h,k,f;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(k=0;k<3;k++){f=b[k];try{h=new ActiveXObject(f)}catch(l){}if(h){b=
[f];break}}if(!h)throw new Error("require.getXhr(): XMLHttpRequest not available");return h},get:g,load:function(h,k,f,l){var m=false,r=h.indexOf("."),n=h.substring(0,r),o=h.substring(r+1,h.length);r=o.indexOf("!");if(r!==-1){m=o.substring(r+1,o.length);m=m==="strip";o=o.substring(0,r)}k=k.nameToUrl(n,"."+o);e.get(k,function(p){p=m?e.strip(p):p;if(l.isBuild&&l.inlineText)d[h]=p;f(p)})},write:function(h,k,f){if(k in d){var l=e.jsEscape(d[k]);f("define('"+h+"!"+k+"', function () { return '"+l+"';});\n")}}}})})();
define("text!dijit/form/templates/ValidationTextBox.html",function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/i18n",["require","dojo"],function(b,c){c.getObject("i18n",true,c);c.i18n.getLocalization=c.i18n.getLocalization||function(a,d,e){e=c.i18n.normalizeLocale(e);var g=e.split("-"),j=[a,"nls",d].join(".");if(typeof c.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",d].join("/"));(c._loadedModules[j]=c._loadedModules[j]||{})[g.join("_")]=h.root||h}if(j=c._loadedModules[j]){var k;for(h=g.length;h>0;h--){var f=g.slice(0,h).join("_");if(j[f]){k=j[f];break}}if(!k)k=j.ROOT;
if(k){a=function(){};a.prototype=k;return new a}}throw new Error("Bundle not found: "+d+" in "+a+" , locale="+e);};c.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():c.locale;if(a=="root")a="ROOT";return a};c.i18n._requireLocalization=function(a,d,e,g){e=c.i18n.normalizeLocale(e);var j=[a,"nls",d].join("."),h="";if(g){for(var k=g.split(","),f=0;f<k.length;f++)if(e.indexOf(k[f])==0)if(k[f].length>h.length)h=k[f];h||(h="ROOT")}k=g?h:e;var l=c._loadedModules[j];f=null;if(l){if(c.config.localizationComplete&&
l._built)return;f=k.replace(/-/g,"_");f=c._loadedModules[j+"."+f]}if(!f){l=c.provide(j);var m=c._getModuleSymbols(a).concat("nls").join("/"),r;c.i18n._searchLocalePath(k,g,function(n){var o=n.replace(/-/g,"_"),p=j+"."+o,s=false;if(c._loadedModules[p])s=true;else{c.provide(p);p=[m];n!="ROOT"&&p.push(n);p.push(d);n=p.join("/")+".js";s=c._loadPath(n,null,function(q){q=q.root||q;var u=function(){};u.prototype=r;l[o]=new u;for(var y in q)l[o][y]=q[y]})}if(s&&l[o])r=l[o];else l[o]=r;if(g)return true})}if(g&&
e!=h)l[e.replace(/-/g,"_")]=l[h.replace(/-/g,"_")]};(function(){var a=c.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var d=c.i18n._requireLocalization;c.i18n._requireLocalization=function(e,g,j,h){d(e,g,j,h);if(!j)for(j=0;j<a.length;j++)d(e,g,a[j],h)}}})();c.i18n._searchLocalePath=function(a,d,e){a=c.i18n.normalizeLocale(a);var g=a.split("-");a=[];for(var j=g.length;j>0;j--)a.push(g.slice(0,j).join("-"));a.push(false);d&&a.reverse();for(d=a.length-1;d>=0;d--)if(e(a[d]||"ROOT"))break};c.i18n._preloadLocalizations=
function(a,d){function e(h){h=c.i18n.normalizeLocale(h);c.i18n._searchLocalePath(h,true,function(k){for(var f=0;f<d.length;f++)if(d[f]==k){c.require(a+"_"+k);return true}return false})}e();for(var g=c.config.extraLocale||[],j=0;j<g.length;j++)e(g[j])};return c.i18n});define("text!dijit/form/templates/TextBox.html",function(){return'<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/window",["dojo"],function(b){b.getObject("window",true,b);b.window.getBox=function(){var c=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:c.clientWidth,h:c.clientHeight,l:a.x,t:a.y}};b.window.get=function(c){if(b.isIE&&window!==document.parentWindow){c.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=c._parentWindow;c._parentWindow=null;return a}return c.parentWindow||c.defaultView};b.window.scrollIntoView=function(c,
a){try{c=b.byId(c);var d=c.ownerDocument||b.doc,e=d.body||b.body(),g=d.documentElement||e.parentNode,j=b.isIE,h=b.isWebKit;if((!(b.isMoz||j||h||b.isOpera)||c==e||c==g)&&typeof c.scrollIntoView!="undefined")c.scrollIntoView(false);else{var k=d.compatMode=="BackCompat",f=j>=9&&c.ownerDocument.parentWindow.frameElement?g.clientHeight>0&&g.clientWidth>0&&(e.clientHeight==0||e.clientWidth==0||e.clientHeight>g.clientHeight||e.clientWidth>g.clientWidth)?g:e:k?e:g;d=h?e:f;var l=f.clientWidth,m=f.clientHeight,
r=!b._isBodyLtr(),n=a||b.position(c),o=c.parentNode;a=function(G){return j<=6||j&&k?false:b.style(G,"position").toLowerCase()=="fixed"};if(!a(c))for(;o;){if(o==e)o=d;var p=b.position(o),s=a(o);if(o==d){p.w=l;p.h=m;if(d==g&&j&&r)p.x+=d.offsetWidth-p.w;if(p.x<0||!j)p.x=0;if(p.y<0||!j)p.y=0}else{var q=b._getPadBorderExtents(o);p.w-=q.w;p.h-=q.h;p.x+=q.l;p.y+=q.t;var u=o.clientWidth,y=p.w-u;if(u>0&&y>0){p.w=u;p.x+=r&&(j||o.clientLeft>q.l)?y:0}u=o.clientHeight;y=p.h-u;if(u>0&&y>0)p.h=u}if(s){if(p.y<0){p.h+=
p.y;p.y=0}if(p.x<0){p.w+=p.x;p.x=0}if(p.y+p.h>m)p.h=m-p.y;if(p.x+p.w>l)p.w=l-p.x}var C=n.x-p.x,v=n.y-Math.max(p.y,0),w=C+n.w-p.w,A=v+n.h-p.h;if(w*C>0){var z=Math[C<0?"max":"min"](C,w);if(r&&(j==8&&!k||j>=9))z=-z;n.x+=o.scrollLeft;o.scrollLeft+=z;n.x-=o.scrollLeft}if(A*v>0){n.y+=o.scrollTop;o.scrollTop+=Math[v<0?"max":"min"](v,A);n.y-=o.scrollTop}o=o!=d&&!s&&o.parentNode}}}catch(F){console.error("scrollIntoView: "+F);c.scrollIntoView(false)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,c){b.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw new Error("Tried to register widget with id=="+a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){if(this._hash[a]){delete this._hash[a];this.length--}},forEach:function(a,d){d=d||b.global;var e=0,g;for(g in this._hash)a.call(d,this._hash[g],e++,this._hash);return this},
filter:function(a,d){d=d||b.global;var e=new c.WidgetSet,g=0,j;for(j in this._hash){var h=this._hash[j];a.call(d,h,g++,this._hash)&&e.add(h)}return e},byId:function(a){return this._hash[a]},byClass:function(a){var d=new c.WidgetSet,e,g;for(e in this._hash){g=this._hash[e];g.declaredClass==a&&d.add(g)}return d},toArray:function(){var a=[];for(var d in this._hash)a.push(this._hash[d]);return a},map:function(a,d){return b.map(this.toArray(),a,d)},every:function(a,d){d=d||b.global;var e=0,g;for(g in this._hash)if(!a.call(d,
this._hash[g],e++,this._hash))return false;return true},some:function(a,d){d=d||b.global;var e=0,g;for(g in this._hash)if(a.call(d,this._hash[g],e++,this._hash))return true;return false}});(function(){c.registry=new c.WidgetSet;var a=c.registry._hash,d=b.attr,e=b.hasAttr,g=b.style;c.byId=function(f){return typeof f=="string"?a[f]:f};var j={};c.getUniqueId=function(f){var l;do l=f+"_"+(f in j?++j[f]:(j[f]=0));while(a[l]);return c._scopeName=="dijit"?l:c._scopeName+"_"+l};c.findWidgets=function(f){function l(r){for(r=
r.firstChild;r;r=r.nextSibling)if(r.nodeType==1){var n=r.getAttribute("widgetId");if(n)(n=a[n])&&m.push(n);else l(r)}}var m=[];l(f);return m};c._destroyAll=function(){c._curFocus=null;c._prevFocus=null;c._activeStack=[];b.forEach(c.findWidgets(b.body()),function(f){if(!f._destroyed)if(f.destroyRecursive)f.destroyRecursive();else f.destroy&&f.destroy()})};b.isIE&&b.addOnWindowUnload(function(){c._destroyAll()});c.byNode=function(f){return a[f.getAttribute("widgetId")]};c.getEnclosingWidget=function(f){for(;f;){var l=
f.getAttribute&&f.getAttribute("widgetId");if(l)return a[l];f=f.parentNode}return null};var h=c._isElementShown=function(f){var l=g(f);return l.visibility!="hidden"&&l.visibility!="collapsed"&&l.display!="none"&&d(f,"type")!="hidden"};c.hasDefaultTabStop=function(f){switch(f.nodeName.toLowerCase()){case "a":return e(f,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var l;try{var m=f.contentDocument;if("designMode"in m&&m.designMode==
"on")return true;l=m.body}catch(r){try{l=f.contentWindow.document.body}catch(n){return false}}return l.contentEditable=="true"||l.firstChild&&l.firstChild.contentEditable=="true";default:return f.contentEditable=="true"}};var k=c.isTabNavigable=function(f){return d(f,"disabled")?false:e(f,"tabIndex")?d(f,"tabIndex")>=0:c.hasDefaultTabStop(f)};c._getTabNavigable=function(f){function l(C){return C&&C.tagName.toLowerCase()=="input"&&C.type&&C.type.toLowerCase()=="radio"&&C.name&&C.name.toLowerCase()}
function m(C){return u[l(C)]||C}var r,n,o,p,s,q,u={},y=function(C){b.query("> *",C).forEach(function(v){if(!(b.isIE&&v.scopeName!=="HTML"||!h(v))){if(k(v)){var w=d(v,"tabIndex");if(!e(v,"tabIndex")||w==0){r||(r=v);n=v}else if(w>0){if(!o||w<p){p=w;o=v}if(!s||w>=q){q=w;s=v}}w=l(v);if(b.attr(v,"checked")&&w)u[w]=v}v.nodeName.toUpperCase()!="SELECT"&&y(v)}})};h(f)&&y(f);return{first:m(r),last:m(n),lowest:m(o),highest:m(s)}};c.getFirstInTabbingOrder=function(f){f=c._getTabNavigable(b.byId(f));return f.lowest?
f.lowest:f.first};c.getLastInTabbingOrder=function(f){f=c._getTabNavigable(b.byId(f));return f.last?f.last:f.highest};c.defaultDuration=b.config.defaultDuration||200})();return c});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(c){c&&b.mixin(this,c)},get:function(c){return this[c]},set:function(c,a){if(typeof c==="object"){for(var d in c)this.set(d,c[d]);return this}d=this[c];this[c]=a;this._watchCallbacks&&this._watchCallbacks(c,d,a);return this},watch:function(c,a){var d=this._watchCallbacks;if(!d){var e=this;d=this._watchCallbacks=function(j,h,k,f){var l=function(m){if(m){m=m.slice();for(var r=0,n=m.length;r<n;r++)try{m[r].call(e,
j,h,k)}catch(o){console.error(o)}}};l(d["_"+j]);f||l(d["*"])}}if(!a&&typeof c==="function"){a=c;c="*"}else c="_"+c;var g=d[c];if(typeof g!=="object")g=d[c]=[];g.push(a);return{unwatch:function(){g.splice(b.indexOf(g,a),1)}}}});return b.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(b,c){(function(){b.declare("dijit._WidgetBase",b.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,d){this.create(a,d)},create:function(a,d){this.srcNodeRef=
b.byId(d);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a){this.params=a;b._mixin(this,a)}this.postMixInProperties();if(!this.id)this.id=c.getUniqueId(this.declaredClass.replace(/\./g,"_"));c.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();(a=this.srcNodeRef)&&a.parentNode&&this.domNode!==a&&a.parentNode.replaceChild(this.domNode,a)}this.domNode&&this.domNode.setAttribute("widgetId",this.id);
this.postCreate();this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;this._created=true},_applyAttributes:function(){var a=function(e,g){if(g.params&&e in g.params||g[e])g.set(e,g[e])};for(var d in this.attributeMap)a(d,this);b.forEach(this._getSetterAttributes(),function(e){e in this.attributeMap||a(e,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var d=a._setterAttrs=[],e,g=a.prototype;for(var j in g)if(b.isFunction(g[j])&&(e=j.match(/^_set([a-zA-Z]*)Attr$/))&&
e[1])d.push(e[1].charAt(0).toLowerCase()+e[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||b.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(b.map(a,function(d){return d+"Rtl"})));b.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=true},destroyRecursive:function(a){this._beingDestroyed=true;this.destroyDescendants(a);this.destroy(a)},
destroy:function(a){this._beingDestroyed=true;this.uninitialize();var d=b.forEach,e=b.unsubscribe;d(this._connects,function(g){d(g,b.disconnect)});d(this._subscribes,function(g){e(g)});d(this._supportingWidgets||[],function(g){if(g.destroyRecursive)g.destroyRecursive();else g.destroy&&g.destroy()});this.destroyRendering(a);c.registry.remove(this.id);this._destroyed=true},destroyRendering:function(a){if(this.bgIframe){this.bgIframe.destroy(a);delete this.bgIframe}if(this.domNode){a?b.removeAttr(this.domNode,
"widgetId"):b.destroy(this.domNode);delete this.domNode}if(this.srcNodeRef){a||b.destroy(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(a){b.forEach(this.getChildren(),function(d){d.destroyRecursive&&d.destroyRecursive(a)})},uninitialize:function(){return false},_setClassAttr:function(a){b.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var d=this[this.attributeMap.style||"domNode"];if(b.isObject(a))b.style(d,
a);else if(d.style.cssText)d.style.cssText+="; "+a;else d.style.cssText=a;this._set("style",a)},_attrToDom:function(a,d){var e=this.attributeMap[a];b.forEach(b.isArray(e)?e:[e],function(g){var j=this[g.node||g||"domNode"];switch(g.type||"attribute"){case "attribute":if(b.isFunction(d))d=b.hitch(this,d);g=g.attribute?g.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(j,g,d);break;case "innerText":j.innerHTML="";j.appendChild(b.doc.createTextNode(d));break;case "innerHTML":j.innerHTML=
d;break;case "class":b.replaceClass(j,d,this[a]);break}},this)},get:function(a){var d=this._getAttrNames(a);return this[d.g]?this[d.g]():this[a]},set:function(a,d){if(typeof a==="object"){for(var e in a)this.set(e,a[e]);return this}e=this._getAttrNames(a);if(this[e.s])var g=this[e.s].apply(this,Array.prototype.slice.call(arguments,1));else{a in this.attributeMap&&this._attrToDom(a,d);this._set(a,d)}return g||this},_attrPairNames:{},_getAttrNames:function(a){var d=this._attrPairNames;if(d[a])return d[a];
var e=a.charAt(0).toUpperCase()+a.substr(1);return d[a]={n:a+"Node",s:"_set"+e+"Attr",g:"_get"+e+"Attr"}},_set:function(a,d){var e=this[a];this[a]=d;this._watchCallbacks&&this._created&&d!==e&&this._watchCallbacks(a,e,d)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(c.byNode):[]},getChildren:function(){return this.containerNode?c.findWidgets(this.containerNode):
[]},connect:function(a,d,e){a=[b._connect(a,d,this,e)];this._connects.push(a);return a},disconnect:function(a){for(var d=0;d<this._connects.length;d++)if(this._connects[d]==a){b.forEach(a,b.disconnect);this._connects.splice(d,1);return}},subscribe:function(a,d){a=b.subscribe(a,this,d);this._subscribes.push(a);return a},unsubscribe:function(a){for(var d=0;d<this._subscribes.length;d++)if(this._subscribes[d]==a){b.unsubscribe(a);this._subscribes.splice(d,1);return}},isLeftToRight:function(){return this.dir?
this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,d){a.declaredClass&&a.addChild?a.addChild(this,d):b.place(this.domNode,a,d);return this}})})();return c._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,c){b.mixin(c,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return c.getBookmark().isCollapsed},getBookmark:function(){var a,d,e=b.doc.selection,g=c._curFocus;if(b.global.getSelection){if(e=b.global.getSelection())if(e.isCollapsed){if(a=g?g.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!g.type||g.type.toLowerCase()=="text")){e={start:g.selectionStart,end:g.selectionEnd,node:g,pRange:true};
return{isCollapsed:e.end<=e.start,mark:e}}}a={isCollapsed:true};if(e.rangeCount)a.mark=e.getRangeAt(0).cloneRange()}else{d=e.getRangeAt(0);a={isCollapsed:false,mark:d.cloneRange()}}}else if(e){a=g?g.tagName:"";a=a.toLowerCase();if(g&&a&&(a=="button"||a=="textarea"||a=="input"))if(e.type&&e.type.toLowerCase()=="none")return{isCollapsed:true,mark:null};else{d=e.createRange();return{isCollapsed:d.text&&d.text.length?false:true,mark:{range:d,pRange:true}}}a={};try{d=e.createRange();a.isCollapsed=!(e.type==
"Text"?d.htmlText.length:d.length)}catch(j){a.isCollapsed=true;return a}if(e.type.toUpperCase()=="CONTROL")if(d.length){a.mark=[];e=0;for(g=d.length;e<g;)a.mark.push(d.item(e++))}else{a.isCollapsed=true;a.mark=null}else a.mark=d.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var d=b.doc;if(a=a.mark)if(b.global.getSelection){var e=b.global.getSelection();if(e&&e.removeAllRanges)if(a.pRange){e=a.node;e.selectionStart=
a.start;e.selectionEnd=a.end}else{e.removeAllRanges();e.addRange(a)}else console.warn("No idea how to restore selection for this browser!")}else if(d.selection&&a){var g;if(a.pRange)g=a.range;else if(b.isArray(a)){g=d.body.createControlRange();b.forEach(a,function(j){g.addElement(j)})}else{g=d.body.createTextRange();g.moveToBookmark(a)}g.select()}},getFocus:function(a,d){a=!c._curFocus||a&&b.isDescendant(c._curFocus,a.domNode)?c._prevFocus:c._curFocus;return{node:a,bookmark:a==c._curFocus&&b.withGlobal(d||
b.global,c.getBookmark),openedForWindow:d}},focus:function(a){if(a){var d="node"in a?a.node:a,e=a.bookmark;a=a.openedForWindow;var g=e?e.isCollapsed:false;if(d){var j=d.tagName.toLowerCase()=="iframe"?d.contentWindow:d;if(j&&j.focus)try{j.focus()}catch(h){}c._onFocusNode(d)}if(e&&b.withGlobal(a||b.global,c.isCollapsed)&&!g){a&&a.focus();try{b.withGlobal(a||b.global,c.moveToBookmark,null,[e])}catch(k){}}}},_activeStack:[],registerIframe:function(a){return c.registerWin(a.contentWindow,a)},unregisterIframe:function(a){c.unregisterWin(a)},
registerWin:function(a,d){var e=function(l){c._justMouseDowned=true;setTimeout(function(){c._justMouseDowned=false},0);b.isIE&&l&&l.srcElement&&l.srcElement.parentNode==null||c._onTouchNode(d||l.target||l.srcElement,"mouse")},g=b.isIE?a.document.documentElement:a.document;if(g)if(b.isIE){a.document.body.attachEvent("onmousedown",e);var j=function(l){l.srcElement.tagName.toLowerCase()!="#document"&&c.isTabNavigable(l.srcElement)?c._onFocusNode(d||l.srcElement):c._onTouchNode(d||l.srcElement)};g.attachEvent("onactivate",
j);var h=function(l){c._onBlurNode(d||l.srcElement)};g.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",e);g.detachEvent("onactivate",j);g.detachEvent("ondeactivate",h);g=null}}else{g.body.addEventListener("mousedown",e,true);var k=function(l){c._onFocusNode(d||l.target)};g.addEventListener("focus",k,true);var f=function(l){c._onBlurNode(d||l.target)};g.addEventListener("blur",f,true);return function(){g.body.removeEventListener("mousedown",e,true);g.removeEventListener("focus",
k,true);g.removeEventListener("blur",f,true);g=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){c._prevFocus=c._curFocus;c._curFocus=null;if(!c._justMouseDowned){c._clearActiveWidgetsTimer&&clearTimeout(c._clearActiveWidgetsTimer);c._clearActiveWidgetsTimer=setTimeout(function(){delete c._clearActiveWidgetsTimer;c._setStack([]);c._prevFocus=null},100)}},_onTouchNode:function(a,d){if(c._clearActiveWidgetsTimer){clearTimeout(c._clearActiveWidgetsTimer);delete c._clearActiveWidgetsTimer}var e=
[];try{for(;a;){var g=b.attr(a,"dijitPopupParent");if(g)a=c.byId(g).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===b.body())break;a=b.window.get(a.ownerDocument).frameElement}else{var j=a.getAttribute&&a.getAttribute("widgetId"),h=j&&c.byId(j);h&&!(d=="mouse"&&h.get("disabled"))&&e.unshift(j);a=a.parentNode}}}catch(k){}c._setStack(e,d)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){c._onTouchNode(a);if(a!=c._curFocus){if(c._curFocus)c._prevFocus=c._curFocus;c._curFocus=a;b.publish("focusNode",
[a])}}},_setStack:function(a,d){var e=c._activeStack;c._activeStack=a;for(var g=0;g<Math.min(e.length,a.length);g++)if(e[g]!=a[g])break;for(var j,h=e.length-1;h>=g;h--)if(j=c.byId(e[h])){j._focused=false;j.set("focused",false);j._hasBeenBlurred=true;j._onBlur&&j._onBlur(d);b.publish("widgetBlur",[j,d])}for(h=g;h<a.length;h++)if(j=c.byId(a[h])){j._focused=true;j.set("focused",true);j._onFocus&&j._onFocus(d);b.publish("widgetFocus",[j,d])}}});b.addOnLoad(function(){var a=c.registerWin(window);b.isIE&&
b.addOnWindowUnload(function(){c.unregisterWin(a);a=null})});return c});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(c){this.pairs=[];this.returnWrappers=c||false};b.extend(b.AdapterRegistry,{register:function(c,a,d,e,g){this.pairs[g?"unshift":"push"]([c,a,d,e])},match:function(){for(var c=0;c<this.pairs.length;c++){var a=this.pairs[c];if(a[1].apply(this,arguments))return a[3]||this.returnWrappers?a[2]:a[2].apply(this,arguments)}throw new Error("No match found");},unregister:function(c){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
c){this.pairs.splice(a,1);return true}return false}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,c){c.getViewport=function(){return b.window.getBox()};c.placeOnScreen=function(a,d,e,g){e=b.map(e,function(j){var h={corner:j,pos:{x:d.x,y:d.y}};if(g){h.pos.x+=j.charAt(1)=="L"?g.x:-g.x;h.pos.y+=j.charAt(0)=="T"?g.y:-g.y}return h});return c._place(a,e)};c._place=function(a,d,e,g){var j=b.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")b.body().appendChild(a);var h=null;
b.some(d,function(f){var l=f.corner,m=f.pos,r=0,n={w:l.charAt(1)=="L"?j.l+j.w-m.x:m.x-j.l,h:l.charAt(1)=="T"?j.t+j.h-m.y:m.y-j.t};if(e){r=e(a,f.aroundCorner,l,n,g);r=typeof r=="undefined"?0:r}var o=a.style,p=o.display,s=o.visibility;o.visibility="hidden";o.display="";var q=b.marginBox(a);o.display=p;o.visibility=s;o=Math.max(j.l,l.charAt(1)=="L"?m.x:m.x-q.w);p=Math.max(j.t,l.charAt(0)=="T"?m.y:m.y-q.h);s=Math.min(j.l+j.w,l.charAt(1)=="L"?o+q.w:m.x);m=Math.min(j.t+j.h,l.charAt(0)=="T"?p+q.h:m.y);s=
s-o;m=m-p;r+=q.w-s+(q.h-m);if(h==null||r<h.overflow)h={corner:l,aroundCorner:f.aroundCorner,x:o,y:p,w:s,h:m,overflow:r,spaceAvailable:n};return!r});h.overflow&&e&&e(a,h.aroundCorner,h.corner,h.spaceAvailable,g);d=b._isBodyLtr();var k=a.style;k.top=h.y+"px";k[d?"left":"right"]=(d?h.x:j.w-h.x-h.w)+"px";return h};c.placeOnScreenAroundNode=function(a,d,e,g){d=b.byId(d);d=b.position(d,true);return c._placeOnScreenAroundRect(a,d.x,d.y,d.w,d.h,e,g)};c.placeOnScreenAroundRectangle=function(a,d,e,g){return c._placeOnScreenAroundRect(a,
d.x,d.y,d.width,d.height,e,g)};c._placeOnScreenAroundRect=function(a,d,e,g,j,h,k){var f=[];for(var l in h)f.push({aroundCorner:l,corner:h[l],pos:{x:d+(l.charAt(1)=="L"?0:g),y:e+(l.charAt(0)=="T"?0:j)}});return c._place(a,f,k,{w:g,h:j})};c.placementRegistry=new b.AdapterRegistry;c.placementRegistry.register("node",function(a,d){return typeof d=="object"&&typeof d.offsetWidth!="undefined"&&typeof d.offsetHeight!="undefined"},c.placeOnScreenAroundNode);c.placementRegistry.register("rect",function(a,
d){return typeof d=="object"&&"x"in d&&"y"in d&&"width"in d&&"height"in d},c.placeOnScreenAroundRectangle);c.placeOnScreenAroundElement=function(){return c.placementRegistry.match.apply(c.placementRegistry,arguments)};c.getPopupAroundAlignment=function(a,d){var e={};b.forEach(a,function(g){switch(g){case "after":e[d?"BR":"BL"]=d?"BL":"BR";break;case "before":e[d?"BL":"BR"]=d?"BR":"BL";break;case "below-alt":d=!d;case "below":e[d?"BL":"BR"]=d?"TL":"TR";e[d?"BR":"BL"]=d?"TR":"TL";break;case "above-alt":d=
!d;case "above":default:e[d?"TL":"TR"]=d?"BL":"BR";e[d?"TR":"TL"]=d?"BR":"BL";break}});return e};return c});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,c){c.getDocumentWindow=function(a){return b.window.get(a)};return c});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,c){c.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var d=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),e=a.domNode||a;if(!d){d=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body());d.appendChild(e);e=e.style;e.display="";e.visibility="";e.position="";e.top="0px";if(a.declaredClass){a._popupWrapper=
d;b.connect(a,"destroy",function(){b.destroy(d);delete a._popupWrapper})}}return d},moveOffScreen:function(a){a=this._createWrapper(a);b.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);b.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,d=a.length-1;d>0&&a[d].parent===a[d-1].widget;d--);return a[d]},open:function(a){for(var d=this._stack,e=a.popup,g=a.orient||((a.parent?a.parent.isLeftToRight():b._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),j=a.around,h=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;d.length&&(!a.parent||!b.isDescendant(a.parent.domNode,d[d.length-1].widget.domNode));)c.popup.close(d[d.length-1].widget);var k=this._createWrapper(e);b.attr(k,{id:h,style:{zIndex:this._beginZIndex+d.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(b.isIE||b.isMoz)if(!e.bgIframe)e.bgIframe=
new c.BackgroundIframe(k);g=j?c.placeOnScreenAroundElement(k,j,g,e.orient?b.hitch(e,"orient"):null):c.placeOnScreen(k,a,g=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);k.style.display="";k.style.visibility="visible";e.domNode.style.visibility="visible";j=[];j.push(b.connect(k,"onkeypress",this,function(f){if(f.charOrCode==b.keys.ESCAPE&&a.onCancel){b.stopEvent(f);a.onCancel()}else if(f.charOrCode===b.keys.TAB){b.stopEvent(f);(f=this.getTopPopup())&&f.onCancel&&f.onCancel()}}));e.onCancel&&
j.push(b.connect(e,"onCancel",a.onCancel));j.push(b.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var f=this.getTopPopup();f&&f.onExecute&&f.onExecute()}));d.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:j});e.onOpen&&e.onOpen(g);return g},close:function(a){for(var d=this._stack;a&&b.some(d,function(h){return h.widget==a})||!a&&d.length;){var e=d.pop(),g=e.widget,j=e.onClose;g.onClose&&g.onClose();b.forEach(e.handlers,b.disconnect);
g&&g.domNode&&this.hide(g);j&&j()}}};c._frames=new (function(){var a=[];this.pop=function(){var d;if(a.length){d=a.pop();d.style.display=""}else{if(b.isIE<9){d="<iframe src='"+(b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";d=b.doc.createElement(d)}else{d=b.create("iframe");d.src='javascript:""';d.className="dijitBackgroundIframe";b.style(d,"opacity",0.1)}d.tabIndex=
-1;c.setWaiRole(d,"presentation")}return d};this.push=function(d){d.style.display="none";a.push(d)}});c.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(b.isIE||b.isMoz){var d=this.iframe=c._frames.pop();a.appendChild(d);if(b.isIE<7||b.isQuirks){this.resize(a);this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})}else b.style(d,{width:"100%",height:"100%"})}};b.extend(c.BackgroundIframe,{resize:function(a){this.iframe&&b.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+
"px"})},destroy:function(){if(this._conn){b.disconnect(this._conn);this._conn=null}if(this.iframe){c._frames.push(this.iframe);delete this.iframe}}});return c.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,c){c.scrollIntoView=function(a,d){b.window.scrollIntoView(a,d)};return c.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var c=b.doc.documentElement,a=b.isIE,d=b.isOpera,e=Math.floor,g=b.isFF,j=b.boxModel.replace(/-/,"");a={dj_ie:a,dj_ie6:e(a)==6,dj_ie7:e(a)==7,dj_ie8:e(a)==8,dj_ie9:e(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:d,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:e(g)==3};a["dj_"+j]=true;var h="";for(var k in a)if(a[k])h+=k+" ";c.className=b.trim(c.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var f=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");c.className=b.trim(c.className+" "+f)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,c){return c});
define("dijit/_base/typematic",["dojo","dijit"],function(b,c){c.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,d,e,g,j,h,k,f){if(j!=this._obj){this.stop();
this._initialDelay=k||500;this._subsequentDelay=h||0.9;this._minDelay=f||10;this._obj=j;this._evt=a;this._node=e;this._count=this._currentTimeout=-1;this._callback=b.hitch(d,g);this._fireEventAndReload();this._evt=b.mixin({faux:true},a)}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null}},addKeyListener:function(a,d,e,g,j,h,k){if(d.keyCode){d.charOrCode=d.keyCode;b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0")}else if(d.charCode){d.charOrCode=String.fromCharCode(d.charCode);b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[b.connect(a,"onkeypress",this,function(f){if(f.charOrCode==d.charOrCode&&(d.ctrlKey===undefined||d.ctrlKey==f.ctrlKey)&&(d.altKey===undefined||d.altKey==f.altKey)&&(d.metaKey===undefined||d.metaKey==(f.metaKey||false))&&(d.shiftKey===undefined||d.shiftKey==f.shiftKey)){b.stopEvent(f);c.typematic.trigger(f,
e,a,g,d,j,h,k)}else c.typematic._obj==d&&c.typematic.stop()}),b.connect(a,"onkeyup",this,function(){c.typematic._obj==d&&c.typematic.stop()})]},addMouseListener:function(a,d,e,g,j,h){var k=b.connect;return[k(a,"mousedown",this,function(f){b.stopEvent(f);c.typematic.trigger(f,d,a,e,a,g,j,h)}),k(a,"mouseup",this,function(f){b.stopEvent(f);c.typematic.stop()}),k(a,"mouseout",this,function(f){b.stopEvent(f);c.typematic.stop()}),k(a,"mousemove",this,function(f){f.preventDefault()}),k(a,"dblclick",this,
function(f){b.stopEvent(f);if(b.isIE){c.typematic.trigger(f,d,a,e,a,g,j,h);setTimeout(b.hitch(this,c.typematic.stop),50)}})]},addListener:function(a,d,e,g,j,h,k,f){return this.addKeyListener(d,e,g,j,h,k,f).concat(this.addMouseListener(a,g,j,h,k,f))}};return c.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,c){c.wai={onload:function(){var a=b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif"))+'");'}},b.body()),d=b.getComputedStyle(a);if(d){var e=d.backgroundImage;b[d.borderTopColor==d.borderRightColor||e!=null&&(e=="none"||e=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");if(b.isIE)a.outerHTML="";else b.body().removeChild(a)}}};if(b.isIE||b.isMoz)b._loaders.unshift(c.wai.onload);b.mixin(c,{hasWaiRole:function(a,d){a=this.getWaiRole(a);return d?a.indexOf(d)>-1:a.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,d){b.attr(a,"role",d)},removeWaiRole:function(a,d){var e=b.attr(a,"role");if(e)if(d){d=b.trim((" "+e+" ").replace(" "+d+" "," "));b.attr(a,"role",d)}else a.removeAttribute("role")},
hasWaiState:function(a,d){return a.hasAttribute?a.hasAttribute("aria-"+d):!!a.getAttribute("aria-"+d)},getWaiState:function(a,d){return a.getAttribute("aria-"+d)||""},setWaiState:function(a,d,e){a.setAttribute("aria-"+d,e)},removeWaiState:function(a,d){a.removeAttribute("aria-"+d)}});return c});
define("dijit/_base",["dojo","dijit","dijit/_base/focus","dijit/_base/manager","dijit/_base/place","dijit/_base/popup","dijit/_base/scroll","dijit/_base/sniff","dijit/_base/typematic","dijit/_base/wai","dijit/_base/window"],function(b,c){return c._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,c){b.connect(b,"_connect",function(a,d){a&&b.isFunction(a._onConnect)&&a._onConnect(d)});c._connectOnUseEventHandler=function(){};c._lastKeyDownNode=null;b.isIE?function(){var a=function(d){c._lastKeyDownNode=d.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){c._lastKeyDownNode=a.target},true);(function(){b.declare("dijit._Widget",
c._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:c._connectOnUseEventHandler,onDblClick:c._connectOnUseEventHandler,onKeyDown:c._connectOnUseEventHandler,onKeyPress:c._connectOnUseEventHandler,onKeyUp:c._connectOnUseEventHandler,onMouseDown:c._connectOnUseEventHandler,onMouseMove:c._connectOnUseEventHandler,onMouseOut:c._connectOnUseEventHandler,
onMouseOver:c._connectOnUseEventHandler,onMouseLeave:c._connectOnUseEventHandler,onMouseEnter:c._connectOnUseEventHandler,onMouseUp:c._connectOnUseEventHandler,create:function(){this._deferredConnects=b.clone(this._deferredConnects);for(var a in this.attributeMap)delete this._deferredConnects[a];for(a in this._deferredConnects)this[a]!==c._connectOnUseEventHandler&&delete this._deferredConnects[a];this.inherited(arguments);if(this.domNode)for(a in this.params)this._onConnect(a)},_onConnect:function(a){if(a in
this._deferredConnects){this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a);delete this._deferredConnects[a]}},focused:false,isFocusable:function(){return this.focus&&b.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,d){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,d)},attr:function(a){if(b.config.isDebug){var d=
arguments.callee._ach||(arguments.callee._ach={}),e=(arguments.callee.caller||"unknown caller").toString();if(!d[e]){b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+e,"","2.0");d[e]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,d,e){var g=b._connect,j=this.inherited(arguments,[a,d=="ondijitclick"?"onclick":d,e]);if(d=="ondijitclick")if(b.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var h=b.hitch(this,e);j.push(g(a,"onkeydown",this,function(k){if((k.keyCode==b.keys.ENTER||k.keyCode==b.keys.SPACE)&&!k.ctrlKey&&!k.shiftKey&&!k.altKey&&!k.metaKey){c._lastKeyDownNode=k.target;"openDropDown"in this&&a==this._buttonNode||k.preventDefault()}}),g(a,"onkeyup",this,function(k){if((k.keyCode==b.keys.ENTER||k.keyCode==b.keys.SPACE)&&k.target==c._lastKeyDownNode&&!k.ctrlKey&&!k.shiftKey&&!k.altKey&&!k.metaKey){c._lastKeyDownNode=null;return h(k)}}))}return j},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return c._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",true,b);b.string.rep=function(c,a){if(a<=0||!c)return"";for(var d=[];;){a&1&&d.push(c);if(!(a>>=1))break;c+=c}return d.join("")};b.string.pad=function(c,a,d,e){d||(d="0");c=String(c);a=b.string.rep(d,Math.ceil((a-c.length)/d.length));return e?c+a:a+c};b.string.substitute=function(c,a,d,e){e=e||b.global;d=d?b.hitch(e,d):function(g){return g};return c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(g,j,h){g=b.getObject(j,false,
a);if(h)g=b.getObject(h,false,e).call(e,g,j);return d(g,j).toString()})};b.string.trim=String.prototype.trim?b.trim:function(c){c=c.replace(/^\s+/,"");for(var a=c.length-1;a>=0;a--)if(/\S/.test(c.charAt(a))){c=c.substring(0,a+1);break}return c};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",true,b);b.date.stamp.fromISOString=function(c,a){if(!b.date.stamp._isoRegExp)b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var d=b.date.stamp._isoRegExp.exec(c);c=null;if(d){d.shift();d[1]&&d[1]--;if(d[6])d[6]*=1E3;if(a){a=new Date(a);b.forEach(b.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(j){return a["get"+
j]()}),function(j,h){d[h]=d[h]||j})}c=new Date(d[0]||1970,d[1]||0,d[2]||1,d[3]||0,d[4]||0,d[5]||0,d[6]||0);if(d[0]<100)c.setFullYear(d[0]||1970);var e=0,g=d[7]&&d[7].charAt(0);if(g!="Z"){e=(d[8]||0)*60+(Number(d[9])||0);if(g!="-")e*=-1}if(g)e-=c.getTimezoneOffset();e&&c.setTime(c.getTime()+e*6E4)}return c};b.date.stamp.toISOString=function(c,a){var d=function(h){return h<10?"0"+h:h};a=a||{};var e=[],g=a.zulu?"getUTC":"get",j="";if(a.selector!="time"){j=c[g+"FullYear"]();j=["0000".substr((j+"").length)+
j,d(c[g+"Month"]()+1),d(c[g+"Date"]())].join("-")}e.push(j);if(a.selector!="date"){j=[d(c[g+"Hours"]()),d(c[g+"Minutes"]()),d(c[g+"Seconds"]())].join(":");g=c[g+"Milliseconds"]();if(a.milliseconds)j+="."+(g<100?"0":"")+d(g);if(a.zulu)j+="Z";else if(a.selector!="time"){c=c.getTimezoneOffset();a=Math.abs(c);j+=(c>0?"-":"+")+d(Math.floor(a/60))+":"+d(a%60)}e.push(j)}return e.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new (function(){function c(k){if(g.isString(k))return"string";if(typeof k=="number")return"number";if(typeof k=="boolean")return"boolean";if(g.isFunction(k))return"function";if(g.isArray(k))return"array";if(k instanceof Date)return"date";if(k instanceof g._Url)return"url";return"object"}function a(k,f){switch(f){case "string":return k;case "number":return k.length?Number(k):NaN;case "boolean":return typeof k=="boolean"?k:k.toLowerCase()!=
"false";case "function":if(g.isFunction(k)){k=k.toString();k=g.trim(k.substring(k.indexOf("{")+1,k.length-1))}try{return k===""||k.search(/[^\w\.]+/i)!=-1?new Function(k):g.getObject(k,false)||new Function(k)}catch(l){return new Function}case "array":return k?k.split(/\s*,\s*/):[];case "date":switch(k){case "":return new Date("");case "now":return new Date;default:return g.date.stamp.fromISOString(k)}case "url":return g.baseUrl+k;default:return g.fromJson(k)}}function d(k,f){for(var l in k)if(l.charAt(0)!=
"_")l in j||(f[l]=c(k[l]));return f}function e(k,f){var l=h[k];if(l){if(!f&&!l.params)l.params=d(l.cls.prototype,{})}else{k=g.getObject(k);l=null;if(!k)return null;f||(l=d(k.prototype,{}));l={cls:k,params:l}}return l}var g=b,j={},h={};g.connect(g,"extend",function(){h={}});this._functionFromScript=function(k,f){var l="",m="";(f=k.getAttribute(f+"args")||k.getAttribute("args"))&&g.forEach(f.split(/\s*,\s*/),function(r,n){l+="var "+r+" = arguments["+n+"]; "});(f=k.getAttribute("with"))&&f.length&&g.forEach(f.split(/\s*,\s*/),
function(r){l+="with("+r+"){";m+="}"});return new Function(l+k.innerHTML+m)};this.instantiate=function(k,f,l){var m=[];f=f||{};l=l||{};var r=(l.scope||g._scopeName)+"Type",n="data-"+(l.scope||g._scopeName)+"-";g.forEach(k,function(o){if(o){var p,s,q,u,y,C;if(o.node){p=o.node;s=o.type;C=o.fastpath;u=(q=o.clsInfo||s&&e(s,C))&&q.cls;y=o.scripts}else{p=o;y=(u=(q=(s=r in f?f[r]:p.getAttribute(r))&&e(s))&&q.cls)&&(u._noScript||u.prototype._noScript)?[]:g.query("> script[type^='dojo/']",p)}if(!q)throw new Error("Could not load class '"+
s);var v={};l.defaults&&g._mixin(v,l.defaults);o.inherited&&g._mixin(v,o.inherited);if(C){if((q=p.getAttribute(n+"props"))&&q.length)try{q=g.fromJson.call(l.propsThis,"{"+q+"}");g._mixin(v,q)}catch(w){throw new Error(w.toString()+" in data-dojo-props='"+q+"'");}if(q=p.getAttribute(n+"attach-point"))v.dojoAttachPoint=q;if(q=p.getAttribute(n+"attach-event"))v.dojoAttachEvent=q;b.mixin(v,f)}else{o=p.attributes;for(var A in q.params){s=A in f?{value:f[A],specified:true}:o.getNamedItem(A);if(!(!s||!s.specified&&
(!b.isIE||A.toLowerCase()!="value"))){s=s.value;switch(A){case "class":s="className"in f?f.className:p.className;break;case "style":s="style"in f?f.style:p.style&&p.style.cssText}var z=q.params[A];v[A]=typeof s=="string"?a(s,z):s}}}var F=[],G=[];g.forEach(y,function(L){p.removeChild(L);var M=L.getAttribute(n+"event")||L.getAttribute("event"),N=L.getAttribute("type");L=g.parser._functionFromScript(L,n);if(M)if(N=="dojo/connect")F.push({event:M,func:L});else v[M]=L;else G.push(L)});var K=(y=u.markupFactory||
u.prototype&&u.prototype.markupFactory)?y(v,p,u):new u(v,p);m.push(K);(u=p.getAttribute(n+"id")||p.getAttribute("jsId"))&&g.setObject(u,K);g.forEach(F,function(L){g.connect(K,L.event,null,L.func)});g.forEach(G,function(L){L.call(K)})}});f._started||g.forEach(m,function(o){if(!l.noStart&&o&&b.isFunction(o.startup)&&!o._started&&(!o.getParent||!o.getParent()))o.startup()});return m};this.parse=function(k,f){function l(p,s){var q=b.clone(p.inherited);b.forEach(["dir","lang"],function(A){var z=p.node.getAttribute(A);
if(z)q[A]=z});for(var u=p.clsInfo&&!p.clsInfo.cls.prototype._noScript?p.scripts:null,y=!p.clsInfo||!p.clsInfo.cls.prototype.stopParser||f&&f.template,C=p.node.firstChild;C;C=C.nextSibling)if(C.nodeType==1){var v,w=y&&C.getAttribute(r+"type");v=w?w:y&&C.getAttribute(m);w=w==v;if(v){v={type:v,fastpath:w,clsInfo:e(v,w),node:C,scripts:[],inherited:q};s.push(v);l(v,s)}else if(u&&C.nodeName.toLowerCase()=="script")(v=C.getAttribute("type"))&&/^dojo\/\w/i.test(v)&&u.push(C);else y&&l({node:C,inherited:q},
s)}}if(!f&&k&&k.rootNode){f=k;k=f.rootNode}else k=k;k=k?b.byId(k):b.body();f=f||{};var m=(f.scope||g._scopeName)+"Type",r="data-"+(f.scope||g._scopeName)+"-",n={};if(f&&f.inherited)for(var o in f.inherited)if(f.inherited[o])n[o]=f.inherited[o];o=[];l({node:k,inherited:n},o);return this.instantiate(o,f&&f.template?{template:true}:null,f)}});(function(){var c=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,c):b._loaders.unshift(c)})();
return b.parser});
define("dojo/cache",["dojo"],function(b){var c={};b.cache=function(a,d,e){if(typeof a=="string")var g=b.moduleUrl(a,d);else{g=a;e=d}g=g.toString();var j=e;if(e!=undefined&&!b.isString(e))j="value"in e?e.value:undefined;e=e&&e.sanitize?true:false;if(typeof j=="string")j=c[g]=e?b.cache._sanitize(j):j;else if(j===null)delete c[g];else{if(!(g in c)){j=undefined;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+d;j=require("text!"+h)}catch(k){}if(typeof j==="undefined")j=
b._getText(g);c[g]=e?b.cache._sanitize(j):j}j=c[g]}return j};b.cache._sanitize=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var d=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(d)a=d[1]}else a="";return a};return b.cache});
define("dijit/_Templated",["dojo","dijit","dijit/_Widget","dojo/string","dojo/parser","dojo/cache"],function(b,c){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var d=this.declaredClass,e=this;return b.string.substitute(a,this,function(g,j){if(j.charAt(0)=="!")g=b.getObject(j.substr(1),false,e);if(typeof g==
"undefined")throw new Error(d+" template:"+j);if(g==null)return"";return j.charAt(0)=="!"?g:g.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=c._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),d;if(b.isString(a)){d=b._toDom(this._stringRepl(a));if(d.nodeType!=1)throw new Error("Invalid template: "+a);}else d=a.cloneNode(true);this.domNode=d;this.inherited(arguments);this._attachTemplateNodes(d);if(this.widgetsInTemplate){a=this._startupWidgets=
b.parser.parse(d,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"});this._supportingWidgets=c.findWidgets(d);this._attachTemplateNodes(a,function(e,g){return e[g]})}this._fillContent(this.srcNodeRef)},_fillContent:function(a){var d=this.containerNode;if(a&&d)for(;a.hasChildNodes();)d.appendChild(a.firstChild)},_attachTemplateNodes:function(a,d){d=d||function(m,r){return m.getAttribute(r)};for(var e=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),
g=b.isArray(a)?0:-1;g<e.length;g++){var j=g==-1?a:e[g];if(!(this.widgetsInTemplate&&(d(j,"dojoType")||d(j,"data-dojo-type")))){var h=d(j,"dojoAttachPoint")||d(j,"data-dojo-attach-point");if(h)for(var k=h.split(/\s*,\s*/);h=k.shift();){if(b.isArray(this[h]))this[h].push(j);else this[h]=j;this._attachPoints.push(h)}if(h=d(j,"dojoAttachEvent")||d(j,"data-dojo-attach-event")){k=h.split(/\s*,\s*/);for(var f=b.trim;h=k.shift();)if(h){var l=null;if(h.indexOf(":")!=-1){l=h.split(":");h=f(l[0]);l=f(l[1])}else h=
f(h);l||(l=h);this._attachEvents.push(this.connect(j,h,l))}}(h=d(j,"waiRole"))&&c.setWaiRole(j,h);(h=d(j,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(m){if(m.indexOf("-")!=-1){m=m.split("-");c.setWaiState(j,m[0],m[1])}})}}},startup:function(){b.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){b.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];b.forEach(this._attachEvents,
this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});c._Templated._templateCache={};c._Templated.getCachedTemplate=function(a,d,e){var g=c._Templated._templateCache,j=d||a,h=g[j];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(k){}b.destroy(h)}d||(d=b.cache(a,{sanitize:true}));d=b.string.trim(d);if(e||d.match(/\$\{([^\}]+)\}/g))return g[j]=d;else{a=b._toDom(d);if(a.nodeType!=1)throw new Error("Invalid template: "+d);return g[j]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=
c._Templated._templateCache;for(var d in a){var e=a[d];typeof e=="object"&&b.destroy(e);delete a[d]}});b.extend(c._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return c._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,c){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(d){this.connect(this.domNode,d,"_cssMouseEvent")},this);b.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(d){this.watch(d,b.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],
this.cssStateNodes[a]);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var d=this.connect(b.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(d)});break}},_setStateClass:function(){function a(k){d=
d.concat(b.map(d,function(f){return f+k}),"dijit"+k)}var d=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");this.checked&&a("Checked");this.state&&a(this.state);this.selected&&a("Selected");if(this.disabled)a("Disabled");else if(this.readOnly)a("ReadOnly");else if(this.active)a("Active");else this.hovering&&a("Hover");this._focused&&a("Focused");var e=this.stateNode||this.domNode,g={};b.forEach(e.className.split(" "),function(k){g[k]=true});"_stateClasses"in this&&b.forEach(this._stateClasses,
function(k){delete g[k]});b.forEach(d,function(k){g[k]=true});var j=[];for(var h in g)j.push(h);e.className=j.join(" ");this._stateClasses=d},_trackMouseState:function(a,d){function e(){var l="disabled"in k&&k.disabled||"readonly"in k&&k.readonly;b.toggleClass(a,d+"Hover",g&&!j&&!l);b.toggleClass(a,d+"Active",j&&!l);b.toggleClass(a,d+"Focused",h&&!l)}var g=false,j=false,h=false,k=this,f=b.hitch(this,"connect",a);f("onmouseenter",function(){g=true;e()});f("onmouseleave",function(){j=g=false;e()});
f("onmousedown",function(){j=true;e()});f("onmouseup",function(){j=false;e()});f("onfocus",function(){h=true;e()});f("onblur",function(){h=false;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return c._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(b,c){b.declare("dijit.form._FormWidget",[c._Widget,c._Templated,c._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:b.delegate(c._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=
this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this._set("disabled",a);b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a);c.setWaiState(this.focusNode,"disabled",a);if(a){this._set("hovering",false);this._set("active",false);a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode";
b.forEach(b.isArray(a)?a:[a],function(d){d=this[d];b.isWebKit||c.hasDefaultTabStop(d)?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex")},this)}else this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){b.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&b.style(this.domNode,"display")!="none"},focus:function(){this.disabled||c.focus(this.focusNode)},compare:function(a,d){return typeof a=="number"&&typeof d=="number"?isNaN(a)&&isNaN(d)?0:a-d:a>d?1:a<d?-1:0},onChange:function(){},_onChangeActive:false,_handleOnChange:function(a,d){if(this._lastValueReported==undefined&&(d===null||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||this.compare(a,
this._lastValueReported)!=0;if((this.intermediateChanges||d||d===undefined)&&this._pendingOnChange){this._lastValueReported=a;this._pendingOnChange=false;if(this._onChangeActive){this._onChangeHandle&&clearTimeout(this._onChangeHandle);this._onChangeHandle=setTimeout(b.hitch(this,function(){this._onChangeHandle=null;this.onChange(a)}),0)}}},create:function(){this.inherited(arguments);this._onChangeActive=true},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported)}this.inherited(arguments)},
setValue:function(a){b.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){b.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&b.mouseButtons.isLeft(a)&&this.isFocusable())var d=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(d)})}});b.declare("dijit.form._FormValueWidget",
c.form._FormWidget,{readOnly:false,attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);c.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(b.isIE<9||b.isIE&&b.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===undefined)this._lastValueReported=this._resetValue=this.value},
_setValueAttr:function(a,d){this._handleOnChange(a,d)},_handleOnChange:function(a){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,false)},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true)},_onKeyDown:function(a){if(a.keyCode==b.keys.ESCAPE&&!(a.ctrlKey||a.altKey||a.metaKey)){var d;if(b.isIE){a.preventDefault();d=document.createEventObject();d.keyCode=b.keys.ESCAPE;d.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",
d)}}},_layoutHackIE7:function(){if(b.isIE==7)for(var a=this.domNode,d=a.parentNode,e=a.firstChild||a,g=e.style.filter,j=this;d&&d.clientHeight==0;){(function(){var h=j.connect(d,"onscroll",function(){j.disconnect(h);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=g},0)})})();d=d.parentNode}}});return c.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,c){b.declare("dijit.form.TextBox",c.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:b.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:b.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:b.delegate(c.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||(a=="hidden"||a=="file")&&this.templateString==c.form.TextBox.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},_setPlaceHolderAttr:function(a){this._set("placeHolder",
a);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=b.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after")}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,
d,e){var g;if(a!==undefined){g=this.filter(a);if(typeof e!="string")e=g!==null&&(typeof g!="number"||!isNaN(g))?this.filter(this.format(g,this.constraints)):""}if(e!=null&&e!=undefined&&(typeof e!="number"||!isNaN(e))&&this.textbox.value!=e){this.textbox.value=e;this._set("displayedValue",this.get("displayedValue"))}this._updatePlaceHolder();this.inherited(arguments,[g,d])},displayedValue:"",getDisplayedValue:function(){b.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.",
"","2.0");return this.get("displayedValue")},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},setDisplayedValue:function(a){b.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_setDisplayedValueAttr:function(a){if(a===null||a===undefined)a="";else if(typeof a!="string")a=String(a);this.textbox.value=a;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",
this.get("displayedValue"))},format:function(a){return a==null||a==undefined?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},_onInput:function(a){if(a&&a.type&&/key/i.test(a.type)&&a.keyCode)switch(a.keyCode){case b.keys.SHIFT:case b.keys.ALT:case b.keys.CTRL:case b.keys.TAB:return}if(this.intermediateChanges){var d=this;setTimeout(function(){d._handleOnChange(d.get("value"),false)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},
postCreate:function(){b.isIE&&setTimeout(b.hitch(this,function(){var a=b.getComputedStyle(this.domNode);if(a)if(a=a.fontFamily){var d=this.domNode.getElementsByTagName("INPUT");if(d)for(var e=0;e<d.length;e++)d[e].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(b.isMoz||b.isOpera)this.connect(this.textbox,"oninput","_onInput");else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,
"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput")}},_blankValue:"",filter:function(a){if(a===null)return this._blankValue;if(typeof a!="string")return a;if(this.trim)a=b.trim(a);if(this.uppercase)a=a.toUpperCase();if(this.lowercase)a=a.toLowerCase();if(this.propercase)a=a.replace(/[^\s]+/g,function(d){return d.substring(0,1).toUpperCase()+d.substring(1)});return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),true)},_onBlur:function(){if(!this.disabled){this._setBlurValue();
this.inherited(arguments);this._selectOnClickHandle&&this.disconnect(this._selectOnClickHandle);if(this.selectOnClick&&b.isMoz)this.textbox.selectionStart=this.textbox.selectionEnd=undefined;this._updatePlaceHolder()}},_onFocus:function(a){if(!(this.disabled||this.readOnly)){if(this.selectOnClick&&a=="mouse")this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var d;if(b.isIE){d=b.doc.selection.createRange();d=d.parentElement()==this.textbox&&
d.text.length==0}else d=this.textbox.selectionStart==this.textbox.selectionEnd;d&&c.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});c.selectInputText=function(a,d,e){var g=b.global,j=b.doc;a=b.byId(a);if(isNaN(d))d=0;if(isNaN(e))e=a.value?a.value.length:0;c.focus(a);if(j.selection&&b.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",
-99999);a.moveStart("character",d);a.moveEnd("character",e-d);a.select()}}else g.getSelection&&a.setSelectionRange&&a.setSelectionRange(d,e)};return c.form.TextBox});define("text!dijit/templates/Tooltip.html",function(){return'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" dojoAttachPoint="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div\n></div>'});
define("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(b,c){b.declare("dijit._MasterTooltip",[c._Widget,c._Templated],{duration:c.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new c.BackgroundIframe(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,
duration:this.duration,onEnd:b.hitch(this,"_onHide")})},show:function(a,d,e,g){if(!(this.aroundNode&&this.aroundNode===d)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;c.placeOnScreenAroundElement(this.domNode,d,c.getPopupAroundAlignment(e&&e.length?e:c.Tooltip.defaultPosition,!g),b.hitch(this,"orient"));b.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=d}}},orient:function(a,d,e,
g,j){this.connectorNode.style.top="";var h=g.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[d+"-"+e];this.domNode.style.width="auto";var k=b.contentBox(this.domNode),f=Math.min(Math.max(h,1),k.w),l=f<k.w;this.domNode.style.width=f+"px";if(l){this.containerNode.style.overflow=
"auto";l=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(l>f){l=l+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight");this.domNode.style.width=l+"px"}}if(e.charAt(0)=="B"&&d.charAt(0)=="B"){a=b.marginBox(a);d=this.connectorNode.offsetHeight;if(a.h>g.h){this.connectorNode.style.top=g.h-j.h/2-d/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(j.h/2-d/2,0),a.h-d)+"px";this.connectorNode.style.top=""}}else{this.connectorNode.style.top=
"";this.connectorNode.style.bottom=""}return Math.max(0,k.w-h)},_onShow:function(){if(b.isIE)this.domNode.style.filter=""},hide:function(a){if(this._onDeck&&this._onDeck[1]==a)this._onDeck=null;else if(this.aroundNode===a){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play()}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null}}});c.showTooltip=function(a,d,e,g){if(!c._masterTT)c._masterTT=
new c._MasterTooltip;return c._masterTT.show(a,d,e,g)};c.hideTooltip=function(a){if(!c._masterTT)c._masterTT=new c._MasterTooltip;return c._masterTT.hide(a)};b.declare("dijit.Tooltip",c._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(e){b.forEach(e,b.hitch(this,"disconnect"))},this);var d=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(d,function(e){return(e=b.byId(e))?[this.connect(e,"onmouseenter","_onTargetMouseEnter"),
this.connect(e,"onmouseleave","_onTargetMouseLeave"),this.connect(e,"onfocus","_onTargetFocus"),this.connect(e,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=d},addTarget:function(a){a=a.id||a;b.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=b.indexOf(this._connectIds,a.id||a);if(a>=0){this._connectIds.splice(a,1);this.set("connectId",this._connectIds)}},buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;b.forEach(b.isArrayLike(a)?a:[a],this.addTarget,this)},_onTargetMouseEnter:function(a){this._onHover(a)},_onTargetMouseLeave:function(a){this._onUnHover(a)},_onTargetFocus:function(a){this._focus=true;this._onHover(a)},_onTargetBlur:function(a){this._focus=false;this._onUnHover(a)},_onHover:function(a){if(!this._showTimer){var d=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(d)}),
this.showDelay)}},_onUnHover:function(){if(!this._focus){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}this.close()}},open:function(a){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}c.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){c.hideTooltip(this._connectNode);delete this._connectNode;this.onHide()}if(this._showTimer){clearTimeout(this._showTimer);
delete this._showTimer}},onShow:function(){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments)}});c.Tooltip.defaultPosition=["after","before"];return c.Tooltip});
(function(){function b(d,e,g,j,h,k){if(e[d]){g.push(d);if(e[d]===true||e[d]===1)j.push(h+d+"/"+k)}}function c(d,e,g,j,h){e=j+e+"/"+h;require._fileExists(d.nameToUrl(e,null))&&g.push(e)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(d,e,g,j){j=j||{};var h=a.exec(d),k=h[1],f=h[4],l=h[5],m=f.split("-"),r=[],n={},o,p,s="";if(h[5]){k=h[1];d=k+l}else{d=d;l=h[4];f=j.locale||(j.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());m=f.split("-")}if(j.isBuild){r.push(d);c(e,"root",r,k,l);for(o=0;p=m[o];o++){s+=(s?"-":"")+p;c(e,s,r,k,l)}e(r);g()}else e([d],function(q){var u=[];b("root",q,u,r,k,l);for(o=0;p=m[o];o++){s+=(s?"-":"")+p;b(s,q,u,r,k,l)}e(r,function(){var y,C;for(y=u.length-1;y>-1&&(p=u[y]);y--){C=q[p];if(C===true||C===1)C=e(k+p+"/"+l);require.mixin(n,C)}g(n)})})}})})();
define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/form/ValidationTextBox",["dojo","dijit","text!dijit/form/templates/ValidationTextBox.html","dojo/i18n","dijit/form/TextBox","dijit/Tooltip","i18n!dijit/form/nls/validate"],function(b,c){b.declare("dijit.form.ValidationTextBox",c.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",
regExpGen:function(){return this.regExp},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,d){return(new RegExp("^(?:"+this.regExpGen(d)+")"+(this.required?"":"?")+"$")).test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,d)!==undefined)},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0},isValid:function(){return this.validator(this.textbox.value,this.constraints)},
_isEmpty:function(a){return(this.trim?/^\s*$/:/^$/).test(a)},getErrorMessage:function(){return this.required&&this._isEmpty(this.textbox.value)?this.missingMessage:this.invalidMessage},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:true,validate:function(a){var d="",e=this.disabled||this.isValid(a);if(e)this._maskValidSubsetError=true;var g=this._isEmpty(this.textbox.value),j=!e&&a&&this._isValidSubset();this._set("state",e?"":((!this._hasBeenBlurred||a)&&g||j)&&this._maskValidSubsetError?
"Incomplete":"Error");c.setWaiState(this.focusNode,"invalid",e?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&j;d=this.getErrorMessage(a)}else if(this.state=="Incomplete"){d=this.getPromptMessage(a);this._maskValidSubsetError=!this._hasBeenBlurred||a}else if(g)d=this.getPromptMessage(a);this.set("message",d);return e},displayMessage:function(a){c.hideTooltip(this.domNode);a&&this._focused&&c.showTooltip(a,this.domNode,this.tooltipPosition,!this.isLeftToRight())},_refreshState:function(){this.validate(this._focused);
this.inherited(arguments)},constructor:function(){this.constraints={}},_setConstraintsAttr:function(a){if(!a.locale&&this.lang)a.locale=this.lang;this._set("constraints",a);this._computePartialRE()},_computePartialRE:function(){var a=this.regExpGen(this.constraints);this.regExp=a;var d="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(g){switch(g.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":d+=g;break;case ")":d+="|$)";break;
default:d+="(?:"+g+"|$)";break}});try{"".search(d)}catch(e){d=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+d+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$")this.invalidMessage=this.messages.invalidMessage;if(!this.invalidMessage)this.invalidMessage=this.promptMessage;if(this.missingMessage=="$_unset_$")this.missingMessage=
this.messages.missingMessage;if(!this.missingMessage)this.missingMessage=this.invalidMessage;this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",a);c.setWaiState(this.focusNode,"required",a);this._refreshState()},_setMessageAttr:function(a){this._set("message",a);this.displayMessage(a)},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");
this.inherited(arguments)}});b.declare("dijit.form.MappedTextBox",c.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},serialize:function(a){return a.toString?a.toString():""},toString:function(){var a=this.filter(this.get("value"));return a!=null?typeof a=="string"?a:this.serialize(a,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);
this.valueNode=b.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});b.declare("dijit.form.RangeBoundTextBox",c.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,d){return("min"in d?this.compare(a,d.min)>=0:true)&&("max"in d?this.compare(a,d.max)<=0:true)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=
this.get("value"),d=false,e=false;if("min"in this.constraints){d=this.constraints.min;d=this.compare(a,typeof d=="number"&&d>=0&&a!=0?0:d);d=typeof d=="number"&&d<0}if("max"in this.constraints){e=this.constraints.max;e=this.compare(a,typeof e!="number"||e>0?e:0);e=typeof e=="number"&&e>0}return d||e},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(a){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||
this.isInRange(a))},getErrorMessage:function(a){var d=this.get("value");if(d!==null&&d!==""&&d!==undefined&&(typeof d!="number"||!isNaN(d))&&!this.isInRange(a))return this.rangeMessage;return this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage}},_setConstraintsAttr:function(){this.inherited(arguments);if(this.focusNode){this.constraints.min!==
undefined?c.setWaiState(this.focusNode,"valuemin",this.constraints.min):c.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?c.setWaiState(this.focusNode,"valuemax",this.constraints.max):c.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){c.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return c.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,c){function a(v){C=v}function d(){return C}function e(v){var w="",A=navigator.platform.indexOf("Mac")!==-1;if(v.mod1)w+=A?"Cmd+":"Ctrl+";if(v.mod2)w+="Shift+";if(v.mod3)w+="Alt+";if(v.alphaKey)return w+v.alphaKey;for(var z in b.keys)if(typeof(b.keys[z]==="number"))if(b.keys[z]===v.keyCode)return w+z;var F;switch(v.keyCode){case 59:F=v.mod2?":":";";break;case 61:F=v.mod2?"+":"=";break;case 188:F=v.mod2?"<":",";
break;case 190:F=v.mod2?">":".";break;case 191:F=v.mod2?"?":"/";break;case 192:F=v.mod2?"~":"`";break;case 219:F=v.mod2?"{":"[";break;case 220:F=v.mod2?"|":"\\";break;case 221:F=v.mod2?"}":"]";break;case 222:F=v.mod2?'"':"'";break}if(F)return w+F;return w+String.fromCharCode(v.keyCode)}function g(v,w){v.startup();if(typeof w==="string"){var A=b.byId(w);if(!A)if(A=c.byId(w))A=A.domNode;w=A?A:null}if(w){w=b.position(w);v._setStyleAttr("left:"+(w.x+16)+"px !important;");v._setStyleAttr("top:"+(w.y+16)+
"px !important;")}v.show()}function j(v,w,A,z,F,G,K,L,M){K=function(R){return function(O){var T=c.byId(v),Y=T.get("value");if(R&&O.keyCode===b.keys.ESCAPE){A&&b.style(w,"display","inline");T.destroyRecursive();G&&G()}else if(!(R&&O.keyCode!==b.keys.ENTER)){if(!T.isValid()||!M&&Y===z)A&&b.style(w,"display","inline");else F(Y);T.destroyRecursive();G&&G()}}};var N=new c.form.ValidationTextBox({id:v,required:true,value:z||""});b.place(N.domNode,w,"after");b.addClass(N.domNode,"userEditBoxPrompt");A&&
b.style(w,"display","none");b.connect(N,"onKeyDown",K(true));b.connect(N,"onBlur",K(false));window.setTimeout(function(){N.focus();if(z){var R=b.byId(v),O=L?z.indexOf(L):-1;O>0?c.selectInputText(R,0,O):R.select()}},0)}function h(v){var w=window.navigator.platform.indexOf("Mac")!==-1;return w&&v.metaKey||!w&&v.ctrlKey}function k(v,w){if(w&&h(w))window.open(v);else window.location=v}function f(v){if(!v)return v;var w=window.location.href.split("#")[0];w=w.substring(0,w.length-window.location.pathname.length);
if(v.indexOf(w)===0)return v.substring(w.length);return v}function l(v){var w,A,z,F,G;v=v.split("#");var K=v[v.length-1].split(/\?(?=(?:line|char))/);v=f(K[0]);if(K.length>1){K=K[1].split(/\&(?=(?:line|char))/);for(var L=0;L<K.length;L++){var M=K[L].split("=");if(M.length>1)switch(M[0]){case "char":M=M[1].split(",");if(z===undefined){w=window.parseInt(M[0]);if(M.length>1)A=window.parseInt(M[1])}else{F=window.parseInt(M[0]);if(M.length>1)G=window.parseInt(M[1])}break;case "line":M=M[1].split(",");
z=window.parseInt(M[0]);break;default:break}}}return{filePath:v,start:w,end:A,line:z,offset:F,length:G}}function m(v,w,A,z,F,G){if(typeof w==="number"){v="#"+v+"?char="+w;if(typeof A==="number")v=v+","+A;else if(typeof G==="number")v=v+","+(w+G);return v}if(typeof z==="number"){v="#"+v+"?line="+z;if(typeof F==="number"){v=v+"&char="+F;if(typeof G==="number")v=v+","+(F+G)}return v}return"#"+v}function r(v){if(!v)return v;var w=window.location.href.split("#")[0];return w.substring(0,w.length-window.location.pathname.length)+
v}function n(v){return this.makeRelative(v).indexOf("/workspace")===0}function o(v,w){v.children=w;for(var A in w)w[A].parent=v;v.children.sort(function(z,F){var G=z.Directory;if(G!==F.Directory)return G?-1:1;z=z.Name&&z.Name.toLowerCase();F=F.Name&&F.Name.toLowerCase();if(z<F)return-1;if(z>F)return 1;return 0})}function p(v){v.children.sort(function(w,A){var z=w.type==="dir";if(z!==(A.type==="dir"))return z?-1:1;w=w.name&&w.name.toLowerCase();A=A.name&&A.name.toLowerCase();if(w<A)return-1;if(w>A)return 1;
return 0})}function s(v,w){v.Parents&&v.Parents.length===0&&w.getService("orion.core.preference").then(function(A){return A.getPreferences("/window/recent")}).then(function(A){var z=A.get("projects");if(typeof z==="string")z=JSON.parse(z);var F=[];if(z&&z.length&&z.length>0)for(var G=0;G<z.length;G++)z[G].location!==v.ChildrenLocation&&z[G].name!==v.Name&&F.push(z[G]);F.push({name:v.Name,location:v.ChildrenLocation});if(F.length>5)F=F.slice(-5,F.length);A.put("projects",F)})}function q(v){return typeof v.textContent!==
"undefined"?v.textContent:v.innerText}function u(v){return q(document.createTextNode(v))}function y(v,w){if(typeof v.textContent!=="undefined")v.textContent=w;else v.innerText=w}var C=null;return{setUserName:a,getUserName:d,getUserKeyString:e,openDialog:g,getUserText:j,openInNewWindow:h,followLink:k,getPositionInfo:l,hashFromPosition:m,makeRelative:f,makeFullPath:r,isAtRoot:n,processNavigatorParent:o,processSearchResultParent:p,rememberSuccessfulTraversal:s,getText:q,safeText:u,setText:y}});
define("text!dijit/templates/Menu.html",function(){return'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody>\n</table>'});
define("dijit/_Container",["dojo","dijit"],function(b,c){b.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,d){var e=this.containerNode;if(d&&typeof d=="number"){var g=this.getChildren();if(g&&g.length>=d){e=g[d-1].domNode;d="after"}}b.place(a.domNode,e,d);this._started&&!a._started&&a.startup()},removeChild:function(a){if(typeof a=="number")a=this.getChildren()[a];if(a)(a=
a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return this.getChildren().length>0},destroyDescendants:function(a){b.forEach(this.getChildren(),function(d){d.destroyRecursive(a)})},_getSiblingOfChild:function(a,d){a=a.domNode;d=d>0?"nextSibling":"previousSibling";do a=a[d];while(a&&(a.nodeType!=1||!c.byNode(a)));return a&&c.byNode(a)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
function(a){a.startup()});this.inherited(arguments)}}});return c._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,c){b.declare("dijit._KeyNavContainer",c._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,d){var e=this._keyNavCodes={},g=b.hitch(this,this.focusPrev),j=b.hitch(this,this.focusNext);b.forEach(a,function(h){e[h]=g});b.forEach(d,function(h){e[h]=j});e[b.keys.HOME]=b.hitch(this,"focusFirstChild");e[b.keys.END]=b.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){b.forEach(this.getChildren(),b.hitch(this,"_startupChild"))},addChild:function(a){c._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(a)},focus:function(){this.focusFirstChild()},focusFirstChild:function(){var a=this._getFirstFocusableChild();a&&this.focusChild(a)},focusLastChild:function(){var a=this._getLastFocusableChild();a&&this.focusChild(a)},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,
1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),true)},focusChild:function(a,d){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(d?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){if(a.target===
this.domNode){this.focusFirstChild();b.attr(this.domNode,"tabIndex","-1")}},_onBlur:function(){this.tabIndex&&b.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!(a.ctrlKey||a.altKey)){var d=this._keyNavCodes[a.charOrCode];if(d){d();b.stopEvent(a)}}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
d){if(a)a=this._getSiblingOfChild(a,d);for(var e=this.getChildren(),g=0;g<e.length;g++){a||(a=e[d>0?0:e.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,d)}return null}});return c._KeyNavContainer});define("text!dijit/templates/MenuItem.html",function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitem" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div dojoAttachPoint="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>'});
define("dijit/_Contained",["dojo","dijit"],function(b,c){b.declare("dijit._Contained",null,{getParent:function(){var a=c.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var d=this.domNode;do d=d[a+"Sibling"];while(d&&d.nodeType!=1);return d&&c.byNode(d)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();if(!a||!a.getIndexOfChild)return-1;
return a.getIndexOfChild(this)}});return c._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(b,c){b.declare("dijit.MenuItem",[c._Widget,c._Templated,c._Contained,c._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(c._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",
accelKey:"",disabled:false,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var a=this.id+"_text";b.attr(this.containerNode,"id",a);if(this.accelKeyNode){b.attr(this.accelKeyNode,"id",this.id+"_accel");a+=" "+this.id+"_accel"}c.setWaiState(this.domNode,"labelledby",a);b.setSelectable(this.domNode,false)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);
this._set("hovering",false)},_onClick:function(a){this.getParent().onItemClick(this,a);b.stopEvent(a)},onClick:function(){},focus:function(){try{b.isIE==8&&this.containerNode.focus();c.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){c.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;b.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return c.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,c){b.declare("dijit.PopupMenuItem",c.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);c.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.popup=c.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");c.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return c.PopupMenuItem});define("text!dijit/templates/CheckedMenuItem.html",function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&nbsp;</td>\n</tr>'});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,c){b.declare("dijit.CheckedMenuItem",c.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);c.setWaiState(this.domNode,"checked",a);this._set("checked",a)},onChange:function(){},_onClick:function(){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked)}this.inherited(arguments)}});
return c.CheckedMenuItem});define("text!dijit/templates/MenuSeparator.html",function(){return'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>'});
define("dijit/MenuSeparator",["dojo","dijit","text!dijit/templates/MenuSeparator.html","dijit/_Widget","dijit/_Templated","dijit/_Contained"],function(b,c){b.declare("dijit.MenuSeparator",[c._Widget,c._Templated,c._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return c.MenuSeparator});
define("dijit/Menu",["dojo","dijit","text!dijit/templates/Menu.html","dojo/window","dijit/_Widget","dijit/_KeyNavContainer","dijit/_Templated","dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"],function(b,c){b.declare("dijit._MenuBase",[c._Widget,c._Templated,c._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(!this._started){b.forEach(this.getChildren(),function(a){a.startup()});this.startupKeyNavChildren();this.inherited(arguments)}},onExecute:function(){},
onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.focusedChild._onClick(a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(false);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup)}},
onItemHover:function(a){if(this.isActive){this.focusChild(a);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer)this.hover_timer=setTimeout(b.hitch(this,"_openPopup"),this.popupDelay)}this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(false);var d=a.popup;if(d){this._stopPendingCloseTimer(d);d._pendingClose_timer=setTimeout(function(){d._pendingClose_timer=null;if(d.parentMenu)d.parentMenu.currentPopup=
null;c.popup.close(d)},this.popupDelay)}},onItemUnhover:function(a){this.isActive&&this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null}},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer){clearTimeout(a._pendingClose_timer);a._pendingClose_timer=null}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null}},_getTopMenu:function(){for(var a=
this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,d){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return false;if(a.popup)this._openPopup();else{this.onExecute();a.onClick(d)}},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var d=a.popup;if(!d.isShowingNow){if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);c.popup.close(this.currentPopup)}d.parentMenu=this;d.from_item=a;var e=this;c.popup.open({parent:this,
popup:d,around:a.domNode,orient:this._orient||(this.isLeftToRight()?{TR:"TL",TL:"TR",BR:"BL",BL:"BR"}:{TL:"TR",TR:"TL",BL:"BR",BR:"BL"}),onCancel:function(){e.focusChild(a);e._cleanUp();a._setSelected(true);e.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=d;d.connect(d.domNode,"onmouseenter",b.hitch(e,"_onPopupHover"));if(d.focus)d._focus_timer=setTimeout(b.hitch(d,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=true;b.replaceClass(this.domNode,
"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=true;this._markActive()},_markInactive:function(){this.isActive=false;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){c._curFocus&&b.isDescendant(c._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();c.popup.close(this.currentPopup);
this.currentPopup=null}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null}},_onItemFocus:function(a){this._hoveredChild&&this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();typeof this.isShowingNow=="undefined"&&this._markInactive()}});b.declare("dijit.Menu",c._MenuBase,{constructor:function(){this._bindings=[]},templateString:b.cache("dijit",
"templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(b.body()):b.forEach(this.targetNodeIds,this.bindDomNode,this);var a=b.keys,d=this.isLeftToRight();this._openSubMenuKey=d?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=d?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!(a.ctrlKey||a.altKey))switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);
b.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)this.parentMenu._isMenuBar?this.parentMenu.focusPrev():this.onCancel(false);else b.stopEvent(a);break}},_iframeContentWindow:function(a){return b.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&b.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&b.doc.frames[a.name]&&b.doc.frames[a.name].document||
null},bindDomNode:function(a){a=b.byId(a);var d;if(a.tagName.toLowerCase()=="iframe"){var e=a,g=this._iframeContentWindow(e);d=b.withGlobal(g,b.body)}else d=a==b.body()?b.doc.documentElement:a;var j={node:a,iframe:e};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(j));var h=b.hitch(this,function(k){return[b.connect(k,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(f){b.stopEvent(f);this._scheduleOpen(f.target,e,{x:f.pageX,y:f.pageY})}),b.connect(k,"onkeydown",this,function(f){if(f.shiftKey&&
f.keyCode==b.keys.F10){b.stopEvent(f);this._scheduleOpen(f.target,e)}})]});j.connects=d?h(d):[];if(e){j.onloadHandler=b.hitch(this,function(){var k=this._iframeContentWindow(e);d=b.withGlobal(k,b.body);j.connects=h(d)});e.addEventListener?e.addEventListener("load",j.onloadHandler,false):e.attachEvent("onload",j.onloadHandler)}},unBindDomNode:function(a){var d;try{d=b.byId(a)}catch(e){return}a="_dijitMenu"+this.id;if(d&&b.hasAttr(d,a)){var g=b.attr(d,a)-1,j=this._bindings[g];b.forEach(j.connects,b.disconnect);
var h=j.iframe;if(h)h.removeEventListener?h.removeEventListener("load",j.onloadHandler,false):h.detachEvent("onload",j.onloadHandler);b.removeAttr(d,a);delete this._bindings[g]}},_scheduleOpen:function(a,d,e){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:d,coords:e})}),1)},_openMyself:function(a){function d(){l.refocus&&c.focus(m);c.popup.close(l)}var e=a.target,g=a.iframe;if(a=a.coords){if(g){e=b.position(g,true);var j=
this._iframeContentWindow(g);j=b.withGlobal(j,"_docScroll",b);var h=b.getComputedStyle(g),k=b._toPixelValue,f=(b.isIE&&b.isQuirks?0:k(g,h.paddingLeft))+(b.isIE&&b.isQuirks?k(g,h.borderLeftWidth):0);g=(b.isIE&&b.isQuirks?0:k(g,h.paddingTop))+(b.isIE&&b.isQuirks?k(g,h.borderTopWidth):0);a.x+=e.x+f-j.x;a.y+=e.y+g-j.y}}else{a=b.position(e,true);a.x+=10;a.y+=10}var l=this,m=c.getFocus(this);c.popup.open({popup:this,x:a.x,y:a.y,onExecute:d,onCancel:d,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=
function(){this.inherited("_onBlur",arguments);c.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return c.Menu});define("text!dijit/form/templates/Button.html",function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdojoAttachPoint="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/DropDownButton.html",function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdojoAttachPoint="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdojoAttachPoint="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/ComboButton.html",function(){return'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" dojoAttachPoint="buttonNode" dojoAttachEvent="ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" dojoAttachPoint="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdojoAttachPoint="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdojoAttachEvent="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" dojoAttachPoint="valueNode"\n\t\t/></td></tr></tbody\n></table>'});
define("dijit/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(b,c){b.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(a){if(!(this.disabled||this.readOnly)){b.stopEvent(a);this._docHandler=this.connect(b.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown()}},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var d=this.dropDown,e=false;if(a&&this._opened){var g=b.position(this._buttonNode,true);if(!(a.pageX>=g.x&&a.pageX<=g.x+g.w)||!(a.pageY>=g.y&&a.pageY<=g.y+g.h)){for(g=a.target;g&&!e;)if(b.hasClass(g,"dijitPopup"))e=true;else g=g.parentNode;if(e){g=a.target;if(d.onItemClick){for(var j;g&&!(j=c.byNode(g));)g=g.parentNode;j&&j.onClick&&j.getParent&&j.getParent().onItemClick(j,a)}return}}}this._opened&&d.focus&&d.autoFocus!==false&&window.setTimeout(b.hitch(d,
"focus"),1)},_onDropDownClick:function(a){this._stopClickEvents&&b.stopEvent(a)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.addClass(this._arrowWrapperNode||
this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){if(this.dropDown){this.dropDown._destroyed||this.dropDown.destroyRecursive();delete this.dropDown}this.inherited(arguments)},_onKey:function(a){if(!(this.disabled||
this.readOnly)){var d=this.dropDown,e=a.target;if(d&&this._opened&&d.handleKey)if(d.handleKey(a)===false){b.stopEvent(a);return}if(d&&this._opened&&a.charOrCode==b.keys.ESCAPE){this.closeDropDown();b.stopEvent(a)}else if(!this._opened&&(a.charOrCode==b.keys.DOWN_ARROW||(a.charOrCode==b.keys.ENTER||a.charOrCode==" ")&&((e.tagName||"").toLowerCase()!=="input"||e.type&&e.type.toLowerCase()!=="text"))){this._toggleOnKeyUp=true;b.stopEvent(a)}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(b.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(c._curFocus&&this.dropDown&&b.isDescendant(c._curFocus,this.dropDown.domNode));this.inherited(arguments)},isLoaded:function(){return true},loadDropDown:function(a){a()},toggleDropDown:function(){if(!(this.disabled||this.readOnly))if(this._opened)this.closeDropDown();else this.isLoaded()?this.openDropDown():this.loadDropDown(b.hitch(this,"openDropDown"))},openDropDown:function(){var a=
this.dropDown,d=a.domNode,e=this._aroundNode||this.domNode,g=this;if(!this._preparedNode){this._preparedNode=true;if(d.style.width)this._explicitDDWidth=true;if(d.style.height)this._explicitDDHeight=true}if(this.maxHeight||this.forceWidth||this.autoWidth){var j={display:"",visibility:"hidden"};if(!this._explicitDDWidth)j.width="";if(!this._explicitDDHeight)j.height="";b.style(d,j);j=this.maxHeight;if(j==-1){j=b.window.getBox();var h=b.position(e,false);j=Math.floor(Math.max(h.y,j.h-(h.y+h.h)))}a.startup&&
!a._started&&a.startup();c.popup.moveOffScreen(a);h=b._getMarginSize(d);var k=j&&h.h>j;b.style(d,{overflowX:"hidden",overflowY:k?"auto":"hidden"});if(k){h.h=j;if("w"in h)h.w+=16}else delete h.h;if(this.forceWidth)h.w=e.offsetWidth;else if(this.autoWidth)h.w=Math.max(h.w,e.offsetWidth);else delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(d,h)}a=c.popup.open({parent:this,popup:a,around:e,orient:c.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:
["below"],this.isLeftToRight()),onExecute:function(){g.closeDropDown(true)},onCancel:function(){g.closeDropDown(true)},onClose:function(){b.attr(g._popupStateNode,"popupActive",false);b.removeClass(g._popupStateNode,"dijitHasDropDownOpen");g._opened=false}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(g._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return a},closeDropDown:function(a){if(this._opened){a&&this.focus();c.popup.close(this.dropDown);this._opened=false}}});
return c._HasDropDown});
define("dijit/form/Button",["dojo","dijit","text!dijit/form/templates/Button.html","text!dijit/form/templates/DropDownButton.html","text!dijit/form/templates/ComboButton.html","dijit/form/_FormWidget","dijit/_Container","dijit/_HasDropDown"],function(b,c){b.declare("dijit.form.Button",c.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),
_onClick:function(a){if(this.disabled)return false;this._clicked();return this.onClick(a)},_onButtonClick:function(a){if(this._onClick(a)===false)a.preventDefault();else if(this.type=="submit"&&!(this.valueNode||this.focusNode).form)for(var d=this.domNode;d.parentNode;d=d.parentNode){var e=c.byNode(d);if(e&&typeof e._onSubmit=="function"){e._onSubmit(a);break}}else if(this.valueNode){this.valueNode.click();a.preventDefault()}},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,
false)},_fillContent:function(a){if(a&&(!this.params||!("label"in this.params)))this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&b.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return true},_clicked:function(){},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this._set("label",a);this.containerNode.innerHTML=
a;if(this.showLabel==false&&!this.params.title)this.titleNode.title=b.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){b.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});b.declare("dijit.form.DropDownButton",[c.form.Button,c._Container,c._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);c.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=c.byNode(a);delete this.dropDownContainer}this.dropDown&&c.popup.hide(this.dropDown);this.inherited(arguments)}},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(){var a=this.dropDown;
if(a)if(this.isLoaded())this.openDropDown();else{var d=b.connect(a,"onLoad",this,function(){b.disconnect(d);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",c.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(c.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",
cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){c.focus(this._popupStateNode);b.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){c.focus(this.titleNode);b.stopEvent(a)}},focus:function(a){this.disabled||c.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",c.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:b.mixin(b.clone(c.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,d){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);c.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,d)},setChecked:function(a){b.deprecated("setChecked("+a+") is deprecated. Use set('checked',"+
a+") instead.","","2.0");this.set("checked",a)},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false)}});return c.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,c){return c.form.DropDownButton});
define("orion/commands",["require","dojo","dijit","orion/util","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator","dijit/Tooltip"],function(b,c,a,d){function e(f){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups={};this._activeBindings={};this._init(f)}function g(f){this._init(f)}function j(f,l,m,r,n){this.keyCode=typeof f==="string"?f.toUpperCase().charCodeAt(0):f;this.mod1=l!==undefined&&l!==null?l:false;this.mod2=m!==
undefined&&m!==null?m:false;this.mod3=r!==undefined&&r!==null?r:false;this.mod4=n!==undefined&&n!==null?n:false}var h=c.declare(a.MenuItem,{_onClick:function(){this.hrefCallback||this.inherited(arguments)}});e.prototype={_init:function(f){this._registry=f.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=f.selection;c.connect(window.document,"onkeydown",c.hitch(this,function(l){l=l||window.event;var m=l.target.nodeName.toLowerCase();
if(m==="input")switch(l.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(m==="textarea")return;this._processKey(l)}))},_processKey:function(f){function l(o){if(window.document.all)o.keyCode=0;else{o.preventDefault();o.stopPropagation()}}for(var m in this._activeBindings)if(this._activeBindings[m]&&this._activeBindings[m].keyBinding&&
this._activeBindings[m].command)if(this._activeBindings[m].keyBinding.match(f)){var r=this._activeBindings[m],n=r.command;if(n.hrefCallback){l(f);f=n.hrefCallback.call(r.handler||window,r.items,m,r.userData);f.then?f.then(function(o){window.open(o)}):window.open(f);return}else if(n.callback){l(f);window.setTimeout(function(){n.callback.call(r.handler||window,r.items,m,null,r.userData)},0);return}}},getSelectionService:function(){return this._selection},showKeyBindings:function(f){for(var l in this._activeBindings)this._activeBindings[l]&&
this._activeBindings[l].keyBinding&&this._activeBindings[l].command&&c.place("<span>"+d.getUserKeyString(this._activeBindings[l].keyBinding)+" = "+this._activeBindings[l].command.name+"<br></span>",f,"last")},addCommand:function(f,l){switch(l){case "dom":this._domScope[f.id]=f;break;case "object":this._objectScope[f.id]=f;break;case "global":this._globalScope[f.id]=f;break;default:throw"unrecognized command scope "+l;}},addCommandGroup:function(f,l,m,r,n){var o=this._namedGroups;if(r)o=this._createEntryForPath(r);
if(o[f]){if(m)o[f].title=m;if(l)o[f].position=l;if(n)o[f].scopeId=n}else{o[f]={title:m,position:l,children:{},scopeId:n};o.sortedCommands=null}},_createEntryForPath:function(f){var l=this._namedGroups;if(f){f=f.split("/");for(var m=0;m<f.length;m++)if(f[m].length>1){l[f[m]]||(l[f[m]]={position:0,children:{}});l=l[f[m]].children}}return l},registerCommandContribution:function(f,l,m,r,n,o){r=this._createEntryForPath(r);r[f]={scopeId:m,position:l};if(n)if(l=this._domScope[f]||this._globalScope[f])this._activeBindings[f]=
{command:l,keyBinding:n,keyOnly:o};r.sortedCommands=null},_isLastChildSeparator:function(f,l){if(l==="image")return f.childNodes.length>0&&c.hasClass(f.childNodes[f.childNodes.length-1],"commandSeparator");if(l==="menu"){f=f.getChildren();return f.length>0&&f[f.length-1]instanceof a.MenuSeparator}return false},renderCommands:function(f,l,m,r,n,o,p,s,q,u){if(typeof f==="string")f=c.byId(f);if(m){var y;if(l==="object")y=this._objectScope;else if(l==="dom")y=this._domScope;else if(l==="global")y=this._globalScope;
else throw"Unrecognized command scope "+l;this._render(this._namedGroups,f,l,m,r,n,o,p,y,s,q,u);if(n==="image")this._isLastChildSeparator(f,n)&&f.removeChild(f.childNodes[f.childNodes.length-1]);else if(n==="menu")if(this._isLastChildSeparator(f,n)){m=f.getChildren()[f.getChildren().length-1];f.removeChild(m);m.destroy()}}else{var C=this;this._selection&&this._selection.getSelections(function(v){C.renderCommands(f,l,v,r,n,o,p,s,q,u)})}},_render:function(f,l,m,r,n,o,p,s,q,u,y,C){var v=f.sortedCommands;
if(!v){v=[];for(var w in f){var A=f[w];if(A&&typeof A.position==="number"){A.id=w;v.push(A)}}v.sort(function(L,M){return L.position-M.position});f.sortedCommands=v}for(f=0;f<v.length;f++){var z;if(v[f].children){w=v[f];if(!(w.scopeId&&l.id!==w.scopeId)){var F;if(o==="image")if(w.title){A=new a.Menu({style:"display: none;"});A.eclipseScopeId=l.eclipseScopeId||l.id;this._render(v[f].children,A,m,r,n,"menu",p,s,q,u,y,C);F=A.getChildren();if(this._isLastChildSeparator(A,"menu")){z=F[F.length-1];A.removeChild(z);
z.destroy();F=A.getChildren()}if(F.length>0){z=F[0].eclipseCommand;if(F.length>1){z=new a.form.DropDownButton({label:w.title,dropDown:A});c.addClass(z.domNode,"commandLink");p&&c.addClass(z.domNode,p);c.place(z.domNode,l,"last")}else{A="image"+z.id+f;w=z._asImage(A,r,n,s,p,u,y,C);c.place(w,l,"last")}}}else{var G;if(l.childNodes.length>0&&!this._isLastChildSeparator(l,o))G=this.generateSeparatorImage(l);this._render(v[f].children,l,m,r,n,o,p,s,q,u,y,C);if(l.childNodes.length>0)if(l.childNodes[l.childNodes.length-
1]!==G)G=this.generateSeparatorImage(l)}else if(w.title){A=new a.Menu;this._render(v[f].children,A,m,r,n,o,p,s,q,u,y,C);A.getChildren().length>0&&l.addChild(new a.PopupMenuItem({label:w.title,popup:A}))}else{var K;if(l.getChildren().length>0&&!this._isLastChildSeparator(l,o)){K=new a.MenuSeparator;l.addChild(K)}this._render(v[f].children,l,m,r,n,o,p,s,q,u,y,C);w=l.getChildren();if(w[w.length-1]!==K){K=new a.MenuSeparator;l.addChild(K)}}}}else{A=(w=q[v[f].id])?true:false;if(w){if(m==="dom")A=o==="image"?
l.id===v[f].scopeId:o==="menu"?l.eclipseScopeId===v[f].scopeId:false;if(this._activeBindings[w.id]&&this._activeBindings[w.id].keyBinding){z=this._activeBindings[w.id];z.items=r;z.userData=s;z.handler=n;if(z.keyOnly)A=false}if(A&&w.visibleWhen)A=w.visibleWhen(r)}if(A)if(w.choiceCallback){A=new a.Menu({style:"display: none;"});if(o==="image"){z=new a.form.DropDownButton({label:w.name,dropDown:A});if(w.image){c.addClass(z.iconNode,"commandImage");p&&c.addClass(z.iconNode,p);z.iconNode.src=w.image}c.place(z.domNode,
l,"last");z.eclipseCommand=w;z.eclipseChoices=A;c.connect(z,"onClick",z,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,r,n,s)})}else if(o==="menu"){z=new a.PopupMenuItem({label:w.name,popup:A});l.addChild(z);z.eclipseCommand=w;z.eclipseChoices=A;c.connect(l,"_openPopup",z,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,r,n,s)})}}else if(o==="image"){A="image"+w.id+f;w=w._asImage(A,r,n,s,p,u,y,C);c.place(w,l,"last")}else o==="menu"&&w._addMenuItem(l,r,
n,s,p)}}},generateSeparatorImage:function(f){f=c.create("span",null,f,"last");c.addClass(f,"core-sprite-sep");c.addClass(f,"commandImage");c.addClass(f,"commandSprite");c.addClass(f,"commandSeparator");return f}};e.prototype.constructor=e;g.prototype={_init:function(f){this.id=f.id;this.name=f.name||"Empty Command";this.tooltip=f.tooltip||f.name;this.callback=f.callback;this.hrefCallback=f.hrefCallback;this.choiceCallback=f.choiceCallback;this.image=f.image||b.toUrl("images/none.png");this.imageClass=
f.imageClass;this.spriteClass=f.spriteClass||"commandSprite";this.visibleWhen=f.visibleWhen;this._deviceSupportsHover=false},_asImage:function(f,l,m,r,n,o,p,s){m=m||this;var q=c.create("a");q.id=this.name+"link";var u=null;if(this.tooltip)q.title=this.tooltip;if(o||!this.hasImage()){f=window.document.createTextNode(this.name);c.place(f,q,"last")}else{u=new Image;u.alt=this.name;u.title=this.tooltip||this.name;u.name=f;u.id=f}if(this.hrefCallback){f=this.hrefCallback.call(m,l,this.id,r);if(f.then)f.then(function(y){q.href=
y});else q.href=f}else if(this.callback)u?c.connect(u,"onclick",this,function(){this.callback.call(m,l,this.id,u.id,r)}):c.connect(q,"onclick",this,function(){this.callback.call(m,l,this.id,q.id,r)});if(u){if(this._deviceSupportsHover){u.src=b.toUrl("images/none.png");c.connect(u,"onmouseover",this,function(){u.src=this.image});c.connect(u,"onmouseout",this,function(){u.src=b.toUrl("images/none.png")})}else{u.src=this.image;c.connect(u,"onmouseover",this,function(){p?c.addClass(u,p):c.addClass(u,
"commandOver")});c.connect(u,"onmouseout",this,function(){u.src=this.image;p?c.removeClass(u,p):c.removeClass(u,"commandOver")})}c.addClass(u,"commandImage");n&&c.addClass(u,n);if(this.imageClass){c.addClass(u,this.spriteClass);c.addClass(u,this.imageClass)}c.place(u,q,"last")}s?c.addClass(q,s):c.addClass(q,"commandLink");n&&c.addClass(q,n);return q},_asLink:function(f,l,m){l=l||this;var r=window.document.createElement("a");if(this.tooltip)r.title=this.tooltip;c.place(window.document.createTextNode(this.name),
r,"only");r.href="";r.id=this.id+"link";if(this.callback)c.connect(r,"onclick",this,function(){this.callback.call(l,f,this.id,r.id)});else if(this.hrefCallback){var n=this.hrefCallback.call(l,f,this.id);if(n)if(n.then)n.then(function(o){r.href=o});else r.href=n}c.addClass(r,"commandLink");m&&c.addClass(r,m);return r},_addMenuItem:function(f,l,m,r,n){var o=new h({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:this.imageClass,hrefCallback:!!this.hrefCallback});this.tooltip&&new a.Tooltip({connectId:[o.domNode],
label:this.tooltip});if(this.hrefCallback){var p=this.hrefCallback.call(m,l,this.id,f.id,r);if(p)p.then?p.then(c.hitch(this,function(s){o.set("label","<a href='"+s+"'>"+this.name+"</a>")})):o.set("label","<a href='"+p+"'>"+this.name+"</a>")}else if(this.callback)o.onClick=c.hitch(this,function(){this.callback.call(m,l,this.id,null,r)});o.eclipseCommand=this;f.addChild(o);if(this.imageClass)c.addClass(o.iconNode,this.spriteClass);else if(this.image){c.addClass(o.iconNode,"commandImage");n&&c.addClass(o.iconNode,
n);o.iconNode.src=this.image}},populateChoicesMenu:function(f,l,m,r){f.focusedChild=null;c.forEach(f.getChildren(),function(p){f.removeChild(p);p.destroy()});m=this.getChoices(l,m,r);for(r=0;r<m.length;r++){var n=m[r],o;if(n.name){o=new a.MenuItem({label:n.name,iconClass:n.imageClass,onClick:this.makeChoiceCallback(n,l)});if(n.imageClass)c.addClass(o.iconNode,n.spriteClass||"commandSprite");else if(n.image){c.addClass(o.iconNode,"commandImage");o.iconNode.src=n.image}}else o=new a.MenuSeparator;f.addChild(o)}},
getChoices:function(f,l,m){if(this.choiceCallback)return this.choiceCallback.call(l,f,m);return null},makeChoiceCallback:function(f,l){return function(m){f.callback&&f.callback.call(f,l,m)}},hasImage:function(){return this.imageClass||this.image!==b.toUrl("images/none.png")}};g.prototype.constructor=g;var k=window.navigator.platform.indexOf("Mac")!==-1;j.prototype={match:function(f){if(this.keyCode===f.keyCode){if(this.mod1!==(k?f.metaKey:f.ctrlKey))return false;if(this.mod2!==f.shiftKey)return false;
if(this.mod3!==f.altKey)return false;if(k&&this.mod4!==f.ctrlKey)return false;return true}return false},equals:function(f){if(!f)return false;if(this.keyCode!==f.keyCode)return false;if(this.mod1!==f.mod1)return false;if(this.mod2!==f.mod2)return false;if(this.mod3!==f.mod3)return false;if(this.mod4!==f.mod4)return false;return true}};j.prototype.constructor=j;return{CommandService:e,CommandKeyBinding:j,Command:g,CommandMenuItem:h}});var orion=orion||{};orion.textview=orion.textview||{};
orion.textview.KeyBinding=function(){function b(a,d,e,g,j){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=d!==undefined&&d!==null?d:false;this.mod2=e!==undefined&&e!==null?e:false;this.mod3=g!==undefined&&g!==null?g:false;this.mod4=j!==undefined&&j!==null?j:false}var c=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(c?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;if(this.mod3!==
a.altKey)return false;if(c&&this.mod4!==a.ctrlKey)return false;return true}return false},equals:function(a){if(!a)return false;if(this.keyCode!==a.keyCode)return false;if(this.mod1!==a.mod1)return false;if(this.mod2!==a.mod2)return false;if(this.mod3!==a.mod3)return false;if(this.mod4!==a.mod4)return false;return true}};return b}();typeof window!=="undefined"&&typeof window.define!=="undefined"&&define("orion/textview/keyBinding",[],function(){return orion.textview});
define("text!dijit/templates/Dialog.html",function(){return'<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">\n\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent"></div>\n</div>'});
define("dojo/dnd/common",["dojo"],function(b){b.getObject("dnd",true,b);b.dnd.getCopyKeyState=b.isCopyKey;b.dnd._uniqueId=0;b.dnd.getUniqueId=function(){var c;do c=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(c));return c};b.dnd._empty={};b.dnd.isFormElement=function(c){c=c.target;if(c.nodeType==3)c=c.parentNode;return" button textarea input select option ".indexOf(" "+c.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",true,b);b.dnd.getViewport=b.window.getBox;b.dnd.V_TRIGGER_AUTOSCROLL=32;b.dnd.H_TRIGGER_AUTOSCROLL=32;b.dnd.V_AUTOSCROLL_VALUE=16;b.dnd.H_AUTOSCROLL_VALUE=16;b.dnd.autoScroll=function(c){var a=b.window.getBox(),d=0,e=0;if(c.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)d=-b.dnd.H_AUTOSCROLL_VALUE;else if(c.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)d=b.dnd.H_AUTOSCROLL_VALUE;if(c.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)e=-b.dnd.V_AUTOSCROLL_VALUE;
else if(c.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)e=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(d,e)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(c){for(var a=c.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var d=b.getComputedStyle(a);if(d.overflow.toLowerCase()in b.dnd._validOverflow){var e=b._getContentBox(a,d);d=b.position(a,true);var g=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,e.w/2),j=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
e.h/2),h=c.pageX-d.x,k=c.pageY-d.y,f=d=0;if(b.isWebKit||b.isOpera){h+=b.body().scrollLeft;k+=b.body().scrollTop}if(h>0&&h<e.w)if(h<g)d=-g;else if(h>e.w-g)d=g;if(k>0&&k<e.h)if(k<j)f=-j;else if(k>e.h-j)f=j;e=a.scrollLeft;g=a.scrollTop;a.scrollLeft+=d;a.scrollTop+=f;if(e!=a.scrollLeft||g!=a.scrollTop)return}}try{a=a.parentNode}catch(l){a=null}}b.dnd.autoScroll(c)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(c,a,d){this.node=b.byId(c);var e=a.touches?a.touches[0]:a;this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=a.button;a=this.host=d;c=c.ownerDocument;this.events=[b.connect(c,"onmousemove",this,"onFirstMove"),b.connect(c,"ontouchmove",this,"onFirstMove"),b.connect(c,"onmousemove",this,"onMouseMove"),b.connect(c,"ontouchmove",this,"onMouseMove"),b.connect(c,
"onmouseup",this,"onMouseUp"),b.connect(c,"ontouchend",this,"onMouseUp"),b.connect(c,"ondragstart",b.stopEvent),b.connect(c.body,"onselectstart",b.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(c){b.dnd.autoScroll(c);var a=this.marginBox,d=c.touches?c.touches[0]:c;this.host.onMove(this,{l:a.l+d.pageX,t:a.t+d.pageY},c);b.stopEvent(c)},onMouseUp:function(c){if(b.isWebKit&&b.isMac&&this.mouseButton==2?c.button==0:this.mouseButton==c.button)this.destroy();b.stopEvent(c)},onFirstMove:function(c){var a=
this.node.style,d,e=this.host;switch(a.position){case "relative":case "absolute":d=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);d=b.doc.body;var g=b.getComputedStyle(d),j=b._getMarginBox(d,g);g=b._getContentBox(d,g);d=a.l-(g.l-j.l);a=a.t-(g.t-j.t);break}this.marginBox.l=d-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;e&&e.onFirstMove&&e.onFirstMove(this,c);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var c=this.host;c&&c.onMoveStop&&c.onMoveStop(this);this.events=this.node=this.host=null}});return b.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(b){b.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(c,a){this.node=b.byId(c);a||(a={});this.handle=a.handle?b.byId(a.handle):null;if(!this.handle)this.handle=this.node;this.delay=a.delay>0?a.delay:0;this.skip=a.skip;this.mover=a.mover?a.mover:b.dnd.Mover;this.events=[b.connect(this.handle,"onmousedown",this,"onMouseDown"),b.connect(this.handle,"ontouchstart",this,"onMouseDown"),b.connect(this.handle,
"ondragstart",this,"onSelectStart"),b.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(c,a){return new b.dnd.Moveable(a,c)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(c){if(!(this.skip&&b.dnd.isFormElement(c))){if(this.delay){this.events.push(b.connect(this.handle,"onmousemove",this,"onMouseMove"),b.connect(this.handle,"ontouchmove",this,"onMouseMove"),b.connect(this.handle,"onmouseup",this,
"onMouseUp"),b.connect(this.handle,"ontouchend",this,"onMouseUp"));var a=c.touches?c.touches[0]:c;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(c);b.stopEvent(c)}},onMouseMove:function(c){var a=c.touches?c.touches[0]:c;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(c);this.onDragDetected(c)}b.stopEvent(c)},onMouseUp:function(c){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(c)},onSelectStart:function(c){if(!this.skip||
!b.dnd.isFormElement(c))b.stopEvent(c)},onDragDetected:function(c){new this.mover(this.node,c,this)},onMoveStart:function(c){b.publish("/dnd/move/start",[c]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(c){b.publish("/dnd/move/stop",[c]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(c,a){this.onMoving(c,a);var d=c.node.style;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(c,a)},onMoving:function(){},
onMoved:function(){}});return b.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(b){b.declare("dojo.dnd.move.constrainedMoveable",b.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(c,a){return new b.dnd.move.constrainedMoveable(a,c)},constructor:function(c,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(c){var a=this.constraintBox=this.constraints.call(this,c);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){c=b._getMarginSize(c.node);a.r-=c.w;
a.b-=c.h}},onMove:function(c,a){var d=this.constraintBox,e=c.node.style;this.onMoving(c,a);a.l=a.l<d.l?d.l:d.r<a.l?d.r:a.l;a.t=a.t<d.t?d.t:d.b<a.t?d.b:a.t;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(c,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(c,a){return new b.dnd.move.boxConstrainedMoveable(a,c)},constructor:function(c,a){var d=a&&a.box;this.constraints=function(){return d}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(c,a){return new b.dnd.move.parentConstrainedMoveable(a,c)},constructor:function(c,a){var d=a&&a.area;this.constraints=function(){var e=this.node.parentNode,g=b.getComputedStyle(e),j=b._getMarginBox(e,g);if(d=="margin")return j;var h=b._getMarginExtents(e,g);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;if(d=="border")return j;h=b._getBorderExtents(e,g);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;if(d=="padding")return j;h=b._getPadExtents(e,g);j.l+=
h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;return j}}});b.dnd.constrainedMover=b.dnd.move.constrainedMover;b.dnd.boxConstrainedMover=b.dnd.move.boxConstrainedMover;b.dnd.parentConstrainedMover=b.dnd.move.parentConstrainedMover;return b.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(b){(function(){var c=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,d){d||(d={});if(d.timeout&&typeof d.timeout=="number"&&d.timeout>=0)this.timeout=d.timeout},markupFactory:function(a,d){return new b.dnd.TimedMoveable(d,a)},onMoveStop:function(a){if(a._timer){clearTimeout(a._timer);c.call(this,a,a._leftTop)}b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,d){a._leftTop=d;if(!a._timer){var e=this;a._timer=setTimeout(function(){a._timer=null;c.call(e,a,a._leftTop)},this.timeout)}}})})();return b.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(b){b.declare("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(c){var a=this;b.mixin(a,c);a.node=c.node;a._showArgs=b.mixin({},c);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=b.mixin({},c);a._hideArgs.node=a.node;a._hideArgs.duration=a.hideDuration;a.hideAnim=a.hideFunc(a._hideArgs);b.connect(a.showAnim,"beforeBegin",b.hitch(a.hideAnim,
"stop",true));b.connect(a.hideAnim,"beforeBegin",b.hitch(a.showAnim,"stop",true))},show:function(c){return this.showAnim.play(c||0)},hide:function(c){return this.hideAnim.play(c||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var c={_fire:function(e,g){if(this[e])this[e].apply(this,g||[]);return this}},a=function(e){this._index=-1;this._animations=e||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(g){this.duration+=g.duration;if(g.delay)this.duration+=g.delay},this)};b.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){b.disconnect(this._onAnimateCtx);b.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length)this._fire("onEnd");else{this._current=this._animations[++this._index];this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true)}},play:function(e,g){if(!this._current)this._current=this._animations[this._index=0];if(!g&&this._current.status()=="playing")return this;var j=b.connect(this._current,"beforeBegin",this,
function(){this._fire("beforeBegin")}),h=b.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),k=b.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);b.disconnect(j);b.disconnect(h);b.disconnect(k)});this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&b.disconnect(this._onEndCtx);this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,
arguments);return this},pause:function(){if(this._current){var e=b.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);b.disconnect(e)});this._current.pause()}return this},gotoPercent:function(e,g){this.pause();var j=this.duration*e;this._current=null;b.some(this._animations,function(h){if(h.duration<=j){this._current=h;return true}j-=h.duration;return false});this._current&&this._current.gotoPercent(j/this._current.duration,g);return this},stop:function(e){if(this._current){if(e){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(true);this._current=this._animations[this._index]}var g=b.connect(this._current,"onStop",this,function(){this._fire("onStop",arguments);b.disconnect(g)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onEndCtx&&b.disconnect(this._onEndCtx)}});b.extend(a,c);b.fx.chain=function(e){return new a(e)};
var d=function(e){this._animations=e||[];this._connects=[];this.duration=this._finished=0;b.forEach(e,function(j){var h=j.duration;if(j.delay)h+=j.delay;if(this.duration<h)this.duration=h;this._connects.push(b.connect(j,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var g=this;b.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(j){g._connects.push(b.connect(g._pseudoAnimation,j,function(){g._fire(j,
arguments)}))})};b.extend(d,{_doAction:function(e,g){b.forEach(this._animations,function(j){j[e].apply(j,g)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,g){var j=this._pseudoAnimation;j[e].apply(j,g)},play:function(){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(e,g){var j=
this.duration*e;b.forEach(this._animations,function(h){h.gotoPercent(h.duration<j?1:j/h.duration,g)});this._call("gotoPercent",arguments);return this},stop:function(){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,b.disconnect)}});b.extend(d,c);b.fx.combine=function(e){return new d(e)};b.fx.wipeIn=function(e){var g=e.node=b.byId(e.node),j=g.style,h;e=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
j.overflow;j.overflow="hidden";if(j.visibility=="hidden"||j.display=="none"){j.height="1px";j.display="";j.visibility="";return 1}else{var k=b.style(g,"height");return Math.max(k,1)}},end:function(){return g.scrollHeight}}}},e));b.connect(e,"onEnd",function(){j.height="auto";j.overflow=h});return e};b.fx.wipeOut=function(e){var g=(e.node=b.byId(e.node)).style,j;e=b.animateProperty(b.mixin({properties:{height:{end:1}}},e));b.connect(e,"beforeBegin",function(){j=g.overflow;g.overflow="hidden";g.display=
""});b.connect(e,"onEnd",function(){g.overflow=j;g.height="auto";g.display="none"});return e};b.fx.slideTo=function(e){var g=null,j=null,h=function(k){return function(){var f=b.getComputedStyle(k),l=f.position;g=l=="absolute"?k.offsetTop:parseInt(f.top)||0;j=l=="absolute"?k.offsetLeft:parseInt(f.left)||0;if(l!="absolute"&&l!="relative"){f=b.position(k,true);g=f.y;j=f.x;k.style.position="absolute";k.style.top=g+"px";k.style.left=j+"px"}}}(e.node=b.byId(e.node));h();e=b.animateProperty(b.mixin({properties:{top:e.top||
0,left:e.left||0}},e));b.connect(e,"beforeBegin",e,h);return e}})();return b.fx});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,c){b.declare("dijit.form._FormMixin",null,{state:"",reset:function(){b.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=false;return b.every(b.map(this.getDescendants(),function(d){d._hasBeenBlurred=true;var e=d.disabled||!d.validate||d.validate();if(!e&&!a){b.window.scrollIntoView(d.containerNode||d.domNode);d.focus();a=true}return e}),function(d){return d})},setValues:function(a){b.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var d={};b.forEach(this.getDescendants(),function(h){if(h.name)(d[h.name]||(d[h.name]=[])).push(h)});for(var e in d)if(d.hasOwnProperty(e)){var g=d[e],j=b.getObject(e,false,a);if(j!==undefined){b.isArray(j)||(j=[j]);if(typeof g[0].checked=="boolean")b.forEach(g,function(h){h.set("value",b.indexOf(j,h.value)!=-1)});else g[0].multiple?g[0].set("value",j):b.forEach(g,function(h,
k){h.set("value",j[k])})}}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};b.forEach(this.getDescendants(),function(d){var e=d.name;if(!(!e||d.disabled)){var g=d.get("value");if(typeof d.checked=="boolean")if(/Radio/.test(d.declaredClass))if(g!==false)b.setObject(e,g,a);else{g=b.getObject(e,false,a);g===undefined&&b.setObject(e,null,a)}else{d=b.getObject(e,false,a);
if(!d){d=[];b.setObject(e,d,a)}g!==false&&d.push(g)}else{d=b.getObject(e,false,a);if(typeof d!="undefined")b.isArray(d)?d.push(g):b.setObject(e,[d,g],a);else b.setObject(e,g,a)}}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(d){return d.get("state")||""});return b.indexOf(a,"Error")>=0?"Error":b.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){b.forEach(this._childConnections||
[],b.hitch(this,"disconnect"));b.forEach(this._childWatches||[],function(a){a.unwatch()})},connectChildren:function(a){var d=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(h,k){d[h]=k}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],g=this._childWatches=[];b.forEach(b.filter(this._descendants,function(h){return h.validate}),function(h){b.forEach(["state","disabled"],function(k){g.push(h.watch(k,function(){d.set("state",
d._getState())}))})});var j=function(){d._onChangeDelayTimer&&clearTimeout(d._onChangeDelayTimer);d._onChangeDelayTimer=setTimeout(function(){delete d._onChangeDelayTimer;d._set("value",d.get("value"))},10)};b.forEach(b.filter(this._descendants,function(h){return h.onChange}),function(h){e.push(d.connect(h,"onChange",j));g.push(h.watch("disabled",j))})},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(a,d,e){this.onValidStateChange(e=="")})},destroy:function(){this.disconnectChildren();
this.inherited(arguments)}});return c.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,c){b.declare("dijit._DialogMixin",null,{attributeMap:c._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=c._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return c._DialogMixin});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,c){b.declare("dijit.DialogUnderlay",[c._Widget,c._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){b.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){b.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,d=this.domNode.style;d.display="none";var e=b.window.getBox();d.top=e.t+"px";d.left=e.l+"px";a.width=e.w+"px";a.height=e.h+"px";d.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new c.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return c.DialogUnderlay});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,c){b.declare("dijit.layout._LayoutWidget",[c._Widget,c._Container,c._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!(a&&a.isLayoutContainer)){this.resize();this.connect(b.isIE?
this.domNode:b.global,"onresize",function(){this.resize()})}}},resize:function(a,d){var e=this.domNode;if(a){b.marginBox(e,a);if(a.t)e.style.top=a.t+"px";if(a.l)e.style.left=a.l+"px"}d=d||{};b.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=b.mixin(b.marginBox(e),d);a=b.getComputedStyle(e);var g=b._getMarginExtents(e,a),j=b._getBorderExtents(e,a);d=this._borderBox={w:d.w-(g.w+j.w),h:d.h-(g.h+j.h)};g=b._getPadExtents(e,a);this._contentBox={l:b._toPixelValue(e,a.paddingLeft),t:b._toPixelValue(e,a.paddingTop),
w:d.w-g.w,h:d.h-g.h};this.layout()},layout:function(){},_setupChild:function(a){b.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){b.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});c.layout.marginBox2contentBox=function(a,d){var e=b.getComputedStyle(a),g=b._getMarginExtents(a,
e),j=b._getPadBorderExtents(a,e);return{l:b._toPixelValue(a,e.paddingLeft),t:b._toPixelValue(a,e.paddingTop),w:d.w-(g.w+j.w),h:d.h-(g.h+j.h)}};(function(){var a=function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},d=function(e,g){var j=e.resize?e.resize(g):b.marginBox(e.domNode,g);if(j)b.mixin(e,j);else{b.mixin(e,b.marginBox(e.domNode));b.mixin(e,g)}};c.layout.layoutChildren=function(e,g,j,h,k){g=b.mixin({},g);b.addClass(e,"dijitLayoutContainer");j=b.filter(j,function(f){return f.region!=
"center"&&f.layoutAlign!="client"}).concat(b.filter(j,function(f){return f.region=="center"||f.layoutAlign=="client"}));b.forEach(j,function(f){var l=f.domNode,m=f.region||f.layoutAlign,r=l.style;r.left=g.l+"px";r.top=g.t+"px";r.position="absolute";b.addClass(l,"dijitAlign"+a(m));l={};if(h&&h==f.id)l[f.region=="top"||f.region=="bottom"?"h":"w"]=k;if(m=="top"||m=="bottom"){l.w=g.w;d(f,l);g.h-=f.h;if(m=="top")g.t+=f.h;else r.top=g.t+g.h+"px"}else if(m=="left"||m=="right"){l.h=g.h;d(f,l);g.w-=f.w;if(m==
"left")g.l+=f.w;else r.left=g.l+g.w+"px"}else if(m=="client"||m=="center")d(f,g)})}})();return c.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,c){b.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=true})},startup:function(){if(!this._started){var a=c._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;
this.inherited(arguments);this._startChildren();this._isShown()&&this._onShow();this._childOfLayoutWidget||this.connect(b.isIE?this.domNode:b.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=b.query("> *",this.containerNode).filter(function(g){return g.tagName!=="SCRIPT"}),d=a.filter(function(g){return b.hasAttr(g,"data-dojo-type")||b.hasAttr(g,"dojoType")||b.hasAttr(g,"widgetId")}),e=b.filter(d.map(c.byNode),function(g){return g&&
g.domNode&&g.resize});if(a.length==d.length&&e.length==1)this._singleChild=e[0];else delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,d){!this._wasShown&&this.open!==false&&this._onShow();this._resizeCalled=true;this._scheduleLayout(a,d)},_scheduleLayout:function(a,d){if(this._isShown())this._layout(a,d);else{this._needLayout=true;this._changeSize=a;this._resultSize=d}},_layout:function(a,d){a&&b.marginBox(this.domNode,
a);var e=this.containerNode;if(e===this.domNode){d=d||{};b.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=b.mixin(b.marginBox(e),d);this._contentBox=c.layout.marginBox2contentBox(e,d)}else this._contentBox=b.contentBox(e);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||b.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else b.forEach(this.getChildren(),
function(d){d.resize&&d.resize()})},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open"in this)return this.open;return this._resizeCalled}else if("open"in this)return this.open;else{var a=this.domNode,d=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&d&&d.style&&d.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=
true}});return c.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",true,b);(function(){var c=0;b.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};b.html._emptyNode=b.empty;b.html._setNodeContent=function(a,d){b.empty(a);if(d){if(typeof d=="string")d=b._toDom(d,a.ownerDocument);if(!d.nodeType&&b.isArrayLike(d))for(var e=d.length,g=0;g<d.length;g=e==d.length?g+1:0)b.place(d[g],a,"last");else b.place(d,a,"last")}return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:b._scopeName,startup:true,constructor:function(a,d){b.mixin(this,a||{});d=this.node=b.byId(this.node||d);if(!this.id)this.id=["Setter",d?d.id||d.tagName:"",c++].join("_")},set:function(a,d){if(undefined!==a)this.content=a;d&&this._mixin(d);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw new Error(this.declaredClass+": setContent given no node");
try{a=b.html._setNodeContent(a,this.content)}catch(d){var e=this.onContentError(d);try{a.innerHTML=e}catch(g){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+g.message,g)}}this.node=a},empty:function(){if(this.parseResults&&this.parseResults.length){b.forEach(this.parseResults,function(a){a.destroy&&a.destroy()});delete this.parseResults}b.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(b.isString(a)){if(this.cleanContent)a=b.html._secureForInnerHtml(a);
if(this.extractContent){var d=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(d)a=d[1]}}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(a){return"Error occured setting content: "+a},_mixin:function(a){var d={},e;for(e in a)e in d||(this[e]=a[e])},_parse:function(){var a=this.node;try{var d={};b.forEach(["dir","lang","textDir"],
function(g){if(this[g])d[g]=this[g]},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:d,scope:this.parserScope})}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,d,e){a=this["on"+a+"Error"].call(this,d);if(e)console.error(e,d);else a&&b.html._setNodeContent(this.node,a,true)}});b.html.set=function(a,d,e){if(undefined==d){console.warn("dojo.html.set: no cont argument provided, using empty string");d=""}return e?(new b.html._ContentSetter(b.mixin(e,
{content:d,node:a}))).set():b.html._setNodeContent(a,d,true)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/layout/ContentPane",["dojo","dijit","dijit/_Widget","dijit/layout/_ContentPaneResizeMixin","dojo/string","dojo/html","i18n!dijit/nls/loading"],function(b,c){b.declare("dijit.layout.ContentPane",[c._Widget,c.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:b._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",
isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:b.delegate(c._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(a,d){if((!a||!a.template)&&d&&!("href"in a)&&!("content"in a)){var e=b.doc.createDocumentFragment();for(d=b.byId(d);d.firstChild;)e.appendChild(d.firstChild);a=b.delegate(a,{content:e})}this.inherited(arguments,[a,d])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit",
"loading",this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||c.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&b.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&b.isFunction(a.startup)){a.startup();
a._started=true}},this)},setHref:function(a){b.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._set("href",a);if(this.preload||this._created&&this._isShown())this._load();else this._hrefChanged=true;return this.onLoadDeferred},setContent:function(a){b.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.",
"","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href","");this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=false;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&
this.cancel();this.inherited(arguments)},destroyRecursive:function(){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href)if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
true);var a=this,d={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(d,this.ioArgs);var e=this._xhrDfd=(this.ioMethod||b.xhrGet)(d);e.addCallback(function(g){try{a._isDownloaded=true;a._setContent(g,false);a.onDownloadEnd()}catch(j){a._onError("Content",j)}delete a._xhrDfd;return g});e.addErrback(function(g){e.canceled||a._onError("Download",g);delete a._xhrDfd;return g});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
true);try{this.onLoadDeferred.callback(a)}catch(d){console.error("Error "+this.widgetId+" running custom onLoad code: "+d.message)}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(){this.isLoaded&&this._onUnloadHandler();var a=this._contentSetter;b.forEach(this.getChildren(),function(d){d.destroyRecursive&&d.destroyRecursive()});if(a){b.forEach(a.parseResults,
function(d){d.destroyRecursive&&d.domNode&&d.domNode.parentNode==b.body()&&d.destroyRecursive()});delete a.parseResults}b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,d){this.destroyDescendants();var e=this._contentSetter;if(!(e&&e instanceof b.html._ContentSetter))e=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(j){j=this.onContentError(j);try{this.containerNode.innerHTML=
j}catch(h){console.error("Fatal "+this.id+" could not change content due to "+h.message,h)}})});var g=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});e.set(b.isObject(a)&&a.domNode?a.domNode:a,g);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();if(!d){if(this._started){this._startChildren();this._scheduleLayout()}this._onLoadHandler(a)}},
_onError:function(a,d,e){this.onLoadDeferred.errback(d);a=this["on"+a+"Error"].call(this,d);if(e)console.error(e,d);else a&&this._setContent(a,true)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});return c.layout.ContentPane});
define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});define("text!dijit/templates/TooltipDialog.html",function(){return'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" dojoAttachPoint="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>'});
define("dijit/TooltipDialog",["dojo","dijit","text!dijit/templates/TooltipDialog.html","dijit/layout/ContentPane","dijit/_Templated","dijit/form/_FormMixin","dijit/_DialogMixin"],function(b,c){b.declare("dijit.TooltipDialog",[c.layout.ContentPane,c._Templated,c.form._FormMixin,c._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=
a;this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,d,e){a="dijitTooltipAB"+(e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(e.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);c.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var d=a.target,e=b.keys;a.charOrCode===e.TAB&&this._getFocusItems(this.containerNode);var g=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==e.ESCAPE){setTimeout(b.hitch(this,"onCancel"),0);b.stopEvent(a)}else if(d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB){g||c.focus(this._lastFocusItem);b.stopEvent(a)}else if(d==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey){g||c.focus(this._firstFocusItem);b.stopEvent(a)}else a.charOrCode===
e.TAB&&a.stopPropagation()}});return c.TooltipDialog});
define("dijit/Dialog",["dojo","dijit","text!dijit/templates/Dialog.html","dojo/dnd/move","dojo/dnd/TimedMoveable","dojo/fx","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin","dijit/form/_FormMixin","dijit/_DialogMixin","dijit/DialogUnderlay","dijit/layout/ContentPane","i18n!dijit/nls/common","dijit/TooltipDialog"],function(b,c){b.declare("dijit._DialogBase",[c._Templated,c.form._FormMixin,c._DialogMixin,c._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(c._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:c.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var a=b.i18n.getLocalization("dijit","common");b.mixin(this,a);this.inherited(arguments)},
postCreate:function(){b.style(this.domNode,{display:"none",position:"absolute"});b.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[]},onLoad:function(){this._position();if(this.autofocus&&c._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);c.focus(this._firstFocusItem)}this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=
b.position(a.node)},_setup:function(){var a=this.domNode;if(this.titleBar&&this.draggable){this._moveable=b.isIE==6?new b.dnd.TimedMoveable(a,{handle:this.titleBar}):new b.dnd.Moveable(a,{handle:this.titleBar,timeout:0});this._dndListener=b.subscribe("/dnd/move/stop",this,"_endDrag")}else b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(d){return d+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),d=b.window.getBox();if(a.w>=d.w||a.h>=d.h){var e=Math.min(a.w,Math.floor(d.w*0.75));a=Math.min(a.h,Math.floor(d.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:e,h:a})}else b.style(this.containerNode,{width:e+"px",height:a+"px",
overflow:"auto",position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,d=b.window.getBox(),e=this._relativePosition,g=e?null:b._getBorderBox(a),j=Math.floor(d.l+(e?e.x:(d.w-g.w)/2));d=Math.floor(d.t+(e?e.y:(d.h-g.h)/2));b.style(a,{left:j+"px",top:d+"px"})}},_onKey:function(a){if(a.charOrCode){var d=b.keys,e=a.target;a.charOrCode===d.TAB&&this._getFocusItems(this.domNode);var g=
this._firstFocusItem==this._lastFocusItem;if(e==this._firstFocusItem&&a.shiftKey&&a.charOrCode===d.TAB){g||c.focus(this._lastFocusItem);b.stopEvent(a)}else if(e==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey){g||c.focus(this._firstFocusItem);b.stopEvent(a)}else{for(;e;){if(e==this.domNode||b.hasClass(e,"dijitPopup"))if(a.charOrCode==d.ESCAPE)this.onCancel();else return;e=e.parentNode}if(a.charOrCode!==d.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(j){}}}},
show:function(){if(!this.open){this._started||this.startup();if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true}this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var d=b.window.getBox();if(!this._oldViewport||d.h!=this._oldViewport.h||d.w!=this._oldViewport.w){this.layout();this._oldViewport=d}}));this._modalconnects.push(b.connect(this.domNode,
"onkeypress",this,"_onKey"));b.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=b.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:b.hitch(this,function(){c._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){if(this.autofocus&&c._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
c.focus(this._firstFocusItem)}this._fadeInDeferred.callback(true);delete this._fadeInDeferred})}).play();return this._fadeInDeferred}},hide:function(){if(this._alreadyInitialized){this._fadeInDeferred&&this._fadeInDeferred.cancel();var a;this._fadeOutDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,function(){this.domNode.style.display="none";c._DialogLevelManager.hide(this);this.onHide();
this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred})}).play();if(this._scrollConnected)this._scrollConnected=false;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",false);return this._fadeOutDeferred}},layout:function(){if(this.domNode.style.display!="none"){c._underlay&&c._underlay.layout();this._position()}},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&
this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&b.unsubscribe(this._dndListener);b.forEach(this._modalconnects,b.disconnect);c._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[c.layout.ContentPane,c._DialogBase],{});c._DialogLevelManager={show:function(a,d){var e=c._dialogStack;e[e.length-1].focus=c.getFocus(a);var g=c._underlay;if(!g||g._destroyed)g=c._underlay=new c.DialogUnderlay(d);else g.set(a.underlayAttrs);var j=
e[e.length-1].dialog?e[e.length-1].zIndex+2:950;e.length==1&&g.show();b.style(c._underlay.domNode,"zIndex",j-1);b.style(a.domNode,"zIndex",j);e.push({dialog:a,underlayAttrs:d,zIndex:j})},hide:function(a){var d=c._dialogStack;if(d[d.length-1].dialog==a){d.pop();var e=d[d.length-1];if(d.length==1)c._underlay._destroyed||c._underlay.hide();else{b.style(c._underlay.domNode,"zIndex",e.zIndex-1);c._underlay.set(e.underlayAttrs)}if(a.refocus){d=e.focus;if(!d||e.dialog&&!b.isDescendant(d.node,e.dialog.domNode)){e.dialog._getFocusItems(e.dialog.domNode);
d=e.dialog._firstFocusItem}try{c.focus(d)}catch(g){}}}else{e=b.indexOf(b.map(d,function(j){return j.dialog}),a);e!=-1&&d.splice(e,1)}},isTop:function(a){var d=c._dialogStack;return d[d.length-1].dialog==a}};c._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return c.Dialog});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(b,c){b.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Information Needed";this.buttonCancel="Cancel"},postCreate:function(){this.inherited(arguments);b.connect(this,"onKeyPress",b.hitch(this,function(a){a.keyCode===b.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(b.hitch(this,function(){if(b.isDescendant(c._curFocus,
this.domNode))c._curFocus=null;if(b.isDescendant(c._prevFocus,this.domNode))c._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!orion/widgets/templates/OpenResourceDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" title="${title}" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<div style="display:table">\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<label for="resourceName" style="padding-right:10">${selectFile}</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<input type="text" dojoType="dijit.form.TextBox" dojoAttachPoint="resourceName" \n\t\t\t\t\t\tplaceHolder="${searchPlaceHolder}"\n\t\t\t\t\t\tintermediateChanges="true" style="width:30em;">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="results" style="max-height:400px; height:auto; overflow-y:auto;"></div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="statusbar" style="display:table-cell;"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/OpenResourceDialog",["dojo","dijit","dijit/Dialog","dijit/form/TextBox","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/OpenResourceDialog.html"],function(b,c){return b.declare("orion.widgets.OpenResourceDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,options:null,searchLocation:null,searcher:null,constructor:function(){this.inherited(arguments);
this.timeoutId=null;this.time=0;this.searchLocation=(this.options=arguments[0])&&this.options.SearchLocation;this.searcher=this.options&&this.options.searcher;if(!this.searchLocation)throw new Error("Missing required argument: SearchLocation");if(!this.searcher)throw new Error("Missing required argument: searcher");},postMixInProperties:function(){this.options.title=this.options.title||"Find File Named";this.selectFile="Type the name of a file to open (? = any character, * = any string):";this.searchPlaceHolder=
"Search";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);b.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(b.hitch(this,this.checkSearch),0)});b.connect(this.resourceName,"onKeyPress",this,function(a){if(a.keyCode===b.keys.ENTER&&this.results){a=b.query("a",this.results);if(a.length>0){window.open(a[0].href);this.hide()}}});b.connect(this,"onMouseUp",function(a){a.target.focus()})},checkSearch:function(){clearTimeout(this.timeoutId);
var a=(new Date).getTime();if(a-this.time>this.SEARCH_DELAY){this.time=a;this.doSearch()}else this.timeoutId=setTimeout(b.hitch(this,"checkSearch"),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value");if(a){b.place("<div>Searching&#x2026;</div>",this.results,"only");var d=this;setTimeout(function(){var e=d.searcher.createSearchQuery(d.searchLocation,null,a);d.searcher.search(d.results,e,false,false,b.hitch(d,d.decorateResult),true,true)},0)}},decorateResult:function(a){var d=
this;b.query("a",a).forEach(function(e){b.connect(e,"onmouseup",function(g){!b.mouseButtons.isMiddle(g)&&!b.isCopyKey(g)&&d.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});define("text!orion/widgets/templates/LoginDialog.html",function(){return'\n<div>\n\t<div class="dijitTooltipContainer" role="presentation" style="width: 300px; padding-left: 0; padding-right: 0; padding-top: 0.5em; padding-bottom: 0.45em">\n\t\t<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"\n\t\t\tdojoattachpoint="containerNode" style="padding: 0">\n\t\t\t<table dojoAttachPoint="authenticated" style="display: none; width: 100%;">\n\t\t\t <tbody dojoAttachPoint="authenticatedList">\n\t\t\t</tbody>\n\t\t\t</span>\n\t\t\t\n\t\t\t<table dojoAttachPoint="otherUnauthenticated" style="display: none; width: 100%;">\n\t\t\t <tbody dojoAttachPoint="otherUnauthenticatedList">\n\t\t\t</tbody>\n\t\t\t</span>\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n\n</div>'});
define("orion/widgets/LoginDialog",["require","dojo","dijit","orion/util","dijit/TooltipDialog","text!orion/widgets/templates/LoginDialog.html"],function(b,c,a,d){c.declare("orion.widgets.LoginDialog",[a.TooltipDialog],{widgetsInTemplate:true,templateString:c.cache("orion","widgets/templates/LoginDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},setPendingAuthentication:function(e){for(var g in this.unauthenticatedServices)delete this.unauthenticatedServices[g].pending;
for(g in e)if(this.unauthenticatedServices[e[g].SignInKey])this.unauthenticatedServices[e[g].SignInKey].pending=true;else if(this.authenticatedServices[e[g].SignInKey]){this.unauthenticatedServices[e[g].SignInKey]=this.authenticatedServices[e[g].SignInKey];this.unauthenticatedServices[e[g].SignInKey].pending=true;delete this.authenticatedServices[e[g].SignInKey]}else this.unauthenticatedServices[e[g].SignInKey]={label:e[g].SignInKey,SignInLocation:e[g].SignInLocation,pending:true};this.renderUnauthenticatedServices();
this.renderAuthenticatedServices()},addUserItem:function(e,g,j,h){if(h){this.unauthenticatedServices[e]&&delete this.unauthenticatedServices[e];this.authenticatedServices[e]={authService:g,label:j,data:h}}else{this.authenticatedServices[e]&&delete this.authenticatedServices[e];this.unauthenticatedServices[e]=this.unauthenticatedServices[e]?{authService:g,label:j,pending:this.unauthenticatedServices[e].pending}:{authService:g,label:j}}c.hitch(this,this.renderAuthenticatedServices)();c.hitch(this,this.renderUnauthenticatedServices)();
if(a.byId("logins"))if(this.isSingleService()&&h){d.setUserName(h.login);e=h.Name&&h.Name.replace(/^\s+|\s+$/g,"")!==""?h.Name:h.login;if(e.length>40)e=e.substring(0,30)+"...";a.byId("logins").setLabel(e)}else a.byId("logins").setLabel("Security")},renderAuthenticatedServices:function(){c.empty(this.authenticatedList);this.authenticated.style.display=this.isEmpty(this.authenticatedServices)?"none":"";var e=this,g=true;for(var j in this.authenticatedServices){if(!g){var h=c.create("tr",null,this.authenticatedList);
c.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},h)}g=false;h=c.create("tr",{className:"navTableHeading"});var k=c.create("td",{innerHTML:"<h2>"+(this.authenticatedServices[j].label?this.authenticatedServices[j].label:j)+"</h2>"},h,"only");c.addClass(k,"LoginWindowLeft");k=c.create("td",{style:"text-align: right"},h,"last");c.addClass(k,"LoginWindowRight");var f=this.authenticatedServices[j].data,
l=this.authenticatedServices[j].authService;f.Location&&c.create("a",{href:b.toUrl("profile/user-profile.html")+"#"+f.Location,innerHTML:"Profile"},k,"last");c.place(document.createTextNode(" "),k,"last");if(l.logout){var m=c.create("a",{innerHTML:"Sign out"},k,"last");c.connect(m,"onmouseover",m,function(){m.style.cursor="pointer"});c.connect(m,"onmouseout",m,function(){m.style.cursor="default"});c.connect(m,"onclick",c.hitch(e,function(r,n){return function(){r.logout().then(c.hitch(e,function(){this.addUserItem(n,
r,this.authenticatedServices[n].label);this.isSingleService()&&a.popup.close(this);localStorage.removeItem(n)}))}})(l,j))}c.place(h,this.authenticatedList,"last");k="N/A";if(f&&f.lastlogintimestamp)k=c.date.locale.format(new Date(f.lastlogintimestamp),{formatLength:"short"});f=f.Name&&f.Name.replace(/^\s+|\s+$/g,"")!==""?f.Name:f.login;h=c.create("tr");k=f.length>40?c.create("td",{innerHTML:f.substring(0,30)+"... logged in since "+k,colspan:2,title:f+" logged in since "+k},h,"only"):c.create("td",
{innerHTML:f+" logged in since "+k,colspan:2},h,"only");c.addClass(k,"LoginWindowLeft");c.addClass(k,"LoginWindowRight");c.addClass(k,"LoginWindowComment");c.place(h,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){c.empty(this.otherUnauthenticatedList);var e=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?"none":"";var g=true;for(var j in this.unauthenticatedServices){if(!g||!this.isEmpty(this.authenticatedServices)){var h=c.create("tr",
null,this.otherUnauthenticatedList);c.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},h)}g=false;h=c.create("tr",{className:"navTableHeading"});var k=c.create("td",null,h,"only");c.addClass(k,"LoginWindowLeft");c.create("h2",{innerHTML:this.unauthenticatedServices[j].label?this.unauthenticatedServices[j].label:j},k,"only");k=c.create("td",{style:"text-align: right"},h,"last");
c.addClass(k,"LoginWindowRight");var f=this.unauthenticatedServices[j].authService;if(f)if(f.getAuthForm)c.hitch(e,function(r,n){f.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(o){o.indexOf("?")==-1?c.create("a",{target:"_blank",href:o+"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+n,innerHTML:"Sign in"},r,"last"):c.create("a",{target:"_blank",href:o+"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+n,innerHTML:"Sign in"},
r,"last")})})(k,j);else{if(f.login){var l=c.create("a",{innerHTML:"Sign in",style:"cursor: hand;"},k,"last");c.connect(l,"onmouseover",l,function(){l.style.cursor="pointer"});c.connect(l,"onmouseout",l,function(){l.style.cursor="default"});c.connect(l,"onclick",c.hitch(e,function(r){return function(){r.login(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(){e.isSingleService()&&a.popup.close(e)})}})(f))}}else{var m=this.unauthenticatedServices[j].SignInLocation;m.indexOf("?")==
-1?c.create("a",{target:"_blank",href:m+"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+j,innerHTML:"Sign in"},k,"last"):c.create("a",{target:"_blank",href:m+"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+j,innerHTML:"Sign in"},k,"last")}c.place(h,this.otherUnauthenticatedList,"last");if(this.unauthenticatedServices[j].pending){h=c.create("tr");k=c.create("td",{innerHTML:"Authentication required!",style:"padding-left: 10px",colspan:2},h,"only");c.addClass(k,
"LoginWindowLeft");c.addClass(k,"LoginWindowRight");c.create("img",{src:b.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},k,"first");c.place(h,this.otherUnauthenticatedList,"last")}}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(e){for(var g in e)if(e.hasOwnProperty(g))return false;return true},length:function(e){var g=0;for(var j in e)e.hasOwnProperty(j)&&
g++;return g},getHostname:function(e){var g=document.createElement("img");g.src=e;e=g.src;g.src=null;return e.match(/^(?:f|ht)tp(?:s)?:\/\/([^\/]+)/im)[1].toString()}})});
define("orion/globalCommands",["require","dojo","dijit","orion/commands","orion/util","orion/textview/keyBinding","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton","orion/widgets/OpenResourceDialog","orion/widgets/LoginDialog"],function(b,c,a,d,e,g){function j(q){var u=document.createElement("a");u.href=q;return u.href}function h(q,u){if(q.getLabel)return q.getLabel();else{q=new c.Deferred;q.callback(u.properties.name);return q}}function k(q){var u=q.getServiceReferences("orion.core.auth"),
y=c.byId("userInfo");if(y){if(!a.byId("logins")){var C=new a.form.DropDownButton({id:"logins",label:"Security",dropDown:s,title:"Login statuses"});c.addClass(C.domNode,"commandImage");c.place(C.domNode,y,"only")}for(y=0;y<u.length;y++){var v=u[y];q.getService(v).then(function(w){h(w,v).then(function(A){w.getKey().then(function(z){w.getUser().then(function(F){s.addUserItem(z,w,A,F)},function(){s.addUserItem(z,w,A)});window.addEventListener("storage",function(){if(p[z]!==localStorage.getItem(z)){p[z]=
localStorage.getItem(z);w.getUser().then(function(F){s.addUserItem(z,w,A,F)},function(){s.addUserItem(z,w,A)})}},false)})})})}}}function f(q){s.setPendingAuthentication(q);var u;for(u in q)if(q.hasOwnProperty(u)){a.popup.open({popup:s,around:c.byId("logins")});return}a.popup.close(s)}function l(q,u,y,C){var v=c.byId("pageActions");if(y)v=c.byId(y);if(v){c.empty(v);q.renderCommands(v,"dom",u,u,"image",null,null,!C)}}function m(q,u,y,C,v,w,A,z){var F=b.toUrl("filesearch._");F=F.substring(0,F.length-
2)+"?q=";var G;C=c.byId(q);if(!C)throw"could not find banner parent, id was "+q;c.place(r,C,"only");c.place('<div id="keyAssist" class="keyAssistFloat"></div>',document.body,"last");var K=c.byId("primaryNav");if(K)for(var L=u.getServiceReferences("orion.page.link"),M=0;M<L.length;M++)u.getService(L[M]).then(function(){for(var T={},Y=L[M].getPropertyNames(),da=0;da<Y.length;da++)T[Y[da]]=L[M].getProperty(Y[da]);if(T.href&&T.name){Y=c.create("a",{href:T.href},K,"last");c.addClass(Y,"commandLink");G=
document.createTextNode(T.name);c.place(G,Y,"only")}});var N=c.byId("search");if(!N)throw"failed to generate HTML for banner";c.connect(N,"onkeypress",function(T){if(T.charOrCode===c.keys.ENTER)if(F){if(N.value.length>0){T=v.createSearchQuery("../filesearch?q=",N.value);window.location=b.toUrl("search/search.html")+"#"+T}}else window.alert("Can't search: SearchLocation not available")});if(q=c.byId("pageTitle")){G=document.createTextNode(document.title);c.place(G,q,"last")}var R=function(T,Y,da){var ga=
new orion.widgets.OpenResourceDialog({SearchLocation:T,searcher:Y});da&&c.connect(ga,"onHide",function(){da.getTextView().focus()});window.setTimeout(function(){ga.show()},0)};q=new d.Command({name:"Find File Named...",tooltip:"Choose a file by name and open an editor on it",id:"eclipse.openResource",callback:function(){R(F,v,A)}});if(A){A.getTextView().setKeyBinding(new g.KeyBinding("r",true,true,false),"Find File Named...");A.getTextView().setAction("Find File Named...",function(){R(F,v,A);return true})}y.addCommand(q,
"global");y.registerCommandContribution("eclipse.openResource",1,"globalActions",null,new d.CommandKeyBinding("t"),true);var O=c.byId("keyAssist");c.connect(document,"onkeypress",c.hitch(this,function(T){if(T.charOrCode===c.keys.ESCAPE)O.style.display="none"}));z&&z.addHandler({isActive:function(){return O.style.display==="block"},cancel:function(){if(this.isActive()){O.style.display="none";return true}return false}});z=new d.Command({name:"Show Keys",tooltip:"Show a list of all the keybindings on this page",
id:"eclipse.keyAssist",callback:function(){c.empty(O);if(A){c.place("<h2>Editor</h2>",O,"last");for(var T=A.getTextView().getActions(false),Y=0;Y<T.length;Y++)for(var da=T[Y],ga=A.getTextView().getKeyBindings(da),t=0;t<ga.length;t++)c.place("<span>"+e.getUserKeyString(ga[t])+" = "+da+"<br></span>",O,"last")}c.place("<h2>Global</h2>",O,"last");y.showKeyBindings(O);O.style.display="block";return true}});y.addCommand(z,"global");y.registerCommandContribution("eclipse.keyAssist",1,"globalActions",null,
new d.CommandKeyBinding(191,false,true),true);if(A){A.getTextView().setKeyBinding(new d.CommandKeyBinding("L",true,true),"Show Keys");A.getTextView().setAction("Show Keys",z.callback)}if(z=c.byId("globalActions")){c.empty(z);y.renderCommands(z,"global",w||{},w,"image")}k(u);if(n)(u=c.byId("footer"))&&c.place(n,u,"only")}var r='<table style="border: 2px solid white; margin: 0; padding: 0; border-collapse: collapse; width: 100%;"><tr class="topRowBanner" id="bannerRow1"><td rowspan=3 style="padding-top: 12px; padding-bottom: 12px; padding-left: 8px; width: 148px"><a id="home" href="'+
b.toUrl("index.html")+'"><span class="imageSprite core-sprite-orion toolbarLabel" alt="Orion Logo" align="top"></a></td><td class="leftGlobalToolbar" style="padding-top: 16px"><span id="pageTitle" class="pageTitle"></span></td><td class="rightGlobalToolbar" style="padding-top: 16px"><span id="primaryNav" class="globalActions"></span><span id="globalActions" class="globalActions"></span><input type="search" id="search" class="searchbox"><span id="userInfo"></span><span id="help" class="help"><a id="help" href="'+
b.toUrl("help/index.jsp")+'">?</a></span></td></tr><tr class="topRowBanner" id="bannerRow2"><td colspan=2 style="text-wrap: normal"><span id="location" class="currentLocation" style="text-wrap: normal"></span></td></tr><tr class="topRowBanner" id="bannerRow3"><td colspan=2 style="height: 16px; text-align: left"><span id="statusPane" style="color: #5a5a5a;"></span><span id="notifications"></span></td></tr><tr class="pageToolbar"><td colspan=3 style="padding-left: 16px;" id="pageToolbar" class="pageToolbar"><span id="pageActions" class="pageActions"></span><span id="pageActionsRight" class="pageActions"></span></td></tr><tr class="optionalPageToolbar"><td colspan=3 style="border: 1px solid grey;padding-left: 16px;" id="optionalPageToolbar" class="optionalPageToolbar"><div id="optionalPageActions"  class="pageActions"></div></td></tr></table>',
n='<span class="imageSprite core-sprite-warning"></span> This is a Beta build of Orion.  You can use it, play with it and explore the capabilities but BEWARE your data may be lost. &nbsp;| <a href="http://wiki.eclipse.org/Orion/FAQ">FAQ</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.3">Report a Bug</a> | <a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a> | <a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a> | <a href="http://www.eclipse.org/legal/copyright.php">Copyright Agent</a>',
o=j(b.toUrl("auth/NotifyAuthentication.html")),p={},s=new orion.widgets.LoginDialog;return{generateUserInfo:k,generateDomCommandsInBanner:l,generateBanner:m,notifyAuthenticationSite:o,setPendingAuthentication:f}});
define("dojo/date",["dojo"],function(b){b.getObject("date",true,b);b.date.getDaysInMonth=function(c){var a=c.getMonth();if(a==1&&b.date.isLeapYear(c))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};b.date.isLeapYear=function(c){c=c.getFullYear();return!(c%400)||!(c%4)&&!!(c%100)};b.date.getTimezoneName=function(c){var a=c.toString(),d="",e=a.indexOf("(");if(e>-1)d=a.substring(++e,a.indexOf(")"));else{e=/([A-Z\/]+) \d{4}$/;if(a=a.match(e))d=a[1];else{a=c.toLocaleString();e=/ ([A-Z\/]+)$/;
if(a=a.match(e))d=a[1]}}return d=="AM"||d=="PM"?"":d};b.date.compare=function(c,a,d){c=new Date(+c);a=new Date(+(a||new Date));if(d=="date"){c.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(d=="time"){c.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(c>a)return 1;if(c<a)return-1;return 0};b.date.add=function(c,a,d){var e=new Date(+c),g=false,j="Date";switch(a){case "day":break;case "weekday":var h;if(a=d%5){a=a;h=parseInt(d/5)}else{a=d>0?5:-5;h=d>0?(d-5)/5:(d+5)/5}var k=c.getDay(),f=0;if(k==6&&d>0)f=1;
else if(k==0&&d<0)f=-1;k=k+a;if(k==0||k==6)f=d>0?2:-2;d=7*h+a+f;break;case "year":j="FullYear";g=true;break;case "week":d*=7;break;case "quarter":d*=3;case "month":g=true;j="Month";break;default:j="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}j&&e["set"+j](e["get"+j]()+d);g&&e.getDate()<c.getDate()&&e.setDate(0);return e};b.date.difference=function(c,a,d){a=a||new Date;d=d||"day";var e=a.getFullYear()-c.getFullYear(),g=1;switch(d){case "quarter":c=c.getMonth();a=a.getMonth();c=Math.floor(c/3)+
1;a=Math.floor(a/3)+1;a+=e*4;g=a-c;break;case "weekday":e=Math.round(b.date.difference(c,a,"day"));d=parseInt(b.date.difference(c,a,"week"));g=e%7;if(g==0)e=d*5;else{var j=0,h=c.getDay();a=a.getDay();d=parseInt(e/7);g=e%7;c=new Date(c);c.setDate(c.getDate()+d*7);c=c.getDay();if(e>0)switch(true){case h==6:j=-1;break;case h==0:j=0;break;case a==6:j=-1;break;case a==0:j=-2;break;case c+g>5:j=-2}else if(e<0)switch(true){case h==6:j=0;break;case h==0:j=1;break;case a==6:j=2;break;case a==0:j=1;break;case c+
g<0:j=2}e+=j;e-=d*2}g=e;break;case "year":g=e;break;case "month":g=a.getMonth()-c.getMonth()+e*12;break;case "week":g=parseInt(b.date.difference(c,a,"day")/7);break;case "day":g/=24;case "hour":g/=60;case "minute":g/=60;case "second":g/=1E3;case "millisecond":g*=a.getTime()-c.getTime()}return Math.round(g)};return b.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(b){b.getObject("cldr.supplemental",true,b);b.cldr.supplemental.getFirstDayOfWeek=function(c){c={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0}[b.cldr.supplemental._region(c)];return c===undefined?
1:c};b.cldr.supplemental._region=function(c){c=b.i18n.normalizeLocale(c);c=c.split("-");var a=c[1];if(a){if(a.length==4)a=c[2]}else a={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[c[0]];return a};b.cldr.supplemental.getWeekend=function(c){var a=b.cldr.supplemental._region(c);c={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[a];a={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,
il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[a];if(c===undefined)c=6;if(a===undefined)a=0;return{start:c,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",true,b);b.regexp.escapeString=function(c,a){return c.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(d){if(a&&a.indexOf(d)!=-1)return d;return"\\"+d})};b.regexp.buildGroupRE=function(c,a,d){if(!(c instanceof Array))return a(c);for(var e=[],g=0;g<c.length;g++)e.push(a(c[g]));return b.regexp.group(e.join("|"),d)};b.regexp.group=function(c,a){return"("+(a?"?:":"")+c+")"};return b.regexp});
define("dojo/cldr/nls/gregorian",{root:{"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, y-M-d","dateFormatItem-MMMEd":"E MMM d",eraNarrow:["BCE","CE"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateTimeFormat-medium":"{1} {0}",
"dateFormatItem-EEEd":"d EEE","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, y MMMM dd","dateFormatItem-Md":"M-d","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","field-era":"Era","dateFormatItem-yM":"y-M","months-standAlone-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateFormatItem-yQ":"y Q",
"dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormatItem-H":"HH","months-standAlone-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-M":"L",
"days-standAlone-wide":["1","2","3","4","5","6","7"],"timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":["1","2","3","4","5","6","7"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM",
"dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","field-day":"Day","days-format-wide":["1","2","3","4","5","6","7"],"field-zone":"Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["1",
"2","3","4","5","6","7"],eraNames:["BCE","CE"],"days-format-narrow":["1","2","3","4","5","6","7"],"days-standAlone-narrow":["1","2","3","4","5","6","7"],"dateFormatItem-MMM":"LLL","field-month":"Month","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormat-short":"yyyy-MM-dd","field-second":"Second","dateFormatItem-yMMMEd":"EEE, y MMM d","dateTimeFormats-appendItem-Timezone":"{0} {1}",
"field-week":"Week","dateFormat-medium":"y MMM d","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a"},ar:true,ca:true,cs:true,da:true,de:true,el:true,en:true,"en-au":true,"en-ca":true,"en-gb":true,es:true,fi:true,fr:true,"fr-ch":true,he:true,hu:true,it:true,ja:true,ko:true,nb:true,nl:true,pl:true,pt:true,"pt-pt":true,ro:true,ru:true,sk:true,sl:true,sv:true,th:true,tr:true,zh:true,"zh-hant":true,"zh-hk":true,"zh-tw":true});
define("dojo/cldr/nls/en/gregorian",{"dateFormatItem-yM":"M/y","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q y","dayPeriods-format-wide-pm":"PM","field-minute":"Minute",eraNames:["Before Christ","Anno Domini"],"dateFormatItem-MMMEd":"E, MMM d","dateTimeFormat-full":"{1} {0}","field-day-relative+-1":"Yesterday","field-weekday":"Day of the Week","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateTimeFormat-short":"{1} {0}","field-era":"Era","field-hour":"Hour","dayPeriods-format-wide-am":"AM","dateTimeFormat-medium":"{1} {0}","dateFormatItem-y":"y","timeFormat-full":"h:mm:ss a zzzz","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":["S",
"M","T","W","T","F","S"],eraAbbr:["BC","AD"],"dateFormat-long":"MMMM d, y","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","field-zone":"Zone","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"MMM d, y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-ms":"mm:ss","field-year":"Year","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormat-long":"{1} {0}","field-week":"Week","months-standAlone-wide":["January",
"February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dayPeriods-format-wide-noon":"noon","timeFormat-short":"h:mm a","field-month":"Month","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-M":"L","days-format-narrow":["S",
"M","T","W","T","F","S"],"field-second":"Second","field-day":"Day","dateFormatItem-MEd":"E, M/d","months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormat-short":"M/d/yy","dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormat-full":"EEEE, MMMM d, y","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"EEE, M/d/y","months-format-wide":["January","February","March","April","May","June",
"July","August","September","October","November","December"],"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],eraNarrow:["B","A"]});
define("dojo/date/locale",["dojo","dojo/date","dojo/cldr/supplemental","dojo/regexp","dojo/string","dojo/i18n","i18n!dojo/cldr/nls/gregorian"],function(b){b.getObject("date.locale",true,b);(function(){function c(e,g,j,h){return h.replace(/([a-z])\1*/ig,function(k){var f,l,m=k.charAt(0);k=k.length;var r=["abbr","wide","narrow"];switch(m){case "G":f=g[k<4?"eraAbbr":"eraNames"][e.getFullYear()<0?0:1];break;case "y":f=e.getFullYear();switch(k){case 1:break;case 2:if(!j.fullYear){f=String(f);f=f.substr(f.length-
2);break}default:l=true}break;case "Q":case "q":f=Math.ceil((e.getMonth()+1)/3);l=true;break;case "M":f=e.getMonth();if(k<3){f=f+1;l=true}else{m=["months-format",r[k-3]].join("-");f=g[m][f]}break;case "w":f=b.date.locale._getWeekOfYear(e,0);l=true;break;case "d":f=e.getDate();l=true;break;case "D":f=b.date.locale._getDayOfYear(e);l=true;break;case "E":f=e.getDay();if(k<3){f=f+1;l=true}else{m=["days-format",r[k-3]].join("-");f=g[m][f]}break;case "a":f=e.getHours()<12?"am":"pm";f=j[f]||g["dayPeriods-format-wide-"+
f];break;case "h":case "H":case "K":case "k":l=e.getHours();switch(m){case "h":f=l%12||12;break;case "H":f=l;break;case "K":f=l%12;break;case "k":f=l||24;break}l=true;break;case "m":f=e.getMinutes();l=true;break;case "s":f=e.getSeconds();l=true;break;case "S":f=Math.round(e.getMilliseconds()*Math.pow(10,k-3));l=true;break;case "v":case "z":if(f=b.date.locale._getZone(e,true,j))break;k=4;case "Z":f=b.date.locale._getZone(e,false,j);f=[f<=0?"+":"-",b.string.pad(Math.floor(Math.abs(f)/60),2),b.string.pad(Math.abs(f)%
60,2)];if(k==4){f.splice(0,0,"GMT");f.splice(3,0,":")}f=f.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+h);}if(l)f=b.string.pad(f,k);return f})}function a(e,g,j,h){var k=function(m){return m};g=g||k;j=j||k;h=h||k;var f=e.match(/(''|[^'])+/g),l=e.charAt(0)=="'";b.forEach(f,function(m,r){if(m){f[r]=(l?j:g)(m.replace(/''/g,"'"));l=!l}else f[r]=""});return h(f.join(""))}function d(e,g,j,h){h=b.regexp.escapeString(h);j.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,
function(k){var f;f=k.charAt(0);var l=k.length,m="",r="";if(j.strict){if(l>1)m="0{"+(l-1)+"}";if(l>2)r="0{"+(l-2)+"}"}else{m="0?";r="0{0,2}"}switch(f){case "y":f="\\d{2,4}";break;case "M":f=l>2?"\\S+?":"1[0-2]|"+m+"[1-9]";break;case "D":f="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+r+"[1-9][0-9]|"+m+"[1-9]";break;case "d":f="3[01]|[12]\\d|"+m+"[1-9]";break;case "w":f="[1-4][0-9]|5[0-3]|"+m+"[1-9]";break;case "E":f="\\S+";break;case "h":f="1[0-2]|"+m+"[1-9]";break;case "k":f="1[01]|"+m+"\\d";break;case "H":f=
"1\\d|2[0-3]|"+m+"\\d";break;case "K":f="1\\d|2[0-4]|"+m+"[1-9]";break;case "m":case "s":f="[0-5]\\d";break;case "S":f="\\d{"+l+"}";break;case "a":l=j.am||g["dayPeriods-format-wide-am"];m=j.pm||g["dayPeriods-format-wide-pm"];f=l+"|"+m;if(!j.strict){if(l!=l.toLowerCase())f+="|"+l.toLowerCase();if(m!=m.toLowerCase())f+="|"+m.toLowerCase();if(f.indexOf(".")!=-1)f+="|"+f.replace(/\./g,"")}f=f.replace(/\./g,"\\.");break;default:f=".*"}e&&e.push(k);return"("+f+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=
function(e,g){return g?b.date.getTimezoneName(e):e.getTimezoneOffset()};b.date.locale.format=function(e,g){g=g||{};var j=b.i18n.normalizeLocale(g.locale),h=g.formatLength||"short";j=b.date.locale._getGregorianBundle(j);var k=[];e=b.hitch(this,c,e,j,g);if(g.selector=="year")return a(j["dateFormatItem-yyyy"]||"yyyy",e);var f;if(g.selector!="date")(f=g.timePattern||j["timeFormat-"+h])&&k.push(a(f,e));if(g.selector!="time")(f=g.datePattern||j["dateFormat-"+h])&&k.push(a(f,e));return k.length==1?k[0]:
j["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(l,m){return k[m]})};b.date.locale.regexp=function(e){return b.date.locale._parseInfo(e).regexp};b.date.locale._parseInfo=function(e){e=e||{};var g=b.i18n.normalizeLocale(e.locale);g=b.date.locale._getGregorianBundle(g);var j=e.formatLength||"short",h=e.datePattern||g["dateFormat-"+j],k=e.timePattern||g["timeFormat-"+j];j=e.selector=="date"?h:e.selector=="time"?k:g["dateTimeFormat-"+j].replace(/\{(\d+)\}/g,function(l,m){return[k,h][m]});var f=[];
return{regexp:a(j,b.hitch(this,d,f,g,e)),tokens:f,bundle:g}};b.date.locale.parse=function(e,g){var j=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(g),k=h.tokens,f=h.bundle;e=(new RegExp("^"+h.regexp.replace(j,"")+"$",h.strict?"":"i")).exec(e&&e.replace(j,""));if(!e)return null;var l=["abbr","wide","narrow"],m=[1970,0,1,0,0,0,0],r="";e=b.every(e,function(o,p){if(!p)return true;p=k[p-1];var s=p.length;switch(p.charAt(0)){case "y":if(s!=2&&g.strict)m[0]=o;else if(o<100){o=Number(o);s=""+(new Date).getFullYear();
p=s.substring(0,2)*100;s=Math.min(Number(s.substring(2,4))+20,99);m[0]=o<s?p+o:p-100+o}else{if(g.strict)return false;m[0]=o}break;case "M":if(s>2){p=f["months-format-"+l[s-3]].concat();if(!g.strict){o=o.replace(".","").toLowerCase();p=b.map(p,function(u){return u.replace(".","").toLowerCase()})}o=b.indexOf(p,o);if(o==-1)return false}else o--;m[1]=o;break;case "E":case "e":p=f["days-format-"+l[s-3]].concat();if(!g.strict){o=o.toLowerCase();p=b.map(p,function(u){return u.toLowerCase()})}o=b.indexOf(p,
o);if(o==-1)return false;break;case "D":m[1]=0;case "d":m[2]=o;break;case "a":p=g.am||f["dayPeriods-format-wide-am"];s=g.pm||f["dayPeriods-format-wide-pm"];if(!g.strict){var q=/\./g;o=o.replace(q,"").toLowerCase();p=p.replace(q,"").toLowerCase();s=s.replace(q,"").toLowerCase()}if(g.strict&&o!=p&&o!=s)return false;r=o==s?"p":o==p?"a":"";break;case "K":if(o==24)o=0;case "h":case "H":case "k":if(o>23)return false;m[3]=o;break;case "m":m[4]=o;break;case "s":m[5]=o;break;case "S":m[6]=o}return true});
j=+m[3];if(r==="p"&&j<12)m[3]=j+12;else if(r==="a"&&j==12)m[3]=0;j=new Date(m[0],m[1],m[2],m[3],m[4],m[5],m[6]);g.strict&&j.setFullYear(m[0]);var n=k.join("");h=n.indexOf("d")!=-1;n=n.indexOf("M")!=-1;if(!e||n&&j.getMonth()>m[1]||h&&j.getDate()>m[2])return null;if(n&&j.getMonth()<m[1]||h&&j.getDate()<m[2])j=b.date.add(j,"hour",1);return j}})();(function(){var c=[];b.date.locale.addCustomFormats=function(a,d){c.push({pkg:a,name:d})};b.date.locale._getGregorianBundle=function(a){var d={};b.forEach(c,
function(e){e=b.i18n.getLocalization(e.pkg,e.name,a);d=b.mixin(d,e)},this);return d}})();b.date.locale.addCustomFormats("dojo.cldr","gregorian");b.date.locale.getNames=function(c,a,d,e){var g;e=b.date.locale._getGregorianBundle(e);c=[c,d,a];if(d=="standAlone"){d=c.join("-");g=e[d];if(g[0]==1)g=undefined}c[1]="format";return(g||e[c.join("-")]).concat()};b.date.locale.isWeekend=function(c,a){a=b.cldr.supplemental.getWeekend(a);c=(c||new Date).getDay();if(a.end<a.start){a.end+=7;if(c<a.start)c+=7}return c>=
a.start&&c<=a.end};b.date.locale._getDayOfYear=function(c){return b.date.difference(new Date(c.getFullYear(),0,1,c.getHours()),c)+1};b.date.locale._getWeekOfYear=function(c,a){if(arguments.length==1)a=0;var d=(new Date(c.getFullYear(),0,1)).getDay(),e=(d-a+7)%7;e=Math.floor((b.date.locale._getDayOfYear(c)+e-1)/7);d==a&&e++;return e};return b.date.locale});
define("orion/auth",["dojo","dijit","orion/globalCommands","dojo/date/locale","orion/widgets/LoginDialog"],function(b,c,a){function d(j,h){if(j.status===403){if(typeof e==="undefined")e=new c.Dialog({title:"Forbidden access"});var k=j.message;if(j.responseText)k=JSON.parse(j.responseText).Message||j.message;e.set("content",k);e.show()}if(j.status===401)try{var f=JSON.parse(j.responseText),l=localStorage.getItem(f.SignInKey),m=function(){var n=localStorage.getItem(f.SignInKey);if(l!==n){window.removeEventListener("storage",
m,false);delete g[f.SignInKey];a.setPendingAuthentication(g);h&&h()}};window.addEventListener("storage",m,false);if(f.SignInKey){g[f.SignInKey]=f;a.setPendingAuthentication(g)}}catch(r){}}var e,g={};b.addOnLoad(function(){window.dojo=b;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=a});return{handleAuthenticationError:d}});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(c,a,d,e){var g=[];b.Deferred.call(this);var j=this;c.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(c,function(k,f){function l(m,r){g[f]=[m,r];h++;h===c.length&&j.resolve(g)}k.then(function(m){a?j.resolve([f,m]):l(true,m)},function(m){d?j.reject(m):l(false,m);if(e)return null;throw m;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(c){c=new b.DeferredList(c,false,true,false);
c.addCallback(function(a){var d=[];b.forEach(a,function(e){d.push(e[1])});return d});return c};return b.DeferredList});
define("orion/preferences",["require","dojo","orion/auth","dojo/DeferredList"],function(b,c,a){function d(f,l){this._name=f;this._providers=l;this._flushPending=false;this._cached=null;this._stores=[];this._dirty=[]}function e(f,l){return{get:function(m,r){if(l===0)return null;m=localStorage.getItem(f+m);if(m===null)return null;m=JSON.parse(m);if(r||l===-1||m._expires&&m._expires>(new Date).getTime()){delete m._expires;return m}return null},set:function(m,r){if(l!==0){if(l!==-1)r._expires=(new Date).getTime()+
1E3*l;if(Object.keys(r).length===0)localStorage.removeItem(f+m);else{var n=JSON.stringify(r);localStorage.setItem(f+m,n);delete r._expires}}},remove:function(m){localStorage.removeItem(f+m)}}}function g(f){this._currentPromises={};this._cache=new e("/orion/preferences/user",0);this._service=null;this.available=function(){var l=this;if(!this._service){var m=f.getServiceReferences("orion.core.preference.provider");m.length>0&&f.getService(m[0],0).then(function(r){l._service=r})}return!!this._service}}
function j(f){this._location=f;this._currentPromise=null;this._cache=new e("/orion/preferences/default",3600)}function h(){this._cache=new e("/orion/preferences/local",-1)}function k(f,l){this._userProvider=new g(f);this._localProvider=new h;l=l||"defaults.pref";if(l.indexOf("://")===-1)l=b.toUrl(l);this._defaultsProvider=new j(l);this._serviceRegistration=f.registerService("orion.core.preference",this)}d.prototype={_flush:function(){for(var f=[],l=0;l<this._stores.length;++l){var m=this._stores[l];
this._dirty.indexOf(m)!==-1&&f.push(this._providers[l].put(this._name,m))}this._dirty=[];return new c.DeferredList(f)},_scheduleFlush:function(f){this._dirty.indexOf(f)===-1&&this._dirty.push(f);if(!this._flushPending){this._flushPending=true;window.setTimeout(c.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},_getCached:function(){if(!this._cached){this._cached={};for(var f=0;f<this._stores.length;++f){var l=this._stores[f];for(var m in l)if(l.hasOwnProperty(m)&&
typeof this._cached[m]==="undefined")this._cached[m]=l[m]}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(f){return this._getCached()[f]},put:function(f,l){if(this._stores.length!==0){var m=this._stores[0];if(m[f]!==l){m[f]=l;this._cached=null;this._scheduleFlush(m)}}},remove:function(f){for(var l=0;l<this._stores.length;++l){var m=this._stores[l];if(m.hasOwnProperty(f)){delete m[f];this._cached=null;this._scheduleFlush(m);return true}}return false},clear:function(){for(var f=
0;f<this._stores.length;++f){this._stores[f]={};this._scheduleFlush(this._stores[f])}this._cached=null},sync:function(f){if(this._flushPending){this._flushPending=false;return this._flush()}for(var l=this,m=[],r=0;r<this._providers.length;++r)m.push(this._providers[r].get(this._name,f).then(function(n){return function(o){l._stores[n]=o}}(r)));return(new c.DeferredList(m)).then(function(){l._cached=null;l._getCached()})},flush:function(){this._flush()}};g.prototype={get:function(f,l){if(this._currentPromises[f])return this._currentPromises[f];
var m=new c.Deferred,r=null;if(l)this._cache.remove(f);else r=this._cache.get(f);if(r!==null)m.resolve(r);else{this._currentPromises[f]=m;var n=this;this._service.get(f).then(function(o){n._cache.set(f,o);delete n._currentPromises[f];m.resolve(o)},function(o){if(o.status===401){delete n._currentPromises[f];m.resolve({});a.handleAuthenticationError(o,function(){n.get(f)})}else if(o.status===404){o={};n._cache.set(f,o);delete n._currentPromises[f];m.resolve(o)}else{delete n._currentPromises[f];m.resolve(n._cache.get(f,
true)||{})}})}return m},put:function(f,l){var m=new c.Deferred;this._cache.set(f,l);var r=this;this._service.put(f,l).then(function(){m.resolve()},function(n){n.status===401?a.handleAuthenticationError(n,function(){r._service.put(f,l).then(function(){m.resolve()},function(){m.resolve()})}):m.resolve()});return m}};j.prototype={get:function(f,l){if(this._currentPromise)return this._currentPromise;var m=new c.Deferred,r=null;if(l)this._cache.remove(f);else r=this._cache.get(f);if(r!==null)m.resolve(r);
else{this._currentPromise=m;var n=this;c.xhrGet({url:this._location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(o){n._cache.set(f,o[f]||{});n._currentPromise=null;m.resolve(o[f]||{})},error:function(o,p){if(p.xhr.status===401){n._currentPromise=null;m.resolve({});m=new c.Deferred;n._currentPromise=m;var s=this;a.handleAuthenticationError(p.xhr,function(){c.xhrGet(s)})}else if(p.xhr.status===404){n._cache.set(f,{});n._currentPromise=null;m.resolve({})}else{n._currentPromise=
null;o=n._cache.get(f,true);o!==null?m.resolve(o[f]||{}):m.resolve({})}}})}return m},put:function(){var f=new c.Deferred;f.resolve();return f}};h.prototype={get:function(f){var l=new c.Deferred;f=this._cache.get(f);f!==null?l.resolve(f):l.resolve({});return l},put:function(f,l){var m=new c.Deferred;this._cache.set(f,l);m.resolve();return m}};k.DEFAULT_SCOPE=1;k.LOCAL_SCOPE=2;k.USER_SCOPE=4;k.prototype={getPreferences:function(f,l){if(!l||typeof l!=="number"||l>7||l<1)l=k.DEFAULT_SCOPE|k.LOCAL_SCOPE|
k.USER_SCOPE;var m=[];k.USER_SCOPE&l&&this._userProvider.available()&&m.push(this._userProvider);k.LOCAL_SCOPE&l&&m.push(this._localProvider);k.DEFAULT_SCOPE&l&&m.push(this._defaultsProvider);var r=new d(f,m);return r.sync().then(function(){return r})}};return{PreferencesService:k}});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(b,c){var a=a||{};a.Plugin=function(d,e,g){function j(q,u,y,C){if(!m)throw new Error("plugin not connected");var v=o++;p[String(v)]=C;g.postMessage({id:v,serviceId:q,method:u,params:y},m)}function h(q){var u={};if(q.methods)for(var y=0;y<q.methods.length;y++){var C=q.methods[y];u[C]=function(v){return function(){var w=Array.prototype.slice.call(arguments),A=new b.Deferred;l._load().then(function(){j(q.serviceId,
v,w,A)});return A.promise}}(C)}return u}function k(){var q=e.services;if(q)for(var u=0;u<q.length;u++){var y=q[u],C=h(y);s[y.serviceId]=g.registerService(y.type,C,y.properties)}}function f(q){try{if(q.method)if("plugin"===q.method){if(e){if(JSON.stringify(e)!==JSON.stringify(q.params[0])){for(var u in s)if(s.hasOwnProperty(u)){s[u].unregister();delete s[u]}e=q.params[0];k();g.updatePlugin(l)}}else{e=q.params[0];k()}if(!n){n=true;r.resolve(l)}}else if("dispatchEvent"===q.method){var y=s[q.serviceId];
y.dispatchEvent.apply(y,q.params)}else if("progress"===q.method){var C=p[String(q.requestId)];C.progress.apply(C,q.params)}else throw new Error("Bad response method: "+q.method);else{C=p[String(q.id)];delete p[String(q.id)];q.error?C.reject(q.error):C.resolve(q.result)}}catch(v){console.log(v)}}var l=this,m=null,r=new b.Deferred,n=false,o=0,p={},s={};this.getLocation=function(){return d};this.getData=function(){return e};this.uninstall=function(){for(var q in s)if(s.hasOwnProperty(q)){s[q].unregister();
delete s[q]}if(m){g.disconnect(m);m=null}g.uninstallPlugin(this)};this.getServiceReferences=function(){var q=[],u;for(u in s)s.hasOwnProperty(u)&&q.push(s[u].getServiceReference());return q};this._load=function(q){if(!m){m=g.connect(d,f);window.setTimeout(function(){if(!n){if(!q){e={};g.updatePlugin(l)}r.reject(new Error("Load timeout for plugin: "+d))}},15E3)}return r.promise};if(typeof d!=="string")throw new Error("invalid url:"+d);e&&k()};a.PluginRegistry=function(d,e){function g(o){if(o.indexOf("://")===
-1){var p=document.createElement("a");p.href=o;return p.href}return o}function j(o){delete f["plugin."+o.getLocation()]}function h(o){o=g(o);for(var p=0,s=l.length;p<s;p++){var q=l[p];if(o===q.getLocation())return q}return null}function k(o){f["plugin."+o.getLocation()]=JSON.stringify(o.getData())}var f=e||localStorage||{},l=[],m=[],r=new c.EventTarget;window.addEventListener("message",function(o){for(var p=0,s=o.source;p<m.length;p++)if(s===m[p].target){if(typeof m[p].useStructuredClone==="undefined")m[p].useStructuredClone=
typeof o.data!=="string";m[p].handler(m[p].useStructuredClone?o.data:JSON.parse(o.data));break}},false);var n={registerService:b.hitch(d,d.registerService),connect:function(o,p){var s=document.createElement("iframe");s.id=o;s.name=o;s.style.display="none";s.style.visibility="hidden";s.src=o;document.body.appendChild(s);o={iframe:s,target:s.contentWindow,handler:p,url:o};m.push(o);return o},disconnect:function(o){for(var p=0;p<m.length;p++)if(o===m[p]){m.splice(p,1);try{document.body.removeChild(o.iframe)}catch(s){}break}},
uninstallPlugin:function(o){j(o);for(var p=0;p<l.length;p++)if(o===l[p]){l.splice(p,1);r.dispatchEvent("pluginRemoved",o);break}},updatePlugin:function(o){f["plugin."+o.getLocation()]=JSON.stringify(o.getData());r.dispatchEvent("pluginUpdated",o)},postMessage:function(o,p){p.target.postMessage(p.useStructuredClone?o:JSON.stringify(o),p.url)}};this.startup=function(o){for(var p=[],s=0;s<o.length;++s){var q=o[s];q=g(q);var u="plugin."+q;if(f[u]){if(h(q)===null){u=JSON.parse(f[u]);q=new a.Plugin(q,u,
n);l.push(q)}}else{f[u]="{}";q=new a.Plugin(q,{},n);l.push(q);p.push(q._load(false))}}return new b.DeferredList(p)};this.shutdown=function(){for(var o=0;o<m.length;o++)try{document.body.removeChild(m[o].iframe)}catch(p){}};this.installPlugin=function(o,p){o=g(o);var s=new b.Deferred,q=h(o);if(q)if(q.getData())s.resolve(q);else{var u=function(y){if(y.getLocation()===o){s.resolve(y);r.removeEventListener("pluginAdded",u)}};r.addEventListener("pluginAdded",u)}else{q=new a.Plugin(o,p,n);l.push(q);if(q.getData()){k(q);
r.dispatchEvent("pluginAdded",q);s.resolve(q)}else q._load(true).then(function(){k(q);r.dispatchEvent("pluginAdded",q);s.resolve(q)},function(y){s.reject(y)})}return s.promise};this.getPlugins=function(){for(var o=[],p=0;p<l.length;p++)l[p].getData()&&o.push(l[p]);return o};this.getPlugin=function(o){if((o=h(o))&&o.getData())return o;return null};this.addEventListener=function(o,p){r.addEventListener(o,p)};this.removeEventListener=function(o,p){r.removeEventListener(o,p)}};return a});
define("orion/bootstrap",["require","dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(b,c,a,d,e){function g(){var j=new a.ServiceRegistry,h=new d.PreferencesService(j),k=new e.PluginRegistry(j);return h.getPreferences("/plugins").then(function(f){f=f.keys();for(var l=0;l<f.length;++l)if(f[l].indexOf("://")===-1)f[l]=b.toUrl(f[l]);return k.startup(f)}).then(function(){if(j.getServiceReferences("orion.core.preference.provider").length>0)return h.getPreferences("/plugins",
h.USER_SCOPE).then(function(f){f=f.keys();for(var l=0;l<f.length;++l)if(f[l].indexOf("://")===-1)f[l]=b.toUrl(f[l]);return k.startup(f)})}).then(function(){c.addOnWindowUnload(function(){k.shutdown()})}).then(function(){return{serviceRegistry:j,preferences:h,pluginRegistry:k}})}return{startup:g}});
define("orion/status",["require","dojo"],function(b,c){function a(d,e,g){this._serviceRegistry=d;this._serviceRegistration=d.registerService("orion.page.message",this);this.domId=e;this.progressDomId=g||e}a.prototype={setMessage:function(d,e){c.place(window.document.createTextNode(d),this.domId,"only");if(typeof e==="number"){var g=this;window.setTimeout(function(){var j=c.byId(g.domId);(typeof j.textContent==="string"?j.textContent:j.innerText)===d&&c.place(window.document.createTextNode(""),g.domId,
"only")},e)}},setErrorMessage:function(d){var e=d.responseText||d.message||d;try{e=JSON.parse(e)}catch(g){}d=e.Message||e;var j="red";if(e.Severity)switch(e.Severity){case "Warning":j="#FFCC00";break;case "Error":j="red";break;case "Info":case "Ok":j="green";break}e=c.create("span",{style:{color:j}});c.place(window.document.createTextNode(d),e);c.place(e,this.domId,"only")},setProgressMessage:function(d){c.place(window.document.createTextNode(d),this.progressDomId,"only")},setProgressResult:function(d){d=
d.responseText||d;try{d=JSON.parse(d)}catch(e){}var g=d.Message||d,j=b.toUrl("images/info.gif"),h="info";if(d.Severity)switch(d.Severity){case "Warning":j=b.toUrl("images/warning.gif");h="warning";break;case "Error":j=b.toUrl("images/error.gif");h="error";break}var k=new Image;k.alt=h;k.title="Press to clear message";k.name=h;k.src=j;c.style(k,"opacity","0.7");c.connect(k,"onmouseover",this,function(){c.style(k,"opacity","1")});c.connect(k,"onmouseout",this,function(){c.style(k,"opacity","0.7")});
c.connect(k,"onclick",this,function(){this.setProgressMessage("")});c.place(k,this.progressDomId,"only");d.HTML?c.place(g,this.progressDomId,"last"):c.place(window.document.createTextNode("   "+g),this.progressDomId,"last")},showWhile:function(d,e){var g=this;g.setProgressMessage(e);return d.then(function(j){if(j&&j.Location&&j.Message&&j.Running)return g._doProgressWhile(j);g.setProgressMessage("");j&&j.Result&&g.setProgressResult(j.Result);return j})},_doProgressWhile:function(d){var e=new c.Deferred;
window.setTimeout(function(){c.xhrGet({url:d.Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(g){e.callback(g)}})},2E3);return this.showWhile(e,d.Message)}};a.prototype.constructor=a;return{StatusReportingService:a}});
define("orion/dialogs",[],function(){function b(c){this._serviceRegistry=c;this._serviceRegistration=c.registerService("orion.page.dialog",this)}b.prototype={confirm:function(c,a){a(window.confirm(c))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("orion/selection",["dojo"],function(b){function c(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.selection",this);this._selections=[]}c.prototype={getSelection:function(a){a(this._getSingleSelection())},getSelections:function(a){a(this._selections)},_getSingleSelection:function(){if(this._selections&&this._selections.length>0)return this._selections[0];return null},setSelections:function(a){this._selections=b.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",
this._getSingleSelection(),this._selections)}};c.prototype.constructor=c;return{Selection:c}});
define("orion/fileClient",["dojo","orion/auth","dojo/DeferredList"],function(b,c){function a(g,j,h){var k=new b.Deferred;g[j].apply(g,h).then(function(f){k.callback(f)},function(f){f.status===401?c.handleAuthenticationError(f,function(){g[j].apply(g,h).then(function(l){k.callback(l)},function(l){k.errback(l)})}):k.errback(f)});return k}function d(g,j,h,k){if(!g.readBlob)throw"source file service does not support binary read";if(!h.writeBlob)throw"target file service does not support binary write";
if(j[j.length-1]!=="/")return a(g,"readBlob",[j]).then(function(m){return a(h,"writeBlob",[k,m])});var f=k.substring(0,k.length-1),l=decodeURIComponent(f.substring(f.lastIndexOf("/")+1));f=f.substring(0,f.lastIndexOf("/")+1);return a(h,"createFolder",[f,l]).then(function(){},function(){}).then(function(){if(j.indexOf("/")===0)j+="?depth=1";return a(g,"fetchChildren",[j]).then(function(m){for(var r=[],n=0;n<m.length;++n){var o=m[n].Location,p=o;if(m[n].Directory)p=o.substring(0,o.length-1);p=decodeURIComponent(p.substring(p.lastIndexOf("/")+
1));p=k+encodeURIComponent(p);if(m[n].Directory)p+="/";r[n]=d(g,o,h,p)}return new b.DeferredList(r)})})}function e(g,j){function h(s){var q=new b.Deferred;q.reject("No Matching FileService for location:"+s);return q}var k=g.getServiceReferences("orion.core.file"),f=k;if(j){f=[];for(var l=0;l<k.length;++l)j(k[l])&&f.push(k[l])}for(var m=[],r=[],n=[],o={fetchChildren:function(){var s=new b.Deferred;s.resolve(n);return s},createWorkspace:function(){var s=new b.Deferred;s.reject("no file service");return s},
loadWorkspaces:function(){var s=new b.Deferred;s.reject("no file service");return s},loadWorkspace:function(){var s=new b.Deferred;s.resolve({Directory:true,Length:0,LocalTimeStamp:0,Name:"",Location:"",Children:n});return s},createProject:h,createFolder:h,createFile:h,deleteFile:h,moveFile:h,copyFile:h,read:h,write:h},p=0;p<f.length;++p){n[p]={Directory:true,Length:0,LocalTimeStamp:0,Location:f[p].getProperty("top"),ChildrenLocation:f[p].getProperty("top"),Name:f[p].getProperty("Name")};j=f[p].getProperty("pattern")||
".*";if(j[0]!=="^")j="^"+j;m[p]=new RegExp(j);g.getService(f[p],0).then(function(s){r[p]=s})}if(r.length===1)o=r[0];this._getService=function(s){if(!s)return o;for(var q=0;q<m.length;++q)if(m[q].test(s))return r[q];throw"No Matching FileService for location:"+s;}}e.prototype={fetchChildren:function(g){return a(this._getService(g),"fetchChildren",arguments)},createWorkspace:function(){return a(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return a(this._getService(),"loadWorkspaces",
arguments)},loadWorkspace:function(g){return a(this._getService(g),"loadWorkspace",arguments)},createProject:function(g){return a(this._getService(g),"createProject",arguments)},createFolder:function(g){return a(this._getService(g),"createFolder",arguments)},createFile:function(g){return a(this._getService(g),"createFile",arguments)},deleteFile:function(g){return a(this._getService(g),"deleteFile",arguments)},moveFile:function(g,j,h){var k=this._getService(g),f=this._getService(j);if(k===f)return a(k,
"moveFile",arguments);var l=g[g.length-1]==="/",m=j;if(m[m.length-1]!=="/")m+="/";if(h)m+=encodeURIComponent(h);else{var r=g;if(l)r=r.substring(0,r.length-1);m+=r.substring(r.lastIndexOf("/")+1)}if(l&&m[m.length-1]!=="/")m+="/";return d(k,g,f,m).then(function(){return a(k,"deleteFile",[g])})},copyFile:function(g,j){var h=this._getService(g),k=this._getService(j);if(h===k)return a(h,"copyFile",arguments);var f=g[g.length-1]==="/",l=j;if(l[l.length-1]!=="/")l+="/";var m=g;if(f)m=m.substring(0,m.length-
1);l+=m.substring(m.lastIndexOf("/")+1);if(f&&l[l.length-1]!=="/")l+="/";return d(h,g,k,l)},read:function(g){return a(this._getService(g),"read",arguments)},write:function(g){return a(this._getService(g),"write",arguments)},remoteImport:function(g){return a(this._getService(g),"remoteImport",arguments)},remoteExport:function(g){return a(this._getService(g),"remoteExport",arguments)}};e.prototype.constructor=e;return{FileClient:e}});
define("orion/treetable",["dojo"],function(b){function c(a){this._init(a)}c.prototype={_init:function(a){var d=a.parent,e=this;if(typeof d==="string")d=b.byId(d);if(!d)throw"no parent";if(!a.model)throw"no tree model";if(!a.renderer)throw"no renderer";this._parent=d;this._treeModel=a.model;this._renderer=a.renderer;this._showRoot=a.showRoot===undefined?false:a.showRoot;this._indent=a.indent===undefined?16:a.indent;this._labelColumnIndex=a.labelColumnIndex===undefined?0:a.labelColumnIndex;this._id=
a.id===undefined?"treetable":a.id;this._root=this._treeModel.getRoot(function(g){if(this._showRoot){g._depth=0;this._generate([g],0)}else e._treeModel.getChildren(g,function(j){e._generate(j,0)})})},_generate:function(a,d){b.empty(this._parent);var e=document.createElement("table");e.id=this._id;this._renderer.initTable(e,this);var g=document.createElement("tbody");g.id=this._id+"tbody";this._generateChildren(a,d,g,"last");e.appendChild(g);this._parent.appendChild(e);this._rowsChanged()},_generateChildren:function(a,
d,e,g){for(var j in a){var h=document.createElement("tr");h.id=this._treeModel.getId(a[j]);h._depth=d;h._item=a[j];this._renderer.render(a[j],h);b.style(h.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*d+"px");b.place(h,e,g);if(g==="after")e=h}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(a,d,e,g,j,h){var k=this._treeModel.getId(a),f;if(k===this._id){this._removeChildRows(k);
this._generateChildren(d,0,b.byId(k+"tbody"),"last");this._rowsChanged()}else{var l=b.byId(k);if(l){l._item=a;if(l&&(e||l._expanded)){l._expanded=true;this._removeChildRows(k);if(d){this._generateChildren(d,l._depth+1,l,"after");this._rowsChanged();if(g&&j){a=b.byId(g);b.addClass(a,j);h&&b.removeClass(a,h)}}else{f=this;d=this._treeModel.getChildren(l._item,function(m){f._generateChildren(m,l._depth+1,l,"after");f._rowsChanged()})}}}else console.log("could not find table row "+k)}},refreshAndExpand:function(a,
d,e,g,j){this.refresh(a,d,true,e,g,j)},getItem:function(a){if(typeof a==="string"){var d=b.byId(a);if(d)return d._item}if(a._item)return a._item;return a},toggle:function(a,d,e,g){var j=b.byId(a);if(j)if(j._expanded){this.collapse(a);if(d){a=b.byId(d);b.addClass(a,g);b.removeClass(a,e)}}else{this.expand(a);if(d){a=b.byId(d);b.addClass(a,e);b.removeClass(a,g)}}},isExpanded:function(a){if(a=b.byId(a))return a._expanded;return false},expand:function(a,d,e){a=typeof a==="string"?a:this._treeModel.getId(a);
var g=b.byId(a);if(g)if(!g._expanded){g._expanded=true;var j=this;this._treeModel.getChildren(g._item,function(h){j._generateChildren(h,g._depth+1,g,"after");j._rowsChanged();d&&d.apply(this,e)})}},_removeChildRows:function(a){b.byId(this._id);var d=a===this._id,e=false,g=-1,j=[];b.query(".treeTableRow").forEach(function(f){if(!e)if(d)if(f._depth>g)j.push(f);else e=true;else if(f.id===a){d=true;g=f._depth}});for(var h in j){var k=j[h];k.parentNode.removeChild(k)}},collapse:function(a){a=typeof a===
"string"?a:this._treeModel.getId(a);var d=b.byId(a);if(d)if(d._expanded){d._expanded=false;this._removeChildRows(a);this._rowsChanged()}}};c.prototype.constructor=c;return{TableTree:c}});
define("orion/explorer",["require","dojo","orion/treetable"],function(b,c,a){var d={};d.Explorer=function(){function e(g,j,h){this.registry=g;this.renderer=h;this.selection=j;this.myTree=null}e.prototype={changedItem:function(g,j){c.hitch(this.myTree,this.myTree.refreshAndExpand)(g,j)},updateCommands:function(g){this.myTree&&c.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(g))},makeNewItemPlaceHolder:function(g,j,h){g=this.getRow(g);if(h){g=g.childNodes[h];c.place("<br><span id='"+
j+"placeHolderRow'></span>",g,"last");if(h=c.byId(j+"placeHolderRow"))return{tempNode:h,refNode:h}}if(g){c.place("<tr id='"+j+"placeHolderRow'><td id='"+j+"placeHolderCol'></td>",g,"after");h=c.byId(j+"placeHolderRow");g=c.byId(j+"placeHolderCol");if(h&&g)return{tempNode:h,refNode:g}}return null},getRow:function(g){if(g=this.model.getId(g))return c.byId(g)},createTree:function(g,j){var h=g+"innerTree",k=c.byId(h);k&&c.destroy(k);if(j)j.rootId=h;this.model=j;this.myTree=new a.TableTree({id:h,model:j,
showRoot:false,parent:g,labelColumnIndex:this.checkbox?1:0,renderer:this.renderer});this.renderer._initializeUIState()},getRootPath:function(){if(this.model&&this.model.root)return this.model.root.Location;return null},_lastHash:null,checkbox:this.checkbox||true};return e}();d.ExplorerModel=function(){function e(g,j){this.rootPath=g;this.fetchItems=j}e.prototype={destroy:function(){},getRoot:function(g){this.fetchItems(this.rootPath).then(c.hitch(this,function(j){this.root=j;g(j)}))},getChildren:function(g,
j){if(g.Children)j(g.Children);else g.ChildrenLocation?this.fetchItems(g.ChildrenLocation).then(c.hitch(this,function(h){g.Children=h;j(h)})):j([])},getId:function(g){if(g===this.root)g=this.rootId;else{g=g.Location;g=g.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return g}};return e}();d.ExplorerFlatModel=function(){function e(g,j,h){this.rootPath=g;this.fetchItems=j;this.root=h}e.prototype=new d.ExplorerModel;e.prototype.getRoot=function(g){this.root?g(this.root):this.fetchItems(this.rootPath).then(c.hitch(this,
function(j){this.root=j;g(j)}))};e.prototype.getChildren=function(g,j){g===this.root?j(this.root):j([])};return e}();d.ExplorerRenderer=function(){function e(g,j){this.explorer=j;this._init(g);this._expandImageClass="core-sprite-twistie_open";this._collapseImageClass="core-sprite-twistie_closed"}e.prototype={initTable:function(g,j){this.tableTree=j;c.empty(g);c.addClass(g,"treetable");this.renderTableHeader(g)},getActionsColumn:function(g,j){c.connect(j,"onmouseover",j,function(){var f=c.byId(this.id+
"actionswrapper");c.style(f,"visibility","visible")});c.connect(j,"onmouseout",j,function(){var f=c.byId(this.id+"actionswrapper");c.style(f,"visibility","hidden")});var h=document.createElement("td");h.id=j.id+"actions";var k=document.createElement("span");k.id=j.id+"actionswrapper";h.appendChild(k);c.style(k,"visibility","hidden");this.explorer.registry.getService("orion.page.command").then(function(f){f.renderCommands(k,"object",g,this.explorer,"image")});return h},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},
getCheckboxColumn:function(g,j){if(this._useCheckboxSelection){g=document.createElement("td");c.addClass(g,"secondaryColumn");var h=document.createElement("input");c.style(h,"verticalAlign","middle");h.type="checkbox";h.id=j.id+"selectedState";c.addClass(h,"selectionCheckmark");h.itemId=j.id;g.appendChild(h);c.connect(h,"onclick",c.hitch(this,function(k){c.toggleClass(j,"checkedRow",!!k.target.checked);this._storeSelections();this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())}));
return g}},_storeSelections:function(){var g=this.getSelectedIds(),j=this._getUIStatePreferencePath();if(j&&window.sessionStorage)window.sessionStorage[j+"selection"]=JSON.stringify(g)},_restoreSelections:function(g){g=window.sessionStorage[g+"selection"];if(typeof g==="string")g=g.length>0?JSON.parse(g):null;var j;if(g)for(j=0;j<g.length;j++){var h=c.byId(g[j]);if(h){c.addClass(h,"checkedRow");if(h=c.byId(h.id+"selectedState"))h.checked=true}}g=this.getSelected();this.explorer.selection&&this.explorer.selection.setSelections(g)},
_storeExpansions:function(g){window.sessionStorage[g+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(g){var j=false,h=window.sessionStorage[g+"expanded"];if(typeof h==="string")h=h.length>0?JSON.parse(h):null;var k;if(h)for(k=0;k<h.length;k++)if(c.byId(h[k])){this._expanded.push(h[k]);this.tableTree.expand(h[k],c.hitch(this,function(){this._restoreSelections(g)}));j=true}return!j},_getUIStatePreferencePath:function(){if(this.explorer){var g=this.explorer.getRootPath();if(this._cachePrefix&&
g)return"/"+this._cachePrefix+"/"+g.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(g){return g+"__expand"},getExpandImage:function(g,j,h,k){var f=c.create("span",{id:this.expandCollapseImageId(g.id)},j,"last");c.addClass(f,"imageSprite");c.addClass(f,this._collapseImageClass);j=c.create("span",null,j,"last");c.addClass(j,k||"imageSprite");c.addClass(j,h||"core-sprite-folder");f.onclick=c.hitch(this,function(){this.tableTree.toggle(g.id,this.expandCollapseImageId(g.id),
this._expandImageClass,this._collapseImageClass);if(this.tableTree.isExpanded(g.id))this._expanded.push(g.id);else for(var l in this._expanded)if(this._expanded[l]===g.id){this._expanded.splice(l,1);break}(l=this._getUIStatePreferencePath())&&window.sessionStorage&&this._storeExpansions(l)});return f},render:function(g,j){j.cellSpacing="8px";this.renderRow(g,j)},getSelected:function(){var g=[];c.query(".selectionCheckmark").forEach(c.hitch(this,function(j){j.checked&&g.push(this.tableTree.getItem(j.parentNode.parentNode))}));
return g},getSelectedIds:function(){var g=[];c.query(".selectionCheckmark").forEach(c.hitch(this,function(j){j.checked&&g.push(j.parentNode.parentNode.id)}));return g},rowsChanged:function(){c.query(".treeTableRow").forEach(function(g,j){if(j%2){c.addClass(g,"darkTreeTableRow");c.removeClass(g,"lightTreeTableRow")}else{c.addClass(g,"lightTreeTableRow");c.removeClass(g,"darkTreeTableRow")}});this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},updateCommands:function(){var g=
this.explorer.registry;c.query(".treeTableRow").forEach(function(j){var h=c.byId(j.id+"actionswrapper");c.empty(h);g.getService("orion.page.command").then(function(k){k.renderCommands(h,"object",j._item,this.explorer,"image")})})},_init:function(g){if(g){this._useCheckboxSelection=g.checkbox===undefined?false:g.checkbox;this._colums=g.colums||[];this._cachePrefix=g.cachePrefix}},_initializeUIState:function(){this._expanded=[];var g=this._getUIStatePreferencePath();g&&window.sessionStorage&&this._restoreExpansions(g)&&
this._restoreSelections(g)}};return e}();d.SelectionRenderer=function(){function e(g,j){this._init(g);this.explorer=j}e.prototype=new d.ExplorerRenderer;e.prototype.renderTableHeader=function(g){var j=document.createElement("thead"),h=document.createElement("tr");c.addClass(j,"navTableHeading");this._useCheckboxSelection&&h.appendChild(this.initCheckboxColumn(g));for(var k=0,f=this.getCellHeaderElement(k);f;){c.addClass(f,"navColumn");h.appendChild(f);f=this.getCellHeaderElement(++k)}j.appendChild(h);
g.appendChild(j)};e.prototype.renderRow=function(g,j){c.style(j,"verticalAlign","baseline");c.addClass(j,"treeTableRow");var h=this.getCheckboxColumn(g,j);h&&j.appendChild(h);h=0;for(var k=this.getCellElement(h,g,j);k;){j.appendChild(k);c.addClass(k,"secondaryColumn");k=this.getCellElement(++h,g,j)}};e.prototype.getCellHeaderElement=function(){};e.prototype.getCellElement=function(){};return e}();return d});
define("orion/searchExplorer",["require","dojo","dijit","orion/explorer","orion/util","orion/fileClient","orion/commands"],function(b,c,a,d,e,g,j){function h(l,m,r,n,o){this.registry=l;this.fileClient=m;this._resultLocation=r;this.searchStr=n.toLowerCase();this._treeRoot={isRoot:true,children:[]};this._listRoot={isRoot:true,children:[]};this.indexedFileItems=this.currentDetail=null;this.modelLocHash=[];this._lineDelimiter="\n";this.explorer=o}function k(l,m){this._init(l);this.explorer=m}function f(l,
m,r,n,o){this.parentNode=n;this.registry=l;this._commandService=m;this.fileClient=new g.FileClient(this.registry);this.checkbox=false;this.renderer=new k({checkbox:false},this);this.model=new h(l,this.fileClient,r,o,this)}h.prototype=new d.ExplorerModel;h.prototype.setCurrent=function(l,m){this.currentFileIndex=l;this.currentDetailIndex=m;this.storeStatus()};h.prototype.storeStatus=function(){window.sessionStorage[this.searchStr+"_search_result_useFlatList"]=JSON.stringify(this.useFlatList);window.sessionStorage[this.searchStr+
"_search_result_currentFileIndex"]=JSON.stringify(this.currentFileIndex);window.sessionStorage[this.searchStr+"_search_result_currentDetailIndex"]=JSON.stringify(this.currentDetailIndex)};h.prototype.restoreStatus=function(){this.useFlatList=false;var l=window.sessionStorage[this.searchStr+"_search_result_useFlatList"];if(typeof l==="string")if(l.length>0)this.useFlatList=JSON.parse(l);this.currentFileIndex=0;l=window.sessionStorage[this.searchStr+"_search_result_currentFileIndex"];if(typeof l===
"string")if(l.length>0)this.currentFileIndex=JSON.parse(l);if(this.currentFileIndex<0||this.currentFileIndex>=this.indexedFileItems.length)this.currentFileIndex=0;this.currentDetailIndex=0;l=window.sessionStorage[this.searchStr+"_search_result_currentDetailIndex"];if(typeof l==="string")if(l.length>0)this.currentDetailIndex=JSON.parse(l)};h.prototype.getRealRoot=function(){return this.useFlatList?this._listRoot:this._treeRoot};h.prototype.getRoot=function(l){l(this.getRealRoot())};h.prototype.markUpSharedParent=
function(l,m){if(this.sharedParentHash[l.Location]){var r=this.sharedParentHash[l.Location];if(typeof r==="string")if(r!==m)this.sharedParentHash[l.Location]=2}else this.sharedParentHash[l.Location]=m};h.prototype.preparecompressHash=function(){this.sharedParentHash=[];for(var l=0;l<this._resultLocation.length;l++){var m=this._resultLocation[l].metaData.Parents;if(m.length!==0)for(var r=this._resultLocation[l].location,n=0;n<m.length;n++){var o=m[n];this.markUpSharedParent(o,r);r=o.Location}}};h.prototype.compressParents=
function(l,m,r){if(l.length!==0)if(!(m>l.length-1)){var n=l[m].Name,o=l[m].Location,p=m+1,s=false;if(p<l.length)for(m=m+1;m<l.length;m++){p=m;if(this.sharedParentHash[l[m].Location]===2)break;else{n=l[m].Name+"/"+n;if(m===l.length-1)s=true}}r.push({Location:o,Name:n});s||this.compressParents(l,p,r)}};h.prototype.compressTree=function(){for(var l=0;l<this._resultLocation.length;l++)if(this._resultLocation[l].metaData){var m=this._resultLocation[l].metaData.Parents;if(m.length!==0){this.preparecompressHash();
var r=[];this.compressParents(m,0,r);this._resultLocation[l].metaData.compressedParents=r}}};h.prototype._findExistingParent=function(l,m){var r=this.modelLocHash[l[m].Location];if(r)return{parent:r,index:m};if(m===l.length-1)return null;return this._findExistingParent(l,m+1)};h.prototype.fullPathName=function(l,m){if(l&&l.parent)if(!l.parent.isRoot){m.name=l.parent.name+(m.name===""?"":"/")+m.name;l.parent&&this.fullPathName(l.parent,m)}};h.prototype.buildResultModelTree=function(l,m){m&&this.compressTree();
for(var r=0;r<this._resultLocation.length;r++)if(this._resultLocation[r].metaData){var n;n=m?this._resultLocation[r].metaData.compressedParents:this._resultLocation[r].metaData.Parents;var o=this._findExistingParent(n,0),p;if(o){p=o.parent;o=o.index}else{p=this._treeRoot;o=n.length}if(o>0)for(o=o-1;o>-1;o--){var s={parent:p,children:[],type:"dir",name:n[o].Name,location:n[o].Location};p.children.push(s);e.processSearchResultParent(p);p=this.modelLocHash[n[o].Location]=s}n={name:""};o={parent:p,type:"file",
name:this._resultLocation[r].name,linkLocation:this._resultLocation[r].linkLocation,location:this._resultLocation[r].location};this.fullPathName(o,n);o.fullPathName=n.name;this.modelLocHash[o.location]=o;p.children.push(o);e.processSearchResultParent(p)}this.prepareFileItems();this.restoreStatus();l()};h.prototype.loadOneFileMetaData=function(l,m){var r=this._resultLocation[l];this.fileClient.read(r.location,true).then(c.hitch(this,function(n){r.metaData=n;l===this._resultLocation.length-1?this.buildResultModelTree(m,
true):this.loadOneFileMetaData(l+1,m)}),c.hitch(this,function(n){console.error("Error loading file metadata: "+n.message);l===this._resultLocation.length-1?this.buildResultModelTree(m,true):this.loadOneFileMetaData(l+1,m)}))};h.prototype.prepareFileItems=function(){this.indexedFileItems=[];this.walkTreeNode(this._treeRoot);for(var l=0;l<this.indexedFileItems.length;l++)this._listRoot.children.push(this.indexedFileItems[l])};h.prototype.getFileItemIndex=function(l){for(var m=0;m<this.indexedFileItems.length;m++)if(l===
this.indexedFileItems[m])return m;return-1};h.prototype.getFileDetailItemIndex=function(l,m){if(l<0)return-1;l=this.indexedFileItems[l];if(l.children&&l.children.length>0)for(var r=0;r<l.children.length;r++)if(m===l.children[r])return r;return-1};h.prototype.walkTreeNode=function(l){if(l.children)for(var m=0;m<l.children.length;m++)this.walkTreeNode(l.children[m]);else l.type==="file"&&this.indexedFileItems.push(l)};h.prototype.getId=function(l){if(l===this.getRealRoot())l=this.rootId;else{l=l.location;
l=l.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return l};h.prototype.searchOneline=function(l,m){var r;r=0;for(var n=false,o=[];;){r=l.indexOf(m,r);if(r<0)break;else{o.push({startIndex:r});n=true;r=r+m.length}}if(n)return o;return null};h.prototype.searchWithinFile=function(l,m,r){m=m.split(this._lineDelimiter);if(l){l.children=[];for(var n=0;n<m.length;n++){var o=m[n];if(o&&o.length>0)if(this.searchOneline(o.toLowerCase(),r)){var p=n+1;l.children.push({parent:l,type:"detail",name:p+" : "+o,linkLocation:l.linkLocation+
"?line="+p,location:l.location+"-"+p})}}l.name=l.name+" ("+l.children.length+" matches)"}};h.prototype._fileExpanded=function(l,m){l=this.indexedFileItems[l];if(l.children&&l.children.length>0){if(m<0)m=l.children.length-1;else if(m>=l.children.length)m=0;return{childrenNumber:l.children.length,childDiv:c.byId(this.getId(l.children[m]))}}return{childrenNumber:0,childDiv:null}};h.prototype.getChildren=function(l,m){if(l.children)m(l.children);else if(l.type==="detail")m([]);else l.type==="file"&&l.location?
this.fileClient.read(l.location).then(c.hitch(this,function(r){this.searchWithinFile(l,r,this.searchStr);r=this.getId(l);if(c.byId(r))(r=c.byId(r+"NameColumn"))&&c.place(document.createTextNode(l.name),r,"only");m(l.children);if(this.highlightSelectionLater)if(l===this.indexedFileItems[this.currentFileIndex]){if(this.currentDetailIndex<0)this.currentDetailIndex=l.children.length-1;else if(this.currentDetailIndex>=l.children.length)this.currentDetailIndex=0;r=this._fileExpanded(this.currentFileIndex,
this.currentDetailIndex);c.toggleClass(r.childDiv,"currentSearchMatch",true);this.explorer.visible(r.childDiv)||r.childDiv.scrollIntoView(!this.lastNavDirection);this.highlightSelectionLater=false}}),c.hitch(this,function(r){console.error("Error loading file content: "+r.message);m([])})):m([])};h.prototype.constructor=h;k.prototype=new d.SelectionRenderer;k.prototype.getCellHeaderElement=function(l){if(l===0)return c.create("th",{innerHTML:"<h2>Search Results</h2>"});else if(this.explorer.model.useFlatList&&
l===1)return c.create("th",{innerHTML:"<h2>Location</h2>"})};k.prototype.getCellElement=function(l,m,r){switch(l){case 0:var n;if(m.type==="dir"){l=document.createElement("td");n=c.create("span",null,l,"only");this.getExpandImage(r,n);r=c.create("span",{id:r.id+"NameColumn"},n,"last")}else{l=document.createElement("td");var o=m.linkLocation;n=c.create("span",null,l,"only");if(m.type==="file")this.getExpandImage(r,n,"core-sprite-file");else{var p=this;c.connect(r,"onclick",r,function(){var q=p.explorer.model.getFileItemIndex(m.parent);
if(q>-1){var u=p.explorer.model.getFileDetailItemIndex(q,m);if(u>-1)if(!(p.explorer.model.currentFileIndex===q&&p.explorer.model.currentDetailIndex===u)){var y=p.explorer.model._fileExpanded(p.explorer.model.currentFileIndex,p.explorer.model.currentDetailIndex);y.childDiv&&c.toggleClass(y.childDiv,"currentSearchMatch",false);p.explorer.model.setCurrent(q,u);y=p.explorer.model._fileExpanded(p.explorer.model.currentFileIndex,p.explorer.model.currentDetailIndex);c.toggleClass(y.childDiv,"currentSearchMatch",
true)}}});var s=c.create("span",null,n,"last");c.addClass(s,"imageSprite");c.addClass(s,"core-sprite-none");s=c.create("span",null,n,"last");c.addClass(s,"imageSprite");c.addClass(s,"core-sprite-rightarrow")}r=c.create("a",{className:"navlink",id:r.id+"NameColumn",href:o},n,"last")}c.place(document.createTextNode(m.name),r,"only");return l;case 1:if(this.explorer.model.useFlatList&&m.type==="file"){l=document.createElement("td");n=c.create("span",null,l,"only");c.place(document.createTextNode(m.fullPathName),
n,"only");return l}}};k.prototype.constructor=k;f.prototype=new d.Explorer;f.prototype.onchange=function(){};f.prototype.initCommands=function(){var l=this,m=new j.Command({name:"Next result",imageClass:"core-sprite-move_down",id:"orion.search.nextResult",groupId:"orion.searchGroup",callback:function(){l.gotoNext(true,true)}}),r=new j.Command({name:"Previous result",imageClass:"core-sprite-move_up",id:"orion.search.prevResult",groupId:"orion.searchGroup",callback:function(){l.gotoNext(false,true)}}),
n=new j.Command({name:"Expand all results",imageClass:"core-sprite-expandAll",id:"orion.search.expandAll",groupId:"orion.searchGroup",callback:function(){l.expandAll()}}),o=new j.Command({name:"Collapse all results",imageClass:"core-sprite-collapseAll",id:"orion.search.collapseAll",groupId:"orion.searchGroup",callback:function(){l.collapseAll()}});this._commandService.addCommand(m,"dom");this._commandService.addCommand(r,"dom");this._commandService.addCommand(n,"dom");this._commandService.addCommand(o,
"dom");this._commandService.registerCommandContribution("orion.search.nextResult",1,"pageActionsRight");this._commandService.registerCommandContribution("orion.search.prevResult",2,"pageActionsRight");this._commandService.registerCommandContribution("orion.search.expandAll",3,"pageActionsRight");this._commandService.registerCommandContribution("orion.search.collapseAll",4,"pageActionsRight");c.empty("pageActionsRight");this._commandService.renderCommands("pageActionsRight","dom",l,l,"image");(m=a.byId("globalSearchOptMenu"))&&
m.destroy();m=new a.Menu({style:"display: none;",id:"globalSearchOptMenu"});m.addChild(new a.CheckedMenuItem({label:"Show as List",checked:l.model.useFlatList,onChange:function(p){l.switchTo(p)}}));m=new a.form.DropDownButton({label:"Options",dropDown:m});c.addClass(m.domNode,"commandImage");c.place(m.domNode,"pageActionsRight","last")};f.prototype.startUp=function(){var l=this;this.model.loadOneFileMetaData(0,function(){l.initCommands();l.createTree(l.parentNode,l.model);l.gotoCurrent()})};f.prototype.switchTo=
function(l){this.model.useFlatList=l;this.model.storeStatus();this.createTree(this.parentNode,this.model);this.gotoCurrent()};f.prototype.expandAll=function(){var l=this.model.getRealRoot();if(l.isRoot)for(var m=0;m<l.children.length;m++)this.expandRecursively(l.children[m]);else this.expandRecursively(l);this.gotoCurrent()};f.prototype.collapseAll=function(){var l=this.model.getRealRoot();if(l.isRoot)for(var m=0;m<l.children.length;m++)this.myTree.collapse(l.children[m]);else this.myTree.collapse(l)};
f.prototype.expandRecursively=function(l){if(l.type!=="detail"){this.myTree.expand(l);l=l.children;if(!(l===undefined||l===null))for(var m=l.length,r=0;r<m;r++)this.expandRecursively(l[r])}};f.prototype.findUIParentChain=function(l,m){m.push(l);var r=this.model.getId(l);if(c.byId(r))return m;this.findUIParentChain(l.parent,m)};f.prototype._decideNext=function(l,m){if(!m)return{newFileIndex:this.model.currentFileIndex,newDetailIndex:this.model.currentDetailIndex};m=this.model.indexedFileItems[this.model.currentFileIndex];
if(m.children&&m.children.length>0){l=l?this.model.currentDetailIndex+1:this.model.currentDetailIndex-1;if(l<0){m=this.model.currentFileIndex-1;l=-1}else if(l>m.children.length-1){m=this.model.currentFileIndex+1;l=0}else m=this.model.currentFileIndex;if(m<0)m=this.model.indexedFileItems.length-1;else if(m>=this.model.indexedFileItems.length)m=0;return{newFileIndex:m,newDetailIndex:l}}return null};f.prototype.visible=function(l){if(l.offsetWidth===0||l.offsetHeight===0)return false;var m=c.byId("orion.innerSearchResults").getClientRects()[0];
l=l.getClientRects();for(var r=0,n=l.length;r<n;r++){var o=l[r];if(o.top>=m.top&&o.top<=m.bottom&&o.bottom>=m.top&&o.bottom<=m.bottom)return true}return false};f.prototype.gotoCurrent=function(){this.gotoNext(true,false)};f.prototype.gotoNext=function(l,m){var r=this.model._fileExpanded(this.model.currentFileIndex,this.model.currentDetailIndex);r.childDiv&&c.toggleClass(r.childDiv,"currentSearchMatch",false);m=this._decideNext(l,m);this.model.highlightSelectionLater=true;this.model.lastNavDirection=
l;if(m){r=this.model._fileExpanded(m.newFileIndex,m.newDetailIndex);this.model.setCurrent(m.newFileIndex,m.newDetailIndex);if(r.childrenNumber>0){this.model.highlightSelectionLater=false;if(m.newDetailIndex<0)this.model.setCurrent(m.newFileIndex,r.childrenNumber-1);else m.newDetailIndex>=r.childrenNumber&&this.model.setCurrent(m.newFileIndex,0)}if(r.childDiv){c.toggleClass(r.childDiv,"currentSearchMatch",true);this.visible(r.childDiv)||r.childDiv.scrollIntoView(!l);return}}m=[];this.findUIParentChain(this.model.indexedFileItems[this.model.currentFileIndex],
m);for(r=m.length-1;r>-1;r--)this.myTree.expand(m[r]);if(!this.model.highlightSelectionLater){m=this.model._fileExpanded(this.model.currentFileIndex,this.model.currentDetailIndex);c.toggleClass(m.childDiv,"currentSearchMatch",true);this.visible(m.childDiv)||m.childDiv.scrollIntoView(!l)}};f.prototype.constructor=f;return{SearchResultExplorer:f}});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(c,a,d){var e=document.cookie;if(arguments.length==1){var g=e.match(new RegExp("(?:^|; )"+b.regexp.escapeString(c)+"=([^;]*)"));return g?decodeURIComponent(g[1]):undefined}else{d=d||{};e=d.expires;if(typeof e=="number"){var j=new Date;j.setTime(j.getTime()+e*24*60*60*1E3);e=d.expires=j}if(e&&e.toUTCString)d.expires=e.toUTCString();a=encodeURIComponent(a);e=c+"="+a;for(g in d){e+="; "+g;j=d[g];if(j!==true)e+="="+j}document.cookie=
e}};b.cookie.isSupported=function(){if(!("cookieEnabled"in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1})}return navigator.cookieEnabled};return b.cookie});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,c){b.declare("dijit.layout.BorderContainer",c.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
this._setupChild,this);this.inherited(arguments)}},_setupChild:function(a){var d=a.region;if(d){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var e=this.isLeftToRight();if(d=="leading")d=e?"left":"right";if(d=="trailing")d=e?"right":"left";if(d!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget){var g=b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter");e=new g({id:a.id+"_splitter",container:this,child:a,region:d,live:this.liveSplitters});e.isSplitter=
true;a._splitterWidget=e;b.place(e.domNode,a.domNode,"after");e.startup()}a.region=d}},layout:function(){this._layoutChildren()},addChild:function(){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var d=a.region,e=a._splitterWidget;if(e){e.destroy();delete a._splitterWidget}this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
b.style(a.domNode,d=="top"||d=="bottom"?"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(d){return d.region==a})[0]._splitterWidget},resize:function(){if(!this.cs||!this.pe){var a=this.domNode;this.cs=b.getComputedStyle(a);this.pe=b._getPadExtents(a,this.cs);this.pe.r=b._toPixelValue(a,this.cs.paddingRight);this.pe.b=b._toPixelValue(a,this.cs.paddingBottom);
b.style(a,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,d){if(this._borderBox&&this._borderBox.h){var e=b.map(this.getChildren(),function(j,h){return{pane:j,weight:[j.region=="center"?Infinity:0,j.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(j.region)?1:-1),h]}},this);e.sort(function(j,h){j=j.weight;h=h.weight;for(var k=0;k<j.length;k++)if(j[k]!=h[k])return j[k]-h[k];return 0});var g=[];b.forEach(e,function(j){j=j.pane;g.push(j);j._splitterWidget&&g.push(j._splitterWidget)});
c.layout.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},g,a,d)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var d=a._splitterWidget;d&&d.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(c._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[c._Widget,c._Templated],{live:true,templateString:'<div class="dijitSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=b.cookie(this._cookieName);if(a)this.child.domNode.style[this.horizontal?"height":"width"]=a}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",d=b.marginBox(this.child.domNode)[a],e=b.filter(this.container.getChildren(),function(g){return g.region=="center"})[0];a=b.marginBox(e.domNode)[a];return Math.min(this.child.maxSize,d+a)},_startDrag:function(a){if(!this.cover){this.cover=b.doc.createElement("div");b.addClass(this.cover,"dijitSplitterCover");b.place(this.cover,this.child.domNode,"after")}b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
b.addClass(this.domNode,"dijitSplitterShadow");b.place(this.fake,this.domNode,"after")}b.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake)b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var d=this._factor,e=this.horizontal,g=e?"pageY":"pageX",j=a[g],h=this.domNode.style;e=e?"h":"w";var k=b.marginBox(this.child.domNode)[e],f=this._computeMaxSize(),l=this.child.minSize||20;e=this.region;var m=e==
"top"||e=="bottom"?"top":"left",r=parseInt(h[m],10),n=this._resize,o=b.hitch(this.container,"_layoutChildren",this.child.id);e=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(e,"onmousemove",this._drag=function(p,s){p=p[g]-j;var q=d*p+k,u=Math.max(Math.min(q,f),l);if(n||s)o(u);h[m]=p+r+d*(u-q)+"px"}),b.connect(e,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(e,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||
a.type=="mouseenter";b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(a);this._drag(a,true)}finally{this._cleanupHandlers();delete this._drag}if(this.container.persist)b.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){b.forEach(this._handlers,b.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=true;var d=this.horizontal,e=1,g=b.keys;switch(a.charOrCode){case d?g.UP_ARROW:g.LEFT_ARROW:e*=-1;case d?g.DOWN_ARROW:g.RIGHT_ARROW:break;default:return}d=b._getMarginSize(this.child.domNode)[d?"h":"w"]+this._factor*e;this.container._layoutChildren(this.child.id,Math.max(Math.min(d,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[c._Widget,c._Templated],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return c.layout.BorderContainer});
define("orion/searchClient",["require","dojo","dijit","orion/auth","orion/util","orion/searchExplorer","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,c,a,d,e,g){function j(h){this.registry=h.serviceRegistry;this._commandService=h.commandService}j.prototype={search:function(h,k,f,l,m,r,n){c.xhrGet({url:k,handleAs:"json",headers:{Accept:"application/json","Orion-Version":"1"},sync:false,timeout:15E3,error:function(o,p){var s=this;d.handleAuthenticationError(p.xhr,
function(){c.xhrGet(s)})},load:c.hitch(this,function(o){this.showSearchResult(h,k,f,l,m,r,n,o)})})},handleError:function(h,k){console.error(h);var f=document.createTextNode(h);c.place(f,k,"only");return h},saveSearch:function(h,k){this.registry.getService("orion.core.favorite").then(function(f){f.addFavoriteSearch(h,k)})},createSearchQuery:function(h,k,f){if(f){k=/\*$/.test(f)?"":"*";return h+"Name:"+this._luceneEscape(f,true)+k}return h+this._luceneEscape(k)},_luceneEscape:function(h,k){var f="";
k='+-&|!(){}[]^"~:\\'+(!k?"*?":"");for(var l=0;l<h.length;l++){var m=h.charAt(l);if(k.indexOf(m)>=0)f+="\\";f+=m}return f},formatHighlight:function(h){h=h.split(/(##match|match##)/);for(var k=c.create("div"),f,l=0;l<h.length;l++){var m=h[l];if(m==="##match")f=c.create("b");else if(m==="match##"){c.place(f,k,"last");f=null}else c.place(document.createTextNode(m),f||k,"last")}return k},showSearchResult:function(h,k,f,l,m,r,n,o){n?this.showSearchResultInList(h,k,f,l,m,r,o):this.showSearchResultInTree(h,
k,f,l,m,r,o)},showSearchResultInTree:function(h,k,f,l,m,r,n){window.location.href.split("#");r=false;var o=[];c.empty(h);l=n.responseHeader.params.q;l=l.substring(l.indexOf("}")+1);if(n.response.numFound>0){for(var p=0;p<n.response.docs.length;p++){var s=n.response.docs[p];if(!s.Directory&&s.Location!==f){r||(r=true);var q;q=l&&s.LineNumber?e.hashFromPosition(s.Location,null,null,s.LineNumber,s.Offset,l.length):s.Location;o.push({linkLocation:b.toUrl("edit/edit.html")+"#"+q,location:q,name:s.Name})}}typeof m===
"function"&&m(h)}if(r)(new g.SearchResultExplorer(this.registry,this._commandService,o,h,k.split("q=")[1])).startUp();else{h=c.place("<div>No matches found for </div>",h,"only");h=c.create("b",null,h,"last");c.place(document.createTextNode(l),h,"only")}},showSearchResultInList:function(h,k,f,l,m,r,n){window.location.href.split("#");var o=false;c.empty(h);k=n.responseHeader.params.q;k=k.substring(k.indexOf("}")+1);if(n.response.numFound>0){for(var p=document.createElement("table"),s=0;s<n.response.docs.length;s++){var q=
n.response.docs[s];if(!q.Directory&&q.Location!==f){var u;if(!o){o=true;if(l){u=p.insertRow(0).insertCell(0);u.innerHTML="<h2>Search Results</h2>"}}u=p.insertRow(-1).insertCell(0);u.colspan=2;var y=document.createElement("a");c.place(document.createTextNode(q.Name),y);q.LineNumber&&c.place(document.createTextNode(" (Line "+q.LineNumber+")"),y);var C;C=k&&q.LineNumber?e.hashFromPosition(q.Location,null,null,q.LineNumber,q.Offset,k.length):q.Location;y.setAttribute("href",b.toUrl("edit/edit.html")+
"#"+C);u.appendChild(y);if(!r&&n.highlighting&&n.highlighting[q.Id]&&n.highlighting[q.Id].Text){q=n.highlighting[q.Id].Text[0];u=p.insertRow(-1).insertCell(0);u.colspan=2;c.place(this.formatHighlight(q),u,"only")}}}c.place(p,h,"last");typeof m==="function"&&m(h)}if(!o){h=c.place("<div>No matches found for </div>",h,"only");h=c.create("b",null,h,"last");c.place(document.createTextNode(k),h,"only")}}};j.prototype.constructor=j;return{Searcher:j}});
define("orion/git/gitClient",["require","dojo","orion/auth"],function(b,c,a){var d=d||{};d.GitService=function(){function e(g){if(g){this._serviceRegistry=g;this._serviceRegistration=g.registerService("orion.git.provider",this);var j=this;g.getService("orion.net.ssh").then(function(h){j._sshService=h})}}e.prototype={checkGitService:function(){},cloneGitRepository:function(g,j,h,k,f,l,m,r,n){var o={};if(g)o.Name=g;if(h)o.Path=h;if(j)o.GitUrl=j;o.Location=k;if(f)o.GitSshUsername=f;if(l)o.GitSshPassword=
l;if(m)o.GitSshKnownHost=m;if(r)o.GitSshPrivateKey=r;if(n)o.GitSshPassphrase=n;g=b.toUrl("gitapi/clone/._");g=g.substring(0,g.length-2);return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson(o),handleAs:"json",timeout:15E3,load:function(p){return p},error:function(p,s){a.handleAuthenticationError(s.xhr,function(){});console.error("HTTP status code: ",s.xhr.status);return p}})},initGitRepository:function(){console.error("Not implemented yet")},removeGitRepository:function(g){return c.xhrDelete({url:g,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,h){a.handleAuthenticationError(h.xhr,function(){});console.error("HTTP status code: ",h.xhr.status);return j}})},getDiffContent:function(g,j,h){var k=this;c.xhrGet({url:g,headers:{"Orion-Version":"1"},content:{parts:"diff"},handleAs:"text",timeout:15E3,load:function(f,l){if(j)typeof j==="function"?j(f,l):k._serviceRegistration.dispatchEvent(j,f)},error:function(f,l){h&&h(f,l);var m=this;a.handleAuthenticationError(l.xhr,
function(){c.xhrGet(m)});return f}})},getDiffFileURI:function(g,j,h){c.xhrGet({url:g,headers:{"Orion-Version":"1"},content:{parts:"uris"},handleAs:"json",timeout:15E3,load:function(k,f){if(j)typeof j==="function"?j(k,f):service._serviceRegistration.dispatchEvent(j,k)},error:function(k,f){h&&h(k,f);var l=this;a.handleAuthenticationError(f.xhr,function(){c.xhrGet(l)});return k}})},getGitStatus:function(g,j,h){c.xhrGet({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(k,
f){if(j)typeof j==="function"?j(k,f):service._serviceRegistration.dispatchEvent(j,k)},error:function(k,f){h&&h(k,f);var l=this;a.handleAuthenticationError(f.xhr,function(){c.xhrGet(l)});return k}})},stage:function(g,j,h){return c.xhrPut({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(k,f){if(j)typeof j==="function"?j(k,f):service._serviceRegistration.dispatchEvent(j,k)},error:function(k,f){h&&h(k,f);a.handleAuthenticationError(f.xhr,function(){})}})},stageMultipleFiles:function(g,
j,h,k){return c.xhrPut({url:g,headers:{"Orion-Version":"1"},putData:c.toJson({Path:j}),handleAs:"json",timeout:15E3,load:function(f,l){if(h)typeof h==="function"?h(f,l):service._serviceRegistration.dispatchEvent(h,f)},error:function(f,l){k&&k(f,l);a.handleAuthenticationError(l.xhr,function(){});return f}})},unstageAll:function(g,j,h,k){return c.xhrPost({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:c.toJson({Reset:j}),load:function(f,l){if(h)typeof h==="function"?h(f,l):
service._serviceRegistration.dispatchEvent(h,f)},error:function(f,l){k&&k(f,l);a.handleAuthenticationError(l.xhr,function(){});return f}})},unstage:function(g,j,h,k){return c.xhrPost({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:c.toJson({Path:j}),load:function(f,l){if(h)typeof h==="function"?h(f,l):service._serviceRegistration.dispatchEvent(h,f)},error:function(f,l){k&&k(f,l);a.handleAuthenticationError(l.xhr,function(){});return f}})},checkoutPath:function(g,j,h,k){return c.xhrPut({url:g,
headers:{"Orion-Version":"1"},putData:c.toJson({Path:j}),handleAs:"json",timeout:15E3,load:function(f,l){if(h)typeof h==="function"?h(f,l):service._serviceRegistration.dispatchEvent(h,f)},error:function(f,l){k&&k(f,l);a.handleAuthenticationError(l.xhr,function(){});return f}})},commitAll:function(g,j,h,k,f){c.xhrPost({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:h,load:function(l,m){if(k)typeof k==="function"?k(l,m):service._serviceRegistration.dispatchEvent(k,l)},error:function(l,
m){f&&f(l,m);a.handleAuthenticationError(m.xhr,function(){});return l}})},getGitClone:function(g,j){var h=this;return c.xhrGet({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(k,f){if(j)typeof j==="function"?j(k,f):h._serviceRegistration.dispatchEvent(j,k)},error:function(k,f){var l=this;a.handleAuthenticationError(f.xhr,function(){c.xhrGet(l)});console.error("HTTP status code: ",f.xhr.status)}})},getGitCloneConfig:function(g){return c.xhrGet({url:g,headers:{"Orion-Version":"1"},
handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,h){var k=this;a.handleAuthenticationError(h.xhr,function(){c.xhrGet(k)});console.error("HTTP status code: ",h.xhr.status)}})},getGitBranch:function(g){return c.xhrGet({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,h){var k=this;a.handleAuthenticationError(h.xhr,function(){c.xhrGet(k)});console.error("HTTP status code: ",h.xhr.status)}})},getGitRemote:function(g){return c.xhrGet({url:g,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,h){var k=this;a.handleAuthenticationError(h.xhr,function(){c.xhrGet(k)});console.error("HTTP status code: ",h.xhr.status)}})},checkoutBranch:function(g,j){return c.xhrPut({url:g,headers:{"Orion-Version":"1"},putData:c.toJson({Branch:j}),handleAs:"json",timeout:5E3,load:function(h){return h},error:function(h,k){a.handleAuthenticationError(k.xhr,function(){});console.error("HTTP status code: ",k.xhr.status);
return h}})},resetIndex:function(g,j){return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({Commit:j,Reset:"HARD"}),handleAs:"json",timeout:5E3,load:function(h){return h},error:function(h,k){a.handleAuthenticationError(k.xhr,function(){});console.error("HTTP status code: ",k.xhr.status)}})},addBranch:function(g,j,h){var k={};if(j)k.Name=j;if(h)k.Branch=h;return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson(k),handleAs:"json",timeout:5E3,load:function(f){return f},
error:function(f,l){a.handleAuthenticationError(l.xhr,function(){});console.error("HTTP status code: ",l.xhr.status);return f}})},removeBranch:function(g){return c.xhrDelete({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,h){a.handleAuthenticationError(h.xhr,function(){});console.error("HTTP status code: ",h.xhr.status);return j}})},addRemote:function(g,j,h){return c.xhrPost({url:g,headers:{"Orion-Version":"1"},putData:c.toJson({Remote:j,
RemoteURI:h}),handleAs:"json",timeout:5E3,load:function(k){return k},error:function(k,f){a.handleAuthenticationError(f.xhr,function(){});console.error("HTTP status code: ",f.xhr.status);return k}})},removeRemote:function(g){return c.xhrDelete({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,h){a.handleAuthenticationError(h.xhr,function(){});console.error("HTTP status code: ",h.xhr.status);return j}})},doGitLog:function(g,j){var h=this;return c.xhrGet({url:g,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(k,f){if(j)typeof j==="function"?j(k,f):h._serviceRegistration.dispatchEvent(j,k);return k},error:function(k,f){var l=this;a.handleAuthenticationError(f.xhr,function(){c.xhrGet(l)});console.error("HTTP status code: ",f.xhr.status)}})},getDiff:function(g,j,h){var k=this;c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({New:j}),handleAs:"json",timeout:5E3,load:function(f,l){if(h)typeof h==="function"?h(f,l,l):k._serviceRegistration.dispatchEvent(h,
f)},error:function(f,l){var m=this;a.handleAuthenticationError(l.xhr,function(){c.xhrGet(m)});console.error("HTTP status code: ",l.xhr.status)}})},doFetch:function(g,j,h,k,f,l,m,r){var n=this;return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({Fetch:"true",Force:j,GitSshUsername:k,GitSshPassword:f,GitSshKnownHost:l,GitSshPrivateKey:m,GitSshPassphrase:r}),handleAs:"json",timeout:5E3,load:function(o,p){if(h)typeof h==="function"?h(o,p,p):n._serviceRegistration.dispatchEvent(h,o)},
error:function(o,p){a.handleAuthenticationError(p.xhr,function(){});console.error("HTTP status code: ",p.xhr.status)}})},doMerge:function(g,j){return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({Merge:j}),handleAs:"json",timeout:5E3,load:function(h,k){return{jsonData:h,secondArg:k}},error:function(h,k){a.handleAuthenticationError(k.xhr,function(){});console.error("HTTP status code: ",k.xhr.status);return{error:h,ioArgs:k}}})},doCherryPick:function(g,j,h,k){var f=this;return c.xhrPost({url:g,
headers:{"Orion-Version":"1"},postData:c.toJson({"Cherry-Pick":j}),handleAs:"json",timeout:5E3,load:function(l,m){if(h)typeof h==="function"?h(l,m):f._serviceRegistration.dispatchEvent(h,l);return{jsonData:l,secondArg:m}},error:function(l,m){k&&k(l,m);a.handleAuthenticationError(m.xhr,function(){});console.error("HTTP status code: ",m.xhr.status);return{error:l,ioArgs:m}}})},doRebase:function(g,j,h,k,f){var l=this,m={};m.Rebase=j;if(h)m.Operation=h;return c.xhrPost({url:g,headers:{"Orion-Version":"1"},
postData:c.toJson(m),handleAs:"json",timeout:5E3,load:function(r,n){if(k)typeof k==="function"?k(r,n):l._serviceRegistration.dispatchEvent(k,r);return{jsonData:r,secondArg:n}},error:function(r,n){f&&f(r,n);a.handleAuthenticationError(n.xhr,function(){});console.error("HTTP status code: ",n.xhr.status);return{error:r,ioArgs:n}}})},doPush:function(g,j,h,k,f,l,m,r,n,o){var p=this;return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({PushSrcRef:j,PushTags:h,Force:k,GitSshUsername:l,
GitSshPassword:m,GitSshKnownHost:r,GitSshPrivateKey:n,GitSshPassphrase:o}),handleAs:"json",timeout:5E3,load:function(s,q){if(f)typeof f==="function"?f(s,q,q):p._serviceRegistration.dispatchEvent(f,s)},error:function(s,q){a.handleAuthenticationError(q.xhr,function(){});console.error("HTTP status code: ",q.xhr.status);return s}})},getLog:function(g,j,h){var k=this;return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({New:j}),handleAs:"json",timeout:5E3,load:function(f,l){return l.xhr.getResponseHeader("Location")},
error:function(f,l){a.handleAuthenticationError(l.xhr,function(){});console.error("HTTP status code: ",l.xhr.status)}}).then(function(f){c.xhrGet({url:f,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(l,m){if(h)typeof h==="function"?h(l,m):k._serviceRegistration.dispatchEvent(h,l);return l},error:function(l,m){var r=this;a.handleAuthenticationError(m.xhr,function(){c.xhrGet(r)});console.error("HTTP status code: ",m.xhr.status)}})})},getDefaultRemoteBranch:function(g,j){var h=
this;c.xhrGet({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(k){return k},error:function(k,f){var l=this;a.handleAuthenticationError(f.xhr,function(){c.xhrGet(l)});console.error("HTTP status code: ",f.xhr.status)}}).then(function(k){if(k.Children[0]==null)return null;c.xhrGet({url:k.Children[0].Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(f,l){if(j)typeof j==="function"?j(f.Children[0],l):h._serviceRegistration.dispatchEvent(j,f.Children[0]);
return f},error:function(f,l){var m=this;a.handleAuthenticationError(l.xhr,function(){c.xhrGet(m)});console.error("HTTP status code: ",l.xhr.status)}})})},doAddTag:function(g,j,h){var k=this;return c.xhrPut({url:g,headers:{"Orion-Version":"1"},putData:c.toJson({Name:j}),handleAs:"json",timeout:5E3,load:function(f,l){if(h)typeof h==="function"?h(f,l,l):k._serviceRegistration.dispatchEvent(h,f)},error:function(f,l){a.handleAuthenticationError(l.xhr,function(){});console.error("HTTP status code: ",l.xhr.status)}})},
checkoutTag:function(g,j,h,k){var f=this;return c.xhrPut({url:g,headers:{"Orion-Version":"1"},putData:c.toJson({Tag:j,Branch:h}),handleAs:"json",timeout:5E3,load:function(l,m){if(k)typeof k==="function"?k(l,m,m):f._serviceRegistration.dispatchEvent(k,l);return l},error:function(l,m){a.handleAuthenticationError(m.xhr,function(){});console.error("HTTP status code: ",m.xhr.status);return l}})},addCloneConfigurationProperty:function(g,j,h,k,f){return c.xhrPost({url:g,headers:{"Orion-Version":"1"},postData:c.toJson({Key:j,
Value:h}),handleAs:"json",timeout:15E3,load:function(l,m){if(k)typeof k==="function"?k(l,m):service._serviceRegistration.dispatchEvent(k,l)},error:function(l,m){f&&f(l,m);a.handleAuthenticationError(m.xhr,function(){});return l}})},editCloneConfigurationProperty:function(g,j,h,k){return c.xhrPut({url:g,headers:{"Orion-Version":"1"},putData:c.toJson({Value:j}),handleAs:"json",timeout:15E3,load:function(f,l){if(h)typeof h==="function"?h(f,l):service._serviceRegistration.dispatchEvent(h,f)},error:function(f,
l){k&&k(f,l);a.handleAuthenticationError(l.xhr,function(){});return f}})},deleteCloneConfigurationProperty:function(g,j,h){return c.xhrDelete({url:g,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(k,f){if(j)typeof j==="function"?j(k,f):service._serviceRegistration.dispatchEvent(j,k)},error:function(k,f){h&&h(k,f);a.handleAuthenticationError(f.xhr,function(){});return k}})}};return e}();return d});
define("orion/ssh/sshTools",[],function(){var b=b||{};b.SshService=function(){function c(a){if(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.net.ssh",this)}}c.prototype={_KNOWN_HOSTS:"known_hosts",addKnownHosts:function(a,d){d||(d="");var e=localStorage.getItem(d+this._KNOWN_HOSTS);if(e)e.indexOf(a)<0&&localStorage.setItem(d+this._KNOWN_HOSTS,e+"\n"+a);else localStorage.setItem(d+this._KNOWN_HOSTS,a)},clearKnownhosts:function(a){a||(a="");localStorage.removeItem(a+
this._KNOWN_HOSTS)},getKnownHosts:function(a){a||(a="");return localStorage.getItem(a+this._KNOWN_HOSTS)}};return c}();return b});
define("orion/git/git-clone-details",["require","dojo","orion/commands","orion/util"],function(b,c,a,d){b={};b.CloneDetails=function(){function e(g){var j=g.parent;if(typeof j==="string")j=c.byId(j);if(!j)throw"no parent";if(!g.serviceRegistry)throw"no service registry";this._parent=j;this._registry=g.serviceRegistry;this._detailsPane=g.detailsPane;var h=new a.Command({name:"Add Configuration Item",imageClass:"core-sprite-add",id:"eclipse.git.addProperty",callback:c.hitch(this,function(l,m,r){this.newProperty(l,
m,r)})}),k=new a.Command({name:"Edit",imageClass:"core-sprite-edit",id:"eclipse.git.editProperty",visibleWhen:function(l){return l.Key&&l.Value&&l.Location},callback:c.hitch(this,function(l,m,r,n){this.editProperty(l,m,r,n)})}),f=new a.Command({name:"Delete",imageClass:"core-sprite-delete",id:"eclipse.git.deleteProperty",visibleWhen:function(l){return l.Key&&l.Value&&l.Location},callback:c.hitch(this,function(l,m,r,n){this.deleteProperty(l,m,r,n)})});this._registry.getService("orion.page.command").then(function(l){l.addCommand(k,
"object");l.addCommand(f,"object");l.addCommand(h,"dom");l.registerCommandContribution("eclipse.git.editProperty",1);l.registerCommandContribution("eclipse.git.deleteProperty",2);l.registerCommandContribution("eclipse.git.addProperty",1,"configurationCommands")})}e.prototype={loadCloneDetails:function(g){this.configPath=g;if(this._detailsPane){this._detailsPane.isRightPaneOpen()||this._detailsPane.toggle();this._detailsPane.style.overflow="hidden"}var j=this;this._registry.getService("orion.git.provider").then(function(h){h.getGitCloneConfig(g).then(function(k){j.render(k)})})},
reportError:function(g){this._registry.getService("orion.page.message").then(function(j){var h=[];h.Severity="Error";var k=JSON.parse(g.responseText);h.Message=k.Message?k.Message:g.responseText;j.setProgressResult(h)})},newProperty:function(){var g=c.byId("propertyKeyNew"),j=c.byId("propertyValueNew"),h=this;d.getUserText("propertyKeyNewEditBox",g,true,"",function(k){var f=c.create("span",{id:"newKeyNode"},g.parentNode,"last");c.place(document.createTextNode(k),f,"only");d.getUserText("propertyValueNewEditBox",
j,true,"",function(l){h._registry.getService("orion.git.provider").then(function(m){m.addCloneConfigurationProperty(h.configPath,k,l).then(function(){c.hitch(h,h.loadCloneDetails)(h.configPath)},function(r){c.hitch(h,h.reportError)(r)})})},function(){g.parentNode.removeChild(f)})},function(){})},editProperty:function(g,j,h,k){var f=c.byId("propertyValue"+k),l=this._registry,m=this;c.style(f,"display","none");d.getUserText("propertyValue"+k+"EditBox",f,true,g.Value,function(r){l.getService("orion.git.provider").then(function(n){n.editCloneConfigurationProperty(g.Location,
r).then(function(){f.innerHTML=r},function(o){c.hitch(m,m.reportError)(o)})})},function(){c.style(f,"display","inline")})},deleteProperty:function(g,j,h,k){var f=c.byId("property"+k),l=this;confirm("Do you really want to delete "+g.Key+"?")&&this._registry.getService("orion.git.provider").then(function(m){m.deleteCloneConfigurationProperty(g.Location).then(function(){c.style(f,"display","none")},function(r){c.hitch(l,l.reportError)(r)})})},render:function(g){var j=c.create("table",{id:"cloneMetaTable"});
c.addClass(j,"cloneMetaTable");var h=c.create("thead",null,j);h=c.create("tr",null,h);var k=c.create("td",{colspan:2},h);c.addClass(k,"paneHeadingContainer");c.place("<span class='paneHeading'>Repository configuration</span>",k,"only");h=c.create("td",null,h);c.style(h,"textAlign","right");c.addClass(h,"paneHeadingContainer");c.place("<span id='configurationCommands' class='paneHeadingToolbar'></span>",h,"only");if(g!=null){var f;k=c.create("tbody",null,j);for(i in g.Children){h=c.create("tr");h.id=
"property"+i;f=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");c.place(document.createTextNode(g.Children[i].Key),f,"only");f=c.create("td",null,h,"last");f=c.create("span",{id:"propertyValue"+i},f,"only");c.place(document.createTextNode(g.Children[i].Value),f,"only");c.place(h,k,"last");f=c.create("td",null,h,"last");var l=c.create("span",{id:h.id+"actionsWrapper"},f,"only");c.style(l,"visibility","hidden");this._registry.getService("orion.page.command").then(function(r){r.renderCommands(l,
"object",g.Children[i],this,"image",null,i)});c.connect(h,"onmouseover",h,function(){var r=c.byId(this.id+"actionsWrapper");c.style(r,"visibility","visible")});c.connect(h,"onmouseout",h,function(){var r=c.byId(this.id+"actionsWrapper");c.style(r,"visibility","hidden")});c.place(h,k,"last")}h=c.create("tr",{id:"propertyNew"});f=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");c.create("span",{id:"propertyKeyNew",innerHTML:"&nbsp;"},f,"last");f=c.create("td",null,h,"last");c.create("span",
{id:"propertyValueNew",innerHTML:"&nbsp;"},f,"last");f=c.create("td",{innerHTML:"&nbsp;"},h,"last");c.place(h,k,"last")}c.place(j,this._parent,"only");var m=c.byId("configurationCommands");this._registry.getService("orion.page.command").then(function(r){r.renderCommands(m,"dom",this,this,"image")})}};return e}();return b});
define("orion/git/git-clones-explorer",["require","dojo","orion/explorer","orion/util"],function(b,c,a,d){var e={};e.GitClonesExplorer=function(){function g(j,h,k,f,l,m){this.parentId=f;this.registry=j;this.selection=h;this.toolbarId=l;this.selectionToolsId=m;this.cloneDetails=k;this.checkbox=false;this.renderer=new e.GitClonesRenderer({checkbox:false},this)}g.prototype=new a.Explorer;g.prototype.getGitLocation=function(j){j=d.makeRelative(j);var h=b.toUrl("gitapi/clone._");h=h.substring(0,h.length-
2);return j[0]==="/"?h+j:h+"/"+j};g.prototype.setDefaultPath=function(j){this.defaultPath=j};g.prototype.displayClonesList=function(j){var h=this;j=j||this.defaultPath;j=d.makeRelative(j);if(j!==this._lastHash){this._lastHash=j;c.hash(j,true);var k=this.getGitLocation(j);c.create("div",null,c.byId(this.parentId),"only").innerHTML="Loading <b>"+k+"</b>...";this.registry.getService("orion.git.provider").then(function(f){c.hitch(h,h.createTree(h.parentId,new e.GitClonesModel(f,k,f.getGitClone)))})}};
g.prototype.redisplayClonesList=function(){if(this._lastHash){var j=this,h=this.getGitLocation(this._lastHash);c.create("div",null,c.byId(this.parentId),"only").innerHTML="Loading <b>"+h+"</b>...";this.registry.getService("orion.git.provider").then(function(k){c.hitch(j,j.createTree(j.parentId,new e.GitClonesModel(k,h,k.getGitClone)))})}};g.prototype.loadCloneDetails=function(j){this.cloneDetails.loadCloneDetails(j.ConfigLocation)};return g}();e.GitClonesModel=function(){function g(j,h,k,f){this.gitClient=
j;this.rootPath=h;this.fetchItems=k;this.root=f?f:null}g.prototype=new a.ExplorerModel;g.prototype.getRoot=function(j){this.root?j(this.root):this.fetchItems(this.rootPath).then(c.hitch(this,function(h){this.root=h;j(h)}))};g.prototype.mayHaveChildren=function(j){if(j.children||j.Children)return true;else if(j.BranchLocation&&j.RemoteLocation)return true;else if(j.GroupNode)return true;else if(j.Type==="Remote")return true;return false};g.prototype.getIdentity=function(j){if(j.Location){j=j.Location;
j=j.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}else j="ROOT";return j};g.prototype.getChildren=function(j,h){j.children=[];if(j.Children){for(var k=0;k<j.Children.length;k++){j.Children[k].parent=j;j.children[k]=j.Children[k]}h(j.Children)}else if(j.BranchLocation&&j.RemoteLocation){j.children=[{GroupNode:"true",Location:j.BranchLocation,Name:"Branches",parent:j},{GroupNode:"true",Location:j.RemoteLocation,BranchLocation:j.BranchLocation,Name:"Remotes",parent:j},{GroupNode:"true",Location:j.TagLocation,
Name:"Tags",parent:j}];h(j.children)}else if(j.GroupNode)this.gitClient.getGitBranch(j.Location).then(c.hitch(this,function(f){j.children=f.Children;for(var l=0;l<f.Children.length;l++)f.Children[l].parent=j;h(f.Children)}));else j.Type==="Remote"&&this.gitClient.getGitBranch(j.Location).then(c.hitch(this,function(f){j.children=f.Children;for(var l=0;l<f.Children.length;l++)f.Children[l].parent=j;h(f.Children)}))};return g}();e.GitClonesRenderer=function(){function g(j,h){this._init(j);this.explorer=
h}g.prototype=new a.SelectionRenderer;g.prototype.getCellHeaderElement=function(j){switch(j){case 0:return c.create("th",{innerHTML:"<h2>Name</h2>"});case 1:return c.create("th",{innerHTML:"<h2>Actions</h2>"})}};g.prototype.getCellElement=function(j,h,k){switch(j){case 0:var f,l;if(h.BranchLocation&&h.RemoteLocation){f=document.createElement("td");j=k.id+"__expand";j=c.create("div",null,f,"only");this.getExpandImage(k,j,"git-sprite-repository","gitImageSprite");l=c.create("a",{className:"navlinkonpage"},
j,"last");c.connect(l,"onclick",l,c.hitch(this,function(){this.explorer.loadCloneDetails(h)}));c.connect(l,"onmouseover",l,function(){l.style.cursor="pointer"});c.connect(l,"onmouseout",l,function(){l.style.cursor="default"});c.place(document.createTextNode(h.Name),l,"only")}else if(h.GroupNode){f=document.createElement("td");j=k.id+"__expand";j=c.create("div",null,f,"only");h.Name==="Branches"&&this.getExpandImage(k,j,"git-sprite-branches","gitImageSprite");h.Name==="Remotes"&&this.getExpandImage(k,
j,"git-sprite-remotes","gitImageSprite");h.Name==="Tags"&&this.getExpandImage(k,j,"git-sprite-tags","gitImageSprite");l=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},j,"last");c.place(document.createTextNode(h.Name),l,"only")}else if(h.Type==="Branch"){f=document.createElement("td");j=c.create("div",{style:"margin-left: 10px"},f,"only");l=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},j,"last");if(h.Current)l.style.fontWeight="bold";c.place(document.createTextNode(h.Name),l,
"only");k=c.create("span",null,l,"first");c.addClass(k,"gitImageSprite");c.addClass(k,"git-sprite-branch")}else if(h.Type==="Remote"){f=document.createElement("td");j=k.id+"__expand";j=c.create("div",null,f,"only");this.getExpandImage(k,j,"git-sprite-remote","gitImageSprite");l=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},j,"last");!h.PushUrl||h.PushUrl===h.GitUrl?c.place(document.createTextNode(h.Name+" ("+h.GitUrl+")"),l,"only"):c.place(document.createTextNode(h.Name+" (See the configuration for fetch/push urls)"),
l,"only")}else if(h.Type==="RemoteTrackingBranch"){f=document.createElement("td");j=c.create("div",{style:"margin-left: 10px"},f,"only");l=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},j,"last");c.place(document.createTextNode(h.Name),l,"only");k=c.create("span",null,l,"first");c.addClass(k,"gitImageSprite");c.addClass(k,"git-sprite-branch")}else if(h.Type==="Tag"){f=document.createElement("td");j=c.create("div",{style:"margin-left: 10px"},f,"only");l=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},
j,"last");c.place(document.createTextNode(h.Name),l,"only");k=c.create("span",null,l,"first");c.addClass(k,"gitImageSprite");c.addClass(k,"git-sprite-tag")}return f;case 1:return this.getActionsColumn(h,k)}};return g}();return e});define("text!dijit/templates/TreeNode.html",function(){return'<div class="dijitTreeNode" role="presentation"\n\t><div dojoAttachPoint="rowNode" class="dijitTreeRow" role="presentation" dojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span dojoAttachPoint="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span dojoAttachPoint="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>'});
define("text!dijit/templates/Tree.html",function(){return'<div class="dijitTree dijitTreeContainer" role="tree"\n\tdojoAttachEvent="onkeypress:_onKeyPress">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" dojoAttachPoint="indentDetector"></div>\n</div>'});
define("dijit/tree/TreeStoreModel",["dojo","dijit"],function(b,c){b.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(a){b.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw new Error("dijit.Tree: store must support dojo.data.Identity");if(a.getFeatures()["dojo.data.api.Notification"])this.connects=this.connects.concat([b.connect(a,
"onNew",this,"onNewItem"),b.connect(a,"onDelete",this,"onDeleteItem"),b.connect(a,"onSet",this,"onSetItem")])},destroy:function(){b.forEach(this.connects,b.disconnect)},getRoot:function(a,d){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:b.hitch(this,function(e){if(e.length!=1)throw new Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+e.length+" items, but must return exactly one item");this.root=e[0];a(this.root)}),onError:d})},mayHaveChildren:function(a){return b.some(this.childrenAttrs,
function(d){return this.store.hasAttribute(a,d)},this)},getChildren:function(a,d,e){var g=this.store;if(g.isItemLoaded(a)){for(var j=[],h=0;h<this.childrenAttrs.length;h++){var k=g.getValues(a,this.childrenAttrs[h]);j=j.concat(k)}var f=0;this.deferItemLoadingUntilExpand||b.forEach(j,function(m){g.isItemLoaded(m)||f++});f==0?d(j):b.forEach(j,function(m,r){g.isItemLoaded(m)||g.loadItem({item:m,onItem:function(n){j[r]=n;--f==0&&d(j)},onError:e})})}else{var l=b.hitch(this,arguments.callee);g.loadItem({item:a,
onItem:function(m){l(m,d,e)},onError:e})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,d,e){var g={parent:d,attribute:this.childrenAttrs[0]},j;if(this.newItemIdAttr&&a[this.newItemIdAttr])this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(h){if(h)this.pasteItem(h,null,d,true,e);else(j=this.store.newItem(a,g))&&e!=undefined&&this.pasteItem(j,d,d,false,e)}});else(j=this.store.newItem(a,g))&&e!=undefined&&this.pasteItem(j,d,d,false,e)},pasteItem:function(a,d,e,g,j){var h=this.store,k=this.childrenAttrs[0];d&&b.forEach(this.childrenAttrs,function(l){if(h.containsValue(d,l,a)){if(!g){var m=b.filter(h.getValues(d,l),function(r){return r!=a});h.setValues(d,l,m)}k=l}});if(e)if(typeof j=="number"){var f=h.getValues(e,k).slice();
f.splice(j,0,a);h.setValues(e,k,f)}else h.setValues(e,k,h.getValues(e,k).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,d){d&&this.getChildren(d.item,b.hitch(this,function(e){this.onChildrenChange(d.item,e)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,d){b.indexOf(this.childrenAttrs,d)!=-1?this.getChildren(a,b.hitch(this,function(e){this.onChildrenChange(a,e)})):this.onChange(a)}});return c.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(b,c){b.declare("dijit.tree.ForestStoreModel",c.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(a){this.root={store:this,root:true,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(a,d,e){if(a===this.root)this.root.children?d(this.root.children):this.store.fetch({query:this.query,
onComplete:b.hitch(this,function(g){this.root.children=g;d(g)}),onError:e});else this.inherited(arguments)},isItem:function(a){return a===this.root?true:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var d=a.scope?a.scope:b.global;a.onItem&&a.onItem.call(d,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
newItem:function(a,d){if(d===this.root){this.onNewRootItem(a);return this.store.newItem(a)}else return this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,d,e,g,j){if(d===this.root)g||this.onLeaveRoot(a);c.tree.TreeStoreModel.prototype.pasteItem.call(this,a,d===this.root?null:d,e===this.root?null:e,g,j);e===this.root&&this.onAddToRoot(a)},onAddToRoot:function(a){console.log(this,": item ",a," added to root")},onLeaveRoot:function(a){console.log(this,": item ",a," removed from root")},
_requeryTop:function(){var a=this.root.children||[];this.store.fetch({query:this.query,onComplete:b.hitch(this,function(d){this.root.children=d;if(a.length!=d.length||b.some(a,function(e,g){return d[g]!=e}))this.onChildrenChange(this.root,d)})})},onNewItem:function(){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){b.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(){this._requeryTop();this.inherited(arguments)}});return c.tree.ForestStoreModel});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(c,a){this.node=b.byId(c);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&b.byId(a.dropParent);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");a&&a._skipStartup||this.startup();this.events=[b.connect(this.node,"onmouseover",this,"onMouseOver"),b.connect(this.node,
"onmouseout",this,"onMouseOut"),b.connect(this.node,"ondragstart",this,"onSelectStart"),b.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(c){return this.map[c]},setItem:function(c,a){this.map[c]=a},delItem:function(c){delete this.map[c]},forInItems:function(c,a){a=a||b.global;var d=this.map,e=b.dnd._empty;for(var g in d)g in e||c.call(a,d[g],g,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return b.query("> .dojoDndItem",this.parent)},
sync:function(){var c={};this.getAllNodes().forEach(function(a){if(a.id){var d=this.getItem(a.id);if(d){c[a.id]=d;return}}else a.id=b.dnd.getUniqueId();d=a.getAttribute("dndType");var e=a.getAttribute("dndData");c[a.id]={data:e||a.innerHTML,type:d?d.split(/\s*,\s*/):["text"]}},this);this.map=c;return this},insertNodes:function(c,a,d){if(this.parent.firstChild)if(a){if(!d)d=this.parent.firstChild}else{if(d)d=d.nextSibling}else d=null;if(d)for(a=0;a<c.length;++a){var e=this._normalizedCreator(c[a]);
this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.insertBefore(e.node,d)}else for(a=0;a<c.length;++a){e=this._normalizedCreator(c[a]);this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.appendChild(e.node)}return this},destroy:function(){b.forEach(this.events,b.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(c,a){c._skipStartup=true;return new b.dnd.Container(a,c)},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()==
"table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length)this.parent=c[0]}}this.defaultCreator=b.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(c){for(var a=c.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(d){a=null}}if(!a){this._changeState("Container","Over");this.onOverEvent()}a=this._getChildByEvent(c);if(this.current!=a){this.current&&this._removeItemClass(this.current,"Over");a&&this._addItemClass(a,"Over");this.current=a}},onMouseOut:function(c){for(c=
c.relatedTarget;c;){if(c==this.node)return;try{c=c.parentNode}catch(a){c=null}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null}this._changeState("Container","");this.onOutEvent()},onSelectStart:function(c){if(!this.skipForm||!b.dnd.isFormElement(c))b.stopEvent(c)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(c,a){var d="dojoDnd"+c;c=c.toLowerCase()+"State";b.replaceClass(this.node,d+a,d+this[c]);this[c]=a},_addItemClass:function(c,a){b.addClass(c,
"dojoDndItem"+a)},_removeItemClass:function(c,a){b.removeClass(c,"dojoDndItem"+a)},_getChildByEvent:function(c){if(c=c.target)for(var a=c.parentNode;a;c=a,a=c.parentNode)if(a==this.parent&&b.hasClass(c,"dojoDndItem"))return c;return null},_normalizedCreator:function(c,a){c=(this.creator||this.defaultCreator).call(this,c,a);if(!b.isArray(c.type))c.type=["text"];if(!c.node.id)c.node.id=b.dnd.getUniqueId();b.addClass(c.node,"dojoDndItem");return c}});b.dnd._createNode=function(c){if(!c)return b.dnd._createSpan;
return function(a){return b.create(c,{innerHTML:a})}};b.dnd._createTrTd=function(c){var a=b.create("tr");b.create("td",{innerHTML:c},a);return a};b.dnd._createSpan=function(c){return b.create("span",{innerHTML:c})};b.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};b.dnd._defaultCreator=function(c){c=c.tagName.toLowerCase();var a=c=="tbody"||c=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[c]);return function(d,e){var g=d&&b.isObject(d),j;if(g&&d.tagName&&d.nodeType&&
d.getAttribute){j=d.getAttribute("dndData")||d.innerHTML;g=(g=d.getAttribute("dndType"))?g.split(/\s*,\s*/):["text"];d=d}else{j=g&&d.data?d.data:d;g=g&&d.type?d.type:["text"];d=(e=="avatar"?b.dnd._createSpan:a)(String(j))}if(!d.id)d.id=b.dnd.getUniqueId();return{node:d,data:j,type:g}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,c){b.getObject("tree",true,b);c.tree._compareNodes=function(a,d){if(a===d)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-d.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(d)&2?1:-1;else if(document.createRange){var e=doc.createRange();e.setStartBefore(a);a=doc.createRange();a.setStartBefore(d);return e.compareBoundaryPoints(e.END_TO_END,
a)}else throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");};b.declare("dijit.tree._dndContainer",null,{constructor:function(a,d){this.tree=a;this.node=a.domNode;b.mixin(this,d);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");this.events=[b.connect(this.node,"onmouseenter",this,"onOverEvent"),b.connect(this.node,"onmouseleave",this,"onOutEvent"),b.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
b.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),b.connect(this.node,"ondragstart",b,"stopEvent"),b.connect(this.node,"onselectstart",b,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){b.forEach(this.events,b.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,d){var e="dojoDnd"+a;a=a.toLowerCase()+"State";b.replaceClass(this.node,e+d,e+this[a]);
this[a]=d},_addItemClass:function(a,d){b.addClass(a,"dojoDndItem"+d)},_removeItemClass:function(a,d){b.removeClass(a,"dojoDndItem"+d)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}});return c.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(b,c){b.declare("dijit.tree._dndSelector",c.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;c.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(b.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),b.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),b.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"))},singular:false,
getSelectedTreeNodes:function(){var a=[],d=this.selection;for(var e in d)a.push(d[e]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,d){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(d)this.anchor=a;return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},
setSelection:function(a){var d=this.getSelectedTreeNodes();b.forEach(this._setDifference(d,a),b.hitch(this,function(e){e.setSelected(false);this.anchor==e&&delete this.anchor;delete this.selection[e.id]}));b.forEach(this._setDifference(a,d),b.hitch(this,function(e){e.setSelected(true);this.selection[e.id]=e}));this._updateSelectionProperties()},_setDifference:function(a,d){b.forEach(d,function(e){e.__exclude__=true});a=b.filter(a,function(e){return!e.__exclude__});b.forEach(d,function(e){delete e.__exclude__});
return a},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),d=[],e=[];b.forEach(a,function(g){e.push(g);d.push(g.getTreePath())});a=b.map(e,function(g){return g.item});this.tree._set("paths",d);this.tree._set("path",d[0]||[]);this.tree._set("selectedNodes",e);this.tree._set("selectedNode",e[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(!(!this.current||this.tree.isExpandoNode(a.target,this.current)))if(a.button!=
b.mouseButtons.RIGHT){b.stopEvent(a);var d=this.current,e=b.isCopyKey(a),g=d.id;if(!this.singular&&!a.shiftKey&&this.selection[g])this._doDeselect=true;else{this._doDeselect=false;this.userSelect(d,e,a.shiftKey)}}},onMouseUp:function(a){if(this._doDeselect){this._doDeselect=false;this.userSelect(this.current,b.isCopyKey(a),a.shiftKey)}},onMouseMove:function(){this._doDeselect=false},userSelect:function(a,d,e){if(this.singular)if(this.anchor==a&&d)this.selectNone();else{this.setSelection([a]);this.anchor=
a}else if(e&&this.anchor){e=this.anchor;if(c.tree._compareNodes(this.anchor.rowNode,a.rowNode)<0){d=e;a=a}else{d=a;a=e}for(nodes=[];d!=a;){nodes.push(d);d=this.tree._getNextNode(d)}nodes.push(a);this.setSelection(nodes)}else if(this.selection[a.id]&&d)this.removeTreeNode(a);else if(d)this.addTreeNode(a,true);else{this.setSelection([a]);this.anchor=a}},forInSelectedItems:function(a,d){d=d||b.global;for(var e in this.selection)a.call(d,this.getItem(e),e,this)}});return c.tree._dndSelector});
define("dijit/Tree",["dojo","dijit","text!dijit/templates/TreeNode.html","text!dijit/templates/Tree.html","dojo/fx","dojo/DeferredList","dijit/_Widget","dijit/_Templated","dijit/_Container","dijit/_Contained","dijit/_CssStateMixin","dojo/cookie","dijit/tree/TreeStoreModel","dijit/tree/ForestStoreModel","dijit/tree/_dndSelector"],function(b,c){b.declare("dijit._TreeNode",[c._Widget,c._Templated,c._Container,c._Contained,c._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,
state:"UNCHECKED",templateString:b.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:b.delegate(c._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&c.setWaiState(this.labelNode,"expanded",this.isExpanded);
this.setSelected(false)},_setIndentAttr:function(a){var d=Math.max(a,0)*this.tree._nodePixelIndent+"px";b.style(this.domNode,"backgroundPosition",d+" 0px");b.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",d);b.forEach(this.getChildren(),function(e){e.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(true)},unmarkProcessing:function(){this._setExpando(false)},_updateItemClasses:function(a){var d=this.tree,e=d.model;if(d._v10Compat&&
a===e.root)a=null;this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,d,e){var g="_"+d+"Class";d=d+"Node";var j=this[g];this[g]=this.tree["get"+e+"Class"](a,this.isExpanded);b.replaceClass(this[d],this[g]||"",j||"");b.style(this[d],this.tree["get"+e+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?b.addClass(this.domNode,"dijitTreeIsRoot"):
b.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var d=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],e=["*","-","+","*"];a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,d[a],d);this.expandoNodeText.innerHTML=e[a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;c.setWaiState(this.labelNode,"expanded",
"true");if(this.tree.showRoot||this!==this.tree.rootNode)c.setWaiRole(this.containerNode,"group");b.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&c.setWaiState(this.tree.domNode,"expanded","true");var a,d=b.fx.wipeIn({node:this.containerNode,duration:c.defaultDuration,onEnd:function(){a.callback(true)}});a=this._expandDeferred=new b.Deferred(function(){d.stop()});d.play();return a},collapse:function(){if(this.isExpanded){if(this._expandDeferred){this._expandDeferred.cancel();
delete this._expandDeferred}this.isExpanded=false;c.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&c.setWaiState(this.tree.domNode,"expanded","false");b.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=b.fx.wipeOut({node:this.containerNode,duration:c.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var d=this.tree,e=d.model,g=[];b.forEach(this.getChildren(),
function(j){c._Container.prototype.removeChild.call(this,j)},this);this.state="LOADED";if(a&&a.length>0){this.isExpandable=true;b.forEach(a,function(j){var h=e.getIdentity(j),k=d._itemNodesMap[h],f;if(k)for(var l=0;l<k.length;l++)if(k[l]&&!k[l].getParent()){f=k[l];f.set("indent",this.indent+1);break}if(!f){f=this.tree._createTreeNode({item:j,tree:d,isExpandable:e.mayHaveChildren(j),label:d.getLabel(j),tooltip:d.getTooltip(j),dir:d.dir,lang:d.lang,indent:this.indent+1});if(k)k.push(f);else d._itemNodesMap[h]=
[f]}this.addChild(f);if(this.tree.autoExpand||this.tree._state(j))g.push(d._expandNode(f))},this);b.forEach(this.getChildren(),function(j){j._updateLayout()})}else this.isExpandable=false;this._setExpando&&this._setExpando(false);this._updateItemClasses(this.item);if(this==d.rootNode)if(a=this.tree.showRoot?this:this.getChildren()[0]){a.setFocusable(true);d.lastFocused=a}else d.domNode.setAttribute("tabIndex","0");return new b.DeferredList(g)},getTreePath:function(){for(var a=this,d=[];a&&a!==this.tree.rootNode;){d.unshift(a.item);
a=a.getParent()}d.unshift(this.tree.rootNode.item);return d},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(){this.inherited(arguments);var a=this.getChildren();if(a.length==0){this.isExpandable=false;this.collapse()}b.forEach(a,function(d){d._updateLayout()})},makeExpandable:function(){this.isExpandable=true;this._setExpando(false)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},setSelected:function(a){c.setWaiState(this.labelNode,"selected",a);
b.toggleClass(this.rowNode,"dijitTreeRowSelected",a)},setFocusable:function(a){this.labelNode.setAttribute("tabIndex",a?"0":"-1")},_onClick:function(a){this.tree._onClick(this,a)},_onDblClick:function(a){this.tree._onDblClick(this,a)},_onMouseEnter:function(a){this.tree._onNodeMouseEnter(this,a)},_onMouseLeave:function(a){this.tree._onNodeMouseLeave(this,a)}});b.declare("dijit.Tree",[c._Widget,c._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],
path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:b.cache("dijit","templates/Tree.html"),persist:true,autoExpand:false,dndController:"dijit.tree._dndSelector",dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,
d){b.publish(this.id,[b.mixin({tree:this,event:a},d||{})])},postMixInProperties:function(){this.tree=this;if(this.autoExpand)this.persist=false;this._itemNodesMap={};if(!this.cookieName)this.cookieName=this.id+"SaveStateCookie";this._loadDeferred=new b.Deferred;this.inherited(arguments)},postCreate:function(){this._initState();this.model||this._store2model();this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,
"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(b.isString(this.dndController))this.dndController=b.getObject(this.dndController);for(var a={},d=0;d<this.dndParams.length;d++)if(this[this.dndParams[d]])a[this.dndParams[d]]=this[this.dndParams[d]];this.dndController=new this.dndController(this,a)}},_store2model:function(){this._v10Compat=true;b.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+
"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren)a.mayHaveChildren=b.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=b.hitch(this,function(d,e,g){this.getItemChildren(this._v10Compat&&d===this.model.root?null:d,e,g)});this.model=new c.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(b.hitch(this,function(a){var d=this.rootNode=this.tree._createTreeNode({item:a,
tree:this,isExpandable:true,label:this.label||this.getLabel(a),indent:this.showRoot?0:-1});if(!this.showRoot){d.rowNode.style.display="none";c.setWaiRole(this.domNode,"presentation");c.setWaiRole(d.labelNode,"presentation");c.setWaiRole(d.containerNode,"tree")}this.domNode.appendChild(d.domNode);a=this.model.getIdentity(a);if(this._itemNodesMap[a])this._itemNodesMap[a].push(d);else this._itemNodesMap[a]=[d];d._updateLayout();this._expandNode(d).addCallback(b.hitch(this,function(){this._loadDeferred.callback(true);
this.onLoad()}))}),function(a){console.error(this,": error loading root: ",a)})},getNodesByItem:function(a){if(!a)return[];return[].concat(this._itemNodesMap[b.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var d=this;this._loadDeferred.addCallback(b.hitch(this,function(){var e=b.map(a,function(j){return!j||b.isString(j)?j:d.model.getIdentity(j)}),g=[];b.forEach(e,function(j){g=g.concat(d._itemNodesMap[j]||
[])});this.set("selectedNodes",g)}))},_setPathAttr:function(a){return a.length?this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function d(j,h,k){var f=j.shift(),l=b.filter(h,function(m){return m.getIdentity()==f})[0];if(l)j.length?g._expandNode(l).addCallback(function(){d(j,l.getChildren(),k)}):k.callback(l);else k.errback("Could not expand path at "+f)}function e(j){g.set("selectedNodes",b.map(b.filter(j,function(h){return h[0]}),function(h){return h[1]}))}var g=this;return(new b.DeferredList(b.map(a,
function(j){var h=new b.Deferred;j=b.map(j,function(k){return b.isString(k)?k:g.model.getIdentity(k)});j.length?g._loadDeferred.addCallback(function(){d(j,[g.rootNode],h)}):h.errback("Empty path");return h}))).addCallback(e)},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(b.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},
getIconClass:function(a,d){return!a||this.model.mayHaveChildren(a)?d?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a){if(!a.altKey){var d=b.keys,e=c.getEnclosingWidget(a.target);if(e){var g=a.charOrCode;if(typeof g=="string"&&g!=" "){if(!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey){this._onLetterKeyNav({node:e,
key:g.toLowerCase()});b.stopEvent(a)}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}var j=this._keyHandlerMap;if(!j){j={};j[d.ENTER]="_onEnterKey";j[d.SPACE]=j[" "]="_onEnterKey";j[this.isLeftToRight()?d.LEFT_ARROW:d.RIGHT_ARROW]="_onLeftArrow";j[this.isLeftToRight()?d.RIGHT_ARROW:d.LEFT_ARROW]="_onRightArrow";j[d.UP_ARROW]="_onUpArrow";j[d.DOWN_ARROW]="_onDownArrow";j[d.HOME]="_onHomeKey";j[d.END]="_onEndKey";this._keyHandlerMap=j}if(this._keyHandlerMap[g]){this[this._keyHandlerMap[g]]({node:e,
item:e.item,evt:a});b.stopEvent(a)}}}}},_onEnterKey:function(a){this._publish("execute",{item:a.item,node:a.node});this.dndController.userSelect(a.node,b.isCopyKey(a.evt),a.evt.shiftKey);this.onClick(a.item,a.node,a.evt)},_onDownArrow:function(a){(a=this._getNextNode(a.node))&&a.isTreeNode&&this.focusNode(a)},_onUpArrow:function(a){a=a.node;var d=a.getPreviousSibling();if(d)for(a=d;a.isExpandable&&a.isExpanded&&a.hasChildren();){a=a.getChildren();a=a[a.length-1]}else{d=a.getParent();!this.showRoot&&
d===this.rootNode||(a=d)}a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=a.node;if(a.isExpandable&&!a.isExpanded)this._expandNode(a);else if(a.hasChildren())(a=a.getChildren()[0])&&a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;if(a.isExpandable&&a.isExpanded)this._collapseNode(a);else(a=a.getParent())&&a.isTreeNode&&!(!this.showRoot&&a===this.rootNode)&&this.focusNode(a)},_onHomeKey:function(){var a=this._getRootOrFirstNode();a&&this.focusNode(a)},_onEndKey:function(){for(var a=
this.rootNode;a.isExpanded;){a=a.getChildren();a=a[a.length-1]}a&&a.isTreeNode&&this.focusNode(a)},multiCharSearchDuration:250,_onLetterKeyNav:function(a){var d=this._curSearch;if(d){d.pattern+=a.key;clearTimeout(d.timer)}else d=this._curSearch={pattern:a.key,startNode:a.node};var e=this;d.timer=setTimeout(function(){delete e._curSearch},this.multiCharSearchDuration);a=d.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==d.startNode&&a.label.toLowerCase().substr(0,d.pattern.length)!=
d.pattern);a&&a.isTreeNode&&a!==d.startNode&&this.focusNode(a)},isExpandoNode:function(a,d){return b.isDescendant(a,d.expandoNode)},_onClick:function(a,d){var e=this.isExpandoNode(d.target,a);if(this.openOnClick&&a.isExpandable||e)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:d});this.onClick(a.item,a,d);this.focusNode(a)}b.stopEvent(d)},_onDblClick:function(a,d){var e=d.target;e=e==a.expandoNode||e==a.expandoNodeText;if(this.openOnDblClick&&a.isExpandable||
e)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:d});this.onDblClick(a.item,a,d);this.focusNode(a)}b.stopEvent(d)},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];else{for(;a&&a.isTreeNode;){var d=a.getNextSibling();
if(d)return d;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;if(a.isExpandable)if(a.state!="LOADING"){a.collapse();this.onClose(a.item,a);if(a.item){this._state(a.item,false);this._saveState()}}},_expandNode:function(a,d){if(a._expandNodeDeferred&&!d)return a._expandNodeDeferred;d=this.model;var e=a.item,g=this;switch(a.state){case "UNCHECKED":a.markProcessing();
var j=a._expandNodeDeferred=new b.Deferred;d.getChildren(e,function(h){a.unmarkProcessing();h=a.setChildItems(h);var k=g._expandNode(a,true);h.addCallback(function(){k.addCallback(function(){j.callback()})})},function(h){console.error(g,": error loading root children: ",h)});break;default:j=a._expandNodeDeferred=a.expand();this.onOpen(a.item,a);if(e){this._state(e,true);this._saveState()}}return j},focusNode:function(a){c.focus(a.labelNode)},_onNodeFocus:function(a){if(a&&a!=this.lastFocused){this.lastFocused&&
!this.lastFocused._destroyed&&this.lastFocused.setFocusable(false);a.setFocusable(true);this.lastFocused=a}},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(a){var d=this._itemNodesMap[this.model.getIdentity(a)];if(d){var e=this.getLabel(a),g=this.getTooltip(a);b.forEach(d,function(j){j.set({item:a,label:e,tooltip:g});j._updateItemClasses(a)})}},_onItemChildrenChange:function(a,d){(a=this._itemNodesMap[this.model.getIdentity(a)])&&b.forEach(a,function(e){e.setChildItems(d)})},
_onItemDelete:function(a){a=this.model.getIdentity(a);var d=this._itemNodesMap[a];if(d){b.forEach(d,function(e){this.dndController.removeTreeNode(e);var g=e.getParent();g&&g.removeChild(e);e.destroyRecursive()},this);delete this._itemNodesMap[a]}},_initState:function(){if(this.persist){var a=b.cookie(this.cookieName);this._openedItemIds={};a&&b.forEach(a.split(","),function(d){this._openedItemIds[d]=true},this)}},_state:function(a,d){if(!this.persist)return false;var e=this.model.getIdentity(a);if(arguments.length===
1)return this._openedItemIds[e];if(d)this._openedItemIds[e]=true;else delete this._openedItemIds[e]},_saveState:function(){if(this.persist){var a=[];for(var d in this._openedItemIds)a.push(d);b.cookie(this.cookieName,a.join(","),{expires:365})}},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!b.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},
destroyRecursive:function(){this.destroy()},resize:function(a){a&&b.marginBox(this.domNode,a);this._nodePixelIndent=b._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode)this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new c._TreeNode(a)}});return c.Tree});define("text!orion/widgets/templates/_ExplorerTreeNode.html",function(){return'<div class="dijitTreeNode" waiRole="presentation">\n\t<div dojoAttachPoint="rowNode" class="dijitTreeRow"\n\t\twaiRole="presentation"\n\t\tdojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick">\n\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" waiRole="presentation" />\n\t\t<span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" waiRole="presentation"></span>\n\t\t<span dojoAttachPoint="contentNode" class="dijitTreeContent" waiRole="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" waiRole="presentation" />\n\t\t\t<!-- labelNode\'s innerText will be label string --\>\n\t\t\t<span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t\t<a href="" dojoAttachPoint="followLink"><img src="${_blankGif}" alt="" dojoAttachPoint="followNode" class="dijitIcon dijitTreeIcon follow" waiRole="link"></a>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer"\n\t\twaiRole="presentation" style="display: none;">\n\t</div>\n</div>'});
define("orion/widgets/ExplorerTree",["dojo","dijit","dijit/Tree","text!orion/widgets/templates/_ExplorerTreeNode.html"],function(b,c){b.declare("orion.widgets._ExplorerTreeNode",[c._TreeNode],{templateString:b.cache("orion","widgets/templates/_ExplorerTreeNode.html"),_updateItemClasses:function(a){this.inherited(arguments);this._applyClassAndStyle(a,"follow","Follow");typeof this.tree.updateFollowLink==="function"&&this.tree.updateFollowLink(a,this.followLink)}});b.declare("orion.widgets.ExplorerTree",
[c.Tree],{selectedNodes:{},postCreate:function(){b.connect(this,"onMouseDown",this._eatSelectionEvent);b.connect(this.domNode,"onselectstart",this._eatSelectionEvent);this.inherited(arguments)},getFollowClass:function(){},getFollowStyle:function(){},updateFollowLink:function(){},onFollowClick:function(){},getSelectedItems:function(){var a=[];this._forEachSelectedNode(function(d,e){a.push(e.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(d,e){a.push(e)});
return a},_forEachSelectedNode:function(a){var d=this.selectedNodes;for(var e in d)d.hasOwnProperty(e)&&a(e,d[e])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){if(b.isCopyKey(a)||a.shiftKey)b.stopEvent(a)},_onClick:function(a,d){var e=d.target,g=e===a.expandoNode||e===a.expandoNodeText;e=e===a.followNode;if(b.isCopyKey(d)){this._toggleSelectNode(a);this.focusNode(a)}else if(d.shiftKey){if(this.selectedNode){this._selectRange(this.selectedNode,
a);this.focusNode(a)}}else{if(e)this.onFollowClick(a.item,a,d);else if(this.openOnClick&&a.isExpandable||g)a.isExpandable&&this._onExpandoClick({node:a});else{this._publish("execute",{item:a.item,node:a,evt:d});this.onClick(a.item,a,d);this.focusNode(a)}!g&&!e&&this._selectNode(a)}e||b.stopEvent(d)},_onItemDelete:function(a){var d=this._itemNodesMap[this.model.getIdentity(a)];if(d){var e=this;b.forEach(d,function(g){e._removeFromSelection(g)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var d=a.getParent();d&&!(d.isExpandable&&d.isExpanded);){a=d;d=d.getParent()}return a},_toggleSelectNode:function(a){if(this.selectedNodes[a.get("id")]){a.setSelected(false);this._removeFromSelection(a)}else{a.setSelected(true);this._addToSelection(a)}},_addToSelection:function(a){this.selectedNodes[a.get("id")]=a},_removeFromSelection:function(a){delete this.selectedNodes[a.get("id")]},_selectRange:function(a,d){function e(h,k){var f=[];h=h;do{f.push(h);h=g._getNextNode(h)}while(h&&h!==k);if(h===
k){f.push(k);return f}return null}a=this._getVisibleAncestor(a);d=this._getVisibleAncestor(d);if(a&&d)if(a===d)this._selectNode(a);else{var g=this,j=e(a,d);if(j)this._selectNodes(j.reverse(),true);else(j=e(d,a))?this._selectNodes(j,true):console.debug("Warning: couldn't select range from "+a.label+" to "+d.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(g,j){j._destroyed||j.setSelected(false)});this.selectedNodes={};if(a)for(var d=
0;d<a.length;d++){var e=a[d];e.setSelected(true);this._addToSelection(e);this.selectedNode=e}}})});define("text!orion/widgets/templates/DirectoryPrompterDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row" dojoAttachPoint="messageCell">\n\t\t\t\t\t<div style="display: table-cell;"><div style="width: 25em; padding-bottom: 5px;">${message}</div></div>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseDirectoryExplorerTree" class="explorerTreeClass" id="${id}_browseDirectoryExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div> \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="directoryBrowserButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <!-- end table --\>\n\t</div> <!-- content pane --\>\n</div>'});
define("orion/widgets/DirectoryPrompterDialog",["dojo","dijit","orion/util","dijit/Dialog","dijit/form/Button","orion/widgets/ExplorerTree","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/DirectoryPrompterDialog.html"],function(b,c,a){b.declare("orion.widgets.DirectoryPrompterDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/DirectoryPrompterDialog.html"),constructor:function(){this.inherited(arguments);
this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Choose a Folder";this.buttonOk="OK";this.message=this.options.message||""},postCreate:function(){this.inherited(arguments);this.loadFolderList("");this.message||b.style(this.messageCell,{display:"none"})},loadFolderList:function(d){d=a.makeRelative(d);this.treeRoot.Path=d;this.options.fileClient.loadWorkspace(d).then(b.hitch(this,function(e){for(var g in e)this.treeRoot[g]=e[g];
a.processNavigatorParent(this.treeRoot,e.Children);this.createTree()}))},createTree:function(){var d=new orion.widgets.DirectoryTreeModel(this.options.serviceRegistry,this.treeRoot,this.options.fileClient);this.treeWidget=new orion.widgets.ExplorerTree({id:"treeWidget",style:"width:100%; height:100%",model:d,showRoot:false,persist:true,openOnClick:false,getLabel:function(e){return e.Name},getIconClass:function(){return"folderItem"}});this.treeWidget.startup();b.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},
execute:function(){var d=this.treeWidget.getSelectedItems();this.onHide();this.options.func(d[0])}});orion.widgets.DirectoryTreeModel=function(){function d(e,g,j){this.registry=e;this.root=g;this.fileClient=j}d.prototype={destroy:function(){},getRoot:function(e){e(this.root)},mayHaveChildren:function(){return true},getChildren:function(e,g){if(e.children)g(e.children);else if(e.Directory!==undefined&&e.Directory===false)g([]);else e.Location?this.fileClient.fetchChildren(e.ChildrenLocation).then(b.hitch(this,
function(j){for(var h=[],k=0;k<j.length;k++)j[k].Directory&&h.push(j[k]);a.processNavigatorParent(e,h);g(h)})):g([])},getIdentity:function(e){return e.Name?e.Location:"ROOT"},getLabel:function(e){return e.Name},onChildrenChange:function(){}};return d}()});define("text!orion/git/widgets/templates/CloneGitRepositoryDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t\t\t<span dojoAttachPoint="Basic">\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<label dojoAttachPoint="gitUrlLabel" for="${id}_gitUrl" style="padding-right: 10">${gitUrlLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: right; float: right">\n\t\t\t\t\t\t<input dojoAttachPoint="gitUrl" id="${id}_gitUrl" style="display: inline-block; width: 100%;" value="">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; clear: both; text-align: right;">\n\t\t\t\t\t\t<a dojoAttachPoint="advancedLink" href="javascript:">Choose target location</a>\n\t\t\t\t\t\t<a dojoAttachPoint="advancedLinkHide" href="javascript:" style="display: none">Default target location</a>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<span dojoAttachPoint="Advanced" style="display: none;">\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<input dojoAttachPoint="isNewProject" type="radio" name="${id}_newExisting" checked value="new"/>\n\t\t\t\t\t\t<label dojoAttachPoint="gitNameLabel" for="${id}_gitName" style="padding-right: 10">${gitNameLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: right; float: right">\n\t\t\t\t\t\t<input dojoAttachPoint="gitName" id="${id}_gitName" style="display: inline-block; width: 100%;" value="">\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<input dojoAttachPoint="isExistingProject" type="radio" name="${id}_newExisting" value="existing"/>\n\t\t\t\t\t\t<label dojoAttachPoint="gitPathLabel" for="${id}_gitPath" style="padding-right: 10">${gitPathLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: left; float: right;">\n\t\t\t\t\t\t\t<input dojoAttachPoint="gitPath" id="${id}_gitPath" type="hidden" value="">\n\t\t\t\t\t\t\t<div style="width: 30em; float: left" float="left" dojoAttachPoint="shownGitPath"></div>\n\t\t\t\t\t\t\t<div style="width: 10em; float: right; text-align: right"><a dojoAttachPoint="changeGitPath" href="javascript:">Change...</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<div style="display: block; padding: 5; clear: both; text-align: right">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/CloneGitRepositoryDialog",["require","dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","orion/widgets/DirectoryPrompterDialog","text!orion/git/widgets/templates/CloneGitRepositoryDialog.html"],function(b,c,a){c.declare("orion.git.widgets.CloneGitRepositoryDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:c.cache("orion","git/widgets/templates/CloneGitRepositoryDialog.html"),constructor:function(){this.inherited(arguments);
this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title?this.options.title:"Clone Git Repository";this.gitUrlLabelText="Repository URL:";this.gitPathLabelText="Existing directory:";this.gitNameLabelText="New folder:";this.advancedShown=false},postCreate:function(){this.inherited(arguments);if(this.options.advancedOnly){this.Basic.style.display="none";this.Advanced.style.display="";this.gitName.focus()}c.connect(this.changeGitPath,"onclick",
null,c.hitch(this,this.openDirectoryPickerDialog));c.connect(this.isExistingProject,"onchange",null,c.hitch(this,this.showExistingFolder));c.connect(this.gitName,"onfocus",null,c.hitch(this,this.showNewProject));c.connect(this.advancedLink,"onclick",null,c.hitch(this,this.showAdvanced));c.connect(this.advancedLinkHide,"onclick",null,c.hitch(this,this.hideAdvanced))},execute:function(){this.options.func(this.options.advancedOnly?undefined:this.gitUrl.value,this.advancedShown&&this.isNewProject.checked?
undefined:this.gitPath.value,this.advancedShown&&!this.isNewProject.checked?undefined:this.gitName.value)},showAdvanced:function(){this.advancedShown=true;this.Advanced.style.display="";this.advancedLink.style.display="none";this.advancedLinkHide.style.display=""},hideAdvanced:function(){this.advancedShown=false;this.Advanced.style.display="none";this.advancedLink.style.display="";this.advancedLinkHide.style.display="none"},showExistingFolder:function(){this.isExistingProject.checked?this.openDirectoryPickerDialog():
this.gitName.focus()},showNewProject:function(){this.isNewProject.checked=true},openDirectoryPickerDialog:function(){this.isExistingProject.checked=true;var d=new orion.widgets.DirectoryPrompterDialog({title:"Choose a Folder",serviceRegistry:this.options.serviceRegistry,fileClient:this.options.fileClient,func:c.hitch(this,function(e){if(e&&e.Location){this.gitPath.value=e.Location;this.shownGitPath.innerHTML="<a href='"+b.toUrl("navigate/table.html")+"#"+e.ChildrenLocation+"'>"+e.Name+"</a>";for(e=
e;e.parent&&!e.parent.Projects;){this.shownGitPath.innerHTML="<a href='"+b.toUrl("navigate/table.html")+"#"+e.parent.ChildrenLocation+"'>"+e.parent.Name+"</a>/"+this.shownGitPath.innerHTML;e=e.parent}}})});d.startup();d.show()}})});define("text!orion/git/widgets/templates/InitGitRepositoryDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitTargetLabel" for="${id}_gitTarget" style="padding-right: 10">${gitTargetLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitTarget" id="${id}_gitTarget" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t<br><i>This is to be replaced with directory picker dialog</i>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/InitGitRepositoryDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/InitGitRepositoryDialog.html"],function(b,c){b.declare("orion.git.widgets.InitGitRepositoryDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/InitGitRepositoryDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title="Init Git Repository";this.gitTargetLabelText="Target:"},execute:function(){this.options.func(this.gitTarget.value)}})});define("text!orion/git/widgets/templates/AddRemoteDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitRemoteLabel" for="${id}_gitRemote" style="padding-right: 10">${gitRemoteLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitRemote" id="${id}_gitRemote" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitRemoteURILabel" for="${id}_gitRemoteURI" style="padding-right: 10">${gitRemoteURILabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitRemoteURI" id="${id}_gitRemoteURI" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/AddRemoteDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/AddRemoteDialog.html"],function(b,c){b.declare("orion.git.widgets.AddRemoteDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/AddRemoteDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title="Add Remote";this.gitRemoteLabelText="Remote Name:";this.gitRemoteURILabelText="Remote URI:"},execute:function(){this.options.func(this.gitRemote.value,this.gitRemoteURI.value)}})});define("text!orion/git/widgets/templates/GitCredentialsDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: none; padding-top: 10px; padding-bottom: 10px;" dojoAttachPoint="gitCredentialsLabel">Provide credentials for: <b dojoAttachPoint="url"></b></div>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitSshUsernameRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitSshUsernameLabel" for="${id}_gitSshUsername" style="padding-right: 10">${gitSshUsernameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="gitSshUsername" id="${id}_gitSshUsername" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitSshPasswordRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="isSshPassword" type="radio" name="${id}_isSshPassword" checked value="password" style="width: 15px;"/>\n\t\t\t\t\t<label dojoAttachPoint="gitSshPasswordLabel" for="${id}_gitSshPassword" style="padding-right: 10">${gitSshPasswordLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="gitSshPassword" id="${id}_gitSshPassword" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPrivateKeyRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="isPrivateKey" type="radio" name="${id}_isSshPassword" value="privateKey" style="width: 15px;"/>\n\t\t\t\t\t<label dojoAttachPoint="gitPrivateKeyLabel" for="${id}_gitPrivateKey" style="padding-right: 10">${gitPrivateKeyLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<textarea dojoAttachPoint="gitPrivateKey" id="${id}_gitPrivateKey" style="display: inline-block; width: 98%;" value=""></textarea>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPassphraseRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t&nbsp;\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitPassphraseLabel" for="${id}_gitPassphrase">${gitPassphraseLabelText}</label>\n\t\t\t\t</div>\n\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPassphraseRow_1">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t&nbsp;\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="gitPassphrase" id="${id}_gitPassphrase" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="okButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">Ok\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/git/widgets/GitCredentialsDialog",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/GitCredentialsDialog.html"],function(b,c){b.declare("orion.git.widgets.GitCredentialsDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/GitCredentialsDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=this.options.title||"Git Credentials";this.gitUrlLabelText="Repository URL:";this.gitSshUsernameLabelText="Username:";this.gitSshPasswordLabelText="Ssh password:";this.gitPrivateKeyLabelText="Private key:";this.gitPassphraseLabelText="Passphrase (optional):";if(!this.options.username&&!this.options.password&&!this.options.privatekey&&!this.options.passphrase){this.options.username=true;this.options.password=true;this.options.privatekey=true;this.options.passphrase=true}if(this.options.serviceRegistry){var a=
this;this.options.serviceRegistry.getService("orion.net.ssh").then(function(d){a._sshService=d})}},postCreate:function(){this.inherited(arguments);var a=this;this.options.username||b.style(this.gitSshUsernameRow,"display","none");this.options.password||b.style(this.gitSshPasswordRow,"display","none");this.options.privatekey||b.style(this.gitPrivateKeyRow,"display","none");if(!this.options.passphrase){b.style(this.gitPassphraseRow,"display","none");b.style(this.gitPassphraseRow_1,"display","none")}if(this.options.errordata&&
this.options.errordata.Url){b.style(this.gitCredentialsLabel,"display","block");this.url.innerHTML=this.options.errordata.Url}if(this.options.errordata&&this.options.errordata.User&&this.options.errordata.User!==""){this.gitSshUsername.value=this.options.errordata.User;b.style(this.gitSshUsernameRow,"display","none");setTimeout(function(){a.gitSshPassword.focus()},400)}b.connect(this.gitSshPassword,"onfocus",null,b.hitch(this,function(){this.isSshPassword.checked=true}));b.connect(this.gitPrivateKey,
"onfocus",null,b.hitch(this,function(){this.isPrivateKey.checked=true}));b.connect(this.gitPassphrase,"onfocus",null,b.hitch(this,function(){this.isPrivateKey.checked=true}))},execute:function(){if(this._sshService){var a=this;this._sshService.getKnownHosts().then(function(d){a.options.func({gitSshUsername:a.gitSshUsername.value,gitSshPassword:a.isSshPassword.checked?a.gitSshPassword.value:"",gitPrivateKey:a.isPrivateKey.checked?a.gitPrivateKey.value:"",gitPassphrase:a.isPrivateKey.checked?a.gitPassphrase.value:
"",knownHosts:d})})}else this.options.func({gitSshUsername:this.gitSshUsername.value,gitSshPassword:this.gitSshPassword.value,gitPrivateKey:this.gitPrivateKey.value,gitPassphrase:this.gitPassphrase.value,knownHosts:this.gitSshKnownHosts.value})}})});define("text!dijit/form/templates/CheckBox.html",function(){return'<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdojoAttachPoint="focusNode"\n\t \tdojoAttachEvent="onclick:_onClick"\n/></div>'});
define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(b,c){return c.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,c){b.declare("dijit.form.CheckBox",c.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);c.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,d){if(typeof a=="string"){this._set("value",a);b.attr(this.focusNode,"value",a);a=true}this._created&&this.set("checked",a,d)},_getValueAttr:function(){return this.checked?this.value:false},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||
false);this._set("value",this.params.value||"on");b.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&b.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&b.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){if(this.readOnly){b.stopEvent(a);return false}return this.inherited(arguments)}});b.declare("dijit.form.RadioButton",c.form.CheckBox,{type:"radio",
baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);if(this._created)if(a){var d=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(e){if(e.name==d.name&&e!=d.focusNode&&e.form==d.focusNode.form)(e=c.getEnclosingWidget(e))&&e.checked&&e.set("checked",false)})}},_clicked:function(){this.checked||this.set("checked",true)}});return c.form.CheckBox});
define("dijit/form/Form",["dojo","dijit","dijit/_Widget","dijit/_Templated","dijit/form/_FormMixin","dijit/layout/_ContentPaneResizeMixin"],function(b,c){b.declare("dijit.form.Form",[c._Widget,c._Templated,c.form._FormMixin,c.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(c._Widget.prototype.attributeMap,
{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?"name='"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(a){this.encType=a;b.attr(this.domNode,"encType",a);if(b.isIE)this.domNode.encoding=a},postCreate:function(){if(b.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var d={returnValue:true,preventDefault:function(){this.returnValue=false},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(d)!==false&&d.returnValue&&this.inherited(arguments,[])},onReset:function(){return true},_onReset:function(a){this.reset(a);b.stopEvent(a);return false},_onSubmit:function(a){var d=c.form.Form.prototype;if(this.execute!=d.execute||this.onExecute!=
d.onExecute){b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues())}this.onSubmit(a)===false&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==false&&this.containerNode.submit()}});return c.form.Form});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",true,b);b.data.util.filter.patternToRegExp=function(c,a){for(var d="^",e=null,g=0;g<c.length;g++){e=c.charAt(g);switch(e){case "\\":d+=e;g++;d+=c.charAt(g);break;case "*":d+=".*";break;case "?":d+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":d+="\\";default:d+=e}}d+="$";return a?new RegExp(d,"mi"):new RegExp(d,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",true,b);b.data.util.sorter.basicComparator=function(c,a){var d=-1;if(c===null)c=undefined;if(a===null)a=undefined;if(c==a)d=0;else if(c>a||c==null)d=1;return d};b.data.util.sorter.createSortFunction=function(c,a){function d(m,r,n,o){return function(p,s){p=o.getValue(p,m);s=o.getValue(s,m);return r*n(p,s)}}for(var e=[],g,j=a.comparatorMap,h=b.data.util.sorter.basicComparator,k=0;k<c.length;k++){g=c[k];var f=g.attribute;
if(f){g=g.descending?-1:1;var l=h;if(j){if(typeof f!=="string"&&"toString"in f)f=f.toString();l=j[f]||h}e.push(d(f,g,l,a))}}return function(m,r){for(var n=0;n<e.length;){var o=e[n++](m,r);if(o!==0)return o}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",true,b);b.data.util.simpleFetch.fetch=function(c){c=c||{};if(!c.store)c.store=this;var a=this,d=function(g,j){if(j.onError)j.onError.call(j.scope||b.global,g,j)},e=function(g,j){var h=j.abort||null,k=false,f=j.start?j.start:0,l=j.count&&j.count!==Infinity?f+j.count:g.length;j.abort=function(){k=true;h&&h.call(j)};var m=j.scope||b.global;if(!j.store)j.store=a;j.onBegin&&j.onBegin.call(m,
g.length,j);j.sort&&g.sort(b.data.util.sorter.createSortFunction(j.sort,a));if(j.onItem)for(var r=f;r<g.length&&r<l;++r){var n=g[r];k||j.onItem.call(m,n,j)}if(j.onComplete&&!k){r=null;j.onItem||(r=g.slice(f,l));j.onComplete.call(m,r,j)}};this._fetchItems(c,e,d);return c};return b.data.util.simpleFetch});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(b){b.declare("dojo.data.ItemFileReadStore",null,{constructor:function(c){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=c.url;this._jsonData=c.data;this.data=null;this._datatypeMap=c.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.date.stamp.fromISOString(a)}});
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(c.urlPreventCache!==undefined)this.urlPreventCache=c.urlPreventCache?true:false;if(c.hierarchical!==undefined)this.hierarchical=c.hierarchical?true:false;if(c.clearOnClose)this.clearOnClose=true;if("failOk"in c)this.failOk=c.failOk?true:
false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(c){if(!this.isItem(c))throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(c){if(typeof c!=="string")throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(c,a,d){c=this.getValues(c,a);return c.length>0?c[0]:d},getValues:function(c,a){this._assertIsItem(c);this._assertIsAttribute(a);
return(c[a]||[]).slice(0)},getAttributes:function(c){this._assertIsItem(c);var a=[];for(var d in c)d!==this._storeRefPropName&&d!==this._itemNumPropName&&d!==this._rootItemPropName&&d!==this._reverseRefMap&&a.push(d);return a},hasAttribute:function(c,a){this._assertIsItem(c);this._assertIsAttribute(a);return a in c},containsValue:function(c,a,d){var e=undefined;if(typeof d==="string")e=b.data.util.filter.patternToRegExp(d,false);return this._containsValue(c,a,d,e)},_containsValue:function(c,a,d,e){return b.some(this.getValues(c,
a),function(g){if(g!==null&&!b.isObject(g)&&e){if(g.toString().match(e))return true}else if(d===g)return true})},isItem:function(c){if(c&&c[this._storeRefPropName]===this)if(this._arrayOfAllItems[c[this._itemNumPropName]]===c)return true;return false},isItemLoaded:function(c){return this.isItem(c)},loadItem:function(c){this._assertIsItem(c.item)},getFeatures:function(){return this._features},getLabel:function(c){if(this._labelAttr&&this.isItem(c))return this.getValue(c,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];
return null},_fetchItems:function(c,a,d){var e=this,g=function(f,l){var m=[],r,n;if(f.query){var o;r=f.queryOptions?f.queryOptions.ignoreCase:false;var p={};for(n in f.query){o=f.query[n];if(typeof o==="string")p[n]=b.data.util.filter.patternToRegExp(o,r);else if(o instanceof RegExp)p[n]=o}for(r=0;r<l.length;++r){var s=true,q=l[r];if(q===null)s=false;else for(n in f.query){o=f.query[n];e._containsValue(q,n,o,p[n])||(s=false)}s&&m.push(q)}}else for(r=0;r<l.length;++r){n=l[r];n!==null&&m.push(n)}a(m,
f)};if(this._loadFinished)g(c,this._getItemsArray(c.queryOptions));else{if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:c,
filter:g});else{this._loadInProgress=true;var j=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});j.addCallback(function(f){try{e._getItemsFromLoadedData(f);e._loadFinished=true;e._loadInProgress=false;g(c,e._getItemsArray(c.queryOptions));e._handleQueuedFetches()}catch(l){e._loadFinished=true;e._loadInProgress=false;d(l,c)}});j.addErrback(function(f){e._loadInProgress=false;d(f,c)});var h=null;if(c.abort)h=c.abort;c.abort=function(){j&&
j.fired===-1&&j.cancel();h&&h.call(c)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;g(c,this._getItemsArray(c.queryOptions))}catch(k){d(k,c)}else d(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),c)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var c=0;c<this._queuedFetches.length;c++){var a=this._queuedFetches[c],d=a.args;(a=a.filter)?
a(d,this._getItemsArray(d.queryOptions)):this.fetchItemByIdentity(d)}this._queuedFetches=[]}},_getItemsArray:function(c){if(c&&c.deep)return this._arrayOfAllItems;return this._arrayOfTopLevelItems},close:function(){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null)&&this.data==null)console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload  information has not been provided.  Please set 'url' or 'data' to the appropriate value before the next fetch");
this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[]}},_getItemsFromLoadedData:function(c){function a(p){return p!==null&&typeof p==="object"&&(!b.isArray(p)||e)&&!b.isFunction(p)&&(p.constructor==Object||b.isArray(p))&&typeof p._reference==="undefined"&&typeof p._type==="undefined"&&typeof p._value==="undefined"&&g.hierarchical}function d(p){g._arrayOfAllItems.push(p);for(var s in p){var q=p[s];
if(q)if(b.isArray(q))for(var u=0;u<q.length;++u){var y=q[u];a(y)&&d(y)}else a(q)&&d(q)}}var e=false,g=this;this._labelAttr=c.label;var j,h;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=c.items;for(j=0;j<this._arrayOfTopLevelItems.length;++j){h=this._arrayOfTopLevelItems[j];if(b.isArray(h))e=true;d(h);h[this._rootItemPropName]=true}var k={},f;for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];for(f in h){if(f!==this._rootItemPropName){var l=h[f];if(l!==null)b.isArray(l)||
(h[f]=[l]);else h[f]=[null]}k[f]=f}}for(;k[this._storeRefPropName];)this._storeRefPropName+="_";for(;k[this._itemNumPropName];)this._itemNumPropName+="_";for(;k[this._reverseRefMap];)this._reverseRefMap+="_";if(k=c.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=k;for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];c=h[k];c=c[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,c))if(this._jsonFileUrl)throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+
this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+k+"].  Value collided: ["+c+"]");else{if(this._jsonData)throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+k+"].  Value collided: ["+c+"]");}else this._itemsByIdentity[c]=h}}else this._features["dojo.data.api.Identity"]=Number;for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];h[this._storeRefPropName]=
this;h[this._itemNumPropName]=j}for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];for(f in h){c=h[f];for(k=0;k<c.length;++k){l=c[k];if(l!==null&&typeof l=="object"){if("_type"in l&&"_value"in l){var m=l._type,r=this._datatypeMap[m];if(r)if(b.isFunction(r))c[k]=new r(l._value);else if(b.isFunction(r.deserialize))c[k]=r.deserialize(l._value);else throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
else throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+m+"'");}if(l._reference){l=l._reference;if(b.isObject(l))for(m=0;m<this._arrayOfAllItems.length;++m){r=this._arrayOfAllItems[m];var n=true;for(var o in l)if(r[o]!=l[o])n=false;if(n)c[k]=r}else c[k]=this._getItemByIdentity(l);if(this.referenceIntegrity){l=c[k];this.isItem(l)&&this._addReferenceToMap(l,h,f)}}else this.isItem(l)&&this.referenceIntegrity&&this._addReferenceToMap(l,
h,f)}}}}},_addReferenceToMap:function(){},getIdentity:function(c){var a=this._features["dojo.data.api.Identity"];if(a===Number)return c[this._itemNumPropName];else if(c=c[a])return c[0];return null},fetchItemByIdentity:function(c){var a,d;if(this._loadFinished){a=this._getItemByIdentity(c.identity);if(c.onItem){d=c.scope?c.scope:b.global;c.onItem.call(d,a)}}else{var e=this;if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:c});else{this._loadInProgress=true;d=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});d.addCallback(function(g){var j=c.scope?c.scope:b.global;try{e._getItemsFromLoadedData(g);
e._loadFinished=true;e._loadInProgress=false;a=e._getItemByIdentity(c.identity);c.onItem&&c.onItem.call(j,a);e._handleQueuedFetches()}catch(h){e._loadInProgress=false;c.onError&&c.onError.call(j,h)}});d.addErrback(function(g){e._loadInProgress=false;if(c.onError)c.onError.call(c.scope?c.scope:b.global,g)})}else if(this._jsonData){e._getItemsFromLoadedData(e._jsonData);e._jsonData=null;e._loadFinished=true;a=e._getItemByIdentity(c.identity);if(c.onItem){d=c.scope?c.scope:b.global;c.onItem.call(d,a)}}}},
_getItemByIdentity:function(c){var a=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,c))a=this._itemsByIdentity[c];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,c))a=this._arrayOfAllItems[c];if(a===undefined)a=null;return a},getIdentityAttributes:function(){var c=this._features["dojo.data.api.Identity"];return c===Number?null:[c]},_forceLoad:function(){var c=this;if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl){var a=b.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true});a.addCallback(function(d){try{if(c._loadInProgress!==true&&!c._loadFinished){c._getItemsFromLoadedData(d);c._loadFinished=true}else if(c._loadInProgress)throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}catch(e){console.log(e);throw e;}});a.addErrback(function(d){throw d;})}else if(this._jsonData){c._getItemsFromLoadedData(c._jsonData);c._jsonData=null;c._loadFinished=true}}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});define("text!orion/widgets/templates/NewItemDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemNameLabel" for="${id}_itemName" style="padding-right: 10">${itemNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 30em; text-align: left;">\n\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="itemName" id="${id}_itemName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemURLLabel" for="itemURL" style="padding-right: 10">Server Path:</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; width: 40em; text-align: left; padding:5;">\n\t\t\t\t\t<input dojoAttachPoint="itemURL" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo1">\n\t\t\t\t<div style="display: table-cell;"></div>\n\t\t\t\t<div style="display: table-cell;">\n\t\t\t\t\t<input dojoAttachPoint="createCheckbox" id="${id}_createCheckbox" dojoType="dijit.form.CheckBox" checked="checked" value="on" type="checkbox">\n\t\t\t\t\t<label dojoAttachPoint="createCheckboxLabel" for="${id}_createCheckbox">Create if doesn\'t exist</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="newItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/NewItemDialog",["dojo","dijit","dijit/Dialog","dijit/form/CheckBox","dijit/form/CheckBox","dijit/form/Form","dijit/form/ValidationTextBox","dojo/data/ItemFileReadStore","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/NewItemDialog.html"],function(b,c){b.declare("orion.widgets.NewItemDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||false},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||"Name:"},postCreate:function(){this.inherited(arguments);if(this.options.advanced){this.itemAdvancedInfo.style.display="table-row";this.itemAdvancedInfo1.style.display="table-row";b.connect(this.itemURL,"onkeyup",null,b.hitch(this,this.onURLChange))}else{this.itemAdvancedInfo.style.display="none";this.itemAdvancedInfo1.style.display="none"}},
execute:function(){var a,d;this.newItemButton.focus();if(this.options.advanced){a=this.itemURL.value.replace(/^\s+|\s+$/g,"");d=this.createCheckbox.get("disabled")?false:this.createCheckbox.get("checked")}this.options.func(this.itemName.value,a&&a!==""?a:undefined,d)},onURLChange:function(){var a=this.itemURL.value;if(a.match(/^file:\/\//))this.createCheckbox.set("disabled",false);else a.match(/^[a-zA-Z][a-zA-Z]+:\/\/.+/)?this.createCheckbox.set("disabled",true):this.createCheckbox.set("disabled",
false)}})});define("text!orion/git/widgets/templates/RemotePrompterDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseRemoteExplorerTree" class="explorerTreeClass" id="${id}_browseRemoteExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div style="display: table-row" dojoAttachPoint="newBranchSection">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t<label for="${id}_newBranch">${newBranchText}</label>\n\t\t\t\t\t<input dojoAttachPoint="newBranch" id="${id}_newBranch" value="" disabled=true/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="RemoteBrowserButton" disabled=true dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <!-- end table --\>\n\t</div> <!-- content pane --\>\n</div>'});
define("orion/git/widgets/RemotePrompterDialog",["dojo","dijit","orion/util","orion/git/git-clones-explorer","dijit/Dialog","dijit/form/Button","orion/widgets/ExplorerTree","orion/widgets/_OrionDialogMixin","text!orion/git/widgets/templates/RemotePrompterDialog.html"],function(b,c,a,d){b.declare("orion.git.widgets.RemotePrompterDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:b.cache("orion","git/widgets/templates/RemotePrompterDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.treeRoot=this.options.treeRoot},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Choose a Folder";this.newBranchText="New Branch:";this.buttonOk="OK"},postCreate:function(){this.inherited(arguments);this.loadRemoteChildren(this.treeRoot);b.connect(this.newBranch,"onchange",b.hitch(this,this.validate));if(this.options.hideNewBranch)this.newBranchSection.style.display="none"},
loadRemoteChildren:function(e){this.treeRoot=e;this.createTree(new d.GitClonesModel(this.gitClient,null,this.gitClient.getGitClone,this.treeRoot))},createTree:function(e){var g=this.treeWidget=new orion.widgets.ExplorerTree({style:"width:100%; height:100%",model:e,region:"center",showRoot:false,persist:true,openOnClick:false,getLabel:function(h){return h.Name},getIconClass:function(h){if(h.BranchLocation&&h.RemoteLocation)return"gitRepoItem";if(h.GroupNode)return h.Name==="Branch"?"gitBranchesItem":
"gitRemotesItem";if(h.Type==="Branch"||h.Type==="RemoteTrackingBranch")return"gitBranchItem";if(h.Type==="Remote")return"gitRemoteItem";return"gitDefaultItem"}}),j=this;this.treeWidget._inheritedSelectNode=this.treeWidget._selectNode;this.treeWidget._selectNode=function(h){g._inheritedSelectNode(h);j.newBranch.disabled=h.item&&h.item.Type==="Remote"?false:true;b.hitch(j,j.validate)()};this.treeWidget.startup();b.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},validate:function(){var e=
this.treeWidget.getSelectedItems();if(e.length==1)if(e[0].Type==="RemoteTrackingBranch"){this.RemoteBrowserButton.disabled=false;return}else if(e[0].Type==="Remote")if(this.newBranch.value!=""){this.RemoteBrowserButton.disabled=false;return}this.RemoteBrowserButton.disabled=true},execute:function(){var e=this.treeWidget.getSelectedItems();this.onHide();e[0].Type==="RemoteTrackingBranch"?this.options.func(e[0],e[0].parent):this.options.func(null,e[0],this.newBranch.value)}})});
define("orion/git/gitCommands",["require","dojo","orion/commands","orion/util","orion/git/widgets/CloneGitRepositoryDialog","orion/git/widgets/InitGitRepositoryDialog","orion/git/widgets/AddRemoteDialog","orion/git/widgets/GitCredentialsDialog","orion/widgets/NewItemDialog","orion/git/widgets/RemotePrompterDialog"],function(b,c,a,d){var e={};(function(){function g(h){serviceRegistry.getService("orion.page.message").then(function(k){if(!(h.status===401||h.status===403)){var f=[];f.Severity="Error";
f.HTML=false;try{var l=JSON.parse(h.responseText);f.Message=l.DetailedMessage?l.DetailedMessage:l.Message}catch(m){f.Message=h.message}k.setProgressResult(f)}})}var j=false;e.updateNavTools=function(h,k,f,l,m){var r=c.byId(f);if(r)c.empty(r);else throw"could not find toolbar "+f;h.getService("orion.page.command").then(c.hitch(k,function(n){n.renderCommands(r,"dom",m,k,"image",null,null,true);if(l){var o=c.create("span",{id:l},r,"last");n.renderCommands(o,"dom",null,k,"image",null,null,true)}}));if(!j){j=
true;h.getService("orion.page.selection").then(function(n){n.addEventListener("selectionChanged",function(o,p){var s=c.byId(l);if(s){c.empty(s);h.getService("orion.page.command").then(function(q){q.renderCommands(s,"dom",p,k,"image",null,null,true)})}})})}};e.getNewItemName=function(h,k,f,l,m,r,n,o){var p;if(f)h=c.byId(l);else if(k=k.makeNewItemPlaceHolder(h,l,n)){h=k.refNode;p=k.tempNode}else h=c.byId(l);if(h)d.getUserText(l+"EditBox",h,false,m,c.hitch(this,function(s){if(s){p&&p.parentNode.removeChild(p);
r(s)}}),undefined,undefined,undefined,o);else(l=window.prompt(m))&&r(l)};e.handleKnownHostsError=function(h,k,f,l){confirm("Would you like to add "+k.KeyType+" key for host "+k.Host+" to continue operation? Key fingerpt is "+k.HostFingerprint+".")&&h.getService("orion.net.ssh").then(function(m){m.addKnownHosts(k.Host+" "+k.KeyType+" "+k.HostKey).then(function(){m.getKnownHosts().then(function(r){f.knownHosts=r;l(f)})})})};e.handleSshAuthenticationError=function(h,k,f,l,m){h=new orion.git.widgets.GitCredentialsDialog({title:m,
serviceRegistry:h,func:l,errordata:f.errordata});h.startup();h.show()};e.getDefaultSshOptions=function(h){var k=new c.Deferred;h.getService("orion.net.ssh").then(function(f){f.getKnownHosts().then(function(l){k.callback({knownHosts:l,gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""})})});return k};e.handleProgressServiceResponse=function(h,k,f,l,m,r){if(h.Running==false){if(h.Result&&h.Result.HttpCode==403){if(h.Result.JsonData&&h.Result.JsonData.HostKey){c.hitch(this,e.handleKnownHostsError)(f,
h.Result.JsonData,k,m);return}}else if(h.Result&&h.Result.HttpCode==401){if(h.Result.JsonData)k.errordata=h.Result.JsonData;c.hitch(this,e.handleSshAuthenticationError)(f,h.Result.JsonData,k,m,r);return}if(h.Result&&h.Result.HttpCode!=200)console.error("error "+h.Result.HttpCode+" while running operation: "+h.Result.DetailedMessage);else l&&l(h)}};e.createFileCommands=function(h,k,f){var l=new a.Command({name:"Link Repository",imageClass:"core-sprite-link",id:"eclipse.linkRepository",callback:function(n){var o=
new orion.widgets.NewItemDialog({title:"Link Repository",label:"Folder name:",func:function(p){h.getService("orion.core.file").then(function(s){s.loadWorkspace("").then(function(q){s.createProject(q.Location,p,n.ContentLocation,false).then(function(u){alert("Repository was linked to "+u.Name);s.read(u.ContentLocation,true).then(function(y){window.location.replace(b.toUrl("navigate/table.html")+"#"+y.ChildrenLocation)})})})})},advanced:false});o.startup();o.show()},visibleWhen:function(n){if(n.ContentLocation)return true;
return false}});k.addCommand(l,"object");l=new a.Command({name:"Checkout",tooltip:"Create a local branch corresponding with the current tag.",imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",id:"eclipse.checkoutTag",callback:function(n,o,p){function s(){for(var q in n.parent.parent.children)if(n.parent.parent.children[q].Name==="Branches")return n.parent.parent.children[q];return n.parent.parent}e.getNewItemName(n,f,false,p,"tag_"+n.Name,function(q){!q&&q==""||h.getService("orion.git.provider").then(function(u){u.checkoutTag(n.parent.parent.Location,
n.Name,q).then(function(){c.hitch(f,f.changedItem)(s())},g)})},undefined,true)},visibleWhen:function(n){return n.Type==="Tag"}});k.addCommand(l,"object");l=new a.Command({name:"Checkout",tooltip:"Make the branch or corresponding local branch active. If the remote tracking branch does not have a corresponding local branch, the local branch will be created first.",imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",id:"eclipse.checkoutBranch",callback:function(n){h.getService("orion.git.provider").then(function(o){n.Type===
"Branch"?o.checkoutBranch(n.CloneLocation,n.Name).then(function(){c.hitch(f,f.changedItem)(n.parent)},g):o.addBranch(n.parent.parent.BranchLocation,null,n.Name).then(function(p){o.checkoutBranch(p.CloneLocation,p.Name).then(function(){c.hitch(f,f.changedItem)(n.parent.parent.parent)},g)},g)})},visibleWhen:function(n){return n.Type==="Branch"||n.Type==="RemoteTrackingBranch"}});k.addCommand(l,"object");l=new a.Command({name:"New Branch",tooltip:"Add a new local branch to the repository",imageClass:"core-sprite-add",
id:"eclipse.addBranch",callback:function(n,o,p){e.getNewItemName(n,f,false,p,"Branch name",function(s){!s&&s==""||h.getService("orion.git.provider").then(function(q){q.addBranch(n.Location,s).then(function(){c.hitch(f,f.changedItem)(n)},g)})})},visibleWhen:function(n){return n.GroupNode&&n.Name==="Branches"}});k.addCommand(l,"object");l=new a.Command({name:"Delete",tooltip:"Delete the local branch from the repository",imageClass:"core-sprite-delete",id:"eclipse.removeBranch",callback:function(n){confirm("Are you sure you want to delete branch "+
n.Name+"?")&&h.getService("orion.git.provider").then(function(o){o.removeBranch(n.Location).then(function(){c.hitch(f,f.changedItem)(n.parent)},g)})},visibleWhen:function(n){return n.Type==="Branch"&&!n.Current}});k.addCommand(l,"object");l=new a.Command({name:"Delete",tooltip:"Delete the remote tracking branch from the repository",imageClass:"core-sprite-delete",id:"eclipse.removeRemoteBranch",callback:function(n){confirm("You're going to delete remote branch "+n.Name+" and push the change.\n\nAre you sure?")&&
e.getDefaultSshOptions(h).then(function(o){var p=arguments.callee;h.getService("orion.git.provider").then(function(s){h.getService("orion.page.message").then(function(q){var u=s.doPush(n.Location,"",false,false,null,o.gitSshUsername,o.gitSshPassword,o.knownHosts,o.gitPrivateKey,o.gitPassphrase);q.showWhile(u,"Removing remote branch: "+n.Name).then(function(y){e.handleProgressServiceResponse(y,o,h,function(C){C.Result.Severity=="Ok"&&c.hitch(f,f.changedItem)(n.parent)},p,"Delete Remote Branch")})})})})},
visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"}});k.addCommand(l,"object");l=new a.Command({name:"New Remote",tooltip:"Add a new remote to the repository",imageClass:"core-sprite-add",id:"eclipse.addRemote",callback:function(n){var o=new orion.git.widgets.AddRemoteDialog({func:function(p,s){h.getService("orion.git.provider").then(function(q){q.addRemote(n.Location,p,s).then(function(){c.hitch(f,f.changedItem)(n)},g)})}});o.startup();o.show()},visibleWhen:function(n){return n.GroupNode&&
n.Name==="Remotes"}});k.addCommand(l,"object");l=new a.Command({name:"Delete",tooltip:"Delete the remote from the repository",imageClass:"core-sprite-delete",id:"eclipse.removeRemote",callback:function(n){confirm("Are you sure you want to delete remote "+n.Name+"?")&&h.getService("orion.git.provider").then(function(o){o.removeRemote(n.Location).then(function(){c.hitch(f,f.changedItem)(n.parent)},g)})},visibleWhen:function(n){return n.Type==="Remote"}});k.addCommand(l,"object");l=new a.Command({name:"Git Log",
tooltip:"Open the log for the branch",id:"eclipse.openGitLog",hrefCallback:function(n){if(n.Type==="RemoteTrackingBranch")return b.toUrl("git/git-log.html")+"#"+n.Location+"?page=1";return b.toUrl("git/git-log.html")+"#"+n.CommitLocation+"?page=1"},visibleWhen:function(n){return n.Type==="Branch"||n.Type==="RemoteTrackingBranch"}});k.addCommand(l,"object");l=new a.Command({name:"Git Log",tooltip:"Open the log for the repository",id:"eclipse.openGitLogAll",hrefCallback:function(n){return b.toUrl("git/git-log.html")+
"#"+n.CommitLocation+"?page=1"},visibleWhen:function(n){if(!n.CommitLocation||!n.StatusLocation)return false;return true}});k.addCommand(l,"object");l=new a.Command({name:"Git Status",tooltip:"Open the status for the repository",id:"eclipse.openGitStatus",hrefCallback:function(n){return b.toUrl("git/git-status.html")+"#"+n.StatusLocation},visibleWhen:function(n){if(!n.StatusLocation)return false;return true}});k.addCommand(l,"object");l=new a.Command({name:"Show in Navigator",tooltip:"Show the repository folder in the file navigator",
id:"eclipse.openCloneContent",hrefCallback:function(n){return b.toUrl("navigate/table.html")+"#"+n.ContentLocation+"?depth=1"},visibleWhen:function(n){if(!n.ContentLocation)return false;return true}});k.addCommand(l,"object");l=new a.Command({name:"Compare With Each Other",imageClass:"git-sprite-open_compare",spriteClass:"gitCommandSprite",id:"eclipse.compareGitCommits",hrefCallback:function(n){var o=new c.Deferred;h.getService("orion.git.provider").then(function(p){p.getDiff(n[0].DiffLocation,n[1].Name,
function(s,q){o.callback(b.toUrl("compare/compare.html")+"?readonly#"+q.xhr.getResponseHeader("Location"))})});return o},visibleWhen:function(n){if(f.isDirectory)return false;if(c.isArray(n)&&n.length===2&&n[0].Type==="Commit"&&n[1].Type==="Commit")return true;return false}});k.addCommand(l,"dom");l=new a.Command({name:"Compare With Working Tree",imageClass:"git-sprite-open_compare",spriteClass:"gitCommandSprite",id:"eclipse.compareWithWorkingTree",hrefCallback:function(n){return b.toUrl("compare/compare.html")+
"#"+n.DiffLocation},visibleWhen:function(n){return n.Type==="Commit"&&!f.isDirectory}});k.addCommand(l,"object");l=new a.Command({name:"Open",id:"eclipse.openGitCommit",hrefCallback:function(n){return b.toUrl("edit/edit.html")+"#"+n.ContentLocation},visibleWhen:function(n){return n.Type==="Commit"&&n.ContentLocation!=null&&!f.isDirectory}});k.addCommand(l,"object");l=new a.Command({name:"Fetch",tooltip:"Fetch from the remote",imageClass:"git-sprite-fetch",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.fetch",
callback:function(n){var o=n.Location;e.getDefaultSshOptions(h).then(function(p){var s=arguments.callee;h.getService("orion.git.provider").then(function(q){h.getService("orion.page.message").then(function(u){var y=q.doFetch(o,false,null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);u.showWhile(y,"Fetching remote: "+o).then(function(C){e.handleProgressServiceResponse(C,p,h,function(){c.xhrGet({url:o,headers:{"Orion-Version":"1"},postData:c.toJson({GitSshUsername:p.gitSshUsername,
GitSshPassword:p.gitSshPassword,GitSshPrivateKey:p.gitPrivateKey,GitSshPassphrase:p.gitPassphrase,GitSshKnownHost:p.knownHosts}),handleAs:"json",timeout:5E3,load:function(v){return v},error:function(v,w){console.error("HTTP status code: ",w.xhr.status);return v}}).then(function(v){f.parentId==="explorer-tree"&&q.getLog(v.HeadLocation,v.Id,function(w,A){function z(G){f.renderer.setIncomingCommits(G.Children);f.loadCommitsList(v.CommitLocation+"?page=1",v,true)}if(A.xhr.status===200)z(w);else if(A.xhr.status===
202){var F=new c.Deferred;F.callback(w);h.getService("orion.page.message").then(function(G){G.showWhile(F,"Getting git incoming changes").then(function(K){z(K.Result.JsonData)})})}});n.Type==="Remote"&&c.hitch(f,f.changedItem)(n)},g)},s,"Fetch Git Repository")})})})})},visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"||n.Type==="Remote"}});k.addCommand(l,"dom");k.addCommand(l,"object");l=new a.Command({name:"Force Fetch",tooltip:"Fetch from the remote branch into your remote tracking branch overriding its current content",
id:"eclipse.orion.git.fetchForce",callback:function(n){if(confirm("You're going to override content of the remote tracking branch. This can cause the branch to lose commits.\n\nAre you sure?")){var o=n.Location;e.getDefaultSshOptions(h).then(function(p){var s=arguments.callee;h.getService("orion.git.provider").then(function(q){h.getService("orion.page.message").then(function(u){var y=q.doFetch(o,true,null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);u.showWhile(y,
"Fetching remote: "+o).then(function(C){e.handleProgressServiceResponse(C,p,h,function(){c.xhrGet({url:o,headers:{"Orion-Version":"1"},postData:c.toJson({GitSshUsername:p.gitSshUsername,GitSshPassword:p.gitSshPassword,GitSshPrivateKey:p.gitPrivateKey,GitSshPassphrase:p.gitPassphrase,GitSshKnownHost:p.knownHosts}),handleAs:"json",timeout:5E3,load:function(v){return v},error:function(v,w){console.error("HTTP status code: ",w.xhr.status);return v}}).then(function(v){f.parentId==="explorer-tree"&&q.getLog(v.HeadLocation,
v.Id,function(w,A){function z(G){f.renderer.setIncomingCommits(G.Children);f.loadCommitsList(v.CommitLocation+"?page=1",v,true)}if(A.xhr.status===200)z(w);else if(A.xhr.status===202){var F=new c.Deferred;F.callback(w);h.getService("orion.page.message").then(function(G){G.showWhile(F,"Getting git incoming changes").then(function(K){z(K.Result.JsonData)})})}})},g)},s,"Fetch Git Repository")})})})})}},visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"||n.Type==="Remote"}});k.addCommand(l,
"dom");k.addCommand(l,"object");l=new a.Command({name:"Merge",tooltip:"Merge the content from the branch to your active branch",imageClass:"git-sprite-merge",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.merge",callback:function(n){h.getService("orion.git.provider").then(function(o){o.doMerge(n.HeadLocation,n.Name).then(function(p){h.getService("orion.page.message").then(function(s){var q=[];if(p.jsonData&&(p.jsonData.Result=="FAST_FORWARD"||p.jsonData.Result=="ALREADY_UP_TO_DATE")){c.query(".treeTableRow").forEach(function(C){c.toggleClass(C,
"incomingCommitsdRow",false)});q.Severity="Ok";q.HTML=false;q.Message=p.jsonData.Result}else if(p.jsonData){var u=n.HeadLocation.replace("commit/HEAD","status");q.Severity="Warning";q.HTML=true;q.Message="<span>"+p.jsonData.Result+'. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}else if(p.error){q.Severity="Error";if(p.error.responseText&&JSON.parse(p.error.responseText)){var y=JSON.parse(p.error.responseText);q.Message=y.DetailedMessage?y.DetailedMessage:y.Message}else q.Message=
p.error.message;q.HTML=true;q.Message="<span>"+q.Message+' Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}s.setProgressResult(q)})},function(p){h.getService("orion.page.message").then(function(s){var q=[],u=n.HeadLocation.replace("commit/HEAD","status");q.Severity="Error";q.HTML=true;q.Message="<span>"+c.fromJson(p.ioArgs.xhr.responseText).DetailedMessage+'. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>';s.setProgressResult(q)})})})},
visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"||n.Type==="Branch"&&!n.Current}});k.addCommand(l,"dom");k.addCommand(l,"object");l=new a.Command({name:"Rebase",tooltip:"Rewind commits from the active branch and replay them on top of the selected branch",id:"eclipse.orion.git.rebase",callback:function(n){h.getService("orion.git.provider").then(function(o){o.doRebase(n.HeadLocation,n.Name,"BEGIN",function(p){h.getService("orion.page.message").then(function(s){var q=[],u=n.HeadLocation.replace("commit/HEAD",
"status");if(p.Result=="OK"||p.Result=="FAST_FORWARD"||p.Result=="UP_TO_DATE"){q.Severity="Ok";q.HTML=false;q.Message=p.Result}else if(p.Result=="STOPPED"){q.Severity="Warning";q.HTML=true;q.Message="<span>"+p.Result+'. Some conflicts occurred. Please resolve them and continue, skip patch or abort rebasing. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}else if(p.Result=="FAILED_WRONG_REPOSITORY_STATE"){q.Severity="Error";q.HTML=true;q.Message="<span>"+p.Result+
'. Repository state is invalid (i.e. already during rebasing). Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}else if(p.Result=="FAILED_UNMERGED_PATHS"){q.Severity="Error";q.HTML=true;q.Message="<span>"+p.Result+'. Repository contains unmerged paths. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}else if(p.Result=="FAILED_PENDING_CHANGES"){q.Severity="Error";q.HTML=true;q.Message="<span>"+p.Result+'. Repository contains pending changes. Please commit or stash them. Go to <a href="'+
b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}else{q.Severity="Warning";q.HTML=true;q.Message="<span>"+p.Result+'. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>'}s.setProgressResult(q)})},g)})},visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"||n.Type==="Branch"&&!n.Current}});k.addCommand(l,"dom");k.addCommand(l,"object");l=new a.Command({name:"Push All",tooltip:"Push commits and tags from your local branch into the remote branch",
imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.push",callback:function(n){var o=c.hash();if(n.toRef)n=n.toRef;if(n.RemoteLocation.length==1&&n.RemoteLocation[0].Children.length==1)e.getDefaultSshOptions(h).then(function(s){var q=arguments.callee;h.getService("orion.git.provider").then(function(u){h.getService("orion.page.message").then(function(y){var C=u.doPush(n.RemoteLocation[0].Children[0].Location,"HEAD",true,false,null,s.gitSshUsername,s.gitSshPassword,s.knownHosts,
s.gitPrivateKey,s.gitPassphrase);y.showWhile(C,"Pushing remote: "+o).then(function(v){e.handleProgressServiceResponse(v,s,h,function(w){w.Result.Severity=="Ok"&&c.query(".treeTableRow").forEach(function(A){c.toggleClass(A,"outgoingCommitsdRow",false)})},q,"Push Git Repository")})})})});else{var p=n.RemoteLocation;h.getService("orion.git.provider").then(function(s){s=new orion.git.widgets.RemotePrompterDialog({title:"Choose Branch",serviceRegistry:h,gitClient:s,treeRoot:{Children:p},hideNewBranch:true,
func:c.hitch(this,function(q,u){e.getDefaultSshOptions(h).then(function(y){var C=arguments.callee;h.getService("orion.git.provider").then(function(v){h.getService("orion.page.message").then(function(w){var A=v.doPush(q.Location,"HEAD",true,false,null,y.gitSshUsername,y.gitSshPassword,y.knownHosts,y.gitPrivateKey,y.gitPassphrase);w.showWhile(A,"Pushing remote: "+u.Name).then(function(z){e.handleProgressServiceResponse(z,y,h,function(F){F.Result.Severity=="Ok"&&c.query(".treeTableRow").forEach(function(G){c.toggleClass(G,
"outgoingCommitsdRow",false)})},C,"Push Git Repository")})})})})})});s.startup();s.show()})}},visibleWhen:function(n){return n.toRef?n.RepositoryPath===""&&n.toRef.Type==="Branch"&&n.toRef.Current&&n.toRef.RemoteLocation:n.Type==="Branch"&&n.Current&&n.RemoteLocation}});k.addCommand(l,"dom");k.addCommand(l,"object");l=new a.Command({name:"Force Push All",tooltip:"Push commits and tags from your local branch into the remote branch overriding its current content",imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",
id:"eclipse.orion.git.pushForce",callback:function(n){if(confirm("You're going to override content of the remote branch. This can cause the remote repository to lose commits.\n\nAre you sure?")){var o=c.hash();if(n.toRef)n=n.toRef;if(n.RemoteLocation.length==1&&n.RemoteLocation[0].Children.length==1)e.getDefaultSshOptions(h).then(function(s){var q=arguments.callee;h.getService("orion.git.provider").then(function(u){h.getService("orion.page.message").then(function(y){var C=u.doPush(n.RemoteLocation[0].Children[0].Location,
"HEAD",true,true,null,s.gitSshUsername,s.gitSshPassword,s.knownHosts,s.gitPrivateKey,s.gitPassphrase);y.showWhile(C,"Pushing remote: "+o).then(function(v){e.handleProgressServiceResponse(v,s,h,function(w){w.Result.Severity=="Ok"&&c.query(".treeTableRow").forEach(function(A){c.toggleClass(A,"outgoingCommitsdRow",false)})},q,"Push Git Repository")})})})});else{var p=n.RemoteLocation;h.getService("orion.git.provider").then(function(s){s=new orion.git.widgets.RemotePrompterDialog({title:"Choose Branch",
serviceRegistry:h,gitClient:s,treeRoot:{Children:p},hideNewBranch:true,func:c.hitch(this,function(q,u){e.getDefaultSshOptions(h).then(function(y){var C=arguments.callee;h.getService("orion.git.provider").then(function(v){h.getService("orion.page.message").then(function(w){var A=v.doPush(q.Location,"HEAD",true,true,null,y.gitSshUsername,y.gitSshPassword,y.knownHosts,y.gitPrivateKey,y.gitPassphrase);w.showWhile(A,"Pushing remote: "+u).then(function(z){e.handleProgressServiceResponse(z,y,h,function(F){F.Result.Severity==
"Ok"&&c.query(".treeTableRow").forEach(function(G){c.toggleClass(G,"outgoingCommitsdRow",false)})},C,"Push Git Repository")})})})})})});s.startup();s.show()})}}},visibleWhen:function(n){if(n.toRef)return n.RepositoryPath===""&&n.toRef.Type==="Branch"&&n.toRef.Current&&n.toRef.RemoteLocation}});k.addCommand(l,"dom");k.addCommand(l,"object");l=new a.Command({name:"Switch to Remote",tooltip:"Show the log for the corresponding remote tracking branch",id:"eclipse.orion.git.switchToRemote",hrefCallback:function(n){return b.toUrl("git/git-log.html")+
"#"+n.toRef.RemoteLocation[0].Children[0].Location+"?page=1"},visibleWhen:function(n){return n.toRef!=null&&n.toRef.Type==="Branch"&&n.toRef.Current&&n.toRef.RemoteLocation&&n.toRef.RemoteLocation.length===1&&n.toRef.RemoteLocation[0].Children.length===1}});k.addCommand(l,"dom");var m=function(){var n=/[\?&]page=([^&#]*)/.exec(window.location.href);if(n!=null)try{return parseInt(n[1])}catch(o){console.error(o)}},r=function(n,o){return n.replace(/page=([0-9]*)/,"page="+o)};l=new a.Command({name:"< Previous Page",
tooltip:"Show previous page of git log",id:"eclipse.orion.git.previousLogPage",hrefCallback:function(){return b.toUrl("git/git-log.html")+"#"+r(c.hash(),m(c.hash())-1)},visibleWhen:function(n){if(n.Type==="RemoteTrackingBranch"||n.toRef!=null&&n.toRef.Type==="Branch")return m(c.hash())>1;return false}});k.addCommand(l,"dom");l=new a.Command({name:"Next Page >",tooltip:"Show next page of git log",id:"eclipse.orion.git.nextLogPage",hrefCallback:function(){return b.toUrl("git/git-log.html")+"#"+r(c.hash(),
m(c.hash())+1)},visibleWhen:function(n){if(n.Type==="RemoteTrackingBranch"||n.toRef!=null&&n.toRef.Type==="Branch"){if(n.Children)return n.Children.length>0;return true}return false}});k.addCommand(l,"dom");l=new a.Command({name:"Switch to Active Local",tooltip:"Show the log for the active local branch",id:"eclipse.orion.git.switchToCurrentLocal",hrefCallback:function(n){var o=new c.Deferred,p=n.CloneLocation;if(p==null)p=JSON.parse(n.responseText).JsonData.CloneLocation;c.xhrGet({url:p,headers:{"Orion-Version":"1"},
handleAs:"json",timeout:5E3,load:function(s){c.xhrGet({url:s.Children[0].BranchLocation,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(q){c.forEach(q.Children,function(u){u.Current==true&&o.callback(b.toUrl("git/git-log.html")+"#"+u.CommitLocation+"?page=1")})}})}});return o},visibleWhen:function(n){if(n.Type==="RemoteTrackingBranch")return true;try{if(JSON.parse(n.responseText).JsonData)return true}catch(o){}return false}});k.addCommand(l,"dom");l=new a.Command({name:"Push to...",
tooltip:"Push from your local branch into the selected remote branch",imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.pushto",callback:function(n){var o={};for(var p in n.parent.parent.children)if(n.parent.parent.children[p].Name==="Remote")o=n.parent.parent.children[p];h.getService("orion.git.provider").then(function(s){s=new orion.git.widgets.RemotePrompterDialog({title:"Choose Branch",serviceRegistry:h,gitClient:s,treeRoot:o,func:c.hitch(this,function(q,u,y){console.info("Branch "+
q+" remote "+u+" new branch "+y)})});s.startup();s.show()})},visibleWhen:function(){return false}});k.addCommand(l,"dom");k.addCommand(l,"object");l=new a.Command({name:"Reset",tooltip:"Reset your active branch to the state of the selected branch. Discard all staged and unstaged changes.",imageClass:"git-sprite-refresh",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.resetIndex",callback:function(n){confirm("The content of your active branch will be replaced with "+n.Name+". All unstaged and staged changes will be discarded and cannot be recovered. Are you sure?")&&
h.getService("orion.git.provider").then(function(o){h.getService("orion.page.message").then(function(p){p.setProgressMessage("Resetting index...");o.resetIndex(n.IndexLocation,n.Name).then(function(){var s={};s.Severity="Info";s.HTML=false;s.Message="Ok";p.setProgressResult(s)},function(s){var q={};q.Severity="Error";q.HTML=false;q.Message=s.message;p.setProgressResult(q)})})})},visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"}});k.addCommand(l,"object");l=new a.Command({name:"Tag",
tooltip:"Create a tag for the commit",imageClass:"git-sprite-tag",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.addTag",callback:function(n,o,p){var s=new c.Deferred;e.getNewItemName(n,f,false,p,"Tag name",function(q){if(!(!q||q==="")){h.getService("orion.git.provider").then(function(u){u.doAddTag(n.Location,q).then(function(y){y=y.Location.replace(/[^\.\:\-\_0-9A-Za-z]/g,"");y=c.byId(y);c.place(document.createTextNode(q),c.create("p",{style:"margin: 5px"},y.children[6],"last"),"only")},function(y){h.getService("orion.page.message").then(function(C){var v=
[];v.Severity="Error";v.HTML=false;var w=JSON.parse(y.responseText);v.Message=w.DetailedMessage?w.DetailedMessage:w.Message;C.setProgressResult(v)})})});return s}},4)},visibleWhen:function(n){return n.Type==="Commit"}});k.addCommand(l,"object");l=new a.Command({name:"Cherry-Pick",tooltip:"Apply the change introduced by the commit to your active branch",id:"eclipse.orion.git.cherryPick",callback:function(n){var o=c.hash();h.getService("orion.git.provider").then(function(p){var s=n.Location.replace(n.Name,
"HEAD");p.doCherryPick(s,n.Name,function(q){h.getService("orion.page.message").then(function(u){var y=[],C=n.Location.replace("commit/"+n.Name,"status");if(q.Result=="OK"){y.Severity="Ok";if(q.HeadUpdated){y.HTML=false;y.Message=q.Result;f.parentId==="explorer-tree"&&c.xhrGet({url:o,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(v){return v},error:function(v,w){console.error("HTTP status code: ",w.xhr.status)}}).then(function(v){v.HeadLocation?p.getLog(v.HeadLocation,v.Id,
function(w,A){function z(G){f.renderer.setIncomingCommits(G.Children);f.loadCommitsList(v.CommitLocation+"?page=1",v,true)}if(A.xhr.status===200)z(w);else if(A.xhr.status===202){var F=new c.Deferred;F.callback(w);h.getService("orion.page.message").then(function(G){G.showWhile(F,"Getting git incoming changes").then(function(K){z(K.Result.JsonData)})})}}):p.getLog(o,"HEAD",function(w,A){function z(G){f.renderer.setOutgoingCommits(G.Children);f.loadCommitsList(o,v,true)}if(A.xhr.status===200)z(w);else if(A.xhr.status===
202){var F=new c.Deferred;F.callback(w);h.getService("orion.page.message").then(function(G){G.showWhile(F,"Getting git outgoing changes").then(function(K){z(K.Result.JsonData)})})}})})}else{y.HTML=true;y.Message="<span>Nothing changed.</span>"}}else if(q.Result=="CONFLICTING"){y.Severity="Warning";y.HTML=true;y.Message="<span>"+q.Result+'. Some conflicts occurred. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+C+'">Git Status page</a>.<span>'}else if(q.Result=="FAILED"){y.Severity="Error";y.HTML=
true;y.Message="<span>"+q.Result+'. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+C+'">Git Status page</a>.<span>'}else{y.Severity="Warning";y.HTML=false;y.Message=q.Result}u.setProgressResult(y)})},g)})},visibleWhen:function(n){return n.Type==="Commit"}});k.addCommand(l,"object")};e.createStatusCommands=function(h,k,f,l,m){var r=new a.Command({name:"Fetch",tooltip:"Fetch from the remote branch into your remote tracking branch",imageClass:"git-sprite-fetch",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.fetch",
callback:function(n){var o=n.Location;e.getDefaultSshOptions(h).then(function(p){var s=arguments.callee;h.getService("orion.git.provider").then(function(q){h.getService("orion.page.message").then(function(u){var y=q.doFetch(o,false,null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);u.showWhile(y,"Fetching remote: "+o).then(function(C){e.handleProgressServiceResponse(C,p,h,function(){c.xhrGet({url:o,headers:{"Orion-Version":"1"},postData:c.toJson({GitSshUsername:p.gitSshUsername,
GitSshPassword:p.gitSshPassword,GitSshPrivateKey:p.gitPrivateKey,GitSshPassphrase:p.gitPassphrase,GitSshKnownHost:p.knownHosts}),handleAs:"json",timeout:5E3,load:function(v){return v},error:function(v,w){console.error("HTTP status code: ",w.xhr.status)}}).then(function(v){q.getLog(v.HeadLocation,v.Id,function(w,A){function z(G){m._gitCommitNavigatorRem.renderer.setIncomingCommits(G.Children);m._gitCommitNavigatorRem.loadCommitsList(v.CommitLocation+"?page=1&pageSize=5",v,true)}if(A.xhr.status===200)z(w);
else if(A.xhr.status===202){var F=new c.Deferred;F.callback(w);h.getService("orion.page.message").then(function(G){G.showWhile(F,"Getting git incoming changes").then(function(K){z(K.Result.JsonData)})})}})})},s,"Fetch Git Repository")})})})})},visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"}});k.addCommand(r,"object");k.registerCommandContribution("eclipse.orion.git.fetch",l+1);r=new a.Command({name:"Merge",tooltip:"Merge the content from the branch to your active branch",imageClass:"git-sprite-merge",
spriteClass:"gitCommandSprite",id:"eclipse.orion.git.merge",callback:function(n){h.getService("orion.git.provider").then(function(o){o.doMerge(n.HeadLocation,n.Name).then(function(p){h.getService("orion.page.message").then(function(s){var q=[];if(p.jsonData&&(p.jsonData.Result=="FAST_FORWARD"||p.jsonData.Result=="ALREADY_UP_TO_DATE")){c.query(".treeTableRow").forEach(function(C){c.toggleClass(C,"incomingCommitsdRow",false)});q.Severity="Ok";q.HTML=false;q.Message=p.jsonData.Result;f();s.setProgressResult(q)}else if(p.jsonData){var u=
n.HeadLocation.replace("commit/HEAD","status");q.Severity="Warning";q.HTML=true;q.Message="<span>"+p.jsonData.Result+'. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>';s.setProgressResult(q)}else if(p.error){q.Severity="Error";if(p.error.responseText&&JSON.parse(p.error.responseText)){var y=JSON.parse(p.error.responseText);q.Message=y.DetailedMessage?y.DetailedMessage:y.Message}else q.Message=p.error.message;q.HTML=true;q.Message="<span>"+q.Message+' Go to <a href="'+
b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>';s.setProgressResult(q)}})},function(p){h.getService("orion.page.message").then(function(s){var q=[],u=n.HeadLocation.replace("commit/HEAD","status");q.Severity="Error";q.HTML=true;q.Message="<span>"+c.fromJson(p.ioArgs.xhr.responseText).DetailedMessage+'. Go to <a href="'+b.toUrl("git/git-status.html")+"#"+u+'">Git Status page</a>.<span>';s.setProgressResult(q)})})})},visibleWhen:function(n){return n.Type==="RemoteTrackingBranch"||
n.Type==="Branch"&&!n.Current}});k.addCommand(r,"object");k.registerCommandContribution("eclipse.orion.git.merge",l+2);r=new a.Command({name:"Push",tooltip:"Push from your local branch into the remote branch",imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.push",callback:function(n){var o=c.hash();if(n.RemoteLocation.length==1&&n.RemoteLocation[0].Children.length==1)e.getDefaultSshOptions(h).then(function(s){var q=arguments.callee;h.getService("orion.git.provider").then(function(u){h.getService("orion.page.message").then(function(y){var C=
u.doPush(n.RemoteLocation[0].Children[0].Location,"HEAD",true,false,null,s.gitSshUsername,s.gitSshPassword,s.knownHosts,s.gitPrivateKey,s.gitPassphrase);y.showWhile(C,"Pushing remote: "+o).then(function(v){e.handleProgressServiceResponse(v,s,h,function(w){if(w.Result.Severity=="Ok"){c.query(".treeTableRow").forEach(function(A){c.toggleClass(A,"outgoingCommitsdRow",false)});f()}},q,"Push Git Repository")})})})});else{var p=n.RemoteLocation;h.getService("orion.git.provider").then(function(s){s=new orion.git.widgets.RemotePrompterDialog({title:"Choose Branch",
serviceRegistry:h,gitClient:s,treeRoot:{Children:p},hideNewBranch:true,func:c.hitch(this,function(q,u){e.getDefaultSshOptions(h).then(function(y){var C=arguments.callee;h.getService("orion.git.provider").then(function(v){h.getService("orion.page.message").then(function(w){var A=v.doPush(q.Location,"HEAD",true,false,null,y.gitSshUsername,y.gitSshPassword,y.knownHosts,y.gitPrivateKey,y.gitPassphrase);w.showWhile(A,"Pushing remote: "+u).then(function(z){e.handleProgressServiceResponse(z,y,h,function(F){if(F.Result.Severity==
"Ok"){c.query(".treeTableRow").forEach(function(G){c.toggleClass(G,"outgoingCommitsdRow",false)});f()}},C,"Push Git Repository")})})})})})});s.startup();s.show()})}},visibleWhen:function(n){return n.Type==="LocalBranch"}});k.addCommand(r,"object");k.registerCommandContribution("eclipse.orion.git.push",l+3)};e.createGitClonesCommands=function(h,k,f,l,m,r){l=new a.Command({name:"Clone Repository",tooltip:"Clone an existing Git repository to a folder",id:"eclipse.cloneGitRepository",callback:function(){var n=
new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:h,fileClient:r,func:function(o,p,s){e.getDefaultSshOptions(h).then(function(q){var u=arguments.callee;h.getService("orion.git.provider").then(function(y){h.getService("orion.page.message").then(function(C){var v=y.cloneGitRepository(s,o,p,f.defaultPath,q.gitSshUsername,q.gitSshPassword,q.knownHosts,q.gitPrivateKey,q.gitPassphrase);C.showWhile(v,"Cloning repository: "+o).then(function(w){e.handleProgressServiceResponse(w,q,h,function(){f.redisplayClonesList&&
c.hitch(f,f.redisplayClonesList)()},u,"Clone Git Repository")})})})})}});n.startup();n.show()},visibleWhen:function(){return true}});k.addCommand(l,"dom");l=new a.Command({name:"Init Repository",tooltip:"Create a new Git repository in a new folder",id:"eclipse.initGitRepository",callback:function(){var n=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:h,title:"Init Git Repository",fileClient:r,advancedOnly:true,func:function(o,p,s){e.getDefaultSshOptions(h).then(function(q){var u=
arguments.callee;h.getService("orion.git.provider").then(function(y){h.getService("orion.page.message").then(function(C){var v=y.cloneGitRepository(s,o,p,f.defaultPath);C.showWhile(v,"Initializing repository: "+s).then(function(w){e.handleProgressServiceResponse(w,q,h,function(){f.redisplayClonesList&&c.hitch(f,f.redisplayClonesList)()},u,"Init Git Repository")})})})})}});n.startup();n.show()},visibleWhen:function(){return true}});k.addCommand(l,"dom");l=new a.Command({name:"Delete",tooltip:"Delete the repository",
imageClass:"core-sprite-delete",id:"eclipse.git.deleteClone",visibleWhen:function(n){n=c.isArray(n)?n:[n];if(n.length===0)return false;for(var o=0;o<n.length;o++)if(!n[o].ContentLocation)return false;return true},callback:function(n){if(c.isArray(n)){if(confirm("Are you sure you want do delete "+n.length+" repositories?"))for(var o=0,p=0;p<n.length;p++)h.getService("orion.git.provider").then(function(s){s.removeGitRepository(n[p].Location).then(function(){o++;o>=n.length&&f.redisplayClonesList&&c.hitch(f,
f.redisplayClonesList)()},g)})}else confirm("Are you sure you want to delete "+n.Name+"?")&&h.getService("orion.git.provider").then(function(s){s.removeGitRepository(n.Location).then(function(){f.redisplayClonesList&&c.hitch(f,f.redisplayClonesList)()},g)})}});k.addCommand(l,"object");k.addCommand(l,"dom")}})();return e});
define("dojox/layout/ToggleSplitter",["dojo","dijit","dijit/layout/BorderContainer"],function(b,c){b.declare("dojox.layout.ToggleSplitter",[c.layout._Splitter],{open:true,closedThreshold:5,openSize:"",_closedSize:"0",templateString:'<div class="dijitSplitter dojoxToggleSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_onMouseDown" tabIndex="0" role="separator"><div dojoAttachPoint="toggleNode" class="dijitSplitterThumb dojoxToggleSplitterIcon"></div></div>',postCreate:function(){this._started=
false;this.inherited(arguments);var a=this.region;b.addClass(this.domNode,"dojoxToggleSplitter"+a.charAt(0).toUpperCase()+a.substring(1));this.connect(this,"onDblClick","_toggleMe")},startup:function(){this.inherited(arguments);var a=this.child.domNode,d=b.style(a,this.horizontal?"height":"width");b.forEach(["toggleSplitterOpen","toggleSplitterClosedThreshold","toggleSplitterOpenSize"],function(e){var g=e.substring(14);g=g.charAt(0).toLowerCase()+g.substring(1);if(e in this.child)this[g]=this.child[e]},
this);if(!this.openSize)this.openSize=this.open?d+"px":"75px";this._openStyleProps=this._getStyleProps(a,true);this._started=true;this.set("open",this.open);return this},_onMouseUp:function(){b.disconnect(this._onMoveHandle);b.disconnect(this._onUpHandle);delete this._onMoveHandle;delete this._onUpHandle;delete this._startPosn},_onPrelimMouseMove:function(a){if(Math.abs((this._startPosn||0)-(this.horizontal?a.clientY:a.clientX))>=3){b.disconnect(this._onMoveHandle);this._startDrag(a)}},_onMouseDown:function(a){if(this.open){if(!this._onUpHandle)this._onUpHandle=
b.connect(b.body(),"onmouseup",this,"_onMouseUp");if(!this._onMoveHandle){this._startPosn=this.horizontal?a.clientY:a.clientX;this._onMoveHandle=b.connect(b.body(),"onmousemove",this,"_onPrelimMouseMove")}}},_handleOnChange:function(){var a=this.child.domNode,d;d=this.horizontal?"height":"width";if(this.open){var e=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);e[d]=this._openStyleProps&&this._openStyleProps[d]?this._openStyleProps[d]:this.openSize;b.style(a,
e);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{e=b.getComputedStyle(a);d=this._getStyleProps(a,true,e);e=this._getStyleProps(a,false,e);this._openStyleProps=d;b.style(a,e)}this._setStateClass();this.container._started&&this.container._layoutChildren(this.region)},_getStyleProps:function(a,d,e){e||(e=b.getComputedStyle(a));var g={},j=this.horizontal?"height":"width";g.visibility=d?e.visibility:"hidden";g[j]=d?a.style[j]||e[j]:this._closedSize;var h=["Top","Right","Bottom","Left"];
b.forEach(["padding","margin","border"],function(k){for(var f=0;f<h.length;f++){var l=k+h[f];if(k=="border")k+="Width";if(undefined!==e[l])g[l]=d?e[l]:0}});return g},_setStateClass:function(){if(this.open){b.removeClass(this.domNode,"dojoxToggleSplitterClosed");b.addClass(this.domNode,"dojoxToggleSplitterOpen");b.removeClass(this.toggleNode,"dojoxToggleSplitterIconClosed");b.addClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}else{b.addClass(this.domNode,"dojoxToggleSplitterClosed");b.removeClass(this.domNode,
"dojoxToggleSplitterOpen");b.addClass(this.toggleNode,"dojoxToggleSplitterIconClosed");b.removeClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}},_setOpenAttr:function(a){if(this._started){this.open=a;this._handleOnChange(a,true);this[this.open?"onOpen":"onClose"](this.child)}},onOpen:function(){},onClose:function(){},_toggleMe:function(a){a&&b.stopEvent(a);this.set("open",!this.open)},_onKeyPress:function(){this.inherited(arguments)}});b.extend(c._Widget,{toggleSplitterOpen:true,toggleSplitterClosedThreshold:5,
toggleSplitterOpenSize:""})});
define("orion/widgets/eWebBorderContainer",["dojo","dijit","dijit/layout/BorderContainer","dojox/layout/ToggleSplitter"],function(b,c){b.declare("orion.widgets.eWebBorderContainer",c.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredLeftPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getRightPane()).w*0.25:a},isLeftPaneOpen:function(){var a=this.getSplitter("left");if(a)return a.open;return false},getLeftPane:function(){if(this._left)return this._left;for(var a=
this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&(a[d].region==="leading"||a[d].region==="left"))return this._left=a[d].domNode},getHidingPane:function(){return this.getLeftPane()},getRightPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&a[d].region==="center")return this._center=a[d].domNode},getSizeCookie:function(){var a=this.getSplitter("left");if(a)return a.getSizeCookie();return 0},setSizeCookie:function(a){var d=this.getSplitter("left");
if(d)return d.setSizeCookie(a)},toggleLeftPaneState:function(){var a=this.getSplitter("left");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._left||!this._center)for(var a=this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&a[d].region==="center")this._center=a[d].domNode;else if(a[d].region&&(a[d].region==="leading"||a[d].region==="left"))this._left=a[d].domNode;var e=this._left,g=this._center,j=b.position(e).w,h=this.isLeftPaneOpen(),
k;k=h?0:this.getPreferredLeftPaneWidth();h||this.toggleLeftPaneState();var f=e.style.overflow,l=g.style.overflow;(new b.Animation({node:e,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(m){e.style.width=j+(k-j)*m/100+"px";e.style.overflow="hidden";g.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){g.style.overflow=l;e.style.overflow=f;this.toggleCallback&&this.toggleCallback.apply();h?this.toggleLeftPaneState():this.setSizeCookie(null)})})).play()}});b.declare("orion.widgets.eWebSplitter",
dojox.layout.ToggleSplitter,{postCreate:function(){this.inherited(arguments);this.connect(this.toggleNode,"onmousedown","_onThumbMouseDown");this.connect(this.toggleNode,"onmouseover","_onThumbMouseOver");this.connect(this.domNode,"onmouseover","_onMouseOver");this.connect(this.toggleNode,"onmouseout","_onThumbMouseOut");this._openStateCookieName=this.container.id+"_"+this.region+"_open"},startup:function(){this.inherited(arguments);if(this.container.persist){var a=b.cookie(this._openStateCookieName);
if(a==="true")this.container.getHidingPane().style.width=this.getSizeCookie()+"px";else{a==="false"?this.set("open",false):this.set("open",true);this._handleOnChange()}}else{this.set("open",true);this._handleOnChange()}return this},_handleOnChange:function(){var a=this.child.domNode,d;d=this.horizontal?"height":"width";if(this.open){var e=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);e[d]=this._openStyleProps&&this._openStyleProps[d]?this._openStyleProps[d]:
this.openSize;b.style(a,e);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{e=b.getComputedStyle(a);d=this._getStyleProps(a,true,e);e=this._getStyleProps(a,false,e);this._openStyleProps=d;b.style(a,e)}this._setStateClass();if(this.container._started){a=0;if(this.open&&this.openSize)a=parseInt(this.openSize.replace("px",""),10);this.container._layoutChildren(this.region,a)}},_removeFocusVisual:function(a){b.stopEvent(a)},_onMouseDown:function(a){this.open?this._startDrag(a):this._removeFocusVisual(a)},
_onMouseOver:function(){this.domNode.style.cursor=this.open?"e-resize":"default"},_onThumbMouseDown:function(a){a.stopPropagation();this._removeFocusVisual(a);this.container.toggle()},_onThumbMouseOver:function(){this.toggleNode.style.backgroundColor="#AAAAAA"},_onThumbMouseOut:function(){this.toggleNode.style.backgroundColor="#DDDDDD"},_toggleMe:function(){},getSizeCookie:function(){if(this.container.persist){var a=b.cookie(this._cookieName);if(a)return parseInt(a.replace("px",""),10)}return 0},
setSizeCookie:function(){if(this.container.persist)b.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},toggleHidingPaneState:function(){this.set("open",!this.open);this.container.getHidingPane().style.visibility=this.open?"visible":"hidden";if(this.container.persist)b.cookie(this._openStateCookieName,this.open?"true":"false",{expires:365})}});b.declare("orion.widgets.eWebBorderContainerReverse",c.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",
getPreferredRightPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getLeftPane()).w*0.25:a},isRightPaneOpen:function(){var a=this.getSplitter("right");if(a)return a.open;return false},getRightPane:function(){if(this._right)return this._right;for(var a=this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&(a[d].region==="trailing"||a[d].region==="right"))return this._right=a[d].domNode},getHidingPane:function(){return this.getRightPane()},getLeftPane:function(){if(this._center)return this._center;
for(var a=this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&a[d].region==="center")return this._center=a[d].domNode},getSizeCookie:function(){var a=this.getSplitter("right");if(a)return a.getSizeCookie();return 0},setSizeCookie:function(a){var d=this.getSplitter("right");if(d)return d.setSizeCookie(a)},toggleRightPaneState:function(){var a=this.getSplitter("right");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._right||!this._center)for(var a=
this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&a[d].region==="center")this._center=a[d].domNode;else if(a[d].region&&(a[d].region==="trailing"||a[d].region==="right"))this._right=a[d].domNode;var e=this._right,g=this._center,j=b.position(e).w,h=this.isRightPaneOpen(),k;k=h?0:this.getPreferredRightPaneWidth();h||this.toggleRightPaneState();var f=e.style.overflow,l=g.style.overflow;(new b.Animation({node:e,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(m){e.style.width=j+(k-j)*m/
100+"px";e.style.overflow="hidden";g.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){g.style.overflow=l;e.style.overflow=f;this.toggleCallback&&this.toggleCallback.apply();h?this.toggleRightPaneState():this.setSizeCookie(null)})})).play()}})});
define("git-clone",["dojo","orion/bootstrap","orion/status","orion/commands","orion/dialogs","orion/selection","orion/fileClient","orion/searchClient","orion/globalCommands","orion/git/gitClient","orion/ssh/sshTools","orion/git/git-clone-details","orion/git/git-clones-explorer","orion/git/gitCommands","dojo/parser","dojo/hash","dijit/layout/BorderContainer","dijit/layout/ContentPane","orion/widgets/eWebBorderContainer"],function(b,c,a,d,e,g,j,h,k,f,l,m,r,n){function o(){var p=dijit.byId("orion.innerNavigator");
p.isRightPaneOpen()&&p.toggle();window.document.onkeydown=function(s){s=s||window.event;var q=false;if(s.ctrlKey&&s.keyCode===79){p.toggle();q=true}if(q)if(window.document.all)s.keyCode=0;else{s.preventDefault();s.stopPropagation()}}}c.startup().then(function(p){var s=p.serviceRegistry;p=p.preferences;document.body.style.visibility="visible";b.parser.parse();new a.StatusReportingService(s,"statusPane","notifications");new e.DialogService(s);new g.Selection(s);new l.SshService(s);var q=new d.CommandService({serviceRegistry:s});
new f.GitService(s);var u=new h.Searcher({serviceRegistry:s,commandService:q});q.addCommandGroup("eclipse.gitGroup",100,null,null,"pageActions");q.registerCommandContribution("eclipse.cloneGitRepository",100,"pageActions","eclipse.gitGroup");q.registerCommandContribution("eclipse.initGitRepository",101,"pageActions","eclipse.gitGroup");q.addCommandGroup("eclipse.selectionGroup",500,"More actions",null,"selectionTools");q.registerCommandContribution("eclipse.git.deleteClone",1,"selectionTools","eclipse.selectionGroup");
q.addCommandGroup("eclipse.gitGroup2",1E3,"More");q.addCommandGroup("eclipse.gitGroup2.u1",2E3,null,"eclipse.gitGroup2");q.addCommandGroup("eclipse.gitGroup2.delete",3E3,null,"eclipse.gitGroup2");q.registerCommandContribution("eclipse.openGitStatus",100);q.registerCommandContribution("eclipse.openGitLogAll",200);q.registerCommandContribution("eclipse.openCloneContent",300,null,"eclipse.gitGroup2");q.registerCommandContribution("eclipse.git.deleteClone",400,null,"eclipse.gitGroup2/eclipse.gitGroup2.delete");
q.registerCommandContribution("eclipse.addRemote",100);q.registerCommandContribution("eclipse.removeRemote",400,null,"eclipse.gitGroup2/eclipse.gitGroup2.delete");q.registerCommandContribution("eclipse.addBranch",100);q.registerCommandContribution("eclipse.openGitLog",200);q.registerCommandContribution("eclipse.orion.git.fetch",201);q.registerCommandContribution("eclipse.orion.git.merge",202);q.registerCommandContribution("eclipse.checkoutBranch",301,null,"eclipse.gitGroup2/eclipse.gitGroup2.u1");
q.registerCommandContribution("eclipse.orion.git.rebase",302,null,"eclipse.gitGroup2/eclipse.gitGroup2.u1");q.registerCommandContribution("eclipse.orion.git.push",303,null,"eclipse.gitGroup2/eclipse.gitGroup2.u1");q.registerCommandContribution("eclipse.orion.git.pushto",304,null,"eclipse.gitGroup2/eclipse.gitGroup2.u1");q.registerCommandContribution("eclipse.orion.git.resetIndex",305,null,"eclipse.gitGroup2/eclipse.gitGroup2.u1");q.registerCommandContribution("eclipse.removeBranch",400,null,"eclipse.gitGroup2/eclipse.gitGroup2.delete");
q.registerCommandContribution("eclipse.removeRemoteBranch",400,null,"eclipse.gitGroup2/eclipse.gitGroup2.delete");q.registerCommandContribution("eclipse.checkoutTag",100);var y=new m.CloneDetails({parent:"cloneDetailsPane",serviceRegistry:s,detailsPane:dijit.byId("orion.innerNavigator")}),C=new r.GitClonesExplorer(s,null,y,"clonesList","pageActions");k.generateBanner("toolbar",s,q,p,u,C);var v=new j.FileClient(s,function(w){return(w=w.getProperty("pattern"))&&w.indexOf("/")===0});v.loadWorkspace().then(function(w){C.setDefaultPath(w.Location);
n.createFileCommands(s,q,C,"pageActions","selectionTools");n.createGitClonesCommands(s,q,C,"pageActions","selectionTools",v);n.updateNavTools(s,C,"pageActions","selectionTools",{});C.displayClonesList(b.hash());b.subscribe("/dojo/hashchange",C,function(){C.displayClonesList(b.hash())})});o(navigator)})});