//>>built define("dojo/_base/kernel dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/Deferred dojo/json dojo/dom-construct".split(" "),function(p,l,u,n,r,t,v){return u("dojox.mobile.dh.JsonContentHandler",null,{parse:function(b,g,d){var a,e=v.create("DIV");g.insertBefore(e,d);this._ws=[];this._req=[];var c=t.parse(b);return r.when(this._loadPrereqs(c),n.hitch(this,function(){a=this._instantiate(c,e);a.style.visibility="hidden";l.forEach(this._ws,function(a){!a._started&&a.startup&&a.startup()}); this._ws=null;return a.id}))},_loadPrereqs:function(b){var g=new r;b=this._collectRequires(b);if(0===b.length)return!0;if(p.require)return l.forEach(b,function(b){p.require(b)}),!0;b=l.map(b,function(b){return b.replace(/\./g,"/")});require(b,function(){g.resolve(!0)});return g},_collectRequires:function(b){var g=b["class"],d;for(d in b)if("@"!=d.charAt(0)&&"children"!==d){var a=g||d.replace(/:.*/,"");this._req.push(a);if(a)for(var a=g?[b]:n.isArray(b[d])?b[d]:[b[d]],e=0;e