define("dojo/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(_1,_2,_3){"use strict";if(1){var_4=window.ScriptEngineMajorVersion;_3.add("jscript",_4&&(_4()+ScriptEngineMinorVersion()/10));_3.add("event-orientationchange",_3("touch")&&!_3("android"));_3.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);_3.add("event-focusin",function(_5,_6,_7){return"onfocusin"in_7;});if(_3("touch")){_3.add("touch-can-modify-event-delegate",function(){var_8=function(){};_8.prototype=document.createEvent("MouseEvents");try{var_9=new_8;_9.target=null;return_9.target===null;}catch(e){returnfalse;}});}}varon=function(_a,_b,_c,_d){if(typeof_a.on=="function"&&typeof_b!="function"&&!_a.nodeType){return_a.on(_b,_c);}returnon.parse(_a,_b,_c,_e,_d,this);};on.pausable=function(_f,_10,_11,_12){var_13;var_14=on(_f,_10,function(){if(!_13){return_11.apply(this,arguments);}},_12);_14.pause=function(){_13=true;};_14.resume=function(){_13=false;};return_14;};on.once=function(_15,_16,_17,_18){var_19=on(_15,_16,function(){_19.remove();return_17.apply(this,arguments);});return_19;};on.parse=function(_1a,_1b,_1c,_1d,_1e,_1f){var_20;if(_1b.call){return_1b.call(_1f,_1a,_1c);}if(_1binstanceofArray){_20=_1b;}else{if(_1b.indexOf(",")>-1){_20=_1b.split(/\s*,\s*/);}}if(_20){var_21=[];vari=0;var_22;while(_22=_20[i++]){_21.push(on.parse(_1a,_22,_1c,_1d,_1e,_1f));}_21.remove=function(){for(vari=0;i<_21.length;i++){_21[i].remove();}};return_21;}return_1d(_1a,_1b,_1c,_1e,_1f);};var_23=/^touch/;function_e(_24,_25,_26,_27,_28){var_29=_25.match(/(.*):(.*)/);if(_29){_25=_29[2];_29=_29[1];returnon.selector(_29,_25).call(_28,_24,_26);}if(_3("touch")){if(_23.test(_25)){_26=_2a(_26);}if(!_3("event-orientationchange")&&(_25=="orientationchange")){_25="resize";_24=window;_26=_2a(_26);}}if(_2b){_26=_2b(_26);}if(_24.addEventListener){var_2c=_25in_2d,_2e=_2c?_2d[_25]:_25;_24.addEventListener(_2e,_26,_2c);return{remove:function(){_24.removeEventListener(_2e,_26,_2c);}};}_25="on"+_25;if(_2f&&_24.attachEvent){return_2f(_24,_25,_26);}thrownewError("Target must be an event emitter");};on.matches=function(_30,_31,_32,_33,_34){_34=_34&&(typeof_34.matches=="function")?_34:_2.query;_33=_33!==false;if(_30.nodeType!=1){_30=_30.parentNode;}while(!_34.matches(_30,_31,_32)){if(_30==_32||_33===false||!(_30=_30.parentNode)||_30.nodeType!=1){returnfalse;}}return_30;};on.selector=function(_35,_36,_37){returnfunction(_38,_39){var_3a=typeof_35=="function"?{matches:_35}:this,_3b=_36.bubble;function_3c(_3d){returnon.matches(_3d,_35,_38,_37,_3a);};if(_3b){returnon(_38,_3b(_3c),_39);}returnon(_38,_36,function(_3e){var_3f=_3c(_3e.target);if(_3f){_3e.selectorTarget=_3f;return_39.call(_3f,_3e);}});};};function_40(){this.cancelable=false;this.defaultPrevented=true;};function_41(){this.bubbles=false;};var_42=[].slice,_43=on.emit=function(_44,_45,_46){var_47=_42.call(arguments,2);var_48="on"+_45;if("parentNode"in_44){var_49=_47[0]={};for(variin_46){_49[i]=_46[i];}_49.preventDefault=_40;_49.stopPropagation=_41;_49.target=_44;_49.type=_45;_46=_49;}do{_44[_48]&&_44[_48].apply(_44,_47);}while(_46&&_46.bubbles&&(_44=_44.parentNode));return_46&&_46.cancelable&&_46;};var_2d=_3("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!_3("event-stopimmediatepropagation")){var_4a=function(){this.immediatelyStopped=true;this.modified=true;};var_2b=function(_4b){returnfunction(_4c){if(!_4c.immediatelyStopped){_4c.stopImmediatePropagation=_4a;return_4b.apply(this,arguments);}};};}if(_3("dom-addeventlistener")){on.emit=function(_4d,_4e,_4f){if(_4d.dispatchEvent&&document.createEvent){var_50=_4d.ownerDocument||document;var_51=_50.createEvent("HTMLEvents");_51.initEvent(_4e,!!_4f.bubbles,!!_4f.cancelable);for(variin_4f){if(!(iin_51)){_51[i]=_4f[i];}}return_4d.dispatchEvent(_51)&&_51;}return_43.apply(on,arguments);};}else{on._fixEvent=function(evt,_52){if(!evt){varw=_52&&(_52.ownerDocument||_52.document||_52).parentWindow||window;evt=w.event