define("dojo/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],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);}varon=function(_5,_6,_7,_8){if(typeof_5.on=="function"&&typeof_6!="function"){return_5.on(_6,_7);}returnon.parse(_5,_6,_7,_9,_8,this);};on.pausable=function(_a,_b,_c,_d){var_e;var_f=on(_a,_b,function(){if(!_e){return_c.apply(this,arguments);}},_d);_f.pause=function(){_e=true;};_f.resume=function(){_e=false;};return_f;};on.once=function(_10,_11,_12,_13){var_14=on(_10,_11,function(){_14.remove();return_12.apply(this,arguments);});return_14;};on.parse=function(_15,_16,_17,_18,_19,_1a){if(_16.call){return_16.call(_1a,_15,_17);}if(_16.indexOf(",")>-1){var_1b=_16.split(/\s*,\s*/);var_1c=[];vari=0;var_1d;while(_1d=_1b[i++]){_1c.push(_18(_15,_1d,_17,_19,_1a));}_1c.remove=function(){for(vari=0;i<_1c.length;i++){_1c[i].remove();}};return_1c;}return_18(_15,_16,_17,_19,_1a);};var_1e=/^touch/;function_9(_1f,_20,_21,_22,_23){var_24=_20.match(/(.*):(.*)/);if(_24){_20=_24[2];_24=_24[1];returnon.selector(_24,_20).call(_23,_1f,_21);}if(_3("touch")){if(_1e.test(_20)){_21=_25(_21);}if(!_3("event-orientationchange")&&(_20=="orientationchange")){_20="resize";_1f=window;_21=_25(_21);}}if(_26){_21=_26(_21);}if(_1f.addEventListener){var_27=_20in_28,_29=_27?_28[_20]:_20;_1f.addEventListener(_29,_21,_27);return{remove:function(){_1f.removeEventListener(_29,_21,_27);}};}_20="on"+_20;if(_2a&&_1f.attachEvent){return_2a(_1f,_20,_21);}thrownewError("Target must be an event emitter");};on.selector=function(_2b,_2c,_2d){returnfunction(_2e,_2f){var_30=typeof_2b=="function"?{matches:_2b}:this,_31=_2c.bubble;function_32(_33){_30=_30&&_30.matches?_30:_2.query;while(!_30.matches(_33,_2b,_2e)){if(_33==_2e||_2d===false||!(_33=_33.parentNode)||_33.nodeType!=1){return;}}return_33;};if(_31){returnon(_2e,_31(_32),_2f);}returnon(_2e,_2c,function(_34){var_35=_32(_34.target);return_35&&_2f.call(_35,_34);});};};function_36(){this.cancelable=false;};function_37(){this.bubbles=false;};var_38=[].slice,_39=on.emit=function(_3a,_3b,_3c){var_3d=_38.call(arguments,2);var_3e="on"+_3b;if("parentNode"in_3a){var_3f=_3d[0]={};for(variin_3c){_3f[i]=_3c[i];}_3f.preventDefault=_36;_3f.stopPropagation=_37;_3f.target=_3a;_3f.type=_3b;_3c=_3f;}do{_3a[_3e]&&_3a[_3e].apply(_3a,_3d);}while(_3c&&_3c.bubbles&&(_3a=_3a.parentNode));return_3c&&_3c.cancelable&&_3c;};var_28={};if(!_3("event-stopimmediatepropagation")){var_40=function(){this.immediatelyStopped=true;this.modified=true;};var_26=function(_41){returnfunction(_42){if(!_42.immediatelyStopped){_42.stopImmediatePropagation=_40;return_41.apply(this,arguments);}};};}if(_3("dom-addeventlistener")){_28={focusin:"focus",focusout:"blur"};on.emit=function(_43,_44,_45){if(_43.dispatchEvent&&document.createEvent){var_46=_43.ownerDocument.createEvent("HTMLEvents");_46.initEvent(_44,!!_45.bubbles,!!_45.cancelable);for(variin_45){var_47=_45[i];if(!(iin_46)){_46[i]=_45[i];}}return_43.dispatchEvent(_46)&&_46;}return_39.apply(on,arguments);};}else{on._fixEvent=function(evt,_48){if(!evt){varw=_48&&(_48.ownerDocument||_48.document||_48).parentWindow||window;evt=w.event;}if(!evt){returnevt;}if(_49&&evt.type==_49.type){evt=_49;}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_48||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_4a;evt.preventDefault=_4b;}switch(evt.type){case"keypress":varc=("charCode"inevt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_4c(evt);break;}}returnevt;};var_49,_4d=function(_4e){this.handle=_4e;};_4d.prototype.remove=function(){delete_