//>>built define("dijit/Menu",["require","dojo/_base/array","dojo/_base/declare","dojo/_base/event","dojo/dom","dojo/dom-attr","dojo/dom-geometry","dojo/dom-style","dojo/keys","dojo/_base/lang","dojo/on","dojo/sniff","dojo/_base/window","dojo/window","./popup","./DropDownMenu","dojo/ready"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,on,_b,_c,_d,pm,_e,_f){ if(_b("dijit-legacy-requires")){ _f(0,function(){ var _10=["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"]; _1(_10); }); } return _3("dijit.Menu",_e,{constructor:function(){ this._bindings=[]; },targetNodeIds:[],selector:"",contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){ if(this.contextMenuForWindow){ this.bindDomNode(this.ownerDocumentBody); }else{ _2.forEach(this.targetNodeIds,this.bindDomNode,this); } this.inherited(arguments); },_iframeContentWindow:function(_11){ return _d.get(this._iframeContentDocument(_11))||this._iframeContentDocument(_11)["__parent__"]||(_11.name&&_c.doc.frames[_11.name])||null; },_iframeContentDocument:function(_12){ return _12.contentDocument||(_12.contentWindow&&_12.contentWindow.document)||(_12.name&&_c.doc.frames[_12.name]&&_c.doc.frames[_12.name].document)||null; },bindDomNode:function(_13){ _13=_5.byId(_13,this.ownerDocument); var cn; if(_13.tagName.toLowerCase()=="iframe"){ var _14=_13,_15=this._iframeContentWindow(_14); cn=_c.body(_15.document); }else{ cn=(_13==_c.body(this.ownerDocument)?this.ownerDocument.documentElement:_13); } var _16={node:_13,iframe:_14}; _6.set(_13,"_dijitMenu"+this.id,this._bindings.push(_16)); var _17=_a.hitch(this,function(cn){ var _18=this.selector,_19=_18?function(_1a){ return on.selector(_18,_1a); }:function(_1b){ return _1b; },_1c=this; return [on(cn,_19(this.leftClickToOpen?"click":"contextmenu"),function(evt){ _4.stop(evt); if((new Date()).getTime()