/*
 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 c(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"],h=0,i;i=g[h++];)console[i]||function(){var n=i+"";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 j=a;if(typeof d=="undefined")d={_scopeName:"dijit"};if(typeof e=="undefined")e={_scopeName:"dojox"};if(!j._scopeArgs)j._scopeArgs=[a,d,e];j.global=this;j.config={isDebug:false,debugAtAllCosts:false};if(g=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var k in g)j.config[k]=g[k];a.locale=j.config.locale;k="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:k?+k[0]:NaN,toString:function(){with(j.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",j.version.toString());var l,m,p={};for(h 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 q,u,r;for(q in o){u=o[q];
if(!(q in n)||n[q]!==u&&(!(q in p)||p[q]!==u))n[q]=u}if(m&&o)for(r=0;r<m;++r){q=l[r];u=o[q];if(!(q in n)||n[q]!==u&&(!(q in p)||p[q]!==u))n[q]=u}return n};a.mixin=function(n){n||(n={});for(var o=1,q=arguments.length;o<q;o++)j._mixin(n,arguments[o]);return n};a._getProp=function(n,o,q){q=q||j.global;for(var u=0,r;q&&(r=n[u]);u++){if(u==0&&j._scopeMap[r])r=j._scopeMap[r];q=r in q?q[r]:o?(q[r]={}):undefined}return q};a.setObject=function(n,o,q){var u=n.split(".");n=u.pop();return(q=j._getProp(u,true,
q))&&n?(q[n]=o):undefined};a.getObject=function(n,o,q){return j._getProp(n.split("."),o,q)};a.exists=function(n,o){return j.getObject(n,false,o)!==undefined};a.eval=function(n){return j.global.eval?j.global.eval(n):eval(n)};j.deprecated=j.experimental=function(){}})();return{dojo:a,dijit:d,dojox:e}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=c();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var f=c();dojo=f.dojo;dijit=f.dijit;dojox=f.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(c,f){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++];f[e]=function(n){return function(){console.warn("dojo."+n+" not available when using an AMD loader.")}}(e)}var g=function(n){var o=[],q;for(q=0;q<n.length;)o.push(n[q++]);
return o},h=function(n,o){return o?typeof o=="string"?function(){n[o]()}:function(){o.call(n)}:n};f.ready=f.addOnLoad=function(n,o){c.ready(o?h(n,o):n)};f.addOnLoad(function(){f.postLoad=f.config.afterOnLoad=true});if(a=f.config.addOnLoad)f.addOnLoad[a instanceof Array?"apply":"call"](f,a);var i=f._loaders=[],j=function(){var n=i.slice(0);for(Array.prototype.splice.apply(i,[0,i.length]);n.length;)n.shift().call()};i.unshift=function(){Array.prototype.unshift.apply(i,g(arguments));c.ready(j)};i.splice=
function(){Array.prototype.splice.apply(i,g(arguments));c.ready(j)};var k=f._unloaders=[];f.unloaded=function(){for(;k.length;)k.pop().call()};f._onto=function(n,o,q){n.push(q?h(o,q):o)};f._modulesLoaded=function(){};f.loadInit=function(n){n()};var l=function(n){return n.replace(/\./g,"/")};f.getL10nName=function(n,o,q){q=q?q.toLowerCase():f.locale;n="i18n!"+l(n);return/root/i.test(q)?n+"/nls/"+o:n+"/nls/"+q+"/"+o};f.requireLocalization=function(n,o,q){if(c.vendor!="altoviso.com")q=!q||q.toLowerCase()===
f.locale?"root":q;return c(f.getL10nName(n,o,q))};f.i18n={getLocalization:f.requireLocalization,normalizeLocale:function(n){n=n?n.toLowerCase():f.locale;if(n=="root")n="ROOT";return n}};var m=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,p=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;f._Url=function(){for(var n=arguments,o=[n[0]],q=1;q<n.length;q++)if(n[q]){var u=new f._Url(n[q]+"");o=new f._Url(o[0]+"");if(u.path==""&&!u.scheme&&!u.authority&&!u.query){if(u.fragment!=
null)o.fragment=u.fragment;u=o}else if(!u.scheme){u.scheme=o.scheme;if(!u.authority){u.authority=o.authority;if(u.path.charAt(0)!="/"){o=(o.path.substring(0,o.path.lastIndexOf("/")+1)+u.path).split("/");for(var r=0;r<o.length;r++)if(o[r]==".")if(r==o.length-1)o[r]="";else{o.splice(r,1);r--}else if(r>0&&!(r==1&&o[0]=="")&&o[r]==".."&&o[r-1]!="..")if(r==o.length-1){o.splice(r,1);o[r-1]=""}else{o.splice(r-1,2);r-=2}u.path=o.join("/")}}}o=[];u.scheme&&o.push(u.scheme,":");u.authority&&o.push("//",u.authority);
o.push(u.path);u.query&&o.push("?",u.query);u.fragment&&o.push("#",u.fragment)}this.uri=o.join("");q=this.uri.match(m);this.scheme=q[2]||(q[1]?"":null);this.authority=q[4]||(q[3]?"":null);this.path=q[5];this.query=q[7]||(q[6]?"":null);this.fragment=q[9]||(q[8]?"":null);if(this.authority!=null){q=this.authority.match(p);this.user=q[3]||null;this.password=q[4]||null;this.host=q[6]||q[7];this.port=q[9]||null}};f._Url.prototype.toString=function(){return this.uri};f.moduleUrl=function(n,o){if(!n)return null;
n=l(n)+(o?"/"+o:"");o="";var q=n.match(/(.+)(\.[^\/]*)$/);if(q){n=q[1];o=q[2]}return new f._Url(c.nameToUrl(n,o))};return f});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(c){if(typeof window!="undefined"){c.isBrowser=true;c._name="browser";(function(){var a=c;if(document&&document.getElementsByTagName)for(var d=document.getElementsByTagName("script"),e=/dojo(\.xd)?\.js(\W|$)/i,g=0;g<d.length;g++){var h=d[g].getAttribute("src");if(h){var i=h.match(e);if(i){if(!a.config.baseUrl)a.config.baseUrl=h.substring(0,i.index);if(d=d[g].getAttribute("djConfig")||d[g].getAttribute("data-dojo-config")){d=
eval("({ "+d+" })");for(var j in d)c.config[j]=d[j]}break}}}a.baseUrl=a.config.baseUrl;j=navigator;d=j.userAgent;e=j.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((h=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!c.isChrome){a.isSafari=parseFloat(e.split("Version/")[1]);
if(!a.isSafari||parseFloat(e.substr(h+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(c.isIE&&window.location.protocol==="file:")c.config.ieForceActiveXXhr=true;a.isQuirks=document.compatMode=="BackCompat";a.locale=
c.config.locale||(a.isIE?j.userLanguage:j.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var q,u;if(!c.isIE||!c.config.ieForceActiveXXhr)try{q=new XMLHttpRequest}catch(r){}if(!q)for(var s=0;s<3;++s){var x=a._XMLHTTP_PROGIDS[s];try{q=new ActiveXObject(x)}catch(v){u=v}if(q){a._XMLHTTP_PROGIDS=[x];break}}if(!q)throw new Error("XMLHTTP not available: "+u);return q};a._isDocumentOk=function(q){q=q.status||0;var u=location.protocol;
return q>=200&&q<300||q==304||q==1223||!q&&(u=="file:"||u=="chrome:"||u=="chrome-extension:"||u=="app:")};var k=window.location+"";var l=(j=document.getElementsByTagName("base"))&&j.length>0;a._getText=function(q,u){var r=a._xhrObj();if(!l&&c._Url)q=(new c._Url(k,q)).toString();if(a.config.cacheBust){q+="";q+=(q.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}r.open("GET",q,false);try{r.send(null);if(!a._isDocumentOk(r)){var s=Error("Unable to load "+q+" status:"+r.status);
s.status=r.status;s.responseText=r.responseText;throw s;}}catch(x){if(u)return null;throw x;}return r.responseText};var m=window,p=function(q,u){var r=m.attachEvent||m.addEventListener;q=m.attachEvent?q:q.substring(2);r(q,function(){u.apply(m,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var q=a._windowUnloaders;q.length;)q.pop()();a=null};var n=0;a.addOnWindowUnload=function(q,u){a._onto(a._windowUnloaders,q,u);if(!n){n=1;p("onunload",a.windowUnloaded)}};var o=0;a.addOnUnload=
function(q,u){a._onto(a._unloaders,q,u);if(!o){o=1;p("onbeforeunload",c.unloaded)}}})();c._initFired=false;c._loadInit=function(){if(c._scrollIntervalId){clearInterval(c._scrollIntervalId);c._scrollIntervalId=0}if(!c._initFired){c._initFired=true;!c.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",c._loadInit);c._inFlightCount==0&&c._modulesLoaded()}};if(!c.config.afterOnLoad)if(document.addEventListener){document.addEventListener("DOMContentLoaded",c._loadInit,false);window.addEventListener("load",
c._loadInit,false)}else if(window.attachEvent){window.attachEvent("onload",c._loadInit);if(!c.config.skipIeDomLoaded&&self===self.top)c._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");c._loadInit()}}catch(a){}},30)}if(c.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(c.isIE>=8){d=
1;e=a.length}for(;d<e;++d)g.addRule("v\\:"+a[d],"behavior:url(#default#VML); display:inline-block")})()}catch(f){}}(function(){var a=c.config.modulePaths;if(a)for(var d in a)c.registerModulePath(d,a[d])})();c.config.isDebug&&c.require("dojo._firebug.firebug");if(c.config.debugAtAllCosts){c.require("dojo._base._loader.loader_debug");c.require("dojo.i18n")}return c});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(c){return dojo=c});
define("dojo/_base/lang",["dojo/lib/kernel"],function(c){(function(){var f=Object.prototype.toString;c.isString=function(j){return typeof j=="string"||j instanceof String};c.isArray=function(j){return j&&(j instanceof Array||typeof j=="array")};c.isFunction=function(j){return f.call(j)==="[object Function]"};c.isObject=function(j){return j!==undefined&&(j===null||typeof j=="object"||c.isArray(j)||c.isFunction(j))};c.isArrayLike=function(j){return j&&j!==undefined&&!c.isString(j)&&!c.isFunction(j)&&
!(j.tagName&&j.tagName.toLowerCase()=="form")&&(c.isArray(j)||isFinite(j.length))};c.isAlien=function(j){return j&&!c.isFunction(j)&&/\{\s*\[native code\]\s*\}/.test(String(j))};c.extend=function(j){for(var k=1,l=arguments.length;k<l;k++)c._mixin(j.prototype,arguments[k]);return j};c._hitchArgs=function(j,k){var l=c._toArray(arguments,2),m=c.isString(k);return function(){var p=c._toArray(arguments),n=m?(j||c.global)[k]:k;return n&&n.apply(j||this,l.concat(p))}};c.hitch=function(j,k){if(arguments.length>
2)return c._hitchArgs.apply(c,arguments);if(!k){k=j;j=null}if(c.isString(k)){j=j||c.global;if(!j[k])throw['dojo.hitch: scope["',k,'"] is null (scope="',j,'")'].join("");return function(){return j[k].apply(j,arguments||[])}}return!j?k:function(){return k.apply(j,arguments||[])}};c.delegate=c._delegate=function(){function j(){}return function(k,l){j.prototype=k;k=new j;j.prototype=null;l&&c._mixin(k,l);return k}}();var a=function(j,k,l){return(l||[]).concat(Array.prototype.slice.call(j,k||0))},d=function(j,
k,l){l=l||[];for(k=k||0;k<j.length;k++)l.push(j[k]);return l};c._toArray=c.isIE?function(j){return(j.item?d:a).apply(this,arguments)}:a;c.partial=function(){return c.hitch.apply(c,[null].concat(c._toArray(arguments)))};var e=c._extraNames,g=e.length,h={};c.clone=function(j){if(!j||typeof j!="object"||c.isFunction(j))return j;if(j.nodeType&&"cloneNode"in j)return j.cloneNode(true);if(j instanceof Date)return new Date(j.getTime());if(j instanceof RegExp)return new RegExp(j);var k,l,m,p;if(c.isArray(j)){k=
[];l=0;for(m=j.length;l<m;++l)l in j&&k.push(c.clone(j[l]))}else k=j.constructor?new j.constructor:{};for(p in j){m=j[p];if(!(p in k)||k[p]!==m&&(!(p in h)||h[p]!==m))k[p]=c.clone(m)}if(g)for(l=0;l<g;++l){p=e[l];m=j[p];if(!(p in k)||k[p]!==m&&(!(p in h)||h[p]!==m))k[p]=m}return k};c.trim=String.prototype.trim?function(j){return j.trim()}:function(j){return j.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var i=/\{([^\}]+)\}/g;c.replace=function(j,k,l){return j.replace(l||i,c.isFunction(k)?k:function(m,
p){return c.getObject(p,false,k)})}})();return c});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(c){(function(){var f=function(d,e,g){return[typeof d=="string"?d.split(""):d,e||c.global,typeof g=="string"?new Function("item","index","array",g):g]},a=function(d,e,g,h){var i=f(e,h,g);e=i[0];g=0;for(h=e.length;g<h;++g){var j=!!i[2].call(i[1],e[g],g,e);if(d^j)return j}return d};c.mixin(c,{indexOf:function(d,e,g,h){var i=1,j=d.length||0,k=0;if(h){k=j-1;i=j=-1}if(g!=undefined)k=g;if(h&&k>j||k<j)for(;k!=j;k+=i)if(d[k]==e)return k;
return-1},lastIndexOf:function(d,e,g){return c.indexOf(d,e,g,true)},forEach:function(d,e,g){if(d&&d.length){var h=f(d,g,e);d=h[0];e=0;for(g=d.length;e<g;++e)h[2].call(h[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,h){var i=f(d,g,e);d=i[0];e=h?new h:[];g=0;for(h=d.length;g<h;++g)e.push(i[2].call(i[1],d[g],g,d));return e},filter:function(d,e,g){var h=f(d,g,e);d=h[0];e=[];g=0;for(var i=d.length;g<i;++g)h[2].call(h[1],d[g],g,
d)&&e.push(d[g]);return e}})})();return c});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(c){(function(){function f(F,H){throw new Error("declare"+(H?" "+H:"")+": "+F);}function a(F,H){for(var A=[],D=[{cls:0,refs:[]}],G={},I=1,E=F.length,L=0,N,O,R,Y,aa;L<E;++L){if(N=F[L])s.call(N)!="[object Function]"&&f("mixin #"+L+" is not a callable constructor.",H);else f("mixin #"+L+" is unknown. Did you use dojo.require to pull it in?",H);O=N._meta?N._meta.bases:[N];R=0;for(N=O.length-1;N>=0;--N){Y=O[N].prototype;
if(!Y.hasOwnProperty("declaredClass"))Y.declaredClass="uniqName_"+v++;Y=Y.declaredClass;if(!G.hasOwnProperty(Y)){G[Y]={count:0,refs:[],cls:O[N]};++I}Y=G[Y];if(R&&R!==Y){Y.refs.push(R);++R.count}R=Y}++R.count;D[0].refs.push(R)}for(;D.length;){R=D.pop();A.push(R.cls);for(--I;aa=R.refs,aa.length==1;){R=aa[0];if(!R||--R.count){R=0;break}A.push(R.cls);--I}if(R){L=0;for(E=aa.length;L<E;++L){R=aa[L];--R.count||D.push(R)}}}I&&f("can't build consistent linearization",H);N=F[0];A[0]=N?N._meta&&N===A[A.length-
N._meta.bases.length]?N._meta.bases.length:1:0;return A}function d(F,H,A){var D,G,I,E,L,N,O,R=this._inherited=this._inherited||{};if(typeof F=="string"){D=F;F=H;H=A}A=0;E=F.callee;(D=D||E.nom)||f("can't deduce a name to call inherited()",this.declaredClass);L=this.constructor._meta;I=L.bases;O=R.p;if(D!=y){if(R.c!==E){O=0;N=I[0];L=N._meta;if(L.hidden[D]!==E){(G=L.chains)&&typeof G[D]=="string"&&f("calling chained method with inherited: "+D,this.declaredClass);do{L=N._meta;G=N.prototype;if(L&&(G[D]===
E&&G.hasOwnProperty(D)||L.hidden[D]===E))break}while(N=I[++O]);O=N?O:-1}}if(N=I[++O]){G=N.prototype;if(N._meta&&G.hasOwnProperty(D))A=G[D];else{E=r[D];do{G=N.prototype;if((A=G[D])&&(N._meta?G.hasOwnProperty(D):A!==E))break}while(N=I[++O])}}A=N&&A||r[D]}else{if(R.c!==E){O=0;if((L=I[0]._meta)&&L.ctor!==E){G=L.chains;if(!G||G.constructor!=="manual")f("calling chained constructor with inherited",this.declaredClass);for(;N=I[++O];)if((L=N._meta)&&L.ctor===E)break;O=N?O:-1}}for(;N=I[++O];)if(A=(L=N._meta)?
L.ctor:N)break;A=N&&A}R.c=A;R.p=O;if(A)return H===true?A:A.apply(this,H||F)}function e(F,H){if(typeof F=="string")return this.inherited(F,H,true);return this.inherited(F,true)}function g(F){for(var H=this.constructor._meta.bases,A=0,D=H.length;A<D;++A)if(H[A]===F)return true;return this instanceof F}function h(F,H){var A,D=0,G=q._extraNames.length;for(A in H)if(A!=y&&H.hasOwnProperty(A))F[A]=H[A];for(;D<G;++D){A=q._extraNames[D];if(A!=y&&H.hasOwnProperty(A))F[A]=H[A]}}function i(F,H){var A,D,G=0,
I=q._extraNames.length;for(A in H){D=H[A];if((D!==r[A]||!(A in r))&&A!=y){if(s.call(D)=="[object Function]")D.nom=A;F[A]=D}}for(;G<I;++G){A=q._extraNames[G];D=H[A];if((D!==r[A]||!(A in r))&&A!=y){if(s.call(D)=="[object Function]")D.nom=A;F[A]=D}}return F}function j(F){i(this.prototype,F);return this}function k(F,H){return function(){var A=arguments,D=A,G=A[0],I,E;E=F.length;var L;if(!(this instanceof A.callee))return o(A);if(H&&(G&&G.preamble||this.preamble)){L=new Array(F.length);L[0]=A;for(I=0;;){if(G=
A[0])if(G=G.preamble)A=G.apply(this,A)||A;G=F[I].prototype;if(G=G.hasOwnProperty("preamble")&&G.preamble)A=G.apply(this,A)||A;if(++I==E)break;L[I]=A}}for(I=E-1;I>=0;--I){G=F[I];if(G=(E=G._meta)?E.ctor:G)G.apply(this,L?L[I]:A)}(G=this.postscript)&&G.apply(this,D)}}function l(F,H){return function(){var A=arguments,D=A,G=A[0];if(!(this instanceof A.callee))return o(A);if(H){if(G)if(G=G.preamble)D=G.apply(this,D)||D;(G=this.preamble)&&G.apply(this,D)}F&&F.apply(this,A);(G=this.postscript)&&G.apply(this,
A)}}function m(F){return function(){var H=arguments,A=0,D,G;if(!(this instanceof H.callee))return o(H);for(;D=F[A];++A)if(D=(G=D._meta)?G.ctor:D){D.apply(this,H);break}(D=this.postscript)&&D.apply(this,H)}}function p(F,H,A){return function(){var D,G,I=0,E=1;if(A){I=H.length-1;E=-1}for(;D=H[I];I+=E){G=D._meta;(D=(G?G.hidden:D.prototype)[F])&&D.apply(this,arguments)}}}function n(F){x.prototype=F.prototype;F=new x;x.prototype=null;return F}function o(F){var H=F.callee,A=n(H);H.apply(A,F);return A}var q=
c,u=q._mixin,r=Object.prototype,s=r.toString,x=new Function,v=0,y="constructor";q.declare=function(F,H,A){if(typeof F!="string"){A=H;H=F;F=""}A=A||{};var D,G,I,E,L,N,O,R=1,Y=H;if(s.call(H)=="[object Array]"){N=a(H,F);I=N[0];R=N.length-I;H=N[R]}else{N=[0];if(H)if(s.call(H)=="[object Function]"){I=H._meta;N=N.concat(I?I.bases:H)}else f("base class is not a callable constructor.",F);else H!==null&&f("unknown base class. Did you use dojo.require to pull it in?",F)}if(H)for(G=R-1;;--G){D=n(H);if(!G)break;
I=N[G];(I._meta?h:u)(D,I.prototype);E=new Function;E.superclass=H;E.prototype=D;H=D.constructor=E}else D={};i(D,A);I=A.constructor;if(I!==r.constructor){I.nom=y;D.constructor=I}for(G=R-1;G;--G)if((I=N[G]._meta)&&I.chains)O=u(O||{},I.chains);if(D["-chains-"])O=u(O||{},D["-chains-"]);I=!O||!O.hasOwnProperty(y);N[0]=E=O&&O.constructor==="manual"?m(N):N.length==1?l(A.constructor,I):k(N,I);E._meta={bases:N,hidden:A,chains:O,parents:Y,ctor:A.constructor};E.superclass=H&&H.prototype;E.extend=j;E.prototype=
D;D.constructor=E;D.getInherited=e;D.inherited=d;D.isInstanceOf=g;if(F){D.declaredClass=F;q.setObject(F,E)}if(O)for(L in O)if(D[L]&&typeof O[L]=="string"&&L!=y){I=D[L]=p(L,N,O[L]==="after");I.nom=L}return E};q.safeMixin=i})();return c.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(c){c._listener={getDispatcher:function(){return function(){var f=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 f||d[e].apply(this,arguments);return a}},add:function(f,a,d){f=f||c.global;var e=f[a];if(!e||!e._listeners){var g=c._listener.getDispatcher();g.target=e;g._listeners=[];e=f[a]=g}return e._listeners.push(d)},remove:function(f,a,d){(f=(f||
c.global)[a])&&f._listeners&&d--&&delete f._listeners[d]}};c.connect=function(){var f=arguments,a=[],d=0;a.push(c.isString(f[0])?null:f[d++],f[d++]);var e=f[d+1];a.push(c.isString(e)||c.isFunction(e)?f[d++]:null,f[d++]);for(e=f.length;d<e;d++)a.push(f[d]);return c._connect.apply(this,a)};c._connect=function(f,a,d,e){var g=c._listener;d=g.add(f,a,c.hitch(d,e));return[f,a,d,g]};c.disconnect=function(f){if(f&&f[0]!==undefined){c._disconnect.apply(this,f);delete f[0]}};c._disconnect=function(f,a,d,e){e.remove(f,
a,d)};c._topics={};c.subscribe=function(f,a,d){return[f,c._listener.add(c._topics,f,c.hitch(a,d))]};c.unsubscribe=function(f){f&&c._listener.remove(c._topics,f[0],f[1])};c.publish=function(f,a){if(f=c._topics[f])f.apply(this,a||[])};c.connectPublisher=function(f,a,d){var e=function(){c.publish(f,arguments)};return d?c.connect(a,d,e):c.connect(a,e)};return c.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(c){(function(){var f=function(){},a=Object.freeze||function(){};c.Deferred=function(d){function e(n){if(i)throw new Error("This deferred has already been resolved");h=n;i=true;g()}function g(){for(var n;!n&&l;){var o=l;l=l.next;if(n=o.progress==f)i=false;var q=j?o.error:o.resolved;if(q)try{var u=q(h);if(u&&typeof u.then==="function")u.then(c.hitch(o.deferred,"resolve"),c.hitch(o.deferred,"reject"));else{q=n&&u===undefined;
if(n&&!q)j=u instanceof Error;o.deferred[q&&j?"reject":"resolve"](q?h:u)}}catch(r){o.deferred.reject(r)}else j?o.deferred.reject(h):o.deferred.resolve(h)}}var h,i,j,k,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){j=true;this.fired=1;e(n);this.results=[null,n];if(!n||n.log!==false)(c.config.deferredOnError||function(o){console.error(o)})(n)};this.progress=function(n){for(var o=l;o;){var q=o.progress;q&&q(n);
o=o.next}};this.addCallbacks=function(n,o){this.then(n,o,f);return this};this.then=m.then=function(n,o,q){var u=q==f?this:new c.Deferred(m.cancel);n={resolved:n,error:o,progress:q,deferred:u};if(l)k=k.next=n;else l=k=n;i&&g();return u.promise};var p=this;this.cancel=m.cancel=function(){if(!i){var n=d&&d(p);if(!i){n instanceof Error||(n=new Error(n));n.log=false;p.reject(n)}}};a(m)};c.extend(c.Deferred,{addCallback:function(){return this.addCallbacks(c.hitch.apply(c,arguments))},addErrback:function(){return this.addCallbacks(null,
c.hitch.apply(c,arguments))},addBoth:function(){var d=c.hitch.apply(c,arguments);return this.addCallbacks(d,d)},fired:-1})})();c.when=function(f,a,d,e){if(f&&typeof f.then==="function")return f.then(a,d,e);return a(f)};return c.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(c){c.fromJson=function(f){return eval("("+f+")")};c._escapeString=function(f){return('"'+f.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};c.toJsonIndentStr="\t";c.toJson=function(f,a,d){if(f===undefined)return"undefined";var e=typeof f;if(e=="number"||e=="boolean")return f+"";if(f===null)return"null";if(c.isString(f))return c._escapeString(f);var g=
arguments.callee,h;d=d||"";var i=a?d+c.toJsonIndentStr:"";h=f.__json__||f.json;if(c.isFunction(h)){h=h.call(f);if(f!==h)return g(h,a,i)}if(f.nodeType&&f.cloneNode)throw new Error("Can't serialize DOM nodes");h=a?" ":"";var j=a?"\n":"";if(c.isArray(f))return"["+c.map(f,function(p){p=g(p,a,i);if(typeof p!="string")p="undefined";return j+i+p}).join(","+h)+j+d+"]";if(e=="function")return null;e=[];var k;for(k in f){var l,m;if(typeof k=="number")l='"'+k+'"';else if(typeof k=="string")l=c._escapeString(k);
else continue;m=g(f[k],a,i);typeof m=="string"&&e.push(j+i+l+":"+h+m)}return"{"+e.join(","+h)+j+d+"}"};return c});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(c){(function(){c.Color=function(f){f&&this.setColor(f)};c.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:c.config.transparentColor||[255,255,255]};c.extend(c.Color,
{r:255,g:255,b:255,a:1,_set:function(f,a,d,e){this.r=f;this.g=a;this.b=d;this.a=e},setColor:function(f){if(c.isString(f))c.colorFromString(f,this);else if(c.isArray(f))c.colorFromArray(f,this);else{this._set(f.r,f.g,f.b,f.a);f instanceof c.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"#"+c.map(["r","g","b"],function(f){f=this[f].toString(16);return f.length<
2?"0"+f:f},this).join("")},toCss:function(f){var a=this.r+", "+this.g+", "+this.b;return(f?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});c.blendColors=function(f,a,d,e){var g=e||new c.Color;c.forEach(["r","g","b","a"],function(h){g[h]=f[h]+(a[h]-f[h])*d;if(h!="a")g[h]=Math.round(g[h])});return g.sanitize()};c.colorFromRgb=function(f,a){return(f=f.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&c.colorFromArray(f[1].split(/\s*,\s*/),a)};c.colorFromHex=function(f,
a){var d=a||new c.Color,e=f.length==4?4:8,g=(1<<e)-1;f=Number("0x"+f.substr(1));if(isNaN(f))return null;c.forEach(["b","g","r"],function(h){var i=f&g;f>>=e;d[h]=e==4?17*i:i});d.a=1;return d};c.colorFromArray=function(f,a){a=a||new c.Color;a._set(Number(f[0]),Number(f[1]),Number(f[2]),Number(f[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};c.colorFromString=function(f,a){var d=c.Color.named[f];return d&&c.colorFromArray(d,a)||c.colorFromRgb(f,a)||c.colorFromHex(f,a)}})();return c.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(c){c.doc=window.document||null;c.body=function(){return c.doc.body||c.doc.getElementsByTagName("body")[0]};c.setContext=function(f,a){c.global=f;c.doc=a};c.withGlobal=function(f,a,d,e){var g=c.global;try{c.global=f;return c.withDoc.call(null,f.document,a,d,e)}finally{c.global=g}};c.withDoc=function(f,a,d,e){var g=c.doc,h=c._bodyLtr,i=c.isQuirks;try{c.doc=f;delete c._bodyLtr;c.isQuirks=c.doc.compatMode=="BackCompat";if(d&&typeof a=="string")a=
d[a];return a.apply(d,e||[])}finally{c.doc=g;delete c._bodyLtr;if(h!==undefined)c._bodyLtr=h;c.isQuirks=i}};return c});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(c){(function(){var f=c._event_listener={add:function(j,k,l){if(j){k=f._normalizeEventName(k);l=f._fixCallback(k,l);if(!c.isIE&&(k=="mouseenter"||k=="mouseleave")){var m=l;k=k=="mouseenter"?"mouseover":"mouseout";l=function(p){if(!c.isDescendant(p.relatedTarget,j))return m.call(this,p)}}j.addEventListener(k,l,false);return l}},remove:function(j,k,l){if(j){k=f._normalizeEventName(k);if(!c.isIE&&(k=="mouseenter"||k=="mouseleave"))k=
k=="mouseenter"?"mouseover":"mouseout";j.removeEventListener(k,l,false)}},_normalizeEventName:function(j){return j.slice(0,2)=="on"?j.slice(2):j},_fixCallback:function(j,k){return j!="keypress"?k:function(l){return k.call(this,f._fixEvent(l,this))}},_fixEvent:function(j){switch(j.type){case "keypress":f._setKeyChar(j);break}return j},_setKeyChar:function(j){j.keyChar=j.charCode>=32?String.fromCharCode(j.charCode):"";j.charOrCode=j.keyChar||j.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}};c.fixEvent=function(j,k){return f._fixEvent(j,k)};c.stopEvent=function(j){j.preventDefault();j.stopPropagation()};var a=c._listener;c._connect=function(j,k,l,m,p){p=j&&(j.nodeType||j.attachEvent||j.addEventListener)?p?2:1:0;l=[c._listener,f,a][p].add(j,k,c.hitch(l,m));return[j,k,l,p]};c._disconnect=function(j,k,l,m){[c._listener,f,a][m].remove(j,k,l)};c.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:c.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:c.isMac&&!c.isAIR?c.isSafari?91:224:17};var d=c.isMac?"metaKey":"ctrlKey";c.isCopyKey=function(j){return j[d]};c.mouseButtons=c.isIE<9||c.isIE&&c.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(j,k){return j.button&k},isLeft:function(j){return j.button&1},isMiddle:function(j){return j.button&4},isRight:function(j){return j.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(j,k){return j.button==k},isLeft:function(j){return j.button==
0},isMiddle:function(j){return j.button==1},isRight:function(j){return j.button==2}};if(c.isIE){var e=function(j,k){try{return j.keyCode=k}catch(l){return 0}},g=c._listener,h=c._ieListenersName="_"+c._scopeName+"_listeners";if(!c.config._allow_leaks){a=g=c._ie_listener={handlers:[],add:function(j,k,l){j=j||c.global;var m=j[k];if(!m||!m[h]){var p=c._getIeDispatcher();p.target=m&&i.push(m)-1;p[h]=[];m=j[k]=p}return m[h].push(i.push(l)-1)},remove:function(j,k,l){k=(j=(j||c.global)[k])&&j[h];if(j&&k&&
l--){delete i[k[l]];delete k[l]}}};var i=g.handlers}c.mixin(f,{add:function(j,k,l){if(j){k=f._normalizeEventName(k);if(k=="onkeypress"){var m=j.onkeydown;if(!m||!m[h]||!m._stealthKeydownHandle){var p=f.add(j,"onkeydown",f._stealthKeyDown);m=j.onkeydown;m._stealthKeydownHandle=p;m._stealthKeydownRefs=1}else m._stealthKeydownRefs++}return g.add(j,k,f._fixCallback(l))}},remove:function(j,k,l){k=f._normalizeEventName(k);g.remove(j,k,l);if(k=="onkeypress"){k=j.onkeydown;if(--k._stealthKeydownRefs<=0){g.remove(j,
"onkeydown",k._stealthKeydownHandle);delete k._stealthKeydownHandle}}},_normalizeEventName:function(j){return j.slice(0,2)!="on"?"on"+j:j},_nop:function(){},_fixEvent:function(j,k){if(!j)j=(k&&(k.ownerDocument||k.document||k).parentWindow||window).event;if(!j)return j;j.target=j.srcElement;j.currentTarget=k||j.srcElement;j.layerX=j.offsetX;j.layerY=j.offsetY;k=(k=j.srcElement)&&k.ownerDocument||document;k=c.isIE<6||k.compatMode=="BackCompat"?k.body:k.documentElement;var l=c._getIeDocumentElementOffset();
j.pageX=j.clientX+c._fixIeBiDiScrollLeft(k.scrollLeft||0)-l.x;j.pageY=j.clientY+(k.scrollTop||0)-l.y;if(j.type=="mouseover")j.relatedTarget=j.fromElement;if(j.type=="mouseout")j.relatedTarget=j.toElement;if(c.isIE<9||c.isQuirks){j.stopPropagation=f._stopPropagation;j.preventDefault=f._preventDefault}return f._fixKeys(j)},_fixKeys:function(j){switch(j.type){case "keypress":var k="charCode"in j?j.charCode:j.keyCode;if(k==10){k=0;j.keyCode=13}else if(k==13||k==27)k=0;else if(k==3)k=99;j.charCode=k;f._setKeyChar(j);
break}return j},_stealthKeyDown:function(j){var k=j.currentTarget.onkeypress;if(k&&k[h]){var l=j.keyCode,m=(l!=13||c.isIE>=9&&!c.isQuirks)&&l!=32&&l!=27&&(l<48||l>90)&&(l<96||l>111)&&(l<186||l>192)&&(l<219||l>222);if(m||j.ctrlKey){m=m?0:l;if(j.ctrlKey)if(l==3||l==13)return;else if(m>95&&m<106)m-=48;else if(!j.shiftKey&&m>=65&&m<=90)m+=32;else m=f._punctMap[m]||m;l=f._synthesizeEvent(j,{type:"keypress",faux:true,charCode:m});k.call(j.currentTarget,l);if(c.isIE<9||c.isIE&&c.isQuirks)j.cancelBubble=
l.cancelBubble;j.returnValue=l.returnValue;e(j,l.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=false}});c.stopEvent=c.isIE<9||c.isQuirks?function(j){j=j||window.event;f._stopPropagation.call(j);f._preventDefault.call(j)}:c.stopEvent}f._synthesizeEvent=function(j,k){k=c.mixin({},j,k);f._setKeyChar(k);k.preventDefault=function(){j.preventDefault()};k.stopPropagation=function(){j.stopPropagation()};
return k};c.isOpera&&c.mixin(f,{_fixEvent:function(j){switch(j.type){case "keypress":var k=j.which;if(k==3)k=99;k=k<41&&!j.shiftKey?0:k;if(j.ctrlKey&&!j.shiftKey&&k>=65&&k<=90)k+=32;return f._synthesizeEvent(j,{charCode:k})}return j}});if(c.isWebKit){f._add=f.add;f._remove=f.remove;c.mixin(f,{add:function(j,k,l){if(j){var m=f._add(j,k,l);if(f._normalizeEventName(k)=="keypress")m._stealthKeyDownHandle=f._add(j,"keydown",function(p){var n=p.keyCode,o=n!=13&&n!=32&&(n<48||n>90)&&(n<96||n>111)&&(n<186||
n>192)&&(n<219||n>222);if(o||p.ctrlKey){o=o?0:n;if(p.ctrlKey)if(n==3||n==13)return;else if(o>95&&o<106)o-=48;else if(!p.shiftKey&&o>=65&&o<=90)o+=32;else o=f._punctMap[o]||o;n=f._synthesizeEvent(p,{type:"keypress",faux:true,charCode:o});l.call(p.currentTarget,n)}});return m}},remove:function(j,k,l){if(j){l._stealthKeyDownHandle&&f._remove(j,"keydown",l._stealthKeyDownHandle);f._remove(j,k,l)}},_fixEvent:function(j){switch(j.type){case "keypress":if(j.faux)return j;var k=j.charCode;k=k>=32?k:0;return f._synthesizeEvent(j,
{charCode:k,faux:true})}return j}})}})();if(c.isIE){c._ieDispatcher=function(f,a){var d=Array.prototype,e=c._ie_listener.handlers,g=f.callee,h=g[c._ieListenersName];g=(g=e[g.target])&&g.apply(a,f);h=[].concat(h);for(var i in h){var j=e[h[i]];!(i in d)&&j&&j.apply(a,f)}return g};c._getIeDispatcher=function(){return new Function(c._scopeName+"._ieDispatcher(arguments, this)")};c._event_listener._fixCallback=function(f){var a=c._event_listener._fixEvent;return function(d){return f.call(this,a(d,this))}}}return c.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(c){try{document.execCommand("BackgroundImageCache",false,true)}catch(f){}c.byId=c.isIE?function(a,d){if(typeof a!="string")return a;var e=d||c.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 h=0;d=g[h++];)if(d.attributes&&d.attributes.id&&d.attributes.id.value==a||d.id==a)return d}}:function(a,d){return(typeof a=="string"?(d||c.doc).getElementById(a):
a)||null};(function(){var a=c.byId,d=null,e;c.addOnWindowUnload(function(){d=null});c._destroyElement=c.destroy=function(t){t=a(t);try{var w=t.ownerDocument;if(!d||e!=w){d=w.createElement("div");e=w}d.appendChild(t.parentNode?t.parentNode.removeChild(t):t);d.innerHTML=""}catch(B){}};c.isDescendant=function(t,w){try{t=a(t);for(w=a(w);t;){if(t==w)return true;t=t.parentNode}}catch(B){}return false};c.setSelectable=function(t,w){t=a(t);if(c.isMozilla)t.style.MozUserSelect=w?"":"none";else if(c.isKhtml||
c.isWebKit)t.style.KhtmlUserSelect=w?"auto":"none";else if(c.isIE){w=t.unselectable=w?"":"on";c.query("*",t).forEach("item.unselectable = '"+w+"'")}};var g=function(t,w){var B=w.parentNode;B&&B.insertBefore(t,w)},h=function(t,w){var B=w.parentNode;if(B)B.lastChild==w?B.appendChild(t):B.insertBefore(t,w.nextSibling)};c.place=function(t,w,B){w=a(w);if(typeof t=="string")t=/^\s*</.test(t)?c._toDom(t,w.ownerDocument):a(t);if(typeof B=="number"){var M=w.childNodes;!M.length||M.length<=B?w.appendChild(t):
g(t,M[B<0?0:B])}else switch(B){case "before":g(t,w);break;case "after":h(t,w);break;case "replace":w.parentNode.replaceChild(t,w);break;case "only":c.empty(w);w.appendChild(t);break;case "first":if(w.firstChild){g(t,w.firstChild);break}default:w.appendChild(t)}return t};c.boxModel="content-box";if(c.isIE)c.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var i;i=c.isWebKit?function(t){var w;if(t.nodeType==1){var B=t.ownerDocument.defaultView;w=B.getComputedStyle(t,null);if(!w&&
t.style){t.style.display="";w=B.getComputedStyle(t,null)}}return w||{}}:c.isIE?function(t){return t.nodeType==1?t.currentStyle:{}}:function(t){return t.nodeType==1?t.ownerDocument.defaultView.getComputedStyle(t,null):{}};c.getComputedStyle=i;c._toPixelValue=c.isIE?function(t,w){if(!w)return 0;if(w=="medium")return 4;if(w.slice&&w.slice(-2)=="px")return parseFloat(w);with(t){t=style.left;var B=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=w;w=style.pixelLeft}catch(M){w=0}style.left=
t;runtimeStyle.left=B}return w}:function(t,w){return parseFloat(w)||0};var j=c._toPixelValue,k=function(t,w){try{return t.filters.item("DXImageTransform.Microsoft.Alpha")}catch(B){return w?{}:null}};c._getOpacity=c.isIE<9?function(t){try{return k(t).Opacity/100}catch(w){return 1}}:function(t){return i(t).opacity};c._setOpacity=c.isIE<9?function(t,w){var B=w*100,M=w==1;t.style.zoom=M?"":1;if(k(t))k(t,1).Opacity=B;else{if(M)return w;t.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
B+")"}k(t,1).Enabled=!M;t.nodeName.toLowerCase()=="tr"&&c.query("> td",t).forEach(function(P){c._setOpacity(P,w)});return w}:function(t,w){return t.style.opacity=w};var l={left:true,top:true},m=/margin|padding|width|height|max|min|offset/,p=function(t,w,B){w=w.toLowerCase();if(c.isIE){if(B=="auto"){if(w=="height")return t.offsetHeight;if(w=="width")return t.offsetWidth}if(w=="fontweight")switch(B){case 700:return"bold";case 400:default:return"normal"}}w in l||(l[w]=m.test(w));return l[w]?j(t,B):B},
n=c.isIE?"styleFloat":"cssFloat",o={cssFloat:n,styleFloat:n,"float":n};c.style=function(t,w,B){var M=a(t),P=arguments.length,S=w=="opacity";w=o[w]||w;if(P==3)return S?c._setOpacity(M,B):(M.style[w]=B);if(P==2&&S)return c._getOpacity(M);S=i(M);if(P==2&&typeof w!="string"){for(var Z in w)c.style(t,Z,w[Z]);return S}return P==1?S:p(M,w,S[w]||M.style[w])};c._getPadExtents=function(t,w){w=w||i(t);var B=j(t,w.paddingLeft),M=j(t,w.paddingTop);return{l:B,t:M,w:B+j(t,w.paddingRight),h:M+j(t,w.paddingBottom)}};
c._getBorderExtents=function(t,w){w=w||i(t);var B=w.borderLeftStyle!="none"?j(t,w.borderLeftWidth):0,M=w.borderTopStyle!="none"?j(t,w.borderTopWidth):0;return{l:B,t:M,w:B+(w.borderRightStyle!="none"?j(t,w.borderRightWidth):0),h:M+(w.borderBottomStyle!="none"?j(t,w.borderBottomWidth):0)}};c._getPadBorderExtents=function(t,w){var B=w||i(t);w=c._getPadExtents(t,B);t=c._getBorderExtents(t,B);return{l:w.l+t.l,t:w.t+t.t,w:w.w+t.w,h:w.h+t.h}};c._getMarginExtents=function(t,w){w=w||i(t);var B=j(t,w.marginLeft),
M=j(t,w.marginTop),P=j(t,w.marginRight);t=j(t,w.marginBottom);if(c.isWebKit&&w.position!="absolute")P=B;return{l:B,t:M,w:B+P,h:M+t}};c._getMarginBox=function(t,w){var B=w||i(t);w=c._getMarginExtents(t,B);var M=t.offsetLeft-w.l,P=t.offsetTop-w.t,S=t.parentNode;if(c.isMoz){var Z=parseFloat(B.left);B=parseFloat(B.top);if(!isNaN(Z)&&!isNaN(B)){M=Z;P=B}else if(S&&S.style){Z=i(S);if(Z.overflow!="visible"){S=c._getBorderExtents(S,Z);M+=S.l;P+=S.t}}}else if(c.isOpera||c.isIE>7&&!c.isQuirks)if(S){S=c._getBorderExtents(S);
M-=S.l;P-=S.t}return{l:M,t:P,w:t.offsetWidth+w.w,h:t.offsetHeight+w.h}};c._getMarginSize=function(t,w){t=a(t);w=c._getMarginExtents(t,w||i(t));t=t.getBoundingClientRect();return{w:t.right-t.left+w.w,h:t.bottom-t.top+w.h}};c._getContentBox=function(t,w){var B=w||i(t);w=c._getPadExtents(t,B);B=c._getBorderExtents(t,B);var M=t.clientWidth;if(M){t=t.clientHeight;B.w=B.h=0}else{M=t.offsetWidth;t=t.offsetHeight}if(c.isOpera){w.l+=B.l;w.t+=B.t}return{l:w.l,t:w.t,w:M-w.w-B.w,h:t-w.h-B.h}};c._getBorderBox=
function(t,w){var B=w||i(t);w=c._getPadExtents(t,B);t=c._getContentBox(t,B);return{l:t.l-w.l,t:t.t-w.t,w:t.w+w.w,h:t.h+w.h}};c._setBox=function(t,w,B,M,P,S){S=S||"px";t=t.style;if(!isNaN(w))t.left=w+S;if(!isNaN(B))t.top=B+S;if(M>=0)t.width=M+S;if(P>=0)t.height=P+S};c._isButtonTag=function(t){return t.tagName=="BUTTON"||t.tagName=="INPUT"&&(t.getAttribute("type")||"").toUpperCase()=="BUTTON"};c._usesBorderBox=function(t){var w=t.tagName;return c.boxModel=="border-box"||w=="TABLE"||c._isButtonTag(t)};
c._setContentSize=function(t,w,B,M){if(c._usesBorderBox(t)){M=c._getPadBorderExtents(t,M);if(w>=0)w+=M.w;if(B>=0)B+=M.h}c._setBox(t,NaN,NaN,w,B)};c._setMarginBox=function(t,w,B,M,P,S){var Z=S||i(t);S=c._usesBorderBox(t)?q:c._getPadBorderExtents(t,Z);if(c.isWebKit)if(c._isButtonTag(t)){var ga=t.style;if(M>=0&&!ga.width)ga.width="4px";if(P>=0&&!ga.height)ga.height="4px"}Z=c._getMarginExtents(t,Z);if(M>=0)M=Math.max(M-S.w-Z.w,0);if(P>=0)P=Math.max(P-S.h-Z.h,0);c._setBox(t,w,B,M,P)};var q={l:0,t:0,w:0,
h:0};c.marginBox=function(t,w){t=a(t);var B=i(t);return!w?c._getMarginBox(t,B):c._setMarginBox(t,w.l,w.t,w.w,w.h,B)};c.contentBox=function(t,w){t=a(t);var B=i(t);return!w?c._getContentBox(t,B):c._setContentSize(t,w.w,w.h,B)};c._docScroll=function(){var t=c.global;return"pageXOffset"in t?{x:t.pageXOffset,y:t.pageYOffset}:(t=c.isQuirks?c.doc.body:c.doc.documentElement,{x:c._fixIeBiDiScrollLeft(t.scrollLeft||0),y:t.scrollTop||0})};c._isBodyLtr=function(){return"_bodyLtr"in c?c._bodyLtr:(c._bodyLtr=(c.body().dir||
c.doc.documentElement.dir||"ltr").toLowerCase()=="ltr")};c._getIeDocumentElementOffset=function(){var t=c.doc.documentElement;if(c.isIE<8){var w=t.getBoundingClientRect(),B=w.left;w=w.top;if(c.isIE<7){B+=t.clientLeft;w+=t.clientTop}return{x:B<0?0:B,y:w<0?0:w}}else return{x:0,y:0}};c._fixIeBiDiScrollLeft=function(t){var w=c.isIE;if(w&&!c._isBodyLtr()){var B=c.isQuirks,M=B?c.doc.body:c.doc.documentElement;if(w==6&&!B&&c.global.frameElement&&M.scrollHeight>M.clientHeight)t+=M.clientLeft;return w<8||
B?t+M.clientWidth-M.scrollWidth:-t}return t};c._abs=c.position=function(t,w){t=a(t);var B=c.body(),M=B.parentNode;t=t.getBoundingClientRect();t={x:t.left,y:t.top,w:t.right-t.left,h:t.bottom-t.top};if(c.isIE){M=c._getIeDocumentElementOffset();t.x-=M.x+(c.isQuirks?B.clientLeft+B.offsetLeft:0);t.y-=M.y+(c.isQuirks?B.clientTop+B.offsetTop:0)}else if(c.isFF==3){B=i(M);t.x-=j(M,B.marginLeft)+j(M,B.borderLeftWidth);t.y-=j(M,B.marginTop)+j(M,B.borderTopWidth)}if(w){w=c._docScroll();t.x+=w.x;t.y+=w.y}return t};
c.coords=function(t,w){t=a(t);var B=i(t);B=c._getMarginBox(t,B);w=c.position(t,w);B.x=w.x;B.y=w.y;return B};var u={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},s={innerHTML:1,className:1,htmlFor:c.isIE,value:1},x=function(t){return r[t.toLowerCase()]||t},v=function(t,w){return(t=t.getAttributeNode&&t.getAttributeNode(w))&&
t.specified};c.hasAttr=function(t,w){var B=w.toLowerCase();return s[u[B]||w]||v(a(t),r[B]||w)};var y={},F=0,H=c._scopeName+"attrid",A={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};c.attr=function(t,w,B){t=a(t);var M=arguments.length;if(M==2&&typeof w!="string"){for(var P in w)c.attr(t,P,w[P]);return t}var S=w.toLowerCase();P=u[S]||w;var Z=s[P];S=r[S]||w;if(M==3){if(P=="style"&&typeof B!="string")c.style(t,B);else if(P=="innerHTML")if(c.isIE&&t.tagName.toLowerCase()in A){c.empty(t);
t.appendChild(c._toDom(B,t.ownerDocument))}else t[P]=B;else if(c.isFunction(B)){M=c.attr(t,H);if(!M){M=F++;c.attr(t,H,M)}y[M]||(y[M]={});if(Z=y[M][P])c.disconnect(Z);else try{delete t[P]}catch(ga){}y[M][P]=c.connect(t,P,B)}else if(Z||typeof B=="boolean")t[P]=B;else t.setAttribute(S,B);return t}B=t[P];if(Z&&typeof B!="undefined")return B;if(P!="href"&&(typeof B=="boolean"||c.isFunction(B)))return B;return v(t,S)?t.getAttribute(S):null};c.removeAttr=function(t,w){a(t).removeAttribute(x(w))};c.getNodeProp=
function(t,w){t=a(t);var B=w.toLowerCase(),M=u[B]||w;if(M in t&&M!="href")return t[M];w=r[B]||w;return v(t,w)?t.getAttribute(w):null};c.create=function(t,w,B,M){var P=c.doc;if(B){B=a(B);P=B.ownerDocument}if(typeof t=="string")t=P.createElement(t);w&&c.attr(t,w);B&&c.place(t,B,M);return t};c.empty=c.isIE?function(t){t=a(t);for(var w;w=t.lastChild;)c.destroy(w)}:function(t){a(t).innerHTML=""};var D={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\:]+)/,I={},E=0,L="__"+c._scopeName+"ToDomId";for(var N in D)if(D.hasOwnProperty(N)){var O=D[N];O.pre=N=="option"?'<select multiple="multiple">':"<"+O.join("><")+">";O.post="</"+O.reverse().join("></")+">"}c._toDom=function(t,w){w=w||c.doc;var B=w[L];if(!B){w[L]=B=++E+"";I[B]=w.createElement("div")}t+="";var M=t.match(G),P=M?M[1].toLowerCase():"";B=I[B];if(M&&D[P]){M=
D[P];B.innerHTML=M.pre+t+M.post;for(t=M.length;t;--t)B=B.firstChild}else B.innerHTML=t;if(B.childNodes.length==1)return B.removeChild(B.firstChild);for(t=w.createDocumentFragment();w=B.firstChild;)t.appendChild(w);return t};var R="className";c.hasClass=function(t,w){return(" "+a(t)[R]+" ").indexOf(" "+w+" ")>=0};var Y=/\s+/,aa=[""],$={},la=function(t){if(typeof t=="string"||t instanceof String)if(t.indexOf(" ")<0){aa[0]=t;return aa}else return t.split(Y);return t||""};c.addClass=function(t,w){t=a(t);
w=la(w);var B=t[R],M;B=B?" "+B+" ":" ";M=B.length;for(var P=0,S=w.length,Z;P<S;++P)if((Z=w[P])&&B.indexOf(" "+Z+" ")<0)B+=Z+" ";if(M<B.length)t[R]=B.substr(1,B.length-2)};c.removeClass=function(t,w){t=a(t);var B;if(w!==undefined){w=la(w);B=" "+t[R]+" ";for(var M=0,P=w.length;M<P;++M)B=B.replace(" "+w[M]+" "," ");B=c.trim(B)}else B="";if(t[R]!=B)t[R]=B};c.replaceClass=function(t,w,B){t=a(t);$.className=t.className;c.removeClass($,B);c.addClass($,w);if(t.className!==$.className)t.className=$.className};
c.toggleClass=function(t,w,B){if(B===undefined)B=!c.hasClass(t,w);c[B?"addClass":"removeClass"](t,w)}})();return c});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(c){(function(){var f=Array.prototype,a=f.slice,d=f.concat,e=function(n,o,q){n.sort||(n=a.call(n,0));q=q||this._NodeListCtor||c._NodeListCtor;n.constructor=q;c._mixin(n,q.prototype);n._NodeListCtor=q;return o?n._stash(o):n},g=function(n,o,q){o=[0].concat(a.call(o,0));q=q||c.global;return function(u){o[0]=u;return n.apply(q,o)}},h=function(n,o){return function(){this.forEach(g(n,
arguments,o));return this}},i=function(n,o){return function(){return this.map(g(n,arguments,o))}},j=function(n,o,q){return function(){var u=arguments,r=g(n,u,q);if(o.call(q||c.global,u))return this.map(r);this.forEach(r);return this}},k=function(n){return n.length==1&&typeof n[0]=="string"},l=function(n){var o=n.parentNode;o&&o.removeChild(n)};c.NodeList=function(){return e(Array.apply(null,arguments))};var m=c._NodeListCtor=c.NodeList,p=m.prototype;m._wrap=p._wrap=e;m._adaptAsMap=i;m._adaptAsForEach=
h;m._adaptAsFilter=function(n,o){return function(){return this.filter(g(n,arguments,o))}};m._adaptWithCondition=j;c.forEach(["slice","splice"],function(n){var o=f[n];p[n]=function(){return this._wrap(o.apply(this,arguments),n=="slice"?this:null)}});c.forEach(["indexOf","lastIndexOf","every","some"],function(n){var o=c[n];p[n]=function(){return o.apply(c,[this].concat(a.call(arguments,0)))}});c.forEach(["attr","style"],function(n){p[n]=j(c[n],k)});c.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(n){p[n]=h(c[n])});c.extend(c.NodeList,{_normalize:function(n,o){var q=n.parse===true?true:false;if(typeof n.template=="string"){var u=n.templateFunc||c.string&&c.string.substitute;n=u?u(n.template,n):n}u=typeof n;if(u=="string"||u=="number"){n=c._toDom(n,o&&o.ownerDocument);n=n.nodeType==11?c._toArray(n.childNodes):[n]}else if(c.isArrayLike(n))c.isArray(n)||(n=c._toArray(n));else n=[n];if(q)n._runParse=true;return n},_cloneNode:function(n){return n.cloneNode(true)},
_place:function(n,o,q,u){if(!(o.nodeType!=1&&q=="only")){o=o;for(var r,s=n.length,x=s-1;x>=0;x--){var v=u?this._cloneNode(n[x]):n[x];if(n._runParse&&c.parser&&c.parser.parse){r||(r=o.ownerDocument.createElement("div"));r.appendChild(v);c.parser.parse(r);for(v=r.firstChild;r.firstChild;)r.removeChild(r.firstChild)}x==s-1?c.place(v,o,q):o.parentNode.insertBefore(v,o);o=v}}},_stash:function(n){this._parent=n;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var n=
c.isArray(this)?this:a.call(this,0),o=c.map(arguments,function(q){return q&&!c.isArray(q)&&(typeof NodeList!="undefined"&&q.constructor===NodeList||q.constructor===this._NodeListCtor)?a.call(q,0):q});return this._wrap(d.apply(n,o),this)},map:function(n,o){return this._wrap(c.map(this,n,o),this)},forEach:function(n,o){c.forEach(this,n,o);return this},coords:i(c.coords),position:i(c.position),place:function(n,o){var q=c.query(n)[0];return this.forEach(function(u){c.place(u,q,o)})},orphan:function(n){return(n?
c._filterQueryResult(this,n):this).forEach(l)},adopt:function(n,o){return c.query(n).place(this[0],o)._stash(this)},query:function(n){if(!n)return this;var o=this.map(function(q){return c.query(n,q).filter(function(u){return u!==undefined})});return this._wrap(d.apply([],o),this)},filter:function(n){var o=arguments,q=this,u=0;if(typeof n=="string"){q=c._filterQueryResult(this,o[0]);if(o.length==1)return q._stash(this);u=1}return this._wrap(c.filter(q,o[u],o[u+1]),this)},addContent:function(n,o){n=
this._normalize(n,this[0]);for(var q=0,u;u=this[q];q++)this._place(n,u,o,q>0);return this},instantiate:function(n,o){var q=c.isFunction(n)?n:c.getObject(n);o=o||{};return this.forEach(function(u){new q(o,u)})},at:function(){var n=new this._NodeListCtor;c.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"];c.forEach(m.events,function(n){var o="on"+n;p[o]=function(q,u){return this.connect(o,q,u)}})})();return c.NodeList});
(function(){var c=function(a){var d=a.trim,e=a.forEach,g=a._NodeListCtor=a.NodeList,h=function(){return a.doc},i=(a.isWebKit||a.isMozilla)&&h().compatMode=="BackCompat",j=h().firstChild.children?"children":"childNodes",k=false,l=function(){return true},m=function(z){z+=">~+".indexOf(z.slice(-1))>=0?" * ":" ";for(var C=function(na,oa){return d(z.slice(na,oa))},J=[],K=-1,Q=-1,U=-1,V=-1,T=-1,W=-1,ca=-1,ea="",da="",ia,ba=0,pa=z.length,X=null,fa=null,qa=function(){if(ca>=0){var na=ca==ba?null:C(ca,ba);
X[">~+".indexOf(na)<0?"tag":"oper"]=na;ca=-1}},ra=function(){if(W>=0){X.id=C(W,ba).replace(/\\/g,"");W=-1}},sa=function(){if(T>=0){X.classes.push(C(T+1,ba).replace(/\\/g,""));T=-1}},ma=function(){ra();qa();sa()},ta=function(){ma();V>=0&&X.pseudos.push({name:C(V+1,ba)});X.loops=X.pseudos.length||X.attrs.length||X.classes.length;X.oquery=X.query=C(ia,ba);X.otag=X.tag=X.oper?null:X.tag||"*";if(X.tag)X.tag=X.tag.toUpperCase();if(J.length&&J[J.length-1].oper){X.infixOper=J.pop();X.query=X.infixOper.query+
" "+X.query}J.push(X);X=null};ea=da,da=z.charAt(ba),ba<pa;ba++)if(ea!="\\"){if(!X){ia=ba;X={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return k?this.otag:this.tag}};ca=ba}if(K>=0)if(da=="]"){if(fa.attr)fa.matchFor=C(U||K+1,ba);else fa.attr=C(K+1,ba);if(K=fa.matchFor)if(K.charAt(0)=='"'||K.charAt(0)=="'")fa.matchFor=K.slice(1,-1);X.attrs.push(fa);fa=null;K=U=-1}else{if(da=="="){U="|~^$*".indexOf(ea)>=0?ea:"";fa.type=U+da;fa.attr=C(K+1,ba-U.length);U=ba+1}}else if(Q>=
0){if(da==")"){if(V>=0)fa.value=C(Q+1,ba);V=Q=-1}}else if(da=="#"){ma();W=ba+1}else if(da=="."){ma();T=ba}else if(da==":"){ma();V=ba}else if(da=="["){ma();K=ba;fa={}}else if(da=="("){if(V>=0){fa={name:C(V+1,ba),value:null};X.pseudos.push(fa)}Q=ba}else da==" "&&ea!=da&&ta()}return J},p=function(z,C){if(!z)return C;if(!C)return z;return function(){return z.apply(window,arguments)&&C.apply(window,arguments)}},n=function(z,C){C=C||[];z&&C.push(z);return C},o=function(z){return 1==z.nodeType},q=function(z,
C){if(!z)return"";if(C=="class")return z.className||"";if(C=="for")return z.htmlFor||"";if(C=="style")return z.style.cssText||"";return(k?z.getAttribute(C):z.getAttribute(C,2))||""},u={"*=":function(z,C){return function(J){return q(J,z).indexOf(C)>=0}},"^=":function(z,C){return function(J){return q(J,z).indexOf(C)==0}},"$=":function(z,C){return function(J){J=" "+q(J,z);return J.lastIndexOf(C)==J.length-C.length}},"~=":function(z,C){var J=" "+C+" ";return function(K){return(" "+q(K,z)+" ").indexOf(J)>=
0}},"|=":function(z,C){var J=" "+C+"-";return function(K){K=" "+q(K,z);return K==C||K.indexOf(J)==0}},"=":function(z,C){return function(J){return q(J,z)==C}}},r=typeof h().firstChild.nextElementSibling=="undefined",s=!r?"nextElementSibling":"nextSibling",x=!r?"previousElementSibling":"previousSibling",v=r?o:l,y=function(z){for(;z=z[x];)if(v(z))return false;return true},F=function(z){for(;z=z[s];)if(v(z))return false;return true},H=function(z){var C=z.parentNode,J=0,K=C[j],Q=z._i||-1,U=C._l||-1;if(!K)return-1;
K=K.length;if(U==K&&Q>=0&&U>=0)return Q;C._l=K;Q=-1;for(C=C.firstElementChild||C.firstChild;C;C=C[s])if(v(C)){C._i=++J;if(z===C)Q=J}return Q},A=function(z){return!(H(z)%2)},D=function(z){return H(z)%2},G={checked:function(){return function(z){return!!("checked"in z?z.checked:z.selected)}},"first-child":function(){return y},"last-child":function(){return F},"only-child":function(){return function(z){if(!y(z))return false;if(!F(z))return false;return true}},empty:function(){return function(z){var C=
z.childNodes;for(z=z.childNodes.length-1;z>=0;z--){var J=C[z].nodeType;if(J===1||J==3)return false}return true}},contains:function(z,C){z=C.charAt(0);if(z=='"'||z=="'")C=C.slice(1,-1);return function(J){return J.innerHTML.indexOf(C)>=0}},not:function(z,C){z=m(C)[0];C={el:1};if(z.tag!="*")C.tag=1;if(!z.classes.length)C.classes=1;var J=E(z,C);return function(K){return!J(K)}},"nth-child":function(z,C){z=parseInt;if(C=="odd")return D;else if(C=="even")return A;if(C.indexOf("n")!=-1){C=C.split("n",2);
var J=C[0]?C[0]=="-"?-1:z(C[0]):1,K=C[1]?z(C[1]):0,Q=0,U=-1;if(J>0)if(K<0)K=K%J&&J+K%J;else{if(K>0){if(K>=J)Q=K-K%J;K%=J}}else if(J<0){J*=-1;if(K>0){U=K;K%=J}}if(J>0)return function(T){T=H(T);return T>=Q&&(U<0||T<=U)&&T%J==K};else C=K}var V=z(C);return function(T){return H(T)==V}}},I=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(z){var C=z.toLowerCase();if(C=="class")z="className";return function(J){return k?J.getAttribute(z):J[z]||J[C]}}:function(z){return function(C){return C&&C.getAttribute&&C.hasAttribute(z)}},
E=function(z,C){if(!z)return l;C=C||{};var J=null;"el"in C||(J=p(J,o));if(!("tag"in C))if(z.tag!="*")J=p(J,function(K){return K&&K.tagName==z.getTag()});"classes"in C||e(z.classes,function(K,Q){var U=new RegExp("(?:^|\\s)"+K+"(?:\\s|$)");J=p(J,function(V){return U.test(V.className)});J.count=Q});"pseudos"in C||e(z.pseudos,function(K){var Q=K.name;if(G[Q])J=p(J,G[Q](Q,K.value))});"attrs"in C||e(z.attrs,function(K){var Q,U=K.attr;if(K.type&&u[K.type])Q=u[K.type](U,K.matchFor);else if(U.length)Q=I(U);
if(Q)J=p(J,Q)});if(!("id"in C))if(z.id)J=p(J,function(K){return!!K&&K.id==z.id});J||"default"in C||(J=l);return J},L=function(z){return function(C,J,K){for(;C=C[s];)if(!(r&&!o(C))){if((!K||ja(C,K))&&z(C))J.push(C);break}return J}},N=function(z){return function(C,J,K){for(C=C[s];C;){if(v(C)){if(K&&!ja(C,K))break;z(C)&&J.push(C)}C=C[s]}return J}},O=function(z){z=z||l;return function(C,J,K){for(var Q=0,U=C[j];C=U[Q++];)if(v(C)&&(!K||ja(C,K))&&z(C,Q))J.push(C);return J}},R=function(z,C){for(z=z.parentNode;z;){if(z==
C)break;z=z.parentNode}return!!z},Y={},aa=function(z){var C=Y[z.query];if(C)return C;var J=z.infixOper;J=J?J.oper:"";var K=E(z,{el:1}),Q="*"==z.tag,U=h().getElementsByClassName;if(J){U={el:1};if(Q)U.tag=1;K=E(z,U);if("+"==J)C=L(K);else if("~"==J)C=N(K);else if(">"==J)C=O(K)}else if(z.id){K=!z.loops&&Q?l:E(z,{el:1,id:1});C=function(T,W){var ca=a.byId(z.id,T.ownerDocument||T);if(ca&&K(ca))if(9==T.nodeType)return n(ca,W);else if(R(ca,T))return n(ca,W)}}else if(U&&/\{\s*\[native code\]\s*\}/.test(String(U))&&
z.classes.length&&!i){K=E(z,{el:1,classes:1,id:1});var V=z.classes.join(" ");C=function(T,W,ca){W=n(0,W);for(var ea,da=0,ia=T.getElementsByClassName(V);ea=ia[da++];)K(ea,T)&&ja(ea,ca)&&W.push(ea);return W}}else if(!Q&&!z.loops)C=function(T,W,ca){W=n(0,W);for(var ea=0,da=T.getElementsByTagName(z.getTag());T=da[ea++];)ja(T,ca)&&W.push(T);return W};else{K=E(z,{el:1,tag:1,id:1});C=function(T,W,ca){W=n(0,W);for(var ea,da=0,ia=T.getElementsByTagName(z.getTag());ea=ia[da++];)K(ea,T)&&ja(ea,ca)&&W.push(ea);
return W}}return Y[z.query]=C},$=function(z,C){z=n(z);for(var J,K,Q=C.length,U,V,T=0;T<Q;T++){V=[];J=C[T];K=z.length-1;if(K>0){U={};V.nozip=true}K=aa(J);for(var W=0;J=z[W];W++)K(J,V,U);if(!V.length)break;z=V}return V},la={},t={},w=function(z){var C=m(d(z));if(C.length==1){var J=aa(C[0]);return function(K){if(K=J(K,new g))K.nozip=true;return K}}return function(K){return $(K,C)}},B=navigator.userAgent;B=a.isWebKit&&B.indexOf("WebKit/")>0&&parseFloat(B.split("WebKit/")[1])>528;var M=a.isIE?"commentStrip":
"nozip",P=!!h().querySelectorAll&&(!a.isSafari||a.isSafari>3.1||B),S=/n\+\d|([^ ])?([>~+])([^ =])?/g,Z=function(z,C,J,K){return J?(C?C+" ":"")+J+(K?" "+K:""):z},ga=function(z,C){z=z.replace(S,Z);if(P){var J=t[z];if(J&&!C)return J}if(J=la[z])return J;J=z.charAt(0);var K=-1==z.indexOf(" ");if(z.indexOf("#")>=0&&K)C=true;if(P&&!C&&">~+".indexOf(J)==-1&&(!a.isIE||z.indexOf(":")==-1)&&!(i&&z.indexOf(".")>=0)&&z.indexOf(":contains")==-1&&z.indexOf(":checked")==-1&&z.indexOf("|=")==-1){var Q=">~+".indexOf(z.charAt(z.length-
1))>=0?z+" *":z;return t[z]=function(V){try{if(!(9==V.nodeType||K))throw"";var T=V.querySelectorAll(Q);T[M]=true;return T}catch(W){return ga(z,true)(V)}}}else{var U=z.split(/\s*,\s*/);return la[z]=U.length<2?w(z):function(V){for(var T=0,W=[],ca;ca=U[T++];)W=W.concat(w(ca)(V));return W}}},ha=0,ua=a.isIE?function(z){return k?z.getAttribute("_uid")||z.setAttribute("_uid",++ha)||ha:z.uniqueID}:function(z){return z._uid||(z._uid=++ha)},ja=function(z,C){if(!C)return 1;z=ua(z);if(!C[z])return C[z]=1;return 0},
ka="_zipIdx",va=function(z){if(z&&z.nozip)return g._wrap?g._wrap(z):z;var C=new g;if(!z||!z.length)return C;z[0]&&C.push(z[0]);if(z.length<2)return C;ha++;if(a.isIE&&k){var J=ha+"";z[0].setAttribute(ka,J);for(var K=1,Q;Q=z[K];K++){z[K].getAttribute(ka)!=J&&C.push(Q);Q.setAttribute(ka,J)}}else if(a.isIE&&z.commentStrip)try{for(K=1;Q=z[K];K++)o(Q)&&C.push(Q)}catch(U){}else{if(z[0])z[0][ka]=ha;for(K=1;Q=z[K];K++){z[K][ka]!=ha&&C.push(Q);Q[ka]=ha}}return C};a.query=function(z,C){g=a._NodeListCtor;if(!z)return new g;
if(z.constructor==g)return z;if(typeof z!="string")return new g(z);if(typeof C=="string"){C=a.byId(C);if(!C)return new g}C=C||h();var J=C.ownerDocument||C.documentElement;k=C.contentType&&C.contentType=="application/xml"||a.isOpera&&(C.doctype||J.toString()=="[object XMLDocument]")||!!J&&(a.isIE?J.xml:C.xmlVersion||J.xmlVersion);if((z=ga(z)(C))&&z.nozip&&!g._wrap)return z;return va(z)};a.query.pseudos=G;a._filterQueryResult=function(z,C,J){var K=new a._NodeListCtor,Q=m(C);Q=Q.length==1&&!/[^\w#\.]/.test(C)?
E(Q[0]):function(T){return dojo.query(C,J).indexOf(T)!=-1};for(var U=0,V;V=z[U];U++)Q(V)&&K.push(V);return K}},f=function(){acme={trim:function(g){g=g.replace(/^\s+/,"");for(var h=g.length-1;h>=0;h--)if(/\S/.test(g.charAt(h))){g=g.substring(0,h+1);break}return g},forEach:function(g,h,i){if(g&&g.length)for(var j=0,k=g.length;j<k;++j)h.call(i||window,g[j],j,g)},byId:function(g,h){return typeof g=="string"?(h||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){c(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");c(this.queryPortability||this.acme||dojo)}else c(this.queryPortability||this.acme||f())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(c){(function(){function f(r,s,x){if(x!==null){var v=r[s];if(typeof v=="string")r[s]=[v,x];else if(a.isArray(v))v.push(x);else r[s]=x}}var a=c,d=a.config;c.fieldToObject=function(r){var s=null;if(r=a.byId(r)){var x=r.name,v=(r.type||"").toLowerCase();if(x&&v&&!r.disabled)if(v=="radio"||v=="checkbox"){if(r.checked)s=r.value}else if(r.multiple){s=[];a.query("option",r).forEach(function(y){y.selected&&
s.push(y.value)})}else s=r.value}return s};c.formToObject=function(r){var s={};a.forEach(c.byId(r).elements,function(x){var v=x.name,y=(x.type||"").toLowerCase();if(v&&y&&"file|submit|image|reset|button|".indexOf(y)==-1&&!x.disabled){f(s,v,a.fieldToObject(x));if(y=="image")s[v+".x"]=s[v+".y"]=s[v].x=s[v].y=0}});return s};c.objectToQuery=function(r){var s=encodeURIComponent,x=[],v={};for(var y in r){var F=r[y];if(F!=v[y]){var H=s(y)+"=";if(a.isArray(F))for(var A=0;A<F.length;A++)x.push(H+s(F[A]));
else x.push(H+s(F))}}return x.join("&")};c.formToQuery=function(r){return a.objectToQuery(a.formToObject(r))};c.formToJson=function(r,s){return a.toJson(a.formToObject(r),s)};c.queryToObject=function(r){var s={};r=r.split("&");var x=decodeURIComponent;a.forEach(r,function(v){if(v.length){var y=v.split("=");v=x(y.shift());y=x(y.join("="));if(typeof s[v]=="string")s[v]=[s[v]];if(a.isArray(s[v]))s[v].push(y);else s[v]=y}});return s};c._blockAsync=false;var e=a._contentHandlers=c.contentHandlers={text:function(r){return r.responseText},
json:function(r){return a.fromJson(r.responseText||null)},"json-comment-filtered":function(r){c.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.");r=r.responseText;var s=r.indexOf("/*"),x=r.lastIndexOf("*/");if(s==-1||x==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(r.substring(s+2,x))},javascript:function(r){return a.eval(r.responseText)},xml:function(r){var s=r.responseXML;if(a.isIE&&(!s||!s.documentElement)){var x=function(v){return"MSXML"+v+".DOMDocument"};x=["Microsoft.XMLDOM",x(6),x(4),x(3),x(2)];a.some(x,function(v){try{var y=new ActiveXObject(v);y.async=false;y.loadXML(r.responseText);s=y}catch(F){return false}return true})}return s},"json-comment-optional":function(r){return r.responseText&&/^[^{\[]*\/\*/.test(r.responseText)?e["json-comment-filtered"](r):
e.json(r)}};c._ioSetArgs=function(r,s,x,v){var y={args:r,url:r.url},F=null;if(r.form){F=a.byId(r.form);var H=F.getAttributeNode("action");y.url=y.url||(H?H.value:null);F=a.formToObject(F)}H=[{}];F&&H.push(F);r.content&&H.push(r.content);r.preventCache&&H.push({"dojo.preventCache":(new Date).valueOf()});y.query=a.objectToQuery(a.mixin.apply(null,H));y.handleAs=r.handleAs||"text";var A=new a.Deferred(s);A.addCallbacks(x,function(E){return v(E,A)});var D=r.load;D&&a.isFunction(D)&&A.addCallback(function(E){return D.call(r,
E,y)});var G=r.error;G&&a.isFunction(G)&&A.addErrback(function(E){return G.call(r,E,y)});var I=r.handle;I&&a.isFunction(I)&&A.addBoth(function(E){return I.call(r,E,y)});if(d.ioPublish&&a.publish&&y.args.ioPublish!==false){A.addCallbacks(function(E){a.publish("/dojo/io/load",[A,E]);return E},function(E){a.publish("/dojo/io/error",[A,E]);return E});A.addBoth(function(E){a.publish("/dojo/io/done",[A,E]);return E})}A.ioArgs=y;return A};var g=function(r){r.canceled=true;var s=r.ioArgs.xhr,x=typeof s.abort;
if(x=="function"||x=="object"||x=="unknown")s.abort();r=r.ioArgs.error;if(!r){r=new Error("xhr cancelled");r.dojoType="cancel"}return r},h=function(r){r=e[r.ioArgs.handleAs](r.ioArgs.xhr);return r===undefined?null:r},i=function(r,s){s.ioArgs.args.failOk||console.error(r);return r},j=null,k=[],l=0,m=function(r){if(l<=0){l=0;if(d.ioPublish&&a.publish&&(!r||r&&r.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},p=function(){var r=(new Date).getTime();if(!a._blockAsync)for(var s=0,x;s<k.length&&
(x=k[s]);s++){var v=x.dfd,y=function(){if(!v||v.canceled||!x.validCheck(v)){k.splice(s--,1);l-=1}else if(x.ioCheck(v)){k.splice(s--,1);x.resHandle(v);l-=1}else if(v.startTime)if(v.startTime+(v.ioArgs.args.timeout||0)<r){k.splice(s--,1);var H=new Error("timeout exceeded");H.dojoType="timeout";v.errback(H);v.cancel();l-=1}};if(c.config.debugAtAllCosts)y.call(this);else try{y.call(this)}catch(F){v.errback(F)}}m(v);if(!k.length){clearInterval(j);j=null}};c._ioCancelAll=function(){try{a.forEach(k,function(s){try{s.dfd.cancel()}catch(x){}})}catch(r){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(r){if(d.ioPublish&&a.publish&&r.ioArgs.args.ioPublish!==false){l||a.publish("/dojo/io/start");l+=1;a.publish("/dojo/io/send",[r])}};a._ioWatch=function(r,s,x,v){var y=r.ioArgs.args;if(y.timeout)r.startTime=(new Date).getTime();k.push({dfd:r,validCheck:s,ioCheck:x,resHandle:v});j||(j=setInterval(p,50));y.sync&&p()};var n="application/x-www-form-urlencoded",o=function(r){return r.ioArgs.xhr.readyState},q=function(r){return 4==r.ioArgs.xhr.readyState},
u=function(r){var s=r.ioArgs.xhr;if(a._isDocumentOk(s))r.callback(r);else{var x=new Error("Unable to load "+r.ioArgs.url+" status:"+s.status);x.status=s.status;x.responseText=s.responseText;r.errback(x)}};c._ioAddQueryToUrl=function(r){if(r.query.length){r.url+=(r.url.indexOf("?")==-1?"?":"&")+r.query;r.query=null}};c.xhr=function(r,s,x){var v=a._ioSetArgs(s,g,h,i),y=v.ioArgs,F=y.xhr=a._xhrObj(y.args);if(!F){v.cancel();return v}if("postData"in s)y.query=s.postData;else if("putData"in s)y.query=s.putData;
else if("rawBody"in s)y.query=s.rawBody;else if(arguments.length>2&&!x||"POST|PUT".indexOf(r.toUpperCase())==-1)a._ioAddQueryToUrl(y);F.open(r,y.url,s.sync!==true,s.user||undefined,s.password||undefined);if(s.headers)for(var H in s.headers)if(H.toLowerCase()==="content-type"&&!s.contentType)s.contentType=s.headers[H];else s.headers[H]&&F.setRequestHeader(H,s.headers[H]);F.setRequestHeader("Content-Type",s.contentType||n);if(!s.headers||!("X-Requested-With"in s.headers))F.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(v);if(c.config.debugAtAllCosts)F.send(y.query);else try{F.send(y.query)}catch(A){y.error=A;v.cancel()}a._ioWatch(v,o,q,u);return v};c.xhrGet=function(r){return a.xhr("GET",r)};c.rawXhrPost=c.xhrPost=function(r){return a.xhr("POST",r,true)};c.rawXhrPut=c.xhrPut=function(r){return a.xhr("PUT",r,true)};c.xhrDelete=function(r){return a.xhr("DELETE",r)}})();return c.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(c){(function(){var f=c._mixin;c._Line=function(i,j){this.start=i;this.end=j};c._Line.prototype.getValue=function(i){return(this.end-this.start)*i+this.start};c.Animation=function(i){f(this,i);if(c.isArray(this.curve))this.curve=new c._Line(this.curve[0],this.curve[1])};c._Animation=c.Animation;c.extend(c.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var i=this._percent,j=this.easing;return j?j(i):i},_fire:function(i,j){j=j||[];if(this[i])if(c.config.debugAtAllCosts)this[i].apply(this,j);else try{this[i].apply(this,j)}catch(k){console.error("exception in animation handler for:",i);console.error(k)}return this},play:function(i,j){var k=this;k._delayTimer&&k._clearTimer();if(j){k._stopTimer();k._active=k._paused=false;k._percent=0}else if(k._active&&!k._paused)return k;k._fire("beforeBegin",[k.node]);i=i||k.delay;var l=c.hitch(k,
"_play",j);if(i>0){k._delayTimer=setTimeout(l,i);return k}l();return k},_play:function(){var i=this;i._delayTimer&&i._clearTimer();i._startTime=(new Date).valueOf();if(i._paused)i._startTime-=i.duration*i._percent;i._active=true;i._paused=false;var j=i.curve.getValue(i._getStep());if(!i._percent){if(!i._startRepeatCount)i._startRepeatCount=i.repeat;i._fire("onBegin",[j])}i._fire("onPlay",[j]);i._cycle();return i},pause:function(){var i=this;i._delayTimer&&i._clearTimer();i._stopTimer();if(!i._active)return i;
i._paused=true;i._fire("onPause",[i.curve.getValue(i._getStep())]);return i},gotoPercent:function(i,j){var k=this;k._stopTimer();k._active=k._paused=true;k._percent=i;j&&k.play();return k},stop:function(i){var j=this;j._delayTimer&&j._clearTimer();if(!j._timer)return j;j._stopTimer();if(i)j._percent=1;j._fire("onStop",[j.curve.getValue(j._getStep())]);j._active=j._paused=false;return j},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var i=
this;if(i._active){var j=((new Date).valueOf()-i._startTime)/i.duration;if(j>=1)j=1;i._percent=j;if(i.easing)j=i.easing(j);i._fire("onAnimate",[i.curve.getValue(j)]);if(i._percent<1)i._startTimer();else{i._active=false;if(i.repeat>0){i.repeat--;i.play(null,true)}else if(i.repeat==-1)i.play(null,true);else if(i._startRepeatCount){i.repeat=i._startRepeatCount;i._startRepeatCount=0}i._percent=0;i._fire("onEnd",[i.node]);!i.repeat&&i._stopTimer()}}return i},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,d=null,e={run:function(){}};c.extend(c.Animation,{_startTimer:function(){if(!this._timer){this._timer=c.connect(e,"run",this,"_cycle");a++}d||(d=setInterval(c.hitch(e,"run"),this.rate))},_stopTimer:function(){if(this._timer){c.disconnect(this._timer);this._timer=null;a--}if(a<=0){clearInterval(d);d=null;a=0}}});var g=c.isIE?function(i){var j=i.style;if(!j.width.length&&c.style(i,"width")=="auto")j.width="auto"}:function(){};c._fade=function(i){i.node=c.byId(i.node);
var j=f({properties:{}},i);i=j.properties.opacity={};i.start=!("start"in j)?function(){return+c.style(j.node,"opacity")||0}:j.start;i.end=j.end;i=c.animateProperty(j);c.connect(i,"beforeBegin",c.partial(g,j.node));return i};c.fadeIn=function(i){return c._fade(f({end:1},i))};c.fadeOut=function(i){return c._fade(f({end:0},i))};c._defaultEasing=function(i){return 0.5+Math.sin((i+1.5)*Math.PI)/2};var h=function(i){this._properties=i;for(var j in i){var k=i[j];if(k.start instanceof c.Color)k.tempColor=
new c.Color}};h.prototype.getValue=function(i){var j={};for(var k in this._properties){var l=this._properties[k],m=l.start;if(m instanceof c.Color)j[k]=c.blendColors(m,l.end,i,l.tempColor).toCss();else c.isArray(m)||(j[k]=(l.end-m)*i+m+(k!="opacity"?l.units||"px":0))}return j};c.animateProperty=function(i){var j=i.node=c.byId(i.node);if(!i.easing)i.easing=c._defaultEasing;i=new c.Animation(i);c.connect(i,"beforeBegin",i,function(){var k={};for(var l in this.properties){if(l=="width"||l=="height")this.node.display=
"block";var m=this.properties[l];if(c.isFunction(m))m=m(j);m=k[l]=f({},c.isObject(m)?m:{end:m});if(c.isFunction(m.start))m.start=m.start(j);if(c.isFunction(m.end))m.end=m.end(j);var p=l.toLowerCase().indexOf("color")>=0,n=function(o,q){var u={height:o.offsetHeight,width:o.offsetWidth}[q];if(u!==undefined)return u;u=c.style(o,q);return q=="opacity"?+u:p?u:parseFloat(u)};if("end"in m){if(!("start"in m))m.start=n(j,l)}else m.end=n(j,l);if(p){m.start=new c.Color(m.start);m.end=new c.Color(m.end)}else m.start=
l=="opacity"?+m.start:parseFloat(m.start)}this.curve=new h(k)});c.connect(i,"onAnimate",c.hitch(c,"style",i.node));return i};c.anim=function(i,j,k,l,m,p){return c.animateProperty({node:i,duration:k||c.Animation.prototype.duration,properties:j,easing:l,onEnd:m}).play(p||0)}})();return c.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(c){return c});
define("orion/serviceregistry",["dojo"],function(c){function f(h,i,j){this.serviceId=h;this.name=i;this.properties=j}function a(h,i,j){this.serviceId=h;this.serviceReference=i;this.internalRegistry=j}function d(h,i,j){this.serviceId=h;this.implementation=i;this.internalRegistry=j;var k;for(k in i)if(typeof i[k]==="function")this[k]=function(l){return function(){if(j.isRegistered(h)){var m=new c.Deferred;try{var p=i[l].apply(i,Array.prototype.slice.call(arguments));c.when(p,c.hitch(m,m.resolve),c.hitch(m,
m.reject))}catch(n){m.reject(n)}return m.promise}throw new Error("Service was unregistered");}}(k)}function e(){this._namedlisteners={}}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var h=this;this.internalRegistry={isRegistered:function(i){return h._entries[i]?true:false},unregisterService:function(i){var j=h._entries[i];if(j){for(var k=j.reference,l=h._namedReferences[k.getName()],m=0;m<l.length;m++)if(l[m]===k){if(l.length===1)delete h._namedReferences[k.getName()];
else l.splice(m,1);break}h._entries[i]=null;h._serviceEventTarget.dispatchEvent("serviceRemoved",k,j.service)}},dispatchEvent:function(i,j){var k=h._entries[i];k&&k.eventTarget.dispatchEvent.apply(k.eventTarget,[j].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(i,j,k){(i=h._entries[i])&&i.eventTarget.addEventListener(j,k)},removeEventListener:function(i,j,k){(i=h._entries[i])&&i.eventTarget.removeEventListener(j,k)}}}f.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var h=[],i;for(i in this.properties)this.properties.hasOwnProperty(i)&&h.push(i);return h},getProperty:function(h){return this.properties[h]}};f.prototype.constructor=f;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(h){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,h].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;d.prototype={addEventListener:function(h,i){this.internalRegistry.addEventListener(this.serviceId,h,i)},removeEventListener:function(h,i){this.internalRegistry.removeEventListener(this.serviceId,h,i)}};d.prototype.constructor=d;e.prototype={dispatchEvent:function(h){var i=this._namedlisteners[h];if(i)for(var j=0;j<i.length;j++)try{var k=Array.prototype.slice.call(arguments,1);i[j].apply(null,k)}catch(l){console.log(l)}},addEventListener:function(h,i){this._namedlisteners[h]=
this._namedlisteners[h]||[];this._namedlisteners[h].push(i)},removeEventListener:function(h,i){var j=this._namedlisteners[h];if(j)for(var k=0;k<j.length;k++)if(j[k]===i){if(j.length===1)delete this._namedlisteners[h];else j.splice(k,1);break}}};e.prototype.constructor=e;g.prototype={getService:function(h,i){var j,k=new c.Deferred;if(typeof h==="string"){if(this._namedReferences[h])for(var l=0;l<this._namedReferences[h].length;l++)if(j=this._entries[this._namedReferences[h][l].getServiceId()].service)break}else j=
this._entries[h.getServiceId()].service;if(j)k.resolve(j);else if(i===0)k.reject(new Error("timeout: getService"));else{var m=this,p=function(n,o){if(h===n||h===n.getName()){k.resolve(o);m._serviceEventTarget.removeEventListener("serviceAdded",p)}};this._serviceEventTarget.addEventListener("serviceAdded",p)}return k.promise},getServiceReferences:function(h){if(h)return this._namedReferences[h]?this._namedReferences[h]:[];h=[];for(var i=0;i<this._entries.length;i++)this._entries[i]&&h.push(this._entries[i].reference);
return h},registerService:function(h,i,j){var k=this._entries.length;j=new f(k,h,j);i=new d(k,i,this.internalRegistry);this._namedReferences[h]=this._namedReferences[h]||[];this._namedReferences[h].push(j);this._entries.push({reference:j,service:i,eventTarget:new e});this._serviceEventTarget.dispatchEvent("serviceAdded",j,i);return new a(k,j,this.internalRegistry)},addEventListener:function(h,i){this._serviceEventTarget.addEventListener(h,i)},removeEventListener:function(h,i){this._serviceEventTarget.removeEventListener(h,
i)}};g.prototype.constructor=g;return{ServiceReference:f,ServiceRegistration:a,Service:d,EventTarget:e,ServiceRegistry:g}});define("dijit",["dojo"],function(c){return dijit=c._dijit||{}});
define("dojo/hash",["dojo"],function(c){(function(){function f(m,p){p=m.indexOf(p);return p>=0?m.substring(p+1):""}function a(){return f(location.href,"#")}function d(){c.publish("/dojo/hashchange",[a()])}function e(){if(a()!==i){i=a();d()}}function g(m){if(j)if(j.isTransitioning())setTimeout(c.hitch(null,g,m),l);else{var p=j.iframe.location.href,n=p.indexOf("?");j.iframe.location.replace(p.substring(0,n)+"?"+m)}else{location.replace("#"+m);!k&&e()}}function h(){function m(){i=a();o=s?i:f(x.href,
"?");q=false;u=null}var p=document.createElement("iframe"),n=c.config.dojoBlankHtmlUrl||c.moduleUrl("dojo","resources/blank.html");c.config.useXDomain&&!c.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");p.id="dojo-hash-iframe";p.src=n+"?"+a();p.style.display="none";document.body.appendChild(p);this.iframe=c.global["dojo-hash-iframe"];
var o,q,u,r,s,x=this.iframe.location;this.isTransitioning=function(){return q};this.pollLocation=function(){if(!s)try{var v=f(x.href,"?");if(document.title!=r)r=this.iframe.document.title=document.title}catch(y){s=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var F=a();if(q&&i===F)if(s||v===u){m();d()}else{setTimeout(c.hitch(this,this.pollLocation),0);return}else if(!(i===F&&(s||o===v)))if(i!==F){i=F;q=true;u=F;p.src=n+"?"+u;s=false;setTimeout(c.hitch(this,this.pollLocation),
0);return}else if(!s){location.href="#"+x.search.substring(1);m();d()}setTimeout(c.hitch(this,this.pollLocation),l)};m();setTimeout(c.hitch(this,this.pollLocation),l)}c.hash=function(m,p){if(!arguments.length)return a();if(m.charAt(0)=="#")m=m.substring(1);if(p)g(m);else location.href="#"+m;return m};var i,j,k,l=c.config.hashPollFrequency||100;c.addOnLoad(function(){if("onhashchange"in c.global&&(!c.isIE||c.isIE>=8&&document.compatMode!="BackCompat"))k=c.connect(c.global,"onhashchange",d);else if(document.addEventListener){i=
a();setInterval(e,l)}else if(document.attachEvent)j=new h})})();return c.hash});
(function(){var c=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],f=/^\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,h;if(typeof window!=="undefined"&&window.navigator&&window.document)g=function(i,j){var k=e.createXhr();k.open("GET",i,true);k.onreadystatechange=function(){k.readyState===4&&j(k.responseText)};k.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){h=require.nodeRequire("fs");g=function(i,j){j(h.readFileSync(i,"utf8"))}}else if(typeof Packages!=="undefined")g=function(i,j){var k=new java.io.File(i);i=java.lang.System.getProperty("line.separator");k=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(k),"utf-8"));var l,m,p="";try{l=new java.lang.StringBuffer;if((m=k.readLine())&&m.length()&&m.charAt(0)===65279)m=m.substring(1);for(l.append(m);(m=k.readLine())!==null;){l.append(i);l.append(m)}p=
String(l.toString())}finally{k.close()}j(p)};return e={version:"0.24.0",strip:function(i){if(i){i=i.replace(f,"");var j=i.match(a);if(j)i=j[1]}else i="";return i},jsEscape:function(i){return i.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 i,j,k;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(j=0;j<3;j++){k=c[j];try{i=new ActiveXObject(k)}catch(l){}if(i){c=
[k];break}}if(!i)throw new Error("require.getXhr(): XMLHttpRequest not available");return i},get:g,load:function(i,j,k,l){var m=false,p=i.indexOf("."),n=i.substring(0,p),o=i.substring(p+1,i.length);p=o.indexOf("!");if(p!==-1){m=o.substring(p+1,o.length);m=m==="strip";o=o.substring(0,p)}j=j.nameToUrl(n,"."+o);e.get(j,function(q){q=m?e.strip(q):q;if(l.isBuild&&l.inlineText)d[i]=q;k(q)})},write:function(i,j,k){if(j in d){var l=e.jsEscape(d[j]);k("define('"+i+"!"+j+"', 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(c,f){f.getObject("i18n",true,f);f.i18n.getLocalization=f.i18n.getLocalization||function(a,d,e){e=f.i18n.normalizeLocale(e);var g=e.split("-"),h=[a,"nls",d].join(".");if(typeof f.global.require!=="undefined"){var i=c("i18n!"+[a.replace(/\./g,"/"),"nls",d].join("/"));(f._loadedModules[h]=f._loadedModules[h]||{})[g.join("_")]=i.root||i}if(h=f._loadedModules[h]){var j;for(i=g.length;i>0;i--){var k=g.slice(0,i).join("_");if(h[k]){j=h[k];break}}if(!j)j=h.ROOT;
if(j){a=function(){};a.prototype=j;return new a}}throw new Error("Bundle not found: "+d+" in "+a+" , locale="+e);};f.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():f.locale;if(a=="root")a="ROOT";return a};f.i18n._requireLocalization=function(a,d,e,g){e=f.i18n.normalizeLocale(e);var h=[a,"nls",d].join("."),i="";if(g){for(var j=g.split(","),k=0;k<j.length;k++)if(e.indexOf(j[k])==0)if(j[k].length>i.length)i=j[k];i||(i="ROOT")}j=g?i:e;var l=f._loadedModules[h];k=null;if(l){if(f.config.localizationComplete&&
l._built)return;k=j.replace(/-/g,"_");k=f._loadedModules[h+"."+k]}if(!k){l=f.provide(h);var m=f._getModuleSymbols(a).concat("nls").join("/"),p;f.i18n._searchLocalePath(j,g,function(n){var o=n.replace(/-/g,"_"),q=h+"."+o,u=false;if(f._loadedModules[q])u=true;else{f.provide(q);q=[m];n!="ROOT"&&q.push(n);q.push(d);n=q.join("/")+".js";u=f._loadPath(n,null,function(r){r=r.root||r;var s=function(){};s.prototype=p;l[o]=new s;for(var x in r)l[o][x]=r[x]})}if(u&&l[o])p=l[o];else l[o]=p;if(g)return true})}if(g&&
e!=i)l[e.replace(/-/g,"_")]=l[i.replace(/-/g,"_")]};(function(){var a=f.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var d=f.i18n._requireLocalization;f.i18n._requireLocalization=function(e,g,h,i){d(e,g,h,i);if(!h)for(h=0;h<a.length;h++)d(e,g,a[h],i)}}})();f.i18n._searchLocalePath=function(a,d,e){a=f.i18n.normalizeLocale(a);var g=a.split("-");a=[];for(var h=g.length;h>0;h--)a.push(g.slice(0,h).join("-"));a.push(false);d&&a.reverse();for(d=a.length-1;d>=0;d--)if(e(a[d]||"ROOT"))break};f.i18n._preloadLocalizations=
function(a,d){function e(i){i=f.i18n.normalizeLocale(i);f.i18n._searchLocalePath(i,true,function(j){for(var k=0;k<d.length;k++)if(d[k]==j){f.require(a+"_"+j);return true}return false})}e();for(var g=f.config.extraLocale||[],h=0;h<g.length;h++)e(g[h])};return f.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(c){c.getObject("window",true,c);c.window.getBox=function(){var f=c.doc.compatMode=="BackCompat"?c.body():c.doc.documentElement,a=c._docScroll();return{w:f.clientWidth,h:f.clientHeight,l:a.x,t:a.y}};c.window.get=function(f){if(c.isIE&&window!==document.parentWindow){f.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=f._parentWindow;f._parentWindow=null;return a}return f.parentWindow||f.defaultView};c.window.scrollIntoView=function(f,
a){try{f=c.byId(f);var d=f.ownerDocument||c.doc,e=d.body||c.body(),g=d.documentElement||e.parentNode,h=c.isIE,i=c.isWebKit;if((!(c.isMoz||h||i||c.isOpera)||f==e||f==g)&&typeof f.scrollIntoView!="undefined")f.scrollIntoView(false);else{var j=d.compatMode=="BackCompat",k=h>=9&&f.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:j?e:g;d=i?e:k;var l=k.clientWidth,m=k.clientHeight,
p=!c._isBodyLtr(),n=a||c.position(f),o=f.parentNode;a=function(G){return h<=6||h&&j?false:c.style(G,"position").toLowerCase()=="fixed"};if(!a(f))for(;o;){if(o==e)o=d;var q=c.position(o),u=a(o);if(o==d){q.w=l;q.h=m;if(d==g&&h&&p)q.x+=d.offsetWidth-q.w;if(q.x<0||!h)q.x=0;if(q.y<0||!h)q.y=0}else{var r=c._getPadBorderExtents(o);q.w-=r.w;q.h-=r.h;q.x+=r.l;q.y+=r.t;var s=o.clientWidth,x=q.w-s;if(s>0&&x>0){q.w=s;q.x+=p&&(h||o.clientLeft>r.l)?x:0}s=o.clientHeight;x=q.h-s;if(s>0&&x>0)q.h=s}if(u){if(q.y<0){q.h+=
q.y;q.y=0}if(q.x<0){q.w+=q.x;q.x=0}if(q.y+q.h>m)q.h=m-q.y;if(q.x+q.w>l)q.w=l-q.x}var v=n.x-q.x,y=n.y-Math.max(q.y,0),F=v+n.w-q.w,H=y+n.h-q.h;if(F*v>0){var A=Math[v<0?"max":"min"](v,F);if(p&&(h==8&&!j||h>=9))A=-A;n.x+=o.scrollLeft;o.scrollLeft+=A;n.x-=o.scrollLeft}if(H*y>0){n.y+=o.scrollTop;o.scrollTop+=Math[y<0?"max":"min"](y,H);n.y-=o.scrollTop}o=o!=d&&!u&&o.parentNode}}}catch(D){console.error("scrollIntoView: "+D);f.scrollIntoView(false)}};return c.window});
define("dijit/_base/manager",["dojo","dijit"],function(c,f){c.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||c.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||c.global;var e=new f.WidgetSet,g=0,h;for(h in this._hash){var i=this._hash[h];a.call(d,i,g++,this._hash)&&e.add(i)}return e},byId:function(a){return this._hash[a]},byClass:function(a){var d=new f.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 c.map(this.toArray(),a,d)},every:function(a,d){d=d||c.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||c.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(){f.registry=new f.WidgetSet;var a=f.registry._hash,d=c.attr,e=c.hasAttr,g=c.style;f.byId=function(k){return typeof k=="string"?a[k]:k};var h={};f.getUniqueId=function(k){var l;do l=k+"_"+(k in h?++h[k]:(h[k]=0));while(a[l]);return f._scopeName=="dijit"?l:f._scopeName+"_"+l};f.findWidgets=function(k){function l(p){for(p=
p.firstChild;p;p=p.nextSibling)if(p.nodeType==1){var n=p.getAttribute("widgetId");if(n)(n=a[n])&&m.push(n);else l(p)}}var m=[];l(k);return m};f._destroyAll=function(){f._curFocus=null;f._prevFocus=null;f._activeStack=[];c.forEach(f.findWidgets(c.body()),function(k){if(!k._destroyed)if(k.destroyRecursive)k.destroyRecursive();else k.destroy&&k.destroy()})};c.isIE&&c.addOnWindowUnload(function(){f._destroyAll()});f.byNode=function(k){return a[k.getAttribute("widgetId")]};f.getEnclosingWidget=function(k){for(;k;){var l=
k.getAttribute&&k.getAttribute("widgetId");if(l)return a[l];k=k.parentNode}return null};var i=f._isElementShown=function(k){var l=g(k);return l.visibility!="hidden"&&l.visibility!="collapsed"&&l.display!="none"&&d(k,"type")!="hidden"};f.hasDefaultTabStop=function(k){switch(k.nodeName.toLowerCase()){case "a":return e(k,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var l;try{var m=k.contentDocument;if("designMode"in m&&m.designMode==
"on")return true;l=m.body}catch(p){try{l=k.contentWindow.document.body}catch(n){return false}}return l.contentEditable=="true"||l.firstChild&&l.firstChild.contentEditable=="true";default:return k.contentEditable=="true"}};var j=f.isTabNavigable=function(k){return d(k,"disabled")?false:e(k,"tabIndex")?d(k,"tabIndex")>=0:f.hasDefaultTabStop(k)};f._getTabNavigable=function(k){function l(v){return v&&v.tagName.toLowerCase()=="input"&&v.type&&v.type.toLowerCase()=="radio"&&v.name&&v.name.toLowerCase()}
function m(v){return s[l(v)]||v}var p,n,o,q,u,r,s={},x=function(v){c.query("> *",v).forEach(function(y){if(!(c.isIE&&y.scopeName!=="HTML"||!i(y))){if(j(y)){var F=d(y,"tabIndex");if(!e(y,"tabIndex")||F==0){p||(p=y);n=y}else if(F>0){if(!o||F<q){q=F;o=y}if(!u||F>=r){r=F;u=y}}F=l(y);if(c.attr(y,"checked")&&F)s[F]=y}y.nodeName.toUpperCase()!="SELECT"&&x(y)}})};i(k)&&x(k);return{first:m(p),last:m(n),lowest:m(o),highest:m(u)}};f.getFirstInTabbingOrder=function(k){k=f._getTabNavigable(c.byId(k));return k.lowest?
k.lowest:k.first};f.getLastInTabbingOrder=function(k){k=f._getTabNavigable(c.byId(k));return k.last?k.last:k.highest};f.defaultDuration=c.config.defaultDuration||200})();return f});
define("dojo/Stateful",["dojo"],function(c){c.declare("dojo.Stateful",null,{postscript:function(f){f&&c.mixin(this,f)},get:function(f){return this[f]},set:function(f,a){if(typeof f==="object"){for(var d in f)this.set(d,f[d]);return this}d=this[f];this[f]=a;this._watchCallbacks&&this._watchCallbacks(f,d,a);return this},watch:function(f,a){var d=this._watchCallbacks;if(!d){var e=this;d=this._watchCallbacks=function(h,i,j,k){var l=function(m){if(m){m=m.slice();for(var p=0,n=m.length;p<n;p++)try{m[p].call(e,
h,i,j)}catch(o){console.error(o)}}};l(d["_"+h]);k||l(d["*"])}}if(!a&&typeof f==="function"){a=f;f="*"}else f="_"+f;var g=d[f];if(typeof g!=="object")g=d[f]=[];g.push(a);return{unwatch:function(){g.splice(c.indexOf(g,a),1)}}}});return c.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(c,f){(function(){c.declare("dijit._WidgetBase",c.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(c.config.blankGif||c.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,d){this.create(a,d)},create:function(a,d){this.srcNodeRef=
c.byId(d);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a){this.params=a;c._mixin(this,a)}this.postMixInProperties();if(!this.id)this.id=f.getUniqueId(this.declaredClass.replace(/\./g,"_"));f.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);c.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 h in g)if(c.isFunction(g[h])&&(e=h.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||c.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(c.map(a,function(d){return d+"Rtl"})));c.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=c.forEach,e=c.unsubscribe;d(this._connects,function(g){d(g,c.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);f.registry.remove(this.id);this._destroyed=true},destroyRendering:function(a){if(this.bgIframe){this.bgIframe.destroy(a);delete this.bgIframe}if(this.domNode){a?c.removeAttr(this.domNode,
"widgetId"):c.destroy(this.domNode);delete this.domNode}if(this.srcNodeRef){a||c.destroy(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(a){c.forEach(this.getChildren(),function(d){d.destroyRecursive&&d.destroyRecursive(a)})},uninitialize:function(){return false},_setClassAttr:function(a){c.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var d=this[this.attributeMap.style||"domNode"];if(c.isObject(a))c.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];c.forEach(c.isArray(e)?e:[e],function(g){var h=this[g.node||g||"domNode"];switch(g.type||"attribute"){case "attribute":if(c.isFunction(d))d=c.hitch(this,d);g=g.attribute?g.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;c.attr(h,g,d);break;case "innerText":h.innerHTML="";h.appendChild(c.doc.createTextNode(d));break;case "innerHTML":h.innerHTML=
d;break;case "class":c.replaceClass(h,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?c.query("[widgetId]",this.containerNode).map(f.byNode):[]},getChildren:function(){return this.containerNode?f.findWidgets(this.containerNode):
[]},connect:function(a,d,e){a=[c._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){c.forEach(a,c.disconnect);this._connects.splice(d,1);return}},subscribe:function(a,d){a=c.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){c.unsubscribe(a);this._subscribes.splice(d,1);return}},isLeftToRight:function(){return this.dir?
this.dir=="ltr":c._isBodyLtr()},placeAt:function(a,d){a.declaredClass&&a.addChild?a.addChild(this,d):c.place(this.domNode,a,d);return this}})})();return f._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(c,f){c.mixin(f,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return f.getBookmark().isCollapsed},getBookmark:function(){var a,d,e=c.doc.selection,g=f._curFocus;if(c.global.getSelection){if(e=c.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(h){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=c.doc;if(a=a.mark)if(c.global.getSelection){var e=c.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(c.isArray(a)){g=d.body.createControlRange();c.forEach(a,function(h){g.addElement(h)})}else{g=d.body.createTextRange();g.moveToBookmark(a)}g.select()}},getFocus:function(a,d){a=!f._curFocus||a&&c.isDescendant(f._curFocus,a.domNode)?f._prevFocus:f._curFocus;return{node:a,bookmark:a==f._curFocus&&c.withGlobal(d||
c.global,f.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 h=d.tagName.toLowerCase()=="iframe"?d.contentWindow:d;if(h&&h.focus)try{h.focus()}catch(i){}f._onFocusNode(d)}if(e&&c.withGlobal(a||c.global,f.isCollapsed)&&!g){a&&a.focus();try{c.withGlobal(a||c.global,f.moveToBookmark,null,[e])}catch(j){}}}},_activeStack:[],registerIframe:function(a){return f.registerWin(a.contentWindow,a)},unregisterIframe:function(a){f.unregisterWin(a)},
registerWin:function(a,d){var e=function(l){f._justMouseDowned=true;setTimeout(function(){f._justMouseDowned=false},0);c.isIE&&l&&l.srcElement&&l.srcElement.parentNode==null||f._onTouchNode(d||l.target||l.srcElement,"mouse")},g=c.isIE?a.document.documentElement:a.document;if(g)if(c.isIE){a.document.body.attachEvent("onmousedown",e);var h=function(l){l.srcElement.tagName.toLowerCase()!="#document"&&f.isTabNavigable(l.srcElement)?f._onFocusNode(d||l.srcElement):f._onTouchNode(d||l.srcElement)};g.attachEvent("onactivate",
h);var i=function(l){f._onBlurNode(d||l.srcElement)};g.attachEvent("ondeactivate",i);return function(){a.document.detachEvent("onmousedown",e);g.detachEvent("onactivate",h);g.detachEvent("ondeactivate",i);g=null}}else{g.body.addEventListener("mousedown",e,true);var j=function(l){f._onFocusNode(d||l.target)};g.addEventListener("focus",j,true);var k=function(l){f._onBlurNode(d||l.target)};g.addEventListener("blur",k,true);return function(){g.body.removeEventListener("mousedown",e,true);g.removeEventListener("focus",
j,true);g.removeEventListener("blur",k,true);g=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){f._prevFocus=f._curFocus;f._curFocus=null;if(!f._justMouseDowned){f._clearActiveWidgetsTimer&&clearTimeout(f._clearActiveWidgetsTimer);f._clearActiveWidgetsTimer=setTimeout(function(){delete f._clearActiveWidgetsTimer;f._setStack([]);f._prevFocus=null},100)}},_onTouchNode:function(a,d){if(f._clearActiveWidgetsTimer){clearTimeout(f._clearActiveWidgetsTimer);delete f._clearActiveWidgetsTimer}var e=
[];try{for(;a;){var g=c.attr(a,"dijitPopupParent");if(g)a=f.byId(g).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===c.body())break;a=c.window.get(a.ownerDocument).frameElement}else{var h=a.getAttribute&&a.getAttribute("widgetId"),i=h&&f.byId(h);i&&!(d=="mouse"&&i.get("disabled"))&&e.unshift(h);a=a.parentNode}}}catch(j){}f._setStack(e,d)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){f._onTouchNode(a);if(a!=f._curFocus){if(f._curFocus)f._prevFocus=f._curFocus;f._curFocus=a;c.publish("focusNode",
[a])}}},_setStack:function(a,d){var e=f._activeStack;f._activeStack=a;for(var g=0;g<Math.min(e.length,a.length);g++)if(e[g]!=a[g])break;for(var h,i=e.length-1;i>=g;i--)if(h=f.byId(e[i])){h._focused=false;h.set("focused",false);h._hasBeenBlurred=true;h._onBlur&&h._onBlur(d);c.publish("widgetBlur",[h,d])}for(i=g;i<a.length;i++)if(h=f.byId(a[i])){h._focused=true;h.set("focused",true);h._onFocus&&h._onFocus(d);c.publish("widgetFocus",[h,d])}}});c.addOnLoad(function(){var a=f.registerWin(window);c.isIE&&
c.addOnWindowUnload(function(){f.unregisterWin(a);a=null})});return f});
define("dojo/AdapterRegistry",["dojo"],function(c){c.AdapterRegistry=function(f){this.pairs=[];this.returnWrappers=f||false};c.extend(c.AdapterRegistry,{register:function(f,a,d,e,g){this.pairs[g?"unshift":"push"]([f,a,d,e])},match:function(){for(var f=0;f<this.pairs.length;f++){var a=this.pairs[f];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(f){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
f){this.pairs.splice(a,1);return true}return false}});return c.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(c,f){f.getViewport=function(){return c.window.getBox()};f.placeOnScreen=function(a,d,e,g){e=c.map(e,function(h){var i={corner:h,pos:{x:d.x,y:d.y}};if(g){i.pos.x+=h.charAt(1)=="L"?g.x:-g.x;i.pos.y+=h.charAt(0)=="T"?g.y:-g.y}return i});return f._place(a,e)};f._place=function(a,d,e,g){var h=c.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")c.body().appendChild(a);var i=null;
c.some(d,function(k){var l=k.corner,m=k.pos,p=0,n={w:l.charAt(1)=="L"?h.l+h.w-m.x:m.x-h.l,h:l.charAt(1)=="T"?h.t+h.h-m.y:m.y-h.t};if(e){p=e(a,k.aroundCorner,l,n,g);p=typeof p=="undefined"?0:p}var o=a.style,q=o.display,u=o.visibility;o.visibility="hidden";o.display="";var r=c.marginBox(a);o.display=q;o.visibility=u;o=Math.max(h.l,l.charAt(1)=="L"?m.x:m.x-r.w);q=Math.max(h.t,l.charAt(0)=="T"?m.y:m.y-r.h);u=Math.min(h.l+h.w,l.charAt(1)=="L"?o+r.w:m.x);m=Math.min(h.t+h.h,l.charAt(0)=="T"?q+r.h:m.y);u=
u-o;m=m-q;p+=r.w-u+(r.h-m);if(i==null||p<i.overflow)i={corner:l,aroundCorner:k.aroundCorner,x:o,y:q,w:u,h:m,overflow:p,spaceAvailable:n};return!p});i.overflow&&e&&e(a,i.aroundCorner,i.corner,i.spaceAvailable,g);d=c._isBodyLtr();var j=a.style;j.top=i.y+"px";j[d?"left":"right"]=(d?i.x:h.w-i.x-i.w)+"px";return i};f.placeOnScreenAroundNode=function(a,d,e,g){d=c.byId(d);d=c.position(d,true);return f._placeOnScreenAroundRect(a,d.x,d.y,d.w,d.h,e,g)};f.placeOnScreenAroundRectangle=function(a,d,e,g){return f._placeOnScreenAroundRect(a,
d.x,d.y,d.width,d.height,e,g)};f._placeOnScreenAroundRect=function(a,d,e,g,h,i,j){var k=[];for(var l in i)k.push({aroundCorner:l,corner:i[l],pos:{x:d+(l.charAt(1)=="L"?0:g),y:e+(l.charAt(0)=="T"?0:h)}});return f._place(a,k,j,{w:g,h:h})};f.placementRegistry=new c.AdapterRegistry;f.placementRegistry.register("node",function(a,d){return typeof d=="object"&&typeof d.offsetWidth!="undefined"&&typeof d.offsetHeight!="undefined"},f.placeOnScreenAroundNode);f.placementRegistry.register("rect",function(a,
d){return typeof d=="object"&&"x"in d&&"y"in d&&"width"in d&&"height"in d},f.placeOnScreenAroundRectangle);f.placeOnScreenAroundElement=function(){return f.placementRegistry.match.apply(f.placementRegistry,arguments)};f.getPopupAroundAlignment=function(a,d){var e={};c.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 f});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(c,f){f.getDocumentWindow=function(a){return c.window.get(a)};return f});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(c,f){f.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var d=a.declaredClass?a._popupWrapper:a.parentNode&&c.hasClass(a.parentNode,"dijitPopup"),e=a.domNode||a;if(!d){d=c.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},c.body());d.appendChild(e);e=e.style;e.display="";e.visibility="";e.position="";e.top="0px";if(a.declaredClass){a._popupWrapper=
d;c.connect(a,"destroy",function(){c.destroy(d);delete a._popupWrapper})}}return d},moveOffScreen:function(a){a=this._createWrapper(a);c.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);c.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():c._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),h=a.around,i=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;d.length&&(!a.parent||!c.isDescendant(a.parent.domNode,d[d.length-1].widget.domNode));)f.popup.close(d[d.length-1].widget);var j=this._createWrapper(e);c.attr(j,{id:i,style:{zIndex:this._beginZIndex+d.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(c.isIE||c.isMoz)if(!e.bgIframe)e.bgIframe=
new f.BackgroundIframe(j);g=h?f.placeOnScreenAroundElement(j,h,g,e.orient?c.hitch(e,"orient"):null):f.placeOnScreen(j,a,g=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);j.style.display="";j.style.visibility="visible";e.domNode.style.visibility="visible";h=[];h.push(c.connect(j,"onkeypress",this,function(k){if(k.charOrCode==c.keys.ESCAPE&&a.onCancel){c.stopEvent(k);a.onCancel()}else if(k.charOrCode===c.keys.TAB){c.stopEvent(k);(k=this.getTopPopup())&&k.onCancel&&k.onCancel()}}));e.onCancel&&
h.push(c.connect(e,"onCancel",a.onCancel));h.push(c.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var k=this.getTopPopup();k&&k.onExecute&&k.onExecute()}));d.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:h});e.onOpen&&e.onOpen(g);return g},close:function(a){for(var d=this._stack;a&&c.some(d,function(i){return i.widget==a})||!a&&d.length;){var e=d.pop(),g=e.widget,h=e.onClose;g.onClose&&g.onClose();c.forEach(e.handlers,c.disconnect);
g&&g.domNode&&this.hide(g);h&&h()}}};f._frames=new (function(){var a=[];this.pop=function(){var d;if(a.length){d=a.pop();d.style.display=""}else{if(c.isIE<9){d="<iframe src='"+(c.config.dojoBlankHtmlUrl||c.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";d=c.doc.createElement(d)}else{d=c.create("iframe");d.src='javascript:""';d.className="dijitBackgroundIframe";c.style(d,"opacity",0.1)}d.tabIndex=
-1;f.setWaiRole(d,"presentation")}return d};this.push=function(d){d.style.display="none";a.push(d)}});f.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(c.isIE||c.isMoz){var d=this.iframe=f._frames.pop();a.appendChild(d);if(c.isIE<7||c.isQuirks){this.resize(a);this._conn=c.connect(a,"onresize",this,function(){this.resize(a)})}else c.style(d,{width:"100%",height:"100%"})}};c.extend(f.BackgroundIframe,{resize:function(a){this.iframe&&c.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+
"px"})},destroy:function(){if(this._conn){c.disconnect(this._conn);this._conn=null}if(this.iframe){f._frames.push(this.iframe);delete this.iframe}}});return f.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(c,f){f.scrollIntoView=function(a,d){c.window.scrollIntoView(a,d)};return f.scrollIntoView});
define("dojo/uacss",["dojo"],function(c){(function(){var f=c.doc.documentElement,a=c.isIE,d=c.isOpera,e=Math.floor,g=c.isFF,h=c.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:c.isQuirks,dj_iequirks:a&&c.isQuirks,dj_opera:d,dj_khtml:c.isKhtml,dj_webkit:c.isWebKit,dj_safari:c.isSafari,dj_chrome:c.isChrome,dj_gecko:c.isMozilla,dj_ff3:e(g)==3};a["dj_"+h]=true;var i="";for(var j in a)if(a[j])i+=j+" ";f.className=c.trim(f.className+" "+i);c._loaders.unshift(function(){if(!c._isBodyLtr()){var k=
"dj_rtl dijitRtl "+i.replace(/ /g,"-rtl ");f.className=c.trim(f.className+" "+k)}})})();return c});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(c,f){return f});
define("dijit/_base/typematic",["dojo","dijit"],function(c,f){f.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(c.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,d,e,g,h,i,j,k){if(h!=this._obj){this.stop();
this._initialDelay=j||500;this._subsequentDelay=i||0.9;this._minDelay=k||10;this._obj=h;this._evt=a;this._node=e;this._count=this._currentTimeout=-1;this._callback=c.hitch(d,g);this._fireEventAndReload();this._evt=c.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,h,i,j){if(d.keyCode){d.charOrCode=d.keyCode;c.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);c.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[c.connect(a,"onkeypress",this,function(k){if(k.charOrCode==d.charOrCode&&(d.ctrlKey===undefined||d.ctrlKey==k.ctrlKey)&&(d.altKey===undefined||d.altKey==k.altKey)&&(d.metaKey===undefined||d.metaKey==(k.metaKey||false))&&(d.shiftKey===undefined||d.shiftKey==k.shiftKey)){c.stopEvent(k);f.typematic.trigger(k,
e,a,g,d,h,i,j)}else f.typematic._obj==d&&f.typematic.stop()}),c.connect(a,"onkeyup",this,function(){f.typematic._obj==d&&f.typematic.stop()})]},addMouseListener:function(a,d,e,g,h,i){var j=c.connect;return[j(a,"mousedown",this,function(k){c.stopEvent(k);f.typematic.trigger(k,d,a,e,a,g,h,i)}),j(a,"mouseup",this,function(k){c.stopEvent(k);f.typematic.stop()}),j(a,"mouseout",this,function(k){c.stopEvent(k);f.typematic.stop()}),j(a,"mousemove",this,function(k){k.preventDefault()}),j(a,"dblclick",this,
function(k){c.stopEvent(k);if(c.isIE){f.typematic.trigger(k,d,a,e,a,g,h,i);setTimeout(c.hitch(this,f.typematic.stop),50)}})]},addListener:function(a,d,e,g,h,i,j,k){return this.addKeyListener(d,e,g,h,i,j,k).concat(this.addMouseListener(a,g,h,i,j,k))}};return f.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(c,f){f.wai={onload:function(){var a=c.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(c.config.blankGif||c.moduleUrl("dojo","resources/blank.gif"))+'");'}},c.body()),d=c.getComputedStyle(a);if(d){var e=d.backgroundImage;c[d.borderTopColor==d.borderRightColor||e!=null&&(e=="none"||e=="url(invalid-url:)")?"addClass":"removeClass"](c.body(),
"dijit_a11y");if(c.isIE)a.outerHTML="";else c.body().removeChild(a)}}};if(c.isIE||c.isMoz)c._loaders.unshift(f.wai.onload);c.mixin(f,{hasWaiRole:function(a,d){a=this.getWaiRole(a);return d?a.indexOf(d)>-1:a.length>0},getWaiRole:function(a){return c.trim((c.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,d){c.attr(a,"role",d)},removeWaiRole:function(a,d){var e=c.attr(a,"role");if(e)if(d){d=c.trim((" "+e+" ").replace(" "+d+" "," "));c.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 f});
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(c,f){return f._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(c,f){c.connect(c,"_connect",function(a,d){a&&c.isFunction(a._onConnect)&&a._onConnect(d)});f._connectOnUseEventHandler=function(){};f._lastKeyDownNode=null;c.isIE?function(){var a=function(d){f._lastKeyDownNode=d.srcElement};c.doc.attachEvent("onkeydown",a);c.addOnWindowUnload(function(){c.doc.detachEvent("onkeydown",a)})}():c.doc.addEventListener("keydown",function(a){f._lastKeyDownNode=a.target},true);(function(){c.declare("dijit._Widget",
f._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:f._connectOnUseEventHandler,onDblClick:f._connectOnUseEventHandler,onKeyDown:f._connectOnUseEventHandler,onKeyPress:f._connectOnUseEventHandler,onKeyUp:f._connectOnUseEventHandler,onMouseDown:f._connectOnUseEventHandler,onMouseMove:f._connectOnUseEventHandler,onMouseOut:f._connectOnUseEventHandler,
onMouseOver:f._connectOnUseEventHandler,onMouseLeave:f._connectOnUseEventHandler,onMouseEnter:f._connectOnUseEventHandler,onMouseUp:f._connectOnUseEventHandler,create:function(){this._deferredConnects=c.clone(this._deferredConnects);for(var a in this.attributeMap)delete this._deferredConnects[a];for(a in this._deferredConnects)this[a]!==f._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&&c.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,d){c.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,d)},attr:function(a){if(c.config.isDebug){var d=
arguments.callee._ach||(arguments.callee._ach={}),e=(arguments.callee.caller||"unknown caller").toString();if(!d[e]){c.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=c._connect,h=this.inherited(arguments,[a,d=="ondijitclick"?"onclick":d,e]);if(d=="ondijitclick")if(c.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var i=c.hitch(this,e);h.push(g(a,"onkeydown",this,function(j){if((j.keyCode==c.keys.ENTER||j.keyCode==c.keys.SPACE)&&!j.ctrlKey&&!j.shiftKey&&!j.altKey&&!j.metaKey){f._lastKeyDownNode=j.target;"openDropDown"in this&&a==this._buttonNode||j.preventDefault()}}),g(a,"onkeyup",this,function(j){if((j.keyCode==c.keys.ENTER||j.keyCode==c.keys.SPACE)&&j.target==f._lastKeyDownNode&&!j.ctrlKey&&!j.shiftKey&&!j.altKey&&!j.metaKey){f._lastKeyDownNode=null;return i(j)}}))}return h},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return f._Widget});
define("dojo/string",["dojo"],function(c){c.getObject("string",true,c);c.string.rep=function(f,a){if(a<=0||!f)return"";for(var d=[];;){a&1&&d.push(f);if(!(a>>=1))break;f+=f}return d.join("")};c.string.pad=function(f,a,d,e){d||(d="0");f=String(f);a=c.string.rep(d,Math.ceil((a-f.length)/d.length));return e?f+a:a+f};c.string.substitute=function(f,a,d,e){e=e||c.global;d=d?c.hitch(e,d):function(g){return g};return f.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(g,h,i){g=c.getObject(h,false,
a);if(i)g=c.getObject(i,false,e).call(e,g,h);return d(g,h).toString()})};c.string.trim=String.prototype.trim?c.trim:function(f){f=f.replace(/^\s+/,"");for(var a=f.length-1;a>=0;a--)if(/\S/.test(f.charAt(a))){f=f.substring(0,a+1);break}return f};return c.string});
define("dojo/date/stamp",["dojo"],function(c){c.getObject("date.stamp",true,c);c.date.stamp.fromISOString=function(f,a){if(!c.date.stamp._isoRegExp)c.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var d=c.date.stamp._isoRegExp.exec(f);f=null;if(d){d.shift();d[1]&&d[1]--;if(d[6])d[6]*=1E3;if(a){a=new Date(a);c.forEach(c.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(h){return a["get"+
h]()}),function(h,i){d[i]=d[i]||h})}f=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)f.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-=f.getTimezoneOffset();e&&f.setTime(f.getTime()+e*6E4)}return f};c.date.stamp.toISOString=function(f,a){var d=function(i){return i<10?"0"+i:i};a=a||{};var e=[],g=a.zulu?"getUTC":"get",h="";if(a.selector!="time"){h=f[g+"FullYear"]();h=["0000".substr((h+"").length)+
h,d(f[g+"Month"]()+1),d(f[g+"Date"]())].join("-")}e.push(h);if(a.selector!="date"){h=[d(f[g+"Hours"]()),d(f[g+"Minutes"]()),d(f[g+"Seconds"]())].join(":");g=f[g+"Milliseconds"]();if(a.milliseconds)h+="."+(g<100?"0":"")+d(g);if(a.zulu)h+="Z";else if(a.selector!="time"){f=f.getTimezoneOffset();a=Math.abs(f);h+=(f>0?"-":"+")+d(Math.floor(a/60))+":"+d(a%60)}e.push(h)}return e.join("T")};return c.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(c){c.parser=new (function(){function f(j){if(g.isString(j))return"string";if(typeof j=="number")return"number";if(typeof j=="boolean")return"boolean";if(g.isFunction(j))return"function";if(g.isArray(j))return"array";if(j instanceof Date)return"date";if(j instanceof g._Url)return"url";return"object"}function a(j,k){switch(k){case "string":return j;case "number":return j.length?Number(j):NaN;case "boolean":return typeof j=="boolean"?j:j.toLowerCase()!=
"false";case "function":if(g.isFunction(j)){j=j.toString();j=g.trim(j.substring(j.indexOf("{")+1,j.length-1))}try{return j===""||j.search(/[^\w\.]+/i)!=-1?new Function(j):g.getObject(j,false)||new Function(j)}catch(l){return new Function}case "array":return j?j.split(/\s*,\s*/):[];case "date":switch(j){case "":return new Date("");case "now":return new Date;default:return g.date.stamp.fromISOString(j)}case "url":return g.baseUrl+j;default:return g.fromJson(j)}}function d(j,k){for(var l in j)if(l.charAt(0)!=
"_")l in h||(k[l]=f(j[l]));return k}function e(j,k){var l=i[j];if(l){if(!k&&!l.params)l.params=d(l.cls.prototype,{})}else{j=g.getObject(j);l=null;if(!j)return null;k||(l=d(j.prototype,{}));l={cls:j,params:l}}return l}var g=c,h={},i={};g.connect(g,"extend",function(){i={}});this._functionFromScript=function(j,k){var l="",m="";(k=j.getAttribute(k+"args")||j.getAttribute("args"))&&g.forEach(k.split(/\s*,\s*/),function(p,n){l+="var "+p+" = arguments["+n+"]; "});(k=j.getAttribute("with"))&&k.length&&g.forEach(k.split(/\s*,\s*/),
function(p){l+="with("+p+"){";m+="}"});return new Function(l+j.innerHTML+m)};this.instantiate=function(j,k,l){var m=[];k=k||{};l=l||{};var p=(l.scope||g._scopeName)+"Type",n="data-"+(l.scope||g._scopeName)+"-";g.forEach(j,function(o){if(o){var q,u,r,s,x,v;if(o.node){q=o.node;u=o.type;v=o.fastpath;s=(r=o.clsInfo||u&&e(u,v))&&r.cls;x=o.scripts}else{q=o;x=(s=(r=(u=p in k?k[p]:q.getAttribute(p))&&e(u))&&r.cls)&&(s._noScript||s.prototype._noScript)?[]:g.query("> script[type^='dojo/']",q)}if(!r)throw new Error("Could not load class '"+
u);var y={};l.defaults&&g._mixin(y,l.defaults);o.inherited&&g._mixin(y,o.inherited);if(v){if((r=q.getAttribute(n+"props"))&&r.length)try{r=g.fromJson.call(l.propsThis,"{"+r+"}");g._mixin(y,r)}catch(F){throw new Error(F.toString()+" in data-dojo-props='"+r+"'");}if(r=q.getAttribute(n+"attach-point"))y.dojoAttachPoint=r;if(r=q.getAttribute(n+"attach-event"))y.dojoAttachEvent=r;c.mixin(y,k)}else{o=q.attributes;for(var H in r.params){u=H in k?{value:k[H],specified:true}:o.getNamedItem(H);if(!(!u||!u.specified&&
(!c.isIE||H.toLowerCase()!="value"))){u=u.value;switch(H){case "class":u="className"in k?k.className:q.className;break;case "style":u="style"in k?k.style:q.style&&q.style.cssText}var A=r.params[H];y[H]=typeof u=="string"?a(u,A):u}}}var D=[],G=[];g.forEach(x,function(E){q.removeChild(E);var L=E.getAttribute(n+"event")||E.getAttribute("event"),N=E.getAttribute("type");E=g.parser._functionFromScript(E,n);if(L)if(N=="dojo/connect")D.push({event:L,func:E});else y[L]=E;else G.push(E)});var I=(x=s.markupFactory||
s.prototype&&s.prototype.markupFactory)?x(y,q,s):new s(y,q);m.push(I);(s=q.getAttribute(n+"id")||q.getAttribute("jsId"))&&g.setObject(s,I);g.forEach(D,function(E){g.connect(I,E.event,null,E.func)});g.forEach(G,function(E){E.call(I)})}});k._started||g.forEach(m,function(o){if(!l.noStart&&o&&c.isFunction(o.startup)&&!o._started&&(!o.getParent||!o.getParent()))o.startup()});return m};this.parse=function(j,k){function l(q,u){var r=c.clone(q.inherited);c.forEach(["dir","lang"],function(H){var A=q.node.getAttribute(H);
if(A)r[H]=A});for(var s=q.clsInfo&&!q.clsInfo.cls.prototype._noScript?q.scripts:null,x=!q.clsInfo||!q.clsInfo.cls.prototype.stopParser||k&&k.template,v=q.node.firstChild;v;v=v.nextSibling)if(v.nodeType==1){var y,F=x&&v.getAttribute(p+"type");y=F?F:x&&v.getAttribute(m);F=F==y;if(y){y={type:y,fastpath:F,clsInfo:e(y,F),node:v,scripts:[],inherited:r};u.push(y);l(y,u)}else if(s&&v.nodeName.toLowerCase()=="script")(y=v.getAttribute("type"))&&/^dojo\/\w/i.test(y)&&s.push(v);else x&&l({node:v,inherited:r},
u)}}if(!k&&j&&j.rootNode){k=j;j=k.rootNode}else j=j;j=j?c.byId(j):c.body();k=k||{};var m=(k.scope||g._scopeName)+"Type",p="data-"+(k.scope||g._scopeName)+"-",n={};if(k&&k.inherited)for(var o in k.inherited)if(k.inherited[o])n[o]=k.inherited[o];o=[];l({node:j,inherited:n},o);return this.instantiate(o,k&&k.template?{template:true}:null,k)}});(function(){var f=function(){c.config.parseOnLoad&&c.parser.parse()};c.getObject("dijit.wai.onload")===c._loaders[0]?c._loaders.splice(1,0,f):c._loaders.unshift(f)})();
return c.parser});
define("dojo/cache",["dojo"],function(c){var f={};c.cache=function(a,d,e){if(typeof a=="string")var g=c.moduleUrl(a,d);else{g=a;e=d}g=g.toString();var h=e;if(e!=undefined&&!c.isString(e))h="value"in e?e.value:undefined;e=e&&e.sanitize?true:false;if(typeof h=="string")h=f[g]=e?c.cache._sanitize(h):h;else if(h===null)delete f[g];else{if(!(g in f)){h=undefined;if(c.isFunction(require)&&c.isString(a))try{var i=(a?a.replace(/\./g,"/")+"/":"")+d;h=require("text!"+i)}catch(j){}if(typeof h==="undefined")h=
c._getText(g);f[g]=e?c.cache._sanitize(h):h}h=f[g]}return h};c.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 c.cache});
define("dijit/_Templated",["dojo","dijit","dijit/_Widget","dojo/string","dojo/parser","dojo/cache"],function(c,f){c.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 c.string.substitute(a,this,function(g,h){if(h.charAt(0)=="!")g=c.getObject(h.substr(1),false,e);if(typeof g==
"undefined")throw new Error(d+" template:"+h);if(g==null)return"";return h.charAt(0)=="!"?g:g.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=f._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),d;if(c.isString(a)){d=c._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=
c.parser.parse(d,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"});this._supportingWidgets=f.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,p){return m.getAttribute(p)};for(var e=c.isArray(a)?a:a.all||a.getElementsByTagName("*"),
g=c.isArray(a)?0:-1;g<e.length;g++){var h=g==-1?a:e[g];if(!(this.widgetsInTemplate&&(d(h,"dojoType")||d(h,"data-dojo-type")))){var i=d(h,"dojoAttachPoint")||d(h,"data-dojo-attach-point");if(i)for(var j=i.split(/\s*,\s*/);i=j.shift();){if(c.isArray(this[i]))this[i].push(h);else this[i]=h;this._attachPoints.push(i)}if(i=d(h,"dojoAttachEvent")||d(h,"data-dojo-attach-event")){j=i.split(/\s*,\s*/);for(var k=c.trim;i=j.shift();)if(i){var l=null;if(i.indexOf(":")!=-1){l=i.split(":");i=k(l[0]);l=k(l[1])}else i=
k(i);l||(l=i);this._attachEvents.push(this.connect(h,i,l))}}(i=d(h,"waiRole"))&&f.setWaiRole(h,i);(i=d(h,"waiState"))&&c.forEach(i.split(/\s*,\s*/),function(m){if(m.indexOf("-")!=-1){m=m.split("-");f.setWaiState(h,m[0],m[1])}})}}},startup:function(){c.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){c.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];c.forEach(this._attachEvents,
this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});f._Templated._templateCache={};f._Templated.getCachedTemplate=function(a,d,e){var g=f._Templated._templateCache,h=d||a,i=g[h];if(i){try{if(!i.ownerDocument||i.ownerDocument==c.doc)return i}catch(j){}c.destroy(i)}d||(d=c.cache(a,{sanitize:true}));d=c.string.trim(d);if(e||d.match(/\$\{([^\}]+)\}/g))return g[h]=d;else{a=c._toDom(d);if(a.nodeType!=1)throw new Error("Invalid template: "+d);return g[h]=a}};c.isIE&&c.addOnWindowUnload(function(){var a=
f._Templated._templateCache;for(var d in a){var e=a[d];typeof e=="object"&&c.destroy(e);delete a[d]}});c.extend(f._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return f._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(c,f){c.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);c.forEach(["onmouseenter","onmouseleave","onmousedown"],function(d){this.connect(this.domNode,d,"_cssMouseEvent")},this);c.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(d){this.watch(d,c.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(c.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(d)});break}},_setStateClass:function(){function a(j){d=
d.concat(c.map(d,function(k){return k+j}),"dijit"+j)}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={};c.forEach(e.className.split(" "),function(j){g[j]=true});"_stateClasses"in this&&c.forEach(this._stateClasses,
function(j){delete g[j]});c.forEach(d,function(j){g[j]=true});var h=[];for(var i in g)h.push(i);e.className=h.join(" ");this._stateClasses=d},_trackMouseState:function(a,d){function e(){var l="disabled"in j&&j.disabled||"readonly"in j&&j.readonly;c.toggleClass(a,d+"Hover",g&&!h&&!l);c.toggleClass(a,d+"Active",h&&!l);c.toggleClass(a,d+"Focused",i&&!l)}var g=false,h=false,i=false,j=this,k=c.hitch(this,"connect",a);k("onmouseenter",function(){g=true;e()});k("onmouseleave",function(){h=g=false;e()});
k("onmousedown",function(){h=true;e()});k("onmouseup",function(){h=false;e()});k("onfocus",function(){i=true;e()});k("onblur",function(){i=false;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return f._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(c,f){c.declare("dijit.form._FormWidget",[f._Widget,f._Templated,f._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:c.delegate(f._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);c.attr(this.focusNode,"disabled",a);this.valueNode&&c.attr(this.valueNode,"disabled",a);f.setWaiState(this.focusNode,"disabled",a);if(a){this._set("hovering",false);this._set("active",false);a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode";
c.forEach(c.isArray(a)?a:[a],function(d){d=this[d];c.isWebKit||f.hasDefaultTabStop(d)?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex")},this)}else this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){c.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(){this.scrollOnFocus&&c.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&c.style(this.domNode,"display")!="none"},focus:function(){this.disabled||f.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(c.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){c.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){c.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&c.mouseButtons.isLeft(a)&&this.isFocusable())var d=this.connect(c.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(d)})}});c.declare("dijit.form._FormValueWidget",
f.form._FormWidget,{readOnly:false,attributeMap:c.delegate(f.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){c.attr(this.focusNode,"readOnly",a);f.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(c.isIE<9||c.isIE&&c.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==c.keys.ESCAPE&&!(a.ctrlKey||a.altKey||a.metaKey)){var d;if(c.isIE){a.preventDefault();d=document.createEventObject();d.keyCode=c.keys.ESCAPE;d.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",
d)}}},_layoutHackIE7:function(){if(c.isIE==7)for(var a=this.domNode,d=a.parentNode,e=a.firstChild||a,g=e.style.filter,h=this;d&&d.clientHeight==0;){(function(){var i=h.connect(d,"onscroll",function(){h.disconnect(i);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=g},0)})})();d=d.parentNode}}});return f.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(c,f){c.declare("dijit.form.TextBox",f.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:c.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:c.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:c.delegate(f.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==f.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=c.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(){c.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){c.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 c.keys.SHIFT:case c.keys.ALT:case c.keys.CTRL:case c.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(){c.isIE&&setTimeout(c.hitch(this,function(){var a=c.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(c.isMoz||c.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=c.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&&c.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(c.isIE){d=c.doc.selection.createRange();d=d.parentElement()==this.textbox&&
d.text.length==0}else d=this.textbox.selectionStart==this.textbox.selectionEnd;d&&f.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});f.selectInputText=function(a,d,e){var g=c.global,h=c.doc;a=c.byId(a);if(isNaN(d))d=0;if(isNaN(e))e=a.value?a.value.length:0;f.focus(a);if(h.selection&&c.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 f.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(c,f){c.declare("dijit._MasterTooltip",[f._Widget,f._Templated],{duration:f.defaultDuration,templateString:c.cache("dijit","templates/Tooltip.html"),postCreate:function(){c.body().appendChild(this.domNode);this.bgIframe=new f.BackgroundIframe(this.domNode);this.fadeIn=c.fadeIn({node:this.domNode,duration:this.duration,onEnd:c.hitch(this,"_onShow")});this.fadeOut=c.fadeOut({node:this.domNode,
duration:this.duration,onEnd:c.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;f.placeOnScreenAroundElement(this.domNode,d,f.getPopupAroundAlignment(e&&e.length?e:f.Tooltip.defaultPosition,!g),c.hitch(this,"orient"));c.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=d}}},orient:function(a,d,e,
g,h){this.connectorNode.style.top="";var i=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 j=c.contentBox(this.domNode),k=Math.min(Math.max(i,1),j.w),l=k<j.w;this.domNode.style.width=k+"px";if(l){this.containerNode.style.overflow=
"auto";l=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(l>k){l=l+c.style(this.domNode,"paddingLeft")+c.style(this.domNode,"paddingRight");this.domNode.style.width=l+"px"}}if(e.charAt(0)=="B"&&d.charAt(0)=="B"){a=c.marginBox(a);d=this.connectorNode.offsetHeight;if(a.h>g.h){this.connectorNode.style.top=g.h-h.h/2-d/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(h.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,j.w-i)},_onShow:function(){if(c.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}}});f.showTooltip=function(a,d,e,g){if(!f._masterTT)f._masterTT=
new f._MasterTooltip;return f._masterTT.show(a,d,e,g)};f.hideTooltip=function(a){if(!f._masterTT)f._masterTT=new f._MasterTooltip;return f._masterTT.hide(a)};c.declare("dijit.Tooltip",f._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){c.forEach(this._connections||[],function(e){c.forEach(e,c.hitch(this,"disconnect"))},this);var d=c.isArrayLike(a)?a:a?[a]:[];this._connections=c.map(d,function(e){return(e=c.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;c.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=c.indexOf(this._connectIds,a.id||a);if(a>=0){this._connectIds.splice(a,1);this.set("connectId",this._connectIds)}},buildRendering:function(){this.inherited(arguments);
c.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;c.forEach(c.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(c.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}f.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){f.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)}});f.Tooltip.defaultPosition=["after","before"];return f.Tooltip});
(function(){function c(d,e,g,h,i,j){if(e[d]){g.push(d);if(e[d]===true||e[d]===1)h.push(i+d+"/"+j)}}function f(d,e,g,h,i){e=h+e+"/"+i;require._fileExists(d.nameToUrl(e,null))&&g.push(e)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(d,e,g,h){h=h||{};var i=a.exec(d),j=i[1],k=i[4],l=i[5],m=k.split("-"),p=[],n={},o,q,u="";if(i[5]){j=i[1];d=j+l}else{d=d;l=i[4];k=h.locale||(h.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());m=k.split("-")}if(h.isBuild){p.push(d);f(e,"root",p,j,l);for(o=0;q=m[o];o++){u+=(u?"-":"")+q;f(e,u,p,j,l)}e(p);g()}else e([d],function(r){var s=[];c("root",r,s,p,j,l);for(o=0;q=m[o];o++){u+=(u?"-":"")+q;c(u,r,s,p,j,l)}e(p,function(){var x,v;for(x=s.length-1;x>-1&&(q=s[x]);x--){v=r[q];if(v===true||v===1)v=e(j+q+"/"+l);require.mixin(n,v)}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(c,f){c.declare("dijit.form.ValidationTextBox",f.form.TextBox,{templateString:c.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),h=!e&&a&&this._isValidSubset();this._set("state",e?"":((!this._hasBeenBlurred||a)&&g||h)&&this._maskValidSubsetError?
"Incomplete":"Error");f.setWaiState(this.focusNode,"invalid",e?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&h;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){f.hideTooltip(this.domNode);a&&this._focused&&f.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=c.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);f.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)}});c.declare("dijit.form.MappedTextBox",f.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=c.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});c.declare("dijit.form.RangeBoundTextBox",f.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=c.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage}},_setConstraintsAttr:function(){this.inherited(arguments);if(this.focusNode){this.constraints.min!==
undefined?f.setWaiState(this.focusNode,"valuemin",this.constraints.min):f.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?f.setWaiState(this.focusNode,"valuemax",this.constraints.max):f.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){f.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return f.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(c,f){function a(v){x=v}function d(){return x}function e(v){var y="",F=navigator.platform.indexOf("Mac")!==-1;if(v.mod1)y+=F?"Cmd+":"Ctrl+";if(v.mod2)y+="Shift+";if(v.mod3)y+="Alt+";if(v.alphaKey)return y+v.alphaKey;for(var H in c.keys)if(typeof(c.keys[H]==="number"))if(c.keys[H]===v.keyCode)return y+H;var A;switch(v.keyCode){case 59:A=v.mod2?":":";";break;case 61:A=v.mod2?"+":"=";break;case 188:A=v.mod2?"<":",";
break;case 190:A=v.mod2?">":".";break;case 191:A=v.mod2?"?":"/";break;case 192:A=v.mod2?"~":"`";break;case 219:A=v.mod2?"{":"[";break;case 220:A=v.mod2?"|":"\\";break;case 221:A=v.mod2?"}":"]";break;case 222:A=v.mod2?'"':"'";break}if(A)return y+A;return y+String.fromCharCode(v.keyCode)}function g(v,y){v.startup();if(typeof y==="string"){var F=c.byId(y);if(!F)if(F=f.byId(y))F=F.domNode;y=F?F:null}if(y){y=c.position(y);v._setStyleAttr("left:"+(y.x+16)+"px !important;");v._setStyleAttr("top:"+(y.y+16)+
"px !important;")}v.show()}function h(v,y,F,H,A,D,G,I){G=function(L){return function(N){var O=f.byId(v),R=O.get("value");if(L&&N.keyCode===c.keys.ESCAPE){F&&c.style(y,"display","inline");O.destroyRecursive();D&&D()}else if(!(L&&N.keyCode!==c.keys.ENTER)){if(!O.isValid()||R===H)F&&c.style(y,"display","inline");else A(R);O.destroyRecursive();D&&D()}}};var E=new f.form.ValidationTextBox({id:v,required:true,value:H||""});c.place(E.domNode,y,"after");c.addClass(E.domNode,"userEditBoxPrompt");F&&c.style(y,
"display","none");c.connect(E,"onKeyDown",G(true));c.connect(E,"onBlur",G(false));window.setTimeout(function(){E.focus();if(H){var L=c.byId(v),N=I?H.indexOf(I):-1;N>0?f.selectInputText(L,0,N):L.select()}},0)}function i(v){var y=window.navigator.platform.indexOf("Mac")!==-1;return y&&v.metaKey||!y&&v.ctrlKey}function j(v,y){if(y&&i(y))window.open(v);else window.location=v}function k(v){if(!v)return v;var y=window.location.href.split("#")[0];y=y.substring(0,y.length-window.location.pathname.length);
if(v.indexOf(y)===0)return v.substring(y.length);return v}function l(v){var y,F,H,A,D;v=v.split("#");var G=v[v.length-1].split(/\?(?=(?:line|char))/);v=k(G[0]);if(G.length>1){G=G[1].split(/\&(?=(?:line|char))/);for(var I=0;I<G.length;I++){var E=G[I].split("=");if(E.length>1)switch(E[0]){case "char":E=E[1].split(",");if(H===undefined){y=window.parseInt(E[0]);if(E.length>1)F=window.parseInt(E[1])}else{A=E[0];if(E.length>1)D=window.parseInt(E[1]-A)}break;case "line":E=E[1].split(",");H=window.parseInt(E[0]);
break;default:break}}}return{filePath:v,start:y,end:F,line:H,offset:A,length:D}}function m(v,y,F,H,A,D){if(typeof y==="number"){v="#"+v+"?char="+y;if(typeof F==="number")v=v+","+F;else if(typeof D==="number")v=v+","+(y+D);return v}if(typeof H==="number"){v="#"+v+"?line="+H;if(typeof A==="number"){v=v+"&char="+A;if(typeof D==="number")v=v+","+(A+D)}return v}return"#"+v}function p(v){if(!v)return v;var y=window.location.href.split("#")[0];return y.substring(0,y.length-window.location.pathname.length)+
v}function n(v){return this.makeRelative(v).indexOf("/workspace")===0}function o(v,y){v.children=y;for(var F in y)y[F].parent=v;v.children.sort(function(H,A){var D=H.Directory;if(D!==A.Directory)return D?-1:1;H=H.Name&&H.Name.toLowerCase();A=A.Name&&A.Name.toLowerCase();if(H<A)return-1;if(H>A)return 1;return 0})}function q(v,y){v.Parents&&v.Parents.length===0&&y.getService("orion.core.preference").then(function(F){return F.getPreferences("/window/recent")}).then(function(F){var H=F.get("projects");
if(typeof H==="string")H=JSON.parse(H);var A=[];if(H&&H.length&&H.length>0)for(var D=0;D<H.length;D++)H[D].location!==v.ChildrenLocation&&H[D].name!==v.Name&&A.push(H[D]);A.push({name:v.Name,location:v.ChildrenLocation});if(A.length>5)A=A.slice(-5,A.length);F.put("projects",A)})}function u(v){return typeof v.textContent!=="undefined"?v.textContent:v.innerText}function r(v){return u(document.createTextNode(v))}function s(v,y){if(typeof v.textContent!=="undefined")v.textContent=y;else v.innerText=y}
var x=null;return{setUserName:a,getUserName:d,getUserKeyString:e,openDialog:g,getUserText:h,openInNewWindow:i,followLink:j,getPositionInfo:l,hashFromPosition:m,makeRelative:k,makeFullPath:p,isAtRoot:n,processNavigatorParent:o,rememberSuccessfulTraversal:q,getText:u,safeText:r,setText:s}});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(c,f){c.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"}}c.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){c.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||!f.byNode(a)));return a&&f.byNode(a)},getIndexOfChild:function(a){return c.indexOf(this.getChildren(),a)},startup:function(){if(!this._started){c.forEach(this.getChildren(),
function(a){a.startup()});this.inherited(arguments)}}});return f._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(c,f){c.declare("dijit._KeyNavContainer",f._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,d){var e=this._keyNavCodes={},g=c.hitch(this,this.focusPrev),h=c.hitch(this,this.focusNext);c.forEach(a,function(i){e[i]=g});c.forEach(d,function(i){e[i]=h});e[c.keys.HOME]=c.hitch(this,"focusFirstChild");e[c.keys.END]=c.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){c.forEach(this.getChildren(),c.hitch(this,"_startupChild"))},addChild:function(a){f._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();c.attr(this.domNode,"tabIndex","-1")}},_onBlur:function(){this.tabIndex&&c.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();c.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 f._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(c,f){c.declare("dijit._Contained",null,{getParent:function(){var a=f.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&&f.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 f._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(c,f){c.declare("dijit.MenuItem",[f._Widget,f._Templated,f._Contained,f._CssStateMixin],{templateString:c.cache("dijit","templates/MenuItem.html"),attributeMap:c.delegate(f._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";c.attr(this.containerNode,"id",a);if(this.accelKeyNode){c.attr(this.accelKeyNode,"id",this.id+"_accel");a+=" "+this.id+"_accel"}f.setWaiState(this.domNode,"labelledby",a);c.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);c.stopEvent(a)},onClick:function(){},focus:function(){try{c.isIE==8&&this.containerNode.focus();f.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){c.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){c.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){c.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){f.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;c.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return f.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(c,f){c.declare("dijit.PopupMenuItem",f.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=c.query("*",this.srcNodeRef);f.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=c.query("[widgetId]",this.dropDownContainer)[0];this.popup=f.byNode(a)}c.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&c.style(this.arrowWrapper,"visibility","");f.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return f.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(c,f){c.declare("dijit.CheckedMenuItem",f.MenuItem,{templateString:c.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){c.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);f.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 f.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(c,f){c.declare("dijit.MenuSeparator",[f._Widget,f._Templated,f._Contained],{templateString:c.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);c.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return f.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(c,f){c.declare("dijit._MenuBase",[f._Widget,f._Templated,f._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(!this._started){c.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(c.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;f.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);f.popup.close(this.currentPopup)}d.parentMenu=this;d.from_item=a;var e=this;f.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:c.hitch(this,"_cleanUp")});this.currentPopup=d;d.connect(d.domNode,"onmouseenter",c.hitch(e,"_onPopupHover"));if(d.focus)d._focus_timer=setTimeout(c.hitch(d,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=true;c.replaceClass(this.domNode,
"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=true;this._markActive()},_markInactive:function(){this.isActive=false;c.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){f._curFocus&&c.isDescendant(f._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();f.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()}});c.declare("dijit.Menu",f._MenuBase,{constructor:function(){this._bindings=[]},templateString:c.cache("dijit",
"templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(c.body()):c.forEach(this.targetNodeIds,this.bindDomNode,this);var a=c.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);
c.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)this.parentMenu._isMenuBar?this.parentMenu.focusPrev():this.onCancel(false);else c.stopEvent(a);break}},_iframeContentWindow:function(a){return c.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&c.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&c.doc.frames[a.name]&&c.doc.frames[a.name].document||
null},bindDomNode:function(a){a=c.byId(a);var d;if(a.tagName.toLowerCase()=="iframe"){var e=a,g=this._iframeContentWindow(e);d=c.withGlobal(g,c.body)}else d=a==c.body()?c.doc.documentElement:a;var h={node:a,iframe:e};c.attr(a,"_dijitMenu"+this.id,this._bindings.push(h));var i=c.hitch(this,function(j){return[c.connect(j,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(k){c.stopEvent(k);this._scheduleOpen(k.target,e,{x:k.pageX,y:k.pageY})}),c.connect(j,"onkeydown",this,function(k){if(k.shiftKey&&
k.keyCode==c.keys.F10){c.stopEvent(k);this._scheduleOpen(k.target,e)}})]});h.connects=d?i(d):[];if(e){h.onloadHandler=c.hitch(this,function(){var j=this._iframeContentWindow(e);d=c.withGlobal(j,c.body);h.connects=i(d)});e.addEventListener?e.addEventListener("load",h.onloadHandler,false):e.attachEvent("onload",h.onloadHandler)}},unBindDomNode:function(a){var d;try{d=c.byId(a)}catch(e){return}a="_dijitMenu"+this.id;if(d&&c.hasAttr(d,a)){var g=c.attr(d,a)-1,h=this._bindings[g];c.forEach(h.connects,c.disconnect);
var i=h.iframe;if(i)i.removeEventListener?i.removeEventListener("load",h.onloadHandler,false):i.detachEvent("onload",h.onloadHandler);c.removeAttr(d,a);delete this._bindings[g]}},_scheduleOpen:function(a,d,e){if(!this._openTimer)this._openTimer=setTimeout(c.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:d,coords:e})}),1)},_openMyself:function(a){function d(){l.refocus&&f.focus(m);f.popup.close(l)}var e=a.target,g=a.iframe;if(a=a.coords){if(g){e=c.position(g,true);var h=
this._iframeContentWindow(g);h=c.withGlobal(h,"_docScroll",c);var i=c.getComputedStyle(g),j=c._toPixelValue,k=(c.isIE&&c.isQuirks?0:j(g,i.paddingLeft))+(c.isIE&&c.isQuirks?j(g,i.borderLeftWidth):0);g=(c.isIE&&c.isQuirks?0:j(g,i.paddingTop))+(c.isIE&&c.isQuirks?j(g,i.borderTopWidth):0);a.x+=e.x+k-h.x;a.y+=e.y+g-h.y}}else{a=c.position(e,true);a.x+=10;a.y+=10}var l=this,m=f.getFocus(this);f.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);f.popup.close(this)}},uninitialize:function(){c.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return f.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(c,f){c.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)){c.stopEvent(a);this._docHandler=this.connect(c.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=c.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(c.hasClass(g,"dijitPopup"))e=true;else g=g.parentNode;if(e){g=a.target;if(d.onItemClick){for(var h;g&&!(h=f.byNode(g));)g=g.parentNode;h&&h.onClick&&h.getParent&&h.getParent().onItemClick(h,a)}return}}}this._opened&&d.focus&&d.autoFocus!==false&&window.setTimeout(c.hitch(d,
"focus"),1)},_onDropDownClick:function(a){this._stopClickEvents&&c.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";c.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){c.stopEvent(a);return}if(d&&this._opened&&a.charOrCode==c.keys.ESCAPE){this.closeDropDown();c.stopEvent(a)}else if(!this._opened&&(a.charOrCode==c.keys.DOWN_ARROW||(a.charOrCode==c.keys.ENTER||a.charOrCode==" ")&&((e.tagName||"").toLowerCase()!=="input"||e.type&&e.type.toLowerCase()!=="text"))){this._toggleOnKeyUp=true;c.stopEvent(a)}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(c.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(f._curFocus&&this.dropDown&&c.isDescendant(f._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(c.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 h={display:"",visibility:"hidden"};if(!this._explicitDDWidth)h.width="";if(!this._explicitDDHeight)h.height="";c.style(d,h);h=this.maxHeight;if(h==-1){h=c.window.getBox();var i=c.position(e,false);h=Math.floor(Math.max(i.y,h.h-(i.y+i.h)))}a.startup&&
!a._started&&a.startup();f.popup.moveOffScreen(a);i=c._getMarginSize(d);var j=h&&i.h>h;c.style(d,{overflowX:"hidden",overflowY:j?"auto":"hidden"});if(j){i.h=h;if("w"in i)i.w+=16}else delete i.h;if(this.forceWidth)i.w=e.offsetWidth;else if(this.autoWidth)i.w=Math.max(i.w,e.offsetWidth);else delete i.w;c.isFunction(a.resize)?a.resize(i):c.marginBox(d,i)}a=f.popup.open({parent:this,popup:a,around:e,orient:f.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:
["below"],this.isLeftToRight()),onExecute:function(){g.closeDropDown(true)},onCancel:function(){g.closeDropDown(true)},onClose:function(){c.attr(g._popupStateNode,"popupActive",false);c.removeClass(g._popupStateNode,"dijitHasDropDownOpen");g._opened=false}});c.attr(this._popupStateNode,"popupActive","true");c.addClass(g._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return a},closeDropDown:function(a){if(this._opened){a&&this.focus();f.popup.close(this.dropDown);this._opened=false}}});
return f._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(c,f){c.declare("dijit.form.Button",f.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:c.cache("dijit.form","templates/Button.html"),attributeMap:c.delegate(f.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=f.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);c.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&&c.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return true},_clicked:function(){},setLabel:function(a){c.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=c.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){c.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});c.declare("dijit.form.DropDownButton",[f.form.Button,f._Container,f._HasDropDown],{baseClass:"dijitDropDownButton",templateString:c.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
c.query("*",this.srcNodeRef);f.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=c.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=f.byNode(a);delete this.dropDownContainer}this.dropDown&&f.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=c.connect(a,"onLoad",this,function(){c.disconnect(d);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});c.declare("dijit.form.ComboButton",f.form.DropDownButton,{templateString:c.cache("dijit.form","templates/ComboButton.html"),attributeMap:c.mixin(c.clone(f.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==c.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){f.focus(this._popupStateNode);c.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==c.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){f.focus(this.titleNode);c.stopEvent(a)}},focus:function(a){this.disabled||f.focus(a=="start"?this.titleNode:this._popupStateNode)}});
c.declare("dijit.form.ToggleButton",f.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:c.mixin(c.clone(f.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,d){this._set("checked",a);c.attr(this.focusNode||this.domNode,"checked",a);f.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,d)},setChecked:function(a){c.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 f.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(c,f){return f.form.DropDownButton});
define("orion/commands",["dojo","dijit","orion/util","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator"],function(c,f,a){function d(i){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups={};this._activeBindings={};this._init(i)}function e(i){this._init(i)}function g(i,j,k,l,m){this.keyCode=typeof i==="string"?i.toUpperCase().charCodeAt(0):i;this.mod1=j!==undefined&&j!==null?j:false;this.mod2=k!==undefined&&k!==null?k:false;
this.mod3=l!==undefined&&l!==null?l:false;this.mod4=m!==undefined&&m!==null?m:false}d.prototype={_init:function(i){this._registry=i.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=i.selection;c.connect(window.document,"onkeydown",c.hitch(this,function(j){j=j||window.event;var k=j.target.nodeName.toLowerCase();if(k==="input")switch(j.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(k===
"textarea")return;this._processKey(j)}))},_processKey:function(i){function j(p){if(window.document.all)p.keyCode=0;else{p.preventDefault();p.stopPropagation()}}for(var k in this._activeBindings)if(this._activeBindings[k]&&this._activeBindings[k].keyBinding&&this._activeBindings[k].command)if(this._activeBindings[k].keyBinding.match(i)){var l=this._activeBindings[k],m=l.command;if(m.hrefCallback){j(i);i=m.hrefCallback.call(l.handler||window,l.items,k,l.userData);i.then?i.then(function(p){window.open(p)}):
window.open(i);return}else if(m.callback){j(i);window.setTimeout(function(){m.callback.call(l.handler||window,l.items,k,null,l.userData)},0);return}}},getSelectionService:function(){return this._selection},showKeyBindings:function(i){for(var j in this._activeBindings)this._activeBindings[j]&&this._activeBindings[j].keyBinding&&this._activeBindings[j].command&&c.place("<span>"+a.getUserKeyString(this._activeBindings[j].keyBinding)+" = "+this._activeBindings[j].command.name+"<br></span>",i,"last")},
addCommand:function(i,j){switch(j){case "dom":this._domScope[i.id]=i;break;case "object":this._objectScope[i.id]=i;break;case "global":this._globalScope[i.id]=i;break;default:throw"unrecognized command scope "+j;}},addCommandGroup:function(i,j,k,l,m){var p=this._namedGroups;if(l)p=this._createEntryForPath(l);if(p[i]){if(k)p[i].title=k;if(j)p[i].position=j;if(m)p[i].scopeId=m}else{p[i]={title:k,position:j,children:{},scopeId:m};p.sortedCommands=null}},_createEntryForPath:function(i){var j=this._namedGroups;
if(i){i=i.split("/");for(var k=0;k<i.length;k++)if(i[k].length>1){j[i[k]]||(j[i[k]]={position:0,children:{}});j=j[i[k]].children}}return j},registerCommandContribution:function(i,j,k,l,m,p){l=this._createEntryForPath(l);l[i]={scopeId:k,position:j};if(m)if(j=this._domScope[i]||this._globalScope[i])this._activeBindings[i]={command:j,keyBinding:m,keyOnly:p};l.sortedCommands=null},_isLastChildSeparator:function(i,j){if(j==="image")return i.childNodes.length>0&&c.hasClass(i.childNodes[i.childNodes.length-
1],"commandSeparator");if(j==="menu"){i=i.getChildren();return i.length>0&&i[i.length-1]instanceof f.MenuSeparator}return false},renderCommands:function(i,j,k,l,m,p,n,o){if(typeof i==="string")i=c.byId(i);if(k){var q;if(j==="object")q=this._objectScope;else if(j==="dom")q=this._domScope;else if(j==="global")q=this._globalScope;else throw"Unrecognized command scope "+j;this._render(this._namedGroups,i,j,k,l,m,p,n,q,o);if(m==="image")this._isLastChildSeparator(i,m)&&i.removeChild(i.childNodes[i.childNodes.length-
1]);else if(m==="menu")if(this._isLastChildSeparator(i,m)){k=i.getChildren()[i.getChildren().length-1];i.removeChild(k);k.destroy()}}else{var u=this;this._selection&&this._selection.getSelections(function(r){u.renderCommands(i,j,r,l,m,p,n,o)})}},_render:function(i,j,k,l,m,p,n,o,q,u){var r=i.sortedCommands;if(!r){r=[];for(var s in i){var x=i[s];if(x&&typeof x.position==="number"){x.id=s;r.push(x)}}r.sort(function(D,G){return D.position-G.position});i.sortedCommands=r}for(i=0;i<r.length;i++){var v;
if(r[i].children){s=r[i];if(!(s.scopeId&&j.id!==s.scopeId)){var y;if(p==="image")if(s.title){x=new f.Menu({style:"display: none;"});x.eclipseScopeId=j.eclipseScopeId||j.id;this._render(r[i].children,x,k,l,m,"menu",n,o,q,u);y=x.getChildren();if(this._isLastChildSeparator(x,"menu")){v=y[y.length-1];x.removeChild(v);v.destroy();y=x.getChildren()}if(y.length>0){var F=true;v=y[0].eclipseCommand;if(y.length===1)F=!(v&&v.hasImage());if(F){v=new f.form.DropDownButton({label:s.title,dropDown:x});c.addClass(v.domNode,
"commandLink");n&&c.addClass(v.domNode,n);c.place(v.domNode,j,"last")}else{x="image"+v.id+i;s=v._asImage(x,l,m,o,u);c.place(s,j,"last")}}}else{var H;if(j.childNodes.length>0&&!this._isLastChildSeparator(j,p)){H=this.generateSeparatorImage();c.place(H,j,"last")}this._render(r[i].children,j,k,l,m,p,n,o,q,u);if(j.childNodes.length>0)if(j.childNodes[j.childNodes.length-1]!==H){H=this.generateSeparatorImage();c.place(H,j,"last")}}else if(s.title){x=new f.Menu;this._render(r[i].children,x,k,l,m,p,n,o,q,
u);x.getChildren().length>0&&j.addChild(new f.PopupMenuItem({label:s.title,popup:x}))}else{var A;if(j.getChildren().length>0&&!this._isLastChildSeparator(j,p)){A=new f.MenuSeparator;j.addChild(A)}this._render(r[i].children,j,k,l,m,p,n,o,q,u);s=j.getChildren();if(s[s.length-1]!==A){A=new f.MenuSeparator;j.addChild(A)}}}}else{x=(s=q[r[i].id])?true:false;if(s){if(k==="dom")x=p==="image"?j.id===r[i].scopeId:p==="menu"?j.eclipseScopeId===r[i].scopeId:false;if(this._activeBindings[s.id]&&this._activeBindings[s.id].keyBinding){v=
this._activeBindings[s.id];v.items=l;v.userData=o;v.handler=m;if(v.keyOnly)x=false}if(x&&s.visibleWhen)x=s.visibleWhen(l)}if(x)if(s.choiceCallback){x=new f.Menu({style:"display: none;"});if(p==="image"){v=new f.form.DropDownButton({label:s.name,dropDown:x});if(s.image){c.addClass(v.iconNode,"commandImage");n&&c.addClass(v.iconNode,n);v.iconNode.src=s.image}c.place(v.domNode,j,"last");v.eclipseCommand=s;v.eclipseChoices=x;c.connect(v,"onClick",v,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
l,m,o)})}else if(p==="menu"){v=new f.PopupMenuItem({label:s.name,popup:x});j.addChild(v);v.eclipseCommand=s;v.eclipseChoices=x;c.connect(j,"_openPopup",v,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,l,m,o)})}}else if(p==="image"){x="image"+s.id+i;s=s._asImage(x,l,m,o,n,u);c.place(s,j,"last")}else p==="menu"&&s._addMenuItem(j,l,m,o,n)}}},generateSeparatorImage:function(){var i=new Image;i.src="/images/sep.gif";c.addClass(i,"commandImage");c.addClass(i,"commandSeparator");
return i}};d.prototype.constructor=d;e.prototype={_init:function(i){this.id=i.id;this.name=i.name||"Empty Command";this.tooltip=i.tooltip||i.name;this.callback=i.callback;this.hrefCallback=i.hrefCallback;this.choiceCallback=i.choiceCallback;this.image=i.image||"/images/none.png";this.visibleWhen=i.visibleWhen;this._deviceSupportsHover=false},_asImage:function(i,j,k,l,m,p){k=k||this;var n=new Image,o=c.create("a");o.id=this.name+"link";n.alt=this.name;n.title=this.name;n.name=i;n.id=i;if(p||!this.hasImage()){i=
window.document.createTextNode(this.name);c.place(i,o,"last")}if(this.hrefCallback){i=this.hrefCallback.call(k,j,this.id,l);if(i.then)i.then(function(q){o.href=q});else o.href=i}else if(this.callback)!p&&this.hasImage()?c.connect(n,"onclick",this,function(){this.callback.call(k,j,this.id,n.id,l)}):c.connect(o,"onclick",this,function(){this.callback.call(k,j,this.id,o.id,l)});if(!p&&this.hasImage()){if(this._deviceSupportsHover){n.src="/images/none.png";c.connect(n,"onmouseover",this,function(){n.src=
this.image});c.connect(n,"onmouseout",this,function(){n.src="/images/none.png"})}else{n.src=this.image;c.connect(n,"onmouseover",this,function(){c.addClass(n,"commandOver")});c.connect(n,"onmouseout",this,function(){n.src=this.image;c.removeClass(n,"commandOver")})}c.addClass(n,"commandImage");m&&c.addClass(n,m);c.place(n,o,"last")}c.addClass(o,"commandLink");m&&c.addClass(o,m);return o},_asLink:function(i,j,k){j=j||this;var l=window.document.createElement("a");c.place(window.document.createTextNode(this.name),
l,"only");l.href="";l.id=this.id+"link";if(this.callback)c.connect(l,"onclick",this,function(){this.callback.call(j,i,this.id,l.id)});else if(this.hrefCallback){var m=this.hrefCallback.call(j,i,this.id);if(m)if(m.then)m.then(function(p){l.href=p});else l.href=m}c.addClass(l,"commandLink");k&&c.addClass(l,k);return l},_addMenuItem:function(i,j,k,l,m){var p=new f.MenuItem({labelType:this.hrefCallback?"html":"text",label:this.name,tooltip:this.tooltip});if(this.hrefCallback){var n=this.hrefCallback.call(k,
j,this.id,i.id,l);if(n)if(n.then)n.then(c.hitch(this,function(o){p.set("label","<a href='"+o+"'>"+this.name+"</a>");p.onClick=function(q){a.followLink(o,q)}}));else{p.set("label","<a href='"+n+"'>"+this.name+"</a>");p.onClick=function(o){a.followLink(n,o)}}}else if(this.callback)p.onClick=c.hitch(this,function(){this.callback.call(k,j,this.id,null,l)});p.eclipseCommand=this;i.addChild(p);if(this.image){c.addClass(p.iconNode,"commandImage");m&&c.addClass(p.iconNode,m);p.iconNode.src=this.image}},populateChoicesMenu:function(i,
j,k,l){i.focusedChild=null;c.forEach(i.getChildren(),function(n){i.removeChild(n);n.destroy()});k=this.getChoices(j,k,l);for(l=0;l<k.length;l++){var m=k[l],p;if(m.name){p=new f.MenuItem({label:m.name,onClick:this.makeChoiceCallback(m,j)});if(m.image){c.addClass(p.iconNode,"commandImage");p.iconNode.src=m.image}}else p=new f.MenuSeparator;i.addChild(p)}},getChoices:function(i,j,k){if(this.choiceCallback)return this.choiceCallback.call(j,i,k);return null},makeChoiceCallback:function(i,j){return function(k){i.callback&&
i.callback.call(i,j,k)}},hasImage:function(){return this.image!=="/images/none.png"}};e.prototype.constructor=e;var h=window.navigator.platform.indexOf("Mac")!==-1;g.prototype={match:function(i){if(this.keyCode===i.keyCode){if(this.mod1!==(h?i.metaKey:i.ctrlKey))return false;if(this.mod2!==i.shiftKey)return false;if(this.mod3!==i.altKey)return false;if(h&&this.mod4!==i.ctrlKey)return false;return true}return false},equals:function(i){if(!i)return false;if(this.keyCode!==i.keyCode)return false;if(this.mod1!==
i.mod1)return false;if(this.mod2!==i.mod2)return false;if(this.mod3!==i.mod3)return false;if(this.mod4!==i.mod4)return false;return true}};g.prototype.constructor=g;return{CommandService:d,CommandKeyBinding:g,Command:e}});var orion=orion||{};orion.textview=orion.textview||{};
orion.textview.KeyBinding=function(){function c(a,d,e,g,h){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=h!==undefined&&h!==null?h:false}var f=window.navigator.platform.indexOf("Mac")!==-1;c.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(f?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;if(this.mod3!==
a.altKey)return false;if(f&&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 c}();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(c){c.getObject("dnd",true,c);c.dnd.getCopyKeyState=c.isCopyKey;c.dnd._uniqueId=0;c.dnd.getUniqueId=function(){var f;do f=c._scopeName+"Unique"+ ++c.dnd._uniqueId;while(c.byId(f));return f};c.dnd._empty={};c.dnd.isFormElement=function(f){f=f.target;if(f.nodeType==3)f=f.parentNode;return" button textarea input select option ".indexOf(" "+f.tagName.toLowerCase()+" ")>=0};return c.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(c){c.getObject("dnd",true,c);c.dnd.getViewport=c.window.getBox;c.dnd.V_TRIGGER_AUTOSCROLL=32;c.dnd.H_TRIGGER_AUTOSCROLL=32;c.dnd.V_AUTOSCROLL_VALUE=16;c.dnd.H_AUTOSCROLL_VALUE=16;c.dnd.autoScroll=function(f){var a=c.window.getBox(),d=0,e=0;if(f.clientX<c.dnd.H_TRIGGER_AUTOSCROLL)d=-c.dnd.H_AUTOSCROLL_VALUE;else if(f.clientX>a.w-c.dnd.H_TRIGGER_AUTOSCROLL)d=c.dnd.H_AUTOSCROLL_VALUE;if(f.clientY<c.dnd.V_TRIGGER_AUTOSCROLL)e=-c.dnd.V_AUTOSCROLL_VALUE;
else if(f.clientY>a.h-c.dnd.V_TRIGGER_AUTOSCROLL)e=c.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(d,e)};c.dnd._validNodes={div:1,p:1,td:1};c.dnd._validOverflow={auto:1,scroll:1};c.dnd.autoScrollNodes=function(f){for(var a=f.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in c.dnd._validNodes){var d=c.getComputedStyle(a);if(d.overflow.toLowerCase()in c.dnd._validOverflow){var e=c._getContentBox(a,d);d=c.position(a,true);var g=Math.min(c.dnd.H_TRIGGER_AUTOSCROLL,e.w/2),h=Math.min(c.dnd.V_TRIGGER_AUTOSCROLL,
e.h/2),i=f.pageX-d.x,j=f.pageY-d.y,k=d=0;if(c.isWebKit||c.isOpera){i+=c.body().scrollLeft;j+=c.body().scrollTop}if(i>0&&i<e.w)if(i<g)d=-g;else if(i>e.w-g)d=g;if(j>0&&j<e.h)if(j<h)k=-h;else if(j>e.h-h)k=h;e=a.scrollLeft;g=a.scrollTop;a.scrollLeft+=d;a.scrollTop+=k;if(e!=a.scrollLeft||g!=a.scrollTop)return}}try{a=a.parentNode}catch(l){a=null}}c.dnd.autoScroll(f)};return c.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(c){c.declare("dojo.dnd.Mover",null,{constructor:function(f,a,d){this.node=c.byId(f);var e=a.touches?a.touches[0]:a;this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=a.button;a=this.host=d;f=f.ownerDocument;this.events=[c.connect(f,"onmousemove",this,"onFirstMove"),c.connect(f,"ontouchmove",this,"onFirstMove"),c.connect(f,"onmousemove",this,"onMouseMove"),c.connect(f,"ontouchmove",this,"onMouseMove"),c.connect(f,
"onmouseup",this,"onMouseUp"),c.connect(f,"ontouchend",this,"onMouseUp"),c.connect(f,"ondragstart",c.stopEvent),c.connect(f.body,"onselectstart",c.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(f){c.dnd.autoScroll(f);var a=this.marginBox,d=f.touches?f.touches[0]:f;this.host.onMove(this,{l:a.l+d.pageX,t:a.t+d.pageY},f);c.stopEvent(f)},onMouseUp:function(f){if(c.isWebKit&&c.isMac&&this.mouseButton==2?f.button==0:this.mouseButton==f.button)this.destroy();c.stopEvent(f)},onFirstMove:function(f){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=c.marginBox(this.node);d=c.doc.body;var g=c.getComputedStyle(d),h=c._getMarginBox(d,g);g=c._getContentBox(d,g);d=a.l-(g.l-h.l);a=a.t-(g.t-h.t);break}this.marginBox.l=d-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;e&&e.onFirstMove&&e.onFirstMove(this,f);c.disconnect(this.events.shift());c.disconnect(this.events.shift())},
destroy:function(){c.forEach(this.events,c.disconnect);var f=this.host;f&&f.onMoveStop&&f.onMoveStop(this);this.events=this.node=this.host=null}});return c.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(c){c.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(f,a){this.node=c.byId(f);a||(a={});this.handle=a.handle?c.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:c.dnd.Mover;this.events=[c.connect(this.handle,"onmousedown",this,"onMouseDown"),c.connect(this.handle,"ontouchstart",this,"onMouseDown"),c.connect(this.handle,
"ondragstart",this,"onSelectStart"),c.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(f,a){return new c.dnd.Moveable(a,f)},destroy:function(){c.forEach(this.events,c.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(f){if(!(this.skip&&c.dnd.isFormElement(f))){if(this.delay){this.events.push(c.connect(this.handle,"onmousemove",this,"onMouseMove"),c.connect(this.handle,"ontouchmove",this,"onMouseMove"),c.connect(this.handle,"onmouseup",this,
"onMouseUp"),c.connect(this.handle,"ontouchend",this,"onMouseUp"));var a=f.touches?f.touches[0]:f;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(f);c.stopEvent(f)}},onMouseMove:function(f){var a=f.touches?f.touches[0]:f;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(f);this.onDragDetected(f)}c.stopEvent(f)},onMouseUp:function(f){for(var a=0;a<2;++a)c.disconnect(this.events.pop());c.stopEvent(f)},onSelectStart:function(f){if(!this.skip||
!c.dnd.isFormElement(f))c.stopEvent(f)},onDragDetected:function(f){new this.mover(this.node,f,this)},onMoveStart:function(f){c.publish("/dnd/move/start",[f]);c.addClass(c.body(),"dojoMove");c.addClass(this.node,"dojoMoveItem")},onMoveStop:function(f){c.publish("/dnd/move/stop",[f]);c.removeClass(c.body(),"dojoMove");c.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(f,a){this.onMoving(f,a);var d=f.node.style;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(f,a)},onMoving:function(){},
onMoved:function(){}});return c.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(c){c.declare("dojo.dnd.move.constrainedMoveable",c.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(f,a){return new c.dnd.move.constrainedMoveable(a,f)},constructor:function(f,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(f){var a=this.constraintBox=this.constraints.call(this,f);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){f=c._getMarginSize(f.node);a.r-=f.w;
a.b-=f.h}},onMove:function(f,a){var d=this.constraintBox,e=f.node.style;this.onMoving(f,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(f,a)}});c.declare("dojo.dnd.move.boxConstrainedMoveable",c.dnd.move.constrainedMoveable,{box:{},markupFactory:function(f,a){return new c.dnd.move.boxConstrainedMoveable(a,f)},constructor:function(f,a){var d=a&&a.box;this.constraints=function(){return d}}});c.declare("dojo.dnd.move.parentConstrainedMoveable",
c.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(f,a){return new c.dnd.move.parentConstrainedMoveable(a,f)},constructor:function(f,a){var d=a&&a.area;this.constraints=function(){var e=this.node.parentNode,g=c.getComputedStyle(e),h=c._getMarginBox(e,g);if(d=="margin")return h;var i=c._getMarginExtents(e,g);h.l+=i.l;h.t+=i.t;h.w-=i.w;h.h-=i.h;if(d=="border")return h;i=c._getBorderExtents(e,g);h.l+=i.l;h.t+=i.t;h.w-=i.w;h.h-=i.h;if(d=="padding")return h;i=c._getPadExtents(e,g);h.l+=
i.l;h.t+=i.t;h.w-=i.w;h.h-=i.h;return h}}});c.dnd.constrainedMover=c.dnd.move.constrainedMover;c.dnd.boxConstrainedMover=c.dnd.move.boxConstrainedMover;c.dnd.parentConstrainedMover=c.dnd.move.parentConstrainedMover;return c.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(c){(function(){var f=c.dnd.Moveable.prototype.onMove;c.declare("dojo.dnd.TimedMoveable",c.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 c.dnd.TimedMoveable(d,a)},onMoveStop:function(a){if(a._timer){clearTimeout(a._timer);f.call(this,a,a._leftTop)}c.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;f.call(e,a,a._leftTop)},this.timeout)}}})})();return c.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(c){c.declare("dojo.fx.Toggler",null,{node:null,showFunc:c.fadeIn,hideFunc:c.fadeOut,showDuration:200,hideDuration:200,constructor:function(f){var a=this;c.mixin(a,f);a.node=f.node;a._showArgs=c.mixin({},f);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=c.mixin({},f);a._hideArgs.node=a.node;a._hideArgs.duration=a.hideDuration;a.hideAnim=a.hideFunc(a._hideArgs);c.connect(a.showAnim,"beforeBegin",c.hitch(a.hideAnim,
"stop",true));c.connect(a.hideAnim,"beforeBegin",c.hitch(a.showAnim,"stop",true))},show:function(f){return this.showAnim.play(f||0)},hide:function(f){return this.hideAnim.play(f||0)}});return c.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(c){(function(){var f={_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;c.forEach(this._animations,function(g){this.duration+=g.duration;if(g.delay)this.duration+=g.delay},this)};c.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){c.disconnect(this._onAnimateCtx);c.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=c.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=c.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 h=c.connect(this._current,"beforeBegin",this,
function(){this._fire("beforeBegin")}),i=c.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),j=c.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);c.disconnect(h);c.disconnect(i);c.disconnect(j)});this._onAnimateCtx&&c.disconnect(this._onAnimateCtx);this._onAnimateCtx=c.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&c.disconnect(this._onEndCtx);this._onEndCtx=c.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,
arguments);return this},pause:function(){if(this._current){var e=c.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);c.disconnect(e)});this._current.pause()}return this},gotoPercent:function(e,g){this.pause();var h=this.duration*e;this._current=null;c.some(this._animations,function(i){if(i.duration<=h){this._current=i;return true}h-=i.duration;return false});this._current&&this._current.gotoPercent(h/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=c.connect(this._current,"onStop",this,function(){this._fire("onStop",arguments);c.disconnect(g)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&c.disconnect(this._onAnimateCtx);this._onEndCtx&&c.disconnect(this._onEndCtx)}});c.extend(a,f);c.fx.chain=function(e){return new a(e)};
var d=function(e){this._animations=e||[];this._connects=[];this.duration=this._finished=0;c.forEach(e,function(h){var i=h.duration;if(h.delay)i+=h.delay;if(this.duration<i)this.duration=i;this._connects.push(c.connect(h,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new c.Animation({curve:[0,1],duration:this.duration});var g=this;c.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(h){g._connects.push(c.connect(g._pseudoAnimation,h,function(){g._fire(h,
arguments)}))})};c.extend(d,{_doAction:function(e,g){c.forEach(this._animations,function(h){h[e].apply(h,g)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,g){var h=this._pseudoAnimation;h[e].apply(h,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 h=
this.duration*e;c.forEach(this._animations,function(i){i.gotoPercent(i.duration<h?1:h/i.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(){c.forEach(this._connects,c.disconnect)}});c.extend(d,f);c.fx.combine=function(e){return new d(e)};c.fx.wipeIn=function(e){var g=e.node=c.byId(e.node),h=g.style,i;e=c.animateProperty(c.mixin({properties:{height:{start:function(){i=
h.overflow;h.overflow="hidden";if(h.visibility=="hidden"||h.display=="none"){h.height="1px";h.display="";h.visibility="";return 1}else{var j=c.style(g,"height");return Math.max(j,1)}},end:function(){return g.scrollHeight}}}},e));c.connect(e,"onEnd",function(){h.height="auto";h.overflow=i});return e};c.fx.wipeOut=function(e){var g=(e.node=c.byId(e.node)).style,h;e=c.animateProperty(c.mixin({properties:{height:{end:1}}},e));c.connect(e,"beforeBegin",function(){h=g.overflow;g.overflow="hidden";g.display=
""});c.connect(e,"onEnd",function(){g.overflow=h;g.height="auto";g.display="none"});return e};c.fx.slideTo=function(e){var g=null,h=null,i=function(j){return function(){var k=c.getComputedStyle(j),l=k.position;g=l=="absolute"?j.offsetTop:parseInt(k.top)||0;h=l=="absolute"?j.offsetLeft:parseInt(k.left)||0;if(l!="absolute"&&l!="relative"){k=c.position(j,true);g=k.y;h=k.x;j.style.position="absolute";j.style.top=g+"px";j.style.left=h+"px"}}}(e.node=c.byId(e.node));i();e=c.animateProperty(c.mixin({properties:{top:e.top||
0,left:e.left||0}},e));c.connect(e,"beforeBegin",e,i);return e}})();return c.fx});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(c,f){c.declare("dijit.form._FormMixin",null,{state:"",reset:function(){c.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=false;return c.every(c.map(this.getDescendants(),function(d){d._hasBeenBlurred=true;var e=d.disabled||!d.validate||d.validate();if(!e&&!a){c.window.scrollIntoView(d.containerNode||d.domNode);d.focus();a=true}return e}),function(d){return d})},setValues:function(a){c.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var d={};c.forEach(this.getDescendants(),function(i){if(i.name)(d[i.name]||(d[i.name]=[])).push(i)});for(var e in d)if(d.hasOwnProperty(e)){var g=d[e],h=c.getObject(e,false,a);if(h!==undefined){c.isArray(h)||(h=[h]);if(typeof g[0].checked=="boolean")c.forEach(g,function(i){i.set("value",c.indexOf(h,i.value)!=-1)});else g[0].multiple?g[0].set("value",h):c.forEach(g,function(i,
j){i.set("value",h[j])})}}},getValues:function(){c.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};c.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)c.setObject(e,g,a);else{g=c.getObject(e,false,a);g===undefined&&c.setObject(e,null,a)}else{d=c.getObject(e,false,a);
if(!d){d=[];c.setObject(e,d,a)}g!==false&&d.push(g)}else{d=c.getObject(e,false,a);if(typeof d!="undefined")c.isArray(d)?d.push(g):c.setObject(e,[d,g],a);else c.setObject(e,g,a)}}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=c.map(this._descendants,function(d){return d.get("state")||""});return c.indexOf(a,"Error")>=0?"Error":c.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){c.forEach(this._childConnections||
[],c.hitch(this,"disconnect"));c.forEach(this._childWatches||[],function(a){a.unwatch()})},connectChildren:function(a){var d=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(i,j){d[i]=j}:c.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],g=this._childWatches=[];c.forEach(c.filter(this._descendants,function(i){return i.validate}),function(i){c.forEach(["state","disabled"],function(j){g.push(i.watch(j,function(){d.set("state",
d._getState())}))})});var h=function(){d._onChangeDelayTimer&&clearTimeout(d._onChangeDelayTimer);d._onChangeDelayTimer=setTimeout(function(){delete d._onChangeDelayTimer;d._set("value",d.get("value"))},10)};c.forEach(c.filter(this._descendants,function(i){return i.onChange}),function(i){e.push(d.connect(i,"onChange",h));g.push(i.watch("disabled",h))})},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 f.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(c,f){c.declare("dijit._DialogMixin",null,{attributeMap:f._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=f._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return f._DialogMixin});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(c,f){c.declare("dijit.DialogUnderlay",[f._Widget,f._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){c.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){c.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,d=this.domNode.style;d.display="none";var e=c.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 f.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return f.DialogUnderlay});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(c,f){c.declare("dijit.layout._LayoutWidget",[f._Widget,f._Container,f._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);c.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(c.isIE?
this.domNode:c.global,"onresize",function(){this.resize()})}}},resize:function(a,d){var e=this.domNode;if(a){c.marginBox(e,a);if(a.t)e.style.top=a.t+"px";if(a.l)e.style.left=a.l+"px"}d=d||{};c.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=c.mixin(c.marginBox(e),d);a=c.getComputedStyle(e);var g=c._getMarginExtents(e,a),h=c._getBorderExtents(e,a);d=this._borderBox={w:d.w-(g.w+h.w),h:d.h-(g.h+h.h)};g=c._getPadExtents(e,a);this._contentBox={l:c._toPixelValue(e,a.paddingLeft),t:c._toPixelValue(e,a.paddingTop),
w:d.w-g.w,h:d.h-g.h};this.layout()},layout:function(){},_setupChild:function(a){c.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){c.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});f.layout.marginBox2contentBox=function(a,d){var e=c.getComputedStyle(a),g=c._getMarginExtents(a,
e),h=c._getPadBorderExtents(a,e);return{l:c._toPixelValue(a,e.paddingLeft),t:c._toPixelValue(a,e.paddingTop),w:d.w-(g.w+h.w),h:d.h-(g.h+h.h)}};(function(){var a=function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},d=function(e,g){var h=e.resize?e.resize(g):c.marginBox(e.domNode,g);if(h)c.mixin(e,h);else{c.mixin(e,c.marginBox(e.domNode));c.mixin(e,g)}};f.layout.layoutChildren=function(e,g,h,i,j){g=c.mixin({},g);c.addClass(e,"dijitLayoutContainer");h=c.filter(h,function(k){return k.region!=
"center"&&k.layoutAlign!="client"}).concat(c.filter(h,function(k){return k.region=="center"||k.layoutAlign=="client"}));c.forEach(h,function(k){var l=k.domNode,m=k.region||k.layoutAlign,p=l.style;p.left=g.l+"px";p.top=g.t+"px";p.position="absolute";c.addClass(l,"dijitAlign"+a(m));l={};if(i&&i==k.id)l[k.region=="top"||k.region=="bottom"?"h":"w"]=j;if(m=="top"||m=="bottom"){l.w=g.w;d(k,l);g.h-=k.h;if(m=="top")g.t+=k.h;else p.top=g.t+g.h+"px"}else if(m=="left"||m=="right"){l.h=g.h;d(k,l);g.w-=k.w;if(m==
"left")g.l+=k.w;else p.left=g.l+g.w+"px"}else if(m=="client"||m=="center")d(k,g)})}})();return f.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(c,f){c.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){c.forEach(this.getChildren(),function(a){a.startup();a._started=true})},startup:function(){if(!this._started){var a=f._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(c.isIE?this.domNode:c.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=c.query("> *",this.containerNode).filter(function(g){return g.tagName!=="SCRIPT"}),d=a.filter(function(g){return c.hasAttr(g,"data-dojo-type")||c.hasAttr(g,"dojoType")||c.hasAttr(g,"widgetId")}),e=c.filter(d.map(f.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;c.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&&c.marginBox(this.domNode,
a);var e=this.containerNode;if(e===this.domNode){d=d||{};c.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=c.mixin(c.marginBox(e),d);this._contentBox=f.layout.marginBox2contentBox(e,d)}else this._contentBox=c.contentBox(e);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||c.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else c.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"&&!c.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 f.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(c){c.getObject("html",true,c);(function(){var f=0;c.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};c.html._emptyNode=c.empty;c.html._setNodeContent=function(a,d){c.empty(a);if(d){if(typeof d=="string")d=c._toDom(d,a.ownerDocument);if(!d.nodeType&&c.isArrayLike(d))for(var e=d.length,g=0;g<d.length;g=e==d.length?g+1:0)c.place(d[g],a,"last");else c.place(d,a,"last")}return a};c.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:c._scopeName,startup:true,constructor:function(a,d){c.mixin(this,a||{});d=this.node=c.byId(this.node||d);if(!this.id)this.id=["Setter",d?d.id||d.tagName:"",f++].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=c.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){c.forEach(this.parseResults,function(a){a.destroy&&a.destroy()});delete this.parseResults}c.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(c.isString(a)){if(this.cleanContent)a=c.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={};c.forEach(["dir","lang","textDir"],
function(g){if(this[g])d[g]=this[g]},this);this.parseResults=c.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&&c.html._setNodeContent(this.node,a,true)}});c.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 c.html._ContentSetter(c.mixin(e,
{content:d,node:a}))).set():c.html._setNodeContent(a,d,true)}})();return c.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(c,f){c.declare("dijit.layout.ContentPane",[f._Widget,f.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:c._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:c.delegate(f._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=c.doc.createDocumentFragment();for(d=c.byId(d);d.firstChild;)e.appendChild(d.firstChild);a=c.delegate(a,{content:e})}this.inherited(arguments,[a,d])},postMixInProperties:function(){this.inherited(arguments);var a=c.i18n.getLocalization("dijit",
"loading",this.lang);this.loadingMessage=c.string.substitute(this.loadingMessage,a);this.errorMessage=c.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";c.attr(this.domNode,"role")||f.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&c.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&c.isFunction(a.startup)){a.startup();
a._started=true}},this)},setHref:function(a){c.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 c.Deferred(c.hitch(this,"cancel"));this.onLoadDeferred.addCallback(c.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){c.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 c.Deferred(c.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(c.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 c.Deferred(c.hitch(this,"cancel"));this.onLoadDeferred.addCallback(c.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"};c.isObject(this.ioArgs)&&c.mixin(d,this.ioArgs);var e=this._xhrDfd=(this.ioMethod||c.xhrGet)(d);e.addCallback(function(g){try{a._isDownloaded=true;a._setContent(g,false);a.onDownloadEnd()}catch(h){a._onError("Content",h)}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;c.forEach(this.getChildren(),function(d){d.destroyRecursive&&d.destroyRecursive()});if(a){c.forEach(a.parseResults,
function(d){d.destroyRecursive&&d.domNode&&d.domNode.parentNode==c.body()&&d.destroyRecursive()});delete a.parseResults}c.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,d){this.destroyDescendants();var e=this._contentSetter;if(!(e&&e instanceof c.html._ContentSetter))e=this._contentSetter=new c.html._ContentSetter({node:this.containerNode,_onError:c.hitch(this,this._onError),onContentError:c.hitch(this,function(h){h=this.onContentError(h);try{this.containerNode.innerHTML=
h}catch(i){console.error("Fatal "+this.id+" could not change content due to "+i.message,i)}})});var g=c.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(c.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 f.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(c,f){c.declare("dijit.TooltipDialog",[f.layout.ContentPane,f._Templated,f.form._FormMixin,f._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:c.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");c.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);f.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=c.keys;a.charOrCode===e.TAB&&this._getFocusItems(this.containerNode);var g=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==e.ESCAPE){setTimeout(c.hitch(this,"onCancel"),0);c.stopEvent(a)}else if(d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB){g||f.focus(this._lastFocusItem);c.stopEvent(a)}else if(d==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey){g||f.focus(this._firstFocusItem);c.stopEvent(a)}else a.charOrCode===
e.TAB&&a.stopPropagation()}});return f.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(c,f){c.declare("dijit._DialogBase",[f._Templated,f.form._FormMixin,f._DialogMixin,f._CssStateMixin],{templateString:c.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:c.delegate(f._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:f.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var a=c.i18n.getLocalization("dijit","common");c.mixin(this,a);this.inherited(arguments)},
postCreate:function(){c.style(this.domNode,{display:"none",position:"absolute"});c.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&&f._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);f.focus(this._firstFocusItem)}this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=
c.position(a.node)},_setup:function(){var a=this.domNode;if(this.titleBar&&this.draggable){this._moveable=c.isIE==6?new c.dnd.TimedMoveable(a,{handle:this.titleBar}):new c.dnd.Moveable(a,{handle:this.titleBar,timeout:0});this._dndListener=c.subscribe("/dnd/move/stop",this,"_endDrag")}else c.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":c.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 c.style(this.containerNode,{width:"auto",height:"auto"});var a=c._getMarginSize(this.domNode),d=c.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 c.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(!c.hasClass(c.body(),"dojoMove")){var a=this.domNode,d=c.window.getBox(),e=this._relativePosition,g=e?null:c._getBorderBox(a),h=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));c.style(a,{left:h+"px",top:d+"px"})}},_onKey:function(a){if(a.charOrCode){var d=c.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||f.focus(this._lastFocusItem);c.stopEvent(a)}else if(e==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey){g||f.focus(this._firstFocusItem);c.stopEvent(a)}else{for(;e;){if(e==this.domNode||c.hasClass(e,"dijitPopup"))if(a.charOrCode==d.ESCAPE)this.onCancel();else return;e=e.parentNode}if(a.charOrCode!==d.TAB)c.stopEvent(a);else if(!c.isOpera)try{this._firstFocusItem.focus()}catch(h){}}}},
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(c.connect(window,"onscroll",this,"layout"));this._modalconnects.push(c.connect(window,"onresize",this,function(){var d=c.window.getBox();if(!this._oldViewport||d.h!=this._oldViewport.h||d.w!=this._oldViewport.w){this.layout();this._oldViewport=d}}));this._modalconnects.push(c.connect(this.domNode,
"onkeypress",this,"_onKey"));c.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new c.Deferred(c.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=c.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:c.hitch(this,function(){f._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:c.hitch(this,function(){if(this.autofocus&&f._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
f.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 c.Deferred(c.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=c.fadeOut({node:this.domNode,duration:this.duration,onEnd:c.hitch(this,function(){this.domNode.style.display="none";f._DialogLevelManager.hide(this);this.onHide();
this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred})}).play();if(this._scrollConnected)this._scrollConnected=false;c.forEach(this._modalconnects,c.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",false);return this._fadeOutDeferred}},layout:function(){if(this.domNode.style.display!="none"){f._underlay&&f._underlay.layout();this._position()}},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&
this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&c.unsubscribe(this._dndListener);c.forEach(this._modalconnects,c.disconnect);f._DialogLevelManager.hide(this);this.inherited(arguments)}});c.declare("dijit.Dialog",[f.layout.ContentPane,f._DialogBase],{});f._DialogLevelManager={show:function(a,d){var e=f._dialogStack;e[e.length-1].focus=f.getFocus(a);var g=f._underlay;if(!g||g._destroyed)g=f._underlay=new f.DialogUnderlay(d);else g.set(a.underlayAttrs);var h=
e[e.length-1].dialog?e[e.length-1].zIndex+2:950;e.length==1&&g.show();c.style(f._underlay.domNode,"zIndex",h-1);c.style(a.domNode,"zIndex",h);e.push({dialog:a,underlayAttrs:d,zIndex:h})},hide:function(a){var d=f._dialogStack;if(d[d.length-1].dialog==a){d.pop();var e=d[d.length-1];if(d.length==1)f._underlay._destroyed||f._underlay.hide();else{c.style(f._underlay.domNode,"zIndex",e.zIndex-1);f._underlay.set(e.underlayAttrs)}if(a.refocus){d=e.focus;if(!d||e.dialog&&!c.isDescendant(d.node,e.dialog.domNode)){e.dialog._getFocusItems(e.dialog.domNode);
d=e.dialog._firstFocusItem}try{f.focus(d)}catch(g){}}}else{e=c.indexOf(c.map(d,function(h){return h.dialog}),a);e!=-1&&d.splice(e,1)}},isTop:function(a){var d=f._dialogStack;return d[d.length-1].dialog==a}};f._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return f.Dialog});define("text!orion/widgets/templates/OpenResourceDialog.html",function(){return'<div dojoAttachPoint="containerNode">\n\t<div dojoAttachPoint="dialog" dojoType="dijit.Dialog" title="${title}" widgetsInTemplate="true">\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","text!orion/widgets/templates/OpenResourceDialog.html"],function(c,f){return c.declare("orion.widgets.OpenResourceDialog",[f._Widget,f._Templated],{widgetsInTemplate:true,templateString:c.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,searchLocation:null,searcher:null,constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.searchLocation=
arguments[0]&&arguments[0].SearchLocation;this.searcher=arguments[0]&&arguments[0].searcher;if(!this.searchLocation)throw new Error("Missing required argument: SearchLocation");if(!this.searcher)throw new Error("Missing required argument: searcher");},postMixInProperties:function(){this.inherited(arguments);this.title="Open Resource";this.selectFile="Type the name of a file to open (? = any character, * = any string):";this.searchPlaceHolder="Search"},postCreate:function(){this.inherited(arguments);
c.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(c.hitch(this,this.checkSearch),0)});c.connect(this.resourceName,"onKeyPress",this,function(a){if(a.keyCode===c.keys.ENTER&&this.results){a=c.query("a",this.results);if(a.length>0){window.open(a[0].href);this.dialog.hide()}}});c.connect(this.dialog,"onMouseUp",function(a){a.target.focus()});c.connect(this.dialog,"onHide",this,function(){this.onHide()});this.dialog.refocus=
false},checkSearch:function(){clearTimeout(this.timeoutId);var a=+new Date;if(a-this.time>this.SEARCH_DELAY){this.time=a;this.doSearch()}else this.timeoutId=setTimeout(c.hitch(this,arguments.callee),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value");if(a){c.place("<div>Searching&#x2026;</div>",this.results,"only");var d=this;setTimeout(function(){var e=a+=/\*$/.test(a)?"":"*";d.searcher.search(d.results,d.searchLocation+"Name:"+e,false,false,c.hitch(d,d.decorateResult),
true)},0)}},decorateResult:function(a){var d=this;c.query("a",a).forEach(function(e){c.connect(e,"onmouseup",function(g){!c.mouseButtons.isMiddle(g)&&!c.isCopyKey(g)&&d.dialog.hide()})})},show:function(){this.dialog.show();this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);setTimeout(c.hitch(this,function(){this.dialog.destroyRecursive();this.destroyRecursive()}),this.dialog.duration)}})});
define("orion/globalCommands",["dojo","dijit","orion/commands","orion/util","orion/textview/keyBinding","dijit/Menu","dijit/MenuItem","dijit/form/DropDownButton","orion/widgets/OpenResourceDialog"],function(c,f,a,d,e){function g(m,p){var n=c.byId("userInfo");if(n){c.addClass(n,"globalActions");var o=f.byId("userMenu");o&&o.destroy();c.empty(n);if(m){d.setUserName(m);o=new f.Menu({style:"display: none;",id:"userMenu"});var q=new f.MenuItem({label:"Profile",onClick:c.hitch(this,function(){window.location=
"/profile/user-profile.html#/users/"+m})});o.addChild(q);q=new f.MenuItem({label:"Sign out",onClick:logout});o.addChild(q);p=new f.form.DropDownButton({label:m,dropDown:o,title:p});c.addClass(p.domNode,"commandImage");c.place(p.domNode,n,"last")}else{p=document.createElement("span");p.appendChild(document.createTextNode("Sign in"));p.onclick=function(){login()};p.id="signOutUser";n.appendChild(p);c.addClass(p,"commandLink")}l=null}else l={userName:m,userStatusText:p}}function h(m,p,n,o){var q=c.byId("pageActions");
if(n)q=c.byId(n);if(q){c.empty(q);m.renderCommands(q,"dom",p,p,"image",null,null,!o)}}function i(m,p,n,o,q,u,r,s){var x;o=c.byId(m);if(!o)throw"could not find banner parent, id was "+m;c.place(j,o,"only");c.place('<div id="keyAssist" class="keyAssistFloat"></div>',document.body,"last");var v=c.byId("primaryNav");if(v)for(var y=p.getServiceReferences("orion.page.link"),F=0;F<y.length;F++)p.getService(y[F]).then(function(){for(var G={},I=y[F].getPropertyNames(),E=0;E<I.length;E++)G[I[E]]=y[F].getProperty(I[E]);
if(G.href&&G.name){I=c.create("a",{href:G.href},v,"last");c.addClass(I,"commandLink");x=document.createTextNode(G.name);c.place(x,I,"only")}});var H=c.byId("search");if(!H)throw"failed to generate HTML for banner";c.connect(H,"onkeypress",function(G){if(G.charOrCode===c.keys.ENTER)if(H.value.length>0)window.location="/search/search.html#"+("/filesearch?q="+H.value)});if(m=c.byId("pageTitle")){x=document.createTextNode(document.title);c.place(x,m,"last")}var A=function(G,I,E){var L=new orion.widgets.OpenResourceDialog({SearchLocation:G,
searcher:I});E&&c.connect(L,"onHide",function(){E.getTextView().focus()});window.setTimeout(function(){L.show()},0)};m=new a.Command({name:"Find File Named...",id:"eclipse.openResource",callback:function(){A("/filesearch?q=",q,r)}});if(r){r.getTextView().setKeyBinding(new e.KeyBinding("r",true,true,false),"Find File Named...");r.getTextView().setAction("Find File Named...",function(){A("/filesearch?q=",q,r);return true})}n.addCommand(m,"global");n.registerCommandContribution("eclipse.openResource",
1,"globalActions",null,new a.CommandKeyBinding("t"),true);var D=c.byId("keyAssist");c.connect(document,"onkeypress",c.hitch(this,function(G){if(G.charOrCode===c.keys.ESCAPE)D.style.display="none"}));s&&s.addHandler({isActive:function(){return D.style.display==="block"},cancel:function(){if(this.isActive()){D.style.display="none";return true}return false}});s=new a.Command({name:"Show Keys",id:"eclipse.keyAssist",callback:function(){c.empty(D);if(r){c.place("<h2>Editor</h2>",D,"last");for(var G=r.getTextView().getActions(false),
I=0;I<G.length;I++)for(var E=G[I],L=r.getTextView().getKeyBindings(E),N=0;N<L.length;N++)c.place("<span>"+d.getUserKeyString(L[N])+" = "+E+"<br></span>",D,"last")}c.place("<h2>Global</h2>",D,"last");n.showKeyBindings(D);D.style.display="block";return true}});n.addCommand(s,"global");n.registerCommandContribution("eclipse.keyAssist",1,"globalActions",null,new a.CommandKeyBinding(191,false,true),true);if(r){r.getTextView().setKeyBinding(new a.CommandKeyBinding("L",true,true),"Show Keys");r.getTextView().setAction("Show Keys",
s.callback)}if(s=c.byId("globalActions")){c.empty(s);n.renderCommands(s,"global",u||{},u,"image")}l&&g(l.userName,l.userStatusText);if(k)(u=c.byId("footer"))&&c.place(k,u,"only")}var j='<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="/index.html"><img class="toolbarLabel" src="/images/orion.gif" 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="/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></td></tr></table>',
k='<img src="http://dev.eclipse.org/small_icons/emblems/emblem-important.png"/> 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=e4&component=Orion&version=0.2">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>',
l=null;return{generateUserInfo:g,generateDomCommandsInBanner:h,generateBanner:i}});
define("dojo/date",["dojo"],function(c){c.getObject("date",true,c);c.date.getDaysInMonth=function(f){var a=f.getMonth();if(a==1&&c.date.isLeapYear(f))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};c.date.isLeapYear=function(f){f=f.getFullYear();return!(f%400)||!(f%4)&&!!(f%100)};c.date.getTimezoneName=function(f){var a=f.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=f.toLocaleString();e=/ ([A-Z\/]+)$/;
if(a=a.match(e))d=a[1]}}return d=="AM"||d=="PM"?"":d};c.date.compare=function(f,a,d){f=new Date(+f);a=new Date(+(a||new Date));if(d=="date"){f.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(d=="time"){f.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(f>a)return 1;if(f<a)return-1;return 0};c.date.add=function(f,a,d){var e=new Date(+f),g=false,h="Date";switch(a){case "day":break;case "weekday":var i;if(a=d%5){a=a;i=parseInt(d/5)}else{a=d>0?5:-5;i=d>0?(d-5)/5:(d+5)/5}var j=f.getDay(),k=0;if(j==6&&d>0)k=1;
else if(j==0&&d<0)k=-1;j=j+a;if(j==0||j==6)k=d>0?2:-2;d=7*i+a+k;break;case "year":h="FullYear";g=true;break;case "week":d*=7;break;case "quarter":d*=3;case "month":g=true;h="Month";break;default:h="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}h&&e["set"+h](e["get"+h]()+d);g&&e.getDate()<f.getDate()&&e.setDate(0);return e};c.date.difference=function(f,a,d){a=a||new Date;d=d||"day";var e=a.getFullYear()-f.getFullYear(),g=1;switch(d){case "quarter":f=f.getMonth();a=a.getMonth();f=Math.floor(f/3)+
1;a=Math.floor(a/3)+1;a+=e*4;g=a-f;break;case "weekday":e=Math.round(c.date.difference(f,a,"day"));d=parseInt(c.date.difference(f,a,"week"));g=e%7;if(g==0)e=d*5;else{var h=0,i=f.getDay();a=a.getDay();d=parseInt(e/7);g=e%7;f=new Date(f);f.setDate(f.getDate()+d*7);f=f.getDay();if(e>0)switch(true){case i==6:h=-1;break;case i==0:h=0;break;case a==6:h=-1;break;case a==0:h=-2;break;case f+g>5:h=-2}else if(e<0)switch(true){case i==6:h=0;break;case i==0:h=1;break;case a==6:h=2;break;case a==0:h=1;break;case f+
g<0:h=2}e+=h;e-=d*2}g=e;break;case "year":g=e;break;case "month":g=a.getMonth()-f.getMonth()+e*12;break;case "week":g=parseInt(c.date.difference(f,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()-f.getTime()}return Math.round(g)};return c.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(c){c.getObject("cldr.supplemental",true,c);c.cldr.supplemental.getFirstDayOfWeek=function(f){f={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}[c.cldr.supplemental._region(f)];return f===undefined?
1:f};c.cldr.supplemental._region=function(f){f=c.i18n.normalizeLocale(f);f=f.split("-");var a=f[1];if(a){if(a.length==4)a=f[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"}[f[0]];return a};c.cldr.supplemental.getWeekend=function(f){var a=c.cldr.supplemental._region(f);f={"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(f===undefined)f=6;if(a===undefined)a=0;return{start:f,end:a}};return c.cldr.supplemental});
define("dojo/regexp",["dojo"],function(c){c.getObject("regexp",true,c);c.regexp.escapeString=function(f,a){return f.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(d){if(a&&a.indexOf(d)!=-1)return d;return"\\"+d})};c.regexp.buildGroupRE=function(f,a,d){if(!(f instanceof Array))return a(f);for(var e=[],g=0;g<f.length;g++)e.push(a(f[g]));return c.regexp.group(e.join("|"),d)};c.regexp.group=function(f,a){return"("+(a?"?:":"")+f+")"};return c.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(c){c.getObject("date.locale",true,c);(function(){function f(e,g,h,i){return i.replace(/([a-z])\1*/ig,function(j){var k,l,m=j.charAt(0);j=j.length;var p=["abbr","wide","narrow"];switch(m){case "G":k=g[j<4?"eraAbbr":"eraNames"][e.getFullYear()<0?0:1];break;case "y":k=e.getFullYear();switch(j){case 1:break;case 2:if(!h.fullYear){k=String(k);k=k.substr(k.length-
2);break}default:l=true}break;case "Q":case "q":k=Math.ceil((e.getMonth()+1)/3);l=true;break;case "M":k=e.getMonth();if(j<3){k=k+1;l=true}else{m=["months-format",p[j-3]].join("-");k=g[m][k]}break;case "w":k=c.date.locale._getWeekOfYear(e,0);l=true;break;case "d":k=e.getDate();l=true;break;case "D":k=c.date.locale._getDayOfYear(e);l=true;break;case "E":k=e.getDay();if(j<3){k=k+1;l=true}else{m=["days-format",p[j-3]].join("-");k=g[m][k]}break;case "a":k=e.getHours()<12?"am":"pm";k=h[k]||g["dayPeriods-format-wide-"+
k];break;case "h":case "H":case "K":case "k":l=e.getHours();switch(m){case "h":k=l%12||12;break;case "H":k=l;break;case "K":k=l%12;break;case "k":k=l||24;break}l=true;break;case "m":k=e.getMinutes();l=true;break;case "s":k=e.getSeconds();l=true;break;case "S":k=Math.round(e.getMilliseconds()*Math.pow(10,j-3));l=true;break;case "v":case "z":if(k=c.date.locale._getZone(e,true,h))break;j=4;case "Z":k=c.date.locale._getZone(e,false,h);k=[k<=0?"+":"-",c.string.pad(Math.floor(Math.abs(k)/60),2),c.string.pad(Math.abs(k)%
60,2)];if(j==4){k.splice(0,0,"GMT");k.splice(3,0,":")}k=k.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+i);}if(l)k=c.string.pad(k,j);return k})}function a(e,g,h,i){var j=function(m){return m};g=g||j;h=h||j;i=i||j;var k=e.match(/(''|[^'])+/g),l=e.charAt(0)=="'";c.forEach(k,function(m,p){if(m){k[p]=(l?h:g)(m.replace(/''/g,"'"));l=!l}else k[p]=""});return i(k.join(""))}function d(e,g,h,i){i=c.regexp.escapeString(i);h.strict||(i=i.replace(" a"," ?a"));return i.replace(/([a-z])\1*/ig,
function(j){var k;k=j.charAt(0);var l=j.length,m="",p="";if(h.strict){if(l>1)m="0{"+(l-1)+"}";if(l>2)p="0{"+(l-2)+"}"}else{m="0?";p="0{0,2}"}switch(k){case "y":k="\\d{2,4}";break;case "M":k=l>2?"\\S+?":"1[0-2]|"+m+"[1-9]";break;case "D":k="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p+"[1-9][0-9]|"+m+"[1-9]";break;case "d":k="3[01]|[12]\\d|"+m+"[1-9]";break;case "w":k="[1-4][0-9]|5[0-3]|"+m+"[1-9]";break;case "E":k="\\S+";break;case "h":k="1[0-2]|"+m+"[1-9]";break;case "k":k="1[01]|"+m+"\\d";break;case "H":k=
"1\\d|2[0-3]|"+m+"\\d";break;case "K":k="1\\d|2[0-4]|"+m+"[1-9]";break;case "m":case "s":k="[0-5]\\d";break;case "S":k="\\d{"+l+"}";break;case "a":l=h.am||g["dayPeriods-format-wide-am"];m=h.pm||g["dayPeriods-format-wide-pm"];k=l+"|"+m;if(!h.strict){if(l!=l.toLowerCase())k+="|"+l.toLowerCase();if(m!=m.toLowerCase())k+="|"+m.toLowerCase();if(k.indexOf(".")!=-1)k+="|"+k.replace(/\./g,"")}k=k.replace(/\./g,"\\.");break;default:k=".*"}e&&e.push(j);return"("+k+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}c.date.locale._getZone=
function(e,g){return g?c.date.getTimezoneName(e):e.getTimezoneOffset()};c.date.locale.format=function(e,g){g=g||{};var h=c.i18n.normalizeLocale(g.locale),i=g.formatLength||"short";h=c.date.locale._getGregorianBundle(h);var j=[];e=c.hitch(this,f,e,h,g);if(g.selector=="year")return a(h["dateFormatItem-yyyy"]||"yyyy",e);var k;if(g.selector!="date")(k=g.timePattern||h["timeFormat-"+i])&&j.push(a(k,e));if(g.selector!="time")(k=g.datePattern||h["dateFormat-"+i])&&j.push(a(k,e));return j.length==1?j[0]:
h["dateTimeFormat-"+i].replace(/\{(\d+)\}/g,function(l,m){return j[m]})};c.date.locale.regexp=function(e){return c.date.locale._parseInfo(e).regexp};c.date.locale._parseInfo=function(e){e=e||{};var g=c.i18n.normalizeLocale(e.locale);g=c.date.locale._getGregorianBundle(g);var h=e.formatLength||"short",i=e.datePattern||g["dateFormat-"+h],j=e.timePattern||g["timeFormat-"+h];h=e.selector=="date"?i:e.selector=="time"?j:g["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(l,m){return[j,i][m]});var k=[];
return{regexp:a(h,c.hitch(this,d,k,g,e)),tokens:k,bundle:g}};c.date.locale.parse=function(e,g){var h=/[\u200E\u200F\u202A\u202E]/g,i=c.date.locale._parseInfo(g),j=i.tokens,k=i.bundle;e=(new RegExp("^"+i.regexp.replace(h,"")+"$",i.strict?"":"i")).exec(e&&e.replace(h,""));if(!e)return null;var l=["abbr","wide","narrow"],m=[1970,0,1,0,0,0,0],p="";e=c.every(e,function(o,q){if(!q)return true;q=j[q-1];var u=q.length;switch(q.charAt(0)){case "y":if(u!=2&&g.strict)m[0]=o;else if(o<100){o=Number(o);u=""+(new Date).getFullYear();
q=u.substring(0,2)*100;u=Math.min(Number(u.substring(2,4))+20,99);m[0]=o<u?q+o:q-100+o}else{if(g.strict)return false;m[0]=o}break;case "M":if(u>2){q=k["months-format-"+l[u-3]].concat();if(!g.strict){o=o.replace(".","").toLowerCase();q=c.map(q,function(s){return s.replace(".","").toLowerCase()})}o=c.indexOf(q,o);if(o==-1)return false}else o--;m[1]=o;break;case "E":case "e":q=k["days-format-"+l[u-3]].concat();if(!g.strict){o=o.toLowerCase();q=c.map(q,function(s){return s.toLowerCase()})}o=c.indexOf(q,
o);if(o==-1)return false;break;case "D":m[1]=0;case "d":m[2]=o;break;case "a":q=g.am||k["dayPeriods-format-wide-am"];u=g.pm||k["dayPeriods-format-wide-pm"];if(!g.strict){var r=/\./g;o=o.replace(r,"").toLowerCase();q=q.replace(r,"").toLowerCase();u=u.replace(r,"").toLowerCase()}if(g.strict&&o!=q&&o!=u)return false;p=o==u?"p":o==q?"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});
h=+m[3];if(p==="p"&&h<12)m[3]=h+12;else if(p==="a"&&h==12)m[3]=0;h=new Date(m[0],m[1],m[2],m[3],m[4],m[5],m[6]);g.strict&&h.setFullYear(m[0]);var n=j.join("");i=n.indexOf("d")!=-1;n=n.indexOf("M")!=-1;if(!e||n&&h.getMonth()>m[1]||i&&h.getDate()>m[2])return null;if(n&&h.getMonth()<m[1]||i&&h.getDate()<m[2])h=c.date.add(h,"hour",1);return h}})();(function(){var f=[];c.date.locale.addCustomFormats=function(a,d){f.push({pkg:a,name:d})};c.date.locale._getGregorianBundle=function(a){var d={};c.forEach(f,
function(e){e=c.i18n.getLocalization(e.pkg,e.name,a);d=c.mixin(d,e)},this);return d}})();c.date.locale.addCustomFormats("dojo.cldr","gregorian");c.date.locale.getNames=function(f,a,d,e){var g;e=c.date.locale._getGregorianBundle(e);f=[f,d,a];if(d=="standAlone"){d=f.join("-");g=e[d];if(g[0]==1)g=undefined}f[1]="format";return(g||e[f.join("-")]).concat()};c.date.locale.isWeekend=function(f,a){a=c.cldr.supplemental.getWeekend(a);f=(f||new Date).getDay();if(a.end<a.start){a.end+=7;if(f<a.start)f+=7}return f>=
a.start&&f<=a.end};c.date.locale._getDayOfYear=function(f){return c.date.difference(new Date(f.getFullYear(),0,1,f.getHours()),f)+1};c.date.locale._getWeekOfYear=function(f,a){if(arguments.length==1)a=0;var d=(new Date(f.getFullYear(),0,1)).getDay(),e=(d-a+7)%7;e=Math.floor((c.date.locale._getDayOfYear(f)+e-1)/7);d==a&&e++;return e};return c.date.locale});
define("orion/auth",["dojo","orion/globalCommands","dojo/date/locale"],function(c,f){function a(k,l,m,p){h(l.xhr,function(){var n=c.xhrGet(k);m&&n.then(m,p)})}function d(k,l){h(l.xhr,function(){c.xhrPost(k)})}function e(k,l){h(l.xhr,function(){c.xhrDelete(k)})}function g(k,l){h(l.xhr,function(){c.xhrPut(k)})}function h(k,l){if(k.status===403){if(j==null)j=new dijit.Dialog({title:"Forbidden access"});j.set("content",k.message);j.show()}if(k.status===401){var m=c.subscribe("/auth",function(){l();c.unsubscribe(m)});
if(!i){i=true;eval(k.responseText)}}}var i=false,j;c.addOnLoad(function(){window.dojo=c;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=f;c.xhrGet({url:"/auth2",handleAs:"javascript",headers:{"Orion-Version":"1"}})});return{handleGetAuthenticationError:a,handlePostAuthenticationError:d,handleDeleteAuthenticationError:e,handlePutAuthenticationError:g,handleAuthenticationError:h}});
define("orion/preferences",["dojo","orion/auth"],function(c,f){function a(i,j,k){this._name=i;this._userProvider=j;this._defaultsProvider=k;this._flushPending=false;this._defaults=this._store=null}function d(i){this.location=i;this._currentPromises={}}function e(i){this.location=i;this._currentPromise=null}function g(i,j,k){j=j||"/prefs/user";k=k||"/defaults.pref";this._userProvider=new d(j);this._defaultsProvider=new e(k);this._serviceRegistration=i.registerService("orion.core.preference",this)}
a.prototype={_flush:function(){return this._userProvider.put(this._name,this._store)},_scheduleFlush:function(){if(!this._flushPending){this._flushPending=true;window.setTimeout(c.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},keys:function(){var i,j=[];for(i in this._store)this._store.hasOwnProperty(i)&&i.charAt(0)!=="/"&&j.push(i);for(i in this._defaults)this._defaults.hasOwnProperty(i)&&!this._store.hasOwnProperty(i)&&i.charAt(0)!=="/"&&j.push(i);return j},
get:function(i){if(i.charAt(0)==="/")throw new Error("Bad character in key name: "+i);return this._store.hasOwnProperty(i)?this._store[i]:this._defaults[i]},put:function(i,j){if(i.charAt(0)==="/")throw new Error("Bad character in key name: "+i);if(this._store[i]!==j){this._store[i]=j;this._scheduleFlush()}},remove:function(i){if(i.charAt(0)==="/")throw new Error("Bad character in key name: "+i);if(this._store[i]){delete this._store[i];this._scheduleFlush();return true}return false},clear:function(){var i;
for(i in this._store)this._store.hasOwnProperty(i)&&i.charAt(0)!=="/"&&delete this._store[i];this._scheduleFlush()},sync:function(){if(this._flushPending){this._flushPending=false;return this._flush()}return this._defaultsProvider.get(this._name).then(c.hitch(this,function(i){this._defaults=i;return this._userProvider.get(this._name).then(c.hitch(this,function(j){this._store=j}))}))},flush:function(){this._flush()}};var h={get:function(i,j){i=localStorage.getItem(i);if(i==null)return null;i=JSON.parse(i);
if(j||i._expires&&i._expires>(new Date).getTime()){delete i._expires;return i}return null},set:function(i,j){j._expires=(new Date).getTime()+36E5;var k=JSON.stringify(j);localStorage.setItem(i,k);delete j._expires}};d.prototype={get:function(i){if(this._currentPromises[i])return this._currentPromises[i];var j=new c.Deferred,k="/orion/preferences/user"+i,l=h.get(k);if(l!==null)j.resolve(l);else{this._currentPromises[i]=j;var m=this;c.xhrGet({url:this.location+i,headers:{"Orion-Version":"1"},handleAs:"json",
timeout:15E3,load:function(p){h.set(k,p);delete m._currentPromises[i];j.resolve(p)},error:function(p,n){p.log=false;if(n.xhr.status===401)f.handleGetAuthenticationError(this,n);else if(n.xhr.status===404){p={};h.set(k,p);delete m._currentPromises[i];j.resolve(p)}else{delete m._currentPromises[i];j.resolve(h.get(k,true)||{})}},failOk:true})}return j},put:function(i,j){var k=new c.Deferred;h.set("/orion/preferences/user"+i,j);c.xhrPut({url:this.location+i,putData:JSON.stringify(j),headers:{"Orion-Version":"1"},
handleAs:"json",contentType:"application/json",timeout:15E3,load:function(){k.resolve()},error:function(l,m){m.xhr.status===401?f.handlePutAuthenticationError(this,m):k.resolve()}});return k}};e.prototype={get:function(i){if(this._currentPromise)return this._currentPromise;var j=new c.Deferred,k=h.get("/orion/preferences/default");if(k!==null)j.resolve(k[i]||{});else{this._currentPromise=j;var l=this;c.xhrGet({url:this.location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(m){h.set("/orion/preferences/default",
m);l._currentPromise=null;j.resolve(m[i]||{})},error:function(m,p){if(p.xhr.status===401)f.handleGetAuthenticationError(p.xhr,p);else if(p.xhr.status===404){h.set("/orion/preferences/default",{});l._currentPromise=null;j.resolve({})}else{l._currentPromise=null;m=h.get("/orion/preferences/default",true);m!==null?j.resolve(m[i]||{}):j.resolve({})}}})}return j}};g.prototype={getPreferences:function(i){var j=new a(i,this._userProvider,this._defaultsProvider);return j.sync().then(function(){return j})}};
return{Preferences:a,PreferencesService:g}});
define("dojo/DeferredList",["dojo"],function(c){c.DeferredList=function(f,a,d,e){var g=[];c.Deferred.call(this);var h=this;f.length===0&&!a&&this.resolve([0,[]]);var i=0;c.forEach(f,function(j,k){function l(m,p){g[k]=[m,p];i++;i===f.length&&h.resolve(g)}j.then(function(m){a?h.resolve([k,m]):l(true,m)},function(m){d?h.reject(m):l(false,m);if(e)return null;throw m;})})};c.DeferredList.prototype=new c.Deferred;c.DeferredList.prototype.gatherResults=function(f){f=new c.DeferredList(f,false,true,false);
f.addCallback(function(a){var d=[];c.forEach(a,function(e){d.push(e[1])});return d});return f};return c.DeferredList});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(c,f){var a=a||{};a.Plugin=function(d,e,g){function h(r,s,x,v){if(!m)throw new Error("plugin not connected");var y=o++;q[String(y)]=v;g.postMessage({id:y,serviceId:r,method:s,params:x},m)}function i(r){var s={};if(r.methods)for(var x=0;x<r.methods.length;x++){var v=r.methods[x];s[v]=function(y){return function(){var F=Array.prototype.slice.call(arguments),H=new c.Deferred;l._load().then(function(){h(r.serviceId,
y,F,H)});return H.promise}}(v)}return s}function j(){var r=e.services;if(r)for(var s=0;s<r.length;s++){var x=r[s],v=i(x);u[x.serviceId]=g.registerService(x.type,v,x.properties)}}function k(r){try{if(r.method)if("plugin"===r.method){if(e){if(JSON.stringify(e)!=JSON.stringify(r.params[0])){for(var s in u)if(u.hasOwnProperty(s)){u[s].unregister();delete u[s]}e=r.params[0];j();g.updatePlugin(l)}}else{e=r.params[0];j()}if(!n){n=true;p.resolve(l)}}else if("dispatchEvent"===r.method){var x=u[r.serviceId];
x.dispatchEvent.apply(x,r.params)}else throw new Error("Bad response method: "+r.method);else{var v=q[String(r.id)];delete q[String(r.id)];r.error?v.reject(r.error):v.resolve(r.result)}}catch(y){console.log(y)}}var l=this,m=null,p=new c.Deferred,n=false,o=0,q={},u={};this.getLocation=function(){return d};this.getData=function(){return e};this.uninstall=function(){for(var r in u)if(u.hasOwnProperty(r)){u[r].unregister();delete u[r]}if(m){g.disconnect(m);m=null}g.uninstallPlugin(this)};this.getServiceReferences=
function(){var r=[],s;for(s in u)u.hasOwnProperty(s)&&r.push(u[s].getServiceReference());return r};this._load=function(r){if(!m){m=g.connect(d,k);window.setTimeout(function(){if(!n){if(!r){e={};g.updatePlugin(l)}p.reject(new Error("Load timeout for plugin: "+d))}},15E3)}return p.promise};if(typeof d!=="string")throw new Error("invalid url:"+d);e&&j()};a.PluginRegistry=function(d,e){function g(){var s,x,v=[];if((s=l["/orion/preferences/default"]?JSON.parse(l["/orion/preferences/default"]):null)&&s["/plugins"]){q=
s["/plugins"];for(x in q)if(q.hasOwnProperty(x)){x=j(x);s="plugin."+x;if(l[s]){s=JSON.parse(l[s]);s=new a.Plugin(x,s,r);m.push(s)}else v.push(k.installPlugin(x))}}(u=l["/orion/preferences/user/plugins"]?JSON.parse(l["/orion/preferences/user/plugins"]):null)||(u={});for(x in u)if(u.hasOwnProperty(x)&&x!=="_expires"){x=j(x);s="plugin."+x;if(l[s]){s=JSON.parse(l[s]);s=new a.Plugin(x,s,r);m.push(s)}else v.push(k.installPlugin(x))}o=new c.DeferredList(v)}function h(s){var x;l["plugin."+s.getLocation()]=
JSON.stringify(s.getData());for(x in q)if(q.hasOwnProperty(x))if(s.getLocation()===j(x))return;for(x in u)if(u.hasOwnProperty(x))if(s.getLocation()===j(x))return;u[s.getLocation()]=true;l["/orion/preferences/user/plugins"]=JSON.stringify(u)}function i(s){var x;delete l["plugin."+s.getLocation()];for(x in u)if(u.hasOwnProperty(x))if(s.getLocation()===j(x)){delete u[s.getLocation()];l["/orion/preferences/user/plugins"]=JSON.stringify(u);return}}function j(s){if(s.indexOf("://")===-1){var x=document.createElement("a");
x.href=s;return x.href}return s}var k=this,l=e||localStorage||{},m=[],p=[],n=new f.EventTarget,o,q={},u;window.addEventListener("message",function(s){for(var x=0,v=s.source;x<p.length;x++)if(v===p[x].target){p[x].handler(JSON.parse(s.data));break}},false);var r={registerService:c.hitch(d,d.registerService),connect:function(s,x){var v=document.createElement("iframe");v.id=s;v.name=s;v.style.display="none";v.style.visibility="hidden";v.src=s;document.body.appendChild(v);s={iframe:v,target:v.contentWindow,
handler:x,url:s};p.push(s);return s},disconnect:function(s){for(var x=0;x<p.length;x++)if(s===p[x]){p.splice(x,1);try{document.body.removeChild(s.iframe)}catch(v){}break}},uninstallPlugin:function(s){i(s);for(var x=0;x<m.length;x++)if(s===m[x]){m.splice(x,1);n.dispatchEvent("pluginRemoved",s);break}},updatePlugin:function(s){l["plugin."+s.getLocation()]=JSON.stringify(s.getData());n.dispatchEvent("pluginUpdated",s)},postMessage:function(s,x){x.target.postMessage(JSON.stringify(s),x.url)}};this.startup=
function(){return o.promise};this.shutdown=function(){for(var s=0;s<p.length;s++)try{document.body.removeChild(p[s].iframe)}catch(x){}};this.installPlugin=function(s,x){s=j(s);for(var v=new c.Deferred,y,F=0;F<m.length;F++)if(s===m[F].getLocation()){y=m[F];break}if(y)if(y.getData())v.resolve(y);else{var H=function(A){if(A.getLocation()===s){v.resolve(A);n.removeEventListener("pluginAdded",H)}};n.addEventListener("pluginAdded",H)}else{y=new a.Plugin(s,x,r);m.push(y);if(y.getData()){h(y);n.dispatchEvent("pluginAdded",
y);v.resolve(y)}else y._load(!!o).then(function(){h(y);n.dispatchEvent("pluginAdded",y);v.resolve(y)},function(A){v.reject(A)})}return v.promise};this.getPlugins=function(){for(var s=[],x=0;x<m.length;x++)m[x].getData()&&s.push(m[x]);return s};this.getPlugin=function(s){s=j(s);for(var x=0;x<m.length;x++)if(m[x].getData()&&s===m[x].getLocation())return m[x];return null};this.addEventListener=function(s,x){n.addEventListener(s,x)};this.removeEventListener=function(s,x){n.removeEventListener(s,x)};g()};
return a});
define("orion/status",["dojo"],function(c){function f(a,d,e){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this.domId=d;this.progressDomId=e||d}f.prototype={setMessage:function(a,d){c.place(window.document.createTextNode(a),this.domId,"only");if(typeof d==="number"){var e=this;window.setTimeout(function(){var g=c.byId(e.domId);(typeof g.textContent==="string"?g.textContent:g.innerText)===a&&c.place(window.document.createTextNode(""),e.domId,"only")},
d)}},setErrorMessage:function(a){var d=a.responseText||a;try{d=JSON.parse(d)}catch(e){}a=d.Message||d;var g="red";if(d.Severity)switch(d.Severity){case "Warning":g="#FFCC00";break;case "Error":g="red";break;case "Info":case "Ok":g="green";break}d=c.create("span",{style:{color:g}});c.place(window.document.createTextNode(a),d);c.place(d,this.domId,"only")},setProgressMessage:function(a){c.place(window.document.createTextNode(a),this.progressDomId,"only")},setProgressResult:function(a){a=a.responseText||
a;try{a=JSON.parse(a)}catch(d){}var e=a.Message||a,g="/images/info.gif",h="info";if(a.Severity)switch(a.Severity){case "Warning":g="/images/warning.gif";h="warning";break;case "Error":g="/images/error.gif";h="error";break}var i=new Image;i.alt=h;i.title="Press to clear message";i.name=h;i.src=g;c.style(i,"opacity","0.7");c.connect(i,"onmouseover",this,function(){c.style(i,"opacity","1")});c.connect(i,"onmouseout",this,function(){c.style(i,"opacity","0.7")});c.connect(i,"onclick",this,function(){this.setProgressMessage("")});
c.place(i,this.progressDomId,"only");a.HTML?c.place(e,this.progressDomId,"last"):c.place(window.document.createTextNode("   "+e),this.progressDomId,"last")},showWhile:function(a,d){var e=this;e.setProgressMessage(d);return a.then(function(g){if(g&&g.Location&&g.Message&&g.Running)return e._doProgressWhile(g);e.setProgressMessage("");g&&g.Result&&e.setProgressResult(g.Result);return g})},_doProgressWhile:function(a){var d=new c.Deferred;window.setTimeout(function(){c.xhrGet({url:a.Location,headers:{"Orion-Version":"1"},
handleAs:"json",timeout:15E3,load:function(e){d.callback(e)}})},2E3);return this.showWhile(d,a.Message)}};f.prototype.constructor=f;return{StatusReportingService:f}});define("orion/dialogs",[],function(){function c(f){this._serviceRegistry=f;this._serviceRegistration=f.registerService("orion.page.dialog",this)}c.prototype={confirm:function(f,a){a(window.confirm(f))},openFiles:function(){}};c.prototype.constructor=c;return{DialogService:c}});
define("orion/selection",["dojo"],function(c){function f(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.selection",this);this._selections=[]}f.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=c.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",
this._getSingleSelection(),this._selections)}};f.prototype.constructor=f;return{Selection:f}});
define("orion/fileClient",["dojo","orion/auth"],function(c,f){function a(d){this.fileService=d}a.prototype={setFileService:function(d){this.fileService=d},fetchChildren:function(){return this._doServiceCall("fetchChildren",arguments)},createWorkspace:function(){return this._doServiceCall("createWorkspace",arguments)},loadWorkspaces:function(){return this._doServiceCall("loadWorkspaces",arguments)},loadWorkspace:function(){return this._doServiceCall("loadWorkspace",arguments)},createProject:function(){return this._doServiceCall("createProject",
arguments)},createFolder:function(){return this._doServiceCall("createFolder",arguments)},createFile:function(){return this._doServiceCall("createFile",arguments)},deleteFile:function(){return this._doServiceCall("deleteFile",arguments)},moveFile:function(){return this._doServiceCall("moveFile",arguments)},copyFile:function(){return this._doServiceCall("copyFile",arguments)},read:function(){return this._doServiceCall("read",arguments)},write:function(){return this._doServiceCall("write",arguments)},
remoteImport:function(){return this._doServiceCall("remoteImport",arguments)},remoteExport:function(){return this._doServiceCall("remoteExport",arguments)},_doServiceCall:function(d,e){var g=new c.Deferred,h=this.fileService;h[d].apply(h,e).then(function(i){g.callback(i)},function(i){i.status===401||i.status===403?f.handleAuthenticationError(i,function(){h[d].apply(h,e).then(function(j){g.callback(j)},function(j){g.errback(j)})}):g.errback(i)});return g}};a.prototype.constructor=a;return{FileClient:a}});
define("dojo/cookie",["dojo","dojo/regexp"],function(c){c.cookie=function(f,a,d){var e=document.cookie;if(arguments.length==1){var g=e.match(new RegExp("(?:^|; )"+c.regexp.escapeString(f)+"=([^;]*)"));return g?decodeURIComponent(g[1]):undefined}else{d=d||{};e=d.expires;if(typeof e=="number"){var h=new Date;h.setTime(h.getTime()+e*24*60*60*1E3);e=d.expires=h}if(e&&e.toUTCString)d.expires=e.toUTCString();a=encodeURIComponent(a);e=f+"="+a;for(g in d){e+="; "+g;h=d[g];if(h!==true)e+="="+h}document.cookie=
e}};c.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 c.cookie});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(c,f){c.declare("dijit.layout.BorderContainer",f.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){c.forEach(this.getChildren(),
this._setupChild,this);this.inherited(arguments)}},_setupChild:function(a){var d=a.region;if(d){this.inherited(arguments);c.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=c.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;c.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();c.removeClass(a.domNode,this.baseClass+"Pane");c.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
c.style(a.domNode,d=="top"||d=="bottom"?"width":"height","auto")},getChildren:function(){return c.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return c.filter(this.getChildren(),function(d){return d.region==a})[0]._splitterWidget},resize:function(){if(!this.cs||!this.pe){var a=this.domNode;this.cs=c.getComputedStyle(a);this.pe=c._getPadExtents(a,this.cs);this.pe.r=c._toPixelValue(a,this.cs.paddingRight);this.pe.b=c._toPixelValue(a,this.cs.paddingBottom);
c.style(a,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,d){if(this._borderBox&&this._borderBox.h){var e=c.map(this.getChildren(),function(h,i){return{pane:h,weight:[h.region=="center"?Infinity:0,h.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(h.region)?1:-1),i]}},this);e.sort(function(h,i){h=h.weight;i=i.weight;for(var j=0;j<h.length;j++)if(h[j]!=i[j])return h[j]-i[j];return 0});var g=[];c.forEach(e,function(h){h=h.pane;g.push(h);h._splitterWidget&&g.push(h._splitterWidget)});
f.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(){c.forEach(this.getChildren(),function(a){var d=a._splitterWidget;d&&d.destroy();delete a._splitterWidget});this.inherited(arguments)}});c.extend(f._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});c.declare("dijit.layout._Splitter",[f._Widget,f._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);c.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=c.cookie(this._cookieName);if(a)this.child.domNode.style[this.horizontal?"height":"width"]=a}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",d=c.marginBox(this.child.domNode)[a],e=c.filter(this.container.getChildren(),function(g){return g.region=="center"})[0];a=c.marginBox(e.domNode)[a];return Math.min(this.child.maxSize,d+a)},_startDrag:function(a){if(!this.cover){this.cover=c.doc.createElement("div");c.addClass(this.cover,"dijitSplitterCover");c.place(this.cover,this.child.domNode,"after")}c.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&c.destroy(this.fake);if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
c.addClass(this.domNode,"dijitSplitterShadow");c.place(this.fake,this.domNode,"after")}c.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake)c.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var d=this._factor,e=this.horizontal,g=e?"pageY":"pageX",h=a[g],i=this.domNode.style;e=e?"h":"w";var j=c.marginBox(this.child.domNode)[e],k=this._computeMaxSize(),l=this.child.minSize||20;e=this.region;var m=e==
"top"||e=="bottom"?"top":"left",p=parseInt(i[m],10),n=this._resize,o=c.hitch(this.container,"_layoutChildren",this.child.id);e=c.doc;this._handlers=(this._handlers||[]).concat([c.connect(e,"onmousemove",this._drag=function(q,u){q=q[g]-h;var r=d*q+j,s=Math.max(Math.min(r,k),l);if(n||u)o(s);i[m]=q+p+d*(s-r)+"px"}),c.connect(e,"ondragstart",c.stopEvent),c.connect(c.body(),"onselectstart",c.stopEvent),c.connect(e,"onmouseup",this,"_stopDrag")]);c.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||
a.type=="mouseenter";c.toggleClass(this.domNode,"dijitSplitterHover",a);c.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&c.removeClass(this.cover,"dijitSplitterCoverActive");this.fake&&c.destroy(this.fake);c.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)c.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){c.forEach(this._handlers,c.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=true;var d=this.horizontal,e=1,g=c.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=c._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));c.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});c.declare("dijit.layout._Gutter",[f._Widget,f._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);c.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return f.layout.BorderContainer});
define("orion/searchClient",["dojo","dijit","orion/auth","orion/util","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(c,f,a,d){function e(g){this.registry=g.serviceRegistry}e.prototype={search:function(g,h,i,j,k,l){c.xhrGet({url:h,handleAs:"json",headers:{Accept:"application/json","Orion-Version":"1"},sync:false,timeout:15E3,error:c.hitch(this,function(m,p){this.handleError(m,g);a.handleGetAuthenticationError(this,p,c.hitch(this,this.showSearchResult),c.hitch(this,
function(n){this.handleError(n,g)}));return m}),load:c.hitch(this,function(m){this.showSearchResult(g,h,i,j,k,l,m)})})},handleError:function(g,h){console.error(g);var i=document.createTextNode(g);c.place(i,h,"only");return g},saveSearch:function(g,h){this.registry.getService("orion.core.favorite").then(function(i){i.addFavoriteSearch(g,h)})},formatHighlight:function(g){g=g.split(/(##match|match##)/);for(var h=c.create("div"),i,j=0;j<g.length;j++){var k=g[j];if(k==="##match")i=c.create("b");else if(k===
"match##"){c.place(i,h,"last");i=null}else c.place(document.createTextNode(k),i||h,"last")}return h},showSearchResult:function(g,h,i,j,k,l,m){h=window.location.href.split("#")[0];var p=h.substring(0,h.length-window.location.pathname.length),n=false;c.empty(g);h=m.responseHeader.params.q;h=h.substring(h.indexOf("}")+1);if(m.response.numFound>0){for(var o=document.createElement("table"),q=0;q<m.response.docs.length;q++){var u=m.response.docs[q];if(!u.Directory&&u.Location!==i){var r;if(!n){n=true;if(j){r=
o.insertRow(0).insertCell(0);r.innerHTML="<h2>Search Results</h2>"}}r=o.insertRow(-1).insertCell(0);r.colspan=2;var s=document.createElement("a");c.place(document.createTextNode(u.Name),s);u.LineNumber&&c.place(document.createTextNode(" (Line "+u.LineNumber+")"),s);var x;x=h&&u.LineNumber?p+"/edit/edit.html#"+d.hashFromPosition(u.Location,null,null,u.LineNumber,u.Offset,h.length):p+"/edit/edit.html#"+u.Location;s.setAttribute("href",x);r.appendChild(s);if(!l&&m.highlighting&&m.highlighting[u.Id]&&
m.highlighting[u.Id].Text){u=m.highlighting[u.Id].Text[0];r=o.insertRow(-1).insertCell(0);r.colspan=2;c.place(this.formatHighlight(u),r,"only")}}}c.place(o,g,"last");typeof k==="function"&&k(g)}if(!n){g=c.place("<div>No matches found for </div>",g,"only");g=c.create("b",null,g,"last");c.place(document.createTextNode(h),g,"only")}}};e.prototype.constructor=e;return{Searcher:e}});
define("orion/git/gitClient",["dojo","orion/auth"],function(c,f){var a=a||{};a.GitService=function(){function d(e){if(e){this._serviceRegistry=e;this._serviceRegistration=e.registerService("orion.git.provider",this);var g=this;e.getService("orion.net.ssh").then(function(h){g._sshService=h})}}d.prototype={checkGitService:function(){},cloneGitRepository:function(e,g,h,i,j,k,l,m,p){var n={};if(e)n.Name=e;if(h)n.Path=h;if(g)n.GitUrl=g;n.Location=i;if(j)n.GitSshUsername=j;if(k)n.GitSshPassword=k;if(l)n.GitSshKnownHost=
l;if(m)n.GitSshPrivateKey=m;if(p)n.GitSshPassphrase=p;return c.xhrPost({url:"/gitapi/clone/",headers:{"Orion-Version":"1"},postData:c.toJson(n),handleAs:"json",timeout:15E3,load:function(o){return o},error:function(o,q){f.handleGetAuthenticationError(this,q);console.error("HTTP status code: ",q.xhr.status);return o}})},initGitRepository:function(){console.error("Not implemented yet")},removeGitRepository:function(e){return c.xhrDelete({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,
load:function(g){return g},error:function(g,h){f.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status);return g}})},getDiffContent:function(e,g,h){var i=this;c.xhrGet({url:e,headers:{"Orion-Version":"1"},content:{parts:"diff"},handleAs:"text",timeout:15E3,load:function(j,k){if(g)typeof g==="function"?g(j,k):i._serviceRegistration.dispatchEvent(g,j)},error:function(j,k){h&&h(j,k);f.handleGetAuthenticationError(this,k);return j}})},getDiffFileURI:function(e,g,h){c.xhrGet({url:e,
headers:{"Orion-Version":"1"},content:{parts:"uris"},handleAs:"json",timeout:15E3,load:function(i,j){if(g)typeof g==="function"?g(i,j):service._serviceRegistration.dispatchEvent(g,i)},error:function(i,j){h&&h(i,j);f.handleGetAuthenticationError(this,j);return i}})},getGitStatus:function(e,g,h){c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(i,j){if(g)typeof g==="function"?g(i,j):service._serviceRegistration.dispatchEvent(g,i)},error:function(i,j){h&&h(i,j);
f.handleGetAuthenticationError(this,j);return i}})},stage:function(e,g,h){return c.xhrPut({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(i,j){if(g)typeof g==="function"?g(i,j):service._serviceRegistration.dispatchEvent(g,i)},error:function(i,j){h&&h(i,j);f.handleGetAuthenticationError(this,j);return i}})},unstageAll:function(e,g,h,i){return c.xhrPost({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:c.toJson({Reset:g}),load:function(j,k){if(h)typeof h===
"function"?h(j,k):service._serviceRegistration.dispatchEvent(h,j)},error:function(j,k){i&&i(j,k);f.handleGetAuthenticationError(this,k);return j}})},unstage:function(e,g,h,i){return c.xhrPost({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:c.toJson({Path:g}),load:function(j,k){if(h)typeof h==="function"?h(j,k):service._serviceRegistration.dispatchEvent(h,j)},error:function(j,k){i&&i(j,k);f.handleGetAuthenticationError(this,k);return j}})},checkoutPath:function(e,g,h,i){return c.xhrPut({url:e,
headers:{"Orion-Version":"1"},putData:c.toJson({Path:g}),handleAs:"json",timeout:15E3,load:function(j,k){if(h)typeof h==="function"?h(j,k):service._serviceRegistration.dispatchEvent(h,j)},error:function(j,k){i&&i(j,k);handleGetAuthenticationError(this,k);return j}})},commitAll:function(e,g,h,i,j){c.xhrPost({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:h,load:function(k,l){if(i)typeof i==="function"?i(k,l):service._serviceRegistration.dispatchEvent(i,k)},error:function(k,
l){j&&j(k,l);f.handleGetAuthenticationError(this,l);return k}})},getGitClone:function(e,g){var h=this;return c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(i,j){if(g)typeof g==="function"?g(i,j):h._serviceRegistration.dispatchEvent(g,i)},error:function(i,j){f.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status)}})},getGitCloneConfig:function(e){return c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,
load:function(g){return g},error:function(g,h){f.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status)}})},getGitBranch:function(e){return c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g){return g},error:function(g,h){f.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status)}})},getGitRemote:function(e){return c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g){return g},
error:function(g,h){f.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status)}})},checkoutBranch:function(e,g){return c.xhrPut({url:e,headers:{"Orion-Version":"1"},putData:c.toJson({Branch:g}),handleAs:"json",timeout:5E3,load:function(h){return h},error:function(h,i){f.handleGetAuthenticationError(this,i);console.error("HTTP status code: ",i.xhr.status);return h}})},resetIndex:function(e,g){return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({Commit:g,
Reset:"HARD"}),handleAs:"json",timeout:5E3,load:function(h){return h},error:function(h,i){f.handleGetAuthenticationError(this,i);console.error("HTTP status code: ",i.xhr.status)}})},addBranch:function(e,g,h){var i={};if(g)i.Name=g;if(h)i.Branch=h;return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson(i),handleAs:"json",timeout:5E3,load:function(j){return j},error:function(j,k){f.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status);return j}})},removeBranch:function(e){return c.xhrDelete({url:e,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g){return g},error:function(g,h){f.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status);return g}})},addRemote:function(e,g,h){return c.xhrPost({url:e,headers:{"Orion-Version":"1"},putData:c.toJson({Remote:g,RemoteURI:h}),handleAs:"json",timeout:5E3,load:function(i){return i},error:function(i,j){f.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status);return i}})},
removeRemote:function(e){return c.xhrDelete({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(g){return g},error:function(g,h){f.handleGetAuthenticationError(this,h);console.error("HTTP status code: ",h.xhr.status);return g}})},doGitLog:function(e,g){var h=this;return c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(i,j){if(g)typeof g==="function"?g(i.Children,j):h._serviceRegistration.dispatchEvent(g,i.Children);return i.Children},
error:function(i,j){f.handleGetAuthenticationError(this,j);console.error("HTTP status code: ",j.xhr.status)}})},getDiff:function(e,g,h){var i=this;c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({New:g}),handleAs:"json",timeout:5E3,load:function(j,k){if(h)typeof h==="function"?h(j,k,k):i._serviceRegistration.dispatchEvent(h,j)},error:function(j,k){f.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}})},doFetch:function(e,g,h,i,j,k,l){var m=this;
return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({Fetch:"true",GitSshUsername:h,GitSshPassword:i,GitSshKnownHost:j,GitSshPrivateKey:k,GitSshPassphrase:l}),handleAs:"json",timeout:5E3,load:function(p,n){if(g)typeof g==="function"?g(p,n,n):m._serviceRegistration.dispatchEvent(g,p)},error:function(p,n){f.handleGetAuthenticationError(this,n);console.error("HTTP status code: ",n.xhr.status)}})},doMerge:function(e,g){return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({Merge:g}),
handleAs:"json",timeout:5E3,load:function(h,i){return{jsonData:h,secondArg:i}},error:function(h,i){f.handleGetAuthenticationError(this,i);console.error("HTTP status code: ",i.xhr.status);return{error:h,ioArgs:i}}})},doPush:function(e,g,h,i,j,k,l,m){var p=this;return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({PushSrcRef:g,PushTags:true,GitSshUsername:i,GitSshPassword:j,GitSshKnownHost:k,GitSshPrivateKey:l,GitSshPassphrase:m}),handleAs:"json",timeout:5E3,load:function(n,o){if(h)typeof h===
"function"?h(n,o,o):p._serviceRegistration.dispatchEvent(h,n)},error:function(n,o){f.handleGetAuthenticationError(this,o);console.error("HTTP status code: ",o.xhr.status);return n}})},getLog:function(e,g,h){var i=this;return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({New:g}),handleAs:"json",timeout:5E3,load:function(j,k){return k.xhr.getResponseHeader("Location")},error:function(j,k){f.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}}).then(function(j){c.xhrGet({url:j,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(k,l){if(h)typeof h==="function"?h(k.Children,l):i._serviceRegistration.dispatchEvent(h,k.Children);return k.Children},error:function(k,l){f.handleGetAuthenticationError(this,l);console.error("HTTP status code: ",l.xhr.status)}})})},getDefaultRemoteBranch:function(e,g){var h=this;c.xhrGet({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(i){return i},error:function(i,j){f.handleGetAuthenticationError(this,
j);console.error("HTTP status code: ",j.xhr.status)}}).then(function(i){if(i.Children[0]==null)return null;c.xhrGet({url:i.Children[0].Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(j,k){if(g)typeof g==="function"?g(j.Children[0],k):h._serviceRegistration.dispatchEvent(g,j.Children[0]);return j},error:function(j,k){f.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}})})},doAddTag:function(e,g,h){var i=this;return c.xhrPut({url:e,
headers:{"Orion-Version":"1"},putData:c.toJson({Name:g}),handleAs:"json",timeout:5E3,load:function(j,k){if(h)typeof h==="function"?h(j,k,k):i._serviceRegistration.dispatchEvent(h,j)},error:function(j,k){f.handleGetAuthenticationError(this,k);console.error("HTTP status code: ",k.xhr.status)}})},addCloneConfigurationProperty:function(e,g,h,i,j){return c.xhrPost({url:e,headers:{"Orion-Version":"1"},postData:c.toJson({Key:g,Value:h}),handleAs:"json",timeout:15E3,load:function(k,l){if(i)typeof i==="function"?
i(k,l):service._serviceRegistration.dispatchEvent(i,k)},error:function(k,l){j&&j(k,l);f.handleGetAuthenticationError(this,l);return k}})},editCloneConfigurationProperty:function(e,g,h,i){return c.xhrPut({url:e,headers:{"Orion-Version":"1"},putData:c.toJson({Value:g}),handleAs:"json",timeout:15E3,load:function(j,k){if(h)typeof h==="function"?h(j,k):service._serviceRegistration.dispatchEvent(h,j)},error:function(j,k){i&&i(j,k);f.handleGetAuthenticationError(this,k);return j}})},deleteCloneConfigurationProperty:function(e,
g,h){return c.xhrDelete({url:e,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(i,j){if(g)typeof g==="function"?g(i,j):service._serviceRegistration.dispatchEvent(g,i)},error:function(i,j){h&&h(i,j);f.handleGetAuthenticationError(this,j);return i}})}};return d}();return a});
define("orion/breadcrumbs",["dojo"],function(c){function f(a){this._init(a)}f.prototype={_init:function(a){var d=a.container;if(typeof d==="string")d=c.byId(d);if(!d)throw"no parent container";this._container=d;c.removeClass(d,"currentLocation");this._id=a.id||"eclipse.breadcrumbs";this._resource=a.resource||null;this._firstSegmentName=a.firstSegmentName;this._makeHref=a.makeHref;this.path="";this.render()},getNavigatorRootSegment:function(){if(this._firstSegmentName){var a=document.createElement("a");
c.place(document.createTextNode(this._firstSegmentName),a,"only");a.href="/navigate/table.html#";return a}return null},render:function(){var a=this._container,d=c.byId(this._id);if(d)c.empty(d);else{d=document.createElement("span");d.id=this._id;a.appendChild(d)}var e;if(e=this.getNavigatorRootSegment()){c.addClass(e,"breadcrumb");d.appendChild(e);if(this._resource&&this._resource.Parents){e=document.createElement("span");c.place(document.createTextNode(" / "),e,"only");this.path+="/";c.addClass(e,
"breadcrumb");d.appendChild(e)}else{e.href="";c.removeClass(e,"breadcrumb");c.addClass(e,"currentLocation")}}if(this._resource&&this._resource.Parents){a=this._resource.Parents;for(var g=a.length;--g>=0;){e=document.createElement("a");c.addClass(e,"breadcrumb");c.place(document.createTextNode(a[g].Name),e,"only");this.path+=a[g].Name;if(this._makeHref)this._makeHref(e,a[g].ChildrenLocation);else e.href="/navigate/table.html#"+a[g].ChildrenLocation;d.appendChild(e);e=document.createElement("span");
c.place(document.createTextNode(" / "),e,"only");this.path+="/";c.addClass(e,"breadcrumb");d.appendChild(e)}if(this._resource){e=document.createElement("a");c.place(document.createTextNode(this._resource.Name),e,"only");c.addClass(e,"breadcrumb");c.addClass(e,"currentLocation");this.path+=this._resource.Name;d.appendChild(e)}}if(d.childNodes.length===0){e=document.createElement("a");c.place(document.createTextNode(document.title),e,"only");c.addClass(e,"breadcrumb");c.addClass(e,"currentLocation");
d.appendChild(e)}}};f.prototype.constructor=f;return{BreadCrumbs:f}});
define("orion/ssh/sshTools",[],function(){var c=c||{};c.SshService=function(){function f(a){if(a){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.net.ssh",this)}}f.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 f}();return c});
define("orion/git/git-commit-details",["dojo","orion/commands"],function(c,f){var a={};a.CommitDetails=function(){function d(e){var g=e.parent;if(typeof g==="string")g=c.byId(g);if(!g)throw"no parent";if(!e.serviceRegistry)throw"no service registry";this._parent=g;this._registry=e.serviceRegistry;this._detailsPane=e.detailsPane;var h=new f.Command({name:"Show diff",tooltip:"Show the diff",image:"images/open_compare.gif",id:"eclipse.showDiff",hrefCallback:function(i){return"/compare/compare.html?readonly#"+
i.DiffLocation},visibleWhen:function(i){return i.Type==="Diff"}});this._registry.getService("orion.page.command").then(function(i){i.addCommand(h,"object");i.registerCommandContribution("eclipse.showDiff",1)})}d.prototype={loadCommitDetails:function(e){if(this._detailsPane){this._detailsPane.isRightPaneOpen()||this._detailsPane.toggle();this._detailsPane.style.overflow="hidden"}this.render(e)},render:function(e){var g=c.create("table",{id:"commitMetaTable"});c.addClass(g,"commitMetaTable");var h=
c.create("thead",null,g);h=c.create("tr",null,h);var i=c.create("td",{colspan:3},h);c.addClass(i,"paneHeadingContainer");c.place("<span class='paneHeading'>Commit details</span>",i,"only");h=c.create("td",null,h);c.style(h,"textAlign","right");c.addClass(h,"paneHeadingContainer");c.place("<span id='commitMetaCommands' class='paneHeadingToolbar'></span>",h,"only");if(e!=null){var j;i=c.create("tbody",null,g);h=c.create("tr");j=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");
c.place(document.createTextNode("Author"),j,"only");j=c.create("td",null,h,"last");c.place(document.createTextNode(e.AuthorName+" ("+e.AuthorEmail+")"),j,"only");c.place(h,i,"last");var k=c.create("td",{id:h.id+"actions"},h,"last");c.style(k,"whiteSpace","nowrap");c.style(k,"textAlign","right");h=c.create("tr");j=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");c.place(document.createTextNode("Committer"),j,"only");j=c.create("td",null,h,"last");c.place(document.createTextNode(e.CommitterName+
" ("+e.CommitterEmail+")"),j,"only");c.place(h,i,"last");k=c.create("td",{id:h.id+"actions"},h,"last");c.style(k,"whiteSpace","nowrap");c.style(k,"textAlign","right");h=c.create("tr");j=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");c.place(document.createTextNode("Message"),j,"only");j=c.create("td",null,h,"last");c.place(document.createTextNode(e.Message),j,"only");c.place(h,i,"last");k=c.create("td",{id:h.id+"actions"},h,"last");c.style(k,"whiteSpace","nowrap");c.style(k,
"textAlign","right");h=c.create("tr");j=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");c.place(document.createTextNode("Name"),j,"only");j=c.create("td",null,h,"last");c.place(document.createTextNode(e.Name),j,"only");c.place(h,i,"last");k=c.create("td",{id:h.id+"actions"},h,"last");c.style(k,"whiteSpace","nowrap");c.style(k,"textAlign","right")}c.place(g,this._parent,"only");if(e!=null){var l=c.byId("commitMetaCommands");this._registry.getService("orion.page.command").then(function(n){n.renderCommands(l,
"dom",this,this,"image")});g=c.create("table",{id:"commitDiffsTable"});c.addClass(g,"commitDiffsTable");h=c.create("thead",null,g);h=c.create("tr",null,h);i=c.create("td",{colspan:3},h);c.addClass(i,"paneHeadingContainer");c.place("<span class='paneHeading'>Commit diffs</span>",i,"only");h=c.create("td",null,h);c.style(h,"textAlign","right");c.addClass(h,"paneHeadingContainer");c.place("<span id='commitDiffsCommands' class='paneHeadingToolbar'></span>",h,"only");i=c.create("tbody",null,g);if(e.Diffs!=
null)for(var m=0;m<e.Diffs.length;m++){k=e.Diffs[m];j="commitDiff"+m;h=c.create("tr");h.id="row"+j;j=c.create("td",{style:"padding-left: 5px; padding-right: 5px"},h,"last");if(k.ChangeType==="ADD")img=c.create("img",{src:"/git/images/addition.gif"},j);else if(k.ChangeType==="DELETE")img=c.create("img",{src:"/git/images/removal.gif"},j);else if(k.ChangeType==="MODIFY")img=c.create("img",{src:"/git/images/modification.gif"},j);j=c.create("td",null,h,"last");c.place(document.createTextNode(k.ChangeType===
"DELETE"?k.OldPath:k.NewPath),j,"only");k=c.create("td",{id:h.id+"actions",style:"padding-left: 5px; padding-right: 5px"},h,"last");c.style(k,"whiteSpace","nowrap");c.style(k,"textAlign","right");var p=c.create("span",{id:h.id+"actionsWrapper"},k,"only");c.style(p,"visibility","hidden");this._registry.getService("orion.page.command").then(function(n){n.renderCommands(p,"object",e.Diffs[m],this,"image",null,m)});c.connect(h,"onmouseover",h,function(){var n=c.byId(this.id+"actionsWrapper");c.style(n,
"visibility","visible")});c.connect(h,"onmouseout",h,function(){var n=c.byId(this.id+"actionsWrapper");c.style(n,"visibility","hidden")});c.place(h,i,"last")}c.place(g,this._parent);l=c.byId("commitDiffsCommands");this._registry.getService("orion.page.command").then(function(n){n.renderCommands(l,"dom",this,this,"image")})}}};return d}();return a});
define("orion/treetable",["dojo"],function(c){function f(a){this._init(a)}f.prototype={_init:function(a){var d=a.parent,e=this;if(typeof d==="string")d=c.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(h){e._generate(h,0)})})},_generate:function(a,d){c.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 h in a){var i=document.createElement("tr");i.id=this._treeModel.getId(a[h]);i._depth=d;i._item=a[h];this._renderer.render(a[h],i);c.style(i.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*d+"px");c.place(i,e,g);if(g==="after")e=i}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(a,d,e,g,h){var i=this._treeModel.getId(a);if(i===this._id){this._removeChildRows(i);
this._generateChildren(d,0,c.byId(i+"tbody"),"last");this._rowsChanged()}else{var j=c.byId(i);if(j){j._item=a;if(j&&(e||j._expanded)){j._expanded=true;this._removeChildRows(i);if(d){this._generateChildren(d,j._depth+1,j,"after");this._rowsChanged();if(g&&h)document.images[g].src=h}else{tree=this;d=this._treeModel.getChildren(j._item,function(k){tree._generateChildren(k,j._depth+1,j,"after");tree._rowsChanged()})}}}else console.log("could not find table row "+i)}},refreshAndExpand:function(a,d,e,g){this.refresh(a,
d,true,e,g)},getItem:function(a){if(typeof a==="string"){var d=c.byId(a);if(d)return d._item}if(a._item)return a._item;return a},toggle:function(a,d,e,g){var h=c.byId(a);if(h)if(h._expanded){this.collapse(a);if(d)document.images[d].src=g}else{this.expand(a);if(d)document.images[d].src=e}},isExpanded:function(a){if(a=c.byId(a))return a._expanded;return false},expand:function(a,d,e){a=typeof a==="string"?a:this._treeModel.getId(a);var g=c.byId(a);if(g)if(!g._expanded){g._expanded=true;var h=this;this._treeModel.getChildren(g._item,
function(i){h._generateChildren(i,g._depth+1,g,"after");h._rowsChanged();d&&d.apply(this,e)})}},_removeChildRows:function(a){c.byId(this._id);var d=a===this._id,e=false,g=-1,h=[];c.query(".treeTableRow").forEach(function(k){if(!e)if(d)if(k._depth>g)h.push(k);else e=true;else if(k.id===a){d=true;g=k._depth}});for(var i in h){var j=h[i];j.parentNode.removeChild(j)}},collapse:function(a){a=typeof a==="string"?a:this._treeModel.getId(a);var d=c.byId(a);if(d)if(d._expanded){d._expanded=false;this._removeChildRows(a);
this._rowsChanged()}}};f.prototype.constructor=f;return{TableTree:f}});
define("orion/explorer",["dojo","orion/treetable"],function(c,f){var a={};a.Explorer=function(){function d(e,g,h){this.registry=e;this.renderer=h;this.selection=g;this.myTree=null}d.prototype={changedItem:function(e,g){c.hitch(this.myTree,this.myTree.refreshAndExpand)(e,g)},updateCommands:function(e){this.myTree&&c.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(e))},makeNewItemPlaceHolder:function(e,g,h){e=this.getRow(e);if(h){e=e.childNodes[h];c.place("<br><span id='"+g+"placeHolderRow'></span>",
e,"last");if(h=c.byId(g+"placeHolderRow"))return{tempNode:h,refNode:h}}if(e){c.place("<tr id='"+g+"placeHolderRow'><td id='"+g+"placeHolderCol'></td>",e,"after");h=c.byId(g+"placeHolderRow");e=c.byId(g+"placeHolderCol");if(h&&e)return{tempNode:h,refNode:e}}return null},getRow:function(e){if(e=this.model.getId(e))return c.byId(e)},createTree:function(e,g){var h=e+"innerTree",i=c.byId(h);i&&c.destroy(i);if(g)g.rootId=h;this.model=g;this.myTree=new f.TableTree({id:h,model:g,showRoot:false,parent:e,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 d}();a.ExplorerModel=function(){function d(e,g){this.rootPath=e;this.fetchItems=g}d.prototype={destroy:function(){},getRoot:function(e){this.fetchItems(this.rootPath).then(c.hitch(this,function(g){this.root=g;e(g)}))},getChildren:function(e,g){if(e.Children)g(e.Children);else e.ChildrenLocation?
this.fetchItems(e.ChildrenLocation).then(c.hitch(this,function(h){e.Children=h;g(h)})):g([])},getId:function(e){if(e===this.root)e=this.rootId;else{e=e.Location;e=e.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}return e}};return d}();a.ExplorerFlatModel=function(){function d(e,g){this.rootPath=e;this.fetchItems=g}d.prototype=new a.ExplorerModel;d.prototype.getChildren=function(e,g){e==this.root?g(e):g([])};return d}();a.ExplorerRenderer=function(){function d(e,g){this.explorer=g;this._init(e);this._expandImgSrc=
"/images/twistie_open.gif";this._collapseImgSrc="/images/twistie_closed.gif"}d.prototype={initTable:function(e,g){this.tableTree=g;c.empty(e);c.addClass(e,"treetable");this.renderTableHeader(e)},getActionsColumn:function(e,g){c.connect(g,"onmouseover",g,function(){var j=c.byId(this.id+"actionswrapper");c.style(j,"visibility","visible")});c.connect(g,"onmouseout",g,function(){var j=c.byId(this.id+"actionswrapper");c.style(j,"visibility","hidden")});var h=document.createElement("td");h.id=g.id+"actions";
var i=document.createElement("span");i.id=g.id+"actionswrapper";h.appendChild(i);c.style(i,"visibility","hidden");this.explorer.registry.getService("orion.page.command").then(function(j){j.renderCommands(i,"object",e,this.explorer,"image")});return h},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},getCheckboxColumn:function(e,g){if(this._useCheckboxSelection){e=document.createElement("td");c.addClass(e,"secondaryColumn");var h=document.createElement("input");
c.style(h,"verticalAlign","middle");h.type="checkbox";h.id=g.id+"selectedState";c.addClass(h,"selectionCheckmark");h.itemId=g.id;e.appendChild(h);c.connect(h,"onclick",c.hitch(this,function(i){c.toggleClass(g,"checkedRow",!!i.target.checked);this._storeSelections();this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())}));return e}},_storeSelections:function(){var e=this.getSelectedIds(),g=this._getUIStatePreferencePath();if(g&&window.sessionStorage)window.sessionStorage[g+
"selection"]=JSON.stringify(e)},_restoreSelections:function(e){e=window.sessionStorage[e+"selection"];if(typeof e==="string")e=e.length>0?JSON.parse(e):null;var g;if(e)for(g=0;g<e.length;g++){var h=c.byId(e[g]);if(h){c.addClass(h,"checkedRow");if(h=c.byId(h.id+"selectedState"))h.checked=true}}e=this.getSelected();this.explorer.selection&&this.explorer.selection.setSelections(e)},_storeExpansions:function(e){window.sessionStorage[e+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(e){var g=
false,h=window.sessionStorage[e+"expanded"];if(typeof h==="string")h=h.length>0?JSON.parse(h):null;var i;if(h)for(i=0;i<h.length;i++)if(c.byId(h[i])){this._expanded.push(h[i]);this.tableTree.expand(h[i],c.hitch(this,function(){this._restoreSelections(e)}));g=true}return!g},_getUIStatePreferencePath:function(){if(this.explorer){var e=this.explorer.getRootPath();if(this._cachePrefix&&e)return"/"+this._cachePrefix+"/"+e.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(e){return e+
"__expand"},getExpandImage:function(e,g,h){var i=c.create("img",{style:"vertical-align: middle;",src:this._collapseImgSrc,name:this.expandCollapseImageId(e.id)},g,"last");c.create("img",{style:"vertical-align: middle; margin-right: 4px",src:h?h:"/images/folder.gif"},g,"last");i.onclick=c.hitch(this,function(){this.tableTree.toggle(e.id,this.expandCollapseImageId(e.id),this._expandImgSrc,this._collapseImgSrc);if(this.tableTree.isExpanded(e.id))this._expanded.push(e.id);else for(var j in this._expanded)if(this._expanded[j]===
e.id){this._expanded.splice(j,1);break}(j=this._getUIStatePreferencePath())&&window.sessionStorage&&this._storeExpansions(j)});return i},render:function(e,g){g.cellSpacing="8px";this.renderRow(e,g)},getSelected:function(){var e=[];c.query(".selectionCheckmark").forEach(c.hitch(this,function(g){g.checked&&e.push(this.tableTree.getItem(g.parentNode.parentNode))}));return e},getSelectedIds:function(){var e=[];c.query(".selectionCheckmark").forEach(c.hitch(this,function(g){g.checked&&e.push(g.parentNode.parentNode.id)}));
return e},rowsChanged:function(){c.query(".treeTableRow").forEach(function(e,g){if(g%2){c.addClass(e,"darkTreeTableRow");c.removeClass(e,"lightTreeTableRow")}else{c.addClass(e,"lightTreeTableRow");c.removeClass(e,"darkTreeTableRow")}});this.explorer.selection&&this.explorer.selection.setSelections(this.getSelected())},updateCommands:function(){var e=this.explorer.registry;c.query(".treeTableRow").forEach(function(g){var h=c.byId(g.id+"actionswrapper");c.empty(h);e.getService("orion.page.command").then(function(i){i.renderCommands(h,
"object",g._item,this.explorer,"image")})})},_init:function(e){if(e){this._useCheckboxSelection=e.checkbox===undefined?false:e.checkbox;this._colums=e.colums||[];this._cachePrefix=e.cachePrefix}},_initializeUIState:function(){this._expanded=[];var e=this._getUIStatePreferencePath();e&&window.sessionStorage&&this._restoreExpansions(e)&&this._restoreSelections(e)}};return d}();a.SelectionRenderer=function(){function d(e,g){this._init(e);this.explorer=g}d.prototype=new a.ExplorerRenderer;d.prototype.renderTableHeader=
function(e){var g=document.createElement("thead"),h=document.createElement("tr");c.addClass(g,"navTableHeading");this._useCheckboxSelection&&h.appendChild(this.initCheckboxColumn(e));for(var i=0,j=this.getCellHeaderElement(i);j;){c.addClass(j,"navColumn");h.appendChild(j);j=this.getCellHeaderElement(++i)}g.appendChild(h);e.appendChild(g)};d.prototype.renderRow=function(e,g){c.style(g,"verticalAlign","baseline");c.addClass(g,"treeTableRow");var h=this.getCheckboxColumn(e,g);h&&g.appendChild(h);h=0;
for(var i=this.getCellElement(h,e,g);i;){g.appendChild(i);c.addClass(i,"secondaryColumn");i=this.getCellElement(++h,e,g)}};d.prototype.getCellHeaderElement=function(){};d.prototype.getCellElement=function(){};return d}();return a});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(c,f){c.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);c.connect(this,"onKeyPress",c.hitch(this,function(a){a.keyCode===c.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(c.hitch(this,function(){if(c.isDescendant(f._curFocus,
this.domNode))f._curFocus=null;if(c.isDescendant(f._prevFocus,this.domNode))f._prevFocus=null;this.destroyRecursive()}),this.duration)}})});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(c,f){c.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(a){c.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([c.connect(a,
"onNew",this,"onNewItem"),c.connect(a,"onDelete",this,"onDeleteItem"),c.connect(a,"onSet",this,"onSetItem")])},destroy:function(){c.forEach(this.connects,c.disconnect)},getRoot:function(a,d){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:c.hitch(this,function(e){if(e.length!=1)throw new Error(this.declaredClass+": query "+c.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 c.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 h=[],i=0;i<this.childrenAttrs.length;i++){var j=g.getValues(a,this.childrenAttrs[i]);h=h.concat(j)}var k=0;this.deferItemLoadingUntilExpand||c.forEach(h,function(m){g.isItemLoaded(m)||k++});k==0?d(h):c.forEach(h,function(m,p){g.isItemLoaded(m)||g.loadItem({item:m,onItem:function(n){h[p]=n;--k==0&&d(h)},onError:e})})}else{var l=c.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]},h;if(this.newItemIdAttr&&a[this.newItemIdAttr])this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(i){if(i)this.pasteItem(i,null,d,true,e);else(h=this.store.newItem(a,g))&&e!=undefined&&this.pasteItem(h,d,d,false,e)}});else(h=this.store.newItem(a,g))&&e!=undefined&&this.pasteItem(h,d,d,false,e)},pasteItem:function(a,d,e,g,h){var i=this.store,j=this.childrenAttrs[0];d&&c.forEach(this.childrenAttrs,function(l){if(i.containsValue(d,l,a)){if(!g){var m=c.filter(i.getValues(d,l),function(p){return p!=a});i.setValues(d,l,m)}j=l}});if(e)if(typeof h=="number"){var k=i.getValues(e,j).slice();
k.splice(h,0,a);i.setValues(e,j,k)}else i.setValues(e,j,i.getValues(e,j).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,d){d&&this.getChildren(d.item,c.hitch(this,function(e){this.onChildrenChange(d.item,e)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,d){c.indexOf(this.childrenAttrs,d)!=-1?this.getChildren(a,c.hitch(this,function(e){this.onChildrenChange(a,e)})):this.onChange(a)}});return f.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(c,f){c.declare("dijit.tree.ForestStoreModel",f.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:c.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:c.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,h){if(d===this.root)g||this.onLeaveRoot(a);f.tree.TreeStoreModel.prototype.pasteItem.call(this,a,d===this.root?null:d,e===this.root?null:e,g,h);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:c.hitch(this,function(d){this.root.children=d;if(a.length!=d.length||c.some(a,function(e,g){return d[g]!=e}))this.onChildrenChange(this.root,d)})})},onNewItem:function(){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){c.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(){this._requeryTop();this.inherited(arguments)}});return f.tree.ForestStoreModel});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(c){c.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(f,a){this.node=c.byId(f);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&c.byId(a.dropParent);this.map={};this.current=null;this.containerState="";c.addClass(this.node,"dojoDndContainer");a&&a._skipStartup||this.startup();this.events=[c.connect(this.node,"onmouseover",this,"onMouseOver"),c.connect(this.node,
"onmouseout",this,"onMouseOut"),c.connect(this.node,"ondragstart",this,"onSelectStart"),c.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(f){return this.map[f]},setItem:function(f,a){this.map[f]=a},delItem:function(f){delete this.map[f]},forInItems:function(f,a){a=a||c.global;var d=this.map,e=c.dnd._empty;for(var g in d)g in e||f.call(a,d[g],g,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return c.query("> .dojoDndItem",this.parent)},
sync:function(){var f={};this.getAllNodes().forEach(function(a){if(a.id){var d=this.getItem(a.id);if(d){f[a.id]=d;return}}else a.id=c.dnd.getUniqueId();d=a.getAttribute("dndType");var e=a.getAttribute("dndData");f[a.id]={data:e||a.innerHTML,type:d?d.split(/\s*,\s*/):["text"]}},this);this.map=f;return this},insertNodes:function(f,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<f.length;++a){var e=this._normalizedCreator(f[a]);
this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.insertBefore(e.node,d)}else for(a=0;a<f.length;++a){e=this._normalizedCreator(f[a]);this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.appendChild(e.node)}return this},destroy:function(){c.forEach(this.events,c.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(f,a){f._skipStartup=true;return new c.dnd.Container(a,f)},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()==
"table"){var f=this.parent.getElementsByTagName("tbody");if(f&&f.length)this.parent=f[0]}}this.defaultCreator=c.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(f){for(var a=f.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(f);if(this.current!=a){this.current&&this._removeItemClass(this.current,"Over");a&&this._addItemClass(a,"Over");this.current=a}},onMouseOut:function(f){for(f=
f.relatedTarget;f;){if(f==this.node)return;try{f=f.parentNode}catch(a){f=null}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null}this._changeState("Container","");this.onOutEvent()},onSelectStart:function(f){if(!this.skipForm||!c.dnd.isFormElement(f))c.stopEvent(f)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(f,a){var d="dojoDnd"+f;f=f.toLowerCase()+"State";c.replaceClass(this.node,d+a,d+this[f]);this[f]=a},_addItemClass:function(f,a){c.addClass(f,
"dojoDndItem"+a)},_removeItemClass:function(f,a){c.removeClass(f,"dojoDndItem"+a)},_getChildByEvent:function(f){if(f=f.target)for(var a=f.parentNode;a;f=a,a=f.parentNode)if(a==this.parent&&c.hasClass(f,"dojoDndItem"))return f;return null},_normalizedCreator:function(f,a){f=(this.creator||this.defaultCreator).call(this,f,a);if(!c.isArray(f.type))f.type=["text"];if(!f.node.id)f.node.id=c.dnd.getUniqueId();c.addClass(f.node,"dojoDndItem");return f}});c.dnd._createNode=function(f){if(!f)return c.dnd._createSpan;
return function(a){return c.create(f,{innerHTML:a})}};c.dnd._createTrTd=function(f){var a=c.create("tr");c.create("td",{innerHTML:f},a);return a};c.dnd._createSpan=function(f){return c.create("span",{innerHTML:f})};c.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};c.dnd._defaultCreator=function(f){f=f.tagName.toLowerCase();var a=f=="tbody"||f=="thead"?c.dnd._createTrTd:c.dnd._createNode(c.dnd._defaultCreatorNodes[f]);return function(d,e){var g=d&&c.isObject(d),h;if(g&&d.tagName&&d.nodeType&&
d.getAttribute){h=d.getAttribute("dndData")||d.innerHTML;g=(g=d.getAttribute("dndType"))?g.split(/\s*,\s*/):["text"];d=d}else{h=g&&d.data?d.data:d;g=g&&d.type?d.type:["text"];d=(e=="avatar"?c.dnd._createSpan:a)(String(h))}if(!d.id)d.id=c.dnd.getUniqueId();return{node:d,data:h,type:g}}};return c.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(c,f){c.getObject("tree",true,c);f.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");};c.declare("dijit.tree._dndContainer",null,{constructor:function(a,d){this.tree=a;this.node=a.domNode;c.mixin(this,d);this.map={};this.current=null;this.containerState="";c.addClass(this.node,"dojoDndContainer");this.events=[c.connect(this.node,"onmouseenter",this,"onOverEvent"),c.connect(this.node,"onmouseleave",this,"onOutEvent"),c.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
c.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),c.connect(this.node,"ondragstart",c,"stopEvent"),c.connect(this.node,"onselectstart",c,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){c.forEach(this.events,c.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";c.replaceClass(this.node,e+d,e+this[a]);
this[a]=d},_addItemClass:function(a,d){c.addClass(a,"dojoDndItem"+d)},_removeItemClass:function(a,d){c.removeClass(a,"dojoDndItem"+d)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}});return f.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(c,f){c.declare("dijit.tree._dndSelector",f.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;f.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(c.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),c.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),c.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();c.forEach(this._setDifference(d,a),c.hitch(this,function(e){e.setSelected(false);this.anchor==e&&delete this.anchor;delete this.selection[e.id]}));c.forEach(this._setDifference(a,d),c.hitch(this,function(e){e.setSelected(true);this.selection[e.id]=e}));this._updateSelectionProperties()},_setDifference:function(a,d){c.forEach(d,function(e){e.__exclude__=true});a=c.filter(a,function(e){return!e.__exclude__});c.forEach(d,function(e){delete e.__exclude__});
return a},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),d=[],e=[];c.forEach(a,function(g){e.push(g);d.push(g.getTreePath())});a=c.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!=
c.mouseButtons.RIGHT){c.stopEvent(a);var d=this.current,e=c.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,c.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(f.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||c.global;for(var e in this.selection)a.call(d,this.getItem(e),e,this)}});return f.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(c,f){c.declare("dijit._TreeNode",[f._Widget,f._Templated,f._Container,f._Contained,f._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,
state:"UNCHECKED",templateString:c.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:c.delegate(f._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&&f.setWaiState(this.labelNode,"expanded",this.isExpanded);
this.setSelected(false)},_setIndentAttr:function(a){var d=Math.max(a,0)*this.tree._nodePixelIndent+"px";c.style(this.domNode,"backgroundPosition",d+" 0px");c.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",d);c.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 h=this[g];this[g]=this.tree["get"+e+"Class"](a,this.isExpanded);c.replaceClass(this[d],this[g]||"",h||"");c.style(this[d],this.tree["get"+e+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?c.addClass(this.domNode,"dijitTreeIsRoot"):
c.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;c.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;f.setWaiState(this.labelNode,"expanded",
"true");if(this.tree.showRoot||this!==this.tree.rootNode)f.setWaiRole(this.containerNode,"group");c.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&f.setWaiState(this.tree.domNode,"expanded","true");var a,d=c.fx.wipeIn({node:this.containerNode,duration:f.defaultDuration,onEnd:function(){a.callback(true)}});a=this._expandDeferred=new c.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;f.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&f.setWaiState(this.tree.domNode,"expanded","false");c.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=c.fx.wipeOut({node:this.containerNode,duration:f.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var d=this.tree,e=d.model,g=[];c.forEach(this.getChildren(),
function(h){f._Container.prototype.removeChild.call(this,h)},this);this.state="LOADED";if(a&&a.length>0){this.isExpandable=true;c.forEach(a,function(h){var i=e.getIdentity(h),j=d._itemNodesMap[i],k;if(j)for(var l=0;l<j.length;l++)if(j[l]&&!j[l].getParent()){k=j[l];k.set("indent",this.indent+1);break}if(!k){k=this.tree._createTreeNode({item:h,tree:d,isExpandable:e.mayHaveChildren(h),label:d.getLabel(h),tooltip:d.getTooltip(h),dir:d.dir,lang:d.lang,indent:this.indent+1});if(j)j.push(k);else d._itemNodesMap[i]=
[k]}this.addChild(k);if(this.tree.autoExpand||this.tree._state(h))g.push(d._expandNode(k))},this);c.forEach(this.getChildren(),function(h){h._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 c.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()}c.forEach(a,function(d){d._updateLayout()})},makeExpandable:function(){this.isExpandable=true;this._setExpando(false)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},setSelected:function(a){f.setWaiState(this.labelNode,"selected",a);
c.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)}});c.declare("dijit.Tree",[f._Widget,f._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],
path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:c.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){c.publish(this.id,[c.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 c.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(c.isString(this.dndController))this.dndController=c.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;c.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=c.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=c.hitch(this,function(d,e,g){this.getItemChildren(this._v10Compat&&d===this.model.root?null:d,e,g)});this.model=new f.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(c.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";f.setWaiRole(this.domNode,"presentation");f.setWaiRole(d.labelNode,"presentation");f.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(c.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[c.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var d=this;this._loadDeferred.addCallback(c.hitch(this,function(){var e=c.map(a,function(h){return!h||c.isString(h)?h:d.model.getIdentity(h)}),g=[];c.forEach(e,function(h){g=g.concat(d._itemNodesMap[h]||
[])});this.set("selectedNodes",g)}))},_setPathAttr:function(a){return a.length?this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function d(h,i,j){var k=h.shift(),l=c.filter(i,function(m){return m.getIdentity()==k})[0];if(l)h.length?g._expandNode(l).addCallback(function(){d(h,l.getChildren(),j)}):j.callback(l);else j.errback("Could not expand path at "+k)}function e(h){g.set("selectedNodes",c.map(c.filter(h,function(i){return i[0]}),function(i){return i[1]}))}var g=this;return(new c.DeferredList(c.map(a,
function(h){var i=new c.Deferred;h=c.map(h,function(j){return c.isString(j)?j:g.model.getIdentity(j)});h.length?g._loadDeferred.addCallback(function(){d(h,[g.rootNode],i)}):i.errback("Empty path");return i}))).addCallback(e)},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(c.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=c.keys,e=f.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()});c.stopEvent(a)}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch}var h=this._keyHandlerMap;if(!h){h={};h[d.ENTER]="_onEnterKey";h[d.SPACE]=h[" "]="_onEnterKey";h[this.isLeftToRight()?d.LEFT_ARROW:d.RIGHT_ARROW]="_onLeftArrow";h[this.isLeftToRight()?d.RIGHT_ARROW:d.LEFT_ARROW]="_onRightArrow";h[d.UP_ARROW]="_onUpArrow";h[d.DOWN_ARROW]="_onDownArrow";h[d.HOME]="_onHomeKey";h[d.END]="_onEndKey";this._keyHandlerMap=h}if(this._keyHandlerMap[g]){this[this._keyHandlerMap[g]]({node:e,
item:e.item,evt:a});c.stopEvent(a)}}}}},_onEnterKey:function(a){this._publish("execute",{item:a.item,node:a.node});this.dndController.userSelect(a.node,c.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 c.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)}c.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)}c.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 h=a._expandNodeDeferred=new c.Deferred;d.getChildren(e,function(i){a.unmarkProcessing();i=a.setChildItems(i);var j=g._expandNode(a,true);i.addCallback(function(){j.addCallback(function(){h.callback()})})},function(i){console.error(g,": error loading root children: ",i)});break;default:h=a._expandNodeDeferred=a.expand();this.onOpen(a.item,a);if(e){this._state(e,true);this._saveState()}}return h},focusNode:function(a){f.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);c.forEach(d,function(h){h.set({item:a,label:e,tooltip:g});h._updateItemClasses(a)})}},_onItemChildrenChange:function(a,d){(a=this._itemNodesMap[this.model.getIdentity(a)])&&c.forEach(a,function(e){e.setChildItems(d)})},
_onItemDelete:function(a){a=this.model.getIdentity(a);var d=this._itemNodesMap[a];if(d){c.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=c.cookie(this.cookieName);this._openedItemIds={};a&&c.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);c.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&&!c.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},
destroyRecursive:function(){this.destroy()},resize:function(a){a&&c.marginBox(this.domNode,a);this._nodePixelIndent=c._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode)this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new f._TreeNode(a)}});return f.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(c,f){c.declare("orion.widgets._ExplorerTreeNode",[f._TreeNode],{templateString:c.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)}});c.declare("orion.widgets.ExplorerTree",
[f.Tree],{selectedNodes:{},postCreate:function(){c.connect(this,"onMouseDown",this._eatSelectionEvent);c.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(c.isCopyKey(a)||a.shiftKey)c.stopEvent(a)},_onClick:function(a,d){var e=d.target,g=e===a.expandoNode||e===a.expandoNodeText;e=e===a.followNode;if(c.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||c.stopEvent(d)},_onItemDelete:function(a){var d=this._itemNodesMap[this.model.getIdentity(a)];if(d){var e=this;c.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(i,j){var k=[];i=i;do{k.push(i);i=g._getNextNode(i)}while(i&&i!==j);if(i===
j){k.push(j);return k}return null}a=this._getVisibleAncestor(a);d=this._getVisibleAncestor(d);if(a&&d)if(a===d)this._selectNode(a);else{var g=this,h=e(a,d);if(h)this._selectNodes(h.reverse(),true);else(h=e(d,a))?this._selectNodes(h,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,h){h._destroyed||h.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"> \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(c,f,a){c.declare("orion.widgets.DirectoryPrompterDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:c.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"},postCreate:function(){this.inherited(arguments);this.loadFolderList("")},loadFolderList:function(d){d=a.makeRelative(d);this.treeRoot.Path=d;this.options.fileClient.loadWorkspace(d).then(c.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();c.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,h){this.registry=e;this.root=g;this.fileClient=h}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(c.hitch(this,function(h){for(var i=[],j=0;j<h.length;j++)h[j].Directory&&i.push(h[j]);
a.processNavigatorParent(e,i);g(i)})):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",["dojo","dijit","dijit/Dialog","orion/widgets/_OrionDialogMixin","orion/widgets/DirectoryPrompterDialog","text!orion/git/widgets/templates/CloneGitRepositoryDialog.html"],function(c,f){c.declare("orion.git.widgets.CloneGitRepositoryDialog",[f.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 a=new orion.widgets.DirectoryPrompterDialog({title:"Choose a Folder",serviceRegistry:this.options.serviceRegistry,fileClient:this.options.fileClient,func:c.hitch(this,function(d){if(d&&d.Location){this.gitPath.value=d.Location;this.shownGitPath.innerHTML="<a href='/navigate/table.html#"+d.ChildrenLocation+"'>"+d.Name+"</a>";for(d=d;d.parent&&!d.parent.Projects;){this.shownGitPath.innerHTML=
"<a href='/navigate/table.html#"+d.parent.ChildrenLocation+"'>"+d.parent.Name+"</a>/"+this.shownGitPath.innerHTML;d=d.parent}}})});a.startup();a.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(c,f){c.declare("orion.git.widgets.InitGitRepositoryDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:c.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(c,f){c.declare("orion.git.widgets.AddRemoteDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:c.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<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<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<label dojoAttachPoint="gitPassphraseLabel" for="${id}_gitPassphrase" style="padding-right: 10">${gitPassphraseLabelText}</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="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(c,f){c.declare("orion.git.widgets.GitCredentialsDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:c.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="Ssh username:";this.gitSshPasswordLabelText="Ssh password:";this.gitPrivateKeyLabelText="Private key:";this.gitPassphraseLabelText="Passphrase:";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||c.style(this.gitSshUsernameRow,"display","none");this.options.password||c.style(this.gitSshPasswordRow,"display","none");this.options.privatekey||c.style(this.gitPrivateKeyRow,"display","none");this.options.passphrase||c.style(this.gitPassphraseRow,"display","none");if(this.options.errordata&&this.options.errordata.Url){c.style(this.gitCredentialsLabel,
"display","block");this.url.innerHTML=this.options.errordata.Url}if(this.options.errordata&&this.options.errordata.User){this.gitSshUsername.value=this.options.errordata.User;setTimeout(function(){a.gitSshPassword.focus()},400)}},execute:function(){if(this._sshService){var a=this;this._sshService.getKnownHosts().then(function(d){a.options.func({gitSshUsername:a.gitSshUsername.value,gitSshPassword:a.gitSshPassword.value,gitPrivateKey:a.gitPrivateKey.value,gitPassphrase: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(c,f){return f.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(c,f){c.declare("dijit.form.CheckBox",f.form.ToggleButton,{templateString:c.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:c.delegate(f.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);c.attr(this.focusNode,"readOnly",a);f.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,d){if(typeof a=="string"){this._set("value",a);c.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");c.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&c.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&c.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){if(this.readOnly){c.stopEvent(a);return false}return this.inherited(arguments)}});c.declare("dijit.form.RadioButton",f.form.CheckBox,{type:"radio",
baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);if(this._created)if(a){var d=this;c.query("INPUT[type=radio]",this.focusNode.form||c.doc).forEach(function(e){if(e.name==d.name&&e!=d.focusNode&&e.form==d.focusNode.form)(e=f.getEnclosingWidget(e))&&e.checked&&e.set("checked",false)})}},_clicked:function(){this.checked||this.set("checked",true)}});return f.form.CheckBox});
define("dijit/form/Form",["dojo","dijit","dijit/_Widget","dijit/_Templated","dijit/form/_FormMixin","dijit/layout/_ContentPaneResizeMixin"],function(c,f){c.declare("dijit.form.Form",[f._Widget,f._Templated,f.form._FormMixin,f.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:c.delegate(f._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;c.attr(this.domNode,"encType",a);if(c.isIE)this.domNode.encoding=a},postCreate:function(){if(c.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);c.stopEvent(a);return false},_onSubmit:function(a){var d=f.form.Form.prototype;if(this.execute!=d.execute||this.onExecute!=
d.onExecute){c.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues())}this.onSubmit(a)===false&&c.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==false&&this.containerNode.submit()}});return f.form.Form});
define("dojo/data/util/filter",["dojo"],function(c){c.getObject("data.util.filter",true,c);c.data.util.filter.patternToRegExp=function(f,a){for(var d="^",e=null,g=0;g<f.length;g++){e=f.charAt(g);switch(e){case "\\":d+=e;g++;d+=f.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 c.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(c){c.getObject("data.util.sorter",true,c);c.data.util.sorter.basicComparator=function(f,a){var d=-1;if(f===null)f=undefined;if(a===null)a=undefined;if(f==a)d=0;else if(f>a||f==null)d=1;return d};c.data.util.sorter.createSortFunction=function(f,a){function d(m,p,n,o){return function(q,u){q=o.getValue(q,m);u=o.getValue(u,m);return p*n(q,u)}}for(var e=[],g,h=a.comparatorMap,i=c.data.util.sorter.basicComparator,j=0;j<f.length;j++){g=f[j];var k=g.attribute;
if(k){g=g.descending?-1:1;var l=i;if(h){if(typeof k!=="string"&&"toString"in k)k=k.toString();l=h[k]||i}e.push(d(k,g,l,a))}}return function(m,p){for(var n=0;n<e.length;){var o=e[n++](m,p);if(o!==0)return o}return 0}};return c.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(c){c.getObject("data.util.simpleFetch",true,c);c.data.util.simpleFetch.fetch=function(f){f=f||{};if(!f.store)f.store=this;var a=this,d=function(g,h){if(h.onError)h.onError.call(h.scope||c.global,g,h)},e=function(g,h){var i=h.abort||null,j=false,k=h.start?h.start:0,l=h.count&&h.count!==Infinity?k+h.count:g.length;h.abort=function(){j=true;i&&i.call(h)};var m=h.scope||c.global;if(!h.store)h.store=a;h.onBegin&&h.onBegin.call(m,
g.length,h);h.sort&&g.sort(c.data.util.sorter.createSortFunction(h.sort,a));if(h.onItem)for(var p=k;p<g.length&&p<l;++p){var n=g[p];j||h.onItem.call(m,n,h)}if(h.onComplete&&!j){p=null;h.onItem||(p=g.slice(k,l));h.onComplete.call(m,p,h)}};this._fetchItems(f,e,d);return f};return c.data.util.simpleFetch});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(c){c.declare("dojo.data.ItemFileReadStore",null,{constructor:function(f){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=f.url;this._jsonData=f.data;this.data=null;this._datatypeMap=f.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return c.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(f.urlPreventCache!==undefined)this.urlPreventCache=f.urlPreventCache?true:false;if(f.hierarchical!==undefined)this.hierarchical=f.hierarchical?true:false;if(f.clearOnClose)this.clearOnClose=true;if("failOk"in f)this.failOk=f.failOk?true:
false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(f){if(!this.isItem(f))throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(f){if(typeof f!=="string")throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(f,a,d){f=this.getValues(f,a);return f.length>0?f[0]:d},getValues:function(f,a){this._assertIsItem(f);this._assertIsAttribute(a);
return(f[a]||[]).slice(0)},getAttributes:function(f){this._assertIsItem(f);var a=[];for(var d in f)d!==this._storeRefPropName&&d!==this._itemNumPropName&&d!==this._rootItemPropName&&d!==this._reverseRefMap&&a.push(d);return a},hasAttribute:function(f,a){this._assertIsItem(f);this._assertIsAttribute(a);return a in f},containsValue:function(f,a,d){var e=undefined;if(typeof d==="string")e=c.data.util.filter.patternToRegExp(d,false);return this._containsValue(f,a,d,e)},_containsValue:function(f,a,d,e){return c.some(this.getValues(f,
a),function(g){if(g!==null&&!c.isObject(g)&&e){if(g.toString().match(e))return true}else if(d===g)return true})},isItem:function(f){if(f&&f[this._storeRefPropName]===this)if(this._arrayOfAllItems[f[this._itemNumPropName]]===f)return true;return false},isItemLoaded:function(f){return this.isItem(f)},loadItem:function(f){this._assertIsItem(f.item)},getFeatures:function(){return this._features},getLabel:function(f){if(this._labelAttr&&this.isItem(f))return this.getValue(f,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];
return null},_fetchItems:function(f,a,d){var e=this,g=function(k,l){var m=[],p,n;if(k.query){var o;p=k.queryOptions?k.queryOptions.ignoreCase:false;var q={};for(n in k.query){o=k.query[n];if(typeof o==="string")q[n]=c.data.util.filter.patternToRegExp(o,p);else if(o instanceof RegExp)q[n]=o}for(p=0;p<l.length;++p){var u=true,r=l[p];if(r===null)u=false;else for(n in k.query){o=k.query[n];e._containsValue(r,n,o,q[n])||(u=false)}u&&m.push(r)}}else for(p=0;p<l.length;++p){n=l[p];n!==null&&m.push(n)}a(m,
k)};if(this._loadFinished)g(f,this._getItemsArray(f.queryOptions));else{if(this._jsonFileUrl!==this._ccUrl){c.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:f,
filter:g});else{this._loadInProgress=true;var h=c.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});h.addCallback(function(k){try{e._getItemsFromLoadedData(k);e._loadFinished=true;e._loadInProgress=false;g(f,e._getItemsArray(f.queryOptions));e._handleQueuedFetches()}catch(l){e._loadFinished=true;e._loadInProgress=false;d(l,f)}});h.addErrback(function(k){e._loadInProgress=false;d(k,f)});var i=null;if(f.abort)i=f.abort;f.abort=function(){h&&
h.fired===-1&&h.cancel();i&&i.call(f)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;g(f,this._getItemsArray(f.queryOptions))}catch(j){d(j,f)}else d(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),f)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var f=0;f<this._queuedFetches.length;f++){var a=this._queuedFetches[f],d=a.args;(a=a.filter)?
a(d,this._getItemsArray(d.queryOptions)):this.fetchItemByIdentity(d)}this._queuedFetches=[]}},_getItemsArray:function(f){if(f&&f.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(f){function a(q){return q!==null&&typeof q==="object"&&(!c.isArray(q)||e)&&!c.isFunction(q)&&(q.constructor==Object||c.isArray(q))&&typeof q._reference==="undefined"&&typeof q._type==="undefined"&&typeof q._value==="undefined"&&g.hierarchical}function d(q){g._arrayOfAllItems.push(q);for(var u in q){var r=q[u];
if(r)if(c.isArray(r))for(var s=0;s<r.length;++s){var x=r[s];a(x)&&d(x)}else a(r)&&d(r)}}var e=false,g=this;this._labelAttr=f.label;var h,i;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=f.items;for(h=0;h<this._arrayOfTopLevelItems.length;++h){i=this._arrayOfTopLevelItems[h];if(c.isArray(i))e=true;d(i);i[this._rootItemPropName]=true}var j={},k;for(h=0;h<this._arrayOfAllItems.length;++h){i=this._arrayOfAllItems[h];for(k in i){if(k!==this._rootItemPropName){var l=i[k];if(l!==null)c.isArray(l)||
(i[k]=[l]);else i[k]=[null]}j[k]=k}}for(;j[this._storeRefPropName];)this._storeRefPropName+="_";for(;j[this._itemNumPropName];)this._itemNumPropName+="_";for(;j[this._reverseRefMap];)this._reverseRefMap+="_";if(j=f.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=j;for(h=0;h<this._arrayOfAllItems.length;++h){i=this._arrayOfAllItems[h];f=i[j];f=f[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,f))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: ["+j+"].  Value collided: ["+f+"]");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: ["+j+"].  Value collided: ["+f+"]");}else this._itemsByIdentity[f]=i}}else this._features["dojo.data.api.Identity"]=Number;for(h=0;h<this._arrayOfAllItems.length;++h){i=this._arrayOfAllItems[h];i[this._storeRefPropName]=
this;i[this._itemNumPropName]=h}for(h=0;h<this._arrayOfAllItems.length;++h){i=this._arrayOfAllItems[h];for(k in i){f=i[k];for(j=0;j<f.length;++j){l=f[j];if(l!==null&&typeof l=="object"){if("_type"in l&&"_value"in l){var m=l._type,p=this._datatypeMap[m];if(p)if(c.isFunction(p))f[j]=new p(l._value);else if(c.isFunction(p.deserialize))f[j]=p.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(c.isObject(l))for(m=0;m<this._arrayOfAllItems.length;++m){p=this._arrayOfAllItems[m];var n=true;for(var o in l)if(p[o]!=l[o])n=false;if(n)f[j]=p}else f[j]=this._getItemByIdentity(l);if(this.referenceIntegrity){l=f[j];this.isItem(l)&&this._addReferenceToMap(l,i,k)}}else this.isItem(l)&&this.referenceIntegrity&&this._addReferenceToMap(l,
i,k)}}}}},_addReferenceToMap:function(){},getIdentity:function(f){var a=this._features["dojo.data.api.Identity"];if(a===Number)return f[this._itemNumPropName];else if(f=f[a])return f[0];return null},fetchItemByIdentity:function(f){var a,d;if(this._loadFinished){a=this._getItemByIdentity(f.identity);if(f.onItem){d=f.scope?f.scope:c.global;f.onItem.call(d,a)}}else{var e=this;if(this._jsonFileUrl!==this._ccUrl){c.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:f});else{this._loadInProgress=true;d=c.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});d.addCallback(function(g){var h=f.scope?f.scope:c.global;try{e._getItemsFromLoadedData(g);
e._loadFinished=true;e._loadInProgress=false;a=e._getItemByIdentity(f.identity);f.onItem&&f.onItem.call(h,a);e._handleQueuedFetches()}catch(i){e._loadInProgress=false;f.onError&&f.onError.call(h,i)}});d.addErrback(function(g){e._loadInProgress=false;if(f.onError)f.onError.call(f.scope?f.scope:c.global,g)})}else if(this._jsonData){e._getItemsFromLoadedData(e._jsonData);e._jsonData=null;e._loadFinished=true;a=e._getItemByIdentity(f.identity);if(f.onItem){d=f.scope?f.scope:c.global;f.onItem.call(d,a)}}}},
_getItemByIdentity:function(f){var a=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,f))a=this._itemsByIdentity[f];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,f))a=this._arrayOfAllItems[f];if(a===undefined)a=null;return a},getIdentityAttributes:function(){var f=this._features["dojo.data.api.Identity"];return f===Number?null:[f]},_forceLoad:function(){var f=this;if(this._jsonFileUrl!==this._ccUrl){c.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=c.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true});a.addCallback(function(d){try{if(f._loadInProgress!==true&&!f._loadFinished){f._getItemsFromLoadedData(d);f._loadFinished=true}else if(f._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){f._getItemsFromLoadedData(f._jsonData);f._jsonData=null;f._loadFinished=true}}});c.extend(c.data.ItemFileReadStore,c.data.util.simpleFetch);return c.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(c,f){c.declare("orion.widgets.NewItemDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:c.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";c.connect(this.itemURL,"onkeyup",null,c.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("orion/git/git-clones-explorer",["dojo","orion/explorer","orion/util"],function(c,f,a){var d={};d.GitClonesExplorer=function(){function e(g,h,i,j,k,l){this.parentId=j;this.registry=g;this.selection=h;this.toolbarId=k;this.selectionToolsId=l;this.cloneDetails=i;this.checkbox=false;this.renderer=new d.GitClonesRenderer({checkbox:false},this)}e.prototype=f.Explorer.prototype;e.prototype.getGitLocation=function(g){g=a.makeRelative(g);return g[0]==="/"?"/gitapi/clone"+g:"/gitapi/clone/"+g};e.prototype.setDefaultPath=
function(g){this.defaultPath=g};e.prototype.displayClonesList=function(g){var h=this;g=g||this.defaultPath;g=a.makeRelative(g);if(g!==this._lastHash){this._lastHash=g;c.hash(g,true);var i=this.getGitLocation(g);c.create("div",null,c.byId(this.parentId),"only").innerHTML="Loading <b>"+i+"</b>...";this.registry.getService("orion.git.provider").then(function(j){c.hitch(h,h.createTree(h.parentId,new d.GitClonesModel(j,i,j.getGitClone)))})}};e.prototype.redisplayClonesList=function(){if(this._lastHash){var g=
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(i){c.hitch(g,g.createTree(g.parentId,new d.GitClonesModel(i,h,i.getGitClone)))})}};e.prototype.loadCloneDetails=function(g){this.cloneDetails.loadCloneDetails(g.ConfigLocation)};return e}();d.GitClonesModel=function(){function e(g,h,i,j){this.gitClient=g;this.rootPath=h;this.fetchItems=i;this.root=j?j:null}e.prototype=
f.ExplorerModel.prototype;e.prototype.getRoot=function(g){this.root?g(this.root):this.fetchItems(this.rootPath).then(c.hitch(this,function(h){this.root=h;g(h)}))};e.prototype.mayHaveChildren=function(g){if(g.children||g.Children)return true;else if(g.BranchLocation&&g.RemoteLocation)return true;else if(g.GroupNode)return true;else if(g.Type==="Remote")return true;return false};e.prototype.getIdentity=function(g){if(g.Location){g=g.Location;g=g.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")}else g="ROOT";return g};
e.prototype.getChildren=function(g,h){g.children=[];if(g.Children){for(var i=0;i<g.Children.length;i++){g.Children[i].parent=g;g.children[i]=g.Children[i]}h(g.Children)}else if(g.BranchLocation&&g.RemoteLocation){g.children=[{GroupNode:"true",Location:g.BranchLocation,Name:"Branch",parent:g},{GroupNode:"true",Location:g.RemoteLocation,Name:"Remote",parent:g}];h(g.children)}else if(g.GroupNode)this.gitClient.getGitBranch(g.Location).then(c.hitch(this,function(j){g.children=j.Children;for(var k=0;k<
j.Children.length;k++)j.Children[k].parent=g;h(j.Children)}));else g.Type==="Remote"&&this.gitClient.getGitBranch(g.Location).then(c.hitch(this,function(j){g.children=j.Children;for(var k=0;k<j.Children.length;k++)j.Children[k].parent=g;h(j.Children)}))};return e}();d.GitClonesRenderer=function(){function e(g,h){this._init(g);this.explorer=h}e.prototype=f.SelectionRenderer.prototype;e.prototype.getCellHeaderElement=function(g){switch(g){case 0:return c.create("th",{innerHTML:"<h2>Name</h2>"});case 1:return c.create("th",
{innerHTML:"<h2>Actions</h2>"})}};e.prototype.getCellElement=function(g,h,i){switch(g){case 0:var j,k;if(h.BranchLocation&&h.RemoteLocation){j=document.createElement("td");g=i.id+"__expand";g=c.create("div",null,j,"only");this.getExpandImage(i,g,"/git/images/repository.gif");k=c.create("a",{className:"navlinkonpage"},g,"last");c.connect(k,"onclick",k,c.hitch(this,function(){this.explorer.loadCloneDetails(h)}));c.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});c.connect(k,"onmouseout",
k,function(){k.style.cursor="default"});c.place(document.createTextNode(h.Name),k,"only")}else if(h.GroupNode){j=document.createElement("td");g=i.id+"__expand";g=c.create("div",null,j,"only");this.getExpandImage(i,g,h.Name==="Branch"?"/git/images/branches.gif":"/git/images/remotes.gif");k=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},g,"last");c.place(document.createTextNode(h.Name),k,"only")}else if(h.Type==="Branch"){j=document.createElement("td");g=c.create("div",{style:"margin-left: 10px"},
j,"only");k=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},g,"last");if(h.Current)k.style.fontWeight="bold";c.place(document.createTextNode(h.Name),k,"only");c.create("img",{src:"/git/images/branch.gif",style:"vertical-align: middle; margin-right: 4px"},k,"first")}else if(h.Type==="Remote"){j=document.createElement("td");g=i.id+"__expand";g=c.create("div",null,j,"only");this.getExpandImage(i,g,"/git/images/remote.gif");k=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},g,"last");
c.place(document.createTextNode(h.Name),k,"only")}else if(h.Type==="RemoteTrackingBranch"){j=document.createElement("td");g=c.create("div",{style:"margin-left: 10px"},j,"only");k=c.create("a",{innerHTML:h.Name,className:"navlinkonpage"},g,"last");c.place(document.createTextNode(h.Name),k,"only");c.create("img",{src:"/git/images/branch.gif",style:"vertical-align: middle; margin-right: 4px"},k,"first")}return j;case 1:return this.getActionsColumn(h,i)}};return e}();return d});
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(c,f,a,d){c.declare("orion.git.widgets.RemotePrompterDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:true,templateString:c.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);c.connect(this.newBranch,"onchange",c.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({id:"treeWidget",style:"width:100%; height:100%",model:e,region:"center",showRoot:false,persist:true,openOnClick:false,getLabel:function(i){return i.Name},getIconClass:function(i){if(i.BranchLocation&&i.RemoteLocation)return"gitRepoItem";if(i.GroupNode)return i.Name==="Branch"?
"gitBranchesItem":"gitRemotesItem";if(i.Type==="Branch"||i.Type==="RemoteTrackingBranch")return"gitBranchItem";if(i.Type==="Remote")return"gitRemoteItem";return"gitDefaultItem"}}),h=this;this.treeWidget._inheritedSelectNode=this.treeWidget._selectNode;this.treeWidget._selectNode=function(i){g._inheritedSelectNode(i);h.newBranch.disabled=i.item&&i.item.Type==="Remote"?false:true;c.hitch(h,h.validate)()};this.treeWidget.startup();c.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]):this.options.func(null,e[0],this.newBranch.value)}})});
define("orion/git/gitCommands",["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(c,f,a){var d={};(function(){function e(h){serviceRegistry.getService("orion.page.message").then(function(i){if(!(h.status===401||h.status===403)){var j=[];j.Severity="Error";j.HTML=false;
try{var k=JSON.parse(h.responseText);j.Message=k.DetailedMessage?k.DetailedMessage:k.Message}catch(l){j.Message=h.message}i.setProgressResult(j)}})}var g=false;d.updateNavTools=function(h,i,j,k,l){var m=c.byId(j);if(m)c.empty(m);else throw"could not find toolbar "+j;h.getService("orion.page.command").then(c.hitch(i,function(p){p.renderCommands(m,"dom",l,i,"image",null,null,true);if(k){var n=c.create("span",{id:k},m,"last");p.renderCommands(n,"dom",null,i,"image",null,null,true)}}));if(!g){g=true;
h.getService("orion.page.selection").then(function(p){p.addEventListener("selectionChanged",function(n,o){var q=c.byId(k);if(q){c.empty(q);h.getService("orion.page.command").then(function(u){u.renderCommands(q,"dom",o,i,"image",null,null,true)})}})})}};d.getNewItemName=function(h,i,j,k,l,m,p){var n;if(j)h=c.byId(k);else if(i=i.makeNewItemPlaceHolder(h,k,p)){h=i.refNode;n=i.tempNode}else h=c.byId(k);if(h)a.getUserText(k+"EditBox",h,false,l,c.hitch(this,function(o){if(o){n&&n.parentNode.removeChild(n);
m(o)}}));else(k=window.prompt(l))&&m(k)};d.handleKnownHostsError=function(h,i,j,k){confirm("Would you like to add "+i.KeyType+" key for host "+i.Host+" to continue operation? Key fingerpt is "+i.HostFingerprint+".")&&h.getService("orion.net.ssh").then(function(l){l.addKnownHosts(i.Host+" "+i.KeyType+" "+i.HostKey).then(function(){l.getKnownHosts().then(function(m){j.knownHosts=m;k(j)})})})};d.handleSshAuthenticationError=function(h,i,j,k,l){h=new orion.git.widgets.GitCredentialsDialog({title:l,serviceRegistry:h,
func:k,errordata:j.errordata});h.startup();h.show()};d.getDefaultSshOptions=function(h){var i=new c.Deferred;h.getService("orion.net.ssh").then(function(j){j.getKnownHosts().then(function(k){i.callback({knownHosts:k,gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""})})});return i};d.handleProgressServiceResponse=function(h,i,j,k,l,m){if(h.Running==false){if(h.Result&&h.Result.HttpCode==403){if(h.Result.ErrorData&&h.Result.ErrorData.HostKey){c.hitch(this,d.handleKnownHostsError)(j,
h.Result.ErrorData,i,l);return}}else if(h.Result&&h.Result.HttpCode==401){if(h.Result.ErrorData)i.errordata=h.Result.ErrorData;c.hitch(this,d.handleSshAuthenticationError)(j,h.Result.ErrorData,i,l,m);return}if(h.Result&&h.Result.HttpCode!=200)console.error("error "+h.Result.HttpCode+" while running opperation: "+h.Result.DetailedMessage);else k&&k(h)}};d.createFileCommands=function(h,i,j){var k=new f.Command({name:"Link Repository",image:"/images/link.gif",id:"eclipse.linkRepository",callback:function(l){var m=
new orion.widgets.NewItemDialog({title:"Link Repository",label:"Folder name:",func:function(p){h.getService("orion.core.file").then(function(n){n.loadWorkspace("").then(function(o){n.createProject(o.Location,p,l.ContentLocation,false).then(function(q){alert("Repository was linked to "+q.Name);n.read(q.ContentLocation,true).then(function(u){window.location.replace("/navigate/table.html#"+u.ChildrenLocation)})})})})},advanced:false});m.startup();m.show()},visibleWhen:function(l){if(l.ContentLocation)return true;
return false}});i.addCommand(k,"object");k=new f.Command({name:"Checkout",image:"/git/images/checkout.gif",id:"eclipse.checkoutBranch",callback:function(l){h.getService("orion.git.provider").then(function(m){l.Type==="Branch"?m.checkoutBranch(l.CloneLocation,l.Name).then(function(){c.hitch(j,j.changedItem)(l.parent)},e):m.addBranch(l.BranchLocation,null,l.Name).then(function(p){m.checkoutBranch(p.CloneLocation,p.Name).then(function(){c.hitch(j,j.changedItem)(l.parent.parent.parent)},e)},e)})},visibleWhen:function(l){return l.Type===
"Branch"||l.Type==="RemoteTrackingBranch"}});i.addCommand(k,"object");k=new f.Command({name:"Add Branch",image:"/images/add.gif",id:"eclipse.addBranch",callback:function(l,m,p){d.getNewItemName(l,j,false,p,"Branch name",function(n){!n&&n==""||h.getService("orion.git.provider").then(function(o){o.addBranch(l.Location,n).then(function(){c.hitch(j,j.changedItem)(l)},e)})})},visibleWhen:function(l){return l.GroupNode&&l.Name==="Branch"}});i.addCommand(k,"object");k=new f.Command({name:"Remove Branch",
image:"/images/delete.gif",id:"eclipse.removeBranch",callback:function(l){confirm("Are you sure you want to remove branch "+l.Name+"?")&&h.getService("orion.git.provider").then(function(m){m.removeBranch(l.Location).then(function(){c.hitch(j,j.changedItem)(l.parent)},e)})},visibleWhen:function(l){return l.Type==="Branch"&&!l.Current}});i.addCommand(k,"object");k=new f.Command({name:"Add Remote",image:"/images/add.gif",id:"eclipse.addRemote",callback:function(l){var m=new orion.git.widgets.AddRemoteDialog({func:function(p,
n){h.getService("orion.git.provider").then(function(o){o.addRemote(l.Location,p,n).then(function(){c.hitch(j,j.changedItem)(l)},e)})}});m.startup();m.show()},visibleWhen:function(l){return l.GroupNode&&l.Name==="Remote"}});i.addCommand(k,"object");k=new f.Command({name:"Remove Remote",image:"/images/delete.gif",id:"eclipse.removeRemote",callback:function(l){confirm("Are you sure you want to remove remote "+l.Name+"?")&&h.getService("orion.git.provider").then(function(m){m.removeRemote(l.Location).then(function(){c.hitch(j,
j.changedItem)(l.parent)},e)})},visibleWhen:function(l){return l.Type==="Remote"}});i.addCommand(k,"object");k=new f.Command({name:"Show Git Log",id:"eclipse.openGitLog",hrefCallback:function(l){if(l.Type==="RemoteTrackingBranch")return"/git/git-log.html#"+l.Location+"?page=1";return"/git/git-log.html#"+l.CommitLocation+"?page=1"},visibleWhen:function(l){return l.Type==="Branch"||l.Type==="RemoteTrackingBranch"}});i.addCommand(k,"object");k=new f.Command({name:"Show in Navigator",id:"eclipse.openCloneContent",
hrefCallback:function(l){return"/navigate/table.html#"+l.ContentLocation+"?depth=1"},visibleWhen:function(l){if(!l.ContentLocation)return false;return true}});i.addCommand(k,"object");k=new f.Command({name:"Compare With Each Other",image:"/git/images/open_compare.gif",id:"eclipse.compareGitCommits",hrefCallback:function(l){var m=new c.Deferred;h.getService("orion.git.provider").then(function(p){p.getDiff(l[0].DiffLocation,l[1].Name,function(n,o){m.callback("/compare/compare.html?readonly#"+o.xhr.getResponseHeader("Location"))})});
return m},visibleWhen:function(l){if(j.isDirectory)return false;if(c.isArray(l)&&l.length===2&&l[0].Type==="Commit"&&l[1].Type==="Commit")return true;return false}});i.addCommand(k,"dom");k=new f.Command({name:"Compare With Working Tree",image:"/git/images/open_compare.gif",id:"eclipse.compareWithWorkingTree",hrefCallback:function(l){return"/compare/compare.html#"+l.DiffLocation},visibleWhen:function(l){return l.Type==="Commit"&&!j.isDirectory}});i.addCommand(k,"object");k=new f.Command({name:"Open",
id:"eclipse.openGitCommit",hrefCallback:function(l){return"/edit/edit.html#"+l.ContentLocation},visibleWhen:function(l){return l.Type==="Commit"&&l.ContentLocation!=null&&!j.isDirectory}});i.addCommand(k,"object");k=new f.Command({name:"Fetch",image:"/git/images/fetch.gif",id:"eclipse.orion.git.fetch",callback:function(l){var m=l.Location;d.getDefaultSshOptions(h).then(function(p){var n=arguments.callee;h.getService("orion.git.provider").then(function(o){h.getService("orion.page.message").then(function(q){var u=
o.doFetch(m,null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);q.showWhile(u,"Fetching remote: "+m).then(function(r){d.handleProgressServiceResponse(r,p,h,function(){c.xhrGet({url:m,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(s){return s},error:function(s,x){console.error("HTTP status code: ",
x.xhr.status);return s}}).then(function(s){j.parentId==="explorer-tree"&&o.getLog(s.HeadLocation,s.Id,function(x){j.renderer.setIncomingCommits(x);j.loadCommitsList(s.CommitLocation+"?page=1",s,true)})},e)},n,"Fetch Git Repository")})})})})},visibleWhen:function(l){return l.Type==="RemoteTrackingBranch"||l.Type==="Remote"}});i.addCommand(k,"dom");i.addCommand(k,"object");k=new f.Command({name:"Merge",image:"/git/images/merge.gif",id:"eclipse.orion.git.merge",callback:function(l){h.getService("orion.git.provider").then(function(m){m.doMerge(l.HeadLocation,
l.Name).then(function(p){h.getService("orion.page.message").then(function(n){var o=[];if(p.jsonData&&(p.jsonData.Result=="FAST_FORWARD"||p.jsonData.Result=="ALREADY_UP_TO_DATE")){c.query(".treeTableRow").forEach(function(r){c.toggleClass(r,"incomingCommitsdRow",false)});o.Severity="Ok";o.HTML=false;o.Message=p.jsonData.Result}else if(p.jsonData){var q=l.HeadLocation.replace("commit/HEAD","status");o.Severity="Warning";o.HTML=true;o.Message="<span>"+p.jsonData.Result+'. Go to <a href="/git/git-status.html#'+
q+'">Git Status page</a>.<span>'}else if(p.error){o.Severity="Error";if(p.error.responseText&&JSON.parse(p.error.responseText)){var u=JSON.parse(p.error.responseText);o.Message=u.DetailedMessage?u.DetailedMessage:u.Message}else o.Message=p.error.message;o.HTML=true;o.Message="<span>"+o.Message+' Go to <a href="/git/git-status.html#'+q+'">Git Status page</a>.<span>'}n.setProgressResult(o)})},function(p){h.getService("orion.page.message").then(function(n){var o=[],q=l.HeadLocation.replace("commit/HEAD",
"status");o.Severity="Error";o.HTML=true;o.Message="<span>"+c.fromJson(p.ioArgs.xhr.responseText).DetailedMessage+'. Go to <a href="/git/git-status.html#'+q+'">Git Status page</a>.<span>';n.setProgressResult(o)})})})},visibleWhen:function(l){return l.Type==="RemoteTrackingBranch"||l.Type==="Branch"&&!l.Current}});i.addCommand(k,"dom");i.addCommand(k,"object");k=new f.Command({name:"Push All",image:"/git/images/push.gif",id:"eclipse.orion.git.push",callback:function(l){var m=c.hash();d.getDefaultSshOptions(h).then(function(p){var n=
arguments.callee;h.getService("orion.git.provider").then(function(o){h.getService("orion.page.message").then(function(q){var u=o.doPush(l.RemoteLocation,"HEAD",null,p.gitSshUsername,p.gitSshPassword,p.knownHosts,p.gitPrivateKey,p.gitPassphrase);q.showWhile(u,"Pushing remote: "+m).then(function(r){d.handleProgressServiceResponse(r,p,h,function(s){s.Result.Severity=="Ok"&&c.query(".treeTableRow").forEach(function(x){c.toggleClass(x,"outgoingCommitsdRow",false)})},n,"Push Git Repository")})})})})},visibleWhen:function(l){return l.toRef?
l.RepositoryPath===""&&l.toRef.Type==="Branch"&&l.toRef.Current&&l.toRef.RemoteLocation:l.Type==="Branch"&&l.Current&&l.RemoteLocation}});i.addCommand(k,"dom");i.addCommand(k,"object");k=new f.Command({name:"Switch to Remote",id:"eclipse.orion.git.switchToRemote",hrefCallback:function(l){return"/git/git-log.html#"+l.toRef.RemoteLocation+"?page=1"},visibleWhen:function(l){return l.toRef!=null&&l.toRef.Type==="Branch"&&l.toRef.Current&&l.toRef.RemoteLocation}});i.addCommand(k,"dom");k=new f.Command({name:"Switch to Current Local",
id:"eclipse.orion.git.switchToCurrentLocal",hrefCallback:function(l){var m=new c.Deferred,p=l.CloneLocation;if(p==null)p=JSON.parse(l.responseText).ErrorData.CloneLocation;c.xhrGet({url:p,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(n){c.xhrGet({url:n.Children[0].BranchLocation,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(o){c.forEach(o.Children,function(q){q.Current==true&&m.callback("/git/git-log.html#"+q.CommitLocation+"?page=1")})}})}});return m},
visibleWhen:function(l){if(l.Type==="RemoteTrackingBranch")return true;try{if(JSON.parse(l.responseText).ErrorData)return true}catch(m){}return false}});i.addCommand(k,"dom");k=new f.Command({name:"Push to...",image:"/git/images/push.gif",id:"eclipse.orion.git.pushto",callback:function(l){var m={};for(var p in l.parent.parent.children)if(l.parent.parent.children[p].Name==="Remote")m=l.parent.parent.children[p];h.getService("orion.git.provider").then(function(n){n=new orion.git.widgets.RemotePrompterDialog({title:"Choose Branch",
serviceRegistry:h,gitClient:n,treeRoot:m,func:c.hitch(this,function(o,q,u){console.info("Branch "+o+" remote "+q+" new branch "+u)})});n.startup();n.show()})},visibleWhen:function(){return false}});i.addCommand(k,"dom");i.addCommand(k,"object");k=new f.Command({name:"Reset Index",image:"/git/images/refresh.gif",id:"eclipse.orion.git.resetIndex",callback:function(l){confirm("The content of your active branch witll be replaced with "+l.Name+". Are you sure?")&&h.getService("orion.git.provider").then(function(m){m.resetIndex(l.IndexLocation,
l.Name).then(function(){h.getService("orion.page.message").then(function(p){var n=[];n.Severity="Info";n.HTML=false;n.Message="Ok";p.setProgressResult(n)})},function(p){h.getService("orion.page.message").then(function(n){var o=[];o.Severity="Error";o.HTML=false;o.Message=p.message;n.setProgressResult(o)})})})},visibleWhen:function(l){return l.Type==="RemoteTrackingBranch"}});i.addCommand(k,"object");k=new f.Command({name:"Tag",image:"/git/images/tag.gif",id:"eclipse.orion.git.addTag",callback:function(l,
m,p){var n=new c.Deferred;d.getNewItemName(l,j,false,p,"Tag name",function(o){if(!(!o||o==="")){h.getService("orion.git.provider").then(function(q){q.doAddTag(l.Location,o,function(u){u=u.Location.replace(/[^\.\:\-\_0-9A-Za-z]/g,"");u=c.byId(u);c.place(document.createTextNode(o),c.create("p",{style:"margin: 5px"},u.children[5],"last"),"only")})});return n}},4)},visibleWhen:function(l){return l.Type==="Commit"}});i.addCommand(k,"object")};d.createStatusCommands=function(h,i,j,k,l,m){l=new f.Command({name:"Fetch latest commits",
tooltip:"Fetch latest commits",image:"/git/images/fetch.gif",id:"eclipse.orion.git.fetch",callback:function(p){var n=p.Location;d.getDefaultSshOptions(h).then(function(o){var q=arguments.callee;h.getService("orion.git.provider").then(function(u){h.getService("orion.page.message").then(function(r){var s=u.doFetch(n,null,o.gitSshUsername,o.gitSshPassword,o.knownHosts,o.gitPrivateKey,o.gitPassphrase);r.showWhile(s,"Fetching remote: "+n).then(function(x){d.handleProgressServiceResponse(x,o,h,function(){c.xhrGet({url:n,
headers:{"Orion-Version":"1"},postData:c.toJson({GitSshUsername:o.gitSshUsername,GitSshPassword:o.gitSshPassword,GitSshPrivateKey:o.gitPrivateKey,GitSshPassphrase:o.gitPassphrase,GitSshKnownHost:o.knownHosts}),handleAs:"json",timeout:5E3,load:function(v){return v},error:function(v,y){console.error("HTTP status code: ",y.xhr.status)}}).then(function(v){u.getLog(v.HeadLocation,v.Id,function(y){m.renderer.setIncomingCommits(y);m.loadCommitsList(v.CommitLocation+"?page=1&pageSize=5",v,true)})})},q,"Fetch Git Repository")})})})})},
visibleWhen:function(p){return p.Type==="RemoteTrackingBranch"||p.Type==="Remote"}});i.addCommand(l,"object");i.registerCommandContribution("eclipse.orion.git.fetch",k+1);l=new f.Command({name:"Merge into local",image:"/git/images/merge.gif",id:"eclipse.orion.git.merge",callback:function(p){h.getService("orion.git.provider").then(function(n){n.doMerge(p.HeadLocation,p.Name).then(function(o){h.getService("orion.page.message").then(function(q){var u=[];if(o.jsonData&&(o.jsonData.Result=="FAST_FORWARD"||
o.jsonData.Result=="ALREADY_UP_TO_DATE")){c.query(".treeTableRow").forEach(function(x){c.toggleClass(x,"incomingCommitsdRow",false)});u.Severity="Ok";u.HTML=false;u.Message=o.jsonData.Result}else if(o.jsonData){var r=p.HeadLocation.replace("commit/HEAD","status");u.Severity="Warning";u.HTML=true;u.Message="<span>"+o.jsonData.Result+'. Go to <a href="/git/git-status.html#'+r+'">Git Status page</a>.<span>'}else if(o.error){u.Severity="Error";if(o.error.responseText&&JSON.parse(o.error.responseText)){var s=
JSON.parse(o.error.responseText);u.Message=s.DetailedMessage?s.DetailedMessage:s.Message}else u.Message=o.error.message;u.HTML=true;u.Message="<span>"+u.Message+' Go to <a href="/git/git-status.html#'+r+'">Git Status page</a>.<span>'}q.setProgressResult(u);j()})},function(o){h.getService("orion.page.message").then(function(q){var u=[],r=p.HeadLocation.replace("commit/HEAD","status");u.Severity="Error";u.HTML=true;u.Message="<span>"+c.fromJson(o.ioArgs.xhr.responseText).DetailedMessage+'. Go to <a href="/git/git-status.html#'+
r+'">Git Status page</a>.<span>';q.setProgressResult(u)})})})},visibleWhen:function(p){return p.Type==="RemoteTrackingBranch"||p.Type==="Branch"&&!p.Current}});i.addCommand(l,"object");i.registerCommandContribution("eclipse.orion.git.merge",k+2);l=new f.Command({name:"Push into remote",image:"/git/images/push.gif",id:"eclipse.orion.git.push",callback:function(p){var n=c.hash();d.getDefaultSshOptions(h).then(function(o){var q=arguments.callee;h.getService("orion.git.provider").then(function(u){h.getService("orion.page.message").then(function(r){var s=
u.doPush(p.RemoteLocation,"HEAD",null,o.gitSshUsername,o.gitSshPassword,o.knownHosts,o.gitPrivateKey,o.gitPassphrase);r.showWhile(s,"Pushing remote: "+n).then(function(x){d.handleProgressServiceResponse(x,o,h,function(v){if(v.Result.Severity=="Ok"){c.query(".treeTableRow").forEach(function(y){c.toggleClass(y,"outgoingCommitsdRow",false)});j()}},q,"Push Git Repository")})})})})},visibleWhen:function(p){return p.Type==="LocalBranch"}});i.addCommand(l,"object");i.registerCommandContribution("eclipse.orion.git.push",
k+3)};d.createGitClonesCommands=function(h,i,j,k,l,m){k=new f.Command({name:"Clone Repository",tooltip:"Clone Git Repository",id:"eclipse.cloneGitRepository",callback:function(){var p=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:h,fileClient:m,func:function(n,o,q){d.getDefaultSshOptions(h).then(function(u){var r=arguments.callee;h.getService("orion.git.provider").then(function(s){h.getService("orion.page.message").then(function(x){var v=s.cloneGitRepository(q,n,o,j.defaultPath,
u.gitSshUsername,u.gitSshPassword,u.knownHosts,u.gitPrivateKey,u.gitPassphrase);x.showWhile(v,"Cloning repository: "+n).then(function(y){d.handleProgressServiceResponse(y,u,h,function(){j.redisplayClonesList&&c.hitch(j,j.redisplayClonesList)()},r,"Clone Git Repository")})})})})}});p.startup();p.show()},visibleWhen:function(){return true}});i.addCommand(k,"dom");k=new f.Command({name:"Init Repository",tooltip:"Init Git Repository in Workspace",id:"eclipse.initGitRepository",callback:function(){var p=
new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:h,title:"Init Repository",fileClient:m,advancedOnly:true,func:function(n,o,q){d.getDefaultSshOptions(h).then(function(){h.getService("orion.git.provider").then(function(u){u.cloneGitRepository(q,n,o,j.defaultPath).then(function(){j.redisplayClonesList&&c.hitch(j,j.redisplayClonesList)()},e)})})}});p.startup();p.show()},visibleWhen:function(){return true}});i.addCommand(k,"dom");k=new f.Command({name:"Delete Clone",image:"/images/delete.gif",
id:"eclipse.git.deleteClone",visibleWhen:function(p){p=c.isArray(p)?p:[p];if(p.length===0)return false;for(var n=0;n<p.length;n++)if(!p[n].ContentLocation)return false;return true},callback:function(p){if(c.isArray(p)){if(confirm("Are you sure you want do delete "+p.length+" repositories?"))for(var n=0,o=0;o<p.length;o++)h.getService("orion.git.provider").then(function(q){q.removeGitRepository(p[o].Location).then(function(){n++;n>=p.length&&j.redisplayClonesList&&c.hitch(j,j.redisplayClonesList)()},
e)})}else confirm("Are you sure you want to delete "+p.Name+"?")&&h.getService("orion.git.provider").then(function(q){q.removeGitRepository(p.Location).then(function(){j.redisplayClonesList&&c.hitch(j,j.redisplayClonesList)()},e)})}});i.addCommand(k,"object");i.addCommand(k,"dom")}})();return d});
define("orion/git/git-commit-navigator",["dojo","orion/explorer","orion/util","orion/git/gitCommands"],function(c,f,a,d){var e={};e.GitCommitNavigator=function(){function g(h,i,j,k,l,m,p,n){this.registry=h;this.selection=i;this.checkbox=k!=null?k.checkbox:true;this.minimal=k!=null?k.minimal:false;this.parentId=l;this.pageTitleId=m;this.toolbarId=p;this.selectionToolsId=n;this.isDirectory=true;this.myTree=this.model=null;this.commitDetails=j;this.renderer=new e.GitCommitRenderer({checkbox:this.checkbox,
cachePrefix:"GitCommitsNavigator",minimal:this.minimal},this);this.commitDetails&&this.commitDetails.render(null)}g.prototype=new f.Explorer;g.prototype.loadCommitsList=function(h,i,j){h=a.makeRelative(h);if(!(h===this._lastHash&&!j)){this._lastHash=h;this._lastTreeRoot=i;var k=c.byId(this.parentId);(j=c.byId(k.id+"progress"))||(j=c.create("div",{id:k.id+"progress"},k,"only"));c.empty(j);if(i.status&&i.status!=200){k=i.message;try{var l=JSON.parse(i.responseText);if(l.Message)k=l.Message}catch(m){}i.status!=
404&&k!==""&&c.create("b",{innerHTML:"Error "+i.status+": "},j,"only");c.place(document.createTextNode(k),j,"last");this.toolbarId&&this.selectionToolsId&&d.updateNavTools(this.registry,this,this.toolbarId,this.selectionToolsId,i)}else{b=c.create("b");c.place(document.createTextNode("Loading "),j,"last");c.place(document.createTextNode(h),b,"last");c.place(b,j,"last");c.place(document.createTextNode("..."),j,"last");var p=this;this.toolbarId&&this.selectionToolsId&&d.updateNavTools(this.registry,
this,this.toolbarId,this.selectionToolsId,i);this.registry.getService("orion.git.provider").then(function(n){c.hitch(p,p.createTree(p.parentId,new f.ExplorerFlatModel(h,n.doGitLog)))})}}};g.prototype.loadCommitDetails=function(h){this.commitDetails&&this.commitDetails.loadCommitDetails(h)};return g}();e.GitCommitRenderer=function(){function g(h,i){this._init(h);this.options=h;this.explorer=i}g.prototype=f.SelectionRenderer.prototype;g.prototype.getCellHeaderElement=function(h){if(!this.options.minimal)switch(h){case 0:return c.create("th",
{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>Message</h2>"});case 1:return c.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>Author</h2>"});case 2:return c.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>Date</h2>"});case 3:return c.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>Actions</h2>"});case 4:return c.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>Tags</h2>"})}};g.prototype.setIncomingCommits=
function(h){this.incomingCommits=h};g.prototype.setOutgoingCommits=function(h){this.outgoingCommits=h};g.prototype.getCellElement=function(h,i,j){var k=false;c.forEach(this.incomingCommits,function(o){if(i.Name===o.Name)k=true});var l=false;c.forEach(this.outgoingCommits,function(o){if(i.Name===o.Name)l=true});switch(h){case 0:var m,p;h=document.createElement("td");m=c.create("div",{style:"margin-left: 5px; margin-right: 5px; margin-top: 5px; margin-bottom: 5px; padding-left: 20px;"},h,"only");p=
c.create("a",{className:"navlinkonpage"},m,"last");if(this.explorer.commitDetails){c.connect(p,"onclick",p,c.hitch(this,function(){this.explorer.loadCommitDetails(i)}));c.connect(p,"onmouseover",p,function(){p.style.cursor="pointer"});c.connect(p,"onmouseout",p,function(){p.style.cursor="default"})}c.place(document.createTextNode(i.Message),p,"only");if(k)c.toggleClass(j,"incomingCommitsdRow",true);else l&&c.toggleClass(j,"outgoingCommitsdRow",true);return h;case 1:return c.create("td",{style:"padding-left: 5px; padding-right: 5px",
innerHTML:i.AuthorName+" ("+i.AuthorEmail+")"});case 2:return c.create("td",{style:"padding-left: 5px; padding-right: 5px",innerHTML:c.date.locale.format(new Date(i.Time),{formatLength:"short"})});case 3:if(this.options.minimal)break;j=this.getActionsColumn(i,j);c.style(j,"padding-left","5px");c.style(j,"padding-right","5px");return j;case 4:if(this.options.minimal)break;var n=document.createElement("td",{style:"padding-left: 5px; padding-right: 5px"});c.forEach(i.Children,function(o){c.place(document.createTextNode(o.Name),
c.create("p",{style:"margin: 5px"},n,"last"),"only")});return n}};return g}();return e});
define("dojox/layout/ToggleSplitter",["dojo","dijit","dijit/layout/BorderContainer"],function(c,f){c.declare("dojox.layout.ToggleSplitter",[f.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;c.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=c.style(a,this.horizontal?"height":"width");c.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(){c.disconnect(this._onMoveHandle);c.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){c.disconnect(this._onMoveHandle);this._startDrag(a)}},_onMouseDown:function(a){if(this.open){if(!this._onUpHandle)this._onUpHandle=
c.connect(c.body(),"onmouseup",this,"_onMouseUp");if(!this._onMoveHandle){this._startPosn=this.horizontal?a.clientY:a.clientX;this._onMoveHandle=c.connect(c.body(),"onmousemove",this,"_onPrelimMouseMove")}}},_handleOnChange:function(){var a=this.child.domNode,d;d=this.horizontal?"height":"width";if(this.open){var e=c.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);e[d]=this._openStyleProps&&this._openStyleProps[d]?this._openStyleProps[d]:this.openSize;c.style(a,
e);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{e=c.getComputedStyle(a);d=this._getStyleProps(a,true,e);e=this._getStyleProps(a,false,e);this._openStyleProps=d;c.style(a,e)}this._setStateClass();this.container._started&&this.container._layoutChildren(this.region)},_getStyleProps:function(a,d,e){e||(e=c.getComputedStyle(a));var g={},h=this.horizontal?"height":"width";g.visibility=d?e.visibility:"hidden";g[h]=d?a.style[h]||e[h]:this._closedSize;var i=["Top","Right","Bottom","Left"];
c.forEach(["padding","margin","border"],function(j){for(var k=0;k<i.length;k++){var l=j+i[k];if(j=="border")j+="Width";if(undefined!==e[l])g[l]=d?e[l]:0}});return g},_setStateClass:function(){if(this.open){c.removeClass(this.domNode,"dojoxToggleSplitterClosed");c.addClass(this.domNode,"dojoxToggleSplitterOpen");c.removeClass(this.toggleNode,"dojoxToggleSplitterIconClosed");c.addClass(this.toggleNode,"dojoxToggleSplitterIconOpen")}else{c.addClass(this.domNode,"dojoxToggleSplitterClosed");c.removeClass(this.domNode,
"dojoxToggleSplitterOpen");c.addClass(this.toggleNode,"dojoxToggleSplitterIconClosed");c.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&&c.stopEvent(a);this.set("open",!this.open)},_onKeyPress:function(){this.inherited(arguments)}});c.extend(f._Widget,{toggleSplitterOpen:true,toggleSplitterClosedThreshold:5,
toggleSplitterOpenSize:""})});
define("orion/widgets/eWebBorderContainer",["dojo","dijit","dijit/layout/BorderContainer","dojox/layout/ToggleSplitter"],function(c,f){c.declare("orion.widgets.eWebBorderContainer",f.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredLeftPaneWidth:function(){var a=this.getSizeCookie();return a<=0?c.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,h=c.position(e).w,i=this.isLeftPaneOpen(),
j;j=i?0:this.getPreferredLeftPaneWidth();i||this.toggleLeftPaneState();var k=e.style.overflow,l=g.style.overflow;(new c.Animation({node:e,duration:300,curve:[1,100],onAnimate:c.hitch(this,function(m){e.style.width=h+(j-h)*m/100+"px";e.style.overflow="hidden";g.style.overflow="hidden";this.layout()}),onEnd:c.hitch(this,function(){g.style.overflow=l;e.style.overflow=k;this.toggleCallback&&this.toggleCallback.apply();i?this.toggleLeftPaneState():this.setSizeCookie(null)})})).play()}});c.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=c.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=c.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);e[d]=this._openStyleProps&&this._openStyleProps[d]?this._openStyleProps[d]:
this.openSize;c.style(a,e);this.connect(this.domNode,"onmousedown","_onMouseDown")}else{e=c.getComputedStyle(a);d=this._getStyleProps(a,true,e);e=this._getStyleProps(a,false,e);this._openStyleProps=d;c.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){c.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=c.cookie(this._cookieName);if(a)return parseInt(a.replace("px",""),10)}return 0},
setSizeCookie:function(){if(this.container.persist)c.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)c.cookie(this._openStateCookieName,this.open?"true":"false",{expires:365})}});c.declare("orion.widgets.eWebBorderContainerReverse",f.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",
getPreferredRightPaneWidth:function(){var a=this.getSizeCookie();return a<=0?c.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,h=c.position(e).w,i=this.isRightPaneOpen(),j;j=i?0:this.getPreferredRightPaneWidth();i||this.toggleRightPaneState();var k=e.style.overflow,l=g.style.overflow;(new c.Animation({node:e,duration:300,curve:[1,100],onAnimate:c.hitch(this,function(m){e.style.width=h+(j-h)*m/
100+"px";e.style.overflow="hidden";g.style.overflow="hidden";this.layout()}),onEnd:c.hitch(this,function(){g.style.overflow=l;e.style.overflow=k;this.toggleCallback&&this.toggleCallback.apply();i?this.toggleRightPaneState():this.setSizeCookie(null)})})).play()}})});
define("git-log",["dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry","orion/status","orion/commands","orion/auth","orion/dialogs","orion/selection","orion/fileClient","orion/searchClient","orion/globalCommands","orion/git/gitClient","orion/breadcrumbs","orion/ssh/sshTools","orion/git/git-commit-details","orion/git/git-commit-navigator","orion/git/gitCommands","dojo/parser","dojo/hash","dijit/layout/BorderContainer","dijit/layout/ContentPane","orion/widgets/eWebBorderContainer"],
function(c,f,a,d,e,g,h,i,j,k,l,m,p,n,o,q,u,r){function s(D,G){var I=c.hash();c.xhrGet({url:I,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(E){if(E.Type==="RemoteTrackingBranch"){serviceRegistry.getService(D).then(function(L){L=new k.FileClient(L);y(L,G,E)});serviceRegistry.getService("orion.git.provider").then(function(L){L.getLog(E.HeadLocation,E.Id,function(N){G.renderer.setIncomingCommits(N);G.renderer.setOutgoingCommits([]);G.loadCommitsList(E.CommitLocation+"?"+(new c._Url(I)).query,
E)})})}else if(E.toRef){serviceRegistry.getService(D).then(function(L){L=new k.FileClient(L);y(L,G,E)});E.RemoteLocation?c.xhrGet({url:E.RemoteLocation,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(L){serviceRegistry.getService("orion.git.provider").then(function(N){N.getLog(L.CommitLocation,"HEAD",function(O){G.renderer.setIncomingCommits([]);G.renderer.setOutgoingCommits(O);G.loadCommitsList(c.hash(),E)})})},error:function(){G.loadCommitsList(c.hash(),E)}}):G.loadCommitsList(c.hash(),
E)}else G.loadCommitsList(c.hash(),{})},error:function(E,L){L.xhr.status==401||L.xhr.status==403?h.handleGetAuthenticationError(this,L):G.loadCommitsList(c.hash(),E)}})}function x(){var D=c.hash().split("gitapi/commit/");if(D.length===2){D=D[1].split("/");if(D.length>1){branch=D[0];fileURI="";for(var G=1;G<D.length-1;G++)fileURI+="/"+D[G];fileURI+="/"+D[D.length-1].split("?")[0]}}return fileURI}function v(){var D=c.hash().split("gitapi/remote/");if(D.length===2){D=D[1].split("/");if(D.length>2){branch=
D[0]+"/"+D[1];fileURI="";for(var G=2;G<D.length-1;G++)fileURI+="/"+D[G];fileURI+="/"+D[D.length-1].split("?")[0]}}return fileURI}function y(D,G,I){var E=I.Type==="RemoteTrackingBranch",L=E?v():x();L&&D.read(L,true).then(c.hitch(this,function(N){var O;if(I&&(E?I.Name:I.toRef))O=E?I.Name:I.toRef.Name;if(I&&(E?I.CloneLocation:I.toRef)){var R=E?I.CloneLocation:I.toRef.CloneLocation;serviceRegistry.getService("orion.git.provider").then(function(aa){aa.getGitClone(R).then(function($){$.Children&&$.Children.length>
0?A(O,$.Children[0].Name,$.Children[0].ContentLocation,E):A(O,$.Name,$.ContentLocation,E)})})}else A(O);var Y=c.byId("location");if(Y){c.empty(Y);new n.BreadCrumbs({container:"location",resource:N,makeHref:function(aa,$){H(D,aa,$,E)}})}G.isDirectory=N.Directory;r.updateNavTools(serviceRegistry,G,"pageActions","selectionTools",G._lastTreeRoot);G.updateCommands();N.Directory&&c.query(".navlinkonpage").forEach(function(aa){aa.removeAttribute("href")})}),c.hitch(this,function(N){console.error("Error loading file metadata: "+
N.message)}))}function F(){var D=dijit.byId("orion.innerNavigator");D.isRightPaneOpen()&&D.toggle();window.document.onkeydown=function(G){G=G||window.event;var I=false;if(G.ctrlKey&&G.keyCode===79){D.toggle();I=true}if(I)if(window.document.all)G.keyCode=0;else{G.preventDefault();G.stopPropagation()}}}function H(D,G,I,E){I&&D.read(I,true).then(c.hitch(this,function(L){if(E)serviceRegistry.getService("orion.git.provider").then(function(N){L.Git&&N.getDefaultRemoteBranch(L.Git.RemoteLocation,function(O){G.href=
"/git/git-log.html#"+O.Location+"?page=1"})});else if(L.Git)G.href="/git/git-log.html#"+L.Git.CommitLocation+"?page=1"}),c.hitch(this,function(L){console.error("Error loading file metadata: "+L.message)}))}function A(D,G,I,E){var L=c.byId("pageTitle");E="Git Log for "+(E?"remote branch <b>":"local branch <b>")+D+"</b>";if(I)E=E+" on <a href='/git/git-clone.html#"+I+"'>"+G+"</a>";L.innerHTML=E;if(D)document.title=G?D+" on "+G:D}c.addOnLoad(function(){document.body.style.visibility="visible";c.parser.parse();
serviceRegistry=new f.ServiceRegistry;var D=new d.PluginRegistry(serviceRegistry);c.addOnUnload(function(){D.shutdown()});new e.StatusReportingService(serviceRegistry,"statusPane","notifications");new i.DialogService(serviceRegistry);var G=new j.Selection(serviceRegistry);new o.SshService(serviceRegistry);for(var I=new a.PreferencesService(serviceRegistry,"/prefs/user"),E=new g.CommandService({serviceRegistry:serviceRegistry,selection:G}),L=serviceRegistry.getServiceReferences("orion.core.file"),
N,O=0;O<L.length;O++){for(var R={},Y=L[O].getPropertyNames(),aa=0;aa<Y.length;aa++)R[Y[aa]]=L[O].getProperty(Y[aa]);if((new RegExp(R.pattern)).test(c.hash()))N=L[O]}new p.GitService(serviceRegistry);L=new l.Searcher({serviceRegistry:serviceRegistry});O=new q.CommitDetails({parent:"commitDetailsPane",serviceRegistry:serviceRegistry,detailsPane:dijit.byId("orion.innerNavigator")});var $=new u.GitCommitNavigator(serviceRegistry,G,O,null,"explorer-tree","pageTitle","pageActions","selectionTools");m.generateBanner("toolbar",
serviceRegistry,E,I,L,$);r.createFileCommands(serviceRegistry,E,$,"pageActions","selectionTools");E.addCommandGroup("eclipse.gitGroup.nav",200,"More");E.addCommandGroup("eclipse.gitGroup.page",100,null,null,"pageActions");E.addCommandGroup("eclipse.selectionGroup",500,"More actions",null,"selectionTools");E.registerCommandContribution("eclipse.openGitCommit",1);E.registerCommandContribution("eclipse.compareWithWorkingTree",2);E.registerCommandContribution("eclipse.compareGitCommits",1,"selectionTools",
"eclipse.selectionGroup");E.registerCommandContribution("eclipse.orion.git.fetch",100,"pageActions","eclipse.gitGroup.page");E.registerCommandContribution("eclipse.orion.git.merge",100,"pageActions","eclipse.gitGroup.page");E.registerCommandContribution("eclipse.orion.git.switchToCurrentLocal",100,"pageActions","eclipse.gitGroup.page");E.registerCommandContribution("eclipse.orion.git.push",100,"pageActions","eclipse.gitGroup.page");E.registerCommandContribution("eclipse.orion.git.switchToRemote",
100,"pageActions","eclipse.gitGroup.page");E.registerCommandContribution("eclipse.orion.git.addTag",3);s(N,$);F($);c.subscribe("/dojo/hashchange",$,function(){s(N,$)})})});