/*
 RequireJS text 0.24.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details
 RequireJS i18n 0.24.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details
*/
(function(){function b(a,c,e){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var g=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"],j=0,h;h=g[j++];)console[h]||function(){var m=h+"";console[m]="log"in console?function(){var n=Array.apply({},arguments);n.unshift(m+":");console.log(n.join(" "))}:function(){};console[m]._fake=true}()}if(typeof a==
"undefined")a={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};var f=a;if(typeof c=="undefined")c={_scopeName:"dijit"};if(typeof e=="undefined")e={_scopeName:"dojox"};if(!f._scopeArgs)f._scopeArgs=[a,c,e];f.global=this;f.config={isDebug:false,debugAtAllCosts:false};if(g=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var i in g)f.config[i]=g[i];a.locale=f.config.locale;i="$Rev: 24595 $".match(/\d+/);a.version=
{major:1,minor:6,patch:1,flag:"",revision:i?+i[0]:NaN,toString:function(){with(f.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",f.version.toString());var k,l,q={};for(j in{toString:1}){k=[];break}a._extraNames=k=k||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];l=k.length;a._mixin=function(m,n){var o,u,p;for(o in n){u=n[o];
if(!(o in m)||m[o]!==u&&(!(o in q)||q[o]!==u))m[o]=u}if(l&&n)for(p=0;p<l;++p){o=k[p];u=n[o];if(!(o in m)||m[o]!==u&&(!(o in q)||q[o]!==u))m[o]=u}return m};a.mixin=function(m){m||(m={});for(var n=1,o=arguments.length;n<o;n++)f._mixin(m,arguments[n]);return m};a._getProp=function(m,n,o){o=o||f.global;for(var u=0,p;o&&(p=m[u]);u++){if(u==0&&f._scopeMap[p])p=f._scopeMap[p];o=p in o?o[p]:n?(o[p]={}):undefined}return o};a.setObject=function(m,n,o){var u=m.split(".");m=u.pop();return(o=f._getProp(u,true,
o))&&m?(o[m]=n):undefined};a.getObject=function(m,n,o){return f._getProp(m.split("."),n,o)};a.exists=function(m,n){return f.getObject(m,false,n)!==undefined};a.eval=function(m){return f.global.eval?f.global.eval(m):eval(m)};f.deprecated=f.experimental=function(){}})();return{dojo:a,dijit:c,dojox:e}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=b();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var d=b();dojo=d.dojo;dijit=d.dijit;dojox=d.dojox}})();
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap"],function(b,d){var a=["_moduleHasPrefix","_loadPath","_loadUri","_loadUriAndCheck","loaded","_callLoaded","_getModuleSymbols","_loadModule","require","provide","platformRequire","requireIf","requireAfterIf","registerModulePath"],c,e;for(c=0;c<a.length;){e=a[c++];d[e]=function(m){return function(){console.warn("dojo."+m+" not available when using an AMD loader.")}}(e)}var g=function(m){var n=[],o;for(o=0;o<m.length;)n.push(m[o++]);
return n},j=function(m,n){return n?typeof n=="string"?function(){m[n]()}:function(){n.call(m)}:m};d.ready=d.addOnLoad=function(m,n){b.ready(n?j(m,n):m)};d.addOnLoad(function(){d.postLoad=d.config.afterOnLoad=true});if(a=d.config.addOnLoad)d.addOnLoad[a instanceof Array?"apply":"call"](d,a);var h=d._loaders=[],f=function(){var m=h.slice(0);for(Array.prototype.splice.apply(h,[0,h.length]);m.length;)m.shift().call()};h.unshift=function(){Array.prototype.unshift.apply(h,g(arguments));b.ready(f)};h.splice=
function(){Array.prototype.splice.apply(h,g(arguments));b.ready(f)};var i=d._unloaders=[];d.unloaded=function(){for(;i.length;)i.pop().call()};d._onto=function(m,n,o){m.push(o?j(n,o):n)};d._modulesLoaded=function(){};d.loadInit=function(m){m()};var k=function(m){return m.replace(/\./g,"/")};d.getL10nName=function(m,n,o){o=o?o.toLowerCase():d.locale;m="i18n!"+k(m);return/root/i.test(o)?m+"/nls/"+n:m+"/nls/"+o+"/"+n};d.requireLocalization=function(m,n,o){if(b.vendor!="altoviso.com")o=!o||o.toLowerCase()===
d.locale?"root":o;return b(d.getL10nName(m,n,o))};d.i18n={getLocalization:d.requireLocalization,normalizeLocale:function(m){m=m?m.toLowerCase():d.locale;if(m=="root")m="ROOT";return m}};var l=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,q=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;d._Url=function(){for(var m=arguments,n=[m[0]],o=1;o<m.length;o++)if(m[o]){var u=new d._Url(m[o]+"");n=new d._Url(n[0]+"");if(u.path==""&&!u.scheme&&!u.authority&&!u.query){if(u.fragment!=
null)n.fragment=u.fragment;u=n}else if(!u.scheme){u.scheme=n.scheme;if(!u.authority){u.authority=n.authority;if(u.path.charAt(0)!="/"){n=(n.path.substring(0,n.path.lastIndexOf("/")+1)+u.path).split("/");for(var p=0;p<n.length;p++)if(n[p]==".")if(p==n.length-1)n[p]="";else{n.splice(p,1);p--}else if(p>0&&!(p==1&&n[0]=="")&&n[p]==".."&&n[p-1]!="..")if(p==n.length-1){n.splice(p,1);n[p-1]=""}else{n.splice(p-1,2);p-=2}u.path=n.join("/")}}}n=[];u.scheme&&n.push(u.scheme,":");u.authority&&n.push("//",u.authority);
n.push(u.path);u.query&&n.push("?",u.query);u.fragment&&n.push("#",u.fragment)}this.uri=n.join("");o=this.uri.match(l);this.scheme=o[2]||(o[1]?"":null);this.authority=o[4]||(o[3]?"":null);this.path=o[5];this.query=o[7]||(o[6]?"":null);this.fragment=o[9]||(o[8]?"":null);if(this.authority!=null){o=this.authority.match(q);this.user=o[3]||null;this.password=o[4]||null;this.host=o[6]||o[7];this.port=o[9]||null}};d._Url.prototype.toString=function(){return this.uri};d.moduleUrl=function(m,n){if(!m)return null;
m=k(m)+(n?"/"+n:"");n="";var o=m.match(/(.+)(\.[^\/]*)$/);if(o){m=o[1];n=o[2]}return new d._Url(b.nameToUrl(m,n))};return d});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=true;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var c=document.getElementsByTagName("script"),e=/dojo(\.xd)?\.js(\W|$)/i,g=0;g<c.length;g++){var j=c[g].getAttribute("src");if(j){var h=j.match(e);if(h){if(!a.config.baseUrl)a.config.baseUrl=j.substring(0,h.index);if(c=c[g].getAttribute("djConfig")||c[g].getAttribute("data-dojo-config")){c=
eval("({ "+c+" })");for(var f in c)b.config[f]=c[f]}break}}}a.baseUrl=a.config.baseUrl;f=navigator;c=f.userAgent;e=f.appVersion;g=parseFloat(e);if(c.indexOf("Opera")>=0)a.isOpera=g;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=e.indexOf("Konqueror")>=0?g:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;a.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;a.isMac=e.indexOf("Macintosh")>=0;if((j=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!b.isChrome){a.isSafari=parseFloat(e.split("Version/")[1]);
if(!a.isSafari||parseFloat(e.substr(j+7))<=419.3)a.isSafari=2}if(c.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=g;if(a.isMoz)a.isFF=parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||undefined;if(document.all&&!a.isOpera){a.isIE=parseFloat(e.split("MSIE ")[1])||undefined;if((c=document.documentMode)&&c!=5&&Math.floor(a.isIE)!=c)a.isIE=c}if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=true;a.isQuirks=document.compatMode=="BackCompat";a.locale=
b.config.locale||(a.isIE?f.userLanguage:f.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var o,u;if(!b.isIE||!b.config.ieForceActiveXXhr)try{o=new XMLHttpRequest}catch(p){}if(!o)for(var s=0;s<3;++s){var v=a._XMLHTTP_PROGIDS[s];try{o=new ActiveXObject(v)}catch(t){u=t}if(o){a._XMLHTTP_PROGIDS=[v];break}}if(!o)throw new Error("XMLHTTP not available: "+u);return o};a._isDocumentOk=function(o){o=o.status||0;var u=location.protocol;
return o>=200&&o<300||o==304||o==1223||!o&&(u=="file:"||u=="chrome:"||u=="chrome-extension:"||u=="app:")};var i=window.location+"";var k=(f=document.getElementsByTagName("base"))&&f.length>0;a._getText=function(o,u){var p=a._xhrObj();if(!k&&b._Url)o=(new b._Url(i,o)).toString();if(a.config.cacheBust){o+="";o+=(o.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,"")}p.open("GET",o,false);try{p.send(null);if(!a._isDocumentOk(p)){var s=Error("Unable to load "+o+" status:"+p.status);
s.status=p.status;s.responseText=p.responseText;throw s;}}catch(v){if(u)return null;throw v;}return p.responseText};var l=window,q=function(o,u){var p=l.attachEvent||l.addEventListener;o=l.attachEvent?o:o.substring(2);p(o,function(){u.apply(l,arguments)},false)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var o=a._windowUnloaders;o.length;)o.pop()();a=null};var m=0;a.addOnWindowUnload=function(o,u){a._onto(a._windowUnloaders,o,u);if(!m){m=1;q("onunload",a.windowUnloaded)}};var n=0;a.addOnUnload=
function(o,u){a._onto(a._unloaders,o,u);if(!n){n=1;q("onbeforeunload",b.unloaded)}}})();b._initFired=false;b._loadInit=function(){if(b._scrollIntervalId){clearInterval(b._scrollIntervalId);b._scrollIntervalId=0}if(!b._initFired){b._initFired=true;!b.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",b._loadInit);b._inFlightCount==0&&b._modulesLoaded()}};if(!b.config.afterOnLoad)if(document.addEventListener){document.addEventListener("DOMContentLoaded",b._loadInit,false);window.addEventListener("load",
b._loadInit,false)}else if(window.attachEvent){window.attachEvent("onload",b._loadInit);if(!b.config.skipIeDomLoaded&&self===self.top)b._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");b._loadInit()}}catch(a){}},30)}if(b.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],c=0,e=1,g=document.createStyleSheet();if(b.isIE>=8){c=
1;e=a.length}for(;c<e;++c)g.addRule("v\\:"+a[c],"behavior:url(#default#VML); display:inline-block")})()}catch(d){}}(function(){var a=b.config.modulePaths;if(a)for(var c in a)b.registerModulePath(c,a[c])})();b.config.isDebug&&b.require("dojo._firebug.firebug");if(b.config.debugAtAllCosts){b.require("dojo._base._loader.loader_debug");b.require("dojo.i18n")}return b});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(b){return dojo=b});
define("dojo/_base/lang",["dojo/lib/kernel"],function(b){(function(){var d=Object.prototype.toString;b.isString=function(f){return typeof f=="string"||f instanceof String};b.isArray=function(f){return f&&(f instanceof Array||typeof f=="array")};b.isFunction=function(f){return d.call(f)==="[object Function]"};b.isObject=function(f){return f!==undefined&&(f===null||typeof f=="object"||b.isArray(f)||b.isFunction(f))};b.isArrayLike=function(f){return f&&f!==undefined&&!b.isString(f)&&!b.isFunction(f)&&
!(f.tagName&&f.tagName.toLowerCase()=="form")&&(b.isArray(f)||isFinite(f.length))};b.isAlien=function(f){return f&&!b.isFunction(f)&&/\{\s*\[native code\]\s*\}/.test(String(f))};b.extend=function(f){for(var i=1,k=arguments.length;i<k;i++)b._mixin(f.prototype,arguments[i]);return f};b._hitchArgs=function(f,i){var k=b._toArray(arguments,2),l=b.isString(i);return function(){var q=b._toArray(arguments),m=l?(f||b.global)[i]:i;return m&&m.apply(f||this,k.concat(q))}};b.hitch=function(f,i){if(arguments.length>
2)return b._hitchArgs.apply(b,arguments);if(!i){i=f;f=null}if(b.isString(i)){f=f||b.global;if(!f[i])throw['dojo.hitch: scope["',i,'"] is null (scope="',f,'")'].join("");return function(){return f[i].apply(f,arguments||[])}}return!f?i:function(){return i.apply(f,arguments||[])}};b.delegate=b._delegate=function(){function f(){}return function(i,k){f.prototype=i;i=new f;f.prototype=null;k&&b._mixin(i,k);return i}}();var a=function(f,i,k){return(k||[]).concat(Array.prototype.slice.call(f,i||0))},c=function(f,
i,k){k=k||[];for(i=i||0;i<f.length;i++)k.push(f[i]);return k};b._toArray=b.isIE?function(f){return(f.item?c:a).apply(this,arguments)}:a;b.partial=function(){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var e=b._extraNames,g=e.length,j={};b.clone=function(f){if(!f||typeof f!="object"||b.isFunction(f))return f;if(f.nodeType&&"cloneNode"in f)return f.cloneNode(true);if(f instanceof Date)return new Date(f.getTime());if(f instanceof RegExp)return new RegExp(f);var i,k,l,q;if(b.isArray(f)){i=
[];k=0;for(l=f.length;k<l;++k)k in f&&i.push(b.clone(f[k]))}else i=f.constructor?new f.constructor:{};for(q in f){l=f[q];if(!(q in i)||i[q]!==l&&(!(q in j)||j[q]!==l))i[q]=b.clone(l)}if(g)for(k=0;k<g;++k){q=e[k];l=f[q];if(!(q in i)||i[q]!==l&&(!(q in j)||j[q]!==l))i[q]=l}return i};b.trim=String.prototype.trim?function(f){return f.trim()}:function(f){return f.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(f,i,k){return f.replace(k||h,b.isFunction(i)?i:function(l,
q){return b.getObject(q,false,i)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(c,e,g){return[typeof c=="string"?c.split(""):c,e||b.global,typeof g=="string"?new Function("item","index","array",g):g]},a=function(c,e,g,j){var h=d(e,j,g);e=h[0];g=0;for(j=e.length;g<j;++g){var f=!!h[2].call(h[1],e[g],g,e);if(c^f)return f}return c};b.mixin(b,{indexOf:function(c,e,g,j){var h=1,f=c.length||0,i=0;if(j){i=f-1;h=f=-1}if(g!=undefined)i=g;if(j&&i>f||i<f)for(;i!=f;i+=h)if(c[i]==e)return i;
return-1},lastIndexOf:function(c,e,g){return b.indexOf(c,e,g,true)},forEach:function(c,e,g){if(c&&c.length){var j=d(c,g,e);c=j[0];e=0;for(g=c.length;e<g;++e)j[2].call(j[1],c[e],e,c)}},every:function(c,e,g){return a(true,c,e,g)},some:function(c,e,g){return a(false,c,e,g)},map:function(c,e,g,j){var h=d(c,g,e);c=h[0];e=j?new j:[];g=0;for(j=c.length;g<j;++g)e.push(h[2].call(h[1],c[g],g,c));return e},filter:function(c,e,g){var j=d(c,g,e);c=j[0];e=[];g=0;for(var h=c.length;g<h;++g)j[2].call(j[1],c[g],g,
c)&&e.push(c[g]);return e}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function d(C,D){throw new Error("declare"+(D?" "+D:"")+": "+C);}function a(C,D){for(var A=[],E=[{cls:0,refs:[]}],F={},K=1,G=C.length,M=0,L,P,Q,$,da;M<G;++M){if(L=C[M])s.call(L)!="[object Function]"&&d("mixin #"+M+" is not a callable constructor.",D);else d("mixin #"+M+" is unknown. Did you use dojo.require to pull it in?",D);P=L._meta?L._meta.bases:[L];Q=0;for(L=P.length-1;L>=0;--L){$=P[L].prototype;
if(!$.hasOwnProperty("declaredClass"))$.declaredClass="uniqName_"+t++;$=$.declaredClass;if(!F.hasOwnProperty($)){F[$]={count:0,refs:[],cls:P[L]};++K}$=F[$];if(Q&&Q!==$){$.refs.push(Q);++Q.count}Q=$}++Q.count;E[0].refs.push(Q)}for(;E.length;){Q=E.pop();A.push(Q.cls);for(--K;da=Q.refs,da.length==1;){Q=da[0];if(!Q||--Q.count){Q=0;break}A.push(Q.cls);--K}if(Q){M=0;for(G=da.length;M<G;++M){Q=da[M];--Q.count||E.push(Q)}}}K&&d("can't build consistent linearization",D);L=C[0];A[0]=L?L._meta&&L===A[A.length-
L._meta.bases.length]?L._meta.bases.length:1:0;return A}function c(C,D,A){var E,F,K,G,M,L,P,Q=this._inherited=this._inherited||{};if(typeof C=="string"){E=C;C=D;D=A}A=0;G=C.callee;(E=E||G.nom)||d("can't deduce a name to call inherited()",this.declaredClass);M=this.constructor._meta;K=M.bases;P=Q.p;if(E!=y){if(Q.c!==G){P=0;L=K[0];M=L._meta;if(M.hidden[E]!==G){(F=M.chains)&&typeof F[E]=="string"&&d("calling chained method with inherited: "+E,this.declaredClass);do{M=L._meta;F=L.prototype;if(M&&(F[E]===
G&&F.hasOwnProperty(E)||M.hidden[E]===G))break}while(L=K[++P]);P=L?P:-1}}if(L=K[++P]){F=L.prototype;if(L._meta&&F.hasOwnProperty(E))A=F[E];else{G=p[E];do{F=L.prototype;if((A=F[E])&&(L._meta?F.hasOwnProperty(E):A!==G))break}while(L=K[++P])}}A=L&&A||p[E]}else{if(Q.c!==G){P=0;if((M=K[0]._meta)&&M.ctor!==G){F=M.chains;if(!F||F.constructor!=="manual")d("calling chained constructor with inherited",this.declaredClass);for(;L=K[++P];)if((M=L._meta)&&M.ctor===G)break;P=L?P:-1}}for(;L=K[++P];)if(A=(M=L._meta)?
M.ctor:L)break;A=L&&A}Q.c=A;Q.p=P;if(A)return D===true?A:A.apply(this,D||C)}function e(C,D){if(typeof C=="string")return this.inherited(C,D,true);return this.inherited(C,true)}function g(C){for(var D=this.constructor._meta.bases,A=0,E=D.length;A<E;++A)if(D[A]===C)return true;return this instanceof C}function j(C,D){var A,E=0,F=o._extraNames.length;for(A in D)if(A!=y&&D.hasOwnProperty(A))C[A]=D[A];for(;E<F;++E){A=o._extraNames[E];if(A!=y&&D.hasOwnProperty(A))C[A]=D[A]}}function h(C,D){var A,E,F=0,
K=o._extraNames.length;for(A in D){E=D[A];if((E!==p[A]||!(A in p))&&A!=y){if(s.call(E)=="[object Function]")E.nom=A;C[A]=E}}for(;F<K;++F){A=o._extraNames[F];E=D[A];if((E!==p[A]||!(A in p))&&A!=y){if(s.call(E)=="[object Function]")E.nom=A;C[A]=E}}return C}function f(C){h(this.prototype,C);return this}function i(C,D){return function(){var A=arguments,E=A,F=A[0],K,G;G=C.length;var M;if(!(this instanceof A.callee))return n(A);if(D&&(F&&F.preamble||this.preamble)){M=new Array(C.length);M[0]=A;for(K=0;;){if(F=
A[0])if(F=F.preamble)A=F.apply(this,A)||A;F=C[K].prototype;if(F=F.hasOwnProperty("preamble")&&F.preamble)A=F.apply(this,A)||A;if(++K==G)break;M[K]=A}}for(K=G-1;K>=0;--K){F=C[K];if(F=(G=F._meta)?G.ctor:F)F.apply(this,M?M[K]:A)}(F=this.postscript)&&F.apply(this,E)}}function k(C,D){return function(){var A=arguments,E=A,F=A[0];if(!(this instanceof A.callee))return n(A);if(D){if(F)if(F=F.preamble)E=F.apply(this,E)||E;(F=this.preamble)&&F.apply(this,E)}C&&C.apply(this,A);(F=this.postscript)&&F.apply(this,
A)}}function l(C){return function(){var D=arguments,A=0,E,F;if(!(this instanceof D.callee))return n(D);for(;E=C[A];++A)if(E=(F=E._meta)?F.ctor:E){E.apply(this,D);break}(E=this.postscript)&&E.apply(this,D)}}function q(C,D,A){return function(){var E,F,K=0,G=1;if(A){K=D.length-1;G=-1}for(;E=D[K];K+=G){F=E._meta;(E=(F?F.hidden:E.prototype)[C])&&E.apply(this,arguments)}}}function m(C){v.prototype=C.prototype;C=new v;v.prototype=null;return C}function n(C){var D=C.callee,A=m(D);D.apply(A,C);return A}var o=
b,u=o._mixin,p=Object.prototype,s=p.toString,v=new Function,t=0,y="constructor";o.declare=function(C,D,A){if(typeof C!="string"){A=D;D=C;C=""}A=A||{};var E,F,K,G,M,L,P,Q=1,$=D;if(s.call(D)=="[object Array]"){L=a(D,C);K=L[0];Q=L.length-K;D=L[Q]}else{L=[0];if(D)if(s.call(D)=="[object Function]"){K=D._meta;L=L.concat(K?K.bases:D)}else d("base class is not a callable constructor.",C);else D!==null&&d("unknown base class. Did you use dojo.require to pull it in?",C)}if(D)for(F=Q-1;;--F){E=m(D);if(!F)break;
K=L[F];(K._meta?j:u)(E,K.prototype);G=new Function;G.superclass=D;G.prototype=E;D=E.constructor=G}else E={};h(E,A);K=A.constructor;if(K!==p.constructor){K.nom=y;E.constructor=K}for(F=Q-1;F;--F)if((K=L[F]._meta)&&K.chains)P=u(P||{},K.chains);if(E["-chains-"])P=u(P||{},E["-chains-"]);K=!P||!P.hasOwnProperty(y);L[0]=G=P&&P.constructor==="manual"?l(L):L.length==1?k(A.constructor,K):i(L,K);G._meta={bases:L,hidden:A,chains:P,parents:$,ctor:A.constructor};G.superclass=D&&D.prototype;G.extend=f;G.prototype=
E;E.constructor=G;E.getInherited=e;E.inherited=c;E.isInstanceOf=g;if(C){E.declaredClass=C;o.setObject(C,G)}if(P)for(M in P)if(E[M]&&typeof P[M]=="string"&&M!=y){K=E[M]=q(M,L,P[M]==="after");K.nom=M}return G};o.safeMixin=h})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var d=Array.prototype,a=arguments.callee,c=a._listeners;a=(a=a.target)&&a.apply(this,arguments);var e;c=[].concat(c);for(e in c)e in d||c[e].apply(this,arguments);return a}},add:function(d,a,c){d=d||b.global;var e=d[a];if(!e||!e._listeners){var g=b._listener.getDispatcher();g.target=e;g._listeners=[];e=d[a]=g}return e._listeners.push(c)},remove:function(d,a,c){(d=(d||
b.global)[a])&&d._listeners&&c--&&delete d._listeners[c]}};b.connect=function(){var d=arguments,a=[],c=0;a.push(b.isString(d[0])?null:d[c++],d[c++]);var e=d[c+1];a.push(b.isString(e)||b.isFunction(e)?d[c++]:null,d[c++]);for(e=d.length;c<e;c++)a.push(d[c]);return b._connect.apply(this,a)};b._connect=function(d,a,c,e){var g=b._listener;c=g.add(d,a,b.hitch(c,e));return[d,a,c,g]};b.disconnect=function(d){if(d&&d[0]!==undefined){b._disconnect.apply(this,d);delete d[0]}};b._disconnect=function(d,a,c,e){e.remove(d,
a,c)};b._topics={};b.subscribe=function(d,a,c){return[d,b._listener.add(b._topics,d,b.hitch(a,c))]};b.unsubscribe=function(d){d&&b._listener.remove(b._topics,d[0],d[1])};b.publish=function(d,a){if(d=b._topics[d])d.apply(this,a||[])};b.connectPublisher=function(d,a,c){var e=function(){b.publish(d,arguments)};return c?b.connect(a,c,e):b.connect(a,e)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(){},a=Object.freeze||function(){};b.Deferred=function(c){function e(m){if(h)throw new Error("This deferred has already been resolved");j=m;h=true;g()}function g(){for(var m;!m&&k;){var n=k;k=k.next;if(m=n.progress==d)h=false;var o=f?n.error:n.resolved;if(o)try{var u=o(j);if(u&&typeof u.then==="function")u.then(b.hitch(n.deferred,"resolve"),b.hitch(n.deferred,"reject"));else{o=m&&u===undefined;
if(m&&!o)f=u instanceof Error;n.deferred[o&&f?"reject":"resolve"](o?j:u)}}catch(p){n.deferred.reject(p)}else f?n.deferred.reject(j):n.deferred.resolve(j)}}var j,h,f,i,k,l=this.promise={};this.resolve=this.callback=function(m){this.fired=0;this.results=[m,null];e(m)};this.reject=this.errback=function(m){f=true;this.fired=1;e(m);this.results=[null,m];if(!m||m.log!==false)(b.config.deferredOnError||function(n){console.error(n)})(m)};this.progress=function(m){for(var n=k;n;){var o=n.progress;o&&o(m);
n=n.next}};this.addCallbacks=function(m,n){this.then(m,n,d);return this};this.then=l.then=function(m,n,o){var u=o==d?this:new b.Deferred(l.cancel);m={resolved:m,error:n,progress:o,deferred:u};if(k)i=i.next=m;else k=i=m;h&&g();return u.promise};var q=this;this.cancel=l.cancel=function(){if(!h){var m=c&&c(q);if(!h){m instanceof Error||(m=new Error(m));m.log=false;q.reject(m)}}};a(l)};b.extend(b.Deferred,{addCallback:function(){return this.addCallbacks(b.hitch.apply(b,arguments))},addErrback:function(){return this.addCallbacks(null,
b.hitch.apply(b,arguments))},addBoth:function(){var c=b.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1})})();b.when=function(d,a,c,e){if(d&&typeof d.then==="function")return d.then(a,c,e);return a(d)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(d){return eval("("+d+")")};b._escapeString=function(d){return('"'+d.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};b.toJsonIndentStr="\t";b.toJson=function(d,a,c){if(d===undefined)return"undefined";var e=typeof d;if(e=="number"||e=="boolean")return d+"";if(d===null)return"null";if(b.isString(d))return b._escapeString(d);var g=
arguments.callee,j;c=c||"";var h=a?c+b.toJsonIndentStr:"";j=d.__json__||d.json;if(b.isFunction(j)){j=j.call(d);if(d!==j)return g(j,a,h)}if(d.nodeType&&d.cloneNode)throw new Error("Can't serialize DOM nodes");j=a?" ":"";var f=a?"\n":"";if(b.isArray(d))return"["+b.map(d,function(q){q=g(q,a,h);if(typeof q!="string")q="undefined";return f+h+q}).join(","+j)+f+c+"]";if(e=="function")return null;e=[];var i;for(i in d){var k,l;if(typeof i=="number")k='"'+i+'"';else if(typeof i=="string")k=b._escapeString(i);
else continue;l=g(d[i],a,h);typeof l=="string"&&e.push(f+h+k+":"+j+l)}return"{"+e.join(","+j)+f+c+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(d){d&&this.setColor(d)};b.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:b.config.transparentColor||[255,255,255]};b.extend(b.Color,
{r:255,g:255,b:255,a:1,_set:function(d,a,c,e){this.r=d;this.g=a;this.b=c;this.a=e},setColor:function(d){if(b.isString(d))b.colorFromString(d,this);else if(b.isArray(d))b.colorFromArray(d,this);else{this._set(d.r,d.g,d.b,d.a);d instanceof b.Color||this.sanitize()}return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+b.map(["r","g","b"],function(d){d=this[d].toString(16);return d.length<
2?"0"+d:d},this).join("")},toCss:function(d){var a=this.r+", "+this.g+", "+this.b;return(d?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(true)}});b.blendColors=function(d,a,c,e){var g=e||new b.Color;b.forEach(["r","g","b","a"],function(j){g[j]=d[j]+(a[j]-d[j])*c;if(j!="a")g[j]=Math.round(g[j])});return g.sanitize()};b.colorFromRgb=function(d,a){return(d=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&b.colorFromArray(d[1].split(/\s*,\s*/),a)};b.colorFromHex=function(d,
a){var c=a||new b.Color,e=d.length==4?4:8,g=(1<<e)-1;d=Number("0x"+d.substr(1));if(isNaN(d))return null;b.forEach(["b","g","r"],function(j){var h=d&g;d>>=e;c[j]=e==4?17*h:h});c.a=1;return c};b.colorFromArray=function(d,a){a=a||new b.Color;a._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));if(isNaN(a.a))a.a=1;return a.sanitize()};b.colorFromString=function(d,a){var c=b.Color.named[d];return c&&b.colorFromArray(c,a)||b.colorFromRgb(d,a)||b.colorFromHex(d,a)}})();return b.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(b){b.doc=window.document||null;b.body=function(){return b.doc.body||b.doc.getElementsByTagName("body")[0]};b.setContext=function(d,a){b.global=d;b.doc=a};b.withGlobal=function(d,a,c,e){var g=b.global;try{b.global=d;return b.withDoc.call(null,d.document,a,c,e)}finally{b.global=g}};b.withDoc=function(d,a,c,e){var g=b.doc,j=b._bodyLtr,h=b.isQuirks;try{b.doc=d;delete b._bodyLtr;b.isQuirks=b.doc.compatMode=="BackCompat";if(c&&typeof a=="string")a=
c[a];return a.apply(c,e||[])}finally{b.doc=g;delete b._bodyLtr;if(j!==undefined)b._bodyLtr=j;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var d=b._event_listener={add:function(f,i,k){if(f){i=d._normalizeEventName(i);k=d._fixCallback(i,k);if(!b.isIE&&(i=="mouseenter"||i=="mouseleave")){var l=k;i=i=="mouseenter"?"mouseover":"mouseout";k=function(q){if(!b.isDescendant(q.relatedTarget,f))return l.call(this,q)}}f.addEventListener(i,k,false);return k}},remove:function(f,i,k){if(f){i=d._normalizeEventName(i);if(!b.isIE&&(i=="mouseenter"||i=="mouseleave"))i=
i=="mouseenter"?"mouseover":"mouseout";f.removeEventListener(i,k,false)}},_normalizeEventName:function(f){return f.slice(0,2)=="on"?f.slice(2):f},_fixCallback:function(f,i){return f!="keypress"?i:function(k){return i.call(this,d._fixEvent(k,this))}},_fixEvent:function(f){switch(f.type){case "keypress":d._setKeyChar(f);break}return f},_setKeyChar:function(f){f.keyChar=f.charCode>=32?String.fromCharCode(f.charCode):"";f.charOrCode=f.keyChar||f.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,
189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}};b.fixEvent=function(f,i){return d._fixEvent(f,i)};b.stopEvent=function(f){f.preventDefault();f.stopPropagation()};var a=b._listener;b._connect=function(f,i,k,l,q){q=f&&(f.nodeType||f.attachEvent||f.addEventListener)?q?2:1:0;k=[b._listener,d,a][q].add(f,i,b.hitch(k,l));return[f,i,k,q]};b._disconnect=function(f,i,k,l){[b._listener,d,a][l].remove(f,i,k)};b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:b.isSafari?91:224,
PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,
F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:b.isMac&&!b.isAIR?b.isSafari?91:224:17};var c=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(f){return f[c]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(f,i){return f.button&i},isLeft:function(f){return f.button&1},isMiddle:function(f){return f.button&4},isRight:function(f){return f.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(f,i){return f.button==i},isLeft:function(f){return f.button==
0},isMiddle:function(f){return f.button==1},isRight:function(f){return f.button==2}};if(b.isIE){var e=function(f,i){try{return f.keyCode=i}catch(k){return 0}},g=b._listener,j=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks){a=g=b._ie_listener={handlers:[],add:function(f,i,k){f=f||b.global;var l=f[i];if(!l||!l[j]){var q=b._getIeDispatcher();q.target=l&&h.push(l)-1;q[j]=[];l=f[i]=q}return l[j].push(h.push(k)-1)},remove:function(f,i,k){i=(f=(f||b.global)[i])&&f[j];if(f&&i&&
k--){delete h[i[k]];delete i[k]}}};var h=g.handlers}b.mixin(d,{add:function(f,i,k){if(f){i=d._normalizeEventName(i);if(i=="onkeypress"){var l=f.onkeydown;if(!l||!l[j]||!l._stealthKeydownHandle){var q=d.add(f,"onkeydown",d._stealthKeyDown);l=f.onkeydown;l._stealthKeydownHandle=q;l._stealthKeydownRefs=1}else l._stealthKeydownRefs++}return g.add(f,i,d._fixCallback(k))}},remove:function(f,i,k){i=d._normalizeEventName(i);g.remove(f,i,k);if(i=="onkeypress"){i=f.onkeydown;if(--i._stealthKeydownRefs<=0){g.remove(f,
"onkeydown",i._stealthKeydownHandle);delete i._stealthKeydownHandle}}},_normalizeEventName:function(f){return f.slice(0,2)!="on"?"on"+f:f},_nop:function(){},_fixEvent:function(f,i){if(!f)f=(i&&(i.ownerDocument||i.document||i).parentWindow||window).event;if(!f)return f;f.target=f.srcElement;f.currentTarget=i||f.srcElement;f.layerX=f.offsetX;f.layerY=f.offsetY;i=(i=f.srcElement)&&i.ownerDocument||document;i=b.isIE<6||i.compatMode=="BackCompat"?i.body:i.documentElement;var k=b._getIeDocumentElementOffset();
f.pageX=f.clientX+b._fixIeBiDiScrollLeft(i.scrollLeft||0)-k.x;f.pageY=f.clientY+(i.scrollTop||0)-k.y;if(f.type=="mouseover")f.relatedTarget=f.fromElement;if(f.type=="mouseout")f.relatedTarget=f.toElement;if(b.isIE<9||b.isQuirks){f.stopPropagation=d._stopPropagation;f.preventDefault=d._preventDefault}return d._fixKeys(f)},_fixKeys:function(f){switch(f.type){case "keypress":var i="charCode"in f?f.charCode:f.keyCode;if(i==10){i=0;f.keyCode=13}else if(i==13||i==27)i=0;else if(i==3)i=99;f.charCode=i;d._setKeyChar(f);
break}return f},_stealthKeyDown:function(f){var i=f.currentTarget.onkeypress;if(i&&i[j]){var k=f.keyCode,l=(k!=13||b.isIE>=9&&!b.isQuirks)&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(l||f.ctrlKey){l=l?0:k;if(f.ctrlKey)if(k==3||k==13)return;else if(l>95&&l<106)l-=48;else if(!f.shiftKey&&l>=65&&l<=90)l+=32;else l=d._punctMap[l]||l;k=d._synthesizeEvent(f,{type:"keypress",faux:true,charCode:l});i.call(f.currentTarget,k);if(b.isIE<9||b.isIE&&b.isQuirks)f.cancelBubble=
k.cancelBubble;f.returnValue=k.returnValue;e(f,k.keyCode)}}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=false}});b.stopEvent=b.isIE<9||b.isQuirks?function(f){f=f||window.event;d._stopPropagation.call(f);d._preventDefault.call(f)}:b.stopEvent}d._synthesizeEvent=function(f,i){i=b.mixin({},f,i);d._setKeyChar(i);i.preventDefault=function(){f.preventDefault()};i.stopPropagation=function(){f.stopPropagation()};
return i};b.isOpera&&b.mixin(d,{_fixEvent:function(f){switch(f.type){case "keypress":var i=f.which;if(i==3)i=99;i=i<41&&!f.shiftKey?0:i;if(f.ctrlKey&&!f.shiftKey&&i>=65&&i<=90)i+=32;return d._synthesizeEvent(f,{charCode:i})}return f}});if(b.isWebKit){d._add=d.add;d._remove=d.remove;b.mixin(d,{add:function(f,i,k){if(f){var l=d._add(f,i,k);if(d._normalizeEventName(i)=="keypress")l._stealthKeyDownHandle=d._add(f,"keydown",function(q){var m=q.keyCode,n=m!=13&&m!=32&&(m<48||m>90)&&(m<96||m>111)&&(m<186||
m>192)&&(m<219||m>222);if(n||q.ctrlKey){n=n?0:m;if(q.ctrlKey)if(m==3||m==13)return;else if(n>95&&n<106)n-=48;else if(!q.shiftKey&&n>=65&&n<=90)n+=32;else n=d._punctMap[n]||n;m=d._synthesizeEvent(q,{type:"keypress",faux:true,charCode:n});k.call(q.currentTarget,m)}});return l}},remove:function(f,i,k){if(f){k._stealthKeyDownHandle&&d._remove(f,"keydown",k._stealthKeyDownHandle);d._remove(f,i,k)}},_fixEvent:function(f){switch(f.type){case "keypress":if(f.faux)return f;var i=f.charCode;i=i>=32?i:0;return d._synthesizeEvent(f,
{charCode:i,faux:true})}return f}})}})();if(b.isIE){b._ieDispatcher=function(d,a){var c=Array.prototype,e=b._ie_listener.handlers,g=d.callee,j=g[b._ieListenersName];g=(g=e[g.target])&&g.apply(a,d);j=[].concat(j);for(var h in j){var f=e[j[h]];!(h in c)&&f&&f.apply(a,d)}return g};b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")};b._event_listener._fixCallback=function(d){var a=b._event_listener._fixEvent;return function(c){return d.call(this,a(c,this))}}}return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",false,true)}catch(d){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var e=c||b.doc;if((c=e.getElementById(a))&&(c.attributes.id.value==a||c.id==a))return c;else{var g=e.all[a];if(!g||g.nodeName)g=[g];for(var j=0;c=g[j++];)if(c.attributes&&c.attributes.id&&c.attributes.id.value==a||c.id==a)return c}}:function(a,c){return(typeof a=="string"?(c||b.doc).getElementById(a):
a)||null};(function(){var a=b.byId,c=null,e;b.addOnWindowUnload(function(){c=null});b._destroyElement=b.destroy=function(r){r=a(r);try{var w=r.ownerDocument;if(!c||e!=w){c=w.createElement("div");e=w}c.appendChild(r.parentNode?r.parentNode.removeChild(r):r);c.innerHTML=""}catch(z){}};b.isDescendant=function(r,w){try{r=a(r);for(w=a(w);r;){if(r==w)return true;r=r.parentNode}}catch(z){}return false};b.setSelectable=function(r,w){r=a(r);if(b.isMozilla)r.style.MozUserSelect=w?"":"none";else if(b.isKhtml||
b.isWebKit)r.style.KhtmlUserSelect=w?"auto":"none";else if(b.isIE){w=r.unselectable=w?"":"on";b.query("*",r).forEach("item.unselectable = '"+w+"'")}};var g=function(r,w){var z=w.parentNode;z&&z.insertBefore(r,w)},j=function(r,w){var z=w.parentNode;if(z)z.lastChild==w?z.appendChild(r):z.insertBefore(r,w.nextSibling)};b.place=function(r,w,z){w=a(w);if(typeof r=="string")r=/^\s*</.test(r)?b._toDom(r,w.ownerDocument):a(r);if(typeof z=="number"){var J=w.childNodes;!J.length||J.length<=z?w.appendChild(r):
g(r,J[z<0?0:z])}else switch(z){case "before":g(r,w);break;case "after":j(r,w);break;case "replace":w.parentNode.replaceChild(r,w);break;case "only":b.empty(w);w.appendChild(r);break;case "first":if(w.firstChild){g(r,w.firstChild);break}default:w.appendChild(r)}return r};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var h;h=b.isWebKit?function(r){var w;if(r.nodeType==1){var z=r.ownerDocument.defaultView;w=z.getComputedStyle(r,null);if(!w&&
r.style){r.style.display="";w=z.getComputedStyle(r,null)}}return w||{}}:b.isIE?function(r){return r.nodeType==1?r.currentStyle:{}}:function(r){return r.nodeType==1?r.ownerDocument.defaultView.getComputedStyle(r,null):{}};b.getComputedStyle=h;b._toPixelValue=b.isIE?function(r,w){if(!w)return 0;if(w=="medium")return 4;if(w.slice&&w.slice(-2)=="px")return parseFloat(w);with(r){r=style.left;var z=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=w;w=style.pixelLeft}catch(J){w=0}style.left=
r;runtimeStyle.left=z}return w}:function(r,w){return parseFloat(w)||0};var f=b._toPixelValue,i=function(r,w){try{return r.filters.item("DXImageTransform.Microsoft.Alpha")}catch(z){return w?{}:null}};b._getOpacity=b.isIE<9?function(r){try{return i(r).Opacity/100}catch(w){return 1}}:function(r){return h(r).opacity};b._setOpacity=b.isIE<9?function(r,w){var z=w*100,J=w==1;r.style.zoom=J?"":1;if(i(r))i(r,1).Opacity=z;else{if(J)return w;r.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+
z+")"}i(r,1).Enabled=!J;r.nodeName.toLowerCase()=="tr"&&b.query("> td",r).forEach(function(N){b._setOpacity(N,w)});return w}:function(r,w){return r.style.opacity=w};var k={left:true,top:true},l=/margin|padding|width|height|max|min|offset/,q=function(r,w,z){w=w.toLowerCase();if(b.isIE){if(z=="auto"){if(w=="height")return r.offsetHeight;if(w=="width")return r.offsetWidth}if(w=="fontweight")switch(z){case 700:return"bold";case 400:default:return"normal"}}w in k||(k[w]=l.test(w));return k[w]?f(r,z):z},
m=b.isIE?"styleFloat":"cssFloat",n={cssFloat:m,styleFloat:m,"float":m};b.style=function(r,w,z){var J=a(r),N=arguments.length,R=w=="opacity";w=n[w]||w;if(N==3)return R?b._setOpacity(J,z):(J.style[w]=z);if(N==2&&R)return b._getOpacity(J);R=h(J);if(N==2&&typeof w!="string"){for(var X in w)b.style(r,X,w[X]);return R}return N==1?R:q(J,w,R[w]||J.style[w])};b._getPadExtents=function(r,w){w=w||h(r);var z=f(r,w.paddingLeft),J=f(r,w.paddingTop);return{l:z,t:J,w:z+f(r,w.paddingRight),h:J+f(r,w.paddingBottom)}};
b._getBorderExtents=function(r,w){w=w||h(r);var z=w.borderLeftStyle!="none"?f(r,w.borderLeftWidth):0,J=w.borderTopStyle!="none"?f(r,w.borderTopWidth):0;return{l:z,t:J,w:z+(w.borderRightStyle!="none"?f(r,w.borderRightWidth):0),h:J+(w.borderBottomStyle!="none"?f(r,w.borderBottomWidth):0)}};b._getPadBorderExtents=function(r,w){var z=w||h(r);w=b._getPadExtents(r,z);r=b._getBorderExtents(r,z);return{l:w.l+r.l,t:w.t+r.t,w:w.w+r.w,h:w.h+r.h}};b._getMarginExtents=function(r,w){w=w||h(r);var z=f(r,w.marginLeft),
J=f(r,w.marginTop),N=f(r,w.marginRight);r=f(r,w.marginBottom);if(b.isWebKit&&w.position!="absolute")N=z;return{l:z,t:J,w:z+N,h:J+r}};b._getMarginBox=function(r,w){var z=w||h(r);w=b._getMarginExtents(r,z);var J=r.offsetLeft-w.l,N=r.offsetTop-w.t,R=r.parentNode;if(b.isMoz){var X=parseFloat(z.left);z=parseFloat(z.top);if(!isNaN(X)&&!isNaN(z)){J=X;N=z}else if(R&&R.style){X=h(R);if(X.overflow!="visible"){R=b._getBorderExtents(R,X);J+=R.l;N+=R.t}}}else if(b.isOpera||b.isIE>7&&!b.isQuirks)if(R){R=b._getBorderExtents(R);
J-=R.l;N-=R.t}return{l:J,t:N,w:r.offsetWidth+w.w,h:r.offsetHeight+w.h}};b._getMarginSize=function(r,w){r=a(r);w=b._getMarginExtents(r,w||h(r));r=r.getBoundingClientRect();return{w:r.right-r.left+w.w,h:r.bottom-r.top+w.h}};b._getContentBox=function(r,w){var z=w||h(r);w=b._getPadExtents(r,z);z=b._getBorderExtents(r,z);var J=r.clientWidth;if(J){r=r.clientHeight;z.w=z.h=0}else{J=r.offsetWidth;r=r.offsetHeight}if(b.isOpera){w.l+=z.l;w.t+=z.t}return{l:w.l,t:w.t,w:J-w.w-z.w,h:r-w.h-z.h}};b._getBorderBox=
function(r,w){var z=w||h(r);w=b._getPadExtents(r,z);r=b._getContentBox(r,z);return{l:r.l-w.l,t:r.t-w.t,w:r.w+w.w,h:r.h+w.h}};b._setBox=function(r,w,z,J,N,R){R=R||"px";r=r.style;if(!isNaN(w))r.left=w+R;if(!isNaN(z))r.top=z+R;if(J>=0)r.width=J+R;if(N>=0)r.height=N+R};b._isButtonTag=function(r){return r.tagName=="BUTTON"||r.tagName=="INPUT"&&(r.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(r){var w=r.tagName;return b.boxModel=="border-box"||w=="TABLE"||b._isButtonTag(r)};
b._setContentSize=function(r,w,z,J){if(b._usesBorderBox(r)){J=b._getPadBorderExtents(r,J);if(w>=0)w+=J.w;if(z>=0)z+=J.h}b._setBox(r,NaN,NaN,w,z)};b._setMarginBox=function(r,w,z,J,N,R){var X=R||h(r);R=b._usesBorderBox(r)?o:b._getPadBorderExtents(r,X);if(b.isWebKit)if(b._isButtonTag(r)){var ea=r.style;if(J>=0&&!ea.width)ea.width="4px";if(N>=0&&!ea.height)ea.height="4px"}X=b._getMarginExtents(r,X);if(J>=0)J=Math.max(J-R.w-X.w,0);if(N>=0)N=Math.max(N-R.h-X.h,0);b._setBox(r,w,z,J,N)};var o={l:0,t:0,w:0,
h:0};b.marginBox=function(r,w){r=a(r);var z=h(r);return!w?b._getMarginBox(r,z):b._setMarginBox(r,w.l,w.t,w.w,w.h,z)};b.contentBox=function(r,w){r=a(r);var z=h(r);return!w?b._getContentBox(r,z):b._setContentSize(r,w.w,w.h,z)};b._docScroll=function(){var r=b.global;return"pageXOffset"in r?{x:r.pageXOffset,y:r.pageYOffset}:(r=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(r.scrollLeft||0),y:r.scrollTop||0})};b._isBodyLtr=function(){return"_bodyLtr"in b?b._bodyLtr:(b._bodyLtr=(b.body().dir||
b.doc.documentElement.dir||"ltr").toLowerCase()=="ltr")};b._getIeDocumentElementOffset=function(){var r=b.doc.documentElement;if(b.isIE<8){var w=r.getBoundingClientRect(),z=w.left;w=w.top;if(b.isIE<7){z+=r.clientLeft;w+=r.clientTop}return{x:z<0?0:z,y:w<0?0:w}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(r){var w=b.isIE;if(w&&!b._isBodyLtr()){var z=b.isQuirks,J=z?b.doc.body:b.doc.documentElement;if(w==6&&!z&&b.global.frameElement&&J.scrollHeight>J.clientHeight)r+=J.clientLeft;return w<8||
z?r+J.clientWidth-J.scrollWidth:-r}return r};b._abs=b.position=function(r,w){r=a(r);var z=b.body(),J=z.parentNode;r=r.getBoundingClientRect();r={x:r.left,y:r.top,w:r.right-r.left,h:r.bottom-r.top};if(b.isIE){J=b._getIeDocumentElementOffset();r.x-=J.x+(b.isQuirks?z.clientLeft+z.offsetLeft:0);r.y-=J.y+(b.isQuirks?z.clientTop+z.offsetTop:0)}else if(b.isFF==3){z=h(J);r.x-=f(J,z.marginLeft)+f(J,z.borderLeftWidth);r.y-=f(J,z.marginTop)+f(J,z.borderTopWidth)}if(w){w=b._docScroll();r.x+=w.x;r.y+=w.y}return r};
b.coords=function(r,w){r=a(r);var z=h(r);z=b._getMarginBox(r,z);w=b.position(r,w);z.x=w.x;z.y=w.y;return z};var u={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},p={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},s={innerHTML:1,className:1,htmlFor:b.isIE,value:1},v=function(r){return p[r.toLowerCase()]||r},t=function(r,w){return(r=r.getAttributeNode&&r.getAttributeNode(w))&&
r.specified};b.hasAttr=function(r,w){var z=w.toLowerCase();return s[u[z]||w]||t(a(r),p[z]||w)};var y={},C=0,D=b._scopeName+"attrid",A={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(r,w,z){r=a(r);var J=arguments.length;if(J==2&&typeof w!="string"){for(var N in w)b.attr(r,N,w[N]);return r}var R=w.toLowerCase();N=u[R]||w;var X=s[N];R=p[R]||w;if(J==3){if(N=="style"&&typeof z!="string")b.style(r,z);else if(N=="innerHTML")if(b.isIE&&r.tagName.toLowerCase()in A){b.empty(r);
r.appendChild(b._toDom(z,r.ownerDocument))}else r[N]=z;else if(b.isFunction(z)){J=b.attr(r,D);if(!J){J=C++;b.attr(r,D,J)}y[J]||(y[J]={});if(X=y[J][N])b.disconnect(X);else try{delete r[N]}catch(ea){}y[J][N]=b.connect(r,N,z)}else if(X||typeof z=="boolean")r[N]=z;else r.setAttribute(R,z);return r}z=r[N];if(X&&typeof z!="undefined")return z;if(N!="href"&&(typeof z=="boolean"||b.isFunction(z)))return z;return t(r,R)?r.getAttribute(R):null};b.removeAttr=function(r,w){a(r).removeAttribute(v(w))};b.getNodeProp=
function(r,w){r=a(r);var z=w.toLowerCase(),J=u[z]||w;if(J in r&&J!="href")return r[J];w=p[z]||w;return t(r,w)?r.getAttribute(w):null};b.create=function(r,w,z,J){var N=b.doc;if(z){z=a(z);N=z.ownerDocument}if(typeof r=="string")r=N.createElement(r);w&&b.attr(r,w);z&&b.place(r,z,J);return r};b.empty=b.isIE?function(r){r=a(r);for(var w;w=r.lastChild;)b.destroy(w)}:function(r){a(r).innerHTML=""};var E={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"]},F=/<\s*([\w\:]+)/,K={},G=0,M="__"+b._scopeName+"ToDomId";for(var L in E)if(E.hasOwnProperty(L)){var P=E[L];P.pre=L=="option"?'<select multiple="multiple">':"<"+P.join("><")+">";P.post="</"+P.reverse().join("></")+">"}b._toDom=function(r,w){w=w||b.doc;var z=w[M];if(!z){w[M]=z=++G+"";K[z]=w.createElement("div")}r+="";var J=r.match(F),N=J?J[1].toLowerCase():"";z=K[z];if(J&&E[N]){J=
E[N];z.innerHTML=J.pre+r+J.post;for(r=J.length;r;--r)z=z.firstChild}else z.innerHTML=r;if(z.childNodes.length==1)return z.removeChild(z.firstChild);for(r=w.createDocumentFragment();w=z.firstChild;)r.appendChild(w);return r};var Q="className";b.hasClass=function(r,w){return(" "+a(r)[Q]+" ").indexOf(" "+w+" ")>=0};var $=/\s+/,da=[""],ga={},ka=function(r){if(typeof r=="string"||r instanceof String)if(r.indexOf(" ")<0){da[0]=r;return da}else return r.split($);return r||""};b.addClass=function(r,w){r=
a(r);w=ka(w);var z=r[Q],J;z=z?" "+z+" ":" ";J=z.length;for(var N=0,R=w.length,X;N<R;++N)if((X=w[N])&&z.indexOf(" "+X+" ")<0)z+=X+" ";if(J<z.length)r[Q]=z.substr(1,z.length-2)};b.removeClass=function(r,w){r=a(r);var z;if(w!==undefined){w=ka(w);z=" "+r[Q]+" ";for(var J=0,N=w.length;J<N;++J)z=z.replace(" "+w[J]+" "," ");z=b.trim(z)}else z="";if(r[Q]!=z)r[Q]=z};b.replaceClass=function(r,w,z){r=a(r);ga.className=r.className;b.removeClass(ga,z);b.addClass(ga,w);if(r.className!==ga.className)r.className=
ga.className};b.toggleClass=function(r,w,z){if(z===undefined)z=!b.hasClass(r,w);b[z?"addClass":"removeClass"](r,w)}})();return b});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(b){(function(){var d=Array.prototype,a=d.slice,c=d.concat,e=function(m,n,o){m.sort||(m=a.call(m,0));o=o||this._NodeListCtor||b._NodeListCtor;m.constructor=o;b._mixin(m,o.prototype);m._NodeListCtor=o;return n?m._stash(n):m},g=function(m,n,o){n=[0].concat(a.call(n,0));o=o||b.global;return function(u){n[0]=u;return m.apply(o,n)}},j=function(m,n){return function(){this.forEach(g(m,
arguments,n));return this}},h=function(m,n){return function(){return this.map(g(m,arguments,n))}},f=function(m,n,o){return function(){var u=arguments,p=g(m,u,o);if(n.call(o||b.global,u))return this.map(p);this.forEach(p);return this}},i=function(m){return m.length==1&&typeof m[0]=="string"},k=function(m){var n=m.parentNode;n&&n.removeChild(m)};b.NodeList=function(){return e(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,q=l.prototype;l._wrap=q._wrap=e;l._adaptAsMap=h;l._adaptAsForEach=
j;l._adaptAsFilter=function(m,n){return function(){return this.filter(g(m,arguments,n))}};l._adaptWithCondition=f;b.forEach(["slice","splice"],function(m){var n=d[m];q[m]=function(){return this._wrap(n.apply(this,arguments),m=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(m){var n=b[m];q[m]=function(){return n.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(m){q[m]=f(b[m],i)});b.forEach(["connect","addClass","removeClass","replaceClass",
"toggleClass","empty","removeAttr"],function(m){q[m]=j(b[m])});b.extend(b.NodeList,{_normalize:function(m,n){var o=m.parse===true?true:false;if(typeof m.template=="string"){var u=m.templateFunc||b.string&&b.string.substitute;m=u?u(m.template,m):m}u=typeof m;if(u=="string"||u=="number"){m=b._toDom(m,n&&n.ownerDocument);m=m.nodeType==11?b._toArray(m.childNodes):[m]}else if(b.isArrayLike(m))b.isArray(m)||(m=b._toArray(m));else m=[m];if(o)m._runParse=true;return m},_cloneNode:function(m){return m.cloneNode(true)},
_place:function(m,n,o,u){if(!(n.nodeType!=1&&o=="only")){n=n;for(var p,s=m.length,v=s-1;v>=0;v--){var t=u?this._cloneNode(m[v]):m[v];if(m._runParse&&b.parser&&b.parser.parse){p||(p=n.ownerDocument.createElement("div"));p.appendChild(t);b.parser.parse(p);for(t=p.firstChild;p.firstChild;)p.removeChild(p.firstChild)}v==s-1?b.place(t,n,o):n.parentNode.insertBefore(t,n);n=t}}},_stash:function(m){this._parent=m;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(){var m=
b.isArray(this)?this:a.call(this,0),n=b.map(arguments,function(o){return o&&!b.isArray(o)&&(typeof NodeList!="undefined"&&o.constructor===NodeList||o.constructor===this._NodeListCtor)?a.call(o,0):o});return this._wrap(c.apply(m,n),this)},map:function(m,n){return this._wrap(b.map(this,m,n),this)},forEach:function(m,n){b.forEach(this,m,n);return this},coords:h(b.coords),position:h(b.position),place:function(m,n){var o=b.query(m)[0];return this.forEach(function(u){b.place(u,o,n)})},orphan:function(m){return(m?
b._filterQueryResult(this,m):this).forEach(k)},adopt:function(m,n){return b.query(m).place(this[0],n)._stash(this)},query:function(m){if(!m)return this;var n=this.map(function(o){return b.query(m,o).filter(function(u){return u!==undefined})});return this._wrap(c.apply([],n),this)},filter:function(m){var n=arguments,o=this,u=0;if(typeof m=="string"){o=b._filterQueryResult(this,n[0]);if(n.length==1)return o._stash(this);u=1}return this._wrap(b.filter(o,n[u],n[u+1]),this)},addContent:function(m,n){m=
this._normalize(m,this[0]);for(var o=0,u;u=this[o];o++)this._place(m,u,n,o>0);return this},instantiate:function(m,n){var o=b.isFunction(m)?m:b.getObject(m);n=n||{};return this.forEach(function(u){new o(n,u)})},at:function(){var m=new this._NodeListCtor;b.forEach(arguments,function(n){if(n<0)n=this.length+n;this[n]&&m.push(this[n])},this);return m._stash(this)}});l.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove",
"mouseout","mouseover","mouseup","submit"];b.forEach(l.events,function(m){var n="on"+m;q[n]=function(o,u){return this.connect(n,o,u)}})})();return b.NodeList});
(function(){var b=function(a){var c=a.trim,e=a.forEach,g=a._NodeListCtor=a.NodeList,j=function(){return a.doc},h=(a.isWebKit||a.isMozilla)&&j().compatMode=="BackCompat",f=j().firstChild.children?"children":"childNodes",i=false,k=function(){return true},l=function(x){x+=">~+".indexOf(x.slice(-1))>=0?" * ":" ";for(var B=function(ma,na){return c(x.slice(ma,na))},H=[],I=-1,O=-1,T=-1,U=-1,S=-1,V=-1,Z=-1,ba="",aa="",ha,Y=0,oa=x.length,W=null,ca=null,pa=function(){if(Z>=0){var ma=Z==Y?null:B(Z,Y);W[">~+".indexOf(ma)<
0?"tag":"oper"]=ma;Z=-1}},qa=function(){if(V>=0){W.id=B(V,Y).replace(/\\/g,"");V=-1}},ra=function(){if(S>=0){W.classes.push(B(S+1,Y).replace(/\\/g,""));S=-1}},la=function(){qa();pa();ra()},sa=function(){la();U>=0&&W.pseudos.push({name:B(U+1,Y)});W.loops=W.pseudos.length||W.attrs.length||W.classes.length;W.oquery=W.query=B(ha,Y);W.otag=W.tag=W.oper?null:W.tag||"*";if(W.tag)W.tag=W.tag.toUpperCase();if(H.length&&H[H.length-1].oper){W.infixOper=H.pop();W.query=W.infixOper.query+" "+W.query}H.push(W);
W=null};ba=aa,aa=x.charAt(Y),Y<oa;Y++)if(ba!="\\"){if(!W){ha=Y;W={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}};Z=Y}if(I>=0)if(aa=="]"){if(ca.attr)ca.matchFor=B(T||I+1,Y);else ca.attr=B(I+1,Y);if(I=ca.matchFor)if(I.charAt(0)=='"'||I.charAt(0)=="'")ca.matchFor=I.slice(1,-1);W.attrs.push(ca);ca=null;I=T=-1}else{if(aa=="="){T="|~^$*".indexOf(ba)>=0?ba:"";ca.type=T+aa;ca.attr=B(I+1,Y-T.length);T=Y+1}}else if(O>=0){if(aa==")"){if(U>=
0)ca.value=B(O+1,Y);U=O=-1}}else if(aa=="#"){la();V=Y+1}else if(aa=="."){la();S=Y}else if(aa==":"){la();U=Y}else if(aa=="["){la();I=Y;ca={}}else if(aa=="("){if(U>=0){ca={name:B(U+1,Y),value:null};W.pseudos.push(ca)}O=Y}else aa==" "&&ba!=aa&&sa()}return H},q=function(x,B){if(!x)return B;if(!B)return x;return function(){return x.apply(window,arguments)&&B.apply(window,arguments)}},m=function(x,B){B=B||[];x&&B.push(x);return B},n=function(x){return 1==x.nodeType},o=function(x,B){if(!x)return"";if(B==
"class")return x.className||"";if(B=="for")return x.htmlFor||"";if(B=="style")return x.style.cssText||"";return(i?x.getAttribute(B):x.getAttribute(B,2))||""},u={"*=":function(x,B){return function(H){return o(H,x).indexOf(B)>=0}},"^=":function(x,B){return function(H){return o(H,x).indexOf(B)==0}},"$=":function(x,B){return function(H){H=" "+o(H,x);return H.lastIndexOf(B)==H.length-B.length}},"~=":function(x,B){var H=" "+B+" ";return function(I){return(" "+o(I,x)+" ").indexOf(H)>=0}},"|=":function(x,
B){var H=" "+B+"-";return function(I){I=" "+o(I,x);return I==B||I.indexOf(H)==0}},"=":function(x,B){return function(H){return o(H,x)==B}}},p=typeof j().firstChild.nextElementSibling=="undefined",s=!p?"nextElementSibling":"nextSibling",v=!p?"previousElementSibling":"previousSibling",t=p?n:k,y=function(x){for(;x=x[v];)if(t(x))return false;return true},C=function(x){for(;x=x[s];)if(t(x))return false;return true},D=function(x){var B=x.parentNode,H=0,I=B[f],O=x._i||-1,T=B._l||-1;if(!I)return-1;I=I.length;
if(T==I&&O>=0&&T>=0)return O;B._l=I;O=-1;for(B=B.firstElementChild||B.firstChild;B;B=B[s])if(t(B)){B._i=++H;if(x===B)O=H}return O},A=function(x){return!(D(x)%2)},E=function(x){return D(x)%2},F={checked:function(){return function(x){return!!("checked"in x?x.checked:x.selected)}},"first-child":function(){return y},"last-child":function(){return C},"only-child":function(){return function(x){if(!y(x))return false;if(!C(x))return false;return true}},empty:function(){return function(x){var B=x.childNodes;
for(x=x.childNodes.length-1;x>=0;x--){var H=B[x].nodeType;if(H===1||H==3)return false}return true}},contains:function(x,B){x=B.charAt(0);if(x=='"'||x=="'")B=B.slice(1,-1);return function(H){return H.innerHTML.indexOf(B)>=0}},not:function(x,B){x=l(B)[0];B={el:1};if(x.tag!="*")B.tag=1;if(!x.classes.length)B.classes=1;var H=G(x,B);return function(I){return!H(I)}},"nth-child":function(x,B){x=parseInt;if(B=="odd")return E;else if(B=="even")return A;if(B.indexOf("n")!=-1){B=B.split("n",2);var H=B[0]?B[0]==
"-"?-1:x(B[0]):1,I=B[1]?x(B[1]):0,O=0,T=-1;if(H>0)if(I<0)I=I%H&&H+I%H;else{if(I>0){if(I>=H)O=I-I%H;I%=H}}else if(H<0){H*=-1;if(I>0){T=I;I%=H}}if(H>0)return function(S){S=D(S);return S>=O&&(T<0||S<=T)&&S%H==I};else B=I}var U=x(B);return function(S){return D(S)==U}}},K=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(x){var B=x.toLowerCase();if(B=="class")x="className";return function(H){return i?H.getAttribute(x):H[x]||H[B]}}:function(x){return function(B){return B&&B.getAttribute&&B.hasAttribute(x)}},
G=function(x,B){if(!x)return k;B=B||{};var H=null;"el"in B||(H=q(H,n));if(!("tag"in B))if(x.tag!="*")H=q(H,function(I){return I&&I.tagName==x.getTag()});"classes"in B||e(x.classes,function(I,O){var T=new RegExp("(?:^|\\s)"+I+"(?:\\s|$)");H=q(H,function(U){return T.test(U.className)});H.count=O});"pseudos"in B||e(x.pseudos,function(I){var O=I.name;if(F[O])H=q(H,F[O](O,I.value))});"attrs"in B||e(x.attrs,function(I){var O,T=I.attr;if(I.type&&u[I.type])O=u[I.type](T,I.matchFor);else if(T.length)O=K(T);
if(O)H=q(H,O)});if(!("id"in B))if(x.id)H=q(H,function(I){return!!I&&I.id==x.id});H||"default"in B||(H=k);return H},M=function(x){return function(B,H,I){for(;B=B[s];)if(!(p&&!n(B))){if((!I||ia(B,I))&&x(B))H.push(B);break}return H}},L=function(x){return function(B,H,I){for(B=B[s];B;){if(t(B)){if(I&&!ia(B,I))break;x(B)&&H.push(B)}B=B[s]}return H}},P=function(x){x=x||k;return function(B,H,I){for(var O=0,T=B[f];B=T[O++];)if(t(B)&&(!I||ia(B,I))&&x(B,O))H.push(B);return H}},Q=function(x,B){for(x=x.parentNode;x;){if(x==
B)break;x=x.parentNode}return!!x},$={},da=function(x){var B=$[x.query];if(B)return B;var H=x.infixOper;H=H?H.oper:"";var I=G(x,{el:1}),O="*"==x.tag,T=j().getElementsByClassName;if(H){T={el:1};if(O)T.tag=1;I=G(x,T);if("+"==H)B=M(I);else if("~"==H)B=L(I);else if(">"==H)B=P(I)}else if(x.id){I=!x.loops&&O?k:G(x,{el:1,id:1});B=function(S,V){var Z=a.byId(x.id,S.ownerDocument||S);if(Z&&I(Z))if(9==S.nodeType)return m(Z,V);else if(Q(Z,S))return m(Z,V)}}else if(T&&/\{\s*\[native code\]\s*\}/.test(String(T))&&
x.classes.length&&!h){I=G(x,{el:1,classes:1,id:1});var U=x.classes.join(" ");B=function(S,V,Z){V=m(0,V);for(var ba,aa=0,ha=S.getElementsByClassName(U);ba=ha[aa++];)I(ba,S)&&ia(ba,Z)&&V.push(ba);return V}}else if(!O&&!x.loops)B=function(S,V,Z){V=m(0,V);for(var ba=0,aa=S.getElementsByTagName(x.getTag());S=aa[ba++];)ia(S,Z)&&V.push(S);return V};else{I=G(x,{el:1,tag:1,id:1});B=function(S,V,Z){V=m(0,V);for(var ba,aa=0,ha=S.getElementsByTagName(x.getTag());ba=ha[aa++];)I(ba,S)&&ia(ba,Z)&&V.push(ba);return V}}return $[x.query]=
B},ga=function(x,B){x=m(x);for(var H,I,O=B.length,T,U,S=0;S<O;S++){U=[];H=B[S];I=x.length-1;if(I>0){T={};U.nozip=true}I=da(H);for(var V=0;H=x[V];V++)I(H,U,T);if(!U.length)break;x=U}return U},ka={},r={},w=function(x){var B=l(c(x));if(B.length==1){var H=da(B[0]);return function(I){if(I=H(I,new g))I.nozip=true;return I}}return function(I){return ga(I,B)}},z=navigator.userAgent;z=a.isWebKit&&z.indexOf("WebKit/")>0&&parseFloat(z.split("WebKit/")[1])>528;var J=a.isIE?"commentStrip":"nozip",N=!!j().querySelectorAll&&
(!a.isSafari||a.isSafari>3.1||z),R=/n\+\d|([^ ])?([>~+])([^ =])?/g,X=function(x,B,H,I){return H?(B?B+" ":"")+H+(I?" "+I:""):x},ea=function(x,B){x=x.replace(R,X);if(N){var H=r[x];if(H&&!B)return H}if(H=ka[x])return H;H=x.charAt(0);var I=-1==x.indexOf(" ");if(x.indexOf("#")>=0&&I)B=true;if(N&&!B&&">~+".indexOf(H)==-1&&(!a.isIE||x.indexOf(":")==-1)&&!(h&&x.indexOf(".")>=0)&&x.indexOf(":contains")==-1&&x.indexOf(":checked")==-1&&x.indexOf("|=")==-1){var O=">~+".indexOf(x.charAt(x.length-1))>=0?x+" *":
x;return r[x]=function(U){try{if(!(9==U.nodeType||I))throw"";var S=U.querySelectorAll(O);S[J]=true;return S}catch(V){return ea(x,true)(U)}}}else{var T=x.split(/\s*,\s*/);return ka[x]=T.length<2?w(x):function(U){for(var S=0,V=[],Z;Z=T[S++];)V=V.concat(w(Z)(U));return V}}},fa=0,ta=a.isIE?function(x){return i?x.getAttribute("_uid")||x.setAttribute("_uid",++fa)||fa:x.uniqueID}:function(x){return x._uid||(x._uid=++fa)},ia=function(x,B){if(!B)return 1;x=ta(x);if(!B[x])return B[x]=1;return 0},ja="_zipIdx",
ua=function(x){if(x&&x.nozip)return g._wrap?g._wrap(x):x;var B=new g;if(!x||!x.length)return B;x[0]&&B.push(x[0]);if(x.length<2)return B;fa++;if(a.isIE&&i){var H=fa+"";x[0].setAttribute(ja,H);for(var I=1,O;O=x[I];I++){x[I].getAttribute(ja)!=H&&B.push(O);O.setAttribute(ja,H)}}else if(a.isIE&&x.commentStrip)try{for(I=1;O=x[I];I++)n(O)&&B.push(O)}catch(T){}else{if(x[0])x[0][ja]=fa;for(I=1;O=x[I];I++){x[I][ja]!=fa&&B.push(O);O[ja]=fa}}return B};a.query=function(x,B){g=a._NodeListCtor;if(!x)return new g;
if(x.constructor==g)return x;if(typeof x!="string")return new g(x);if(typeof B=="string"){B=a.byId(B);if(!B)return new g}B=B||j();var H=B.ownerDocument||B.documentElement;i=B.contentType&&B.contentType=="application/xml"||a.isOpera&&(B.doctype||H.toString()=="[object XMLDocument]")||!!H&&(a.isIE?H.xml:B.xmlVersion||H.xmlVersion);if((x=ea(x)(B))&&x.nozip&&!g._wrap)return x;return ua(x)};a.query.pseudos=F;a._filterQueryResult=function(x,B,H){var I=new a._NodeListCtor,O=l(B);O=O.length==1&&!/[^\w#\.]/.test(B)?
G(O[0]):function(S){return dojo.query(B,H).indexOf(S)!=-1};for(var T=0,U;U=x[T];T++)O(U)&&I.push(U);return I}},d=function(){acme={trim:function(g){g=g.replace(/^\s+/,"");for(var j=g.length-1;j>=0;j--)if(/\S/.test(g.charAt(j))){g=g.substring(0,j+1);break}return g},forEach:function(g,j,h){if(g&&g.length)for(var f=0,i=g.length;f<i;++f)j.call(h||window,g[f],f,g)},byId:function(g,j){return typeof g=="string"?(j||document).getElementById(g):g},doc:document,NodeList:Array};var a=navigator,c=a.userAgent;
a=a.appVersion;var e=parseFloat(a);acme.isOpera=c.indexOf("Opera")>=0?e:undefined;acme.isKhtml=a.indexOf("Konqueror")>=0?e:undefined;acme.isWebKit=parseFloat(c.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(c.split("Chrome/")[1])||undefined;if((c=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome){acme.isSafari=parseFloat(a.split("Version/")[1]);if(!acme.isSafari||parseFloat(a.substr(c+7))<=419.3)acme.isSafari=2}if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||
undefined;Array._wrap=function(g){return g};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel","dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(a){b(this.queryPortability||this.acme||a)});if(typeof define!="function")if(this.dojo){dojo.provide("dojo._base.query");dojo.require("dojo._base.NodeList");dojo.require("dojo._base.lang");b(this.queryPortability||this.acme||dojo)}else b(this.queryPortability||this.acme||d())})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){function d(p,s,v){if(v!==null){var t=p[s];if(typeof t=="string")p[s]=[t,v];else if(a.isArray(t))t.push(v);else p[s]=v}}var a=b,c=a.config;b.fieldToObject=function(p){var s=null;if(p=a.byId(p)){var v=p.name,t=(p.type||"").toLowerCase();if(v&&t&&!p.disabled)if(t=="radio"||t=="checkbox"){if(p.checked)s=p.value}else if(p.multiple){s=[];a.query("option",p).forEach(function(y){y.selected&&
s.push(y.value)})}else s=p.value}return s};b.formToObject=function(p){var s={};a.forEach(b.byId(p).elements,function(v){var t=v.name,y=(v.type||"").toLowerCase();if(t&&y&&"file|submit|image|reset|button|".indexOf(y)==-1&&!v.disabled){d(s,t,a.fieldToObject(v));if(y=="image")s[t+".x"]=s[t+".y"]=s[t].x=s[t].y=0}});return s};b.objectToQuery=function(p){var s=encodeURIComponent,v=[],t={};for(var y in p){var C=p[y];if(C!=t[y]){var D=s(y)+"=";if(a.isArray(C))for(var A=0;A<C.length;A++)v.push(D+s(C[A]));
else v.push(D+s(C))}}return v.join("&")};b.formToQuery=function(p){return a.objectToQuery(a.formToObject(p))};b.formToJson=function(p,s){return a.toJson(a.formToObject(p),s)};b.queryToObject=function(p){var s={};p=p.split("&");var v=decodeURIComponent;a.forEach(p,function(t){if(t.length){var y=t.split("=");t=v(y.shift());y=v(y.join("="));if(typeof s[t]=="string")s[t]=[s[t]];if(a.isArray(s[t]))s[t].push(y);else s[t]=y}});return s};b._blockAsync=false;var e=a._contentHandlers=b.contentHandlers={text:function(p){return p.responseText},
json:function(p){return a.fromJson(p.responseText||null)},"json-comment-filtered":function(p){b.config.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");p=p.responseText;var s=p.indexOf("/*"),v=p.lastIndexOf("*/");if(s==-1||v==-1)throw new Error("JSON was not comment filtered");
return a.fromJson(p.substring(s+2,v))},javascript:function(p){return a.eval(p.responseText)},xml:function(p){var s=p.responseXML;if(a.isIE&&(!s||!s.documentElement)){var v=function(t){return"MSXML"+t+".DOMDocument"};v=["Microsoft.XMLDOM",v(6),v(4),v(3),v(2)];a.some(v,function(t){try{var y=new ActiveXObject(t);y.async=false;y.loadXML(p.responseText);s=y}catch(C){return false}return true})}return s},"json-comment-optional":function(p){return p.responseText&&/^[^{\[]*\/\*/.test(p.responseText)?e["json-comment-filtered"](p):
e.json(p)}};b._ioSetArgs=function(p,s,v,t){var y={args:p,url:p.url},C=null;if(p.form){C=a.byId(p.form);var D=C.getAttributeNode("action");y.url=y.url||(D?D.value:null);C=a.formToObject(C)}D=[{}];C&&D.push(C);p.content&&D.push(p.content);p.preventCache&&D.push({"dojo.preventCache":(new Date).valueOf()});y.query=a.objectToQuery(a.mixin.apply(null,D));y.handleAs=p.handleAs||"text";var A=new a.Deferred(s);A.addCallbacks(v,function(G){return t(G,A)});var E=p.load;E&&a.isFunction(E)&&A.addCallback(function(G){return E.call(p,
G,y)});var F=p.error;F&&a.isFunction(F)&&A.addErrback(function(G){return F.call(p,G,y)});var K=p.handle;K&&a.isFunction(K)&&A.addBoth(function(G){return K.call(p,G,y)});if(c.ioPublish&&a.publish&&y.args.ioPublish!==false){A.addCallbacks(function(G){a.publish("/dojo/io/load",[A,G]);return G},function(G){a.publish("/dojo/io/error",[A,G]);return G});A.addBoth(function(G){a.publish("/dojo/io/done",[A,G]);return G})}A.ioArgs=y;return A};var g=function(p){p.canceled=true;var s=p.ioArgs.xhr,v=typeof s.abort;
if(v=="function"||v=="object"||v=="unknown")s.abort();p=p.ioArgs.error;if(!p){p=new Error("xhr cancelled");p.dojoType="cancel"}return p},j=function(p){p=e[p.ioArgs.handleAs](p.ioArgs.xhr);return p===undefined?null:p},h=function(p,s){s.ioArgs.args.failOk||console.error(p);return p},f=null,i=[],k=0,l=function(p){if(k<=0){k=0;if(c.ioPublish&&a.publish&&(!p||p&&p.ioArgs.args.ioPublish!==false))a.publish("/dojo/io/stop")}},q=function(){var p=(new Date).getTime();if(!a._blockAsync)for(var s=0,v;s<i.length&&
(v=i[s]);s++){var t=v.dfd,y=function(){if(!t||t.canceled||!v.validCheck(t)){i.splice(s--,1);k-=1}else if(v.ioCheck(t)){i.splice(s--,1);v.resHandle(t);k-=1}else if(t.startTime)if(t.startTime+(t.ioArgs.args.timeout||0)<p){i.splice(s--,1);var D=new Error("timeout exceeded");D.dojoType="timeout";t.errback(D);t.cancel();k-=1}};if(b.config.debugAtAllCosts)y.call(this);else try{y.call(this)}catch(C){t.errback(C)}}l(t);if(!i.length){clearInterval(f);f=null}};b._ioCancelAll=function(){try{a.forEach(i,function(s){try{s.dfd.cancel()}catch(v){}})}catch(p){}};
a.isIE&&a.addOnWindowUnload(a._ioCancelAll);a._ioNotifyStart=function(p){if(c.ioPublish&&a.publish&&p.ioArgs.args.ioPublish!==false){k||a.publish("/dojo/io/start");k+=1;a.publish("/dojo/io/send",[p])}};a._ioWatch=function(p,s,v,t){var y=p.ioArgs.args;if(y.timeout)p.startTime=(new Date).getTime();i.push({dfd:p,validCheck:s,ioCheck:v,resHandle:t});f||(f=setInterval(q,50));y.sync&&q()};var m="application/x-www-form-urlencoded",n=function(p){return p.ioArgs.xhr.readyState},o=function(p){return 4==p.ioArgs.xhr.readyState},
u=function(p){var s=p.ioArgs.xhr;if(a._isDocumentOk(s))p.callback(p);else{var v=new Error("Unable to load "+p.ioArgs.url+" status:"+s.status);v.status=s.status;v.responseText=s.responseText;p.errback(v)}};b._ioAddQueryToUrl=function(p){if(p.query.length){p.url+=(p.url.indexOf("?")==-1?"?":"&")+p.query;p.query=null}};b.xhr=function(p,s,v){var t=a._ioSetArgs(s,g,j,h),y=t.ioArgs,C=y.xhr=a._xhrObj(y.args);if(!C){t.cancel();return t}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&&!v||"POST|PUT".indexOf(p.toUpperCase())==-1)a._ioAddQueryToUrl(y);C.open(p,y.url,s.sync!==true,s.user||undefined,s.password||undefined);if(s.headers)for(var D in s.headers)if(D.toLowerCase()==="content-type"&&!s.contentType)s.contentType=s.headers[D];else s.headers[D]&&C.setRequestHeader(D,s.headers[D]);C.setRequestHeader("Content-Type",s.contentType||m);if(!s.headers||!("X-Requested-With"in s.headers))C.setRequestHeader("X-Requested-With",
"XMLHttpRequest");a._ioNotifyStart(t);if(b.config.debugAtAllCosts)C.send(y.query);else try{C.send(y.query)}catch(A){y.error=A;t.cancel()}a._ioWatch(t,n,o,u);return t};b.xhrGet=function(p){return a.xhr("GET",p)};b.rawXhrPost=b.xhrPost=function(p){return a.xhr("POST",p,true)};b.rawXhrPut=b.xhrPut=function(p){return a.xhr("PUT",p,true)};b.xhrDelete=function(p){return a.xhr("DELETE",p)}})();return b.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(b){(function(){var d=b._mixin;b._Line=function(h,f){this.start=h;this.end=f};b._Line.prototype.getValue=function(h){return(this.end-this.start)*h+this.start};b.Animation=function(h){d(this,h);if(b.isArray(this.curve))this.curve=new b._Line(this.curve[0],this.curve[1])};b._Animation=b.Animation;b.extend(b.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var h=this._percent,f=this.easing;return f?f(h):h},_fire:function(h,f){f=f||[];if(this[h])if(b.config.debugAtAllCosts)this[h].apply(this,f);else try{this[h].apply(this,f)}catch(i){console.error("exception in animation handler for:",h);console.error(i)}return this},play:function(h,f){var i=this;i._delayTimer&&i._clearTimer();if(f){i._stopTimer();i._active=i._paused=false;i._percent=0}else if(i._active&&!i._paused)return i;i._fire("beforeBegin",[i.node]);h=h||i.delay;var k=b.hitch(i,
"_play",f);if(h>0){i._delayTimer=setTimeout(k,h);return i}k();return i},_play:function(){var h=this;h._delayTimer&&h._clearTimer();h._startTime=(new Date).valueOf();if(h._paused)h._startTime-=h.duration*h._percent;h._active=true;h._paused=false;var f=h.curve.getValue(h._getStep());if(!h._percent){if(!h._startRepeatCount)h._startRepeatCount=h.repeat;h._fire("onBegin",[f])}h._fire("onPlay",[f]);h._cycle();return h},pause:function(){var h=this;h._delayTimer&&h._clearTimer();h._stopTimer();if(!h._active)return h;
h._paused=true;h._fire("onPause",[h.curve.getValue(h._getStep())]);return h},gotoPercent:function(h,f){var i=this;i._stopTimer();i._active=i._paused=true;i._percent=h;f&&i.play();return i},stop:function(h){var f=this;f._delayTimer&&f._clearTimer();if(!f._timer)return f;f._stopTimer();if(h)f._percent=1;f._fire("onStop",[f.curve.getValue(f._getStep())]);f._active=f._paused=false;return f},status:function(){if(this._active)return this._paused?"paused":"playing";return"stopped"},_cycle:function(){var h=
this;if(h._active){var f=((new Date).valueOf()-h._startTime)/h.duration;if(f>=1)f=1;h._percent=f;if(h.easing)f=h.easing(f);h._fire("onAnimate",[h.curve.getValue(f)]);if(h._percent<1)h._startTimer();else{h._active=false;if(h.repeat>0){h.repeat--;h.play(null,true)}else if(h.repeat==-1)h.play(null,true);else if(h._startRepeatCount){h.repeat=h._startRepeatCount;h._startRepeatCount=0}h._percent=0;h._fire("onEnd",[h.node]);!h.repeat&&h._stopTimer()}}return h},_clearTimer:function(){clearTimeout(this._delayTimer);
delete this._delayTimer}});var a=0,c=null,e={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer){this._timer=b.connect(e,"run",this,"_cycle");a++}c||(c=setInterval(b.hitch(e,"run"),this.rate))},_stopTimer:function(){if(this._timer){b.disconnect(this._timer);this._timer=null;a--}if(a<=0){clearInterval(c);c=null;a=0}}});var g=b.isIE?function(h){var f=h.style;if(!f.width.length&&b.style(h,"width")=="auto")f.width="auto"}:function(){};b._fade=function(h){h.node=b.byId(h.node);
var f=d({properties:{}},h);h=f.properties.opacity={};h.start=!("start"in f)?function(){return+b.style(f.node,"opacity")||0}:f.start;h.end=f.end;h=b.animateProperty(f);b.connect(h,"beforeBegin",b.partial(g,f.node));return h};b.fadeIn=function(h){return b._fade(d({end:1},h))};b.fadeOut=function(h){return b._fade(d({end:0},h))};b._defaultEasing=function(h){return 0.5+Math.sin((h+1.5)*Math.PI)/2};var j=function(h){this._properties=h;for(var f in h){var i=h[f];if(i.start instanceof b.Color)i.tempColor=
new b.Color}};j.prototype.getValue=function(h){var f={};for(var i in this._properties){var k=this._properties[i],l=k.start;if(l instanceof b.Color)f[i]=b.blendColors(l,k.end,h,k.tempColor).toCss();else b.isArray(l)||(f[i]=(k.end-l)*h+l+(i!="opacity"?k.units||"px":0))}return f};b.animateProperty=function(h){var f=h.node=b.byId(h.node);if(!h.easing)h.easing=b._defaultEasing;h=new b.Animation(h);b.connect(h,"beforeBegin",h,function(){var i={};for(var k in this.properties){if(k=="width"||k=="height")this.node.display=
"block";var l=this.properties[k];if(b.isFunction(l))l=l(f);l=i[k]=d({},b.isObject(l)?l:{end:l});if(b.isFunction(l.start))l.start=l.start(f);if(b.isFunction(l.end))l.end=l.end(f);var q=k.toLowerCase().indexOf("color")>=0,m=function(n,o){var u={height:n.offsetHeight,width:n.offsetWidth}[o];if(u!==undefined)return u;u=b.style(n,o);return o=="opacity"?+u:q?u:parseFloat(u)};if("end"in l){if(!("start"in l))l.start=m(f,k)}else l.end=m(f,k);if(q){l.start=new b.Color(l.start);l.end=new b.Color(l.end)}else l.start=
k=="opacity"?+l.start:parseFloat(l.start)}this.curve=new j(i)});b.connect(h,"onAnimate",b.hitch(b,"style",h.node));return h};b.anim=function(h,f,i,k,l,q){return b.animateProperty({node:h,duration:i||b.Animation.prototype.duration,properties:f,easing:k,onEnd:l}).play(q||0)}})();return b.animateProperty});
define("dojo",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/Deferred","dojo/_base/json","dojo/_base/Color","dojo/_base/window","dojo/_base/event","dojo/_base/html","dojo/_base/NodeList","dojo/_base/query","dojo/_base/xhr","dojo/_base/fx"],function(b){return b});
define("orion/serviceregistry",["dojo"],function(b){function d(j,h,f){this.serviceId=j;this.name=h;this.properties=f}function a(j,h,f){this.serviceId=j;this.serviceReference=h;this.internalRegistry=f}function c(j,h,f){this.serviceId=j;this.implementation=h;this.internalRegistry=f;var i;for(i in h)if(typeof h[i]==="function")this[i]=function(k){return function(){if(f.isRegistered(j)){var l=new b.Deferred;try{var q=h[k].apply(h,Array.prototype.slice.call(arguments));b.when(q,b.hitch(l,l.resolve),b.hitch(l,
l.reject))}catch(m){l.reject(m)}return l.promise}throw new Error("Service was unregistered");}}(i)}function e(){this._namedlisteners={}}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var j=this;this.internalRegistry={isRegistered:function(h){return j._entries[h]?true:false},unregisterService:function(h){var f=j._entries[h];if(f){for(var i=f.reference,k=j._namedReferences[i.getName()],l=0;l<k.length;l++)if(k[l]===i){if(k.length===1)delete j._namedReferences[i.getName()];
else k.splice(l,1);break}j._entries[h]=null;j._serviceEventTarget.dispatchEvent("serviceRemoved",i,f.service)}},dispatchEvent:function(h,f){var i=j._entries[h];i&&i.eventTarget.dispatchEvent.apply(i.eventTarget,[f].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(h,f,i){(h=j._entries[h])&&h.eventTarget.addEventListener(f,i)},removeEventListener:function(h,f,i){(h=j._entries[h])&&h.eventTarget.removeEventListener(f,i)}}}d.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var j=[],h;for(h in this.properties)this.properties.hasOwnProperty(h)&&j.push(h);return j},getProperty:function(j){return this.properties[j]}};d.prototype.constructor=d;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(j){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,j].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;c.prototype={addEventListener:function(j,h){this.internalRegistry.addEventListener(this.serviceId,j,h)},removeEventListener:function(j,h){this.internalRegistry.removeEventListener(this.serviceId,j,h)}};c.prototype.constructor=c;e.prototype={dispatchEvent:function(j){var h=this._namedlisteners[j];if(h)for(var f=0;f<h.length;f++)try{var i=Array.prototype.slice.call(arguments,1);h[f].apply(null,i)}catch(k){console.log(k)}},addEventListener:function(j,h){this._namedlisteners[j]=
this._namedlisteners[j]||[];this._namedlisteners[j].push(h)},removeEventListener:function(j,h){var f=this._namedlisteners[j];if(f)for(var i=0;i<f.length;i++)if(f[i]===h){if(f.length===1)delete this._namedlisteners[j];else f.splice(i,1);break}}};e.prototype.constructor=e;g.prototype={getService:function(j,h){var f,i=new b.Deferred;if(typeof j==="string"){if(this._namedReferences[j])for(var k=0;k<this._namedReferences[j].length;k++)if(f=this._entries[this._namedReferences[j][k].getServiceId()].service)break}else f=
this._entries[j.getServiceId()].service;if(f)i.resolve(f);else if(h===0)i.reject(new Error("timeout: getService"));else{var l=this,q=function(m,n){if(j===m||j===m.getName()){i.resolve(n);l._serviceEventTarget.removeEventListener("serviceAdded",q)}};this._serviceEventTarget.addEventListener("serviceAdded",q)}return i.promise},getServiceReferences:function(j){if(j)return this._namedReferences[j]?this._namedReferences[j]:[];j=[];for(var h=0;h<this._entries.length;h++)this._entries[h]&&j.push(this._entries[h].reference);
return j},registerService:function(j,h,f){var i=this._entries.length;f=new d(i,j,f);h=new c(i,h,this.internalRegistry);this._namedReferences[j]=this._namedReferences[j]||[];this._namedReferences[j].push(f);this._entries.push({reference:f,service:h,eventTarget:new e});this._serviceEventTarget.dispatchEvent("serviceAdded",f,h);return new a(i,f,this.internalRegistry)},addEventListener:function(j,h){this._serviceEventTarget.addEventListener(j,h)},removeEventListener:function(j,h){this._serviceEventTarget.removeEventListener(j,
h)}};g.prototype.constructor=g;return{ServiceReference:d,ServiceRegistration:a,Service:c,EventTarget:e,ServiceRegistry:g}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("dojo/hash",["dojo"],function(b){(function(){function d(l,q){q=l.indexOf(q);return q>=0?l.substring(q+1):""}function a(){return d(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function e(){if(a()!==h){h=a();c()}}function g(l){if(f)if(f.isTransitioning())setTimeout(b.hitch(null,g,l),k);else{var q=f.iframe.location.href,m=q.indexOf("?");f.iframe.location.replace(q.substring(0,m)+"?"+l)}else{location.replace("#"+l);!i&&e()}}function j(){function l(){h=a();n=s?h:d(v.href,
"?");o=false;u=null}var q=document.createElement("iframe"),m=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html");b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");q.id="dojo-hash-iframe";q.src=m+"?"+a();q.style.display="none";document.body.appendChild(q);this.iframe=b.global["dojo-hash-iframe"];
var n,o,u,p,s,v=this.iframe.location;this.isTransitioning=function(){return o};this.pollLocation=function(){if(!s)try{var t=d(v.href,"?");if(document.title!=p)p=this.iframe.document.title=document.title}catch(y){s=true;console.error("dojo.hash: Error adding history entry. Server unreachable.")}var C=a();if(o&&h===C)if(s||t===u){l();c()}else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===C&&(s||n===t)))if(h!==C){h=C;o=true;u=C;q.src=m+"?"+u;s=false;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!s){location.href="#"+v.search.substring(1);l();c()}setTimeout(b.hitch(this,this.pollLocation),k)};l();setTimeout(b.hitch(this,this.pollLocation),k)}b.hash=function(l,q){if(!arguments.length)return a();if(l.charAt(0)=="#")l=l.substring(1);if(q)g(l);else location.href="#"+l;return l};var h,f,i,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){if("onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat"))i=b.connect(b.global,"onhashchange",c);else if(document.addEventListener){h=
a();setInterval(e,k)}else if(document.attachEvent)f=new j})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],d=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=[];define("text",["require","exports","module"],function(){var e,g,j;if(typeof window!=="undefined"&&window.navigator&&window.document)g=function(h,f){var i=e.createXhr();i.open("GET",h,true);i.onreadystatechange=function(){i.readyState===4&&f(i.responseText)};i.send(null)};else if(typeof process!=="undefined"&&process.versions&&
process.versions.node){j=require.nodeRequire("fs");g=function(h,f){f(j.readFileSync(h,"utf8"))}}else if(typeof Packages!=="undefined")g=function(h,f){var i=new java.io.File(h);h=java.lang.System.getProperty("line.separator");i=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(i),"utf-8"));var k,l,q="";try{k=new java.lang.StringBuffer;if((l=i.readLine())&&l.length()&&l.charAt(0)===65279)l=l.substring(1);for(k.append(l);(l=i.readLine())!==null;){k.append(h);k.append(l)}q=
String(k.toString())}finally{i.close()}f(q)};return e={version:"0.24.0",strip:function(h){if(h){h=h.replace(d,"");var f=h.match(a);if(f)h=f[1]}else h="";return h},jsEscape:function(h){return h.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var h,f,i;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(f=0;f<3;f++){i=b[f];try{h=new ActiveXObject(i)}catch(k){}if(h){b=
[i];break}}if(!h)throw new Error("require.getXhr(): XMLHttpRequest not available");return h},get:g,load:function(h,f,i,k){var l=false,q=h.indexOf("."),m=h.substring(0,q),n=h.substring(q+1,h.length);q=n.indexOf("!");if(q!==-1){l=n.substring(q+1,n.length);l=l==="strip";n=n.substring(0,q)}f=f.nameToUrl(m,"."+n);e.get(f,function(o){o=l?e.strip(o):o;if(k.isBuild&&k.inlineText)c[h]=o;i(o)})},write:function(h,f,i){if(f in c){var k=e.jsEscape(c[f]);i("define('"+h+"!"+f+"', function () { return '"+k+"';});\n")}}}})})();
define("text!dijit/form/templates/ValidationTextBox.html",function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/i18n",["require","dojo"],function(b,d){d.getObject("i18n",true,d);d.i18n.getLocalization=d.i18n.getLocalization||function(a,c,e){e=d.i18n.normalizeLocale(e);var g=e.split("-"),j=[a,"nls",c].join(".");if(typeof d.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",c].join("/"));(d._loadedModules[j]=d._loadedModules[j]||{})[g.join("_")]=h.root||h}if(j=d._loadedModules[j]){var f;for(h=g.length;h>0;h--){var i=g.slice(0,h).join("_");if(j[i]){f=j[i];break}}if(!f)f=j.ROOT;
if(f){a=function(){};a.prototype=f;return new a}}throw new Error("Bundle not found: "+c+" in "+a+" , locale="+e);};d.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():d.locale;if(a=="root")a="ROOT";return a};d.i18n._requireLocalization=function(a,c,e,g){e=d.i18n.normalizeLocale(e);var j=[a,"nls",c].join("."),h="";if(g){for(var f=g.split(","),i=0;i<f.length;i++)if(e.indexOf(f[i])==0)if(f[i].length>h.length)h=f[i];h||(h="ROOT")}f=g?h:e;var k=d._loadedModules[j];i=null;if(k){if(d.config.localizationComplete&&
k._built)return;i=f.replace(/-/g,"_");i=d._loadedModules[j+"."+i]}if(!i){k=d.provide(j);var l=d._getModuleSymbols(a).concat("nls").join("/"),q;d.i18n._searchLocalePath(f,g,function(m){var n=m.replace(/-/g,"_"),o=j+"."+n,u=false;if(d._loadedModules[o])u=true;else{d.provide(o);o=[l];m!="ROOT"&&o.push(m);o.push(c);m=o.join("/")+".js";u=d._loadPath(m,null,function(p){p=p.root||p;var s=function(){};s.prototype=q;k[n]=new s;for(var v in p)k[n][v]=p[v]})}if(u&&k[n])q=k[n];else k[n]=q;if(g)return true})}if(g&&
e!=h)k[e.replace(/-/g,"_")]=k[h.replace(/-/g,"_")]};(function(){var a=d.config.extraLocale;if(a){if(!a instanceof Array)a=[a];var c=d.i18n._requireLocalization;d.i18n._requireLocalization=function(e,g,j,h){c(e,g,j,h);if(!j)for(j=0;j<a.length;j++)c(e,g,a[j],h)}}})();d.i18n._searchLocalePath=function(a,c,e){a=d.i18n.normalizeLocale(a);var g=a.split("-");a=[];for(var j=g.length;j>0;j--)a.push(g.slice(0,j).join("-"));a.push(false);c&&a.reverse();for(c=a.length-1;c>=0;c--)if(e(a[c]||"ROOT"))break};d.i18n._preloadLocalizations=
function(a,c){function e(h){h=d.i18n.normalizeLocale(h);d.i18n._searchLocalePath(h,true,function(f){for(var i=0;i<c.length;i++)if(c[i]==f){d.require(a+"_"+f);return true}return false})}e();for(var g=d.config.extraLocale||[],j=0;j<g.length;j++)e(g[j])};return d.i18n});define("text!dijit/form/templates/TextBox.html",function(){return'<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/window",["dojo"],function(b){b.getObject("window",true,b);b.window.getBox=function(){var d=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:d.clientWidth,h:d.clientHeight,l:a.x,t:a.y}};b.window.get=function(d){if(b.isIE&&window!==document.parentWindow){d.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=d._parentWindow;d._parentWindow=null;return a}return d.parentWindow||d.defaultView};b.window.scrollIntoView=function(d,
a){try{d=b.byId(d);var c=d.ownerDocument||b.doc,e=c.body||b.body(),g=c.documentElement||e.parentNode,j=b.isIE,h=b.isWebKit;if((!(b.isMoz||j||h||b.isOpera)||d==e||d==g)&&typeof d.scrollIntoView!="undefined")d.scrollIntoView(false);else{var f=c.compatMode=="BackCompat",i=j>=9&&d.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:f?e:g;c=h?e:i;var k=i.clientWidth,l=i.clientHeight,
q=!b._isBodyLtr(),m=a||b.position(d),n=d.parentNode;a=function(F){return j<=6||j&&f?false:b.style(F,"position").toLowerCase()=="fixed"};if(!a(d))for(;n;){if(n==e)n=c;var o=b.position(n),u=a(n);if(n==c){o.w=k;o.h=l;if(c==g&&j&&q)o.x+=c.offsetWidth-o.w;if(o.x<0||!j)o.x=0;if(o.y<0||!j)o.y=0}else{var p=b._getPadBorderExtents(n);o.w-=p.w;o.h-=p.h;o.x+=p.l;o.y+=p.t;var s=n.clientWidth,v=o.w-s;if(s>0&&v>0){o.w=s;o.x+=q&&(j||n.clientLeft>p.l)?v:0}s=n.clientHeight;v=o.h-s;if(s>0&&v>0)o.h=s}if(u){if(o.y<0){o.h+=
o.y;o.y=0}if(o.x<0){o.w+=o.x;o.x=0}if(o.y+o.h>l)o.h=l-o.y;if(o.x+o.w>k)o.w=k-o.x}var t=m.x-o.x,y=m.y-Math.max(o.y,0),C=t+m.w-o.w,D=y+m.h-o.h;if(C*t>0){var A=Math[t<0?"max":"min"](t,C);if(q&&(j==8&&!f||j>=9))A=-A;m.x+=n.scrollLeft;n.scrollLeft+=A;m.x-=n.scrollLeft}if(D*y>0){m.y+=n.scrollTop;n.scrollTop+=Math[y<0?"max":"min"](y,D);m.y-=n.scrollTop}n=n!=c&&!u&&n.parentNode}}}catch(E){console.error("scrollIntoView: "+E);d.scrollIntoView(false)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,d){b.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw new Error("Tried to register widget with id=="+a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){if(this._hash[a]){delete this._hash[a];this.length--}},forEach:function(a,c){c=c||b.global;var e=0,g;for(g in this._hash)a.call(c,this._hash[g],e++,this._hash);return this},
filter:function(a,c){c=c||b.global;var e=new d.WidgetSet,g=0,j;for(j in this._hash){var h=this._hash[j];a.call(c,h,g++,this._hash)&&e.add(h)}return e},byId:function(a){return this._hash[a]},byClass:function(a){var c=new d.WidgetSet,e,g;for(e in this._hash){g=this._hash[e];g.declaredClass==a&&c.add(g)}return c},toArray:function(){var a=[];for(var c in this._hash)a.push(this._hash[c]);return a},map:function(a,c){return b.map(this.toArray(),a,c)},every:function(a,c){c=c||b.global;var e=0,g;for(g in this._hash)if(!a.call(c,
this._hash[g],e++,this._hash))return false;return true},some:function(a,c){c=c||b.global;var e=0,g;for(g in this._hash)if(a.call(c,this._hash[g],e++,this._hash))return true;return false}});(function(){d.registry=new d.WidgetSet;var a=d.registry._hash,c=b.attr,e=b.hasAttr,g=b.style;d.byId=function(i){return typeof i=="string"?a[i]:i};var j={};d.getUniqueId=function(i){var k;do k=i+"_"+(i in j?++j[i]:(j[i]=0));while(a[k]);return d._scopeName=="dijit"?k:d._scopeName+"_"+k};d.findWidgets=function(i){function k(q){for(q=
q.firstChild;q;q=q.nextSibling)if(q.nodeType==1){var m=q.getAttribute("widgetId");if(m)(m=a[m])&&l.push(m);else k(q)}}var l=[];k(i);return l};d._destroyAll=function(){d._curFocus=null;d._prevFocus=null;d._activeStack=[];b.forEach(d.findWidgets(b.body()),function(i){if(!i._destroyed)if(i.destroyRecursive)i.destroyRecursive();else i.destroy&&i.destroy()})};b.isIE&&b.addOnWindowUnload(function(){d._destroyAll()});d.byNode=function(i){return a[i.getAttribute("widgetId")]};d.getEnclosingWidget=function(i){for(;i;){var k=
i.getAttribute&&i.getAttribute("widgetId");if(k)return a[k];i=i.parentNode}return null};var h=d._isElementShown=function(i){var k=g(i);return k.visibility!="hidden"&&k.visibility!="collapsed"&&k.display!="none"&&c(i,"type")!="hidden"};d.hasDefaultTabStop=function(i){switch(i.nodeName.toLowerCase()){case "a":return e(i,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var k;try{var l=i.contentDocument;if("designMode"in l&&l.designMode==
"on")return true;k=l.body}catch(q){try{k=i.contentWindow.document.body}catch(m){return false}}return k.contentEditable=="true"||k.firstChild&&k.firstChild.contentEditable=="true";default:return i.contentEditable=="true"}};var f=d.isTabNavigable=function(i){return c(i,"disabled")?false:e(i,"tabIndex")?c(i,"tabIndex")>=0:d.hasDefaultTabStop(i)};d._getTabNavigable=function(i){function k(t){return t&&t.tagName.toLowerCase()=="input"&&t.type&&t.type.toLowerCase()=="radio"&&t.name&&t.name.toLowerCase()}
function l(t){return s[k(t)]||t}var q,m,n,o,u,p,s={},v=function(t){b.query("> *",t).forEach(function(y){if(!(b.isIE&&y.scopeName!=="HTML"||!h(y))){if(f(y)){var C=c(y,"tabIndex");if(!e(y,"tabIndex")||C==0){q||(q=y);m=y}else if(C>0){if(!n||C<o){o=C;n=y}if(!u||C>=p){p=C;u=y}}C=k(y);if(b.attr(y,"checked")&&C)s[C]=y}y.nodeName.toUpperCase()!="SELECT"&&v(y)}})};h(i)&&v(i);return{first:l(q),last:l(m),lowest:l(n),highest:l(u)}};d.getFirstInTabbingOrder=function(i){i=d._getTabNavigable(b.byId(i));return i.lowest?
i.lowest:i.first};d.getLastInTabbingOrder=function(i){i=d._getTabNavigable(b.byId(i));return i.last?i.last:i.highest};d.defaultDuration=b.config.defaultDuration||200})();return d});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(d){d&&b.mixin(this,d)},get:function(d){return this[d]},set:function(d,a){if(typeof d==="object"){for(var c in d)this.set(c,d[c]);return this}c=this[d];this[d]=a;this._watchCallbacks&&this._watchCallbacks(d,c,a);return this},watch:function(d,a){var c=this._watchCallbacks;if(!c){var e=this;c=this._watchCallbacks=function(j,h,f,i){var k=function(l){if(l){l=l.slice();for(var q=0,m=l.length;q<m;q++)try{l[q].call(e,
j,h,f)}catch(n){console.error(n)}}};k(c["_"+j]);i||k(c["*"])}}if(!a&&typeof d==="function"){a=d;d="*"}else d="_"+d;var g=c[d];if(typeof g!=="object")g=c[d]=[];g.push(a);return{unwatch:function(){g.splice(b.indexOf(g,a),1)}}}});return b.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(b,d){(function(){b.declare("dijit._WidgetBase",b.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,c){this.create(a,c)},create:function(a,c){this.srcNodeRef=
b.byId(c);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a){this.params=a;b._mixin(this,a)}this.postMixInProperties();if(!this.id)this.id=d.getUniqueId(this.declaredClass.replace(/\./g,"_"));d.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 c in this.attributeMap)a(c,this);b.forEach(this._getSetterAttributes(),function(e){e in this.attributeMap||a(e,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var c=a._setterAttrs=[],e,g=a.prototype;for(var j in g)if(b.isFunction(g[j])&&(e=j.match(/^_set([a-zA-Z]*)Attr$/))&&
e[1])c.push(e[1].charAt(0).toLowerCase()+e[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||b.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(b.map(a,function(c){return c+"Rtl"})));b.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=true},destroyRecursive:function(a){this._beingDestroyed=true;this.destroyDescendants(a);this.destroy(a)},
destroy:function(a){this._beingDestroyed=true;this.uninitialize();var c=b.forEach,e=b.unsubscribe;c(this._connects,function(g){c(g,b.disconnect)});c(this._subscribes,function(g){e(g)});c(this._supportingWidgets||[],function(g){if(g.destroyRecursive)g.destroyRecursive();else g.destroy&&g.destroy()});this.destroyRendering(a);d.registry.remove(this.id);this._destroyed=true},destroyRendering:function(a){if(this.bgIframe){this.bgIframe.destroy(a);delete this.bgIframe}if(this.domNode){a?b.removeAttr(this.domNode,
"widgetId"):b.destroy(this.domNode);delete this.domNode}if(this.srcNodeRef){a||b.destroy(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(a){b.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive(a)})},uninitialize:function(){return false},_setClassAttr:function(a){b.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var c=this[this.attributeMap.style||"domNode"];if(b.isObject(a))b.style(c,
a);else if(c.style.cssText)c.style.cssText+="; "+a;else c.style.cssText=a;this._set("style",a)},_attrToDom:function(a,c){var e=this.attributeMap[a];b.forEach(b.isArray(e)?e:[e],function(g){var j=this[g.node||g||"domNode"];switch(g.type||"attribute"){case "attribute":if(b.isFunction(c))c=b.hitch(this,c);g=g.attribute?g.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(j,g,c);break;case "innerText":j.innerHTML="";j.appendChild(b.doc.createTextNode(c));break;case "innerHTML":j.innerHTML=
c;break;case "class":b.replaceClass(j,c,this[a]);break}},this)},get:function(a){var c=this._getAttrNames(a);return this[c.g]?this[c.g]():this[a]},set:function(a,c){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,c);this._set(a,c)}return g||this},_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;if(c[a])return c[a];
var e=a.charAt(0).toUpperCase()+a.substr(1);return c[a]={n:a+"Node",s:"_set"+e+"Attr",g:"_get"+e+"Attr"}},_set:function(a,c){var e=this[a];this[a]=c;this._watchCallbacks&&this._created&&c!==e&&this._watchCallbacks(a,e,c)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(d.byNode):[]},getChildren:function(){return this.containerNode?d.findWidgets(this.containerNode):
[]},connect:function(a,c,e){a=[b._connect(a,c,this,e)];this._connects.push(a);return a},disconnect:function(a){for(var c=0;c<this._connects.length;c++)if(this._connects[c]==a){b.forEach(a,b.disconnect);this._connects.splice(c,1);return}},subscribe:function(a,c){a=b.subscribe(a,this,c);this._subscribes.push(a);return a},unsubscribe:function(a){for(var c=0;c<this._subscribes.length;c++)if(this._subscribes[c]==a){b.unsubscribe(a);this._subscribes.splice(c,1);return}},isLeftToRight:function(){return this.dir?
this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,c){a.declaredClass&&a.addChild?a.addChild(this,c):b.place(this.domNode,a,c);return this}})})();return d._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,d){b.mixin(d,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return d.getBookmark().isCollapsed},getBookmark:function(){var a,c,e=b.doc.selection,g=d._curFocus;if(b.global.getSelection){if(e=b.global.getSelection())if(e.isCollapsed){if(a=g?g.tagName:""){a=a.toLowerCase();if(a=="textarea"||a=="input"&&(!g.type||g.type.toLowerCase()=="text")){e={start:g.selectionStart,end:g.selectionEnd,node:g,pRange:true};
return{isCollapsed:e.end<=e.start,mark:e}}}a={isCollapsed:true};if(e.rangeCount)a.mark=e.getRangeAt(0).cloneRange()}else{c=e.getRangeAt(0);a={isCollapsed:false,mark:c.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{c=e.createRange();return{isCollapsed:c.text&&c.text.length?false:true,mark:{range:c,pRange:true}}}a={};try{c=e.createRange();a.isCollapsed=!(e.type==
"Text"?c.htmlText.length:c.length)}catch(j){a.isCollapsed=true;return a}if(e.type.toUpperCase()=="CONTROL")if(c.length){a.mark=[];e=0;for(g=c.length;e<g;)a.mark.push(c.item(e++))}else{a.isCollapsed=true;a.mark=null}else a.mark=c.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var c=b.doc;if(a=a.mark)if(b.global.getSelection){var e=b.global.getSelection();if(e&&e.removeAllRanges)if(a.pRange){e=a.node;e.selectionStart=
a.start;e.selectionEnd=a.end}else{e.removeAllRanges();e.addRange(a)}else console.warn("No idea how to restore selection for this browser!")}else if(c.selection&&a){var g;if(a.pRange)g=a.range;else if(b.isArray(a)){g=c.body.createControlRange();b.forEach(a,function(j){g.addElement(j)})}else{g=c.body.createTextRange();g.moveToBookmark(a)}g.select()}},getFocus:function(a,c){a=!d._curFocus||a&&b.isDescendant(d._curFocus,a.domNode)?d._prevFocus:d._curFocus;return{node:a,bookmark:a==d._curFocus&&b.withGlobal(c||
b.global,d.getBookmark),openedForWindow:c}},focus:function(a){if(a){var c="node"in a?a.node:a,e=a.bookmark;a=a.openedForWindow;var g=e?e.isCollapsed:false;if(c){var j=c.tagName.toLowerCase()=="iframe"?c.contentWindow:c;if(j&&j.focus)try{j.focus()}catch(h){}d._onFocusNode(c)}if(e&&b.withGlobal(a||b.global,d.isCollapsed)&&!g){a&&a.focus();try{b.withGlobal(a||b.global,d.moveToBookmark,null,[e])}catch(f){}}}},_activeStack:[],registerIframe:function(a){return d.registerWin(a.contentWindow,a)},unregisterIframe:function(a){d.unregisterWin(a)},
registerWin:function(a,c){var e=function(k){d._justMouseDowned=true;setTimeout(function(){d._justMouseDowned=false},0);b.isIE&&k&&k.srcElement&&k.srcElement.parentNode==null||d._onTouchNode(c||k.target||k.srcElement,"mouse")},g=b.isIE?a.document.documentElement:a.document;if(g)if(b.isIE){a.document.body.attachEvent("onmousedown",e);var j=function(k){k.srcElement.tagName.toLowerCase()!="#document"&&d.isTabNavigable(k.srcElement)?d._onFocusNode(c||k.srcElement):d._onTouchNode(c||k.srcElement)};g.attachEvent("onactivate",
j);var h=function(k){d._onBlurNode(c||k.srcElement)};g.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",e);g.detachEvent("onactivate",j);g.detachEvent("ondeactivate",h);g=null}}else{g.body.addEventListener("mousedown",e,true);var f=function(k){d._onFocusNode(c||k.target)};g.addEventListener("focus",f,true);var i=function(k){d._onBlurNode(c||k.target)};g.addEventListener("blur",i,true);return function(){g.body.removeEventListener("mousedown",e,true);g.removeEventListener("focus",
f,true);g.removeEventListener("blur",i,true);g=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){d._prevFocus=d._curFocus;d._curFocus=null;if(!d._justMouseDowned){d._clearActiveWidgetsTimer&&clearTimeout(d._clearActiveWidgetsTimer);d._clearActiveWidgetsTimer=setTimeout(function(){delete d._clearActiveWidgetsTimer;d._setStack([]);d._prevFocus=null},100)}},_onTouchNode:function(a,c){if(d._clearActiveWidgetsTimer){clearTimeout(d._clearActiveWidgetsTimer);delete d._clearActiveWidgetsTimer}var e=
[];try{for(;a;){var g=b.attr(a,"dijitPopupParent");if(g)a=d.byId(g).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===b.body())break;a=b.window.get(a.ownerDocument).frameElement}else{var j=a.getAttribute&&a.getAttribute("widgetId"),h=j&&d.byId(j);h&&!(c=="mouse"&&h.get("disabled"))&&e.unshift(j);a=a.parentNode}}}catch(f){}d._setStack(e,c)},_onFocusNode:function(a){if(a)if(a.nodeType!=9){d._onTouchNode(a);if(a!=d._curFocus){if(d._curFocus)d._prevFocus=d._curFocus;d._curFocus=a;b.publish("focusNode",
[a])}}},_setStack:function(a,c){var e=d._activeStack;d._activeStack=a;for(var g=0;g<Math.min(e.length,a.length);g++)if(e[g]!=a[g])break;for(var j,h=e.length-1;h>=g;h--)if(j=d.byId(e[h])){j._focused=false;j.set("focused",false);j._hasBeenBlurred=true;j._onBlur&&j._onBlur(c);b.publish("widgetBlur",[j,c])}for(h=g;h<a.length;h++)if(j=d.byId(a[h])){j._focused=true;j.set("focused",true);j._onFocus&&j._onFocus(c);b.publish("widgetFocus",[j,c])}}});b.addOnLoad(function(){var a=d.registerWin(window);b.isIE&&
b.addOnWindowUnload(function(){d.unregisterWin(a);a=null})});return d});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(d){this.pairs=[];this.returnWrappers=d||false};b.extend(b.AdapterRegistry,{register:function(d,a,c,e,g){this.pairs[g?"unshift":"push"]([d,a,c,e])},match:function(){for(var d=0;d<this.pairs.length;d++){var a=this.pairs[d];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(d){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
d){this.pairs.splice(a,1);return true}return false}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,d){d.getViewport=function(){return b.window.getBox()};d.placeOnScreen=function(a,c,e,g){e=b.map(e,function(j){var h={corner:j,pos:{x:c.x,y:c.y}};if(g){h.pos.x+=j.charAt(1)=="L"?g.x:-g.x;h.pos.y+=j.charAt(0)=="T"?g.y:-g.y}return h});return d._place(a,e)};d._place=function(a,c,e,g){var j=b.window.getBox();if(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")b.body().appendChild(a);var h=null;
b.some(c,function(i){var k=i.corner,l=i.pos,q=0,m={w:k.charAt(1)=="L"?j.l+j.w-l.x:l.x-j.l,h:k.charAt(1)=="T"?j.t+j.h-l.y:l.y-j.t};if(e){q=e(a,i.aroundCorner,k,m,g);q=typeof q=="undefined"?0:q}var n=a.style,o=n.display,u=n.visibility;n.visibility="hidden";n.display="";var p=b.marginBox(a);n.display=o;n.visibility=u;n=Math.max(j.l,k.charAt(1)=="L"?l.x:l.x-p.w);o=Math.max(j.t,k.charAt(0)=="T"?l.y:l.y-p.h);u=Math.min(j.l+j.w,k.charAt(1)=="L"?n+p.w:l.x);l=Math.min(j.t+j.h,k.charAt(0)=="T"?o+p.h:l.y);u=
u-n;l=l-o;q+=p.w-u+(p.h-l);if(h==null||q<h.overflow)h={corner:k,aroundCorner:i.aroundCorner,x:n,y:o,w:u,h:l,overflow:q,spaceAvailable:m};return!q});h.overflow&&e&&e(a,h.aroundCorner,h.corner,h.spaceAvailable,g);c=b._isBodyLtr();var f=a.style;f.top=h.y+"px";f[c?"left":"right"]=(c?h.x:j.w-h.x-h.w)+"px";return h};d.placeOnScreenAroundNode=function(a,c,e,g){c=b.byId(c);c=b.position(c,true);return d._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,e,g)};d.placeOnScreenAroundRectangle=function(a,c,e,g){return d._placeOnScreenAroundRect(a,
c.x,c.y,c.width,c.height,e,g)};d._placeOnScreenAroundRect=function(a,c,e,g,j,h,f){var i=[];for(var k in h)i.push({aroundCorner:k,corner:h[k],pos:{x:c+(k.charAt(1)=="L"?0:g),y:e+(k.charAt(0)=="T"?0:j)}});return d._place(a,i,f,{w:g,h:j})};d.placementRegistry=new b.AdapterRegistry;d.placementRegistry.register("node",function(a,c){return typeof c=="object"&&typeof c.offsetWidth!="undefined"&&typeof c.offsetHeight!="undefined"},d.placeOnScreenAroundNode);d.placementRegistry.register("rect",function(a,
c){return typeof c=="object"&&"x"in c&&"y"in c&&"width"in c&&"height"in c},d.placeOnScreenAroundRectangle);d.placeOnScreenAroundElement=function(){return d.placementRegistry.match.apply(d.placementRegistry,arguments)};d.getPopupAroundAlignment=function(a,c){var e={};b.forEach(a,function(g){switch(g){case "after":e[c?"BR":"BL"]=c?"BL":"BR";break;case "before":e[c?"BL":"BR"]=c?"BR":"BL";break;case "below-alt":c=!c;case "below":e[c?"BL":"BR"]=c?"TL":"TR";e[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=
!c;case "above":default:e[c?"TL":"TR"]=c?"BL":"BR";e[c?"TR":"TL"]=c?"BR":"BL";break}});return e};return d});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,d){d.getDocumentWindow=function(a){return b.window.get(a)};return d});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,d){d.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var c=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),e=a.domNode||a;if(!c){c=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body());c.appendChild(e);e=e.style;e.display="";e.visibility="";e.position="";e.top="0px";if(a.declaredClass){a._popupWrapper=
c;b.connect(a,"destroy",function(){b.destroy(c);delete a._popupWrapper})}}return c},moveOffScreen:function(a){a=this._createWrapper(a);b.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);b.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,c=a.length-1;c>0&&a[c].parent===a[c-1].widget;c--);return a[c]},open:function(a){for(var c=this._stack,e=a.popup,g=a.orient||((a.parent?a.parent.isLeftToRight():b._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),j=a.around,h=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;c.length&&(!a.parent||!b.isDescendant(a.parent.domNode,c[c.length-1].widget.domNode));)d.popup.close(c[c.length-1].widget);var f=this._createWrapper(e);b.attr(f,{id:h,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if(b.isIE||b.isMoz)if(!e.bgIframe)e.bgIframe=
new d.BackgroundIframe(f);g=j?d.placeOnScreenAroundElement(f,j,g,e.orient?b.hitch(e,"orient"):null):d.placeOnScreen(f,a,g=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);f.style.display="";f.style.visibility="visible";e.domNode.style.visibility="visible";j=[];j.push(b.connect(f,"onkeypress",this,function(i){if(i.charOrCode==b.keys.ESCAPE&&a.onCancel){b.stopEvent(i);a.onCancel()}else if(i.charOrCode===b.keys.TAB){b.stopEvent(i);(i=this.getTopPopup())&&i.onCancel&&i.onCancel()}}));e.onCancel&&
j.push(b.connect(e,"onCancel",a.onCancel));j.push(b.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var i=this.getTopPopup();i&&i.onExecute&&i.onExecute()}));c.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:j});e.onOpen&&e.onOpen(g);return g},close:function(a){for(var c=this._stack;a&&b.some(c,function(h){return h.widget==a})||!a&&c.length;){var e=c.pop(),g=e.widget,j=e.onClose;g.onClose&&g.onClose();b.forEach(e.handlers,b.disconnect);
g&&g.domNode&&this.hide(g);j&&j()}}};d._frames=new (function(){var a=[];this.pop=function(){var c;if(a.length){c=a.pop();c.style.display=""}else{if(b.isIE<9){c="<iframe src='"+(b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";c=b.doc.createElement(c)}else{c=b.create("iframe");c.src='javascript:""';c.className="dijitBackgroundIframe";b.style(c,"opacity",0.1)}c.tabIndex=
-1;d.setWaiRole(c,"presentation")}return c};this.push=function(c){c.style.display="none";a.push(c)}});d.BackgroundIframe=function(a){if(!a.id)throw new Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=d._frames.pop();a.appendChild(c);if(b.isIE<7||b.isQuirks){this.resize(a);this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})}else b.style(c,{width:"100%",height:"100%"})}};b.extend(d.BackgroundIframe,{resize:function(a){this.iframe&&b.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+
"px"})},destroy:function(){if(this._conn){b.disconnect(this._conn);this._conn=null}if(this.iframe){d._frames.push(this.iframe);delete this.iframe}}});return d.popup});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,d){d.scrollIntoView=function(a,c){b.window.scrollIntoView(a,c)};return d.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var d=b.doc.documentElement,a=b.isIE,c=b.isOpera,e=Math.floor,g=b.isFF,j=b.boxModel.replace(/-/,"");a={dj_ie:a,dj_ie6:e(a)==6,dj_ie7:e(a)==7,dj_ie8:e(a)==8,dj_ie9:e(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:c,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:e(g)==3};a["dj_"+j]=true;var h="";for(var f in a)if(a[f])h+=f+" ";d.className=b.trim(d.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var i=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");d.className=b.trim(d.className+" "+i)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,d){return d});
define("dijit/_base/typematic",["dojo","dijit"],function(b,d){d.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,c,e,g,j,h,f,i){if(j!=this._obj){this.stop();
this._initialDelay=f||500;this._subsequentDelay=h||0.9;this._minDelay=i||10;this._obj=j;this._evt=a;this._node=e;this._count=this._currentTimeout=-1;this._callback=b.hitch(c,g);this._fireEventAndReload();this._evt=b.mixin({faux:true},a)}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null}},addKeyListener:function(a,c,e,g,j,h,f){if(c.keyCode){c.charOrCode=c.keyCode;b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0")}else if(c.charCode){c.charOrCode=String.fromCharCode(c.charCode);b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}return[b.connect(a,"onkeypress",this,function(i){if(i.charOrCode==c.charOrCode&&(c.ctrlKey===undefined||c.ctrlKey==i.ctrlKey)&&(c.altKey===undefined||c.altKey==i.altKey)&&(c.metaKey===undefined||c.metaKey==(i.metaKey||false))&&(c.shiftKey===undefined||c.shiftKey==i.shiftKey)){b.stopEvent(i);d.typematic.trigger(i,
e,a,g,c,j,h,f)}else d.typematic._obj==c&&d.typematic.stop()}),b.connect(a,"onkeyup",this,function(){d.typematic._obj==c&&d.typematic.stop()})]},addMouseListener:function(a,c,e,g,j,h){var f=b.connect;return[f(a,"mousedown",this,function(i){b.stopEvent(i);d.typematic.trigger(i,c,a,e,a,g,j,h)}),f(a,"mouseup",this,function(i){b.stopEvent(i);d.typematic.stop()}),f(a,"mouseout",this,function(i){b.stopEvent(i);d.typematic.stop()}),f(a,"mousemove",this,function(i){i.preventDefault()}),f(a,"dblclick",this,
function(i){b.stopEvent(i);if(b.isIE){d.typematic.trigger(i,c,a,e,a,g,j,h);setTimeout(b.hitch(this,d.typematic.stop),50)}})]},addListener:function(a,c,e,g,j,h,f,i){return this.addKeyListener(c,e,g,j,h,f,i).concat(this.addMouseListener(a,g,j,h,f,i))}};return d.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,d){d.wai={onload:function(){var a=b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif"))+'");'}},b.body()),c=b.getComputedStyle(a);if(c){var e=c.backgroundImage;b[c.borderTopColor==c.borderRightColor||e!=null&&(e=="none"||e=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");if(b.isIE)a.outerHTML="";else b.body().removeChild(a)}}};if(b.isIE||b.isMoz)b._loaders.unshift(d.wai.onload);b.mixin(d,{hasWaiRole:function(a,c){a=this.getWaiRole(a);return c?a.indexOf(c)>-1:a.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,c){b.attr(a,"role",c)},removeWaiRole:function(a,c){var e=b.attr(a,"role");if(e)if(c){c=b.trim((" "+e+" ").replace(" "+c+" "," "));b.attr(a,"role",c)}else a.removeAttribute("role")},
hasWaiState:function(a,c){return a.hasAttribute?a.hasAttribute("aria-"+c):!!a.getAttribute("aria-"+c)},getWaiState:function(a,c){return a.getAttribute("aria-"+c)||""},setWaiState:function(a,c,e){a.setAttribute("aria-"+c,e)},removeWaiState:function(a,c){a.removeAttribute("aria-"+c)}});return d});
define("dijit/_base",["dojo","dijit","dijit/_base/focus","dijit/_base/manager","dijit/_base/place","dijit/_base/popup","dijit/_base/scroll","dijit/_base/sniff","dijit/_base/typematic","dijit/_base/wai","dijit/_base/window"],function(b,d){return d._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,d){b.connect(b,"_connect",function(a,c){a&&b.isFunction(a._onConnect)&&a._onConnect(c)});d._connectOnUseEventHandler=function(){};d._lastKeyDownNode=null;b.isIE?function(){var a=function(c){d._lastKeyDownNode=c.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){d._lastKeyDownNode=a.target},true);(function(){b.declare("dijit._Widget",
d._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:d._connectOnUseEventHandler,onDblClick:d._connectOnUseEventHandler,onKeyDown:d._connectOnUseEventHandler,onKeyPress:d._connectOnUseEventHandler,onKeyUp:d._connectOnUseEventHandler,onMouseDown:d._connectOnUseEventHandler,onMouseMove:d._connectOnUseEventHandler,onMouseOut:d._connectOnUseEventHandler,
onMouseOver:d._connectOnUseEventHandler,onMouseLeave:d._connectOnUseEventHandler,onMouseEnter:d._connectOnUseEventHandler,onMouseUp:d._connectOnUseEventHandler,create:function(){this._deferredConnects=b.clone(this._deferredConnects);for(var a in this.attributeMap)delete this._deferredConnects[a];for(a in this._deferredConnects)this[a]!==d._connectOnUseEventHandler&&delete this._deferredConnects[a];this.inherited(arguments);if(this.domNode)for(a in this.params)this._onConnect(a)},_onConnect:function(a){if(a in
this._deferredConnects){this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a);delete this._deferredConnects[a]}},focused:false,isFocusable:function(){return this.focus&&b.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,c){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,c)},attr:function(a){if(b.config.isDebug){var c=
arguments.callee._ach||(arguments.callee._ach={}),e=(arguments.callee.caller||"unknown caller").toString();if(!c[e]){b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+e,"","2.0");c[e]=true}}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,c,e){var g=b._connect,j=this.inherited(arguments,[a,c=="ondijitclick"?"onclick":c,e]);if(c=="ondijitclick")if(b.indexOf(this.nodesWithKeyClick,
a.nodeName.toLowerCase())==-1){var h=b.hitch(this,e);j.push(g(a,"onkeydown",this,function(f){if((f.keyCode==b.keys.ENTER||f.keyCode==b.keys.SPACE)&&!f.ctrlKey&&!f.shiftKey&&!f.altKey&&!f.metaKey){d._lastKeyDownNode=f.target;"openDropDown"in this&&a==this._buttonNode||f.preventDefault()}}),g(a,"onkeyup",this,function(f){if((f.keyCode==b.keys.ENTER||f.keyCode==b.keys.SPACE)&&f.target==d._lastKeyDownNode&&!f.ctrlKey&&!f.shiftKey&&!f.altKey&&!f.metaKey){d._lastKeyDownNode=null;return h(f)}}))}return j},
_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return true}})})();return d._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",true,b);b.string.rep=function(d,a){if(a<=0||!d)return"";for(var c=[];;){a&1&&c.push(d);if(!(a>>=1))break;d+=d}return c.join("")};b.string.pad=function(d,a,c,e){c||(c="0");d=String(d);a=b.string.rep(c,Math.ceil((a-d.length)/c.length));return e?d+a:a+d};b.string.substitute=function(d,a,c,e){e=e||b.global;c=c?b.hitch(e,c):function(g){return g};return d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(g,j,h){g=b.getObject(j,false,
a);if(h)g=b.getObject(h,false,e).call(e,g,j);return c(g,j).toString()})};b.string.trim=String.prototype.trim?b.trim:function(d){d=d.replace(/^\s+/,"");for(var a=d.length-1;a>=0;a--)if(/\S/.test(d.charAt(a))){d=d.substring(0,a+1);break}return d};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",true,b);b.date.stamp.fromISOString=function(d,a){if(!b.date.stamp._isoRegExp)b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var c=b.date.stamp._isoRegExp.exec(d);d=null;if(c){c.shift();c[1]&&c[1]--;if(c[6])c[6]*=1E3;if(a){a=new Date(a);b.forEach(b.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(j){return a["get"+
j]()}),function(j,h){c[h]=c[h]||j})}d=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);if(c[0]<100)d.setFullYear(c[0]||1970);var e=0,g=c[7]&&c[7].charAt(0);if(g!="Z"){e=(c[8]||0)*60+(Number(c[9])||0);if(g!="-")e*=-1}if(g)e-=d.getTimezoneOffset();e&&d.setTime(d.getTime()+e*6E4)}return d};b.date.stamp.toISOString=function(d,a){var c=function(h){return h<10?"0"+h:h};a=a||{};var e=[],g=a.zulu?"getUTC":"get",j="";if(a.selector!="time"){j=d[g+"FullYear"]();j=["0000".substr((j+"").length)+
j,c(d[g+"Month"]()+1),c(d[g+"Date"]())].join("-")}e.push(j);if(a.selector!="date"){j=[c(d[g+"Hours"]()),c(d[g+"Minutes"]()),c(d[g+"Seconds"]())].join(":");g=d[g+"Milliseconds"]();if(a.milliseconds)j+="."+(g<100?"0":"")+c(g);if(a.zulu)j+="Z";else if(a.selector!="time"){d=d.getTimezoneOffset();a=Math.abs(d);j+=(d>0?"-":"+")+c(Math.floor(a/60))+":"+c(a%60)}e.push(j)}return e.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new (function(){function d(f){if(g.isString(f))return"string";if(typeof f=="number")return"number";if(typeof f=="boolean")return"boolean";if(g.isFunction(f))return"function";if(g.isArray(f))return"array";if(f instanceof Date)return"date";if(f instanceof g._Url)return"url";return"object"}function a(f,i){switch(i){case "string":return f;case "number":return f.length?Number(f):NaN;case "boolean":return typeof f=="boolean"?f:f.toLowerCase()!=
"false";case "function":if(g.isFunction(f)){f=f.toString();f=g.trim(f.substring(f.indexOf("{")+1,f.length-1))}try{return f===""||f.search(/[^\w\.]+/i)!=-1?new Function(f):g.getObject(f,false)||new Function(f)}catch(k){return new Function}case "array":return f?f.split(/\s*,\s*/):[];case "date":switch(f){case "":return new Date("");case "now":return new Date;default:return g.date.stamp.fromISOString(f)}case "url":return g.baseUrl+f;default:return g.fromJson(f)}}function c(f,i){for(var k in f)if(k.charAt(0)!=
"_")k in j||(i[k]=d(f[k]));return i}function e(f,i){var k=h[f];if(k){if(!i&&!k.params)k.params=c(k.cls.prototype,{})}else{f=g.getObject(f);k=null;if(!f)return null;i||(k=c(f.prototype,{}));k={cls:f,params:k}}return k}var g=b,j={},h={};g.connect(g,"extend",function(){h={}});this._functionFromScript=function(f,i){var k="",l="";(i=f.getAttribute(i+"args")||f.getAttribute("args"))&&g.forEach(i.split(/\s*,\s*/),function(q,m){k+="var "+q+" = arguments["+m+"]; "});(i=f.getAttribute("with"))&&i.length&&g.forEach(i.split(/\s*,\s*/),
function(q){k+="with("+q+"){";l+="}"});return new Function(k+f.innerHTML+l)};this.instantiate=function(f,i,k){var l=[];i=i||{};k=k||{};var q=(k.scope||g._scopeName)+"Type",m="data-"+(k.scope||g._scopeName)+"-";g.forEach(f,function(n){if(n){var o,u,p,s,v,t;if(n.node){o=n.node;u=n.type;t=n.fastpath;s=(p=n.clsInfo||u&&e(u,t))&&p.cls;v=n.scripts}else{o=n;v=(s=(p=(u=q in i?i[q]:o.getAttribute(q))&&e(u))&&p.cls)&&(s._noScript||s.prototype._noScript)?[]:g.query("> script[type^='dojo/']",o)}if(!p)throw new Error("Could not load class '"+
u);var y={};k.defaults&&g._mixin(y,k.defaults);n.inherited&&g._mixin(y,n.inherited);if(t){if((p=o.getAttribute(m+"props"))&&p.length)try{p=g.fromJson.call(k.propsThis,"{"+p+"}");g._mixin(y,p)}catch(C){throw new Error(C.toString()+" in data-dojo-props='"+p+"'");}if(p=o.getAttribute(m+"attach-point"))y.dojoAttachPoint=p;if(p=o.getAttribute(m+"attach-event"))y.dojoAttachEvent=p;b.mixin(y,i)}else{n=o.attributes;for(var D in p.params){u=D in i?{value:i[D],specified:true}:n.getNamedItem(D);if(!(!u||!u.specified&&
(!b.isIE||D.toLowerCase()!="value"))){u=u.value;switch(D){case "class":u="className"in i?i.className:o.className;break;case "style":u="style"in i?i.style:o.style&&o.style.cssText}var A=p.params[D];y[D]=typeof u=="string"?a(u,A):u}}}var E=[],F=[];g.forEach(v,function(G){o.removeChild(G);var M=G.getAttribute(m+"event")||G.getAttribute("event"),L=G.getAttribute("type");G=g.parser._functionFromScript(G,m);if(M)if(L=="dojo/connect")E.push({event:M,func:G});else y[M]=G;else F.push(G)});var K=(v=s.markupFactory||
s.prototype&&s.prototype.markupFactory)?v(y,o,s):new s(y,o);l.push(K);(s=o.getAttribute(m+"id")||o.getAttribute("jsId"))&&g.setObject(s,K);g.forEach(E,function(G){g.connect(K,G.event,null,G.func)});g.forEach(F,function(G){G.call(K)})}});i._started||g.forEach(l,function(n){if(!k.noStart&&n&&b.isFunction(n.startup)&&!n._started&&(!n.getParent||!n.getParent()))n.startup()});return l};this.parse=function(f,i){function k(o,u){var p=b.clone(o.inherited);b.forEach(["dir","lang"],function(D){var A=o.node.getAttribute(D);
if(A)p[D]=A});for(var s=o.clsInfo&&!o.clsInfo.cls.prototype._noScript?o.scripts:null,v=!o.clsInfo||!o.clsInfo.cls.prototype.stopParser||i&&i.template,t=o.node.firstChild;t;t=t.nextSibling)if(t.nodeType==1){var y,C=v&&t.getAttribute(q+"type");y=C?C:v&&t.getAttribute(l);C=C==y;if(y){y={type:y,fastpath:C,clsInfo:e(y,C),node:t,scripts:[],inherited:p};u.push(y);k(y,u)}else if(s&&t.nodeName.toLowerCase()=="script")(y=t.getAttribute("type"))&&/^dojo\/\w/i.test(y)&&s.push(t);else v&&k({node:t,inherited:p},
u)}}if(!i&&f&&f.rootNode){i=f;f=i.rootNode}else f=f;f=f?b.byId(f):b.body();i=i||{};var l=(i.scope||g._scopeName)+"Type",q="data-"+(i.scope||g._scopeName)+"-",m={};if(i&&i.inherited)for(var n in i.inherited)if(i.inherited[n])m[n]=i.inherited[n];n=[];k({node:f,inherited:m},n);return this.instantiate(n,i&&i.template?{template:true}:null,i)}});(function(){var d=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,d):b._loaders.unshift(d)})();
return b.parser});
define("dojo/cache",["dojo"],function(b){var d={};b.cache=function(a,c,e){if(typeof a=="string")var g=b.moduleUrl(a,c);else{g=a;e=c}g=g.toString();var j=e;if(e!=undefined&&!b.isString(e))j="value"in e?e.value:undefined;e=e&&e.sanitize?true:false;if(typeof j=="string")j=d[g]=e?b.cache._sanitize(j):j;else if(j===null)delete d[g];else{if(!(g in d)){j=undefined;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+c;j=require("text!"+h)}catch(f){}if(typeof j==="undefined")j=
b._getText(g);d[g]=e?b.cache._sanitize(j):j}j=d[g]}return j};b.cache._sanitize=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c)a=c[1]}else a="";return a};return b.cache});
define("dijit/_Templated",["dojo","dijit","dijit/_Widget","dojo/string","dojo/parser","dojo/cache"],function(b,d){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var c=this.declaredClass,e=this;return b.string.substitute(a,this,function(g,j){if(j.charAt(0)=="!")g=b.getObject(j.substr(1),false,e);if(typeof g==
"undefined")throw new Error(c+" template:"+j);if(g==null)return"";return j.charAt(0)=="!"?g:g.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=d._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),c;if(b.isString(a)){c=b._toDom(this._stringRepl(a));if(c.nodeType!=1)throw new Error("Invalid template: "+a);}else c=a.cloneNode(true);this.domNode=c;this.inherited(arguments);this._attachTemplateNodes(c);if(this.widgetsInTemplate){a=this._startupWidgets=
b.parser.parse(c,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"});this._supportingWidgets=d.findWidgets(c);this._attachTemplateNodes(a,function(e,g){return e[g]})}this._fillContent(this.srcNodeRef)},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)},_attachTemplateNodes:function(a,c){c=c||function(l,q){return l.getAttribute(q)};for(var e=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),
g=b.isArray(a)?0:-1;g<e.length;g++){var j=g==-1?a:e[g];if(!(this.widgetsInTemplate&&(c(j,"dojoType")||c(j,"data-dojo-type")))){var h=c(j,"dojoAttachPoint")||c(j,"data-dojo-attach-point");if(h)for(var f=h.split(/\s*,\s*/);h=f.shift();){if(b.isArray(this[h]))this[h].push(j);else this[h]=j;this._attachPoints.push(h)}if(h=c(j,"dojoAttachEvent")||c(j,"data-dojo-attach-event")){f=h.split(/\s*,\s*/);for(var i=b.trim;h=f.shift();)if(h){var k=null;if(h.indexOf(":")!=-1){k=h.split(":");h=i(k[0]);k=i(k[1])}else h=
i(h);k||(k=h);this._attachEvents.push(this.connect(j,h,k))}}(h=c(j,"waiRole"))&&d.setWaiRole(j,h);(h=c(j,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(l){if(l.indexOf("-")!=-1){l=l.split("-");d.setWaiState(j,l[0],l[1])}})}}},startup:function(){b.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){b.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];b.forEach(this._attachEvents,
this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});d._Templated._templateCache={};d._Templated.getCachedTemplate=function(a,c,e){var g=d._Templated._templateCache,j=c||a,h=g[j];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(f){}b.destroy(h)}c||(c=b.cache(a,{sanitize:true}));c=b.string.trim(c);if(e||c.match(/\$\{([^\}]+)\}/g))return g[j]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw new Error("Invalid template: "+c);return g[j]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=
d._Templated._templateCache;for(var c in a){var e=a[c];typeof e=="object"&&b.destroy(e);delete a[c]}});b.extend(d._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return d._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,d){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(c){this.connect(this.domNode,c,"_cssMouseEvent")},this);b.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(c){this.watch(c,b.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],
this.cssStateNodes[a]);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var c=this.connect(b.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(c)});break}},_setStateClass:function(){function a(f){c=
c.concat(b.map(c,function(i){return i+f}),"dijit"+f)}var c=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");this.checked&&a("Checked");this.state&&a(this.state);this.selected&&a("Selected");if(this.disabled)a("Disabled");else if(this.readOnly)a("ReadOnly");else if(this.active)a("Active");else this.hovering&&a("Hover");this._focused&&a("Focused");var e=this.stateNode||this.domNode,g={};b.forEach(e.className.split(" "),function(f){g[f]=true});"_stateClasses"in this&&b.forEach(this._stateClasses,
function(f){delete g[f]});b.forEach(c,function(f){g[f]=true});var j=[];for(var h in g)j.push(h);e.className=j.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function e(){var k="disabled"in f&&f.disabled||"readonly"in f&&f.readonly;b.toggleClass(a,c+"Hover",g&&!j&&!k);b.toggleClass(a,c+"Active",j&&!k);b.toggleClass(a,c+"Focused",h&&!k)}var g=false,j=false,h=false,f=this,i=b.hitch(this,"connect",a);i("onmouseenter",function(){g=true;e()});i("onmouseleave",function(){j=g=false;e()});
i("onmousedown",function(){j=true;e()});i("onmouseup",function(){j=false;e()});i("onfocus",function(){h=true;e()});i("onblur",function(){h=false;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return d._CssStateMixin});
define("dijit/form/_FormWidget",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin"],function(b,d){b.declare("dijit.form._FormWidget",[d._Widget,d._Templated,d._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:b.delegate(d._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=
this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this._set("disabled",a);b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a);d.setWaiState(this.focusNode,"disabled",a);if(a){this._set("hovering",false);this._set("active",false);a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode";
b.forEach(b.isArray(a)?a:[a],function(c){c=this[c];b.isWebKit||d.hasDefaultTabStop(c)?c.setAttribute("tabIndex","-1"):c.removeAttribute("tabIndex")},this)}else this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){b.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&
this.focusNode&&b.style(this.domNode,"display")!="none"},focus:function(){this.disabled||d.focus(this.focusNode)},compare:function(a,c){return typeof a=="number"&&typeof c=="number"?isNaN(a)&&isNaN(c)?0:a-c:a>c?1:a<c?-1:0},onChange:function(){},_onChangeActive:false,_handleOnChange:function(a,c){if(this._lastValueReported==undefined&&(c===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||c||c===undefined)&&this._pendingOnChange){this._lastValueReported=a;this._pendingOnChange=false;if(this._onChangeActive){this._onChangeHandle&&clearTimeout(this._onChangeHandle);this._onChangeHandle=setTimeout(b.hitch(this,function(){this._onChangeHandle=null;this.onChange(a)}),0)}}},create:function(){this.inherited(arguments);this._onChangeActive=true},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported)}this.inherited(arguments)},
setValue:function(a){b.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){b.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&b.mouseButtons.isLeft(a)&&this.isFocusable())var c=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(c)})}});b.declare("dijit.form._FormValueWidget",
d.form._FormWidget,{readOnly:false,attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);d.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(b.isIE<9||b.isIE&&b.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===undefined)this._lastValueReported=this._resetValue=this.value},
_setValueAttr:function(a,c){this._handleOnChange(a,c)},_handleOnChange:function(a){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,false)},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true)},_onKeyDown:function(a){if(a.keyCode==b.keys.ESCAPE&&!(a.ctrlKey||a.altKey||a.metaKey)){var c;if(b.isIE){a.preventDefault();c=document.createEventObject();c.keyCode=b.keys.ESCAPE;c.shiftKey=a.shiftKey;a.srcElement.fireEvent("onkeypress",
c)}}},_layoutHackIE7:function(){if(b.isIE==7)for(var a=this.domNode,c=a.parentNode,e=a.firstChild||a,g=e.style.filter,j=this;c&&c.clientHeight==0;){(function(){var h=j.connect(c,"onscroll",function(){j.disconnect(h);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=g},0)})})();c=c.parentNode}}});return d.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,d){b.declare("dijit.form.TextBox",d.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:b.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:b.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:b.delegate(d.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==d.form.TextBox.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},_setPlaceHolderAttr:function(a){this._set("placeHolder",
a);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=b.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after")}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,
c,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,c])},displayedValue:"",getDisplayedValue:function(){b.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.",
"","2.0");return this.get("displayedValue")},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},setDisplayedValue:function(a){b.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_setDisplayedValueAttr:function(a){if(a===null||a===undefined)a="";else if(typeof a!="string")a=String(a);this.textbox.value=a;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",
this.get("displayedValue"))},format:function(a){return a==null||a==undefined?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},_onInput:function(a){if(a&&a.type&&/key/i.test(a.type)&&a.keyCode)switch(a.keyCode){case b.keys.SHIFT:case b.keys.ALT:case b.keys.CTRL:case b.keys.TAB:return}if(this.intermediateChanges){var c=this;setTimeout(function(){c._handleOnChange(c.get("value"),false)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},
postCreate:function(){b.isIE&&setTimeout(b.hitch(this,function(){var a=b.getComputedStyle(this.domNode);if(a)if(a=a.fontFamily){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(var e=0;e<c.length;e++)c[e].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(b.isMoz||b.isOpera)this.connect(this.textbox,"oninput","_onInput");else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,
"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput")}},_blankValue:"",filter:function(a){if(a===null)return this._blankValue;if(typeof a!="string")return a;if(this.trim)a=b.trim(a);if(this.uppercase)a=a.toUpperCase();if(this.lowercase)a=a.toLowerCase();if(this.propercase)a=a.replace(/[^\s]+/g,function(c){return c.substring(0,1).toUpperCase()+c.substring(1)});return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),true)},_onBlur:function(){if(!this.disabled){this._setBlurValue();
this.inherited(arguments);this._selectOnClickHandle&&this.disconnect(this._selectOnClickHandle);if(this.selectOnClick&&b.isMoz)this.textbox.selectionStart=this.textbox.selectionEnd=undefined;this._updatePlaceHolder()}},_onFocus:function(a){if(!(this.disabled||this.readOnly)){if(this.selectOnClick&&a=="mouse")this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var c;if(b.isIE){c=b.doc.selection.createRange();c=c.parentElement()==this.textbox&&
c.text.length==0}else c=this.textbox.selectionStart==this.textbox.selectionEnd;c&&d.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});d.selectInputText=function(a,c,e){var g=b.global,j=b.doc;a=b.byId(a);if(isNaN(c))c=0;if(isNaN(e))e=a.value?a.value.length:0;d.focus(a);if(j.selection&&b.body().createTextRange){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveStart("character",
-99999);a.moveStart("character",c);a.moveEnd("character",e-c);a.select()}}else g.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,e)};return d.form.TextBox});define("text!dijit/templates/Tooltip.html",function(){return'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" dojoAttachPoint="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div\n></div>'});
define("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(b,d){b.declare("dijit._MasterTooltip",[d._Widget,d._Templated],{duration:d.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new d.BackgroundIframe(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,
duration:this.duration,onEnd:b.hitch(this,"_onHide")})},show:function(a,c,e,g){if(!(this.aroundNode&&this.aroundNode===c)){this.domNode.width="auto";if(this.fadeOut.status()=="playing")this._onDeck=arguments;else{this.containerNode.innerHTML=a;d.placeOnScreenAroundElement(this.domNode,c,d.getPopupAroundAlignment(e&&e.length?e:d.Tooltip.defaultPosition,!g),b.hitch(this,"orient"));b.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=c}}},orient:function(a,c,e,
g,j){this.connectorNode.style.top="";var h=g.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[c+"-"+e];this.domNode.style.width="auto";var f=b.contentBox(this.domNode),i=Math.min(Math.max(h,1),f.w),k=i<f.w;this.domNode.style.width=i+"px";if(k){this.containerNode.style.overflow=
"auto";k=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(k>i){k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight");this.domNode.style.width=k+"px"}}if(e.charAt(0)=="B"&&c.charAt(0)=="B"){a=b.marginBox(a);c=this.connectorNode.offsetHeight;if(a.h>g.h){this.connectorNode.style.top=g.h-j.h/2-c/2+"px";this.connectorNode.style.bottom=""}else{this.connectorNode.style.bottom=Math.min(Math.max(j.h/2-c/2,0),a.h-c)+"px";this.connectorNode.style.top=""}}else{this.connectorNode.style.top=
"";this.connectorNode.style.bottom=""}return Math.max(0,f.w-h)},_onShow:function(){if(b.isIE)this.domNode.style.filter=""},hide:function(a){if(this._onDeck&&this._onDeck[1]==a)this._onDeck=null;else if(this.aroundNode===a){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play()}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null}}});d.showTooltip=function(a,c,e,g){if(!d._masterTT)d._masterTT=
new d._MasterTooltip;return d._masterTT.show(a,c,e,g)};d.hideTooltip=function(a){if(!d._masterTT)d._masterTT=new d._MasterTooltip;return d._masterTT.hide(a)};b.declare("dijit.Tooltip",d._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(e){b.forEach(e,b.hitch(this,"disconnect"))},this);var c=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(c,function(e){return(e=b.byId(e))?[this.connect(e,"onmouseenter","_onTargetMouseEnter"),
this.connect(e,"onmouseleave","_onTargetMouseLeave"),this.connect(e,"onfocus","_onTargetFocus"),this.connect(e,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=c},addTarget:function(a){a=a.id||a;b.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=b.indexOf(this._connectIds,a.id||a);if(a>=0){this._connectIds.splice(a,1);this.set("connectId",this._connectIds)}},buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;b.forEach(b.isArrayLike(a)?a:[a],this.addTarget,this)},_onTargetMouseEnter:function(a){this._onHover(a)},_onTargetMouseLeave:function(a){this._onUnHover(a)},_onTargetFocus:function(a){this._focus=true;this._onHover(a)},_onTargetBlur:function(a){this._focus=false;this._onUnHover(a)},_onHover:function(a){if(!this._showTimer){var c=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(c)}),
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}d.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){if(this._connectNode){d.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)}});d.Tooltip.defaultPosition=["after","before"];return d.Tooltip});
(function(){function b(c,e,g,j,h,f){if(e[c]){g.push(c);if(e[c]===true||e[c]===1)j.push(h+c+"/"+f)}}function d(c,e,g,j,h){e=j+e+"/"+h;require._fileExists(c.nameToUrl(e,null))&&g.push(e)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",{version:"0.24.0",load:function(c,e,g,j){j=j||{};var h=a.exec(c),f=h[1],i=h[4],k=h[5],l=i.split("-"),q=[],m={},n,o,u="";if(h[5]){f=h[1];c=f+k}else{c=c;k=h[4];i=j.locale||(j.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||
"root").toLowerCase());l=i.split("-")}if(j.isBuild){q.push(c);d(e,"root",q,f,k);for(n=0;o=l[n];n++){u+=(u?"-":"")+o;d(e,u,q,f,k)}e(q);g()}else e([c],function(p){var s=[];b("root",p,s,q,f,k);for(n=0;o=l[n];n++){u+=(u?"-":"")+o;b(u,p,s,q,f,k)}e(q,function(){var v,t;for(v=s.length-1;v>-1&&(o=s[v]);v--){t=p[o];if(t===true||t===1)t=e(f+o+"/"+k);require.mixin(m,t)}g(m)})})}})})();
define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/form/ValidationTextBox",["dojo","dijit","text!dijit/form/templates/ValidationTextBox.html","dojo/i18n","dijit/form/TextBox","dijit/Tooltip","i18n!dijit/form/nls/validate"],function(b,d){b.declare("dijit.form.ValidationTextBox",d.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",
regExpGen:function(){return this.regExp},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,c){return(new RegExp("^(?:"+this.regExpGen(c)+")"+(this.required?"":"?")+"$")).test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,c)!==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 c="",e=this.disabled||this.isValid(a);if(e)this._maskValidSubsetError=true;var g=this._isEmpty(this.textbox.value),j=!e&&a&&this._isValidSubset();this._set("state",e?"":((!this._hasBeenBlurred||a)&&g||j)&&this._maskValidSubsetError?
"Incomplete":"Error");d.setWaiState(this.focusNode,"invalid",e?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=a&&j;c=this.getErrorMessage(a)}else if(this.state=="Incomplete"){c=this.getPromptMessage(a);this._maskValidSubsetError=!this._hasBeenBlurred||a}else if(g)c=this.getPromptMessage(a);this.set("message",c);return e},displayMessage:function(a){d.hideTooltip(this.domNode);a&&this._focused&&d.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 c="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(g){switch(g.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=g;break;case ")":c+="|$)";break;
default:c+="(?:"+g+"|$)";break}});try{"".search(c)}catch(e){c=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+c+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$")this.invalidMessage=this.messages.invalidMessage;if(!this.invalidMessage)this.invalidMessage=this.promptMessage;if(this.missingMessage=="$_unset_$")this.missingMessage=
this.messages.missingMessage;if(!this.missingMessage)this.missingMessage=this.invalidMessage;this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",a);d.setWaiState(this.focusNode,"required",a);this._refreshState()},_setMessageAttr:function(a){this._set("message",a);this.displayMessage(a)},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");
this.inherited(arguments)}});b.declare("dijit.form.MappedTextBox",d.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},serialize:function(a){return a.toString?a.toString():""},toString:function(){var a=this.filter(this.get("value"));return a!=null?typeof a=="string"?a:this.serialize(a,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);
this.valueNode=b.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});b.declare("dijit.form.RangeBoundTextBox",d.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,c){return("min"in c?this.compare(a,c.min)>=0:true)&&("max"in c?this.compare(a,c.max)<=0:true)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=
this.get("value"),c=false,e=false;if("min"in this.constraints){c=this.constraints.min;c=this.compare(a,typeof c=="number"&&c>=0&&a!=0?0:c);c=typeof c=="number"&&c<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 c||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 c=this.get("value");if(c!==null&&c!==""&&c!==undefined&&(typeof c!="number"||!isNaN(c))&&!this.isInRange(a))return this.rangeMessage;return this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage}},_setConstraintsAttr:function(){this.inherited(arguments);if(this.focusNode){this.constraints.min!==
undefined?d.setWaiState(this.focusNode,"valuemin",this.constraints.min):d.removeWaiState(this.focusNode,"valuemin");this.constraints.max!==undefined?d.setWaiState(this.focusNode,"valuemax",this.constraints.max):d.removeWaiState(this.focusNode,"valuemax")}},_setValueAttr:function(a){d.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return d.form.ValidationTextBox});
define("orion/util",["dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,d){function a(t){v=t}function c(){return v}function e(t){var y="",C=navigator.platform.indexOf("Mac")!==-1;if(t.mod1)y+=C?"Cmd+":"Ctrl+";if(t.mod2)y+="Shift+";if(t.mod3)y+="Alt+";if(t.alphaKey)return y+t.alphaKey;for(var D in b.keys)if(typeof(b.keys[D]==="number"))if(b.keys[D]===t.keyCode)return y+D;var A;switch(t.keyCode){case 59:A=t.mod2?":":";";break;case 61:A=t.mod2?"+":"=";break;case 188:A=t.mod2?"<":",";
break;case 190:A=t.mod2?">":".";break;case 191:A=t.mod2?"?":"/";break;case 192:A=t.mod2?"~":"`";break;case 219:A=t.mod2?"{":"[";break;case 220:A=t.mod2?"|":"\\";break;case 221:A=t.mod2?"}":"]";break;case 222:A=t.mod2?'"':"'";break}if(A)return y+A;return y+String.fromCharCode(t.keyCode)}function g(t,y){t.startup();if(typeof y==="string"){var C=b.byId(y);if(!C)if(C=d.byId(y))C=C.domNode;y=C?C:null}if(y){y=b.position(y);t._setStyleAttr("left:"+(y.x+16)+"px !important;");t._setStyleAttr("top:"+(y.y+16)+
"px !important;")}t.show()}function j(t,y,C,D,A,E,F,K){F=function(M){return function(L){var P=d.byId(t),Q=P.get("value");if(M&&L.keyCode===b.keys.ESCAPE){C&&b.style(y,"display","inline");P.destroyRecursive();E&&E()}else if(!(M&&L.keyCode!==b.keys.ENTER)){if(!P.isValid()||Q===D)C&&b.style(y,"display","inline");else A(Q);P.destroyRecursive();E&&E()}}};var G=new d.form.ValidationTextBox({id:t,required:true,value:D||""});b.place(G.domNode,y,"after");b.addClass(G.domNode,"userEditBoxPrompt");C&&b.style(y,
"display","none");b.connect(G,"onKeyDown",F(true));b.connect(G,"onBlur",F(false));window.setTimeout(function(){G.focus();if(D){var M=b.byId(t),L=K?D.indexOf(K):-1;L>0?d.selectInputText(M,0,L):M.select()}},0)}function h(t){var y=window.navigator.platform.indexOf("Mac")!==-1;return y&&t.metaKey||!y&&t.ctrlKey}function f(t,y){if(y&&h(y))window.open(t);else window.location=t}function i(t){if(!t)return t;var y=window.location.href.split("#")[0];y=y.substring(0,y.length-window.location.pathname.length);
if(t.indexOf(y)===0)return t.substring(y.length);return t}function k(t){var y,C,D,A,E;t=t.split("#");var F=t[t.length-1].split(/\?(?=(?:line|char))/);t=i(F[0]);if(F.length>1){F=F[1].split(/\&(?=(?:line|char))/);for(var K=0;K<F.length;K++){var G=F[K].split("=");if(G.length>1)switch(G[0]){case "char":G=G[1].split(",");if(D===undefined){y=window.parseInt(G[0]);if(G.length>1)C=window.parseInt(G[1])}else{A=G[0];if(G.length>1)E=window.parseInt(G[1]-A)}break;case "line":G=G[1].split(",");D=window.parseInt(G[0]);
break;default:break}}}return{filePath:t,start:y,end:C,line:D,offset:A,length:E}}function l(t,y,C,D,A,E){if(typeof y==="number"){t="#"+t+"?char="+y;if(typeof C==="number")t=t+","+C;else if(typeof E==="number")t=t+","+(y+E);return t}if(typeof D==="number"){t="#"+t+"?line="+D;if(typeof A==="number"){t=t+"&char="+A;if(typeof E==="number")t=t+","+(A+E)}return t}return"#"+t}function q(t){if(!t)return t;var y=window.location.href.split("#")[0];return y.substring(0,y.length-window.location.pathname.length)+
t}function m(t){return this.makeRelative(t).indexOf("/workspace")===0}function n(t,y){t.children=y;for(var C in y)y[C].parent=t;t.children.sort(function(D,A){var E=D.Directory;if(E!==A.Directory)return E?-1:1;D=D.Name&&D.Name.toLowerCase();A=A.Name&&A.Name.toLowerCase();if(D<A)return-1;if(D>A)return 1;return 0})}function o(t,y){t.Parents&&t.Parents.length===0&&y.getService("orion.core.preference").then(function(C){return C.getPreferences("/window/recent")}).then(function(C){var D=C.get("projects");
if(typeof D==="string")D=JSON.parse(D);var A=[];if(D&&D.length&&D.length>0)for(var E=0;E<D.length;E++)D[E].location!==t.ChildrenLocation&&D[E].name!==t.Name&&A.push(D[E]);A.push({name:t.Name,location:t.ChildrenLocation});if(A.length>5)A=A.slice(-5,A.length);C.put("projects",A)})}function u(t){return typeof t.textContent!=="undefined"?t.textContent:t.innerText}function p(t){return u(document.createTextNode(t))}function s(t,y){if(typeof t.textContent!=="undefined")t.textContent=y;else t.innerText=y}
var v=null;return{setUserName:a,getUserName:c,getUserKeyString:e,openDialog:g,getUserText:j,openInNewWindow:h,followLink:f,getPositionInfo:k,hashFromPosition:l,makeRelative:i,makeFullPath:q,isAtRoot:m,processNavigatorParent:n,rememberSuccessfulTraversal:o,getText:u,safeText:p,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(b,d){b.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,c){var e=this.containerNode;if(c&&typeof c=="number"){var g=this.getChildren();if(g&&g.length>=c){e=g[c-1].domNode;c="after"}}b.place(a.domNode,e,c);this._started&&!a._started&&a.startup()},removeChild:function(a){if(typeof a=="number")a=this.getChildren()[a];if(a)(a=
a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return this.getChildren().length>0},destroyDescendants:function(a){b.forEach(this.getChildren(),function(c){c.destroyRecursive(a)})},_getSiblingOfChild:function(a,c){a=a.domNode;c=c>0?"nextSibling":"previousSibling";do a=a[c];while(a&&(a.nodeType!=1||!d.byNode(a)));return a&&d.byNode(a)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
function(a){a.startup()});this.inherited(arguments)}}});return d._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,d){b.declare("dijit._KeyNavContainer",d._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,c){var e=this._keyNavCodes={},g=b.hitch(this,this.focusPrev),j=b.hitch(this,this.focusNext);b.forEach(a,function(h){e[h]=g});b.forEach(c,function(h){e[h]=j});e[b.keys.HOME]=b.hitch(this,"focusFirstChild");e[b.keys.END]=b.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){b.forEach(this.getChildren(),b.hitch(this,"_startupChild"))},addChild:function(a){d._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,c){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(c?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){if(a.target===
this.domNode){this.focusFirstChild();b.attr(this.domNode,"tabIndex","-1")}},_onBlur:function(){this.tabIndex&&b.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!(a.ctrlKey||a.altKey)){var c=this._keyNavCodes[a.charOrCode];if(c){c();b.stopEvent(a)}}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
c){if(a)a=this._getSiblingOfChild(a,c);for(var e=this.getChildren(),g=0;g<e.length;g++){a||(a=e[c>0?0:e.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,c)}return null}});return d._KeyNavContainer});define("text!dijit/templates/MenuItem.html",function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitem" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div dojoAttachPoint="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>'});
define("dijit/_Contained",["dojo","dijit"],function(b,d){b.declare("dijit._Contained",null,{getParent:function(){var a=d.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var c=this.domNode;do c=c[a+"Sibling"];while(c&&c.nodeType!=1);return c&&d.byNode(c)},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 d._Contained});
define("dijit/MenuItem",["dojo","dijit","text!dijit/templates/MenuItem.html","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/_CssStateMixin"],function(b,d){b.declare("dijit.MenuItem",[d._Widget,d._Templated,d._Contained,d._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(d._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",
accelKey:"",disabled:false,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var a=this.id+"_text";b.attr(this.containerNode,"id",a);if(this.accelKeyNode){b.attr(this.accelKeyNode,"id",this.id+"_accel");a+=" "+this.id+"_accel"}d.setWaiState(this.domNode,"labelledby",a);b.setSelectable(this.domNode,false)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);
this._set("hovering",false)},_onClick:function(a){this.getParent().onItemClick(this,a);b.stopEvent(a)},onClick:function(){},focus:function(){try{b.isIE==8&&this.containerNode.focus();d.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){d.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;b.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return d.MenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,d){b.declare("dijit.PopupMenuItem",d.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);d.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.popup=d.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");d.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){if(this.popup){this.popup._destroyed||this.popup.destroyRecursive();delete this.popup}this.inherited(arguments)}});return d.PopupMenuItem});define("text!dijit/templates/CheckedMenuItem.html",function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&nbsp;</td>\n</tr>'});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,d){b.declare("dijit.CheckedMenuItem",d.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:false,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);d.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 d.CheckedMenuItem});define("text!dijit/templates/MenuSeparator.html",function(){return'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>'});
define("dijit/MenuSeparator",["dojo","dijit","text!dijit/templates/MenuSeparator.html","dijit/_Widget","dijit/_Templated","dijit/_Contained"],function(b,d){b.declare("dijit.MenuSeparator",[d._Widget,d._Templated,d._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,false)},isFocusable:function(){return false}});return d.MenuSeparator});
define("dijit/Menu",["dojo","dijit","text!dijit/templates/Menu.html","dojo/window","dijit/_Widget","dijit/_KeyNavContainer","dijit/_Templated","dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"],function(b,d){b.declare("dijit._MenuBase",[d._Widget,d._Templated,d._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(!this._started){b.forEach(this.getChildren(),function(a){a.startup()});this.startupKeyNavChildren();this.inherited(arguments)}},onExecute:function(){},
onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.focusedChild._onClick(a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(false);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup)}},
onItemHover:function(a){if(this.isActive){this.focusChild(a);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer)this.hover_timer=setTimeout(b.hitch(this,"_openPopup"),this.popupDelay)}this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(false);var c=a.popup;if(c){this._stopPendingCloseTimer(c);c._pendingClose_timer=setTimeout(function(){c._pendingClose_timer=null;if(c.parentMenu)c.parentMenu.currentPopup=
null;d.popup.close(c)},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,c){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return false;if(a.popup)this._openPopup();else{this.onExecute();a.onClick(c)}},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var c=a.popup;if(!c.isShowingNow){if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);d.popup.close(this.currentPopup)}c.parentMenu=this;c.from_item=a;var e=this;d.popup.open({parent:this,
popup:c,around:a.domNode,orient:this._orient||(this.isLeftToRight()?{TR:"TL",TL:"TR",BR:"BL",BL:"BR"}:{TL:"TR",TR:"TL",BL:"BR",BR:"BL"}),onCancel:function(){e.focusChild(a);e._cleanUp();a._setSelected(true);e.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=c;c.connect(c.domNode,"onmouseenter",b.hitch(e,"_onPopupHover"));if(c.focus)c._focus_timer=setTimeout(b.hitch(c,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=true;b.replaceClass(this.domNode,
"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=true;this._markActive()},_markInactive:function(){this.isActive=false;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup){d._curFocus&&b.isDescendant(d._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus();d.popup.close(this.currentPopup);
this.currentPopup=null}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null}},_onItemFocus:function(a){this._hoveredChild&&this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();typeof this.isShowingNow=="undefined"&&this._markInactive()}});b.declare("dijit.Menu",d._MenuBase,{constructor:function(){this._bindings=[]},templateString:b.cache("dijit",
"templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(b.body()):b.forEach(this.targetNodeIds,this.bindDomNode,this);var a=b.keys,c=this.isLeftToRight();this._openSubMenuKey=c?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=c?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!(a.ctrlKey||a.altKey))switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);
b.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)this.parentMenu._isMenuBar?this.parentMenu.focusPrev():this.onCancel(false);else b.stopEvent(a);break}},_iframeContentWindow:function(a){return b.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&b.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&b.doc.frames[a.name]&&b.doc.frames[a.name].document||
null},bindDomNode:function(a){a=b.byId(a);var c;if(a.tagName.toLowerCase()=="iframe"){var e=a,g=this._iframeContentWindow(e);c=b.withGlobal(g,b.body)}else c=a==b.body()?b.doc.documentElement:a;var j={node:a,iframe:e};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(j));var h=b.hitch(this,function(f){return[b.connect(f,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(i){b.stopEvent(i);this._scheduleOpen(i.target,e,{x:i.pageX,y:i.pageY})}),b.connect(f,"onkeydown",this,function(i){if(i.shiftKey&&
i.keyCode==b.keys.F10){b.stopEvent(i);this._scheduleOpen(i.target,e)}})]});j.connects=c?h(c):[];if(e){j.onloadHandler=b.hitch(this,function(){var f=this._iframeContentWindow(e);c=b.withGlobal(f,b.body);j.connects=h(c)});e.addEventListener?e.addEventListener("load",j.onloadHandler,false):e.attachEvent("onload",j.onloadHandler)}},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(e){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var g=b.attr(c,a)-1,j=this._bindings[g];b.forEach(j.connects,b.disconnect);
var h=j.iframe;if(h)h.removeEventListener?h.removeEventListener("load",j.onloadHandler,false):h.detachEvent("onload",j.onloadHandler);b.removeAttr(c,a);delete this._bindings[g]}},_scheduleOpen:function(a,c,e){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:e})}),1)},_openMyself:function(a){function c(){k.refocus&&d.focus(l);d.popup.close(k)}var e=a.target,g=a.iframe;if(a=a.coords){if(g){e=b.position(g,true);var j=
this._iframeContentWindow(g);j=b.withGlobal(j,"_docScroll",b);var h=b.getComputedStyle(g),f=b._toPixelValue,i=(b.isIE&&b.isQuirks?0:f(g,h.paddingLeft))+(b.isIE&&b.isQuirks?f(g,h.borderLeftWidth):0);g=(b.isIE&&b.isQuirks?0:f(g,h.paddingTop))+(b.isIE&&b.isQuirks?f(g,h.borderTopWidth):0);a.x+=e.x+i-j.x;a.y+=e.y+g-j.y}}else{a=b.position(e,true);a.x+=10;a.y+=10}var k=this,l=d.getFocus(this);d.popup.open({popup:this,x:a.x,y:a.y,onExecute:c,onCancel:c,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=
function(){this.inherited("_onBlur",arguments);d.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return d.Menu});define("text!dijit/form/templates/Button.html",function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdojoAttachPoint="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/DropDownButton.html",function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdojoAttachPoint="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdojoAttachPoint="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/ComboButton.html",function(){return'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" dojoAttachPoint="buttonNode" dojoAttachEvent="ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" dojoAttachPoint="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdojoAttachPoint="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdojoAttachEvent="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" dojoAttachPoint="valueNode"\n\t\t/></td></tr></tbody\n></table>'});
define("dijit/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(b,d){b.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(a){if(!(this.disabled||this.readOnly)){b.stopEvent(a);this._docHandler=this.connect(b.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown()}},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var c=this.dropDown,e=false;if(a&&this._opened){var g=b.position(this._buttonNode,true);if(!(a.pageX>=g.x&&a.pageX<=g.x+g.w)||!(a.pageY>=g.y&&a.pageY<=g.y+g.h)){for(g=a.target;g&&!e;)if(b.hasClass(g,"dijitPopup"))e=true;else g=g.parentNode;if(e){g=a.target;if(c.onItemClick){for(var j;g&&!(j=d.byNode(g));)g=g.parentNode;j&&j.onClick&&j.getParent&&j.getParent().onItemClick(j,a)}return}}}this._opened&&c.focus&&c.autoFocus!==false&&window.setTimeout(b.hitch(c,
"focus"),1)},_onDropDownClick:function(a){this._stopClickEvents&&b.stopEvent(a)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.addClass(this._arrowWrapperNode||
this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){if(this.dropDown){this.dropDown._destroyed||this.dropDown.destroyRecursive();delete this.dropDown}this.inherited(arguments)},_onKey:function(a){if(!(this.disabled||
this.readOnly)){var c=this.dropDown,e=a.target;if(c&&this._opened&&c.handleKey)if(c.handleKey(a)===false){b.stopEvent(a);return}if(c&&this._opened&&a.charOrCode==b.keys.ESCAPE){this.closeDropDown();b.stopEvent(a)}else if(!this._opened&&(a.charOrCode==b.keys.DOWN_ARROW||(a.charOrCode==b.keys.ENTER||a.charOrCode==" ")&&((e.tagName||"").toLowerCase()!=="input"||e.type&&e.type.toLowerCase()!=="text"))){this._toggleOnKeyUp=true;b.stopEvent(a)}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(b.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(d._curFocus&&this.dropDown&&b.isDescendant(d._curFocus,this.dropDown.domNode));this.inherited(arguments)},isLoaded:function(){return true},loadDropDown:function(a){a()},toggleDropDown:function(){if(!(this.disabled||this.readOnly))if(this._opened)this.closeDropDown();else this.isLoaded()?this.openDropDown():this.loadDropDown(b.hitch(this,"openDropDown"))},openDropDown:function(){var a=
this.dropDown,c=a.domNode,e=this._aroundNode||this.domNode,g=this;if(!this._preparedNode){this._preparedNode=true;if(c.style.width)this._explicitDDWidth=true;if(c.style.height)this._explicitDDHeight=true}if(this.maxHeight||this.forceWidth||this.autoWidth){var j={display:"",visibility:"hidden"};if(!this._explicitDDWidth)j.width="";if(!this._explicitDDHeight)j.height="";b.style(c,j);j=this.maxHeight;if(j==-1){j=b.window.getBox();var h=b.position(e,false);j=Math.floor(Math.max(h.y,j.h-(h.y+h.h)))}a.startup&&
!a._started&&a.startup();d.popup.moveOffScreen(a);h=b._getMarginSize(c);var f=j&&h.h>j;b.style(c,{overflowX:"hidden",overflowY:f?"auto":"hidden"});if(f){h.h=j;if("w"in h)h.w+=16}else delete h.h;if(this.forceWidth)h.w=e.offsetWidth;else if(this.autoWidth)h.w=Math.max(h.w,e.offsetWidth);else delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(c,h)}a=d.popup.open({parent:this,popup:a,around:e,orient:d.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:
["below"],this.isLeftToRight()),onExecute:function(){g.closeDropDown(true)},onCancel:function(){g.closeDropDown(true)},onClose:function(){b.attr(g._popupStateNode,"popupActive",false);b.removeClass(g._popupStateNode,"dijitHasDropDownOpen");g._opened=false}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(g._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return a},closeDropDown:function(a){if(this._opened){a&&this.focus();d.popup.close(this.dropDown);this._opened=false}}});
return d._HasDropDown});
define("dijit/form/Button",["dojo","dijit","text!dijit/form/templates/Button.html","text!dijit/form/templates/DropDownButton.html","text!dijit/form/templates/ComboButton.html","dijit/form/_FormWidget","dijit/_Container","dijit/_HasDropDown"],function(b,d){b.declare("dijit.form.Button",d.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(d.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 c=this.domNode;c.parentNode;c=c.parentNode){var e=d.byNode(c);if(e&&typeof e._onSubmit=="function"){e._onSubmit(a);break}}else if(this.valueNode){this.valueNode.click();a.preventDefault()}},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,
false)},_fillContent:function(a){if(a&&(!this.params||!("label"in this.params)))this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&b.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return true},_clicked:function(){},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this._set("label",a);this.containerNode.innerHTML=
a;if(this.showLabel==false&&!this.params.title)this.titleNode.title=b.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){b.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});b.declare("dijit.form.DropDownButton",[d.form.Button,d._Container,d._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);d.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=d.byNode(a);delete this.dropDownContainer}this.dropDown&&d.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 c=b.connect(a,"onLoad",this,function(){b.disconnect(c);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",d.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(d.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",
cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){d.focus(this._popupStateNode);b.stopEvent(a)}},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){d.focus(this.titleNode);b.stopEvent(a)}},focus:function(a){this.disabled||d.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",d.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:b.mixin(b.clone(d.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,c){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);d.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,c)},setChecked:function(a){b.deprecated("setChecked("+a+") is deprecated. Use set('checked',"+
a+") instead.","","2.0");this.set("checked",a)},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false)}});return d.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,d){return d.form.DropDownButton});
define("orion/commands",["dojo","dijit","orion/util","dijit/Menu","dijit/form/DropDownButton","dijit/MenuItem","dijit/PopupMenuItem","dijit/MenuSeparator"],function(b,d,a){function c(h){this._domScope={};this._objectScope={};this._globalScope={};this._namedGroups={};this._activeBindings={};this._init(h)}function e(h){this._init(h)}function g(h,f,i,k,l){this.keyCode=typeof h==="string"?h.toUpperCase().charCodeAt(0):h;this.mod1=f!==undefined&&f!==null?f:false;this.mod2=i!==undefined&&i!==null?i:false;
this.mod3=k!==undefined&&k!==null?k:false;this.mod4=l!==undefined&&l!==null?l:false}c.prototype={_init:function(h){this._registry=h.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._selection=h.selection;b.connect(window.document,"onkeydown",b.hitch(this,function(f){f=f||window.event;var i=f.target.nodeName.toLowerCase();if(i==="input")switch(f.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(i===
"textarea")return;this._processKey(f)}))},_processKey:function(h){function f(q){if(window.document.all)q.keyCode=0;else{q.preventDefault();q.stopPropagation()}}for(var i in this._activeBindings)if(this._activeBindings[i]&&this._activeBindings[i].keyBinding&&this._activeBindings[i].command)if(this._activeBindings[i].keyBinding.match(h)){var k=this._activeBindings[i],l=k.command;if(l.hrefCallback){f(h);h=l.hrefCallback.call(k.handler||window,k.items,i,k.userData);h.then?h.then(function(q){window.open(q)}):
window.open(h);return}else if(l.callback){f(h);window.setTimeout(function(){l.callback.call(k.handler||window,k.items,i,null,k.userData)},0);return}}},getSelectionService:function(){return this._selection},showKeyBindings:function(h){for(var f in this._activeBindings)this._activeBindings[f]&&this._activeBindings[f].keyBinding&&this._activeBindings[f].command&&b.place("<span>"+a.getUserKeyString(this._activeBindings[f].keyBinding)+" = "+this._activeBindings[f].command.name+"<br></span>",h,"last")},
addCommand:function(h,f){switch(f){case "dom":this._domScope[h.id]=h;break;case "object":this._objectScope[h.id]=h;break;case "global":this._globalScope[h.id]=h;break;default:throw"unrecognized command scope "+f;}},addCommandGroup:function(h,f,i,k,l){var q=this._namedGroups;if(k)q=this._createEntryForPath(k);if(q[h]){if(i)q[h].title=i;if(f)q[h].position=f;if(l)q[h].scopeId=l}else{q[h]={title:i,position:f,children:{},scopeId:l};q.sortedCommands=null}},_createEntryForPath:function(h){var f=this._namedGroups;
if(h){h=h.split("/");for(var i=0;i<h.length;i++)if(h[i].length>1){f[h[i]]||(f[h[i]]={position:0,children:{}});f=f[h[i]].children}}return f},registerCommandContribution:function(h,f,i,k,l,q){k=this._createEntryForPath(k);k[h]={scopeId:i,position:f};if(l)if(f=this._domScope[h]||this._globalScope[h])this._activeBindings[h]={command:f,keyBinding:l,keyOnly:q};k.sortedCommands=null},_isLastChildSeparator:function(h,f){if(f==="image")return h.childNodes.length>0&&b.hasClass(h.childNodes[h.childNodes.length-
1],"commandSeparator");if(f==="menu"){h=h.getChildren();return h.length>0&&h[h.length-1]instanceof d.MenuSeparator}return false},renderCommands:function(h,f,i,k,l,q,m,n){if(typeof h==="string")h=b.byId(h);if(i){var o;if(f==="object")o=this._objectScope;else if(f==="dom")o=this._domScope;else if(f==="global")o=this._globalScope;else throw"Unrecognized command scope "+f;this._render(this._namedGroups,h,f,i,k,l,q,m,o,n);if(l==="image")this._isLastChildSeparator(h,l)&&h.removeChild(h.childNodes[h.childNodes.length-
1]);else if(l==="menu")if(this._isLastChildSeparator(h,l)){i=h.getChildren()[h.getChildren().length-1];h.removeChild(i);i.destroy()}}else{var u=this;this._selection&&this._selection.getSelections(function(p){u.renderCommands(h,f,p,k,l,q,m,n)})}},_render:function(h,f,i,k,l,q,m,n,o,u){var p=h.sortedCommands;if(!p){p=[];for(var s in h){var v=h[s];if(v&&typeof v.position==="number"){v.id=s;p.push(v)}}p.sort(function(E,F){return E.position-F.position});h.sortedCommands=p}for(h=0;h<p.length;h++){var t;
if(p[h].children){s=p[h];if(!(s.scopeId&&f.id!==s.scopeId)){var y;if(q==="image")if(s.title){v=new d.Menu({style:"display: none;"});v.eclipseScopeId=f.eclipseScopeId||f.id;this._render(p[h].children,v,i,k,l,"menu",m,n,o,u);y=v.getChildren();if(this._isLastChildSeparator(v,"menu")){t=y[y.length-1];v.removeChild(t);t.destroy();y=v.getChildren()}if(y.length>0){var C=true;t=y[0].eclipseCommand;if(y.length===1)C=!(t&&t.hasImage());if(C){t=new d.form.DropDownButton({label:s.title,dropDown:v});b.addClass(t.domNode,
"commandLink");m&&b.addClass(t.domNode,m);b.place(t.domNode,f,"last")}else{v="image"+t.id+h;s=t._asImage(v,k,l,n,u);b.place(s,f,"last")}}}else{var D;if(f.childNodes.length>0&&!this._isLastChildSeparator(f,q)){D=this.generateSeparatorImage();b.place(D,f,"last")}this._render(p[h].children,f,i,k,l,q,m,n,o,u);if(f.childNodes.length>0)if(f.childNodes[f.childNodes.length-1]!==D){D=this.generateSeparatorImage();b.place(D,f,"last")}}else if(s.title){v=new d.Menu;this._render(p[h].children,v,i,k,l,q,m,n,o,
u);v.getChildren().length>0&&f.addChild(new d.PopupMenuItem({label:s.title,popup:v}))}else{var A;if(f.getChildren().length>0&&!this._isLastChildSeparator(f,q)){A=new d.MenuSeparator;f.addChild(A)}this._render(p[h].children,f,i,k,l,q,m,n,o,u);s=f.getChildren();if(s[s.length-1]!==A){A=new d.MenuSeparator;f.addChild(A)}}}}else{v=(s=o[p[h].id])?true:false;if(s){if(i==="dom")v=q==="image"?f.id===p[h].scopeId:q==="menu"?f.eclipseScopeId===p[h].scopeId:false;if(this._activeBindings[s.id]&&this._activeBindings[s.id].keyBinding){t=
this._activeBindings[s.id];t.items=k;t.userData=n;t.handler=l;if(t.keyOnly)v=false}if(v&&s.visibleWhen)v=s.visibleWhen(k)}if(v)if(s.choiceCallback){v=new d.Menu({style:"display: none;"});if(q==="image"){t=new d.form.DropDownButton({label:s.name,dropDown:v});if(s.image){b.addClass(t.iconNode,"commandImage");m&&b.addClass(t.iconNode,m);t.iconNode.src=s.image}b.place(t.domNode,f,"last");t.eclipseCommand=s;t.eclipseChoices=v;b.connect(t,"onClick",t,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
k,l,n)})}else if(q==="menu"){t=new d.PopupMenuItem({label:s.name,popup:v});f.addChild(t);t.eclipseCommand=s;t.eclipseChoices=v;b.connect(f,"_openPopup",t,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,k,l,n)})}}else if(q==="image"){v="image"+s.id+h;s=s._asImage(v,k,l,n,m,u);b.place(s,f,"last")}else q==="menu"&&s._addMenuItem(f,k,l,n,m)}}},generateSeparatorImage:function(){var h=new Image;h.src="/images/sep.gif";b.addClass(h,"commandImage");b.addClass(h,"commandSeparator");
return h}};c.prototype.constructor=c;e.prototype={_init:function(h){this.id=h.id;this.name=h.name||"Empty Command";this.tooltip=h.tooltip||h.name;this.callback=h.callback;this.hrefCallback=h.hrefCallback;this.choiceCallback=h.choiceCallback;this.image=h.image||"/images/none.png";this.visibleWhen=h.visibleWhen;this._deviceSupportsHover=false},_asImage:function(h,f,i,k,l,q){i=i||this;var m=new Image,n=b.create("a");n.id=this.name+"link";m.alt=this.name;m.title=this.name;m.name=h;m.id=h;if(q||!this.hasImage()){h=
window.document.createTextNode(this.name);b.place(h,n,"last")}if(this.hrefCallback){h=this.hrefCallback.call(i,f,this.id,k);if(h.then)h.then(function(o){n.href=o});else n.href=h}else if(this.callback)!q&&this.hasImage()?b.connect(m,"onclick",this,function(){this.callback.call(i,f,this.id,m.id,k)}):b.connect(n,"onclick",this,function(){this.callback.call(i,f,this.id,n.id,k)});if(!q&&this.hasImage()){if(this._deviceSupportsHover){m.src="/images/none.png";b.connect(m,"onmouseover",this,function(){m.src=
this.image});b.connect(m,"onmouseout",this,function(){m.src="/images/none.png"})}else{m.src=this.image;b.connect(m,"onmouseover",this,function(){b.addClass(m,"commandOver")});b.connect(m,"onmouseout",this,function(){m.src=this.image;b.removeClass(m,"commandOver")})}b.addClass(m,"commandImage");l&&b.addClass(m,l);b.place(m,n,"last")}b.addClass(n,"commandLink");l&&b.addClass(n,l);return n},_asLink:function(h,f,i){f=f||this;var k=window.document.createElement("a");b.place(window.document.createTextNode(this.name),
k,"only");k.href="";k.id=this.id+"link";if(this.callback)b.connect(k,"onclick",this,function(){this.callback.call(f,h,this.id,k.id)});else if(this.hrefCallback){var l=this.hrefCallback.call(f,h,this.id);if(l)if(l.then)l.then(function(q){k.href=q});else k.href=l}b.addClass(k,"commandLink");i&&b.addClass(k,i);return k},_addMenuItem:function(h,f,i,k,l){var q=new d.MenuItem({labelType:this.hrefCallback?"html":"text",label:this.name,tooltip:this.tooltip});if(this.hrefCallback){var m=this.hrefCallback.call(i,
f,this.id,h.id,k);if(m)if(m.then)m.then(b.hitch(this,function(n){q.set("label","<a href='"+n+"'>"+this.name+"</a>");q.onClick=function(o){a.followLink(n,o)}}));else{q.set("label","<a href='"+m+"'>"+this.name+"</a>");q.onClick=function(n){a.followLink(m,n)}}}else if(this.callback)q.onClick=b.hitch(this,function(){this.callback.call(i,f,this.id,null,k)});q.eclipseCommand=this;h.addChild(q);if(this.image){b.addClass(q.iconNode,"commandImage");l&&b.addClass(q.iconNode,l);q.iconNode.src=this.image}},populateChoicesMenu:function(h,
f,i,k){h.focusedChild=null;b.forEach(h.getChildren(),function(m){h.removeChild(m);m.destroy()});i=this.getChoices(f,i,k);for(k=0;k<i.length;k++){var l=i[k],q;if(l.name){q=new d.MenuItem({label:l.name,onClick:this.makeChoiceCallback(l,f)});if(l.image){b.addClass(q.iconNode,"commandImage");q.iconNode.src=l.image}}else q=new d.MenuSeparator;h.addChild(q)}},getChoices:function(h,f,i){if(this.choiceCallback)return this.choiceCallback.call(f,h,i);return null},makeChoiceCallback:function(h,f){return function(i){h.callback&&
h.callback.call(h,f,i)}},hasImage:function(){return this.image!=="/images/none.png"}};e.prototype.constructor=e;var j=window.navigator.platform.indexOf("Mac")!==-1;g.prototype={match:function(h){if(this.keyCode===h.keyCode){if(this.mod1!==(j?h.metaKey:h.ctrlKey))return false;if(this.mod2!==h.shiftKey)return false;if(this.mod3!==h.altKey)return false;if(j&&this.mod4!==h.ctrlKey)return false;return true}return false},equals:function(h){if(!h)return false;if(this.keyCode!==h.keyCode)return false;if(this.mod1!==
h.mod1)return false;if(this.mod2!==h.mod2)return false;if(this.mod3!==h.mod3)return false;if(this.mod4!==h.mod4)return false;return true}};g.prototype.constructor=g;return{CommandService:c,CommandKeyBinding:g,Command:e}});var orion=orion||{};orion.textview=orion.textview||{};
orion.textview.KeyBinding=function(){function b(a,c,e,g,j){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=c!==undefined&&c!==null?c:false;this.mod2=e!==undefined&&e!==null?e:false;this.mod3=g!==undefined&&g!==null?g:false;this.mod4=j!==undefined&&j!==null?j:false}var d=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(d?a.metaKey:a.ctrlKey))return false;if(this.mod2!==a.shiftKey)return false;if(this.mod3!==
a.altKey)return false;if(d&&this.mod4!==a.ctrlKey)return false;return true}return false},equals:function(a){if(!a)return false;if(this.keyCode!==a.keyCode)return false;if(this.mod1!==a.mod1)return false;if(this.mod2!==a.mod2)return false;if(this.mod3!==a.mod3)return false;if(this.mod4!==a.mod4)return false;return true}};return b}();typeof window!=="undefined"&&typeof window.define!=="undefined"&&define("orion/textview/keyBinding",[],function(){return orion.textview});
define("text!dijit/templates/Dialog.html",function(){return'<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">\n\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent"></div>\n</div>'});
define("dojo/dnd/common",["dojo"],function(b){b.getObject("dnd",true,b);b.dnd.getCopyKeyState=b.isCopyKey;b.dnd._uniqueId=0;b.dnd.getUniqueId=function(){var d;do d=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(d));return d};b.dnd._empty={};b.dnd.isFormElement=function(d){d=d.target;if(d.nodeType==3)d=d.parentNode;return" button textarea input select option ".indexOf(" "+d.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",true,b);b.dnd.getViewport=b.window.getBox;b.dnd.V_TRIGGER_AUTOSCROLL=32;b.dnd.H_TRIGGER_AUTOSCROLL=32;b.dnd.V_AUTOSCROLL_VALUE=16;b.dnd.H_AUTOSCROLL_VALUE=16;b.dnd.autoScroll=function(d){var a=b.window.getBox(),c=0,e=0;if(d.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)c=-b.dnd.H_AUTOSCROLL_VALUE;else if(d.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)c=b.dnd.H_AUTOSCROLL_VALUE;if(d.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)e=-b.dnd.V_AUTOSCROLL_VALUE;
else if(d.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)e=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(c,e)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(d){for(var a=d.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var c=b.getComputedStyle(a);if(c.overflow.toLowerCase()in b.dnd._validOverflow){var e=b._getContentBox(a,c);c=b.position(a,true);var g=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,e.w/2),j=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
e.h/2),h=d.pageX-c.x,f=d.pageY-c.y,i=c=0;if(b.isWebKit||b.isOpera){h+=b.body().scrollLeft;f+=b.body().scrollTop}if(h>0&&h<e.w)if(h<g)c=-g;else if(h>e.w-g)c=g;if(f>0&&f<e.h)if(f<j)i=-j;else if(f>e.h-j)i=j;e=a.scrollLeft;g=a.scrollTop;a.scrollLeft+=c;a.scrollTop+=i;if(e!=a.scrollLeft||g!=a.scrollTop)return}}try{a=a.parentNode}catch(k){a=null}}b.dnd.autoScroll(d)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(d,a,c){this.node=b.byId(d);var e=a.touches?a.touches[0]:a;this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=a.button;a=this.host=c;d=d.ownerDocument;this.events=[b.connect(d,"onmousemove",this,"onFirstMove"),b.connect(d,"ontouchmove",this,"onFirstMove"),b.connect(d,"onmousemove",this,"onMouseMove"),b.connect(d,"ontouchmove",this,"onMouseMove"),b.connect(d,
"onmouseup",this,"onMouseUp"),b.connect(d,"ontouchend",this,"onMouseUp"),b.connect(d,"ondragstart",b.stopEvent),b.connect(d.body,"onselectstart",b.stopEvent)];a&&a.onMoveStart&&a.onMoveStart(this)},onMouseMove:function(d){b.dnd.autoScroll(d);var a=this.marginBox,c=d.touches?d.touches[0]:d;this.host.onMove(this,{l:a.l+c.pageX,t:a.t+c.pageY},d);b.stopEvent(d)},onMouseUp:function(d){if(b.isWebKit&&b.isMac&&this.mouseButton==2?d.button==0:this.mouseButton==d.button)this.destroy();b.stopEvent(d)},onFirstMove:function(d){var a=
this.node.style,c,e=this.host;switch(a.position){case "relative":case "absolute":c=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);c=b.doc.body;var g=b.getComputedStyle(c),j=b._getMarginBox(c,g);g=b._getContentBox(c,g);c=a.l-(g.l-j.l);a=a.t-(g.t-j.t);break}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;e&&e.onFirstMove&&e.onFirstMove(this,d);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var d=this.host;d&&d.onMoveStop&&d.onMoveStop(this);this.events=this.node=this.host=null}});return b.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(b){b.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(d,a){this.node=b.byId(d);a||(a={});this.handle=a.handle?b.byId(a.handle):null;if(!this.handle)this.handle=this.node;this.delay=a.delay>0?a.delay:0;this.skip=a.skip;this.mover=a.mover?a.mover:b.dnd.Mover;this.events=[b.connect(this.handle,"onmousedown",this,"onMouseDown"),b.connect(this.handle,"ontouchstart",this,"onMouseDown"),b.connect(this.handle,
"ondragstart",this,"onSelectStart"),b.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(d,a){return new b.dnd.Moveable(a,d)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(d){if(!(this.skip&&b.dnd.isFormElement(d))){if(this.delay){this.events.push(b.connect(this.handle,"onmousemove",this,"onMouseMove"),b.connect(this.handle,"ontouchmove",this,"onMouseMove"),b.connect(this.handle,"onmouseup",this,
"onMouseUp"),b.connect(this.handle,"ontouchend",this,"onMouseUp"));var a=d.touches?d.touches[0]:d;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(d);b.stopEvent(d)}},onMouseMove:function(d){var a=d.touches?d.touches[0]:d;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay){this.onMouseUp(d);this.onDragDetected(d)}b.stopEvent(d)},onMouseUp:function(d){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(d)},onSelectStart:function(d){if(!this.skip||
!b.dnd.isFormElement(d))b.stopEvent(d)},onDragDetected:function(d){new this.mover(this.node,d,this)},onMoveStart:function(d){b.publish("/dnd/move/start",[d]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(d){b.publish("/dnd/move/stop",[d]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(d,a){this.onMoving(d,a);var c=d.node.style;c.left=a.l+"px";c.top=a.t+"px";this.onMoved(d,a)},onMoving:function(){},
onMoved:function(){}});return b.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(b){b.declare("dojo.dnd.move.constrainedMoveable",b.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(d,a){return new b.dnd.move.constrainedMoveable(a,d)},constructor:function(d,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(d){var a=this.constraintBox=this.constraints.call(this,d);a.r=a.l+a.w;a.b=a.t+a.h;if(this.within){d=b._getMarginSize(d.node);a.r-=d.w;
a.b-=d.h}},onMove:function(d,a){var c=this.constraintBox,e=d.node.style;this.onMoving(d,a);a.l=a.l<c.l?c.l:c.r<a.l?c.r:a.l;a.t=a.t<c.t?c.t:c.b<a.t?c.b:a.t;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(d,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(d,a){return new b.dnd.move.boxConstrainedMoveable(a,d)},constructor:function(d,a){var c=a&&a.box;this.constraints=function(){return c}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(d,a){return new b.dnd.move.parentConstrainedMoveable(a,d)},constructor:function(d,a){var c=a&&a.area;this.constraints=function(){var e=this.node.parentNode,g=b.getComputedStyle(e),j=b._getMarginBox(e,g);if(c=="margin")return j;var h=b._getMarginExtents(e,g);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;if(c=="border")return j;h=b._getBorderExtents(e,g);j.l+=h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;if(c=="padding")return j;h=b._getPadExtents(e,g);j.l+=
h.l;j.t+=h.t;j.w-=h.w;j.h-=h.h;return j}}});b.dnd.constrainedMover=b.dnd.move.constrainedMover;b.dnd.boxConstrainedMover=b.dnd.move.boxConstrainedMover;b.dnd.parentConstrainedMover=b.dnd.move.parentConstrainedMover;return b.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(b){(function(){var d=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,c){c||(c={});if(c.timeout&&typeof c.timeout=="number"&&c.timeout>=0)this.timeout=c.timeout},markupFactory:function(a,c){return new b.dnd.TimedMoveable(c,a)},onMoveStop:function(a){if(a._timer){clearTimeout(a._timer);d.call(this,a,a._leftTop)}b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,c){a._leftTop=c;if(!a._timer){var e=this;a._timer=setTimeout(function(){a._timer=null;d.call(e,a,a._leftTop)},this.timeout)}}})})();return b.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(b){b.declare("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(d){var a=this;b.mixin(a,d);a.node=d.node;a._showArgs=b.mixin({},d);a._showArgs.node=a.node;a._showArgs.duration=a.showDuration;a.showAnim=a.showFunc(a._showArgs);a._hideArgs=b.mixin({},d);a._hideArgs.node=a.node;a._hideArgs.duration=a.hideDuration;a.hideAnim=a.hideFunc(a._hideArgs);b.connect(a.showAnim,"beforeBegin",b.hitch(a.hideAnim,
"stop",true));b.connect(a.hideAnim,"beforeBegin",b.hitch(a.showAnim,"stop",true))},show:function(d){return this.showAnim.play(d||0)},hide:function(d){return this.hideAnim.play(d||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var d={_fire:function(e,g){if(this[e])this[e].apply(this,g||[]);return this}},a=function(e){this._index=-1;this._animations=e||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(g){this.duration+=g.duration;if(g.delay)this.duration+=g.delay},this)};b.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){b.disconnect(this._onAnimateCtx);b.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length)this._fire("onEnd");else{this._current=this._animations[++this._index];this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true)}},play:function(e,g){if(!this._current)this._current=this._animations[this._index=0];if(!g&&this._current.status()=="playing")return this;var j=b.connect(this._current,"beforeBegin",this,
function(){this._fire("beforeBegin")}),h=b.connect(this._current,"onBegin",this,function(){this._fire("onBegin",arguments)}),f=b.connect(this._current,"onPlay",this,function(){this._fire("onPlay",arguments);b.disconnect(j);b.disconnect(h);b.disconnect(f)});this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&b.disconnect(this._onEndCtx);this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,
arguments);return this},pause:function(){if(this._current){var e=b.connect(this._current,"onPause",this,function(){this._fire("onPause",arguments);b.disconnect(e)});this._current.pause()}return this},gotoPercent:function(e,g){this.pause();var j=this.duration*e;this._current=null;b.some(this._animations,function(h){if(h.duration<=j){this._current=h;return true}j-=h.duration;return false});this._current&&this._current.gotoPercent(j/this._current.duration,g);return this},stop:function(e){if(this._current){if(e){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(true);this._current=this._animations[this._index]}var g=b.connect(this._current,"onStop",this,function(){this._fire("onStop",arguments);b.disconnect(g)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onEndCtx&&b.disconnect(this._onEndCtx)}});b.extend(a,d);b.fx.chain=function(e){return new a(e)};
var c=function(e){this._animations=e||[];this._connects=[];this.duration=this._finished=0;b.forEach(e,function(j){var h=j.duration;if(j.delay)h+=j.delay;if(this.duration<h)this.duration=h;this._connects.push(b.connect(j,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var g=this;b.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(j){g._connects.push(b.connect(g._pseudoAnimation,j,function(){g._fire(j,
arguments)}))})};b.extend(c,{_doAction:function(e,g){b.forEach(this._animations,function(j){j[e].apply(j,g)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,g){var j=this._pseudoAnimation;j[e].apply(j,g)},play:function(){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(e,g){var j=
this.duration*e;b.forEach(this._animations,function(h){h.gotoPercent(h.duration<j?1:j/h.duration,g)});this._call("gotoPercent",arguments);return this},stop:function(){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,b.disconnect)}});b.extend(c,d);b.fx.combine=function(e){return new c(e)};b.fx.wipeIn=function(e){var g=e.node=b.byId(e.node),j=g.style,h;e=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
j.overflow;j.overflow="hidden";if(j.visibility=="hidden"||j.display=="none"){j.height="1px";j.display="";j.visibility="";return 1}else{var f=b.style(g,"height");return Math.max(f,1)}},end:function(){return g.scrollHeight}}}},e));b.connect(e,"onEnd",function(){j.height="auto";j.overflow=h});return e};b.fx.wipeOut=function(e){var g=(e.node=b.byId(e.node)).style,j;e=b.animateProperty(b.mixin({properties:{height:{end:1}}},e));b.connect(e,"beforeBegin",function(){j=g.overflow;g.overflow="hidden";g.display=
""});b.connect(e,"onEnd",function(){g.overflow=j;g.height="auto";g.display="none"});return e};b.fx.slideTo=function(e){var g=null,j=null,h=function(f){return function(){var i=b.getComputedStyle(f),k=i.position;g=k=="absolute"?f.offsetTop:parseInt(i.top)||0;j=k=="absolute"?f.offsetLeft:parseInt(i.left)||0;if(k!="absolute"&&k!="relative"){i=b.position(f,true);g=i.y;j=i.x;f.style.position="absolute";f.style.top=g+"px";f.style.left=j+"px"}}}(e.node=b.byId(e.node));h();e=b.animateProperty(b.mixin({properties:{top:e.top||
0,left:e.left||0}},e));b.connect(e,"beforeBegin",e,h);return e}})();return b.fx});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,d){b.declare("dijit.form._FormMixin",null,{state:"",reset:function(){b.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=false;return b.every(b.map(this.getDescendants(),function(c){c._hasBeenBlurred=true;var e=c.disabled||!c.validate||c.validate();if(!e&&!a){b.window.scrollIntoView(c.containerNode||c.domNode);c.focus();a=true}return e}),function(c){return c})},setValues:function(a){b.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var c={};b.forEach(this.getDescendants(),function(h){if(h.name)(c[h.name]||(c[h.name]=[])).push(h)});for(var e in c)if(c.hasOwnProperty(e)){var g=c[e],j=b.getObject(e,false,a);if(j!==undefined){b.isArray(j)||(j=[j]);if(typeof g[0].checked=="boolean")b.forEach(g,function(h){h.set("value",b.indexOf(j,h.value)!=-1)});else g[0].multiple?g[0].set("value",j):b.forEach(g,function(h,
f){h.set("value",j[f])})}}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};b.forEach(this.getDescendants(),function(c){var e=c.name;if(!(!e||c.disabled)){var g=c.get("value");if(typeof c.checked=="boolean")if(/Radio/.test(c.declaredClass))if(g!==false)b.setObject(e,g,a);else{g=b.getObject(e,false,a);g===undefined&&b.setObject(e,null,a)}else{c=b.getObject(e,false,a);
if(!c){c=[];b.setObject(e,c,a)}g!==false&&c.push(g)}else{c=b.getObject(e,false,a);if(typeof c!="undefined")b.isArray(c)?c.push(g):b.setObject(e,[c,g],a);else b.setObject(e,g,a)}}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(c){return c.get("state")||""});return b.indexOf(a,"Error")>=0?"Error":b.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){b.forEach(this._childConnections||
[],b.hitch(this,"disconnect"));b.forEach(this._childWatches||[],function(a){a.unwatch()})},connectChildren:function(a){var c=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(h,f){c[h]=f}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],g=this._childWatches=[];b.forEach(b.filter(this._descendants,function(h){return h.validate}),function(h){b.forEach(["state","disabled"],function(f){g.push(h.watch(f,function(){c.set("state",
c._getState())}))})});var j=function(){c._onChangeDelayTimer&&clearTimeout(c._onChangeDelayTimer);c._onChangeDelayTimer=setTimeout(function(){delete c._onChangeDelayTimer;c._set("value",c.get("value"))},10)};b.forEach(b.filter(this._descendants,function(h){return h.onChange}),function(h){e.push(c.connect(h,"onChange",j));g.push(h.watch("disabled",j))})},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(a,c,e){this.onValidStateChange(e=="")})},destroy:function(){this.disconnectChildren();
this.inherited(arguments)}});return d.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,d){b.declare("dijit._DialogMixin",null,{attributeMap:d._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=d._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return d._DialogMixin});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,d){b.declare("dijit.DialogUnderlay",[d._Widget,d._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){b.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){b.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,c=this.domNode.style;c.display="none";var e=b.window.getBox();c.top=e.t+"px";c.left=e.l+"px";a.width=e.w+"px";a.height=e.h+"px";c.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new d.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return d.DialogUnderlay});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,d){b.declare("dijit.layout._LayoutWidget",[d._Widget,d._Container,d._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!(a&&a.isLayoutContainer)){this.resize();this.connect(b.isIE?
this.domNode:b.global,"onresize",function(){this.resize()})}}},resize:function(a,c){var e=this.domNode;if(a){b.marginBox(e,a);if(a.t)e.style.top=a.t+"px";if(a.l)e.style.left=a.l+"px"}c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(e),c);a=b.getComputedStyle(e);var g=b._getMarginExtents(e,a),j=b._getBorderExtents(e,a);c=this._borderBox={w:c.w-(g.w+j.w),h:c.h-(g.h+j.h)};g=b._getPadExtents(e,a);this._contentBox={l:b._toPixelValue(e,a.paddingLeft),t:b._toPixelValue(e,a.paddingTop),
w:c.w-g.w,h:c.h-g.h};this.layout()},layout:function(){},_setupChild:function(a){b.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){b.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});d.layout.marginBox2contentBox=function(a,c){var e=b.getComputedStyle(a),g=b._getMarginExtents(a,
e),j=b._getPadBorderExtents(a,e);return{l:b._toPixelValue(a,e.paddingLeft),t:b._toPixelValue(a,e.paddingTop),w:c.w-(g.w+j.w),h:c.h-(g.h+j.h)}};(function(){var a=function(e){return e.substring(0,1).toUpperCase()+e.substring(1)},c=function(e,g){var j=e.resize?e.resize(g):b.marginBox(e.domNode,g);if(j)b.mixin(e,j);else{b.mixin(e,b.marginBox(e.domNode));b.mixin(e,g)}};d.layout.layoutChildren=function(e,g,j,h,f){g=b.mixin({},g);b.addClass(e,"dijitLayoutContainer");j=b.filter(j,function(i){return i.region!=
"center"&&i.layoutAlign!="client"}).concat(b.filter(j,function(i){return i.region=="center"||i.layoutAlign=="client"}));b.forEach(j,function(i){var k=i.domNode,l=i.region||i.layoutAlign,q=k.style;q.left=g.l+"px";q.top=g.t+"px";q.position="absolute";b.addClass(k,"dijitAlign"+a(l));k={};if(h&&h==i.id)k[i.region=="top"||i.region=="bottom"?"h":"w"]=f;if(l=="top"||l=="bottom"){k.w=g.w;c(i,k);g.h-=i.h;if(l=="top")g.t+=i.h;else q.top=g.t+g.h+"px"}else if(l=="left"||l=="right"){k.h=g.h;c(i,k);g.w-=i.w;if(l==
"left")g.l+=i.w;else q.left=g.l+g.w+"px"}else if(l=="client"||l=="center")c(i,g)})}})();return d.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,d){b.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=true})},startup:function(){if(!this._started){var a=d._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;
this.inherited(arguments);this._startChildren();this._isShown()&&this._onShow();this._childOfLayoutWidget||this.connect(b.isIE?this.domNode:b.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=b.query("> *",this.containerNode).filter(function(g){return g.tagName!=="SCRIPT"}),c=a.filter(function(g){return b.hasAttr(g,"data-dojo-type")||b.hasAttr(g,"dojoType")||b.hasAttr(g,"widgetId")}),e=b.filter(c.map(d.byNode),function(g){return g&&
g.domNode&&g.resize});if(a.length==c.length&&e.length==1)this._singleChild=e[0];else delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,c){!this._wasShown&&this.open!==false&&this._onShow();this._resizeCalled=true;this._scheduleLayout(a,c)},_scheduleLayout:function(a,c){if(this._isShown())this._layout(a,c);else{this._needLayout=true;this._changeSize=a;this._resultSize=c}},_layout:function(a,c){a&&b.marginBox(this.domNode,
a);var e=this.containerNode;if(e===this.domNode){c=c||{};b.mixin(c,a||{});if(!("h"in c)||!("w"in c))c=b.mixin(b.marginBox(e),c);this._contentBox=d.layout.marginBox2contentBox(e,c)}else this._contentBox=b.contentBox(e);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||b.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else b.forEach(this.getChildren(),
function(c){c.resize&&c.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,c=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&c&&c.style&&c.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=
true}});return d.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",true,b);(function(){var d=0;b.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};b.html._emptyNode=b.empty;b.html._setNodeContent=function(a,c){b.empty(a);if(c){if(typeof c=="string")c=b._toDom(c,a.ownerDocument);if(!c.nodeType&&b.isArrayLike(c))for(var e=c.length,g=0;g<c.length;g=e==c.length?g+1:0)b.place(c[g],a,"last");else b.place(c,a,"last")}return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:b._scopeName,startup:true,constructor:function(a,c){b.mixin(this,a||{});c=this.node=b.byId(this.node||c);if(!this.id)this.id=["Setter",c?c.id||c.tagName:"",d++].join("_")},set:function(a,c){if(undefined!==a)this.content=a;c&&this._mixin(c);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw new Error(this.declaredClass+": setContent given no node");
try{a=b.html._setNodeContent(a,this.content)}catch(c){var e=this.onContentError(c);try{a.innerHTML=e}catch(g){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+g.message,g)}}this.node=a},empty:function(){if(this.parseResults&&this.parseResults.length){b.forEach(this.parseResults,function(a){a.destroy&&a.destroy()});delete this.parseResults}b.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(b.isString(a)){if(this.cleanContent)a=b.html._secureForInnerHtml(a);
if(this.extractContent){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c)a=c[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 c={},e;for(e in a)e in c||(this[e]=a[e])},_parse:function(){var a=this.node;try{var c={};b.forEach(["dir","lang","textDir"],
function(g){if(this[g])c[g]=this[g]},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,e){a=this["on"+a+"Error"].call(this,c);if(e)console.error(e,c);else a&&b.html._setNodeContent(this.node,a,true)}});b.html.set=function(a,c,e){if(undefined==c){console.warn("dojo.html.set: no cont argument provided, using empty string");c=""}return e?(new b.html._ContentSetter(b.mixin(e,
{content:c,node:a}))).set():b.html._setNodeContent(a,c,true)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});
define("dijit/layout/ContentPane",["dojo","dijit","dijit/_Widget","dijit/layout/_ContentPaneResizeMixin","dojo/string","dojo/html","i18n!dijit/nls/loading"],function(b,d){b.declare("dijit.layout.ContentPane",[d._Widget,d.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:b._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",
isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:b.delegate(d._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){var e=b.doc.createDocumentFragment();for(c=b.byId(c);c.firstChild;)e.appendChild(c.firstChild);a=b.delegate(a,{content:e})}this.inherited(arguments,[a,c])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit",
"loading",this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||d.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&b.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&b.isFunction(a.startup)){a.startup();
a._started=true}},this)},setHref:function(a){b.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._set("href",a);if(this.preload||this._created&&this._isShown())this._load();else this._hrefChanged=true;return this.onLoadDeferred},setContent:function(a){b.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.",
"","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href","");this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=false;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&
this.cancel();this.inherited(arguments)},destroyRecursive:function(){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href)if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
true);var a=this,c={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(c,this.ioArgs);var e=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);e.addCallback(function(g){try{a._isDownloaded=true;a._setContent(g,false);a.onDownloadEnd()}catch(j){a._onError("Content",j)}delete a._xhrDfd;return g});e.addErrback(function(g){e.canceled||a._onError("Download",g);delete a._xhrDfd;return g});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
true);try{this.onLoadDeferred.callback(a)}catch(c){console.error("Error "+this.widgetId+" running custom onLoad code: "+c.message)}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(){this.isLoaded&&this._onUnloadHandler();var a=this._contentSetter;b.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive()});if(a){b.forEach(a.parseResults,
function(c){c.destroyRecursive&&c.domNode&&c.domNode.parentNode==b.body()&&c.destroyRecursive()});delete a.parseResults}b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,c){this.destroyDescendants();var e=this._contentSetter;if(!(e&&e instanceof b.html._ContentSetter))e=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(j){j=this.onContentError(j);try{this.containerNode.innerHTML=
j}catch(h){console.error("Fatal "+this.id+" could not change content due to "+h.message,h)}})});var g=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});e.set(b.isObject(a)&&a.domNode?a.domNode:a,g);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();if(!c){if(this._started){this._startChildren();this._scheduleLayout()}this._onLoadHandler(a)}},
_onError:function(a,c,e){this.onLoadDeferred.errback(c);a=this["on"+a+"Error"].call(this,c);if(e)console.error(e,c);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 d.layout.ContentPane});
define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:true,"zh-tw":true,tr:true,th:true,sv:true,sl:true,sk:true,ru:true,ro:true,pt:true,"pt-pt":true,pl:true,nl:true,nb:true,ko:true,kk:true,ja:true,it:true,hu:true,he:true,fr:true,fi:true,es:true,el:true,de:true,da:true,cs:true,ca:true,ar:true});define("text!dijit/templates/TooltipDialog.html",function(){return'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" dojoAttachPoint="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>'});
define("dijit/TooltipDialog",["dojo","dijit","text!dijit/templates/TooltipDialog.html","dijit/layout/ContentPane","dijit/_Templated","dijit/form/_FormMixin","dijit/_DialogMixin"],function(b,d){b.declare("dijit.TooltipDialog",[d.layout.ContentPane,d._Templated,d.form._FormMixin,d._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=
a;this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,c,e){a="dijitTooltipAB"+(e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(e.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);d.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var c=a.target,e=b.keys;a.charOrCode===e.TAB&&this._getFocusItems(this.containerNode);var g=this._firstFocusItem==this._lastFocusItem;if(a.charOrCode==e.ESCAPE){setTimeout(b.hitch(this,"onCancel"),0);b.stopEvent(a)}else if(c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB){g||d.focus(this._lastFocusItem);b.stopEvent(a)}else if(c==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey){g||d.focus(this._firstFocusItem);b.stopEvent(a)}else a.charOrCode===
e.TAB&&a.stopPropagation()}});return d.TooltipDialog});
define("dijit/Dialog",["dojo","dijit","text!dijit/templates/Dialog.html","dojo/dnd/move","dojo/dnd/TimedMoveable","dojo/fx","dojo/window","dijit/_Widget","dijit/_Templated","dijit/_CssStateMixin","dijit/form/_FormMixin","dijit/_DialogMixin","dijit/DialogUnderlay","dijit/layout/ContentPane","i18n!dijit/nls/common","dijit/TooltipDialog"],function(b,d){b.declare("dijit._DialogBase",[d._Templated,d.form._FormMixin,d._DialogMixin,d._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),
baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(d._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:d.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var a=b.i18n.getLocalization("dijit","common");b.mixin(this,a);this.inherited(arguments)},
postCreate:function(){b.style(this.domNode,{display:"none",position:"absolute"});b.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[]},onLoad:function(){this._position();if(this.autofocus&&d._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);d.focus(this._firstFocusItem)}this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=
b.position(a.node)},_setup:function(){var a=this.domNode;if(this.titleBar&&this.draggable){this._moveable=b.isIE==6?new b.dnd.TimedMoveable(a,{handle:this.titleBar}):new b.dnd.Moveable(a,{handle:this.titleBar,timeout:0});this._dndListener=b.subscribe("/dnd/move/stop",this,"_endDrag")}else b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(c){return c+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),c=b.window.getBox();if(a.w>=c.w||a.h>=c.h){var e=Math.min(a.w,Math.floor(c.w*0.75));a=Math.min(a.h,Math.floor(c.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:e,h:a})}else b.style(this.containerNode,{width:e+"px",height:a+"px",
overflow:"auto",position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,c=b.window.getBox(),e=this._relativePosition,g=e?null:b._getBorderBox(a),j=Math.floor(c.l+(e?e.x:(c.w-g.w)/2));c=Math.floor(c.t+(e?e.y:(c.h-g.h)/2));b.style(a,{left:j+"px",top:c+"px"})}},_onKey:function(a){if(a.charOrCode){var c=b.keys,e=a.target;a.charOrCode===c.TAB&&this._getFocusItems(this.domNode);var g=
this._firstFocusItem==this._lastFocusItem;if(e==this._firstFocusItem&&a.shiftKey&&a.charOrCode===c.TAB){g||d.focus(this._lastFocusItem);b.stopEvent(a)}else if(e==this._lastFocusItem&&a.charOrCode===c.TAB&&!a.shiftKey){g||d.focus(this._firstFocusItem);b.stopEvent(a)}else{for(;e;){if(e==this.domNode||b.hasClass(e,"dijitPopup"))if(a.charOrCode==c.ESCAPE)this.onCancel();else return;e=e.parentNode}if(a.charOrCode!==c.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(j){}}}},
show:function(){if(!this.open){this._started||this.startup();if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true}this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var c=b.window.getBox();if(!this._oldViewport||c.h!=this._oldViewport.h||c.w!=this._oldViewport.w){this.layout();this._oldViewport=c}}));this._modalconnects.push(b.connect(this.domNode,
"onkeypress",this,"_onKey"));b.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=b.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:b.hitch(this,function(){d._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){if(this.autofocus&&d._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);
d.focus(this._firstFocusItem)}this._fadeInDeferred.callback(true);delete this._fadeInDeferred})}).play();return this._fadeInDeferred}},hide:function(){if(this._alreadyInitialized){this._fadeInDeferred&&this._fadeInDeferred.cancel();var a;this._fadeOutDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,function(){this.domNode.style.display="none";d._DialogLevelManager.hide(this);this.onHide();
this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred})}).play();if(this._scrollConnected)this._scrollConnected=false;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",false);return this._fadeOutDeferred}},layout:function(){if(this.domNode.style.display!="none"){d._underlay&&d._underlay.layout();this._position()}},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&
this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&b.unsubscribe(this._dndListener);b.forEach(this._modalconnects,b.disconnect);d._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[d.layout.ContentPane,d._DialogBase],{});d._DialogLevelManager={show:function(a,c){var e=d._dialogStack;e[e.length-1].focus=d.getFocus(a);var g=d._underlay;if(!g||g._destroyed)g=d._underlay=new d.DialogUnderlay(c);else g.set(a.underlayAttrs);var j=
e[e.length-1].dialog?e[e.length-1].zIndex+2:950;e.length==1&&g.show();b.style(d._underlay.domNode,"zIndex",j-1);b.style(a.domNode,"zIndex",j);e.push({dialog:a,underlayAttrs:c,zIndex:j})},hide:function(a){var c=d._dialogStack;if(c[c.length-1].dialog==a){c.pop();var e=c[c.length-1];if(c.length==1)d._underlay._destroyed||d._underlay.hide();else{b.style(d._underlay.domNode,"zIndex",e.zIndex-1);d._underlay.set(e.underlayAttrs)}if(a.refocus){c=e.focus;if(!c||e.dialog&&!b.isDescendant(c.node,e.dialog.domNode)){e.dialog._getFocusItems(e.dialog.domNode);
c=e.dialog._firstFocusItem}try{d.focus(c)}catch(g){}}}else{e=b.indexOf(b.map(c,function(j){return j.dialog}),a);e!=-1&&c.splice(e,1)}},isTop:function(a){var c=d._dialogStack;return c[c.length-1].dialog==a}};d._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return d.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(b,d){return b.declare("orion.widgets.OpenResourceDialog",[d._Widget,d._Templated],{widgetsInTemplate:true,templateString:b.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);
b.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(b.hitch(this,this.checkSearch),0)});b.connect(this.resourceName,"onKeyPress",this,function(a){if(a.keyCode===b.keys.ENTER&&this.results){a=b.query("a",this.results);if(a.length>0){window.open(a[0].href);this.dialog.hide()}}});b.connect(this.dialog,"onMouseUp",function(a){a.target.focus()});b.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(b.hitch(this,arguments.callee),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value");if(a){b.place("<div>Searching&#x2026;</div>",this.results,"only");var c=this;setTimeout(function(){var e=a+=/\*$/.test(a)?"":"*";c.searcher.search(c.results,c.searchLocation+"Name:"+e,false,false,b.hitch(c,c.decorateResult),
true)},0)}},decorateResult:function(a){var c=this;b.query("a",a).forEach(function(e){b.connect(e,"onmouseup",function(g){!b.mouseButtons.isMiddle(g)&&!b.isCopyKey(g)&&c.dialog.hide()})})},show:function(){this.dialog.show();this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);setTimeout(b.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(b,d,a,c,e){function g(l,q){var m=b.byId("userInfo");if(m){b.addClass(m,"globalActions");var n=d.byId("userMenu");n&&n.destroy();b.empty(m);if(l){c.setUserName(l);n=new d.Menu({style:"display: none;",id:"userMenu"});var o=new d.MenuItem({label:"Profile",onClick:b.hitch(this,function(){window.location=
"/profile/user-profile.html#/users/"+l})});n.addChild(o);o=new d.MenuItem({label:"Sign out",onClick:logout});n.addChild(o);q=new d.form.DropDownButton({label:l,dropDown:n,title:q});b.addClass(q.domNode,"commandImage");b.place(q.domNode,m,"last")}else{q=document.createElement("span");q.appendChild(document.createTextNode("Sign in"));q.onclick=function(){login()};q.id="signOutUser";m.appendChild(q);b.addClass(q,"commandLink")}k=null}else k={userName:l,userStatusText:q}}function j(l,q,m,n){var o=b.byId("pageActions");
if(m)o=b.byId(m);if(o){b.empty(o);l.renderCommands(o,"dom",q,q,"image",null,null,!n)}}function h(l,q,m,n,o,u,p,s){var v;n=b.byId(l);if(!n)throw"could not find banner parent, id was "+l;b.place(f,n,"only");b.place('<div id="keyAssist" class="keyAssistFloat"></div>',document.body,"last");var t=b.byId("primaryNav");if(t)for(var y=q.getServiceReferences("orion.page.link"),C=0;C<y.length;C++)q.getService(y[C]).then(function(){for(var F={},K=y[C].getPropertyNames(),G=0;G<K.length;G++)F[K[G]]=y[C].getProperty(K[G]);
if(F.href&&F.name){K=b.create("a",{href:F.href},t,"last");b.addClass(K,"commandLink");v=document.createTextNode(F.name);b.place(v,K,"only")}});var D=b.byId("search");if(!D)throw"failed to generate HTML for banner";b.connect(D,"onkeypress",function(F){if(F.charOrCode===b.keys.ENTER)if(D.value.length>0)window.location="/search/search.html#"+("/filesearch?q="+D.value)});if(l=b.byId("pageTitle")){v=document.createTextNode(document.title);b.place(v,l,"last")}var A=function(F,K,G){var M=new orion.widgets.OpenResourceDialog({SearchLocation:F,
searcher:K});G&&b.connect(M,"onHide",function(){G.getTextView().focus()});window.setTimeout(function(){M.show()},0)};l=new a.Command({name:"Find File Named...",id:"eclipse.openResource",callback:function(){A("/filesearch?q=",o,p)}});if(p){p.getTextView().setKeyBinding(new e.KeyBinding("r",true,true,false),"Find File Named...");p.getTextView().setAction("Find File Named...",function(){A("/filesearch?q=",o,p);return true})}m.addCommand(l,"global");m.registerCommandContribution("eclipse.openResource",
1,"globalActions",null,new a.CommandKeyBinding("t"),true);var E=b.byId("keyAssist");b.connect(document,"onkeypress",b.hitch(this,function(F){if(F.charOrCode===b.keys.ESCAPE)E.style.display="none"}));s&&s.addHandler({isActive:function(){return E.style.display==="block"},cancel:function(){if(this.isActive()){E.style.display="none";return true}return false}});s=new a.Command({name:"Show Keys",id:"eclipse.keyAssist",callback:function(){b.empty(E);if(p){b.place("<h2>Editor</h2>",E,"last");for(var F=p.getTextView().getActions(false),
K=0;K<F.length;K++)for(var G=F[K],M=p.getTextView().getKeyBindings(G),L=0;L<M.length;L++)b.place("<span>"+c.getUserKeyString(M[L])+" = "+G+"<br></span>",E,"last")}b.place("<h2>Global</h2>",E,"last");m.showKeyBindings(E);E.style.display="block";return true}});m.addCommand(s,"global");m.registerCommandContribution("eclipse.keyAssist",1,"globalActions",null,new a.CommandKeyBinding(191,false,true),true);if(p){p.getTextView().setKeyBinding(new a.CommandKeyBinding("L",true,true),"Show Keys");p.getTextView().setAction("Show Keys",
s.callback)}if(s=b.byId("globalActions")){b.empty(s);m.renderCommands(s,"global",u||{},u,"image")}k&&g(k.userName,k.userStatusText);if(i)(u=b.byId("footer"))&&b.place(i,u,"only")}var f='<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>',
i='<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>',
k=null;return{generateUserInfo:g,generateDomCommandsInBanner:j,generateBanner:h}});
define("dojo/date",["dojo"],function(b){b.getObject("date",true,b);b.date.getDaysInMonth=function(d){var a=d.getMonth();if(a==1&&b.date.isLeapYear(d))return 29;return[31,28,31,30,31,30,31,31,30,31,30,31][a]};b.date.isLeapYear=function(d){d=d.getFullYear();return!(d%400)||!(d%4)&&!!(d%100)};b.date.getTimezoneName=function(d){var a=d.toString(),c="",e=a.indexOf("(");if(e>-1)c=a.substring(++e,a.indexOf(")"));else{e=/([A-Z\/]+) \d{4}$/;if(a=a.match(e))c=a[1];else{a=d.toLocaleString();e=/ ([A-Z\/]+)$/;
if(a=a.match(e))c=a[1]}}return c=="AM"||c=="PM"?"":c};b.date.compare=function(d,a,c){d=new Date(+d);a=new Date(+(a||new Date));if(c=="date"){d.setHours(0,0,0,0);a.setHours(0,0,0,0)}else if(c=="time"){d.setFullYear(0,0,0);a.setFullYear(0,0,0)}if(d>a)return 1;if(d<a)return-1;return 0};b.date.add=function(d,a,c){var e=new Date(+d),g=false,j="Date";switch(a){case "day":break;case "weekday":var h;if(a=c%5){a=a;h=parseInt(c/5)}else{a=c>0?5:-5;h=c>0?(c-5)/5:(c+5)/5}var f=d.getDay(),i=0;if(f==6&&c>0)i=1;
else if(f==0&&c<0)i=-1;f=f+a;if(f==0||f==6)i=c>0?2:-2;c=7*h+a+i;break;case "year":j="FullYear";g=true;break;case "week":c*=7;break;case "quarter":c*=3;case "month":g=true;j="Month";break;default:j="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}j&&e["set"+j](e["get"+j]()+c);g&&e.getDate()<d.getDate()&&e.setDate(0);return e};b.date.difference=function(d,a,c){a=a||new Date;c=c||"day";var e=a.getFullYear()-d.getFullYear(),g=1;switch(c){case "quarter":d=d.getMonth();a=a.getMonth();d=Math.floor(d/3)+
1;a=Math.floor(a/3)+1;a+=e*4;g=a-d;break;case "weekday":e=Math.round(b.date.difference(d,a,"day"));c=parseInt(b.date.difference(d,a,"week"));g=e%7;if(g==0)e=c*5;else{var j=0,h=d.getDay();a=a.getDay();c=parseInt(e/7);g=e%7;d=new Date(d);d.setDate(d.getDate()+c*7);d=d.getDay();if(e>0)switch(true){case h==6:j=-1;break;case h==0:j=0;break;case a==6:j=-1;break;case a==0:j=-2;break;case d+g>5:j=-2}else if(e<0)switch(true){case h==6:j=0;break;case h==0:j=1;break;case a==6:j=2;break;case a==0:j=1;break;case d+
g<0:j=2}e+=j;e-=c*2}g=e;break;case "year":g=e;break;case "month":g=a.getMonth()-d.getMonth()+e*12;break;case "week":g=parseInt(b.date.difference(d,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()-d.getTime()}return Math.round(g)};return b.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(b){b.getObject("cldr.supplemental",true,b);b.cldr.supplemental.getFirstDayOfWeek=function(d){d={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0}[b.cldr.supplemental._region(d)];return d===undefined?
1:d};b.cldr.supplemental._region=function(d){d=b.i18n.normalizeLocale(d);d=d.split("-");var a=d[1];if(a){if(a.length==4)a=d[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"}[d[0]];return a};b.cldr.supplemental.getWeekend=function(d){var a=b.cldr.supplemental._region(d);d={"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(d===undefined)d=6;if(a===undefined)a=0;return{start:d,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",true,b);b.regexp.escapeString=function(d,a){return d.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){if(a&&a.indexOf(c)!=-1)return c;return"\\"+c})};b.regexp.buildGroupRE=function(d,a,c){if(!(d instanceof Array))return a(d);for(var e=[],g=0;g<d.length;g++)e.push(a(d[g]));return b.regexp.group(e.join("|"),c)};b.regexp.group=function(d,a){return"("+(a?"?:":"")+d+")"};return b.regexp});
define("dojo/cldr/nls/gregorian",{root:{"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, y-M-d","dateFormatItem-MMMEd":"E MMM d",eraNarrow:["BCE","CE"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateTimeFormat-medium":"{1} {0}",
"dateFormatItem-EEEd":"d EEE","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, y MMMM dd","dateFormatItem-Md":"M-d","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","field-era":"Era","dateFormatItem-yM":"y-M","months-standAlone-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateFormatItem-yQ":"y Q",
"dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormatItem-H":"HH","months-standAlone-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-M":"L",
"days-standAlone-wide":["1","2","3","4","5","6","7"],"timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":["1","2","3","4","5","6","7"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM",
"dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","field-day":"Day","days-format-wide":["1","2","3","4","5","6","7"],"field-zone":"Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["1",
"2","3","4","5","6","7"],eraNames:["BCE","CE"],"days-format-narrow":["1","2","3","4","5","6","7"],"days-standAlone-narrow":["1","2","3","4","5","6","7"],"dateFormatItem-MMM":"LLL","field-month":"Month","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormat-short":"yyyy-MM-dd","field-second":"Second","dateFormatItem-yMMMEd":"EEE, y MMM d","dateTimeFormats-appendItem-Timezone":"{0} {1}",
"field-week":"Week","dateFormat-medium":"y MMM d","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a"},ar:true,ca:true,cs:true,da:true,de:true,el:true,en:true,"en-au":true,"en-ca":true,"en-gb":true,es:true,fi:true,fr:true,"fr-ch":true,he:true,hu:true,it:true,ja:true,ko:true,nb:true,nl:true,pl:true,pt:true,"pt-pt":true,ro:true,ru:true,sk:true,sl:true,sv:true,th:true,tr:true,zh:true,"zh-hant":true,"zh-hk":true,"zh-tw":true});
define("dojo/cldr/nls/en/gregorian",{"dateFormatItem-yM":"M/y","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q y","dayPeriods-format-wide-pm":"PM","field-minute":"Minute",eraNames:["Before Christ","Anno Domini"],"dateFormatItem-MMMEd":"E, MMM d","dateTimeFormat-full":"{1} {0}","field-day-relative+-1":"Yesterday","field-weekday":"Day of the Week","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateTimeFormat-short":"{1} {0}","field-era":"Era","field-hour":"Hour","dayPeriods-format-wide-am":"AM","dateTimeFormat-medium":"{1} {0}","dateFormatItem-y":"y","timeFormat-full":"h:mm:ss a zzzz","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":["S",
"M","T","W","T","F","S"],eraAbbr:["BC","AD"],"dateFormat-long":"MMMM d, y","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","field-zone":"Zone","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"MMM d, y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-ms":"mm:ss","field-year":"Year","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormat-long":"{1} {0}","field-week":"Week","months-standAlone-wide":["January",
"February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dayPeriods-format-wide-noon":"noon","timeFormat-short":"h:mm a","field-month":"Month","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-M":"L","days-format-narrow":["S",
"M","T","W","T","F","S"],"field-second":"Second","field-day":"Day","dateFormatItem-MEd":"E, M/d","months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormat-short":"M/d/yy","dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormat-full":"EEEE, MMMM d, y","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"EEE, M/d/y","months-format-wide":["January","February","March","April","May","June",
"July","August","September","October","November","December"],"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],eraNarrow:["B","A"]});
define("dojo/date/locale",["dojo","dojo/date","dojo/cldr/supplemental","dojo/regexp","dojo/string","dojo/i18n","i18n!dojo/cldr/nls/gregorian"],function(b){b.getObject("date.locale",true,b);(function(){function d(e,g,j,h){return h.replace(/([a-z])\1*/ig,function(f){var i,k,l=f.charAt(0);f=f.length;var q=["abbr","wide","narrow"];switch(l){case "G":i=g[f<4?"eraAbbr":"eraNames"][e.getFullYear()<0?0:1];break;case "y":i=e.getFullYear();switch(f){case 1:break;case 2:if(!j.fullYear){i=String(i);i=i.substr(i.length-
2);break}default:k=true}break;case "Q":case "q":i=Math.ceil((e.getMonth()+1)/3);k=true;break;case "M":i=e.getMonth();if(f<3){i=i+1;k=true}else{l=["months-format",q[f-3]].join("-");i=g[l][i]}break;case "w":i=b.date.locale._getWeekOfYear(e,0);k=true;break;case "d":i=e.getDate();k=true;break;case "D":i=b.date.locale._getDayOfYear(e);k=true;break;case "E":i=e.getDay();if(f<3){i=i+1;k=true}else{l=["days-format",q[f-3]].join("-");i=g[l][i]}break;case "a":i=e.getHours()<12?"am":"pm";i=j[i]||g["dayPeriods-format-wide-"+
i];break;case "h":case "H":case "K":case "k":k=e.getHours();switch(l){case "h":i=k%12||12;break;case "H":i=k;break;case "K":i=k%12;break;case "k":i=k||24;break}k=true;break;case "m":i=e.getMinutes();k=true;break;case "s":i=e.getSeconds();k=true;break;case "S":i=Math.round(e.getMilliseconds()*Math.pow(10,f-3));k=true;break;case "v":case "z":if(i=b.date.locale._getZone(e,true,j))break;f=4;case "Z":i=b.date.locale._getZone(e,false,j);i=[i<=0?"+":"-",b.string.pad(Math.floor(Math.abs(i)/60),2),b.string.pad(Math.abs(i)%
60,2)];if(f==4){i.splice(0,0,"GMT");i.splice(3,0,":")}i=i.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+h);}if(k)i=b.string.pad(i,f);return i})}function a(e,g,j,h){var f=function(l){return l};g=g||f;j=j||f;h=h||f;var i=e.match(/(''|[^'])+/g),k=e.charAt(0)=="'";b.forEach(i,function(l,q){if(l){i[q]=(k?j:g)(l.replace(/''/g,"'"));k=!k}else i[q]=""});return h(i.join(""))}function c(e,g,j,h){h=b.regexp.escapeString(h);j.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,
function(f){var i;i=f.charAt(0);var k=f.length,l="",q="";if(j.strict){if(k>1)l="0{"+(k-1)+"}";if(k>2)q="0{"+(k-2)+"}"}else{l="0?";q="0{0,2}"}switch(i){case "y":i="\\d{2,4}";break;case "M":i=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":i="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+q+"[1-9][0-9]|"+l+"[1-9]";break;case "d":i="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":i="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":i="\\S+";break;case "h":i="1[0-2]|"+l+"[1-9]";break;case "k":i="1[01]|"+l+"\\d";break;case "H":i=
"1\\d|2[0-3]|"+l+"\\d";break;case "K":i="1\\d|2[0-4]|"+l+"[1-9]";break;case "m":case "s":i="[0-5]\\d";break;case "S":i="\\d{"+k+"}";break;case "a":k=j.am||g["dayPeriods-format-wide-am"];l=j.pm||g["dayPeriods-format-wide-pm"];i=k+"|"+l;if(!j.strict){if(k!=k.toLowerCase())i+="|"+k.toLowerCase();if(l!=l.toLowerCase())i+="|"+l.toLowerCase();if(i.indexOf(".")!=-1)i+="|"+i.replace(/\./g,"")}i=i.replace(/\./g,"\\.");break;default:i=".*"}e&&e.push(f);return"("+i+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=
function(e,g){return g?b.date.getTimezoneName(e):e.getTimezoneOffset()};b.date.locale.format=function(e,g){g=g||{};var j=b.i18n.normalizeLocale(g.locale),h=g.formatLength||"short";j=b.date.locale._getGregorianBundle(j);var f=[];e=b.hitch(this,d,e,j,g);if(g.selector=="year")return a(j["dateFormatItem-yyyy"]||"yyyy",e);var i;if(g.selector!="date")(i=g.timePattern||j["timeFormat-"+h])&&f.push(a(i,e));if(g.selector!="time")(i=g.datePattern||j["dateFormat-"+h])&&f.push(a(i,e));return f.length==1?f[0]:
j["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(k,l){return f[l]})};b.date.locale.regexp=function(e){return b.date.locale._parseInfo(e).regexp};b.date.locale._parseInfo=function(e){e=e||{};var g=b.i18n.normalizeLocale(e.locale);g=b.date.locale._getGregorianBundle(g);var j=e.formatLength||"short",h=e.datePattern||g["dateFormat-"+j],f=e.timePattern||g["timeFormat-"+j];j=e.selector=="date"?h:e.selector=="time"?f:g["dateTimeFormat-"+j].replace(/\{(\d+)\}/g,function(k,l){return[f,h][l]});var i=[];
return{regexp:a(j,b.hitch(this,c,i,g,e)),tokens:i,bundle:g}};b.date.locale.parse=function(e,g){var j=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(g),f=h.tokens,i=h.bundle;e=(new RegExp("^"+h.regexp.replace(j,"")+"$",h.strict?"":"i")).exec(e&&e.replace(j,""));if(!e)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],q="";e=b.every(e,function(n,o){if(!o)return true;o=f[o-1];var u=o.length;switch(o.charAt(0)){case "y":if(u!=2&&g.strict)l[0]=n;else if(n<100){n=Number(n);u=""+(new Date).getFullYear();
o=u.substring(0,2)*100;u=Math.min(Number(u.substring(2,4))+20,99);l[0]=n<u?o+n:o-100+n}else{if(g.strict)return false;l[0]=n}break;case "M":if(u>2){o=i["months-format-"+k[u-3]].concat();if(!g.strict){n=n.replace(".","").toLowerCase();o=b.map(o,function(s){return s.replace(".","").toLowerCase()})}n=b.indexOf(o,n);if(n==-1)return false}else n--;l[1]=n;break;case "E":case "e":o=i["days-format-"+k[u-3]].concat();if(!g.strict){n=n.toLowerCase();o=b.map(o,function(s){return s.toLowerCase()})}n=b.indexOf(o,
n);if(n==-1)return false;break;case "D":l[1]=0;case "d":l[2]=n;break;case "a":o=g.am||i["dayPeriods-format-wide-am"];u=g.pm||i["dayPeriods-format-wide-pm"];if(!g.strict){var p=/\./g;n=n.replace(p,"").toLowerCase();o=o.replace(p,"").toLowerCase();u=u.replace(p,"").toLowerCase()}if(g.strict&&n!=o&&n!=u)return false;q=n==u?"p":n==o?"a":"";break;case "K":if(n==24)n=0;case "h":case "H":case "k":if(n>23)return false;l[3]=n;break;case "m":l[4]=n;break;case "s":l[5]=n;break;case "S":l[6]=n}return true});
j=+l[3];if(q==="p"&&j<12)l[3]=j+12;else if(q==="a"&&j==12)l[3]=0;j=new Date(l[0],l[1],l[2],l[3],l[4],l[5],l[6]);g.strict&&j.setFullYear(l[0]);var m=f.join("");h=m.indexOf("d")!=-1;m=m.indexOf("M")!=-1;if(!e||m&&j.getMonth()>l[1]||h&&j.getDate()>l[2])return null;if(m&&j.getMonth()<l[1]||h&&j.getDate()<l[2])j=b.date.add(j,"hour",1);return j}})();(function(){var d=[];b.date.locale.addCustomFormats=function(a,c){d.push({pkg:a,name:c})};b.date.locale._getGregorianBundle=function(a){var c={};b.forEach(d,
function(e){e=b.i18n.getLocalization(e.pkg,e.name,a);c=b.mixin(c,e)},this);return c}})();b.date.locale.addCustomFormats("dojo.cldr","gregorian");b.date.locale.getNames=function(d,a,c,e){var g;e=b.date.locale._getGregorianBundle(e);d=[d,c,a];if(c=="standAlone"){c=d.join("-");g=e[c];if(g[0]==1)g=undefined}d[1]="format";return(g||e[d.join("-")]).concat()};b.date.locale.isWeekend=function(d,a){a=b.cldr.supplemental.getWeekend(a);d=(d||new Date).getDay();if(a.end<a.start){a.end+=7;if(d<a.start)d+=7}return d>=
a.start&&d<=a.end};b.date.locale._getDayOfYear=function(d){return b.date.difference(new Date(d.getFullYear(),0,1,d.getHours()),d)+1};b.date.locale._getWeekOfYear=function(d,a){if(arguments.length==1)a=0;var c=(new Date(d.getFullYear(),0,1)).getDay(),e=(c-a+7)%7;e=Math.floor((b.date.locale._getDayOfYear(d)+e-1)/7);c==a&&e++;return e};return b.date.locale});
define("orion/auth",["dojo","orion/globalCommands","dojo/date/locale"],function(b,d){function a(i,k,l,q){j(k.xhr,function(){var m=b.xhrGet(i);l&&m.then(l,q)})}function c(i,k){j(k.xhr,function(){b.xhrPost(i)})}function e(i,k){j(k.xhr,function(){b.xhrDelete(i)})}function g(i,k){j(k.xhr,function(){b.xhrPut(i)})}function j(i,k){if(i.status===403){if(f==null)f=new dijit.Dialog({title:"Forbidden access"});f.set("content",i.message);f.show()}if(i.status===401){var l=b.subscribe("/auth",function(){k();b.unsubscribe(l)});
if(!h){h=true;eval(i.responseText)}}}var h=false,f;b.addOnLoad(function(){window.dojo=b;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=d;b.xhrGet({url:"/auth2",handleAs:"javascript",headers:{"Orion-Version":"1"}})});return{handleGetAuthenticationError:a,handlePostAuthenticationError:c,handleDeleteAuthenticationError:e,handlePutAuthenticationError:g,handleAuthenticationError:j}});
define("orion/preferences",["dojo","orion/auth"],function(b,d){function a(h,f,i){this._name=h;this._userProvider=f;this._defaultsProvider=i;this._flushPending=false;this._defaults=this._store=null}function c(h){this.location=h;this._currentPromises={}}function e(h){this.location=h;this._currentPromise=null}function g(h,f,i){f=f||"/prefs/user";i=i||"/defaults.pref";this._userProvider=new c(f);this._defaultsProvider=new e(i);this._serviceRegistration=h.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(b.hitch(this,function(){if(this._flushPending){this._flushPending=false;this._flush()}}),0)}},keys:function(){var h,f=[];for(h in this._store)this._store.hasOwnProperty(h)&&h.charAt(0)!=="/"&&f.push(h);for(h in this._defaults)this._defaults.hasOwnProperty(h)&&!this._store.hasOwnProperty(h)&&h.charAt(0)!=="/"&&f.push(h);return f},
get:function(h){if(h.charAt(0)==="/")throw new Error("Bad character in key name: "+h);return this._store.hasOwnProperty(h)?this._store[h]:this._defaults[h]},put:function(h,f){if(h.charAt(0)==="/")throw new Error("Bad character in key name: "+h);if(this._store[h]!==f){this._store[h]=f;this._scheduleFlush()}},remove:function(h){if(h.charAt(0)==="/")throw new Error("Bad character in key name: "+h);if(this._store[h]){delete this._store[h];this._scheduleFlush();return true}return false},clear:function(){var h;
for(h in this._store)this._store.hasOwnProperty(h)&&h.charAt(0)!=="/"&&delete this._store[h];this._scheduleFlush()},sync:function(){if(this._flushPending){this._flushPending=false;return this._flush()}return this._defaultsProvider.get(this._name).then(b.hitch(this,function(h){this._defaults=h;return this._userProvider.get(this._name).then(b.hitch(this,function(f){this._store=f}))}))},flush:function(){this._flush()}};var j={get:function(h,f){h=localStorage.getItem(h);if(h==null)return null;h=JSON.parse(h);
if(f||h._expires&&h._expires>(new Date).getTime()){delete h._expires;return h}return null},set:function(h,f){f._expires=(new Date).getTime()+36E5;var i=JSON.stringify(f);localStorage.setItem(h,i);delete f._expires}};c.prototype={get:function(h){if(this._currentPromises[h])return this._currentPromises[h];var f=new b.Deferred,i="/orion/preferences/user"+h,k=j.get(i);if(k!==null)f.resolve(k);else{this._currentPromises[h]=f;var l=this;b.xhrGet({url:this.location+h,headers:{"Orion-Version":"1"},handleAs:"json",
timeout:15E3,load:function(q){j.set(i,q);delete l._currentPromises[h];f.resolve(q)},error:function(q,m){q.log=false;if(m.xhr.status===401)d.handleGetAuthenticationError(this,m);else if(m.xhr.status===404){q={};j.set(i,q);delete l._currentPromises[h];f.resolve(q)}else{delete l._currentPromises[h];f.resolve(j.get(i,true)||{})}},failOk:true})}return f},put:function(h,f){var i=new b.Deferred;j.set("/orion/preferences/user"+h,f);b.xhrPut({url:this.location+h,putData:JSON.stringify(f),headers:{"Orion-Version":"1"},
handleAs:"json",contentType:"application/json",timeout:15E3,load:function(){i.resolve()},error:function(k,l){l.xhr.status===401?d.handlePutAuthenticationError(this,l):i.resolve()}});return i}};e.prototype={get:function(h){if(this._currentPromise)return this._currentPromise;var f=new b.Deferred,i=j.get("/orion/preferences/default");if(i!==null)f.resolve(i[h]||{});else{this._currentPromise=f;var k=this;b.xhrGet({url:this.location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(l){j.set("/orion/preferences/default",
l);k._currentPromise=null;f.resolve(l[h]||{})},error:function(l,q){if(q.xhr.status===401)d.handleGetAuthenticationError(q.xhr,q);else if(q.xhr.status===404){j.set("/orion/preferences/default",{});k._currentPromise=null;f.resolve({})}else{k._currentPromise=null;l=j.get("/orion/preferences/default",true);l!==null?f.resolve(l[h]||{}):f.resolve({})}}})}return f}};g.prototype={getPreferences:function(h){var f=new a(h,this._userProvider,this._defaultsProvider);return f.sync().then(function(){return f})}};
return{Preferences:a,PreferencesService:g}});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(d,a,c,e){var g=[];b.Deferred.call(this);var j=this;d.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(d,function(f,i){function k(l,q){g[i]=[l,q];h++;h===d.length&&j.resolve(g)}f.then(function(l){a?j.resolve([i,l]):k(true,l)},function(l){c?j.reject(l):k(false,l);if(e)return null;throw l;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(d){d=new b.DeferredList(d,false,true,false);
d.addCallback(function(a){var c=[];b.forEach(a,function(e){c.push(e[1])});return c});return d};return b.DeferredList});
define("orion/pluginregistry",["dojo","orion/serviceregistry","dojo/DeferredList"],function(b,d){var a=a||{};a.Plugin=function(c,e,g){function j(p,s,v,t){if(!l)throw new Error("plugin not connected");var y=n++;o[String(y)]=t;g.postMessage({id:y,serviceId:p,method:s,params:v},l)}function h(p){var s={};if(p.methods)for(var v=0;v<p.methods.length;v++){var t=p.methods[v];s[t]=function(y){return function(){var C=Array.prototype.slice.call(arguments),D=new b.Deferred;k._load().then(function(){j(p.serviceId,
y,C,D)});return D.promise}}(t)}return s}function f(){var p=e.services;if(p)for(var s=0;s<p.length;s++){var v=p[s],t=h(v);u[v.serviceId]=g.registerService(v.type,t,v.properties)}}function i(p){try{if(p.method)if("plugin"===p.method){if(e){if(JSON.stringify(e)!=JSON.stringify(p.params[0])){for(var s in u)if(u.hasOwnProperty(s)){u[s].unregister();delete u[s]}e=p.params[0];f();g.updatePlugin(k)}}else{e=p.params[0];f()}if(!m){m=true;q.resolve(k)}}else if("dispatchEvent"===p.method){var v=u[p.serviceId];
v.dispatchEvent.apply(v,p.params)}else throw new Error("Bad response method: "+p.method);else{var t=o[String(p.id)];delete o[String(p.id)];p.error?t.reject(p.error):t.resolve(p.result)}}catch(y){console.log(y)}}var k=this,l=null,q=new b.Deferred,m=false,n=0,o={},u={};this.getLocation=function(){return c};this.getData=function(){return e};this.uninstall=function(){for(var p in u)if(u.hasOwnProperty(p)){u[p].unregister();delete u[p]}if(l){g.disconnect(l);l=null}g.uninstallPlugin(this)};this.getServiceReferences=
function(){var p=[],s;for(s in u)u.hasOwnProperty(s)&&p.push(u[s].getServiceReference());return p};this._load=function(p){if(!l){l=g.connect(c,i);window.setTimeout(function(){if(!m){if(!p){e={};g.updatePlugin(k)}q.reject(new Error("Load timeout for plugin: "+c))}},15E3)}return q.promise};if(typeof c!=="string")throw new Error("invalid url:"+c);e&&f()};a.PluginRegistry=function(c,e){function g(){var s,v,t=[];if((s=k["/orion/preferences/default"]?JSON.parse(k["/orion/preferences/default"]):null)&&s["/plugins"]){o=
s["/plugins"];for(v in o)if(o.hasOwnProperty(v)){v=f(v);s="plugin."+v;if(k[s]){s=JSON.parse(k[s]);s=new a.Plugin(v,s,p);l.push(s)}else t.push(i.installPlugin(v))}}(u=k["/orion/preferences/user/plugins"]?JSON.parse(k["/orion/preferences/user/plugins"]):null)||(u={});for(v in u)if(u.hasOwnProperty(v)&&v!=="_expires"){v=f(v);s="plugin."+v;if(k[s]){s=JSON.parse(k[s]);s=new a.Plugin(v,s,p);l.push(s)}else t.push(i.installPlugin(v))}n=new b.DeferredList(t)}function j(s){var v;k["plugin."+s.getLocation()]=
JSON.stringify(s.getData());for(v in o)if(o.hasOwnProperty(v))if(s.getLocation()===f(v))return;for(v in u)if(u.hasOwnProperty(v))if(s.getLocation()===f(v))return;u[s.getLocation()]=true;k["/orion/preferences/user/plugins"]=JSON.stringify(u)}function h(s){var v;delete k["plugin."+s.getLocation()];for(v in u)if(u.hasOwnProperty(v))if(s.getLocation()===f(v)){delete u[s.getLocation()];k["/orion/preferences/user/plugins"]=JSON.stringify(u);return}}function f(s){if(s.indexOf("://")===-1){var v=document.createElement("a");
v.href=s;return v.href}return s}var i=this,k=e||localStorage||{},l=[],q=[],m=new d.EventTarget,n,o={},u;window.addEventListener("message",function(s){for(var v=0,t=s.source;v<q.length;v++)if(t===q[v].target){q[v].handler(JSON.parse(s.data));break}},false);var p={registerService:b.hitch(c,c.registerService),connect:function(s,v){var t=document.createElement("iframe");t.id=s;t.name=s;t.style.display="none";t.style.visibility="hidden";t.src=s;document.body.appendChild(t);s={iframe:t,target:t.contentWindow,
handler:v,url:s};q.push(s);return s},disconnect:function(s){for(var v=0;v<q.length;v++)if(s===q[v]){q.splice(v,1);try{document.body.removeChild(s.iframe)}catch(t){}break}},uninstallPlugin:function(s){h(s);for(var v=0;v<l.length;v++)if(s===l[v]){l.splice(v,1);m.dispatchEvent("pluginRemoved",s);break}},updatePlugin:function(s){k["plugin."+s.getLocation()]=JSON.stringify(s.getData());m.dispatchEvent("pluginUpdated",s)},postMessage:function(s,v){v.target.postMessage(JSON.stringify(s),v.url)}};this.startup=
function(){return n.promise};this.shutdown=function(){for(var s=0;s<q.length;s++)try{document.body.removeChild(q[s].iframe)}catch(v){}};this.installPlugin=function(s,v){s=f(s);for(var t=new b.Deferred,y,C=0;C<l.length;C++)if(s===l[C].getLocation()){y=l[C];break}if(y)if(y.getData())t.resolve(y);else{var D=function(A){if(A.getLocation()===s){t.resolve(A);m.removeEventListener("pluginAdded",D)}};m.addEventListener("pluginAdded",D)}else{y=new a.Plugin(s,v,p);l.push(y);if(y.getData()){j(y);m.dispatchEvent("pluginAdded",
y);t.resolve(y)}else y._load(!!n).then(function(){j(y);m.dispatchEvent("pluginAdded",y);t.resolve(y)},function(A){t.reject(A)})}return t.promise};this.getPlugins=function(){for(var s=[],v=0;v<l.length;v++)l[v].getData()&&s.push(l[v]);return s};this.getPlugin=function(s){s=f(s);for(var v=0;v<l.length;v++)if(l[v].getData()&&s===l[v].getLocation())return l[v];return null};this.addEventListener=function(s,v){m.addEventListener(s,v)};this.removeEventListener=function(s,v){m.removeEventListener(s,v)};g()};
return a});
define("orion/status",["dojo"],function(b){function d(a,c,e){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this.domId=c;this.progressDomId=e||c}d.prototype={setMessage:function(a,c){b.place(window.document.createTextNode(a),this.domId,"only");if(typeof c==="number"){var e=this;window.setTimeout(function(){var g=b.byId(e.domId);(typeof g.textContent==="string"?g.textContent:g.innerText)===a&&b.place(window.document.createTextNode(""),e.domId,"only")},
c)}},setErrorMessage:function(a){var c=a.responseText||a;try{c=JSON.parse(c)}catch(e){}a=c.Message||c;var g="red";if(c.Severity)switch(c.Severity){case "Warning":g="#FFCC00";break;case "Error":g="red";break;case "Info":case "Ok":g="green";break}c=b.create("span",{style:{color:g}});b.place(window.document.createTextNode(a),c);b.place(c,this.domId,"only")},setProgressMessage:function(a){b.place(window.document.createTextNode(a),this.progressDomId,"only")},setProgressResult:function(a){a=a.responseText||
a;try{a=JSON.parse(a)}catch(c){}var e=a.Message||a,g="/images/info.gif",j="info";if(a.Severity)switch(a.Severity){case "Warning":g="/images/warning.gif";j="warning";break;case "Error":g="/images/error.gif";j="error";break}var h=new Image;h.alt=j;h.title="Press to clear message";h.name=j;h.src=g;b.style(h,"opacity","0.7");b.connect(h,"onmouseover",this,function(){b.style(h,"opacity","1")});b.connect(h,"onmouseout",this,function(){b.style(h,"opacity","0.7")});b.connect(h,"onclick",this,function(){this.setProgressMessage("")});
b.place(h,this.progressDomId,"only");a.HTML?b.place(e,this.progressDomId,"last"):b.place(window.document.createTextNode("   "+e),this.progressDomId,"last")},showWhile:function(a,c){var e=this;e.setProgressMessage(c);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 c=new b.Deferred;window.setTimeout(function(){b.xhrGet({url:a.Location,headers:{"Orion-Version":"1"},
handleAs:"json",timeout:15E3,load:function(e){c.callback(e)}})},2E3);return this.showWhile(c,a.Message)}};d.prototype.constructor=d;return{StatusReportingService:d}});
define("orion/fileClient",["dojo","orion/auth"],function(b,d){function a(c){this.fileService=c}a.prototype={setFileService:function(c){this.fileService=c},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(c,e){var g=new b.Deferred,j=this.fileService;j[c].apply(j,e).then(function(h){g.callback(h)},function(h){h.status===401||h.status===403?d.handleAuthenticationError(h,function(){j[c].apply(j,e).then(function(f){g.callback(f)},function(f){g.errback(f)})}):g.errback(h)});return g}};a.prototype.constructor=a;return{FileClient:a}});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(d,a,c){var e=document.cookie;if(arguments.length==1){var g=e.match(new RegExp("(?:^|; )"+b.regexp.escapeString(d)+"=([^;]*)"));return g?decodeURIComponent(g[1]):undefined}else{c=c||{};e=c.expires;if(typeof e=="number"){var j=new Date;j.setTime(j.getTime()+e*24*60*60*1E3);e=c.expires=j}if(e&&e.toUTCString)c.expires=e.toUTCString();a=encodeURIComponent(a);e=d+"="+a;for(g in c){e+="; "+g;j=c[g];if(j!==true)e+="="+j}document.cookie=
e}};b.cookie.isSupported=function(){if(!("cookieEnabled"in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1})}return navigator.cookieEnabled};return b.cookie});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,d){b.declare("dijit.layout.BorderContainer",d.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){if(!this._started){b.forEach(this.getChildren(),
this._setupChild,this);this.inherited(arguments)}},_setupChild:function(a){var c=a.region;if(c){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var e=this.isLeftToRight();if(c=="leading")c=e?"left":"right";if(c=="trailing")c=e?"right":"left";if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget){var g=b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter");e=new g({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters});e.isSplitter=
true;a._splitterWidget=e;b.place(e.domNode,a.domNode,"after");e.startup()}a.region=c}},layout:function(){this._layoutChildren()},addChild:function(){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,e=a._splitterWidget;if(e){e.destroy();delete a._splitterWidget}this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});
b.style(a.domNode,c=="top"||c=="bottom"?"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(c){return c.region==a})[0]._splitterWidget},resize:function(){if(!this.cs||!this.pe){var a=this.domNode;this.cs=b.getComputedStyle(a);this.pe=b._getPadExtents(a,this.cs);this.pe.r=b._toPixelValue(a,this.cs.paddingRight);this.pe.b=b._toPixelValue(a,this.cs.paddingBottom);
b.style(a,"padding","0px")}this.inherited(arguments)},_layoutChildren:function(a,c){if(this._borderBox&&this._borderBox.h){var e=b.map(this.getChildren(),function(j,h){return{pane:j,weight:[j.region=="center"?Infinity:0,j.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(j.region)?1:-1),h]}},this);e.sort(function(j,h){j=j.weight;h=h.weight;for(var f=0;f<j.length;f++)if(j[f]!=h[f])return j[f]-h[f];return 0});var g=[];b.forEach(e,function(j){j=j.pane;g.push(j);j._splitterWidget&&g.push(j._splitterWidget)});
d.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,c)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var c=a._splitterWidget;c&&c.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(d._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[d._Widget,d._Templated],{live:true,templateString:'<div class="dijitSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=b.cookie(this._cookieName);if(a)this.child.domNode.style[this.horizontal?"height":"width"]=a}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",c=b.marginBox(this.child.domNode)[a],e=b.filter(this.container.getChildren(),function(g){return g.region=="center"})[0];a=b.marginBox(e.domNode)[a];return Math.min(this.child.maxSize,c+a)},_startDrag:function(a){if(!this.cover){this.cover=b.doc.createElement("div");b.addClass(this.cover,"dijitSplitterCover");b.place(this.cover,this.child.domNode,"after")}b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
b.addClass(this.domNode,"dijitSplitterShadow");b.place(this.fake,this.domNode,"after")}b.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake)b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var c=this._factor,e=this.horizontal,g=e?"pageY":"pageX",j=a[g],h=this.domNode.style;e=e?"h":"w";var f=b.marginBox(this.child.domNode)[e],i=this._computeMaxSize(),k=this.child.minSize||20;e=this.region;var l=e==
"top"||e=="bottom"?"top":"left",q=parseInt(h[l],10),m=this._resize,n=b.hitch(this.container,"_layoutChildren",this.child.id);e=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(e,"onmousemove",this._drag=function(o,u){o=o[g]-j;var p=c*o+f,s=Math.max(Math.min(p,i),k);if(m||u)n(s);h[l]=o+q+c*(s-p)+"px"}),b.connect(e,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(e,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||
a.type=="mouseenter";b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(a);this._drag(a,true)}finally{this._cleanupHandlers();delete this._drag}if(this.container.persist)b.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){b.forEach(this._handlers,b.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=true;var c=this.horizontal,e=1,g=b.keys;switch(a.charOrCode){case c?g.UP_ARROW:g.LEFT_ARROW:e*=-1;case c?g.DOWN_ARROW:g.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*e;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[d._Widget,d._Templated],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return d.layout.BorderContainer});
define("orion/searchClient",["dojo","dijit","orion/auth","orion/util","dijit/form/Button","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(b,d,a,c){function e(g){this.registry=g.serviceRegistry}e.prototype={search:function(g,j,h,f,i,k){b.xhrGet({url:j,handleAs:"json",headers:{Accept:"application/json","Orion-Version":"1"},sync:false,timeout:15E3,error:b.hitch(this,function(l,q){this.handleError(l,g);a.handleGetAuthenticationError(this,q,b.hitch(this,this.showSearchResult),b.hitch(this,
function(m){this.handleError(m,g)}));return l}),load:b.hitch(this,function(l){this.showSearchResult(g,j,h,f,i,k,l)})})},handleError:function(g,j){console.error(g);var h=document.createTextNode(g);b.place(h,j,"only");return g},saveSearch:function(g,j){this.registry.getService("orion.core.favorite").then(function(h){h.addFavoriteSearch(g,j)})},formatHighlight:function(g){g=g.split(/(##match|match##)/);for(var j=b.create("div"),h,f=0;f<g.length;f++){var i=g[f];if(i==="##match")h=b.create("b");else if(i===
"match##"){b.place(h,j,"last");h=null}else b.place(document.createTextNode(i),h||j,"last")}return j},showSearchResult:function(g,j,h,f,i,k,l){j=window.location.href.split("#")[0];var q=j.substring(0,j.length-window.location.pathname.length),m=false;b.empty(g);j=l.responseHeader.params.q;j=j.substring(j.indexOf("}")+1);if(l.response.numFound>0){for(var n=document.createElement("table"),o=0;o<l.response.docs.length;o++){var u=l.response.docs[o];if(!u.Directory&&u.Location!==h){var p;if(!m){m=true;if(f){p=
n.insertRow(0).insertCell(0);p.innerHTML="<h2>Search Results</h2>"}}p=n.insertRow(-1).insertCell(0);p.colspan=2;var s=document.createElement("a");b.place(document.createTextNode(u.Name),s);u.LineNumber&&b.place(document.createTextNode(" (Line "+u.LineNumber+")"),s);var v;v=j&&u.LineNumber?q+"/edit/edit.html#"+c.hashFromPosition(u.Location,null,null,u.LineNumber,u.Offset,j.length):q+"/edit/edit.html#"+u.Location;s.setAttribute("href",v);p.appendChild(s);if(!k&&l.highlighting&&l.highlighting[u.Id]&&
l.highlighting[u.Id].Text){u=l.highlighting[u.Id].Text[0];p=n.insertRow(-1).insertCell(0);p.colspan=2;b.place(this.formatHighlight(u),p,"only")}}}b.place(n,g,"last");typeof i==="function"&&i(g)}if(!m){g=b.place("<div>No matches found for </div>",g,"only");g=b.create("b",null,g,"last");b.place(document.createTextNode(j),g,"only")}}};e.prototype.constructor=e;return{Searcher:e}});
define("orion/dialogs",[],function(){function b(d){this._serviceRegistry=d;this._serviceRegistration=d.registerService("orion.page.dialog",this)}b.prototype={confirm:function(d,a){a(window.confirm(d))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("siteService",["dojo","orion/auth"],function(b,d){function a(c){this._serviceRegistration=c.registerService("org.eclipse.orion.sites.siteManagement",this)}a.prototype={getSiteConfigurations:function(){return this._doServiceCall("getSiteConfigurations",arguments)},loadSiteConfiguration:function(){return this._doServiceCall("loadSiteConfiguration",arguments)},createSiteConfiguration:function(){return this._doServiceCall("createSiteConfiguration",arguments)},updateSiteConfiguration:function(){return this._doServiceCall("updateSiteConfiguration",
arguments)},deleteSiteConfiguration:function(){return this._doServiceCall("deleteSiteConfiguration",arguments)},_serviceImpl:{getSiteConfigurations:function(){return b.xhrGet({url:"/site",preventCache:true,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3}).then(function(c){return c.SiteConfigurations})},loadSiteConfiguration:function(c){return b.xhrGet({url:c,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3})},createSiteConfiguration:function(c,e,g,j){c={Name:c,Workspace:e};if(g)c.Mappings=
g;if(j)c.HostHint=j;return b.xhrPost({url:"/site",postData:b.toJson(c),headers:{"Content-Type":"application/json; charset=utf-8","Orion-Version":"1"},handleAs:"json",timeout:15E3})},updateSiteConfiguration:function(c,e){return b.xhrPut({url:c,putData:b.toJson(e),headers:{"Content-Type":"application/json; charset=utf-8","Orion-Version":"1"},handleAs:"json",timeout:15E3})},deleteSiteConfiguration:function(c){return b.xhrDelete({url:c,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3})}},_doServiceCall:function(c,
e){var g=this._serviceImpl,j=this._serviceImpl[c],h=new b.Deferred;j.apply(g,e).then(function(f){h.callback(f)},function(f){f.status===401||f.status===403?d.handleAuthenticationError(f,function(){j.apply(g,e).then(function(i){h.callback(i)},function(i){h.errback(i)})}):h.errback(f)});return h}};a.prototype.constructor=a;return{SITE_SERVICE_NAME:"org.eclipse.orion.sites.siteManagement",SiteService:a}});
define("orion/siteUtils",["dojo","orion/commands","orion/util"],function(b,d,a){function c(k){return"site.html#"+a.makeRelative(k.Location)}function e(k){k=b.queryToObject(k);var l=b.mixin({},k);for(var q in k)if(k.hasOwnProperty(q))if(k[q]===""&&q!=="action"&&q!=="actionDetails"){l.site=q;delete l[q]}return l}function g(k,l,q){var m={};if(k)m[k]="";if(l)m.action=l;if(q)m.actionDetails=q;return b.objectToQuery(m)}function j(k,l,q,m,n,o,u,p){var s=new d.Command({name:"Edit",image:"/images/editing_16.gif",
id:"eclipse.site.edit",visibleWhen:function(v){return v.HostingStatus&&v.HostingStatus.Status==="stopped"},hrefCallback:c});k.addCommand(s,"object");s=new d.Command({name:"Start",image:"/images/lrun_obj.gif",id:"eclipse.site.start",visibleWhen:function(v){return v.HostingStatus&&v.HostingStatus.Status==="stopped"},callback:function(v,t,y,C){t=C||{};t.HostingStatus={Status:"started"};v=l.updateSiteConfiguration(v.Location,t).then(n,p);q.showWhile(v,"Starting...")}});k.addCommand(s,"object");s=new d.Command({name:"Stop",
image:"/images/stop.gif",id:"eclipse.site.stop",visibleWhen:function(v){return v.HostingStatus&&v.HostingStatus.Status==="started"},callback:function(v,t,y,C){t=C||{};t.HostingStatus={Status:"stopped"};t=l.updateSiteConfiguration(v.Location,t).then(o,p);q.showWhile(t,"Stopping "+v.Name+"...")}});k.addCommand(s,"object");s=new d.Command({name:"Delete",image:"/images/delete.gif",id:"eclipse.site.delete",visibleWhen:function(v){return v.HostingStatus&&v.HostingStatus.Status==="stopped"},callback:function(v){m.confirm("Are you sure you want to delete the site configuration '"+
v.Name+"'?",function(t){t&&l.deleteSiteConfiguration(v.Location).then(u,p)})}});k.addCommand(s,"object")}function h(k){return b.filter(k,function(l){return l!==""})}function f(k){k=a.makeRelative(k).split("/");return"/"+h(k).slice(1).join("/")}function i(k){var l="/file"+k;k=k.split("/");if(h(k).length===1)l+="/";return a.makeFullPath(l)}return{generateEditSiteHref:c,parseStateFromHash:e,stateToHash:g,createSiteCommands:j,makeRelativeFilePath:f,makeFullFilePath:i}});
define("siteTree",["dojo","orion/siteUtils"],function(b,d){var a={};a.sites={};a.sites.SiteTreeModel=function(){function c(e,g){this._siteService=e;this._root={};this._id=g}c.prototype={getRoot:function(e){e(this._root)},getChildren:function(e,g){if(e.children)g(e.children);else if(e===this._root)this._siteService.getSiteConfigurations().then(function(j){e.children=j;g(j)});else return g([])},getId:function(e){return e===this._root||e===this._id?this._id:e.Id}};return c}();a.sites.SiteRenderer=function(){function c(e){this._commandService=
e}c.prototype={initTable:function(e,g){this.tableTree=g;b.addClass(e,"treetable");g=b.create("thead",null);b.create("th",{innerHTML:"Name"},g,"last");b.create("th",{innerHTML:"Status"},g,"last");b.create("th",{innerHTML:"Actions"},g,"last");e.appendChild(g)},render:function(e,g){b.style(g,"verticalAlign","baseline");b.addClass(g,"treeTableRow");var j=b.create("td",{id:g.id+"col1"}),h=b.create("td",{id:g.id+"col2"}),f=b.create("td",{id:g.id+"col3"}),i=d.generateEditSiteHref(e),k=b.create("a",{href:i},
j,"last");b.create("img",{src:"/images/config_obj.gif",style:{verticalAlign:"bottom",paddingRight:"3px"}},k,"last");i=b.create("a",{href:i},j,"last");b.place(document.createTextNode(e.Name),i,"last");i=e.HostingStatus;if(typeof i==="object")if(i.Status==="started"){b.place(document.createTextNode("Started at "),h,"last");k=b.create("a",null,h,"last");b.place(document.createTextNode(i.URL),k,"only");k.href=i.URL}else{i=i.Status.substring(0,1).toUpperCase()+i.Status.substring(1);b.place(document.createTextNode(i),
h,"only")}else b.place(document.createTextNode("Unknown"),h,"only");var l=b.create("span",{id:g.id+"actionswrapper",style:{visibility:"hidden"}},f,"only");b.connect(g,"onmouseover",g,function(){b.style(l,"visibility","visible")});b.connect(g,"onmouseout",g,function(){b.style(l,"visibility","hidden")});this._commandService.renderCommands(l,"object",e,{},"image");b.place(j,g,"last");b.place(h,g,"last");b.place(f,g,"last")},rowsChanged:function(){b.query(".treeTableRow").forEach(function(e,g){if(g%2){b.addClass(e,
"darkTreeTableRow");b.removeClass(e,"lightTreeTableRow")}else{b.addClass(e,"lightTreeTableRow");b.removeClass(e,"darkTreeTableRow")}})},labelColumnIndex:0};return c}();return a.sites});
define("orion/treetable",["dojo"],function(b){function d(a){this._init(a)}d.prototype={_init:function(a){var c=a.parent,e=this;if(typeof c==="string")c=b.byId(c);if(!c)throw"no parent";if(!a.model)throw"no tree model";if(!a.renderer)throw"no renderer";this._parent=c;this._treeModel=a.model;this._renderer=a.renderer;this._showRoot=a.showRoot===undefined?false:a.showRoot;this._indent=a.indent===undefined?16:a.indent;this._labelColumnIndex=a.labelColumnIndex===undefined?0:a.labelColumnIndex;this._id=
a.id===undefined?"treetable":a.id;this._root=this._treeModel.getRoot(function(g){if(this._showRoot){g._depth=0;this._generate([g],0)}else e._treeModel.getChildren(g,function(j){e._generate(j,0)})})},_generate:function(a,c){b.empty(this._parent);var e=document.createElement("table");e.id=this._id;this._renderer.initTable(e,this);var g=document.createElement("tbody");g.id=this._id+"tbody";this._generateChildren(a,c,g,"last");e.appendChild(g);this._parent.appendChild(e);this._rowsChanged()},_generateChildren:function(a,
c,e,g){for(var j in a){var h=document.createElement("tr");h.id=this._treeModel.getId(a[j]);h._depth=c;h._item=a[j];this._renderer.render(a[j],h);b.style(h.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*c+"px");b.place(h,e,g);if(g==="after")e=h}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(a,c,e,g,j){var h=this._treeModel.getId(a);if(h===this._id){this._removeChildRows(h);
this._generateChildren(c,0,b.byId(h+"tbody"),"last");this._rowsChanged()}else{var f=b.byId(h);if(f){f._item=a;if(f&&(e||f._expanded)){f._expanded=true;this._removeChildRows(h);if(c){this._generateChildren(c,f._depth+1,f,"after");this._rowsChanged();if(g&&j)document.images[g].src=j}else{tree=this;c=this._treeModel.getChildren(f._item,function(i){tree._generateChildren(i,f._depth+1,f,"after");tree._rowsChanged()})}}}else console.log("could not find table row "+h)}},refreshAndExpand:function(a,c,e,g){this.refresh(a,
c,true,e,g)},getItem:function(a){if(typeof a==="string"){var c=b.byId(a);if(c)return c._item}if(a._item)return a._item;return a},toggle:function(a,c,e,g){var j=b.byId(a);if(j)if(j._expanded){this.collapse(a);if(c)document.images[c].src=g}else{this.expand(a);if(c)document.images[c].src=e}},isExpanded:function(a){if(a=b.byId(a))return a._expanded;return false},expand:function(a,c,e){a=typeof a==="string"?a:this._treeModel.getId(a);var g=b.byId(a);if(g)if(!g._expanded){g._expanded=true;var j=this;this._treeModel.getChildren(g._item,
function(h){j._generateChildren(h,g._depth+1,g,"after");j._rowsChanged();c&&c.apply(this,e)})}},_removeChildRows:function(a){b.byId(this._id);var c=a===this._id,e=false,g=-1,j=[];b.query(".treeTableRow").forEach(function(i){if(!e)if(c)if(i._depth>g)j.push(i);else e=true;else if(i.id===a){c=true;g=i._depth}});for(var h in j){var f=j[h];f.parentNode.removeChild(f)}},collapse:function(a){a=typeof a==="string"?a:this._treeModel.getId(a);var c=b.byId(a);if(c)if(c._expanded){c._expanded=false;this._removeChildRows(a);
this._rowsChanged()}}};d.prototype.constructor=d;return{TableTree:d}});define("text!dijit/form/templates/CheckBox.html",function(){return'<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdojoAttachPoint="focusNode"\n\t \tdojoAttachEvent="onclick:_onClick"\n/></div>'});define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(b,d){return d.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,d){b.declare("dijit.form.CheckBox",d.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);d.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,c){if(typeof a=="string"){this._set("value",a);b.attr(this.focusNode,"value",a);a=true}this._created&&this.set("checked",a,c)},_getValueAttr:function(){return this.checked?this.value:false},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||
false);this._set("value",this.params.value||"on");b.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&b.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&b.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){if(this.readOnly){b.stopEvent(a);return false}return this.inherited(arguments)}});b.declare("dijit.form.RadioButton",d.form.CheckBox,{type:"radio",
baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);if(this._created)if(a){var c=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(e){if(e.name==c.name&&e!=c.focusNode&&e.form==c.focusNode.form)(e=d.getEnclosingWidget(e))&&e.checked&&e.set("checked",false)})}},_clicked:function(){this.checked||this.set("checked",true)}});return d.form.CheckBox});
define("dijit/form/Form",["dojo","dijit","dijit/_Widget","dijit/_Templated","dijit/form/_FormMixin","dijit/layout/_ContentPaneResizeMixin"],function(b,d){b.declare("dijit.form.Form",[d._Widget,d._Templated,d.form._FormMixin,d.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(d._Widget.prototype.attributeMap,
{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?"name='"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(a){this.encType=a;b.attr(this.domNode,"encType",a);if(b.isIE)this.domNode.encoding=a},postCreate:function(){if(b.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var c={returnValue:true,preventDefault:function(){this.returnValue=false},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(c)!==false&&c.returnValue&&this.inherited(arguments,[])},onReset:function(){return true},_onReset:function(a){this.reset(a);b.stopEvent(a);return false},_onSubmit:function(a){var c=d.form.Form.prototype;if(this.execute!=c.execute||this.onExecute!=
c.onExecute){b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues())}this.onSubmit(a)===false&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==false&&this.containerNode.submit()}});return d.form.Form});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",true,b);b.data.util.filter.patternToRegExp=function(d,a){for(var c="^",e=null,g=0;g<d.length;g++){e=d.charAt(g);switch(e){case "\\":c+=e;g++;c+=d.charAt(g);break;case "*":c+=".*";break;case "?":c+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":c+="\\";default:c+=e}}c+="$";return a?new RegExp(c,"mi"):new RegExp(c,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",true,b);b.data.util.sorter.basicComparator=function(d,a){var c=-1;if(d===null)d=undefined;if(a===null)a=undefined;if(d==a)c=0;else if(d>a||d==null)c=1;return c};b.data.util.sorter.createSortFunction=function(d,a){function c(l,q,m,n){return function(o,u){o=n.getValue(o,l);u=n.getValue(u,l);return q*m(o,u)}}for(var e=[],g,j=a.comparatorMap,h=b.data.util.sorter.basicComparator,f=0;f<d.length;f++){g=d[f];var i=g.attribute;
if(i){g=g.descending?-1:1;var k=h;if(j){if(typeof i!=="string"&&"toString"in i)i=i.toString();k=j[i]||h}e.push(c(i,g,k,a))}}return function(l,q){for(var m=0;m<e.length;){var n=e[m++](l,q);if(n!==0)return n}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",true,b);b.data.util.simpleFetch.fetch=function(d){d=d||{};if(!d.store)d.store=this;var a=this,c=function(g,j){if(j.onError)j.onError.call(j.scope||b.global,g,j)},e=function(g,j){var h=j.abort||null,f=false,i=j.start?j.start:0,k=j.count&&j.count!==Infinity?i+j.count:g.length;j.abort=function(){f=true;h&&h.call(j)};var l=j.scope||b.global;if(!j.store)j.store=a;j.onBegin&&j.onBegin.call(l,
g.length,j);j.sort&&g.sort(b.data.util.sorter.createSortFunction(j.sort,a));if(j.onItem)for(var q=i;q<g.length&&q<k;++q){var m=g[q];f||j.onItem.call(l,m,j)}if(j.onComplete&&!f){q=null;j.onItem||(q=g.slice(i,k));j.onComplete.call(l,q,j)}};this._fetchItems(d,e,c);return d};return b.data.util.simpleFetch});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(b){b.declare("dojo.data.ItemFileReadStore",null,{constructor:function(d){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this.url=this._ccUrl=this._jsonFileUrl=d.url;this._jsonData=d.data;this.data=null;this._datatypeMap=d.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.date.stamp.fromISOString(a)}});
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(d.urlPreventCache!==undefined)this.urlPreventCache=d.urlPreventCache?true:false;if(d.hierarchical!==undefined)this.hierarchical=d.hierarchical?true:false;if(d.clearOnClose)this.clearOnClose=true;if("failOk"in d)this.failOk=d.failOk?true:
false},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(d){if(!this.isItem(d))throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(d){if(typeof d!=="string")throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(d,a,c){d=this.getValues(d,a);return d.length>0?d[0]:c},getValues:function(d,a){this._assertIsItem(d);this._assertIsAttribute(a);
return(d[a]||[]).slice(0)},getAttributes:function(d){this._assertIsItem(d);var a=[];for(var c in d)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&a.push(c);return a},hasAttribute:function(d,a){this._assertIsItem(d);this._assertIsAttribute(a);return a in d},containsValue:function(d,a,c){var e=undefined;if(typeof c==="string")e=b.data.util.filter.patternToRegExp(c,false);return this._containsValue(d,a,c,e)},_containsValue:function(d,a,c,e){return b.some(this.getValues(d,
a),function(g){if(g!==null&&!b.isObject(g)&&e){if(g.toString().match(e))return true}else if(c===g)return true})},isItem:function(d){if(d&&d[this._storeRefPropName]===this)if(this._arrayOfAllItems[d[this._itemNumPropName]]===d)return true;return false},isItemLoaded:function(d){return this.isItem(d)},loadItem:function(d){this._assertIsItem(d.item)},getFeatures:function(){return this._features},getLabel:function(d){if(this._labelAttr&&this.isItem(d))return this.getValue(d,this._labelAttr)},getLabelAttributes:function(){if(this._labelAttr)return[this._labelAttr];
return null},_fetchItems:function(d,a,c){var e=this,g=function(i,k){var l=[],q,m;if(i.query){var n;q=i.queryOptions?i.queryOptions.ignoreCase:false;var o={};for(m in i.query){n=i.query[m];if(typeof n==="string")o[m]=b.data.util.filter.patternToRegExp(n,q);else if(n instanceof RegExp)o[m]=n}for(q=0;q<k.length;++q){var u=true,p=k[q];if(p===null)u=false;else for(m in i.query){n=i.query[m];e._containsValue(p,m,n,o[m])||(u=false)}u&&l.push(p)}}else for(q=0;q<k.length;++q){m=k[q];m!==null&&l.push(m)}a(l,
i)};if(this._loadFinished)g(d,this._getItemsArray(d.queryOptions));else{if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:d,
filter:g});else{this._loadInProgress=true;var j=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});j.addCallback(function(i){try{e._getItemsFromLoadedData(i);e._loadFinished=true;e._loadInProgress=false;g(d,e._getItemsArray(d.queryOptions));e._handleQueuedFetches()}catch(k){e._loadFinished=true;e._loadInProgress=false;c(k,d)}});j.addErrback(function(i){e._loadInProgress=false;c(i,d)});var h=null;if(d.abort)h=d.abort;d.abort=function(){j&&
j.fired===-1&&j.cancel();h&&h.call(d)}}else if(this._jsonData)try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;g(d,this._getItemsArray(d.queryOptions))}catch(f){c(f,d)}else c(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),d)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var d=0;d<this._queuedFetches.length;d++){var a=this._queuedFetches[d],c=a.args;(a=a.filter)?
a(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(d){if(d&&d.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(d){function a(o){return o!==null&&typeof o==="object"&&(!b.isArray(o)||e)&&!b.isFunction(o)&&(o.constructor==Object||b.isArray(o))&&typeof o._reference==="undefined"&&typeof o._type==="undefined"&&typeof o._value==="undefined"&&g.hierarchical}function c(o){g._arrayOfAllItems.push(o);for(var u in o){var p=o[u];
if(p)if(b.isArray(p))for(var s=0;s<p.length;++s){var v=p[s];a(v)&&c(v)}else a(p)&&c(p)}}var e=false,g=this;this._labelAttr=d.label;var j,h;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=d.items;for(j=0;j<this._arrayOfTopLevelItems.length;++j){h=this._arrayOfTopLevelItems[j];if(b.isArray(h))e=true;c(h);h[this._rootItemPropName]=true}var f={},i;for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];for(i in h){if(i!==this._rootItemPropName){var k=h[i];if(k!==null)b.isArray(k)||
(h[i]=[k]);else h[i]=[null]}f[i]=i}}for(;f[this._storeRefPropName];)this._storeRefPropName+="_";for(;f[this._itemNumPropName];)this._itemNumPropName+="_";for(;f[this._reverseRefMap];)this._reverseRefMap+="_";if(f=d.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=f;for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];d=h[f];d=d[0];if(Object.hasOwnProperty.call(this._itemsByIdentity,d))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: ["+f+"].  Value collided: ["+d+"]");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: ["+f+"].  Value collided: ["+d+"]");}else this._itemsByIdentity[d]=h}}else this._features["dojo.data.api.Identity"]=Number;for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];h[this._storeRefPropName]=
this;h[this._itemNumPropName]=j}for(j=0;j<this._arrayOfAllItems.length;++j){h=this._arrayOfAllItems[j];for(i in h){d=h[i];for(f=0;f<d.length;++f){k=d[f];if(k!==null&&typeof k=="object"){if("_type"in k&&"_value"in k){var l=k._type,q=this._datatypeMap[l];if(q)if(b.isFunction(q))d[f]=new q(k._value);else if(b.isFunction(q.deserialize))d[f]=q.deserialize(k._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 '"+l+"'");}if(k._reference){k=k._reference;if(b.isObject(k))for(l=0;l<this._arrayOfAllItems.length;++l){q=this._arrayOfAllItems[l];var m=true;for(var n in k)if(q[n]!=k[n])m=false;if(m)d[f]=q}else d[f]=this._getItemByIdentity(k);if(this.referenceIntegrity){k=d[f];this.isItem(k)&&this._addReferenceToMap(k,h,i)}}else this.isItem(k)&&this.referenceIntegrity&&this._addReferenceToMap(k,
h,i)}}}}},_addReferenceToMap:function(){},getIdentity:function(d){var a=this._features["dojo.data.api.Identity"];if(a===Number)return d[this._itemNumPropName];else if(d=d[a])return d[0];return null},fetchItemByIdentity:function(d){var a,c;if(this._loadFinished){a=this._getItemByIdentity(d.identity);if(d.onItem){c=d.scope?d.scope:b.global;d.onItem.call(c,a)}}else{var e=this;if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:d});else{this._loadInProgress=true;c=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});c.addCallback(function(g){var j=d.scope?d.scope:b.global;try{e._getItemsFromLoadedData(g);
e._loadFinished=true;e._loadInProgress=false;a=e._getItemByIdentity(d.identity);d.onItem&&d.onItem.call(j,a);e._handleQueuedFetches()}catch(h){e._loadInProgress=false;d.onError&&d.onError.call(j,h)}});c.addErrback(function(g){e._loadInProgress=false;if(d.onError)d.onError.call(d.scope?d.scope:b.global,g)})}else if(this._jsonData){e._getItemsFromLoadedData(e._jsonData);e._jsonData=null;e._loadFinished=true;a=e._getItemByIdentity(d.identity);if(d.onItem){c=d.scope?d.scope:b.global;d.onItem.call(c,a)}}}},
_getItemByIdentity:function(d){var a=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,d))a=this._itemsByIdentity[d];else if(Object.hasOwnProperty.call(this._arrayOfAllItems,d))a=this._arrayOfAllItems[d];if(a===undefined)a=null;return a},getIdentityAttributes:function(){var d=this._features["dojo.data.api.Identity"];return d===Number?null:[d]},_forceLoad:function(){var d=this;if(this._jsonFileUrl!==this._ccUrl){b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this.url=this._ccUrl=this._jsonFileUrl}else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null){this._jsonData=this.data;this.data=null}if(this._jsonFileUrl){var a=b.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true});a.addCallback(function(c){try{if(d._loadInProgress!==true&&!d._loadFinished){d._getItemsFromLoadedData(c);d._loadFinished=true}else if(d._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(c){throw c;})}else if(this._jsonData){d._getItemsFromLoadedData(d._jsonData);d._jsonData=null;d._loadFinished=true}}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["dojo","dijit"],function(b,d){b.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||"Information Needed";this.buttonCancel="Cancel"},postCreate:function(){this.inherited(arguments);b.connect(this,"onKeyPress",b.hitch(this,function(a){a.keyCode===b.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(b.hitch(this,function(){if(b.isDescendant(d._curFocus,
this.domNode))d._curFocus=null;if(b.isDescendant(d._prevFocus,this.domNode))d._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!orion/widgets/templates/NewItemDialog.html",function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemNameLabel" for="${id}_itemName" style="padding-right: 10">${itemNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 30em; text-align: left;">\n\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="itemName" id="${id}_itemName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemURLLabel" for="itemURL" style="padding-right: 10">Server Path:</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; width: 40em; text-align: left; padding:5;">\n\t\t\t\t\t<input dojoAttachPoint="itemURL" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo1">\n\t\t\t\t<div style="display: table-cell;"></div>\n\t\t\t\t<div style="display: table-cell;">\n\t\t\t\t\t<input dojoAttachPoint="createCheckbox" id="${id}_createCheckbox" dojoType="dijit.form.CheckBox" checked="checked" value="on" type="checkbox">\n\t\t\t\t\t<label dojoAttachPoint="createCheckboxLabel" for="${id}_createCheckbox">Create if doesn\'t exist</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="newItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/NewItemDialog",["dojo","dijit","dijit/Dialog","dijit/form/CheckBox","dijit/form/CheckBox","dijit/form/Form","dijit/form/ValidationTextBox","dojo/data/ItemFileReadStore","orion/widgets/_OrionDialogMixin","text!orion/widgets/templates/NewItemDialog.html"],function(b,d){b.declare("orion.widgets.NewItemDialog",[d.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:true,templateString:b.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||false},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||"Name:"},postCreate:function(){this.inherited(arguments);if(this.options.advanced){this.itemAdvancedInfo.style.display="table-row";this.itemAdvancedInfo1.style.display="table-row";b.connect(this.itemURL,"onkeyup",null,b.hitch(this,this.onURLChange))}else{this.itemAdvancedInfo.style.display="none";this.itemAdvancedInfo1.style.display="none"}},
execute:function(){var a,c;this.newItemButton.focus();if(this.options.advanced){a=this.itemURL.value.replace(/^\s+|\s+$/g,"");c=this.createCheckbox.get("disabled")?false:this.createCheckbox.get("checked")}this.options.func(this.itemName.value,a&&a!==""?a:undefined,c)},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/widgets/NewSiteDialog",["dojo","orion/widgets/NewItemDialog"],function(b){b.declare("orion.widgets.NewSiteDialog",[orion.widgets.NewItemDialog],{workspaceIds:null,workspaceId:null,constructor:function(d){this.options=d||{};this.options.title=this.options.title||"New Site Configuration";this.options.label=this.options.label||"Name:"},postMixInProperties:function(){this.inherited(arguments)},postCreate:function(){this.inherited(arguments);b.style(this.itemName,"width","20em;");this.itemName.set("required",
true);this.itemName.set("isValid",b.hitch(this,function(a){return a||b.trim(this.itemName.get("value"))!==""}));b.connect(this.itemName,"onChange",this,function(){this.newItemButton.set("disabled",b.trim(this.itemName.get("value"))==="")});var d=this;this.options.serviceRegistry.getService("orion.core.file").then(function(a){a.loadWorkspaces().then(b.hitch(d,function(c){this.workspaceIds=b.map(c,function(e){return e.Id});this.workspaceId=this.workspaceIds[0]}))})},_onSubmit:function(){this.itemName.isValid()&&
this.workspaceId!==null&&this.inherited(arguments)},execute:function(){this.options.func&&this.options.func(this.itemName.get("value"),this.workspaceId)}})});
define("sites",["dojo","orion/serviceregistry","orion/preferences","orion/pluginregistry","orion/status","orion/commands","orion/fileClient","orion/searchClient","orion/dialogs","orion/globalCommands","siteService","orion/siteUtils","siteTree","orion/treetable","dojo/parser","dojo/hash","dojo/date/locale","dijit/layout/BorderContainer","dijit/layout/ContentPane","orion/widgets/NewSiteDialog"],function(b,d,a,c,e,g,j,h,f,i,k,l,q,m){b.addOnLoad(function(){document.body.style.visibility="visible";b.parser.parse();
var n=new d.ServiceRegistry,o=new c.PluginRegistry(n);b.addOnWindowUnload(function(){o.shutdown()});var u=new f.DialogService(n),p=new e.StatusReportingService(n,"statusPane","notifications"),s=new g.CommandService({serviceRegistry:n});n.getService("orion.core.file").then(function(v){new j.FileClient(v);var t=new k.SiteService(n);v=new a.PreferencesService(n,"/prefs/user");var y=new h.Searcher({serviceRegistry:n});i.generateBanner("toolbar",n,s,v,y);var C;(function(){p.setMessage("Loading...");var D=
new q.SiteRenderer(s);b.connect(D,"rowsChanged",null,function(){p.setMessage("")});C=new m.TableTree({id:"site-table-tree",parent:b.byId("site-table"),model:new q.SiteTreeModel(t,"site-table-tree"),showRoot:false,renderer:D})})();(function(){var D=function(){t.getSiteConfigurations().then(function(F){p.setMessage("");C.refreshAndExpand("site-table-tree",F)})},A=function(F){p.setErrorMessage(F)},E=new g.Command({name:"Create Site Configuration",image:"/images/add.gif",id:"eclipse.sites.create",groupId:"eclipse.sitesGroup",
callback:function(){var F=new orion.widgets.NewSiteDialog({title:"Create Site Configuration",serviceRegistry:n,func:function(K,G){t.createSiteConfiguration(K,G).then(function(M){window.location=l.generateEditSiteHref(M)},A)}});F.startup();F.show()}});s.addCommand(E,"dom");l.createSiteCommands(s,t,p,u,D,D,D,A);s.registerCommandContribution("eclipse.sites.create",1,"pageActions");s.registerCommandContribution("eclipse.site.edit",1);s.registerCommandContribution("eclipse.site.start",2);s.registerCommandContribution("eclipse.site.stop",
3);s.registerCommandContribution("eclipse.site.delete",4);i.generateDomCommandsInBanner(s,{})})()})})});