//>>built
define("dojox/dtl/contrib/dijit","dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/query ../_base ../dom dojo/parser dojo/_base/sniff".split(" "),function(g,n,t,q,k,v,r,u){function p(c){var b=c.cloneNode(!0);u("ie")&&q("script",b).forEach("item.text \x3d this[index].text;",q("script",c));return b}var e=g.getObject("contrib.dijit",!0,k);e.AttachNode=g.extend(function(c,b){this._keys=c;this._object=b},{render:function(c,b){if(!this._rendered){this._rendered=!0;for(var a=0,d;d=this._keys[a];a++)c.getThis()[d]=
this._object||b.getParent()}return b},unrender:function(c,b){if(this._rendered){this._rendered=!1;for(var a=0,d;d=this._keys[a];a++)c.getThis()[d]===(this._object||b.getParent())&&delete c.getThis()[d]}return b},clone:function(c){return new this.constructor(this._keys,this._object)}});e.EventNode=g.extend(function(c,b){this._command=c;for(var a,d=c.split(/\s*,\s*/),f=g.trim,l=[],m=[];a=d.pop();)if(a){var h=null;-1!=a.indexOf(":")?(h=a.split(":"),a=f(h[0]),h=f(h.slice(1).join(":"))):a=f(a);h||(h=a);
l.push(a);m.push(h)}this._types=l;this._fns=m;this._object=b;this._rendered=[]},{_clear:!1,render:function(c,b){for(var a=0,d;d=this._types[a];a++){this._clear||this._object||(b.getParent()[d]=null);var f=this._fns[a];if(-1!=f.indexOf(" ")){this._rendered[a]&&(n.disconnect(this._rendered[a]),this._rendered[a]=!1);var l=t.map(f.split(" ").slice(1),function(m){return(new k._Filter(m)).resolve(c)});f=f.split(" ",2)[0]}this._rendered[a]||(this._object?(g.isArray(l),this._rendered[a]=n.connect(this._object,
d,c.getThis(),f)):this._rendered[a]=b.addEvent(c,d,f,l))}this._clear=!0;return b},unrender:function(c,b){for(;this._rendered.length;)n.disconnect(this._rendered.pop());return b},clone:function(){return new this.constructor(this._command,this._object)}});e.DojoTypeNode=g.extend(function(c,b){this._node=c;this._parsed=b;var a=c.getAttribute("dojoAttachEvent")||c.getAttribute("data-dojo-attach-event");a&&(this._events=new e.EventNode(g.trim(a)));if(a=c.getAttribute("dojoAttachPoint")||c.getAttribute("data-dojo-attach-point"))this._attach=
new e.AttachNode(g.trim(a).split(/\s*,\s*/));b?(c=p(c),a=e.widgetsInTemplate,e.widgetsInTemplate=!1,this._template=new k.DomTemplate(c),e.widgetsInTemplate=a):this._dijit=r.instantiate([p(c)])[0]},{render:function(c,b){if(this._parsed){var a=new k.DomBuffer;this._template.render(c,a);a=p(a.getRootNode());var d=document.createElement("div");d.appendChild(a);var f=d.innerHTML;d.removeChild(a);f!=this._rendered&&(this._rendered=f,this._dijit&&this._dijit.destroyRecursive(),this._dijit=r.instantiate([a])[0])}a=
this._dijit.domNode;this._events&&(this._events._object=this._dijit,this._events.render(c,b));this._attach&&(this._attach._object=this._dijit,this._attach.render(c,b));return b.concat(a)},unrender:function(c,b){return b.remove(this._dijit.domNode)},clone:function(){return new this.constructor(this._node,this._parsed)}});g.mixin(e,{widgetsInTemplate:!0,dojoAttachPoint:function(c,b){return new e.AttachNode(b.contents.slice(-1!==b.contents.indexOf("data-")?23:16).split(/\s*,\s*/))},dojoAttachEvent:function(c,
b){return new e.EventNode(b.contents.slice(-1!==b.contents.indexOf("data-")?23:16))},dojoType:function(c,b){var a=!1;" parsed"==b.contents.slice(-7)&&(a=!0);var d=-1!==b.contents.indexOf("data-")?b.contents.slice(15):b.contents.slice(9);d=a?d.slice(0,-7):d.toString();if(e.widgetsInTemplate){var f=c.swallowNode();f.setAttribute("data-dojo-type",d);return new e.DojoTypeNode(f,a)}return new k.AttributeNode("data-dojo-type",d)},on:function(c,b){var a=b.contents.split();return new e.EventNode(a[0]+":"+
a.slice(1).join(" "))}});e["data-dojo-type"]=e.dojoType;e["data-dojo-attach-point"]=e.dojoAttachPoint;e["data-dojo-attach-event"]=e.dojoAttachEvent;k.register.tags("dojox.dtl.contrib",{dijit:["attr:dojoType","attr:data-dojo-type","attr:dojoAttachPoint","attr:data-dojo-attach-point",["attr:attach","dojoAttachPoint"],["attr:attach","data-dojo-attach-point"],"attr:dojoAttachEvent","attr:data-dojo-attach-event",[/(attr:)?on(click|key(up))/i,"on"]]});return e});