//>>built
define("dojox/analytics/plugins/mouseOver",["dojo/_base/lang","../_base","dojo/_base/config","dojo/_base/window","dojo/on"],function(e,l,g,h,k){return l.plugins.mouseOver=new function(){this.watchMouse=g.watchMouseOver||!0;this.mouseSampleDelay=g.sampleDelay||2500;this.addData=e.hitch(l,"addData","mouseOver");this.targetProps=g.targetProps||"id className localName href spellcheck lang textContent value".split(" ");this.textContentMaxChars=g.textContentMaxChars||50;this.toggleWatchMouse=function(){this._watchingMouse?
(this._watchingMouse.remove(),delete this._watchingMouse):k(h.doc,"mousemove",e.hitch(this,"sampleMouse"))};this.watchMouse&&(k(h.doc,"mouseover",e.hitch(this,"toggleWatchMouse")),k(h.doc,"mouseout",e.hitch(this,"toggleWatchMouse")));this.sampleMouse=function(b){this._rateLimited||(this.addData("sample",this.trimMouseEvent(b)),this._rateLimited=!0,setTimeout(e.hitch(this,function(){this._rateLimited&&(this.trimMouseEvent(this._lastMouseEvent),delete this._lastMouseEvent,delete this._rateLimited)}),
this.mouseSampleDelay));return this._lastMouseEvent=b};this.trimMouseEvent=function(b){var f={},a;for(a in b)switch(a){case "target":var d=this.targetProps;f[a]={};for(var c=0;c<d.length;c++)("object"==typeof b[a]||"function"==typeof b[a])&&d[c]in b[a]&&("text"==d[c]||"textContent"==d[c]?b[a].localName&&"HTML"!=b[a].localName&&"BODY"!=b[a].localName&&(f[a][d[c]]=b[a][d[c]].substr(0,this.textContentMaxChars)):f[a][d[c]]=b[a][d[c]]);break;case "screenX":case "screenY":case "x":case "y":b[a]&&(f[a]=
b[a]+"")}return f}}});