12345678910111213141516171819202122 |
- (function(){b.hsa=b.f({key:!1,constructor:w("id"),copy:function(){var a=new b.hsa(this.id);
- a.c_=this.c_;a.unit=this.unit;a.key=this.key;a.min=this.min;a.max=this.max;a.aZ=this.aZ;a.T2=this.T2;a.setCategories(this.EB);a.setOrder(this.tR);a.R0=this.R0;a.k2=this.k2;a.y0=this.y0;a.qX=this.qX;a.z2=this.z2;a.TX=this.TX;a.F3=this.F3;a.G3=this.G3;a.v0=this.v0;a.w0=this.w0;a.x0=this.x0;a.o2=this.o2;a.P1=this.P1;a.Q1=this.Q1;return a},getName:y("id"),setId:w("id"),getId:y("id"),getLabel:y("c_"),setLabel:w("c_"),getUnit:y("unit"),setUnit:w("unit"),isKey:y("key"),setKey:w("key"),getMin:y("min"),setMin:w("min"),
- getMax:y("max"),setMax:w("max"),getGranularity:y("aZ"),setGranularity:w("aZ"),getTimeZone:y("T2"),setTimeZone:w("T2"),getCategories:y("EB"),setCategories:function(a){if(a){var b=a.length;this.EB=Array(b);for(var c=0;c<b;++c)this.EB[c]=a[c]}else this.EB=null},getOrder:y("tR"),setOrder:function(a){if(a){var b=a.length;this.tR=Array(b);for(var c=0;c<b;++c)this.tR[c]=a[c]}else this.tR=null},getPrefix:y("R0"),setPrefix:w("R0"),getSuffix:y("k2"),setSuffix:w("k2"),getNumericPattern:y("y0"),setNumericPattern:w("y0"),
- getDatePattern:y("qX"),setDatePattern:w("qX"),getScientificPattern:y("z2"),setScientificPattern:w("z2"),getFitMethod:y("TX"),setFitMethod:function(a){if(null==a||"none"==a||b.p.lma==a)this.TX=a},getZeroFormatNumericPattern:y("F3"),setZeroFormatNumericPattern:w("F3"),getZeroFormatScientificPattern:y("G3"),setZeroFormatScientificPattern:w("G3"),getNegativeFormatNumericPattern:y("v0"),setNegativeFormatNumericPattern:w("v0"),getNegativeFormatScientificPattern:y("w0"),setNegativeFormatScientificPattern:w("w0"),
- getNoSpaceFormatPattern:y("x0"),setNospaceFormatPattern:w("x0"),getScientificString:y("o2"),setScientificString:function(a){if(null==a||"always"==a||"never"==a)this.o2=a},getScientificLower:y("P1"),setScientificLower:w("P1"),getScientificUpper:y("Q1"),setScientificUpper:w("Q1")});b.isa=b.f.implement({providerReady:u(),providerFailed:u()});b.J3a=b.f.implement({registerListener:u(),getListener:u(),prepare:u(),getNumFields:u(),getFields:u(),getNumRows:u(),getFirstRow:u(),getNextRow:u(),deregister:u()});
- b.K3a=b.f.implement({getProviderIDList:u(),getProvider:u()});b.T7=b.f(b.isa,{h1:!1,koa:!1,constructor:function(a){this.h1=!1;this.faa=null;this.j6=a},providerReady:function(){this.h1||(this.h1=!0,this.koa&&this.j6&&this.j6.wh())},IZ:function(){this.koa=!0;return this.h1},providerFailed:function(a){this.faa=null!=a?a:b.T7.ZTa;this.j6.wh()},bt:function(){if(null!=this.faa)throw new b.M("A data provider has failed: "+this.faa,b.q.DATA_PROVIDER_FAILED,null);}});b.T7.ZTa="No reason given";b.hp=b.f({constructor:function(){this.a$=
- new b.O(16,0.75,1)},registerFactory:function(a){var d=a.getProviderIDList();if(d)for(var c=0,e=d.length;c<e;++c){var f=d[c];if(null!=f)this.a$.put(f,a);else throw new b.M("A DataProviderFactory returned a null ID",b.q.DATA_PROVIDER_FAILED,null);}else throw new b.M("A DataProviderFactory returned a null list of IDs",b.q.DATA_PROVIDER_FAILED,null);},unregisterFactory:function(a){if(a&&(a=a.getProviderIDList()))for(var b=0,c=a.length;b<c;++b){var e=a[b];null!=e&&this.a$.remove(e)}},Jeb:function(a,d,
- c){var e=c.provider,f=e.providerId,e=e.args,g,h=this.a$.get(f),k;if(h){var l;try{l=h.getProvider(f,e)}catch(m){if(b.F.isInstanceOf(m,Error))throw new b.M("The DataProviderFactory threw exception '"+m.getMessage()+"' for provider id '"+f+"'",b.q.DATA_PROVIDER_NOT_FOUND,null);throw m;}if(!l)throw new b.M("The DataProviderFactory returned null for id '"+f+"'",b.q.DATA_PROVIDER_NOT_FOUND,null);try{k=l.getListener(),k||(k=c.CB,l.registerListener(k)),k.bt()}catch(p){if(b.F.isInstanceOf(p,Error))throw b.hp.wT(p);
- throw p;}d=new b.M3a(d,l);b.C6a.getInstance("dataprovider").execute(d);k.bt();g=new b.L3a(a,c,l,k)}else k=c.CB,k.providerFailed("Data provider of type "+f+" not found.");return g}});b.hp.getInstance=function(){return b.hp.JSa};b.hp.wT=function(a){return new b.M("A data provider threw exception: "+a.getMessage(),b.q.DATA_PROVIDER_FAILED,null)};b.L.add(function(){b.hp.JSa=new b.hp});b.M3a=b.f(b.nsa,{constructor:function(a,b){this.K=a;this.provider=b},wh:function(){try{this.provider.prepare()}catch(a){if(b.F.isInstanceOf(a,
- Error))this.K.getLogger().fc()&&this.K.getLogger().error(b.jb.CommonGrammar,"There was a problem preparing a data provider: "+a.toString());else throw a;}}});b.C6a=function(){var a=b.f({execute:function(a){a.wh()},dispose:u()});a.wea;a.getInstance=function(){a.wea||(a.wea=new a);return a.wea};a.tZb=u();return a}();b.V3a=b.f.implement();b.NB=b.f({JH:0,k0:0,constructor:function(a){this.Tc=a;var d=a.EB;this.k0=!d?0:d.length;this.unit=null==a.unit?null:b.I.get(a.unit,!d?b.I.Tk:b.I.Gx);if(d){this.JH=0;
- this.OM=new b.O;for(a=0;a<d.length;++a)this.OM.put(d[a],a)}else this.JH=b.I.Gx==this.unit?1:this.unit==b.I.Ag||this.unit==b.I.Zg||this.unit==b.I.Qs?4:5},i9a:function(a){if(null==a||b.j.isNumber(a)&&a!=a)return NaN;switch(this.JH){case 0:return this.p2a(a);case 1:return this.E1a(a);case 2:return this.$qa(a);case 3:return this.Fra(a);case 4:return this.k3a(a);case 5:return this.N$a(a)}throw new b.M("An internal error occurred in data conversion: field type "+this.JH,b.q.DATA_PROVIDER_CONVERSION,null);
- },p2a:function(a){if(b.j.isString(a)){var d=a;a=this.OM.get(a);if(null==a)throw new b.M("The string '"+d+'\' does not appear in the "categories" of field '+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,null);return a}if(b.j.isNumber(a)){d=a;if(Math.floor(d)==d&&(a=Math.floor(d),0<=a&&a<this.k0))return a;throw new b.M("The value '"+d+'\' is not a legal index for the "categories" of field '+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,null);}throw new b.M("Illegal data value returned by data provider for field '"+
- this.Tc.id+'\'; for fields with "categories" only number and string are allowed',b.q.DATA_PROVIDER_CONVERSION,null);},E1a:function(a){if(b.j.isNumber(a))return this.JH=2,this.$qa(a);if(b.j.isString(a))return this.JH=3,this.OM=new b.O,this.$N=new b.o,this.Fra(a);throw new b.M("Illegal data value returned by data provider for field '"+this.Tc.id+"'; for unit:categorical fields only number and string are allowed"+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,null);},$qa:function(a){if(b.j.isNumber(a)&&a==
- Math.floor(a)&&0<=a)return a;throw new b.M("Illegal data value returned by data provider for field '"+this.Tc.id+"'; only non-negative integers are allowed in this field"+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,null);},Fra:function(a){if(b.j.isString(a)){var d;d=this.OM.get(a);null==d&&(d=this.$N.size(),this.OM.put(a,d),this.$N.add(a));return d}throw new b.M("Illegal data value returned by data provider for field '"+this.Tc.id+"'; only strings are allowed in this field"+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,
- null);},k3a:function(a){if(b.j.isNumber(a))return a;a=b.lb.va.c0a(a);if(null!=a)return b.lb.va.ul(a,this.unit);throw new b.M("Illegal data value returned by data provider for field '"+this.Tc.id+"'; for time fields only number and date are allowed"+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,null);},N$a:function(a){if(b.j.isNumber(a))return a;throw new b.M("Illegal data value returned by data provider for field '"+this.Tc.id+"'; for continuous fields only number is allowed"+this.Tc.id,b.q.DATA_PROVIDER_CONVERSION,
- null);},getCategories:function(){var a;if(this.Tc.EB){var b=this.Tc.EB;a=Array(this.k0);for(var c=0;c<this.k0;++c)a[c]=b[c]}else this.$N&&(a=this.$N.toArray(Array(this.$N.size())));return a},yqb:function(){var a=new b.pi;a.id=this.Tc.id;a.label=this.Tc.c_;a.unit=this.Tc.unit;a.key=this.Tc.key;a.min=this.Tc.min;a.max=this.Tc.max;a.granularity=this.Tc.aZ;a.timeZone=this.Tc.T2;var d=this.Tc.tR;if(d){var c=d.length;a.order=Array(c);for(var e=0;e<c;++e)a.order[e]=d[e]}a.categories=this.getCategories();
- a.format=this.Usb();return a},Usb:function(){var a=!1,d=new b.Av,c,e;c=this.Tc.R0;null!=c&&(d.prefix=c,a=!0);c=this.Tc.k2;null!=c&&(d.suffix=c,a=!0);c=this.Tc.y0;null!=c&&(d.numericPattern=c,a=!0);c=this.Tc.qX;null!=c&&(d.datePattern=c,a=!0);c=this.Tc.z2;null!=c&&(d.scientificPattern=c,a=!0);c=this.Tc.TX;null!=c&&(d.fitMethod=c,a=!0);c=this.Tc.F3;e=this.Tc.G3;if(null!=c||null!=e)d.zeroFormat=new b.GW,d.zeroFormat.numericPattern=c,d.zeroFormat.scientificPattern=e,a=!0;c=this.Tc.v0;e=this.Tc.w0;if(null!=
- c||null!=e)d.negativeFormat=new b.BW,d.negativeFormat.numericPattern=c,d.negativeFormat.scientificPattern=e,a=!0;c=this.Tc.x0;null!=c&&(d.noSpaceFormat=new b.m9,d.noSpaceFormat.pattern=c,a=!0);c=this.Tc.o2;if(null!=c)d.scientific=c,a=!0;else if(c=this.Tc.P1,e=this.Tc.Q1,null!=c||null!=e)a=new b.n9,a.lower=c,a.upper=e,d.scientific=a,a=!0;return a?d:null}});b.NB.jMb=0;b.NB.fMb=1;b.NB.iMb=2;b.NB.wMb=3;b.NB.vMb=4;b.NB.QMb=5;b.L3a=b.f(b.V3a,{ts:0,constructor:function(a,b,c,e){this.data=a;this.cO=b;this.AR=
- c;this.cE=e;this.ts=-1;this.KH=null},TBb:function(){if(this.KH)throw new b.M("An internal engine error occurred (DataProviderAdapter#setFields method called twice)",b.q.ENGINE_UNSUPPORTED_OPERATION,null);this.cE.bt();try{this.ts=this.AR.getNumFields()}catch(a){if(b.F.isInstanceOf(a,Error))throw b.hp.wT(a);throw a;}var d;this.cE.bt();try{d=this.AR.getFields()}catch(c){if(b.F.isInstanceOf(c,Error))throw b.hp.wT(c);throw c;}this.cE.bt();if(this.ts!=d.length)throw new b.M("A DataProvider's getNumFields and getFields returned inconsistent information",
- b.q.DATA_PROVIDER_CONVERSION,null);for(var e=0;e<this.ts;++e)if(!d[e])throw new b.M("A DataProvider's getFields returned a null field descriptor",b.q.DATA_PROVIDER_CONVERSION,null);this.KH=Array(this.ts);this.cO.fields=Array(this.ts);for(e=0;e<this.ts;++e)this.KH[e]=new b.NB(d[e].copy()),this.cO.fields[e]=this.KH[e].yqb()},Xg:function(){this.cE.bt();var a;try{a=this.AR.getNumRows()}catch(d){if(b.F.isInstanceOf(d,Error))throw b.hp.wT(d);throw d;}this.cO.rows=Array(a);for(var c=0;c<a;++c){this.cE.bt();
- var e;try{e=0==c?this.AR.getFirstRow():this.AR.getNextRow()}catch(f){if(b.F.isInstanceOf(f,Error))throw b.hp.wT(f);throw f;}this.cO.rows[c]=this.dvb(e)}this.cE.bt();for(a=0;a<this.ts;++a)if(c=this.KH[a].getCategories())this.cO.fields[a].categories=c,this.data.fields&&this.data.fields[a]&&(this.data.fields[a].categories=c)},dvb:function(a){if(!a||a.length!=this.ts)throw new b.M("A DataProvider's getFirstRow/getNextRow returned a null row or one with the wrong number of fields",b.q.DATA_PROVIDER_CONVERSION,
- null);for(var d=b.D.create([this.ts],0),c=0;c<this.ts;++c)d[c]=this.KH[c].i9a(a[c]);return d},IZ:function(){return this.cE.IZ()}});b.fN=b.f({constructor:function(){this.Gwa=b.hp.getInstance()},registerFactory:function(a){a&&this.Gwa.registerFactory(a)},unregisterFactory:function(a){a&&this.Gwa.unregisterFactory(a)}});b.fN.getInstance=function(){return b.fN.KSa};b.L.add(function(){b.fN.KSa=new b.fN});b.L.initialize()})();
|