//>>built define("dojox/data/CsvStore",["dojo/_base/lang","dojo/_base/declare","dojo/_base/xhr","dojo/_base/window","dojo/data/util/filter","dojo/data/util/simpleFetch"],function(_1,_2,_3,_4,_5,_6){ var _7=_2("dojox.data.CsvStore",null,{constructor:function(_8){ this._attributes=[]; this._attributeIndexes={}; this._dataArray=[]; this._arrayOfAllItems=[]; this._loadFinished=false; if(_8.url){ this.url=_8.url; } this._csvData=_8.data; if(_8.label){ this.label=_8.label; }else{ if(this.label===""){ this.label=undefined; } } this._storeProp="_csvStore"; this._idProp="_csvId"; this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true}; this._loadInProgress=false; this._queuedFetches=[]; this.identifier=_8.identifier; if(this.identifier===""){ delete this.identifier; }else{ this._idMap={}; } if("separator" in _8){ this.separator=_8.separator; } if("urlPreventCache" in _8){ this.urlPreventCache=_8.urlPreventCache?true:false; } },url:"",label:"",identifier:"",separator:",",urlPreventCache:false,_assertIsItem:function(_9){ if(!this.isItem(_9)){ throw new Error(this.declaredClass+": a function was passed an item argument that was not an item"); } },_getIndex:function(_a){ var _b=this.getIdentity(_a); if(this.identifier){ _b=this._idMap[_b]; } return _b; },getValue:function(_c,_d,_e){ this._assertIsItem(_c); var _f=_e; if(typeof _d==="string"){ var ai=this._attributeIndexes[_d]; if(ai!=null){ var _10=this._dataArray[this._getIndex(_c)]; _f=_10[ai]||_e; } }else{ throw new Error(this.declaredClass+": a function was passed an attribute argument that was not a string"); } return _f; },getValues:function(_11,_12){ var _13=this.getValue(_11,_12); return (_13?[_13]:[]); },getAttributes:function(_14){ this._assertIsItem(_14); var _15=[]; var _16=this._dataArray[this._getIndex(_14)]; for(var i=0;i<_16.length;i++){ if(_16[i]!==""){ _15.push(this._attributes[i]); } } return _15; },hasAttribute:function(_17,_18){ this._assertIsItem(_17); if(typeof _18==="string"){ var _19=this._attributeIndexes[_18]; var _1a=this._dataArray[this._getIndex(_17)]; return (typeof _19!=="undefined"&&_19<_1a.length&&_1a[_19]!==""); }else{ throw new Error(this.declaredClass+": a function was passed an attribute argument that was not a string"); } },containsValue:function(_1b,_1c,_1d){ var _1e=undefined; if(typeof _1d==="string"){ _1e=_5.patternToRegExp(_1d,false); } return this._containsValue(_1b,_1c,_1d,_1e); },_containsValue:function(_1f,_20,_21,_22){ var _23=this.getValues(_1f,_20); for(var i=0;i<_23.length;++i){ var _24=_23[i]; if(typeof _24==="string"&&_22){ return (_24.match(_22)!==null); }else{ if(_21===_24){ return true; } } } return false; },isItem:function(_25){ if(_25&&_25[this._storeProp]===this){ var _26=_25[this._idProp]; if(this.identifier){ var _27=this._dataArray[this._idMap[_26]]; if(_27){ return true; } }else{ if(_26>=0&&_260){ var _47=_46.split(this.separator); var j=0; while(j<_47.length){ var _48=_47[j]; var _49=_48.replace(_41,""); var _4a=_49.replace(_42,""); var _4b=_4a.charAt(0); var _4c=_4a.charAt(_4a.length-1); var _4d=_4a.charAt(_4a.length-2); var _4e=_4a.charAt(_4a.length-3); if(_4a.length===2&&_4a=="\"\""){ _47[j]=""; }else{ if((_4b=="\"")&&((_4c!="\"")||((_4c=="\"")&&(_4d=="\"")&&(_4e!="\"")))){ if(j+1===_47.length){ return; } var _4f=_47[j+1]; _47[j]=_49+this.separator+_4f; _47.splice(j+1,1); }else{ if((_4b=="\"")&&(_4c=="\"")){ _4a=_4a.slice(1,(_4a.length-1)); _4a=_4a.replace(_43,"\""); } _47[j]=_4a; j+=1; } } } _44.push(_47); } } this._attributes=_44.shift(); for(i=0;i0){ for(var i=0;i