module.exports = "(function(e,l,a){var n=a(5894),c=a(7358),t=a(4527),r=a(4438),i=a(1571),o=a(6103).generate,_=a(7152),u=a(2533).DEFAULT_INTERVAL,s=t.get(\"stores/rum\"),f={};function d(e){f[e]&&n.each(f[e].callbacks,(function(e){e.call(null)})),__RUM_DOM_OBSERVATION_COUNTERS__&&s.getSampleRum()&&i.dispatch(c.RECORD_DOM_OBSERVATION_OCCURENCE,{counterName:r.PerformanceCounters.polling_invocation})}function N(e,l){if(f[l]&&f[l].callbacks[e]&&(delete f[l].callbacks[e],!n.some(f[l].callbacks))){if(__INVARIANT__&&n.isUndefined(f[l].id))throw new Error(\"No ID found for interval: \"+l);clearInterval(f[l].id),delete f[l]}}l.poll=function(e,l){n.isNumber(l)||(l=u),f[l]||(f[l]={callbacks:{},id:_.setInterval(n.partial(d,l),l)});var a=o();return f[l].callbacks[a]=e,n.partial(N,a,l)},l.cancelAll=function(){n.each(f,(function(e,l){clearInterval(e.id),delete f[l]}))}})";