//>>built
define("dojox/lang/docs",["dojo","dijit","dojox"],function(f,z,t){f.provide("dojox.lang.docs");(function(){function u(d){console.log("Warning, the API docs must be available at ../util/docscripts/api.json or ../util/docscripts/api/*.json in order for dojox.lang.docs to supply schema information, but it could not be loaded: "+d)}var g={},m=[],n=t.lang.docs._loadedDocs={},h=function(d,a){g[a]=d},r=function(d){var a=d.type||"",c,e=!1,b=!1,l,a=a.replace(/\?/,function(){e=!0;return""}),a=a.replace(/\[\]/,
function(){b=!0;return""});a.match(/HTML/)?a="string":"String"==a||"Number"==a||"Boolean"==a||"Object"==a||"Array"==a||"Integer"==a||"Function"==a?a=a.toLowerCase():"bool"==a?a="boolean":a?(c=f.getObject(a)||{},l=!0):c={};c=c||{type:a};b&&(c={items:c,type:"array"},l=!1);l||(e&&(c.optional=!0),/const/.test(d.tags)&&(c.readonly=!0));return c},v=function(d,a){var c=n[a];if(c){d.description=c.description;d.properties={};d.methods={};if(c.properties)for(var e=c.properties,b=0,l=e.length;b<l;b++)"prototype"==
e[b].scope&&((d.properties[e[b].name]=r(e[b])).description=e[b].summary);if(c.methods)for(e=c.methods,b=0,l=e.length;b<l;b++)if((a=e[b].name)&&"prototype"==e[b].scope){var q=d.methods[a]={};q.description=e[b].summary;var k=e[b].parameters;if(k){q.parameters=[];for(var g=0,m=k.length;g<m;g++){var h=k[g],p=q.parameters[g]=r(h);p.name=h.name;p.optional="optional"==h.usage}}(k=e[b]["return-types"])&&k[0]&&(k=r(k[0]),k.type&&(q.returns=k))}(c=c.superclass)&&(d["extends"]=f.getObject(c))}},p=function(d){m.push(d)},
w=f.declare;f.declare=function(d){var a=w.apply(this,arguments);h(a,d);return a};f.mixin(f.declare,w);var x,y=f.require;f.require=function(d){p(d);return y.apply(this,arguments)};t.lang.docs.init=function(d){function a(){f.require=y;m=null;try{f.xhrGet({sync:!d,url:f.baseUrl+"../util/docscripts/api.json",handleAs:"text"}).addCallbacks(function(a){n=(new Function("return "+a))();a=null;h=v;for(var b in g)h(g[b],b);g=null},u)}catch(b){u(b)}}if(x)return null;x=!0;var c=function(a,c){return f.xhrGet({sync:c||
!d,url:f.baseUrl+"../util/docscripts/api/"+a+".json",handleAs:"text"}).addCallback(function(a){a=(new Function("return "+a))();for(var b in a)n[b]||(n[b]=a[b])})};try{var e=m.shift();c(e,!0).addCallbacks(function(){p=function(a){if(!n[a])try{c(a)}catch(l){n[a]={}}};f.forEach(m,function(a){p(a)});m=null;h=v;for(i in g)h(g[i],i);g=null},a)}catch(b){a()}return null}})()});