YUI.add("datasource-function",function(t,r){var a=t.Lang,e=function(){e.superclass.constructor.apply(this,arguments)};t.mix(e,{NAME:"dataSourceFunction",ATTRS:{source:{validator:a.isFunction}}}),t.extend(e,t.DataSource.Local,{_defRequestFn:function(t){var r=this.get("source"),a=t.details[0];if(r)try{a.data=r(t.request,this,t)}catch(e){a.error=e}else a.error=new Error("Function data failure");return this.fire("data",a),t.tId}}),t.DataSource.Function=e},"patched-v3.18.7",{requires:["datasource-local"]});