123456789101112 |
- /**
- * @name com/ibm/vipr/VIPR
- * @version 2.12.4463-patch.30
- * @license
- * Licensed Materials - Property of IBM
- *
- * (C) Copyright IBM Corp. 2021
- *
- * US Government Users Restricted Rights - Use, duplication or
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define("com/ibm/vipr/property/IEnumValue",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getName:function(){},getCaption:function(){},getDescription:function(){}})})),define("com/ibm/vipr/rs/v1/IRSEnumValue",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{name:t.readOnlyProperty,caption:t.readOnlyProperty,description:t.readOnlyProperty,getName:function(){},getCaption:function(){},getDescription:function(){},toString:function(){}}),n})),define("com/ibm/vipr/internal/property/EnumValue",["barejs!decl","../../property/IEnumValue","com/ibm/vipr/rs/v1/IRSEnumValue"],(function(e,t,n){"use strict";function r(t,n,r){e.defineProperties(this,{name:{enumerable:!0,value:t},caption:{enumerable:!0,value:n},description:{enumerable:!0,value:r||""===r?r:null}})}return e.declareClass(r,t,n,{fromHost:function(n){return n instanceof r?n:e.hasInterface(n,t)?new r(n.getName(),n.getCaption(),n.getDescription()):null},fromRSv1:function(t){return t instanceof r?t:e.hasInterface(t,n)?new r(t.getName(),t.getCaption(),t.getDescription()):null}},{name:null,caption:null,description:null,getName:function(){return this.name},getCaption:function(){return this.caption},getDescription:function(){return this.description},toString:function(){return this.name},valueOf:function(){return this.name},equals:function(n){return this===n||(n instanceof r||e.hasInterface(n,t))&&this.name===n.getName()&&this.caption===n.getCaption()&&this.description===n.getDescription()}})})),define("com/ibm/vipr/property/IVizProperty",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getDef:function(){},isActive:function(){},on:function(e,t){},getType:function(){},getName:function(){},getCaption:function(){},getDescription:function(){},getAliases:function(){},getTags:function(){},getVisibility:function(){},isDeprecated:function(){},getAffectedBy:function(){}})})),define("com/ibm/vipr/property/IVizValueProperty",["barejs!decl","./IVizProperty"],(function(e,t){"use strict";function n(){}return e.declareInterface(n,t,{getValue:function(){},setValue:function(e){},isDirty:function(){},getAllowNull:function(){},getDefaultValue:function(){},isServiceWritable:function(){},getRequiresData:function(){}}),e.defineProperty(n,"Default",{enumerable:!0,value:e.freeze({})})})),define("com/ibm/vipr/property/IVizBooleanProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{})})),define("com/ibm/vipr/property/IVizColorProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{})})),define("com/ibm/vipr/property/IVizEnumProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getPossibleValues:function(){},isDynamic:function(){}})})),define("com/ibm/vipr/property/IVizGroupProperty",["barejs!decl","./IVizProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getProperties:function(){},forEach:function(e){}})})),define("com/ibm/vipr/property/IVizLengthProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getAllowNegative:function(){}})})),define("com/ibm/vipr/property/IVizNumberProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getMinValue:function(){},getMaxValue:function(){}})})),define("com/ibm/vipr/property/IVizProperties",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{tree:t,configuration:t,excluded:t,has:function(e){},get:function(e){},on:function(e,t){},initHostProperty:function(e,t,n){},forEach:function(e){},getGroup:function(e){},getBoolean:function(e){},getColor:function(e){},getEnum:function(e){},getNumber:function(e){},getString:function(e){},getPalette:function(e){}})})),define("com/ibm/vipr/property/IVizStringProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{})})),define("com/ibm/vipr/property/FontStyle",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Normal="normal",this.Italic="italic"}),{parse:function(e){if(!e)return null;switch(String(e).toLowerCase()){case"normal":return this.Normal;case"oblique":case"italic":return this.Italic;default:return null}},toRS:function(e){return this.hasValue(e)?e:null},fromRS:function(e){return this.hasValue(e)?e:null},toCssString:function(e){switch(e){case"normal":case"italic":return e;default:return""}}})})),define("com/ibm/vipr/property/FontWeight",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Thin=100,this.ExtraLight=200,this.Light=300,this.Normal=400,this.Medium=500,this.SemiBold=600,this.Bold=700,this.ExtraBold=800,this.Heavy=900}),{parse:function(e){if(!e)return null;switch(String(e).toLowerCase()){case"100":return this.Thin;case"200":return this.ExtraLight;case"300":return this.Light;case"400":case"normal":return this.Normal;case"500":return this.Medium;case"600":return this.SemiBold;case"700":case"bold":return this.Bold;case"800":return this.ExtraBold;case"900":return this.Heavy;default:return null}},toRS:function(e){return this.hasValue(e)?e:null},fromRS:function(e){return this.hasValue(e)?e:null},fromValue:function(e){switch(e){case 100:return this.Thin;case 200:return this.ExtraLight;case 300:return this.Light;case 400:return this.Normal;case 500:return this.Medium;case 600:return this.SemiBold;case 700:return this.Bold;case 800:return this.ExtraBold;case 900:return this.Heavy;default:return null}},toCssString:function(e){switch(e){case 400:return"normal";case 700:return"bold";case 100:case 200:case 300:case 500:case 600:case 800:case 900:return String(e);default:return""}}})})),define("com/ibm/vipr/property/LengthUnit",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Em="em",this.Percentage="%",this.Centimeter="cm",this.Millimeter="mm",this.Inch="in",this.Pica="pc",this.Point="pt",this.Pixel="px"}),{parse:function(e){if("string"!=typeof e)return null;switch(e.toLowerCase()){case"em":return this.Em;case"%":return this.Percentage;case"cm":return this.Centimeter;case"mm":return this.Millimeter;case"in":return this.Inch;case"pc":return this.Pica;case"pt":return this.Point;case"px":return this.Pixel;default:return null}}})})),define("com/ibm/vipr/property/PropertyActiveEventArgs",["barejs!decl","barejs!EventArgs"],(function(e,t){"use strict";return e.declareClass((function(n,r){t.call(this),e.defineProperties(this,{property:{enumerable:!0,value:n},oldValue:{enumerable:!0,value:!!r}})}),t,{property:null,oldValue:null})})),define("com/ibm/vipr/property/PropertyType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Group="group",this.Boolean="boolean",this.Color="color",this.Enum="enum",this.Font="font",this.Length="length",this.Number="number",this.String="string",this.Palette="palette"}))})),define("com/ibm/vipr/property/PropertyValueEventArgs",["barejs!decl","barejs!EventArgs"],(function(e,t){"use strict";return e.declareClass((function(n,r){t.call(this),e.defineProperties(this,{property:{enumerable:!0,value:n},oldValue:{enumerable:!0,value:r}})}),t,{property:null,oldValue:null})})),define("com/ibm/vipr/property/PropertyVisibility",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Listed="listed",this.Configuration="configuration",this.Excluded="excluded"}))})),define("com/ibm/vipr/internal/util/StringUtil",["exports","barejs!decl"],(function(e,t){"use strict";var n=/\{\{|\}\}|\{(\d+)\}/g;t.defineObject(e,{EMPTY:{enumerable:!0,value:""},normalize:function(e){return null==e?"":String(e)},equals:function(e,t){return e===t},format:function(e){if(null==e)return"";var t=Array.prototype.slice.call(arguments,1);return String(e).replace(n,(function(e,n){if(n){if(n in t)return String(t[n]);throw new RangeError("No replacement for {"+n+"}, it is out of bounds ("+t.length+")")}return e.charAt(0)}))},mapJoin:function(t,n,r){if("function"!=typeof r)throw new TypeError("_resolver must be a function");var i=+(t||t.length)||0;if(i<1)return"";if(i<2)return e.normalize(r(t.get(0)));for(var a="",o=!0,s=0;s<i;++s){s>0&&(a+=n);var l=e.normalize(r(t.get(s)));l&&(o=!1,a+=l)}return o?"":a}},"StringUtil")})),define("com/ibm/vipr/property/IFont",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getFamily:function(){},getSize:function(){},getStyle:function(){},getWeight:function(){}})})),define("com/ibm/vipr/rs/v1/IRSFont",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{family:t.readOnlyProperty,size:t.readOnlyProperty,style:t.readOnlyProperty,weight:t.readOnlyProperty,getFamily:function(){},getSize:function(){},getRSStyle:function(){},getRSWeight:function(){},toString:function(){}}),n})),define("com/ibm/vipr/property/ILength",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getValue:function(){},getUnit:function(){}})})),define("com/ibm/vipr/rs/v1/IRSLength",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{value:t.readOnlyProperty,unit:t.readOnlyProperty,getValue:function(){},getRSUnit:function(){},toString:function(){}}),n})),define("com/ibm/vipr/internal/util/NumberUtil",["exports","barejs!decl"],(function(e,t){"use strict";t.defineObject(e,{parseNumber:function(e){var t=arguments.length>1;if(null==e)return t?arguments[1]:null;var n=+e;if(n!=n){if(!t)throw new Error("Failed to parse "+e+" to number");return arguments[1]}return n},toString:function(e){return null==e?"":String(e)},clamp:function(e,t,n){return+(t<e?e:t>n?n:t)}},"NumberUtil")})),define("com/ibm/vipr/util/Length",["barejs!decl","../property/LengthUnit","../property/ILength","com/ibm/vipr/rs/v1/IRSLength","../internal/util/NumberUtil"],(function(e,t,n,r,i){"use strict";var a=/^([\-\+]?(?:\d+(?:(?!\r?\n)[\s,]\d+)*(?:\.\d+)?|\.\d+))(?:$|(?!\d|\.))(%|[a-zA-Z]+)?$/;function o(n,r){if("number"!=typeof n)throw new TypeError("_value must be a number");if(!t.hasValue(r))throw new TypeError("Invalid length unit: "+r);e.defineProperties(this,{value:{enumerable:!0,value:n},unit:{enumerable:!0,value:r}})}return e.declareClass(o,n,r,{fromHost:function(e){return!e||e instanceof o?e||null:new o(e.getValue(),e.getUnit())},fromRSv1:function(e){return!e||e instanceof o?e||null:new o(e.getValue(),t.parse(e.getRSUnit()))},fromObject:function(e){return e&&"object"==typeof e&&"value"in e&&"unit"in e&&t.hasValue(e.unit)&&"number"==typeof e.value?new o(e.value,e.unit):null},parse:function(e){if(!e)return null;var n=a.exec(e);if(n){var r=i.parseNumber(n[1],null),s=t.parse(n[2]);if(null!==r&&(s||!n[2]))return new o(r,s||t.Pixel)}return null}},{value:null,unit:null,getValue:function(){return this.value},getUnit:function(){return this.unit},getRSUnit:function(){return this.unit},toString:function(){return i.toString(this.value)+this.unit},equals:function(e){return this===e||e instanceof o&&e.value===this.value&&e.unit===this.unit}})})),define("com/ibm/vipr/util/Font",["barejs!decl","../internal/util/StringUtil","../property/FontStyle","../property/FontWeight","../property/IFont","com/ibm/vipr/rs/v1/IRSFont","./Length"],(function(e,t,n,r,i,a,o){"use strict";var s=/\s+/g,l=/\s*,\s*/,u=/\s*;\s*/;function c(t,i,a,s){if(null!==t&&!Array.isArray(t))throw new TypeError("Font family must be an Array of String");if(!(null===i||i instanceof o))throw new TypeError("Font size must be a Length instance");if(null!==a&&!n.hasValue(a))throw new TypeError("Invalid FontStyle");if(null!==s&&!r.hasValue(s))throw new TypeError("Invalid FontWeight");e.defineProperties(this,{family:{enumerable:!0,value:t},size:{enumerable:!0,value:i},style:{enumerable:!0,value:a},weight:{enumerable:!0,value:s}})}function f(e){var t=null,n=0;if(e&&(n=(t=String(e).trim()).length)>1){var r=t.charAt(0);"'"!==r&&'"'!==r||r!==t.charAt(n-1)||(n=(t=t.substring(1,n-1)).length)}return n>0?t:null}function d(e){var t=e?e.length:0;if(t<1)return null;var i,a=null,l=null,u=null,f=0;s.lastIndex=0;for(var d,p=0,h=0;h<t;h=p){var m=s.exec(e);m?d=(p=s.lastIndex)-m[0].length:p=d=t;var g=e.substring(h,d),v=n.parse(g);if(v)v===n.Normal?(l||(l=v),u||(u=r.Normal)):l=v,f=p;else{var b=r.parse(g);if(b)u&&b===r.Normal||(u=b),f=p;else if(a=o.parse(g)){f=p;break}}}return i=c.parseFamily(f<1?e:e.substring(f)),c.create(i,a,l,u)}return e.declareClass(c,i,a,{create:function(e,t,n,r){return e||t||n||r?new c(e,t,n,r):null},normalizeFamily:function(e){var t=null;if(e){var n=e.length;t=new Array(n);for(var r=0,i=0;i<n;++i){var a=f(e[i]);null!==a&&(t[r++]=a)}r<1?t=null:t.length>r&&(t.length=r)}return t},parseFamily:function(e){var t=null;if(e){var n=String(e).split(l),r=n.length;t=new Array(r);for(var i=0,a=0;a<r;++a){var o=f(n[a]);null!==o&&(t[i++]=o)}i<1?t=null:t.length>i&&(t.length=i)}return t||(t=[]),t},familyEqual:function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;++r){if(e[r]!==t[r])return!1}return!0},familyToString:function(e){var t="";if(e)for(var n=0,r=e.length;n<r;++n){var i=e[n],a=s.test(i);t.length>0&&(t+=", "),a&&(t+='"'),t+=i,a&&(t+='"')}return t},toCssString:function(e){var n=[],r=c.familyToString(e.getFamily());return r.length>0&&n.push(t.format("font-family: {0};",r)),(r=c.sizeToString(e.getSize())).length>0&&n.push(t.format("font-size: {0};",r)),(r=c.styleToString(e.getStyle())).length>0&&n.push(t.format("font-style: {0};",r)),(r=c.weightToString(e.getWeight())).length>0&&n.push(t.format("font-weight: {0};",r)),n.join(" ")},sizeToString:function(e){return e?e.toString():""},styleToString:function(e){return e?n.toCssString(e):""},weightToString:function(e){return e?r.toCssString(e):""},fromHost:function(e){return!e||e instanceof c?e||null:c.create(c.normalizeFamily(e.getFamily()),e.getSize(),e.getStyle(),e.getWeight())},fromRSv1:function(e){return!e||e instanceof c?e||null:c.create(c.normalizeFamily(e.getFamily()),o.fromRSv1(e.getSize()),n.parse(e.getRSStyle()),r.fromValue(e.getRSWeight()))},parse:function(e){if(!e||"string"!=typeof e)return null;for(var t=null,i=null,a=null,s=null,l=e.trim().split(u),f=0,p=l.length;f<p;++f){var h=l[f],m=h.indexOf(":"),g=null,v=null;if(m<0&&h.length>0?(g="font",v=h):m>0&&(g=h.substring(0,m),v=h.substring(m+1).trim()),null!==g&&null!==v)switch(g){case"font":var b=d(v);b&&(t=b.family,i=b.size,a=b.style,s=b.weight);break;case"font-size":i=o.parse(v);break;case"font-family":t=c.parseFamily(v);break;case"font-style":a=n.parse(v);break;case"font-weight":s=r.parse(v)}}return c.create(t,i,a,s)}},{family:null,size:null,style:null,weight:null,getFamily:function(){return this.family},getSize:function(){return this.size},getStyle:function(){return this.style},getWeight:function(){return this.weight},getRSStyle:function(){return this.style},getRSWeight:function(){return this.weight},toString:function(){var e;return this.style!==n.Normal&&this.weight!==r.Normal||this.style===n.Normal&&this.weight===r.Normal?(e="",this.style===n.Normal?e+="normal":(this.style&&(e+=this.style),this.weight&&(e.length>0&&(e+=" "),e+=r.toCssString(this.weight))),this.size&&(e.length>0&&(e+=" "),e+=this.size.toString()),this.family&&(e.length>0&&(e+=" "),e+=c.familyToString(this.family))):e=c.toCssString(this),e},equals:function(e){return e===this||e instanceof c&&c.familyEqual(this.family,e.family)&&(this.size===e.size||!!this.size&&this.size.equals(e.size))&&this.style===e.style&&this.weight===e.weight}})})),define("com/ibm/vipr/property/property",["exports","../internal/property/EnumValue","./IVizBooleanProperty","./IVizColorProperty","./IVizEnumProperty","./IVizGroupProperty","./IVizLengthProperty","./IVizNumberProperty","./IVizProperties","./IVizProperty","./IVizStringProperty","./IVizValueProperty","./FontStyle","./FontWeight","./LengthUnit","./PropertyActiveEventArgs","./PropertyType","./PropertyValueEventArgs","./PropertyVisibility","../util/Font","../util/Length"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b,y,I){"use strict";e.EnumValue=t,e.IVizBooleanProperty=n,e.IVizColorProperty=r,e.IVizEnumProperty=i,e.IVizGroupProperty=a,e.IVizLengthProperty=o,e.IVizNumberProperty=s,e.IVizProperties=l,e.IVizProperty=u,e.IVizStringProperty=c,e.IVizValueProperty=f,e.FontStyle=d,e.FontWeight=p,e.LengthUnit=h,e.PropertyActiveEventArgs=m,e.PropertyType=g,e.PropertyValueEventArgs=v,e.PropertyVisibility=b,e.Font=y,e.Length=I})),define("com/ibm/vipr/api/EncodingType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Cat="cat",this.Cont="cont",this.Custom="custom"}),{parse:function(e){if(!e)return null;switch(e.toLowerCase()){case"cat":return this.Cat;case"cont":return this.Cont;case"custom":return this.Custom;default:return null}}})})),define("com/ibm/vipr/api/IHittable",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getHittableType:function(){}})})),define("com/ibm/vipr/api/IAxisItem",["barejs!decl","./IHittable"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getType:function(){},getSlot:function(){},getTuple:function(){},getValue:function(){}})})),define("com/ibm/vipr/api/IBounds",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getLeft:function(){},getTop:function(){},getRight:function(){},getBottom:function(){},getWidth:function(){},getHeight:function(){}})})),define("com/ibm/vipr/api/ICapability",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getSlot:function(){},getName:function(){},getAttributes:function(){}})})),define("com/ibm/vipr/api/IPaletteResolver",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{})})),define("com/ibm/vipr/api/ICatPalette",["barejs!decl","./IPaletteResolver"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getColor:function(e,t,n){}})})),define("com/ibm/vipr/api/IColor",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getRed:function(){},getGreen:function(){},getBlue:function(){},getAlpha:function(){}})})),define("com/ibm/vipr/api/IColorStop",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{color:t,at:t,value:t})})),define("com/ibm/vipr/api/IContPalette",["barejs!decl","./IPaletteResolver"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getColorStops:function(e,t){}})})),define("com/ibm/vipr/api/IContStops",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{stops:t,interpolate:t})})),define("com/ibm/vipr/api/IPoint",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{x:e.readOnlyProperty,y:e.readOnlyProperty,getX:function(){},getY:function(){}})})),define("com/ibm/vipr/api/ICoordinate",["barejs!decl","./IPoint"],(function(e,t){"use strict";return e.declareInterface((function(){}),t)})),define("com/ibm/vipr/api/ICustomCatPalette",["barejs!decl","./IPaletteResolver"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getColor:function(e,t,n){}})})),define("com/ibm/vipr/api/ICustomContPalette",["barejs!decl","./IPaletteResolver"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getColorStops:function(e){}})})),define("com/ibm/vipr/api/ICustomDataSet",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getName:function(){},getItems:function(){},getDecorationVersion:function(){},updateDecorations:function(){}})})),define("com/ibm/vipr/api/IEncoding",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getType:function(){},getChannel:function(){},getSlot:function(){},getRef:function(){},getCaption:function(){}})})),define("com/ibm/vipr/api/IHostAPI",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{request:function(e){},requestRender:function(){},notify:function(e){},setCustomData:function(e,t){}})})),define("com/ibm/vipr/api/IInteractivity",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{startInteractivity:function(e){},canTranslate:function(){},translate:function(e){},canZoom:function(){},zoom:function(e,t){},canZoomIn:function(){},canZoomOut:function(){},canReset:function(){},reset:function(){},cancelInteractivity:function(e){},endInteractivity:function(e){}})})),define("com/ibm/vipr/api/INls",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{has:function(e){},get:function(e){}})})),define("com/ibm/vipr/api/IRegion",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getName:function(){},getSlots:function(){},getBounds:function(){}})})),define("com/ibm/vipr/api/IRenderHandle",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{format:t,status:t,supportsPause:t,supportsAbort:t,supportsComplete:t,onprogress:e.readWriteProperty,then:function(e,t){},catch:function(e){}})})),define("com/ibm/vipr/api/IRenderInterrupt",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{supportsPause:t,supportsAbort:t,supportsComplete:t,pause:function(e){},resume:function(e){},complete:function(e){},abort:function(e){}})})),define("com/ibm/vipr/api/IRenderParameters",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{format:e.readOnlyProperty,width:e.readOnlyProperty,height:e.readOnlyProperty,getFormat:function(){},getWidth:function(){},getHeight:function(){}})})),define("com/ibm/vipr/api/IVIPR",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{register:function(e,t){},unregister:function(e){},isRegistered:function(e){},bundleIds:e.readOnlyProperty,load:function(e){},unload:function(e){},loadAll:function(){},newViz:function(e,t,n,r,i){},addAppender:function(e){},removeAppender:function(e){}})})),define("com/ibm/vipr/api/IVizBundle",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{id:t,manifest:t,vizDef:t,userData:t,getId:function(){},getLocation:function(){},getManifest:function(){},getVizDef:function(){},getUserData:function(){},getUserConfig:function(){},create:function(e,t,n){},processData:function(e,t,n){},compileData:function(e,t){},loadResource:function(e,t){},getLocale:function(){},getNls:function(){},extendVizDef:function(e,t,n,r){}})})),define("com/ibm/vipr/api/IVizService",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{vizBundle:t,vizDef:t,serviceDescription:t,domNode:t,userData:t,truncate:e.readWriteProperty,renderTimeout:e.readWriteProperty,properties:t,destroy:function(){},destroyAsync:function(){},setData:function(e,t){},setProperty:function(e,t){},render:function(e,t,n){},getCapabilities:function(){},getEncodings:function(){},getInteractivity:function(){},getVisCoordinate:function(e,t){},getClientPoint:function(e){},getRegionAtPoint:function(e,t){},getItemsAtPoint:function(e,t){},getAxisItemsAtPoint:function(e,t){},getItemsInPolygon:function(e){},getState:function(){},setState:function(e){}})})),define("com/ibm/vipr/api/IVizServiceRequest",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getId:function(){},getName:function(){},getVersion:function(){},getPayload:function(){},isAborted:function(){},isCompleted:function(){},isFailed:function(){},isActive:function(){},reply:function(e){},complete:function(e){},fail:function(e){}})})),define("com/ibm/vipr/api/PaletteType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Cat="cat",this.Cont="cont",this.CustomCont="customcont",this.CustomCat="customcat"}))})),define("com/ibm/vipr/api/RenderStatus",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Pending="pending",this.Rendering="rendering",this.Animating="animating",this.Blocked="blocked",this.Paused="paused",this.Complete="complete",this.Failed="failed",this.Aborted="aborted",this.Timeout="timeout"}))})),define("com/ibm/vipr/api/RenderMessage",["barejs!decl","../internal/util/NumberUtil","./RenderStatus"],(function(e,t,n){"use strict";function r(e){return null==e?null:"string"==typeof e?e:String(e)}function i(n,i,a,o,s,l){e.defineProperties(this,{status:{enumerable:!0,value:n},progress:{enumerable:!0,value:t.clamp(0,+i,1)},id:{enumerable:!0,value:r(a)},message:{enumerable:!0,value:r(o)},data:{enumerable:!0,value:void 0===s?null:s},obsolete:{enumerable:!0,value:!!l}})}return e.declareClass(i,{status:null,progress:null,id:null,message:null,data:null,obsolete:null,completed:{enumerable:!0,get:function(){return"complete"===this.status}},failed:{enumerable:!0,get:function(){return"failed"===this.status||"timeout"===this.status}},makeObsolete:function(){var e=!1!==arguments[0];return this.obsolete===e?this:new i(this.status,this.progress,this.id,this.message,this.name,e)},toString:function(){return this.message},valueOf:function(){return this.id}})})),define("com/ibm/vipr/api/ResourceType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Css="text/css",this.Html="text/html",this.Java="application/java",this.JavaScript="text/javascript",this.Json="application/json",this.Nls="text/x.nls",this.Svg="image/svg+xml",this.Text="text/plain",this.Xml="text/xml",this.Raw="application/octet-stream"}),{parse:function(e){if(!e)return null;switch(e.toLowerCase()){case"css":case"text/css":return this.Css;case"html":case"text/html":return this.Html;case"java":case"application/java":return this.Java;case"js":case"javascript":case"text/javascript":return this.JavaScript;case"json":case"application/json":return this.Json;case"nls":case"i18n":case"text/x.nls":return this.Nls;case"svg":case"image/svg+xml":return this.Svg;case"txt":case"text":case"text/plain":return this.Text;case"xml":case"text/xml":return this.Xml;case"raw":case"application/octet-stream":return this.Raw;default:return null}}})})),define("com/ibm/vipr/api/Severity",["barejs!decl"],(function(e){"use strict";var t=/^(?:error|warn|info)$/;return e.declareEnum((function(){this.Error="error",this.Warning="warn",this.Info="info"}),{hasValue:function(e){return"string"==typeof e&&t.test(e)}})})),define("com/ibm/vipr/api/ICustomData",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getType:function(){},getId:function(){},getPayload:function(){}})})),define("com/ibm/vipr/data/IDecorated",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{hasDecoration:function(e){},getDecoration:function(e){}})})),define("com/ibm/vipr/api/ICustomDataDecorated",["barejs!decl","./ICustomData","../data/IDecorated"],(function(e,t,n){"use strict";return e.declareInterface((function(){}),t,n,{getCustomSet:function(){},setDecoration:function(e,t){},removeDecoration:function(e){},clearDecorations:function(){}})})),define("com/ibm/vipr/api/api",["exports","../property/property","./EncodingType","./IAxisItem","./IBounds","./ICapability","./ICatPalette","./IColor","./IColorStop","./IContPalette","./IContStops","./ICoordinate","./ICustomCatPalette","./ICustomContPalette","./ICustomDataSet","./IEncoding","./IHostAPI","./IInteractivity","./INls","./IPoint","./IRegion","./IRenderHandle","./IRenderInterrupt","./IRenderParameters","./IVIPR","./IVizBundle","./IVizService","./IVizServiceRequest","./PaletteType","./RenderMessage","./RenderStatus","./ResourceType","./Severity","./ICustomData","./ICustomDataDecorated"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b,y,I,_,w,C,S,P,D,R,T,V,A,E,x,j,z){"use strict";e.EncodingType=n,e.IAxisItem=r,e.IBounds=i,e.ICapability=a,e.ICatPalette=o,e.IColor=s,e.IColorStop=l,e.IContPalette=u,e.IContStops=c,e.ICoordinate=f,e.ICustomCatPalette=d,e.ICustomContPalette=p,e.ICustomDataSet=h,e.ICustomData=j,e.ICustomDataDecorated=z,e.IDataRequestHandler=g,e.IEncoding=m,e.IHostAPI=g,e.IInteractivity=v,e.INls=b,e.IPoint=y,e.IRegion=I,e.IRenderHandle=_,e.IRenderInterrupt=w,e.IRenderParameters=C,e.IVIPR=S,e.IVizBundle=P,e.IVizService=D,e.IVizServiceRequest=R,e.PaletteType=T,e.RenderMessage=V,e.RenderStatus=A,e.ResourceType=E,e.Severity=x,e.IVizBooleanProperty=t.IVizBooleanProperty,e.IVizColorProperty=t.IVizColorProperty,e.IVizEnumProperty=t.IVizEnumProperty,e.IVizGroupProperty=t.IVizGroupProperty,e.IVizNumberProperty=t.IVizNumberProperty,e.IVizProperties=t.IVizProperties,e.IVizStringProperty=t.IVizStringProperty,e.IVizValueProperty=t.IVizValueProperty,e.PropertyActiveEventArgs=t.PropertyActiveEventArgs,e.PropertyValueEventArgs=t.PropertyValueEventArgs})),define("com/ibm/vipr/data/DataItemType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Cat="cat",this.Cont="cont"}),{parse:function(e){if(!e)return null;switch(e.toLowerCase()){case"cat":return this.Cat;case"cont":return this.Cont;default:return null}}})})),define("com/ibm/vipr/data/FormatKind",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Data="data",this.Label="label"}),{validate:function(e){switch(e){case"data":case"label":return e;default:throw new TypeError("Invalid FormatKind: "+e)}}})})),define("com/ibm/vipr/data/IDataItem",["barejs!decl","./IDecorated","./DataItemType"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getType:function(){}})})),define("com/ibm/vipr/data/ICatDataItem",["barejs!decl","./IDataItem"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getItemClassSetCount:function(){},getItemClassSet:function(e){},getTupleCount:function(){},getDataWindowStart:function(){},getDataWindowEnd:function(){},getTuple:function(e){}})})),define("com/ibm/vipr/data/IValue",["barejs!decl","./IDecorated"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getValueType:function(){},getCaption:function(e){},getValue:function(){}})})),define("com/ibm/vipr/data/IContDataItem",["barejs!decl","./IDataItem"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getItemClass:function(){},getFormatter:function(e){},getDomain:function(e,t){}})})),define("com/ibm/vipr/data/IDataPoint",["barejs!decl","./IDecorated"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getTupleIndex:function(e){},getValue:function(e){}})})),define("com/ibm/vipr/data/IDataPointIterator",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{nextValue:function(){}})})),define("com/ibm/vipr/data/IDataSet",["barejs!decl","./IDecorated"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getDataItemCount:function(){},getDataItem:function(e){},getDataPointIterator:function(){}})})),define("com/ibm/vipr/data/IDataSetMapping",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getDataItemsFor:function(e){}})})),define("com/ibm/vipr/data/ITemporalAttributes",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{hasYear:function(){},hasMonth:function(){},hasDay:function(){},hasHour:function(){},hasMinute:function(){},hasSecond:function(){},hasFraction:function(){}})})),define("com/ibm/vipr/data/ITemporalDataItem",["barejs!decl","./ICatDataItem"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getTemporalAttributes:function(){},getFormatter:function(e){}})})),define("com/ibm/vipr/data/ITuple",["barejs!decl","./IDecorated"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getItemClassSetIndex:function(){},getItem:function(e){}})})),define("com/ibm/vipr/data/ITemporalTuple",["barejs!decl","./ITuple"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getValue:function(){}})})),define("com/ibm/vipr/data/IFormatter",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{format:function(e){}})})),define("com/ibm/vipr/data/IItem",["barejs!decl","./IDecorated"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getCaption:function(e){},getUniqueName:function(){}})})),define("com/ibm/vipr/data/IItemClass",["barejs!decl","./IDecorated"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getCaption:function(e){},getSubCaption:function(e){},getUniqueName:function(){}})})),define("com/ibm/vipr/data/IItemClassSet",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getItemClassCount:function(){},getItemClass:function(e){}})})),define("com/ibm/vipr/data/IReferenceDataItem",["barejs!decl","./ICatDataItem"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{})})),define("com/ibm/vipr/data/IReferenceTuple",["barejs!decl","./ITuple"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getReference:function(){}})})),define("com/ibm/vipr/data/ISlotMapping",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getDataSetMapping:function(e){}})})),define("com/ibm/vipr/data/IGeoAttributes",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{hasCaption:function(){},hasLatitude:function(){},hasLongitude:function(){},hasFeatureId:function(){}})})),define("com/ibm/vipr/data/IGeoDataItem",["barejs!decl","./ICatDataItem"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getGeoAttributes:function(){}})})),define("com/ibm/vipr/data/IGeoTuple",["barejs!decl","./ITuple"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getLatitude:function(){},getLongitude:function(){},getFeatureId:function(){}})})),define("com/ibm/vipr/data/IContDomain",["barejs!decl"],(function(e){"use strict";var t=e.readOnlyProperty;return e.declareInterface((function(){}),{min:t,max:t,explicit:t})})),define("com/ibm/vipr/data/IVIPRData",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getDataSetAt:function(e){},getDecorationsVersion:function(){}})})),define("com/ibm/vipr/data/ValueType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Missing="missing",this.Numeric="numeric",this.Text="text",this.Error="error"}))})),define("com/ibm/vipr/data/data",["exports","./DataItemType","./FormatKind","./ICatDataItem","./IValue","./IContDataItem","./IDataPoint","./IDataPointIterator","./IDataSet","./IDataSetMapping","./ITemporalAttributes","./ITemporalDataItem","./ITemporalTuple","./IDecorated","./IDataItem","./IFormatter","./IItem","./IItemClass","./IItemClassSet","./IReferenceDataItem","./IReferenceTuple","./ISlotMapping","./ITuple","./IGeoAttributes","./IGeoDataItem","./IGeoTuple","./IContDomain","./IVIPRData","./ValueType"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b,y,I,_,w,C,S,P,D,R,T){"use strict";e.DataItemType=t,e.FormatKind=n,e.ICatDataItem=r,e.IValue=i,e.IContDataItem=a,e.IDataPoint=o,e.IDataPointIterator=s,e.IDataSet=l,e.IDataSetMapping=u,e.ITemporalAttributes=c,e.ITemporalDataItem=f,e.ITemporalTuple=d,e.IDecorated=p,e.IDataItem=h,e.IFormatter=m,e.IItem=g,e.IItemClass=v,e.IItemClassSet=b,e.IReferenceDataItem=y,e.IReferenceTuple=I,e.ISlotMapping=_,e.ITuple=w,e.IGeoAttributes=C,e.IGeoDataItem=S,e.IGeoTuple=P,e.IContDomain=D,e.IVIPRData=R,e.ValueType=T})),define("com/ibm/vipr/info/IInfo",["barejs!decl","../api/IHittable"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getInfoType:function(){},getSource:function(){}})})),define("com/ibm/vipr/info/ISlottedInfo",["barejs!decl","./IInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getSlotRef:function(){}})})),define("com/ibm/vipr/info/IDataItemInfo",["barejs!decl","./ISlottedInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getDataItemInfoType:function(){},getCaption:function(e){},getSubCaption:function(e){},combineCaptions:function(e){}})})),define("com/ibm/vipr/info/ICatDataItemInfo",["barejs!decl","./IDataItemInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getStart:function(){},getEnd:function(){},getTupleCount:function(){},getItemClassSetInfos:function(){},getTupleInfos:function(){},getTupleInfo:function(e){}})})),define("com/ibm/vipr/info/IContDataItemInfo",["barejs!decl","./IDataItemInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getItemClassInfo:function(){},getFormatter:function(e){},getDomainInfo:function(e){},calcDomain:function(e){}})})),define("com/ibm/vipr/info/ICustomInfo",["barejs!decl","./IInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getId:function(){},getType:function(){},getPayload:function(){},equals:function(e){}})})),define("com/ibm/vipr/info/ICustomInfoDecorated",["barejs!decl","./ICustomInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{hasDecoration:function(e){},getDecoration:function(e,t){},setDecoration:function(e,t){}})})),define("com/ibm/vipr/info/IDataPointInfo",["barejs!decl","./IInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getKey:function(e){},getRowInfo:function(){},allInfo:function(e){},getInfo:function(e,t){}})})),define("com/ibm/vipr/info/IDataSetInfo",["barejs!decl","./IInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getMapping:function(){},getDataSetDef:function(){},getName:function(){},getCaption:function(){},getDataItemInfos:function(){},getDataPointInfos:function(){},getSlotInfo:function(e){},getSlotInfos:function(){},hasValues:function(){}})})),define("com/ibm/vipr/info/IDatumInfo",["barejs!decl","./ISlottedInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getDataItemInfoType:function(){},getCaption:function(e){}})})),define("com/ibm/vipr/info/ITupleInfo",["barejs!decl","./IDatumInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getSubType:function(){},getIndex:function(){},getItemClassSetInfo:function(){},getItemClassInfos:function(){},getItemInfos:function(){},getKey:function(e){},getDataItemInfo:function(){}})})),define("com/ibm/vipr/info/ITemporalTupleInfo",["barejs!decl","./ITupleInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getValue:function(){}})})),define("com/ibm/vipr/info/IGeoTupleInfo",["barejs!decl","./ITupleInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getLatitude:function(){},getLongitude:function(){},getFeatureId:function(){}})})),define("com/ibm/vipr/info/IItemClassInfo",["barejs!decl","./ISlottedInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getCaption:function(e){},getSubCaption:function(e){},combineCaptions:function(e){},getUniqueName:function(){},toString:function(){}})})),define("com/ibm/vipr/info/IItemClassSetInfo",["barejs!decl","./ISlottedInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getItemClassInfos:function(){},getCaption:function(e){},getSubCaption:function(e){},combineCaptions:function(e){},toString:function(){}})})),define("com/ibm/vipr/info/IItemInfo",["barejs!decl","./ISlottedInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getCaption:function(e){},getUniqueName:function(){},toString:function(){}})})),define("com/ibm/vipr/info/InfoType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.VIPRData="viprdata",this.DataSet="dataset",this.Slot="slot",this.DataItem="dataitem",this.ItemClassSet="itemclassset",this.ItemClass="itemclass",this.Tuple="tuple",this.Item="item",this.DataPoint="datapoint",this.Value="value",this.CustomData="customdata"}))})),define("com/ibm/vipr/info/IReferenceTupleInfo",["barejs!decl","./ITupleInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getReference:function(){}})})),define("com/ibm/vipr/info/ISlotInfo",["barejs!decl","./ISlottedInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getSlotType:function(){},getName:function(){},isMapped:function(){},getDataItemCount:function(){},getDataItemInfos:function(){},getDataItemInfo:function(e){}})})),define("com/ibm/vipr/info/IValueInfo",["barejs!decl","./IDatumInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getValueInfoType:function(){},getValue:function(){},getDataItemInfo:function(){}})})),define("com/ibm/vipr/info/IVIPRDataInfo",["barejs!decl","./IInfo"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getMapping:function(){},getDataSetInfos:function(){},getDataSetInfo:function(e){},getDecorationsVersion:function(){},empty:function(){},filterDecorations:function(e){}})})),define("com/ibm/vipr/info/info",["exports","./ICatDataItemInfo","./IContDataItemInfo","./ICustomInfo","./ICustomInfoDecorated","./IDataItemInfo","./IDataPointInfo","./IDataSetInfo","./ITemporalTupleInfo","./IDatumInfo","./IGeoTupleInfo","./IInfo","./IItemClassInfo","./IItemClassSetInfo","./IItemInfo","./InfoType","./IReferenceTupleInfo","./ISlotInfo","./ISlottedInfo","./ITupleInfo","./IValueInfo","./IVIPRDataInfo"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b,y,I,_){"use strict";e.ICatDataItemInfo=t,e.IContDataItemInfo=n,e.ICustomInfo=r,e.ICustomInfoDecorated=i,e.IDataItemInfo=a,e.IDataPointInfo=o,e.IDataSetInfo=s,e.ITemporalTupleInfo=l,e.IDatumInfo=u,e.IGeoTupleInfo=c,e.IInfo=f,e.IItemClassInfo=d,e.IItemClassSetInfo=p,e.IItemInfo=h,e.InfoType=m,e.IReferenceTupleInfo=g,e.ISlotInfo=v,e.ISlottedInfo=b,e.ITupleInfo=y,e.IValueInfo=I,e.IVIPRDataInfo=_})),define("com/ibm/vipr/rs/v1/IRSColor",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{r:t.readOnlyProperty,g:t.readOnlyProperty,b:t.readOnlyProperty,a:t.readOnlyProperty,getRed:function(){},getGreen:function(){},getBlue:function(){},getAlpha:function(){},toString:function(){}}),n})),define("com/ibm/vipr/util/Color",["barejs!decl","../internal/util/NumberUtil","../api/IColor","com/ibm/vipr/rs/v1/IRSColor"],(function(e,t,n,r){"use strict";var i=/^\s*#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\s*$/,a=/^\s*rgba?\s*\(\s*(\d+\%?)\s*,\s*(\d+\%?)\s*,\s*(\d+\%?)\s*(?:,\s*(\d+(?:\.\d+)?\%?)\s*)?\)\s*$/,o=/^\s*hsla?\s*\(\s*([+\-]?(?=\d|\.\d+)\d*(?:\.\d+)?)(deg|g?rad|turn)?\s*,\s*((?=\d|\.\d+)\d*(?:\.\d+)?\%?)\s*,\s*((?=\d|\.\d+)\d*(?:\.\d+)?\%?)\s*(?:,\s*((?=\d|\.\d+)\d*(?:\.\d+)?\%?)\s*)?\)\s*$/;function s(e){var t=+e||0;return t<0?0:t>1?1:t}function l(e){var t=Math.floor(e)||0;return t<0?0:t>255?255:t}function u(e){return l(Math.floor(255*e))}function c(e){var n=e.indexOf("%",e.length-1)>=0,r=t.parseNumber(n?e.substring(0,e.length-1):e,0);return n&&(r/=100),s(r)}function f(e){return e.indexOf("%",e.length-1)>=0?u(c(e)):l(t.parseNumber(e,0))}function d(e,t,n){return e<<16|t<<8|n}function p(e,t,n,r){var i=(r+e/30)%12;return n-t*Math.max(Math.min(i-3,9-i,1),-1)}function h(e,t,n){var r=t*Math.min(n,1-n);return u(p(e,r,n,0))<<16|u(p(e,r,n,8))<<8|u(p(e,r,n,4))}function m(t,n){void 0===n&&(n=1),e.defineProperties(this,{_argb:{value:t|u(n)<<24},a:{enumerable:!0,value:n}})}function g(e,t,n){var r=arguments[3];return r=void 0===r?1:s(r),new m(d(l(e),l(t),l(n)),r)}function v(e,t,n){var r=arguments[3];return r=void 0===r?1:s(r),(e<0||e>=360)&&(e%=360)<0&&(e+=360),new m(h(e,t,n),r)}return e.declareClass(m,n,r,{fromHost:function(e){return!e||e instanceof m?e||null:g(e.getRed(),e.getGreen(),e.getBlue(),e.getAlpha())},fromRSv1:function(e){return!e||e instanceof m?e||null:g(e.getRed(),e.getGreen(),e.getBlue(),e.getAlpha())},rgb:g,rgba:g,hsl:v,hsla:v,fromString:function(e){if(!e||!e.length)return null;try{var t=m.Named.valueOf(e.toLowerCase());if(t)return t}catch(e){}var n;if(n=i.exec(e)){var r=n[1],l=0,u=255;switch(r.length){case 8:u=parseInt(r.substring(6,8),16);case 6:l=parseInt(r.substring(0,6),16);break;case 4:u=parseInt(r.substring(3,4),16),u|=u<<4;case 3:l=(3840&(l=parseInt(r.substring(0,3),16)))<<8|(240&l)<<4|15&l,l|=l<<4}return new m(l,s(u/255))}if(n=a.exec(e))return g(f(n[1]),f(n[2]),f(n[3]),n[4]?c(n[4]):1);if(n=o.exec(e)){var d=parseFloat(n[1]);switch(n[2]||"deg"){case"deg":break;case"rad":d=180*d/Math.PI;break;case"grad":d=360*d/400;break;case"turn":d*=360;break;default:throw new Error("Unhandled unit: "+n[2])}return v(d,c(n[3]),c(n[4]),n[5]?c(n[5]):1)}return null},fromObject:function(e){return e&&"object"==typeof e&&"r"in e&&"g"in e&&"b"in e?g(e.r,e.g,e.b,e.a):null},toObject:function(t){if(!t||!e.hasInterface(t,n))throw new TypeError("Color is invalid");return{r:t.getRed(),g:t.getGreen(),b:t.getBlue(),a:t.getAlpha()}},interpolate:function(t,r,i){if(!(t&&r&&e.hasInterface(t,n)&&e.hasInterface(r,n)))throw new TypeError("One of the colors is invalid");if(i<=0||t.equals(r))return t;if(i>=1)return r;var a=r.getRed()-t.getRed(),o=r.getGreen()-t.getGreen(),s=r.getBlue()-t.getBlue(),l=r.getAlpha()-t.getAlpha();return g(Math.round(t.getRed()+a*i),Math.round(t.getGreen()+o*i),Math.round(t.getBlue()+s*i),t.getAlpha()+l*i)}},{_argb:null,a:null,r:{enumerable:!0,get:"getRed"},g:{enumerable:!0,get:"getGreen"},b:{enumerable:!0,get:"getBlue"},equals:function(t){return t===this||!!t&&(t instanceof m?this._argb===t._argb&&this.a===t.a:!!e.hasInterface(t,n)&&(this.getRed()===t.getRed()&&this.getGreen()===t.getGreen()&&this.getBlue()===t.getBlue()&&this.a===t.getAlpha()))},getRed:function(){return this._argb>>>16&255},getGreen:function(){return this._argb>>>8&255},getBlue:function(){return 255&this._argb},getAlpha:function(){return this.a},toString:function(){if(0===this._argb)return"transparent";if(255==(this._argb>>>24&255)){var e=(16777215&this._argb).toString(16);return"#00000".substring(0,7-e.length)+e}return"rgba("+this.getRed()+", "+this.getGreen()+", "+this.getBlue()+", "+this.a+")"}}),e.defineProperty(m,"Named",{enumerable:!0,value:e.declareEnum((function(){this.transparent=new m(0,0),this.black=new m(0),this.navy=new m(128),this.darkblue=new m(139),this.mediumblue=new m(205),this.blue=new m(255),this.darkgreen=new m(25600),this.green=new m(32768),this.teal=new m(32896),this.darkcyan=new m(35723),this.deepskyblue=new m(49151),this.darkturquoise=new m(52945),this.mediumspringgreen=new m(64154),this.lime=new m(65280),this.springgreen=new m(65407),this.aqua=new m(65535),this.cyan=new m(65535),this.midnightblue=new m(1644912),this.dodgerblue=new m(2003199),this.lightseagreen=new m(2142890),this.forestgreen=new m(2263842),this.seagreen=new m(3050327),this.darkslategray=new m(3100495),this.darkslategrey=new m(3100495),this.limegreen=new m(3329330),this.mediumseagreen=new m(3978097),this.turquoise=new m(4251856),this.royalblue=new m(4286945),this.steelblue=new m(4620980),this.darkslateblue=new m(4734347),this.mediumturquoise=new m(4772300),this.indigo=new m(4915330),this.darkolivegreen=new m(5597999),this.cadetblue=new m(6266528),this.cornflowerblue=new m(6591981),this.mediumaquamarine=new m(6737322),this.dimgray=new m(6908265),this.dimgrey=new m(6908265),this.slateblue=new m(6970061),this.olivedrab=new m(7048739),this.slategray=new m(7372944),this.slategrey=new m(7372944),this.lightslategray=new m(7833753),this.lightslategrey=new m(7833753),this.mediumslateblue=new m(8087790),this.lawngreen=new m(8190976),this.chartreuse=new m(8388352),this.aquamarine=new m(8388564),this.maroon=new m(8388608),this.purple=new m(8388736),this.olive=new m(8421376),this.gray=new m(8421504),this.grey=new m(8421504),this.skyblue=new m(8900331),this.lightskyblue=new m(8900346),this.blueviolet=new m(9055202),this.darkred=new m(9109504),this.darkmagenta=new m(9109643),this.saddlebrown=new m(9127187),this.darkseagreen=new m(9419919),this.lightgreen=new m(9498256),this.mediumpurple=new m(9662680),this.darkviolet=new m(9699539),this.palegreen=new m(10025880),this.darkorchid=new m(10040012),this.yellowgreen=new m(10145074),this.sienna=new m(10506797),this.brown=new m(10824234),this.darkgray=new m(11119017),this.darkgrey=new m(11119017),this.lightblue=new m(11393254),this.greenyellow=new m(11403055),this.paleturquoise=new m(11529966),this.lightsteelblue=new m(11584734),this.powderblue=new m(11591910),this.firebrick=new m(11674146),this.darkgoldenrod=new m(12092939),this.mediumorchid=new m(12211667),this.rosybrown=new m(12357519),this.darkkhaki=new m(12433259),this.silver=new m(12632256),this.mediumvioletred=new m(13047173),this.indianred=new m(13458524),this.peru=new m(13468991),this.chocolate=new m(13789470),this.tan=new m(13808780),this.lightgray=new m(13882323),this.lightgrey=new m(13882323),this.palevioletred=new m(14184595),this.thistle=new m(14204888),this.orchid=new m(14315734),this.goldenrod=new m(14329120),this.crimson=new m(14423100),this.gainsboro=new m(14474460),this.plum=new m(14524637),this.burlywood=new m(14596231),this.lightcyan=new m(14745599),this.lavender=new m(15132410),this.darksalmon=new m(15308410),this.violet=new m(15631086),this.palegoldenrod=new m(15657130),this.lightcoral=new m(15761536),this.khaki=new m(15787660),this.aliceblue=new m(15792383),this.honeydew=new m(15794160),this.azure=new m(15794175),this.sandybrown=new m(16032864),this.wheat=new m(16113331),this.beige=new m(16119260),this.whitesmoke=new m(16119285),this.mintcream=new m(16121850),this.ghostwhite=new m(16316671),this.salmon=new m(16416882),this.antiquewhite=new m(16444375),this.linen=new m(16445670),this.lightgoldenrodyellow=new m(16448210),this.oldlace=new m(16643558),this.red=new m(16711680),this.fuchsia=new m(16711935),this.magenta=new m(16711935),this.deeppink=new m(16716947),this.orangered=new m(16729344),this.tomato=new m(16737095),this.hotpink=new m(16738740),this.coral=new m(16744272),this.darkorange=new m(16747520),this.lightsalmon=new m(16752762),this.orange=new m(16753920),this.lightpink=new m(16758465),this.pink=new m(16761035),this.gold=new m(16766720),this.peachpuff=new m(16767673),this.navajowhite=new m(16768685),this.moccasin=new m(16770229),this.bisque=new m(16770244),this.mistyrose=new m(16770273),this.blanchedalmond=new m(16772045),this.papayawhip=new m(16773077),this.lavenderblush=new m(16773365),this.seashell=new m(16774638),this.cornsilk=new m(16775388),this.lemonchiffon=new m(16775885),this.floralwhite=new m(16775920),this.snow=new m(16775930),this.yellow=new m(16776960),this.lightyellow=new m(16777184),this.ivory=new m(16777200),this.white=new m(16777215)}))}),m})),define("com/ibm/vipr/util/PaletteBase",["barejs!decl","../api/IColor","../api/IPaletteResolver","./Color"],(function(e,t,n,r){"use strict";var i=/\s*;\s*/;return e.abstractClass((function(t){e.defineProperty(this,"source",{enumerable:!0,value:t})}),n,{split:function(e){return"string"!=typeof e?null:e.trim().split(i)},mapColor:function(n,i){var a=null;if(!(a="string"==typeof n?r.fromString(n):n instanceof r||e.hasInterface(n,t)?r.fromHost(n):r.fromObject(n)))throw new Error('Invalid Color "'+n+'" at index '+i);return a}},{source:null,getSource:function(){return this.source},toString:function(){return this.source?this.source:this._serialize()},_serialize:function(){}})})),define("com/ibm/vipr/util/CatPaletteBase",["barejs!decl","./PaletteBase"],(function(e,t){"use strict";function n(n){var r=n?Array.from(n,t.mapColor,t):new Array(0);if(r.length<1)throw new Error("A Categorical Palette requires at least 1 color");return e.freeze(r)}return e.declareClass((function(r){t.call(this,"string"==typeof r?r:null),e.defineProperty(this,"colors",{enumerable:!0,value:n("string"==typeof r?t.split(r):r)})}),t,{colors:null,_getColorAt:function(e){var t=e%this.colors.length;return t<0&&(t+=this.colors.length),this.colors[t]},getColors:function(){return this.colors},_serialize:function(){return this.colors.join(";")}})})),define("com/ibm/vipr/util/CatPaletteResolver",["barejs!decl","barejs!WeakMap","../api/ICatPalette","./CatPaletteBase"],(function(e,t,n,r){"use strict";var i=new t;return e.declareClass((function(t,n){r.call(this,t),e.defineProperty(this,"defaultIndex",{enumerable:!0,value:Math.floor(n)||0})}),r,n,{defaultIndex:null,getSingleColor:function(e){return this._getColorAt(this.defaultIndex+(+e||0))},getColor:function(e,t,n){if(!(e&&t&&t.mapped))return this.getDefaultColor(null);var r;if(n<0)r=e.getIndex();else{var a=e.getItemInfos();if(n>=a.length)return this.getDefaultColor(null);r=function(e,t,n){var r=i.get(e);r||i.set(e,r=[]);var a=r[n];if(!a){a=r[n]=[];for(var o=e.tuples,s=0,l=o.length;s<l;++s){var u=o[s].items[n];u&&(u=u.uniqueName,a.indexOf(u)<0&&a.push(u))}}return a}(t,0,n).indexOf(a[n].getUniqueName())}return this._getColorAt(r)},getDefaultColor:function(e){return this._getColorAt(this.defaultIndex)}})})),define("com/ibm/vipr/util/CustomCatPaletteResolver",["barejs!decl","../api/ICustomCatPalette","./CatPaletteBase"],(function(e,t,n){"use strict";return e.declareClass((function(e){n.call(this,e)}),n,t,{getColor:function(e,t,n){return this._getColorAt(e)}})})),define("com/ibm/vipr/rs/v1/IRSColorStop",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{color:t.readOnlyProperty,at:t.readOnlyProperty,value:t.readOnlyProperty,getColor:function(){},getAt:function(){},getValue:function(){}}),n})),define("com/ibm/vipr/util/ColorStop",["barejs!decl","./Color","../api/IColorStop","com/ibm/vipr/rs/v1/IRSColorStop"],(function(e,t,n,r){"use strict";function i(t,n,r){e.defineProperties(this,{color:{enumerable:!0,value:t},at:{enumerable:!0,value:n},value:{enumerable:!0,value:r}})}return e.declareClass(i,n,r,{createImplicit:function(e){return new i(t.fromHost(e),null,null)},createAbsolute:function(e,n){return new i(t.fromHost(e),null,n)},createRelative:function(e,n){return new i(t.fromHost(e),n,null)},create:function(e,n,r){return new i(t.fromHost(e),n,r)},isImplicit:function(e){return null===e.at&&null===e.value},fromHost:function(e){return!e||e instanceof i?e||null:new i(t.fromHost(e.getColor()),e.getAt(),e.getValue())},fromRSv1:function(e){return!e||e instanceof i?e||null:new i(t.fromRSv1(e.getColor()),e.getAt(),e.getValue())}},{color:null,at:null,value:null,getColor:function(){return this.color},getAt:function(){return this.at},getValue:function(){return this.value},toString:function(){var e=this.color?this.color.toString():"transparent";return null!==this.at?e+=" "+100*this.at+"%":null!==this.value&&(e+=" "+this.value),e}})})),define("com/ibm/vipr/util/ContPaletteBase",["barejs!decl","./Color","./ColorStop","./PaletteBase"],(function(e,t,n,r){"use strict";var i=e.freeze(new Array(0)),a=/\s+(-?(?:\d*\.\d+|\d+))(%)?\s*$/,o=/(-?(?:\d*\.\d+|\d+))%\s*$/,s=/^(?:(\w+):)?([^|]+)(\|)?(?:(\w+):)?(.*)$/;function l(e,t){this.stops=e,this.interpolate=t}function u(e,s){if(!e)return i;var l=+e.length||0;if(l<1)return i;for(var u,c,f,d,p,h,m=new Array(l),g=s?-1:0,v=1,b=!1,y=!1,I=!1,_=0;_<l;++_){if(c=f=p=null,"string"==typeof(u=e[_]))(h=u.match(a))&&(u=u.substr(0,u.length-h[0].length)),c=t.fromString(u),h&&("%"===h[2]?f=+h[1]/100:p=+h[1]);else if(u)if("color"in(u=Object(u)))if(c=r.mapColor(u.color,_),null!==(d="at"in u?u.at:null)){if("string"==typeof d){if(!(h=o.exec(d)))throw new Error("Invalid percentage string: "+d);f=+h[1]/100}else f=+d;if(Number.isNaN(f))throw new Error("Invalid at in stop at index "+_+": "+d)}else"value"in u&&(p=+u.value);else c=r.mapColor(u,_);if(u=e[_],!c)throw new Error("Could not parse stop definition "+JSON.stringify(u)+" at index "+_);if(null!==f&&(f<g||f>v))throw new Error("Offset "+f+" of stop definition "+JSON.stringify(u)+" at index "+_+" is out of range ( "+g+"-"+v+" ).");null!==f?(y=!0,d=n.createRelative(c,f)):null!==p?(b=!0,d=n.createAbsolute(c,p)):(I=!0,d=n.createImplicit(c)),m[_]=d}if(b&&y)throw new Error("Mixing absolute and relative stops is not supported");if(I){if(u=m[l-1],b){if(null===(v=u.value))throw new Error("The last value of an absolute palette cannot be implicit")}else null===u.at&&(m[l-1]=n.createRelative(u.color,v));var w=0,C=-1;if(u=m[0],b){if(null==(g=u.value))throw new Error("The first value of an absolute palette cannot be implicit")}else null===u.at?m[0]=n.createRelative(u.color,g):g=u.at;for(_=1;_<l;++_)if(u=m[_],null===(p=b?u.value:u.at)){if(C<=_)for(v=null,C=_+1;C<l&&null===(v=b?m[C].value:m[C].at);++C);p=g+(_-w)/(C-w)*(v-g),m[_]=b?n.createAbsolute(u.color,p):n.createRelative(u.color,p)}else g=p,w=_}return m}function c(e){return e.length>0&&null===e[0].at}function f(e){var t=0;return e.length>0&&null!==e[0].value&&(t=e[0].value,t=(e[e.length-1].value-t)/2+t),t}function d(e,t){if(c(e))return e;var r=e.length,i=new Array(Math.floor(r/2)+1);i.length=0;for(var a=0;a<r;++a){var o=e[a],s=o.at;t?s>=0&&i.push(o):s<=0&&i.push(n.createRelative(o.color,s+1))}return i}return e.declareClass(l,{stops:null,interpolate:null,toString:function(){return this.stops.join(";")}}),e.declareClass((function(t,n,i,a){var o=arguments.length<2&&"string"==typeof t;r.call(this,o?t:null);var l=t,p=n,h=i,m=a;if(o){p=null;var g=s.exec(t);if(l=g[2],g[1])switch(g[1]){case"interpolate":h=!0;break;case"discrete":h=!1;break;default:throw new Error("Invalid interpolation")}if(g[3]){if(g[4])switch(g[4]){case"equalize":m=!0;break;case"exact":m=!1;break;default:throw new Error("Invalid equalization")}p=g[5]}}if("string"==typeof l&&(l=r.split(l)),"string"==typeof p&&(p=r.split(p)),l=u(l,!1),p=u(p,!0),e.defineProperties(this,{linear:{enumerable:!0,value:l},divergent:{enumerable:!0,value:p},_lowStops:{enumerable:!0,value:l.length>0?l:d(p,!1)},_highStops:{enumerable:!0,value:l.length>0?l:d(p,!0)},interpolate:{enumerable:!0,value:!1!==h},equalize:{enumerable:!0,value:!c(p)&&!1!==m},midPoint:{enumerable:!0,value:f(p)}}),this.linear.length<1&&this.divergent.length<1)throw new Error("A Continuous Palette requires either linear or divergent stops")}),r,{linear:null,divergent:null,_lowStops:null,_highStops:null,midPoint:null,interpolate:null,equalize:null,_getStopsFor:function(e){var t=0,r=0,i=!1;e&&(t=e.min,r=e.max,i=this.divergent.length>0&&t<this.midPoint&&r>this.midPoint);var a,o=i?this.divergent:t<this.midPoint?this._lowStops:this._highStops,s=c(o),u=o.length,f=this.interpolate;if(t===r)a=[o[Math.floor(u/2)]],f=!1;else if(s||!i)a=o;else{a=new Array(u);var d=Math.abs(this.midPoint-t)||0,p=Math.abs(r-this.midPoint)||0;this.equalize&&(d<p?(d=p,t=this.midPoint-p):d>p&&(p=d));for(var h=0;h<u;++h){var m=o[h],g=m.at;a[h]=n.createAbsolute(m.color,g<0?(g+1)*d+t:g*p+this.midPoint)}}return new l(a,f)},getLinear:function(){return this.linear},getDivergent:function(){return this.divergent},_serialize:function(){var e=this.linear.join(";");return this.divergent.length>0&&(e=e+"|"+this.divergent.join(";")),e}})})),define("com/ibm/vipr/util/ContPaletteResolver",["barejs!decl","../api/IContPalette","./ContPaletteBase"],(function(e,t,n){"use strict";return e.declareClass((function(e,t,r,i){n.apply(this,arguments)}),n,t,{getColorStops:function(e,t){return this._getStopsFor(t)}})})),define("com/ibm/vipr/util/CustomContPaletteResolver",["barejs!decl","../api/ICustomContPalette","./ContPaletteBase"],(function(e,t,n){"use strict";return e.declareClass((function(e,t,r,i){n.apply(this,arguments)}),n,t,{getColorStops:function(e){return this._getStopsFor(e)}})})),define("com/ibm/vipr/api/IPreRenderCallback",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{preRender:function(e,t){}})})),define("com/ibm/vipr/api/IPreRenderNotification",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{complete:function(){},error:function(e){}})})),define("com/ibm/vipr/rs/v1/IRSRenderNotification",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{timeout:t.readOnlyProperty,complete:function(e,t,n){},fail:function(e,t,n){},abort:function(e,t,n){},error:function(e){},animating:function(){},pause:function(){},resume:function(){},progress:function(e,t,n,r){},keepAlive:function(){},getTimeout:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSRenderParameters",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{format:t.readOnlyProperty,width:t.readOnlyProperty,height:t.readOnlyProperty,getFormat:function(){},getWidth:function(){},getHeight:function(){}}),n})),define("com/ibm/vipr/internal/util/RenderParameters",["barejs!decl","com/ibm/vipr/rs/v1/IRSRenderParameters"],(function(e,t){"use strict";function n(n){"string"==typeof n?e.defineProperties(this,{format:{enumerable:!0,value:n},width:{enumerable:!0,value:arguments[1]},height:{enumerable:!0,value:arguments[2]}}):e.hasInterface(n,t)&&e.defineProperties(this,{format:{enumerable:!0,get:n.getFormat.bind(n)},width:{enumerable:!0,get:n.getWidth.bind(n)},height:{enumerable:!0,get:n.getHeight.bind(n)}})}return e.declareClass(n,t,{fromHost:function(e){return e?new n(e):null}},{width:null,height:null,format:null,getWidth:function(){return this.width},getHeight:function(){return this.height},getFormat:function(){return this.format},get:function(e){return this.hasOwnProperty(e)?this[e]:null},has:function(e){return this.hasOwnProperty(e)}})})),define("com/ibm/vipr/internal/util/Deferred",["barejs!decl","barejs!Promise"],(function(e,t){"use strict";return e.declareClass((function(){var n=this;e.defineProperty(n,"_promise",{value:new t((function(t,r){e.defineProperties(n,{_resolve:{writable:!0,value:t},_reject:{writable:!0,value:r}})}))})}),{resolve:function(e){return t.resolve(e)},reject:function(e){return t.reject(e)},execute:function(e){return new t(e)},all:function(e){return t.all(e)}},{_promise:null,_resolve:null,_reject:null,complete:function(e){return this._resolve&&(this._resolve(e),this._resolve=this._reject=null),this._promise},fail:function(e){return this._reject&&(this._reject(e),this._resolve=this._reject=null),this._promise},getPromise:function(){return this._promise},join:function(){return this._promise}})})),define("com/ibm/vipr/internal/util/Timer",["barejs!decl","barejs!Destroyable"],(function(e,t){"use strict";function n(e){return Math.max(0,Math.floor(e)||0)}function r(e){if(null==e)return null;if("function"!=typeof e)throw new TypeError(e+" is not a function.");return e}function i(i,a,o){t.call(this),e.defineProperties(this,{_tid:{writable:!0,value:null},_time:{writable:!0,value:n(a)},_tick:{writable:!0,value:r(i)},_auto:{value:!!o}})}return e.declareClass(i,t,{run:function(e,t){return new i(e,t,!0).start()}},{_tid:null,_time:null,_tick:null,_auto:null,destroy:function(){this.stop(),this._tick=null,t.prototype.destroy.call(this)},time:{enumerable:!0,get:function(){return this._time},set:function(e){this._time=n(e)}},tick:{enumerable:!0,get:function(){return this._tick},set:function(e){this._tick=r(e)}},active:{enumerable:!0,get:function(){return null!==this._tid}},start:function(){var e=this,r=arguments[0];if(r="number"!=typeof r?this.time:n(r),null!==e._tid&&(clearTimeout(e._tid),e._tid=null),t.isDestroyed(this))throw new Error("Timer has been destroyed");return e._tid=setTimeout((function(){e._tid=null;var t=e._tick;e._auto&&e.destroy(),t&&t()}),r),e},stop:function(){return null!==this._tid&&(clearTimeout(this._tid),this._tid=null),this}})})),define("com/ibm/vipr/util/RenderQueue",["barejs!decl","barejs!NMap","barejs!WeakMap","../api/IRenderHandle","../api/IPreRenderCallback","../api/IPreRenderNotification","../api/RenderMessage","../api/RenderStatus","../api/IRenderInterrupt","com/ibm/vipr/rs/v1/IRSRenderNotification","../internal/util/RenderParameters","../internal/util/Deferred","../internal/util/Timer"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d){"use strict";var p=new n,h=/^(?:complete|failed|aborted|timeout)$/,m=/^(?:rendering|animating|paused)$/;function g(){f.call(this)}function v(e,t,n){t?e.complete(n):e.fail(n)}function b(t,n,r,a){p.set(this,n),e.defineProperties(this,{format:{enumerable:!0,value:t},status:{enumerable:!0,writable:!0,value:s.Pending},_progress:{writable:!0,value:null},_promise:{value:r},_preRender:{value:e.asFunctional(a,i)}})}function y(t,n){e.defineProperties(this,{_renderParams:{value:t||new c("client")},_status:{writable:!0,value:s.Pending},_pauseStatus:{writable:!0,value:null},_handles:{value:[]},_handleDfds:{value:[]},_timer:{writable:!0,value:null},_interrupt:{writable:!0,value:null},_progress:{writable:!0,value:0},_linked:{writable:!0,value:null},_notify:{writable:!0,value:this.as(u)},_onSettle:{writable:!0,value:n},_destroyError:{writable:!0,value:null},_abortRequested:{writable:!0,value:!1}})}return e.declareClass(g,f,a,{complete:function(){f.prototype.complete.call(this,null)},error:function(e){this.fail(e)}}),e.declareClass(b,r,{format:null,status:null,_progress:null,_promise:null,_preRender:null,supportsPause:{enumerable:!0,get:function(){var e=p.get(this);return!(!e||!e.supportsPause)}},supportsComplete:{enumerable:!0,get:function(){var e=p.get(this);return!(!e||!e.supportsComplete)}},supportsAbort:{enumerable:!0,get:function(){var e=p.get(this);return!(!e||!e.supportsAbort)}},onprogress:{enumerable:!0,get:function(){return this._progress},set:function(e){if(null!=e&&"function"!=typeof e)throw new TypeError("onprogress callback must be null or a function.");this._progress=e||null}},then:function(e,t){return this._promise.then(e,t)},catch:function(e){return this._promise.catch(e)},pause:function(){var e=p.get(this);return!!e&&e.requestPause()},resume:function(){var e=p.get(this);return!!e&&e.requestResume()},complete:function(){var e=p.get(this);return!!e&&e.requestComplete()},abort:function(){var e=p.get(this);return!!e&&e.requestAbort()},emitProgress:function(e){this._progress&&this._progress(e,this)},invokePreRender:function(){var e=null;return this._preRender&&(e=new g,this._preRender.preRender(e,this)),e&&e.getPromise()}}),e.declareClass(y,u,{_status:null,_pauseStatus:null,_handles:null,_handleDfds:null,_timer:null,_interrupt:null,_progress:null,_linked:null,_notify:null,_onSettle:null,_destroyError:null,_abortRequested:null,timeout:{enumerable:!0,get:"getTimeout"},destroy:function(e){var t=3e3;return this._destroyError=e,this._timer&&(t=Math.max(500,this._timer.time/5),this._timer.destroy(),this._timer=null),this._interrupt?(this._abortRequested||(this.requestAbort(),this._abortRequested=!1),this._timer=new d(this._timeout.bind(this),t),this._timer.start()):this.abort("destroy",e.message,e),this._handles[this._handles.length-1]},add:function(e,t){var n=new f,r=new b(this._renderParams.format,this,n.getPromise(),t);if(e)try{r.onprogress=e}catch(e){r.status=s.Failed,n.fail(new o(r.status,1,"error",e.message,e)),n=null}return n&&(this._handles.push(r),this._handleDfds.push(n)),r},execute:function(e,t,n,r){r>0&&(this._timer=new d(this._timeout.bind(this),r));var i=this._handles,o=this.startRender.bind(this,t,n),l=this.error.bind(this);function u(){for(var e=[],t=0,n=i.length;t<n;++t){var r=i[t].invokePreRender();r&&e.push(r)}e.length>0?e.length>1?f.all(e).then(o,l):e[0].then(o,l):o()}if(this._setStatus(s.Blocked),e)try{e(this._renderParams,Object.create(a.prototype,{complete:{enumerable:!0,value:u},error:{enumerable:!0,value:this.error.bind(this)}}))}catch(e){this.error(e)}else u()},startRender:function(t,n){if(this._status!==s.Failed&&this._status!==s.Aborted)try{if(this._status!==s.Blocked)throw new Error("Internal error: cannot render from status "+this._status);this._timer&&this._timer.start(),this._setStatus(s.Rendering);var r=t(this._renderParams,this._notify,n)||null;if(r&&!e.hasInterface(r,l))throw new TypeError("Invalid interrupt api returned by renderer");this._interrupt=r}catch(e){this.error(e)}},link:function(t){if(this._linked)throw new Error("Cannot link to two different handles.");if(!(t instanceof b||e.hasInterface(t,r)))throw new TypeError;var n=t.status;h.test(n)||(t.onprogress=this._handleProgress.bind(this),n!==s.Pending&&n!==s.Blocked&&this._setStatus(n));var i=this._finish.bind(this);t.then(i,i),this._linked=t},complete:function(e,t,n){this._checkId(e)&&this._finish(new o(s.Complete,1,e,t,n))},fail:function(e,t,n){this._checkId(e)&&this._finish(new o(s.Failed,1,e,t,n))},abort:function(e,t,n){this._checkId(e)&&this._finish(this._destroyError&&!this._abortRequested?new o(s.Aborted,0,"destroy",this._destroyError.message,this._destroyError):new o(s.Aborted,0,e,t,n))},error:function(e){var t=null,n=null;if("string"==typeof e)t=e;else if(e){var r=Object(e);if(!("name"in r)||!("message"in r))throw new TypeError("Invalid _error provided");t=e.message,n=e}this._finish(new o(s.Failed,1,"error",t,n))},animating:function(){this._status===s.Rendering&&this._setStatus(s.Animating)},pause:function(){this._status!==s.Rendering&&this._status!==s.Animating||(this._timer&&this._timer.stop(),this._pauseStatus=this._status,this._setStatus(s.Paused))},resume:function(){this._status===s.Paused&&(this._setStatus(this._pauseStatus),this._pauseStatus=null,this._timer&&this._timer.start())},progress:function(e,t,n,r){this._handleProgress(new o(this._status,e,t,n,r))},keepAlive:function(){this._handleProgress(null)},getTimeout:function(){return this._timer.time},supportsPause:{enumerable:!0,get:function(){return this._linked?this._linked.supportsPause:m.test(this._status)&&!(!this._interrupt||!this._interrupt.supportsPause)}},supportsAbort:{enumerable:!0,get:function(){return this._linked?this._linked.supportsAbort:this._status===s.Pending||m.test(this._status)&&!(!this._interrupt||!this._interrupt.supportsAbort)}},supportsComplete:{enumerable:!0,get:function(){return this._linked?this._linked.supportsComplete:m.test(this._status)&&!(!this._interrupt||!this._interrupt.supportsComplete)}},requestAbort:function(){if(this._linked)return this._linked.abort();var e=this.supportsAbort;return e&&(this._abortRequested=!0,this._status===s.Pending?(this.abort(),e=!0):e=!!this._interrupt.abort(this._notify)),e},requestPause:function(){return this._linked?this._linked.pause():this._status===s.Paused||this.supportsPause&&!!this._interrupt.pause(this._notify)},requestResume:function(){return this._linked?this._linked.resume(this._notify):this._status===s.Rendering||this._status===s.Animating||this.supportsPause&&!!this._interrupt.resume(this._notify)},requestComplete:function(){return this._linked?this._linked.complete(this._notify):this._status===s.Complete||this.supportsComplete&&!!this._interrupt.complete(this._notify)},_checkId:function(e){var t=null===e||"object"!=typeof e||!("then"in e);return t||this.error(new Error("RenderingService attempted to complete a render with a Promise")),t},_setStatus:function(e){if(this._status!==e){this._status=e;var t=this._handles.length-1,n=null;if(h.test(e)||e===s.Blocked||(n=new o(e,this._progress,"status",null,e)),t>=0){var r;if(t>0)for(var i=n&&n.makeObsolete(!0),a=0;a<t;++a)(r=this._handles[a]).status=e,i&&r.emitProgress(i);(r=this._handles[t]).status=e,n&&r.emitProgress(n)}}},_handleProgress:function(e){if(!this._timer||this._status!==s.Rendering&&this._status!==s.Animating||this._destroyed||this._timer.start(),e){this._progress=e.progress,this._status!==e.status&&this._setStatus(e.status);var t=this._handles.length-1;if(t>=0){if(t>0)for(var n=e.makeObsolete(!0),r=0;r<t;++r)this._handles[r].emitProgress(n);this._handles[t].emitProgress(e.makeObsolete(!1))}}},_timeout:function(){this._finish(new o(s.Timeout,0,"timeout",this._destroyError?this._destroyError.message:null,this._destroyError))},_finish:function(e){if(!h.test(this._status)){var t=e.status;if(!h.test(t))throw new Error("Attempt to finish render task with status"+t);this._setStatus(t),this._progress=e.progress,this._timer&&this._timer.destroy();var n=this._handles.length-1,r=t===s.Complete||t===s.Aborted&&this._abortRequested;if(n>=0){if(n>0)for(var i=e.makeObsolete(!0),a=0;a<n;++a)v(this._handleDfds[a],r,i),p.delete(this._handles[a]);v(this._handleDfds[n],r,e.makeObsolete(!1)),p.delete(this._handles[a]),this._handleDfds.length=this._handles.length=0}this._onSettle&&this._onSettle(this,e),this._timer=this._interrupt=this._linked=this._notify=this._onSettle=null}}}),e.declareClass((function(n,r,i,a){if(n&&"function"!=typeof n)throw new TypeError("The before function: "+n+" is not a function.");if("function"!=typeof r)throw new TypeError("A render function is required, "+r+" is not a function.");if(i&&"function"!=typeof i)throw new TypeError("The after function: "+i+" is not a function");e.defineProperties(this,{_current:{writable:!0,value:null},_next:{writable:!0,value:null},_data:{value:new t},_before:{configurable:!0,value:n||null},_render:{configurable:!0,value:r},_after:{configurable:!0,value:i||null},_timeout:{writable:!0,value:0},_destroyError:{writable:!0,value:null},_destroyPromise:{writable:!0,value:null},_afterTaskBound:{configurable:!0,value:this._afterTask.bind(this)}}),a&&(this.timeout=a)}),{link:function(e,t){var n=e&&e.as(y);if(!n)throw new TypeError("_notify was not created by a RenderQueue");n.link(t)}},{_current:null,_next:null,_data:null,_render:null,_after:null,_timeout:null,_destroyError:null,_destroyPromise:null,_afterTaskBound:null,timeout:{enumerable:!0,get:function(){return this._timeout},set:function(e){this._timeout=Math.max(0,Math.floor(e)||0)}},destroy:function(){return this._destroyPromise||(this._destroyError=arguments[0]||new Error("destroy"),this._destroyPromise=f.execute(this._destroy.bind(this))),this._destroyPromise},_destroy:function(e,t){var n=this._current,r=this._next,i=null;this._destroyed=!0,this._current=this._next=null,n&&(i=n.destroy(this._destroyError)),r&&r.destroy(this._destroyError),delete this._before,delete this._render,delete this._after,delete this._afterTaskBound,i?i.then(e):e()},add:function(e,t,n){var r=this._next;r||(this._next=r=new y(e,this._afterTaskBound));var i=r.add(t,n);return this._current||this._execute(),i},_execute:function(){if(!this._destroyPromise){if(this._current)throw new Error("Cannot execute render, another render is still in progress");this._current=this._next,this._next=null,this._current.execute(this._before,this._render,this._data,this._timeout)}},_afterTask:function(e,t){if(this._current===e){if(this._current=null,this._after&&this._after(t,this._data),this._data.clear(),this._next){var n=this;d.run((function(){n._next&&!n._current&&n._execute()}),0)}}else this._next===e&&(this._next=null)}})})),define("com/ibm/vipr/internal/util/Capability",["barejs!decl","barejs!NMap","com/ibm/vipr/api/ICapability"],(function(e,t,n){"use strict";function r(n,r,i){e.defineProperties(this,{slot:{enumerable:!0,value:n},name:{enumerable:!0,value:r},attributes:{enumerable:!0,value:i||new t}})}return e.declareClass(r,n,{fromRSv1:function(e){return e?new r(e.getSlot(),e.getName(),e.getAttributes()):null},slot:function(e,t){return new r(e,t)}},{slot:null,name:null,attributes:null,attr:function(e,t){return this.attributes.set(e,t),this},getSlot:function(){return this.slot},getName:function(){return this.name},getAttributes:function(){return this.attributes}})})),define("com/ibm/vipr/rs/v1/IRSPoint",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{x:t.readOnlyProperty,y:t.readOnlyProperty,getX:function(){},getY:function(){}}),n})),define("com/ibm/vipr/internal/util/Point",["barejs!decl","../../api/IPoint","com/ibm/vipr/rs/v1/IRSPoint","./StringUtil"],(function(e,t,n,r){"use strict";return e.declareClass((function(t,n){e.defineProperties(this,{x:{enumerable:!0,value:+t||0},y:{enumerable:!0,value:+n||0}})}),t,n,{x:null,y:null,getX:function(){return this.x},getY:function(){return this.y},0:{get:"getX"},1:{get:"getY"},length:{value:2},equals:function(e){return this===e||!!e&&this.x===e.x&&this.y===e.y},toString:function(){return r.format("[ {0}, {1} ]",this.x,this.y)}})})),define("com/ibm/vipr/util/util",["exports","./CatPaletteResolver","./CustomCatPaletteResolver","./ContPaletteResolver","./CustomContPaletteResolver","./Color","./ColorStop","./Font","./Length","./RenderQueue","../internal/util/Capability","../internal/util/NumberUtil","../internal/util/Point","../internal/util/StringUtil"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p){"use strict";e.Capability=c,e.CatPalette=t,e.ContPalette=r,e.CustomCatPalette=n,e.CustomContPalette=i,e.CatPaletteResolver=t,e.ContPaletteResolver=r,e.CustomCatPaletteResolver=n,e.CustomContPaletteResolver=i,e.Color=a,e.ColorStop=o,e.Font=s,e.Length=l,e.RenderQueue=u,e.NumberUtil=f,e.Point2D=d,e.StringUtil=p})),define("com/ibm/vipr/vizdef/Aggregation",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Auto="auto",this.Count="count",this.Distinct="distinct",this.Sum="sum",this.Avg="avg",this.Min="min",this.Max="max",this.First="first",this.Last="last",this.None="none"}))})),define("com/ibm/vipr/vizdef/PropertyDef",["barejs!decl","../property/PropertyType","../property/PropertyVisibility"],(function(e,t,n){"use strict";var r=e.freeze(new Array(0));return e.declareClass((function(i,a,o,s,l,u,c,f,d){if(!t.hasValue(i))throw new TypeError("Invalid PropertyType: "+i);if(!n.hasValue(c))throw new TypeError("Invalid PropertyVisibility: "+c);e.defineProperties(this,{type:{enumerable:!0,value:i},name:{enumerable:!0,value:a},caption:{enumerable:!0,value:o},description:{enumerable:!0,value:s||null},aliases:{enumerable:!0,value:l||r},tags:{enumerable:!0,value:u||r},visibility:{enumerable:!0,value:c},deprecated:{enumerable:!0,value:f},affectedBy:{enumerable:!0,value:d}})}),{type:null,name:null,caption:null,description:null,aliases:null,tags:null,visibility:null,deprecated:null,_validate:function(){}})})),define("com/ibm/vipr/vizdef/ValuePropertyDef",["barejs!decl","./PropertyDef","../property/PropertyType","../property/IVizValueProperty"],(function(e,t,n,r){"use strict";return e.declareClass((function(r,i,a,o,s,l,u,c,f,d,p,h,m){if(r===n.Group)throw new Error("A ValuePropertyDef cannot have type "+n.Group);t.call(this,r,i,a,o,s,l,u,c,f),e.defineProperties(this,{allowNull:{enumerable:!0,value:!!d},defaultValue:{enumerable:!0,value:p},serviceWritable:{enumerable:!0,value:!!c||!!h},requiresData:{enumerable:!0,value:!!m}})}),t,{allowNull:null,defaultValue:null,serviceWritable:null,requiresData:null,override:function(e,t,n){var r=this.caption,i=this.description,a=this.defaultValue,o=this.aliases;return e&&!e.isEmpty()&&(r=e.getCaption(r),i=e.getDescription(i),a=this.parse(e.getDefaultValue(a),null),o=e.getAliases(o)),this._clone(r,i,o,t||this.tags,n,a)},_parseImpl:function(e,t){throw new Error("ValuePropertyDef subclass does not implement _parseImpl")},parse:function(e,t){if(e===r.Default)return this.defaultValue;var n=null==e?null:this._parseImpl(e,null===t||void 0===t&&!this.allowNull?this.defaultValue:t);return void 0===n&&(n=null),null!==n||this.allowNull||(n=this.defaultValue),n},valuesEqual:function(e,t){return e===t||!!(e&&e.equals&&e.equals(t))},_validate:function(){this.allowNull||null!==this.defaultValue||this._nullDefault()},_clone:function(e,t,n,r,i,a){throw new Error("ValuePropertyDef subclass does not implement _clone")},_nullDefault:function(){throw new TypeError("defaultValue cannot be null, allowNull is false")}})})),define("com/ibm/vipr/vizdef/BooleanPropertyDef",["barejs!decl","./ValuePropertyDef","../property/PropertyType"],(function(e,t,n){"use strict";var r=/^(?:true|yes|on|1)$/i,i=/^(?:false|no|off|0)$/i;function a(e,r,i,a,o,s,l,u,c,f,d,p){t.call(this,n.Boolean,e,r,i,a,o,s,l,u,c,f,d,p),this._validate()}return e.declareClass(a,t,{parse:function(e,t,n){var a=null;return"string"==typeof e&&e.length>0&&(a=!!r.test(e)||!i.test(e)&&(void 0===n?null:n)),null!==a||t||(a=null!=n&&n),a}},{_parseImpl:function(e,t){switch(typeof e){case"boolean":return e;case"string":return a.parse(e,this.allowNull,t)}return t},_clone:function(e,t,n,r,i,o){return new a(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,o,this.serviceWritable,this.requiresData)}})})),define("com/ibm/vipr/vizdef/CapabilityDef",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t){e.defineProperty(this,"decorations",{enumerable:!0,value:t})}),{decorations:null,getDecoration:function(e){for(var t=0,n=this.decorations.length;t<n;++t){var r=this.decorations[t];if(r.name===e)return r}return null}})})),define("com/ibm/vipr/vizdef/ColorPropertyDef",["barejs!decl","./ValuePropertyDef","../api/IColor","../property/PropertyType","../util/Color"],(function(e,t,n,r,i){"use strict";var a=/^(?:\s*|auto(?:matic)?|null|inherit)$/i;function o(e,n,i,a,o,s,l,u,c,f,d,p){t.call(this,r.Color,e,n,i,a,o,s,l,u,c,f,d,p),this._validate()}return e.declareClass(o,t,{parse:function(e,t,n){var r=null;return"string"!=typeof e||a.test(e)||e.length>0&&((r=i.fromString(e))||(r=void 0===n?null:n)),t||null!==r||(r=null==n?i.Named.black:n),r}},{_parseImpl:function(t,r){return"string"==typeof t?o.parse(t,this.allowNull,r):t instanceof i||e.hasInterface(t,n)?i.fromHost(t):i.fromObject(t)||r},_clone:function(e,t,n,r,i,a){return new o(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,a,this.serviceWritable,this.requiresData)}})})),define("com/ibm/vipr/vizdef/DataSetDef",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t,n,r,i,a,o,s,l,u){e.defineProperties(this,{index:{enumerable:!0,value:t},slots:{enumerable:!0,value:n},name:{enumerable:!0,value:r},optional:{enumerable:!0,value:i},suppressMissing:{enumerable:!0,value:a},needsSorted:{enumerable:!0,value:o},requiresValues:{enumerable:!0,value:s},uniqueDataPoints:{enumerable:!0,value:l},caption:{enumerable:!0,value:u||r}})}),{slots:null,optional:null,suppressMissing:null,needsSorted:null,requiresValues:null,uniqueDataPoints:null,caption:null,hasSlot:function(e){return this.slots.some((function(t){return t.name===e}))},getSlot:function(e){return this.slots.find((function(t){return t.name===e}))||null}})})),define("com/ibm/vipr/vizdef/DecorationDef",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t,n,r,i,a,o){return e.defineProperties(this,{name:{enumerable:!0,value:t},type:{enumerable:!0,value:n},target:{enumerable:!0,value:r},targetSlot:{enumerable:!0,value:i},referenceSlot:{enumerable:!0,value:a},deprecated:{enumerable:!0,value:o}})}),{name:null,type:null,target:null,targetSlot:null,referenceSlot:null,deprecated:null})})),define("com/ibm/vipr/vizdef/DefaultMapping",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.None="none",this.Rows="rows"}))})),define("com/ibm/vipr/vizdef/EnumPropertyDef",["barejs!decl","../internal/property/EnumValue","../property/PropertyType","./ValuePropertyDef"],(function(e,t,n,r){"use strict";function i(e){return e instanceof t}function a(a,o,s,l,u,c,f,d,p,h,m,g,v,b){if(!Array.isArray(v)||!v.every(i))throw new TypeError("_possibleValues must be an Array of EnumValue");if(null!==h&&(!(h instanceof t)||v.indexOf(h)<0))throw new TypeError("Invalid defaultValue: "+h);r.call(this,n.Enum,a,o,s,l,u,c,f,d,p,h,m,g),e.defineProperties(this,{possibleValues:{enumerable:!0,value:v},dynamic:{enumerable:!0,value:b}}),this._validate()}return e.declareClass(a,r,{parse:function(e,t,n,r){var i=Array.isArray(n)?n.length:0;if(i<1&&!t)throw new TypeError("PossibleValues must have at least 1 value");if(null!=e)for(var a=0;a<i;++a){var o=n[a];if(o.name===e)return o}else if(t)return null;return null!=r||t?r||null:n[0]}},{possibleValues:null,dynamic:null,_parseImpl:function(e,n){return e instanceof t&&this.possibleValues.indexOf(e)>=0?e:"string"==typeof e?a.parse(e,this.allowNull,this.possibleValues,n):n},_clone:function(e,t,n,r,i,o){return new a(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,o,this.serviceWritable,this.requiresData,this.possibleValues,this.dynamic)},_nullDefault:function(){(!this.dynamic||this.possibleValues.length>0)&&r.prototype._nullDefault.call(this)}})})),define("com/ibm/vipr/vizdef/FieldRole",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Explanatory="explanatory",this.Group="group",this.Other="other",this.Reference="reference",this.Repeat="repeat",this.Response="response",this.Weight="weight"}))})),define("com/ibm/vipr/vizdef/FontPropertyDef",["barejs!decl","./ValuePropertyDef","../property/PropertyType","../util/Font","../util/Length","../property/LengthUnit"],(function(e,t,n,r,i,a){"use strict";var o=new r(null,new i(1,a.Em),null,null);function s(e,r,i,a,o,s,l,u,c,f,d,p){t.call(this,n.Font,e,r,i,a,o,s,l,u,c,f,d,p),this._validate()}return e.declareClass(s,t,{parse:function(e,t,n){var i=null;return e&&(i=r.parse(e)),t||null!==i||(i=null==n?o:n),i}},{_parseImpl:function(e,t){var n=null;return e instanceof r?n=e:"string"==typeof e&&(n=s.parse(e,this.allowNull,t)),n||(n=t),n},_clone:function(e,t,n,r,i,a){return new s(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,a,this.serviceWritable,this.requiresData)}})})),define("com/ibm/vipr/vizdef/SlotType",["barejs!decl","../data/DataItemType"],(function(e,t){"use strict";return e.declareEnum((function(){this.Cat=t.Cat,this.Cont=t.Cont,this.Any="any"}))})),define("com/ibm/vipr/vizdef/SlotSubType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.None="none",this.GeoSpatial="geospatial",this.Temporal="temporal",this.Reference="reference"}))})),define("com/ibm/vipr/vizdef/SlotDef",["barejs!decl","./Aggregation","./DefaultMapping","./FieldRole","./SlotType","./SlotSubType"],(function(e,t,n,r,i,a){"use strict";var o=e.freeze(new Array(0));function s(e,t,n,r,i){if(!r){var a=n+" cannot be null";throw i&&(a+=", "+i),new TypeError(a)}if("string"!=typeof r||!e.hasValue(r))throw new TypeError(n+" is not a valid "+t+": "+r)}function l(l,u,c,f,d,p,h,m,g,v,b,y,I,_,w){if(s(i,"SlotType","_type",l),s(a,"SlotSubType","_subType",u,"use SlotSubType.None instead"),s(t,"Aggregation","_aggregation",b,"use Aggregation.Auto for Cont or Any slots, and Aggregation.None for Cat slots"),s(r,"FieldRole","_role",I,"use FieldRole.Other instead"),s(n,"DefaultMapping","_defaultMapping",_,"use DefaultMapping.None instead"),l===i.Cat&&b!==t.None)throw new TypeError("_aggregation must be Aggregation.None for Cat slots");var C=Math.trunc(v)||0;e.defineProperties(this,{type:{enumerable:!0,value:l},subType:{enumerable:!0,value:u},subTypeOptional:{enumerable:!0,value:!!c},name:{enumerable:!0,value:f},optional:{enumerable:!0,value:!!d},caption:{enumerable:!0,value:p},description:{enumerable:!0,value:h||null},multiDataItem:{enumerable:!0,value:!!m},channels:{enumerable:!0,value:g||o},maxLevels:{enumerable:!0,value:v<1?-1:C},aggregation:{enumerable:!0,value:b},suppressMissing:{enumerable:!0,value:!!y},role:{enumerable:!0,value:I},defaultMapping:{enumerable:!0,value:_},hidden:{enumerable:!0,value:!!w}})}return e.declareClass(l,{type:null,subType:null,subTypeOptional:null,name:null,optional:null,caption:null,description:null,channels:null,multiDataItem:null,maxLevels:null,aggregation:null,suppressMissing:null,role:null,defaultMapping:null,hidden:null,override:function(e){if(e.isEmpty())return this;var n=e.getType(this.type);if(n!==this.type&&this.type!==i.Cat)throw new Error("Only the type of Any slots can be overridden");var r=e.getOptional(this.optional);if(r!==this.optional&&!this.optional)throw new Error("Cannot make a mandatory slot optional");var a=e.getAggregation(this.aggregation);if(a!==this.aggregation){if(n===i.Cat)throw new Error("Cannot set an aggregation for a Cat slot");if(a===t.None)throw new Error("Cannot override aggregation to be None")}return new l(n,this.subType,this.subTypeOptional,this.name,r,e.getCaption(this.caption),e.getDescription(this.description),this.multiDataItem,this.channels,this.maxLevels,a,e.getSuppressMissing(this.suppressMissing),e.getRole(this.role),e.getDefaultMapping(this.defaultMapping),e.getHidden(this.hidden))},isValues:{get:function(){return this.type!==i.Cat}},singleMember:{get:function(){return this.type===i.Cont&&!this.multiDataItem}},toString:function(){return this.name}})})),define("com/ibm/vipr/vizdef/GeoSpatialPart",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Latitude="latitude",this.Longitude="longitude",this.FeatureId="featureid",this.Caption="caption"}))})),define("com/ibm/vipr/vizdef/GeoSegmentDef",["barejs!decl","./SlotDef","./Aggregation","./SlotType","./SlotSubType","./GeoSpatialPart"],(function(e,t,n,r,i,a){"use strict";function o(n,r,a,o,s,l,u,c,f,d,p,h,m,g){t.call(this,n,i.GeoSpatial,!1,r,a,o,s,l,u,c,f,d,p,h,m),e.defineProperty(this,"part",{enumerable:!0,value:g})}return e.declareClass(o,t,{create:function(e,t,i,s,l,u,c,f,d,p){var h=r.Cat;p!==a.Longitude&&p!==a.Latitude||(h=r.Cont);var m=p===a.Caption?-1:1,g=h!==r.Cont&&s;return new o(h,e+"."+p,l,u,c,!1,null,m,f||(h===r.Cat?n.None:n.Auto),g,d,t,i,p)}},{part:null,override:function(e){if(e.isEmpty())return this;var t=e.getOptional(this.optional);if(t!==this.optional&&!this.optional)throw new Error("Cannot make a mandatory slot optional");var n=e.getAggregation(this.aggregation);if(n!==this.aggregation)throw new Error("Changing a segment aggregation is not allowed");return new o(this.type,this.name,t,e.getCaption(this.caption),e.getDescription(this.description),this.multiDataItem,this.channels,this.maxLevels,n,e.getSuppressMissing(this.suppressMissing),e.getRole(this.role),e.getDefaultMapping(this.defaultMapping),e.getHidden(this.hidden),this.part)}})})),define("com/ibm/vipr/vizdef/SlotRef",["barejs!decl","./SlotDef","./SlotSubType"],(function(e,t,n){"use strict";function r(n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v){t.call(this,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g),e.defineProperties(this,{dataSetIndex:{enumerable:!0,value:+v||0},_reference:{writable:!0,value:null}})}return e.declareClass(r,{create:function(e,t,n){return new r(e.type,e.subType,e.subTypeOptional,e.name,t,e.caption,e.description,e.multiDataItem,e.channels,e.maxLevels,e.aggregation,e.suppressMissing,e.role,e.defaultMapping,e.hidden,n)}},{type:null,subType:null,subTypeOptional:null,name:null,optional:null,caption:null,description:null,channels:null,multiDataItem:null,maxLevels:null,aggregation:null,suppressMissing:null,role:null,defaultMapping:null,hidden:null,dataSetIndex:null,reference:{enumerable:!0,get:"getReference"},_reference:null,getReference:function(){return this._reference},setReference:function(e){if(this.subType!==n.Reference)throw new Error("Reference can only be set on slots with SlotSubType.Reference");if(this._reference)throw new Error("Reference can only be set once");if(!(e instanceof r))throw new TypeError("Setting a null reference is not allowed");if(e===this)throw new Error("A slot cannot reference itself");if(e.type!==this.type)throw new Error("A "+this.type+" slot can only reference a slot of the same type");if(this.name===e.name)throw new Error("Slot "+this.name+" cannot reference a slot with the same name");this._reference=e},toString:function(){return this.name}})})),define("com/ibm/vipr/vizdef/GeoSegmentRef",["barejs!decl","./SlotRef","./SlotSubType"],(function(e,t,n){"use strict";function r(r,i,a,o,s,l,u,c,f,d,p,h,m,g,v){t.call(this,r,n.GeoSpatial,!1,i,a,o,s,l,u,c,f,d,p,h,m,v),e.defineProperty(this,"part",{enumerable:!0,value:g})}return e.declareClass(r,t,{create:function(e,t){return new r(e.type,e.name,e.optional,e.caption,e.description,e.multiDataItem,e.channels,e.maxLevels,e.aggregation,e.suppressMissing,e.role,e.defaultMapping,e.hidden,e.part,t)},defsToRefs:function(e,t){var n=[],i=+(e&&e.length)||0;if(i>0){n=new Array(i);for(var a=0;a<i;++a)n[a]=r.create(e[a],t)}return n}},{part:null})})),define("com/ibm/vipr/vizdef/GeoSlotDef",["barejs!decl","./SlotDef","./SlotSubType","./SlotType"],(function(e,t,n,r){"use strict";function i(i,a,o,s,l,u,c,f,d,p,h,m,g,v){t.call(this,r.Cat,n.GeoSpatial,i,a,o,s,l,u,c,f,d,p,h,m,v),e.defineProperty(this,"segments",{enumerable:!0,value:g})}return e.declareClass(i,t,{segments:null,override:function(e,n){var r=t.prototype.override.call(this,e);return new i(r.subTypeOptional,r.name,r.optional,r.caption,r.description,r.multiDataItem,r.channels,r.maxLevels,r.aggregation,r.suppressMissing,r.role,r.defaultMapping,n,r.hidden)}})})),define("com/ibm/vipr/vizdef/GeoSlotRef",["barejs!decl","./SlotRef","./SlotSubType","./SlotType"],(function(e,t,n,r){"use strict";function i(i,a,o,s,l,u,c,f,d,p,h,m,g,v,b){t.call(this,r.Cat,n.GeoSpatial,i,a,o,s,l,u,c,f,d,p,h,m,v,b),e.defineProperty(this,"segments",{enumerable:!0,value:g})}return e.declareClass(i,t,{create:function(e,t,n,r){return new i(e.subTypeOptional,e.name,t,e.caption,e.description,e.multiDataItem,e.channels,e.maxLevels,e.aggregation,e.suppressMissing,e.role,e.defaultMapping,n,e.hidden,r)}},{segments:null})})),define("com/ibm/vipr/vizdef/GroupPropertyDef",["barejs!decl","./PropertyDef","../property/PropertyType","../property/PropertyVisibility"],(function(e,t,n,r){"use strict";function i(r,i,a,o,s,l,u,c){t.call(this,n.Group,r,i,a,o,s,l,u,null),e.defineProperty(this,"properties",{enumerable:!0,value:c||[]}),this._validate()}return e.declareClass(i,t,{properties:null,isEmpty:function(){for(var e=0,t=this.properties.length;e<t;++e)if("excluded"!==this.properties[e].visibility)return!1;return!0},override:function(e,t,n,a){var o=this.caption,s=this.description,l=a||this.properties;e&&!e.isEmpty()&&(o=e.getCaption(o),s=e.getDescription(s));var u=n;if(!u){u=r.Excluded;for(var c=0;c<l.length;++c){var f=l[c];if(f.visibility!==u){u=f.visibility;break}}}return new i(this.name,o,s,this.aliases,t||this.tags,u,this.deprecated,l)},clone:function(e){return this.override(null,null,null,e)},_validate:function(){}})})),define("com/ibm/vipr/vizdef/LengthPropertyDef",["barejs!decl","./ValuePropertyDef","../property/PropertyType","../property/LengthUnit","../property/ILength","../util/Length"],(function(e,t,n,r,i,a){"use strict";var o=new a(0,r.Pixel);function s(r,i,a,o,s,l,u,c,f,d,p,h,m){t.call(this,n.Length,r,i,a,o,s,l,u,c,f,d,p,h),e.defineProperty(this,"allowNegative",{enumerable:!0,value:m}),this._validate()}return e.declareClass(s,t,{parse:function(e,t,n){var r=null;return"string"!=typeof e&&"number"!=typeof e||(r=a.parse(e))||(r=void 0===n?null:n),t||null!==r||(r=null==n?o:n),r}},{allowNegative:null,_parseImpl:function(t,n){var r=null;return(!(r=e.hasInterface(t,i)?a.fromHost(t):"string"==typeof t||"number"==typeof t?s.parse(t,this.allowNull,n):a.fromObject(t))||!this.allowNegative&&r.value<0)&&(r=n),r},_clone:function(e,t,n,r,i,a){return new s(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,a,this.serviceWritable,this.requiresData,this.allowNegative)}})})),define("com/ibm/vipr/vizdef/MetaDataEntryDef",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t,n){e.defineProperties(this,{name:{enumerable:!0,value:t},value:{enumerable:!0,value:n}})}),{name:null,value:null})})),define("com/ibm/vipr/vizdef/NumberPropertyDef",["barejs!decl","./ValuePropertyDef","../property/PropertyType","../internal/util/NumberUtil"],(function(e,t,n,r){"use strict";function i(e){if(null==e)return null;if("number"==typeof e)return e;throw new TypeError(e+" is not a valid number")}function a(r,a,o,s,l,u,c,f,d,p,h,m,g,v){t.call(this,n.Number,r,a,o,s,l,u,c,f,d,i(p),h,m),e.defineProperties(this,{minValue:{enumerable:!0,value:i(g)},maxValue:{enumerable:!0,value:i(v)}}),this._validate()}return e.declareClass(a,t,{parse:function(e,t,n){var i=null;return"string"==typeof e&&(i=r.parseNumber(e,n)),null!==i||t||(i=null==n?0:n),i}},{_parseImpl:function(e,t){var n;switch(typeof e){case"number":n=e;break;case"string":n=r.parseNumber(e,t);break;default:n=t}return"number"==typeof n&&(null!==this.minValue&&n<this.minValue&&(n=this.minValue),null!==this.maxValue&&n>this.maxValue&&(n=this.maxValue)),n},_clone:function(e,t,n,r,i,o){return new a(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,o,this.serviceWritable,this.requiresData,this.minValue,this.maxValue)},_validate:function(){if(t.prototype._validate.call(this),null!==this.minValue&&null!==this.maxValue&&this.maxValue<this.minValue)throw new Error("Invalid range, minValue "+this.minValue+" is greater than maxValue "+this.maxValue);if(null!==this.defaultValue){if(null!==this.minValue&&this.defaultValue<this.minValue)throw new Error("defaultValue "+this.defaultValue+" is out of bounds, it is below minValue "+this.minValue);if(null!==this.maxValue&&this.defaultValue>this.maxValue)throw new Error("defaultValue "+this.defaultValue+" is out of bounds, it is above maxValue "+this.maxValue)}}})})),define("com/ibm/vipr/vizdef/SlotGroupDef",["barejs!decl","./SlotType","./SlotSubType","./FieldRole"],(function(e,t,n,r){"use strict";return e.declareClass((function(t,n,r){e.defineProperties(this,{caption:{enumerable:!0,value:t},description:{enumerable:!0,value:n},slots:{enumerable:!0,value:r}})}),{caption:null,description:null,slots:null,toString:function(){return this.caption}})})),define("com/ibm/vipr/vizdef/StringPropertyDef",["barejs!decl","./ValuePropertyDef","../property/PropertyType"],(function(e,t,n){"use strict";function r(e,r,i,a,o,s,l,u,c,f,d,p){t.call(this,n.String,e,r,i,a,o,s,l,u,c,f,d,p),this._validate()}return e.declareClass(r,t,{parse:function(e,t,n){return"string"==typeof e?e:null!=n||t?n:""}},{_parseImpl:function(e,t){return r.parse(null===e?null:String(e),this.allowNull,t)},_clone:function(e,t,n,i,a,o){return new r(this.name,e,t,n,i,a,this.deprecated,this.affectedBy,this.allowNull,o,this.serviceWritable,this.requiresData)}})})),define("com/ibm/vipr/vizdef/PalettePropertyDef",["barejs!decl","./ValuePropertyDef","../api/PaletteType","../property/PropertyType","../util/CatPaletteResolver","../util/ContPaletteResolver","../util/CustomCatPaletteResolver","../util/CustomContPaletteResolver","../api/ICatPalette","../api/IContPalette","../api/ICustomCatPalette","../api/ICustomContPalette"],(function(e,t,n,r,i,a,o,s,l,u,c,f){"use strict";function d(n,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b){t.call(this,r.Palette,n,i,a,o,s,l,u,c,f,d,p,h),e.defineProperties(this,{slot:{enumerable:!0,value:m},paletteType:{enumerable:!0,value:g},min:{enumerable:!0,value:v},max:{enumerable:!0,value:b}})}return e.declareClass(d,t,{parse:function(e,t,r,l){if(t)switch(e){case n.Cat:return new i(t);case n.CustomCat:return new o(t);case n.Cont:return new a(t);case n.CustomCont:return new s(t);default:throw new Error("Unsupported PaletteType: "+e)}else if(!r){if(!l)throw new Error("Invalid fallback resolver provided");return l}return null}},{slot:null,paletteType:null,min:null,max:null,_parseImpl:function(t,r){switch(this.paletteType){case n.Cat:if(e.hasInterface(t,l))return t;break;case n.Cont:if(e.hasInterface(t,u))return t;break;case n.CustomCat:if(e.hasInterface(t,c))return t;break;case n.CustomCont:if(e.hasInterface(t,f))return t;break;default:throw new Error("Unsupported PaletteType: "+this.paletteType)}try{if("string"==typeof t)return d.parse(this.paletteType,t,this.allowNull,r)}catch(e){}return r},_clone:function(e,t,n,r,i,a){return new d(this.name,e,t,n,r,i,this.deprecated,this.affectedBy,this.allowNull,a,this.serviceWritable,this.requiresData,this.slot,this.paletteType,this.min,this.max)}})})),define("com/ibm/vipr/vizdef/TemporalAttributeDef",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t,n){return e.defineProperties(this,{level:{enumerable:!0,value:t},optional:{enumerable:!0,value:n}})}),{level:null,optional:null})})),define("com/ibm/vipr/vizdef/TemporalLevel",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Year="year",this.Month="month",this.Day="day",this.Hour="hour",this.Minute="minute",this.Second="second",this.Fraction="fraction"}))})),define("com/ibm/vipr/vizdef/TemporalSlotDef",["barejs!decl","./SlotDef","./SlotSubType","./SlotType"],(function(e,t,n,r){"use strict";function i(i,a,o,s,l,u,c,f,d,p,h,m,g,v){t.call(this,r.Cat,n.Temporal,i,a,o,s,l,u,c,f,d,p,h,m,v),e.defineProperty(this,"attributes",{enumerable:!0,value:g})}return e.declareClass(i,t,{attributes:null,override:function(e,n){var r=t.prototype.override.call(this,e);return new i(r.subTypeOptional,r.name,r.optional,r.caption,r.description,r.multiDataItem,r.channels,r.maxLevels,r.aggregation,r.suppressMissing,r.role,r.defaultMapping,n,r.hidden)}})})),define("com/ibm/vipr/vizdef/TemporalSlotRef",["barejs!decl","./SlotRef","./SlotSubType","./SlotType"],(function(e,t,n,r){"use strict";function i(i,a,o,s,l,u,c,f,d,p,h,m,g,v,b){t.call(this,r.Cat,n.Temporal,i,a,o,s,l,u,c,f,d,p,h,m,v,b),e.defineProperty(this,"attributes",{enumerable:!0,value:g})}return e.declareClass(i,t,{create:function(e,t,n){return new i(e.subTypeOptional,e.name,t,e.caption,e.description,e.multiDataItem,e.channels,e.maxLevels,e.aggregation,e.suppressMissing,e.role,e.defaultMapping,e.attributes,e.hidden,n)}},{attributes:null})})),define("com/ibm/vipr/internal/vizdef/PropertyOverride",["barejs!decl"],(function(e){"use strict";var t=void 0;function n(e){return null==e?t:String(e)}function r(t,n,r,i){e.defineProperties(this,{caption:{enumerable:!0,value:t},description:{enumerable:!0,value:n},defaultValue:{enumerable:!0,value:r},aliases:{enumerable:!0,value:i}})}return e.declareClass(r,{DEFAULT_CAPTION:{enumerable:!0,value:t},DEFAULT_DESCRIPTION:{enumerable:!0,value:t},DEFAULT_VALUE:{enumerable:!0,value:t},DEFAULT_ALIASES:{enumerable:!0,value:t},create:function(i){var a=null;return i&&(a=new r("caption"in i?n(i.caption):t,"description"in i?n(i.description):t,"defaultValue"in i?i.defaultValue:t,"aliases"in i?i.aliases:t)),!a||a.isEmpty()?r.Empty:e.freeze(a)},merge:function(e,t){var n=!t||t.isEmpty();return!e||e.isEmpty()?n?r.Empty:t:n?e:new r(t.getCaption(e.caption),t.getDescription(e.description),t.getDefaultValue(e.defaultValue),t.getAliases(e.aliases))}},{caption:null,description:null,defaultValue:null,getCaption:function(e){return this.caption===t?e:this.caption},getDescription:function(e){return this.description===t?e:this.description},getDefaultValue:function(e){return this.defaultValue===t?e:this.defaultValue},getAliases:function(e){return this.aliases===t?e:function(e,t){if(!t||0===t.length||t===e)return e;for(var n=e?e.slice(0):[],r=0,i=t.length;r<i;++r){var a=t[r];-1===n.indexOf(a)&&n.push(a)}return n}(this.aliases,e)},isEmpty:function(){return this===r.Empty||this.caption===t&&this.description===t&&this.defaultValue===t&&this.aliases===t}}),e.defineProperty(r,"Empty",{enumerable:!0,value:new r(t,t,t,t)})})),define("com/ibm/vipr/vizdef/VisualizationDef",["barejs!decl","barejs!NMap","./DataSetDef","../property/PropertyType","./SlotGroupDef","./SlotRef","./GeoSlotRef","./TemporalSlotRef","./SlotSubType","./GeoSegmentRef","../internal/vizdef/PropertyOverride"],(function(e,t,n,r,i,a,o,s,l,u,c){"use strict";var f=e.freeze(new Array(0));function d(t,n,r){e.defineProperties(this,{slot:{enumerable:!0,value:t},dataSetName:{enumerable:!0,value:n},slotName:{enumerable:!0,value:r}})}function p(e,t){for(var n=0,r=e&&e.length;n<r;++n){var i=e[n];if(i.name===t)return i}return null}function h(e){return"listed"===e.visibility}function m(t,n){var r=t?t.length:0,i=n?n.length:0;if(i<1)return r<1?f:t;for(var a=new Array(r+i),o=0;o<r;++o)a[o]=t[o];var s=r;for(o=0;o<i;++o){var l=n[o];(s<1||a.lastIndexOf(l,s-1)<0)&&(a[s++]=l)}return a.length<s&&(a.length=s),e.freeze(a)}function g(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];t.set(i.name,i);for(var a=0,o=i.aliases.length;a<o;++a)t.set(i.aliases[a],i);"group"===i.type&&g(i.properties,t)}}function v(e,t,n,r){for(var i=0,a=t.length;i<a;++i){var o=t[i];"group"===o.type?v(e,o.properties,n,r):n&&!n.call(r,o,o.name)||e.push(o)}return e}function b(n,r,i,a,o,s,l,u){if(n&&!(n instanceof b))throw new TypeError("_source must be a VisualizationDef");var c=new t;g(o,c),g(s,c),e.defineProperties(this,{source:{value:n||null},slotGroups:{enumerable:!0,value:r},slots:{enumerable:!0,value:i},dataSets:{enumerable:!0,value:a},properties:{enumerable:!0,value:o},configuration:{enumerable:!0,value:s},capabilities:{enumerable:!0,value:l},metaDataEntries:{enumerable:!0,value:u},_propMap:{value:c}})}return e.declareClass(d,{slot:null,dataSetName:null,slotName:null}),e.declareClass(b,{findByName:{value:p},resolveSlot:{value:function(e,t){for(var n=null,r=0,i=e.length;r<i&&!n;++r)n=p(e[r].slots,t);return n}},applyUserConfig:function(t,a,o){var s=t.source instanceof b?t.source:t,u=s.slotGroups,f=s.slots,h=s.dataSets,g=s.properties,v=s.configuration;return a&&!a.isEmpty()&&(u=function(t,n,r,a){for(var o,s=[],u=!n||n.isEmpty(),c=0,f=t.length;c<f;++c){for(var d=t[c],p=[],h=0,m=d.slots.length;h<m;++h){var g=d.slots[h];if(!u)if(g.subType===l.GeoSpatial){for(var v=g.segments,b=[],y=0,I=v.length;y<I;++y){var _=v[y];_=_.override(n.getSlotOverride(_)),(o=n.isSlotListed(_))||_.isOptional||(o=!0,a&&a.warn("Configuration attempts to exclude segment {0} on slot {1}, which is required; it will be included anyway.",_.name,g.name)),o&&b.push(_)}e.freeze(b),g=g.override(n.getSlotOverride(g.name),b)}else g=g.override(n.getSlotOverride(g.name));(o=u||n.isSlotListed(g))||g.optional||(o=!0,a&&a.warn("Configuration attempts to exclude slot {0}, which is required; it will be included anyway.",g.name)),o&&(g.hidden||p.push(g),r.push(g))}p.length>0&&s.push(new i(d.caption,d.description,e.freeze(p)))}return s}(u,a,f=[],o),h=function(e,t){for(var r,i,a,o=0,s=[],l=[],u=0;u<e.length;++u){var c=e[u],f=!0,h=[];for(r=0,i=c.slots.length;r<i;++r){var m=p(t,(a=c.slots[r]).name);if(m){var g=b.createSlotRef(m,a.optional,o);h.push(g);var v=a.getReference();v&&l.push(new d(g,e[v.dataSetIndex].name,v.name))}else{if(!a.optional&&!c.optional)throw new Error("Trying to exclude mandatory slot ref "+a.name+" on non-optional data set "+c.name);!a.optional&&c.optional&&(f=!1)}}f&&h.length>0&&s.push(new n(o++,h,c.name,c.optional,c.suppressMissing,c.needsSorted,c.requiresValues,c.uniqueDataPoints,c.caption))}for(r=0,i=l.length;r<i;++r){var y=l[r];if(!(a=(c=p(s,y.dataSetName))?c.getSlot(y.slotName):null))throw new Error('Configuration excluded the slot "'+y.slotName+'" on data set "'+y.dataSetName+'", yet slot "'+y.slot.name+'" references it');y.slot.setReference(a)}return s}(h,f)),g=function e(t,n,i,a,o){for(var s=t.length,l=new Array(s),u=0;u<s;++u){var f=t[u],d=m(a,f.tags),h=n?n.getPropertyOverride(f):c.Empty,g=n?n.getPropertyVisibility(f,i):f.visibility;f.type===r.Group?l[u]=f.override(h,d,null,e(f.properties,n,g,d,o)):(f.type===r.Palette&&f.slot&&(p(o,f.slot.name)||(g=!1)),l[u]=f.override(h,d,g))}return l}(g,a,a?a.getImplicitVisibility():"listed",null,f),a&&(v=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i){var a=e[i];r[i]=a.override(t?t.getPropertyOverride(a):c.Empty,a.tags,a.visibility)}return r}(v,a)),new b(s,u,f,h,g,v,t.capabilities,t.metaDataEntries)},createSlotRef:function(e,t,n){switch(e.subType){case l.GeoSpatial:return o.create(e,t,u.defsToRefs(e.segments,n),n);case l.Temporal:return s.create(e,t,n);default:return a.create(e,t,n)}}},{_propMap:null,slotGroups:null,slots:null,dataSets:null,properties:null,capabilities:null,metaDataEntries:null,getSlot:function(e){return p(this.slots,e)},getDataSet:function(e){return p(this.dataSets,e)},getProperty:function(e){return this._propMap.get(e)||null},listProperties:function(){var e=[],t=arguments[0],n=null;if(t){if("function"!=typeof t)throw new TypeError(t+" is not callable");(n=arguments[1]||n)&&(n=Object(n))}else t=h;return v(e,this.properties,t,n)},getMetaDataEntry:function(e){return p(this.metaDataEntries,e)},extend:function(t,r,i){var a=this.source?this.source:this,o=a.slotGroups,s=a.slots,l=a.dataSets,u=a.properties,c=a.configuration;if(t){o=o.concat(t),s=e.freeze(s.concat(t.slots));for(var f=0,d=(l=l.slice(0)).length;f<d;++f){for(var p=l[f],h=p.slots.length,m=new Array(h+t.slots.length),g=0;g<h;++g)m[g]=p.slots[g];h=t.slots.length;for(var v=0;v<h;++v,++g){var y=t.slots[v];m[g]=b.createSlotRef(y,y.optional,f)}l[f]=new n(p.index,e.freeze(m),p.name,p.optional,p.suppressMissing,p.needsSorted,p.requiresValues,p.uniqueDataPoints,p.caption)}e.freeze(o)}return r&&r.length>0&&(u=e.freeze(function e(t,n,r){for(var i=t?t.slice(0):[],a=0;a<n.length;++a){var o,s=n[a],l=r.get(s.name),u=i.length;if(l){if("group"!==l.type||"group"!==s.type)throw new Error("VizDef extend property name conflict: "+s.name+" already exists");if((u=t?t.indexOf(l):-1)<0)throw new Error("VizDef extend hierarchy error. Attempt to merge group "+s.name+" in incorrect location.");o=l.clone(e(l.properties,s.properties,r))}else o="group"===s.type?s.clone(e(null,s.properties,r)):s;u<i.length?i[u]=o:i.push(o)}return i}(u,r,a._propMap))),i&&i.length>0&&(c=e.freeze(function(e,t,n){for(var r=e?e.slice(0):[],i=0,a=t.length;i<a;++i){var o=t[i];if(n.has(o.name))throw new Error("VizDef Extend property name conflict");r.push(o)}return r}(c,i,a._propMap))),new b(null,o,s,l,u,c,a.capabilities,a.metaDataEntries)}})})),define("com/ibm/vipr/vizdef/vizdef",["exports","../property/property","./Aggregation","./BooleanPropertyDef","./CapabilityDef","./ColorPropertyDef","./DataSetDef","./DecorationDef","./DefaultMapping","./EnumPropertyDef","./FieldRole","./FontPropertyDef","./GeoSegmentDef","./GeoSegmentRef","./GeoSlotDef","./GeoSlotRef","./GeoSpatialPart","./GroupPropertyDef","./LengthPropertyDef","./MetaDataEntryDef","./NumberPropertyDef","./PropertyDef","./SlotDef","./SlotGroupDef","./SlotRef","./SlotSubType","./SlotType","./StringPropertyDef","./PalettePropertyDef","./TemporalAttributeDef","./TemporalLevel","./TemporalSlotDef","./TemporalSlotRef","./ValuePropertyDef","./VisualizationDef"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b,y,I,_,w,C,S,P,D,R,T,V,A,E,x,j,z){"use strict";e.Aggregation=n,e.BooleanPropertyDef=r,e.CapabilityDef=i,e.ColorPropertyDef=a,e.DataSetDef=o,e.DecorationDef=s,e.DefaultMapping=l,e.EnumPropertyDef=u,e.FieldRole=c,e.FontPropertyDef=f,e.GeoSlotDef=h,e.GeoSlotRef=m,e.GeoSpatialPart=g,e.GroupPropertyDef=v,e.LengthPropertyDef=b,e.MetaDataEntryDef=y,e.NumberPropertyDef=I,e.PropertyDef=_,e.GeoSegmentDef=d,e.GeoSegmentRef=p,e.SlotDef=w,e.SlotGroupDef=C,e.SlotRef=S,e.SlotSubType=P,e.SlotType=D,e.StringPropertyDef=R,e.PalettePropertyDef=T,e.TemporalAttributeDef=V,e.TemporalLevel=A,e.TemporalSlotDef=E,e.TemporalSlotRef=x,e.ValuePropertyDef=j,e.VizDef=e.VisualizationDef=z,e.EnumValue=t.EnumValue,e.Length=t.Length,e.LengthUnit=t.LengthUnit,e.PropertyType=t.PropertyType,e.PropertyVisibility=t.PropertyVisibility})),define("com/ibm/vipr/rs/v1/IRSInitParameters",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{surface:t.readOnlyProperty,hostApi:t.readOnlyProperty,resources:t.readOnlyProperty,logger:t.readOnlyProperty,nls:t.readOnlyProperty,displayLocale:t.readOnlyProperty,locale:t.readOnlyProperty,properties:t.readOnlyProperty,dataContext:t.readOnlyProperty,getRenderSurface:function(){},getHostApi:function(){},getResources:function(){},getLogger:function(){},getNls:function(){},getDisplayLocale:function(){},getLocale:function(){},getProperties:function(){},getDataContext:function(){}}),n})),define("com/ibm/vipr/internal/util/InitializationParameters",["barejs!decl","barejs!Map","com/ibm/vipr/rs/v1/IRSInitParameters"],(function(e,t,n){"use strict";return e.declareClass((function(n,r,i,a,o,s,l,u,c){e.defineProperties(this,{surface:{enumerable:!0,value:n},hostApi:{enumerable:!0,value:r},resources:{enumerable:!0,value:i||new t},logger:{enumerable:!0,value:a},displayLocale:{enumerable:!0,value:o},locale:{enumerable:!0,value:s},nls:{enumerable:!0,value:l},properties:{enumerable:!0,value:u},dataContext:{enumerable:!0,value:c}})}),n,{surface:null,hostApi:null,resources:null,logger:null,displayLocale:null,locale:null,nls:null,properties:null,dataContext:null,getRenderSurface:function(){return this.surface},getHostApi:function(){return this.hostApi},getResources:function(){return this.resources},getLogger:function(){return this.logger},getDisplayLocale:function(){return this.displayLocale},getLocale:function(){return this.locale},getNls:function(){return this.nls},getProperties:function(){return this.properties},getDataContext:function(){return this.dataContext}})})),define("com/ibm/vipr/rs/v1/IRSRenderInvalidation",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{data:t.readOnlyProperty,decorations:t.readOnlyProperty,properties:t.readOnlyProperty,size:t.readOnlyProperty,response:t.readOnlyProperty,dataChanged:function(){},decorationsChanged:function(){},propertiesChanged:function(){},sizeChanged:function(){},responseReceived:function(){}}),n})),define("com/ibm/vipr/internal/util/RenderInvalidation",["barejs!decl","com/ibm/vipr/rs/v1/IRSRenderInvalidation"],(function(e,t){"use strict";return e.declareClass((function(t,n,r,i,a){e.defineProperties(this,{data:{enumerable:!0,value:!!t},decorations:{enumerable:!0,value:!!n},properties:{enumerable:!0,value:!!r},size:{enumerable:!0,value:!!i},response:{enumerable:!0,value:!!a}})}),t,{data:null,decorations:null,properties:null,size:null,response:null,dataChanged:function(){return this.data},decorationsChanged:function(){return this.decorations},propertiesChanged:function(){return this.properties},sizeChanged:function(){return this.size},responseReceived:function(){return this.response}})})),define("com/ibm/vipr/rs/v1/IRSProperty",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{name:t.readOnlyProperty,type:t.readOnlyProperty,active:t.readOnlyProperty,getName:function(){},getRSType:function(){},isActive:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSValueProperty",["barejs","./IRSProperty"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{value:n.readWriteProperty,peek:n.readOnlyProperty,active:n.readWriteProperty,dirty:n.readOnlyProperty,writable:n.readOnlyProperty,getValue:function(){},setValue:function(e){},peekValue:function(){},setActive:function(e){},isDirty:function(){},isWritable:function(){}}),r})),define("com/ibm/vipr/rs/v1/IRSBooleanProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/rs/v1/IRSPropertyParser",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{parseValue:function(e,t,n){}}),t})),define("com/ibm/vipr/internal/property/Property",["barejs!decl","barejs!Destroyable","barejs!Evented","barejs!WeakMap","../../property/IVizProperty","../../property/PropertyActiveEventArgs","com/ibm/vipr/rs/v1/IRSProperty"],(function(e,t,n,r,i,a,o){"use strict";var s=new r;function l(e){s.set(this,e)}function u(t,n){s.set(this,t),e.defineProperty(this,"def",{enumerable:!0,value:n})}return e.declareClass(l,o,{active:{enumerable:!0,get:"isActive"},type:{enumerable:!0,get:"getRSType"},name:{enumerable:!0,get:"getName"},isActive:function(){return s.get(this)._active},getRSType:function(){return s.get(this).def.type},getName:function(){return s.get(this).def.name}}),e.declareClass(u,i,{def:null,active:{enumerable:!0,get:"isActive"},type:{enumerable:!0,get:"getType"},name:{enumerable:!0,get:"getName"},caption:{enumerable:!0,get:"getCaption"},description:{enumerable:!0,get:"getDescription"},aliases:{enumerable:!0,get:"getAliases"},tags:{enumerable:!0,get:"getTags"},visibility:{enumerable:!0,get:"getVisibility"},deprecated:{enumerable:!0,get:"isDeprecated"},affectedBy:{enumerable:!0,get:"getAffectedBy"},getDef:function(){return this.def},isActive:function(){return s.get(this)._active},on:function(e,t){if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=this;return s.get(this).on(e,(function(e){t(e,n)}))},getType:function(){return this.def.type},getName:function(){return this.def.name},getCaption:function(){return this.def.caption},getDescription:function(){return this.def.description},getAliases:function(){return this.def.aliases},getTags:function(){return this.def.tags},getVisibility:function(){return this.def.visibility},isDeprecated:function(){return this.def.deprecated},getAffectedBy:function(){return this.def.affectedBy}}),e.abstractClass((function t(r,i){if(this.constructor===t)throw new TypeError("Property is abstract, use a SubClass to create an instance");if(!r)throw new TypeError("Invalid PropertyDef supplied");n.call(this),e.defineProperties(this,{def:{enumerable:!0,value:r},forRS:{enumerable:!0,value:!!i},_active:{writable:!0,value:!0}})}),n,{RSProperty:{value:l},VizProperty:{value:u}},{def:null,forRS:null,_active:null,toRS:function(){throw new Error("Not implemented")},toHost:function(){throw new Error("Not implemented")},isActive:function(){return this._active},setActive:function(e){var n=!!e;this._active!==n&&(this._active=n,t.isDestroyed(this)||this.emit("active",new a(this.toHost(),!n)))},onvalue:function(e){},onactive:function(e){}})})),define("com/ibm/vipr/internal/property/ValueProperty",["barejs!decl","barejs!Destroyable","barejs!NMap","barejs!WeakMap","com/ibm/vipr/rs/v1/IRSValueProperty","com/ibm/vipr/rs/v1/IRSPropertyParser","../../property/IVizValueProperty","../../property/PropertyValueEventArgs","./Property"],(function(e,t,n,r,i,a,o,s,l){"use strict";var u={},c=new r;function f(t,n,r){e.defineProperties(this,{properties:{enumerable:!0,value:t},rsProperties:{enumerable:!0,value:n},api:{enumerable:!0,value:r},updating:{enumerable:!0,writable:!0,value:!1}})}function d(e){l.RSProperty.call(this,e),c.set(this,e)}function p(e,t){l.VizProperty.call(this,e,t),c.set(this,e)}function h(t,n,r,i){if(this.constructor===h)throw new TypeError("ValueProperty is abstract, use a SubClass to create an instance");l.call(this,t,n);var o=t.defaultValue,s=i(o);e.defineProperties(this,{_initialized:{writable:!0,value:this.forRS},_value:{writable:!0,value:o},_rsValue:{writable:!0,value:s},_rsPeek:{writable:!0,value:s},_locked:{writable:!0,value:!1},_renValue:{writable:!0,value:u},_parser:{writable:!0,value:e.asFunctional(r,a)},_toRSFn:{value:i}})}return e.declareClass(f,{properties:null,rsProperties:null,api:null,updating:null}),e.declareClass(d,l.RSProperty,i,{value:{enumerable:!0,get:"getValue",set:"setValue"},peek:{enumerable:!0,get:"peekValue"},active:{enumerable:!0,get:"isActive",set:"setActive"},dirty:{enumerable:!0,get:"isDirty"},writable:{enumerable:!0,get:"isWritable"},getValue:function(){return c.get(this)._rsValue},setValue:function(e){if(!this.isWritable())throw new Error(this.getName()+" is not writable");c.get(this).setValue(e)},peekValue:function(){return c.get(this)._rsPeek},setActive:function(e){return c.get(this).setActive(e)},isDirty:function(){return c.get(this).isDirtyForRS()},isWritable:function(){var e=c.get(this).def;return e.serviceWritable&&!e.deprecated},valueOf:{value:function(){return this.getValue()}}}),e.declareClass(p,l.VizProperty,o,{value:{enumerable:!0,get:"getValue",set:"setValue"},dirty:{enumerable:!0,get:"isDirty"},allowNull:{enumerable:!0,get:"getAllowNull"},defaultValue:{enumerable:!0,get:"getDefaultValue"},serviceWritable:{enumerable:!0,get:"isServiceWritable"},requiresData:{enumerable:!0,get:"getRequiresData"},getValue:function(){return c.get(this).getValue()},setValue:function(e){c.get(this).setValue(e)},isDirty:function(){return c.get(this).isDirtyForHost()},valueOf:{value:function(){return c.get(this).getValue()}},getAllowNull:function(){return this.def.allowNull},getDefaultValue:function(){return this.def.defaultValue},isServiceWritable:function(){return this.def.serviceWritable},getRequiresData:function(){return this.def.requiresData}}),e.abstractClass(h,l,{RSValueProperty:{value:d},VizValueProperty:{value:p}},{_initialized:null,_value:null,_rsValue:null,_rsPeek:null,_locked:null,_renValue:null,_parser:null,_deprecated:null,_toRSFn:null,initDeprecated:function(e,t,n){if(!this.def.deprecated)throw new Error(this.def.name+" is not deprecated");if(!n)throw new Error("Missing IRSDeprecatedProperty interface for deprecated property "+this.def.name);if(this._deprecated)throw new Error(this.def.name+" is already initialized as deprecated");this._deprecated=new f(e,t,n),this._evaluate();var r=this._evaluate.bind(this),i=this.def.affectedBy;if(i)for(var a=0,o=i.length;a<o;++a){var s=i[a],l=e.get(s);if(!l)throw new Error("AffectedBy references non-existing property "+s);l.on("value",r)}},initHost:function(t){if(this._initialized)throw new Error(this.def.name+" is already initialized");return this._parser=e.asFunctional(t,a),this._initialized=!0,this.toRS()},getValue:function(){return this._value},setValue:function(e){var t=this.def,r=this._parse(e,this._value),i=this._toRSFn(r);if(this._parser){var a=this._parser.parseValue(i,e,this._rsPeek);a!==i&&(r=this._parse(a,r),i=this._toRSFn(r))}var o=this._deprecated;if(o&&!o.updating){var s=new n;if(o.api.setValue(o.rsProperties,i,s),s.size>0){o.updating=!0;try{s.forEach((function(e,t){var n=o.properties.get(t);n instanceof h&&!n.def.deprecated&&n.setValue(e)}))}finally{o.updating=!1}}}return t.valuesEqual(r,this._value)||this.setParsedValue(r,i),this._value},setParsedValue:function(e,n){var r=this._value;this._value=e,this._rsPeek=n,this._locked||(this._rsValue=n),t.isDestroyed(this)||this.emit("value",new s(this.toHost(),r))},isDirtyForHost:function(){return this._rsPeek!==this._renValue},isDirtyForRS:function(){return this._rsValue!==this._renValue},_evaluate:function(){var e=this._deprecated;if(!e.updating){var t=e.api.evaluate(e.rsProperties,this._rsPeek);e.updating=!0,this.setValue(t),e.updating=!1}},_parse:function(e,t){return this.def.parse(e,t)},_markRendered:function(e){e&&(this._renValue=this._rsValue),this._rsValue=this._rsPeek},lock:function(){this._locked=!0},isLocked:function(){return this._locked},unlock:function(e){this._locked&&(this._markRendered(e),this._locked=!1)}})})),define("com/ibm/vipr/internal/property/BooleanProperty",["barejs!decl","../../property/IVizBooleanProperty","com/ibm/vipr/rs/v1/IRSBooleanProperty","./ValueProperty"],(function(e,t,n,r){"use strict";function i(e){r.RSValueProperty.call(this,e)}function a(e,t){r.VizValueProperty.call(this,e,t)}return e.declareClass(i,r.RSValueProperty,n),e.declareClass(a,r.VizValueProperty,t),e.declareClass((function(t,n,o){r.call(this,t,n,o,(function(e){return e})),e.defineProperties(this,{_rs:{value:new i(this)},_host:{value:new a(this,t)}})}),r,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/rs/v1/IRSColorProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/internal/property/ColorProperty",["barejs!decl","../../property/IVizColorProperty","com/ibm/vipr/rs/v1/IRSColorProperty","../../util/Color","./ValueProperty"],(function(e,t,n,r,i){"use strict";function a(e){i.RSValueProperty.call(this,e)}function o(e,t){i.VizValueProperty.call(this,e,t)}return e.declareClass(a,i.RSValueProperty,n),e.declareClass(o,i.VizValueProperty,t),e.declareClass((function(t,n,r){i.call(this,t,n,r,(function(e){return e})),e.defineProperties(this,{_rs:{value:new a(this)},_host:{value:new o(this,t)}})}),i,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/rs/v1/IRSEnumProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getPossibleValues:function(){},setPossibleValues:function(e,t){}}),n})),define("com/ibm/vipr/internal/property/EnumProperty",["barejs!decl","barejs!NSet","barejs!WeakMap","../../property/IVizEnumProperty","../../property/PropertyValueEventArgs","com/ibm/vipr/rs/v1/IRSEnumProperty","../../vizdef/EnumPropertyDef","./EnumValue","./ValueProperty"],(function(e,t,n,r,i,a,o,s,l){"use strict";var u=new n;function c(e){l.RSValueProperty.call(this,e),u.set(this,e)}function f(e,t){l.VizValueProperty.call(this,e,t),u.set(this,e)}return e.declareClass(c,l.RSValueProperty,a,{getPossibleValues:function(){return u.get(this).getPossibleValuesForRS()},peekPossibleValues:function(){return u.get(this).getPossibleValuesForHost()},setPossibleValues:function(t,n){return u.get(this).setPossibleValues(e.freeze(t?Array.from(t,s.fromRSv1,s):new Array(0)),n)}}),e.declareClass(f,l.VizValueProperty,r,{defaultValue:{enumerable:!0,get:"getDefaultValue"},possibleValues:{enumerable:!0,get:"getPossibleValues"},dynamic:{enumerable:!0,get:"isDynamic"},getDefaultValue:function(){return u.get(this).getDefaultValue()},getPossibleValues:function(){return u.get(this).getPossibleValuesForHost()},isDynamic:function(){return this.def.dynamic}}),e.declareClass((function(t,n,r){l.call(this,t,n,r,(function(e){return e?e.name:null})),e.defineProperties(this,{_rs:{value:new c(this)},_host:{value:new f(this,t)},_defaultValue:{writable:!0,value:t.defaultValue},_possibleValues:{writable:!0,value:t.possibleValues},_rsPossibleValues:{writable:!0,value:t.possibleValues},_renPossibleValues:{writable:!0,value:null}})}),l,{_rs:null,_host:null,_defaultValue:null,_possibleValues:null,_rsPossibleValues:null,_renPossibleValues:null,toHost:function(){return this._host},toRS:function(){return this._rs},getDefaultValue:function(){return this._defaultValue},getPossibleValuesForHost:function(){return this._possibleValues},getPossibleValuesForRS:function(){return this._rsPossibleValues},setPossibleValues:function(e,n){if(!this.def.dynamic)throw new Error("setPossibleValues is not allowed on "+this.def.name+", the enum property is not dynamic");var r=Array.isArray(e)?e.length:0;if(r<1&&!this.def.allowNull)throw new Error("Cannot set empty possibleValues on "+this.def.name+", allowNull is false");for(var a=new t,o=0;o<r;++o){var s=e[o];if(!s)throw new TypeError("possibleValues may not contain null");if(a.has(s.name))throw new TypeError("Duplicate enum value name "+s.name);a.add(s.name)}var l=this._possibleValues;this._possibleValues=e,this.isLocked()||(this._rsPossibleValues=e),this._defaultValue=this._parse(n,null),this.emit("possibleValues",new i(this.toHost(),l));var u=this._parse(this.getValue(),this._defaultValue);return this.setParsedValue(u,this._toRSFn(u)),this._possibleValues},isDirtyForHost:function(){return l.prototype.isDirtyForHost.call(this)||this._possibleValues!==this._renPossibleValues},isDirtyForRS:function(){return l.prototype.isDirtyForRS.call(this)||this._rsPossibleValues!==this._renPossibleValues},_parse:function(e,t){var n=null;return"string"==typeof e?n=e:(e instanceof s||e&&"getName"in e)&&(n=e.getName()),o.parse(n,this.def.allowNull,this._possibleValues,t)},_markRendered:function(e){l.prototype._markRendered.call(this,e),e&&this._renPossibleValues!==this._possibleValues&&(this._renPossibleValues=this._possibleValues),this._rsPossibleValues!==this._possibleValues&&(this._rsPossibleValues=this._possibleValues)},onpossibleValues:function(e){}})})),define("com/ibm/vipr/property/IVizFontProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{})})),define("com/ibm/vipr/rs/v1/IRSFontProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/internal/property/FontProperty",["barejs!decl","../../property/IVizFontProperty","com/ibm/vipr/rs/v1/IRSFontProperty","./ValueProperty"],(function(e,t,n,r){"use strict";function i(e){r.RSValueProperty.call(this,e)}function a(e,t){r.VizValueProperty.call(this,e,t)}return e.declareClass(i,r.RSValueProperty,n),e.declareClass(a,r.VizValueProperty,t,{}),e.declareClass((function(t,n,o){r.call(this,t,n,o,(function(e){return e})),e.defineProperties(this,{_rs:{value:new i(this)},_host:{value:new a(this,t)}})}),r,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/internal/property/GroupProperty",["barejs!decl","../../property/IVizGroupProperty","./Property"],(function(e,t,n){"use strict";function r(t,r,i){n.VizProperty.call(this,t,r),e.defineProperty(this,"properties",{enumerable:!0,value:i})}return e.declareClass(r,n.VizProperty,t,{properties:null,getProperties:function(){return this.properties},forEach:function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");var t=arguments[1]||null;t&&(t=Object(t));for(var n=0,r=this._props.length;n<r;++n){var i=this._props[n];e.call(t,i,i.name,this)}}}),e.declareClass((function(t,i){n.call(this,t,!1);for(var a=i.length,o=new Array(a),s=0;s<a;++s)o[s]=i[s].toHost();e.defineProperties(this,{properties:{enumerable:!0,value:i},_vizGroup:{value:new r(this,t,e.freeze(o))}}),this.setActive(this._determineActive());var l=function(e){this.emit("value",e)}.bind(this),u=function(e){this.emit("active",e);var t=e.property.isActive();this.isActive()!==t&&this.setActive(t||this._determineActive())}.bind(this);for(s=0,a=i.length;s<a;++s){var c=i[s];c.on("value",l),c.on("active",u)}}),n,{VizGroupProperty:{value:r}},{properties:null,_vizGroup:null,toHost:function(){return this._vizGroup},toRS:function(){return null},_determineActive:function(){for(var e=!1,t=0,n=this.properties.length;t<n&&!e;++t)e=this.properties[t].isActive();return e}})})),define("com/ibm/vipr/rs/v1/IRSLengthProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/internal/property/LengthProperty",["barejs!decl","../../property/IVizLengthProperty","com/ibm/vipr/rs/v1/IRSLengthProperty","./ValueProperty"],(function(e,t,n,r){"use strict";function i(e){r.RSValueProperty.call(this,e)}function a(e,t){r.VizValueProperty.call(this,e,t)}return e.declareClass(i,r.RSValueProperty,n),e.declareClass(a,r.VizValueProperty,t,{allowNegative:{enumerable:!0,get:"getAllowNegative"},getAllowNegative:function(){return this.def.allowNegative}}),e.declareClass((function(t,n,o){r.call(this,t,n,o,(function(e){return e})),e.defineProperties(this,{_rs:{value:new i(this)},_host:{value:new a(this,t)}})}),r,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/rs/v1/IRSNumberProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/internal/property/NumberProperty",["barejs!decl","../../property/IVizNumberProperty","com/ibm/vipr/rs/v1/IRSNumberProperty","./ValueProperty"],(function(e,t,n,r){"use strict";function i(e){r.RSValueProperty.call(this,e)}function a(e,t){r.VizValueProperty.call(this,e,t)}return e.declareClass(i,r.RSValueProperty,n),e.declareClass(a,r.VizValueProperty,t,{minValue:{enumerable:!0,get:"getMinValue"},maxValue:{enumerable:!0,get:"getMaxValue"},getMinValue:function(){return this.def.minValue},getMaxValue:function(){return this.def.maxValue}}),e.declareClass((function(t,n,o){r.call(this,t,n,o,(function(e){return e})),e.defineProperties(this,{_rs:{value:new i(this)},_host:{value:new a(this,t)}})}),r,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/rs/v1/IRSStringProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/internal/property/StringProperty",["barejs!decl","../../property/IVizStringProperty","com/ibm/vipr/rs/v1/IRSStringProperty","./ValueProperty"],(function(e,t,n,r){"use strict";function i(e){r.RSValueProperty.call(this,e)}function a(e,t){r.VizValueProperty.call(this,e,t)}return e.declareClass(i,r.RSValueProperty,n),e.declareClass(a,r.VizValueProperty,t),e.declareClass((function(t,n,o){r.call(this,t,n,o,(function(e){return e})),e.defineProperties(this,{_rs:{value:new i(this)},_host:{value:new a(this,t)}})}),r,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/property/IVizPaletteProperty",["barejs!decl","./IVizValueProperty"],(function(e,t){"use strict";e.declareInterface((function(){}),t,{getPaletteType:function(){},getSlot:function(){}})})),define("com/ibm/vipr/rs/v1/IRSPaletteProperty",["barejs","./IRSValueProperty"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{paletteType:n.readOnlyProperty,slot:n.readOnlyProperty,getPaletteType:function(){},getSlot:function(){}}),r})),define("com/ibm/vipr/rs/v1/IRSPalette",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t),t})),define("com/ibm/vipr/rs/v1/IRSCatPalette",["barejs","./IRSPalette"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getTupleColor:function(e,t){},getColor:function(e){}}),n})),define("com/ibm/vipr/rs/v1/IRSCatPaletteProperty",["barejs","./IRSCatPalette","./IRSPaletteProperty"],(function(e,t,n){"use strict";function r(){}return e.decl.declareInterface(r,n,t),r})),define("com/ibm/vipr/rs/v1/IRSContPalette",["barejs","./IRSPalette"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getColorStops:function(e,t){}}),n})),define("com/ibm/vipr/rs/v1/IRSContPaletteProperty",["barejs","./IRSContPalette","./IRSPaletteProperty"],(function(e,t,n){"use strict";function r(){}return e.decl.declareInterface(r,n,t),r})),define("com/ibm/vipr/rs/v1/IRSCustomCatPalette",["barejs","./IRSPalette"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getColor:function(e,t,n){}}),n})),define("com/ibm/vipr/rs/v1/IRSCustomCatPaletteProperty",["barejs","./IRSCustomCatPalette","./IRSPaletteProperty"],(function(e,t,n){"use strict";function r(){}return e.decl.declareInterface(r,n,t),r})),define("com/ibm/vipr/rs/v1/IRSCustomContPalette",["barejs","./IRSPalette"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getColorStops:function(e){}}),n})),define("com/ibm/vipr/rs/v1/IRSCustomContPaletteProperty",["barejs","./IRSCustomContPalette","./IRSPaletteProperty"],(function(e,t,n){"use strict";function r(){}return e.decl.declareInterface(r,n,t),r})),define("com/ibm/vipr/internal/property/PaletteProxy",["barejs!decl","../../util/Color","com/ibm/vipr/rs/v1/IRSPalette"],(function(e,t,n){"use strict";return e.declareClass((function(t,n){e.defineProperties(this,{_dataContext:{value:t},_resolver:{value:n}})}),n,{FALLBACK_COLOR:{enumerable:!0,value:t.Named.Purple}},{_dataContext:null,_resolver:null})})),define("com/ibm/vipr/internal/property/CatPaletteProxy",["barejs!decl","../../util/Color","com/ibm/vipr/rs/v1/IRSCatPalette","./PaletteProxy"],(function(e,t,n,r){"use strict";return e.declareClass((function(e,t,n){r.call(this,e,t),this._slotName=n}),r,n,{_slotName:null,getTupleColor:function(e,n){var i=e||null,a=null===i?-1:e.items.length-1,o="number"==typeof n?Math.trunc(n):-1;if(o<-1||o>a)throw new Error("Invalid item level: "+n);return!i||!i.getSlotRef()||this._slotName&&this._slotName!==i.getSlotRef().name?this.getColor(null):t.fromHost(this._resolver.getColor(i,i.getDataItem(this._dataContext),o))||r.FALLBACK_COLOR},getColor:function(e){var n=e||null;if(n){var i=n.get(this._slotName);if(i)return this.getTupleColor(i.asCat(),-1)}return t.fromHost(this._resolver.getDefaultColor?this._resolver.getDefaultColor(e):this._resolver.getColor(null))||r.FALLBACK_COLOR}})})),define("com/ibm/vipr/rs/v1/IRSDataContext",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t),t})),define("com/ibm/vipr/api/HittableType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Data="data"}),{parse:function(e){if(!e)return null;switch(e.toLowerCase()){case"data":return this.Data;default:return null}}})})),define("com/ibm/vipr/internal/data/DataObject",["barejs!decl","../../api/HittableType","../../info/IInfo"],(function(e,t,n){"use strict";return e.abstractClass((function(t){e.defineProperty(this,"source",{value:t||null})}),n,{toInfo:function(e){return e.slice(0)}},{source:null,getSource:function(){return this.source},getHittableType:function(){return t.Data}})})),define("com/ibm/vipr/internal/data/CustomInfo",["barejs!decl","../../info/ICustomInfo","../../info/InfoType","./DataObject"],(function(e,t,n,r){"use strict";return e.declareClass((function(t){r.call(this,null),e.defineProperty(this,"payload",{enumerable:!0,value:t})}),r,t,{infoType:{value:n.CustomData},id:{enumerable:!0,get:"getId"},type:{enumerable:!0,get:"getType"},payload:null,getInfoType:function(){return n.CustomData},getPayload:function(){return this.payload},getId:function(){return this.payload.id},getType:function(){return this.payload.type},equals:function(e){return this.infoType===e.infoType&&this.id===e.id&&this.type===e.type&&(this.payload===e.payload||!(!this.payload||"function"!=typeof this.payload.equals||!this.payload.equals(e.payload)))}})})),define("com/ibm/vipr/internal/data/DataContext",["barejs!decl","barejs!WeakMap","com/ibm/vipr/rs/v1/IRSDataContext"],(function(e,t,n){"use strict";function r(){e.defineProperties(this,{_owner:{value:new t},_reference:{value:new t}})}function i(e){return e&&e.as?e.as(r):null}return e.declareClass(r,n,{getOwner:function(e,t){var n=i(e);return n?n.getOwner(t):null},getReference:function(e,t){var n=i(e);return n?n.getReference(t):null}},{_owner:null,_reference:null,getOwner:function(e){return this._owner.get(e)||null},setOwner:function(e,t){e&&this._owner.set(e,t)},getReference:function(e){return this._reference.get(e)||null},setReference:function(e,t){e&&this._reference.set(e,t)}}),e.defineProperty(r,"vipr",{enumerable:!0,value:new r})})),define("com/ibm/vipr/rs/v1/IRSHittable",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{getRSHittableType:function(){}}),t})),define("com/ibm/vipr/rs/v1/data/IRSDataNode",["barejs","../IRSHittable"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/rs/v1/data/IRenderingServiceData",["barejs","./IRSDataNode"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{dataSets:n.readOnlyProperty,decorationsVersion:n.readOnlyProperty,getDataSets:function(){},getDataSet:function(e){},getDecorationsVersion:function(){}}),r})),define("com/ibm/vipr/api/IVizServiceNotification",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getLevel:function(){},getId:function(){},getType:function(){},getDescription:function(){},getLocalizedMessage:function(){},getPayload:function(){}})})),define("com/ibm/vipr/internal/VizServiceNotification",["barejs!decl","../api/IVizServiceNotification"],(function(e,t){"use strict";return e.declareClass((function(t,n,r,i,a,o){e.defineProperties(this,{level:{enumerable:!0,value:t},type:{enumerable:!0,value:n},id:{enumerable:!0,value:r},description:{enumerable:!0,value:i},localizedMessage:{enumerable:!0,value:a},payload:{enumerable:!0,value:o}})}),t,{id:null,type:null,level:null,description:null,localizedMessage:null,payload:null,getLevel:function(){return this.level},getId:function(){return this.id},getType:function(){return this.type},getDescription:function(){return this.description},getLocalizedMessage:function(){return this.localizedMessage},getPayload:function(){return this.payload},toString:function(){return this.description}})})),define("com/ibm/vipr/internal/data/SliceResult",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(e,t){this.dataItems=e,this.slices=t}),{dataItems:null,slices:null})})),define("com/ibm/vipr/truncation/Truncation",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t,n){e.defineProperties(this,{type:{enumerable:!0,value:t},message:{enumerable:!0,value:n}})}),{type:null,message:null,toString:function(){return this.message}})})),define("com/ibm/vipr/truncation/TruncationType",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Limit="limit",this.Unaggregated="unaggregated"}))})),define("com/ibm/vipr/truncation/LimitTruncation",["barejs!decl","./Truncation","./TruncationType"],(function(e,t,n){"use strict";return e.declareClass((function(r,i,a,o,s,l){t.call(this,n.Limit,r),e.defineProperties(this,{capability:{enumerable:!0,value:i},limit:{enumerable:!0,value:a},full:{enumerable:!0,value:o},slotRef:{enumerable:!0,value:s},dataItem:{enumerable:!0,value:l},next:{enumerable:!0,writable:!0,value:null}})}),t,{capability:null,limit:null,full:null,slotRef:null,dataItem:null,next:null,slotDef:{get:function(){return this.slotRef}}})})),define("com/ibm/vipr/truncation/UnaggregatedTruncation",["barejs!decl","./Truncation","./TruncationType"],(function(e,t,n){"use strict";return e.declareClass((function(e){t.call(this,n.Unaggregated,e)}),t,{})})),define("com/ibm/vipr/truncation/TruncationInfo",["barejs!decl"],(function(e){"use strict";var t=0;return e.declareClass((function(n,r){e.defineProperties(this,{id:{enumerable:!0,value:String(t++)},message:{enumerable:!0,value:n},truncations:{enumerable:!0,value:r}})}),{id:null,message:null,truncations:null,toString:function(){return this.message}})})),define("com/ibm/vipr/internal/data/TruncationFactory",["barejs!decl","../../truncation/LimitTruncation","../../truncation/UnaggregatedTruncation","../../truncation/TruncationInfo","../util/StringUtil"],(function(e,t,n,r,i){"use strict";return e.declareClass((function(t){e.defineProperties(this,{_truncations:{value:[]},_nls:{value:t}})}),{_truncations:null,_nls:null,addSlot:function(e,t,n,r,i){if(!r||!i)throw new Error("_slotRef and _dataItem are mandatory");this._addLimit(e,t,n,r,i)},addData:function(e,t,n){this._addLimit(e,t,n,null,null)},addUnaggregated:function(){this._findUnaggregated()||this._truncations.push(new n(this._nls.get("duplicate_truncation")))},create:function(){return this._truncations.length<1?null:new r(this._nls.get("data_truncation"),e.freeze(this._truncations))},_findLimit:function(e){for(var n=0,r=this._truncations.length;n<r;++n){var i=this._truncations[n];if(i instanceof t&&i.capability===e)return i}return null},_findUnaggregated:function(){for(var e=0,t=this._truncations.length;e<t;++e){var r=this._truncations[e];if(r instanceof n)return r}return null},_addLimit:function(e,n,r,a,o){var s=this._findLimit(e);if(!s||s.slotRef!==a||s.dataItem!==o){var l=new t(a?i.format(this._nls.get("tuple_truncation"),a.caption,n,r):i.format(this._nls.get("datapoint_truncation"),n),e,n,r,a,o);if(s)if(r>s.full)this._truncations[this._truncations.indexOf(s)]=l,l.next=s;else{for(var u=s.next;u&&r<u.full;)s=u,u=u.next;s.next=l,l.next=u||null}else this._truncations.push(l)}return s}})})),define("com/ibm/vipr/internal/data/VIPRData",["barejs!decl","../../info/InfoType","../../info/IVIPRDataInfo","com/ibm/vipr/rs/v1/data/IRenderingServiceData","../VizServiceNotification","./DataObject","./SliceResult","./TruncationFactory"],(function(e,t,n,r,i,a,o,s){"use strict";function l(t,n,r,i,o){a.call(this,t),e.defineProperties(this,{_decoFilter:{value:n},mapping:{value:r},dataSets:{enumerable:!0,value:i},_slicedFrom:{value:o||null},_sourceVersion:{writable:!0,value:NaN},_version:{writable:!0,value:0}})}return e.declareClass(l,a,r,n,{isSliced:function(e){return!e||!!e._slicedFrom}},{infoType:{value:t.VIPRData},_decoFilter:null,mapping:null,dataSets:null,_slicedFrom:null,_version:null,_sourceVersion:null,decorationsVersion:{enumerable:!0,get:"getDecorationsVersion"},getMapping:function(){return this.mapping},getDataSets:function(){return this.dataSets},getDataSet:function(e){for(var t=0,n=this.dataSets.length;t<n;++t){var r=this.dataSets[t];if(r&&r.dataSetDef.name===e)return r}return null},getDecorationsVersion:function(){return this._version},refreshDecorations:function(){if(this._slicedFrom)this._version=this._slicedFrom.refreshDecorations(),this._sourceVersion=this._slicedFrom._sourceVersion;else{var e=this.source?this.source.getDecorationsVersion():0;if(e!==this._sourceVersion){++this._version,this._sourceVersion=e;for(var t=0;t<this.dataSets.length;++t)this.dataSets[t]&&this.dataSets[t].setDataPointDecorationsDirty()}}return this._version},empty:function(){for(var e=this.dataSets.length,t=new Array(e),n=0;n<e;++n){var r=this.dataSets[n];r&&(r=r.empty()),t[n]=r}return new l(this.source,this._decoFilter,this.mapping,t,this._slicedFrom)},filterDecorations:function(e){var t=this._decoFilter.size>0;if(t&&this._decoFilter.clear(),e&&(e.forEach((function(e){"string"==typeof e&&this._decoFilter.add(e)}),this),!t&&this._decoFilter.size>0&&(t=!0)),t){++this._version;for(var n=0;n<this.dataSets.length;++n)this.dataSets[n]&&this.dataSets[n].setDataPointDecorationsDirty()}},getDataSetInfos:function(){return l.toInfo(this.dataSets)},getDataSetInfo:function(e){return this.getDataSet(e)},getDataSetAt:function(e){return this.dataSets[e]||null},getInfoType:function(){return t.VIPRData},getRSHittableType:function(){return null},slice:function(e,t,n,r){var a,u=[];if(this){if(this._slicedFrom)throw new Error("VIPRData is already processed");for(var c,f=this.dataSets.length,d=1,p=new Array(f),h=new s(r),m=0;m<f;++m){var g=this.dataSets[m];c=null,g&&(c=g.slice(e,u,t,h)).length>d&&(d=c.length),p[m]=c}a=new Array(d);for(var v=0;v<d;++v){var b=new Array(f);for(m=0;m<f;++m)c=p[m],b[m]=c&&c[1===c.length?0:v];a[v]=new l(this.source,this._decoFilter,this.mapping,b,this)}var y=h.create();if(y&&n&&n.notify){var I=new i("warn","truncate","truncation_"+y.id,"truncation",y.message,y);try{n.notify(I)}catch(e){}}}else(a=new Array(1))[0]=null;return new o(u,a)},initDataContext:function(e){if(!e)throw new Error("_context cannot be null");for(var t=0,n=this.dataSets.length;t<n;++t){var r=this.dataSets[t];r&&r.applyContext(e,this)}return this}})})),define("com/ibm/vipr/rs/v1/data/IRSDecorated",["barejs","./IRSDataNode"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{hasDecoration:function(e){},getDecoration:function(e,t){}}),n})),define("com/ibm/vipr/rs/v1/data/IRSDataSet",["barejs","./IRSDecorated"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{name:n.readOnlyProperty,caption:n.readOnlyProperty,type:n.readOnlyProperty,getName:function(){},getCaption:function(){},getRSType:function(){}}),r})),define("com/ibm/vipr/rs/v1/data/IRSStructuredDataSet",["barejs","./IRSDataSet"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{dataPoints:n.readOnlyProperty,slots:n.readOnlyProperty,getDataPoints:function(){},getSlot:function(e){},getSlots:function(){},hasValues:function(){},hasDecorationOnDataPoints:function(e){}}),r})),define("com/ibm/vipr/rs/v1/data/RSDataSetType",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Custom="custom",this.Structured="structured"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"custom":return t.Custom;case"structured":return t.Structured;default:return null}}});return t})),define("com/ibm/vipr/internal/data/ArrayIterator",["barejs!decl"],(function(e){"use strict";return e.declareClass((function(t){var n=-1;e.defineProperty(this,"next",{enumerable:!0,value:function(){var e={done:++n>=t.length};return e.done||(e.value=t[n]),e}})}))})),define("com/ibm/vipr/rs/v1/data/IRSDataPoint",["barejs","./IRSDecorated"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getDataSet:function(e){},getKey:function(e){},all:function(e){},get:function(e,t){}}),n})),define("com/ibm/vipr/rs/v1/RSHittableType",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Data="data"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"data":return t.Data;default:return null}}});return t})),define("com/ibm/vipr/internal/data/Decorated",["barejs!decl","./DataObject","com/ibm/vipr/rs/v1/RSHittableType","com/ibm/vipr/rs/v1/data/IRSDecorated"],(function(e,t,n,r){"use strict";return e.abstractClass((function(n,r){t.call(this,n),e.defineProperty(this,"_decoFilter",{value:r})}),t,r,{_decoFilter:null,hasDecoration:function(e){return!this._decoFilter.has(e)&&!(!this.source||!this.source.hasDecoration(e))},getDecoration:function(e,t){return this.hasDecoration(e)?this.source.getDecoration(e):t},getRSHittableType:function(){return n.Data}})})),define("com/ibm/vipr/rs/v1/data/IRSSlot",["barejs","./IRSDataNode"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{type:n.readOnlyProperty,name:n.readOnlyProperty,channels:n.readOnlyProperty,mapped:n.readOnlyProperty,dataItems:n.readOnlyProperty,dataItemCount:n.readOnlyProperty,getRSType:function(){},getName:function(){},getChannels:function(){},isMapped:function(){},getDataItems:function(){},getDataItemCount:function(){},getDataItem:function(e){}}),r})),define("com/ibm/vipr/internal/data/Slot",["barejs!decl","../../info/InfoType","../../info/ISlotInfo","com/ibm/vipr/rs/v1/data/IRSSlot"],(function(e,t,n,r){"use strict";function i(t,n,r,i){e.defineProperties(this,{slotRef:{value:t},mapped:{enumerable:!0,value:n},dataItems:{enumerable:!0,value:r},forViz:{value:!!i}})}return e.declareClass(i,r,n,{infoType:{value:t.Slot},slotRef:null,mapped:null,dataItems:null,forViz:null,name:{enumerable:!0,get:"getName"},type:{enumerable:!0,get:"getRSType"},channels:{enumerable:!0,get:"getChannels"},dataItemCount:{enumerable:!0,get:"getDataItemCount"},getInfoType:function(){return t.Slot},getRSType:function(){return this.slotRef.type},getName:function(){return this.slotRef.name},getChannels:function(){return this.slotRef.channels},isMapped:function(){return this.mapped},getDataItems:function(){return this.dataItems},getDataItemCount:function(){return this.dataItems.length},getDataItem:function(e){return(e=arguments.length<1?0:Math.floor(e))>=0&&e<this.dataItems.length?this.dataItems[e]:null},getSource:function(){return null},getSlotRef:function(){return this.slotRef},getSlotType:function(){return this.slotRef.type},getDataItemInfos:function(){return i.toInfo(this.dataItems)},getDataItemInfo:function(e){return this.getDataItem(e)},getRSHittableType:function(){return null},getHittableType:function(){return null},clone:function(e){return new i(this.slotRef,this.mapped,e,this.forViz)},slotDef:{get:"getSlotRef"}})})),define("com/ibm/vipr/rs/v1/data/RSDataItemType",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Cat="cat",this.Cont="cont"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"cat":return t.Cat;case"cont":return t.Cont;default:return null}}});return t})),define("com/ibm/vipr/rs/v1/data/IRSCaptioned",["barejs","./IRSDataNode"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getCaption:function(e){},toString:function(){}}),n})),define("com/ibm/vipr/rs/v1/data/IRSDatum",["barejs","./IRSCaptioned","./IRSDecorated"],(function(e,t,n){"use strict";function r(){}return e.decl.declareInterface(r,n,t,{getDataItem:function(e){},getRSType:function(){},asCat:function(){},asCont:function(){}}),r})),define("com/ibm/vipr/rs/v1/data/IRSTuple",["barejs","./IRSDatum"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{index:n.readOnlyProperty,itemClassSet:n.readOnlyProperty,itemClasses:n.readOnlyProperty,items:n.readOnlyProperty,getSubType:function(){},getIndex:function(){},getItemClassSet:function(){},getItemClasses:function(){},getItemClassCount:function(){},getItemClass:function(e){},getItems:function(){},getItemCount:function(){},getItem:function(e){},getKey:function(e){}}),r})),define("com/ibm/vipr/rs/v1/data/RSFormatKind",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Data="data",this.Label="label"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"data":return t.Data;case"label":return t.Label;default:return null}}});return t})),define("com/ibm/vipr/rs/v1/data/IRSFormatter",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{format:function(e){}}),t})),define("com/ibm/vipr/internal/util/formatting",["exports","barejs!decl","com/ibm/vipr/rs/v1/data/RSFormatKind","com/ibm/vipr/rs/v1/data/IRSFormatter"],(function(e,t,n,r){"use strict";function i(e){return null==e?"":String(e)}function a(e,t){return String(e).padStart(t||2,"0")}function o(e,n){t.defineProperties(this,{kind:{enumerable:!0,value:e},format:{enumerable:!0,value:n}})}t.declareClass(o,r,{kind:null,format:function(e){}});var s,l=(s=null,"undefined"!=typeof Intl&&(s=new Intl.NumberFormat(void 0,{maximumFractionDigits:20})),new o(n.Data,(function(e){return"number"==typeof e?s?s.format(e):e.toLocaleString():e instanceof Date?e.toLocaleString():i(e)}))),u=new o(n.Label,i);t.defineObject(e,{normalize:i,getDefault:function(e){switch(e){case"data":return l;case"label":return u;default:return null}},getHost:function(e,t){var n=null;if(e&&"getFormatter"in e&&(n=e.getFormatter(t)),n&&"function"!=typeof n.format)throw new TypeError("Invalid formatter returned, missing a format function");return n&&new o(t,(function(e){return n.format(e)}))},createDateTime:function(e,t){return new o(e,(function(e){var n="";return e instanceof Date&&!isNaN(e)&&(t.date&&(t.year&&(n+=a(e.getFullYear(),4)),t.month&&(n.length&&(n+="-"),n+=a(e.getMonth()+1)),t.day&&(n.length&&(n+="-"),n+=a(e.getDay()))),t.time&&(n.length&&(n+=" "),t.hour&&(n+=a(e.getHours())),t.minute&&(n.length&&(n+=":"),n+=a(e.getMinutes())),t.second&&(n.length&&(n+=":"),n+=a(e.getSeconds()))),t.fraction&&(n+="."+a(e.getMilliseconds()))),n}))},joinCaptions:function(e,t,n){var r=e.length;if(r<2)return r<1?"":i(e[0].getCaption(t));for(var a="",o=!0,s=0;s<r;++s){s>0&&(a+=n);var l=i(e[s].getCaption(t));l&&(o=!1,a+=l)}return o?"":a},joinSubCaptions:function(e,t,n){var r=e.length;if(r<2)return r<1?"":i(e[0].getSubCaption(t));for(var a="",o=!0,s=0;s<r;++s){s>0&&(a+=n);var l=i(e[s].getSubCaption(t));l&&(o=!1,a+=l)}return o?"":a},joinCombinedCaptions:function(e,t,n){var r=e.length;if(r<2)return r<1?"":i(e[0].combineCaptions(t));for(var a="",o=!0,s=0;s<r;++s){s>0&&(a+=n);var l=i(e[s].combineCaptions(t));l&&(o=!1,a+=l)}return o?"":a}},"formatting")})),define("com/ibm/vipr/internal/data/Slotted",["barejs!decl","../../info/ISlottedInfo","../../vizdef/SlotRef","./Decorated"],(function(e,t,n,r){"use strict";return e.abstractClass((function(t,i,a){r.call(this,t,i),e.defineProperty(this,"slotRef",{value:a instanceof n?a:null})}),r,t,{slotRef:null,getSlotRef:function(){return this.slotRef},slotDef:{get:"getSlotRef"}})})),define("com/ibm/vipr/internal/data/Tuple",["barejs!decl","../../info/InfoType","../../info/ITupleInfo","com/ibm/vipr/rs/v1/data/RSDataItemType","com/ibm/vipr/rs/v1/data/IRSTuple","../util/formatting","./DataContext","./Slotted"],(function(e,t,n,r,i,a,o,s){"use strict";var l=String.fromCharCode(215);function u(t,n,r,i,a,o){s.call(this,t,n,r),e.defineProperties(this,{index:{enumerable:!0,value:i},itemClassSet:{enumerable:!0,value:a},items:{enumerable:!0,value:o},_key:{writable:!0,value:null},_keyS:{writable:!0,value:null}})}return e.declareClass(u,s,i,n,{joinKey:function(e){return e.join(l)}},{infoType:{value:t.Tuple},type:{enumerable:!0,value:r.Cat},subType:null,index:null,itemClassSet:null,items:null,_key:null,_keyS:null,itemClasses:{enumerable:!0,get:"getItemClasses"},dataItem:{get:"getDataItemInfo"},key:{enumerable:!0,get:function(){return this.getKey(!0)}},getRSType:function(){return r.Cat},getDataItem:function(e){return o.getOwner(e,this)},asCat:function(){return this},asCont:function(){return null},getSubType:function(){return this.subType},getIndex:function(){return this.index},getItemClassSet:function(){return this.itemClassSet},getItemClasses:function(){return this.itemClassSet&&this.itemClassSet.itemClasses},getItemClassCount:function(){return this.itemClassSet?this.itemClassSet.getItemClassCount():0},getItemClass:function(e){return this.itemClassSet?this.itemClassSet.getItemClass(e):null},getItems:function(){return this.items},getItemCount:function(){return this.items.length},getItem:function(e){return(e=Math.floor(e))>=0&&e<this.items.length?this.items[e]:null},getKey:function(e){var t=void 0===e||!!e,n=t?this._keyS:this._key;if(null===n){var r=[];this.addKeyParts(r),r.length<1?r.push(String(this.index)):r.length>1&&t&&r.sort(),n=u.joinKey(r),t?this._keyS=n:this._key=n}return n},getCaption:function(e){return a.joinCaptions(this.items,e," | ")},getInfoType:function(){return t.Tuple},getDataItemInfoType:function(){return r.Cat},getItemClassSetInfo:function(){return this.itemClassSet},getItemClassInfos:function(){return this.itemClassSet.getItemClassInfos()},getItemInfos:function(){return u.toInfo(this.items)},getDataItemInfo:function(){return o.vipr.getOwner(this)},addKeyParts:function(e){if(this.source)for(var t=0,n=this.items.length;t<n;++t)e.push(this.items[t].getUniqueName())},_cloneItems:function(e,t){for(var n=this.items.length,r=new Array(n),i=0;i<n;++i)r[i]=this.items[i].clone(e,t.itemClasses[i]);return r},clone:function(e,t){return new u(this.source,e,t.getSlotRef(),this.index,t,this._cloneItems(e,t))},applyContext:function(e,t){t&&e.setOwner(this,t)},valueOf:function(){return this.index}})})),define("com/ibm/vipr/internal/data/DataPoint",["barejs!decl","../../info/InfoType","../../info/IDataPointInfo","com/ibm/vipr/rs/v1/data/IRSDataPoint","./DataContext","./Decorated","./Slot","./Tuple"],(function(e,t,n,r,i,a,o,s){"use strict";function l(t,n,r,i,o,s,l,u,c){a.call(this,t,n),e.defineProperties(this,{dataItems:{value:r},index:{value:o},ordinal:{value:s},_slots:{value:i},_rowData:{value:l},_rowStart:{value:u},offset:{value:c},_key:{writable:!0,value:null},_keyS:{writable:!0,value:null}})}return e.declareClass(l,a,r,n,{infoType:{value:t.DataPoint},index:null,dataItems:null,_slots:null,_rowData:null,_rowStart:null,offset:null,_key:null,_keyS:null,row:{get:"getRowInfo"},key:{enumerable:!0,get:function(){return this.getKey(!0)}},getDataSet:function(e){return i.getOwner(e,this)},getKey:function(e){var t=void 0===e||!!e,n=t?this._keyS:this._key;if(null===n){for(var r=[],i=0,a=this._slots.length;i<a;++i){var o=this._slots[i];if(o.mapped&&o.forViz)for(var l=0,u=o.dataItems.length;l<u;++l){var c=o.dataItems[l];"cat"===c.type&&this.datum(c).addKeyParts(r)}}r.length<1?r.push(String(this.ordinal)):t&&r.sort(),this.offset>0&&r.push("["+this.offset+"]"),n=s.joinKey(r),t?this._keyS=n:this._key=n}return n},all:function(e){var t,n,r=e instanceof o?e:null,i=null;if(!r&&e){var a="string"==typeof e?e:e.name;if(a)for(t=0,n=this._slots.length;!r&&t<n;++t)(r=this._slots[t]).name!==a&&(r=null)}if(r)for(n=r.dataItems.length,i=new Array(n),t=0;t<n;++t)i[t]=this.datum(r.dataItems[t]);return i},get:function(e,t){var n=e instanceof o?e:null,r=Math.floor(t)||0;if(!n&&e){var i="string"==typeof e?e:e.name;if(i)for(var a=0,s=this._slots.length;!n&&a<s;++a)(n=this._slots[a]).name!==i&&(n=null)}return r<0||!n||r>=n.dataItems.length?null:this.datum(n.dataItems[r])},getInfoType:function(){return t.DataPoint},getRowInfo:function(){if(this.index<0)return null;for(var e=this.dataItems,t=e.length;t>0&&e[t-1]&&!e[t-1].source;)--t;for(var n=new Array(t),r=0;r<t;++r)n[r]=this.datum(e[r]);return n},allInfo:function(e){return l.toInfo(this.all(e))},getInfo:function(e,t){return this.get(e,t)},datum:function(e){return e?e.colIndex<0?e.getTuple(e.start):this._rowData[this._rowStart+e.colIndex]:null},applyContext:function(e,t){if(t&&e.setOwner(this,t),e!==i.vipr)for(var n=0,r=this._slots.length;n<r;++n){var a=this._slots[n];if("cat"!==a.getSlotType())for(var o=0,s=a.dataItems.length;o<s;++o){var l=a.dataItems[o];"cont"===l.getDataItemInfoType()&&this.datum(l).applyContext(e,l)}}}})})),define("com/ibm/vipr/rs/v1/data/IRSContDomain",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{min:t.readOnlyProperty,max:t.readOnlyProperty,empty:t.readOnlyProperty,explicit:t.readOnlyProperty,getMin:function(){},getMax:function(){},isEmpty:function(){},isExplicit:function(){}}),n})),define("com/ibm/vipr/internal/util/ContDomain",["barejs!decl","../../data/IContDomain","com/ibm/vipr/rs/v1/data/IRSContDomain"],(function(e,t,n){"use strict";function r(e){if("number"==typeof e)return e;throw new TypeError("Not a valid number")}function i(t,n,i,a){e.defineProperties(this,{min:{enumerable:!0,value:r(t)},max:{enumerable:!0,value:r(n)},empty:{enumerable:!0,value:!0===i},explicit:{enumerable:!0,value:!0===a}})}return e.declareClass(i,t,n,{fromHost:function(e){if(!e)return null;if(e instanceof i)return e;var t=null===e.min&&null===e.max;return new i(t?0:e.min,t?0:e.max,t,e.explicit)},fromRSv1:function(e){return e?e instanceof i?e:new i(e.getMin(),e.getMax(),e.isEmpty(),e.isExplicit()):null}},{min:null,max:null,empty:null,explicit:null,getMin:function(){return this.min},getMax:function(){return this.max},isEmpty:function(){return this.empty},isExplicit:function(){return this.explicit},equals:function(e){if(e===this)return!0;var t=0,n=0,r=!this.empty,a=!this.explicit;return e instanceof i&&(t=e.min,n=e.max,r=e.empty,a=e.explicit),r===this.empty&&a===this.explicit&&t===this.min&&n===this.max},toString:function(){return"["+this.min+","+this.max+"]"}}),e.defineProperty(i,"EMPTY",{enumerable:!0,value:new i(0,0,!0,!1)})})),define("com/ibm/vipr/internal/data/DomainResolver",["barejs!decl","barejs!NMap","../util/ContDomain","../util/StringUtil"],(function(e,t,n,r){"use strict";function i(t,n){e.defineProperties(this,{type:{enumerable:!0,value:t},negative:{enumerable:!0,value:n},_min:{writable:!0,value:1},_max:{writable:!0,value:0},_vPos:{writable:!0,value:0},_vNeg:{writable:!0,value:0},_cPos:{writable:!0,value:0},_cNeg:{writable:!0,value:0}})}function a(e,n,r){this._dataItems=e,this._dataPoints=n,this._slots=r,this._cache=new t}return e.declareClass(i,{type:null,negative:null,_min:null,_max:null,_vPos:null,_vNeg:null,_cPos:null,_cNeg:null,isEmpty:function(){return this._cPos<1&&this._cNeg<1},visit:function(e){if(null!==e&&"number"==typeof e&&!Number.isNaN(e)){var t=e,n=t<0;if(n)switch(this.negative){case"ignore":return;case"absolute":t=Math.abs(t);case"aggregate":n=!1;break;case"separate":break;default:throw new Error("Unhandled negative handling: "+this.negative)}var r=!1;switch(this.type){case"accumulate":t=n?this._vNeg+=t:this._vPos+=t;case"fit":r=!0;break;case"average":case"sum":n?this._vNeg+=t:this._vPos+=t;break;default:throw new Error("Unhandled aggregation type: "+this.type)}n?++this._cNeg:++this._cPos,r&&this._fit(t)}},toContDomain:function(){return this.isEmpty()?n.EMPTY:(this._aggregate(),new n(this._min,this._max))},applyTo:function(e){this.isEmpty()||(this._aggregate(),e.visit(this._min),e.visit(this._max))},_fit:function(e){var t=this._min>this._max;(t||e<this._min)&&(this._min=e),(t||e>this._max)&&(this._max=e)},_aggregate:function(){if("sum"===this.type||"average"===this.type){var e=this._vPos,t=this._vNeg;"average"===this.type&&(this._cNeg>1&&(t/=this._cNeg),this._cPos>1&&(e/=this._cPos)),this._cNeg>0&&this._fit(t),this._cPos>0&&this._fit(e)}}}),e.declareClass(a,{buildOffsets:function(e,t){for(var n=e.length,r=new Array(n+(t?1:0)),i=1,a=0;a<n;++a){var o=e[a];if("cat"===o.type){var s=o.end-o.start;1===s?r[a]=0:(r[a]=i,i*=s)}else r[a]=-1}return t&&(r[n]=i),r},createFixed:function(e){return new Array(Math.trunc(e)).fill(null)}},{_dataItems:null,_dataPoints:null,_slots:null,resolve:function(t,n){var o="fit",s=null,l=null;if(n){var u=n.attributes;u.has("type")&&(o=u.get("type")),u.has("over")&&(l=u.get("over")),u.has("negative")&&(s=u.get("negative"))}s||(s="fit"===o||"accumulate"===o?"aggregate":"separate");var c=r.format("{0}[{1}-{2}:{3}]",t.sourceIndex,o,s,l||""),f=this._cache.get(c);if(f)return f;var d,p,h,m,g,v,b=null,y=[],I=null,_=0,w=null;for(d=0,p=this._slots.length;d<p;++d){var C=this._slots[d];if(null!==l||!C.forViz)if(C.forViz&&C.name===l)b=C;else for(h=0,_=(g=C.dataItems).length;h<_;++h)"cat"!==(m=g[h]).type||m.sourceIndex<0||m.colIndex<0||(m=this._dataItems[m.sourceIndex])&&y.indexOf(m)<0&&y.push(m)}if(null!==l&&null===b)throw new Error("Invalid over slot: "+l);for(h=0,_=(g=this._dataItems)&&g.length;h<_;++h)(m=g[h])&&!m.mapped&&"cat"===m.type&&m.colIndex>=0&&y.push(m);for("fit"!==o&&y.length>0?(I=a.buildOffsets(y,!0),_=y.length,w=a.createFixed(I[_]),v=new i("fit","aggregate")):v=new i(o,s),d=0,p=this._dataPoints.length;d<p;++d){var S=this._dataPoints[d],P=S.datum(t);if("numeric"===P.valueType&&null!==P.value){var D=+P.value;if(w){var R=0;for(h=0;h<_;++h)m=y[h],R+=I[h]*(S.datum(m).index-m.start);var T=w[R];T||(w[R]=T=new i(o,s)),T.visit(D)}else v.visit(D)}}if(w)for(d=0,p=w.length;d<p;++d)w[d]&&w[d].applyTo(v);return f=v.toContDomain(),this._cache.set(c,e.freeze(f)),f}})})),define("com/ibm/vipr/rs/v1/data/IRSValue",["barejs","./IRSDatum"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{valueType:n.readOnlyProperty,value:n.readOnlyProperty,getRSValueType:function(){},getValue:function(){}}),r})),define("com/ibm/vipr/internal/data/Value",["barejs!decl","../../data/FormatKind","../../info/InfoType","../../info/IValueInfo","../../data/DataItemType","../../data/ValueType","com/ibm/vipr/rs/v1/data/IRSValue","../util/formatting","./DataContext","./Slotted"],(function(e,t,n,r,i,a,o,s,l,u){"use strict";function c(t,n,r,i){u.call(this,t,n,r),e.defineProperty(this,"valueType",{enumerable:!0,value:t?t.getValueType():a.Missing}),l.vipr.setReference(this,i)}return e.declareClass(c,u,o,r,{infoType:{value:n.Value},valueType:null,type:{enumerable:!0,value:i.Cont},value:{enumerable:!0,get:"getValue"},dataItem:{get:"getDataItemInfo"},getInfoType:function(){return n.Value},getRSType:function(){return i.Cont},asCat:function(){return null},asCont:function(){return this},getRSValueType:function(){return this.valueType},getValue:function(){return this.valueType===a.Missing?null:this.source.getValue()},getDataItem:function(e){return l.getReference(e,this)},getCaption:function(e){return t.validate(e),this.source?s.normalize(this.source.getCaption(e)):this.getDataItem(l.vipr).missingCaption(e)},valueOf:function(){return this.getValue()},getValueInfoType:function(){return this.getValueType()},getDataItemInfo:function(){return this.getDataItem(l.vipr)},getDataItemInfoType:function(){return i.Cont},clone:function(e,t){return new c(this.source,e,t.getSlotRef(),t)},applyContext:function(e,t){e.setReference(this,t)}})})),define("com/ibm/vipr/internal/data/DataSet",["barejs!decl","barejs!NMap","../../data/DataItemType","../../info/InfoType","../../info/IDataSetInfo","com/ibm/vipr/rs/v1/data/IRSStructuredDataSet","com/ibm/vipr/rs/v1/data/RSDataSetType","./ArrayIterator","./DataPoint","./Decorated","./DomainResolver","./Value"],(function(e,t,n,r,i,a,o,s,l,u,c,f){"use strict";function d(n){e.defineProperties(this,{_dataPoints:{value:n},_map:{value:new t}})}function p(e,t,n){var r="string"==typeof t?t:t&&t.name||null;if(r)for(var i=0,a=e.length;i<a;++i){var o=e[i];if(o.name===r&&(!n||o.forViz))return o}return null}function h(e,t){for(var n=0,r=e&&e.length;n<r;++n){var i=e[n];if("limit"===i.name&&i.slot===t)return i}return null}function m(e){return+(e&&e.attributes.get("n"))||0}function g(t,n,r,i,a,o,s,l,c,f){u.call(this,t,n),e.defineProperties(this,{dataSetDef:{value:r},name:{enumerable:!0,value:r.name},caption:{enumerable:!0,value:t&&"getCaption"in t?String(t.getCaption()):r.caption},slotInfos:{value:i},dataItems:{value:a},dataPoints:{enumerable:!0,value:o},mapping:{value:s},_overflow:{value:!0===l},_emptied:{value:!0===c},_dataPointDecorationMap:{writable:!0,value:f||new d(o)}})}return e.declareClass(d,{_dataPoints:null,_map:null,has:function(e){var t;if(this._map.has(e))t=this._map.get(e);else{t=!1;for(var n=0,r=this._dataPoints.length;n<r&&!t;++n)t=this._dataPoints[n].hasDecoration(e);this._map.set(e,t)}return t},clear:function(){this._map.clear()}}),e.declareClass(g,u,a,i,{infoType:{value:r.DataSet},dataSetDef:null,name:null,caption:null,slotInfos:null,dataItems:null,dataPoints:null,mapping:null,_overflow:null,_emptied:null,_dataPointDecorationMap:null,slots:{enumerable:!0,get:"getSlots"},type:{enumerable:!0,get:"getRSType"},getName:function(){return this.name},getCaption:function(){return this.caption},getRSType:function(){return o.Structured},getSlot:function(e){return p(this.slotInfos,e,!0)},getSlots:function(){return this.slotInfos.filter((function(e){return e.forViz}))},getDataPoints:function(){return this.dataPoints},hasDecorationOnDataPoints:function(e){return this._dataPointDecorationMap.has(e)},hasValues:function(){for(var e=0,t=this.dataItems.length;e<t;++e){var r=this.dataItems[e];if(r&&r.mapped&&r.getType()===n.Cont)return!0}return!1},getMapping:function(){return this.mapping},getDataSetDef:function(){return this.dataSetDef},getDataItemInfos:function(){return g.toInfo(this.dataItems)},getDataPointInfos:function(){return g.toInfo(this.dataPoints)},getSlotInfo:function(e){return p(this.slotInfos,e,!1)},getSlotInfos:function(){return this.slotInfos},"[[iterator]]":function(){return new s(this.dataPoints)},getInfoType:function(){return r.DataSet},setDataPointDecorationsDirty:function(){this._dataPointDecorationMap.clear()},slice:function(e,t,r,i){var a,o,s,u,d,p,v,b,y=!this.dataSetDef.suppressMissing&&!this._emptied,I=[],_=[],w=null,C=0,S=1,P=1,D=!1,R=this.slotInfos;if(y)for(w=[],u=0,d=this.dataItems.length;u<d;++u)(p=this.dataItems[u])&&(p.mapped||p.type!==n.Cont||w.push(p),p.colIndex>=C&&(C=p.colIndex+1));for(var T=0,V=R.length;T<V;++T){var A=R[T];v=A.dataItems,o=m(a=h(r,A.name));var E=!!e&&e.indexOf(A.name)>=0;for(u=0,d=v.length;u<d;++u)(p=v[u])&&p.type===n.Cat&&p.sourceIndex>=0&&((b=p.end-p.start)>1?(o>0&&b>o&&(v===A.dataItems&&(v=v.slice(0)),p=p.clone(this._decoFilter,A.slotRef,p.colIndex,o),D=!0,v[u]=p,i.addSlot(a,o,b,A.slotRef,p),b=o),E||I.push(p),A.forViz&&(S*=b),E&&S>0&&(P*=b)):b<1&&(S=0,P=1),E&&_.push(p)),y&&(p.type===n.Cont&&w.push(p),p.colIndex>=C&&(C=p.colIndex+1));v!==A.dataItems&&(A=A.clone(v),R===this.slotInfos&&(R=R.slice(0)),R[T]=A)}_.length>0&&t.length<1&&t.push.apply(t,_);var x=I.length;for(d=(s=this.dataItems).length,u=0;u<d;++u)(p=s[u])&&!p.mapped&&p.type===n.Cat&&((b=p.end-p.start)>1?I.push(p):b<1&&(S=0));var j=c.buildOffsets(I),z=I.length,N=c.buildOffsets(_),O=_.length,L=null,M=0,F=new Array(P),k=this.dataPoints,q=k.length,B=new Array(P);o=m(a=h(r,null));var H,G,U,W,X,$=!1,K=y||this.dataSetDef.uniqueDataPoints,J=!1;if((1===P||this._emptied)&&!(y||D||this._overflow)){for(H=0;H<P;++H)B[H]=this;return B}for(o<1?o=y?S:q:y&&o>S&&(o=S),y&&S>o&&(i.addData(a,o,S),$=!0),H=0;H<P;++H)F[H]=y?new Array(o):[];for(var Y=0;Y<q;++Y){var Z=k[Y],Q=!0;for(U=W=0,K&&Z.offset>0&&(Q=!1,J||(i.addUnaggregated(),J=!0)),u=0;Q&&u<z;++u)p=I[u],(X=Z.datum(p).index)>=0&&X<p.end?U+=(X-p.start)*j[u]:Q=!1;for(Q&&(Q=U<(y?o:S)),u=0;Q&&u<O;++u)p=_[u],(X=Z.datum(p).index)>=0&&X<p.end?W+=(X-p.start)*N[u]:Q=!1;Q&&(G=F[W],y?(G[U]=Z,++M):G.length<o?(G.push(Z),++M):$||(i.addData(a,o,-1),$=!0))}if(D||$){R===this.slotInfos&&(R=R.slice(0)),s=new Array(this.dataItems.length),L=new Array(M);var ee=new c(s,L,R);for(T=0,V=R.length;T<V;++T){for(u=0,d=(v=(A=R[T]).dataItems).length;u<d;++u)(p=v[u]).type===n.Cont&&(p=p.clone(this._decoFilter,A.slotRef,p.colIndex,ee),v===A.dataItems&&(v=v.slice(0,d)),v[u]=p),s[p.sourceIndex]||(s[p.sourceIndex]=p);v!==A.dataItems&&(R[T]=A.clone(v))}}if(y){var te=w.length,ne=[],re=new Array(C);for(u=x;u<z;++u)re[(p=I[u]).colIndex]=p.getTuple(p.start);for(u=0;u<te;++u)re[(p=w[u]).colIndex]=new f(null,this._decoFilter,p.slotRef,p);for(H=0,W=0;H<P;W=++H){for(u=O-1;u>=0;--u)p=_[u],X=0,(b=N[u])>1?(X=Math.floor(W/b),W%=b):b>0&&(X=W,W=0),re[p.colIndex]=p.tuples[X];for(G=F[H],Y=0,U=0;Y<o;U=++Y)if(!G[Y]){for(u=x-1;u>=0;--u)p=I[u],X=0,(b=j[u])>1?(X=Math.floor(U/b),U%=b):b>0&&(X=U,U=0),re[p.colIndex]=p.tuples[X];var ie=ne.length;ne.push.apply(ne,re),G[Y]=new l(null,this._decoFilter,s,R,-1,Y,ne,ie,0)}}}for(U=-1,H=0;H<P;++H){if(q=(G=F[H]).length,null!==L&&q>0)for(Y=0;Y<q;++Y)y&&!G[Y].source||(L[++U]=G[Y]);B[H]=new g(this.source,this._decoFilter,this.dataSetDef,R,s,G,this.mapping,!1,this._emptied,this._dataPointDecorationMap)}return B},empty:function(){return this._emptied?this:new g(this.source,this._decoFilter,this.dataSetDef,this.slotInfos,this.dataItems,e.freeze(new Array(0)),this.mapping,!1,!0,this._dataPointDecorationMap)},applyContext:function(e,t){for(var n,r,i=0,a=this.slotInfos.length;i<a;++i){var o=this.slotInfos[i];for(n=0,r=o.dataItems.length;n<r;++n)o.dataItems[n].applyContext(e,this)}for(n=0,r=this.dataItems.length;n<r;++n){var s=this.dataItems[n];s&&!s.mapped&&s.applyContext(e,this)}for(var l=0,u=this.dataPoints.length;l<u;++l)this.dataPoints[l].applyContext(e,this)}})})),define("com/ibm/vipr/rs/v1/data/IRSSubCaptioned",["barejs","./IRSCaptioned"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getSubCaption:function(e){},combineCaptions:function(e){}}),n})),define("com/ibm/vipr/rs/v1/data/IRSDataItem",["barejs","./IRSDecorated","./IRSSubCaptioned"],(function(e,t,n){"use strict";const r=e.decl;function i(){}return r.declareInterface(i,t,n,{type:r.readOnlyProperty,getDataSet:function(e){},getRSType:function(){},asCat:function(){},asCont:function(){}}),i})),define("com/ibm/vipr/rs/v1/data/IRSCatDataItem",["barejs","./IRSDataItem"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{start:n.readOnlyProperty,end:n.readOnlyProperty,tupleCount:n.readOnlyProperty,itemClassSets:n.readOnlyProperty,tuples:n.readOnlyProperty,getStart:function(){},getEnd:function(){},getTupleCount:function(){},getItemClassSets:function(){},getItemClassSetCount:function(){},getItemClassSet:function(e){},getTuples:function(){},getTuple:function(e){}}),r})),define("com/ibm/vipr/internal/data/DataItem",["barejs!decl","../../info/InfoType","../../info/IDataItemInfo","com/ibm/vipr/rs/v1/data/IRSDataItem","./DataContext","./Slotted"],(function(e,t,n,r,i,a){"use strict";return e.abstractClass((function(t,n,r,i,o,s){a.call(this,t,n,r),e.defineProperties(this,{sourceIndex:{value:i},mapped:{enumerable:!0,value:o},colIndex:{value:s}})}),a,r,n,{infoType:{value:t.DataItem},sourceIndex:null,mapped:null,colIndex:null,getInfoType:function(){return t.DataItem},getDataSet:function(e){return i.getOwner(e,this)},clone:function(e,t,n){throw new Error("abstract clone not implemented")},applyContext:function(e,t){t&&e.setOwner(this,t)}})})),define("com/ibm/vipr/internal/data/CatDataItem",["barejs!decl","../../data/DataItemType","../../info/ICatDataItemInfo","com/ibm/vipr/rs/v1/data/IRSCatDataItem","../util/formatting","./DataItem"],(function(e,t,n,r,i,a){"use strict";var o=String.fromCharCode(32,215,32);function s(t,n,r,i,o,s,l,u,c,f,d){a.call(this,t,n,r,i,o,s),e.defineProperties(this,{tupleCount:{enumerable:!0,value:l},start:{enumerable:!0,value:u},end:{enumerable:!0,value:c},itemClassSets:{enumerable:!0,value:f},tuples:{enumerable:!0,value:d}})}return e.declareClass(s,a,r,n,{type:{enumerable:!0,value:t.Cat},tupleCount:null,start:null,end:null,itemClassSets:null,tuples:null,getRSType:function(){return t.Cat},asCat:function(){return this},asCont:function(){return null},getCaption:function(e){return i.joinCaptions(this.itemClassSets,e,o)},getSubCaption:function(e){return i.joinSubCaptions(this.itemClassSets,e,o)},combineCaptions:function(e){return i.joinCombinedCaptions(this.itemClassSets,e,o)},getStart:function(){return this.start},getEnd:function(){return this.end},getTupleCount:function(){return this.tupleCount},getItemClassSetCount:function(){return this.itemClassSets.length},getItemClassSet:function(e){return(e=Math.floor(e))>=0&&e<this.itemClassSets.length?this.itemClassSets[e]:null},getItemClassSets:function(){return this.itemClassSets},getTuples:function(){return this.tuples},getTuple:function(e){return(e=Math.floor(e))>=this.start&&e<this.end?this.tuples[e-this.start]:null},getDataItemInfoType:function(){return t.Cat},getItemClassSetInfos:function(){return s.toInfo(this.itemClassSets)},getTupleInfos:function(){return s.toInfo(this.tuples)},getTupleInfo:function(e){return this.getTuple(e)},clone:function(e,t,n,r){r=Math.floor(r)||0;for(var i=this.itemClassSets.length,a=new Array(i),o=0;o<i;++o)a[o]=this.itemClassSets[o].clone(e,t);var s=this.start,l=this.end;r>0&&(l=Math.min(s+r,l)),i=l-s;var u=new Array(i);for(o=0;o<i;++o){var c=this.tuples[o],f=c.source?c.source.getItemClassSetIndex():0;u[o]=c.clone(e,a[f])}return this._createClone(this.source,e,t,this.sourceIndex,this.mapped,n,this.tupleCount,s,l,a,u)},applyContext:function(e,t){a.prototype.applyContext.call(this,e,t);for(var n=0,r=this.itemClassSets.length;n<r;++n)this.itemClassSets[n].applyContext(e,this);for(n=0,r=this.tuples.length;n<r;++n)this.tuples[n].applyContext(e,this)},_createClone:function(e,t,n,r,i,a,o,l,u,c,f){return new s(e,t,n,r,i,a,o,l,u,c,f)}})})),define("com/ibm/vipr/rs/v1/data/IRSItem",["barejs","./IRSCaptioned","./IRSDecorated"],(function(e,t,n){"use strict";const r=e.decl;function i(){}return r.declareInterface(i,n,t,{itemClass:r.readOnlyProperty,uniqueName:r.readOnlyProperty,index:r.readOnlyProperty,getItemClass:function(){},getUniqueName:function(){},getIndex:function(){}}),i})),define("com/ibm/vipr/internal/data/Item",["barejs!decl","../../data/FormatKind","../../info/InfoType","../../info/IItemInfo","com/ibm/vipr/rs/v1/data/IRSItem","../util/formatting","./Slotted"],(function(e,t,n,r,i,a,o){"use strict";function s(t,n,r,i){o.call(this,t,n,r),e.defineProperty(this,"itemClass",{enumerable:!0,value:i})}return e.declareClass(s,o,i,r,{itemClass:null,infoType:{value:n.Item},index:{enumerable:!0,get:"getIndex"},uniqueName:{enumerable:!0,get:"getUniqueName"},getInfoType:function(){return n.Item},getItemClass:function(){return this.itemClass},getUniqueName:function(){return this.source.getUniqueName()},getIndex:function(){return this.itemClass.index},getCaption:function(e){return t.validate(e),a.normalize(this.source.getCaption(e))},clone:function(e,t){return new s(this.source,e,t.getSlotRef(),t)}})})),define("com/ibm/vipr/rs/v1/data/IRSItemClass",["barejs","./IRSDecorated","./IRSSubCaptioned"],(function(e,t,n){"use strict";const r=e.decl;function i(){}return r.declareInterface(i,t,n,{uniqueName:r.readOnlyProperty,index:r.readOnlyProperty,getUniqueName:function(){},getIndex:function(){}}),i})),define("com/ibm/vipr/internal/data/ItemClass",["barejs!decl","../../data/FormatKind","../../info/InfoType","../../info/IItemClassInfo","com/ibm/vipr/rs/v1/data/IRSItemClass","../util/formatting","./DataContext","./Slotted"],(function(e,t,n,r,i,a,o,s){"use strict";function l(t,n,r,i){s.call(this,t,n,r),e.defineProperty(this,"index",{enumerable:!0,value:i})}return e.declareClass(l,s,i,r,{infoType:{value:n.ItemClass},index:null,uniqueName:{enumerable:!0,get:"getUniqueName"},getInfoType:function(){return n.ItemClass},getUniqueName:function(){return this.source.getUniqueName()},getIndex:function(){return this.index},getCaption:function(e){return a.normalize(this.source.getCaption(t.validate(e)))},getSubCaption:function(e){return"getSubCaption"in this.source?a.normalize(this.source.getSubCaption(t.validate(e))):""},combineCaptions:function(e){var t=this.getCaption(e),n=this.getSubCaption(e);return n.length>0&&(n.startsWith("(")&&n.endsWith(")")||(n="("+n+")"),t.length>0&&(t+=" "),t+=n),t},clone:function(e,t){return new l(this.source,e,t,this.index)},applyContext:function(e,t){t&&e.setOwner(this,t)}})})),define("com/ibm/vipr/rs/v1/data/IRSItemClassSet",["barejs","./IRSDataNode","./IRSSubCaptioned"],(function(e,t,n){"use strict";const r=e.decl;function i(){}return r.declareInterface(i,t,n,{itemClasses:r.readOnlyProperty,getItemClasses:function(){},getItemClassCount:function(){},getItemClass:function(e){}}),i})),define("com/ibm/vipr/internal/data/ItemClassSet",["barejs!decl","../../info/InfoType","../../info/IItemClassSetInfo","com/ibm/vipr/rs/v1/RSHittableType","com/ibm/vipr/rs/v1/data/IRSItemClassSet","../../vizdef/SlotRef","../util/formatting","./DataObject"],(function(e,t,n,r,i,a,o,s){"use strict";function l(t,n,r){s.call(this,t),e.defineProperties(this,{slotRef:{writable:!0,value:n instanceof a?n:null},itemClasses:{enumerable:!0,value:r}})}return e.declareClass(l,s,i,n,{create:function(e){var t=new Array(1);return t[0]=e,new l(null,e.slotRef,t)}},{infoType:{value:t.ItemClassSet},slotRef:{enumerable:!0,get:"getSlotRef"},itemClasses:null,getInfoType:function(){return t.ItemClassSet},getRSHittableType:function(){return r.Data},getItemClasses:function(){return this.itemClasses},getCaption:function(e){return o.joinCaptions(this.itemClasses,e," - ")},getSubCaption:function(e){return o.joinSubCaptions(this.itemClasses,e," - ")},combineCaptions:function(e){return o.joinCombinedCaptions(this.itemClasses,e," - ")},getItemClassCount:function(){return this.itemClasses.length},getItemClass:function(e){return(e=Math.floor(e))>=0&&e<this.itemClasses.length?this.itemClasses[e]:null},getSlotRef:function(){return this.slotRef},getItemClassInfos:function(){return l.toInfo(this.itemClasses)},clone:function(e,t){for(var n=this.itemClasses.length,r=new Array(n),i=0;i<n;++i)r[i]=this.itemClasses[i].clone(e,t);return new l(this.source,t,r)},applyContext:function(e,t){t&&e.setOwner(this,t);for(var n=0,r=this.itemClasses.length;n<r;++n)this.itemClasses[n].applyContext(e,this)},slotDef:{get:"getSlotRef"}})})),define("com/ibm/vipr/internal/data/VirtualItem",["barejs!decl","./Item"],(function(e,t){"use strict";function n(n,r,i,a){t.call(this,null,n,r,i),e.defineProperty(this,"_caption",{value:a})}return e.declareClass(n,t,{_caption:null,uniqueName:{enumerable:!0,get:"getUniqueName"},getUniqueName:function(){return"(virtual)"},getCaption:function(e){return this._caption},clone:function(e,t){return new n(e,t.getSlotRef(),t,this._caption)}})})),define("com/ibm/vipr/internal/data/VirtualItemClass",["barejs!decl","./ItemClass"],(function(e,t){"use strict";function n(n,r,i){t.call(this,null,n,r,0),e.defineProperty(this,"_caption",{value:i})}return e.declareClass(n,t,{_caption:null,uniqueName:{enumerable:!0,get:"getUniqueName"},getUniqueName:function(){return"(virtual)"},getCaption:function(e){return this._caption},getSubCaption:function(e){return""},clone:function(e,t){return new n(e,t,this._caption)}})})),define("com/ibm/vipr/internal/data/CatDataItemFactory",["barejs!decl","../util/NumberUtil","./CatDataItem","./Tuple","./Item","./ItemClass","./ItemClassSet","./VirtualItem","./VirtualItemClass"],(function(e,t,n,r,i,a,o,s,l){"use strict";return e.declareClass((function(){}),{create:function(e,n,r,s,l,u){var c,f,d,p=+e.getTupleCount()||0,h=t.clamp(0,+e.getDataWindowStart(),p),m=t.clamp(h,+e.getDataWindowEnd(),p),g=Math.floor(e.getItemClassSetCount())||0,v=new Array(g);this._init(e);for(var b=0;b<g;++b){var y=e.getItemClassSet(b);for(f=Math.floor(y.getItemClassCount())||0,c=new Array(f),d=0;d<f;++d)c[d]=new a(y.getItemClass(d),n,r,d);v[b]=new o(y,r,c)}for(var I=new Array(Math.max(0,m-h)),_=h;_<m;++_){var w=e.getTuple(_),C=v[Math.floor(w.getItemClassSetIndex())||0];f=(c=C.itemClasses).length;var S=new Array(f);for(d=0;d<f;++d)S[d]=new i(w.getItem(d),n,r,C.itemClasses[d]);I[_-h]=this._createTuple(w,n,r,_,C,S)}return this._createDataItem(e,n,r,s,l,m-h>1?u:-1,p,h,m,v,I)},virtual:function(e,t,n){var r=new Array(1),i=new Array(1),a=new Array(1),u=new Array(1);this._init(null);var c=new l(e,t,n.get("virtual_item"));return r[0]=c,i[0]=new s(e,t,c,n.get("virtual_item")),a[0]=new o(null,t,r),u[0]=this._createTuple(null,e,t,0,a[0],i),this._createDataItem(null,e,t,-1,!1,-1,1,0,1,a,u)},_init:function(e){},_createTuple:function(e,t,n,i,a,o){return new r(e,t,n,i,a,o)},_createDataItem:function(e,t,r,i,a,o,s,l,u,c,f){return new n(e,t,r,i,a,o,s,l,u,c,f)}})})),define("com/ibm/vipr/rs/v1/data/IRSContDataItem",["barejs","./IRSDataItem"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{itemClass:n.readOnlyProperty,getItemClass:function(){},getFormatter:function(e){},getDomain:function(e){}}),r})),define("com/ibm/vipr/internal/data/ContDataItem",["barejs!decl","../../data/DataItemType","../../data/FormatKind","../../info/InfoType","../../info/IContDataItemInfo","com/ibm/vipr/rs/v1/data/IRSContDataItem","../util/Capability","../util/ContDomain","../util/formatting","./DataItem","./ItemClassSet"],(function(e,t,n,r,i,a,o,s,l,u,c){"use strict";function f(t,n,r,i,a,o,s,l){u.call(this,t,n,r,i,a,o),e.defineProperties(this,{itemClassSet:{enumerable:!0,value:c.create(s)},itemClass:{enumerable:!0,value:s},_domain:{value:l},_mfData:{writable:!0,value:null},_mfLabel:{writable:!0,value:null}})}return e.declareClass(f,u,a,i,{infoType:{value:r.DataItem},type:{enumerable:!0,value:t.Cont},itemClassSet:null,itemClass:null,_domain:null,_mfData:null,_mfLabel:null,getRSType:function(){return t.Cont},asCat:function(){return null},asCont:function(){return this},getItemClass:function(){return this.itemClass},getCaption:function(e){return this.itemClass.getCaption(e)},getSubCaption:function(e){return this.itemClass.getSubCaption(e)},combineCaptions:function(e){return this.itemClass.combineCaptions(e)},getFormatter:function(e){return l.getHost(this.source,n.validate(e))||l.getDefault(e)},getDomain:function(e){return this.getDomainInfo(o.fromRSv1(e))},getDataItemInfoType:function(){return t.Cont},getDomainInfo:function(e){var t=e||null,n=null;return this.source&&(n=s.fromHost(this.source.getDomain(t))),!n&&this._domain&&(n=this._domain.resolve(this,t)),n||(n=s.EMPTY),n},getItemClassInfo:function(){return this.itemClass},calcDomain:function(e){return this._domain.resolve(this,e||null)},clone:function(e,t,n,r){return new f(this.source,e,t,this.sourceIndex,this.mapped,n,this.itemClass.clone(e,t),r||this._domain)},missingCaption:function(e){var t=e===n.Data?this._mfData:this._mfLabel;return t||(t=this.getFormatter(e),e===n.Data?this._mfData=t:this._mfLabel=t),t.format(null)},applyContext:function(e,t){u.prototype.applyContext.call(this,e,t),this.itemClassSet.applyContext(e,this)}})})),define("com/ibm/vipr/internal/data/ContDataItemFactory",["barejs!decl","./ContDataItem","./ItemClass","./VirtualItemClass"],(function(e,t,n,r){"use strict";return e.declareClass((function(){}),{create:function(e,t,i,a,o,s,l,u){var c=e.getItemClass(),f=c?new n(c,t,i,0):new r(t,i,u.get("virtual_value"));return this._createDataItem(e,t,i,a,o,s,f,l)},_createDataItem:function(e,n,r,i,a,o,s,l){return new t(e,n,r,i,a,o,s,l)}})})),define("com/ibm/vipr/rs/v1/data/IRSTemporalAttributes",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{year:t.readOnlyProperty,month:t.readOnlyProperty,day:t.readOnlyProperty,hour:t.readOnlyProperty,minute:t.readOnlyProperty,second:t.readOnlyProperty,fraction:t.readOnlyProperty,date:t.readOnlyProperty,time:t.readOnlyProperty,hasYear:function(){},hasMonth:function(){},hasDay:function(){},hasHour:function(){},hasMinute:function(){},hasSecond:function(){},hasFraction:function(){},hasDate:function(){},hasTime:function(){}}),n})),define("com/ibm/vipr/internal/data/TemporalAttributes",["barejs!decl","com/ibm/vipr/rs/v1/data/IRSTemporalAttributes"],(function(e,t){"use strict";function n(t,n,r,i,a,o,s){e.defineProperties(this,{year:{enumerable:!0,value:!!t},month:{enumerable:!0,value:!!n},day:{enumerable:!0,value:!!r},hour:{enumerable:!0,value:!!i},minute:{enumerable:!0,value:!!a},second:{enumerable:!0,value:!!o},fraction:{enumerable:!0,value:!!s}})}return e.declareClass(n,t,{create:function(e){return e&&"object"==typeof e?new n(e.hasYear(),e.hasMonth(),e.hasDay(),e.hasHour(),e.hasMinute(),e.hasSecond(),e.hasFraction()):new n}},{year:null,month:null,day:null,hour:null,minute:null,second:null,fraction:null,date:{enumerable:!0,get:"hasDate"},time:{enumerable:!0,get:"hasTime"},hasYear:function(){return this.year},hasMonth:function(){return this.month},hasDay:function(){return this.day},hasHour:function(){return this.hour},hasMinute:function(){return this.minute},hasSecond:function(){return this.second},hasFraction:function(){return this.fraction},hasDate:function(){return this.year||this.month||this.day},hasTime:function(){return this.hour||this.minute||this.second}})})),define("com/ibm/vipr/rs/v1/data/IRSTemporalDataItem",["barejs","./IRSCatDataItem"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{attributes:n.readOnlyProperty,getTemporalAttributes:function(){},getFormatter:function(e){}}),r})),define("com/ibm/vipr/internal/data/TemporalDataItem",["barejs!decl","./CatDataItem","../util/formatting","com/ibm/vipr/rs/v1/data/IRSTemporalDataItem"],(function(e,t,n,r){"use strict";function i(n,r,i,a,o,s,l,u,c,f,d,p){t.call(this,n,r,i,a,o,s,l,u,c,f,d),e.defineProperty(this,"attributes",{enumerable:!0,value:p||null})}return e.declareClass(i,t,r,{attributes:null,getTemporalAttributes:function(){return this.attributes},getFormatter:function(e){return n.getHost(this.source,n.validateKind(e))||n.createDateTime(e,this.attributes)},_createClone:function(e,t,n,r,a,o,s,l,u,c,f){return new i(e,t,n,r,a,o,s,l,u,c,f,this.attributes)}})})),define("com/ibm/vipr/rs/v1/data/IRSTemporalTuple",["barejs","./IRSTuple"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{value:n.readOnlyProperty,getValue:function(){}}),r})),define("com/ibm/vipr/internal/data/TemporalTuple",["barejs!decl","../../info/ITemporalTupleInfo","com/ibm/vipr/rs/v1/data/IRSTemporalTuple","./Tuple"],(function(e,t,n,r){"use strict";function i(t,n,i,a,o,s,l){r.call(this,t,n,i,a,o,s),e.defineProperty(this,"value",{enumerable:!0,value:l})}return e.declareClass(i,r,t,n,{subType:"temporal",value:null,getValue:function(){return this.value},clone:function(e,t){return new i(this.source,e,t.getSlotRef(),this.index,t,this._cloneItems(e,t),this.value)},addKeyParts:function(e){r.prototype.addKeyParts.call(this,e),null!==this.value&&e.push("date:"+ +this.value)}})})),define("com/ibm/vipr/internal/data/TemporalDataItemFactory",["barejs!decl","./CatDataItemFactory","./TemporalAttributes","./TemporalDataItem","./TemporalTuple"],(function(e,t,n,r,i){"use strict";return e.declareClass((function(){}),t,{_createTuple:function(e,t,n,r,a,o){return new i(e,t,n,r,a,o,"getValue"in e?function(e){if(null!=e){if(e instanceof Date)return e;if("number"==typeof e)return new Date(e)}return null}(e.getValue()):null)},_createDataItem:function(e,t,i,a,o,s,l,u,c,f,d){var p=n.create("getTemporalAttributes"in e?e.getTemporalAttributes():null);return new r(e,t,i,a,o,s,l,u,c,f,d,p)}})})),define("com/ibm/vipr/rs/v1/data/IRSGeoAttributes",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{caption:t.readOnlyProperty,latitude:t.readOnlyProperty,longitude:t.readOnlyProperty,featureId:t.readOnlyProperty,hasCaption:function(){},hasLatitude:function(){},hasLongitude:function(){},hasFeatureId:function(){}}),n})),define("com/ibm/vipr/internal/data/GeoAttributes",["barejs!decl","com/ibm/vipr/rs/v1/data/IRSGeoAttributes"],(function(e,t){"use strict";function n(t,n,r,i){e.defineProperties(this,{caption:{enumerable:!0,value:!!t},latitude:{enumerable:!0,value:!!n},longitude:{enumerable:!0,value:!!r},featureId:{enumerable:!0,value:!!i}})}return e.declareClass(n,t,{create:function(e){return e&&"object"==typeof e?new n(e.hasYear(),e.hasCaption(),e.hasLatitude(),e.hasLongitude(),e.hasFeatureId()):new n}},{caption:null,latitude:null,longitude:null,featureId:null,hasCaption:function(){return this.caption},hasLatitude:function(){return this.latitude},hasLongitude:function(){return this.longitude},hasFeatureId:function(){return this.featureId}})})),define("com/ibm/vipr/rs/v1/data/IRSGeoDataItem",["barejs","./IRSCatDataItem"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{attributes:n.readOnlyProperty,getGeoAttributes:function(){}}),r})),define("com/ibm/vipr/internal/data/GeoDataItem",["barejs!decl","./CatDataItem","com/ibm/vipr/rs/v1/data/IRSGeoDataItem"],(function(e,t,n){"use strict";function r(n,r,i,a,o,s,l,u,c,f,d,p){t.call(this,n,r,i,a,o,s,l,u,c,f,d),e.defineProperty(this,"attributes",{enumerable:!0,value:p||null})}return e.declareClass(r,t,n,{attributes:null,getGeoAttributes:function(){return this.attributes},_createClone:function(e,t,n,i,a,o,s,l,u,c,f){return new r(e,t,n,i,a,o,s,l,u,c,f,this.attributes)}})})),define("com/ibm/vipr/rs/v1/data/IRSGeoTuple",["barejs","./IRSTuple"],(function(e,t){"use strict";const n=e.decl;function r(){}return n.declareInterface(r,t,{latitude:n.readOnlyProperty,longitude:n.readOnlyProperty,featureId:n.readOnlyProperty,getLatitude:function(){},getLongitude:function(){},getFeatureId:function(){}}),r})),define("com/ibm/vipr/internal/data/GeoTuple",["barejs!decl","../../info/IGeoTupleInfo","com/ibm/vipr/rs/v1/data/IRSGeoTuple","./Tuple"],(function(e,t,n,r){"use strict";function i(e,t,n,i,a,o,s,l,u){r.call(this,e,t,n,i,a,o),this.latitude=s,this.longitude=l,this.featureId=u}return e.declareClass(i,r,t,n,{subType:"geospatial",latitude:null,longitude:null,featureId:null,getLatitude:function(){return this.latitude},getLongitude:function(){return this.longitude},getFeatureId:function(){return this.featureId},addKeyParts:function(e){r.prototype.addKeyParts.call(this,e),null!==this.featureId&&e.push("feat:"+this.featureId),null!==this.latitude&&e.push("lat:"+this.latitude),null!==this.longitude&&e.push("long:"+this.longitude)},clone:function(e,t){return new i(this.source,e,t.getSlotRef(),this.index,t,this._cloneItems(e,t),this.latitude,this.longitude,this.featureId)}})})),define("com/ibm/vipr/internal/data/GeoDataItemFactory",["barejs!decl","./CatDataItemFactory","./GeoAttributes","./GeoDataItem","./GeoTuple"],(function(e,t,n,r,i){"use strict";function a(e){if(null==e)return null;var t=+e;return t!=t?null:t}return e.declareClass((function(){}),t,{_createTuple:function(e,t,n,r,i,o){return this._createGeoTuple(e,t,n,r,i,o,"getLatitude"in e?a(e.getLatitude()):null,"getLongitude"in e?a(e.getLongitude()):null,"getFeatureId"in e?"string"==typeof(s=e.getFeatureId())?s:s?String(s):null:null);var s},_createGeoTuple:function(e,t,n,r,a,o,s,l,u){return new i(e,t,n,r,a,o,s,l,u)},_createDataItem:function(e,t,i,a,o,s,l,u,c,f,d){var p=null;if(e)if("getGeoAttributes"in e){var h=e.getGeoAttributes();p=new n(h.hasCaption(),h.hasLatitude(),h.hasLongitude(),h.hasFeatureId())}else{var m=!1;l>0&&(m=d[0].getItemCount()>0),p=new n(m,!1,!1,!1)}else p=this._createGeoAttributes();return new r(e,t,i,a,o,s,l,u,c,f,d,p)},_createGeoAttributes:function(){throw new Error("GeoDataItemFactory must receive a valid IGeoDataItem")}})})),define("com/ibm/vipr/internal/data/GeoSegmentDataItemFactory",["barejs!decl","../../data/FormatKind","../../data/ValueType","../../data/ICatDataItem","../../vizdef/GeoSpatialPart","./ItemClassSet","./GeoAttributes","./GeoDataItemFactory"],(function(e,t,n,r,i,a,o,s){"use strict";var l=e.freeze(new Array(0));function u(e){var t=null;return e&&e.getValueType()===n.Numeric&&null!==(t=e.getValue())&&(t=void 0===t?null:+t)!=t&&(t=null),t}return e.declareClass((function(t,n,r,i){s.call(this),e.defineProperties(this,{index:{enumerable:!0,value:t},_decoFilter:{value:n},slotRef:{enumerable:!0,value:r},mapping:{enumerable:!0,value:i},_dataItem:{writable:!0,value:null},_geoAttributes:{writable:!0,value:null}})}),s,r,{index:null,_decoFilter:null,slotRef:null,mapping:null,_dataItem:null,_geoAttributes:null,create:function(e,n,r){for(var s=[],c=[],f=null,d=null,p=null,h=null,m=null,g=0,v=this.slotRef.segments.length;g<v;++g){var b=this.mapping[g];if(null!==b){var y=e[b];switch(this.slotRef.segments[g].part){case i.Caption:d=y;break;case i.FeatureId:p=y;break;case i.Latitude:h=y;break;case i.Longitude:m=y;break;default:throw new Error("Unknown segment part: "+this.slotRef.segments[g].part)}}}for(g=0,v=n.length;g<v;++g){var I,_,w=n[g],C=null,S=null,P=null,D=null;if(d&&(C=d.getTuple(w.getTupleIndex(d.sourceIndex))),p){var R=p.getTuple(w.getTupleIndex(p.sourceIndex));R&&(S=R.getCaption(t.Label))}h&&(P=u(w.getValue(h.sourceIndex))),m&&(D=u(w.getValue(m.sourceIndex))),C?(I=C.itemClassSet,_=C.items):(_=l,(I=f)||(f=I=new a(null,this.slotRef,l))),s.indexOf(I)<0&&s.push(I),R=this._createGeoTuple(C?C.source:null,this._decoFilter,this.slotRef,c.length,I,_,P,D,S),c.push(R)}this._geoAttributes=new o(null!==d,null!==h,null!==m,null!==p);var T=c.length;return this._dataItem=this._createDataItem(null,this._decoFilter,this.slotRef,this.index,!0,r,T,0,T,s,c),this._dataItem},resolveTuple:function(e,t){return this._dataItem.tuples[t]},_createGeoAttributes:function(){return this._geoAttributes},hasDecoration:function(e){return!1},getDecoration:function(e){return null},getType:function(){return"cat"},getItemClassSetCount:function(){return 0},getItemClassSet:function(e){return null},getTupleCount:function(){return 0},getDataWindowStart:function(){return 0},getDataWindowEnd:function(){return 0},getTuple:function(e){return null}})})),define("com/ibm/vipr/rs/v1/data/IRSReferenceDataItem",["barejs","./IRSCatDataItem"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t),n})),define("com/ibm/vipr/internal/data/ReferenceDataItem",["barejs!decl","./CatDataItem","com/ibm/vipr/rs/v1/data/IRSReferenceDataItem"],(function(e,t,n){"use strict";function r(e,n,r,i,a,o,s,l,u,c,f){t.call(this,e,n,r,i,a,o,s,l,u,c,f)}return e.declareClass(r,t,n,{_createClone:function(e,t,n,i,a,o,s,l,u,c,f){return new r(e,t,n,i,a,o,s,l,u,c,f)}})})),define("com/ibm/vipr/rs/v1/data/IRSReferenceTuple",["barejs","./IRSTuple"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getReference:function(){}}),n})),define("com/ibm/vipr/internal/data/ReferenceTuple",["barejs!decl","../../info/IReferenceTupleInfo","com/ibm/vipr/rs/v1/data/IRSReferenceTuple","./Tuple"],(function(e,t,n,r){"use strict";function i(t,n,i,a,o,s,l){r.call(this,t,n,i,a,o,s),e.defineProperty(this,"reference",{enumerable:!0,value:l})}return e.declareClass(i,r,t,n,{subType:"reference",reference:null,getReference:function(){return this.reference},clone:function(e,t){return new i(this.source,e,t.getSlotRef(),this.index,t,this._cloneItems(e,t),this.reference)}})})),define("com/ibm/vipr/internal/data/ReferenceDataItemFactory",["barejs!decl","./CatDataItemFactory","./ReferenceDataItem","./ReferenceTuple"],(function(e,t,n,r){"use strict";return e.declareClass((function(){}),t,{_createTuple:function(e,t,n,i,a,o){var s=null;return"getReference"in e&&(s=e.getReference(),Array.isArray(s)?s=r.joinKey(s):"string"!=typeof s&&(s=null)),new r(e,t,n,i,a,o,s)},_createDataItem:function(e,t,r,i,a,o,s,l,u,c,f){return new n(e,t,r,i,a,o,s,l,u,c,f)}})})),define("com/ibm/vipr/internal/data/SingleCatSlot",["barejs!decl","./Slot","com/ibm/vipr/rs/v1/data/IRSCatDataItem"],(function(e,t,n){"use strict";function r(n,r,i,a,o){t.call(this,n,r,i,a,o),e.defineProperty(this,"_di",{value:i.length>0?i[0]:null})}return e.declareClass(r,t,n,{_di:null,itemClassSets:{enumerable:!0,get:"getItemClassSets"},tuples:{enumerable:!0,get:"getTuples"},start:{enumerable:!0,get:"getStart"},end:{enumerable:!0,get:"getEnd"},tupleCount:{enumerable:!0,get:"getTupleCount"},getDataSet:function(e){return this._di.getDataSet(e)},asCat:function(){return this._di},asCont:function(){return null},getCaption:function(e){return this._di.getCaption(e)},getSubCaption:function(e){return this._di.getSubCaption(e)},combineCaptions:function(e){return this._di.combineCaptions(e)},hasDecoration:function(e){return this._di.hasDecoration(e)},getDecoration:function(e,t){return this._di.getDecoration(e,t)},getStart:function(){return this._di.start},getEnd:function(){return this._di.end},getTupleCount:function(){return this._di.tupleCount},getItemClassSets:function(){return this._di.itemClassSets},getItemClassSetCount:function(){return this._di.getItemClassSetCount()},getItemClassSet:function(e){return this._di.getItemClassSet(e)},getTuple:function(e){return this._di.getTuple(e)},getTuples:function(){return this._di.tuples},toString:function(){return this._di.toString()},clone:function(e){return new r(this.slotRef,this.mapped,e,this.forViz)}})})),define("com/ibm/vipr/internal/data/SingleContSlot",["barejs!decl","./Slot","../util/ContDomain","../util/formatting","com/ibm/vipr/rs/v1/data/IRSContDataItem"],(function(e,t,n,r,i){"use strict";function a(n,r,i,a,o){t.call(this,n,r,i,a,o),e.defineProperty(this,"_di",{value:i.length>0?i[0]:null})}return e.declareClass(a,t,i,{_di:null,itemClass:{enumerable:!0,get:"getItemClass"},getDataSet:function(e){return this._di.getDataSet(e)},asCat:function(){return null},asCont:function(){return this._di},getCaption:function(e){return this._di.getCaption(e)},getSubCaption:function(e){return this._di.getSubCaption(e)},combineCaptions:function(e){return this._di.combineCaptions(e)},hasDecoration:function(e){return this._di.hasDecoration(e)},getDecoration:function(e,t){return this._di.getDecoration(e,t)},getItemClass:function(){return this._di.getItemClass()},getFormatter:function(e){return this._di?this._di.getFormatter(e):r.getDefault(e)},getDomain:function(e){return this._di?this._di.getDomain(e):n.EMPTY},toString:function(){return this._di?this._di.toString():""},clone:function(e){return new a(this.slotRef,this.mapped,e,this.forViz)}})})),define("com/ibm/vipr/internal/data/DataSetFactory",["barejs!decl","barejs!NMap","../../vizdef/SlotType","../util/StringUtil","./DataSet","./CatDataItemFactory","./ContDataItemFactory","./TemporalDataItemFactory","./GeoDataItemFactory","./GeoSegmentDataItemFactory","./ReferenceDataItemFactory","./DataPoint","./DomainResolver","./Slot","./SingleCatSlot","./SingleContSlot","./Value"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g){"use strict";var v=new o,b=new a,y=new s,I=new l,_=new c;function w(e,t,n){var r=null==e?-1:Math.trunc(e);if(r<0||Number.isNaN(e))return-1;if(r>=n.length)throw new RangeError("Invalid DataItem index: "+e);var i=n[r];if(!i)throw new Error("Cannot map to null DataItem at index: "+r);if("any"!==t&&t!==i.getType())throw new Error("Cannot map a "+i.getType()+" dataItem to a "+t+" slot");return r}function C(e,t){return"geospatial"===e&&"getGeoAttributes"in t||"temporal"===e&&"getTemporalAttributes"in t}function S(e,t){switch(function(e,t){for(var n=null,r=0,i=e&&e.length;r<i&&!n;++r){var a=e[r];a.part||a.subTypeOptional&&!C(a.subType,t)||(n=a.subType)}return n}(e,t)){case"geospatial":return I;case"temporal":return y;case"reference":return _;default:return b}}function P(e,t,r,i,a,o,s,l){var u,c,f=r.length,d=f>0;if(d){u=new Array(f);for(var g=0;g<f;++g){var v=i[r[g]];(v.slotRef!==t||o&&u.indexOf(v)>=0&&((c=v).colIndex>=0&&"cat"===c.type&&c.end-c.start>1))&&(v=v.clone(e,t,v.colIndex<0?v.colIndex:a.length)).colIndex>=0&&a.push(v),u[g]=v}}else u=new Array(t.type===n.Cat?1:0),t.type===n.Cat&&(u[0]=b.virtual(e,t,l));var y=p;return t.multiDataItem||(t.type===n.Cat?y=h:t.type===n.Cont&&(y=m)),new y(t,d,u,s)}function D(e,t,n){var r=e[t];r||(r=e[t]=[]),r.push(n)}function R(e,t){return e.ordinal===t.ordinal?e.offset-t.offset:e.ordinal<t.ordinal?-1:1}return e.declareClass((function(){}),{process:function(e,n,a,o,s,l){var c=function(e,t){return t.slots.map((function(t){return e.getSlot(t.name)||t})).concat(e.slots.filter((function(e){return!t.hasSlot(e.name)})))}(e,n),p=c.length,h=new Array(p),m=null,b=-1,y=+a.getDataItemCount()||0,I=[],_=new Array(y+1);_.length=y;for(var C,T,V=0;V<y;++V){if((C=a.getDataItem(V)||null)&&(b<0&&(b=1),"cat"!==(T=C.getType())&&"cont"!==T))throw new Error("Unsupported DataItem type: "+T);_[V]=C}var A,E,x=d.createFixed(y),j=function(e,t,n,r,i,a){for(var o=t.length,s=r.length,l=new Array(o),c=0;c<o;++c){var f=t[c],d=f.type,p=f.segments&&f.segments.length,h=0,m=null;if(n){var g=null;e.hasSlot(f.name)&&(g=n.getDataItemsFor(f)||g);var v,b=g?g.length:0;if(!f.multiDataItem&&b>1)throw new Error("Multiple DataItems mapped to slot "+f.name+", which is not allowed");if(b<1&&p>0){for(var y=new Array(p),I=new Array(p),_=null,C=!1,S=-1,P=0;P<p;++P){var R=f.segments[P];if(v=-1,(b=+((g=n.getDataItemsFor(R)||null)&&g.length)||0)>1)throw new Error("Only one dataItem may be mapped to segment "+R.name);g&&b>0&&(v=w(g[0],R.type,r)),v>=0?(y[P]=v,I[P]=r[v],D(a,v,R),h<1&&(h=1),"caption"===R.part?S=v:C=!0):(R.optional||_||(_=R),y[P]=I[P]=null)}if(m=new Array(h),h>0){if(_&&(C||!f.subTypeOptional))throw new Error("Cannot leave segment "+_.name+" unmapped, it is not optional");if(C)m[0]=v=r.length,r.push(new u(v,i,f,y,I));else{if(!f.subTypeOptional)throw new Error("Slot "+f.name+" requires at least one non-caption segment to be mapped");m[0]=S}}}else{if(m=new Array(b),g)for(var T=0;T<b;++T)(v=w(g[T],d,r))>=0&&(m[h++]=v,D(a,v,f));h<b&&(m.length=h)}}else c<s&&r[c]&&((m=new Array(1))[0]=c,++h,D(a,c,f));if(h<1&&!f.optional)throw new Error("Cannot leave slot "+f.name+" unmapped, it is not optional");l[c]=m||new Array(0)}return l}(e,c,o,_,s,x),z=_.length,N=function(e){for(var t,n=[];t=e.nextValue();)n.push(t);return n}(a.getDataPointIterator()),O=N.length,L=new Array(O),M=new Array(_.length);for(V=0;V<y;++V){if(C=_[V]){var F=x[V],k=!(!F||!F.length);E=k?F[0]:null,"cat"===(T=C.getType())?(A=(C=S(F,C).create(C,s,E,V,k,I.length)).end-C.start,b&&(A>1?b*=A:A<1&&(b=0))):"cont"===T&&(m||(m=new d(M,L,h)),C=v.create(C,s,E,V,k,I.length,m,l)),C.colIndex>=0&&I.push(C)}M[V]=C}for(V=y;V<z;++V)C=_[V].create(M,N,I.length),M[V]=C,C.colIndex>=0&&I.push(C);b<0&&(b=0);for(var q=b>0?1:0,B=0;B<p;++B){var H=P(s,E=c[B],j[B],M,I,!n.suppressMissing,n.hasSlot(E.name),l);for(h[B]=H,z=H.dataItems.length,V=0;V<z;++V)"cat"===(C=H.dataItems[V]).type&&C.sourceIndex>=0&&((A=C.end-C.start)>1&&q>0&&H.forViz?q*=A:A<1&&(q=0))}z=M.length;for(var G,U,W,X=(I=function(e,t){for(var n,r,i,a=new Array(e.length),o=0,s=0,l=t.length;s<l;++s){var u=t[s];for(n=0,r=u.dataItems.length;n<r;++n)(i=u.dataItems[n]).colIndex>=0&&a.indexOf(i)<0&&(a[o++]=i)}if(o<(r=e.length))for(n=0;n<r;++n)i=e[n],a.indexOf(i)<0&&(a[o++]=i);if(o!==r)throw new Error("Data processing error: not all data items are resolved");return a}(I,h)).length,$=new Array(z),K=new Array(X*O),J=new t,Y=d.buildOffsets(I),Z=!1,Q=0,ee=0;Q<O;++Q,ee+=X){var te=N[Q],ne=0;for(V=0;V<z;++V){if(G=null,V>=y)G=_[V].resolveTuple(te,Q);else if(null!==(C=M[V]))if("cat"===C.type){if((U=te.getTupleIndex(V))<C.start||U>=C.end)throw new RangeError(r.format("Invalid tuple index {0} for DataItem {1}, must be between {2} and {3}",U,C,C.start,C.end));G=C.getTuple(U)}else G=new g(te.getValue(V),s,C.slotRef,C);$[V]=G}for(V=0;V<X;++V)(G=$[(C=I[V]).sourceIndex]).dataItem!==C&&(G="cat"===C.type?C.getTuple(G.index):G.clone(s,C)),"cat"===C.type&&(U=G.index-C.start,W=Y[V],U>0&&W>0&&(ne+=U*W)),K[ee+C.colIndex]=G;var re=J.get(ne);W=re?re.offset+1:0,!Z&&(ne>q||W>0)&&(Z=!0),re=new f(te,s,M,h,Q,ne,K,ee,W),J.set(ne,re),L[Q]=re}return!n.needsSorted&&n.suppressMissing||L.sort(R),new i(a,s,e,h,M,L,o,Z,!1,null)}})})),define("com/ibm/vipr/internal/data/VIPRDataFactory",["barejs!decl","barejs!NSet","./DataSetFactory","./VIPRData"],(function(e,t,n,r){"use strict";var i=new n;return e.declareClass((function(){}),{process:function(n,a,o,s,l){if(!("getDataSetAt"in n))throw new TypeError("The supplied data does not meet the IVIPRData interface");for(var u=s.source?s.source.dataSets:s.dataSets,c=u.length,f=new Array(c),d=new t,p=0;p<c;++p){var h=u[p],m=o.getDataSet(h.name),g=null;if(m&&(g=n.getDataSetAt(m.index)||g)&&(g=i.process(m,h,g,a&&a.getDataSetMapping(m.index)||null,d,l)),!g&&!h.optional)throw new Error("DataSet "+p+" cannot be null, it is not optional.");f[p]=g}return new r(n,d,a,e.freeze(f),null)}})})),define("com/ibm/vipr/internal/data/VIPRDataApi",["exports","barejs!decl","com/ibm/vipr/rs/v1/IRSDataContext","./CustomInfo","./DataContext","./DataObject","./VIPRData","./VIPRDataFactory"],(function(e,t,n,r,i,a,o,s){"use strict";var l=new s;function u(e){if(!e)return null;if(!(e instanceof o))throw new TypeError("Invalid VIPRData, it must be created via processData");return e}t.defineObject(e,{createDataContext:function(){return(new i).as(n)},dataToInfo:function(e){var n=e||null;return!n||n instanceof a||(n="object"==typeof n&&"id"in n&&"type"in n?t.freeze(new r(n)):null),n},toRS:function(e){return e},isProcessed:function(e){return e instanceof o},processData:function(e,t,n,r,a){return e?l.process(e,t,n,r,a).initDataContext(i.vipr):null},isSliced:function(e){return o.isSliced(u(e))},slice:function(e,t,n,r,i){var a=u(e);return null===a?null:a.slice(t,n,r,i)},initDataContext:function(e,t){return t&&t.initDataContext(e?e.as(i):null),t},refreshDecorations:function(e){return e instanceof o?e.refreshDecorations():-1}},"VIPRDataApi")})),define("com/ibm/vipr/rs/v1/IRSContStops",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}return t.declareInterface(n,{stops:t.readOnlyProperty,domain:t.readOnlyProperty,aligned:t.readOnlyProperty,interpolate:t.readOnlyProperty,getStops:function(){},getDomain:function(){},getAligned:function(){},mustInterpolate:function(){},getColor:function(e){}}),n})),define("com/ibm/vipr/internal/property/RSContStops",["barejs!decl","../util/ContDomain","../util/NumberUtil","../../util/Color","../../util/ColorStop","com/ibm/vipr/rs/v1/IRSContStops"],(function(e,t,n,r,i,a){"use strict";var o=r.Named.Purple;function s(t,n,r,i){e.defineProperties(this,{stops:{enumerable:!0,value:t},domain:{enumerable:!0,value:n},aligned:{enumerable:!0,value:r},interpolate:{enumerable:!0,value:!1!==i}})}return e.declareClass(s,a,{fromHost:function(e,a){var l,u,c,f,d,p,h,m,g=a.min,v=a.max,b=g,y=v,I=!0,_=Math.abs(v-g)||0,w=e&&e.stops,C=+(w&&w.length)||0,S=new Array(C);if(C>1&&_>0){--C,c=(l=w[0]).color,"at"in l&&null!==l.at?d=g+(f=n.clamp(0,l.at,1))*_:(f=0,d=l.value),b=p=d,S[0]=i.create(c,f,d),c=(l=w[C]).color,"at"in l&&null!==l.at?d=1===(f=n.clamp(0,l.at,1))?v:f*_+g:(f=1,d=l.value),y=d,S[C]=i.create(c,f,d),u=Math.abs(y-b)||0,I=b===g&&y===v;for(var P=1;P<C;++P){if(c=(l=w[P]).color,"at"in l&&null!==l.at?d=(f=n.clamp(0,l.at,1))*u+b:f=((d=l.value)-b)/u,d<p||d>y)throw new Error("Stops are out of order, this is not supported.");S[P]=i.create(c,f,d)}}else S.length=2,(c=(l=C>0?w[0]:null)?l.color:null)||(c=o),S[0]=i.create(c,0,b),S[1]=i.create(c,1,y);return I?(h=a,m=S):(h=new t(b,y),m=function(e,t,n){for(var a=[],o=Math.abs(n-t)||0,s=null,l=1,u=0,c=0,f=e.length;c<f;++c){var d=e[c],p=(d.value-t)/o;c>0&&l<0&&p>0&&s&&a.push(i.create(r.interpolate(s.color,d.color,(t-u)/(d.value-u)),0,t)),p>=0&&p<=1&&a.push(i.create(d.color,p,d.value)),c>0&&l<1&&p>1&&s&&a.push(i.create(r.interpolate(s.color,d.color,(n-u)/(d.value-u)),1,n)),s=d,l=p,u=d.value}return a}(S,g,v)),new s(S,h,m,e.interpolate)}},{stops:null,domain:null,aligned:null,interpolate:null,getStops:function(){return this.stops},getDomain:function(){return this.domain},getAligned:function(){return this.aligned},mustInterpolate:function(){return this.interpolate},getColor:function(e){for(var t=+e||0,n=this.stops,i=null,a=null,s=(n?n.length:0)-1;s>=0&&!(t>=(i=n[s]).value);--s)a=i;if(!(s<0)&&a&&this.interpolate&&i.value!==t){var l=Math.abs(a.value-i.value)||0,u=l&&(t-i.value)/l;return r.interpolate(i.color,a.color,u)}return i?i.color:o}})})),define("com/ibm/vipr/internal/property/ContPaletteProxy",["barejs!decl","com/ibm/vipr/rs/v1/IRSContPalette","../data/VIPRDataApi","./PaletteProxy","./RSContStops","../util/ContDomain"],(function(e,t,n,r,i,a){"use strict";return e.declareClass((function(t,n){r.call(this,t,n),e.defineProperties(this,{_lastDomain:{writable:!0,value:null},_lastStops:{writable:!0,value:null}})}),r,t,{_lastDomain:null,_lastStops:null,getColorStops:function(e,t){var r;if(r=t?a.fromRSv1(t):e?a.fromRSv1(e.getDomain()):a.EMPTY,null===this._lastDomain||!this._lastDomain.equals(r)){var o=this._resolver.getColorStops(n.dataToInfo(e),r);this._lastStops=i.fromHost(o,r),this._lastDomain=r}return this._lastStops}})})),define("com/ibm/vipr/internal/property/CustomCatPaletteProxy",["barejs!decl","../../util/Color","com/ibm/vipr/rs/v1/IRSCustomCatPalette","../data/VIPRDataApi","./PaletteProxy"],(function(e,t,n,r,i){"use strict";return e.declareClass((function(e,t){i.call(this,e,t)}),i,n,{getColor:function(e,n,a){return t.fromHost(this._resolver.getColor(e,n,r.dataToInfo(a)))||i.FALLBACK_COLOR}})})),define("com/ibm/vipr/internal/property/CustomContPaletteProxy",["barejs!decl","com/ibm/vipr/rs/v1/IRSCustomContPalette","./PaletteProxy","./RSContStops","../util/ContDomain"],(function(e,t,n,r,i){"use strict";return e.declareClass((function(e,t){n.call(this,e,t)}),n,t,{getColorStops:function(e){var t=i.fromRSv1(e),n=this._resolver.getColorStops(t);return r.fromHost(n,t)}})})),define("com/ibm/vipr/internal/property/PaletteProperty",["barejs!decl","barejs!WeakMap","../../api/PaletteType","../../property/IVizPaletteProperty","com/ibm/vipr/rs/v1/IRSPaletteProperty","com/ibm/vipr/rs/v1/IRSCatPaletteProperty","com/ibm/vipr/rs/v1/IRSContPaletteProperty","com/ibm/vipr/rs/v1/IRSCustomCatPaletteProperty","com/ibm/vipr/rs/v1/IRSCustomContPaletteProperty","./CatPaletteProxy","./ContPaletteProxy","./CustomCatPaletteProxy","./CustomContPaletteProxy","./ValueProperty"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p){"use strict";var h=new t;function m(e){p.RSValueProperty.call(this,e),h.set(this,e)}function g(e){m.call(this,e)}function v(e){m.call(this,e)}function b(e){m.call(this,e)}function y(e){m.call(this,e)}function I(e,t){p.VizValueProperty.call(this,e,t)}return e.declareClass(m,p.RSValueProperty,i,{paletteType:{enumerable:!0,get:"getPaletteType"},slot:{enumerable:!0,get:"getSlot"},getPaletteType:function(){return h.get(this).def.paletteType},getSlot:function(){var e=h.get(this).def;return e.slot&&e.slot.name}}),e.declareClass(g,m,a,{getTupleColor:function(e,t){return h.get(this)._rs.getValue().getTupleColor(e,t)},getColor:function(e){return h.get(this)._rs.getValue().getColor(e)}}),e.declareClass(v,m,o,{getColorStops:function(e,t){return h.get(this)._rs.getValue().getColorStops(e,t)}}),e.declareClass(b,m,s,{getColor:function(e,t,n){return h.get(this)._rs.getValue().getColor(e,t,n)}}),e.declareClass(y,m,l,{getColorStops:function(e){return h.get(this)._rs.getValue().getColorStops(e)}}),e.declareClass(I,p.VizValueProperty,r,{paletteType:{enumerable:!0,get:"getPaletteType"},slot:{enumerable:!0,get:"getSlot"},getPaletteType:function(){return this.def.paletteType},getSlot:function(){return this.def.slot}}),e.declareClass((function(t,r,i,a){var o;switch(p.call(this,t,r,i,function(e,t,r){return function(i){if(null===i)return null;switch(e){case n.Cat:return new u(t,i,r?r.name:null);case n.Cont:return new c(t,i);case n.CustomCat:return new f(t,i);case n.CustomCont:return new d(t,i);default:throw new Error("Unknown palette type")}}}(t.paletteType,a,t.slot)),t.paletteType){case n.Cat:o=new g(this);break;case n.Cont:o=new v(this);break;case n.CustomCat:o=new b(this);break;case n.CustomCont:o=new y(this);break;default:throw new Error("Unsupported palette type: "+t.paletteType)}e.defineProperties(this,{_rs:{value:o},_host:{value:new I(this,t)}})}),p,{_rs:null,_host:null,toHost:function(){return this._host},toRS:function(){return this._rs}})})),define("com/ibm/vipr/rs/v1/IRSProperties",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{get:function(e){},getBoolean:function(e){},getColor:function(e){},getEnum:function(e){},getFont:function(e){},getLength:function(e){},getNumber:function(e){},getString:function(e){},getCatPalette:function(e){},getContPalette:function(e){},getCustomCatPalette:function(e){},getCustomContPalette:function(e){}}),t})),define("com/ibm/vipr/internal/property/Properties",["barejs!decl","barejs!EventArgs","barejs!Evented","barejs!NMap","barejs!WeakMap","./BooleanProperty","./ColorProperty","./EnumProperty","./FontProperty","./GroupProperty","./LengthProperty","./NumberProperty","./StringProperty","./PaletteProperty","./ValueProperty","../../api/PaletteType","../../property/IVizProperties","../../property/PropertyVisibility","com/ibm/vipr/rs/v1/IRSProperties"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b){"use strict";var y=new i,I=function(){function n(n,r,i){t.call(this),e.defineProperties(this,{change:{enumerable:!0,value:n},property:{enumerable:!0,value:r},previous:{enumerable:!0,value:i}})}return e.declareClass(n,t,{change:null,property:null,previous:null}),function(e,t){var r=y.get(e).on("active",(function(r){t(new n("active",r.property,r.oldValue),e)})),i=y.get(e).on("value",(function(r){t(new n("value",r.property,r.oldValue),e)}));return i.own(r),i}}();function _(e,t,n,r){var i=null;switch(e.type){case"boolean":i=new a(e,t,n);break;case"color":i=new o(e,t,n);break;case"enum":i=new s(e,t,n);break;case"font":i=new l(e,t,n);break;case"length":i=new c(e,t,n);break;case"number":i=new f(e,t,n);break;case"string":i=new d(e,t,n);break;case"palette":i=new p(e,t,n,r);break;default:throw new Error("Unhandled PropertyType: "+e.type)}return i}function w(e,t,n,r,i,a,o,s){for(var l=0,c=t.length;l<c;++l){var f,d=t[l],p=d.visibility===v.Listed;if("group"===d.type){var h=[];w(e,d.properties,n,r,h,a,o,s),f=new u(d,h),p&&!i&&(f.on("value",a),f.on("active",o))}else f=_(d,r(d),n.parser(d.name),s),e._values.push(f),p?e._listed.push(f):d.visibility===v.Configuration?e._configuration.push(f.toHost()):d.visibility===v.Excluded&&e._excluded.push(f.toHost()),f.forRS&&e._rsProps.push(f.toRS()),p&&i||(f.on("value",a),f.on("active",o));e._map.set(d.name,f);for(var m=0,g=d.aliases.length;m<g;++m)e._map.set(d.aliases[m],f);p&&!i&&e._tree.push(f.toHost()),i&&d.visibility!==v.Excluded&&i.push(f)}}function C(t,n){y.set(this,t),e.defineProperty(this,"_props",{value:n})}function S(t,n,r,i){y.set(this,t),e.defineProperties(this,{tree:{enumerable:!0,value:n},configuration:{enumerable:!0,value:r},excluded:{enumerable:!0,value:i}})}function P(){n.call(this),e.defineProperties(this,{_map:{value:new r},_values:{value:[]},_listed:{value:[]},_tree:{value:[]},_excluded:{value:[]},_configuration:{value:[]},_rsProps:{value:[]}}),e.defineProperties(this,{_vizPropertiesImpl:{value:new S(this,this._tree,this._configuration,this._excluded)},_rsPropertiesImpl:{value:new C(this,this._rsProps)}})}return e.declareClass(C,b,{_props:null,size:{enumerable:!0,get:function(){return this._props.length}},get:function(e){var t=y.get(this)._map.get(e);return t&&t.forRS?t.toRS():null},has:function(e){var t=y.get(this)._map.get(e);return!(!t||!t.forRS)},forEach:function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");var t=arguments[1]||null;t&&(t=Object(t));for(var n=0,r=this._props.length;n<r;++n){var i=this._props[n];e.call(t,i,i.name,this)}},getBoolean:function(e){var t=y.get(this)._map.get(e);return t instanceof a?t.toRS():null},getColor:function(e){var t=y.get(this)._map.get(e);return t instanceof o?t.toRS():null},getEnum:function(e){var t=y.get(this)._map.get(e);return t instanceof s?t.toRS():null},getFont:function(e){var t=y.get(this)._map.get(e);return t instanceof l?t.toRS():null},getLength:function(e){var t=y.get(this)._map.get(e);return t instanceof c?t.toRS():null},getNumber:function(e){var t=y.get(this)._map.get(e);return t instanceof f?t.toRS():null},getString:function(e){var t=y.get(this)._map.get(e);return t instanceof d?t.toRS():null},getCatPalette:function(e){var t=y.get(this)._map.get(e);return t instanceof p&&t.def.paletteType===m.Cat?t.toRS():null},getContPalette:function(e){var t=y.get(this)._map.get(e);return t instanceof p&&t.def.paletteType===m.Cont?t.toRS():null},getCustomCatPalette:function(e){var t=y.get(this)._map.get(e);return t instanceof p&&t.def.paletteType===m.CustomCat?t.toRS():null},getCustomContPalette:function(e){var t=y.get(this)._map.get(e);return t instanceof p&&t.def.paletteType===m.CustomCont?t.toRS():null}}),e.declareClass(S,g,{tree:null,configuration:null,excluded:null,size:{enumerable:!0,get:function(){return this.tree.length}},get:function(e){var t=y.get(this)._map.get(e);return t?t.toHost():null},has:function(e){return y.get(this)._map.has(e)},forEach:function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");var t=arguments[1]||null;t&&(t=Object(t));for(var n=y.get(this)._listed,r=0,i=n.length;r<i;++r){var a=n[r];e.call(t,a.toHost(),a.name,this)}},initHostProperty:function(e,t,n){var r=y.get(this),i=r._map.get(e);if(!(i instanceof h))throw new Error("Cannot initialize "+e);if(i.def.deprecated)i.initDeprecated(r._map,r._rsPropertiesImpl,n);else if(n)throw new Error("Deprecated handler passed for non deprecated property "+e);return i.initHost(t)},on:function(e,t){if("function"!=typeof t)throw new TypeError(t+" is not a function");if("change"===e)return I(this,t);var n=this;return y.get(this).on(e,(function(e){t(e,n)}))},properties:{get:function(){return this.tree}},getGroup:function(e){var t=y.get(this)._map.get(e);return t instanceof u?t.toHost():null},getBoolean:function(e){var t=y.get(this)._map.get(e);return t instanceof a?t.toHost():null},getColor:function(e){var t=y.get(this)._map.get(e);return t instanceof o?t.toHost():null},getEnum:function(e){var t=y.get(this)._map.get(e);return t instanceof s?t.toHost():null},getNumber:function(e){var t=y.get(this)._map.get(e);return t instanceof f?t.toHost():null},getString:function(e){var t=y.get(this)._map.get(e);return t instanceof d?t.toHost():null},getPalette:function(e){var t=y.get(this)._map.get(e);return t instanceof p?t.toHost():null}}),e.declareClass(P,n,{create:function(e,t,n,r){if(!e||!t)throw new Error("_vizDef and _hostVizDef cannot be null");if(!n)throw new Error("_propertyApi cannot be null");var i=new P;function a(e){i.emit("value",e)}function o(e){i.emit("active",e)}function s(t){return!!e.getProperty(t.name)}w(i,t.properties,n,s,null,a,o,r),w(i,t.configuration,n,s,null,a,o,r);for(var l=0,u=i._values.length;l<u;++l){var c=i._values[l];c.forRS&&c.def.deprecated&&c.initDeprecated(i._map,i.toRS(),n.deprecated(c.def.name))}return i}},{_map:null,_values:null,_listed:null,_tree:null,_excluded:null,_configuration:null,_rsProps:null,_vizPropertiesImpl:null,_rsPropertiesImpl:null,destroy:function(){this.destroyAll(this._map),n.prototype.destroy.call(this)},toHost:function(){return this._vizPropertiesImpl},toRS:function(){return this._rsPropertiesImpl},rsDirty:function(){for(var e=!1,t=0,n=this._rsProps.length;t<n&&!e;++t)e=this._rsProps[t].isDirty();return e},lock:function(){for(var e=0,t=this._values.length;e<t;++e)this._values[e].lock()},unlock:function(e){for(var t=0,n=this._values.length;t<n;++t)this._values[t].unlock(e)},postInit:function(){for(var e=0,t=this._values.length;e<t;++e){var n=this._values[e],r=n.def;if("enum"===r.type&&r.dynamic&&!r.allowNull&&n.getPossibleValuesForHost().length<1)throw new Error("The rendering service did not initialize dynamic enum property "+r.name)}},onvalue:function(e){},onactive:function(e){}})})),define("com/ibm/vipr/internal/data/AxisItem",["barejs!decl","../../api/IAxisItem","../../api/HittableType","../../data/DataItemType","./VIPRDataApi"],(function(e,t,n,r,i){"use strict";function a(t,n,r,i,a){e.defineProperties(this,{type:{enumarable:!0,value:t},slot:{enumarable:!0,value:n},tuple:{enumarable:!0,value:r},value:{enumarable:!0,value:i},hittableType:{enumarable:!0,value:a}})}return e.declareClass(a,t,{fromRSv1:function(e){return e?new a(r.parse(e.getType()),e.getSlot(),i.dataToInfo(e.getTuple()),e.getValue(),n.parse(e.getRSHittableType())):null}},{type:null,slot:null,tuple:null,value:null,hittableType:null,getType:function(){return this.type},getSlot:function(){return this.slot},getTuple:function(){return this.tuple},getValue:function(){return this.value},getHittableType:function(){return this.hittableType}})})),define("com/ibm/vipr/internal/data/CustomDataSet",["barejs!decl","../../api/ICustomDataSet"],(function(e,t){"use strict";return e.declareClass((function(t,n){if("string"!=typeof t)throw new TypeError("_name must be a string");if(!Array.isArray(n))throw new TypeError("_items must be an Array");e.defineProperties(this,{name:{enumerable:!0,value:t},items:{enumerable:!0,value:n},_decoVer:{writable:!0,value:0}})}),t,{name:null,items:null,_decoVer:null,getName:function(){return this.name},getItems:function(){return this.items},getDecorationVersion:function(){return this._decoVer},updateDecorations:function(){return++this._decoVer}})})),define("com/ibm/vipr/api/ICatEncodingEntry",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{getColor:function(){},getShape:function(){},isSelected:function(){},isHighlighted:function(){},getRef:function(){}})})),define("com/ibm/vipr/internal/util/CatEncodingEntry",["barejs!decl","../data/VIPRDataApi","com/ibm/vipr/util/Color","com/ibm/vipr/api/ICatEncodingEntry"],(function(e,t,n,r){"use strict";function i(t,n,r,i,a,o){e.defineProperties(this,{caption:{enumerable:!0,value:t},color:{enumerable:!0,value:n||null},shape:{enumerable:!0,value:r||null},selected:{enumerable:!0,value:!1!==i},highlighted:{enumerable:!0,value:!1!==a},ref:{enumerable:!0,value:o||null}})}return e.declareClass(i,r,{fromRSv1:function(e){return e?new i(e.getCaption(),n.fromRSv1(e.getColor()),e.getShape(),e.isSelected(),e.isHighlighted(),t.dataToInfo(e.getRef())):null}},{caption:null,color:null,shape:null,selected:null,highlighted:null,ref:null,getCaption:function(){return this.caption},getColor:function(){return this.color},getShape:function(){return this.shape},isSelected:function(){return this.selected},isHighlighted:function(){return this.highlighted},getRef:function(){return this.ref}})})),define("com/ibm/vipr/internal/util/Encoding",["barejs!decl","../../api/IEncoding"],(function(e,t){"use strict";return e.declareClass((function(t,n,r,i,a,o){e.defineProperties(this,{type:{enumerable:!0,value:t},channel:{enumerable:!0,value:r},slot:{enumerable:!0,value:n},caption:{enumerable:!0,value:i},subCaption:{enumerable:!0,value:a},ref:{enumerable:!0,value:o}})}),t,{type:null,channel:null,slot:null,caption:null,subCaption:null,ref:null,getType:function(){return this.type},getChannel:function(){return this.channel},getSlot:function(){return this.slot},getRef:function(){return this.ref},getCaption:function(){return this.caption},getSubCaption:function(){return this.subCaption}})})),define("com/ibm/vipr/api/ICatEncoding",["barejs!decl","./IEncoding"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getEntries:function(){}})})),define("com/ibm/vipr/internal/util/CatEncoding",["barejs!decl","./CatEncodingEntry","./Encoding","../data/VIPRDataApi","com/ibm/vipr/api/EncodingType","com/ibm/vipr/api/ICatEncoding"],(function(e,t,n,r,i,a){"use strict";function o(t,r,a,o,s,l){n.call(this,i.Cat,t,r,a,o,s),e.defineProperty(this,"entries",{enumerable:!0,value:l})}return e.declareClass(o,n,a,{fromRSv1:function(n){return new o(n.getSlot(),n.getChannel(),n.getCaption(),n.getSubCaption(),r.dataToInfo(n.getRef()),e.freeze(Array.from(n.getEntries(),t.fromRSv1,t)))}},{entries:null,getEntries:function(){return this.entries}})})),define("com/ibm/vipr/api/IContEncoding",["barejs!decl","./IEncoding"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getDomain:function(){},getInterpolate:function(){},getStops:function(){}})})),define("com/ibm/vipr/internal/util/ContEncoding",["barejs!decl","./ContDomain","./Encoding","../data/VIPRDataApi","../../util/ColorStop","com/ibm/vipr/api/EncodingType","com/ibm/vipr/api/IContEncoding"],(function(e,t,n,r,i,a,o){"use strict";function s(t,r,i,o,s,l,u,c){n.call(this,a.Cont,t,r,i,o,s),e.defineProperties(this,{domain:{enumerable:!0,value:l},interpolate:{enumerable:!0,value:u},stops:{enumerable:!0,value:c}})}return e.declareClass(s,n,o,{fromRSv1:function(e){var n=e.getStops();return new s(e.getSlot(),e.getChannel(),e.getCaption(),e.getSubCaption(),r.dataToInfo(e.getRef()),t.fromRSv1(e.getDomain()),e.getInterpolate(),n?Array.from(n,i.fromRSv1,i):null)}},{domain:null,interpolate:null,stops:null,getDomain:function(){return this.domain},getInterpolate:function(){return this.interpolate},getStops:function(){return this.stops}})})),define("com/ibm/vipr/api/ICustomEncoding",["barejs!decl","./IEncoding"],(function(e,t){"use strict";return e.declareInterface((function(){}),t,{getPayload:function(){}})})),define("com/ibm/vipr/internal/util/CustomEncoding",["barejs!decl","./Encoding","../data/VIPRDataApi","com/ibm/vipr/api/EncodingType","com/ibm/vipr/api/ICustomEncoding"],(function(e,t,n,r,i){"use strict";function a(n,i,a,o,s,l){t.call(this,r.Custom,n,i,a,o,s),e.defineProperty(this,"payload",{enumerable:!0,value:l})}return e.declareClass(a,t,i,{fromRSv1:function(e){return e?new a(e.getSlot(),e.getChannel(),e.getCaption(),e.getSubCaption(),n.dataToInfo(e.getRef()),e.getPayload()):null}},{payload:null,getPayload:function(){return this.payload}})})),define("com/ibm/vipr/internal/util/Bounds",["barejs!decl","../../api/IBounds"],(function(e,t){"use strict";function n(t,n,r,i){e.defineProperties(this,{left:{enumerable:!0,value:t},top:{enumerable:!0,value:n},right:{enumerable:!0,value:r},bottom:{enumerable:!0,value:i}})}return e.declareClass(n,t,{fromRSv1:function(e){return e?new n(e.getLeft(),e.getTop(),e.getRight(),e.getBottom()):null}},{left:null,top:null,right:null,bottom:null,width:{enumerable:!0,get:"getWidth"},height:{enumerable:!0,get:"getHeight"},getLeft:function(){return this.left},getTop:function(){return this.top},getRight:function(){return this.right},getBottom:function(){return this.bottom},getWidth:function(){return this.right-this.left},getHeight:function(){return this.bottom-this.top}})})),define("com/ibm/vipr/internal/util/Region",["barejs!decl","../../api/IRegion","./Bounds"],(function(e,t,n){"use strict";function r(t,n,r){e.defineProperties(this,{name:{enumerable:!0,value:t},slots:{enumerable:!0,value:n},bounds:{enumerable:!0,value:r}})}return e.declareClass(r,t,{fromRSv1:function(e){return e?new r(e.getName(),e.getSlots(),n.fromRSv1(e.getBounds())):null}},{name:null,slots:null,bounds:null,getName:function(){return this.name},getSlots:function(){return this.slots},getBounds:function(){return this.bounds}})})),define("com/ibm/vipr/internal/util/RenderInterrupt",["barejs!decl","../../api/IRenderInterrupt"],(function(e,t){"use strict";function n(e){this._rsRenderInterrupt=e}return e.declareClass(n,t,{fromRSv1:function(e){return e?new n(e):null}},{supportsPause:{enumerable:!0,get:function(){return!!this._rsRenderInterrupt&&this._rsRenderInterrupt.supportsPause()}},supportsAbort:{enumerable:!0,get:function(){return!!this._rsRenderInterrupt&&this._rsRenderInterrupt.supportsAbort()}},supportsComplete:{enumerable:!0,get:function(){return!!this._rsRenderInterrupt&&this._rsRenderInterrupt.supportsComplete()}},pause:function(e){this._rsRenderInterrupt.pause(e)},resume:function(e){this._rsRenderInterrupt.resume(e)},complete:function(e){this._rsRenderInterrupt.complete(e)},abort:function(e){this._rsRenderInterrupt.abort(e)}})})),define("com/ibm/vipr/rs/v1/IRSRequest",["barejs"],(function(e){"use strict";const t=e.decl;function n(){}function r(){}return t.declareInterface(n,{call:function(e,t,n){}}),t.declareInterface(r,{IHostResponseCallback:{enumerable:!0,value:n}},{id:t.readOnlyProperty,name:t.readOnlyProperty,version:t.readOnlyProperty,payload:t.readOnlyProperty,aborted:t.readOnlyProperty,completed:t.readOnlyProperty,failed:t.readOnlyProperty,active:t.readOnlyProperty,getId:function(){},getName:function(){},getVersion:function(){},getPayload:function(){},subscribe:function(e){},exec:function(e){},abort:function(e){},isAborted:function(){},isCompleted:function(){},isFailed:function(){},isActive:function(){}}),r})),define("com/ibm/vipr/internal/VizServiceRequestHandle",["barejs!decl","barejs!WeakMap","../api/IVizServiceRequest","com/ibm/vipr/rs/v1/IRSRequest"],(function(e,t,n,r){"use strict";var i=new t,a=e.declareEnum((function(){this.Inactive="inactive",this.Pending="pending",this.Complete="complete",this.Failed="failed",this.Aborted="aborted"}));function o(){}function s(e){i.set(this,e)}function l(e){i.set(this,e)}return e.declareInterface(o,{update:function(e){}}),e.declareClass(s,n,{id:{enumerable:!0,get:"getId"},name:{enumerable:!0,get:"getName"},version:{enumerable:!0,get:"getVersion"},payload:{enumerable:!0,get:"getPayload"},aborted:{enumerable:!0,get:"isAborted"},completed:{enumerable:!0,get:"isCompleted"},failed:{enumerable:!0,get:"isFailed"},active:{enumerable:!0,get:"isActive"},getId:function(){return i.get(this).id},getName:function(){return i.get(this).name},getVersion:function(){return i.get(this).version},getPayload:function(){return i.get(this).payload},isAborted:function(){return i.get(this).status===a.Aborted},isCompleted:function(){return i.get(this).status===a.Complete},isFailed:function(){return i.get(this).status===a.Failed},isActive:function(){return i.get(this).status===a.Pending},reply:function(e){var t=i.get(this);if(t.status===a.Inactive)throw new Error("Request has not been executed yet");t.status===a.Pending&&t.update(a.Pending,e)},complete:function(e){var t=i.get(this);if(t.status===a.Inactive)throw new Error("Request has not been executed yet");t.status===a.Pending&&t.update(a.Complete,e)},fail:function(e){var t=i.get(this);if(t.status===a.Inactive)throw new Error("Request has not been executed yet");t.status===a.Pending&&t.update(a.Failed,e)}}),e.declareClass(l,r,{id:{enumerable:!0,get:"getId"},name:{enumerable:!0,get:"getName"},version:{enumerable:!0,get:"getVersion"},payload:{enumerable:!0,get:"getPayload"},aborted:{enumerable:!0,get:"isAborted"},completed:{enumerable:!0,get:"isCompleted"},failed:{enumerable:!0,get:"isFailed"},active:{enumerable:!0,get:"isActive"},getId:function(){return i.get(this).id},getName:function(){return i.get(this).name},getVersion:function(){return i.get(this).version},getPayload:function(){return i.get(this).payload},subscribe:function(t){if(t=e.asFunctional(t,r.IHostResponseCallback)){var n=i.get(this);switch(n.status){case"inactive":case"pending":n._subscribers.push(t);break;case"complete":t.call(null,n.result,this);break;default:t.call(n.result,null,this)}}},exec:function(e){var t=i.get(this);if(t._executed)throw new Error("Request has already been executed");if(t._executed=!0,e&&this.subscribe(e),t.status===a.Inactive)if(t.status=a.Pending,t._hostApi)try{t._hostApi.request(t.toHost())}catch(e){t.update(a.Failed,e)}else t.update(a.Failed,new Error("The host did not provide a request handler"));return this},abort:function(e){var t=i.get(this);t.status!==a.Inactive&&t.status!==a.Pending||t.update(a.Aborted,e)},isAborted:function(){return i.get(this).status===a.Aborted},isCompleted:function(){return i.get(this).status===a.Complete},isFailed:function(){return i.get(this).status===a.Failed},isActive:function(){return i.get(this).status===a.Pending}}),e.declareClass((function(t,n,r,i,u,c){e.defineProperties(this,{id:{enumerable:!0,value:t},name:{enumerable:!0,value:n},version:{enumerable:!0,value:r},payload:{enumerable:!0,value:i},status:{enumerable:!0,writable:!0,value:a.Inactive},_hostApi:{value:u},_subscribers:{value:[]},_executed:{writable:!0,value:!1},_result:{writable:!0,value:null},_notification:{value:e.asFunctional(c,o)},_host:{value:new s(this)},_rs:{value:new l(this)}})}),{IRequestNotification:o},{id:null,name:null,version:null,payload:null,status:null,_hostApi:null,_subscribers:null,_executed:null,_result:null,_notification:null,_host:null,_rs:null,toHost:function(){return this._host},toRS:function(){return this._rs},isActive:function(){return this.status===a.Pending},update:function(e,t){var n=null,r=null;e===a.Pending||e===a.Complete?r=t:n=t,e!==a.Pending&&e!==a.Inactive&&(this._result=t),e!==a.Pending&&(this.status=e);for(var i=0,o=this._subscribers;i<o.length;++i)try{o[i].call(n,r,this._rs)}catch(e){}if(this.status!==a.Pending&&(o.length=0,this._notification))try{this._notification.update(this)}catch(e){}}})})),define("com/ibm/vipr/rs/v1/IRSHostAPI",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{requestRender:function(){},request:function(e,t,n){},setCustomData:function(e,t){},error:function(e,t,n,r,i){},warn:function(e,t,n,r,i){},info:function(e,t,n,r,i){}}),t})),define("com/ibm/vipr/rs/v1/IRSInitNotification",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{complete:function(){},fail:function(e){}}),t})),define("com/ibm/vipr/internal/VizService",["barejs!decl","barejs!Destroyable","./util/InitializationParameters","./util/RenderParameters","./util/Point","./util/RenderInvalidation","./property/Properties","./data/AxisItem","./data/CustomDataSet","./data/VIPRDataApi","../internal/util/Capability","../internal/util/CatEncoding","../internal/util/ContEncoding","../internal/util/CustomEncoding","../internal/util/Deferred","../internal/util/Region","../internal/util/RenderInterrupt","../api/EncodingType","../api/ICoordinate","../api/IInteractivity","../api/IVizService","../api/Severity","../util/RenderQueue","./VizServiceNotification","./VizServiceRequestHandle","com/ibm/vipr/rs/v1/IRSHostAPI","com/ibm/vipr/rs/v1/IRSInitNotification","com/ibm/vipr/rs/v1/IRSRequest"],(function(e,t,n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,v,b,y,I,_,w,C,S,P,D,R){"use strict";var T=0;function V(e){var t=null;if(e){var n=e.length||0;t=new Array(n);for(var r,i=0,a=0;i<n;++i)(r=u.dataToInfo(e[i]))&&(t[a++]=r);a<n&&(t.length=a)}return t}function A(e,t){if(e&&1!==e.nodeType)throw new Error("The provided domNode should be of type ELEMENT");var n=e||document.createElement("div");return n.setAttribute("data-vizbundle",t.id),n}function E(e,t){this.viewPort=e,this.vis=t}function x(e){var t=e&&e.as(E);if(!t)throw new TypeError("Invalid coordinate provided");return t}function j(){e.defineProperties(this,{_rsi:{writable:!0,value:null},_start:{writable:!0,value:null},_active:{writable:!0,value:!0}})}function z(){h.call(this)}return e.declareClass(E,b,{viewPort:null,vis:null,x:{get:"getX"},y:{get:"getY"},getX:function(){return this.viewPort.x},getY:function(){return this.viewPort.y}}),e.declareClass(j,y,{_rsi:null,_start:null,_active:null,lock:function(){this._active=!1,this._start&&this.cancelInteractivity(this._start)},unlock:function(){this._active=!0},startInteractivity:function(e){var t=x(e),n=t.viewPort;this._active&&this._rsi&&(this._start&&this._rsi.endInteractivity(t.vis,n),this._rsi.startInteractivity(t.vis,n)),this._start=t},canTranslate:function(){return!!(this._active&&this._rsi&&this._rsi.canTranslate())},translate:function(e){var t=this._start;if(this._active&&this._rsi&&t){var n=x(e),r=n.viewPort;this._rsi.translate(n.vis,r,new i(r.x-t.x,r.y-t.y))}},canZoom:function(){return!!(this._active&&this._rsi&&this._rsi.canZoom())},canZoomIn:function(){return!!(this._active&&this._rsi&&this._rsi.canZoomIn())},canZoomOut:function(){return!!(this._active&&this._rsi&&this._rsi.canZoomOut())},canReset:function(){return!!(this._active&&this._rsi&&this._rsi.canReset())},zoom:function(e,t){if(this._active&&this._rsi){var n=x(e);this._rsi.zoom(n.vis,n.viewPort,t)}},reset:function(){this._active&&this._rsi&&this._rsi.reset()},cancelInteractivity:function(e){if(this._rsi&&this._start){var t=x(e);this._rsi.cancelInteractivity(t.vis,t.viewPort)}this._start=null},endInteractivity:function(e){if(this._rsi&&this._start){var t=x(e);this._rsi.endInteractivity(t.vis,t.viewPort)}this._start=null},update:function(e){return this._rsi=e&&e.getInteractivity()||null,this}}),e.declareClass((function(e,t){this.data=e,this.dirty=t}),{data:null,dirty:null}),e.declareClass(z,h,D,{complete:function(){h.prototype.complete.call(this,null)}}),e.declareClass((function(n,r,i,a,s,l,c,f,d,p,h,m,g){t.call(this);var v=r||n.vizDef,b=i||v,I=u.createDataContext(),_=o.create(v,b,s,I),C=new j;e.defineProperties(this,{vizBundle:{enumerable:!0,value:n},vizDef:{enumerable:!0,value:b},serviceDescription:{enumerable:!0,value:l},surface:{enumerable:!0,value:A(p,n)},userData:{enumerable:!0,value:void 0===h?null:h},_dataContext:{value:I},properties:{enumerable:!0,value:_.toHost()},_interactivity:{value:C},_iInteractivity:{value:C.as(y)},_props:{value:_},_hostApi:{configurable:!0,value:c||null},_rsHostApi:{value:this.as(P)},_data:{writable:!0,value:null},_regions:{value:[]},_requests:{value:[]},_renderer:{configurable:!0,value:f},_queue:{value:new w(this._beforeRender.bind(this),this._executeRender.bind(this),this._afterRender.bind(this),15e3)},_renderedWidth:{writable:!0,value:-1},_renderedHeight:{writable:!0,value:-1},_renderedData:{writable:!0,value:null},_renderedDecoVer:{writable:!0,value:-1},_responseReceived:{writable:!0,value:!1},truncate:{enumerable:!0,writable:!0,value:!0},_resources:{value:d},_logger:{value:m},_formatLocale:{value:g||n.getLocale()},_lastCapabilities:{writable:!0,value:null},_destroyPromise:{writable:!0,value:null}}),this.own(_,_.on("value",this._properties_onValue.bind(this)))}),t,I,P,{vizBundle:null,vizDef:null,serviceDescription:null,surface:null,userData:null,truncate:null,properties:null,_dataContext:null,_interactivity:null,_iInteractivity:null,_hostApi:null,_rsHostApi:null,_data:null,_renderer:null,_queue:null,_renderedWidth:null,_renderedHeight:null,_renderedData:null,_renderedDecoVer:null,_responseReceived:null,_resources:null,_logger:null,_formatLocale:null,_regions:null,_requests:null,_destroyPromise:null,domNode:{get:"getRenderSurface"},renderTimeout:{enumerable:!0,get:function(){return this._queue.timeout},set:function(e){this._queue.timeout=e}},init:function(){var e=new n(this.surface,this._rsHostApi,this._resources,this._logger,this.vizBundle.getLocale(),this._formatLocale,this.vizBundle.getNls(),this._props.toRS(),this._dataContext),r=new z;this._renderer.init(e,r);var i=this;return r.getPromise().then((function(){if(t.isDestroyed(i))throw new Error("VizService destroyed before initialization completed.");return i._props.postInit(),i.as(I)}))},destroy:function(){this.destroyAsync()},destroyAsync:function(){var e=this;if(e._destroyPromise)return e._destroyPromise;var n=new Error("RenderingService is being destroyed");return e._destroyPromise=h.execute((function(r,i){var a=e.surface&&e.surface.parentNode;a&&a.removeChild(e.surface);for(var o=e._requests,s=o.length-1;s>=0;--s)o[s].toRS().abort(n);e._queue.destroy(n).then((function(){e._interactivity&&e._interactivity.update(null),e._renderer&&(e._renderer.destroy(),delete e._renderer),delete e._hostApi,t.prototype.destroy.call(e),r(null)}))})),e._destroyPromise},getRenderSurface:function(){return this.surface},setData:function(e,t){var n,r=null==e?null:Object(e);if(r&&!u.isProcessed(r)&&(r=this.vizBundle.processData(e,t,this.vizDef)),u.isSliced(r))n=u.toRS(r);else{var i=null;this.truncate&&(i=this._lastCapabilities||this.getCapabilities());var a=u.slice(r,null,i,this._hostApi,this.vizBundle.getNls());n=u.toRS(a.slices[0])}return this._data=u.initDataContext(this._dataContext,n),this._renderer.setData(n),this._lastCapabilities=null,this._renderedDecoVer=-1,r},setProperty:function(e,t){var n=this.properties.get(e);return n&&(n.value=t),n},render:function(e,t,n){var i=r.fromHost(e);return this._queue.add(i,t,n)},_beforeRender:function(t,n){var r=this._renderer.getBlockingRequests()||null,i=null;function a(e,t,r){if(!r.isActive()){var a=i.indexOf(r);a<0||(i.splice(a,1),i.length<1&&n.complete())}}if(r&&!Array.isArray(r))throw new TypeError("Renderer getBlockingRequests did not return a valid value");var o=0;if(r){o=r.length,i=[];for(var s=0;s<o;++s){var l=r[s];if(!l||!e.hasInterface(l,R))throw new TypeError("Invalid IRSRequest passed");l.isActive()&&(i.push(l),l.subscribe(a))}o=i.length}o<1&&n.complete()},_executeRender:function(e,t,n){var r=this._data,i=u.refreshDecorations(r),o=this._responseReceived;o&&(this._responseReceived=!1);var s=this.surface.offsetWidth,l=this.surface.offsetHeight,c=new a(this._renderedData!==r,this._renderedDecoVer!==i,this._props.rsDirty(),this._renderedWidth!==s||this._renderedHeight!==l,o);return this._interactivity.lock(),this._props.lock(),n.set("data",r),n.set("width",s),n.set("height",l),n.set("decoVer",i),g.fromRSv1(this._renderer.render(e,c,t))},_afterRender:function(e,t){var n="complete"===e.status;n&&(this._renderedWidth=t.get("width"),this._renderedHeight=t.get("height"),this._renderedData=t.get("data"),this._renderedDecoVer=t.get("decoVer")),this._interactivity.unlock(),this._props.unlock(n)},_flagResponse:function(){this._responseReceived=!0},_properties_onValue:function(e){var t=e.property.getDef();if("group"!==t.type&&!t.deprecated){var n=this._props.toRS().get(t.name);n&&this._renderer.setProperty(t.name,n.peekValue())}},getEncodings:function(){var e=this._data;return e&&e.refreshDecorations(),function(e){for(var t=[],n=0,r=+(e&&e.length)||0;n<r;++n){var i=e[n];switch(v.parse(i.getRSType())){case v.Cat:t.push(f.fromRSv1(i));break;case v.Cont:t.push(d.fromRSv1(i));break;case v.Custom:t.push(p.fromRSv1(i));break;default:throw new TypeError("Unsupported encoding type")}}return t}(this._renderer.getEncodings())},getCapabilities:function(){for(var e=this._renderer.getCapabilities(),t=+(e&&e.length)||0,n=new Array(t),r=0;r<t;++r)n[r]=c.fromRSv1(e[r]);return this._lastCapabilities=n,n},getInteractivity:function(){return this._interactivity.update(this._renderer),this._iInteractivity},getVisCoordinate:function(e,t){var n=new i(e,t),r=this.surface.getBoundingClientRect(),a=new i(n.x-r.left,n.y-r.top);return new E(a,this._renderer.getVisCoordinate(a,n)).as(b)},getRegionAtPoint:function(e,t){var n=e&&e.as(E),r=null,i=n&&n.viewPort;if(i){var a=this._renderer.getRegionAtPoint(i,t>0?t:0);a&&(r=m.fromRSv1(a))}return r},getClientPoint:function(e){var t=this.surface.getBoundingClientRect();return new i(e.getX()+t.left,e.y+t.top)},getItemsAtPoint:function(e,t){var n=x(e);return V(this._renderer.getItemsAtPoint(n.vis,n.viewPort,t>0?t:0))},getAxisItemsAtPoint:function(e,t){var n=x(e);return function(e){for(var t,n=e&&e.length||0,r=new Array(n),i=0,a=0;i<n;++i)(t=e[i])&&(r[a++]=s.fromRSv1(t));return a<n&&(r.length=a),r}(this._renderer.getAxisItemsAtPoint(n.vis,n.viewPort,t>0?t:0))},getItemsInPolygon:function(e){var t=e&&e.length||0;if(t<2)return[];for(var n,r=new Array(t),i=new Array(t),a=0;a<t;++a)n=x(e[a]),r[a]=n.vis,i[a]=n.viewPort;return V(this._renderer.getItemsInPolygon(r,i))},getState:function(){return this._renderer.getState()},setState:function(e){this._renderer.setState(e)},requestRender:function(){var e=!0;this._hostApi&&"requestRender"in this._hostApi&&(e=!this._hostApi.requestRender()),e&&this._queue.add(null)},request:function(e,t,n){if("string"!=typeof e||e.length<1)throw new TypeError("IHostAPI::request requires a non empty string name");if("number"!=typeof t||t!=t)throw new TypeError("IHostAPI::request requires a version, which must be a number");var r=new S(++T,e,t,n,this._hostApi,function(e){if(this._responseReceived=!0,!e.isActive()){var t=this._requests.indexOf(e);t>=0&&this._requests.splice(t,1)}}.bind(this));return this._requests.push(r),r.toRS()},notify:function(e,t,n,r,i,a){if(!_.hasValue(e))throw new TypeError("Invalid Severity: "+e);if("string"!=typeof t)throw new TypeError("Invalid type: "+t);if("string"!=typeof n)throw new TypeError("Invalid id: "+n);var o=this._hostApi,s="undefined"!=typeof console;if(o){var l=new C(e,t,n,void 0===r?null:r,void 0===i?null:i,void 0===a?null:a);try{o.notify(l)}catch(e){}}else s&&console[e](t,r,a)},error:function(e,t,n,r,i){this.notify(_.Error,e,t,n,r,i)},warn:function(e,t,n,r,i){this.notify(_.Warning,e,t,n,r,i)},info:function(e,t,n,r,i){this.notify(_.Info,e,t,n,r,i)},setCustomData:function(e,t){var n=this._hostApi,r=new l(e,t);return n&&n.setCustomData&&n.setCustomData(r.name,r.items),r}})})),define("com/ibm/vipr/rs/v1/IRSDeprecatedProperty",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{evaluate:function(e,t){},setValue:function(e,t,n){}}),t})),define("com/ibm/vipr/rs/v1/IRSPropertyApi",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{deprecated:function(e){},parser:function(e){}}),t})),define("com/ibm/vipr/internal/property/PropertyApi",["barejs!decl","com/ibm/vipr/rs/v1/IRSDeprecatedProperty","com/ibm/vipr/rs/v1/IRSPropertyApi","com/ibm/vipr/rs/v1/IRSPropertyParser"],(function(e,t,n,r){"use strict";return e.declareClass((function(t){if(t&&!e.hasInterface(t,n))throw new TypeError("Provided api does not comply with IRSPropertyApi");e.defineProperty(this,"_api",{value:t})}),{_api:null,deprecated:function(n){var r=null;if(this._api&&(r=this._api.deprecated(n))&&!e.hasInterface(r,t))throw new TypeError("Invalid IRSDeprecatedProperty");return r},parser:function(t){var n=null;if(this._api&&(n=this._api.parser(t)||n)&&"function"!=typeof n&&!e.hasInterface(n,r))throw new TypeError("Invalid IRSPropertyParser");return n}})})),define("com/ibm/vipr/rs/v1/IRenderingService",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{getPropertyApi:function(){},init:function(e,t){},destroy:function(){},setData:function(e){},setProperty:function(e,t){},getBlockingRequests:function(){},render:function(e,t,n){},getEncodings:function(){},getCapabilities:function(){},getInteractivity:function(){},getState:function(){},setState:function(e){},getVisCoordinate:function(e,t){},getItemsAtPoint:function(e,t,n){},getAxisItemsAtPoint:function(e,t,n){},getItemsInPolygon:function(e,t){},getRegionAtPoint:function(e,t){}}),t})),define("com/ibm/vipr/internal/VizBundle",["barejs!decl","barejs!NMap","barejs!NSet","./VizService","./data/VIPRDataApi","./property/PropertyApi","../api/IVizBundle","../api/ResourceType","../internal/util/Deferred","../internal/util/StringUtil","../vizdef/VisualizationDef","com/ibm/vipr/rs/v1/IRenderingService"],(function(e,t,n,r,i,a,o,s,l,u,c,f){"use strict";var d=new n;function p(e,t,n){return t.length<1?l.resolve(n):l.all(t.map((function(t){return e.loadResource(t.resource,t.type)}))).then((function(e){for(var r=0;r<t.length;++r){var i=t[r];i.name&&n.set(i.name,e[r])}return n}))}function h(n,i){for(var o=[],l=[],u=0,c=i.dependencies.length;u<c;++u){var h=i.dependencies[u];(h.preload?o:l).push(h)}return p(n,o,new t).then((function(t){return n.loadResource(i.classPath,s.JavaScript).then((function(o){return p(n,l,t).then((function(t){return function(t,n,i,o){return e.freeze(o),function(s,l,u,c,p){var h=new i;if(!d.has(i)){if(!e.hasInterface(h,f))throw new TypeError("RenderingService does not comply with the IRenderingService interface");d.add(i)}return t._propertyApi||(t._propertyApi=new a("getPropertyApi"in h?h.getPropertyApi():null)),new r(t._proxy,t.vizDef,c||t.vizDef,t._userConfig,t._propertyApi,n,l,h,o,s,u,t._logger,p).init()}}(n,i,o,t)}))}))}))}return e.declareClass((function(n,r,i,a,s,l,u,c,f){e.defineProperties(this,{id:{enumerable:!0,value:n},_resLoader:{value:r},_userConfig:{value:i},userData:{enumerable:!0,value:a},manifest:{enumerable:!0,value:s},vizDef:{enumerable:!0,value:l},locale:{enumerable:!0,value:f},_services:{value:new t},_proxy:{configurable:!0,value:this.as(o)},_nls:{value:u},_logger:{value:c},_propertyApi:{writable:!0,value:null}})}),o,{id:null,userData:null,manifest:null,vizDef:null,propertyApi:null,locale:null,_resLoader:null,_userConfig:null,_propertyApi:null,_services:null,_proxy:null,_nls:null,_logger:null,location:{enumerable:!0,get:"getLocation"},getId:function(){return this.id},getLocation:function(){return this._resLoader.getLocation()},getManifest:function(){return this.manifest},getVizDef:function(){return this.vizDef},getUserData:function(){return this.userData},getUserConfig:function(){return this.userConfig},loadResource:function(e,t){return this._resLoader.load(e,t,this.locale)},create:function(e,t,n){var r=this.manifest.getServiceDescription(),i=arguments[3]||this.vizDef,a=arguments[4]||this.locale;if(!r)return l.reject(new Error("No service description"));if(i&&!(i instanceof c))return l.reject("Invalid hostVizDef provided");var o=this._services.get(r);return o||this._services.set(r,o=h(this,r)),o.then((function(r){return r(e,t,n,i,a)}))},processData:function(e,t,n){var r=e||null;return i.isProcessed(r)||(r=i.processData(e,t,n instanceof c?n:this.vizDef,this.vizDef,this._nls)),r},compileData:function(e,t){return this.processData.apply(this,arguments)},getNls:function(){return this._nls},extendVizDef:function(e,t,n,r){var i=this.vizDef;if(e){if(!(e instanceof c))throw new TypeError("_vizDef is not a VisualizationDef");i=e}return c.applyUserConfig(i.extend(t,n,r),this._userConfig,this._logger)},getLocale:function(){return this.locale},toHost:function(){return this._proxy}})})),define("com/ibm/vipr/api/IAppender",["barejs!decl"],(function(e){"use strict";return e.declareInterface((function(){}),{accept:function(e,t){},log:function(e){}})})),define("com/ibm/vipr/api/LogLevel",["barejs!decl"],(function(e){"use strict";function t(t,n){this.name=t,this.value=n,e.freeze(this)}return e.declareClass(t,{name:null,value:null,toString:function(){return this.name},valueOf:function(){return this.value}}),e.declareEnum((function(){this.error=new t("error",2),this.warn=new t("warn",3),this.info=new t("info",4),this.log=new t("log",5),this.debug=new t("debug",6)}))})),define("com/ibm/vipr/internal/util/LogMessage",["barejs!decl","barejs!Exception"],(function(e,t){"use strict";return e.declareClass((function(n,r,i,a,o){t.call(this,a,o),e.defineProperties(this,{timeStamp:{enumerable:!0,value:n},level:{enumerable:!0,value:r},context:{enumerable:!0,value:i}})}),t,{name:"LogMessage",timeStamp:null,level:null,context:null,location:{configurable:!0,get:function(){var t,n=this.stack;if(n){var r=this.message;(t=n.indexOf(r))>=0&&(n=n.substr(t+r.length+1)),t=n.match(/\s*(?:at\s+|@)([^\r\n]+)/)}return e.defineProperty(this,"location",{value:t&&t[1]||"<unknown>"}).location}}})})),define("com/ibm/vipr/internal/util/log",["barejs!decl","../../api/IAppender","../../api/LogLevel","./LogMessage"],(function(e,t,n,r){"use strict";var i=[],a=Array.prototype.slice,o=Array.prototype.join,s=function(){var r=n.warn;function i(){}return e.declareClass(i,t,{level:{enumerable:!0,get:function(){return r},set:function(e){return r=n.parse(e,!0,!0)}},accept:function(e,t){return"undefined"!=typeof console&&e<=r},log:function(e){var t=console[e.level.name]||console.log;console.group&&console.group(e.context),t.call(console,"stack"in e?e.message+"\n\tat "+e.location:e.message),console.group&&console.groupEnd()}}),new i}();return e.defineObject((function e(t,n,s){var l=e,u=i.length;function c(e,t,n,r){var i=e;if(t){if((t=Math.floor(t)+1)in s)switch(i=s[t],n){case"*":i=JSON.stringify(i,null,isNaN(r)?r:+r);break;case"+":i=o.call(i,r);break;default:i=String(i)}}else i=i.charAt(0);return i}if(u>0){var f=new Date;"function"==typeof t&&(l=t,t=n,n=s,s=arguments[3]);for(var d=null,p=0;p<u;++p){var h=i[p];try{if(h.accept(n,t)){if(!d){var m=s[0];m="function"==typeof m?String(m.apply(s[1]||null,a.call(s,2))):String(m).replace(/\{\{|\}\}|\{(\d+)(?:([\+\*])([^\}]+)?)?\}/g,c),d=new r(f,n,t,m,l)}h.log(d)}}catch(e){}}}}),{add:function(n){if(n!==console&&"console"!==n||(n=s),!e.hasInterface(n,t))throw new TypeError("Appender does not comply with the IAppender interface");return i.indexOf(n)<0&&i.push(n),n},remove:function(e){e!==console&&"console"!==e||(e=s);var t=i.indexOf(e);return t<0?null:i.splice(t,1)[0]},isEnabled:function(e,t){return i.some((function(n){return!0===n.accept(e,t)}))}},"log")})),define("com/ibm/vipr/rs/v1/IRSLogger",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{isDebugEnabled:function(){},isInfoEnabled:function(){},isWarnEnabled:function(){},isErrorEnabled:function(){},debug:function(e,t){},info:function(e,t){},warn:function(e,t){},error:function(e,t){}}),t})),define("com/ibm/vipr/internal/util/Logger",["barejs!decl","./log","com/ibm/vipr/api/LogLevel","com/ibm/vipr/rs/v1/IRSLogger"],(function(e,t,n,r){"use strict";function i(t){e.defineProperty(this,"_context",{value:String(t)})}return e.declareClass(i,r,{getLogger:function(e){return new i(e)},addAppender:function(e){t.add(e)},removeAppender:function(e){t.remove(e)}},{_context:null,isDebugEnabled:function(){return t.isEnabled(n.debug,this._context)},isInfoEnabled:function(){return t.isEnabled(n.info,this._context)},isWarnEnabled:function(){return t.isEnabled(n.warn,this._context)},isErrorEnabled:function(){return t.isEnabled(n.error,this._context)},log:function(e){t(this.log,this._context,n.log,arguments)},debug:function(e,r){t(this.debug,this._context,n.debug,arguments)},info:function(e,r){t(this.info,this._context,n.info,arguments)},warn:function(e,r){t(this.warn,this._context,n.warn,arguments)},error:function(e,r){t(this.error,this._context,n.error,arguments)}})})),define("com/ibm/vipr/internal/util/Language",["barejs!decl"],(function(e){"use strict";return e.declareEnum((function(){this.Java="java",this.JavaScript="js"}),{parse:function(e){if("string"==typeof e)switch(e.toLowerCase()){case"java":return this.Java;case"javascript":case"js":return this.JavaScript}return null}})})),define("com/ibm/vipr/internal/util/Environment",["exports","barejs!decl","./Language"],(function(e,t,n){"use strict";t.defineObject(e,{language:{enumerable:!0,value:n.JavaScript}},"Environment")})),define("com/ibm/vipr/internal/util/XmlParser",["exports","barejs!decl","../util/StringUtil"],(function(e,t,n){"use strict";var r,i=Array.prototype.filter,a=Array.prototype.find,o=/\s*,\s*/,s=/^\s*(?:true)\s*$/i;function l(e){var t;if(e instanceof RegExp)t=e.test.bind(e);else{if("string"!=typeof e)throw new TypeError("Invalid query type, must be String or RegExp");t=Object.is.bind(Object,e)}return function(e){return!!e&&1===e.nodeType&&t(e.tagName)}}function u(e){return!!e&&1===e.nodeType}function c(e,t){return!!e&&(e.hasAttribute?e.hasAttribute(t):null!==e.getAttribute(t))}t.defineObject(e,{fromString:"undefined"!=typeof DOMParser&&(new DOMParser).parseFromString?(r=new DOMParser,function(e){return e?r.parseFromString(e,"text/xml"):null}):function(){var e;try{e=new ActiveXObject("MSXML.DOMDocument")}catch(e){}return!!e}()?function(e){if(!e)return null;var t=new ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(e),t}:function(e){return null},getTextContent:function(e){var t=null;if(e)if(1===e.nodeType)for(var n=e.childNodes,r=0,i=+(n&&n.length)||0;r<i;++r){var a=n[r];3===a.nodeType&&(t=(t||"")+a.nodeValue)}else 3===e.nodeType&&(t=e.nodeValue);return t},filterChildElements:function(e){return i.call(e.childNodes,u)},filterChildElementsByTag:function(e,t){return e&&e.childNodes?i.call(e.childNodes,l(t)):[]},findChildElementByTag:function(e,t){var n;return e&&e.childNodes&&(n=a.call(e.childNodes,l(t))),n},hasAttribute:c,stringAttr:function(e,t,n){return c(e,t)?e.getAttribute(t):n},commaSeparatedAttr:function(e,t,n){if(!c(e,t))return n;var r=e.getAttribute(t).trim();return r.length?r.split(o):[]},boolAttr:function(e,t,n){return c(e,t)?s.test(e.getAttribute(t)):n},numberAttr:function(e,t,r){if(!c(e,t))return r;var i=e.getAttribute(t),a=+i;if(a!=a){if(arguments[3])throw new Error(n.format(arguments[3],i));a=r}return a}},"XmlParser")})),define("com/ibm/vipr/internal/manifest/LoaderPlugin",["barejs!decl","../util/XmlParser"],(function(e,t){"use strict";function n(t,n){e.defineProperties(this,{type:{enumerable:!0,value:t},path:{enumerable:!0,value:n}})}return e.declareClass(n,{fromXml:function(e){return e?new n(t.stringAttr(e,"type",null),t.stringAttr(e,"path",null)):null}},{type:null,path:null,toString:function(){return this.path}})})),define("com/ibm/vipr/internal/manifest/ServiceDependency",["barejs!decl","../util/XmlParser"],(function(e,t){"use strict";function n(t,n,r,i){e.defineProperties(this,{resource:{enumerable:!0,value:t},name:{enumerable:!0,value:n},type:{enumerable:!0,value:r},preload:{enumerable:!0,value:!!i}})}return e.declareClass(n,{fromXml:function(e){return e?new n(t.stringAttr(e,"resource",null),t.stringAttr(e,"name",null),t.stringAttr(e,"type","js"),t.boolAttr(e,"preload",!1)):null}},{resource:null,name:null,type:null,preload:null,toString:function(){return this.resource}})})),define("com/ibm/vipr/internal/manifest/ServiceDescription",["barejs!decl","../util/StringUtil","../util/Language","../util/XmlParser","./ServiceDependency"],(function(e,t,n,r,i){"use strict";function a(t,n,r,i,a){e.defineProperties(this,{formats:{enumerable:!0,value:e.freeze(t)},lang:{enumerable:!0,value:n},classPath:{enumerable:!0,value:r},apiVersion:{enumerable:!0,value:i},dependencies:{enumerable:!0,value:e.freeze(a)}})}return e.declareClass(a,{fromXml:function(e){if(!e)throw new Error("Node cannot be null");var o=r.commaSeparatedAttr(e,"format",null),s=r.stringAttr(e,"lang",null),l=n.parse(s),u=r.stringAttr(e,"class",e.className||null),c=r.numberAttr(e,"apiversion",null,"Service 'apiversion' invalid: {0}");if(null===o||o.length<1)throw new Error("Service 'format' attribute missing or empty");if(null===u)throw new Error("Service 'class' attribute missing or empty");if(null===s)throw new Error("Service 'lang' attribute missing or empty");if(null===c)throw new Error("Service 'apiversion' attribute missing or empty");if(null===l)throw new Error(t.format("Service 'lang' attribute contains unknown language: {0}",s));return new a(o,l,u,c,r.filterChildElementsByTag(e,/^dependency$/i).map(i.fromXml,i))}},{formats:null,lang:null,classPath:null,apiVersion:null,dependencies:null,hasType:function(e){return this.formats.includes(e)}})})),define("com/ibm/vipr/internal/manifest/Manifest",["barejs!decl","barejs!NMap","../util/Environment","../util/XmlParser","./LoaderPlugin","./ServiceDescription"],(function(e,t,n,r,i,a){"use strict";function o(e,t,n){return e.get(t)||n}function s(t,n,r){e.defineProperties(this,{_properties:{value:t},services:{enumerable:!0,value:n},plugins:{enumerable:!0,value:r}})}return e.declareClass(s,{fromXml:function(o){if(!o)return null;var l=new t,u=null,c=null;return Array.prototype.forEach.call(o.childNodes,(function(e,t){if(1===e.nodeType){var o=e.tagName.toLowerCase();"bundle-plugin"===o?c=r.filterChildElementsByTag(e,/^plugin$/i).map(i.fromXml,i):o.startsWith("bundle-")||"servicedefinition"===o?r.stringAttr(e,"lang",n.language)===n.language&&l.set(o,r.getTextContent(e).trim()):"servicebindings"===o&&(u=r.filterChildElementsByTag(e,/^service$/i).map(a.fromXml,a))}})),new s(l,e.freeze(u||new Array(0)),e.freeze(c||new Array(0)))},fromXmlDocument:function(e){return this.fromXml(r.findChildElementByTag(e,/^manifest/i))},fromXmlString:function(e){return this.fromXmlDocument(r.fromString(e))}},{_properties:null,services:null,getName:function(){return o(this._properties,"bundle-name","")},getType:function(){return o(this._properties,"bundle-type","")},getSymbolicName:function(){return o(this._properties,"bundle-symbolicname","")},getManifestVersion:function(){return o(this._properties,"bundle-manifestversion","")},getModuleFormat:function(){return o(this._properties,"bundle-module-format","")},getAmdPath:function(){return o(this._properties,"bundle-amd-path","")},getVersion:function(){return o(this._properties,"bundle-version","")},getPropertyApi:function(){return o(this._properties,"bundle-propertyapi","")},getNls:function(){return o(this._properties,"bundle-nls","")},getPreload:function(){return o(this._properties,"bundle-preload","")},getConfig:function(){return o(this._properties,"bundle-config","")},getContext:function(){return o(this._properties,"bundle-context","")},getServiceDefinition:function(){return o(this._properties,"servicedefinition","")},getProperty:function(e){return o(this._properties,e.toLowerCase(),null)},getServiceDescription:function(e){for(var t=null,r=-1,i=0,a=this.services.length;i<a;++i){var o=this.services[i];o.lang===n.language&&(!e||o.hasType(e))&&o.apiVersion>r&&o.apiVersion<=1&&(r=o.apiVersion,t=o)}return t}})})),define("com/ibm/vipr/internal/util/loading/css",["exports","barejs!decl","barejs!Promise"],(function(e,t,n){"use strict";function r(e){return document.querySelector('link[type="text/css"][href="'+e+'"]')}t.defineObject(e,{loadCss:function(e){return new n((function(t,n){if("undefined"==typeof document)return n(new Error("There is no document, cannot load css"));var i=r(e);i||((i=document.createElement("link")).setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",e),(document.head||document.getElementsByTagName("head")[0]).appendChild(i)),t(e)}))},unloadCss:function(e){var t=r(e);t&&t.parentNode&&t.parentNode.removeChild(t)}},"css")})),define("com/ibm/vipr/internal/util/loading/url",["exports","barejs!decl"],(function(e,t){"use strict";var n=/^(?:\.\/(?!\.{1,2}\/)|\/)?(?:\.\.(?:\/|$))*(?:(?!\.{1,2})[^\/\r\n]+(?:\/|$))*$/,r=/^(blob:|file:\/\/|(?:(?:[^\r\n:]+:)?\/\/(?:\[[0-9a-f:]+\]|[^\r\n\/:\[\]\?\#]+)?|\[[0-9a-f:]+\]|[0-9]{1,3}(?:\.[0-9]{1,3}){3}|localhost|[^\r\n:\/\?#]+(?=:[0-9]+))(?::[0-9]+)?(?=$|[\/\?#])|)([^\r\n\?#]*)([?#][^\r\n]*|)$/i,i=/^\.\.?(?:$|\/)/,a=/^\/|\.[cCmM]?[jJ][sS]$/,o=new Array(16);function s(e,t){if(n.test(e)&&(t||e.lastIndexOf("./",0)<0))return e;var r=0;o.length=0;var i,a=0;do{i=e.indexOf("/",a);var s=e.substring(a,i<0?e.length:i);s.length<1?(0===a||i<0)&&o.push(""):".."===s?(0===r&&1===o.length&&"."===o[0]&&o.pop(),--r<0?o.push(s):o.pop()):"."===s?0===a&&t&&o.push(s):(++r,o.push(s)),a=i<0?e.length:i+1}while(i>=0);var l=o.join("/");return o.length=0,l}o.length=0,t.defineObject(e,{depth:function(e){var t=e?r.exec(e):null;return t?function(e){var t=0,n=e.length,r=0,i=0;0===e.lastIndexOf("/",0)&&++r;do{switch((i=e.indexOf("/",r))<0&&(i=n),i-r){case 0:i===n&&r>1&&++t;break;case 1:"."!==e.charAt(r)&&++t;break;case 2:"."===e.charAt(r)&&"."===e.charAt(r+1)?--t:++t;break;default:++t}r=i+1}while(r<n);return t}(t[2]):0},normalize:function(e){var t=e?r.exec(e):null;if(!t)return"";var n=t[1],i=s(t[2],!n);return i===t[2]?t[0]:n+i+t[3]},join:function(e,t){var n=r.exec(t||""),i=n[1],a=n[2],o=n[3];return i||(n=r.exec(e))&&(n[1]&&(i=n[1]),a.length<1?a=n[2]:a.lastIndexOf("/",0)<0&&(a=n[2]+"/"+a)),i+s(a,!i)+o},parent:function(e){if(null===e)return null;var t=r.exec(e),n=t[1],i=s(t[2],!n),a=!(n||0===i.lastIndexOf("/",0)||!0!==arguments[2]),o=arguments[1];if("number"!=typeof o&&(o=1),o<0)throw new RangeError("url.parent cannot handle a negative depth");for(;--o>=0&&null!==i;){var l=i.lastIndexOf("/"),u=0;if(!n)for(var c=l+1;c<i.length;++c){if(!("."===i.charAt(c)&&u<2)){"/"!==i.charAt(c)&&(u=0);break}++u}i=u<1?l>0?i.substring(0,l):l+1<i.length?a?".":i.substring(0,l+1):null:a?(1===u?".":"../")+i:null}return null===i?i:n+i},maybeModuleId:function(e){if(null===e)return!1;if("string"!=typeof e)throw new TypeError("_path must be a string");if(e.lastIndexOf("/",0)>=0||!0===arguments[1]&&i.test(e))return!1;var t=r.exec(e);return!(t[1]||t[3]||a.test(t[2]))},stripQuery:function(e){return e.replace(r,"$1$2")},getPath:function(e){var t=e?r.exec(e):null;return t&&t[2]}},"url")})),define("com/ibm/vipr/internal/util/loading/xhr",["exports","barejs!decl","barejs!Promise"],(function(e,t,n){"use strict";var r=/(?:^text\/(?:ht|x)ml|application\/xml|\w+\/\w+\+xml)(?:;|$)/i,i=function(){return new XMLHttpRequest},a=t.declareEnum((function(){this.Unsent=0,this.Opened=1,this.HeadersReceived=2,this.Loading=3,this.Done=4})),o=t.declareEnum((function(){this.Auto="",this.ArrayBuffer="arraybuffer",this.Blob="blob",this.Document="document",this.Json="json",this.Text="text"}));function s(e){return e>=200&&e<300||304===e||1223===e||!e}function l(e,t){if("response"in e&&e.responseType===t)return e.response;var n=e.getResponseHeader("Content-Type"),i=t===o.Document?e.responseXML:e.responseText;switch(t){case"arraybuffer":case"blob":throw new Error("xhr cannot handle "+t);case"":case"text":null===i&&(i="");break;case"document":null===i||r.test(n)||(i=null);break;case"json":if(null!==i)try{i=JSON.parse(i)}catch(e){i=null}break;default:throw new Error("Internal error: getResponseObject does not handle responseType "+t)}return i}function u(e,n,r,i){t.defineProperties(this,{_xhr:{value:e},state:{enumerable:!0,value:n},response:{enumerable:!0,value:r},error:{enumerable:!0,value:i}})}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setRequestHeader(n,t[n])}function f(e,n,r,i,a){t.defineProperties(this,{method:{enumerable:!0,value:e},url:{enumerable:!0,value:n},options:{enumerable:!0,value:r},_xhr:{value:i},_promise:{value:a}})}function d(e){var t,r,d,p=e;arguments.length>1&&(t=p,p=arguments[1],arguments.length>2&&(r=p,p=arguments[2]));var h=new n((function(e,n){switch(typeof p){case"object":null!==p&&(t||(t=p.method),r||(r=p.url));break;case"string":r=p,p=null;break;case"undefined":p=null;break;default:throw new TypeError("Invalid options: "+p)}if("string"!=typeof t)throw new TypeError("A method is required, for example GET");if("string"!=typeof r)throw new TypeError("A url is required.");var f,h,m="",g=o.Auto;if(p&&(p.preventCache&&(m="?&".charAt(r.indexOf("?")+1)+"cb="+Date.now()),"user"in p&&(f=p.user),"password"in p&&(h=p.password),"responseType"in p&&(g=p.responseType,!o.hasValue(g))))throw new TypeError("Invalid or unsupported ResponseType: "+g);function v(){d&&(d.onreadystatechange&&(d.onreadystatechange=null),d.onload&&(d.onload=null),d.onerror&&(d.onerror=null),d.onabort&&(d.onabort=null),d.ontimeout&&(d.ontimeout=null),d=null)}function b(t){if(d){if(s(d.status))try{e(new u(d,"load",l(d,g),null))}catch(e){n(new u(d,"error",null,e))}else n(new u(d,"error",null,new Error(d.statusText)));v()}}function y(e){d&&(n(new u(d,"abort",null,new Error("Request aborted"))),v())}if("onload"in(d=i())&&"onerror"in d?(d.onload=b,d.onerror=function(e){d&&(n(new u(d,"error",null,new Error(d.statusText))),v())}):d.onreadystatechange=function(e){d.readyState===a.Done?b():d.readyState===a.Unsent&&y()},"onabort"in d&&(d.onabort=y),"ontimeout"in d&&(d.ontimeout=function(e){d&&(n(new u(d,"timeout",null,new Error("Connection timeout"))),v())}),d.open(t,r+m,!0,f,h),p&&(d.withCredentials=!!p.withCredentials,"headers"in p&&c(d,Object(p.headers)),"timeout"in p&&(d.timeout=p.timeout)),"responseType"in d&&g!==d.responseType)try{d.responseType=g}catch(e){}p&&"data"in p?d.send(p.data):d.send()}));return new f(t,r,p,d,h)}t.declareClass(u,{_xhr:null,state:null,response:null,error:null,status:{enumerable:!0,get:function(){return this._xhr.status}},statusText:{enumerable:!0,get:function(){return this._xhr.statusText}},responseText:{get:function(){return this._xhr.responseText}},responseXML:{get:function(){return this._xhr.responseXML}},getResponseHeader:function(e){return this._xhr.getResponseHeader(e)}}),t.declareClass(f,n,{method:null,url:null,options:null,_xhr:null,_promise:null,readyState:{enumerable:!0,get:function(){return this._xhr.readyState}},then:function(e,t){return this._promise.then(e,t)},catch:function(e){return this._promise.catch(e)},abort:function(){this._xhr.abort()}}),t.defineObject(e,{ReadyState:{enumerable:!0,value:a},ResponseType:{enumerable:!0,value:o},factory:{get:function(){return i},set:function(e){if("function"!=typeof e)throw new TypeError("The factory method must be a function");i=e}},request:d,get:d.bind(null,"GET")},"xhr")})),define("com/ibm/vipr/internal/util/VIPRNls",["barejs!decl","../../api/INls"],(function(e,t){"use strict";var n=/^\$nls\.([^\s]+)/,r=Object.prototype.hasOwnProperty;return e.declareClass((function(){e.defineProperty(this,"_bundles",{value:[]})}),t,{_bundles:null,addBundle:function(e){e&&this._bundles.indexOf(e)<0&&this._bundles.push(e)},resolve:function(e){if(null==e)return null;var t=this;return String(e).replace(n,(function(e,n){var r=t.get(n);return null!==r?r:n}))},has:function(e){for(var t=this._bundles.length-1;t>=0;--t)if(r.call(this._bundles[t],e))return!0;return!1},get:function(e){for(var t=this._bundles.length-1;t>=0;--t){var n=this._bundles[t];if(r.call(n,e))return n[e]}return null}})})),define("com/ibm/vipr/internal/util/ResourceLoader",["barejs!decl","barejs!NMap","barejs!Promise","barejs!WeakMap","../../api/ResourceType","../manifest/Manifest","./loading/css","./loading/url","./loading/xhr","./StringUtil","./VIPRNls","./XmlParser"],(function(e,t,n,r,i,a,o,s,l,u,c,f){"use strict";var d=/\.(\w+)$/,p=/(?:^|\/)css!/i,h=/\s*;\s*/g,m=/^(?:i18n$|text$|barejs$|com\/ibm\/vipr\/rs\/)/,g=e.freeze(["scriptType","urlArgs","useXhr","waitSeconds","xhtml"]),v=n.resolve(null),b=e.freeze({responseType:l.ResponseType.Document}),y=e.freeze({virtual_item:"",virtual_value:""}),I=null,_=Function.prototype.call.bind(Object.prototype.hasOwnProperty);"undefined"!=typeof navigator&&(I=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage||null),I||(I="en-US");var w="undefined"!=typeof requirejs&&requirejs.s&&requirejs.s.contexts||null,C=new r;function S(){}function P(e){var t=null;if(e)for(var n=(t=e.trim().split(h)).length-1;n>=0;--n){var r=t[n];r.length>0?t[n]=r:t.splice(n,1)}return t}function D(e,t,r){if(!t||t.length<1)return e||v;function i(e){for(var i=t.length,a=new Array(i),o=0;o<i;++o)a[o]=r(t[o],e);return 1===i?a[0]:n.all(a)}return e&&e!==v?e.then(i):i(null)}function R(e){return w&&w[e]}function T(e,t){return _(e,t)?e[t]:null}var V=function(){var t=/^(i|[a-zA-Z]{2,3})((?:\-[a-zA-Z0-9]+)*)$/,r=function(){if(w)for(var e in w)if(_(w,e)&&T(w[e].defined,"com/ibm/vipr/internal/util/XmlParser")===f)return w[e];throw new Error("Failed to resolve requirejs context")}(),i=r.contextName||"_";function a(e){this.init([],(function(){return e}))}function s(){if(!this.fetched){this.fetched=!0;var e=this.map.id;_(r.defined,e)?a.call(this,T(r.defined,e)):r.require([e],a.bind(this))}}function l(){this.fetch()}function u(){this.enabled=!0,this.check()}function c(t,n){e.defineProperties(this,{locale:{enumerable:!0,value:t},_context:{value:n}}),C.set(n,this)}function d(t,n,r){c.call(this,t,n),e.defineProperty(this,"_parent",{value:r});var i=n.enable;function a(e){return m.test(e)||!(!n.config.loadGlobal||!n.config.loadGlobal(e))}n.enable=function(e){if(_(this.registry,e.id)&&a(e.id)){var t=T(this.registry,e.id);t.fetch=s,t.load=l,t.enable=u}return i.apply(this,arguments)}}function h(){var e,n;c.call(this,((n=(e=r)&&e.config.locale)&&!t.test(n)&&(n=null),n||I),r)}return i="_"===i?"":i+"|",e.declareClass(c,{locale:null,_context:null,load:function(e){var t=this._context,r=arguments[1]||null,i=null;if(r){if("function"!=typeof r)return n.reject(new TypeError(r+" is not a function"));i=arguments[2]}if(e.lastIndexOf("vipr/css!",0)>=0){var a=e.substr("vipr/css!".length);return o.loadCss(t.require.toUrl(a)).then((function(){t.defined[e]=a}))}return new n((function(n,a){function o(n){t.require.undef(e),a(n)}t.require([e],(function(e){try{n(r?r.call(i,e):e)}catch(e){o(e)}}),o)}))},isLoaded:function(e){return _(this._context.defined,e)},once:function(e){return this.isLoaded(e)?n.resolve(this._context.defined[e]):this.load.apply(this,arguments)},unload:function(e){p.test(e)&&o.unloadCss(this._context.require.toUrl(e.substring(e.indexOf("!")+1))),this._context.require.undef(e)},toUrl:function(e){return this._context.require.toUrl(e)}}),e.declareClass(d,c,{_parent:null,configure:function(e){this._context.configure(e)},unloadAll:function(){for(var e=Object.keys(this._context.defined),t=e.length-1;t>=0;--t)this.unload(e[t])}}),e.declareClass(h,c,{createContext:function(e,t,n,r){var a,o,s=i+e+"["+t+"]",l=R(s);if(!(l||(require.config((a={context:s,locale:t},o=this._context.config,g.forEach((function(e){_(o,e)&&(a[e]=o[e])})),a)),l=R(s))))throw new Error("ResourceLoader failed to create requirejs context "+s);if(!_(l.config.paths,n)){var u={};u[n]=r,l.configure({paths:u})}var c=C.get(l);return c||(c=new d(t,l,this)),c}}),new h}();function A(t,n,r){e.defineProperties(this,{_pattern:{value:t},_handler:{value:n||null},_handlerContext:{value:r||null}})}e.declareClass(A,{_pattern:null,_handler:null,_handlerContext:null,resolve:function(e){return this._pattern?u.format(this._pattern,e):e},load:function(e,t){return t.load(this.resolve(e),this._handler,this._handlerContext)}});var E=new A("vipr/css!{0}"),x=new A(null),j=new A("text!{0}",JSON.parse,JSON),z=new A("i18n!{0}"),N=new A("text!{0}"),O=new A("text!{0}",f.fromString,f);return e.declareClass((function(n,r){var a;e.defineProperties(this,{location:{enumerable:!0,value:s.normalize(n)},bundleId:{enumerable:!0,value:r},_manifestPromise:{writable:!0,value:null},_manifestAmd:{writable:!0,value:null},_manifest:{writable:!0,value:null},_moduleFormat:{writable:!0,value:null},_rootAmd:{writable:!0,value:null},_rootUrl:{writable:!0,value:null},_contextName:{writable:!0,value:null},_contexts:{value:new t},_resolvers:{value:(a=new t,a.set(i.Css,E),a.set(i.Html,N),a.set(i.JavaScript,x),a.set(i.Json,j),a.set(i.Nls,z),a.set(i.Svg,N),a.set(i.Text,N),a.set(i.Xml,O),a.set(i.Raw,x),a)}})}),{getDefaultLocale:function(){return V.locale}},{location:null,bundleId:null,_manifestPromise:null,_manifestAmd:null,_manifest:null,_moduleFormat:null,_rootAmd:null,_rootUrl:null,_contextName:null,_contexts:null,_resolvers:null,_configurePlugin:function(e){var t=i.parse(e.type);if(!t)throw new TypeError("Invalid type: "+e.type);var n=e.path;n.indexOf("{0}")<0&&(n+="{0}"),this._resolvers.set(t,new A(n))},getLocation:function(){return this.location},loadManifest:function(e){if(this._manifestPromise)return this._manifestPromise;var t,n=s.join(this.location,e);return s.maybeModuleId(n,!0)?(this._manifestAmd=n,t=O.load(n,V)):t=l.get(n,b).then((function(e){return e.response})),t=t.then(function(e){if(!e)throw new Error("Failed to load manifest");var t;try{t=a.fromXmlDocument(e)}catch(e){throw new Error("Invalid manifest file")}if(this._manifest=t,this._moduleFormat=t.getModuleFormat()||"amd","amd"!==this._moduleFormat)throw"esm"===this._moduleFormat?new Error("ES Modules are not supported by this version of VIPR"):new TypeError("Invalid module format: "+this._moduleFormat+", expected amd or esm");var n=s.maybeModuleId(this.location,!0);return this._rootUrl=n?s.stripQuery(V.toUrl(this.location)):this.location,t.getAmdPath()?this._rootAmd=t.getAmdPath():n&&(this._rootAmd=this.location),this._rootAmd||(this._rootAmd=s.getPath(this.location),0===this._rootAmd.lastIndexOf("/",0)&&(this._rootAmd=this._rootAmd.substring(1,this._rootAmd.length))),this._contextName=t.getContext()||t.getSymbolicName()||this.bundleId,t.plugins.forEach(this._configurePlugin,this),t}.bind(this)),this._manifestPromise=t,t.catch(function(){this.unload()}.bind(this)),t},load:function(e,t,r){if(!this._manifest)return n.reject(new Error("ResourceLoader is not initialized, cannot load"));var a,o=s.join(this._rootAmd,e);if(t){if(!(a=i.parse(t)))return n.reject(new Error("Unknown resource type: "+t))}else{var l=d.exec(o);if(l&&(a=i.parse(l[1])),!a)return n.reject(new Error("Type cannot be inferred"))}var u=this._resolvers.get(a);return u?this._resolveContext(r).then(u.load.bind(u,o)):n.reject(new Error("No loader for type: "+(t||a)))},unload:function(){this._manifestPromise=null,this._manifest=null,this._manifestAmd&&(V.unload(this._manifestAmd),V.unload(O.resolve(this._manifestAmd)),this._manifestAmd=null),this._contexts.size>0&&(this._contexts.forEach((function(e){e.then((function(e){e.unloadAll()}))}),this),this._contexts.clear()),this._moduleFormat=null,this._rootUrl=null,this._rootAmd=null},createBundleNls:function(e){var t=new c,n=t.addBundle.bind(t);n(y);var r=z.load("com/ibm/vipr/nls/"+e+"/VIPR",V).then(n),a=P(this._manifest.getNls());if(a&&a.length>0){r=r.then(this._resolveContext.bind(this,e));var o=this._resolvers.get(i.Nls),l=this._rootAmd;r=D(r,a,(function(e,t){return o.load(s.join(l,e),t).then(n)}))}return r.then((function(){return t}))},_resolveContext:function(e){var t=this._contexts.get(e);if(!t){var n=this._rootAmd,r=this._rootUrl,i=V.createContext(this._contextName,e,n,r);t=D(v,P(this._manifest.getConfig()),(function(e){var t=s.maybeModuleId(e,!1)?s.join(n,e):null,a=s.join(r,e),o=s.parent(a);if(null!==t&&i.isLoaded(t)||i.isLoaded(a))return v;if(null!==t){var l=s.parent(t),u={};l&&o?u[l]=o:u[t]=a,i.configure({paths:u})}return i.load(t||a).then((function(e){if(null!==e&&"object"==typeof e){var t=e;if(_(t,"baseUrl")||_(t,"paths")){t=Object.assign({},t);var n=o;if(_(t,"baseUrl")&&(n=s.join(n,t.baseUrl),delete t.baseUrl),_(t,"paths")){var r=t.paths;for(var a in t.paths={},r)_(r,a)&&(t.paths[a]=s.join(n,r[a]))}}i.configure(t)}}))})),t=(t=D(t,P(this._manifest.getPreload()),(function(e){return i.once(s.join(n,e)).catch(S)}))).then((function(){return i})),this._contexts.set(e,t)}return t}})})),define("com/ibm/vipr/internal/vizdef/SlotOverride",["barejs!decl","../../vizdef/Aggregation","../../vizdef/DefaultMapping","../../vizdef/FieldRole","../../vizdef/SlotType"],(function(e,t,n,r,i){"use strict";var a=void 0;function o(e){return null==e?a:String(e)}function s(t,n,r,i,a,o,s,l,u){e.defineProperties(this,{type:{enumerable:!0,value:t},optional:{enumerable:!0,value:n},caption:{enumerable:!0,value:r},description:{enumerable:!0,value:i},aggregation:{enumerable:!0,value:a},suppressMissing:{enumerable:!0,value:o},role:{enumerable:!0,value:s},defaultMapping:{enumerable:!0,value:l},hidden:{enumerable:!0,value:u}})}return e.declareClass(s,{DEFAULT_TYPE:{enumerable:!0,value:a},DEFAULT_OPTIONAL:{enumerable:!0,value:a},DEFAULT_CAPTION:{enumerable:!0,value:a},DEFAULT_DESCRIPTION:{enumerable:!0,value:a},DEFAULT_AGGREGATION:{enumerable:!0,value:a},DEFAULT_SUPPRESSMISSING:{enumerable:!0,value:a},DEFAULT_ROLE:{enumerable:!0,value:a},DEFAULT_DEFAULTMAPPING:{enumerable:!0,value:a},DEFAULT_HIDDEN:{enumerable:!0,value:a},create:function(l){var u=null;return l&&(u=new s("type"in l&&i.parse(l.type)||a,"optional"in l?!!l.optional:a,"caption"in l?o(l.caption):a,"description"in l?o(l.description):a,"aggregation"in l&&t.parse(l.aggregation)||a,"suppressMissing"in l?!!l.suppressMissing:a,"role"in l&&r.parse(l.role)||a,"defaultMapping"in l&&n.parse(l.defaultMapping)||a,"hidden"in l?!!l.hidden:a)),!u||u.isEmpty()?s.Empty:e.freeze(u)},merge:function(e,t){var n=!t||t.isEmpty();return!e||e.isEmpty()?n?s.Empty:t:n?e:new s(t.getType(e.type),t.getOptional(e.optional),t.getCaption(e.caption),t.getDescription(e.description),t.getAggregation(e.aggregation),t.getSuppressMissing(e.suppressMissing),t.getRole(e.role),t.getDefaultMapping(e.defaultMapping),t.getHidden(e.hidden))}},{type:null,optional:null,caption:null,description:null,aggregation:null,suppressMissing:null,role:null,defaultMapping:null,hidden:null,getType:function(e){return this.type===a?e:this.type},getOptional:function(e){return this.optional===a?e:this.optional},getCaption:function(e){return this.caption===a?e:this.caption},getDescription:function(e){return this.description===a?e:this.description},getAggregation:function(e){return this.aggregation===a?e:this.aggregation},getSuppressMissing:function(e){return this.suppressMissing===a?e:this.suppressMissing},getRole:function(e){return this.role===a?e:this.role},getDefaultMapping:function(e){return this.defaultMapping===a?e:this.defaultMapping},getHidden:function(e){return this.hidden===a?e:this.hidden},isEmpty:function(){return this===s.Empty||this.type===a&&this.optional===a&&this.caption===a&&this.description===a&&this.aggregation===a&&this.suppressMissing===a&&this.role===a&&this.defaultMapping===a&&this.hidden===a}}),e.defineProperty(s,"Empty",{enumerable:!0,value:new s(a,a,a,a,a,a,a,a)})})),define("com/ibm/vipr/internal/vizdef/UserConfig",["barejs!decl","barejs!NMap","../../property/PropertyType","../../property/PropertyVisibility","./PropertyOverride","./SlotOverride"],(function(e,t,n,r,i,a){"use strict";var o=Object.prototype.hasOwnProperty;function s(e){return this.indexOf(e)>=0}function l(e,t,n){return!!e&&(e.indexOf(t)>=0||!!n&&n.some(s,e))}function u(e){return null==e?null:String(e)}function c(e){var t=null;if(e){var n=+e.length||0;t=new Array(n);for(var r=0;r<n;++r)t[r]=u(e[r])}return t}function f(t,n,r,i,a,o){e.defineProperties(this,{_includeProps:{value:t||null},_excludeProps:{value:n||null},_propOverrides:{value:r||null},_includeSlots:{value:i||null},_excludeSlots:{value:a||null},_slotOverrides:{value:o||null}})}return e.declareClass(f,{PropertyOverride:{enumerable:!0,value:i},SlotOverride:{enumerable:!0,value:a},create:function(e){var n=null,r=null,s=null,l=null,u=null,d=null;if(e){var p,h,m=e.properties;if(m&&(n=c(m.include),r=c(m.exclude)),m=m&&(m.override||m.defaults))for(p in m=Object(m),s=new t,m)o.call(m,p)&&((h=i.create(Object(m[p]))).isEmpty()||s.set(p,h));if((m=e.slots)&&(l=c(m.include),u=c(m.exclude),m.override))for(p in m=Object(m.override),d=new t,m)o.call(m,p)&&((h=a.create(Object(m[p]))).isEmpty()||d.set(p,h))}return new f(n,r,s,l,u,d)}},{_includeProps:null,_excludeProps:null,_propOverrides:null,_includeSlots:null,_excludeSlots:null,_slotOverrides:null,isEmpty:function(){return!(this._propOverrides&&this._propOverrides.size>0||this._slotOverrides&&this._slotOverrides.size>0||this._includeProps||this._includeSlots||this._excludeProps&&this._excludeProps.length>0||this._excludeSlots&&this._excludeSlots.length>0)},isSlotListed:function(e){var t=!this._includeSlots||this._includeSlots.includes(e.name),n=this._excludeSlots&&this._excludeSlots.includes(e.name);return t&&!n},getImplicitVisibility:function(){return this._includeProps?r.Excluded:r.Listed},getPropertyVisibility:function(e,t){return e.visibility===r.Configuration?e.visibility:l(this._excludeProps,e.name,e.aliases)?r.Excluded:l(this._includeProps,e.name,e.aliases)?r.Listed:t===r.Listed&&e.deprecated?e.visibility:t},getPropertyOverride:function(e){var t=i.Empty;if(this._propOverrides){for(var n=+(e.aliases&&e.aliases.length)||0,r=0;r<n;++r)t=i.merge(t,this._propOverrides.get(e.aliases[r]));t=i.merge(t,this._propOverrides.get(e.name))}return t},getSlotOverride:function(e){var t=null;return this._slotOverrides&&(t=this._slotOverrides.get(e)),t||a.Empty}})})),define("com/ibm/vipr/internal/vizdef/vizDefParser",["exports","barejs!decl","barejs!NMap","../../api/PaletteType","../../property/property","../../vizdef/vizdef","../../util/CatPaletteResolver","../../util/ContPaletteResolver","../../util/CustomCatPaletteResolver","../../util/CustomContPaletteResolver","../util/XmlParser"],(function(e,t,n,r,i,a,o,s,l,u,c){"use strict";var f=t.freeze(new Array(0)),d=c.filterChildElementsByTag,p=/^group$/i,h=/^slot$/i,m=a.Aggregation,g=a.CapabilityDef,v=a.DataSetDef,b=a.DecorationDef,y=a.DefaultMapping,I=i.EnumValue,_=a.FieldRole,w=a.MetaDataEntryDef,C=a.GroupPropertyDef,S=a.BooleanPropertyDef,P=a.ColorPropertyDef,D=a.EnumPropertyDef,R=a.FontPropertyDef,T=a.LengthPropertyDef,V=a.NumberPropertyDef,A=a.StringPropertyDef,E=a.PalettePropertyDef,x=i.PropertyType,j=i.PropertyVisibility,z=a.SlotDef,N=a.GeoSlotDef,O=a.TemporalSlotDef,L=a.SlotGroupDef,M=a.SlotType,F=a.SlotSubType,k=a.GeoSegmentDef,q=a.TemporalLevel,B=a.TemporalAttributeDef,H=a.GeoSpatialPart,G=a.VizDef,U=/^(?:boolean|number|string|array|object)$/i,W=/^(?:data(?:set|item|point)|item(?:class(?:set)?)?|tuple|value|customdata)$/i,X=t.freeze([new o("#319bd4;#86c43b;#f5ce22;#cf6c1b;#9380e8;#8555b5;#52d9bc;#24a399;#14665e;#a4bceb;#77a3e0;#396cb3;#1d4273;#c8d119;#acb336;#828a16;#5a610f;#e8b7cb;#e086b6;#b33681;#73154d"),new o("#5aaafa;#4178be;#af6ee8;#a6266e;#d74108;#ff7832;#fdd600;#00b4a0;#008571;#264a60;#7cc7ff;#7c1c58;#ff3ca0;#e71d32;#a53725;#efc100;#be9b00;#8cd211;#4b8400"),new o("#4d7aad;#86a9d9;#ce202c;#264a60;#5596e6;#959595;#464646;#4178be;#6d120f;#aeaeae;#645a5a;#dec0b2;#4178be;#a53725;#c7c7c7;#8c7300;#734098;#264a60;#739433;#1896bc"),new o("#1ec0d7;#0992da;#aeb6b6;#1dcdd8;#72b8f1;#e4ae80;#eccab7;#6b9bb3;#99d0dc;#c5baae;#1eadc8;#de9f5b;#ebac92;#e09085;#a8662d;#0193b8;#417380;#8fcbfd;#148fd3;#00b4a0")]),$=t.freeze([new l("#319bd4;#86c43b;#f5ce22;#cf6c1b;#9380e8;#8555b5;#52d9bc;#24a399;#14665e;#a4bceb;#77a3e0;#396cb3;#1d4273;#c8d119;#acb336;#828a16;#5a610f;#e8b7cb;#e086b6;#b33681;#73154d"),new l("#5aaafa;#4178be;#af6ee8;#a6266e;#d74108;#ff7832;#fdd600;#00b4a0;#008571;#264a60;#7cc7ff;#7c1c58;#ff3ca0;#e71d32;#a53725;#efc100;#be9b00;#8cd211;#4b8400"),new l("#4d7aad;#86a9d9;#ce202c;#264a60;#5596e6;#959595;#464646;#4178be;#6d120f;#aeaeae;#645a5a;#dec0b2;#4178be;#a53725;#c7c7c7;#8c7300;#734098;#264a60;#739433;#1896bc"),new l("#1ec0d7;#0992da;#aeb6b6;#1dcdd8;#72b8f1;#e4ae80;#eccab7;#6b9bb3;#99d0dc;#c5baae;#1eadc8;#de9f5b;#ebac92;#e09085;#a8662d;#0193b8;#417380;#8fcbfd;#148fd3;#00b4a0")]),K=t.freeze([new s("#c0e6ff;#7cc7ff;#5aaafa;#5596e6;#4178be;#325c80;#264a60","#ce202c;#ff5050;#f79d9d;#e8bfc9;#e9e0e0;#b4d8f0;#7cc7ff;#5596e6;#4178be"),new s("#c8f08f;#b4e051;#8cd211;#5aa700;#4b8400;#2d660a;#144d14","#4178be;#5596e6;#7cc7ff;#b4d8f0;#dfe9e9;#bbe085;#8cd211;#5aa700;#4b8400"),new s("#a7fae6;#6eedd8;#41d6c3;#00b4a0;#008571;#006d5d;#005448","#008571;#00b4a0;#41d6c3;#65dbc7;#dfe9e9;#d7aaff;#ba8ff7;#af6ee8;#9855d4")]),J=t.freeze([new u("#c0e6ff;#7cc7ff;#5aaafa;#5596e6;#4178be;#325c80;#264a60","#ce202c;#ff5050;#f79d9d;#e8bfc9;#e9e0e0;#b4d8f0;#7cc7ff;#5596e6;#4178be"),new u("#c8f08f;#b4e051;#8cd211;#5aa700;#4b8400;#2d660a;#144d14","#4178be;#5596e6;#7cc7ff;#b4d8f0;#dfe9e9;#bbe085;#8cd211;#5aa700;#4b8400"),new u("#a7fae6;#6eedd8;#41d6c3;#00b4a0;#008571;#006d5d;#005448","#008571;#00b4a0;#41d6c3;#65dbc7;#dfe9e9;#d7aaff;#ba8ff7;#af6ee8;#9855d4")]);function Y(e,n,r){t.defineProperties(this,{slot:{enumerable:!0,value:e},dataSetName:{enumerable:!0,value:n},slotName:{enumerable:!0,value:r}})}function Z(e){return e.type===M.Cont&&!e.optional}function Q(e){var t=c.stringAttr(e,"level",null);if(!q.hasValue(t))throw new TypeError("Invalid level: "+t);var n=c.boolAttr(e,"optional",!1);return new B(t,n)}function ee(e,t,n,r,i,a,o,s){if(!e)return null;var l=c.stringAttr(e,"part");if(!H.hasValue(l))throw new TypeError('Invalid part "'+l+'", must be latitude, longitude, featureid or caption');var u=s.resolve(c.stringAttr(e,"caption",l)),f=s.resolve(c.stringAttr(e,"description",null)),d=c.boolAttr(e,"optional",!1),p=c.stringAttr(e,"aggregation",null);if(null!==p&&!m.hasValue(p))throw new TypeError("Invalid Aggregation "+p+" for segment "+l);null===p&&(p=l===H.Latitude||l===H.Longitude?m.None:a);var h=c.stringAttr(e,"role",o);if(!_.hasValue(h))throw new TypeError("Invalid FieldRole: "+h+" for segment "+l);return k.create(t,n,r,i,d,u,f,p,h,l)}function te(e,n){if(!e)return null;var r=c.stringAttr(e,"name",null);if(!r)throw new Error("A slot name is mandatory");var i=c.stringAttr(e,"type",null);if(!i)throw new Error("A slot type is mandatory");if(i=i.toLowerCase(),!M.hasValue(i))throw new TypeError("Invalid SlotType: "+i+" (slot: "+r+")");var a=c.stringAttr(e,"subType",F.None);if(!F.hasValue(a))throw new TypeError("Invalid SlotSubType: "+a+" (slot: "+r+")");if((a===F.GeoSpatial||a===F.Temporal)&&i!==M.Cat)throw new Error("SlotSubType "+a+" is only valid for SlotType.Cat");var o=c.boolAttr(e,"subTypeOptional",!1),s=n.resolve(c.stringAttr(e,"caption",r)),l=n.resolve(c.stringAttr(e,"description",null)),u=c.boolAttr(e,"optional",i!==M.Cont),d=t.freeze(c.commaSeparatedAttr(e,"channel",f)),p=c.boolAttr(e,"multi",!1),h=i===M.Cont?1:+c.stringAttr(e,"maxLevels")||-1,g=c.stringAttr(e,"aggregation",null);if(g&&!m.hasValue(g))throw new TypeError("Invalid Aggregation: "+g+" (slot: "+r+")");if(null===g)g=i===M.Cat?m.None:m.Auto;else if(i===M.Cat&&g!==m.None)throw new Error("A Cat slot cannot have an aggregation other than Aggregation.None (found: "+g+")");var v=c.stringAttr(e,"role",null);if(null!==v&&!_.hasValue(v))throw new TypeError("Invalid FieldRole for slot "+r+": "+v);v||(v=_.Other);var b=c.stringAttr(e,"defaultMapping",y.None);if(!y.hasValue(b))throw new TypeError("Invalid DefaultMapping: "+b+" (slot: "+r+")");var I,w,C,S,P,D=i!==M.Cont&&c.boolAttr(e,"suppressMissing",!1),R=c.boolAttr(e,"hidden",!1);switch(a){case F.GeoSpatial:for(I=c.filterChildElementsByTag(e,/^segment$/i),w=new Array(I.length),S=0,P=I.length;S<P;++S)w[S]=ee(I[S],r,b,R,D,g,v,n);return t.freeze(w),new N(o,r,u,s,l,p,d,h,g,D,v,b,w,R);case F.Temporal:if(0===(I=c.filterChildElementsByTag(e,/^attribute$/i)).length)throw new Error("No attributes found (slot: "+r+")");for(C=new Array(I.length),S=0,P=I.length;S<P;++S)C[S]=Q(I[S]);return t.freeze(C),new O(o,r,u,s,l,p,d,h,g,D,v,b,C,R);default:return new z(i,a,o,r,u,s,l,p,d,h,g,D,v,b,R)}}function ne(e,t){if(!e)return null;var n=c.stringAttr(e,"caption",null);if(!n)throw new Error("A SlotGroup must have a caption");var r=t.resolve(c.stringAttr(e,"description",null));n=t.resolve(n);for(var i=d(e,h),a=0,o=i.length;a<o;++a)i[a]=te(i[a],t);return new L(n,r,i)}function re(e,n,r,i,a,o){if(!e)return null;var s=c.boolAttr(e,"optional",!1),l=c.filterChildElementsByTag(e,/^ref$/i).map((function(e){var t=c.stringAttr(e,"slot",null);if(!t)throw new Error("Slot reference missing slot property");var i=r(t);if(!i)throw new Error("Could not resolve slot "+t);var a=c.boolAttr(e,"optional",!!i.optional);if(!s&&!a&&i.optional)throw new Error('Slot reference "'+t+'" is not optional and used on a non optional DataSet, yet the referenced slot is marked optional');var l=G.createSlotRef(i,a,n);if(null!==(t=c.stringAttr(e,"reference",null))){var u=t.indexOf(":");if(u<0)throw new Error("Invalid slot reference: "+t+", syntax is dataSetName:slotName");o.push(new Y(l,t.substr(0,u),t.substr(u+1)))}return l})),u=c.stringAttr(e,"iterate","default").toLowerCase();switch(u){case"default":case"sorted":case"all":break;default:throw new Error("Invalid iterate value: "+u)}var f="data";a>1&&(f+=n),f=c.stringAttr(e,"name",f);var d="all"!==u,p=c.boolAttr(e,"uniqueDataPoints",!0);if(!d&&!p)throw new Error('DataSets with iterate="all" must have uniqueDataPoints true (the default)');return new v(n,t.freeze(l),f,s,d,"default"!==u,c.boolAttr(e,"requiresValues",l.some(Z)),p,i.resolve(c.stringAttr(e,"caption",i?i.get("dataset_defaultName"):f)))}function ie(e,n,i,a,o,s){if(!e)return null;var l=c.stringAttr(e,"name",null);if(!l)throw new Error("A property or group must have a name property");var u=e.tagName.toLowerCase();if("property"===u){if(!(u=c.stringAttr(e,"type",null)))throw new Error("Property "+l+" is missing a type");o&&o.warn('Property {0} is using deprecated xml: replace <property type="{1}" name="{0}" ...> with <{1} name="{0}" ...>',l,u)}if(!x.hasValue(u))throw new Error("Invalid property type: "+u);var d,p=a.resolve(c.stringAttr(e,"caption",l)),h=a.resolve(c.stringAttr(e,"description",null)),m=c.commaSeparatedAttr(e,"alias",f),g=c.commaSeparatedAttr(e,"tags",null),v=n?j.Configuration:j.Listed;if(u===x.Group){var b=c.filterChildElements(e),y=b.length;if(y<1)throw new Error("Empty group: "+l);var _=new Array(y);d=!0;for(var w=!n,z=0;z<y;++z){var N=ie(b[z],n,i,a,o,s);d&&!N.deprecated&&(d=!1),w&&N.visibility!==j.Excluded&&(w=!1),_[z]=N}return w&&(v=j.Excluded),new C(l,p,h,m,g,v,d,t.freeze(_))}d=c.boolAttr(e,"deprecated",!1);var O=c.commaSeparatedAttr(e,"affectedBy",f);if(!d&&O.length>0)throw new Error("AffectedBy can only be used on deprecated properties");var L=c.boolAttr(e,"allowNull",!1),M=c.stringAttr(e,"defaultValue",null),F=c.boolAttr(e,"writable",!1);if(d&&F)throw new Error("Deprecated property "+l+" cannot be writable, its value must be updated via the deprecated property API");var k=c.boolAttr(e,"requiresData",!1);switch(!n&&d&&(v=j.Excluded),u){case x.Boolean:return new S(l,p,h,m,g,v,d,O,L,S.parse(M,L,null),F,k);case x.Color:return new P(l,p,h,m,g,v,d,O,L,P.parse(M,L,null),F,k);case x.Enum:var q=t.freeze(c.filterChildElementsByTag(e,/^possiblevalue$/i).map((function(e){var n=c.getTextContent(e);return t.freeze(new I(n,a.resolve(c.stringAttr(e,"caption",n)),a.resolve(c.stringAttr(e,"description",null))))}))),B=c.boolAttr(e,"dynamic",!1);return new D(l,p,h,m,g,v,d,O,L,D.parse(M,L||B&&q.length<1,q,null),F,k,q,B);case x.Font:return new R(l,p,h,m,g,v,d,O,L,R.parse(M,L,null),F,k);case x.Length:return new T(l,p,h,m,g,v,d,O,L,T.parse(M,L,null),F,k,c.boolAttr(e,"allowNegative",!1));case x.Number:return new V(l,p,h,m,g,v,d,O,L,V.parse(M,L,null),F,k,V.parse(c.stringAttr(e,"minValue",null),!0,null),V.parse(c.stringAttr(e,"maxValue",null),!0,null));case x.String:return new A(l,p,h,m,g,v,d,O,L,A.parse(M,L,null),F,k);case x.Palette:var H=null,G=c.stringAttr(e,"slot",null),U=c.stringAttr(e,"type",null);if(null!==G){if(!(H=i(G)))throw new Error("Could not resolve slot "+G);if(!U&&"any"===(U=H.type))throw new Error("Cannot omit Palette type for a Slot of type any")}var W=r.valueOf(U,!0);if(!W)throw new Error("Invalid PaletteType: "+U);var Y=s.get(W)||0;s.set(W,Y+1);var Z=function(e){switch(e){case r.Cat:return X;case r.Cont:return K;case r.CustomCat:return $;case r.CustomCont:return J;default:throw new Error("Invalid PaletteType: "+e)}}(W),Q=E.parse(W,M,L,Z[Y%Z.length]);return new E(l,p,h,m,g,v,d,O,L,Q,F,k,H,W,c.numberAttr(e,"min",null),c.numberAttr(e,"max",null));default:throw new Error("vizDefParser does not support type: "+u)}}function ae(e,n){if(!e)return null;var r=t.freeze(c.filterChildElementsByTag(c.findChildElementByTag(e,/^decorations$/i),/^decoration$/i).map((function(e){return function(e,n){if(!e)return null;var r=c.stringAttr(e,"name",null),i=c.stringAttr(e,"type",null),a=null,o=null;if(!i)throw new Error("Decoration "+r+" is missing a type");if(!U.test(i))throw new Error("Decoration "+r+" has an unsupported type: "+i);i=i.toLowerCase();var s=c.commaSeparatedAttr(e,"target",null),l=+(s&&s.length)||0;if(l<1)throw new Error("Decoration "+r+" is missing targets, at least 1 target is required");var u=c.stringAttr(e,"targetSlot",null);if(null!==u&&!(a=n(u)))throw new Error("Decoration "+r+" references non-existing slot: "+u+" in the targetSlot definition");var f=c.stringAttr(e,"referenceSlot",null);if(null!==f&&!(o=n(f)))throw new Error("Decoration "+r+" references non-existing slot: "+f+" in the referenceSlot definition");for(var d=0;d<l;++d){var p=s[d];if(!W.test(p))throw new Error("Invalid decoration target: "+p);s[d]=p.toLowerCase()}var h=c.boolAttr(e,"deprecated",!1);return new b(r,i,t.freeze(s),a,o,h)}(e,n)})));return new g(r)}t.declareClass(Y,{slot:null,dataSetName:null,slotName:null}),t.defineObject(e,{fromXml:function(e,r,i){if(!e)return null;var a=c.stringAttr(e,"version",null),o=f,s=null,l=f,u=f,m=f,v=null,b=f;if(!a)throw new Error("Invalid VizDef: missing version");if((a=+a)!=a||a<3)throw new Error("Invalid VizDef version: "+c.stringAttr(e,"version",null));for(var y,I=0,_=e.childNodes.length;I<_;++I)if(1===(y=e.childNodes[I]).nodeType)switch((y.tagName||"").toLowerCase()){case"slots":if(o=d(y,p),s=d(y,h),o.length>0){if(s.length>0)throw new Error("VizDef has a slot outside of a group node.");s=null}break;case"datasets":l=d(y,/^dataset$/i);break;case"properties":u=c.filterChildElements(y);break;case"configuration":m=c.filterChildElements(y);break;case"capabilities":v=y;break;case"metadata":b=d(y,/^metadataentry$/i)}if(s){for(I=0,_=s.length;I<_;++I)s[I]=te(s[I],r);(o=new Array(1))[0]=new L(r.get("dataset_defaultName"),null,s)}else for(I=0,_=o.length;I<_;++I)o[I]=ne(o[I],r);var C,S=G.resolveSlot.bind(G,o),P=new n,D=[];for(I=0,_=l.length;I<_;++I){if(C=re(l[I],I,S,r,_,D),P.has(C.name))throw new Error("DataSet name must be unique, found duplicate name: "+C.name);P.set(C.name,C),l[I]=C}for(I=0,_=D.length;I<_;++I){var R=D[I];if(!(C=P.get(R.dataSetName)))throw new Error("Could not resolve data set "+R.dataSetName+", data sets must be referenced by name.");var T=C.getSlot(R.slotName);if(!T)throw new Error("Could not resolve referenced slot "+R.slotName+" on data set "+C.name);R.slot.setReference(T)}var V,A=new n;for(I=0,_=u.length;I<_;++I)u[I]=ie(u[I],!1,S,r,i,A);for(I=0,_=m.length;I<_;++I)m[I]=ie(m[I],!0,S,r,i,A);for(v=v?ae(v,S):new g(f),I=0,_=b.length;I<_;++I)b[I]=(V=b[I])?new w(c.stringAttr(V,"name",null),c.stringAttr(V,"value",null)):null;return new G(null,t.freeze(o),function(e){var n,r=e.length;if(r<1)n=f;else if(r<2)n=e[0].slots;else{n=[];for(var i=0;i<r;++i)n.push.apply(n,e[i].slots);t.freeze(n)}return n}(o),t.freeze(l),t.freeze(u),t.freeze(m),v,t.freeze(b))},fromXmlDocument:function(t,n,r){return e.fromXml(c.findChildElementByTag(t,/^visualizationdefinition$/i),n,r)},fromXmlString:function(t,n,r){return e.fromXmlDocument(c.fromString(t),n,r)}},"vizDefParser")})),define("com/ibm/vipr/VizBundleEntry",["barejs!decl","barejs!NMap","./api/ResourceType","./internal/VizBundle","./internal/util/Logger","./internal/util/ResourceLoader","./internal/vizdef/UserConfig","./internal/vizdef/vizDefParser","./vizdef/VisualizationDef"],(function(e,t,n,r,i,a,o,s,l){"use strict";var u=new t;return e.declareClass((function(n,r,s,l,c){var f=function(e){var t=u.get(e);return t||u.set(e,t=new i(e)),t}(n);e.defineProperties(this,{id:{enumerable:!0,value:n},resLoader:{enumerable:!0,value:new a(r,n)},userConfig:{enumerable:!0,value:o.create(s,f)},fileName:{enumerable:!0,value:l},userData:{enumerable:!0,value:c},_bundles:{value:new t},_logger:{value:f}})}),{id:null,resLoader:null,userConfig:null,fileName:null,userData:null,_bundles:null,_logger:null,load:function(e){var t=function(e){var t=null==e?a.getDefaultLocale():e;if("string"!=typeof t)throw new TypeError(e+" is not a valid locale");return t}(e),i=this._bundles,o=null;if(i.has(t)&&(o=i.get(t)),!o){var u=this.resLoader,c=this.id,f=this.fileName,d=this.userConfig,p=this.userData,h=this._logger;o=u.loadManifest(f).then((function(e){if(null===e.getServiceDescription(null))throw new Error("VizBundle's manifest doesn't contain a service with a supported language and apiVersion.");return u.createBundleNls(t).then((function(i){return u.load(e.getServiceDefinition(),n.Xml,t).then((function(n){if(!n)throw new Error("Invalid vizdef file");var a=s.fromXmlDocument(n,i,h);return new r(c,u,d,p,e,l.applyUserConfig(a,d),i,h,t).toHost()}))}))})),i.set(t,o),o.catch((function(){i.delete(t)}))}return o},unload:function(){this.resLoader.unload(),this._bundles.clear()}})})),define("com/ibm/vipr/VIPR",["barejs!decl","barejs!NMap","./api/api","./data/data","./info/info","./property/property","./util/util","./vizdef/vizdef","./VizBundleEntry","./internal/util/Deferred","./internal/util/StringUtil","./internal/util/log"],(function(e,t,n,r,i,a,o,s,l,u,c,f){"use strict";function d(){e.defineProperties(this,{_entries:{value:new t},_cachedIds:{writable:!0,value:null}})}return e.declareClass(d,n.IVIPR,{api:e.freeze(n),data:e.freeze(r),info:e.freeze(i),property:e.freeze(a),util:e.freeze(o),vizdef:e.freeze(s),create:function(){var e=new d,t=arguments[0];return t&&"bundles"in t&&Array.prototype.forEach.call(Object(t.bundles),e._registerFromObject,e),e.as(n.IVIPR)}},{_entries:null,_cachedIds:null,bundleIds:{enumerable:!0,get:"getBundleIds"},getBundleIds:function(){if(this._cachedIds)return this._cachedIds;var t=new Array(this._entries.size);return t.length=0,this._entries.forEach((function(e,n){t.push(n)})),this._cachedIds=e.freeze(t),t},register:function(e,t){if(!e)throw new Error(c.format('Invalid vizbundle id "{0}" specified',e));if(this._entries.has(e))throw new Error(c.format('The VizBundle id "{0}" is already registered.',e));var n=t,r=arguments[2],i=arguments[3],a=arguments[4];n=n.replace(/(?:^|\/)([^\/\\\r\n]+\.[xX][mM][lL](?:[\?#][^\r\n]*)?)?$/,(function(e,t){if(t)if(i){if(i!==t)throw new Error("The location contains a fileName which does not match the specified fileName")}else i=t;return""})),i||(i="manifest.xml");var o=new l(e,n,r,i,a);this._entries.set(o.id,o),this._cachedIds&&(this._cachedIds=null)},unregister:function(e){if(!e)throw new Error(c.format('Invalid vizbundle id "{0}" specified',e));var t=this._entries.get(e),n=this._entries.delete(e);return n&&(t.unload(),this._cachedIds&&(this._cachedIds=null)),n},isRegistered:function(e){return this._entries.has(e)},load:function(e){var t=this._entries.get(e);return t?t.load(arguments[1]):u.reject(new Error(c.format('There is no VizBundle with id "{0}" registered.',e)))},unload:function(e){var t=this._entries.get(e);if(!t)throw new Error(c.format('There is no VizBundle with id "{0}" registered.',e));t.unload()},loadAll:function(){var e=arguments[0];return u.all(this.getBundleIds().map((function(t){return this.load(t,e)}),this))},newViz:function(e,t,n,r,i){return this.load(e).then((function(e){return e.create(n,r,i)}))},addAppender:function(e){return f.add(e)},removeAppender:function(e){return f.remove(e)},_registerFromObject:function(e){var t=Object(e);if(!("id"in t)||!("location"in t))throw new TypeError("A registration object must have an id and location property");this.register(t.id,t.location,t.config,t.fileName,t)}})})),define("com/ibm/vipr/rs/v1/IRSAxisItem",["barejs","./IRSHittable"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getType:function(){},getSlot:function(){},getTuple:function(){},getValue:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSCapability",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{getSlot:function(){},getName:function(){},getAttributes:function(){}}),t})),define("com/ibm/vipr/rs/v1/IRSEncoding",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{getRSType:function(){},getChannel:function(){},getSlot:function(){},getRef:function(){},getCaption:function(){},getSubCaption:function(){}}),t})),define("com/ibm/vipr/rs/v1/IRSCatEncoding",["barejs","./IRSEncoding"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getEntries:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSCatEncodingEntry",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{getCaption:function(){},getColor:function(){},getShape:function(){},isSelected:function(){},isHighlighted:function(){},getRef:function(){}}),t})),define("com/ibm/vipr/rs/v1/IRSContEncoding",["barejs","./IRSEncoding"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getDomain:function(){},getInterpolate:function(){},getStops:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSCustomEncoding",["barejs","./IRSEncoding"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getPayload:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSCustomData",["barejs","./data/IRSDataNode"],(function(e,t){"use strict";function n(){}return e.decl.declareInterface(n,t,{getType:function(){},getId:function(){}}),n})),define("com/ibm/vipr/rs/v1/IRSCustomDataDecorated",["barejs","./IRSCustomData","./data/IRSDecorated"],(function(e,t,n){"use strict";function r(){}return e.decl.declareInterface(r,t,n,{getCustomSet:function(){},setDecoration:function(e,t){},removeDecoration:function(e){},clearDecorations:function(){}}),r})),define("com/ibm/vipr/rs/v1/IRSInteractivity",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{startInteractivity:function(e,t){},canTranslate:function(){},translate:function(e,t,n){},canZoom:function(){},zoom:function(e,t,n){},canZoomIn:function(){},canZoomOut:function(){},canReset:function(){},reset:function(){},cancelInteractivity:function(e,t){},endInteractivity:function(e,t){}}),t})),define("com/ibm/vipr/rs/v1/IRSRegion",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{getName:function(){},getSlots:function(){},getBounds:function(){}}),t})),define("com/ibm/vipr/rs/v1/IRSRenderInterrupt",["barejs"],(function(e){"use strict";function t(){}return e.decl.declareInterface(t,{supportsPause:function(){},supportsAbort:function(){},supportsComplete:function(){},pause:function(e){},resume:function(e){},complete:function(e){},abort:function(e){}}),t})),define("com/ibm/vipr/rs/v1/data/RSValueType",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Missing="missing",this.Numeric="numeric"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"missing":return t.Missing;case"numeric":return t.Numeric;default:return null}}});return t})),define("com/ibm/vipr/rs/v1/RSFontStyle",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Normal="normal",this.Italic="italic",this.Oblique="oblique"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"normal":return t.Normal;case"italic":return t.Italic;case"oblique":return t.Oblique;default:return null}},toCssString:function(e){return null===e?"":e}});return t})),define("com/ibm/vipr/rs/v1/RSFontWeight",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Thin=100,this.ExtraLight=200,this.Light=300,this.Normal=400,this.Medium=500,this.SemiBold=600,this.Bold=700,this.ExtraBold=800,this.Heavy=900}),{fromValue:function(e){switch(e){case 100:return t.Thin;case 200:return t.ExtraLight;case 300:return t.Light;case 400:return t.Normal;case 500:return t.Medium;case 600:return t.SemiBold;case 700:return t.Bold;case 800:return t.ExtraBold;case 900:return t.Heavy;default:return null}},parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"100":return t.Thin;case"200":return t.ExtraLight;case"300":return t.Light;case"400":case"normal":return t.Normal;case"500":return t.Medium;case"600":return t.SemiBold;case"700":case"bold":return t.Bold;case"800":return t.ExtraBold;case"900":return t.Heavy;default:return null}},toCssString:function(e){if(null===e)return"";switch(e){case t.Normal:return"normal";case t.Bold:return"bold";default:return e.toString()}}});return t})),define("com/ibm/vipr/rs/v1/RSLengthUnit",["barejs"],(function(e){"use strict";const t=e.decl.declareEnum((function(){this.Em="em",this.Ex="ex",this.Percentage="%",this.Centimeter="cm",this.Millimeter="mm",this.Inch="in",this.Pica="pc",this.Point="pt",this.Pixel="px"}),{parse:function(e){if(null===e)return null;switch(e.toLowerCase()){case"em":return t.Em;case"ex":return t.Ex;case"%":return t.Percentage;case"cm":return t.Centimeter;case"mm":return t.Millimeter;case"in":return t.Inch;case"pc":return t.Pica;case"pt":return t.Point;case"px":return t.Pixel;default:return null}}});return t}));
|