//>>built
define("dojox/secure/capability",["dijit","dojo","dojox"],function(B,z,r){z.provide("dojox.secure.capability");r.secure.badProps=/^__|^(apply|call|callee|caller|constructor|eval|prototype|this|unwatch|valueOf|watch)$|__$/;r.secure.capability={keywords:"break case catch const continue debugger default delete do else enum false finally for function if in instanceof new null yield return switch throw true try typeof var void while".split(" "),validate:function(a,k,t){function A(b,f){var c={};b.replace(/#\d+/g,
function(d){d=l[d.substring(1)];for(var e in d){if("|this| keyword in object literal without a Class call"==e)throw e;"this"==e&&d[":method"]&&1==d["this"]&&(e="|this| keyword in object literal without a Class call");":method"!=e&&(c[e]=2)}});b.replace(/(\W|^)([a-z_\$A-Z][\w_\$]*)/g,function(d,e,g){if("_"==g.charAt(0))throw Error("Names may not start with _");c[g]=1});return c}function u(b,f,c,d,e,g){function v(w,q,m,n){n.replace(/,?([a-z\$A-Z][_\w\$]*)/g,function(C,x){if("Class"==x)throw Error("Class is reserved");
delete p[x]})}g.replace(/(^|,)0:\s*function#(\d+)/g,function(w,q,m){l[m][":method"]=1});g=g.replace(/(^|[^_\w\$])Class\s*\(\s*([_\w\$]+\s*,\s*)*#(\d+)/g,function(w,q,m,n){delete l[n]["|this| keyword in object literal without a Class call"];return(q||"")+(m||"")+"#"+n});p=A(g,f);f&&v(b,c,c,e);g.replace(/(\W|^)(var) ([ \t,_\w\$]+)/g,v);return(c||"")+(d||"")+"#"+(l.push(p)-1)}for(var y=this.keywords,h=0;h<y.length;h++)t[y[h]]=!0;var l=[];if(a.match(/[\u200c-\u200f\u202a-\u202e\u206a-\u206f\uff00-\uffff]/))throw Error("Illegal unicode characters detected");
if(a.match(/\/\*@cc_on/))throw Error("Conditional compilation token is not allowed");a=a.replace(/\\["'\\\/bfnrtu]/g,"@").replace(/\/\/.*|\/\*[\w\W]*?\*\/|("[^"]*")|('[^']*')/g,function(b){return b.match(/^\/\/|^\/\*/)?" ":"0"}).replace(/\.\s*([a-z\$_A-Z][\w\$_]*)|([;,{])\s*([a-z\$_A-Z][\w\$_]*\s*):/g,function(b,f,c,d){f=f||d;if(/^__|^(apply|call|callee|caller|constructor|eval|prototype|this|unwatch|valueOf|watch)$|__$/.test(f))throw Error("Illegal property name "+f);return c&&c+"0:"||"~"});a.replace(/([^\[][\]\}]\s*=)|((\Wreturn|\S)\s*\[\s*\+?)|([^=!][=!]=[^=])/g,
function(b){if(!b.match(/((\Wreturn|[=&\|:\?,])\s*\[)|\[\s*\+$/))throw Error("Illegal operator "+b.substring(1));});a=a.replace(new RegExp("("+k.join("|")+")[\\s~]*\\(","g"),function(b){return"new("});var p;do k=a.replace(/((function|catch)(\s+[_\w\$]+)?\s*\(([^\)]*)\)\s*)?{([^{}]*)}/g,u);while(k!=a&&(a=k));u(0,0,0,0,0,a);for(h in p)if(!(h in t))throw Error("Illegal reference to "+h);}}});