false
Search
Clear search
Close search
Google apps
Main menu
11627776293195060740
true
Search Help Center
true
true
true
true
true
102095

");return(new DOMParser).parseFromString(fh(a),"text/html").body.children[0]} function cn(a,b){if(!a)return Vh(Ym);var c=document.createElement("div").style;fn(a).forEach(function(e){var f=xf&&e in $m?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");f.lastIndexOf("--",0)!=0&&f.lastIndexOf("var",0)!=0&&(e=Um(a,e),e=tm(f,e,b),e!=null&&Vm(c,f,e))});return c.cssText||""} function gn(a){var b=Array.from(Mm(Bm,a,"getElementsByTagName",["STYLE"])),c=qf(b,function(n){return cf(Qm(n).cssRules)});c=bn(c);for(var e=[],f=0;f=0)){var f=Um(b,e);Vm(a.style,e,f)}})} function fn(a){Fd(a)?a=cf(a):(a=Oi(a),Ve(a,"cssText"));return a} ;var jn=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,kn=0;function ln(){this.O=[];this.N=[];this.v="data-elementweakmap-index-"+kn++} ln.prototype.set=function(a,b){Mm(xm,a,"hasAttribute",[this.v])?(a=parseInt(Mm(ym,a,"getAttribute",[this.v])||null,10),this.N[a]=b):(b=this.N.push(b)-1,Om(a,this.v,b.toString()),this.O.push(a));return this};ln.prototype.get=function(a){if(Mm(xm,a,"hasAttribute",[this.v]))return a=parseInt(Mm(ym,a,"getAttribute",[this.v])||null,10),this.N[a]};ln.prototype.clear=function(){this.O.forEach(function(a){Mm(Am,a,"removeAttribute",[this.v])},this);this.O=[];this.N=[]};function mn(){this.O=document.implementation.createHTMLDocument("")} mn.prototype.ma=function(a){var b=this.O.createElement("span");this.N&&this.ka=="*"&&(b.id=this.N);this.ta&&(a=en("

"+a+"
"),gn(a),a=a.innerHTML);a=dh(a);var c=document.createElement("template");if("content"in c)fi(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;fi(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=jn?new WeakMap:new ln;e=a.nextNode();){a:{var f=e;switch(Sm(f)){case 3:f=nn(this,f);break a;case 1:if(Rm(f).toUpperCase()=="TEMPLATE")f=null;else{var h=Rm(f).toUpperCase();if(h in this.na||Wm(f)!="http://www.w3.org/1999/xhtml")h=null;else if(this.ha[h])h=this.O.createElement(h);else{var n=this.O.createElement("span");this.Aa&&Om(n,"data-sanitizer-original-tag",h.toLowerCase());h=n}if(n=h){var r=Nm(f);if(r!=null)for(var t=0;h=r[t];t++)if(h.specified){var y=f,E=h;var ma=E.name;if(ma.lastIndexOf("data-sanitizer-",0)==0)ma=null;else{var na=Rm(y);E=E.value;var sa={tagName:Wd(na).toLowerCase(),attributeName:Wd(ma).toLowerCase()},ua={xh:void 0};sa.attributeName=="style"&&(ua.xh=Pm(y));y=on(na,ma);y in this.v?ma=(0,this.v[y])(E,sa,ua):(ma=on(null,ma),ma=ma in this.v?(0,this.v[ma])(E,sa,ua):null)}ma!==null&&Om(n,h.name,ma)}f=n}else f=null}break a;default:f=null}}if(f){if(Sm(f)==1&&c.set(e,f),e=Tm(e),h=!1,e)n=Sm(e),r=Rm(e).toLowerCase(),t=Tm(e),n!=11||t?r=="body"&&t&&(n=Tm(t))&&!Tm(n)&&(h=!0):h=!0,n=null,h||!e?n=b:Sm(e)==1&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else Sj(e)}c.clear&& c.clear();return b};var pn={APPLET:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0};var qn={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,AUDIO:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,VIDEO:!0,WBR:!0};var rn={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0};function sn(a){this.O=document.implementation.createHTMLDocument("");a=a||new tn;un(a);this.v=fj(a.v);this.na=fj(a.Aa);this.ha=fj(a.Ia);this.Aa=a.ta;a.ka.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new Td('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new Td('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=vn},this);a.La.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||rn[b])throw new Td("Only valid custom element tag names allowed, got: %s.",[b]);this.ha[b]=!0},this);this.ya=a.O;this.ka=a.ya;this.N=null;this.ta=a.oa} Rd(sn,mn);function wn(a){return function(b,c){b=Wd(b);return(c=a(b,c))&&nh(c)!=mh.toString()?nh(c):null}} function tn(){this.v={};Qe([hm,im],function(a){Oi(a).forEach(function(b){this.v[b]=vn},this)},this);this.N={};this.ka=[];this.La=[];this.Aa=fj(pn);this.Ia=fj(qn);this.ta=!1;this.Ma=xn;this.ma=this.ha=this.Pa=this.O=fm;this.ya=null;this.na=this.oa=!1} function yn(a,b){return function(c,e,f,h){c=a(c,e,f,h);return c==null?null:b(c,e,f,h)}} function zn(a,b,c,e){a[c]&&!b[c]&&(a[c]=yn(a[c],e))} function un(a){if(a.na)throw Error("HtmlSanitizer.Builder.build() can only be used once.");zn(a.v,a.N,"* USEMAP",An);var b=wn(a.Ma);["* ACTION","* CITE","* HREF"].forEach(function(e){zn(this.v,this.N,e,b)},a);var c=wn(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){zn(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){zn(this.v,this.N,e,Od(Bn,this.Pa))},a);zn(a.v,a.N,"A TARGET",Od(Cn,["_blank","_self"]));zn(a.v,a.N,"* CLASS",Od(Dn,a.ha));zn(a.v,a.N,"* ID",Od(En,a.ha));zn(a.v,a.N,"* STYLE",Od(a.ma,c));a.na=!0} function xn(a){return th(a)} function on(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function vn(a){return Wd(a)} function Cn(a,b){b=Wd(b);return Pe(a,b.toLowerCase())>=0?b:null} function An(a){return(a=Wd(a))&&a.charAt(0)=="#"?a:null} function Bn(a,b,c){b=Wd(b);return a(b,c)} function Dn(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f0){var b=this.O.createElement("span");b.appendChild(a);a=b}a=(new XMLSerializer).serializeToString(a);a=a.slice(a.indexOf(">")+1,a.lastIndexOf(""));return dh(a)};sn.prototype.hk=function(a){this.N=Fn(this);return mn.prototype.ma.call(this,a)};function Fn(a){var b=!("STYLE"in a.na)&&"STYLE"in a.ha;return a.ka=="*"&&b?"sanitizer-"+(Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)):a.ka} function nn(a,b){var c=b.data;(b=Tm(b))&&Rm(b).toLowerCase()=="style"&&!("STYLE"in a.na)&&"STYLE"in a.ha&&(c=hh(dn(c,a.N,Nd(function(e,f){return this.ya(e,{Jl:f})},a))));return document.createTextNode(c)} ;function Gn(a,b,c){var e=Hn(b);a=In(e,a,c||{});return Jn(b,e,a)} Pd("aplos.util.SimpleTemplate.populateToText",Gn);function Kn(a,b,c,e,f){Ln(b,c,e).forEach(function(h){f?a.insertBefore(h,f):a.appendChild(h)})} Pd("aplos.util.SimpleTemplate.appendChildren",Kn);function Ln(a,b,c){c=c||{};var e=Hn(b);a=In(e,a,c);var f=[],h=[];Li(a,function(n,r){n instanceof Node||Array.isArray(n)&&n[0]instanceof Node?h.push(r):f.push(r)});typeof b==="string"||f.length?(b=Jn(b,f,a),c=Mn(b)):(e=document.createDocumentFragment(),c=document.createElement("span"),e.appendChild(c),fi(c,b));h.length&&Nn(c,a);return Array.prototype.map.call(c.childNodes,function(n){return n})} Pd("aplos.util.SimpleTemplate.populateToNodes",Ln);function Mn(a){var b="";a.match(/^/i)&&a.match(/<\/td>$/i)&&(b=b||"td",a=""+a+"");a.match(/^/i)&&a.match(/<\/tr>$/i)&&(b=b||"tr",a=""+a+"");a.match(/^<(tbody|thead|tfoot)>/i)&&a.match(/<\/(tbody|thead|tfoot)>$/i)&&(b=b||a.match(/^<(tbody|thead|tfoot)>/i)[1],a=""+a+"
");a=On(a);b&&(a=a.querySelector(b).parentNode);return a} function Nn(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?Pn(e,f,b):f.childNodes.length&&c.push(f)})} function Pn(a,b,c){if(b.textContent.match(Qn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,h=[];f=Qn.exec(b);){f.index>0&&h.push(document.createTextNode(b.slice(0,f.index)));var n=c[f[1]];n instanceof Node?h.push(n.cloneNode(!0)):Array.isArray(n)&&n[0]instanceof Node&&n.forEach(function(r){h.push(r.cloneNode(!0))});b=b.slice(f.index+f[0].length);Qn.lastIndex=0}b&&h.push(document.createTextNode(b));h.forEach(function(r){a.insertBefore(r,e)})}} function Jn(a,b,c){var e=Rn(a);b.forEach(function(f){var h=c[f];typeof h==="number"||Gd(h)||typeof h==="boolean"?h=h.toString():(h instanceof Node?h=h.outerHTML:h instanceof ch?h=fh(h).toString():h=ji(Rn(h)),h=h.replace("$","$$$$"));f=String("{{"+f+"}}").replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");e=e.replace(new RegExp(f,"g"),h)});return e} function Rn(a){return a instanceof ch?fh(a).toString():""+a} function In(a,b,c){var e={};a.forEach(function(f){var h=Ed(f,b);h==null&&f.indexOf("datum.")===0&&(f.match(/\./g)||[]).length>1&&(h=b.datum[f.substr(6)]);if(typeof h==="function"){var n=f.lastIndexOf("."),r=b;n>0&&(r=Ed(f.substring(0,n),b));h=h.apply(r)}(n=c[f])&&(h=n.apply(b,[h,b]));e[f]=h!=null?h:""});return e} function Hn(a){a=Rn(a);if(!a||!a.trim().length)return[];for(var b,c={};b=Qn.exec(a);)c[b[1]]=!0;return Oi(c)} Pd("aplos.util.SimpleTemplate.extractTemplateVariables",Hn);Pd("aplos.util.SimpleTemplate.setSanitizerFunction",function(a){On=a});Pd("aplos.util.SimpleTemplate.setSanitizer",function(a){On=a.hk.bind(a)});function On(a){return Vn.hk(a)} var Wn=new tn;Wn.ma=function(a,b,c,e){if(!e.xh)return null;b=cn(e.xh,function(f,h){c.Jl=h;f=a(f,c);var n;f==null?n=null:n=new lh(f);return n});return b==""?null:b};(function(a,b){for(var c=1;c=0?a.slice(0,e):a;e<0&&(a=f+".autoNamespace"+this.ha++);if(b){c&&(b=Nd(b,c));var h=this.N[f];h||(h=[],this.N[f]=h);Ve(h,this.v[a]);this.v[a]=b;h.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],Ve(this.N[f]||[],b),delete this.v[a];else if(a.length>1)for(h in this.v)b=h.length-a.length,b>=0&&h.indexOf(a,b)==b&&(b=this.v[h],delete this.v[h],f=h.slice(0,h.indexOf(".")),Ve(this.N[f]||[],b))};io.prototype.ob=function(a,b,c){if(this.O.hasOwnProperty(a)){var e=this.N[a];if(e){e=e.slice();for(var f=Array.prototype.slice.call(arguments,2),h=0;h0};w.deselectAll=function(){!this.N&&this.Jd()&&(this.v.clear(),lo(this))};w.Zg=function(a,b){this.Xa.on("selectionChange."+a,b)};function lo(a){a.Xa.ob("selectionChange",a,a)} w.Cn=function(){return this.N};w.lock=function(){this.N||(this.N=!0,mo(this))};w.unlock=function(){this.N&&(this.N=!1,mo(this))};w.Pn=function(a,b){this.Xa.on("selectionLockChange."+a,b)};function mo(a){a.Xa.ob("selectionLockChange",a,a)} ko.prototype.onSelectionLockChange=ko.prototype.Pn;ko.prototype.unlock=ko.prototype.unlock;ko.prototype.lock=ko.prototype.lock;ko.prototype.isLocked=ko.prototype.Cn;ko.prototype.onSelectionChange=ko.prototype.Zg;ko.prototype.deselectAll=ko.prototype.deselectAll;ko.prototype.hasSelection=ko.prototype.Jd;ko.prototype.isDatumSelected=ko.prototype.Dj;ko.prototype.deselectDatum=ko.prototype.Nl;ko.prototype.selectDatum=ko.prototype.ei;ko.prototype.setSelection=ko.prototype.jh;ko.prototype.setSeriesSelectionProperties=ko.prototype.Eo;ko.prototype.setDataSelectionProperties=ko.prototype.oo;ko.prototype.setSelectionProperties=ko.prototype.Ci;Pd("aplos.chart.SeriesDataSelectionModel",ko);Pd("aplos.chart.SeriesDataSelectionModel.FULL_DATUM_KEY","__datum__");function no(a){this.N={};this.v=a||null;this.O={}} function oo(a,b){var c=po(a,b);return c?oo(a,c):a.N[b]?!0:a.v?oo(a.v,b):!1} no.prototype.zg=function(a,b){var c=this.N;a in c&&delete c[a];this.O[a]=b;return this};no.prototype.set=function(a,b,c){var e=this.O;a in e&&delete e[a];this.N[a]=bp(this,b,c);return this};no.prototype.get=function(a,b){var c=po(this,a);return c?this.get(c,b):(c=this.N[a])?c:this.v?this.v.get(a,b):cp(a,b)};function bp(a,b,c){if(typeof b==="function"){var e=Nd(b,a);return c?function(f,h){f=e(f,h);return f!=null?+f:f}:e}return Nd(function(f){f=f?f[b]:void 0;return f===void 0?b:c&&f!==null?+f:f},a)} function cp(a,b){return function(c){c=c[a];if(c===void 0)throw Error("Please either include a property called "+a+" in the data or specify a value in the configuration.");return b&&c!=null?+c:c}} function po(a,b){if(!a.N[b]){if(a.O[b])return a.O[b];if(a.v)return po(a.v,b)}return null} ;function dp(a,b){this.O=a;this.ha=null;this.v=b||null;this.N=b?new no(b.N):new no;this.ta=this.ka=this.ma=null;this.Aa={};this.ya=this.oa=this.na=null} w=dp.prototype;w.Kb=function(){return this.O};w.Ng=function(){return this.ya?this.ya:this.v?this.v.Ng():null};w.Rh=function(){return new dp(this.O,this)};function ep(a,b){a.ya=b;b.x&&a.domain(b.x);b.xLowerBound&&a.Me(fp(b.xLowerBound));b.xUpperBound&&a.Ne(fp(b.xUpperBound));b.x0&&a.he(fp(b.x0));b.y&&a.measure(fp(b.y));b.yLowerBound&&a.ff(fp(b.yLowerBound));b.yUpperBound&&a.hf(fp(b.yUpperBound));b.y0&&a.Lc(fp(b.y0));b.domainFormatter&&a.Ed(b.domainFormatter);b.measureFormatter&&a.Ub(b.measureFormatter);a.displayName(b.displayName||b.name);a.Vb(b.rendererId);a.qe(b.measureAxisId);a.Uf(b.overlay);["category","datumClickState","datumHoverState"].forEach(function(e){return gp(a,e,b[e],!0,!1)});"color dashPattern dataId datumClass domain key label labelTemplate strokeWidth radius".split(" ").forEach(function(e){return hp(a,e,b,!0,!1)});"delta domainLowerBound domainOffset domainUpperBound latitude longitude measure measureLowerBound measureOffset measureUpperBound".split(" ").forEach(function(e){return hp(a,e,b,!1,!0)});var c=c||[];c.forEach(function(e){return hp(a,e,b,!0,!1)})} function gp(a,b,c,e,f){c!=null&&(typeof c!=="string"||e||(c=fp(c)),typeof c==="function"&&(c=Nd(c,a)),a.N.set(b,c,f))} function hp(a,b,c,e,f){var h=c[b];(c=c[b+"ColumnId"])&&(h=fp(c,e?h:null));gp(a,b,h,e,f)} function fp(a,b){return function(c){return c&&c.hasOwnProperty(a)?c[a]:b}} function ip(a,b){for(var c=a.domain(),e=$n(a,"domainOffset")?a.he():void 0,f=$n(a,"domainLowerBound")?a.Me():void 0,h=$n(a,"domainUpperBound")?a.Ne():void 0,n=a.measure(),r=a.Lc(),t=$n(a,"measureLowerBound")?a.ff():void 0,y=$n(a,"measureUpperBound")?a.hf():void 0,E=a.zh(),ma=a.key(),na=a.radius(),sa=a.color(),ua=a.Le(),ta=a.Fc(),Ba=$n(a,"strokeWidth")?a.strokeWidth():void 0,ya=a.label(),Aa=$n(a,"category")?a.Gb():void 0,Ca=Array(b.length),Fa=0;Fa=0})} function pp(a){return a.Aa.filter(function(b){return b.Bc!==!0}).length>0} function tp(a,b){a={Ca:0n){r=xp(f);for(e=a=0;e0&&y.Ca.heighth){n=xp(e);for(c=a=0;c0&&t.Ca.width=0)?a.oa:b.height-a.ma,h=0;h=0)?a.ka:b.width-a.na,h=a.oa;a=b.height-a.ma;for(b=0;b-1?(b=a[n],c||(b.Ag=!1)):(b=new Mp(b,this.src,h,!!e,f),b.Ag=c,a.push(b));return b};Op.prototype.remove=function(a,b,c,e){a=a.toString();if(!(a in this.v))return!1;var f=this.v[a];b=Pp(f,b,c,e);return b>-1?(Np(f[b]),We(f,b),f.length==0&&(delete this.v[a],this.N--),!0):!1};function Qp(a,b){var c=b.type;c in a.v&&Ve(a.v[c],b)&&(Np(b),a.v[c].length==0&&(delete a.v[c],a.N--))} Op.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.v)if(!a||c==a){for(var e=this.v[c],f=0;f-1?b[a]:null)&&cq(c))} function cq(a){if(typeof a!=="number"&&a&&!a.Zf){var b=a.src;if(b&&b[Kp])Qp(b.v,a);else{var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent?b.detachEvent($p(c),e):b.addListener&&b.removeListener&&b.removeListener(e);Tp--;(c=Yp(b))?(Qp(c,a),c.N==0&&(c.src=null,b[Rp]=null)):Np(a)}}} function $p(a){return a in Sp?Sp[a]:Sp[a]="on"+a} function aq(a,b){if(a.Zf)a=!0;else{b=new Jp(b,this);var c=a.listener,e=a.Pg||a.src;a.Ag&&cq(a);a=c.call(e,b)}return a} function Yp(a){a=a[Rp];return a instanceof Op?a:null} var dq="__closure_events_fn_"+(Math.random()*1E9>>>0);function Wp(a){if(typeof a==="function")return a;a[dq]||(a[dq]=function(b){return a.handleEvent(b)});return a[dq]} ;var eq=jh("");function fq(){this.port=this.v=null;this.N=[]} fq.prototype.load=function(){var a=this,b=gq();this.v=hq(b);iq().then(function(){a.v&&document.body.appendChild(a.v)});return jq(this.v,b).then(function(c){for(a.port=c.ports[0];a.N.length>0;)c=a.N.shift(),a.port.postMessage(c.data,c.Uo)})};fq.prototype.exec=function(a,b){var c=this;return new Promise(function(e,f){var h=new MessageChannel;h.port1.onmessage=function(ma){h.port1.onmessage=null;ma=ma.data;ma.error!=null?f(new EvalError(ma.error)):e(ma.result)};for(var n=[],r=[],t=[],y=Mc(b!=null?b:[]),E=y.next();!E.done;E=y.next())E=E.value,n.push(E.name),r.push(E.value),E.transfer&&t.push(E.value);n={code:a,paramNames:n,values:r};c.port?c.port.postMessage(n,[h.port2].concat(Nc(t))):c.N.push({data:n,Uo:[h.port2].concat(Nc(t))})})};fq.prototype.dispose=function(){this.v!=null&&(this.v.parentNode&&this.v.parentNode.removeChild(this.v),this.v=null)};function gq(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")} function iq(){return new Promise(function(a){document.readyState!="loading"?a():Vp(document,"DOMContentLoaded",function(){a()})})} function jq(a,b){return new Promise(function(c){function e(f){f.source===a.contentWindow&&f.data===b&&(window.removeEventListener("message",e),c(f))} window.addEventListener("message",e)})} function hq(a){var b=Qj(document,"IFRAME");if(!b.sandbox)throw Error("iframe sandboxes not supported");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(eq==""){a='');a=jh("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=fh(c)}else{c=new Map([["nonce",a]]);e=kh(eq).toString();var h=e.split(/[?#]/);f=/[?]/.test(e)?"?"+h[1]:"";a=h[0];e=/[#]/.test(e)?"#"+(f?h[2]:h[1]):"";a=Uh(a,f,e,c)}b.src=kh(a).toString();b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b} ;var kq={Zo:!1},lq;function mq(a){this.options=a=a===void 0?kq:a;nq(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.v=new fq)} mq.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?kq:e;return wd(function(f){if(f.v==1)return kd(f,oq(a,b,c,e),2);if(f.na)return f.return();lq||(lq=new mq,lq.init());return kd(f,pq(lq,a,b,c),0)})};mq.prototype.init=function(){var a=this;return wd(function(b){return a.v==null?b.return():kd(b,a.v.load(),0)})};mq.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return wd(function(f){return f.v==1?kd(f,oq(a,b,c,e.options),2):f.na?f.return():kd(f,pq(e,a,b,c),0)})};function pq(a,b,c,e){e=e===void 0?"":e;var f,h;return wd(function(n){switch(n.v){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){n.Pf(2);break}navigator.msSaveOrOpenBlob(f,c);return kd(n,qq(),3);case 3:return n.return();case 2:if(!oe()||me()>=0||!Me()&&(!Ge("iPad")&&!Ge("iPhone")||Le()||Me()||(Ie()?0:Ge("Coast"))||Ke()||!Ge("AppleWebKit"))){n.Pf(4);break}h=new FileReader;h.onload=function(){var r=Qj(document,"A"),t=th(String(h.result));t instanceof lh?t=nh(t):t=wh.test(t)?t:void 0;t!==void 0&&(r.href=t);r.download=c;r.click()};h.readAsDataURL(f);return kd(n,qq(),5);case 5:return n.return();case 4:return a.v==null&&(a.v=new fq,a.v.load()),kd(n,a.v.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return kd(n,qq(),0)}})} function oq(a,b,c,e){c=c===void 0?"":c;e=e===void 0?kq:e;var f;return wd(function(h){switch(h.v){case 1:if(!nq(e))return h.return(!1);h.O=2;return kd(h,rq(a,b,c),4);case 4:h.v=3;h.O=0;break;case 2:f=ld(h);if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})} function nq(a){a=a===void 0?kq:a;return a.Zo&&!!window.showSaveFilePicker} function rq(a,b,c){c=c===void 0?"":c;var e,f,h,n;return wd(function(r){switch(r.v){case 1:var t=c,y={suggestedName:b},E;(E=b.match(/\..+$/))?(E=E[0],E=E.length>16?null:E):E=null;if(E){t=t.replace(/;[^]*/,"");var ma={};y.types=[{description:"*"+E,accept:(ma[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(t)?t:"*/*"]=[E],ma)}]}e=y;r.O=2;return kd(r,window.showSaveFilePicker(e),4);case 4:f=r.na;r.v=3;r.O=0;break;case 2:h=ld(r);if(h instanceof DOMException&&h.name==="AbortError")return r.return();throw h;case 3:return kd(r,f.createWritable(),5);case 5:return n=r.na,r.O=0,r.ka=6,kd(r,n.write(a),6);case 6:return r.ta=[r.N],r.O=0,r.ka=0,kd(r,n.close(),9);case 9:y=r.ta.splice(0)[0];(y=r.N=r.N||y)?y.Ej?r.v=r.O||r.ka:y.Pf!=void 0&&r.ka1?f/(h-1):null} ;function vq(a){return typeof a!=="number"||isNaN(a)||!isFinite(a)?!1:parseInt(a,10)===a} Pd("aplos.data.aggregations.accumulate",function(a,b){return b?Se(a,b):a});function wq(a,b){b=b===void 0?gm:b;var c=xq(a,b);return c==null?null:c/yq(a,b)} Pd("aplos.data.aggregations.average",wq);function zq(a,b){b=b===void 0?gm:b;var c=0;a.forEach(function(e,f){b(e,f)==1&&c++});return c} Pd("aplos.data.aggregations.countIf",zq);function xq(a,b){var c=null;b=b||gm;a.forEach(function(e,f){e=b(e,f);e!=null&&!isNaN(+e)&&isFinite(e)&&(c=(c||0)+ +e)});return c} Pd("aplos.data.aggregations.sum",xq);function Aq(a,b){var c=null;b=b||gm;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&(c===null&&(c=Infinity),c=ce?c:c==e?c:e)});return c} Pd("aplos.data.aggregations.max",Bq);function yq(a,b){var c=0;b=b||gm;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c++});return c} Pd("aplos.data.aggregations.count",yq);function Cq(a,b){var c=new Set;b=b||gm;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} Pd("aplos.data.aggregations.countDistinct",Cq);function Dq(a,b,c,e){if(a<2||!vq(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(b<0||b>a||!vq(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Eq(b/a,c,e)} Pd("aplos.data.aggregations.quantiles",Dq);function Eq(a,b,c){if(a<0||a>1)throw Error("phi value for quantiles must be 0 <= phi <= 1");b=b.map(c||gm);b=b.filter(function(e){return e!=null&&!isNaN(+e)});if(!b.length)return null;b.sort(rj);return b[a===0?0:Math.ceil(b.length*a)-1]} Pd("aplos.data.aggregations.phiQuantiles",Eq);function Fq(a,b){return uq(a,!1,b)} Pd("aplos.data.aggregations.variance",Fq);function Gq(a,b){return(a=uq(a,!1,b))&&Math.sqrt(a)} Pd("aplos.data.aggregations.stdDev",Gq);Pd("aplos.data.aggregations.makeJackknifeStdErrFn",function(a,b){return function(c){if(!c||c.length<2)var e=null;else{if(!c||c.length<2)e=null;else if(e=[],b){var f=nf(c,b);f=Ni(f);if(f.length<2)e=null;else{c=pf(f);for(var h=0;h=c&&ae?(a=a.Ic(c+1)-e,(c*a+b-e)/a):b=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b} w=Wq.prototype;w.Pe=Qq.el;w.Qe=Qq.fl;w.clone=function(){var a=new Wq(this.date);a.Pe=this.Pe;a.Qe=this.Qe;return a};w.getFullYear=function(){return this.date.getFullYear()};w.getYear=function(){return this.getFullYear()};w.getMonth=function(){return this.date.getMonth()};w.getDate=function(){return this.date.getDate()};w.getTime=function(){return this.date.getTime()};w.getDay=function(){return this.date.getDay()};w.getUTCFullYear=function(){return this.date.getUTCFullYear()};w.getUTCMonth=function(){return this.date.getUTCMonth()};w.getUTCDate=function(){return this.date.getUTCDate()};w.getUTCDay=function(){return this.date.getDay()};w.getUTCHours=function(){return this.date.getUTCHours()};w.getUTCMinutes=function(){return this.date.getUTCMinutes()};w.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};w.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};w.setFullYear=function(a){this.date.setFullYear(a)};w.setYear=function(a){this.setFullYear(a)};w.setMonth=function(a){this.date.setMonth(a)};w.setDate=function(a){this.date.setDate(a)};w.setTime=function(a){this.date.setTime(a)};w.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};w.setUTCMonth=function(a){this.date.setUTCMonth(a)};w.setUTCDate=function(a){this.date.setUTCDate(a)};w.add=function(a){if(a.N||a.months){var b=this.getMonth()+a.months+a.N*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var e=Math.min(Sq(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Yq(this,a.getDate()))};w.og=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+mi(Math.abs(b),c?6:4),mi(this.getMonth()+1,2),mi(this.getDate(),2)].join(a?"-":"")+""};w.toString=function(){return this.og()};function Yq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.Dg?a-=c.Wg-c.Ib:a<=c.Ff&&(a-=c.Xf-c.Ib);return a} function er(a,b){b=b||"UTC";try{return ar(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return ar(a,"%Y-%m-%d",b)}catch(c){}throw Error(a+" not of the form Y-M-D or Y-M-D H-M-S");} function fr(a,b,c){c=c||"UTC";var e=gr(b);hr(a);br(c,"Invalid timezone specified");if(c==="local")return ir(a,e);var f=Math.floor(a/1E3);b=jr(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=jr(a,c),(a-c)*1E3;case "QUARTER":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),Math.floor(a.getUTCMonth()/3)*3,1),c=jr(a,c),(a-c)*1E3;case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=jr(a,c),(a-c)*1E3;case "WEEK":return a=new $q,a.setTime(f+b),b=new Tq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=jr(a,c),(a-c)*1E3;case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=jr(a,c),(a-c)*1E3;case "HOUR":return a=f+b,kr(a-a%36E5-b,c)*1E3;case "MINUTE":return a=f+b,kr(a-a%6E4-b,c)*1E3;case "SECOND":return kr(Math.floor(f/1E3)*1E3,c)*1E3;case "MILLISECOND":return kr(Math.floor(f),c)*1E3;case "MICROSECOND":return kr(Math.floor(a)/1E3,c)* 1E3;default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function lr(a,b,c,e){e=e===void 0?"UTC":e;if(e==="local"){e=a;switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);e=new Date(e/1E3);b=e.getFullYear();for(c=e.getMonth()+c;c>11;)c-=12,b+=1;e.setFullYear(b,c,Math.min((new Date(b,c+1,0)).getDate(),e.getDate()));e=e.getTime()*1E3;break;case "WEEK":c*=7;case "DAY":e=new Date(e/1E3);e.setDate(e.getDate()+c);e=e.getTime()*1E3;break;case "HOUR":e=new Date(e/1E3);e.setHours(e.getHours()+c);e=e.getTime()*1E3;break;case "MINUTE":c*= 60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":e+=c}return e}var f=dr(a,e);switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);b=new Date((a+f.Ib)/1E3);f=b.getUTCFullYear();for(c=b.getUTCMonth()+c;c>11;)c-=12,f+=1;b.setUTCFullYear(f,c,Math.min((new Date(f,c+1,0)).getUTCDate(),b.getUTCDate()));a=b.getTime()*1E3;f=dr(a,e);a-=f.Ib;break;case "WEEK":c*=7;case "DAY":b=new Date((a+f.Ib)/1E3);b.setUTCDate(b.getUTCDate()+c);a=b.getTime()*1E3;f=dr(a,e);a-=f.Ib;break;case "HOUR":return b=a+c*60*60*1E3*1E3,Math.abs(c)>1&&(c=mr(b,e),b-=c-f.Ib),b;case "MINUTE":c*=60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":a+=c}return a} function mr(a,b){return b?dr(a,b).Ib:-1*(new Date(a/1E3)).getTimezoneOffset()*60*1E3*1E3} function dr(a,b){var c=b.toUpperCase().trim(),e;if(e=nr.exec(c)){var f=+e[2]*36E5;e[3]&&(f+=+e[3]*6E4);e[1]==="-"&&(f=-f);e=f*1E3}else e=null;if(e!=null)return{Ib:e,Ff:null,Dg:null,yh:null,Xf:null,Wg:null};e=or[c];if(e!=null)return{Ib:e*1E3,Ff:null,Dg:null,yh:null,Xf:null,Wg:null};c=pr[c];if(!c)throw Error("Unknown or unsupported time zone: "+b);b=c.Mn*6E7;c=c.Vo;e=a/36E8;f=0;for(var h=c.length-2;;){a=Math.floor((h+f)/2);a-=a%2;if(ec[a])f=a+2;else break;if(h=c.length|| h<0)return{Ib:b,Ff:null,Dg:null,yh:null,Xf:null,Wg:null};a=h;break}}e=b+c[a+1]*6E7;f=b+c[a-1]*6E7;return{Ib:e,Ff:c[a]*36E8,Dg:c[a+2]*36E8,yh:e-f,Xf:f,Wg:b+c[a+3]*6E7}} function jr(a,b){return dr(a*1E3,b).Ib/1E3} function kr(a,b){var c=a*1E3;b=dr(c,b);var e=b.Xf-b.Ib;return a-(e<=0||c-e>b.Ff?0:e)/1E3} function qr(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function br(a,b){if(typeof a!=="string")throw Error(b);} function hr(a){if(typeof a!=="number")throw Error("Invalid timestamp");} for(var nr=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,or={"ETC/GMT+12":-432E5,"ETC/GMT+11":-396E5,"PACIFIC/MIDWAY":-396E5,"PACIFIC/NIUE":-396E5,"PACIFIC/PAGO_PAGO":-396E5,"PACIFIC/SAMOA":-396E5,"US/SAMOA":-396E5,"ETC/GMT+10":-36E6,HST:-36E6,"PACIFIC/HONOLULU":-36E6,"PACIFIC/JOHNSTON":-36E6,"PACIFIC/TAHITI":-36E6,"SYSTEMV/HST10":-36E6,"US/HAWAII":-36E6,"PACIFIC/MARQUESAS":-342E5,"ETC/GMT+9":-324E5,"PACIFIC/GAMBIER":-324E5,"SYSTEMV/YST9":-324E5,"ETC/GMT+8":-288E5,"PACIFIC/PITCAIRN":-288E5,"SYSTEMV/PST8":-288E5,"AMERICA/CRESTON":-252E5,"AMERICA/PHOENIX":-252E5,"ETC/GMT+7":-252E5,MST:-252E5,PNT:-252E5,"SYSTEMV/MST7":-252E5,"US/ARIZONA":-252E5,"AMERICA/REGINA":-216E5,"AMERICA/SWIFT_CURRENT":-216E5,"CANADA/EAST-SASKATCHEWAN":-216E5,"CANADA/SASKATCHEWAN":-216E5,"ETC/GMT+6":-216E5,"SYSTEMV/CST6":-216E5,"AMERICA/ATIKOKAN":-18E6,"AMERICA/CAYMAN":-18E6,"AMERICA/CORAL_HARBOUR":-18E6,"AMERICA/PANAMA":-18E6,EST:-18E6,"ETC/GMT+5":-18E6,"SYSTEMV/EST5":-18E6,"AMERICA/ANGUILLA":-144E5,"AMERICA/ANTIGUA":-144E5,"AMERICA/ARUBA":-144E5,"AMERICA/BLANC-SABLON":-144E5,"AMERICA/CARACAS":-144E5,"AMERICA/CURACAO":-144E5,"AMERICA/DOMINICA":-144E5,"AMERICA/GRENADA":-144E5,"AMERICA/GUADELOUPE":-144E5,"AMERICA/GUYANA":-144E5,"AMERICA/KRALENDIJK":-144E5,"AMERICA/LA_PAZ":-144E5,"AMERICA/LOWER_PRINCES":-144E5,"AMERICA/MARIGOT":-144E5,"AMERICA/MONTSERRAT":-144E5,"AMERICA/PORT_OF_SPAIN":-144E5,"AMERICA/PUERTO_RICO":-144E5,"AMERICA/ST_BARTHELEMY":-144E5,"AMERICA/ST_KITTS":-144E5,"AMERICA/ST_LUCIA":-144E5,"AMERICA/ST_THOMAS":-144E5,"AMERICA/ST_VINCENT":-144E5,"AMERICA/TORTOLA":-144E5,"AMERICA/VIRGIN":-144E5,"ETC/GMT+4":-144E5,PRT:-144E5,"SYSTEMV/AST4":-144E5,"AMERICA/CAYENNE":-108E5,"AMERICA/PARAMARIBO":-108E5,"ANTARCTICA/ROTHERA":-108E5,"ETC/GMT+3":-108E5,"ATLANTIC/SOUTH_GEORGIA":-72E5,"ETC/GMT+2":-72E5,"ATLANTIC/CAPE_VERDE":-36E5,"ETC/GMT+1":-36E5,"AFRICA/ABIDJAN":0,"AFRICA/ACCRA":0,"AFRICA/BAMAKO":0,"AFRICA/BANJUL":0,"AFRICA/BISSAU":0,"AFRICA/CONAKRY":0,"AFRICA/DAKAR":0,"AFRICA/FREETOWN":0,"AFRICA/LOME":0,"AFRICA/MONROVIA":0,"AFRICA/NOUAKCHOTT":0,"AFRICA/OUAGADOUGOU":0,"AFRICA/TIMBUKTU":0,"ATLANTIC/REYKJAVIK":0,"ATLANTIC/ST_HELENA":0,"ETC/GMT":0,"ETC/GMT+0":0,"ETC/GMT0":0,"ETC/GREENWICH":0,"ETC/UCT":0,"ETC/UNIVERSAL":0,"ETC/UTC":0,"ETC/ZULU":0,FACTORY:0,GMT:0,"GMT+0":0,GMT0:0,GREENWICH:0,ICELAND:0,UCT:0,UNIVERSAL:0,UTC:0,ZULU:0,"AFRICA/BANGUI":36E5,"AFRICA/BRAZZAVILLE":36E5,"AFRICA/DOUALA":36E5,"AFRICA/KINSHASA":36E5,"AFRICA/LAGOS":36E5,"AFRICA/LIBREVILLE":36E5,"AFRICA/LUANDA":36E5,"AFRICA/MALABO":36E5,"AFRICA/NIAMEY":36E5,"AFRICA/PORTO-NOVO":36E5,"AFRICA/SAO_TOME":36E5,"ETC/GMT-1":36E5,"AFRICA/BLANTYRE":72E5,"AFRICA/BUJUMBURA":72E5,"AFRICA/GABORONE":72E5,"AFRICA/HARARE":72E5,"AFRICA/JOHANNESBURG":72E5,"AFRICA/KIGALI":72E5,"AFRICA/LUBUMBASHI":72E5,"AFRICA/LUSAKA":72E5,"AFRICA/MAPUTO":72E5,"AFRICA/MASERU":72E5,"AFRICA/MBABANE":72E5,CAT:72E5,"ETC/GMT-2":72E5,"AFRICA/ADDIS_ABABA":108E5,"AFRICA/ASMARA":108E5,"AFRICA/ASMERA":108E5,"AFRICA/DAR_ES_SALAAM":108E5,"AFRICA/DJIBOUTI":108E5,"AFRICA/KAMPALA":108E5,"AFRICA/MOGADISHU":108E5,"AFRICA/NAIROBI":108E5,"ANTARCTICA/SYOWA":108E5,"ASIA/ADEN":108E5,"ASIA/BAHRAIN":108E5,"ASIA/KUWAIT":108E5,"ASIA/QATAR":108E5,"ASIA/RIYADH":108E5,EAT:108E5,"ETC/GMT-3":108E5,"INDIAN/ANTANANARIVO":108E5,"INDIAN/COMORO":108E5,"INDIAN/MAYOTTE":108E5,"ASIA/DUBAI":144E5,"ASIA/MUSCAT":144E5,"ETC/GMT-4":144E5,"INDIAN/MAHE":144E5,"INDIAN/REUNION":144E5,"ASIA/KABUL":162E5,"ANTARCTICA/MAWSON":18E6,"ETC/GMT-5":18E6,"INDIAN/KERGUELEN":18E6,"INDIAN/MALDIVES":18E6,"ASIA/CALCUTTA":198E5,"ASIA/COLOMBO":198E5,"ASIA/KOLKATA":198E5,IST:198E5,"ASIA/KATHMANDU":207E5,"ASIA/KATMANDU":207E5,"ANTARCTICA/VOSTOK":216E5,"ASIA/KASHGAR":216E5,"ASIA/THIMBU":216E5,"ASIA/THIMPHU":216E5,"ASIA/URUMQI":216E5,"ETC/GMT-6":216E5,"INDIAN/CHAGOS":216E5,"ASIA/RANGOON":234E5,"ASIA/YANGON":234E5,"INDIAN/COCOS":234E5,"ANTARCTICA/DAVIS":252E5,"ASIA/BANGKOK":252E5,"ASIA/HO_CHI_MINH":252E5,"ASIA/JAKARTA":252E5,"ASIA/PHNOM_PENH":252E5,"ASIA/PONTIANAK":252E5,"ASIA/SAIGON":252E5,"ASIA/VIENTIANE":252E5,"ETC/GMT-7":252E5,"INDIAN/CHRISTMAS":252E5,VST:252E5,"ANTARCTICA/CASEY":288E5,"ASIA/BRUNEI":288E5,"ASIA/KUALA_LUMPUR":288E5,"ASIA/KUCHING":288E5,"ASIA/MAKASSAR":288E5,"ASIA/SINGAPORE":288E5,"ASIA/UJUNG_PANDANG":288E5,"ETC/GMT-8":288E5,SINGAPORE:288E5,"ASIA/DILI":324E5,"ASIA/JAYAPURA":324E5,"ASIA/PYONGYANG":324E5,"ASIA/TOKYO":324E5,"ETC/GMT-9":324E5,JAPAN:324E5,JST:324E5,"PACIFIC/PALAU":324E5,ACT:342E5,"AUSTRALIA/DARWIN":342E5,"AUSTRALIA/NORTH":342E5,"ANTARCTICA/DUMONTDURVILLE":36E6,"ETC/GMT-10":36E6,"PACIFIC/CHUUK":36E6,"PACIFIC/GUAM":36E6,"PACIFIC/PORT_MORESBY":36E6,"PACIFIC/SAIPAN":36E6,"PACIFIC/TRUK":36E6,"PACIFIC/YAP":36E6,"ETC/GMT-11":396E5,"PACIFIC/BOUGAINVILLE":396E5,"PACIFIC/GUADALCANAL":396E5,"PACIFIC/KOSRAE":396E5,"PACIFIC/POHNPEI":396E5,"PACIFIC/PONAPE":396E5,SST:396E5,"ETC/GMT-12":432E5,KWAJALEIN:432E5,"PACIFIC/FUNAFUTI":432E5,"PACIFIC/KWAJALEIN":432E5,"PACIFIC/MAJURO":432E5,"PACIFIC/NAURU":432E5,"PACIFIC/TARAWA":432E5,"PACIFIC/WAKE":432E5,"PACIFIC/WALLIS":432E5,"ETC/GMT-13":468E5,"PACIFIC/ENDERBURY":468E5,"PACIFIC/FAKAOFO":468E5,"ETC/GMT-14":504E5,"PACIFIC/KIRITIMATI":504E5},pr={},rr=[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0],sr=Mc(["PST8PDT","America/Los_Angeles","US/Pacific"]),tr=sr.next();!tr.done;tr=sr.next()){var ur=tr.value.toUpperCase();pr[ur]={id:ur,Mn:-480,Vo:rr}} var vr={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},wr={},xr;for(xr in vr)wr[vr[xr]]=xr;var yr=wr;function gr(a){if(!a)throw Error("Missing date component.");var b=yr[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function ir(a,b){var c=new Date(a/1E3);switch(b){case "YEAR":c=new Date(c.getFullYear(),0,1);break;case "QUARTER":c=new Date(c.getFullYear(),Math.floor(c.getMonth()/3)*3,1);break;case "MONTH":c=new Date(c.getFullYear(),c.getMonth(),1);break;case "WEEK":a=-1*c.getDay();c=new Date(c.getFullYear(),c.getMonth(),c.getDate());c.setDate(c.getDate()+a);break;case "DAY":c=new Date(c.getFullYear(),c.getMonth(),c.getDate());break;case "HOUR":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours());break;case "MINUTE":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes());break;case "SECOND":return Math.floor(a/1E6)*1E6;case "MILLISECOND":return Math.floor(a/1E3)*1E3;case "MICROSECOND":return Math.floor(a);default:throw Error("Unknown or unsupported date component for truncation:"+b+".");}return c.getTime()*1E3} ;function zr(a,b){var c=Ar(a,b===void 0?"__default__":b);return function(e){return e==null?"null":c(e/1E3)}} function Ar(a,b){b=b===void 0?"__default__":b;var c=!1;a.indexOf("%Z")>=0&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=Br();return function(f){if(f==null)return"null";typeof f==="string"&&(f=+f);Gd(f)&&(f=f.getTime());var h=b==="__default__"?Iq:b,n=Cr(a);if(h==="local"){n=Dr(a);var r=f;h=(new Date(f)).getTimezoneOffset()*60*1E3*1E3*-1}else h==="UTC"||h==="+00:00"?(r=f,h=0):(f*=1E3,r=dr(f,h),r=(f+r.Ib)/1E3,h=mr(f,h));r=new Date(r);if(isNaN(r.getTime()))return"Invalid date";n=n(r);if(!c)return n;h= (h>=0?"+":"")+e(h);return n.replace("_tzhereplz_",h)}} function Br(){var a=si("02.0f");return function(b){if(b==null)return"null";typeof b==="string"&&(b=+b);var c=b>=0?"":"-";b=Math.abs(b);var e=Math.floor(b/36E8);b-=e*36E8;b=Math.floor(b/6E7);return""+c+a(e)+":"+a(b)}} ;var Er=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Fr="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Er),Gr=["MIN","MAX"].concat(Er),Hr={},Ir=(Hr[["string"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return String},tc:"",zc:"aplos-string-cell",qc:Er,Gb:1,kc:"string",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";if(typeof a!=="string")return String(a);a=a.replace(/\\/g,"\\\\");a=a.replace(/"/g,'\\"');a=a.replace(/\n/g,"\\n");a=a.replace(/\r/g,"\\r");return'"'+a+'"'}},Hr[["decimal"]]={Wb:void 0,Cc:!1,rc:"decimal",vc:pi,tc:".2f",zc:"aplos-numeric-cell",qc:Fr,Gb:2,kc:"number",xc:function(a){return a},oc:function(a){return"SUM("+a+")"},nc:String},Hr[["integer"]]={Wb:void 0,Cc:!1,rc:"integer",vc:pi,tc:".0f",zc:"aplos-numeric-cell",qc:Fr,Gb:2,kc:"number",xc:function(a){return a},oc:function(a){return"SUM("+a+")"},nc:String},Hr[["time_us"]]={Wb:.001,Cc:!1,rc:"integer",vc:zr,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Gr,Gb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){Gd(a)&&(a=a.getTime()*1E3);return String(a)}},Hr[["time_ms"]]={Wb:1,Cc:!1,rc:"integer",vc:Ar,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Gr,Gb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){Gd(a)&&(a=a.getTime());return String(a)}},Hr[["timestamp"]]={Wb:.001,Cc:!1,rc:"integer",vc:zr,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Gr,Gb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Gd(a)&&(a=a.getTime()*1E3);return"TIMESTAMP_MICROS("+a+")"}},Hr[["date"]]={Wb:.001,Cc:!0,rc:"integer",vc:function(a){return zr(a,"UTC")},tc:"%Y-%m-%d",zc:"aplos-date-cell",qc:Gr,Gb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Gd(a)&&(a=a.getTime()*1E3);return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Hr[["datetime"]]={Wb:.001,Cc:!0,rc:"integer",vc:function(a){return zr(a,"UTC")},tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Gr,Gb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Gd(a)&&(a=a.getTime()*1E3);return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Hr[["boolean"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return String},tc:"",zc:"",qc:Er,Gb:4,kc:"boolean",xc:function(a){return a},oc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},nc:String},Hr[["hll_sketch"]]={Wb:void 0,Cc:!1,rc:"integer",vc:pi,tc:".0f",zc:"aplos-numeric-cell",qc:["HLL_COUNT.MERGE"],Gb:2,kc:"number",xc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},oc:function(a){return"HLL_COUNT.MERGE("+a+")"},nc:String},Hr[["message"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return function(a){return JSON.stringify(a,null,2)}},tc:"",zc:"aplos-string-cell",qc:[],Gb:1,kc:"object",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},nc:String},Hr[["array"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return function(a){return JSON.stringify(a,null,2)}},tc:"",zc:"aplos-string-cell",qc:[],Gb:1,kc:"object",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},nc:String},Hr[["kll_int64"]]={Fj:!0,Wb:void 0,rc:"integer",vc:pi,tc:".0f",zc:"aplos-numeric-cell",qc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Gb:2,kc:"number",xc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},oc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},nc:String},Hr[["kll_double"]]={Fj:!0,Wb:void 0,rc:"decimal",vc:pi,tc:".2f",zc:"aplos-numeric-cell",qc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Gb:2,kc:"number",xc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},oc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},nc:String},Hr);function Jr(a){if(typeof a==="string")return"string";if(typeof a==="number")return"decimal";if(typeof a==="boolean")return"boolean";if(Gd(a))return"timestamp";if(a==null)return"string";throw Error("Unknown filter value type: "+a);} ;var Kr={EQUALS:"=",GREATER_THAN:">",LESS_THAN:"<",GREATER_THAN_EQUALS:">=",LESS_THAN_EQUALS:"<=",NOT_EQUALS:"!=",IN:"IN",NOT_IN:"NOT_IN",BETWEEN:"BETWEEN",NOT_BETWEEN:"NOT_BETWEEN",IS_NULL:"IS_NULL",IS_NOT_NULL:"IS_NOT_NULL",IS_INFINITY:"IS_INFINITY",IS_NOT_INFINITY:"IS_NOT_INFINITY",IS_NAN:"IS_NAN",IS_NOT_NAN:"IS_NOT_NAN",CONTAINS:"CONTAINS",DOES_NOT_CONTAIN:"DOES_NOT_CONTAIN",REGEX:"REGEX",NOT_REGEX:"NOT_REGEX"};Pd("aplos.data.FilterOperator",Kr);function Lr(a,b,c){return Mr(b).nb(a,c)} function Nr(a,b){return(a=Mr(a).De)?a(b):b} var Or={},Ur=(Or["="]={nb:function(a,b){return b[0]==="null"?Pr(a):a+" = "+b[0]},De:null},Or[">"]={nb:function(a,b){return a+" > "+b[0]},De:function(a){return[Qr(a)]}},Or["<"]={nb:function(a,b){return a+" < "+b[0]},De:function(a){return[Rr(a)]}},Or[">="]={nb:function(a,b){return a+" >= "+b[0]},De:function(a){return[Qr(a)]}},Or["<="]={nb:function(a,b){return a+" <= "+b[0]},De:function(a){return[Rr(a)]}},Or["!="]={nb:function(a,b){return b[0]==="null"?Sr(a):a+" != "+b[0]}},Or.IN={nb:function(a,b){if(b==null||b.length===0)return"true = false";b=b.slice();var c=af(b,function(e){return e==="null"});if(c&&b.length===0)return Pr(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+Pr(a)+")":b}},Or.NOT_IN={nb:function(a,b){if(b==null||b.length===0)return"true = true";b=b.slice();var c=af(b,function(e){return e==="null"});if(c&&b.length===0)return Sr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+Sr(a)+")":b}},Or.BETWEEN={nb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},De:function(a){return Bi(a)}},Or.NOT_BETWEEN={nb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},De:function(a){return Bi(a)}},Or.IS_NULL={nb:Pr},Or.IS_NOT_NULL={nb:Sr},Or.IS_INFINITY={nb:function(a){return"IS_INF("+a+")"}},Or.IS_NOT_INFINITY={nb:function(a){return"NOT(IS_INF("+a+"))"}},Or.IS_NAN={nb:function(a){return"IS_NAN("+a+")"}},Or.IS_NOT_NAN={nb:function(a){return"NOT(IS_NAN("+a+"))"}},Or.CONTAINS={nb:function(a,b){return Tr(a,b[0])}},Or.DOES_NOT_CONTAIN={nb:function(a,b){return"NOT("+Tr(a,b[0])+")"}},Or.REGEX={nb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},Or.NOT_REGEX={nb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},Or);function Tr(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(Vr,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function Pr(a){return a+" IS NULL"} function Sr(a){return a+" IS NOT NULL"} function Mr(a){if(Ur[a]==null)throw Error("Unknown filter operator: "+a);return Ur[a]} var Vr=/([.?*+^$[\]\\(){}|-])/g;function Wr(a,b,c){if(typeof a!=="string")return a={Ef:a.column!==void 0?a.column:a.Ef,operator:a.operator!==void 0?a.operator:a.operator,value:a.value!==void 0?a.value:a.value},Array.isArray(a.value)&&(a.operator==="="?a.operator="IN":a.operator==="!="&&(a.operator="NOT_IN")),a;if(b==null)throw Error("No operator specified.");return{Ef:a,operator:b,value:c!==void 0?c:""}} Pd("aplos.data.SimpleFilter",function(){});Pd("aplos.data.SimpleFilter.Operator",Kr);Pd("aplos.data.SimpleFilter.buildFromFilterOrValues",Wr);function Xr(a){for(var b=0;be&&(f=1));return f!=null?a==="ASC"?f:-1*f:0} var ds=Zr.bind(null,"ASC",!1);function bs(a){return a==null?0:a===-Infinity?2:a===Infinity?4:typeof a==="number"&&isNaN(a)?1:3} var $r=!1,as=/^-?[0-9]*(\.)?[0-9]+$/;Pd("aplos.data.util.toFilterExpression",function(a,b,c,e){b=b===void 0?"=":b;c=c===void 0?!0:c;if(c===!0&&b==="=")return a;var f=[];c!==void 0&&(c=Array.isArray(c)?c:[c],c=Nr(b,c),c.forEach(function(h){var n=e==null?Jr(h):e;f.push(Ir[n].nc(h))}));return Lr(a,b,f)});Pd("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return c[b]!=null})});Pd("aplos.data.util.sort",Zr);function es(a){this.xf=this.Sa=.35;this.hb=this.Rb=null;this.ma=new Set;this.v=[0,1];this.oa=new Fl;this.N=0;this.Ma=!1;this.Va=a!=null?a:2;this.O=!0;this.na=this.Rc=null;this.ac=!1;this.ka=null;this.La=!1;this.Ia=1;this.Pa=0;this.ta=null;this.Ya=1;this.wf=this.Qc=this.uf=this.vf=this.ha=null;this.yf=new Lj(0,0);this.Aa=this.ya=null;this.wc=void 0;this.rg=new fs(this);gs(this)} w=es.prototype;w.Bi=function(a){this.Va=a;this.O=!0;return this};w.rk=function(a){this.Sa=a;this.Va==2&&this.Bi(this.Va);return this};w.bm=function(){return this.Sa};w.mk=function(a,b){this.Rb=a;this.hb=b;this.O=!0;return this};w.hh=function(a){this.wf=a;return this};w.Te=function(){return this.wf};w.ub=function(){return this.oa};w.kg=function(a){this.oa=a;return this};w.Rk=function(a){this.Rc=a;return this};w.Fi=function(a){this.na=a;this.La||(this.ka=null);this.na instanceof hs&&(a=this.na.Lg(),typeof a==="function"&&this.Qd(a));this.O=!0;return this};w.mn=function(){return this.na};w.lk=function(a){this.Ma=a;this.O=!0;return this};w.Qd=function(a){this.wc=a;this.Va===2&&(this.O=!0)};function is(a){a.ma.clear();a.La||(a.ka=null);a.O=!0} function js(a,b,c,e){for(var f=0;fe[0]!=e[1]>e[0]!=f[1]>f[0]?Qr(c):Rr(c)} function ms(a,b){return a.Rc||b||function(c){return c!=null?c.toString():""}} w.bandwidth=function(){gs(this);return this.Va==2?this.Ka.bandwidth():this.ta?this.Ya===2?this.Ka(this.ta)-this.Ka(0):this.ta||0:0};w.Mk=function(a){this.ka=a;this.La=a!=null;this.zi(1,0);return this};w.zi=function(a,b){this.Ia=a;this.Pa=b;this.O=!0};function ns(a,b,c,e,f,h,n){a.ac!==h&&(a.O=!0);a.ha=b;a.vf=c;a.uf=e;a.N=f;a.ac=h;a.Qc=n} w.Jh=function(){var a=wi(this.N);this.Te()==null&&this.oa.ak(this.ha);return{position:a,Vf:10}};w.qg=function(a){var b=wi(this.N);b=Ag(a,this.Te(),b);if(b!=null)return b;b=this.range();this.range(this.N===1||this.N===3?[a.height,0]:[0,a.width]);var c=os(this,this.Qc);a=this.oa.qh(this.ha,c,this.N,a,this.bandwidth(),this.Aa);this.range(b);return a};w.fh=function(a){var b=a.right-a.left,c=a.bottom-a.top;if(this.N===1||this.N===3){var e=this.range();this.range(e[0]<=e[1]?[0,c]:[c,0])}else this.range([0,b]);this.yf=new Lj(b,c);this.ya=a};w.Se=function(){return this.ya};w.render=function(a,b){if(this.ha){var c=this.ya;this.ha.attr("transform","translate("+((this.N==1?c.right:c.left)-a.Lb())+", "+((this.N==2?c.bottom:c.top)-a.Mb())+")");c=os(this,this.Qc);var e=ls(this,0);if(isNaN(e))switch(this.N){case 0:e=a.yb();break;case 1:e=0;break;case 3:e=a.Za();break;case 2:e=0}var f={top:a.Mb(),right:a.Lb()+a.Za(),bottom:a.Mb()+a.yb(),left:a.Lb()};this.oa.render(this.ha,c,this.N,new Lj(a.Za(),a.yb()),this.yf,this.bandwidth(),b,this.Aa,this.vf,e,this.uf,this.ya,f)}};function os(a,b){gs(a);var c=ps(a),e=a.Rc;c.df()||(e=ms(a,b));b=c.Nb(a.Va==2?null:a.Ka.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ma),e,a,a.rg).map(function(h){h&&h.value!==void 0||(h={value:h});h.location===void 0&&(h.location=Math.round(Fp(this,h.value)));return h},a).filter(function(h){return h.location>=Math.min(this.v[0],this.v[1])&&h.location<=Math.max(this.v[0],this.v[1])},a);var f=b.map(function(h){return h.value});b.forEach(function(h){h.label==null&&(h.label=e(h.value,f));h.label=h.label.toString()},a);return b} function qs(a){if(!a.ka)if(a.Va==2){var b=Array.from(a.ma);b.length>0&&(a.ka=[b[0],b[b.length-1]])}else{var c=Math.abs(a.v[0]-a.v[1]);b=Array.from(a.ma);b.length||(b=[0,1]);var e=Bi(b);b=ps(a).Gd(e,c,b).map(function(f){return f.value!==void 0?f.value:f});a.ka=a.Va===1?[b.length?Rr(b):Infinity,b.length?Qr(b):-Infinity]:[Math.min(e[0],b.length?Rr(b):Infinity),Math.max(e[1],b.length?Qr(b):-Infinity)]}return a.ka||[]} function gs(a){if(a.O){switch(a.Va){case 0:a.Ka=jj();break;case 2:a.Ka=pj(a.Sa,a.xf,!a.ac);break;case 1:a.Ka=mj();break;case 3:a.Ka=sj();break;default:throw Error("Unknown scale type: "+a.Va);}a.Rb!=null&&a.hb!=null&&a.Ka.outerPaddingStartPx&&a.Ka.outerPaddingEndPx&&(a.Ka.outerPaddingStartPx(a.Rb||0),a.Ka.outerPaddingEndPx(a.hb||0));if(a.Va==2)typeof a.wc==="function"&&a.Ka.domainOverride&&a.Ka.domainOverride(a.wc),a.Ma&&a.Ka.autoOrderDomain&&a.Ka.autoOrderDomain(a.Ma),a.Ka.domain(Array.from(a.ma)),a.Ka.range([a.v[0]*a.Ia+a.Pa,a.v[1]*a.Ia+a.Pa]);else{var b=qs(a),c=a.v.map(function(f){return(f-this.Pa)/this.Ia},a),e=a.Va==1?vj:uj;a.Ka.range(a.v).domain([e(c[0],a.v,b),e(c[1],a.v,b)])}a.O=!1}} function ps(a){if(a.na){if(a.na instanceof hs){var b=a.na,c=a.Ka.copy();b.Ka=c}return a.na}b=new hs(a.Va);a=a.Ka.copy();b.Ka=a;return b} Pd("aplos.chart.AplosAxis",es);es.prototype.setMaxViewportExtent=es.prototype.Mk;es.prototype.setNicingFunction=es.prototype.Qd;es.prototype.setAutoOrderDomain=es.prototype.lk;es.prototype.getTickProvider=es.prototype.mn;es.prototype.setTickProvider=es.prototype.Fi;es.prototype.setTickFormatter=es.prototype.Rk;es.prototype.setRenderer=es.prototype.kg;es.prototype.getRenderer=es.prototype.ub;es.prototype.getLayoutSize=es.prototype.Te;es.prototype.setLayoutSize=es.prototype.hh;es.prototype.setAxisMargin=es.prototype.mk;es.prototype.getBarGroupPaddingPct=es.prototype.bm;es.prototype.setBarGroupPaddingPct=es.prototype.rk;es.prototype.setScaleType=es.prototype.Bi;function hs(a){this.Ka=null;this.Va=a;this.wc=void 0;this.Wj=!1} w=hs.prototype;w.Nn=function(a){this.Wj=a;return this};function rs(a,b){switch(a.Va){case 0:return b==null?[0,1]:b==0?[0,1]:[0,2*b].sort(function(c,e){return c-e});case 1:return b<=0?[1,10]:[b/Math.sqrt(10),b*Math.sqrt(10)];case 3:return b==null?(a=Date.now(),[a-864E5,a]):[+b-432E5,+b+432E5];default:throw Error("Unsupported scale type: "+a.Va);}} w.Qd=function(a){this.wc=a};w.Lg=function(){return this.wc};w.df=function(){return!1};w.Nb=function(a,b,c,e,f,h){this.Ka&&this.Ka.ticks?(typeof this.wc==="function"&&this.Ka.domainOverride&&this.Ka.domainOverride(this.wc),a[0]==a[1]&&(a=rs(this,a[0])),a=this.Ka.domain(a||c).range([0,b]).ticks().map(function(t){return typeof t==="number"?+t.toFixed(7):t})):a=c;if(this.Wj&&h&&f){var n=2,r=Ep(a,f,e);for(e=r;h.v.oa&&h.v.ha&&h.v.oa.Oi(e,h.v.ha,h.v.N)&&e.length>2;)e=r.filter(function(t,y){return y==r.length-1||y%n==0}),n++;return e}return a};w.Gd=function(a,b,c){b=this.Nb(a,b,c);return b.length?Bi(b):a};Pd("aplos.chart.AplosAxisTickProvider",hs);hs.prototype.omitCollidingLabels=hs.prototype.Nn;function fs(a){this.v=a} ;function ss(){Fl.call(this);this.Rd(!1);this.Ad(!0);this.Sd(!0);this.Ae(0);this.Bd(0);this.ha=20;this.O=45;this.ze(6)} ed(ss,Fl);Pd("aplos.chart.GridlinesAxisRenderer",ss);function ts(){Fl.call(this);this.Ma=new Lj(0,0);this.Sa=void 0} ed(ts,Fl);w=ts.prototype;w.render=function(a,b,c,e,f,h,n,r,t,y,E,ma,na){f=this.Ma;Fl.prototype.render.call(this,a,b,c,e,f,h,n,r,t,y,E,ma,na)};w.qh=function(a,b,c,e,f,h){b=c==1||c==3;this.Ma=new Lj(e.width,e.height);f={width:e.width,height:e.height};e={width:e.width,height:e.height};var n=0;h!=null&&h!=""&&(n=Tl(a,h));a=this.oa;b?(f.width=0,e.width=0,n>0&&(a=c==3?a+Math.floor(n/2):a,e.width+=n+a)):(f.height=n,e.height=n,n>0&&(e.height+=n+a));return{Ca:f,rb:e,Bc:!1}};w.Mh=function(a,b,c,e,f){var h="middle",n=0,r=0,t="";this.Sa=jk(b.node(),"MWpgy09",void 0,!0);b=f.label.split("\n").length*this.Sa;f=a.na;var y=a.v,E=a.Ia;switch(c){case 0:n=E?y:0;r=-1*(b+f+y);t=".71em";h=E?"start":"middle";break;case 2:n=E?y:0;r=b+y+f;t="0em";h=E?"start":"middle";break;case 1:n=y+f;r=E?-1*b/2:0;t=".32em";h="left";break;case 3:n=-1*(y+f),r=E?-1*b/2:0,t=".32em",h="right"}switch(a.ka){case 3:if(c===1||c===3)r=-(e/2-y),t=".71em";break;case 1:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n= -(e/2-y),h="left";break;case 4:if(c===1||c===3)r=e/2-y;break;case 2:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n=e/2-y,h="right"}return{anchor:h,x:n,y:r,dy:t,fr:n,gr:null}};w.zj=function(a,b,c,e){var f=0,h=0,n=0;switch(a){case 0:n=-1*(b.top-e.top);h=n+c.height;break;case 2:n=c.height;break;case 1:f=c.width;break;case 3:f=-1*c.width}return{x2:f,y1:h,y2:n}};w.Aj=function(a,b,c,e){var f=0,h=0,n=0,r=0,t=a.na;switch(b){case 0:r=-1*t;break;case 2:r=t;break;case 1:n=t;break;case 3:n=-1*t}switch(a.ka){case 3:if(b===1||b===3)n=n/Math.abs(n)*c.width,h=-e/2,r=-e/2;break;case 1:if(b===2||b===0)f=-e/2,n=-e/2;break;case 4:if(b===1||b===3)n=n/Math.abs(n)*c.width,h=e/2,r=e/2;break;case 2:if(b===2||b===0)f=e/2,n=e/2}return{x1:f,y1:h,x2:n,y2:r}};Pd("aplos.chart.InsideAxisRenderer",ts);function us(){ts.call(this);this.Rd(!1);this.Ad(!0);this.Sd(!0);this.Ae(0);this.Bd(0);this.ha=20;this.O=45;this.ze(6)} ed(us,ts);Pd("aplos.chart.InsideGridlinesAxisRenderer",us);function vs(){ts.call(this);this.Rd(!0);this.Ad(!1);this.Sd(!1);this.Ae(0);this.Bd(6);this.ha=20;this.O=45;this.ze(0)} ed(vs,ts);Pd("aplos.chart.InsideTicksAxisRenderer",vs);function ws(){Fl.call(this);this.Rd(!1);this.Ad(!1);this.Sd(!1);this.Ae(0);this.Bd(0);this.ha=20;this.O=45;this.ze(6)} ed(ws,Fl);Pd("aplos.chart.LabelsAxisRenderer",ws);function xs(){} xs.prototype.render=function(a,b,c,e,f,h,n,r,t,y,E){a.selectAll("*").remove();if(t!=null){a="."+ys;switch(c){case 0:a+="."+zs;break;case 1:a+="."+As;break;case 3:a+="."+Bs;break;case 2:a+="."+Cs}t.selectAll(a).remove()}if(E!=null){t="."+Ds;switch(c){case 0:t+="."+Es;break;case 1:t+="."+Fs;break;case 3:t+="."+Gs;break;case 2:t+="."+Hs}E.selectAll(t).remove()}};xs.prototype.ak=function(){};xs.prototype.Oi=function(){return!1};xs.prototype.qh=function(a,b,c,e){a={width:e.width,height:e.height};e={width:e.width,height:e.height};c==1||c==3?(a.width=0,e.width=0):(a.height=0,e.height=0);return{Ca:a,rb:e,Bc:!0}};var Ds="axis-line",ys="baseline",Es="x-axis-line",zs="x-axis-baseline",Hs="x2-axis-line",Cs="x2-axis-baseline",Fs="y-axis-line",Gs="y2-axis-line",As="y-axis-baseline",Bs="y2-axis-baseline";function Is(){Fl.call(this);this.Rd(!0);this.Ad(!1);this.Sd(!1);this.Ae(0);this.Bd(6);this.ha=20;this.O=45;this.ze(6);this.hb=!0} ed(Is,Fl);Is.prototype.ek=function(a,b){(b===0||b===2)&&a.length>1&&(a[0].th=1,a[a.length-1].th=2)};Is.prototype.Mh=function(a,b,c,e,f){b="middle";var h=0,n=0,r="",t=a.na,y=a.v;f=Ul(this,f);switch(c){case 0:n=y+t;r=".71em";b=f===1?"left":f===2?"right":"middle";break;case 2:n=-1*(y+t);r="0em";b=f===1?"left":f===2?"right":"middle";break;case 1:h=-1*(y+t);r=".32em";b="right";break;case 3:h=y+t,r=".32em",b="left"}switch(a.ka){case 3:if(c===1||c===3)n=-(e/2-y),r=".71em";break;case 1:if(c===2||c===0)n=n/Math.abs(n)*.4+"em",h=-(e/2-y),b="left";break;case 4:if(c===1||c===3)n=e/2-y;break;case 2:if(c===2|| c===0)n=n/Math.abs(n)*.4+"em",h=e/2-y,b="right"}return{anchor:b,x:h,y:n,dy:r}};Pd("aplos.chart.OuterJustifiedTicksAxisRenderer",Is);function Js(){Fl.call(this);this.Rd(!0);this.Ad(!1);this.Sd(!1);this.Ae(0);this.Bd(6);this.ha=20;this.O=45;this.ze(6)} ed(Js,Fl);Pd("aplos.chart.TicksAxisRenderer",Js);function Ks(){this.Jn=100;this.mh=Iq;for(var a=Ls,b=0,c=Mc(Object.values(a)),e=c.next();!e.done;e=c.next())e=e.value,b=Math.max(b,ki(e.tick,"\n"),ki(e.transition||"","\n"),ki(e.Gc||"","\n"));c=Mc(Object.values(a));for(e=c.next();!e.done;e=c.next())e=e.value,e.tick=Ms(e.tick,b)||"",e.transition=Ms(e.transition,b),e.Gc=Ms(e.Gc,b);this.Ch=a;this.Hi=Ns;this.wh=null;this.ep=0} w=Ks.prototype;w.vk=function(a){(a=this.wh=a)&&Ir[a].Wb!==void 0&&Ir[a].Cc===!0&&(this.mh="UTC");return this};w.df=function(){return!0};w.Nb=function(a,b,c,e){if(b<=0)return[];var f=this.wh||Os(c),h=1E3*Ir[f].Wb;f=a[0]>a[1];c=Bi(c);a=Bi(a);c[1]-c[0]===0&&(a=c=[c[0]-36E8,c[0]+36E8]);var n=+c[0]*h;c=+a[0]*h;a=+a[1]*h;var r=Ps(this,(a-c)/(b/this.Jn));b=r.interval;r=r.unit;var t=e;e&&(t=function(ta){return e(ta/1E3)});var y=t||Qs(this,this.Ch[r].tick),E=t||Qs(this,this.Ch[r].Gc);t=t||Qs(this,this.Ch[r].transition);var ma=Rs(r);n=this.Gg(b,r,c,n);for(var na=[];n<=a;){if(n>=c){var sa=y(n),ua="minor";ma&&this.rf(n,ma)===n&&(ua="major",t&&(sa=t(n)));na.push({value:n,Nh:ua,label:sa})}n=this.Ke(n,r,b)}E&&na.length&&(na[0].label=E(na[0].value));h!==1&&na.forEach(function(ta){ta.value=ta.value/h});return f===!1?na:na.reverse()};w.Gd=function(a,b,c){b=this.Nb(a,b,c);return b.length?Bi(b,function(e){return e.value}):a};function Ps(a,b){for(var c=Mc(a.Hi),e=c.next();!e.done;e=c.next())if(e=e.value,Ss[e.unit]*e.interval>=b)return e;return a.Hi[a.Hi.length-1]} function Rs(a){switch(a){case "MONTH":case "WEEK":return"YEAR";case "DAY":return"MONTH";case "HOUR":return"DAY";case "MINUTE":return"HOUR";case "SECOND":return"MINUTE";case "MILLISECOND":return"SECOND"}return null} w.rf=function(a,b){return fr(a,b,this.mh)};w.Ke=function(a,b,c){return lr(a,b,c,this.mh)};function Qs(a,b){return b?zr(b,a.mh):null} w.Gg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return b==="WEEK"?(b=this.rf(e,"WEEK"),b=this.Ke(b,"DAY",this.ep),a*=7):b=this.rf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.Ke(b,"DAY",c);default:return b=Rs(b)||"YEAR",this.rf(c,b)}};function Os(a){a=Bi(a);return a[0]>3E11&&a[0]<18E11?"time_ms":"timestamp"} function Ms(a,b){if(!a)return a;var c=ki(a||"","\n");return c1E13?"microseconds":"date":typeof f==="number"?f>1E13?"microseconds":"milliseconds":null;if(!f)throw Error("Unsupported date type.");var h=f==="microseconds"?.001:1,n=+a[0]*h,r=+a[1]*h,t=r=c[1]&&(a=Zs(this.Sh),r-n=Zs(b.Db)&&(b.Db=null);a=Zs(b.step)/a;aZs(b.Db)&&(b.Db=b.step));this.Rg=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new Zq;c.setTime(n);n=this.Gg(c,b.step);c=b.Db?this.Gg(c,b.Db):null;y=[];for(var E=!1;n.getTime()<=r;){var ma={};a:switch(f){case "milliseconds":var na= n.getTime();break a;case "microseconds":na=n.getTime()*1E3;break a;default:na=new Date(n.getTime())}ma.value=na;c&&b.Db&&c.getTime()<=n.getTime()?(ma.type="transition",ma.label=a(new Date(n.getTime())),at(c,b.Db),E=!0):ma.label=e(new Date(n.getTime()));y.push(ma);at(n,b.step)}c&&y.length&&!E&&(y[0].type="transition",y[0].label=a(new Date(y[0].value*h)));t&&y.reverse();return y};w.Gd=function(a,b,c){b=this.Nb(a,b,c);return b.length?Bi(b,function(e){return e.value}):a};w.Gg=function(a,b){if(b.N)var c=new Zq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=Math.ceil(a.getMonth()/b.months)*b.months,c=new Zq(a.getFullYear(),c);else if(b.days){c=Math;for(var e=c.ceil,f=a.getDate(),h=a.getFullYear(),n=a.getMonth()-1;n>=0;n--)f+=Sq(h,n);c=new Zq(a.getFullYear(),0,e.call(c,f/b.days)*b.days);b.days%7===0&&c.setDate(c.getDate()-c.getDay()+this.Ii)}else if(b.O)c=Math.ceil(a.getHours()/b.O)*b.O,c=new Zq(a.getFullYear(),a.getMonth(),a.getDate(),c);else if(b.ha)c=Math.ceil(a.getMinutes()/ b.ha)*b.ha,c=new Zq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),c);else if(b.v>=1)c=Math.ceil(a.getSeconds()/b.v)*b.v,c=new Zq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),c);else if(b.v)c=Math.ceil(.001*a.getMilliseconds()/b.v)*b.v*1E3,c=new Zq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),c);else throw Error("Zero step is not valid.");c.getTime()=n&&(!e||r==Math.round(r))&&c*r+this.Ye(b,r)>=b[1]);t++);return(h?-1:1)*r};function dt(a){return a<0?a+2E-10:a>0?a-2E-10:a} w.Ye=function(a,b){var c=Math.ceil(a[0]/b)*b;c>a[0]&&(c-=b);return c};bt.prototype.getDefaultViewport=bt.prototype.Gd;bt.prototype.getTicks=bt.prototype.Nb;bt.prototype.getNicingFunction=bt.prototype.Lg;bt.prototype.getDynamicTicks=bt.prototype.vm;bt.prototype.setDynamicTicks=bt.prototype.eh;bt.prototype.getIntIntervalsOnly=bt.prototype.Fm;bt.prototype.setIntIntervalsOnly=bt.prototype.Dk;bt.prototype.getNiceCoefficients=bt.prototype.Tm;bt.prototype.setNiceCoefficients=bt.prototype.wi;bt.prototype.getNumTicks=bt.prototype.Um;bt.prototype.setNumTicks=bt.prototype.xi;var ct=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];Pd("aplos.chart.BaseTickProvider",bt);function et(){bt.call(this);this.eh(!0);this.wi([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Qg=!1} ed(et,bt);et.prototype.Fh=function(a,b,c,e){if(b===0&&(c[0]>0&&c[1]<0||c[0]<0&&c[1]>0))return[0];if(c[1]-c[0]===0)return[c[0]];a=this.We(a,c,b,e);e=this.Ye(c,a);var f=[];if(this.Qg){f.push(c[0]);if(b===0)return f;if(b===1)return f.push(c[1]),f}b=this.Oe?b+2:b;for(var h=0;h<=b;h++){var n=h*a+e;if(n>c[1])break;if(this.Qg){if(n-c[0]=n){var na=this.Ye(b,ma);if(c*ma+na>b[1])if(e)if(na=Math.floor((b[1]-na)/ma)+1,na>y)y=na;else break;else break;r=ma}t=ma}}r===null&&(r=t!==null?t:1);return(h?-1:1)*r};et.prototype.Ye=function(a,b){return Math.ceil(a[0]/b)*b};Pd("aplos.chart.DataTickProvider",et);function ft(){} ft.prototype.df=function(){return!0};ft.prototype.Nb=function(a,b,c,e,f){a=gt(c||a);b=[];f?(b=Ep(a,f,e),b.forEach(function(h){var n=!e;Math.log(Math.abs(+h.value))*Math.LOG10E%1===0?(h.label=n?ht(h.value):h.label,h.Nh="major"):(h.label="",h.Nh="minor")})):b=a;return b};ft.prototype.Gd=function(a,b,c){return Bi(gt(c||a))};function gt(a){a=a.filter(function(h){return h!==0});var b=Bi(a),c=b[0],e=b[1];c<=0&&e>=0&&(a=a.filter(function(h){return h>0}),c=Rr(a));a=e>0?1:-1;b=Ki(e>0?c:-e);c=Math.log(e>0?e:-c)*Math.LOG10E;c=c%1?Math.floor(c+1):c;b===c&&(b>0?b--:c++);for(e=[];b<=c;b++)for(var f=1;f<10&&(e.push(a*(f+"e"+b)),b!==c);f++);a===1||e.reverse();return e} function ht(a){var b=a<0?"-":"";a=Math.log(Math.abs(a))*Math.LOG10E;if(a===0)return b+"1";if(a===1)return b+"10";a=(""+a).split("").map(function(c){return c==="-"?"-":"\u2070\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079"[c]}).join("");return b+"10"+a} Pd("aplos.chart.LogTickProvider",ft);function it(){this.lh=[]} it.prototype.df=function(){return!1};it.prototype.Nb=function(){return this.lh.map(function(a){return a&&a.value!==void 0?fj(a):a})};it.prototype.Gd=function(a){return this.lh.length?Bi(this.lh,function(b){return b.value!=null?b.value:b}):a};it.prototype.Sk=function(a){this.lh=a.slice();return this};it.prototype.setTicks=it.prototype.Sk;it.prototype.getDefaultViewport=it.prototype.Gd;it.prototype.getTicks=it.prototype.Nb;Pd("aplos.chart.ManualTickProvider",it);function jt(){bt.call(this)} ed(jt,bt);jt.prototype.Fh=function(a,b,c,e){Math.abs(c[0]-c[1])>4E-10&&(c=[dt(c[0]),dt(c[1])]);if(c[0]>=0)var f=0;else if(c[1]<=0)f=b;else{if(b===1)return Bi(kt(this,a,2,1,c,e));f=Math.round(Math.abs(c[0])/(c[1]-c[0])*b);f===0?f=1:f===b&&(f=b-1)}c[1]-c[0]===0&&(c[1]>0?c=[0,c[1]*1.25]:c[1]<0&&(c=[c[0]*1.25,0]));return kt(this,a,b,f,c,e)};function kt(a,b,c,e,f,h){c=Math.max(1,c);var n=0;f[0]<0&&(n=a.We(b,[f[0],0],e,h));var r=0;f[1]>0&&(r=a.We(b,[0,f[1]],c-e,h));f[1]-f[0]===0&&(r=b[0]);a=Math.max(Math.abs(n),r);b=[];for(f=0;f<=c;f++)b[f]=f*a-e*a;return b} Pd("aplos.chart.QuantumTickProvider",jt);function lt(){bt.call(this);this.Gf=new jt} ed(lt,bt);lt.prototype.Nb=function(a,b,c,e,f,h){if(this.re>2&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0)){if(this.Oe)this.Gf.eh(!0);else{var n=this.re;n!=null&&this.Gf.xi(n)}this.Gf.wi(this.Xg);n=this.Lg();n!=void 0&&this.Gf.Qd(n);return this.Gf.Nb(a,b,c,e,f,h)}return bt.prototype.Nb.call(this,a,b,c,e,f,h)};lt.prototype.Fh=function(a,b,c,e){b=Math.max(1,b);c[1]-c[0]===0&&(c[1]>0?c=[c[0]*.75,c[1]*1.25]:c[1]<0&&(c=[c[0]*1.25,c[1]*.75]));if(b==1&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0))return b=[0,Math.min(Math.abs(c[0]),Math.abs(c[1]))],b=b[1]-b[0]===0?a[0]:this.We(a,b,1,e),a=this.Ye(c,b),e=Math.ceil(c[1]/b)*b,e=0,n=Pe(r,"truncate")>=0);b.Ya=n;b.O=h?45:0;e.axisTitlePaddingPx!==void 0&&b.nk(+e.axisTitlePaddingPx);e.tickRotateDegrees!=null&&(b.ya=+e.tickRotateDegrees);e.showTickMarks!==void 0&&e.showTickMarks==1?b.Bd(c):b.Bd(0);e.minPxBetweenLabels!==void 0&&(b.N=+e.minPxBetweenLabels);e.minPxBetweenTicks!==void 0&&(b.ha=+e.minPxBetweenTicks);a.type==="log"&&(b.ha=0);e.showBaseline!==void 0&&b.Ad(e.showBaseline);e.showAxisLine!==void 0&&b.Rd(e.showAxisLine);e.showGridlines!==void 0&&b.Sd(e.showGridlines)}return f} function vt(a,b,c){var e=a.type.toLowerCase(),f=qt(a).scaleType,h=null,n=qt(a),r=n.nicing,t=a.ticks||{},y=a.extents||{},E=null;y.type=="fixed"&&Array.isArray(y.values)&&y.values.length>1&&(E=y.values);y=t.type||"default";switch(n.tickProviderType(y,c,E)){default:throw Error("Invalid axis ticks type: "+y);case "ordinal":if(e!="ordinal")throw Error('"ordinal" ticks type can only be used with an "ordinal" axis type');h=new hs(f);break;case "data":h=new et;break;case "endpoints":h=new et;h.Qg=!0;break;case "tight":e==="log"?h=new ft:e==="time"?h=new Vs:e==="ordinal"?h=new hs(f):h=new lt;break;case "fixed":if(Array.isArray(t.values))f=t.values.map(function(ma){var na={value:e=="ordinal"?ma.value:+ma.value};ma.hasOwnProperty("label")&&(na.label=ma.label);return na}),h=new it,h.Sk(f);else throw Error('No tick values found for "fixed" tick provider');break;case "quantum":e==="time"?h=new Ks:h=new jt}h&&h.Qd&&(r=t.nicing||r,f=h,typeof r==="string"&&nt[r]?f.Qd(nt[r]):typeof r==="function"&&f.Qd(r));a.columnType&&h&&h.vk&&h.vk(a.columnType);h instanceof bt&&(t.integerOnly&&h.Dk(!!t.integerOnly),b?h.xi(b):c&&h.eh(!0));return h} function st(a,b){var c=b.ticks||null;c=c&&c.format?c.format:null;b=qt(b).tickFormatter(c);b!=null&&a.Rk(b)} function tt(a,b){b.extents&&b.extents.type&&b.extents.type==="fixed"&&Array.isArray(b.extents.values)&&a.Mk(b.extents.values)} function ut(a,b){b.layout&&(b=b.layout,b.type&&b.type==="fixed"&&b.size!==void 0&&a.hh(+b.size))} function qt(a){var b=a.type.toLowerCase();if(wt[b])return wt[b];throw Error("Invalid axis scale: "+a.type);} Pd("aplos.chart.AxisSpecParser",ot);ot.prototype.createMeasureAxisForSpec=ot.prototype.ij;ot.prototype.createDomainAxisForSpec=ot.prototype.hj;var wt={linear:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:pi(a));return b},tickProviderType:function(a,b,c){return a=="default"?c!=null&&c.length>1&&(c[0]>=0||c[1]<=0)?b?"data":"tight":b?"data":"quantum":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:0,showDomainAxisLine:!0,showBaseline:!0},log:{nicing:"tight",tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:pi(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:1,showDomainAxisLine:!0,showBaseline:!1},ordinal:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:pi(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a){return a=="default"?"labels":a},scaleType:2,showDomainAxisLine:!1,showBaseline:!1},time:{nicing:"none",tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:Ar(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:3,showDomainAxisLine:!0,showBaseline:!1}};function xt(){} ed(xt,ot);Pd("aplos.chart.OldAxisSpecParser",xt);var yt=new ot;mt.current=yt;function zt(){} zt.prototype.ie=function(){};zt.prototype.Vd=function(){};Pd("aplos.chart.ShapeRenderer",zt);function At(a,b,c){this.N=c!==void 0?c:!1;this.O=b!==void 0?b:!0;this.ha=a;this.ka="0.6ex"} w=At.prototype;w.ie=function(a,b,c,e,f,h,n){var r=(this.ha+" "+b).trim();a=a.append("g").attr("class",r);this.Dc(a);a.append("text");this.Vd(a,b,c,e,f,h,n)};w.Vd=function(a,b,c,e,f,h,n){var r=n.strokeWidth!=null?n.strokeWidth:2,t=this.O?"white":h,y=this.Nc(a);y.size()<1&&(y=gk(a.node()),b=(this.ha+" "+b).trim(),y.attr("class",b),y.selectAll("*").remove(),this.Dc(y),y.append("text"),y=this.Nc(a));a=a.select("text");this.Uc(y,a,c,e,f,this.O,r,h,t,this.N?n.label:null)};w.Dc=function(){};w.Nc=function(){};w.Uc=function(){};function Bt(a,b,c,e,f,h,n){c={dx:c,fill:h,"text-anchor":"middle",opacity:a.N?"1":"0"};rf||sf?(c.y=e,c.dy=a.ka):(c.dy=e,c["dominant-baseline"]="middle");Ej(b,c);b.style("fill",h);b.style("font-size",f*1.25+"px");b.text(n)} Pd("aplos.chart.shaperenderer.BaseLabelShape",At);function Ct(){At.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} ed(Ct,At);Ct.prototype.Dc=function(a){a=a.append("g").attr("class","aplos-box-triangle-right-shape");a.append("rect").attr("class","primary");a.append("path").attr("class","secondary")};Ct.prototype.Nc=function(a){return a.select("g.aplos-box-triangle-right-shape")};Ct.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){var E=a.select(".primary");if(E.size()<1)throw Error("No primary path found in update selection");var ma=a.select(".secondary");if(ma.size()<1)throw Error("No secondary path found in update selection");var na=f*2,sa=na/16;Ej(a,{fill:r,width:na+"px",height:na+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});Ej(E,{rx:2,ry:2,width:f*2,height:f*2,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});Ej(ma,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ sa+")"});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.BoxTriangleRight",Ct);function Dt(a,b){At.call(this,"aplos-circle-shape-group",a,b)} ed(Dt,At);Dt.prototype.Dc=function(a){a.append("circle").attr("class","aplos-circle-shape")};Dt.prototype.Nc=function(a){return a.select("circle.aplos-circle-shape")};Dt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){Ej(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.Circle",Dt);function Et(){} Et.prototype.ie=function(a,b,c,e,f,h,n,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Vd(a,b,c,e,f,h,n,r,t)};Et.prototype.Vd=function(a,b,c,e,f,h,n,r,t){Ej(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:h,"stroke-width":f*2})};Pd("aplos.chart.shaperenderer.Cylinder",Et);function Ft(a,b){At.call(this,"aplos-equilateral-triangle-shape-group",a,b)} ed(Ft,At);Ft.prototype.Dc=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Ft.prototype.Nc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Ft.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){var E=.866*f;Ej(a,{points:c+","+(e-E)+" "+(c+f+","+(e+E)+" ")+(c-f+","+(e+E)),fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});Bt(this,b,c,e+f-E,f,t,y)};Pd("aplos.chart.shaperenderer.EquilateralTriangle",Ft);function Gt(){At.call(this,"aplos-error-shape-group",!0,!1)} ed(Gt,At);Gt.prototype.Dc=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Gt.prototype.Nc=function(a){return a.select("g.aplos-error-shape")};Gt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){h=a.select(".primary");if(h.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");var E=f*2,ma=2,na=2;if(E>36){var sa="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z";var ua=40;na=ma=4}else E>24?(sa="M18 3C9.72 3 3 9.72 3 18s6.72 15 15 15c8.28 0 15-6.72 15-15S26.28 3 18 3zm1 22h-2v-2h2v2zm0-5h-2v-9h2v9z",ua=30,na=ma=3):E>20?(sa="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",ua=20,na=ma=2.5):E>18?(sa="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z",ua=40):(sa="M9 1.03c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zM10 13H8v-2h2v2zm0-3H8V5h2v5z",ua=16,na=ma=1);ua=E/ua;Ej(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f-ma)+", "+(e-f-na)+")"});Ej(h,{d:sa,transform:"scale("+ua+")"});Ej(n,{cx:f+ma,cy:f+na,r:f*.95,fill:"white","stroke-width":"0"});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.ErrorShape",Gt);function Ht(a,b,c){At.call(this,"aplos-oval-shape-group",b,c);this.v=a||1} ed(Ht,At);Ht.prototype.Dc=function(a){a.append("ellipse").attr("class","aplos-oval-shape")};Ht.prototype.Nc=function(a){return a.select("ellipse.aplos-oval-shape")};Ht.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){Ej(a,{cx:c,cy:e,ry:this.v>=1?f:f*this.v,rx:this.v>1?f/this.v:f,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.Oval",Ht);function It(){At.call(this,"aplos-pause-shape-group",!0,!1)} ed(It,At);It.prototype.Dc=function(a){a=a.append("g").attr("class","aplos-pause-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};It.prototype.Nc=function(a){return a.select("g.aplos-pause-shape")};It.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){h=a.select(".primary");if(h.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");var E=f*2,ma=1.5,na=1.5;E>36?na=ma=4:E>24?na=ma=3:E>20?na=ma=2.5:E>18&&(na=ma=2);var sa=E/40;Ej(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f-ma)+", "+(e-f-na)+")"});Ej(h,{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-2 28h-4V16h4v16zm8 0h-4V16h4v16z",transform:"scale("+sa+")"});Ej(n,{cx:f+ma,cy:f+na,r:f*.9,fill:"white","stroke-width":"0"});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.PauseShape",It);function Jt(a,b,c){At.call(this,"aplos-rect-shape-group",b,c);this.v=a||1} ed(Jt,At);Jt.prototype.Dc=function(a){a.append("rect").attr("class","aplos-rect-shape")};Jt.prototype.Nc=function(a){return a.select("rect.aplos-rect-shape")};Jt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){var E=this.v>1?f/this.v:f,ma=this.v>=1?f:f*this.v;Ej(a,{x:c-E,y:e-ma,rx:2,ry:2,width:E*2,height:ma*2,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.Rect",Jt);function Kt(){} Kt.prototype.ie=function(a,b,c,e,f,h,n,r,t){b=("aplos-rectangle-range-shape "+b).trim();a=a.append("line").attr("class",b);this.Vd(a,b,c,e,f,h,n,r,t)};Kt.prototype.Vd=function(a,b,c,e,f,h,n,r,t){Ej(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"butt",stroke:h,"stroke-width":f*2})};Pd("aplos.chart.shaperenderer.RectangleRange",Kt);function Lt(){At.call(this,"aplos-refresh-shape-group",!0,!1)} ed(Lt,At);Lt.prototype.Dc=function(a){a=a.append("g").attr("class","aplos-refresh-shape");a.append("path").attr("class","primary");a.append("path").attr("class","secondary")};Lt.prototype.Nc=function(a){return a.select("g.aplos-refresh-shape")};Lt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){h=a.select(".primary");if(h.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");f*=1.4;var E=f*2;if(E>36){var ma="M35.3 12.7C32.41 9.8 28.42 8 24 8 15.16 8 8.02 15.16 8.02 24S15.16 40 24 40c7.45 0 13.69-5.1 15.46-12H35.3c-1.65 4.66-6.07 8-11.3 8-6.63 0-12-5.37-12-12s5.37-12 12-12c3.31 0 6.28 1.38 8.45 3.55L26 22h14V8l-4.7 4.7z";var na=48}else E> 24?(ma="M26.47 9.53C24.3 7.35 21.32 6 18 6 11.37 6 6 11.37 6 18s5.37 12 12 12c5.94 0 10.85-4.33 11.81-10h-3.04c-.91 4.01-4.49 7-8.77 7-4.97 0-9-4.03-9-9s4.03-9 9-9c2.49 0 4.71 1.03 6.34 2.66L20 16h10V6l-3.53 3.53z",na=36):E>20?(ma="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",na=24):E>18?(ma="M14.95 5.05C13.68 3.79 11.93 3 10 3c-3.87 0-7 3.13-7 7s3.13 7 7 7c3.17 0 5.85-2.11 6.71-5h-2.13c-.77 1.77-2.53 3-4.58 3-2.76 0-5-2.24-5-5s2.24-5 5-5c1.38 0 2.62.57 3.52 1.48L11 9h6V3l-2.05 2.05z",na=20):(ma="M9 13.5c-2.49 0-4.5-2.01-4.5-4.5S6.51 4.5 9 4.5c1.24 0 2.36.52 3.17 1.33L10 8h5V3l-1.76 1.76C12.15 3.68 10.66 3 9 3 5.69 3 3.01 5.69 3.01 9S5.69 15 9 15c2.97 0 5.43-2.16 5.9-5h-1.52c-.46 2-2.24 3.5-4.38 3.5z",na=18);Ej(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f)+", "+(e-f)+") scale("+E/na+")"});Ej(h,{d:ma});Ej(n,{d:"M0 0h"+E+"v"+E+"H0z",fill:"none"});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.Refresh",Lt);function Mt(){At.call(this,"aplos-warning-shape-group",!0,!1)} ed(Mt,At);Mt.prototype.Dc=function(a){a=a.append("g").attr("class","aplos-warning-shape");a.append("polygon").attr("class","secondary");a.append("path").attr("class","primary")};Mt.prototype.Nc=function(a){return a.select("g.aplos-warning-shape")};Mt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,y){var E=a.select(".primary");if(E.size()<1)throw Error("No primary path found in update selection");h=a.select(".secondary");if(h.size()<1)throw Error("No secondary path found in update selection");var ma=f*2,na=2;n=1;if(ma>36){var sa="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z";var ua=44}else ma>24?(sa="M1 32h34L18 3 1 32zm18-5h-2v-2h2v2zm0-5h-2v-7h2v7z",ua=32):ma>20?(sa="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ua=20):ma>18?(sa="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ua=20):(sa="M.5 16h17L9 1 .5 16zm9.5-2H8v-2h2v2zm0-3H8V7h2v4z",ua=16,na=1,n=0);ua=ma/ua;Ej(a,{fill:r,width:ma+"px",height:ma+"px",viewBox:"0 0 "+ma+" "+ma,transform:"translate("+(c-f-na)+", "+(e-f-n)+")"});Ej(E,{d:sa,transform:"scale("+ua+")"});a=.866*f*.95;r=f*.95;na=f+na;n=f+n;Ej(h,{points:na+","+(n-a)+" "+(na+r+","+(n+a)+" ")+(na-r+","+(n+a)),fill:"white","stroke-width":"0"});Bt(this,b,c,e,f,t,y)};Pd("aplos.chart.shaperenderer.WarningShape",Mt);function Nt(a,b){return new Dt(a!==void 0?a:!0,b!==void 0?b:!1)} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createCircleRenderer",Nt);function Ot(){return new Et} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createCylinderRenderer",Ot);function Pt(a,b){return new Ft(a!==void 0?a:!0,b!==void 0?b:!1)} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createEquilateralTriangleRenderer",Pt);function Qt(){return new Gt} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createErrorRenderer",Qt);function Rt(a,b,c){return new Ht(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createOvalRenderer",Rt);function St(){return new It} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createPauseRenderer",St);function Tt(a,b,c){return new Jt(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRectRenderer",Tt);Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRectangleRangeRenderer",function(){return new Kt});function Ut(){return new Lt} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRefreshRenderer",Ut);function Vt(a,b){return Tt(1,a,b)} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createSquareRenderer",Vt);function Wt(){return new Mt} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createWarningRenderer",Wt);function Xt(){return new Ct} Pd("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createBoxTriangleRightRenderer",Xt);Pd("aplos.chart.shaperenderer.ShapeRendererFactory",function(){});function Yt(){this.v=Ot()} w=Yt.prototype;w.Ob=function(a){for(var b=0;b=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};w.distance=function(a){var b=a.x325E11;e.forEach(function(ua){var ta=ua.domain;ua.time=ta<325E11?ta*1E3:ta;ua.displayName=a.name;ua.description=ua.datum.description;ua.chartX=Fp(h,n?ua.time:ua.time/1E3);ua.chartY=0;ta=b.Ed()||wu;ua.label=ta(ua.time)},this);e.sort(function(ua,ta){return ua.ab-ta.ab});var r=[];if(e.length>0){var t;for(t=0;t=0){var y={Jb:e[t],lb:[]};r.push(y);break}for(t+=1;tf.Za())break;E.ab>y.Jb.ab+100?(y.nd=E.ab-y.Jb.ab,y={Jb:E,lb:[]},r.push(y)):y.lb.push(E)}if(!y)return;if(y.Jb.ab+60>f.Za()){y.Sl=!0;y.lb.length>0&&(e=y.lb.pop(),y.lb.unshift(y.Jb),y.Jb=e);var ma=r[r.length-2],na=y;if(ma&&ma.Jb.ab+ma.nd>na.Jb.ab-100){var sa=(na.Jb.ab-ma.Jb.ab)/2+ma.Jb.ab;y=na.lb;e=ma.lb;na.lb=[];ma.lb=[];e.forEach(function(ua){ua.chartX> sa?na.lb.push(ua):ma.lb.push(ua)});y.forEach(function(ua){ua.chartX>sa?na.lb.push(ua):ma.lb.push(ua)});ma.nd=sa-ma.Jb.ab;na.nd=na.Jb.ab-sa;ma.nd<60&&(na.nd+=ma.nd,na.lb=[ma.Jb].concat(ma.lb).concat(na.lb),r.splice(r.length-2,1))}}else y.nd=f.Za()-y.Jb.ab}c.Cj=r;jp(b,c)}};w.render=function(a,b,c){var e=b.Kb();b=jp(b);if(b.Cj&&b.Sq)if(a.data.length===0&&c.node()==null)c.selectAll("*").remove();else return c.attr("transform","translate(0, -60)"),a=c.select(".background-rect"),a.size()||(a=c.append("rect").classed("background-rect",!0).style("fill","#fafafa")),a.attr("width",e.Za()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.Cj),c.exit().remove(),a=c.enter().append("g").classed("event-annotation-content",!0),a.append("g").classed("subdominant-lines",!0),a.append("line").classed("marker-line",!0),a.append("line").classed("range-line",!0),a.append("g").classed("text-holder",!0),c=a.merge(c),c.each(function(f){var h=gk(this),n=f.Jb,r=f.Sl,t=f.nd-4-10;Ej(h,{transform:"translate("+n.ab+", 0)"});var y=h.select(".text-holder");y.append("text").classed("annotation-title",!0);y.append("text").classed("date",!0);y.append("text").classed("subdominant-additional-text",!0);y.attr("transform","translate("+(r?"-":"")+4+", 10)");var E=y.select("text.annotation-title").text(n.description);kk(E.node(),t);E.attr("dy","1em");lk(E.node(),n.description);E=y.select("text.date").text(n.label);kk(E.node(),t);E.attr("dy","2.15em");lk(E.node(),n.label);var ma=f.lb.length>0;E=h.select("text.subdominant-additional-text");if(ma){ma="+ "+f.lb.length+" more";E=E.text(ma);kk(E.node(),t);var na="";f.lb.forEach(function(sa){na+=sa.label+" "+sa.description+"\n"});lk(E.node(),na);Ej(E,{dy:"3.30em",display:null})}else E.attr("display","none");y.selectAll("text").attr("text-anchor",tk(r?"right":"left"));f.lb.length>0&&(t=h.select("line.range-line"),y=Qr(f.lb,function(sa){return Math.abs(n.ab-sa.ab)}),Ej(t,{x1:(r?"-":"")+y,transform:"translate(0, 60)","pointer-events":"none"}));r=h.select("line.marker-line");Ej(r,{y2:60+e.yb(),"pointer-events":"none"});f=h.selectAll(".subdominant-lines").selectAll("line").data(f.lb);f.exit().remove();f=f.enter().append("line").merge(f);h=60+e.yb();Ej(f,{y1:60,y2:h,x1:function(sa){return sa.ab-n.ab},x2:function(sa){return sa.ab-n.ab},"pointer-events":"none"})}),c;else c.selectAll("*").remove()};w.ue=function(a,b,c,e,f){a=f.width;f=f.height;e=e.append("g").attr("class","event-annotation-content");e.append("rect").attr("class","event-annotation-content").attr("width",a).attr("height",f).attr("x",0).attr("y",0).attr("fill","#fafafa");e.append("line").attr("class","event-annotation-content").attr("y2",f).attr("stroke","#d2d2d2").attr("shape-rendering","crispEdges")};w.fj=function(){};w.ve=function(){return!1};w.ud=function(){return-10};w.Ld=function(a){return a instanceof vu};w.td=function(){};w.le=function(){};w.Bb=function(){};function wu(a){return Dr("%b %e")(a/1E3)} Pd("aplos.chart.renderer.Annotation",vu);var xu={hl:0,fq:1};Pd("aplos.chart.renderer.ArcLabelPosition",xu);xu.INSIDE=0;xu.OUTSIDE=1;function yu(a,b,c,e){this.Cb=a;this.N=zu(b);this.Wa=c;this.O=!!e;this.v=0} function Au(a,b,c,e,f,h){var n=Bu().outerRadius(a.outerRadius()).innerRadius(a.innerRadius());c!=0&&n.innerRadius(n.outerRadius()());var r=[];b.forEach(function(t){r.push({start:n.centroid(t),datum:t})});c!=0&&n.innerRadius(n.outerRadius()()+f);b.forEach(function(t,y){t=n.centroid(t);r[y].offset=[Math.round(t[0]-r[y].start[0]),Math.round(t[1]-r[y].start[1])]});f&&h||(n.innerRadius(n.innerRadius()()+e),b.forEach(function(t,y){t=n.centroid(t);r[y].jd=[Math.round(t[0]-r[y].start[0]),Math.round(t[1]-r[y].start[1])]}));return{position:c,padding:e,Rf:f,oe:h,data:r}} yu.prototype.Vg=function(a){if(a==null)return this.v;this.v=a;return this};yu.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Nd(function(b,c){return[this.Cb.data[c]]},this));Cu(this,a.enter())};function Cu(a,b){b=b.append("g").filter(Nd(function(c){return c.datum.endAngle-c.datum.startAngle>Math.PI/180*this.v},a)).classed("arc-label-group",!0).style("opacity","0").attr("transform",function(c){return"translate("+c.start+")"});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1");a.O&&!rf?Du(a,b):Eu(a,b);cw(a,b);dw(b);b.filter(function(){return!gk(this).select(".arc-label").text()}).style("display","none")} function Du(a,b){var c=a.Cb.Rf,e=a.Cb.oe,f=a.Cb.position,h=a.Cb.padding;b=b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=h+e;t=r===0?0:r>0?t:-t}else r=n.jd[0],n=n.jd[1],t=0;return"translate("+[r+t,n]+")"}).append("foreignObject").append("xhtml:body").classed("arc-label-container",!0).style("margin","0").append("div").style("position","fixed").append("div").classed("arc-label",!0).style("opacity",0).text(Ik(a.N));b.each(function(n){var r=this.getBoundingClientRect(),t=Math.round(r.width);r=Math.round(r.height);var y=gk(this.parentNode.parentNode.parentNode);if(c&&e){var E=n.offset[0];var ma=n.offset[1]}else E=n.jd[0],ma=n.jd[1];n=E===0?-(t/2):E>0?0:-t;E=f!=0?E===0?ma>0?0:-r:-(r/2):-(r/2);y.attr("width",t+"px").attr("height",r+"px").attr("transform","translate("+[n,E]+")")});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity",1):b.style("opacity",1)} function dw(a){var b=null,c=[];a.each(function(f){var h=gk(this),n=h.select(".arc-label").node().getBoundingClientRect();n=new nu(n.left,n.top,n.width,n.height);var r=h.select(".arc-leader-line-tail");r.empty()||(r=r.node().getBoundingClientRect(),pu(n,new nu(r.left,r.top,r.width,r.height)));r=f.datum.startAngle;(f.datum.endAngle+r)/2Math.PI&&ou(f.rect,b)?f.me.style("display","none"):(f.me.style("display",""),e=f.rect)})} function Eu(a,b){var c=a.Cb.Rf,e=a.Cb.oe,f=a.Cb.padding,h=a.N;b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=f+e;t=r===0?0:r>0?t:-t}else r=n.jd[0],n=n.jd[1],t=0;return"translate("+[r+t,n]+")"}).append("text").classed("arc-label",!0).attr("dy",".35em").style("text-anchor",function(n,r){var t=n.offset[0];return tk(t!==0&&e?t>0?"start":"end":"middle",h).call(this,n,r)}).each(function(n,r){fi(this,Ik(h)(n,r))})} function cw(a,b){var c=a.Cb.oe;b.append("line").classed("arc-leader-line",!0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});c>0&&b.append("line").classed("arc-leader-line-tail",!0).attr("x1",function(e){return e.offset[0]}).attr("y1",function(e){return e.offset[1]}).attr("x2",function(e){e=e.offset[0];return e+(e===0?0:e>0?c:-c)}).attr("y2",function(e){return e.offset[1]})} function zu(a){return function(b,c){return a(b.datum,c)}} ;function ew(a,b,c){this.Cb=a;this.N=fw(b);this.Wa=c;this.v=0} ew.prototype.Vg=function(a){if(a==null)return this.v;this.v=a;return this};ew.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Nd(function(b,c){return[this.Cb.data[c]]},this));gw(this,a.enter())};function gw(a,b){b=b.append("g").filter(Nd(function(c){return c.datum.endAngle-c.datum.startAngle>Math.PI/180*this.v},a)).classed("arc-label-group",!0).attr("transform",function(c){return"translate("+c.start+")"});hw(a,b);iw(a,b);b.empty()||(jw(a,b),kw(b),Hk(b).filter(function(){return!gk(this).select(".arc-label").text()}).style("display","none"))} function hw(a,b){var c=a.Cb.Rf,e=a.Cb.oe,f=a.Cb.position,h=a.Cb.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var y=h;t!==0&&r!==0&&(y+=e);y=t===0?0:t>0?y:-y;var E=f===1&&t===0?r<0?-h:h:0}else t=r.jd[0],r=r.jd[1],E=y=0;return"translate("+[t+y,r+E]+")"});var n=b=zk(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",lw(a,f)).append("div").classed("arc-label",!0).style("opacity",0).each(Od(mw,a.N));b.each(Od(function(r,t){r=gk(this);var y=r.select(".arc-label"),E=y.node();ek(E,null,null,!0);if(c&&e){var ma=t.offset[0];t=t.offset[1]}else ma=t.jd[0],t=t.jd[1];y.style("text-align",ma===0?"center":ma>0?"left":"right");y=E.getBoundingClientRect();nw(f,r,new nu(ma,t,y.width,y.height))},a));b=b.select(".arc-label");a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1")} function mw(a,b,c){a=a(b,c,!0);var e=this;Array.isArray(a)?a.forEach(function(f){e.appendChild(f)}):gk(e).text(a)} function lw(a,b){return Qi(xu,function(c){return c===b},a).toLowerCase()} function nw(a,b,c){var e=c.left===0?-Math.round(c.width/2):c.left>0?0:-c.width;a=a!=0?c.left===0?c.top>0?0:-c.height:-Math.round(c.height/2):-Math.round(c.height/2);b.style("width",Math.ceil(c.width)+"px").style("height",Math.ceil(c.height)+"px");b.select("div").style("left",e+"px").style("top",a+"px").style("position","absolute");b.select(".arc-label").style("max-width",Math.ceil(c.width)+"px");b.attr("data-translate-y",a)} function kw(a){var b=null,c=[];a.each(function(f){var h=gk(this),n=Hk(h.select("g"));if(n.style("display")!=="none"){var r=n.select(".arc-label").node().getBoundingClientRect();r=new nu(r.left,r.top,r.width,r.height);var t=h.select(".arc-leader-line-tail");t.empty()||(t=t.node().getBoundingClientRect(),pu(r,new nu(t.left,t.top,t.width,t.height)));t=f.datum.startAngle;(f.datum.endAngle+t)/2Math.PI&&ou(f.rect,b)?(f.me.style("display","none"),f.Qh.style("display","none")):(f.me.style("display",""),f.Qh.style("display",""),e=f.rect)})} function jw(a,b){var c=Ak(b).node().getBoundingClientRect();b.each(Od(function(e,f){var h=gk(this),n=Hk(h.select("g")),r=n.select(".arc-label").node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,y=Math.ceil(f.left-r.left)+5,E=(t>0?t:0)+(y>0?y:0);E&&(t=gk(n.node()),r=Math.ceil(r.width-E),r>0&&(t.style("width",r+"px"),y>0&&(y=+t.attr("data-translate-y"),t.select(".arc-label").style("left",-r+"px").style("top",y+"px"))),t.select(".arc-label").style("max-width",Math.ceil(r)+"px"),r=n.select(".arc-label").node().getBoundingClientRect(),nw(e.Cb.position,t,new nu(r.left-f.left-f.width/2,r.top-f.top-f.height/2,r.width,r.height)));if(r.topf.top+f.height||r.leftf.left+f.width)h.style("display","none"),n.style("display","none")},a,c))} function iw(a,b){var c=a.Cb.oe;b.append("line").classed("arc-leader-line",!0).style("opacity",0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});c>0&&b.append("line").classed("arc-leader-line-tail",!0).style("opacity",0).attr("x1",function(e){return e.offset[0]}).attr("y1",function(e){return e.offset[1]}).attr("x2",function(e){var f=e.offset[0];e=e.offset[1];return f+(f===0||e===0?0:f>0?c:-c)}).attr("y2",function(e){return e.offset[1]});a.Wa?b.selectAll("line").transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.selectAll("line").style("opacity","1")} function fw(a){return function(b,c,e){return a(b.datum,c,e)}} ;function ow(a,b){this.N=Bu().outerRadius(a).innerRadius(b);this.v=pw();this.ya=!0;this.oa=70;this.ma=10;this.ta=20;this.ka=this.ha=0;this.Ia=!1;this.La=!0;this.na=this.O=!1;this.Aa=Dl} w=ow.prototype;w.innerRadius=function(a){return a==null?this.Hd():this.Ck(a)};w.Ck=function(a){this.N.innerRadius(a);return this};w.Hd=function(){return this.N.innerRadius()()};w.outerRadius=function(a){return a==null?this.Xe():this.Ok(a)};w.Ok=function(a){this.N.outerRadius(a);return this};w.Xe=function(){return this.N.outerRadius()()};w.startAngle=function(a){a==null?a=this.v.startAngle()():(this.v.startAngle(a),a=this);return a};w.endAngle=function(a){a==null?a=this.v.endAngle()():(this.v.endAngle(a),a=this);return a};w.Rq=function(a){a==null?a=this.na:(this.na=a,a=this);return a};w.Io=function(a){return a==null?this.ya:this.Di(a)};w.Di=function(a){this.ya=a;return this};w.en=function(){return this.ya};w.Pd=function(a){this.Aa=a;return this};w.Rf=function(a){return a==null?this.oa:this.oi(a)};w.oi=function(a){this.oa=a;return this};w.Km=function(){return this.oa};w.oe=function(a){return a==null?this.ta:this.ri(a)};w.ri=function(a){this.ta=a;return this};w.Lm=function(){return this.ta};w.En=function(a){return a==null?this.ma:this.ni(a)};w.ni=function(a){this.ma=a;return this};w.Im=function(){return this.ma};w.Fn=function(a){return a==null?this.rd():this.Pb(a)};w.Pb=function(a){this.ha=a;return this};w.rd=function(){return this.ha};w.Vg=function(a){return a==null?this.ka:this.vi(a)};w.vi=function(a){this.ka=a;return this};w.Sm=function(){return this.ka};w.Pl=function(a){return a==null?this.O:this.ii(a)};w.ii=function(a){this.O=a;return this};w.wm=function(){return this.O};w.Xc=function(){};w.Ob=function(){};w.render=function(a,b,c,e){if(this.Ia){var f=c.select(".pie-background");f.empty()&&(f=c.insert("path",":first-child").classed("pie-background",!0));f.attr("d",this.N({startAngle:0,endAngle:2*Math.PI}))}else c.select(".pie-background").remove();f=qw(c);var h=rw(this,a,b);a=c.select(".arcs");a.empty()&&(a=c.append("g").classed("arcs",!0));var n=c.select(".arc-borders");n.empty()&&(n=c.append("g").classed("arc-borders",!0));c=sw(b.key());n=n.selectAll(".arc-border").data(h,c);var r=gk(null),t=null,y=n.exit();h.length>0&&h[h.length-1].endAngle>0?(r=a.selectAll(".arc").data(h,c),t=r.exit(),r=tw(this,r,h,f,b),n=uw(this,n,h,f,b)):(a=vw(this,h,f,a,b),t=a.exit,r=a.update,f.length||(e=0));ww(this,r,n,h,b,e);xw(this,t,y,h,f,b,e);n.attr("visibility",Nd(function(){return this.na&&h.length<=1?"hidden":null},this));return r};w.ue=function(a,b,c,e,f){e=e.append("circle").attr("cx",f.width/2).attr("cy",f.height/2).attr("r",f.width/2);tl(e,function(){return c.color()(a,b)})};w.td=function(a,b,c,e){var f=new Ij(c,e),h=this.Xe(),n=this.Hd(),r=Jj(f,new Ij(0,0)),t=null;if(r>=n&&r<=h)for(f=(f.x>=0?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,h=rw(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=yw(this,a,b,r.data||{},n,c,e);break}return t};function yw(a,b,c,e,f,h,n){var r=c.measure(),t=c.domain(),y=c.color(),E=rw(a,b,c)[f];var ma=E.startAngle-Math.PI/2;var na=E.endAngle-Math.PI/2;E=a.Xe();var sa=a.Hd();ma=(ma+na)/2;E=sa+(E-sa)/2;ma=new Ij(Math.round(Math.cos(ma)*E),Math.round(Math.sin(ma)*E));sa=c.Kb();E=ma.x+sa.Za()/2;sa=ma.y+sa.yb()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:ma.x,datumY:ma.y,chartX:E,chartY:sa,color:y(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.Bb(b,h,n)} w.Bb=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};ij(e,a);b!=void 0&&c!=void 0&&(e.relativeDistance=Jj(new Ij(e.datumX,e.datumY),new Ij(b,c)));return e};w.le=function(a,b,c,e,f,h,n){f=f===void 0?[]:f;for(var r=0;r0;)b.pop();b.push({startAngle:a.v.startAngle()(),endAngle:a.v.endAngle()(),data:{}});var h=sw(f.key());e=e.selectAll(".arc").data(b,h);h=e.enter().append("g").attr("class","arc");var n=sw(f.key());h.append("path").classed("pieSegment",!0).classed("empty-pie",!0).each(Od(function(r,t,y){r=zw(r,y,b,c,n);this.N={startAngle:r,endAngle:r}},a));return{exit:e.exit(),update:h.merge(e)}} function tw(a,b,c,e,f){var h=b.enter().append("g").attr("class","arc"),n=h.append("path").classed("pieSegment",!0).attr("data-id",sw(f.zh()));tl(n,sw(f.color()));var r=sw(f.key());n.each(Od(function(t,y,E){t=zw(t,E,c,e,r);this.N={startAngle:t,endAngle:t}},a));return h.merge(b)} function uw(a,b,c,e,f){var h=b.enter().append("line").classed("arc-border",!0).attr("x1",0).attr("x2",0),n=sw(f.key());h.each(Od(function(r,t,y){this.O=zw(r,y,c,e,n)},a)).attr("transform",Od(function(){return Aw(this.O)},a));return h.merge(b)} function ww(a,b,c,e,f,h){var n=$n(f,"datumHoverState")?f.od():function(){return 0},r=$n(f,"datumClickState")?f.de():function(){return 0},t=b,y=b;c.attr("y1",a.Hd()>0?-a.Hd()+1:0).attr("y2",a.Xe()>0?-a.Xe()-1:0);h&&(b=b.transition().duration(h),c=c.transition().duration(h));var E=f.color(),ma=b.select("path");tl(ma,function(ua,ta){return a.Aa(E(ua.data,ta),n(ua.data,ta),r(ua.data,ta)).color});var na=f.Le();b.each(function(ua,ta){var Ba=gk(this);typeof na==="function"?(ua=na(ua.data,ta))&&typeof ua==="string"||(ua=""):ua=na;(ta=Ba.attr("data-user-classes"))&&Ba.classed(ta||"",!1);ua&&Ba.classed(ua,!0);Ba.attr("data-user-classes",ua)});var sa=!a.La||yf||zf?null:Bl(f.Kb().kb.node());h?b.select("path").attrTween("d",Bw(a.N)):b.select("path").attr("d",a.N).each(function(ua){this.N={startAngle:ua.startAngle,endAngle:ua.endAngle};var ta=gk(this);ta.classed("empty-pie")&&ta.attr("color",null);ua.endAngle-ua.startAngle<1E-7?ta.style("display","none"):ta.style("display","")});y.each(function(ua,ta){var Ba=gk(this),ya=Ba.select("path"),Aa=n(ua.data,ta);ua=r(ua.data,ta);Ba.classed("highlight",Aa>0);Ba.classed("inverse-highlight",Aa<0);Ba.classed("selected",ua>0);Ba.classed("inverse-selected",ua<0);ya.attr("filter",Aa>0?sa:null)});t.attr("data-label-position",Nd(function(){switch(this.ha){case 0:return"inside";case 1:return"outside";default:throw Error("Unknown label position.");}},a));e.length>0&&e[e.length-1].endAngle>0&&(b=Nd(a.Jm,a,f),e=Au(a.N,e,a.ha,a.ma,a.oa,a.ta),f=null,xk()?f=new ew(e,b,h):f=new yu(e,b,h,a.O),f.Vg(a.ka).render(t));h?c.attrTween("transform",Nd(function(ua,ta,Ba){return Cw(Ba,Aw(ua.startAngle))},a)):c.attr("transform",Nd(function(ua){return Aw(ua.startAngle)},a))} function xw(a,b,c,e,f,h,n){if(n){b=b.transition().duration(n);var r=sw(h.key());h=a.N;b.select("path").attrTween("d",Dw(a,h,e,f,r));c=c.transition().duration(n);c.attrTween("transform",function(t,y){y=Pe(f,t);t=Ew(a,y,e,f,r);return Cw(this.getAttribute("transform"),Aw(t))})}b.remove();c.remove()} w.Jm=function(a,b,c,e){b=b.data;return $n(a,"label")?a.label()(b,c,e):(a.Ed()||gm)(a.domain()(b,c))};function rw(a,b,c){var e=c.measure();a.v.value(e);a.ya?a.v.sort(function(f,h){return Fw(e(f),e(h))}):a.v.sort(null);return a.v(b.data)} function Aw(a){return"rotate("+(a||0)*180/Math.PI+")"} function Bw(a){return function(b){var c=Gw(this.N,{startAngle:b.startAngle,endAngle:b.endAngle});this.N=c(0);return function(e){e=c(e);e.endAngle-e.startAngle<1E-7&&(e.startAngle=e.endAngle);return a(e)}}} function Dw(a,b,c,e,f){var h=Bw(b);return Od(function(n,r){r=Pe(e,r);n=Ew(n,r,c,e,f);return h.call(this,{startAngle:n,endAngle:n})},a)} function zw(a,b,c,e,f){for(--b;b>=0;b--)for(var h=f(c[b],b),n=0;n0:r.measureSize<=0,t),E=r.domainPosition+r.domainSize/2;y=r.measurePosition+r.measureSize+(f?-1:1)*y;switch(this.v){case "vertical":if(h){var ma=-1*y;var na=".32em"}else ma=E,E=-1*y,na=this.N==="middle"?".32em":null;break;default:h?(ma=E,E=y,na=null):(ma=y,na=".32em")}t=(t=r.validValue&&(this.N==="above"||t>=this.ka))&&(h?y<=e:y>=c);r.barLabel={domainPosition:ma,measurePosition:E,valid:t,dy:na,"text-anchor":Mw(this,b),"dominant-baseline":Nw(this,b)}}};function Mw(a,b){switch(a.N){case "above":return a.v==="vertical"?b==="y"?"left":"middle":b==="y"?"middle":"left";case "bottom":return a.v==="vertical"?b==="y"?"left":"middle":b==="y"?"middle":"left";case "middle":return"middle";case "top":return a.v==="vertical"?b==="y"?"right":"middle":b==="y"?"middle":"right";default:throw Error("Unrecognized bar label position");}} function Nw(a,b){switch(a.N){case "above":return null;case "bottom":return null;case "middle":return a.v==="vertical"?null:b==="y"?"middle":null;case "top":return a.v==="vertical"?b==="x"?"hanging":null:b==="y"?"hanging":null;default:throw Error("Unrecognized bar label position");}} w.add=function(a){a.append("text").attr("class","bar-label")};w.update=function(a,b,c,e){a=a.select(".bar-label");var f=c==="y",h=this;a.each(function(n){var r=n.barLabel;if(r){var t=gk(this),y=r.valid?1:0,E=null,ma=n.barLabel;if(h.N==="above"){var na=n.chartX;ma=n.chartY}else h.v==="vertical"?f?(na=ma.measurePosition,ma=-1*ma.domainPosition):(na=-1*ma.measurePosition,ma=ma.domainPosition):(na=ma.domainPosition,ma=ma.measurePosition);na=new Ij(na,ma);r.valid&&e.contains(na)||(E="none");t.text(n.label);b&&(t=t.transition().duration(b));switch(h.v){case "vertical":na= c==="y"?"rotate(-90)":"rotate(90)";break;default:na=null}Ej(t,{x:r.domainPosition,y:r.measurePosition,dy:r.dy,opacity:y,display:E,"dominant-baseline":r["dominant-baseline"],transform:na});t.attr("text-anchor",tk(r["text-anchor"],n.label));t.style("fill",h.O)}})};w.remove=function(a){a.selectAll(".bar-label").remove()};w.dg=function(){return!0};Hw.prototype.getMinBarLength=Hw.prototype.Qm;Hw.prototype.setMinBarLength=Hw.prototype.ui;Hw.prototype.getLabelPosition=Hw.prototype.rd;Hw.prototype.setLabelPosition=Hw.prototype.Pb;Hw.prototype.getLabelOrientation=Hw.prototype.Hm;Hw.prototype.setLabelOrientation=Hw.prototype.Ek;Hw.prototype.getLabelColor=Hw.prototype.Re;Hw.prototype.setLabelColor=Hw.prototype.Zc;Hw.prototype.getLabelOffsetFunction=Hw.prototype.Gm;Hw.prototype.setLabelOffsetFunction=Hw.prototype.mf;function Iw(a,b){return a?-4:-b-4} function Jw(a,b){return a?b-4:-4} function Kw(a,b){return a?b/2:-b/2} function Lw(a,b){return a?4:-b+4} Pd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});Pd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Ow(){qu.call(this);this.oa=this.Sa=2;this.ka=null;this.ta=0;this.Aa=this.ha=1;this.ma=this.Ma=null;this.N=this.Ya=this.Ia=0;this.v=new Hw;this.ya=[this.v,new Zt];this.hb=Dl;this.Rb=null} ed(Ow,qu);function Pw(a,b){a.ya.push(b);return a} function Qw(a,b){Ve(a.ya,a.v);a.v=b;Pw(a,a.v)} w=Ow.prototype;w.em=function(){return this.v};w.Go=function(a){this.Ya=a;return this};w.ko=function(a){this.N=a;return this};w.fm=function(){return this.N};w.Pd=function(a){this.hb=a;return this};w.xl=function(a){return arguments.length&&a!=null?this.Od(a):this.Hc()};w.strokeWidth=function(a){return arguments.length&&a!=null?this.Ud(a):this.Nf()};w.Ud=function(a){this.Ia=a;return this};w.Nf=function(){return this.Ia};w.stack=function(a){return arguments.length&&a!=null?this.Td(a):this.Ze()};w.Td=function(a){this.jg(a?2:1);return this};w.Ze=function(){return this.ha===2};w.jg=function(a){this.ha=a;return this};w.Am=function(){return this.ha};w.Jo=function(a){return arguments.length&&a!=null?this.Ei(a):this.Aa};w.Ei=function(a){this.Aa=a;return this};w.fn=function(){return this.Aa};w.Tg=function(a){return arguments.length&&a!==void 0?this.ih(a):this.ma};w.ih=function(a){this.ma=Math.max(0,a);return this};w.Pm=function(){return this.ma};w.Nk=function(a){this.Ma=Math.max(0,a);return this};w.Rm=function(){return this.Ma};w.yl=function(a){return arguments.length&&a!=null?this.qk(a):this.oa};w.qk=function(a){this.oa=a;return this};w.am=function(){return this.oa};w.qn=function(){return this.ka};w.Uk=function(a){this.ka=a;return this};w.zl=function(a){return arguments.length&&a!=null?this.sk(a):this.ta};w.sk=function(a){this.ta=a;return this};w.dm=function(){return this.ta};w.bo=function(a){return arguments.length&&a!=null?this.Ai(a):this.Sa};w.Ai=function(a){this.Sa=a;return this};w.Xm=function(){return this.Sa};w.ud=function(){return-10};w.Ld=function(a){return a instanceof Ow};w.no=function(a){this.Rb=a;return this};w.Xc=function(a,b){var c=new Map,e=new Map,f=new Map,h=this.ha;uu(this,a,b);for(var n=0,r=0;r=0?c:e;Ba=Ca.get(ya);Ba||(Ba=new Map,Ca.set(ya,Ba));ya=Ba.get(ma);(Ca=Ba.get(na))&&(ta.barStackIndex=Ca.barStackIndex+1);ta.cumulativeTotal=Aa||0;Aa=ta.measureOffset||0;ya&&ta.measure!==null&&(Aa+=ya.measure+ya.measureOffset,ta.cumulativeTotal+=ya.cumulativeTotal,ta.measure!=0&&(ya.roundedCorners=!1,this.Hc()=="stackTotal"&&(ya.label="")));ta.measureOffset=Aa;Ba.set(na,ta);ta.validValue&&ta.measure!=0?Ba.set(ma,ta):(ta.roundedCorners=!1,this.Hc()=="stackTotal"&&(ta.label=""))}n=Math.max(n,ta.barStackIndex+1);Rw(this,ta,t)}sa&&t.Lc(Sw(this,y));na=t.Kb()!=null?Bl(t.Kb().kb.node()):null;jp(t,{barData:y,barGroupIndex:E,barGroupCount:this.ha===1?b.length:1,highlightShadowUrl:na,barStackKey:ma})}if(this.ha===3){var Fa=f.size;b.forEach(function(Ea){jp(Ea).barGroupCount=Fa;jp(Ea).maxBarStackSize=n})}b.length>0&&(a=b[0].Kb(),ru(this)=="x"&&a.ke&&a.Vc&&b.forEach(function(Ea){Ea=jp(Ea);Ea.barGroupIndex=Ea.barGroupCount-1-Ea.barGroupIndex}))};function Rw(a,b,c){b.roundedCorners==null&&(b.roundedCorners=!0);b.fill=b.dashPattern&&b.dashPattern.toLowerCase()!=="none"?"transparent":null;if(b.strokeWidth==null||isNaN(b.strokeWidth))b.strokeWidth=a.Ia;if(a.Hc())switch(a.Hc()){case "cumulativeTotal":case "stackTotal":b.validValue&&b.cumulativeTotal!=null&&b.measure!==0?(a=b.cumulativeTotal,c=c.Ub()||gm,b.label=c(a)):b.label="";break;case "measureValue":b.validValue&&b.measure!==0?(c=c.Ub()||gm,b.label=c(b.measure)):b.label=""}} w.Ob=function(a,b){var c=jp(b),e=c.barData,f=b.Ac(),h=b.qb(),n=$n(b,"datumHoverState")?b.od():function(){return 0},r=$n(b,"datumClickState")?b.de():function(){return 0},t=b.Kb();c.chartWidth=t.frameWidth();c.chartHeight=t.frameHeight();t=f.bandwidth();t=Math.max(t,1);var y=Tw(this,c.barGroupCount);c.barWeights=y;c.barWidth=Uw(c.barGroupCount,c.barGroupIndex,y,t,this.oa,this.Ma,this.ma,this.ta);c.barOffset=Vw(c.barGroupCount,c.barGroupIndex,y,t,this.oa,this.Ma,this.ma,this.ta);if(a.data.length==0)jp(b).barData=[];else{for(a=0;a0?(b.barClass+=" highlight",b.filter=c.highlightShadowUrl):t<0&&(b.barClass+=" inverse-highlight"),t=r(b.datum,a),t>0?b.barClass+=" selected":t<0&&(b.barClass+=" inverse-selected");c=tu(this);for(n=0;n0?f[0].series.name:"series"),r=b.select("#"+n);r.empty()&&(r=b.append("clipPath").attr("id",n),r.append("rect"));var t=e.chartWidth,y=0;f.forEach(function(E){t=Math.min(t,E.domainPosition);y=Math.max(y,E.domainPosition+E.domainSize)},a);a=r.select("rect");h&&(a=a.transition().duration(h));a.attr("x",t).attr("y",0).attr("width",y-t).attr("height",e.chartHeight);c.attr("clip-path","url(#"+n+")")}} function Tw(a,b){var c=0,e=[];if(a.ka!=null){var f=a.ka.split(",");if(b>f.length)throw Error('Number of series exceeds length of weight pattern "'+a.ka+'"');for(var h=[],n=0;n=0){var r=b.measurePosition;var t=b.measurePosition+b.measureSize}else t=b.measurePosition,r=b.measurePosition+b.measureSize;b=f?Ji(c,t,r):Ji(c,r,t);return{domainDistance:a>=e&&a<=h?0:Math.abs(a-n),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:Jj(new Ij(n,b),new Ij(a,c))}} w.ue=function(a,b,c,e,f){var h=f.width;f=f.height;var n=e.append("g").attr("class","bar-group");e=c.Fc()(a,b);var r=$n(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ia;h=n.append("rect").attr("class","bar").attr("width",h).attr("height",f).attr("stroke-width",r).attr("stroke-dasharray",e).attr("x",0).attr("y",0).attr("rx",1);tl(h,function(){return c.color()(a,b)},!0);e&&e.toLowerCase()!=="none"&&h.attr("fill","transparent")};function Zw(a){a=gk(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function ax(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Ya){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function Ww(a,b,c,e,f){var h=c.measureOffset,n=c.measure+h,r=ls(f,h),t=ls(f,n);if(bm(r)&&bm(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Aa);n?(n=h===0?Math.floor:Math.ceil,y=Math.ceil):(n=h===0?Math.ceil:Math.floor,y=Math.floor);r=n(r);t=y(t)}else t=r=null;n=Fp(e,c.domain);y=ks(e,c.domain)+b.barOffset;var E=b.barWidth,ma=r;r=t-r;var na=t=void 0,sa=Math.min(E/2,Math.abs(r),c.strokeWidth);E-=sa;y+=sa/2;r+=(r>=0?-1:1)*sa/2;if(c.measureLowerBound!=null&& c.measureUpperBound!=null){var ua=c.measureLowerBound,ta=c.measureUpperBound;ua!=null&&ta!=null&&(t=ls(f,h+ua),na=ls(f,h+ta))}a=ru(a)=="x";h=b.barWidth/2;b=ks(e,c.domain)+b.barOffset+h;c=Fp(f,c.measure+c.measureOffset);return{barGroupCenter:n,chartX:a?b:c,chartY:a?c:b,domainPosition:y,domainSize:E,measurePosition:ma,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:na,strokeWidth:sa}} w.If=function(a,b,c,e,f,h,n){a===null||b===null||c===null||e===null||h===null?a="":(h=Math.min(Math.abs(e),h,c/2),n=n==1?"Z":"",a=f?e>=0?"M"+b+" "+a+"h"+(e-h)+"a"+h+","+h+" 0 0 1 "+h+","+h+"v"+(c-2*h)+"a"+h+","+h+" 0 0 1 "+-h+","+h+"h"+-1*(e-h)+n:"M"+b+" "+a+"h"+(e+h)+"a"+h+","+h+" 0 0 0 "+-h+","+h+"v"+(c-2*h)+"a"+h+","+h+" 0 0 0 "+h+","+h+"h"+-1*(e+h)+n:e<=0?"M"+a+" "+b+"v"+(e+h)+"a"+h+","+h+" 0 0 1 "+h+","+-h+"h"+(c-2*h)+"a"+h+","+h+" 0 0 1 "+h+","+h+"v"+-1*(e+h)+n:"M"+a+" "+b+"v"+(e-h)+"a"+h+","+ h+" 0 0 0 "+h+","+h+"h"+(c-2*h)+"a"+h+","+h+" 0 0 0 "+h+","+-h+"v"+-1*(e-h)+n);return a};w.ve=function(){return!0};w.Mg=function(a,b){b=jp(b);return b.barData==null?a.data:b.barData};Ow.prototype.getBarPath=Ow.prototype.If;Ow.prototype.setCssName=Ow.prototype.no;Ow.prototype.getRoundingRadiusPx=Ow.prototype.Xm;Ow.prototype.setRoundingRadiusPx=Ow.prototype.Ai;Ow.prototype.roundingRadiusPx=Ow.prototype.bo;Ow.prototype.getBarHorizontalMargin=Ow.prototype.dm;Ow.prototype.setBarHorizontalMargin=Ow.prototype.sk;Ow.prototype.barHorizontalMargin=Ow.prototype.zl;Ow.prototype.setWeightPattern=Ow.prototype.Uk;Ow.prototype.getWeightPattern=Ow.prototype.qn;Ow.prototype.getBarGroupInnerPadding=Ow.prototype.am;Ow.prototype.setBarGroupInnerPadding=Ow.prototype.qk;Ow.prototype.barGroupInnerPadding=Ow.prototype.yl;Ow.prototype.getMinBarWidth=Ow.prototype.Rm;Ow.prototype.setMinBarWidth=Ow.prototype.Nk;Ow.prototype.getMaxBarWidth=Ow.prototype.Pm;Ow.prototype.setMaxBarWidth=Ow.prototype.ih;Ow.prototype.maxBarWidth=Ow.prototype.Tg;Ow.prototype.getStackedBarPadding=Ow.prototype.fn;Ow.prototype.setStackedBarPadding=Ow.prototype.Ei;Ow.prototype.stackedBarPadding=Ow.prototype.Jo;Ow.prototype.getGroupingType=Ow.prototype.Am;Ow.prototype.setGroupingType=Ow.prototype.jg;Ow.prototype.getStack=Ow.prototype.Ze;Ow.prototype.setStack=Ow.prototype.Td;Ow.prototype.stack=Ow.prototype.stack;Ow.prototype.getStrokeWidth=Ow.prototype.Nf;Ow.prototype.setStrokeWidth=Ow.prototype.Ud;Ow.prototype.strokeWidth=Ow.prototype.strokeWidth;Ow.prototype.autoBarLabels=Ow.prototype.xl;Ow.prototype.setColorHighlightStrategy=Ow.prototype.Pd;Ow.prototype.getBorderRenderingStrategy=Ow.prototype.fm;Ow.prototype.setBorderRenderingStrategy=Ow.prototype.ko;Ow.prototype.setTransitionStrategy=Ow.prototype.Go;Ow.prototype.getBarLabelDecorator=Ow.prototype.em;function Uw(a,b,c,e,f,h,n,r){e=Math.floor((e-(r*2+f*(a-1)))/a);h&&(e=Math.max(h,e));n&&(e=Math.min(n,e));return c&&c.length!=0?Math.floor(e*a*c[b]):e} function Vw(a,b,c,e,f,h,n,r){var t=Math.floor((e-(r*2+f*(a-1)))/a),y=0;n&&t>n&&(y=Math.floor((t-n)*a/2));for(var E=t=0;E1){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e2*this.size&&px(this),!0):!1};function px(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return ix;var h=e.v[b++];return{value:a?h:e.N[h],done:!1}};return f};function qx(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function rx(){qu.call(this);this.ta=null;this.ma=0;this.N=!1;this.ka=2;this.v=!1;this.oa=null;this.ha=3} ed(rx,qu);w=rx.prototype;w.ao=function(a){if(a==null)return this.N;this.N=a;return this};w.Tg=function(a){if(a===void 0)return this.oa;this.oa=a;return this};w.strokeWidth=function(a){if(a==null)return this.ha;this.ha=a;return this};w.rn=function(a){if(a==null)return this.ka;this.ka=a;return this};w.Bo=function(a,b){b?(this.ta=null,this.ma=a||0):(this.ta=a||0,this.ma=null);return this};w.stack=function(a){if(!arguments.length||a==null)return this.v;this.v=a;return this};w.Xc=function(a,b){for(var c=new nx,e=new nx,f=0;f=0?c:e,ua=sa.get(ma)||0;sa.set(ma,na+ua);E.measureOffset=ua}}this.v&&h.Lc(sx(t));n=(n=h.Kb())?Bl(n.kb.node(),0,4):null;jp(h,{lineData:t,lineIndex:f,numLines:b.length,highlightShadowUrl:n})}};function sx(a){return function(b,c){return a[c].measureOffset}} w.Ob=function(a,b){var c=b.color(),e=b.Le(),f=tu(this)==="y",h=b.qb(),n=b.Ac(),r=n.bandwidth(),t=this.ma!=null?this.ma*r:this.ta||0,y=$n(b,"datumHoverState")?b.od():function(){return 0},E=jp(b),ma=E.lineData,na=E.numLines,sa=E.lineIndex,ua=this.v?r:Math.floor((r-this.ka*(na-1))/na),ta=Math.min(this.oa||Infinity,ua);r=tx(this,sa,na,ta,t);t=ux(this,ta,ua,sa,na,t);na=t+r/2;E.chartWidth=b.Kb().frameWidth();E.chartHeight=b.Kb().frameHeight();if(a.data.length==0)jp(b).barData=[];else for(b=0;b0?(sa.lineClass+=" highlight",sa.filter=E.highlightShadowUrl):ua<0&&(sa.lineClass+=" inverse-highlight")};w.render=function(a,b,c,e){a=jp(b).lineData;var f=ls(b.qb(),0),h=this.N?"round":"butt";b=c.selectAll(".bar-target-line").data(a,function(y){return y.key});c=b.enter().append("line");a=b.exit();var n=c.merge(b),r=tu(this),t=ru(this);e&&(c.each(function(y){var E=gk(this);Ej(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,stroke:y.color,"stroke-linecap":h,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});ok(this,t+"1",y.domainPosition);ok(this,t+"2",y.domainPosition+y.domainSize);ok(this,r+"1",f);ok(this,r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.each(function(y,E,ma){ok(ma[E],r+"1",f)}),a.each(function(y,E,ma){ok(ma[E],r+"2",f)}));a.remove();n.each(function(y){var E=gk(this);e&&(E=E.transition(n));Ej(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,filter:y.filter,stroke:y.color,"stroke-linecap":h,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});ok(this,t+"1",y.domainPosition);ok(this,t+"2",y.domainPosition+y.domainSize);ok(this,r+"1",y.measurePosition);ok(this,r+"2",y.measurePosition)});return null};function tx(a,b,c,e,f){a.v&&(c=1,b=0);return(b===0?f:0)+e+(b+1===c?f:0)} function ux(a,b,c,e,f,h){if(a.v)return Math.floor((c-b)/2)-h;c=Math.floor((c-b)*f/2);e===0&&(c-=h);return c+(a.ka+b)*e} function vx(a,b,c,e,f,h){var n=b.measureOffset,r=b.measure+n;bm(r)&&bm(n)||(r=0);n=Fp(h,r);var t=Fp(h,0);r=r<0;h=(h=t=e&&a<=h?0:Math.abs(a-n),b.domainDistance=c,b.measureDistance=f,b.relativeDistance=a,b):null};w.le=function(a,b,c,e,f){a=f||[];if(b=jp(b).lineData)for(f=0;f0&&n>ya.chartX&&(h=!0);n=ya.chartX;zx(this,ya);ya.pointClass="";var Aa=t(ya.datum,Ba);Aa>0?ya.pointClass= (ya.pointClass+" highlight").trim():Aa<0&&(ya.pointClass=(ya.pointClass+" inverse-highlight").trim());Aa=y(ya.datum,Ba);Aa>0?ya.pointClass=(ya.pointClass+" selected").trim():Aa<0&&(ya.pointClass=(ya.pointClass+" inverse-selected").trim());ua&&(Aa=ya.domainOffset||0,E&&ma&&(ya.domainLowerBound=E(ya.datum,Ba),ya.domainUpperBound=ma(ya.datum,Ba),b||(ya.domainLowerBound+=Aa,ya.domainUpperBound+=Aa),ya.domainLowerBound!==null&&ya.domainUpperBound!==null&&(ya.domainLowerBoundPosition=ls(e,ya.domainLowerBound,null),ya.domainUpperBoundPosition=ls(e,ya.domainUpperBound,null),ya.errorBarColor=ya.color)),Aa=ya.measureOffset||0,ya.measureLowerBound=na(ya.datum,Ba),ya.measureUpperBound=sa(ya.datum,Ba),ta||(ya.measureLowerBound+=Aa,ya.measureUpperBound+=Aa),ya.measureLowerBound!==null&&ya.measureUpperBound!==null&&(ya.measureLowerBoundPosition=ls(f,ya.measureLowerBound,null),ya.measureUpperBoundPosition=ls(f,ya.measureUpperBound,null),ya.errorBarColor=ya.color));ya.shapeRenderer=a(ya.datum,ya.index)}h&&r.sort(function(Ca,Fa){return Ca.chartX-Fa.chartX});c.Fb=r;this.v.Ob(r,tu(this),e,f)}};function yx(a,b,c){var e=a.ma;b.shapeRenderer&&(e=xx(b.shapeRenderer));return ao(c,"shapeRenderer",function(f){return f.shapeRenderer?xx(f.shapeRenderer):e})} function zx(a,b){switch(a.N){case 1:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY-6.5-b.radius;break;case 4:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 2:b.labelX=isNaN(b.chartX)?null:b.chartX-6.5-b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 3:b.labelX=isNaN(b.chartX)?null:b.chartX+6.5+b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;default:case 0:b.labelX=null,b.labelY=null}} w.render=function(a,b,c,e,f,h,n){a=ls(b.qb(),0);f=jp(b);var r=$n(b,"datumHoverState")?b.od():function(){return 0};b=$n(b,"datumClickState")?b.de():function(){return 0};var t=c.node();Ax(this,f.Fb||[],t,a,e,h,n,r,b);return c.selectAll(".point-group")};function Ax(a,b,c,e,f,h,n,r,t){if(b.length===0)Bx(a,c,e,f);else{c=gk(c).selectAll(".point-group").data(b,function(ta){return ta.key});c.exit().remove();var y=c.enter().append("g").attr("class","point-group");c=y.merge(c);a.v.dg()||a.v.add(y,f,h);var E=function(ta,Ba){var ya=+ta.radius;if(r(ta.datum,Ba)>0||t(ta.datum,Ba)>0)ya+=2;return ya},ma=function(ta,Ba){var ya=r(ta.datum,Ba);Ba=t(ta.datum,Ba);return a.oa(ta.color,ya,Ba).color},na=a.ma;y.each(function(ta,Ba){(ta.shapeRenderer||na).ie(gk(this),"point",ta.chartX,e,E(ta,Ba),ma(ta,Ba),ta)});var sa=y.append("text").attr("class","point-label");switch(a.N){case 1:case 4:sa.attr("display",null).attr("text-anchor",tk("middle")).attr("alignment-baseline","middle");break;case 2:sa.attr("display",null).attr("text-anchor",tk("end")).attr("alignment-baseline","middle");break;case 3:sa.attr("display",null).attr("text-anchor",tk("start")).attr("alignment-baseline","middle");break;default:case 0:sa=c.select(".point-label"),sa.attr("display","none")}a.v.dg()&&a.v.add(y,f,h);y.each(function(ta){ta= fj(ta);a.ha&&(ta.Tj=e);ta.radius=0;ta.Yq=ta.Tj;ta.Zq=ta.Tj;ta=tu(a);a.v.update(gk(this),f,ta,n)});sa.style("fill",a.ka);h={display:function(ta){return ta.validValue?null:"none"},"class":function(ta){var Ba="point-group";ta.pointClass!==void 0&&(Ba=(Ba+" "+ta.pointClass).trim());ta.datumClass!==void 0&&(Ba=(Ba+" "+ta.datumClass).trim());return Ba}};b={dx:function(ta){return isNaN(ta.labelX)?null:ta.labelX},dy:e};var ua=c;f&&(Ej(y,h),sa&&Ej(sa,b),ua=c.transition().duration(f));c=ua.select(".point");c.attr("display",function(ta){return n.contains(new Ij(ta.chartX,ta.chartY))?null:"none"});c.each(function(ta,Ba){var ya=gk(this);f&&(ya=ya.transition().duration(f));(ta.shapeRenderer||na).Vd(ya,"point",ta.chartX,ta.chartY,E(ta,Ba),ma(ta,Ba),ta)});c=ua.select(".point-label");Ej(ua,h);b.dy=function(ta){return isNaN(ta.labelY)?null:ta.labelY};b.display=function(ta){return n.contains(new Ij(ta.chartX,ta.chartY))?null:"none"};switch(a.N){case 1:case 4:b["text-anchor"]=tk("middle");break;case 2:b["text-anchor"]=tk("end");break;case 3:b["text-anchor"]=tk("start");break;default:case 0:b.display="none"}c.text(function(ta){return ta.label});c.style("fill",a.ka);Ej(c,b);ua.each(function(){var ta=tu(a);if(f){var Ba=gk(this).transition(ua);a.v.update(Ba,f,ta,n)}else a.v.update(gk(this),f,ta,n)})}} function Bx(a,b,c,e){a.v.remove(gk(b),c,e);a=gk(b).selectAll(".point-group");b=gk(b).selectAll(".point");e&&(a=a.transition().duration(e),b=b.transition().duration(e),c={cx:function(f){return f.chartX},cy:c,r:function(f){return f.radius},fill:function(f){return f.color}},Ej(a,{display:function(f){return f.validValue?null:"none"}}),Ej(b,c));a.remove()} w.td=function(a,b,c,e,f,h){b=jp(b).Fb;a=null;for(var n=Number.MAX_VALUE,r=[],t=0;t0&&t>Aa.chartX&&(n=!0);t=Aa.chartX;zx(this.v,Aa);this.ya&&(sa&&ua&&(Aa.domainLowerBound= sa(Aa.datum,ya),Aa.domainUpperBound=ua(Aa.datum,ya),Aa.domainLowerBound!==null&&Aa.domainUpperBound!==null&&(Ca=Aa.domainOffset||0,Aa.domainLowerBound+=Ca,Aa.domainUpperBound+=Ca,Aa.domainLowerBoundPosition=ls(f,Ca+Aa.domainLowerBound),Aa.domainUpperBoundPosition=ls(f,Ca+Aa.domainUpperBound),Aa.errorBarColor=Aa.color)),Aa.measureLowerBound=ta(Aa.datum,ya),Aa.measureUpperBound=Ba(Aa.datum,ya),Aa.measureLowerBound!=null&&Aa.measureUpperBound!=null&&(Ca=Aa.measureOffset||0,Aa.measureLowerBound+=Ca,Aa.measureUpperBound+= Ca,Aa.measureLowerBoundPosition=ls(h,Ca+Aa.measureLowerBound),Aa.measureUpperBoundPosition=ls(h,Ca+Aa.measureUpperBound),Aa.errorBarColor=Aa.color));Aa.shapeRenderer=b(Aa.datum,Aa.index);Aa.strokeWidth=na(Aa.datum,ya)}n&&y.sort(function(Ja,Ka){return Ja.chartX-Ka.chartX});var Fa=this.Sa?this.Sa(y,this):y;n=[];if(r)for(r=0;r0?(Pa+=2,Oa+=" highlight"):Qa<0&&(Oa+=" inverse-highlight");var Wa=ma(y[0].datum,0);Wa>0?(Pa+=2,Oa+=" selected"):Wa<0&&(Oa+=" inverse-selected");Ea.push({color:Ka[0],Sg:Ka[1],Fc:Ka[2],Le:Ka[3],Rl:Ja,yc:Fa,er:a.name,strokeWidth:Pa,Wq:Pa,Uq:Qa>0,Vq:Qa< 0,id:"lineclip"+Kk(),Oj:Oa})},this)}e.Fb=y;e.Gj=n;e.Tf=Ea;this.N&&this.v.v.Ob(y,tu(this),f,h)}};w.render=function(a,b,c,e,f,h,n){var r=ls(b.qb(),0),t=jp(b),y=c.node();if(a.data.length!==0||y!=null){var E=c.select("g");E.node()&&E.classed("area-segments")||Jk(y,'');var ma=Uj(y);E=ma[1];var na=ma[2],sa=ma[3];y=ma[4];ma=ma[5];Kx(this,c,t.Tf,b);Lx(this,t.Tf,E,r,e,h);Mx(this,t.Tf,na,r,e,h);Nx(this,t.Gj,sa,r,e,h);Ox(this,t.Tf,ma,r,e,h);this.N?this.v.render(a,b,gk(y),e,f,h,n):(b=b.Rh(),jp(b,{}),this.v.render({name:a.name,data:[]},b,gk(y),e,f,h,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Mx(a,b,c,e,f,h){if(a.ka)if(b.length===0)Px(a,c,e,f);else if(gk(c).attr("clip-path",h),f){h=gk(c).selectAll(".line-series").data(b);h.exit().remove();b=gk(c).selectAll(".event-target").data(b);b.exit().remove();c=h.enter().append("path");Ej(c,{"class":function(t){return t.Oj},fill:"none"});h=c.merge(h);var n=b.enter().append("path");Ej(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=Qx().defined(function(t){return t.validValue}).curve(a.ha).x(function(t){return t.chartX}).y(e);f&&(Ej(c,{stroke:function(t){return t.Sg},"stroke-dasharray":function(t){return t.Fc},d:function(t){return r(t.yc)},"stroke-width":function(t){return t.strokeWidth}}),h=h.transition().duration(f),Ej(n,{stroke:"transparent",opacity:"0",d:function(t){return r(t.yc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});Ej(h,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Fc},d:function(t){return r(t.yc)},"stroke-width":function(t){return t.strokeWidth}});Ej(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.yc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else Rx(a,c,b),gk(c).selectAll(".line-series").data(b),gk(c).selectAll(".event-target").data(b);else Jk(c,"")} function Rx(a,b,c){for(var e="",f=Qx().defined(function(r){return r.validValue}).curve(a.ha).x(function(r){return a.Aa?Math.round(r.chartX):Math.round(r.chartX*100)/100}).y(function(r){r=bm(r.chartY)?r.chartY:1E4;return a.Aa?Math.round(r):Math.round(r*100)/100}),h=0;h';e+=''}Jk(b,e)} function Px(a,b,c,e){var f=gk(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var h=Qx().defined(function(n){return n.validValue}).curve(a.ha).x(function(n){return n.chartX}).y(c);f.attr("d",function(n){return h(n.yc)}).remove();gk(b).selectAll(".event-target").remove()} function Nx(a,b,c,e,f,h){b.length&&!a.N&&a.ka?(a=gk(c).attr("clip-path",h).selectAll(".isolate-datum").data(b),a.exit().remove(),b=a.enter().append("path").attr("stroke-linecap","round"),a=b.merge(a),c={d:function(n){return"M"+n.chartX+","+e+"h0"},stroke:function(n){return n.color},"stroke-width":function(n){return n.strokeWidth*2},"class":function(n){return"line-series isolate-datum"+(n.datumClass!=null?" "+n.datumClass:"")}},f&&(Ej(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},Ej(a,c)):Jk(c,"")} function Lx(a,b,c,e,f,h){if(a.ta)if(b.length===0)Sx(c,e,f);else{b=gk(c).attr("clip-path",h).selectAll(".area").data(b);b.exit().remove();c=b.enter().append("path").attr("class","area").attr("stroke-width",0);b=c.merge(b);var n=Tx().curve(a.Ma).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(Ej(c,{fill:function(r){return r.Sg},d:function(r){return n(r.yc)}}),b=b.transition().duration(f));n.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});Ej(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Sg},d:function(r){return n(r.yc)},"class":function(r){return"area"+(r.datumClass!=null?" "+r.datumClass:"")}})}else Jk(c,"")} function Sx(a,b,c){a=gk(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=Tx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.yc)}).remove()} function Ox(a,b,c,e,f,h){if(a.ya)if(b.length===0||a.N)Ux(c,e,f);else{b=gk(c).attr("clip-path",h).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");Ej(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=Tx().curve(a.Ma).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(Ej(c,{fill:function(r){return r.color},d:function(r){return n(r.yc)}}),b=b.transition().duration(f));n.y1(function(r){return r.measureUpperBoundPosition!=null?r.measureUpperBoundPosition:r.chartY});n.y0(function(r){return r.measureLowerBoundPosition!=null?r.measureLowerBoundPosition:r.chartY});Ej(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.color},opacity:a.N?"0":".2",d:function(r){return n(r.yc)}})}else Jk(c,"")} function Ux(a,b,c){a=gk(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=Tx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.yc)}).remove()} function Jx(a,b){var c=a.O!=null;return function(e,f){if(c)for(e=0;eE)return!0;if(sa=r.length)return null;for(var t=Math.min(Math.max(Wx(r,c),a),b),y=null,E=Number.MAX_VALUE,ma=Number.MAX_VALUE,na=t;na<=b&&!n(na);na++);for(b=t;b>=a&&!n(b);b--);y!=null&&(y=this.Bb(y,c,e));return y};function Wx(a,b,c){c=c===void 0?!1:c;var e=ff(a,b,function(f,h){return f-h.chartX});if(e<0)return-e-1;if(c)for(;e=0;b--)this.removeBehavior(a[b]);return this};Fy.prototype.removeAllBehaviors=Fy.prototype.Xn;Fy.prototype.removeBehavior=function(a){a.Mc(this);Ve(this.Cf,a);return this};Fy.prototype.removeBehavior=Fy.prototype.removeBehavior;Fy.prototype.Mb=function(){return this.Jc.Mb()};Fy.prototype.getMarginTop=Fy.prototype.Mb;Fy.prototype.Ve=function(){return this.Jc.Ve()};Fy.prototype.getMarginRight=Fy.prototype.Ve;Fy.prototype.Ue=function(){return this.Jc.Ue()};Fy.prototype.getMarginBottom=Fy.prototype.Ue;Fy.prototype.Lb=function(){return this.Jc.Lb()};Fy.prototype.getMarginLeft=Fy.prototype.Lb;Fy.prototype.Kg=function(){return new Wj(this.Mb(),this.Ve(),this.Ue(),this.Lb())};Fy.prototype.getMargins=Fy.prototype.Kg;Fy.prototype.ad=function(a,b){this.Jc.ad(a,b);return this};Fy.prototype.setMargins=Fy.prototype.ad;Fy.prototype.yo=function(a){this.Jc=a;return this};Fy.prototype.setLayoutManager=Fy.prototype.yo;Fy.prototype.Yh=function(){this.Xa.ob("prelayout",this,this.Jc)};function Ny(a,b,c){b.Zg("chartDelegate",function(e){this.Xa.ob(co[c].selectionChange,this,e)}.bind(a))} Fy.prototype.Zk=function(a){a=a===void 0?1:a;var b=this.Yj.node().querySelector(".aplos-chart-container");if(!b)throw Error("No container element for the chart could be found.");var c=cf(b.querySelectorAll("*"));c.push(b);b=b.cloneNode(!0);var e=cf(b.querySelectorAll("*"));e.push(b);for(var f=0;f>6|192:((f&64512)==55296&&e+1>18|240,b[c++]=f>>12&63|128):b[c++]=f>>12|224,b[c++]=f>>6&63|128),b[c++]=f&63|128);a=Ef(b)}return"data:image/svg+xml;base64,"+a};Fy.prototype.toSvgDataUrl=Fy.prototype.Zk;Fy.prototype.So=function(a){a=a===void 0?1:a;var b=document.createElement("canvas"),c=10*a;b.width=this.frameWidth()*a+c*2;b.height=this.frameHeight()*a+c*2;var e=new Image;e.src=this.Zk(a);var f=new By;e.onload=function(){this.onerror=this.onload=null;try{var h=b.getContext("2d");h.fillStyle="#FFF";h.fillRect(0,0,b.width,b.height);h.drawImage(e,c,c);f.Hf(b.toDataURL("image/png"))}catch(n){f.reject(n)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};Fy.prototype.toPngDataUrl=Fy.prototype.So;Fy.prototype.getStyle=function(){return this.Gi};function Oy(a,b,c){Fy.call(this,bf(a,["prelayout","postlayout"]),b,c);this.uf=this.Qc=null;this.ad({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} Pd("aplos.chart.SvgChartView",Oy);Rd(Oy,Fy);var Py=0;Oy.prototype.redraw=Oy.prototype.te;Oy.prototype.yd=function(){Oy.Qb.yd.call(this);var a=this.af().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.kb.node().setAttribute("transform","translate("+this.Lb()+","+this.Mb()+")");this.Qc&&this.Qc.attr("width",this.Za()+1).attr("height",this.yb()+2)};Oy.prototype.af=function(){return this.Ko};Oy.prototype.getSvg=Oy.prototype.af;Oy.prototype.To=function(){var a=this.af().node(),b=document.createElement("style"),c=rk(a),e=dk(a);c.push("svg{font:"+e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily+"}");b.textContent=c.join("\n");c=document.createElement("defs");c.appendChild(b);a.insertBefore(c,a.firstChild);b=(new XMLSerializer).serializeToString(a);a.removeChild(c);return b};Oy.prototype.toSvgString=Oy.prototype.To;Oy.prototype.getNearestDatumDetails=Oy.prototype.Kf;var Qy=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1");function Ry(a,b,c){var e=this;Oy.call(this,bf(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.hb=new dp(this);this.oa={};this.we={};this.Pk("hover",new ko);this.Ya=new Sy;this.on("viewportChange.seriesChartView",function(){e.Ya.reset()})} Rd(Ry,Oy);Pd("aplos.chart.SeriesChartView",Ry);Ry.prototype.Pk=function(a,b){b.Zg("clearSelectedDatumDetailsCache",this.kl.bind(this));var c=this.we,e=co[a].selectionChange,f=this.Xa;f.O.hasOwnProperty(e)||jo(f,[e]);e=c[a];e!=null&&e.Zg("chartDelegate",null);c[a]=b;Ny(this,b,a);return this};Ry.prototype.setSelectionModel=Ry.prototype.Pk;Ry.prototype.Do=function(a){ep(this.hb,a);return this};Ry.prototype.setSeriesDefaults=Ry.prototype.Do;Ry.prototype.ub=function(a){return this.oa[a||"__aplosDefault__"]||this.oa.__aplosDefault__};Ry.prototype.getRenderer=Ry.prototype.ub;Ry.prototype.un=function(a){return!!this.oa[a||"__aplosDefault__"]};Ry.prototype.hasRenderer=Ry.prototype.un;Ry.prototype.kg=function(a,b){b?(b.type&&(b=this.getStyle().yj(b)),this.oa[a]=b):delete this.oa[a];return this};Ry.prototype.setRenderer=Ry.prototype.kg;Ry.prototype.hi=function(a){a.type&&(a=this.getStyle().yj(a));this.oa.__aplosDefault__=a;return this};Ry.prototype.setDefaultRenderer=Ry.prototype.hi;Ry.prototype.ei=function(a,b){a=this.Jf(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.we[bo[b]||"hover"]||null).jh(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};Ry.prototype.selectDatum=Ry.prototype.ei;Ry.prototype.fo=function(a){this.Xa.ob("seriesMouseover",this,a,Gj)};Ry.prototype.selectSeries=Ry.prototype.fo;Ry.prototype.Gl=function(a){(this.we[bo[a]||"hover"]||null).deselectAll()};Ry.prototype.clearSelections=Ry.prototype.Gl;Ry.prototype.Jf=function(a,b,c){var e=this.N||[],f=this.v||[];if(!e||!f)return[];if(Gj){var h=Fj(this.kb.node());var n=h[0];h=h[1]}for(var r=[],t=0;t0){if(Gj){var e=Fj(this.kb.node());var f=e[0];e=e[1]}for(a=0;a0?a[0]-this.Lb():Fj(this.kb.node())[0];a=a&&a.length>1?a[1]-this.Mb():Fj(this.kb.node())[1];if(this.Xb&&(b<0||b>this.Za())||!this.Xb&&(a<0||a>this.yb()))return[];for(var e=new nu(this.Lb(),this.Mb(),this.Za(),this.yb()),f=new Ij(b+e.left,a+e.top),h=[],n=0;n=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);iz(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:iz(f)&&(b+="\\"),b+=f}}return b+"$"} function kz(a){try{return a=a.replace(/\\"/g,'"'),a=a.replace(/\\'/g,"'"),a=a.replace(/\\n/g,"\n"),a=a.replace(/\\t/g,"\t"),a=a.replace(/\\r/g,"\r"),a=a.replace(/\\\\/g,"\\"),a=a.replace(/\\U([\d\w]{8})/gi,function(b,c){return String.fromCharCode(parseInt(c.substring(0,4),16),parseInt(c.substring(4),16))}),a=a.replace(/\\u([\d\w]{4})/gi,function(b,c){return String.fromCharCode(parseInt(c,16))})}catch(b){throw Error('Unable to unescape "'+a+'" encountered error: '+b);}} function lz(){} lz.prototype.parse=function(){console&&console.error("No expression parser implementation was defined. Please ensure that aplos.data.GeneratedParser has been required.");throw Error("No expression parser implementation was defined.");};var mz=new lz;mz=function(){function a(va,oc,gd,Vc){gd=gd||{};for(Vc=va.length;Vc--;gd[va[Vc]]=oc);return gd} function b(){this.Pc={}} var c=[1,8],e=[1,20],f=[1,26],h=[1,27],n=[1,30],r=[1,112],t=[1,113],y=[1,29],E=[1,28],ma=[1,83],na=[1,84],sa=[1,85],ua=[1,86],ta=[1,87],Ba=[1,88],ya=[1,89],Aa=[1,90],Ca=[1,91],Fa=[1,92],Ea=[1,93],Ja=[1,94],Ka=[1,95],Oa=[1,96],Pa=[1,97],Qa=[1,98],Wa=[1,99],Db=[1,111],Eb=[1,100],Fb=[1,101],Gb=[1,102],Hb=[1,103],Ib=[1,104],Jb=[1,105],$a=[1,106],Kb=[1,107],Lb=[1,108],Mb=[1,109],fb=[1,110],ub=[1,31],vb=[1,32],wb=[1,33],Nb=[1,34],Ob=[1,35],Pb=[1,36],Qb=[1,37],Rb=[1,38],Sb=[1,47],Tb=[1,48],Ub=[1,49],Vb= [1,50],Wb=[1,51],Xb=[1,52],Yb=[1,53],Zb=[1,54],$b=[1,55],ac=[1,56],bc=[1,57],xb=[1,58],cc=[1,59],dc=[1,60],ec=[1,61],yb=[1,62],fc=[1,63],gc=[1,64],Ra=[1,65],Za=[1,66],gb=[1,67],ab=[1,68],bb=[1,69],Xa=[1,70],Ya=[1,71],zb=[1,72],Ab=[1,73],hb=[1,74],cb=[1,75],La=[1,76],ib=[1,77],Bb=[1,78],hc=[1,79],jb=[1,80],Ua=[1,81],kb=[1,82],lb=[1,39],Va=[1,40],mb=[1,41],nb=[1,42],ob=[1,43],pb=[1,44],ic=[1,45],qb=[1,46],rb=[1,116],db=[1,117],sb=[1,118],lc=[1,119],pc=[1,120],uc=[1,121],zc=[1,122],rc=[1,123],Ac=[1,124],Cb=[1,125],Gc=[1,126],Ic=[1,128],Hc=[1,127],nc=[1,129],Bc=[1,130],Cc=[1,131],Dc=[1,132],sc=[1,133],qc=[1,134],Ec=[1,135],vc=[1,136],wc=[1,137],xc=[1,138],yc=[1,139],tb=[5,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],xg=[1,140],Ck=[1,150],yg=[5,11,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,55,71,72,74,75,76,81,82,96,97,98,99],Ei=[1,180],Fi=[5,12,17,42,43,44,45,54,96,97,98,99],Xe=[1,233],uf=[1,250],Gi=[5,12,17,32,33,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],Fe=[5,12,17,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],pe=[2,37],Ye=[1,336],je=[5,12,17,54,96,97,98,99],Dk=[96,97],Ii={trace:function(){},Pc:{},Lo:{error:2,expressions:3,math:4,EOF:5,float_item:6,boolean_item:7,identifier_item:8,negated_identifier:9,string_item:10,"(":11,")":12,operator_expression:13,aggregation_function:14,scalar_operator:15,scalar_2_operator:16,",":17,scalar_n_operator:18,comma_values:19,scalar_function:20,scalar_2_function:21,scalar_n_functions:22,alias_functions:23,datetime_functions:24,case_function:25,cast_function:26,quantile_functions:27,native_function:28,misc_function_no_args:29,misc_function_one_arg:30,misc_function_n_args:31,"+":32,"-":33,"/":34,"*":35,"=":36,"!=":37,"<":38,"<=":39,">":40,">=":41,BETWEEN_OP:42,AND_OP:43,NOT_BETWEEN_OP:44,OR_OP:45,IS_NULL_OP:46,IS_TRUE_OP:47,IS_FALSE_OP:48,FLOAT_VALUE:49,STRING_VALUE:50,NATIVE_EXPR:51,NATIVE_AGGREGATE:52,misc_function_start:53,IDENTIFIER:54,DOT_OP:55,BOOLEAN_VALUE:56,token_item:57,ROUND:58,TRUNC:59,LN:60,LOG10:61,LOG:62,POW:63,EXP:64,LIKE:65,COUNT:66,DISTINCT:67,COUNT_DISTINCT_EST:68,NOT_OP:69,NOT_EQUAL_EXPR:70,LIKE_OP:71,NOT_LIKE_OP:72,IS_NOT_NULL:73,IS_NOT_NULL_OP:74,IS_NOT_TRUE_OP:75,IS_NOT_FALSE_OP:76,IF:77,IFNULL:78,NULLIF:79,COALESCE:80,IN_OP:81,NOT_IN_OP:82,NTH_QUANTILE:83,EXTRACT:84,DATE_TRUNC:85,DATETIME_TRUNC:86,TIMESTAMP_TRUNC:87,DATE_ADD:88,DATE_SUB:89,PARSETIME:90,FORMATTIME:91,TIMESTAMP:92,CAST:93,CASE:94,when_then_values:95,ELSE:96,END:97,WHEN:98,THEN:99,AVG:100,SUM:101,MIN:102,MAX:103,COUNT_DISTINCT:104,VARIANCE:105,STDDEV:106,HLL_COUNT_MERGE:107,ABS:108,SIGN:109,IS_INF:110,IS_NAN:111,SQRT:112,CEILING:113,FLOOR:114,COS:115,COSH:116,ACOS:117,ACOSH:118,SIN:119,SINH:120,ASIN:121,ASINH:122,TAN:123,TANH:124,ATAN:125,ATANH:126,IS_NULL:127,UNIX_MICROS:128,UNIX_MILLIS:129,TIMESTAMP_MICROS:130,TIMESTAMP_MILLIS:131,ENCODE_URI_COMPONENT:132,HLL_COUNT_EXTRACT:133,IEEE_DIVIDE:134,POWER:135,DIV:136,MOD:137,ATAN2:138,REGEXP_MATCH:139,GREATEST:140,LEAST:141,CONCAT:142,FORMAT:143,NOT_EXPR:144,EQUAL_EXPR:145,LESS_EXPR:146,LESS_OR_EQUAL_EXPR:147,GREATER_EXPR:148,GREATER_OR_EQUAL_EXPR:149,AND_EXPR:150,OR_EXPR:151,$accept:0,$end:1},mg:{2:"error",5:"EOF",11:"(",12:")",17:",",26:"cast_function",32:"+",33:"-",34:"/",35:"*",36:"=",37:"!=",38:"<",39:"<=",40:">",41:">=",42:"BETWEEN_OP",43:"AND_OP",44:"NOT_BETWEEN_OP",45:"OR_OP",46:"IS_NULL_OP",47:"IS_TRUE_OP",48:"IS_FALSE_OP",49:"FLOAT_VALUE",50:"STRING_VALUE",51:"NATIVE_EXPR",52:"NATIVE_AGGREGATE",54:"IDENTIFIER",55:"DOT_OP",56:"BOOLEAN_VALUE",58:"ROUND",59:"TRUNC",60:"LN",61:"LOG10",62:"LOG",63:"POW",64:"EXP",65:"LIKE",66:"COUNT",67:"DISTINCT",68:"COUNT_DISTINCT_EST",69:"NOT_OP",70:"NOT_EQUAL_EXPR",71:"LIKE_OP",72:"NOT_LIKE_OP",73:"IS_NOT_NULL",74:"IS_NOT_NULL_OP",75:"IS_NOT_TRUE_OP",76:"IS_NOT_FALSE_OP",77:"IF",78:"IFNULL",79:"NULLIF",80:"COALESCE",81:"IN_OP",82:"NOT_IN_OP",83:"NTH_QUANTILE",84:"EXTRACT",85:"DATE_TRUNC",86:"DATETIME_TRUNC",87:"TIMESTAMP_TRUNC",88:"DATE_ADD",89:"DATE_SUB",90:"PARSETIME",91:"FORMATTIME",92:"TIMESTAMP",93:"CAST",94:"CASE",96:"ELSE",97:"END",98:"WHEN",99:"THEN",100:"AVG",101:"SUM",102:"MIN",103:"MAX",104:"COUNT_DISTINCT",105:"VARIANCE",106:"STDDEV",107:"HLL_COUNT_MERGE",108:"ABS",109:"SIGN",110:"IS_INF",111:"IS_NAN",112:"SQRT",113:"CEILING",114:"FLOOR",115:"COS",116:"COSH",117:"ACOS",118:"ACOSH",119:"SIN",120:"SINH",121:"ASIN",122:"ASINH",123:"TAN",124:"TANH",125:"ATAN",126:"ATANH",127:"IS_NULL",128:"UNIX_MICROS",129:"UNIX_MILLIS",130:"TIMESTAMP_MICROS",131:"TIMESTAMP_MILLIS",132:"ENCODE_URI_COMPONENT",133:"HLL_COUNT_EXTRACT",134:"IEEE_DIVIDE",135:"POWER",136:"DIV",137:"MOD",138:"ATAN2",139:"REGEXP_MATCH",140:"GREATEST",141:"LEAST",142:"CONCAT",143:"FORMAT",144:"NOT_EXPR",145:"EQUAL_EXPR",146:"LESS_EXPR",147:"LESS_OR_EQUAL_EXPR",148:"GREATER_EXPR",149:"GREATER_OR_EQUAL_EXPR",150:"AND_EXPR",151:"OR_EXPR"},fk:[0,[3,2],[4,1],[4,1],[4,1],[4,1],[4,1],[4,3],[4,1],[4,4],[4,4],[4,6],[4,4],[4,4],[4,6],[4,4],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,5],[13,5],[13,3],[13,3],[13,2],[13,2],[13,2],[6,2],[6,1],[10,1],[28,4],[28,4],[53,2],[29,2],[30,3],[31,3],[9,2],[8,1],[8,3],[7,1],[57,1],[19,3],[19,3],[23,4],[23,6],[23,4],[23,6],[23,4],[23,4],[23,4],[23,6],[23,6],[23,4],[23,6],[23,4],[23,5],[23,4],[23,2],[23,6],[23,3],[23,3],[23,4],[23,2],[23,2],[23,2],[23,8],[23,6],[23,6],[23,4],[23,5],[23,5],[23,5],[23,5],[27,8],[24,10],[24,10],[24,6],[24,6],[24,6],[24,8],[24,8],[24,8],[24,8],[24,8],[24,4],[24,6],[24,6],[25,5],[25,3],[95,4],[95,5],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[22,1],[22,1],[15,1],[16,1],[16,1],[16,1],[16,1],[16,1],[18,1],[18,1]],Uh:function(va,oc,gd,Vc,hd,za){va=za.length-1;switch(hd){case 1:return za[va-1];case 7:this.qa=za[va-1];break;case 9:case 10:case 13:this.qa={type:"function",name:za[va-3].toUpperCase(),params:[za[va-1]]};break;case 11:case 14:this.qa={type:"function",name:za[va-5].toUpperCase(),params:[za[va-3],za[va-1]]};break;case 12:case 15:this.qa={type:"function",name:za[va-3].toUpperCase(),params:za[va-1]};break;case 25:case 26:case 27:case 28:this.qa={type:"function",name:za[va-1],params:[za[va-2],za[va]]};break;case 29:this.qa={type:"function",name:"EQUAL",params:[za[va-2],za[va]]};break;case 30:this.qa={type:"function",name:"NOT_EQUAL",params:[za[va-2],za[va]]};break;case 31:this.qa={type:"function",name:"LESS",params:[za[va-2],za[va]]};break;case 32:this.qa={type:"function",name:"LESS_OR_EQUAL",params:[za[va-2],za[va]]};break;case 33:this.qa={type:"function",name:"GREATER",params:[za[va-2],za[va]]};break;case 34:this.qa={type:"function",name:"GREATER_OR_EQUAL",params:[za[va-2],za[va]]};break;case 35:this.qa={type:"function",name:"BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 36:this.qa={type:"function",name:"NOT BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 37:this.qa={type:"function",name:"AND",params:[za[va-2],za[va]]};break;case 38:this.qa={type:"function",name:"OR",params:[za[va-2],za[va]]};break;case 39:this.qa={type:"function",name:"IS NULL",params:[za[va-1]]};break;case 40:this.qa={type:"function",name:"IS TRUE",params:[za[va-1]]};break;case 41:this.qa={type:"function",name:"IS FALSE",params:[za[va-1]]};break;case 42:this.qa={type:"number",value:+-za[va]};break;case 43:this.qa={type:"number",value:+za[va]};break;case 44:this.qa={type:"string",value:kz(za[va].substring(1,za[va].length-1))};break;case 45:case 46:this.qa={type:"function",name:za[va-3],params:[za[va-1]]};break;case 47:hd=za[va-1].pathParts.slice();if(hd.length>2)throw Error("Too many path parts.");oc=hd.pop();this.qa={type:"function",namespace:hd.pop(),name:oc,fullName:za[va-1].column};break;case 48:za[va-1].params=[];this.qa=za[va-1];break;case 49:za[va-2].params=[za[va-1]];this.qa=za[va-2];break;case 50:hd=[];for(oc=0;oc2&&de.push("'"+this.mg[rh]+"'");var Un=Jd.kh?"Parse error on line "+(qh+1)+":\n"+Jd.kh()+"\nExpecting "+de.join(", ")+", got '"+(this.mg[Hd]||Hd)+"'":"Parse error on line "+(qh+1)+": Unexpected "+(Hd==1?"end of input":"'"+(this.mg[Hd]|| Hd)+"'");this.parseError(Un,{text:Jd.match,al:this.mg[Hd]||Hd,line:Jd.Yb,Xq:wf,Pq:de})}if(Zd[0]instanceof Array&&Zd.length>1)throw Error("Parse Error: multiple actions possible at state: "+xe+", token: "+Hd);switch(Zd[0]){case 1:oc.push(Hd);gd.push(Jd.Zb);Vc.push(Jd.Ua);oc.push(Zd[1]);Hd=null;Hi?(Hd=Hi,Hi=null):(Ek=Jd.Yd,za=Jd.Zb,qh=Jd.Yb,wf=Jd.Ua,Fk>0&&Fk--);break;case 2:de=this.fk[Zd[1]][1];Tf.qa=gd[gd.length-de];Tf.Ti={je:Vc[Vc.length-(de||1)].je,Md:Vc[Vc.length-1].Md,qd:Vc[Vc.length-(de||1)].qd,wd:Vc[Vc.length-1].wd};Tn&&(Tf.Ti.range=[Vc[Vc.length-(de||1)].range[0],Vc[Vc.length-1].range[1]]);xe=this.Uh.apply(Tf,[za,Ek,qh,vf,Zd[1],gd,Vc].concat(Sn));if(typeof xe!=="undefined")return xe;de&&(oc=oc.slice(0,-1*de*2),gd=gd.slice(0,-1*de),Vc=Vc.slice(0,-1*de));oc.push(this.fk[Zd[1]][0]);gd.push(Tf.qa);Vc.push(Tf.Ti);Zd=hd[oc[oc.length-2]][oc[oc.length-1]];oc.push(Zd);break;case 3:return!0}}}};Ii.Mj=function(){return{Ni:1,parseError:function(va,oc){if(this.Pc.Zj)this.Pc.Zj.parseError(va,oc);else throw Error(va);},xo:function(va,oc){this.Pc=oc||this.Pc||{};this.bc=va;this.Af=this.ug=this.done=!1;this.Yb=this.Yd=0;this.Zb=this.Kc=this.match="";this.Hb=["INITIAL"];this.Ua={je:1,qd:0,Md:1,wd:0};this.options.Yf&&(this.Ua.range=[0,0]);this.offset=0;return this},input:function(){var va=this.bc[0];this.Zb+=va;this.Yd++;this.offset++;this.match+=va;this.Kc+=va;va.match(/(?:\r\n?|\n).*/g)?(this.Yb++,this.Ua.Md++):this.Ua.wd++;this.options.Yf&&this.Ua.range[1]++;this.bc=this.bc.slice(1);return va},Xo:function(va){var oc=va.length,gd=va.split(/(?:\r\n?|\n)/g);this.bc=va+this.bc;this.Zb=this.Zb.substr(0,this.Zb.length-oc);this.offset-=oc;va=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.Kc=this.Kc.substr(0,this.Kc.length-1);gd.length-1&&(this.Yb-=gd.length-1);var Vc=this.Ua.range;this.Ua={je:this.Ua.je,Md:this.Yb+1,qd:this.Ua.qd,wd:gd?(gd.length===va.length?this.Ua.qd:0)+va[va.length-gd.length].length-gd[0].length:this.Ua.qd-oc};this.options.Yf&&(this.Ua.range= [Vc[0],Vc[0]+this.Yd-oc]);this.Yd=this.Zb.length;return this},ar:function(){this.Af=!0;return this},reject:function(){if(this.options.Xi)this.ug=!0;else return this.parseError("Lexical error on line "+(this.Yb+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.kh(),{text:"",al:null,line:this.Yb});return this},Tq:function(va){this.Xo(this.match.slice(va))},Tn:function(){var va=this.Kc.substr(0,this.Kc.length-this.match.length);return(va.length>20?"...":"")+va.substr(-20).replace(/\n/g,"")},Yo:function(){var va=this.match;va.length<20&&(va+=this.bc.substr(0,20-va.length));return(va.substr(0,20)+(va.length>20?"...":"")).replace(/\n/g,"")},kh:function(){var va=this.Tn(),oc=Array(va.length+1).join("-");return va+this.Yo()+"\n"+oc+"^"},Xk:function(va,oc){var gd;if(this.options.Xi){var Vc={Yb:this.Yb,Ua:{je:this.Ua.je,Md:this.Md,qd:this.Ua.qd,wd:this.Ua.wd},Zb:this.Zb,match:this.match,matches:this.matches,Kc:this.Kc,Yd:this.Yd,offset:this.offset,Af:this.Af,bc:this.bc,Pc:this.Pc,Hb:this.Hb.slice(0),done:this.done};this.options.Yf&&(Vc.Ua.range=this.Ua.range.slice(0))}if(gd=va[0].match(/(?:\r\n?|\n).*/g))this.Yb+=gd.length;this.Ua={je:this.Ua.Md,Md:this.Yb+1,qd:this.Ua.wd,wd:gd?gd[gd.length-1].length-gd[gd.length-1].match(/\r?\n?/)[0].length:this.Ua.wd+va[0].length};this.Zb+=va[0];this.match+=va[0];this.matches=va;this.Yd=this.Zb.length;this.options.Yf&&(this.Ua.range=[this.offset,this.offset+=this.Yd]);this.ug=this.Af=!1;this.bc=this.bc.slice(va[0].length);this.Kc+=va[0];va=this.Uh.call(this,this.Pc,this,oc,this.Hb[this.Hb.length-1]);this.done&&this.bc&&(this.done=!1);if(va)return va;if(this.ug)for(var hd in Vc)this[hd]=Vc[hd];return!1},next:function(){if(this.done)return this.Ni;this.bc||(this.done=!0);var va;this.Af||(this.match=this.Zb="");for(var oc=this.ml(),gd=0;gdVc[0].length)){var Vc=va;var hd=gd;if(this.options.Xi){Vc=this.Xk(va,oc[gd]);if(Vc!==!1)return Vc;if(this.ug)Vc=!1;else return!1}else if(!this.options.flex)break}return Vc?(Vc=this.Xk(Vc,oc[hd]),Vc!==!1?Vc:!1):this.bc===""?this.Ni:this.parseError("Lexical error on line "+(this.Yb+1)+". Unrecognized text.\n"+ this.kh(),{text:"",al:null,line:this.Yb})},Lj:function(){var va=this.next();return va?va:this.Lj()},Yi:function(va){this.Hb.push(va)},Vn:function(){return this.Hb.length-1>0?this.Hb.pop():this.Hb[0]},ml:function(){return this.Hb.length&&this.Hb[this.Hb.length-1]?this.conditions[this.Hb[this.Hb.length-1]].rules:this.conditions.INITIAL.rules},lr:function(va){va=this.Hb.length-1-Math.abs(va||0);return va>=0?this.Hb[va]:"INITIAL"},pushState:function(va){this.Yi(va)},jr:function(){return this.Hb.length},options:{flex:!0,"case-insensitive":!0},Uh:function(va,oc,gd){switch(gd){case 1:return 67;case 2:return 144;case 3:return 150;case 4:return 151;case 5:return 145;case 6:return 70;case 7:return 146;case 8:return 147;case 9:return 148;case 10:return 149;case 11:return 127;case 12:return 73;case 13:return 43;case 14:return 45;case 15:return 65;case 16:return 51;case 17:return 52;case 18:return 93;case 19:return 128;case 20:return 129;case 21:return 130;case 22:return 131;case 23:return 92;case 24:return 100;case 25:return 66;case 26:return 103;case 27:return 102;case 28:return 101;case 29:return 105;case 30:return 106;case 31:return 107;case 32:return 108;case 33:return 109;case 34:return 110;case 35:return 111;case 36:return 134;case 37:return 112;case 38:return 63;case 39:return 135;case 40:return 64;case 41:return 60;case 42:return 62;case 43:return 61;case 44:return 140;case 45:return 141;case 46:return 136;case 47:return 137;case 48:return 58;case 49:return 59;case 50:return 113;case 51:return 113;case 52:return 114;case 53:return 115;case 54:return 116;case 55:return 117;case 56:return 118;case 57:return 119;case 58:return 120;case 59:return 121;case 60:return 122;case 61:return 123;case 62:return 124;case 63:return 125;case 64:return 126;case 65:return 138;case 66:return 133;case 67:return 142;case 68:return 139;case 69:return 143;case 70:return 84;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 89;case 76:return 32;case 77:return 33;case 78:return 35;case 79:return 34;case 80:return 69;case 81:return 43;case 82:return 45;case 83:return 38;case 84:return 39;case 85:return 40;case 86:return 41;case 87:return 36;case 88:return 37;case 89:return 37;case 90:return 55;case 91:return 42;case 92:return 44;case 93:return 71;case 94:return 72;case 95:return 46;case 96:return 74;case 97:return 47;case 98:return 75;case 99:return 48;case 100:return 76;case 101:return 81;case 102:return 82;case 103:return this.Yi("CASE_MODE"),94;case 104:return 98;case 105:return 99;case 106:return 96;case 107:return this.Vn(),97;case 108:return 80;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 104;case 113:return 68;case 114:return 90;case 115:return 91;case 116:return 83;case 117:return 132;case 118:return 11;case 119:return 12;case 120:return 17;case 121:return"'";case 122:return'"';case 123:return'"';case 124:return 49;case 125:return 56;case 126:return 54;case 127:return 50;case 128:return 50;case 129:return 54;case 130:return 5;case 131:return"INVALID";case 132:console.log(oc.Zb)}},rules:[/^(?:\s+)/i,/^(?:DISTINCT)/i,/^(?:NOT(?=[(]))/i,/^(?:AND(?=[(]))/i,/^(?:OR(?=[(]))/i,/^(?:EQUAL(?=[(]))/i,/^(?:NOT_EQUAL(?=[(]))/i,/^(?:LESS(?=[(]))/i,/^(?:LESS_OR_EQUAL(?=[(]))/i,/^(?:GREATER(?=[(]))/i,/^(?:GREATER_OR_EQUAL(?=[(]))/i,/^(?:IS NULL(?=[(]))/i,/^(?:IS NOT NULL(?=[(]))/i,/^(?:&&)/i,/^(?:\|\|)/i,/^(?:LIKE(?=[(]))/i,/^(?:NATIVE_EXPR(?=\s*[(]))/i,/^(?:NATIVE_AGGREGATE(?=\s*[(]))/i,/^(?:CAST(?=\s*[(]))/i,/^(?:UNIX_MICROS(?=\s*[(]))/i,/^(?:UNIX_MILLIS(?=\s*[(]))/i,/^(?:TIMESTAMP_MICROS(?=\s*[(]))/i,/^(?:TIMESTAMP_MILLIS(?=\s*[(]))/i,/^(?:TIMESTAMP(?=\s*[(]))/i,/^(?:AVG(?=\s*[(]))/i,/^(?:COUNT(?=\s*[(]))/i,/^(?:MAX(?=\s*[(]))/i,/^(?:MIN(?=\s*[(]))/i,/^(?:SUM(?=\s*[(]))/i,/^(?:VARIANCE(?=\s*[(]))/i,/^(?:STDDEV(?=\s*[(]))/i,/^(?:HLL_COUNT\.MERGE(?=\s*[(]))/i,/^(?:ABS(?=\s*[(]))/i,/^(?:SIGN(?=\s*[(]))/i,/^(?:IS_INF(?=\s*[(]))/i,/^(?:IS_NAN(?=\s*[(]))/i,/^(?:IEEE_DIVIDE(?=\s*[(]))/i,/^(?:SQRT(?=\s*[(]))/i,/^(?:POW(?=\s*[(]))/i,/^(?:POWER(?=\s*[(]))/i,/^(?:EXP(?=\s*[(]))/i,/^(?:LN(?=\s*[(]))/i,/^(?:LOG(?=\s*[(]))/i,/^(?:LOG10(?=\s*[(]))/i,/^(?:GREATEST(?=\s*[(]))/i,/^(?:LEAST(?=\s*[(]))/i,/^(?:DIV(?=\s*[(]))/i,/^(?:MOD(?=\s*[(]))/i,/^(?:ROUND(?=\s*[(]))/i,/^(?:TRUNC(?=\s*[(]))/i,/^(?:CEIL(?=\s*[(]))/i,/^(?:CEILING(?=\s*[(]))/i,/^(?:FLOOR(?=\s*[(]))/i,/^(?:COS(?=\s*[(]))/i,/^(?:COSH(?=\s*[(]))/i,/^(?:ACOS(?=\s*[(]))/i,/^(?:ACOSH(?=\s*[(]))/i,/^(?:SIN(?=\s*[(]))/i,/^(?:SINH(?=\s*[(]))/i,/^(?:ASIN(?=\s*[(]))/i,/^(?:ASINH(?=\s*[(]))/i,/^(?:TAN(?=\s*[(]))/i,/^(?:TANH(?=\s*[(]))/i,/^(?:ATAN(?=\s*[(]))/i,/^(?:ATANH(?=\s*[(]))/i,/^(?:ATAN2(?=\s*[(]))/i,/^(?:HLL_COUNT\.EXTRACT(?=\s*[(]))/i,/^(?:CONCAT(?=\s*[(]))/i,/^(?:REGEXP_MATCH(?=\s*[(]))/i,/^(?:FORMAT(?=\s*[(]))/i,/^(?:EXTRACT(?=\s*[(]))/i,/^(?:DATE_TRUNC(?=\s*[(]))/i,/^(?:DATETIME_TRUNC(?=\s*[(]))/i,/^(?:TIMESTAMP_TRUNC(?=\s*[(]))/i,/^(?:DATE_ADD(?=\s*[(]))/i,/^(?:DATE_SUB(?=\s*[(]))/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:NOT)/i,/^(?:AND)/i,/^(?:OR)/i,/^(?:<)/i,/^(?:<=)/i,/^(?:>)/i,/^(?:>=)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<>)/i,/^(?:\.)/i,/^(?:BETWEEN)/i,/^(?:NOT BETWEEN)/i,/^(?:LIKE)/i,/^(?:NOT LIKE)/i,/^(?:IS NULL)/i,/^(?:IS NOT NULL)/i,/^(?:IS TRUE)/i,/^(?:IS NOT TRUE)/i,/^(?:IS FALSE)/i,/^(?:IS NOT FALSE)/i,/^(?:IN)/i,/^(?:NOT IN)/i,/^(?:CASE)/i,/^(?:WHEN)/i,/^(?:THEN)/i,/^(?:ELSE)/i,/^(?:END)/i,/^(?:COALESCE(?=\s*[(]))/i,/^(?:IF(?=\s*[(]))/i,/^(?:IFNULL(?=\s*[(]))/i,/^(?:NULLIF(?=\s*[(]))/i,/^(?:COUNT_DISTINCT(?=\s*[(]))/i,/^(?:COUNT_DISTINCT_EST(?=\s*[(]))/i,/^(?:PARSETIME(?=\s*[(]))/i,/^(?:FORMATTIME(?=\s*[(]))/i,/^(?:NTH_QUANTILE(?=\s*[(]))/i,/^(?:ENCODE_URI_COMPONENT(?=\s*[(]))/i,/^(?:\()/i,/^(?:\))/i,/^(?:,)/i,/^(?:')/i,/^(?:")/i,/^(?:")/i,/^(?:[0-9]*(\.[0-9]*)?([eE]-?[0-9]+)?\b)/i,/^(?:TRUE|FALSE)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_]*\b)/i,/^(?:["](\\.|[^"])*["])/i,/^(?:['](\\.|[^'])*['])/i,/^(?:[`](\\.|[^`])*[`])/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{CASE_MODE:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0}}}}();b.prototype=Ii;Ii.v=b;return new b}();function nz(a,b,c){if(c!=null&&typeof c!=="number")throw Error("Provided value for "+b+' to "'+a+'" was of type '+typeof c+" but a number was expected.");} function oz(a,b,c){if(c!=null&&(typeof c!=="number"||!isNaN(c))&&isFinite(c)&&c!==parseInt(c,10))throw Error("Provided value for "+b+' to "'+a+'" was not an integer.');} function pz(a,b,c,e,f){if(c!=null&&!(isNaN(c)||c>=e&&c<=f))throw Error("Value provided for "+b+' to "'+a+'" was out of the allowed range of ['+e+", "+f+"].");} function qz(a,b){nz("TRUNC(X, Y)","X",a);nz("TRUNC(X, Y)","Y",b);oz("TRUNC(X, Y)","Y",b);if(a==null||b==null)return null;if(isNaN(a)||isNaN(b))return NaN;if(!isFinite(a))return+a;a=a>=0?Number(Math.floor(a+"e"+b)):Number(Math.ceil(a+"e"+b));return b>=0?Number(a+"e-"+b):Number(a+"e"+-b)} function rz(a,b){nz("LOG(X, Y)","X",a);nz("LOG(X, Y)","X",b);return a==null||b==null?null:+a/+b} ;function sz(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if(typeof e=="undefined")throw Error("[goog.string.format] Template required");return e.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(f,h,n,r,t,y,E,ma){if(y=="%")return"%";var na=c.shift();if(typeof na=="undefined")throw Error("[goog.string.format] Not enough arguments");arguments[0]=na;return tz[y].apply(null,arguments)})} var tz={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?a+li(" ",Number(c)-a.length):li(" ",Number(c)-a.length)+a},f:function(a,b,c,e,f){e=a.toString();isNaN(f)||f==""||(e=parseFloat(a).toFixed(f));var h=Number(a)<0?"-":b.indexOf("+")>=0?"+":b.indexOf(" ")>=0?" ":"";Number(a)>=0&&(e=h+e);if(isNaN(c)||e.length>=Number(c))return e;e=isNaN(f)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(f);a=Number(c)-e.length-h.length;b.indexOf("-",0)>=0?e=h+e+li(" ",a):(b=b.indexOf("0",0)>=0?"0":" ",e=h+li(b,a)+e);return e},d:function(a,b,c,e,f,h,n,r){return tz.f(parseInt(a,10),b,c,e,0,h,n,r)}};tz.i=tz.d;tz.u=tz.d;function uz(a,b){if(a==null)return!1;if(b.length===0)return!0;b=Mc(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a===c||typeof a!==typeof c)return!1;return!0} function vz(a,b,c){if(b==null||c==null)return!1;if(typeof b!=typeof c)throw Error("Argument type mismatch in "+a+' comparison function: parameter 1 "'+b+'" is type '+typeof b+' but param2 "'+c+'" is type '+typeof c+".");switch(a){case "EQUAL":return b===c;case "NOT_EQUAL":return b!==c;case "LESS":return bc;case "GREATER_OR_EQUAL":return b>=c;default:throw Error('Unhandled binary operator "'+a+'".');}} function wz(a,b){var c=b[0];if(b.some(function(e){return e==null}))return null;switch(a){case "+":for(a=1;ac)throw Error("CAST result is out of range for integer type.");return e} function Dz(a,b,c){switch(typeof a){case "number":var e=a;break;case "boolean":e=a?1:0;break;case "string":if(a.toLowerCase()==="inf"||a.toLowerCase()==="+inf"){e=Infinity;break}else if(a.toLowerCase()==="-inf")e=-Infinity;else if(a.toLowerCase()==="nan")e=NaN;else if(e=Number(a),isNaN(e))throw Error('CAST from string to a floating point value failed for "'+a+'" because of non-numeric characters.');if(isNaN(e)&&a.toLowerCase()!=="nan")throw Error('CAST from string to a floating point value failed for "'+ a+'".');break;default:throw Error("CAST from "+typeof a+" to a floating point value is not supported.");}if(b!=null&&c!=null&&isFinite(e)&&(ec))throw Error("CAST result "+e+" is out of range for target type.");return e} function Ez(a){if(typeof a==="number"){if(a===Infinity)return"inf";if(a===-Infinity)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function Fz(a,b){var c=Gz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Mc(Oi(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.toUpperCase();c.set(h,new Hz(a,h,b[f]))}} function Hz(a,b,c){this.O=a;this.N=b;this.v=c} Hz.prototype.call=function(){return this.apply(xd.apply(0,arguments))};Hz.prototype.apply=function(a){var b=a;b=b===void 0?[]:b;var c=this.v.va,e=this.v.wa;if(c&&b.lengthe)throw Error("Expected no more than "+c+" args for "+this.N);return this.v.wb?this.v.wb.apply(null,a):this.v.ua.apply(null,a)};Hz.prototype.Na=function(a){return this.v.Na?this.v.Na.call(null,a):Bz(this.O,this.N,a)};var Gz=new function(){this.v=new Map};Fz("",{AVG:{wb:wq},COUNTIF:{wb:zq},SUM:{wb:xq},MIN:{wb:Aq},MAX:{wb:Bq},COUNT:{wb:yq},COUNT_DISTINCT:{wb:Cq},NTH_QUANTILE:{wb:Dq},VARIANCE:{wb:Fq},STDDEV:{wb:Gq},"HLL_COUNT.MERGE":{wb:Hq},"HLL_COUNT.EXTRACT":{va:1,wa:1,ua:function(){throw Error("HLL_COUNT.EXTRACT is not implemented on the client.");}},ABS:{va:1,wa:1,ua:function(a){nz("ABS(X)","X",a);return a!=null?Math.abs(+a):null}},SIGN:{va:1,wa:1,ua:function(a){nz("SIGN(X)","X",a);var b=Math.sign||function(c){c=+c;return c===0||isNaN(c)?c:c>0?1:-1};return a!=null?b(+a):null}},IS_INF:{va:1,wa:1,ua:function(a){nz("IS_INF(X)","X",a);return a!=null?!isFinite(+a)&&!isNaN(a):null},uc:"IS_INFINITY"},IS_NAN:{va:1,wa:1,ua:function(a){nz("IS_NAN(X)","X",a);return a!=null?isNaN(+a):null},uc:"IS_NAN"},IEEE_DIVIDE:{va:2,wa:2,ua:rz},SQRT:{va:1,wa:1,ua:function(a){nz("SQRT(X)","X",a);pz("SQRT(X)","X",a,0,Infinity);return a!=null?Math.sqrt(+a):null}},POWER:{va:2,wa:2,ua:function(a,b){nz("POWER(X, Y)","X",a);nz("POWER(X, Y)","Y",b);if(a==null||b==null)return null;if(a!==1&&b!==0&&(a!==-1||b!==Infinity&&b!==-Infinity)){if(Math.abs(a)<1&&b===-Infinity)return Infinity;if(Math.abs(a)>1&&b===-Infinity||Math.abs(a)<1&&b===Infinity||a===-Infinity&&b<0)return 0;if(a===-Infinity&&b>0)return b%2===1?-Infinity:Infinity;if(a===Infinity&&b<0)return 0;if(a===Infinity&&b>0)return Infinity}else return 1;return a!=null?Math.pow(+a,+b):null}},LOG:{va:2,wa:2,ua:function(a,b){nz("LOG(X, Y)","X",a);nz("LOG(X, Y)","Y",b);if(a==null||b==null)return null;if(isNaN(a)||isNaN(b)||a===-Infinity||b===Infinity)return NaN;if(a===Infinity&&b>0&&b<1)return-Infinity;if(a===Infinity&&b>1)return Infinity;pz("LOG(X, Y)","X",a,0,Infinity);pz("LOG(X, Y)","Y",a,0,Infinity);if(b===1)throw Error("Value provided for Y to LOG(X, Y) was 1 which is not allowed");return Math.log(+a)/Math.log(+b)}},GREATEST:{va:2,ua:function(a){for(var b=-Infinity,c=0;c=0?Number(Math.round(a+"e"+b)+"e-"+b):Number(Math.round(a+"e"+b)+"e"+-b):+a}},TRUNC:{va:2,wa:2,ua:qz},CEILING:{va:1,wa:1,ua:function(a){nz("CEILING(X)","X",a);return a!=null?Math.ceil(+a):null}},FLOOR:{va:1,wa:1,ua:function(a){nz("FLOOR(X)","X",a);return a!=null?Math.floor(+a):null}},COS:{va:1,wa:1,ua:function(a){nz("COS(X)","X",a);return a!=null?Math.cos(+a):null}},COSH:{va:1,wa:1,ua:function(a){nz("COSH(X)","X",a);var b=Math.cosh||function(c){c=Math.exp(c);return(c+1/c)/2};return a!=null?b(+a):null}},ACOS:{va:1,wa:1,ua:function(a){nz("ACOS(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;pz("ACOS(X)","X",a,-1,1);return a!=null?Math.acos(+a):null}},ACOSH:{va:1,wa:1,ua:function(a){nz("ACOSH(X)","X",a);if(a===-Infinity)return NaN;pz("ACOSH(X)","X",a,1,Infinity);var b=Math.acosh||function(c){return Math.log(c+Math.sqrt(c*c-1))};return a!=null?b(+a):null}},SIN:{va:1,wa:1,ua:function(a){nz("SIN(X)","X",a);return a!=null?Math.sin(+a):null}},SINH:{va:1,wa:1,ua:function(a){nz("SINH(X)","X",a);var b=Math.sinh||function(c){return(Math.exp(c)-Math.exp(-c))/2};return a!=null?b(+a):null}},ASIN:{va:1,wa:1,ua:function(a){nz("ASIN(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;pz("ASIN(X)","X",a,-1,1);return a!=null?Math.asin(+a):null}},ASINH:{va:1,wa:1,ua:function(a){nz("ASINH(X)","X",a);var b=Math.asinh||function(c){return c===-Infinity?c:Math.log(c+Math.sqrt(c*c+1))};return a!=null?b(+a):null}},TAN:{va:1,wa:1,ua:function(a){nz("TAN(X)","X",a);return a!=null?Math.tan(+a):null}},TANH:{va:1,wa:1,ua:function(a){nz("TANH(X)","X",a);var b=Math.tanh||function(c){return c===Infinity?1:c===-Infinity?-1:(Math.exp(c)-Math.exp(-c))/(Math.exp(c)+Math.exp(-c))};return a!=null?b(+a):null}},ATAN:{va:1,wa:1,ua:function(a){nz("ATAN(X)","X",a);return a!=null?Math.atan(+a):null}},ATANH:{va:1,wa:1,ua:function(a){nz("ATANH(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;if(a!=null&&!(isNaN(a)||a>-1&&a<1))throw Error('Value provided for X to "ATANH(X)" was out of the allowed range of (-1, 1).');var b=Math.atanh||function(c){return Math.log((1+c)/(1-c))/2};return a!=null?b(+a):null}},ATAN2:{va:2,wa:2,ua:function(a,b){nz("ATAN(Y, X)","X",a);nz("ATAN(Y, X)","Y",b);return a==null||b==null?null:Math.atan2(+a,+b)}},REGEXP_MATCH:{va:2,wa:2,ua:function(a,b){if(typeof a!=="string"||typeof b!=="string")return null;if(b.indexOf("(?i)")==0){b=b.substring(4);var c="i"}else b.indexOf("(?is)")==0&&(b=b.substring(5),c="i");return RegExp(b,c).test(a)},uc:"REGEX"},ENCODE_URI_COMPONENT:{va:1,wa:1,ua:function(a){return typeof a!=="string"?null:encodeURIComponent(a)}},FORMAT:{va:2,wa:void 0,ua:function(a){return arguments.length<2?null:sz.apply(null,arguments)}},CONCAT:{va:2,wa:void 0,ua:function(a){for(var b="",c=0;ca||a>c},Na:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},uc:"NOT_BETWEEN"},CAST:{va:2,wa:2,ua:function(a,b){if(a==null)return null;switch(b.toUpperCase()){case "INT32":return Cz(a,-2147483648,2147483647);case "INT64":return Cz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return Cz(a,0,1.8446744073709552E19);case "FLOAT":return Dz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return Dz(a);case "BOOL":return Yr(a);case "STRING":return Ez(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},Na:function(a){if(a.length!==2)throw Error("Expected two parameters for cast.");var b=a[1].replace(/"/g,"");return"CAST("+a[0]+" AS "+b+")"}},UNIX_MICROS:{va:1,wa:1,ua:function(a){return a}},UNIX_MILLIS:{va:1,wa:1,ua:function(a){return a}},TIMESTAMP_MICROS:{va:1,wa:1,ua:function(a){return a}},TIMESTAMP_MILLIS:{va:1,wa:1,ua:function(a){return 1E3*a}},TIMESTAMP_SECONDS:{va:1,wa:1,ua:function(a){return 1E6*a}},TIMESTAMP:{va:1,wa:2,ua:er},DATE:{va:1,wa:2,ua:function(a,b){return fr(a,"DAY",b)}},DATETIME:{va:1,wa:1,ua:er},AND:{va:2,ua:function(){return xz("AND",xd.apply(0,arguments))},Na:function(a){return yz(" AND ",a)}},OR:{va:2,ua:function(){return xz("OR",xd.apply(0,arguments))},Na:function(a){return yz(" OR ",a)}},"+":{va:2,ua:function(){return wz("+",xd.apply(0,arguments))},Na:function(a){return yz("+",a)}},"-":{va:2,ua:function(){return wz("-",xd.apply(0,arguments))},Na:function(a){return yz("-",a)}},"*":{va:2,ua:function(){return wz("*",xd.apply(0,arguments))},Na:function(a){return yz("*",a)}},"/":{va:2,ua:function(){return wz("/",xd.apply(0,arguments))},Na:function(a){return yz("/",a)}},NOT:{va:1,wa:1,ua:function(a){return a==null||typeof a!=="boolean"?null:a===!1},Na:function(a){if(a.length!==1)throw Error("Expected one parameter for NOT");return"(NOT "+a[0]+")"}},EQUAL:{va:2,wa:2,ua:function(a,b){return vz("EQUAL",a,b)},Na:function(a){return yz("=",a)},uc:"="},NOT_EQUAL:{va:2,wa:2,ua:function(a,b){return vz("NOT_EQUAL",a,b)},Na:function(a){return yz("!=",a)},uc:"!="},LESS:{va:2,wa:2,ua:function(a,b){return vz("LESS",a,b)},Na:function(a){return yz("<",a)},uc:"<"},LESS_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return vz("LESS_OR_EQUAL",a,b)},Na:function(a){return yz("<=",a)},uc:"<="},GREATER:{va:2,wa:2,ua:function(a,b){return vz("GREATER",a,b)},Na:function(a){return yz(">",a)},uc:">"},GREATER_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return vz("GREATER_OR_EQUAL",a,b)},Na:function(a){return yz(">=",a)},uc:">="},NATIVE_EXPR:{va:1,wa:1,ua:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{va:1,wa:1,wb:function(){throw Error("NATIVE_AGGREGATE not yet supported.");}},TO_JSON_STRING:{va:1,wa:2,ua:function(a,b){return b?JSON.stringify(a,null,2):JSON.stringify(a)}}});Fz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{wb:Eq},EXTRACT_POINT_DOUBLE:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{wb:Eq}});function Iz(){this.ma={};this.ta={};this.oa={};this.ka=[];this.na={};this.ha=[];this.N=null;this.ya=[];this.O=[];this.v={}} w=Iz.prototype;w.Xj=function(a,b){this.O.push({Ef:a,order:b?b:"ASC"});return this};w.Fl=function(){this.O=[];return this};w.Lf=function(){return this.O};w.ye=function(a){this.O=a.slice()};w.Qn=function(a,b,c,e){a={Ef:a,measure:c,kr:e||""};typeof b==="function"?a.wb=b:a.Qq=b;this.ya.push(a);return this};w.Rn=function(a){this.N=a;return this};w.wl=function(a){Array.isArray(a)?Qe(a,function(b){Jz(this,b,{Dd:"decimal",qf:null})},this):Jz(this,a,{Dd:"decimal",qf:null});return this};w.vl=function(a){Array.isArray(a)?Qe(a,function(b){Jz(this,b,{Dd:"boolean",qf:null})},this):Jz(this,a,{Dd:"boolean",qf:null});return this};w.Fj=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Dd)a=a.Dd,b=!!a&&Ir[a].kc==="number";return b?!0:!1};function Jz(a,b,c){a.v[b]?(c.Dd&&(a.v[b].Dd=c.Dd),c.qf&&(a.v[b].qf=c.qf)):a.v[b]=c} w.ql=function(a,b){this.ma[a]=b;return this};w.Ll=function(a,b){this.ta[a]=b;return this};w.Ml=function(a,b){this.oa[a]=b;delete this.na[a];return this};w.tn=function(a){return this.oa[a]||this.na[a]||this.ma[a]||this.N===a?!0:Pe(this.ka,a)>=0};w.on=function(a){if(a==null||a==void 0)return this;typeof a==="string"&&(a=[a]);for(var b=0;b=0||this.ka.push(a[b]);return this};w.tl=function(a,b,c){b=b?b:Kz;this.na[c?c:"aggregatedValue"]={measure:a,wb:b};return this};w.Nj=function(){return this};w.Sn=function(a,b){this.Nj(a);this.Xj(b,"DESC");return this};w.Hl=function(a,b){this.ha.push({Ef:a,value:b,operator:"="});return this};w.filter=function(a,b,c){this.ha.push(Wr(a,b,c));return this};w.io=function(){return this};w.zm=function(){return this.ha};w.El=function(){this.ha=[];return this};w.Bm=function(){var a=this.ka.slice(0);!this.N||Pe(a,this.N)>=0||df(a,0,0,this.N);return a};Pd("aplos.data.Projection",Iz);Iz.prototype.getHierarchy=Iz.prototype.Bm;Iz.prototype.clearFilters=Iz.prototype.El;Iz.prototype.getFilters=Iz.prototype.zm;Iz.prototype.setAllowCachedSince=Iz.prototype.io;Iz.prototype.filter=Iz.prototype.filter;Iz.prototype.columnEquals=Iz.prototype.Hl;Iz.prototype.onlyTop=Iz.prototype.Sn;Iz.prototype.limit=Iz.prototype.Nj;Iz.prototype.aggregate=Iz.prototype.tl;Iz.prototype.on=Iz.prototype.on;Iz.prototype.hasOutputColumn=Iz.prototype.tn;Iz.prototype.derivePostAggregation=Iz.prototype.Ml;Iz.prototype.deriveColumn=Iz.prototype.Ll;Iz.prototype.addExpression=Iz.prototype.ql;Iz.prototype.asBoolean=Iz.prototype.vl;Iz.prototype.asNumber=Iz.prototype.wl;Iz.prototype.oneSeriesPer=Iz.prototype.Rn;Iz.prototype.oneColumnPer=Iz.prototype.Qn;Iz.prototype.setOrdering=Iz.prototype.ye;Iz.prototype.clearOrdering=Iz.prototype.Fl;Iz.prototype.orderBy=Iz.prototype.Xj;function Lz(){var a=a===void 0?mz:a;var b=b===void 0?Gz:b;this.N=a;this.v=b} function Mz(a,b){var c=c===void 0?Nz:c;var e=Oz(a,b),f=new Pz(a.v,c);return function(h){return Qz(e,f,h)}} function Oz(a,b){a=a.N.parse(b);if(a===null)throw Error("Got a null parse tree.");return a} function Qz(a,b,c){switch(a.type){case "column":a=Mc(a.pathParts);for(var e=a.next();!e.done;e=a.next())c=b.N(e.value,c);return c;case "number":return a.value;case "string":return a.value;case "boolean":return a.value;case "function":var f=b.v,h=a.namespace;e=a.name;h=h?h.toUpperCase():h;e=e.toUpperCase();f=f.v.get(h||"");if(!f)throw Error("Unknown namespace: "+h);h=f.get(e);if(!h)throw Error("Unknown function: "+e);if(h.v.wb)throw Error("Found aggregating function "+a.name+" while building a non-aggregating expression evaluator.");e=[];for(f=0;f'):c&&typeof f==="string"&&(f=ji(f));return f} function Wz(a,b){var c=b.getExpression().trim().replace(/ +/," ").trim().split(" ");if(c.length!==2)throw Error("nest expression requires two parameters");b=c[0];var e=c[1].split("."),f={nest_label:"NEST_TOP",nest_children:[],nest_child_map:{}};a=Pi(a.v[a.v.length-1],b.split("."));if(a==null)return null;if(!Fd(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(h){var n=f;(Pi(h,e)||"").split("|").forEach(function(r){var t=n.nest_child_map[r];t|| (t={nest_label:r,nest_children:[],nest_child_map:{}},n.nest_child_map[r]=t,n.nest_children.push(t));n=t});n.nest_children.push(h)});return f} ;function Xz(a){this.v=a;this.O=this.N=-1;this.ha=0} Xz.prototype.next=function(){this.N++;var a=this.v[this.N];a==="\n"?(this.ha++,this.O=-1):this.O++;return a};Xz.prototype.index=function(){return this.N};function Yz(a,b){if(b<0)throw Error("CharacterIterator can only skip forward");for(var c=0;c0&&this.N.Tc(new hA(a)),this.ma(b);this.O+=a;return!0};jA.prototype.ma=function(a){if(Zz(a,"#each ",1)){var b=new bA;this.N.Tc(b);this.v=new lA(b,"each",a);Yz(a,6)}else Zz(a,"#if ",1)?(b=new dA,this.N.Tc(b),this.v=new lA(b,"if",a),Yz(a,4)):Zz(a,"#first ",1)?(b=new aA,this.N.Tc(b),this.v=new lA(b,"first",a),Yz(a,7)):Zz(a,"#nest ",1)?(b=new eA,this.N.Tc(b),this.v=new lA(b,"nest",a),Yz(a,6)):Zz(a,"#partial ",1)?(b=new fA,this.N.Tc(b),this.v=new lA(b,"partial",a),Yz(a,9)):Zz(a,"#html ",1)?(b=new cA,this.N.Tc(b),this.v=new kA(b,a),Yz(a,6)):(b=new Rz,this.N.Tc(b),this.v=new kA(b,a));return!0};jA.prototype.close=function(a){this.v!=null&&this.v.close(a);this.O.length>0&&(this.N.Tc(new hA(this.O)),this.O="");return this.N};function lA(a,b,c){jA.call(this,a,c);this.na="{{/"+b+"}}";this.ka=new kA(a,c)} ed(lA,jA);lA.prototype.ma=function(a){if(Zz(a,this.na,-1))return Yz(a,this.na.length-2),!1;if(Zz(a,"/",1))throw Error("Attempt to close the wrong expression [row:"+a.ha+", col:"+a.O+"] expected "+this.na+" template:"+a.v);return jA.prototype.ma.call(this,a)};lA.prototype.ha=function(a,b){return this.ka?(this.ka.ha(a,b)||(this.ka=null),!0):jA.prototype.ha.call(this,a,b)};lA.prototype.close=function(a){if(this.ka)throw Error("Template parse error at [row:"+this.ta+", col:"+this.oa+"] (expression not closed) template:"+a.v);throw Error("Template parse error at [row:"+this.ta+", col:"+this.oa+"] ("+this.na+" not found) template:"+a.v);};function mA(a){this.v=(new iA).parse(a)} ;function nA(){this.ya="{{#partial mainDetail}}{{#template header}}{{/partial}}{{#nest details series.seriesCategory}}{{#each nest_children}}{{#first nest_children}}{{#template seriesCategory}}{{/first}}{{#each nest_children}}{{#if IF(series.annotation is null, true, NOT(series.annotation))}}{{#template body}}{{/if}}{{#if series.annotation}}{{#partial datum}}{{#template annotation}}{{/partial}}{{/if}}{{/each}}{{/each}}{{/nest}}{{#partial mainDetail}}{{#template footer}}{{/partial}}";this.O=this.ma= this.ka=null;this.oa="{{title}}";this.Aa="{{measure}}";this.N=this.v=this.ha=null;this.na="series_asc";this.Ia=new Lj(12,12);this.ta=new dm} w=nA.prototype;w.Fk=function(a){this.ya=a;this.v=null;return this};w.fg=function(a){this.N=oA(this,a||{});return this};w.Fg=function(){this.N==null&&(this.N=oA(this,{}));return this.N};w.ye=function(a){this.na=a;return this};w.Lf=function(){return this.na};w.lf=function(a){this.ka=a;this.v=null;return this};w.Ig=function(){return this.ka};w.lg=function(a){this.ma=a;this.v=null;return this};w.Og=function(){return this.ma};w.kf=function(a){this.O=a;this.v=null;return this};w.Eg=function(){return this.O};w.fi=function(a){this.oa=a;this.v=null;return this};w.Gh=function(){return this.oa};w.ig=function(a){this.ha=a;this.v=null;return this};w.Hg=function(){return this.ha};w.nf=function(a){this.ta=a;return this};w.ag=function(a,b,c){a.textContent="";this.N===null&&(this.N=oA(this,{}));var e=this.N;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.il)}b={mainDetail:b,details:c};if(!this.v){c=this.ka||"";var f=this.ma||"",h=this.O||"",n=this.oa||"",r=this.ha||"";c===""&&f===""&&h===""&&r===""&&(h=this.Aa);c=this.ya.replace(/{{#template header}}/,c).replace(/{{#template seriesCategory}}/,f).replace(/{{#template body}}/,h).replace(/{{#template annotation}}/,n).replace(/{{#template footer}}/,r);this.v=new mA(c)}b=new Tz(b,e);this.v.v.accept(b);e=On(b.N);b=b.ha;for(var t in b)c=e.querySelector("#"+t),c.parentElement.replaceChild(b[t],c);for(;e.firstChild;)a.appendChild(e.firstChild)};function oA(a,b){var c=Zn();c["svg-sample"]=a.ta.v(a.Ia);ij(c,b);return c} w.il=function(a,b){return a.chartY!==b.chartY?a.chartY-b.chartY:a.chartX-b.chartX};nA.prototype.setLegendKey=nA.prototype.nf;nA.prototype.getFooterTemplate=nA.prototype.Hg;nA.prototype.setFooterTemplate=nA.prototype.ig;nA.prototype.getAnnotationTemplate=nA.prototype.Gh;nA.prototype.setAnnotationTemplate=nA.prototype.fi;nA.prototype.getBodyTemplate=nA.prototype.Eg;nA.prototype.setBodyTemplate=nA.prototype.kf;nA.prototype.getSeriesCategoryTemplate=nA.prototype.Og;nA.prototype.setSeriesCategoryTemplate=nA.prototype.lg;nA.prototype.getHeaderTemplate=nA.prototype.Ig;nA.prototype.setHeaderTemplate=nA.prototype.lf;nA.prototype.getOrdering=nA.prototype.Lf;nA.prototype.setOrdering=nA.prototype.ye;nA.prototype.getConversionFunctionMap=nA.prototype.Fg;nA.prototype.setConversionFunctionMap=nA.prototype.fg;nA.prototype.setMainTemplate=nA.prototype.Fk;var pA=!0;Pd("aplos.spec.flags.setEnableNewTemplateContentRenderer",function(a){pA=a});function qA(){this.O=this.N=this.ka=null;this.oa="{{measure}}";this.v=this.ha=null;this.na="series_asc";this.ta=new Lj(12,12);this.ma=new dm} w=qA.prototype;w.be=function(a){return a==null?this.Fg():this.fg(a)};w.fg=function(a){this.v=rA(this,a||{});return this};w.Fg=function(){this.v===null&&(this.v=rA(this,{}));return this.v};w.ah=function(a){return a==null?this.Lf():this.ye(a)};w.ye=function(a){this.na=a;return this};w.Lf=function(){return this.na};w.Fk=function(){return this};w.vn=function(a){return a===void 0?this.Ig():this.lf(a)};w.lf=function(a){this.ka=a;return this};w.Ig=function(){return this.ka};w.ho=function(a){return a===void 0?this.Og():this.lg(a)};w.lg=function(a){this.N=a;return this};w.Og=function(){return this.N};w.Al=function(a){return a===void 0?this.Eg():this.kf(a)};w.kf=function(a){this.O=a;return this};w.Eg=function(){return this.O};w.fi=function(){return this};w.Gh=function(){return null};w.Vl=function(a){return a===void 0?this.Hg():this.ig(a)};w.ig=function(a){this.ha=a;return this};w.Hg=function(){return this.ha};w.nf=function(a){this.ma=a;return this};w.ag=function(a,b,c){a.textContent="";this.v===null&&(this.v=rA(this,{}));var e=this.v;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.jl)}var f=this.ka||"",h=this.ha||"",n=this.O;f===""&&this.N==null&&n==null&&h===""&&(n=this.oa);n=n||"";var r=!1,t=void 0,y;a:{if(f!==""&&h!==""){if(!sA.length)for(y=0;y]*?>","gi"),close:new RegExp(""+E+"[^>]*?>","gi")})}for(y=0;y(ma?ma.length:0)&&(na=(ma=h.match(E.open))?ma.length:0,ma=h.match(E.close),(ma?ma.length:0)>na)){y=!0;break a}}}y=!1}y?(r=!0,(t=f.toLowerCase().indexOf("=0?f+''+h:f+'
'+h)&&Kn(a,b,t,e,void 0),y=gk(a).select(".aplos-placeholder"),t=y.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,y.remove()):(f&&Kn(a,b,f,e,void 0),f=a);y=void 0;for(E=0;E=0;h--){var n=a.v=b[h];f=CA(n,e,!0,a)&&f}n=a.v=c;f=CA(n,e,!0,a)&&f;f=CA(n,e,!1,a)&&f;if(b)for(h=0;h0&&athis.N&&this.show():YA(this)};function YA(a){a.oa.stop();cq(a.ma);a.ma=null} w.td=function(a,b){return this.ta(a,b)};WA.prototype.setHovercardContainerStyle=WA.prototype.vo;WA.prototype.hide=WA.prototype.Oh;WA.prototype.followClosestSeries=WA.prototype.qj;WA.prototype.followTopMostSeries=WA.prototype.Ul;WA.prototype.followNamedSeries=WA.prototype.Tl;WA.prototype.getPlacer=WA.prototype.Vm;WA.prototype.setPlacer=WA.prototype.yi;WA.prototype.placer=WA.prototype.Un;WA.prototype.getContentRenderer=WA.prototype.Fd;WA.prototype.setContentRenderer=WA.prototype.zd;WA.prototype.contentRenderer=WA.prototype.Cg;WA.prototype.getShowDelayMs=WA.prototype.an;WA.prototype.setShowDelayMs=WA.prototype.Qk;WA.prototype.showDelayMs=WA.prototype.Ho;WA.prototype.getTransitionMs=WA.prototype.nn;WA.prototype.setTransitionMs=WA.prototype.Tk;WA.prototype.transitionMs=WA.prototype.Be;WA.prototype.getClassName=WA.prototype.jm;WA.prototype.setClassName=WA.prototype.uk;WA.prototype.className=WA.prototype.className;Pd("aplos.chart.behavior.Hovercard",WA);function bB(){this.ka=this.oa=this.na=this.v=this.O=this.N=this.ma=this.ha=null} w=bB.prototype;w.Oo=function(a){this.ha=a;return this};w.Po=function(a){this.ma=a;return this};w.Mo=function(a){this.N=a;return this};w.No=function(a){this.O=a;return this};w.be=function(a){this.v=a;return this};w.Il=function(a){this.na=a;return this};w.container=function(a){this.ka=a;return this};w.dh=function(a){this.oa=a;return this};function cB(a){var b=pA?new nA:new qA;a.na&&b.ye(a.na);a.ha&&b.lf(a.ha);a.N&&b.kf(a.N);a.O&&b.ig(a.O);a.ma&&b.lg(a.ma);a.v&&b.fg(a.v);return b} w.Zi=function(){var a=(new WA).qj();a.zd(cB(this));var b=a.yi,c=new MA;this.ka!=null&&c.wk(this.ka);this.oa!=null&&c.dh(this.oa);b.call(a,c);return a};w.Bl=function(){var a=new LA;a.Cg(cB(this));return a};bB.prototype.buildPieCard=bB.prototype.Bl;bB.prototype.buildCard=bB.prototype.Zi;bB.prototype.positionOptions=bB.prototype.dh;bB.prototype.container=bB.prototype.container;bB.prototype.contentRendererOrdering=bB.prototype.Il;bB.prototype.conversionFunctionMap=bB.prototype.be;bB.prototype.templateFooter=bB.prototype.No;bB.prototype.templateBody=bB.prototype.Mo;bB.prototype.templateSeriesCategory=bB.prototype.Po;bB.prototype.templateHeader=bB.prototype.Oo;Pd("aplos.chart.behavior.hovercardutils.Builder",bB);function dB(a,b,c,e){var f=new bB;f.ha=a?a:null;f.N=b?b:null;f.O=c?c:null;f.v=e?e:null;return f} Pd("aplos.chart.behavior.hovercardutils.Builder.fromTemplate",dB);var eB={END:0,RIGHT:1,TOP:2,START:3,LEFT:4,BOTTOM:5,BOTTOM_START:6,BOTTOM_END:7,BOTTOM_LEFT:8,BOTTOM_RIGHT:9,BOTTOM_FULL_START:10,BOTTOM_FULL_END:11,BOTTOM_FULL_LEFT:12,BOTTOM_FULL_RIGHT:13,INSET:14,TOP_START:15,TOP_END:16,TOP_LEFT:17,TOP_RIGHT:18,TOP_FULL_START:19,TOP_FULL_END:20,TOP_FULL_LEFT:21,TOP_FULL_RIGHT:22};Pd("aplos.chart.behavior.LegendPosition",eB);function fB(){this.v=0;this.ha=null;this.N=!1} fB.prototype.position=function(a){if(!arguments.length||a===void 0)return this.v;this.v=a;return this};fB.prototype.O=function(a){if(!arguments.length||a===void 0)return this.ha;this.ha=a;return this};fB.prototype.Nd=function(a){if(!arguments.length||a===void 0)return this.N;this.N=a;return this};function gB(a){var b=a.v;a=a.N;b===3&&(b=a?1:4);b===0&&(b=a?4:1);b===15&&(b=a?18:17);b===16&&(b=a?17:18);b===19&&(b=a?22:21);b===20&&(b=a?21:22);b===6&&(b=a?9:8);b===7&&(b=a?8:9);b===10&&(b=a?13:12);b===11&&(b=a?12:13);return b} Pd("aplos.chart.behavior.legend.LegendLayoutParams",fB);var hB={vj:function(a,b,c){return gB(c)===14?b.yb():a.bottom-a.top},wj:function(a,b,c){return gB(c)===14?b.Za():a.right-a.left},Wn:function(a,b,c,e,f){f=hB.Nm(a,b,c,e,f);e.style("top",hB.Om(a,b,c)+"px").style("left",f+"px")},Nm:function(a,b,c,e,f){var h=f!==void 0?f:0;f!==void 0||e.empty()||(h=e.node().offsetWidth);switch(gB(c)){case 14:return c.Nd()?a.Lb()+a.Za()-h:a.Lb();case 4:case 1:return c.Nd()&&!e.empty()?b.right-h:b.left;case 17:case 21:case 8:case 12:return b.left;case 18:case 22:case 9:case 13:return b.right-h;default:return a=hB.wj(b,a,c),a>0&&!e.empty()&&h=h?hB.Wk(f,n,c.height-h):f=n;var t=[];f.forEach(function(y){t.push({width:e,height:y})});return t},hr:function(a,b,c){for(var e=c.height,f=[],h=0,n=[],r=0;r=h?hB.Wk(f,n,c.width-h):f=n;var t=[];f.forEach(function(y){t.push({width:y,height:e})});return t},Wk:function(a,b,c){for(var e=0;e0&&h.scrollHeight>c&&f.style("height",c+"px");a.ma||h.scrollHeight<=c&&f.style("overflow-y",null);c=hB.wj(a.O,b,a.v);if(E0&&r.minWidthc?r.style("width",n+"px"):Math.ceil(r.node().getBoundingClientRect().width)>n?r.style("width",n+"px"):r.style("width","auto");e=Math.ceil(h.getBoundingClientRect().width);e>0&&c>0&&h.scrollWidth>c?(f.style("overflow-x","auto"),f.style("width",Math.min(c,e)+"px")):(f.style("overflow-x"),f.style("width","auto"));pB(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),h.style("display","none")} function qB(a,b){var c=b.node().getBoundingClientRect(),e=c.top;a=(a.ka?b.select(".aplos-legend-title").node():b.select(".aplos-legend-column").node()).getBoundingClientRect();b=b.select(".aplos-legend-column").selectAll(".aplos-legend-entry");b.empty()?c=0:(b=b.nodes()[b.size()-1].getBoundingClientRect(),c=c.height-(b.top+b.height-a.top));return{top:e,cp:c}} function mB(a,b,c,e){var f=b.Ja.append("div").style("visibility","hidden");f.append(function(){return c.node().cloneNode(!0)});c=f.select(".aplos-legend");c.selectAll(".aplos-legend-column").remove();e=c.select(".aplos-legend-columns").append("div").classed("aplos-legend-column",!0).append("table").classed(nB(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.Ke(b,e);a.update(b,e,0);var h=qB(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=hB.vj(a.O,b,a.v)-(n-h.top)-h.cp,t=[[]],y=0,E=n;e.each(Od(function(ma,na){var sa=this.getBoundingClientRect(),ua=sa.top;sa=ua-E+sa.height;t[y].length>0&&(sa>r||t[y].length===ma.Ug)&&(t[y+=1]=[],E=ua);t[y].push(na)},a));f.remove();return t} function pB(a,b){var c=b.Ja.select(".aplos-legend");hB.Wn(b,a.O,a.v,c);c.attr("data-position",Nd(function(){var e=Qi(eB,function(f){return gB(this.v)===f},this);return e!=null?e.toLowerCase():null},a))} w.Ke=function(a,b){var c=this.Pj(a);return b.enter().append("tr").classed("aplos-legend-entry",!0).attr("tabindex",c&&this.ha?"0":null).on("click.legend",c).on("keypress.legend",this.ha?c:null).on("mouseover.legend",this.Rj(a)).on("mouseout.legend",this.Qj(a)).each(function(){if(this.nextSibling){var e=document.createElement("tr");e.className="aplos-legend-row-spacer";this.parentNode.insertBefore(e,this.nextSibling)}}).merge(b)};w.update=function(a,b){rB(this,b);b.empty()||gk(b.node().parentElement).select(".aplos-legend-box-cell").style("width",this.ta.width+"px");var c=0;b.select(".aplos-legend-value").each(function(){c=Math.max(c,this.offsetWidth)});b.filter(function(e,f){return f===0}).select(".aplos-legend-value-cell").style("width",c+"px")};function rB(a,b){var c=a.Ia||Zn();c["svg-sample"]||(c["svg-sample"]=a.La.v(a.ta));b.each(Od(function(e,f){e=Ln(f,"
"+(f.categorySeparator?e.Df:e.Bh)+"
",c)[0];for(e=gk(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function oB(a){a.each(function(){gk(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} w.rl=function(a,b){b.Je(new sB(a,this))};function nB(a){return a.Df!=null?"aplos-legend-table-category":"aplos-legend-table"} w.Ao=function(a){this.Qc=a;return this};iB.prototype.setMinPreferredLayoutHeight=iB.prototype.Ao;function sB(a,b){this.N=a;this.v=b} sB.prototype.Jh=function(){var a={position:tB(this),Vf:30},b=this.v.Kg();if(b!=null)a.margins=b;else switch(a.position){case 1:case 2:case 3:case 4:a.margins={top:5,right:0,bottom:5,left:0};break;case 6:a.margins={top:0,right:0,bottom:0,left:30};break;case 5:a.margins={top:0,right:30,bottom:0,left:0}}return a};sB.prototype.qg=function(a){jB(this.v,this.N,this.v.hb,this.v.Ya,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Ja.select(".aplos-legend");if(b.empty())return{Ca:{width:0,height:0},rb:{width:0,height:0},Bc:!0};var c=tB(this),e=Ag(a,this.v.Te(),c);if(e!=null)return e;var f=b.node(),h=f.offsetWidth;e=f.offsetHeight;f=Math.ceil(f.getBoundingClientRect().width);f==h+1&&(h=f);var n=h;f=e;b=b.selectAll(".aplos-legend-column");var r=b.size();switch(c){case 5:case 6:r>1&&(n=Math.floor(h/r));n= Math.min(n,40);break;case 1:case 2:case 3:case 4:var t=0;b.each(function(){var y=gk(this).selectAll(".aplos-legend-entry");y.size()>t&&(t=y.size())});c=this.N.Ja.select(".aplos-legend-title");c=jk(c.node());c>0&&(c+=20);t>1&&(f=Math.floor(e/t)+c);f=Math.min(f,this.v.Qc+c);h=n=a.width}n>a.width&&(n=a.width);f>a.height&&(f=a.height);h>a.width&&(h=a.width);e>a.height&&(e=a.height);return{Ca:{width:n,height:f},rb:{width:h,height:e},Bc:!1}};sB.prototype.fh=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Ja.select(".aplos-legend").node();b!=a.offsetWidth&&pB(this.v,this.N)};sB.prototype.Se=function(){return this.v.O};function tB(a){switch(gB(a.v.v)){case eB.LEFT:return 5;case eB.RIGHT:return 6;case eB.TOP:case eB.TOP_FULL_LEFT:case eB.TOP_FULL_RIGHT:return 2;case eB.TOP_LEFT:case eB.TOP_RIGHT:return 1;case eB.BOTTOM:case eB.BOTTOM_FULL_LEFT:case eB.BOTTOM_FULL_RIGHT:return 4;case eB.BOTTOM_LEFT:case eB.BOTTOM_RIGHT:return 3;default:return 0}} ;function uB(){this.N=new nx;this.v=new vB("");this.v.next=this.v.v=this.v} w=uB.prototype;w.get=function(a,b){return(a=this.N.get(a))?a.value:b};w.set=function(a,b){var c=this.N.get(a);c?c.value=b:(c=new vB(a,b),this.N.set(a,c),a=c,a.v=this.v.v,a.next=this.v,this.v.v=a,a.v.next=a)};w.shift=function(){return wB(this,this.v.next)};w.pop=function(){return wB(this,this.v.v)};w.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function xB(a){return a.map(function(b){return b})} w.contains=function(a){return this.some(function(b){return b==a})};w.clear=function(){this.rf(0)};w.forEach=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)a.call(b,c.value,c.key,this)};w.map=function(a,b){for(var c=[],e=this.v.next;e!=this.v;e=e.next)c.push(a.call(b,e.value,e.key,this));return c};w.some=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};w.every=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};w.rf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function wB(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function vB(a,b){this.key=a;this.value=b} vB.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};Pd("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function yB(a){iB.call(this,a||'{{svg-sample}} {{series.name}}');this.Aa=!1;this.oa={};this.Sa=!1;this.N={};this.na=[];this.Pa=[];this.Ma="series_asc";this.ya=1} Rd(yB,iB);Pd("aplos.chart.behavior.SeriesLegend",yB);var zB=null,AB=null;yB.prototype.bp=function(a){return a!=null?(this.Aa=a,a||(this.oa={}),this):this.Aa};yB.prototype.valuesFromNearestDatum=yB.prototype.bp;yB.prototype.wn=function(a){if(a==null)return this.Sa;this.Sa=!!a;return this};yB.prototype.hideEmptySeries=yB.prototype.wn;yB.prototype.xn=function(a){this.N[a]=!0;return this};yB.prototype.hideSeries=yB.prototype.xn;yB.prototype.ah=function(a){if(a==null)return this.Ma;this.Ma=a;return this};yB.prototype.ordering=yB.prototype.ah;yB.prototype.ej=function(a){if(a==null)return this.ya;this.ya=a;return this};yB.prototype.clickHandling=yB.prototype.ej;w=yB.prototype;w.Ec=function(a){var b=this;yB.Qb.Ec.call(this,a);a.on("mouseout.seriesLegend",function(){this.Aa&&(this.oa={},a.te())},this);a.on("mousemove.seriesLegend",function(){if(this.Aa){for(var c=a.Kf(),e=0;e=0},a)}} function lB(a,b,c){for(var e=new uB,f=0;fthis.N)a.Id("hover").deselectAll(),DB(this);else{var e=[c];switch(this.ha){case 0:c.domain!==void 0&&(e=a.Jf(function(f){return!f.series.overlay&&f.domain===c.domain},!0,!0));break;case 1:e=b}this.select(a,e)}}};w.select=function(a,b){a.Id("hover").jh(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));FB(this,a)};function FB(a,b){if(!a.v){var c="selectnearest_"+Date.now();gk(a.ka).on("mouseout."+c,function(){var e=b.kb.select(".mouseCapturePane").node(),f;if(f=Gj&&Gj.target)e?(f=Hj(e),e=e.getBoundingClientRect(),f=f[0]>=0&&f[0]=0&&f[1]k?1:l>=k?0:NaN} function c(l){l.length===1&&(l=e(l));return{left:function(k,p,u,x){u==null&&(u=0);x==null&&(x=k.length);for(;u>>1;l(k[z],p)<0?u=z+1:x=z}return u},right:function(k,p,u,x){u==null&&(u=0);x==null&&(x=k.length);for(;u>>1;l(k[z],p)>0?x=z:u=z+1}return u}}} function e(l){return function(k,p){return b(l(k),p)}} function f(l,k,p){l=+l;k=+k;p=(x=arguments.length)<2?(k=l,l=0,1):x<3?1:+p;for(var u=-1,x=Math.max(0,Math.ceil((k-l)/p))|0,z=Array(x);++u0)return[l];if(u=k0)for(l=Math.ceil(l/z),k=Math.floor(k/z),k=Array(A=Math.ceil(k-l+1));++x=0?(k>=qo?10:k>=ro?5:k>=so?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(k>=qo?10:k>=ro?5:k>=so?2:1)} function r(l,k,p){var u=Math.abs(k-l)/Math.max(0,p);p=Math.pow(10,Math.floor(Math.log(u)/Math.LN10));u/=p;u>=qo?p*=10:u>=ro?p*=5:u>=so&&(p*=2);return k=0&&(u=p.slice(x+1),p=p.slice(0,x));if(p&&!k.hasOwnProperty(p))throw Error("unknown type: "+p);return{type:p,name:u}})} function ma(l,k,p){for(var u=0,x=l.length;u=0&&(k=l.slice(0,p))!=="xmlns"&&(l=l.slice(p+1));return re.hasOwnProperty(k)?{space:re[k],local:l}:l} function sa(l){return function(){var k=this.ownerDocument,p=this.namespaceURI;return p==="http://www.w3.org/1999/xhtml"&&k.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?k.createElement(l):k.createElementNS(p,l)}} function ua(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}} function ta(l){l=na(l);return(l.local?ua:sa)(l)} function Ba(){} function ya(l){return l==null?Ba:function(){return this.querySelector(l)}} function Aa(){return[]} function Ca(l){return l==null?Aa:function(){return this.querySelectorAll(l)}} function Fa(l){return Array(l.length)} function Ea(l,k){this.ownerDocument=l.ownerDocument;this.namespaceURI=l.namespaceURI;this.Sc=null;this.wg=l;this.__data__=k} function Ja(l){return function(){return l}} function Ka(l,k,p,u,x,z){for(var A=0,la,oa=k.length,ra=z.length;Ak?1:l>=k?0:NaN} function Qa(l){return function(){this.removeAttribute(l)}} function Wa(l){return function(){this.removeAttributeNS(l.space,l.local)}} function Db(l,k){return function(){this.setAttribute(l,k)}} function Eb(l,k){return function(){this.setAttributeNS(l.space,l.local,k)}} function Fb(l,k){return function(){var p=k.apply(this,arguments);p==null?this.removeAttribute(l):this.setAttribute(l,p)}} function Gb(l,k){return function(){var p=k.apply(this,arguments);p==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,p)}} function Hb(l){return function(){this.style.removeProperty(l)}} function Ib(l,k,p){return function(){this.style.setProperty(l,k,p)}} function Jb(l,k,p){return function(){var u=k.apply(this,arguments);u==null?this.style.removeProperty(l):this.style.setProperty(l,u,p)}} function $a(l,k){return l.style.getPropertyValue(k)||(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView).getComputedStyle(l,null).getPropertyValue(k)} function Kb(l){return function(){delete this[l]}} function Lb(l,k){return function(){this[l]=k}} function Mb(l,k){return function(){var p=k.apply(this,arguments);p==null?delete this[l]:this[l]=p}} function fb(l){return l.classList||new ub(l)} function ub(l){this.Ui=l;this.Zd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function vb(l,k){l=fb(l);for(var p=-1,u=k.length;++p=0&&(p=k.slice(u+1),k=k.slice(0,u));return{type:k,name:p}})} function dc(l){return function(){var k=this.__on;if(k){for(var p=0,u=-1,x=k.length,z;p>8&15|k>>4&240,k>>4&15|k&240,(k&15)<<4|k&15,1)):(k=NB.exec(l))?zb(parseInt(k[1],16)):(k=OB.exec(l))?new La(k[1],k[2],k[3],1):(k=PB.exec(l))?new La(k[1]*255/100,k[2]*255/100,k[3]*255/100,1):(k=QB.exec(l))?Ab(k[1],k[2],k[3],k[4]):(k=RB.exec(l))?Ab(k[1]*255/100,k[2]*255/100,k[3]*255/100,k[4]):(k=SB.exec(l))?Bb(k[1],k[2]/100,k[3]/100,1):(k=TB.exec(l))?Bb(k[1],k[2]/100,k[3]/100,k[4]):Hu.hasOwnProperty(l)?zb(Hu[l]):l==="transparent"?new La(NaN,NaN,NaN,0):null} function zb(l){return new La(l>>16&255,l>>8&255,l&255,1)} function Ab(l,k,p,u){u<=0&&(l=k=p=NaN);return new La(l,k,p,u)} function hb(l){l instanceof Xa||(l=Ya(l));if(!l)return new La;l=l.rgb();return new La(l.r,l.g,l.b,l.opacity)} function cb(l,k,p,u){return arguments.length===1?hb(l):new La(l,k,p,u==null?1:u)} function La(l,k,p,u){this.r=+l;this.g=+k;this.b=+p;this.opacity=+u} function ib(l){l=Math.max(0,Math.min(255,Math.round(l)||0));return(l<16?"0":"")+l.toString(16)} function Bb(l,k,p,u){u<=0?l=k=p=NaN:p<=0||p>=1?l=k=NaN:k<=0&&(l=NaN);return new Ua(l,k,p,u)} function hc(l){if(l instanceof Ua)return new Ua(l.h,l.s,l.l,l.opacity);l instanceof Xa||(l=Ya(l));if(!l)return new Ua;if(l instanceof Ua)return l;l=l.rgb();var k=l.r/255,p=l.g/255,u=l.b/255,x=Math.min(k,p,u),z=Math.max(k,p,u),A=NaN,la=z-x,oa=(z+x)/2;la?(A=k===z?(p-u)/la+(p0&&oa<1?0:A;return new Ua(A,la,oa,l.opacity)} function jb(l,k,p,u){return arguments.length===1?hc(l):new Ua(l,k,p,u==null?1:u)} function Ua(l,k,p,u){this.h=+l;this.s=+k;this.l=+p;this.opacity=+u} function kb(l,k,p){return(l<60?k+(p-k)*l/60:l<180?p:l<240?k+(p-k)*(240-l)/60:k)*255} function lb(l){if(l instanceof Va)return new Va(l.l,l.a,l.b,l.opacity);if(l instanceof rb){if(isNaN(l.h))return new Va(l.l,0,0,l.opacity);var k=l.h*Iu;return new Va(l.l,Math.cos(k)*l.c,Math.sin(k)*l.c,l.opacity)}l instanceof La||(l=hb(l));var p=pb(l.r),u=pb(l.g),x=pb(l.b);k=mb(.2225045*p+.7168786*u+.0606169*x);if(p===u&&u===x)var z=p=k;else z=mb((.4360747*p+.3850649*u+.1430804*x)/.96422),p=mb((.0139322*p+.0971045*u+.7141733*x)/.82521);return new Va(116*k-16,500*(z-k),200*(k-p),l.opacity)} function Va(l,k,p,u){this.l=+l;this.a=+k;this.b=+p;this.opacity=+u} function mb(l){return l>UB?Math.pow(l,1/3):l/Ju+Ku} function nb(l){return l>yh?l*l*l:Ju*(l-Ku)} function ob(l){return 255*(l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function pb(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)} function ic(l){if(l instanceof rb)return new rb(l.h,l.c,l.l,l.opacity);l instanceof Va||(l=lb(l));if(l.a===0&&l.b===0)return new rb(NaN,0,l.l,l.opacity);var k=Math.atan2(l.b,l.a)*Lu;return new rb(k<0?k+360:k,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function qb(l,k,p,u){return arguments.length===1?ic(l):new rb(l,k,p,u==null?1:u)} function rb(l,k,p,u){this.h=+l;this.c=+k;this.l=+p;this.opacity=+u} function db(l,k,p,u){if(arguments.length===1){var x=l;if(x instanceof sb)x=new sb(x.h,x.s,x.l,x.opacity);else{x instanceof La||(x=hb(x));var z=x.g/255,A=x.b/255,la=(Mu*A+x.r/255*-1.7884503806-3.5172982438*z)/(Mu+-1.7884503806-3.5172982438);A-=la;var oa=(1.97294*(z-la)- -.29227*A)/-.90649;A=(z=Math.sqrt(oa*oa+A*A)/(1.97294*la*(1-la)))?Math.atan2(oa,A)*Lu-120:NaN;x=new sb(A<0?A+360:A,z,la,x.opacity)}}else x=new sb(l,k,p,u==null?1:u);return x} function sb(l,k,p,u){this.h=+l;this.s=+k;this.l=+p;this.opacity=+u} function lc(l,k,p,u,x){var z=l*l,A=z*l;return((1-3*l+3*z-A)*k+(4-6*z+3*A)*p+(1+3*l+3*z-3*A)*u+A*x)/6} function pc(l){return function(){return l}} function uc(l,k){return function(p){return l+p*k}} function zc(l,k,p){return l=Math.pow(l,p),k=Math.pow(k,p)-l,p=1/p,function(u){return Math.pow(l+u*k,p)}} function rc(l,k){var p=k-l;return p?uc(l,p>180||p<-180?p-360*Math.round(p/360):p):pc(isNaN(l)?k:l)} function Ac(l){return(l=+l)===1?Cb:function(k,p){return p-k?zc(k,p,l):pc(isNaN(k)?p:k)}} function Cb(l,k){var p=k-l;return p?uc(l,p):pc(isNaN(l)?k:l)} function Gc(l){return function(k){var p=k.length,u=Array(p),x=Array(p),z=Array(p),A;for(A=0;A

p&&(z=k.slice(p,z),la[A]?la[A]+=z:la[++A]=z),(u=u[0])===(x=x[0])?la[A]?la[A]+=x:la[++A]=x:(la[++A]=null,oa.push({vd:A,x:nc(u,x)})),p=uo.lastIndex;p180?qa+=360:qa-ra>180&&(ra+=360),wa.push({vd:pa.push(x(pa)+"rotate(",null,u)-2,x:nc(ra,qa)})):qa&&pa.push(x(pa)+"rotate("+qa+u)} function la(ra,qa,pa,wa){ra!==qa?wa.push({vd:pa.push(x(pa)+"skewX(",null,u)-2,x:nc(ra,qa)}):qa&&pa.push(x(pa)+"skewX("+qa+u)} function oa(ra,qa,pa,wa,Da,Ha){ra!==pa||qa!==wa?(Da=Da.push(x(Da)+"scale(",null,",",null,")"),Ha.push({vd:Da-4,x:nc(ra,pa)},{vd:Da-2,x:nc(qa,wa)})):pa===1&&wa===1||Da.push(x(Da)+"scale("+pa+","+wa+")")} return function(ra,qa){var pa=[],wa=[];ra=l(ra);qa=l(qa);z(ra.Ji,ra.Ki,qa.Ji,qa.Ki,pa,wa);A(ra.rotate,qa.rotate,pa,wa);la(ra.skewX,qa.skewX,pa,wa);oa(ra.bi,ra.ci,qa.bi,qa.ci,pa,wa);ra=qa=null;return function(Da){for(var Ha=-1,jc=wa.length,eb;++Ha=0&&l.zf.call(null,k),l=l.Sc;--zh}finally{zh=0;l=Sk;for(var p=Infinity;l;)if(l.zf){p>l.Bf&&(p=l.Bf);var u=l;l=l.Sc}else k=l.Sc,l.Sc=null,l=u?u.Sc=k:Sk=k;Ti=u;uf(p);Bg=0}} function Xe(){var l=Ri.now(),k=l-Rk;k>1E3&&(Qk-=k,Rk=l)} function uf(l){zh||(Si&&(Si=clearTimeout(Si)),l-Bg>24?(l0)throw Error("too late; already scheduled");return l} function Ye(l,k){l=je(l,k);if(l.state>2)throw Error("too late; already started");return l} function je(l,k){l=l.Cd;if(!l||!(l=l[k]))throw Error("transition not found");return l} function Dk(l,k,p){function u(oa){var ra,qa;if(p.state!==1)return z();for(wa in A){var pa=A[wa];if(pa.name===p.name){if(pa.state===3)return Gi(u);pa.state===4?(pa.state=6,pa.timer.stop(),pa.on.call("interrupt",l,l.__data__,pa.index,pa.group),delete A[wa]):+wa=0&&(k=k.slice(0,p));return!k||k==="start"})} function Zd(l,k,p){var u,x,z=xe(k)?pe:Ye;return function(){var A=z(this,l),la=A.on;if(la!==u)(x=(u=la).copy()).on(k,p);A.on=x}} function Tf(l){return function(){var k=this.parentNode,p;for(p in this.Cd)if(+p!==l)return;k&&k.removeChild(this)}} function rh(l,k){var p,u,x;return function(){var z=$a(this,l),A=(this.style.removeProperty(l),$a(this,l));return z===A?null:z===p&&A===u?x:x=k(p=z,u=A)}} function de(l){return function(){this.style.removeProperty(l)}} function Un(l,k,p){var u,x;return function(){var z=$a(this,l);return z===p?null:z===u?x:x=k(u=z,p)}} function XB(l,k,p){var u,x,z;return function(){var A=$a(this,l),la=p(this);la==null&&(la=(this.style.removeProperty(l),$a(this,l)));return A===la?null:A===u&&la===x?z:z=k(u=A,x=la)}} function YB(l,k,p){function u(){var x=this,z=k.apply(x,arguments);return z&&function(A){x.style.setProperty(l,z(A),p)}} u.yg=k;return u} function ZB(l){return function(){this.textContent=l}} function $B(l){return function(){var k=l(this);this.textContent=k==null?"":k}} function Bf(l,k,p,u){this.mb=l;this.hc=k;this.Ge=p;this.Sb=u} function vo(l){return{type:l}} function wo(){this.Qa=this.Ra=this.Ba=this.Ea=null;this.Ga=""} function Tk(){return new wo} function Uk(){} function Vk(l,k){var p=new Uk;if(l instanceof Uk)l.each(function(A,la){p.set(la,A)});else if(Array.isArray(l)){var u=-1,x=l.length,z;if(k==null)for(;++u=qa?Ha=!0:(tc=A.charCodeAt(pa++))===10?jc=!0:tc===13&&(jc=!0,A.charCodeAt(pa)===10&&++pa);return A.slice(Uc+1,Pc-1).replace(/""/g,'"')}for(;pa=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=p>=(pa=(la+ra)/2))?la=pa:ra=pa,x=z,!(z=z[Ha=Da<<1|wa]))return x[Ha]=u,l;var jc=+l.Ab.call(null,z.data);var eb=+l.Eb.call(null,z.data);if(k===jc&&p===eb)return u.next=z,x?x[Ha]=u:l.tb=u,l;do x=x?x[Ha]=Array(4):l.tb=Array(4),(wa=k>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=p>=(pa=(la+ra)/2))?la=pa:ra=pa;while((Ha= Da<<1|wa)===(wa=(eb>=pa)<<1|jc>=qa));return x[wa]=z,x[Ha]=u,l} function ee(l,k,p,u,x){this.node=l;this.x0=k;this.y0=p;this.x1=u;this.y1=x} function dC(l){return l[0]} function eC(l){return l[1]} function yo(l,k,p,u,x,z){this.Ab=l;this.Eb=k;this.Qa=p;this.Ra=u;this.Ba=x;this.Ea=z;this.tb=void 0} function Uu(l){for(var k={data:l.data},p=k;l=l.next;)p=p.next={data:l.data};return k} function Xk(l,k){if((k=(l=k?l.toExponential(k-1):l.toExponential()).indexOf("e"))<0)return null;var p=l.slice(0,k);return[p.length>1?p[0]+p.slice(2):p,+l.slice(k+1)]} function Ah(l){return l=Xk(Math.abs(l)),l?l[1]:NaN} function fC(l,k){return function(p,u){for(var x=p.length,z=[],A=0,la=l[0],oa=0;x>0&&la>0;){oa+la+1>u&&(la=Math.max(1,u-oa));z.push(p.substring(x-=la,x+la));if((oa+=la+1)>u)break;la=l[A=(A+1)%l.length]}return z.reverse().join(k)}} function gC(l){return function(k){return k.replace(/[0-9]/g,function(p){return l[+p]})}} function Yk(l){return new zo(l)} function zo(l){if(!(k=hC.exec(l)))throw Error("invalid format: "+l);var k;this.fill=k[1]||" ";this.align=k[2]||">";this.sign=k[3]||"-";this.symbol=k[4]||"";this.zero=!!k[5];this.width=k[6]&&+k[6];this.comma=!!k[7];this.precision=k[8]&&+k[8].slice(1);this.trim=!!k[9];this.type=k[10]||""} function Vu(l,k){k=Xk(l,k);if(!k)return l+"";l=k[0];k=k[1];return k<0?"0."+Array(-k).join("0")+l:l.length>k+1?l.slice(0,k+1)+"."+l.slice(k+1):l+Array(k-l.length+2).join("0")} function Wu(l){return l} function iC(l){function k(la){function oa(Ma){var Rc=tc,Ia=Oc,Ta;if(Uc==="c")Ia=cd(Ma)+Ia,Ma="";else{Ma=+Ma;var Ga=Ma<0;Ma=cd(Math.abs(Ma),eb);if(Pc){var Na=Ma.length;var $c=1,yd=-1,Dd;a:for(;$c0&&(yd=0)}Ma=yd>0?Ma.slice(0,yd)+Ma.slice(Dd+1):Ma}Ga&&+Ma===0&&(Ga=!1);Rc=(Ga?pa==="("?pa:"-":pa==="-"||pa==="("?"":pa)+Rc;Ia=(Uc==="s"?Xu[8+Yu/3]:"")+Ia+(Ga&&pa==="("?")":"");if(Qc)for(Ga=-1,Na=Ma.length;++GaTa||Ta>57){Ia=(Ta===46?x+Ma.slice(Ga+1):Ma.slice(Ga))+Ia;Ma=Ma.slice(0,Ga);break}}jc&&!Da&&(Ma=p(Ma,Infinity));Ta=Rc.length+Ma.length+Ia.length;Ga=Ta>1)+Rc+Ma+Ia+Ga.slice(Ta);break;default:Ma=Ga+Rc+Ma+Ia}return z(Ma)} la=Yk(la);var ra=la.fill,qa=la.align,pa=la.sign,wa=la.symbol,Da=la.zero,Ha=la.width,jc=la.comma,eb=la.precision,Pc=la.trim,Uc=la.type;Uc==="n"?(jc=!0,Uc="g"):Zu[Uc]||(eb==null&&(eb=12),Pc=!0,Uc="g");if(Da||ra==="0"&&qa==="=")Da=!0,ra="0",qa="=";var tc=wa==="$"?u[0]:wa==="#"&&/[boxX]/.test(Uc)?"0"+Uc.toLowerCase():"",Oc=wa==="$"?u[1]:/[%p]/.test(Uc)?A:"",cd=Zu[Uc],Qc=/[defgprs%]/.test(Uc);eb=eb==null?6:/[gprs]/.test(Uc)?Math.max(1,Math.min(21,eb)):Math.max(0,Math.min(20,eb));oa.toString=function(){return la+ ""};return oa} var p=l.grouping&&l.thousands?fC(l.grouping,l.thousands):Wu,u=l.currency,x=l.decimal,z=l.numerals?gC(l.numerals):Wu,A=l.percent||"%";return{format:k,formatPrefix:function(la,oa){var ra=k((la=Yk(la),la.type="f",la));la=Math.max(-8,Math.min(8,Math.floor(Ah(oa)/3)))*3;var qa=Math.pow(10,-la),pa=Xu[8+la/3];return function(wa){return ra(qa*wa)+pa}}}} function He(){this.reset()} function $u(l,k,p){var u=l.s=k+p,x=u-k;l.t=k-(u-x)+(p-x)} function Zk(l){return l>1?ze:l<-1?-ze:Math.asin(l)} function jC(){} function av(l){var k=l[0];l=l[1];var p=Ae(l);return[p*Ae(k),p*$d(k),$d(l)]} function bv(l,k){return[l[1]*k[2]-l[2]*k[1],l[2]*k[0]-l[0]*k[2],l[0]*k[1]-l[1]*k[0]]} function cv(l){var k=$k(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=k;l[1]/=k;l[2]/=k} function kC(){var l=[],k;return{point:function(p,u){k.push([p,u])},lineStart:function(){l.push(k=[])},lineEnd:jC,dr:function(){l.length>1&&l.push(l.pop().concat(l.shift()))},result:function(){var p=l;l=[];k=null;return p}}} function al(l,k,p,u){this.x=l;this.z=k;this.Yg=p;this.e=u;this.nh=!1;this.n=this.p=null} function lC(l,k,p,u,x){var z=[],A=[];l.forEach(function(pa){if(!((wa=pa.length-1)<=0)){var wa,Da=pa[0],Ha=pa[wa],jc=Da;if(Zf(jc[0]-Ha[0])<1E-6&&Zf(jc[1]-Ha[1])<1E-6){x.lineStart();for(la=0;la=0;--la)x.point((oa=k[la])[0],oa[1]);else u(ra.x,ra.p.x,-1,x);ra=ra.p}ra=ra.Yg;k=ra.z;qa=!qa}while(!ra.nh);x.lineEnd()}}} function dv(l){if(k=l.length){for(var k,p=0,u=l[0],x;++p1} function nC(l,k){return((l=l.x)[0]<0?l[1]-ze-1E-6:ze-l[1])-((k=k.x)[0]<0?k[1]-ze-1E-6:ze-k[1])} function Ao(){} function ev(l){return function(k,p){var u=Ae(k),x=Ae(p);u=l(u*x);return[u*x*$d(k),u*$d(p)]}} function Vi(l){return function(k,p){var u=$k(k*k+p*p),x=l(u),z=$d(x);x=Ae(x);return[fv(k*z,u*x),Zk(u&&p*z/u)]}} function oC(l){var k=0,p=l.children,u=p&&p.length;if(u)for(;--u>=0;)k+=p[u].value;else k=1;l.value=k} function gv(l,k){var p=new Wi(l);l=+l.value&&(p.value=l.value);var u,x=[p],z,A,la,oa;for(k==null&&(k=pC);u=x.pop();)if(l&&(u.value=+u.data.value),(A=k(u.data))&&(oa=A.length))for(u.children=Array(oa),la=oa-1;la>=0;--la)x.push(z=u.children[la]=new Wi(A[la])),z.parent=u,z.depth=u.depth+1;return p.eachBefore(qC)} function pC(l){return l.children} function rC(l){l.data=l.data.data} function qC(l){var k=0;do l.height=k;while((l=l.parent)&&l.height<++k)} function Wi(l){this.data=l;this.depth=this.height=0;this.parent=null} function Bo(l){function k(z){var A=z+"",la=p.get(A);if(!la){if(x!==hv)return x;p.set(A,la=u.push(z))}return l[(la-1)%l.length]} var p=Vk(),u=[],x=hv;l=l==null?[]:bl.call(l);k.domain=function(z){if(!arguments.length)return u.slice();u=[];p=Vk();for(var A=-1,la=z.length,oa,ra;++A=p?1:u(x)}}} function uC(l){return function(k,p){var u=l(k=+k,p=+p);return function(x){return x<=0?k:x>=1?p:u(x)}}} function vC(l,k,p,u){var x=l[0];l=l[1];var z=k[0];k=k[1];l2?wC:vC;ra=qa=null;return u} function u(pa){return(ra||(ra=oa(x,z,la?tC(l):l,A)))(+pa)} var x=kv,z=kv,A=qc,la=!1,oa,ra,qa;u.invert=function(pa){return(qa||(qa=oa(z,x,Do,la?uC(k):k)))(+pa)};u.domain=function(pa){return arguments.length?(x=lv.call(pa,sC),p()):x.slice()};u.range=function(pa){return arguments.length?(z=bl.call(pa),p()):z.slice()};u.rangeRound=function(pa){return z=bl.call(pa),A=Ec,p()};u.clamp=function(pa){return arguments.length?(la=!!pa,p()):la};u.interpolate=function(pa){return arguments.length?(A=pa,p()):A};return p()} function yC(l){var k=l.domain;l.ticks=function(p){var u=k();return h(u[0],u[u.length-1],p==null?10:p)};l.tickFormat=function(p,u){a:{var x=k(),z=x[0];x=x[x.length-1];p=r(z,x,p==null?10:p);u=Yk(u==null?",f":u);switch(u.type){case "s":z=Math.max(Math.abs(z),Math.abs(x));if(x=u.precision==null){var A=isNaN;p=Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ah(z)/3)))*3-Ah(Math.abs(p)));x=!A(A=p)}x&&(u.precision=A);u=HB(u,z);break a;case "":case "e":case "g":case "p":case "r":var la;if(la=u.precision==null)A=isNaN,z=Math.max(Math.abs(z),Math.abs(x)),p=Math.abs(p),z=Math.abs(z)-p,p=Math.max(0,Ah(z)-Ah(p))+ 1,la=!A(A=p);la&&(u.precision=A-(u.type==="e"));break;case "f":case "%":u.precision!=null||isNaN(A=Math.max(0,-Ah(Math.abs(p))))||(u.precision=A-(u.type==="%")*2)}u=si(u)}return u};l.nice=function(p){p==null&&(p=10);var u=k(),x=0,z=u.length-1,A=u[x],la=u[z];if(la0?(A=Math.floor(A/oa)*oa,la=Math.ceil(la/oa)*oa,oa=n(A,la,p)):oa<0&&(A=Math.ceil(A*oa)/oa,la=Math.floor(la*oa)/oa,oa=n(A,la,p));oa>0?(u[x]=Math.floor(A/oa)*oa,u[z]=Math.ceil(la/oa)*oa,k(u)):oa<0&&(u[x]=Math.ceil(A*oa)/oa,u[z]=Math.floor(la*oa)/oa,k(u));return l};return l} function mv(){var l=Fo(Do,nc);l.copy=function(){return Eo(l,mv())};return yC(l)} function nv(l,k){l=l.slice();var p=0,u=l.length-1,x=l[p],z=l[u];if(z0)for(;qala)break;A.push(Ha)}}}else for(;qa=1;--Da){if(Ha=wa*Da,!(Hala)break;A.push(Ha)}}else A=h(qa,pa,Math.min(pa-qa,wa)).map(z);return ra?A.reverse():A};k.tickFormat=function(A,la){la==null&&(la=u===10?".0e":",");typeof la!=="function"&&(la=si(la));if(A===Infinity)return la;A==null&&(A=10);var oa=Math.max(1,u*A/k.ticks().length);return function(ra){var qa=ra/z(Math.round(x(ra)));qa*u0))return oa;do oa.push(ra=new Date(+z)),k(z,la),l(z);while(ra=A)for(;l(A),!z(A);)A.setTime(A-1)},function(A,la){if(A>=A)if(la<0)for(;++la<=0;)for(;k(A,-1),!z(A););else for(;--la>=0;)for(;k(A,1),!z(A););})};p&&(x.count=function(z,A){Go.setTime(+z);Ho.setTime(+A);l(Go);l(Ho);return Math.floor(p(Go,Ho))},x.every=function(z){z=Math.floor(z);return isFinite(z)&&z>0?z>1?x.filter(u?function(A){return u(A)%z===0}:function(A){return x.count(0,A)%z===0}):x:null});return x} function Cg(l){return Qd(function(k){k.setDate(k.getDate()-(k.getDay()+7-l)%7);k.setHours(0,0,0,0)},function(k,p){k.setDate(k.getDate()+p*7)},function(k,p){return(p-k-(p.getTimezoneOffset()-k.getTimezoneOffset())*6E4)/6048E5})} function Dg(l){return Qd(function(k){k.setUTCDate(k.getUTCDate()-(k.getUTCDay()+7-l)%7);k.setUTCHours(0,0,0,0)},function(k,p){k.setUTCDate(k.getUTCDate()+p*7)},function(k,p){return(p-k)/6048E5})} function CC(l){if(0<=l.y&&l.y<100){var k=new Date(-1,l.m,l.d,l.md,l.M,l.S,l.L);k.setFullYear(l.y);return k}return new Date(l.y,l.m,l.d,l.md,l.M,l.S,l.L)} function cl(l){if(0<=l.y&&l.y<100){var k=new Date(Date.UTC(-1,l.m,l.d,l.md,l.M,l.S,l.L));k.setUTCFullYear(l.y);return k}return new Date(Date.UTC(l.y,l.m,l.d,l.md,l.M,l.S,l.L))} function Xi(l){return{y:l,m:0,d:1,md:0,M:0,S:0,L:0}} function DC(l){function k(Ia,Ta){return function(Ga){var Na=[],$c=-1,yd=0,Dd=Ia.length,pd,se;for(Ga instanceof Date||(Ga=new Date(+Ga));++$c

53)return null;"w"in Na||(Na.w=1);if("Z"in Na){Ga=cl(Xi(Na.y));var $c=Ga.getUTCDay();Ga=$c>4||$c===0?Io.ceil(Ga):Io(Ga);Ga=tv.offset(Ga,(Na.tg-1)*7);Na.y=Ga.getUTCFullYear();Na.m=Ga.getUTCMonth();Na.d=Ga.getUTCDate()+(Na.w+6)%7}else Ga=Ta(Xi(Na.y)),$c=Ga.getDay(),Ga=$c>4||$c===0?Jo.ceil(Ga):Jo(Ga),Ga=Ko.offset(Ga,(Na.tg-1)*7),Na.y=Ga.getFullYear(),Na.m=Ga.getMonth(),Na.d=Ga.getDate()+(Na.w+6)%7}else if("W"in Na||"U"in Na)"w"in Na||(Na.w="u"in Na?Na.Wo%7:"W"in Na?1:0),$c="Z"in Na?cl(Xi(Na.y)).getUTCDay():Ta(Xi(Na.y)).getDay(),Na.m=0,Na.d="W"in Na?(Na.w+6)%7+Na.W*7-($c+5)%7:Na.w+Na.U*7-($c+6)%7;return"Z"in Na?(Na.md+=Na.Z/100|0,Na.M+=Na.Z%100,cl(Na)):Ta(Na)}} function u(Ia,Ta,Ga,Na){for(var $c=0,yd=Ta.length,Dd=Ga.length,pd;$c=Dd)return-1;pd=Ta.charCodeAt($c++);if(pd===37){if(pd=Ta.charAt($c++),pd=Rc[pd in sv?Ta.charAt($c++):pd],!pd||(Na=pd(Ia,Ga,Na))<0)return-1}else if(pd!=Ga.charCodeAt(Na++))return-1}return Na} var x=l.dateTime,z=l.date,A=l.time,la=l.periods,oa=l.days,ra=l.shortDays,qa=l.months,pa=l.shortMonths,wa=Yi(la),Da=Zi(la),Ha=Yi(oa),jc=Zi(oa),eb=Yi(ra),Pc=Zi(ra),Uc=Yi(qa),tc=Zi(qa),Oc=Yi(pa),cd=Zi(pa),Qc={a:function(Ia){return ra[Ia.getDay()]},A:function(Ia){return oa[Ia.getDay()]},b:function(Ia){return pa[Ia.getMonth()]},B:function(Ia){return qa[Ia.getMonth()]},c:null,d:uv,e:uv,f:EC,H:FC,I:GC,j:HC,L:vv,m:IC,M:JC,p:function(Ia){return la[+(Ia.getHours()>=12)]},Q:wv,s:xv,S:KC,u:LC,U:MC,V:NC,w:OC,W:PC,x:null,X:null,y:QC,Y:RC,Z:SC,"%":yv},Ma={a:function(Ia){return ra[Ia.getUTCDay()]},A:function(Ia){return oa[Ia.getUTCDay()]},b:function(Ia){return pa[Ia.getUTCMonth()]},B:function(Ia){return qa[Ia.getUTCMonth()]},c:null,d:zv,e:zv,f:TC,H:UC,I:VC,j:WC,L:Av,m:XC,M:YC,p:function(Ia){return la[+(Ia.getUTCHours()>=12)]},Q:wv,s:xv,S:ZC,u:$C,U:aD,V:bD,w:cD,W:dD,x:null,X:null,y:eD,Y:fD,Z:gD,"%":yv},Rc={a:function(Ia,Ta,Ga){return(Ta=eb.exec(Ta.slice(Ga)))?(Ia.w=Pc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},A:function(Ia,Ta,Ga){return(Ta=Ha.exec(Ta.slice(Ga)))?(Ia.w=jc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},b:function(Ia,Ta,Ga){return(Ta=Oc.exec(Ta.slice(Ga)))?(Ia.m=cd[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},B:function(Ia,Ta,Ga){return(Ta=Uc.exec(Ta.slice(Ga)))?(Ia.m=tc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},c:function(Ia,Ta,Ga){return u(Ia,x,Ta,Ga)},d:Bv,e:Bv,f:hD,H:Cv,I:Cv,j:iD,L:jD,m:kD,M:lD,p:function(Ia,Ta,Ga){return(Ta=wa.exec(Ta.slice(Ga)))?(Ia.p=Da[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},Q:mD,s:nD,S:oD,u:pD,U:qD,V:rD,w:sD,W:tD,x:function(Ia,Ta,Ga){return u(Ia,z,Ta,Ga)},X:function(Ia,Ta,Ga){return u(Ia,A,Ta,Ga)},y:uD,Y:vD,Z:wD,"%":xD};Qc.x=k(z,Qc);Qc.X=k(A,Qc);Qc.c=k(x,Qc);Ma.x=k(z,Ma);Ma.X=k(A,Ma);Ma.c=k(x,Ma);return{format:function(Ia){var Ta=k(Ia+="",Qc);Ta.toString=function(){return Ia};return Ta},parse:function(Ia){var Ta=p(Ia+="",CC);Ta.toString=function(){return Ia};return Ta},utcFormat:function(Ia){var Ta=k(Ia+="",Ma);Ta.toString=function(){return Ia};return Ta},utcParse:function(Ia){var Ta=p(Ia,cl);Ta.toString=function(){return Ia};return Ta}}} function sd(l,k,p){var u=l<0?"-":"";l=(u?-l:l)+"";var x=l.length;return u+(x

68?1900:2E3),p+k[0].length):-1} function wD(l,k,p){return(k=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(k.slice(p,p+6)))?(l.Z=k[1]?0:-(k[2]+(k[3]||"00")),p+k[0].length):-1} function kD(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.m=k[0]-1,p+k[0].length):-1} function Bv(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.d=+k[0],p+k[0].length):-1} function iD(l,k,p){return(k=Vd.exec(k.slice(p,p+3)))?(l.m=0,l.d=+k[0],p+k[0].length):-1} function Cv(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.md=+k[0],p+k[0].length):-1} function lD(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.M=+k[0],p+k[0].length):-1} function oD(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.S=+k[0],p+k[0].length):-1} function jD(l,k,p){return(k=Vd.exec(k.slice(p,p+3)))?(l.L=+k[0],p+k[0].length):-1} function hD(l,k,p){return(k=Vd.exec(k.slice(p,p+6)))?(l.L=Math.floor(k[0]/1E3),p+k[0].length):-1} function xD(l,k,p){return(l=AD.exec(k.slice(p,p+1)))?p+l[0].length:-1} function mD(l,k,p){return(k=Vd.exec(k.slice(p)))?(l.Q=+k[0],p+k[0].length):-1} function nD(l,k,p){return(k=Vd.exec(k.slice(p)))?(l.Q=+k[0]*1E3,p+k[0].length):-1} function uv(l,k){return sd(l.getDate(),k,2)} function FC(l,k){return sd(l.getHours(),k,2)} function GC(l,k){return sd(l.getHours()%12||12,k,2)} function HC(l,k){return sd(1+Ko.count(Eg(l),l),k,3)} function vv(l,k){return sd(l.getMilliseconds(),k,3)} function EC(l,k){return vv(l,k)+"000"} function IC(l,k){return sd(l.getMonth()+1,k,2)} function JC(l,k){return sd(l.getMinutes(),k,2)} function KC(l,k){return sd(l.getSeconds(),k,2)} function LC(l){l=l.getDay();return l===0?7:l} function MC(l,k){return sd(Dv.count(Eg(l),l),k,2)} function NC(l,k){var p=l.getDay();l=p>=4||p===0?Lo(l):Lo.ceil(l);return sd(Lo.count(Eg(l),l)+(Eg(l).getDay()===4),k,2)} function OC(l){return l.getDay()} function PC(l,k){return sd(Jo.count(Eg(l),l),k,2)} function QC(l,k){return sd(l.getFullYear()%100,k,2)} function RC(l,k){return sd(l.getFullYear()%1E4,k,4)} function SC(l){l=l.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+sd(l/60|0,"0",2)+sd(l%60,"0",2)} function zv(l,k){return sd(l.getUTCDate(),k,2)} function UC(l,k){return sd(l.getUTCHours(),k,2)} function VC(l,k){return sd(l.getUTCHours()%12||12,k,2)} function WC(l,k){return sd(1+tv.count(Bh(l),l),k,3)} function Av(l,k){return sd(l.getUTCMilliseconds(),k,3)} function TC(l,k){return Av(l,k)+"000"} function XC(l,k){return sd(l.getUTCMonth()+1,k,2)} function YC(l,k){return sd(l.getUTCMinutes(),k,2)} function ZC(l,k){return sd(l.getUTCSeconds(),k,2)} function $C(l){l=l.getUTCDay();return l===0?7:l} function aD(l,k){return sd(BD.count(Bh(l),l),k,2)} function bD(l,k){var p=l.getUTCDay();l=p>=4||p===0?Mo(l):Mo.ceil(l);return sd(Mo.count(Bh(l),l)+(Bh(l).getUTCDay()===4),k,2)} function cD(l){return l.getUTCDay()} function dD(l,k){return sd(Io.count(Bh(l),l),k,2)} function eD(l,k){return sd(l.getUTCFullYear()%100,k,2)} function fD(l,k){return sd(l.getUTCFullYear()%1E4,k,4)} function gD(){return"+0000"} function yv(){return"%"} function wv(l){return+l} function xv(l){return Math.floor(+l/1E3)} function CD(l){return new Date(l)} function DD(l){return l instanceof Date?+l:+new Date(+l)} function Ev(l,k,p,u,x,z,A,la,oa){function ra(Ma){return(A(Ma)=1?el:l<=-1?-el:Math.asin(l)} function FD(l){return l.innerRadius} function GD(l){return l.outerRadius} function HD(l){return l.startAngle} function ID(l){return l.endAngle} function JD(l){return l&&l.padAngle} function fl(l,k,p,u,x,z,A){var la=l-p,oa=k-u;A=(A?z:-z)/Ch(la*la+oa*oa);oa*=A;la*=-A;var ra=l+oa,qa=k+la,pa=p+oa,wa=u+la;p=(ra+pa)/2;u=(qa+wa)/2;k=pa-ra;l=wa-qa;A=k*k+l*l;z=x-z;wa=ra*wa-pa*qa;var Da=(l<0?-1:1)*Ch(KD(0,z*z*A-wa*wa));ra=(wa*l-k*Da)/A;qa=(-wa*k-l*Da)/A;pa=(wa*l+k*Da)/A;k=(-wa*k+l*Da)/A;l=ra-p;A=qa-u;p=pa-p;u=k-u;l*l+A*A>p*p+u*u&&(ra=pa,qa=k);return{cx:ra,cy:qa,kd:-oa,ld:-la,Wd:ra*(x/z-1),Xd:qa*(x/z-1)}} function Gv(l){this.Fa=l} function gl(l){return new Gv(l)} function Hv(l){return l[0]} function Iv(l){return l[1]} function Jv(){function l(la){var oa,ra=la.length,qa,pa=!1,wa;x==null&&(A=z(wa=Tk()));for(oa=0;oa<=ra;++oa)!(oal?1:k>=l?0:NaN} function MD(l){return l} function Kv(l){this.Fe=l} function Lv(l,k,p){l.Fa.bezierCurveTo((2*l.Qa+l.Ba)/3,(2*l.Ra+l.Ea)/3,(l.Qa+2*l.Ba)/3,(l.Ra+2*l.Ea)/3,(l.Qa+4*l.Ba+k)/6,(l.Ra+4*l.Ea+p)/6)} function Mv(l){this.Fa=l} function Nv(l,k,p){l.Fa.bezierCurveTo(l.Ba+l.vg*(l.He-l.Qa),l.Ea+l.vg*(l.Ie-l.Ra),l.He+l.vg*(l.Ba-k),l.Ie+l.vg*(l.Ea-p),l.He,l.Ie)} function Ov(l,k){this.Fa=l;this.vg=(1-k)/6} function Pv(l,k,p){var u=l.Ba-l.Qa;k-=l.Ba;var x=(l.Ea-l.Ra)/(u||k<0&&-0);l=(p-l.Ea)/(k||u<0&&-0);return((x<0?-1:1)+(l<0?-1:1))*Math.min(Math.abs(x),Math.abs(l),.5*Math.abs((x*k+l*u)/(u+k)))||0} function Qv(l,k){var p=l.Ba-l.Qa;return p?(3*(l.Ea-l.Ra)/p-k)/2:k} function No(l,k,p){var u=l.Qa,x=l.Ba,z=l.Ea,A=(x-u)/3;l.Fa.bezierCurveTo(u+A,l.Ra+A*k,x-A,z-A*p,x,z)} function hl(l){this.Fa=l} function Rv(l){this.Fa=new Sv(l)} function Sv(l){this.Fa=l} function Tv(l){this.Fa=l} function Uv(l){var k,p=l.length-1,u=Array(p),x=Array(p),z=Array(p);u[0]=0;x[0]=2;z[0]=l[0]+2*l[1];for(k=1;k=0;--k)u[k]=(z[k]-u[k+1])/x[k];x[p-1]=(l[p]+u[p-1])/2;for(k=0;k0)for(var p=Array(x),u=0,x,z;u=0&&(this.Zd.splice(l,1),this.Ui.setAttribute("class",this.Zd.join(" ")))},contains:function(l){return this.Zd.indexOf(l)>=0}};var Fu={};Gj=null;typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Fu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Gu=[null];Ra.prototype=Za.prototype={constructor:Ra,select:function(l){typeof l!=="function"&&(l=ya(l));for(var k=this.mb,p=k.length,u=Array(p),x=0;x

=pa&&(pa=qa+1);!(Pc=eb[pa])&&++pa=0;)if(A=u[x])z&&z!==A.nextSibling&&z.parentNode.insertBefore(A,z),z=A;return this},sort:function(l){function k(pa,wa){return pa&&wa?l(pa.__data__,wa.__data__):!pa-!wa} l||(l=Pa);for(var p=this.mb,u=p.length,x=Array(u),z=0;z1?this.each((k==null?Hb:typeof k==="function"?Jb:Ib)(l,k,p==null?"":p)):$a(this.node(),l)},property:function(l,k){return arguments.length>1?this.each((k==null?Kb:typeof k==="function"?Mb:Lb)(l,k)):this.node()[l]},classed:function(l,k){var p=(l+"").trim().split(/^|\s+/);if(arguments.length<2){for(var u=fb(this.node()),x=-1,z=p.length;++x=240?l-240:l+120,k,p),kb(l,k,p),kb(l<120?l+240:l-120,k,p),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Iu=Math.PI/180,Lu=180/Math.PI,Ku=4/29,yh=6/29,Ju=3*yh*yh,UB=yh*yh*yh;ab(Va,function(l,k,p,u){return arguments.length===1?lb(l):new Va(l,k,p,u==null?1:u)},bb(Xa,{brighter:function(l){return new Va(this.l+18*(l==null?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Va(this.l-18*(l==null?1:l),this.a,this.b,this.opacity)},rgb:function(){var l=(this.l+16)/116,k=isNaN(this.a)?l:l+this.a/500,p=isNaN(this.b)?l:l-this.b/200;k=.96422*nb(k);l=1*nb(l);p=.82521*nb(p);return new La(ob(3.1338561*k-1.6168667*l-.4906146*p),ob(-.9787684*k+1.9161415*l+.033454*p),ob(.0719453*k-.2289914*l+1.4052427*p),this.opacity)}}));ab(rb,qb,bb(Xa,{brighter:function(l){return new rb(this.h,this.c,this.l+18*(l==null?1:l),this.opacity)},darker:function(l){return new rb(this.h,this.c,this.l-18*(l==null?1:l),this.opacity)},rgb:function(){return lb(this).rgb()}}));var Mu=1.78277*-.29227-.1347134789;ab(sb,db,bb(Xa,{brighter:function(l){l=l==null?Dh:Math.pow(Dh,l);return new sb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=l==null?.7:Math.pow(.7,l);return new sb(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=isNaN(this.h)?0:(this.h+120)*Iu,k=+this.l,p=isNaN(this.s)?0:this.s*k*(1-k),u=Math.cos(l);l=Math.sin(l);return new La(255*(k+p*(-.14861*u+1.78277*l)),255*(k+p*(-.29227*u+-.90649*l)),255*(k+1.97294*u*p),this.opacity)}}));var Pk=function p(k){function u(z,A){var la=x((z=cb(z)).r,(A=cb(A)).r),oa=x(z.g,A.g),ra=x(z.b,A.b),qa=Cb(z.opacity,A.opacity);return function(pa){z.r=la(pa);z.g=oa(pa);z.b=ra(pa);z.opacity=qa(pa);return z+""}} var x=Ac(k);u.gamma=p;return u}(1),ED=Gc(function(k){var p=k.length-1;return function(u){var x=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),z=k[x],A=k[x+1];return lc((u-x/p)*p,x>0?k[x-1]:2*z-A,z,A,x2&&x.state<5;x.state=6;x.timer.stop();la&&x.on.call("interrupt",this,this.__data__,x.index,x.group);delete u[A]}z&&delete this.Cd}})};Za.prototype.transition=function(k){var p;if(k instanceof Bf){var u=k.Sb;k=k.Ge}else u=++Xv,(p=Ro).time=xg(),k=k==null?null:k+"";for(var x=this.mb,z=x.length,A=0;A1E-6)if(Math.abs(pa*oa-ra*qa)>1E-6&&z){u-=A;x-=la;var Da=oa*oa+ra*ra;la=Math.sqrt(Da);A=Math.sqrt(wa);wa=z*Math.tan((So-Math.acos((Da+wa-(u*u+x*x))/(2*la*A)))/2);A=wa/A;wa/=la;Math.abs(A-1)>1E-6&&(this.Ga+="L"+(k+A*qa)+","+(p+A*pa));this.Ga+="A"+z+","+z+",0,0,"+ +(pa*u> qa*x)+","+(this.Ba=k+wa*oa)+","+(this.Ea=p+wa*ra)}else this.Ga+="L"+(this.Ba=k)+","+(this.Ea=p)},arc:function(k,p,u,x,z,A){k=+k;p=+p;u=+u;var la=u*Math.cos(x),oa=u*Math.sin(x),ra=k+la,qa=p+oa,pa=1^A;x=A?x-z:z-x;if(u<0)throw Error("negative radius: "+u);if(this.Ba===null)this.Ga+="M"+ra+","+qa;else if(Math.abs(this.Ba-ra)>1E-6||Math.abs(this.Ea-qa)>1E-6)this.Ga+="L"+ra+","+qa;u&&(x<0&&(x=x%To+To),x>RD?this.Ga+="A"+u+","+u+",0,1,"+pa+","+(k-la)+","+(p-oa)+"A"+u+","+u+",0,1,"+pa+","+(this.Ba=ra)+","+(this.Ea=qa):x>1E-6&&(this.Ga+="A"+u+","+u+",0,"+ +(x>=So)+","+pa+","+(this.Ba=k+u*Math.cos(z))+ ","+(this.Ea=p+u*Math.sin(z))))},rect:function(k,p,u,x){this.Ga+="M"+(this.Qa=this.Ba=+k)+","+(this.Ra=this.Ea=+p)+"h"+ +u+"v"+ +x+"h"+-u+"Z"},toString:function(){return this.Ga}};Uk.prototype=Vk.prototype={constructor:Uk,has:function(k){return" "+k in this},get:function(k){return this[" "+k]},set:function(k,p){this[" "+k]=p;return this},remove:function(k){k=" "+k;return k in this&&delete this[k]},clear:function(){for(var k in this)k[0]===" "&&delete this[k]},keys:function(){var k=[],p;for(p in this)p[0]===" "&&k.push(p.slice(1));return k},values:function(){var k=[],p;for(p in this)p[0]===" "&&k.push(this[p]);return k},entries:function(){var k=[],p;for(p in this)p[0]===" "&&k.push({key:p.slice(1),value:this[p]});return k},size:function(){var k=0,p;for(p in this)p[0]===" "&&++k;return k},empty:function(){for(var k in this)if(k[0]===" ")return!1;return!0},each:function(k){for(var p in this)p[0]===" "&&k(this[p],p.slice(1),this)}};var Fg=Vk.prototype;Wk.prototype=function(k,p){var u=new Wk;if(k instanceof Wk)k.each(function(A){u.add(A)});else if(k){var x=-1,z=k.length;if(p==null)for(;++xpa&&(pa=z),Awa&&(wa=A));pak||k>z||x>p||p>A){var la=z-u,oa=this.tb,ra;switch(ra=(p<(x+A)/2)<<1|k<(u+z)/2){case 0:do{var qa=Array(4);qa[ra]=oa;oa=qa}while(la*=2,z=u+la,A=x+la,k>z||p>A);break;case 1:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,A=x+la,u>k||p>A);break;case 2:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,z=u+la,x=A-la,k>z||x>p);break;case 3:do qa= Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,x=A-la,u>k||x>p)}this.tb&&this.tb.length&&(this.tb=oa)}else return this;this.Qa=u;this.Ra=x;this.Ba=z;this.Ea=A;return this};fe.data=function(){var k=[];this.visit(function(p){if(!p.length){do k.push(p.data);while(p=p.next)}});return k};fe.extent=function(k){return arguments.length?this.cover(+k[0][0],+k[0][1]).cover(+k[1][0],+k[1][1]):isNaN(this.Qa)?void 0:[[this.Qa,this.Ra],[this.Ba,this.Ea]]};fe.find=function(k,p,u){var x=this.Qa,z=this.Ra,A,la,oa,ra,qa=this.Ba,pa=this.Ea,wa=[],Da=this.tb,Ha;Da&&wa.push(new ee(Da,x,z,qa,pa));u==null?u=Infinity:(x=k-u,z=p-u,qa=k+u,pa=p+u,u*=u);for(;Ha=wa.pop();)if(!(!(Da=Ha.node)||(A=Ha.x0)>qa||(la=Ha.y0)>pa||(oa=Ha.x1)=jc)<<1|k>=Ha)Ha=wa[wa.length-1],wa[wa.length-1]=wa[wa.length- 1-Da],wa[wa.length-1-Da]=Ha}else if(Ha=k-+this.Ab.call(null,Da.data),jc=p-+this.Eb.call(null,Da.data),Ha=Ha*Ha+jc*jc,Ha=(pa=(z+la)/2))?z=pa:la=pa;(Ha=qa>=(wa=(A+oa)/2))?A=wa:oa=wa;if(!(p=u,u=u[jc=Ha<<1|Da]))return this;if(!u.length)break;if(p[jc+1&3]||p[jc+2&3]||p[jc+3&3]){var eb=p;var Pc=jc}}for(;u.data!==k;)if(!(x=u,u=u.next))return this;(k=u.next)&&delete u.next;if(x)return k?x.next=k:delete x.next,this;if(!p)return this.tb=k,this;k?p[jc]=k:delete p[jc];(u=p[0]||p[1]||p[2]||p[3])&&u===(p[3]||p[2]||p[1]||p[0])&&!u.length&&(eb?eb[Pc]=u:this.tb=u);return this};fe.removeAll=function(k){for(var p=0,u=k.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Yk.prototype=zo.prototype;zo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};var Yu,Zu={"%":function(k,p){return(k*100).toFixed(p)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:function(k){return Math.round(k).toString(10)},e:function(k,p){return k.toExponential(p)},f:function(k,p){return k.toFixed(p)},g:function(k,p){return k.toPrecision(p)},o:function(k){return Math.round(k).toString(8)},p:function(k,p){return Vu(k*100,p)},r:Vu,s:function(k,p){var u=Xk(k,p);if(!u)return k+"";var x=u[0];u=u[1];u=u-(Yu=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var z=x.length;return u===z?x:u>z?x+Array(u-z+1).join("0"):u>0?x.slice(0,u)+"."+x.slice(u):"0."+Array(1-u).join("0")+Xk(k,Math.max(0,p+u-1))[0]},X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}},Xu="y z a f p n \u00b5 m k M G T P E Z Y".split(" "),kl;(function(k){kl=iC(k);si=kl.format;HB=kl.formatPrefix;return kl})({decimal:".",thousands:",",grouping:[3],currency:["$",""]});He.prototype={constructor:He,reset:function(){this.s=this.t=0},add:function(k){$u(ll,k,this.t);$u(this,ll.s,this.s);this.s?this.t+=ll.t:this.s=ll.t},valueOf:function(){return this.s}};var ll=new He,Kd=Math.PI,ze=Kd/2,Yv=Kd/4,UD=Kd*2,Uo=Kd/180,Zf=Math.abs,Vo=Math.atan,fv=Math.atan2,Ae=Math.cos,$d=Math.sin,$k=Math.sqrt;new He;new He;new He;var Wo=new He;(function(k,p,u,x){return function(z){function A(cd,Qc){k(cd,Qc)&&z.point(cd,Qc)} function la(cd,Qc){Da.point(cd,Qc)} function oa(){Oc.point=la;Da.lineStart()} function ra(){Oc.point=A;Da.lineEnd()} function qa(cd,Qc){tc.push([cd,Qc]);jc.point(cd,Qc)} function pa(){jc.lineStart();tc=[]} function wa(){qa(tc[0][0],tc[0][1]);jc.lineEnd();var cd=jc.Dl(),Qc=Ha.result(),Ma=Qc.length,Rc;tc.pop();Pc.push(tc);tc=null;if(Ma)if(cd&1){if(Ma=Qc[0],(Qc=Ma.length-1)>0){eb||(z.polygonStart(),eb=!0);z.lineStart();for(cd=0;cd1&&cd&2&&Qc.push(Qc.pop().concat(Qc.shift())),Uc.push(Qc.filter(mC))} var Da=p(z),Ha=kC(),jc=p(Ha),eb=!1,Pc,Uc,tc,Oc={point:A,lineStart:oa,lineEnd:ra,polygonStart:function(){Oc.point=qa;Oc.lineStart=pa;Oc.lineEnd=wa;Uc=[];Pc=[]},polygonEnd:function(){Oc.point=A;Oc.lineStart=oa;Oc.lineEnd=ra;var cd=Uc,Qc=cd.length;var Ma=-1;for(var Rc=0,Ia,Ta;++Ma=0;)for(Ta=cd[Qc],Ma=Ta.length;--Ma>=0;)Ia[--Rc]=Ta[Ma];Uc=Ia;cd=Pc;Qc=x[0];Rc=x[1];var Ga=$d(Rc);Ma=[$d(Qc),-Ae(Qc),0];Ta=Ia=0;Wo.reset();Ga===1?Rc=ze+1E-6:Ga===-1&&(Rc=-ze-1E-6);Ga=0;for(var Na=cd.length;Ga=0?1:-1,Zo=Yo*Fh,nl=Zo>Kd;$f*=$v;Wo.add(fv($f*Yo*$d(Zo),Zv*cj+$f*Ae(Zo)));Ia+=nl?Fh+Yo*UD:Fh;nl^pd>=Qc^Xo>=Qc&&(Dd=bv(av(Dd),av(ml)),cv(Dd),pd=bv(Ma,Dd),cv(pd),pd=(nl^Fh>=0?-1:1)*Zk(pd[2]),Rc>pd||Rc===pd&&(Dd[0]||Dd[1]))&&(Ta+=nl^Fh>=0?1:-1)}}cd=(Ia<-1E-6||Ia<1E-6&&Wo<-1E-6)^Ta&1;Uc.length?(eb||(z.polygonStart(),eb=!0),lC(Uc,nC,cd,u,z)):cd&&(eb||(z.polygonStart(),eb=!0),z.lineStart(),u(null,null,1,z),z.lineEnd());eb&&(z.polygonEnd(),eb=!1);Uc=Pc=null},sphere:function(){z.polygonStart();z.lineStart();u(null,null,1,z);z.lineEnd();z.polygonEnd()}};return Oc}})(function(){return!0},function(k){var p=NaN,u=NaN,x=NaN,z;return{lineStart:function(){k.lineStart();z=1},point:function(A,la){var oa=A>0?Kd:-Kd,ra=Zf(A-p);if(Zf(ra-Kd)<1E-6)k.point(p,u=(u+la)/2>0?ze:-ze),k.point(x,u),k.lineEnd(),k.lineStart(),k.point(oa,u),k.point(A,u),z=0;else if(x!==oa&&ra>=Kd){Zf(p-x)<1E-6&&(p-=x*1E-6);Zf(A-oa)<1E-6&&(A-=oa*1E-6);ra=p;var qa=u,pa=A,wa,Da,Ha=$d(ra-pa);u=Zf(Ha)>1E-6?Vo(($d(qa)*(Da=Ae(la))*$d(pa)-$d(la)*(wa=Ae(qa))*$d(ra))/(wa*Da*Ha)):(qa+la)/2;k.point(x,u);k.lineEnd();k.lineStart();k.point(oa,u);z=0}k.point(p=A,u=la);x=oa},lineEnd:function(){k.lineEnd();p=u=NaN},Dl:function(){return 2-z}}},function(k,p,u,x){k==null?(u*=ze,x.point(-Kd,u),x.point(0,u),x.point(Kd,u),x.point(Kd,0),x.point(Kd,-u),x.point(0,-u),x.point(-Kd,-u),x.point(-Kd,0),x.point(-Kd,u)):Zf(k[0]-p[0])>1E-6?(k=k[0]

1?0:k<-1?Kd:Math.acos(k))&&k/$d(k)}).invert=Vi(function(k){return k});$k(3);Vi(Vo);Vi(Zk);Vi(function(k){return 2*Vo(k)});Wi.prototype=gv.prototype={constructor:Wi,count:function(){return this.eachAfter(oC)},each:function(k){var p,u=[this],x;do{var z=u.reverse();for(u=[];p=z.pop();)if(k(p),p=p.children){var A=0;for(x=p.length;A=0;--x)u.push(p[x]);return this},sum:function(k){return this.eachAfter(function(p){for(var u=+k(p.data)||0,x=p.children,z=x&&x.length;--z>=0;)u+=x[z].value;p.value=u})},sort:function(k){return this.eachBefore(function(p){p.children&&p.children.sort(k)})},path:function(k){var p=this;var u=p;var x=k;if(u!==x){var z=u.ancestors(),A=x.ancestors(),la=null;u=z.pop();for(x=A.pop();u===x;)la=u,u=z.pop(),x=A.pop();u=la}for(x=[p];p!==u;)p=p.parent,x.push(p);for(p=x.length;k!==u;)x.splice(p,0,k),k=k.parent;return x},ancestors:function(){for(var k=this,p=[k];k=k.parent;)p.push(k);return p},descendants:function(){var k=[];this.each(function(p){k.push(p)});return k},leaves:function(){var k=[];this.eachBefore(function(p){p.children||k.push(p)});return k},links:function(){var k=this,p=[];k.each(function(u){u!==k&&p.push({source:u.parent,target:u})});return p},copy:function(){return gv(this).eachBefore(rC)}};(function(k,p){this.Ga=k;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.vd=p}).prototype=Object.create(Wi.prototype);var aw=Array.prototype,lv=aw.map,bl=aw.slice,hv={name:"implicit"},kv=[0,1],Go=new Date,Ho=new Date,$o=Qd(function(){},function(k,p){k.setTime(+k+p)},function(k,p){return p-k});$o.every=function(k){k=Math.floor(k);return isFinite(k)&&k>0?k>1?Qd(function(p){p.setTime(Math.floor(p/k)*k)},function(p,u){p.setTime(+p+u*k)},function(p,u){return(u-p)/k}):$o:null};var VD=Qd(function(k){k.setTime(Math.floor(k/1E3)*1E3)},function(k,p){k.setTime(+k+p*1E3)},function(k,p){return(p-k)/1E3},function(k){return k.getUTCSeconds()}),WD=Qd(function(k){k.setTime(Math.floor(k/6E4)*6E4)},function(k,p){k.setTime(+k+p*6E4)},function(k,p){return(p-k)/6E4},function(k){return k.getMinutes()}),XD=Qd(function(k){var p=k.getTimezoneOffset()*6E4%36E5;p<0&&(p+=36E5);k.setTime(Math.floor((+k-p)/36E5)*36E5+p)},function(k,p){k.setTime(+k+p*36E5)},function(k,p){return(p-k)/36E5},function(k){return k.getHours()}),Ko=Qd(function(k){k.setHours(0,0,0,0)},function(k,p){k.setDate(k.getDate()+p)},function(k,p){return(p-k-(p.getTimezoneOffset()-k.getTimezoneOffset())*6E4)/864E5},function(k){return k.getDate()-1}),Dv=Cg(0),Jo=Cg(1);Cg(2);Cg(3);var Lo=Cg(4);Cg(5);Cg(6);var YD=Qd(function(k){k.setDate(1);k.setHours(0,0,0,0)},function(k,p){k.setMonth(k.getMonth()+p)},function(k,p){return p.getMonth()-k.getMonth()+(p.getFullYear()-k.getFullYear())*12},function(k){return k.getMonth()}),Eg=Qd(function(k){k.setMonth(0,1);k.setHours(0,0,0,0)},function(k,p){k.setFullYear(k.getFullYear()+p)},function(k,p){return p.getFullYear()-k.getFullYear()},function(k){return k.getFullYear()});Eg.every=function(k){return isFinite(k=Math.floor(k))&&k>0?Qd(function(p){p.setFullYear(Math.floor(p.getFullYear()/k)*k);p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*k)}):null};Qd(function(k){k.setUTCSeconds(0,0)},function(k,p){k.setTime(+k+p*6E4)},function(k,p){return(p-k)/6E4},function(k){return k.getUTCMinutes()});Qd(function(k){k.setUTCMinutes(0,0,0)},function(k,p){k.setTime(+k+p*36E5)},function(k,p){return(p-k)/36E5},function(k){return k.getUTCHours()});var tv=Qd(function(k){k.setUTCHours(0,0,0,0)},function(k,p){k.setUTCDate(k.getUTCDate()+p)},function(k,p){return(p-k)/864E5},function(k){return k.getUTCDate()-1}),BD=Dg(0),Io=Dg(1);Dg(2);Dg(3);var Mo=Dg(4);Dg(5);Dg(6);Qd(function(k){k.setUTCDate(1);k.setUTCHours(0,0,0,0)},function(k,p){k.setUTCMonth(k.getUTCMonth()+p)},function(k,p){return p.getUTCMonth()-k.getUTCMonth()+(p.getUTCFullYear()-k.getUTCFullYear())*12},function(k){return k.getUTCMonth()});var Bh=Qd(function(k){k.setUTCMonth(0,1);k.setUTCHours(0,0,0,0)},function(k,p){k.setUTCFullYear(k.getUTCFullYear()+p)},function(k,p){return p.getUTCFullYear()-k.getUTCFullYear()},function(k){return k.getUTCFullYear()});Bh.every=function(k){return isFinite(k=Math.floor(k))&&k>0?Qd(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/k)*k);p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*k)}):null};var sv={"-":"",_:" ",0:"0"},Vd=/^\s*\d+/,AD=/^%/,zD=/[\\^$*+?|[\]().{}]/g,dj;(function(k){dj=DC(k);Dr=dj.format;Cr=dj.utcFormat;cr=dj.utcParse;return dj})({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||Cr("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||cr("%Y-%m-%dT%H:%M:%S.%LZ");dd("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");dd("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");dd("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");dd("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");dd("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");dd("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");dd("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");dd("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");dd("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");dd("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");dd("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");dd("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ZD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(dd);vd(ZD);var $D=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(dd);vd($D);var aE=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(dd);vd(aE);var bE=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(dd);vd(bE);var cE=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(dd);vd(cE);var dE=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(dd);vd(dE);var eE=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(dd);vd(eE);var fE=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(dd);vd(fE);var gE=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(dd);vd(gE);var hE=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(dd);vd(hE);var iE=Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(dd);vd(iE);var jE=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(dd);vd(jE);var kE=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(dd);vd(kE);var lE=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(dd);vd(lE);var mE=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(dd);vd(mE);var nE=Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(dd);vd(nE);var oE=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(dd);vd(oE);var pE=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(dd);vd(pE);var qE=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(dd);vd(qE);var rE=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(dd);vd(rE);var sE=Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(dd);vd(sE);var tE=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(dd);vd(tE);var uE=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(dd);vd(uE);var vE=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(dd);vd(vE);var wE=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(dd);vd(wE);var xE=Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(dd);vd(xE);var yE=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(dd);vd(yE);Qo(db(300,.5,0),db(-240,.5,1));Qo(db(-100,.75,.35),db(80,1.5,.8));Qo(db(260,.75,.35),db(80,1.5,.8));db();cb();dl(dd("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));dl(dd("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));dl(dd("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));dl(dd("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var bw=Math.abs,ae=Math.atan2,Gg=Math.cos,KD=Math.max,ap=Math.min,$e=Math.sin,Ch=Math.sqrt,ej=Math.PI,el=ej/2,ol=2*ej;Gv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Oa=0},lineEnd:function(){(this.Ha||this.Ha!==0&&this.Oa===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(k,p){k=+k;p=+p;switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(k,p):this.Fa.moveTo(k,p);break;case 1:this.Oa=2;default:this.Fa.lineTo(k,p)}}};(function(k){function p(u){return new Kv(k(u))} p.Fe=k;return p})(gl);Kv.prototype={areaStart:function(){this.Fe.areaStart()},areaEnd:function(){this.Fe.areaEnd()},lineStart:function(){this.Fe.lineStart()},lineEnd:function(){this.Fe.lineEnd()},point:function(k,p){this.Fe.point(p*Math.sin(k),p*-Math.cos(k))}};Mv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Qa=this.Ba=this.Ra=this.Ea=NaN;this.Oa=0},lineEnd:function(){switch(this.Oa){case 3:Lv(this,this.Ba,this.Ea);case 2:this.Fa.lineTo(this.Ba,this.Ea)}(this.Ha||this.Ha!==0&&this.Oa===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(k,p){k=+k;p=+p;switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(k,p):this.Fa.moveTo(k,p);break;case 1:this.Oa=2;break;case 2:this.Oa=3,this.Fa.lineTo((5*this.Qa+this.Ba)/6,(5*this.Ra+this.Ea)/6);default:Lv(this,k,p)}this.Qa=this.Ba;this.Ba=k;this.Ra=this.Ea;this.Ea=p}};Ov.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Qa=this.Ba=this.He=this.Ra=this.Ea=this.Ie=NaN;this.Oa=0},lineEnd:function(){switch(this.Oa){case 2:this.Fa.lineTo(this.He,this.Ie);break;case 3:Nv(this,this.Ba,this.Ea)}(this.Ha||this.Ha!==0&&this.Oa===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(k,p){k=+k;p=+p;switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(k,p):this.Fa.moveTo(k,p);break;case 1:this.Oa=2;this.Ba=k;this.Ea=p;break;case 2:this.Oa=3;default:Nv(this,k,p)}this.Qa=this.Ba;this.Ba=this.He;this.He=k;this.Ra=this.Ea;this.Ea=this.Ie;this.Ie=p}};var zE=function u(p){function x(z){return new Ov(z,p)} x.tension=function(z){return u(+z)};return x}(0);hl.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Qa=this.Ba=this.Ra=this.Ea=this.xg=NaN;this.Oa=0},lineEnd:function(){switch(this.Oa){case 2:this.Fa.lineTo(this.Ba,this.Ea);break;case 3:No(this,this.xg,Qv(this,this.xg))}(this.Ha||this.Ha!==0&&this.Oa===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(p,u){var x=NaN;p=+p;u=+u;if(p!==this.Ba||u!==this.Ea){switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Oa=2;break;case 2:this.Oa=3;No(this,Qv(this,x=Pv(this,p,u)),x);break;default:No(this,this.xg,x=Pv(this,p,u))}this.Qa=this.Ba;this.Ba=p;this.Ra=this.Ea;this.Ea=u;this.xg=x}}};(Rv.prototype=Object.create(hl.prototype)).point=function(p,u){hl.prototype.point.call(this,u,p)};Sv.prototype={moveTo:function(p,u){this.Fa.moveTo(u,p)},closePath:function(){this.Fa.closePath()},lineTo:function(p,u){this.Fa.lineTo(u,p)},bezierCurveTo:function(p,u,x,z,A,la){this.Fa.bezierCurveTo(u,p,z,x,la,A)}};Tv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Ab=[];this.Eb=[]},lineEnd:function(){var p=this.Ab,u=this.Eb,x=p.length;if(x)if(this.Ha?this.Fa.lineTo(p[0],u[0]):this.Fa.moveTo(p[0],u[0]),x===2)this.Fa.lineTo(p[1],u[1]);else for(var z=Uv(p),A=Uv(u),la=0,oa=1;oa=0&&(this.ae=1-this.ae,this.Ha=1-this.Ha)},point:function(p,u){p=+p;u=+u;switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Oa=2;default:if(this.ae<=0)this.Fa.lineTo(this.Ab,u),this.Fa.lineTo(p,u);else{var x=this.Ab*(1-this.ae)+p*this.ae;this.Fa.lineTo(x,this.Eb);this.Fa.lineTo(x,u)}}this.Ab=p;this.Eb=u}};$i.prototype={constructor:$i,scale:function(p){return p===1?this:new $i(this.k*p,this.x,this.y)},translate:function(p,u){return p===0&u===0?this:new $i(this.k,this.x+this.k*p,this.y+this.k*u)},apply:function(p){return[p[0]*this.k+this.x,p[1]*this.k+this.y]},applyX:function(p){return p*this.k+this.x},applyY:function(p){return p*this.k+this.y},invert:function(p){return[(p[0]-this.x)/this.k,(p[1]-this.y)/this.k]},invertX:function(p){return(p-this.x)/this.k},invertY:function(p){return(p-this.y)/this.k},rescaleX:function(p){return p.copy().domain(p.range().map(this.invertX,this).map(p.invert,p))},rescaleY:function(p){return p.copy().domain(p.range().map(this.invertY,this).map(p.invert,p))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new $i(1,0,0);rj=b;Fw=function(p,u){return u

p?1:u>=p?0:NaN};Bi=function(p,u){var x=p.length,z=-1,A,la,oa;if(u==null)for(;++z=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=A;++zla&&(la=A)}else for(;++z=A)for(la=A;++zla&&(la=A);return la};Rr=function(p,u){var x=p.length,z=-1,A,la;if(u==null)for(;++z=A)for(la=A;++zA&&(la=A)}else for(;++z=A)for(la=A;++zA&&(la=A);return la};Kz=function(p,u){var x=p.length,z=-1,A,la=0;if(u==null)for(;++zHa;qa||(qa=pa=Tk());if(Da1E-12)if(eb>ol-1E-12)qa.moveTo(Da*Gg(Ha),Da*$e(Ha)),qa.arc(0,0,Da,Ha,jc,!Pc),wa>1E-12&&(qa.moveTo(wa*Gg(jc),wa*$e(jc)),qa.arc(0,0,wa,jc,Ha,Pc));else{var tc=Ha,Oc=jc;Uc=Ha;var cd=jc,Qc=eb,Ma=eb,Rc=ra.apply(this,arguments)/2,Ia=Rc>1E-12&&(A?+A.apply(this,arguments):Ch(wa* wa+Da*Da)),Ta=ap(bw(Da-wa)/2,+z.apply(this,arguments)),Ga=Ta,Na=Ta;if(Ia>1E-12){var $c=Fv(Ia/wa*$e(Rc));Rc=Fv(Ia/Da*$e(Rc));(Qc-=$c*2)>1E-12?($c*=Pc?1:-1,Uc+=$c,cd-=$c):(Qc=0,Uc=cd=(Ha+jc)/2);(Ma-=Rc*2)>1E-12?(Rc*=Pc?1:-1,tc+=Rc,Oc-=Rc):(Ma=0,tc=Oc=(Ha+jc)/2)}Ha=Da*Gg(tc);jc=Da*$e(tc);$c=wa*Gg(cd);Rc=wa*$e(cd);if(Ta>1E-12){var yd=Da*Gg(Oc),Dd=Da*$e(Oc),pd=wa*Gg(Uc),se=wa*$e(Uc);if(eb1E-12?(Ga=pd-Ha,Na=se-jc,eb=$c-yd,Ia=Rc-Dd,eb=(eb*(jc-Dd)-Ia*(Ha-yd))/(Ia*Ga-eb*Na),Ga=[Ha+eb*Ga,jc+eb*Na]):Ga=[$c,Rc];Na=Ha-Ga[0];eb=jc-Ga[1];Ia=yd-Ga[0];var $f=Dd-Ga[1];Na=(Na*Ia+eb*$f)/(Ch(Na*Na+eb*eb)*Ch(Ia*Ia+$f*$f));Na=1/$e((Na>1?0:Na<-1?ej:Math.acos(Na))/2);eb=Ch(Ga[0]*Ga[0]+Ga[1]*Ga[1]);Ga=ap(Ta,(wa-eb)/(Na-1));Na=ap(Ta,(Da-eb)/(Na+1))}}Ma>1E-12?Na>1E-12?(tc=fl(pd,se,Ha,jc,Da,Na,Pc),Oc=fl(yd,Dd,$c,Rc,Da,Na,Pc),qa.moveTo(tc.cx+tc.kd,tc.cy+tc.ld),Na1E-12&&Qc>1E-12?Ga>1E-12?(tc=fl($c,Rc,yd,Dd,wa,-Ga,Pc),Oc=fl(Ha,jc,pd,se,wa,-Ga,Pc),qa.lineTo(tc.cx+tc.kd,tc.cy+tc.ld),Ga=cd;--Ha)pa.point(tc[Ha],Oc[Ha]);pa.lineEnd();pa.areaEnd()}Pc&&(tc[Da]=+x(eb,Da,wa),Oc[Da]=+A(eb,Da,wa),pa.point(z?+z(eb,Da,wa):tc[Da],la?+la(eb,Da,wa):Oc[Da]))}if(Uc)return pa=null,Uc+""||null} function u(){return Jv().defined(oa).curve(qa).context(ra)} var x=Hv,z=null,A=td(0),la=Iv,oa=td(!0),ra=null,qa=gl,pa=null;p.x=function(wa){return arguments.length?(x=typeof wa==="function"?wa:td(+wa),z=null,p):x};p.x0=function(wa){return arguments.length?(x=typeof wa==="function"?wa:td(+wa),p):x};p.x1=function(wa){return arguments.length?(z=wa==null?null:typeof wa==="function"?wa:td(+wa),p):z};p.y=function(wa){return arguments.length?(A=typeof wa==="function"?wa:td(+wa),la=null,p):A};p.y0=function(wa){return arguments.length?(A=typeof wa==="function"?wa:td(+wa),p):A};p.y1=function(wa){return arguments.length?(la=wa==null?null:typeof wa==="function"?wa:td(+wa),p):la};p.lineX0=p.lineY0=function(){return u().x(x).y(A)};p.lineY1=function(){return u().x(x).y(la)};p.lineX1=function(){return u().x(z).y(A)};p.defined=function(wa){return arguments.length?(oa=typeof wa==="function"?wa:td(!!wa),p):oa};p.curve=function(wa){return arguments.length?(qa=wa,ra!=null&&(pa=qa(ra)),p):qa};p.context=function(wa){return arguments.length?(wa==null?ra=pa=null:pa=qa(ra=wa),p):ra};return p};Qx=Jv;pw=function(){function p(ra){var qa,pa=ra.length;var wa=0;var Da=Array(pa),Ha=Array(pa),jc=+A.apply(this,arguments);var eb=Math.min(ol,Math.max(-ol,la.apply(this,arguments)-jc));var Pc=Math.min(Math.abs(eb)/pa,oa.apply(this,arguments)),Uc=Pc*(eb<0?-1:1),tc;for(qa=0;qa0&&(wa+=tc);x!=null?Da.sort(function(cd,Qc){return x(Ha[cd],Ha[Qc])}):z!=null&&Da.sort(function(cd,Qc){return z(ra[cd],ra[Qc])});qa=0;for(eb=wa?(eb-pa*Uc)/wa:0;qa0?tc*eb:0)+Uc;Ha[wa]={data:ra[wa],index:qa,value:tc,startAngle:jc,endAngle:Oc,padAngle:Pc}}return Ha} var u=MD,x=LD,z=null,A=td(0),la=td(ol),oa=td(0);p.value=function(ra){return arguments.length?(u=typeof ra==="function"?ra:td(+ra),p):u};p.sortValues=function(ra){return arguments.length?(x=ra,z=null,p):x};p.sort=function(ra){return arguments.length?(z=ra,x=null,p):z};p.startAngle=function(ra){return arguments.length?(A=typeof ra==="function"?ra:td(+ra),p):A};p.endAngle=function(ra){return arguments.length?(la=typeof ra==="function"?ra:td(+ra),p):la};p.padAngle=function(ra){return arguments.length?(oa=typeof ra==="function"?ra:td(+ra),p):oa};return p};$x=function(p){return new Mv(p)};ay=zE;Zx=gl;fy=function(p){return new hl(p)};gy=function(p){return new Rv(p)};by=function(p){return new Tv(p)};cy=function(p){return new il(p,.5)};ey=function(p){return new il(p,1)};dy=function(p){return new il(p,0)};re.svg=re.svg;re.xhtml=re.xhtml;re.xlink=re.xlink;re.xml=re.xml;re.xmlns=re.xmlns})();function IB(){} IB.prototype.v=function(a){return function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("viewBox","0 0 "+a.width+" "+a.height);b.setAttribute("class","aplos-renderer-key");b.style.width=a.width+"px";b.style.height=a.height+"px";var c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("cx",""+a.width/2);c.setAttribute("cy",""+a.height/2);c.setAttribute("r",""+a.width/2);c.setAttribute("fill",this.color);b.appendChild(c);return b}};window.sc_renderProfileActivityChart=function(a,b,c,e){var f=c.locale;var h=c.finalMonth;c=c.shouldDisableTransitions===void 0?!1:c.shouldDisableTransitions;(new JB(a,{activities:AE(b),locale:f,finalMonth:h,shouldDisableTransitions:c},e)).render()};function AE(a){var b=[];a=Mc(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c=Object.assign({},c,{data:c.data.map(function(e){if(e==null||e=="")e=new wg;else{e=JSON.parse(e);if(!Array.isArray(e))throw Error("dnarr");Kf(e,32);e=gg(wg,e)}return e})}),b.push(c);return b} function JB(a,b,c){var e=b.activities;var f=b.locale;var h=b.finalMonth;b=b.shouldDisableTransitions===void 0?!1:b.shouldDisableTransitions;this.container=a;this.description=c;this.activities=e;this.locale=f;this.finalMonth=h;this.shouldDisableTransitions=b} JB.prototype.render=function(){var a=this,b=new dz(this.container);this.shouldDisableTransitions&&b.Be(0);b.ad({top:60,left:0,right:0});b.ub().Td(!0);b.Ah({type:"linear",ticks:{type:"default",numTicks:3,integerOnly:!0,format:function(f){return f||""}},rendering:{type:"inside_gridlines"}});b.kj({type:"ordinal",ticks:{type:"default",format:function(f){return(new Date(f)).toLocaleDateString(a.locale,{month:"short"})}}});var c=BE(this);b.addBehavior(c);b.addBehavior((new CB(!0)).Sj(200));b.addBehavior((new yB).position(16).Wi(!0).ah("series_desc").ji(!0).nf(new IB));b.addBehavior(new FA);var e=new uA;e.tk(this.description);e.zd(c.Fd());b.addBehavior(e);b.addBehavior(new AA);b.draw(this.activities.map(function(f){return{name:f.name,displayName:f.label,data:CE(f.data,a.finalMonth),color:f.color,domain:"month",measure:"count"}}))};function CE(a,b){b=b===void 0?new Date:b;for(var c=[],e=-11;e<=0;e++)c.push(new Date(b.getFullYear(),b.getMonth()+e));var f=new Map;a=Mc(a);for(b=a.next();!b.done;b=a.next()){var h=b.value;b=eg(qg(h,1))+"-"+eg(qg(h,2));var n=void 0;e=(n=f.get(b))!=null?n:0;n=void 0;h=(n=sg(h,3))!=null?n:0;f.set(b,e+h)}return c.map(function(r){var t=r.getFullYear()+"-"+(r.getMonth()+1);return{month:r.getTime(),count:f.get(t)||0}})} function BE(a){var b=a.locale;a={};return dB("{{monthYear}}","

").be((a.monthYear=function(){return(new Date(this.datum.month)).toLocaleDateString(b,{month:"long",year:"numeric"})},a)).Zi()} ;}).call(this);

");return(new DOMParser).parseFromString(fg(a),"text/html").body.children[0]} function rm(a,b){if(!a)return Tg(mm);var c=document.createElement("div").style;um(a).forEach(function(e){var f=rf&&e in om?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");f.lastIndexOf("--",0)!=0&&f.lastIndexOf("var",0)!=0&&(e=im(a,e),e=Il(f,e,b),e!=null&&jm(c,f,e))});return c.cssText||""} function vm(a){var b=Array.from(am(Ql,a,"getElementsByTagName",["STYLE"])),c=nf(b,function(n){return cf(em(n).cssRules)});c=qm(c);for(var e=[],f=0;f=0)){var f=im(b,e);jm(a.style,e,f)}})} function um(a){Ed(a)?a=cf(a):(a=Sh(a),Ve(a,"cssText"));return a} ;var xm=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,ym=0;function zm(){this.O=[];this.N=[];this.v="data-elementweakmap-index-"+ym++} zm.prototype.set=function(a,b){am(Ml,a,"hasAttribute",[this.v])?(a=parseInt(am(Nl,a,"getAttribute",[this.v])||null,10),this.N[a]=b):(b=this.N.push(b)-1,cm(a,this.v,b.toString()),this.O.push(a));return this};zm.prototype.get=function(a){if(am(Ml,a,"hasAttribute",[this.v]))return a=parseInt(am(Nl,a,"getAttribute",[this.v])||null,10),this.N[a]};zm.prototype.clear=function(){this.O.forEach(function(a){am(Pl,a,"removeAttribute",[this.v])},this);this.O=[];this.N=[]};function Am(){this.O=document.implementation.createHTMLDocument("")} Am.prototype.ma=function(a){var b=this.O.createElement("span");this.N&&this.ka=="*"&&(b.id=this.N);this.ta&&(a=tm("

"+a+"
"),vm(a),a=a.innerHTML);a=dg(a);var c=document.createElement("template");if("content"in c)gg(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;gg(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=xm?new WeakMap:new zm;e=a.nextNode();){a:{var f=e;switch(gm(f)){case 3:f=Bm(this,f);break a;case 1:if(fm(f).toUpperCase()=="TEMPLATE")f=null;else{var k=fm(f).toUpperCase();if(k in this.na||km(f)!="http://www.w3.org/1999/xhtml")k=null;else if(this.ha[k])k=this.O.createElement(k);else{var n=this.O.createElement("span");this.Ca&&cm(n,"data-sanitizer-original-tag",k.toLowerCase());k=n}if(n=k){var r=bm(f);if(r!=null)for(var t=0;k=r[t];t++)if(k.specified){var y=f,E=k;var ma=E.name;if(ma.lastIndexOf("data-sanitizer-",0)==0)ma=null;else{var na=fm(y);E=E.value;var sa={tagName:Vd(na).toLowerCase(),attributeName:Vd(ma).toLowerCase()},ua={th:void 0};sa.attributeName=="style"&&(ua.th=dm(y));y=Cm(na,ma);y in this.v?ma=(0,this.v[y])(E,sa,ua):(ma=Cm(null,ma),ma=ma in this.v?(0,this.v[ma])(E,sa,ua):null)}ma!==null&&cm(n,k.name,ma)}f=n}else f=null}break a;default:f=null}}if(f){if(gm(f)==1&&c.set(e,f),e=hm(e),k=!1,e)n=gm(e),r=fm(e).toLowerCase(),t=hm(e),n!=11||t?r=="body"&&t&&(n=hm(t))&&!hm(n)&&(k=!0):k=!0,n=null,k||!e?n=b:gm(e)==1&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else dj(e)}c.clear&& c.clear();return b};var Dm={APPLET:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0};var Em={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,AUDIO:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,VIDEO:!0,WBR:!0};var Fm={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0};function Gm(a){this.O=document.implementation.createHTMLDocument("");a=a||new Hm;Im(a);this.v=Vh(a.v);this.na=Vh(a.Ca);this.ha=Vh(a.Ia);this.Ca=a.ta;a.ka.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new Td('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new Td('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Jm},this);a.Ka.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||Fm[b])throw new Td("Only valid custom element tag names allowed, got: %s.",[b]);this.ha[b]=!0},this);this.ya=a.O;this.ka=a.ya;this.N=null;this.ta=a.oa} Pd(Gm,Am);function Km(a){return function(b,c){b=Vd(b);return(c=a(b,c))&&Rf(c)!=Qf.toString()?Rf(c):null}} function Hm(){this.v={};Qe([wl,xl],function(a){Sh(a).forEach(function(b){this.v[b]=Jm},this)},this);this.N={};this.ka=[];this.Ka=[];this.Ca=Vh(Dm);this.Ia=Vh(Em);this.ta=!1;this.La=Lm;this.ma=this.ha=this.Oa=this.O=ul;this.ya=null;this.na=this.oa=!1} function Mm(a,b){return function(c,e,f,k){c=a(c,e,f,k);return c==null?null:b(c,e,f,k)}} function Nm(a,b,c,e){a[c]&&!b[c]&&(a[c]=Mm(a[c],e))} function Im(a){if(a.na)throw Error("HtmlSanitizer.Builder.build() can only be used once.");Nm(a.v,a.N,"* USEMAP",Om);var b=Km(a.La);["* ACTION","* CITE","* HREF"].forEach(function(e){Nm(this.v,this.N,e,b)},a);var c=Km(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){Nm(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){Nm(this.v,this.N,e,Nd(Pm,this.Oa))},a);Nm(a.v,a.N,"A TARGET",Nd(Qm,["_blank","_self"]));Nm(a.v,a.N,"* CLASS",Nd(Rm,a.ha));Nm(a.v,a.N,"* ID",Nd(Sm,a.ha));Nm(a.v,a.N,"* STYLE",Nd(a.ma,c));a.na=!0} function Lm(a){return Wf(a)} function Cm(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Jm(a){return Vd(a)} function Qm(a,b){b=Vd(b);return Pe(a,b.toLowerCase())>=0?b:null} function Om(a){return(a=Vd(a))&&a.charAt(0)=="#"?a:null} function Pm(a,b,c){b=Vd(b);return a(b,c)} function Rm(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f0){var b=this.O.createElement("span");b.appendChild(a);a=b}a=(new XMLSerializer).serializeToString(a);a=a.slice(a.indexOf(">")+1,a.lastIndexOf(""));return dg(a)};Gm.prototype.jk=function(a){this.N=Tm(this);return Am.prototype.ma.call(this,a)};function Tm(a){var b=!("STYLE"in a.na)&&"STYLE"in a.ha;return a.ka=="*"&&b?"sanitizer-"+(Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)):a.ka} function Bm(a,b){var c=b.data;(b=hm(b))&&fm(b).toLowerCase()=="style"&&!("STYLE"in a.na)&&"STYLE"in a.ha&&(c=lg(sm(c,a.N,Md(function(e,f){return this.ya(e,{Ol:f})},a))));return document.createTextNode(c)} ;function Um(a,b,c){var e=Vm(b);a=Wm(e,a,c||{});return Xm(b,e,a)} Od("aplos.util.SimpleTemplate.populateToText",Um);function Ym(a,b,c,e,f){Zm(b,c,e).forEach(function(k){f?a.insertBefore(k,f):a.appendChild(k)})} Od("aplos.util.SimpleTemplate.appendChildren",Ym);function Zm(a,b,c){c=c||{};var e=Vm(b);a=Wm(e,a,c);var f=[],k=[];Ph(a,function(n,r){n instanceof Node||Array.isArray(n)&&n[0]instanceof Node?k.push(r):f.push(r)});typeof b==="string"||f.length?(b=Xm(b,f,a),c=$m(b)):(e=document.createDocumentFragment(),c=document.createElement("span"),e.appendChild(c),gg(c,b));k.length&&an(c,a);return Array.prototype.map.call(c.childNodes,function(n){return n})} Od("aplos.util.SimpleTemplate.populateToNodes",Zm);function $m(a){var b="";a.match(/^/i)&&a.match(/<\/td>$/i)&&(b=b||"td",a=""+a+"");a.match(/^/i)&&a.match(/<\/tr>$/i)&&(b=b||"tr",a=""+a+"");a.match(/^<(tbody|thead|tfoot)>/i)&&a.match(/<\/(tbody|thead|tfoot)>$/i)&&(b=b||a.match(/^<(tbody|thead|tfoot)>/i)[1],a=""+a+"
");a=bn(a);b&&(a=a.querySelector(b).parentNode);return a} function an(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?cn(e,f,b):f.childNodes.length&&c.push(f)})} function cn(a,b,c){if(b.textContent.match(dn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=dn.exec(b);){f.index>0&&k.push(document.createTextNode(b.slice(0,f.index)));var n=c[f[1]];n instanceof Node?k.push(n.cloneNode(!0)):Array.isArray(n)&&n[0]instanceof Node&&n.forEach(function(r){k.push(r.cloneNode(!0))});b=b.slice(f.index+f[0].length);dn.lastIndex=0}b&&k.push(document.createTextNode(b));k.forEach(function(r){a.insertBefore(r,e)})}} function Xm(a,b,c){var e=en(a);b.forEach(function(f){var k=c[f];typeof k==="number"||Fd(k)||typeof k==="boolean"?k=k.toString():(k instanceof Node?k=k.outerHTML:k instanceof cg?k=fg(k).toString():k=ih(en(k)),k=k.replace("$","$$$$"));f=String("{{"+f+"}}").replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");e=e.replace(new RegExp(f,"g"),k)});return e} function en(a){return a instanceof cg?fg(a).toString():""+a} function Wm(a,b,c){var e={};a.forEach(function(f){var k=Cd(f,b);k==null&&f.indexOf("datum.")===0&&(f.match(/\./g)||[]).length>1&&(k=b.datum[f.substr(6)]);if(typeof k==="function"){var n=f.lastIndexOf("."),r=b;n>0&&(r=Cd(f.substring(0,n),b));k=k.apply(r)}(n=c[f])&&(k=n.apply(b,[k,b]));e[f]=k!=null?k:""});return e} function Vm(a){a=en(a);if(!a||!a.trim().length)return[];for(var b,c={};b=dn.exec(a);)c[b[1]]=!0;return Sh(c)} Od("aplos.util.SimpleTemplate.extractTemplateVariables",Vm);Od("aplos.util.SimpleTemplate.setSanitizerFunction",function(a){bn=a});Od("aplos.util.SimpleTemplate.setSanitizer",function(a){bn=a.jk.bind(a)});function bn(a){return fn.jk(a)} var gn=new Hm;gn.ma=function(a,b,c,e){if(!e.th)return null;b=rm(e.th,function(f,k){c.Ol=k;f=a(f,c);var n;f==null?n=null:n=new Pf(f);return n});return b==""?null:b};(function(a,b){for(var c=1;c=0?a.slice(0,e):a;e<0&&(a=f+".autoNamespace"+this.ha++);if(b){c&&(b=Md(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);Ve(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],Ve(this.N[f]||[],b),delete this.v[a];else if(a.length>1)for(k in this.v)b=k.length-a.length,b>=0&&k.indexOf(a,b)==b&&(b=this.v[k],delete this.v[k],f=k.slice(0,k.indexOf(".")),Ve(this.N[f]||[],b))};tn.prototype.ob=function(a,b,c){if(this.O.hasOwnProperty(a)){var e=this.N[a];if(e){e=e.slice();for(var f=Array.prototype.slice.call(arguments,2),k=0;k0};w.deselectAll=function(){!this.N&&this.he()&&(this.v.clear(),wn(this))};w.Wg=function(a,b){this.Xa.on("selectionChange."+a,b)};function wn(a){a.Xa.ob("selectionChange",a,a)} w.Jn=function(){return this.N};w.lock=function(){this.N||(this.N=!0,xn(this))};w.unlock=function(){this.N&&(this.N=!1,xn(this))};w.Wn=function(a,b){this.Xa.on("selectionLockChange."+a,b)};function xn(a){a.Xa.ob("selectionLockChange",a,a)} vn.prototype.onSelectionLockChange=vn.prototype.Wn;vn.prototype.unlock=vn.prototype.unlock;vn.prototype.lock=vn.prototype.lock;vn.prototype.isLocked=vn.prototype.Jn;vn.prototype.onSelectionChange=vn.prototype.Wg;vn.prototype.deselectAll=vn.prototype.deselectAll;vn.prototype.hasSelection=vn.prototype.he;vn.prototype.isDatumSelected=vn.prototype.Gj;vn.prototype.deselectDatum=vn.prototype.Tl;vn.prototype.selectDatum=vn.prototype.di;vn.prototype.setSelection=vn.prototype.Ci;vn.prototype.setSeriesSelectionProperties=vn.prototype.Ko;vn.prototype.setDataSelectionProperties=vn.prototype.xo;vn.prototype.setSelectionProperties=vn.prototype.Di;Od("aplos.chart.SeriesDataSelectionModel",vn);Od("aplos.chart.SeriesDataSelectionModel.FULL_DATUM_KEY","__datum__");function yn(a){this.N={};this.v=a||null;this.O={}} function zn(a,b){var c=An(a,b);return c?zn(a,c):a.N[b]?!0:a.v?zn(a.v,b):!1} yn.prototype.vg=function(a,b){var c=this.N;a in c&&delete c[a];this.O[a]=b;return this};yn.prototype.set=function(a,b,c){var e=this.O;a in e&&delete e[a];this.N[a]=Bn(this,b,c);return this};yn.prototype.get=function(a,b){var c=An(this,a);return c?this.get(c,b):(c=this.N[a])?c:this.v?this.v.get(a,b):Cn(a,b)};function Bn(a,b,c){if(typeof b==="function"){var e=Md(b,a);return c?function(f,k){f=e(f,k);return f!=null?+f:f}:e}return Md(function(f){f=f?f[b]:void 0;return f===void 0?b:c&&f!==null?+f:f},a)} function Cn(a,b){return function(c){c=c[a];if(c===void 0)throw Error("Please either include a property called "+a+" in the data or specify a value in the configuration.");return b&&c!=null?+c:c}} function An(a,b){if(!a.N[b]){if(a.O[b])return a.O[b];if(a.v)return An(a.v,b)}return null} ;function Dn(a,b){this.wb=a;this.O=null;this.v=b||null;this.N=b?new yn(b.N):new yn;this.oa=this.ha=this.na=null;this.ya={};this.ta=this.ma=this.ka=null} w=Dn.prototype;w.Kg=function(){return this.ta?this.ta:this.v?this.v.Kg():null};w.Qh=function(){return new Dn(this.wb,this)};function En(a,b){a.ta=b;b.x&&a.domain(b.x);b.xLowerBound&&a.Ge(In(b.xLowerBound));b.xUpperBound&&a.He(In(b.xUpperBound));b.x0&&a.ae(In(b.x0));b.y&&a.measure(In(b.y));b.yLowerBound&&a.Ye(In(b.yLowerBound));b.yUpperBound&&a.Ze(In(b.yUpperBound));b.y0&&a.Lc(In(b.y0));b.domainFormatter&&a.Dd(b.domainFormatter);b.measureFormatter&&a.Ub(b.measureFormatter);a.displayName(b.displayName||b.name);a.Vb(b.rendererId);a.je(b.measureAxisId);a.Of(b.overlay);["category","datumClickState","datumHoverState"].forEach(function(e){return Jn(a,e,b[e],!0,!1)});"color dashPattern dataId datumClass domain key label labelTemplate strokeWidth radius".split(" ").forEach(function(e){return Kn(a,e,b,!0,!1)});"delta domainLowerBound domainOffset domainUpperBound latitude longitude measure measureLowerBound measureOffset measureUpperBound".split(" ").forEach(function(e){return Kn(a,e,b,!1,!0)});var c=c||[];c.forEach(function(e){return Kn(a,e,b,!0,!1)})} function Jn(a,b,c,e,f){c!=null&&(typeof c!=="string"||e||(c=In(c)),typeof c==="function"&&(c=Md(c,a)),a.N.set(b,c,f))} function Kn(a,b,c,e,f){var k=c[b];(c=c[b+"ColumnId"])&&(k=In(c,e?k:null));Jn(a,b,k,e,f)} function In(a,b){return function(c){return c&&c.hasOwnProperty(a)?c[a]:b}} function Ln(a,b){for(var c=a.domain(),e=ln(a,"domainOffset")?a.ae():void 0,f=ln(a,"domainLowerBound")?a.Ge():void 0,k=ln(a,"domainUpperBound")?a.He():void 0,n=a.measure(),r=a.Lc(),t=ln(a,"measureLowerBound")?a.Ye():void 0,y=ln(a,"measureUpperBound")?a.Ze():void 0,E=a.wh(),ma=a.key(),na=a.radius(),sa=a.color(),ua=a.Fe(),ta=a.Fc(),Ba=ln(a,"strokeWidth")?a.strokeWidth():void 0,ya=a.label(),Aa=ln(a,"category")?a.Hb():void 0,Ca=Array(b.length),Fa=0;Fa=0})} function Sn(a){return a.Ca.filter(function(b){return b.Bc!==!0}).length>0} function Wn(a,b){a={Ba:0n){r=Mo(f);for(e=a=0;e0&&y.Ba.heightk){n=Mo(e);for(c=a=0;c0&&t.Ba.width=0)?a.oa:b.height-a.ma,k=0;k=0)?a.ka:b.width-a.na,k=a.oa;a=b.height-a.ma;for(b=0;b-1?(b=a[n],c||(b.wg=!1)):(b=new ap(b,this.src,k,!!e,f),b.wg=c,a.push(b));return b};cp.prototype.remove=function(a,b,c,e){a=a.toString();if(!(a in this.v))return!1;var f=this.v[a];b=dp(f,b,c,e);return b>-1?(bp(f[b]),We(f,b),f.length==0&&(delete this.v[a],this.N--),!0):!1};function ep(a,b){var c=b.type;c in a.v&&Ve(a.v[c],b)&&(bp(b),a.v[c].length==0&&(delete a.v[c],a.N--))} cp.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.v)if(!a||c==a){for(var e=this.v[c],f=0;f-1?b[a]:null)&&rp(c))} function rp(a){if(typeof a!=="number"&&a&&!a.Tf){var b=a.src;if(b&&b[Zo])ep(b.v,a);else{var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent?b.detachEvent(op(c),e):b.addListener&&b.removeListener&&b.removeListener(e);hp--;(c=mp(b))?(ep(c,a),c.N==0&&(c.src=null,b[fp]=null)):bp(a)}}} function op(a){return a in gp?gp[a]:gp[a]="on"+a} function pp(a,b){if(a.Tf)a=!0;else{b=new Yo(b,this);var c=a.listener,e=a.Mg||a.src;a.wg&&rp(a);a=c.call(e,b)}return a} function mp(a){a=a[fp];return a instanceof cp?a:null} var sp="__closure_events_fn_"+(Math.random()*1E9>>>0);function kp(a){if(typeof a==="function")return a;a[sp]||(a[sp]=function(b){return a.handleEvent(b)});return a[sp]} ;var tp=If("");function up(){this.port=this.v=null;this.N=[]} up.prototype.load=function(){var a=this,b=vp();this.v=wp(b);xp().then(function(){a.v&&document.body.appendChild(a.v)});return yp(this.v,b).then(function(c){for(a.port=c.ports[0];a.N.length>0;)c=a.N.shift(),a.port.postMessage(c.data,c.bp)})};up.prototype.exec=function(a,b){var c=this;return new Promise(function(e,f){var k=new MessageChannel;k.port1.onmessage=function(ma){k.port1.onmessage=null;ma=ma.data;ma.error!=null?f(new EvalError(ma.error)):e(ma.result)};for(var n=[],r=[],t=[],y=Mc(b!=null?b:[]),E=y.next();!E.done;E=y.next())E=E.value,n.push(E.name),r.push(E.value),E.transfer&&t.push(E.value);n={code:a,paramNames:n,values:r};c.port?c.port.postMessage(n,[k.port2].concat(Nc(t))):c.N.push({data:n,bp:[k.port2].concat(Nc(t))})})};up.prototype.dispose=function(){this.v!=null&&(this.v.parentNode&&this.v.parentNode.removeChild(this.v),this.v=null)};function vp(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")} function xp(){return new Promise(function(a){document.readyState!="loading"?a():jp(document,"DOMContentLoaded",function(){a()})})} function yp(a,b){return new Promise(function(c){function e(f){f.source===a.contentWindow&&f.data===b&&(window.removeEventListener("message",e),c(f))} window.addEventListener("message",e)})} function wp(a){var b=bj(document,"IFRAME");if(!b.sandbox)throw Error("iframe sandboxes not supported");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(tp==""){a='');a=If("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=fg(c)}else{c=new Map([["nonce",a]]);var e=Jf(tp).toString();var f=e.split(/[?#]/),k=/[?]/.test(e)?"?"+f[1]:"";a=f[0];e=/[#]/.test(e)?"#"+(k?f[2]:f[1]):"";a=Sg(a,k,e,c)}b.src=Jf(a).toString();b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b} ;var zp={hp:!1},Ap;function Bp(a){this.options=a=a===void 0?zp:a;Cp(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.v=new up)} Bp.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?zp:e;return rd(function(f){if(f.v==1)return id(f,Dp(a,b,c,e),2);if(f.na)return f.return();Ap||(Ap=new Bp,Ap.init());return id(f,Ep(Ap,a,b,c),0)})};Bp.prototype.init=function(){var a=this;return rd(function(b){return a.v==null?b.return():id(b,a.v.load(),0)})};Bp.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return rd(function(f){return f.v==1?id(f,Dp(a,b,c,e.options),2):f.na?f.return():id(f,Ep(e,a,b,c),0)})};function Ep(a,b,c,e){e=e===void 0?"":e;var f,k;return rd(function(n){switch(n.v){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){n.Jf(2);break}navigator.msSaveOrOpenBlob(f,c);return id(n,Fp(),3);case 3:return n.return();case 2:if(!oe()||me()>=0||!Me()&&(!He("iPad")&&!He("iPhone")||Le()||Me()||(Ie()?0:He("Coast"))||Ke()||!He("AppleWebKit"))){n.Jf(4);break}k=new FileReader;k.onload=function(){var r=bj(document,"A"),t=Wf(String(k.result));t instanceof Pf?t=Rf(t):t=ag.test(t)?t:void 0;t!==void 0&&(r.href=t);r.download=c;r.click()};k.readAsDataURL(f);return id(n,Fp(),5);case 5:return n.return();case 4:return a.v==null&&(a.v=new up,a.v.load()),id(n,a.v.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return id(n,Fp(),0)}})} function Dp(a,b,c,e){c=c===void 0?"":c;e=e===void 0?zp:e;var f;return rd(function(k){switch(k.v){case 1:if(!Cp(e))return k.return(!1);k.O=2;return id(k,Gp(a,b,c),4);case 4:k.v=3;k.O=0;break;case 2:f=jd(k);if(f instanceof DOMException&&f.name==="SecurityError")return k.return(!1);throw f;case 3:return k.return(!0)}})} function Cp(a){a=a===void 0?zp:a;return a.hp&&!!window.showSaveFilePicker} function Gp(a,b,c){c=c===void 0?"":c;var e,f,k,n;return rd(function(r){switch(r.v){case 1:var t=c,y={suggestedName:b},E;(E=b.match(/\..+$/))?(E=E[0],E=E.length>16?null:E):E=null;if(E){t=t.replace(/;[^]*/,"");var ma={};y.types=[{description:"*"+E,accept:(ma[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(t)?t:"*/*"]=[E],ma)}]}e=y;r.O=2;return id(r,window.showSaveFilePicker(e),4);case 4:f=r.na;r.v=3;r.O=0;break;case 2:k=jd(r);if(k instanceof DOMException&&k.name==="AbortError")return r.return();throw k;case 3:return id(r,f.createWritable(),5);case 5:return n=r.na,r.O=0,r.ka=6,id(r,n.write(a),6);case 6:return r.ta=[r.N],r.O=0,r.ka=0,id(r,n.close(),9);case 9:y=r.ta.splice(0)[0];(y=r.N=r.N||y)?y.Hj?r.v=r.O||r.ka:y.Jf!=void 0&&r.ka1?f/(k-1):null} ;function Kp(a){return typeof a!=="number"||isNaN(a)||!isFinite(a)?!1:parseInt(a,10)===a} Od("aplos.data.aggregations.accumulate",function(a,b){return b?Se(a,b):a});function Lp(a,b){b=b===void 0?vl:b;var c=Mp(a,b);return c==null?null:c/Np(a,b)} Od("aplos.data.aggregations.average",Lp);function Op(a,b){b=b===void 0?vl:b;var c=0;a.forEach(function(e,f){b(e,f)==1&&c++});return c} Od("aplos.data.aggregations.countIf",Op);function Mp(a,b){var c=null;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&!isNaN(+e)&&isFinite(e)&&(c=(c||0)+ +e)});return c} Od("aplos.data.aggregations.sum",Mp);function Pp(a,b){var c=null;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&(c===null&&(c=Infinity),c=ce?c:c==e?c:e)});return c} Od("aplos.data.aggregations.max",Qp);function Np(a,b){var c=0;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c++});return c} Od("aplos.data.aggregations.count",Np);function Rp(a,b){var c=new Set;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} Od("aplos.data.aggregations.countDistinct",Rp);function Sp(a,b,c,e){if(a<2||!Kp(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(b<0||b>a||!Kp(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Tp(b/a,c,e)} Od("aplos.data.aggregations.quantiles",Sp);function Tp(a,b,c){if(a<0||a>1)throw Error("phi value for quantiles must be 0 <= phi <= 1");b=b.map(c||vl);b=b.filter(function(e){return e!=null&&!isNaN(+e)});if(!b.length)return null;b.sort(gi);return b[a===0?0:Math.ceil(b.length*a)-1]} Od("aplos.data.aggregations.phiQuantiles",Tp);function Up(a,b){return Jp(a,!1,b)} Od("aplos.data.aggregations.variance",Up);function Vp(a,b){return(a=Jp(a,!1,b))&&Math.sqrt(a)} Od("aplos.data.aggregations.stdDev",Vp);Od("aplos.data.aggregations.makeJackknifeStdErrFn",function(a,b){return function(c){if(!c||c.length<2)var e=null;else{if(!c||c.length<2)e=null;else if(e=[],b){var f=kf(c,b);f=Rh(f);if(f.length<2)e=null;else{c=mf(f);for(var k=0;k=c&&ae?(a=a.Ic(c+1)-e,(c*a+b-e)/a):b=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b} w=kq.prototype;w.Je=eq.il;w.Ke=eq.jl;w.clone=function(){var a=new kq(this.date);a.Je=this.Je;a.Ke=this.Ke;return a};w.getFullYear=function(){return this.date.getFullYear()};w.getYear=function(){return this.getFullYear()};w.getMonth=function(){return this.date.getMonth()};w.getDate=function(){return this.date.getDate()};w.getTime=function(){return this.date.getTime()};w.getDay=function(){return this.date.getDay()};w.getUTCFullYear=function(){return this.date.getUTCFullYear()};w.getUTCMonth=function(){return this.date.getUTCMonth()};w.getUTCDate=function(){return this.date.getUTCDate()};w.getUTCDay=function(){return this.date.getDay()};w.getUTCHours=function(){return this.date.getUTCHours()};w.getUTCMinutes=function(){return this.date.getUTCMinutes()};w.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};w.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};w.setFullYear=function(a){this.date.setFullYear(a)};w.setYear=function(a){this.setFullYear(a)};w.setMonth=function(a){this.date.setMonth(a)};w.setDate=function(a){this.date.setDate(a)};w.setTime=function(a){this.date.setTime(a)};w.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};w.setUTCMonth=function(a){this.date.setUTCMonth(a)};w.setUTCDate=function(a){this.date.setUTCDate(a)};w.add=function(a){if(a.N||a.months){var b=this.getMonth()+a.months+a.N*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var e=Math.min(gq(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),mq(this,a.getDate()))};w.jg=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+lh(Math.abs(b),c?6:4),lh(this.getMonth()+1,2),lh(this.getDate(),2)].join(a?"-":"")+""};w.toString=function(){return this.jg()};function mq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.zg?a-=c.Tg-c.Jb:a<=c.Af&&(a-=c.Rf-c.Jb);return a} function tq(a,b){b=b||"UTC";try{return pq(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return pq(a,"%Y-%m-%d",b)}catch(c){}throw Error(a+" not of the form Y-M-D or Y-M-D H-M-S");} function uq(a,b,c){c=c||"UTC";var e=vq(b);wq(a);qq(c,"Invalid timezone specified");if(c==="local")return xq(a,e);var f=Math.floor(a/1E3);b=yq(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=yq(a,c),(a-c)*1E3;case "QUARTER":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),Math.floor(a.getUTCMonth()/3)*3,1),c=yq(a,c),(a-c)*1E3;case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=yq(a,c),(a-c)*1E3;case "WEEK":return a=new oq,a.setTime(f+b),b=new hq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=yq(a,c),(a-c)*1E3;case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=yq(a,c),(a-c)*1E3;case "HOUR":return a=f+b,zq(a-a%36E5-b,c)*1E3;case "MINUTE":return a=f+b,zq(a-a%6E4-b,c)*1E3;case "SECOND":return zq(Math.floor(f/1E3)*1E3,c)*1E3;case "MILLISECOND":return zq(Math.floor(f),c)*1E3;case "MICROSECOND":return zq(Math.floor(a)/1E3,c)* 1E3;default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function Aq(a,b,c,e){e=e===void 0?"UTC":e;if(e==="local"){e=a;switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);e=new Date(e/1E3);b=e.getFullYear();for(c=e.getMonth()+c;c>11;)c-=12,b+=1;e.setFullYear(b,c,Math.min((new Date(b,c+1,0)).getDate(),e.getDate()));e=e.getTime()*1E3;break;case "WEEK":c*=7;case "DAY":e=new Date(e/1E3);e.setDate(e.getDate()+c);e=e.getTime()*1E3;break;case "HOUR":e=new Date(e/1E3);e.setHours(e.getHours()+c);e=e.getTime()*1E3;break;case "MINUTE":c*= 60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":e+=c}return e}var f=sq(a,e);switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);b=new Date((a+f.Jb)/1E3);f=b.getUTCFullYear();for(c=b.getUTCMonth()+c;c>11;)c-=12,f+=1;b.setUTCFullYear(f,c,Math.min((new Date(f,c+1,0)).getUTCDate(),b.getUTCDate()));a=b.getTime()*1E3;f=sq(a,e);a-=f.Jb;break;case "WEEK":c*=7;case "DAY":b=new Date((a+f.Jb)/1E3);b.setUTCDate(b.getUTCDate()+c);a=b.getTime()*1E3;f=sq(a,e);a-=f.Jb;break;case "HOUR":return b=a+c*60*60*1E3*1E3,Math.abs(c)>1&&(c=Bq(b,e),b-=c-f.Jb),b;case "MINUTE":c*=60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":a+=c}return a} function Bq(a,b){return b?sq(a,b).Jb:-1*(new Date(a/1E3)).getTimezoneOffset()*60*1E3*1E3} function sq(a,b){var c=b.toUpperCase().trim(),e;if(e=Cq.exec(c)){var f=+e[2]*36E5;e[3]&&(f+=+e[3]*6E4);e[1]==="-"&&(f=-f);e=f*1E3}else e=null;if(e!=null)return{Jb:e,Af:null,zg:null,uh:null,Rf:null,Tg:null};e=Dq[c];if(e!=null)return{Jb:e*1E3,Af:null,zg:null,uh:null,Rf:null,Tg:null};c=Eq[c];if(!c)throw Error("Unknown or unsupported time zone: "+b);b=c.Tn*6E7;c=c.cp;e=a/36E8;f=0;for(var k=c.length-2;;){a=Math.floor((k+f)/2);a-=a%2;if(ec[a])f=a+2;else break;if(k=c.length|| k<0)return{Jb:b,Af:null,zg:null,uh:null,Rf:null,Tg:null};a=k;break}}e=b+c[a+1]*6E7;f=b+c[a-1]*6E7;return{Jb:e,Af:c[a]*36E8,zg:c[a+2]*36E8,uh:e-f,Rf:f,Tg:b+c[a+3]*6E7}} function yq(a,b){return sq(a*1E3,b).Jb/1E3} function zq(a,b){var c=a*1E3;b=sq(c,b);var e=b.Rf-b.Jb;return a-(e<=0||c-e>b.Af?0:e)/1E3} function Fq(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function qq(a,b){if(typeof a!=="string")throw Error(b);} function wq(a){if(typeof a!=="number")throw Error("Invalid timestamp");} for(var Cq=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,Dq={"ETC/GMT+12":-432E5,"ETC/GMT+11":-396E5,"PACIFIC/MIDWAY":-396E5,"PACIFIC/NIUE":-396E5,"PACIFIC/PAGO_PAGO":-396E5,"PACIFIC/SAMOA":-396E5,"US/SAMOA":-396E5,"ETC/GMT+10":-36E6,HST:-36E6,"PACIFIC/HONOLULU":-36E6,"PACIFIC/JOHNSTON":-36E6,"PACIFIC/TAHITI":-36E6,"SYSTEMV/HST10":-36E6,"US/HAWAII":-36E6,"PACIFIC/MARQUESAS":-342E5,"ETC/GMT+9":-324E5,"PACIFIC/GAMBIER":-324E5,"SYSTEMV/YST9":-324E5,"ETC/GMT+8":-288E5,"PACIFIC/PITCAIRN":-288E5,"SYSTEMV/PST8":-288E5,"AMERICA/CRESTON":-252E5,"AMERICA/PHOENIX":-252E5,"ETC/GMT+7":-252E5,MST:-252E5,PNT:-252E5,"SYSTEMV/MST7":-252E5,"US/ARIZONA":-252E5,"AMERICA/REGINA":-216E5,"AMERICA/SWIFT_CURRENT":-216E5,"CANADA/EAST-SASKATCHEWAN":-216E5,"CANADA/SASKATCHEWAN":-216E5,"ETC/GMT+6":-216E5,"SYSTEMV/CST6":-216E5,"AMERICA/ATIKOKAN":-18E6,"AMERICA/CAYMAN":-18E6,"AMERICA/CORAL_HARBOUR":-18E6,"AMERICA/PANAMA":-18E6,EST:-18E6,"ETC/GMT+5":-18E6,"SYSTEMV/EST5":-18E6,"AMERICA/ANGUILLA":-144E5,"AMERICA/ANTIGUA":-144E5,"AMERICA/ARUBA":-144E5,"AMERICA/BLANC-SABLON":-144E5,"AMERICA/CARACAS":-144E5,"AMERICA/CURACAO":-144E5,"AMERICA/DOMINICA":-144E5,"AMERICA/GRENADA":-144E5,"AMERICA/GUADELOUPE":-144E5,"AMERICA/GUYANA":-144E5,"AMERICA/KRALENDIJK":-144E5,"AMERICA/LA_PAZ":-144E5,"AMERICA/LOWER_PRINCES":-144E5,"AMERICA/MARIGOT":-144E5,"AMERICA/MONTSERRAT":-144E5,"AMERICA/PORT_OF_SPAIN":-144E5,"AMERICA/PUERTO_RICO":-144E5,"AMERICA/ST_BARTHELEMY":-144E5,"AMERICA/ST_KITTS":-144E5,"AMERICA/ST_LUCIA":-144E5,"AMERICA/ST_THOMAS":-144E5,"AMERICA/ST_VINCENT":-144E5,"AMERICA/TORTOLA":-144E5,"AMERICA/VIRGIN":-144E5,"ETC/GMT+4":-144E5,PRT:-144E5,"SYSTEMV/AST4":-144E5,"AMERICA/CAYENNE":-108E5,"AMERICA/PARAMARIBO":-108E5,"ANTARCTICA/ROTHERA":-108E5,"ETC/GMT+3":-108E5,"ATLANTIC/SOUTH_GEORGIA":-72E5,"ETC/GMT+2":-72E5,"ATLANTIC/CAPE_VERDE":-36E5,"ETC/GMT+1":-36E5,"AFRICA/ABIDJAN":0,"AFRICA/ACCRA":0,"AFRICA/BAMAKO":0,"AFRICA/BANJUL":0,"AFRICA/BISSAU":0,"AFRICA/CONAKRY":0,"AFRICA/DAKAR":0,"AFRICA/FREETOWN":0,"AFRICA/LOME":0,"AFRICA/MONROVIA":0,"AFRICA/NOUAKCHOTT":0,"AFRICA/OUAGADOUGOU":0,"AFRICA/TIMBUKTU":0,"ATLANTIC/REYKJAVIK":0,"ATLANTIC/ST_HELENA":0,"ETC/GMT":0,"ETC/GMT+0":0,"ETC/GMT0":0,"ETC/GREENWICH":0,"ETC/UCT":0,"ETC/UNIVERSAL":0,"ETC/UTC":0,"ETC/ZULU":0,FACTORY:0,GMT:0,"GMT+0":0,GMT0:0,GREENWICH:0,ICELAND:0,UCT:0,UNIVERSAL:0,UTC:0,ZULU:0,"AFRICA/BANGUI":36E5,"AFRICA/BRAZZAVILLE":36E5,"AFRICA/DOUALA":36E5,"AFRICA/KINSHASA":36E5,"AFRICA/LAGOS":36E5,"AFRICA/LIBREVILLE":36E5,"AFRICA/LUANDA":36E5,"AFRICA/MALABO":36E5,"AFRICA/NIAMEY":36E5,"AFRICA/PORTO-NOVO":36E5,"AFRICA/SAO_TOME":36E5,"ETC/GMT-1":36E5,"AFRICA/BLANTYRE":72E5,"AFRICA/BUJUMBURA":72E5,"AFRICA/GABORONE":72E5,"AFRICA/HARARE":72E5,"AFRICA/JOHANNESBURG":72E5,"AFRICA/KIGALI":72E5,"AFRICA/LUBUMBASHI":72E5,"AFRICA/LUSAKA":72E5,"AFRICA/MAPUTO":72E5,"AFRICA/MASERU":72E5,"AFRICA/MBABANE":72E5,CAT:72E5,"ETC/GMT-2":72E5,"AFRICA/ADDIS_ABABA":108E5,"AFRICA/ASMARA":108E5,"AFRICA/ASMERA":108E5,"AFRICA/DAR_ES_SALAAM":108E5,"AFRICA/DJIBOUTI":108E5,"AFRICA/KAMPALA":108E5,"AFRICA/MOGADISHU":108E5,"AFRICA/NAIROBI":108E5,"ANTARCTICA/SYOWA":108E5,"ASIA/ADEN":108E5,"ASIA/BAHRAIN":108E5,"ASIA/KUWAIT":108E5,"ASIA/QATAR":108E5,"ASIA/RIYADH":108E5,EAT:108E5,"ETC/GMT-3":108E5,"INDIAN/ANTANANARIVO":108E5,"INDIAN/COMORO":108E5,"INDIAN/MAYOTTE":108E5,"ASIA/DUBAI":144E5,"ASIA/MUSCAT":144E5,"ETC/GMT-4":144E5,"INDIAN/MAHE":144E5,"INDIAN/REUNION":144E5,"ASIA/KABUL":162E5,"ANTARCTICA/MAWSON":18E6,"ETC/GMT-5":18E6,"INDIAN/KERGUELEN":18E6,"INDIAN/MALDIVES":18E6,"ASIA/CALCUTTA":198E5,"ASIA/COLOMBO":198E5,"ASIA/KOLKATA":198E5,IST:198E5,"ASIA/KATHMANDU":207E5,"ASIA/KATMANDU":207E5,"ANTARCTICA/VOSTOK":216E5,"ASIA/KASHGAR":216E5,"ASIA/THIMBU":216E5,"ASIA/THIMPHU":216E5,"ASIA/URUMQI":216E5,"ETC/GMT-6":216E5,"INDIAN/CHAGOS":216E5,"ASIA/RANGOON":234E5,"ASIA/YANGON":234E5,"INDIAN/COCOS":234E5,"ANTARCTICA/DAVIS":252E5,"ASIA/BANGKOK":252E5,"ASIA/HO_CHI_MINH":252E5,"ASIA/JAKARTA":252E5,"ASIA/PHNOM_PENH":252E5,"ASIA/PONTIANAK":252E5,"ASIA/SAIGON":252E5,"ASIA/VIENTIANE":252E5,"ETC/GMT-7":252E5,"INDIAN/CHRISTMAS":252E5,VST:252E5,"ANTARCTICA/CASEY":288E5,"ASIA/BRUNEI":288E5,"ASIA/KUALA_LUMPUR":288E5,"ASIA/KUCHING":288E5,"ASIA/MAKASSAR":288E5,"ASIA/SINGAPORE":288E5,"ASIA/UJUNG_PANDANG":288E5,"ETC/GMT-8":288E5,SINGAPORE:288E5,"ASIA/DILI":324E5,"ASIA/JAYAPURA":324E5,"ASIA/PYONGYANG":324E5,"ASIA/TOKYO":324E5,"ETC/GMT-9":324E5,JAPAN:324E5,JST:324E5,"PACIFIC/PALAU":324E5,ACT:342E5,"AUSTRALIA/DARWIN":342E5,"AUSTRALIA/NORTH":342E5,"ANTARCTICA/DUMONTDURVILLE":36E6,"ETC/GMT-10":36E6,"PACIFIC/CHUUK":36E6,"PACIFIC/GUAM":36E6,"PACIFIC/PORT_MORESBY":36E6,"PACIFIC/SAIPAN":36E6,"PACIFIC/TRUK":36E6,"PACIFIC/YAP":36E6,"ETC/GMT-11":396E5,"PACIFIC/BOUGAINVILLE":396E5,"PACIFIC/GUADALCANAL":396E5,"PACIFIC/KOSRAE":396E5,"PACIFIC/POHNPEI":396E5,"PACIFIC/PONAPE":396E5,SST:396E5,"ETC/GMT-12":432E5,KWAJALEIN:432E5,"PACIFIC/FUNAFUTI":432E5,"PACIFIC/KWAJALEIN":432E5,"PACIFIC/MAJURO":432E5,"PACIFIC/NAURU":432E5,"PACIFIC/TARAWA":432E5,"PACIFIC/WAKE":432E5,"PACIFIC/WALLIS":432E5,"ETC/GMT-13":468E5,"PACIFIC/ENDERBURY":468E5,"PACIFIC/FAKAOFO":468E5,"ETC/GMT-14":504E5,"PACIFIC/KIRITIMATI":504E5},Eq={},Gq=[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0],Hq=Mc(["PST8PDT","America/Los_Angeles","US/Pacific"]),Iq=Hq.next();!Iq.done;Iq=Hq.next()){var Jq=Iq.value.toUpperCase();Eq[Jq]={id:Jq,Tn:-480,cp:Gq}} var Kq={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},Lq={},Mq;for(Mq in Kq)Lq[Kq[Mq]]=Mq;var Nq=Lq;function vq(a){if(!a)throw Error("Missing date component.");var b=Nq[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function xq(a,b){var c=new Date(a/1E3);switch(b){case "YEAR":c=new Date(c.getFullYear(),0,1);break;case "QUARTER":c=new Date(c.getFullYear(),Math.floor(c.getMonth()/3)*3,1);break;case "MONTH":c=new Date(c.getFullYear(),c.getMonth(),1);break;case "WEEK":a=-1*c.getDay();c=new Date(c.getFullYear(),c.getMonth(),c.getDate());c.setDate(c.getDate()+a);break;case "DAY":c=new Date(c.getFullYear(),c.getMonth(),c.getDate());break;case "HOUR":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours());break;case "MINUTE":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes());break;case "SECOND":return Math.floor(a/1E6)*1E6;case "MILLISECOND":return Math.floor(a/1E3)*1E3;case "MICROSECOND":return Math.floor(a);default:throw Error("Unknown or unsupported date component for truncation:"+b+".");}return c.getTime()*1E3} ;function Oq(a,b){var c=Pq(a,b===void 0?"__default__":b);return function(e){return e==null?"null":c(e/1E3)}} function Pq(a,b){b=b===void 0?"__default__":b;var c=!1;a.indexOf("%Z")>=0&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=Qq();return function(f){if(f==null)return"null";typeof f==="string"&&(f=+f);Fd(f)&&(f=f.getTime());var k=b==="__default__"?Xp:b,n=Rq(a);if(k==="local"){n=Sq(a);var r=f;k=(new Date(f)).getTimezoneOffset()*60*1E3*1E3*-1}else k==="UTC"||k==="+00:00"?(r=f,k=0):(f*=1E3,r=sq(f,k),r=(f+r.Jb)/1E3,k=Bq(f,k));r=new Date(r);if(isNaN(r.getTime()))return"Invalid date";n=n(r);if(!c)return n;k= (k>=0?"+":"")+e(k);return n.replace("_tzhereplz_",k)}} function Qq(){var a=th("02.0f");return function(b){if(b==null)return"null";typeof b==="string"&&(b=+b);var c=b>=0?"":"-";b=Math.abs(b);var e=Math.floor(b/36E8);b-=e*36E8;b=Math.floor(b/6E7);return""+c+a(e)+":"+a(b)}} ;var Tq=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Uq="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Tq),Vq=["MIN","MAX"].concat(Tq),Wq={},Xq=(Wq[["string"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return String},tc:"",zc:"aplos-string-cell",qc:Tq,Hb:1,kc:"string",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";if(typeof a!=="string")return String(a);a=a.replace(/\\/g,"\\\\");a=a.replace(/"/g,'\\"');a=a.replace(/\n/g,"\\n");a=a.replace(/\r/g,"\\r");return'"'+a+'"'}},Wq[["decimal"]]={Wb:void 0,Cc:!1,rc:"decimal",vc:oh,tc:".2f",zc:"aplos-numeric-cell",qc:Uq,Hb:2,kc:"number",xc:function(a){return a},oc:function(a){return"SUM("+a+")"},nc:String},Wq[["integer"]]={Wb:void 0,Cc:!1,rc:"integer",vc:oh,tc:".0f",zc:"aplos-numeric-cell",qc:Uq,Hb:2,kc:"number",xc:function(a){return a},oc:function(a){return"SUM("+a+")"},nc:String},Wq[["time_us"]]={Wb:.001,Cc:!1,rc:"integer",vc:Oq,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){Fd(a)&&(a=a.getTime()*1E3);return String(a)}},Wq[["time_ms"]]={Wb:1,Cc:!1,rc:"integer",vc:Pq,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){Fd(a)&&(a=a.getTime());return String(a)}},Wq[["timestamp"]]={Wb:.001,Cc:!1,rc:"integer",vc:Oq,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"TIMESTAMP_MICROS("+a+")"}},Wq[["date"]]={Wb:.001,Cc:!0,rc:"integer",vc:function(a){return Oq(a,"UTC")},tc:"%Y-%m-%d",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Wq[["datetime"]]={Wb:.001,Cc:!0,rc:"integer",vc:function(a){return Oq(a,"UTC")},tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Wq[["boolean"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return String},tc:"",zc:"",qc:Tq,Hb:4,kc:"boolean",xc:function(a){return a},oc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},nc:String},Wq[["hll_sketch"]]={Wb:void 0,Cc:!1,rc:"integer",vc:oh,tc:".0f",zc:"aplos-numeric-cell",qc:["HLL_COUNT.MERGE"],Hb:2,kc:"number",xc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},oc:function(a){return"HLL_COUNT.MERGE("+a+")"},nc:String},Wq[["message"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return function(a){return JSON.stringify(a,null,2)}},tc:"",zc:"aplos-string-cell",qc:[],Hb:1,kc:"object",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},nc:String},Wq[["array"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return function(a){return JSON.stringify(a,null,2)}},tc:"",zc:"aplos-string-cell",qc:[],Hb:1,kc:"object",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},nc:String},Wq[["kll_int64"]]={Ij:!0,Wb:void 0,rc:"integer",vc:oh,tc:".0f",zc:"aplos-numeric-cell",qc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Hb:2,kc:"number",xc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},oc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},nc:String},Wq[["kll_double"]]={Ij:!0,Wb:void 0,rc:"decimal",vc:oh,tc:".2f",zc:"aplos-numeric-cell",qc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Hb:2,kc:"number",xc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},oc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},nc:String},Wq);function Yq(a){if(typeof a==="string")return"string";if(typeof a==="number")return"decimal";if(typeof a==="boolean")return"boolean";if(Fd(a))return"timestamp";if(a==null)return"string";throw Error("Unknown filter value type: "+a);} ;var Zq={EQUALS:"=",GREATER_THAN:">",LESS_THAN:"<",GREATER_THAN_EQUALS:">=",LESS_THAN_EQUALS:"<=",NOT_EQUALS:"!=",IN:"IN",NOT_IN:"NOT_IN",BETWEEN:"BETWEEN",NOT_BETWEEN:"NOT_BETWEEN",IS_NULL:"IS_NULL",IS_NOT_NULL:"IS_NOT_NULL",IS_INFINITY:"IS_INFINITY",IS_NOT_INFINITY:"IS_NOT_INFINITY",IS_NAN:"IS_NAN",IS_NOT_NAN:"IS_NOT_NAN",CONTAINS:"CONTAINS",DOES_NOT_CONTAIN:"DOES_NOT_CONTAIN",REGEX:"REGEX",NOT_REGEX:"NOT_REGEX"};Od("aplos.data.FilterOperator",Zq);function $q(a,b,c){return ar(b).nb(a,c)} function br(a,b){return(a=ar(a).ve)?a(b):b} var cr={},ir=(cr["="]={nb:function(a,b){return b[0]==="null"?dr(a):a+" = "+b[0]},ve:null},cr[">"]={nb:function(a,b){return a+" > "+b[0]},ve:function(a){return[er(a)]}},cr["<"]={nb:function(a,b){return a+" < "+b[0]},ve:function(a){return[fr(a)]}},cr[">="]={nb:function(a,b){return a+" >= "+b[0]},ve:function(a){return[er(a)]}},cr["<="]={nb:function(a,b){return a+" <= "+b[0]},ve:function(a){return[fr(a)]}},cr["!="]={nb:function(a,b){return b[0]==="null"?gr(a):a+" != "+b[0]}},cr.IN={nb:function(a,b){if(b==null||b.length===0)return"true = false";b=b.slice();var c=af(b,function(e){return e==="null"});if(c&&b.length===0)return dr(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+dr(a)+")":b}},cr.NOT_IN={nb:function(a,b){if(b==null||b.length===0)return"true = true";b=b.slice();var c=af(b,function(e){return e==="null"});if(c&&b.length===0)return gr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+gr(a)+")":b}},cr.BETWEEN={nb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},ve:function(a){return Kh(a)}},cr.NOT_BETWEEN={nb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},ve:function(a){return Kh(a)}},cr.IS_NULL={nb:dr},cr.IS_NOT_NULL={nb:gr},cr.IS_INFINITY={nb:function(a){return"IS_INF("+a+")"}},cr.IS_NOT_INFINITY={nb:function(a){return"NOT(IS_INF("+a+"))"}},cr.IS_NAN={nb:function(a){return"IS_NAN("+a+")"}},cr.IS_NOT_NAN={nb:function(a){return"NOT(IS_NAN("+a+"))"}},cr.CONTAINS={nb:function(a,b){return hr(a,b[0])}},cr.DOES_NOT_CONTAIN={nb:function(a,b){return"NOT("+hr(a,b[0])+")"}},cr.REGEX={nb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},cr.NOT_REGEX={nb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},cr);function hr(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(jr,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function dr(a){return a+" IS NULL"} function gr(a){return a+" IS NOT NULL"} function ar(a){if(ir[a]==null)throw Error("Unknown filter operator: "+a);return ir[a]} var jr=/([.?*+^$[\]\\(){}|-])/g;function kr(a,b,c){if(typeof a!=="string")return a={zf:a.column!==void 0?a.column:a.zf,operator:a.operator!==void 0?a.operator:a.operator,value:a.value!==void 0?a.value:a.value},Array.isArray(a.value)&&(a.operator==="="?a.operator="IN":a.operator==="!="&&(a.operator="NOT_IN")),a;if(b==null)throw Error("No operator specified.");return{zf:a,operator:b,value:c!==void 0?c:""}} Od("aplos.data.SimpleFilter",function(){});Od("aplos.data.SimpleFilter.Operator",Zq);Od("aplos.data.SimpleFilter.buildFromFilterOrValues",kr);function lr(a){for(var b=0;be&&(f=1));return f!=null?a==="ASC"?f:-1*f:0} var rr=nr.bind(null,"ASC",!1);function qr(a){return a==null?0:a===-Infinity?2:a===Infinity?4:typeof a==="number"&&isNaN(a)?1:3} var or=!1,pr=/^-?[0-9]*(\.)?[0-9]+$/;Od("aplos.data.util.toFilterExpression",function(a,b,c,e){b=b===void 0?"=":b;c=c===void 0?!0:c;if(c===!0&&b==="=")return a;var f=[];c!==void 0&&(c=Array.isArray(c)?c:[c],c=br(b,c),c.forEach(function(k){var n=e==null?Yq(k):e;f.push(Xq[n].nc(k))}));return $q(a,b,f)});Od("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return c[b]!=null})});Od("aplos.data.util.sort",nr);function sr(a){this.rf=this.Sa=.35;this.ab=this.Rb=null;this.ma=new Set;this.v=[0,1];this.oa=new qk;this.N=0;this.La=!1;this.Va=a!=null?a:2;this.O=!0;this.na=this.Pc=null;this.Zb=!1;this.ka=null;this.Ka=!1;this.Ia=1;this.Oa=0;this.ta=null;this.Ya=1;this.qf=this.Dc=this.we=this.nf=this.ha=null;this.tf=new Ai(0,0);this.Ca=this.ya=null;this.wc=void 0;this.lg=new tr(this);ur(this)} w=sr.prototype;w.Bi=function(a){this.Va=a;this.O=!0;return this};w.tk=function(a){this.Sa=a;this.Va==2&&this.Bi(this.Va);return this};w.km=function(){return this.Sa};w.qk=function(a,b){this.Rb=a;this.ab=b;this.O=!0;return this};w.eh=function(a){this.qf=a;return this};w.Oe=function(){return this.qf};w.ub=function(){return this.oa};w.fg=function(a){this.oa=a;return this};w.Tk=function(a){this.Pc=a;return this};w.Gi=function(a){this.na=a;this.Ka||(this.ka=null);this.na instanceof vr&&(a=this.na.Ig(),typeof a==="function"&&this.Md(a));this.O=!0;return this};w.wn=function(){return this.na};w.nk=function(a){this.La=a;this.O=!0;return this};w.Md=function(a){this.wc=a;this.Va===2&&(this.O=!0)};function wr(a){a.ma.clear();a.Ka||(a.ka=null);a.O=!0} function xr(a,b,c,e){for(var f=0;fe[0]!=e[1]>e[0]!=f[1]>f[0]?er(c):fr(c)} function Ar(a,b){return a.Pc||b||function(c){return c!=null?c.toString():""}} w.bandwidth=function(){ur(this);return this.Va==2?this.Ja.bandwidth():this.ta?this.Ya===2?this.Ja(this.ta)-this.Ja(0):this.ta||0:0};w.Ok=function(a){this.ka=a;this.Ka=a!=null;this.zi(1,0);return this};w.zi=function(a,b){this.Ia=a;this.Oa=b;this.O=!0};function Br(a,b,c,e,f,k,n){a.Zb!==k&&(a.O=!0);a.ha=b;a.nf=c;a.we=e;a.N=f;a.Zb=k;a.Dc=n} w.Hh=function(){var a=Fh(this.N);this.Oe()==null&&this.oa.ek(this.ha);return{position:a,Pf:10}};w.kg=function(a){var b=Fh(this.N);b=Vg(a,this.Oe(),b);if(b!=null)return b;b=this.range();this.range(this.N===1||this.N===3?[a.height,0]:[0,a.width]);var c=Cr(this,this.Dc);a=this.oa.mh(this.ha,c,this.N,a,this.bandwidth(),this.Ca);this.range(b);return a};w.dh=function(a){var b=a.right-a.left,c=a.bottom-a.top;if(this.N===1||this.N===3){var e=this.range();this.range(e[0]<=e[1]?[0,c]:[c,0])}else this.range([0,b]);this.tf=new Ai(b,c);this.ya=a};w.Ne=function(){return this.ya};w.render=function(a,b){if(this.ha){var c=this.ya;this.ha.attr("transform","translate("+((this.N==1?c.right:c.left)-a.Lb())+", "+((this.N==2?c.bottom:c.top)-a.Mb())+")");c=Cr(this,this.Dc);var e=zr(this,0);if(isNaN(e))switch(this.N){case 0:e=a.Ab();break;case 1:e=0;break;case 3:e=a.Za();break;case 2:e=0}var f={top:a.Mb(),right:a.Lb()+a.Za(),bottom:a.Mb()+a.Ab(),left:a.Lb()};this.oa.render(this.ha,c,this.N,new Ai(a.Za(),a.Ab()),this.tf,this.bandwidth(),b,this.Ca,this.nf,e,this.we,this.ya,f)}};function Cr(a,b){ur(a);var c=Dr(a),e=a.Pc;c.We()||(e=Ar(a,b));b=c.Nb(a.Va==2?null:a.Ja.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ma),e,a,a.lg).map(function(k){k&&k.value!==void 0||(k={value:k});k.location===void 0&&(k.location=Math.round(Uo(this,k.value)));return k},a).filter(function(k){return k.location>=Math.min(this.v[0],this.v[1])&&k.location<=Math.max(this.v[0],this.v[1])},a);var f=b.map(function(k){return k.value});b.forEach(function(k){k.label==null&&(k.label=e(k.value,f));k.label=k.label.toString()},a);return b} function Er(a){if(!a.ka)if(a.Va==2){var b=Array.from(a.ma);b.length>0&&(a.ka=[b[0],b[b.length-1]])}else{var c=Math.abs(a.v[0]-a.v[1]);b=Array.from(a.ma);b.length||(b=[0,1]);var e=Kh(b);b=Dr(a).Ed(e,c,b).map(function(f){return f.value!==void 0?f.value:f});a.ka=a.Va===1?[b.length?fr(b):Infinity,b.length?er(b):-Infinity]:[Math.min(e[0],b.length?fr(b):Infinity),Math.max(e[1],b.length?er(b):-Infinity)]}return a.ka||[]} function ur(a){if(a.O){switch(a.Va){case 0:a.Ja=Zh();break;case 2:a.Ja=ei(a.Sa,a.rf,!a.Zb);break;case 1:a.Ja=bi();break;case 3:a.Ja=hi();break;default:throw Error("Unknown scale type: "+a.Va);}a.Rb!=null&&a.ab!=null&&a.Ja.outerPaddingStartPx&&a.Ja.outerPaddingEndPx&&(a.Ja.outerPaddingStartPx(a.Rb||0),a.Ja.outerPaddingEndPx(a.ab||0));if(a.Va==2)typeof a.wc==="function"&&a.Ja.domainOverride&&a.Ja.domainOverride(a.wc),a.La&&a.Ja.autoOrderDomain&&a.Ja.autoOrderDomain(a.La),a.Ja.domain(Array.from(a.ma)),a.Ja.range([a.v[0]*a.Ia+a.Oa,a.v[1]*a.Ia+a.Oa]);else{var b=Er(a),c=a.v.map(function(f){return(f-this.Oa)/this.Ia},a),e=a.Va==1?ki:ji;a.Ja.range(a.v).domain([e(c[0],a.v,b),e(c[1],a.v,b)])}a.O=!1}} function Dr(a){if(a.na){if(a.na instanceof vr){var b=a.na,c=a.Ja.copy();b.Ja=c}return a.na}b=new vr(a.Va);a=a.Ja.copy();b.Ja=a;return b} Od("aplos.chart.AplosAxis",sr);sr.prototype.setMaxViewportExtent=sr.prototype.Ok;sr.prototype.setNicingFunction=sr.prototype.Md;sr.prototype.setAutoOrderDomain=sr.prototype.nk;sr.prototype.getTickProvider=sr.prototype.wn;sr.prototype.setTickProvider=sr.prototype.Gi;sr.prototype.setTickFormatter=sr.prototype.Tk;sr.prototype.setRenderer=sr.prototype.fg;sr.prototype.getRenderer=sr.prototype.ub;sr.prototype.getLayoutSize=sr.prototype.Oe;sr.prototype.setLayoutSize=sr.prototype.eh;sr.prototype.setAxisMargin=sr.prototype.qk;sr.prototype.getBarGroupPaddingPct=sr.prototype.km;sr.prototype.setBarGroupPaddingPct=sr.prototype.tk;sr.prototype.setScaleType=sr.prototype.Bi;function vr(a){this.Ja=null;this.Va=a;this.wc=void 0;this.Yj=!1} w=vr.prototype;w.Un=function(a){this.Yj=a;return this};function Fr(a,b){switch(a.Va){case 0:return b==null?[0,1]:b==0?[0,1]:[0,2*b].sort(function(c,e){return c-e});case 1:return b<=0?[1,10]:[b/Math.sqrt(10),b*Math.sqrt(10)];case 3:return b==null?(a=Date.now(),[a-864E5,a]):[+b-432E5,+b+432E5];default:throw Error("Unsupported scale type: "+a.Va);}} w.Md=function(a){this.wc=a};w.Ig=function(){return this.wc};w.We=function(){return!1};w.Nb=function(a,b,c,e,f,k){this.Ja&&this.Ja.ticks?(typeof this.wc==="function"&&this.Ja.domainOverride&&this.Ja.domainOverride(this.wc),a[0]==a[1]&&(a=Fr(this,a[0])),a=this.Ja.domain(a||c).range([0,b]).ticks().map(function(t){return typeof t==="number"?+t.toFixed(7):t})):a=c;if(this.Yj&&k&&f){var n=2,r=To(a,f,e);for(e=r;k.v.oa&&k.v.ha&&k.v.oa.Pi(e,k.v.ha,k.v.N)&&e.length>2;)e=r.filter(function(t,y){return y==r.length-1||y%n==0}),n++;return e}return a};w.Ed=function(a,b,c){b=this.Nb(a,b,c);return b.length?Kh(b):a};Od("aplos.chart.AplosAxisTickProvider",vr);vr.prototype.omitCollidingLabels=vr.prototype.Un;function tr(a){this.v=a} ;function Gr(){qk.call(this);this.Nd(!1);this.zd(!0);this.Od(!0);this.te(0);this.Ad(0);this.ha=20;this.O=45;this.re(6)} cd(Gr,qk);Od("aplos.chart.GridlinesAxisRenderer",Gr);function Hr(){qk.call(this);this.La=new Ai(0,0);this.Sa=void 0} cd(Hr,qk);w=Hr.prototype;w.render=function(a,b,c,e,f,k,n,r,t,y,E,ma,na){f=this.La;qk.prototype.render.call(this,a,b,c,e,f,k,n,r,t,y,E,ma,na)};w.mh=function(a,b,c,e,f,k){b=c==1||c==3;this.La=new Ai(e.width,e.height);f={width:e.width,height:e.height};e={width:e.width,height:e.height};var n=0;k!=null&&k!=""&&(n=il(a,k));a=this.oa;b?(f.width=0,e.width=0,n>0&&(a=c==3?a+Math.floor(n/2):a,e.width+=n+a)):(f.height=n,e.height=n,n>0&&(e.height+=n+a));return{Ba:f,rb:e,Bc:!1}};w.Lh=function(a,b,c,e,f){var k="middle",n=0,r=0,t="";this.Sa=yj(b.node(),"MWpgy09",void 0,!0);b=f.label.split("\n").length*this.Sa;f=a.na;var y=a.v,E=a.Ia;switch(c){case 0:n=E?y:0;r=-1*(b+f+y);t=".71em";k=E?"start":"middle";break;case 2:n=E?y:0;r=b+y+f;t="0em";k=E?"start":"middle";break;case 1:n=y+f;r=E?-1*b/2:0;t=".32em";k="left";break;case 3:n=-1*(y+f),r=E?-1*b/2:0,t=".32em",k="right"}switch(a.ka){case 3:if(c===1||c===3)r=-(e/2-y),t=".71em";break;case 1:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n= -(e/2-y),k="left";break;case 4:if(c===1||c===3)r=e/2-y;break;case 2:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n=e/2-y,k="right"}return{anchor:k,x:n,y:r,dy:t,mr:n,nr:null}};w.Bj=function(a,b,c,e){var f=0,k=0,n=0;switch(a){case 0:n=-1*(b.top-e.top);k=n+c.height;break;case 2:n=c.height;break;case 1:f=c.width;break;case 3:f=-1*c.width}return{x2:f,y1:k,y2:n}};w.Cj=function(a,b,c,e){var f=0,k=0,n=0,r=0,t=a.na;switch(b){case 0:r=-1*t;break;case 2:r=t;break;case 1:n=t;break;case 3:n=-1*t}switch(a.ka){case 3:if(b===1||b===3)n=n/Math.abs(n)*c.width,k=-e/2,r=-e/2;break;case 1:if(b===2||b===0)f=-e/2,n=-e/2;break;case 4:if(b===1||b===3)n=n/Math.abs(n)*c.width,k=e/2,r=e/2;break;case 2:if(b===2||b===0)f=e/2,n=e/2}return{x1:f,y1:k,x2:n,y2:r}};Od("aplos.chart.InsideAxisRenderer",Hr);function Ir(){Hr.call(this);this.Nd(!1);this.zd(!0);this.Od(!0);this.te(0);this.Ad(0);this.ha=20;this.O=45;this.re(6)} cd(Ir,Hr);Od("aplos.chart.InsideGridlinesAxisRenderer",Ir);function Jr(){Hr.call(this);this.Nd(!0);this.zd(!1);this.Od(!1);this.te(0);this.Ad(6);this.ha=20;this.O=45;this.re(0)} cd(Jr,Hr);Od("aplos.chart.InsideTicksAxisRenderer",Jr);function Kr(){qk.call(this);this.Nd(!1);this.zd(!1);this.Od(!1);this.te(0);this.Ad(0);this.ha=20;this.O=45;this.re(6)} cd(Kr,qk);Od("aplos.chart.LabelsAxisRenderer",Kr);function Lr(){} Lr.prototype.render=function(a,b,c,e,f,k,n,r,t,y,E){a.selectAll("*").remove();if(t!=null){a="."+Mr;switch(c){case 0:a+="."+Nr;break;case 1:a+="."+Or;break;case 3:a+="."+Pr;break;case 2:a+="."+Qr}t.selectAll(a).remove()}if(E!=null){t="."+Rr;switch(c){case 0:t+="."+Sr;break;case 1:t+="."+Tr;break;case 3:t+="."+Ur;break;case 2:t+="."+Vr}E.selectAll(t).remove()}};Lr.prototype.ek=function(){};Lr.prototype.Pi=function(){return!1};Lr.prototype.mh=function(a,b,c,e){a={width:e.width,height:e.height};e={width:e.width,height:e.height};c==1||c==3?(a.width=0,e.width=0):(a.height=0,e.height=0);return{Ba:a,rb:e,Bc:!0}};var Rr="axis-line",Mr="baseline",Sr="x-axis-line",Nr="x-axis-baseline",Vr="x2-axis-line",Qr="x2-axis-baseline",Tr="y-axis-line",Ur="y2-axis-line",Or="y-axis-baseline",Pr="y2-axis-baseline";function Wr(){qk.call(this);this.Nd(!0);this.zd(!1);this.Od(!1);this.te(0);this.Ad(6);this.ha=20;this.O=45;this.re(6);this.ab=!0} cd(Wr,qk);Wr.prototype.hk=function(a,b){(b===0||b===2)&&a.length>1&&(a[0].oh=1,a[a.length-1].oh=2)};Wr.prototype.Lh=function(a,b,c,e,f){b="middle";var k=0,n=0,r="",t=a.na,y=a.v;f=jl(this,f);switch(c){case 0:n=y+t;r=".71em";b=f===1?"left":f===2?"right":"middle";break;case 2:n=-1*(y+t);r="0em";b=f===1?"left":f===2?"right":"middle";break;case 1:k=-1*(y+t);r=".32em";b="right";break;case 3:k=y+t,r=".32em",b="left"}switch(a.ka){case 3:if(c===1||c===3)n=-(e/2-y),r=".71em";break;case 1:if(c===2||c===0)n=n/Math.abs(n)*.4+"em",k=-(e/2-y),b="left";break;case 4:if(c===1||c===3)n=e/2-y;break;case 2:if(c===2|| c===0)n=n/Math.abs(n)*.4+"em",k=e/2-y,b="right"}return{anchor:b,x:k,y:n,dy:r}};Od("aplos.chart.OuterJustifiedTicksAxisRenderer",Wr);function Xr(){qk.call(this);this.Nd(!0);this.zd(!1);this.Od(!1);this.te(0);this.Ad(6);this.ha=20;this.O=45;this.re(6)} cd(Xr,qk);Od("aplos.chart.TicksAxisRenderer",Xr);function Yr(){this.Qn=100;this.jh=Xp;for(var a=Zr,b=0,c=Mc(Object.values(a)),e=c.next();!e.done;e=c.next())e=e.value,b=Math.max(b,jh(e.tick,"\n"),jh(e.transition||"","\n"),jh(e.Gc||"","\n"));c=Mc(Object.values(a));for(e=c.next();!e.done;e=c.next())e=e.value,e.tick=$r(e.tick,b)||"",e.transition=$r(e.transition,b),e.Gc=$r(e.Gc,b);this.zh=a;this.Ii=as;this.rh=null;this.kp=0} w=Yr.prototype;w.wk=function(a){(a=this.rh=a)&&Xq[a].Wb!==void 0&&Xq[a].Cc===!0&&(this.jh="UTC");return this};w.We=function(){return!0};w.Nb=function(a,b,c,e){if(b<=0)return[];var f=this.rh||bs(c),k=1E3*Xq[f].Wb;f=a[0]>a[1];c=Kh(c);a=Kh(a);c[1]-c[0]===0&&(a=c=[c[0]-36E8,c[0]+36E8]);var n=+c[0]*k;c=+a[0]*k;a=+a[1]*k;var r=ds(this,(a-c)/(b/this.Qn));b=r.interval;r=r.unit;var t=e;e&&(t=function(ta){return e(ta/1E3)});var y=t||es(this,this.zh[r].tick),E=t||es(this,this.zh[r].Gc);t=t||es(this,this.zh[r].transition);var ma=fs(r);n=this.Cg(b,r,c,n);for(var na=[];n<=a;){if(n>=c){var sa=y(n),ua="minor";ma&&this.lf(n,ma)===n&&(ua="major",t&&(sa=t(n)));na.push({value:n,Mh:ua,label:sa})}n=this.De(n,r,b)}E&&na.length&&(na[0].label=E(na[0].value));k!==1&&na.forEach(function(ta){ta.value=ta.value/k});return f===!1?na:na.reverse()};w.Ed=function(a,b,c){b=this.Nb(a,b,c);return b.length?Kh(b,function(e){return e.value}):a};function ds(a,b){for(var c=Mc(a.Ii),e=c.next();!e.done;e=c.next())if(e=e.value,gs[e.unit]*e.interval>=b)return e;return a.Ii[a.Ii.length-1]} function fs(a){switch(a){case "MONTH":case "WEEK":return"YEAR";case "DAY":return"MONTH";case "HOUR":return"DAY";case "MINUTE":return"HOUR";case "SECOND":return"MINUTE";case "MILLISECOND":return"SECOND"}return null} w.lf=function(a,b){return uq(a,b,this.jh)};w.De=function(a,b,c){return Aq(a,b,c,this.jh)};function es(a,b){return b?Oq(b,a.jh):null} w.Cg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return b==="WEEK"?(b=this.lf(e,"WEEK"),b=this.De(b,"DAY",this.kp),a*=7):b=this.lf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.De(b,"DAY",c);default:return b=fs(b)||"YEAR",this.lf(c,b)}};function bs(a){a=Kh(a);return a[0]>3E11&&a[0]<18E11?"time_ms":"timestamp"} function $r(a,b){if(!a)return a;var c=jh(a||"","\n");return c1E13?"microseconds":"date":typeof f==="number"?f>1E13?"microseconds":"milliseconds":null;if(!f)throw Error("Unsupported date type.");var k=f==="microseconds"?.001:1,n=+a[0]*k,r=+a[1]*k,t=r=c[1]&&(a=ns(this.Rh),r-n=ns(b.Eb)&&(b.Eb=null);a=ns(b.step)/a;ans(b.Eb)&&(b.Eb=b.step));this.Og=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new nq;c.setTime(n);n=this.Cg(c,b.step);c=b.Eb?this.Cg(c,b.Eb):null;y=[];for(var E=!1;n.getTime()<=r;){var ma={};a:switch(f){case "milliseconds":var na= n.getTime();break a;case "microseconds":na=n.getTime()*1E3;break a;default:na=new Date(n.getTime())}ma.value=na;c&&b.Eb&&c.getTime()<=n.getTime()?(ma.type="transition",ma.label=a(new Date(n.getTime())),ps(c,b.Eb),E=!0):ma.label=e(new Date(n.getTime()));y.push(ma);ps(n,b.step)}c&&y.length&&!E&&(y[0].type="transition",y[0].label=a(new Date(y[0].value*k)));t&&y.reverse();return y};w.Ed=function(a,b,c){b=this.Nb(a,b,c);return b.length?Kh(b,function(e){return e.value}):a};w.Cg=function(a,b){if(b.N)var c=new nq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=new nq(a.getFullYear(),Math.ceil(a.getMonth()/b.months)*b.months);else if(b.days){c=a.getDate();for(var e=a.getFullYear(),f=a.getMonth()-1;f>=0;f--)c+=gq(e,f);c=new nq(a.getFullYear(),0,Math.ceil(c/b.days)*b.days);b.days%7===0&&c.setDate(c.getDate()-c.getDay()+this.Ji)}else if(b.O)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),Math.ceil(a.getHours()/b.O)*b.O);else if(b.ha)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),Math.ceil(a.getMinutes()/b.ha)*b.ha);else if(b.v>=1)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),Math.ceil(a.getSeconds()/b.v)*b.v);else if(b.v)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),Math.ceil(.001*a.getMilliseconds()/b.v)*b.v*1E3);else throw Error("Zero step is not valid.");c.getTime()=n&&(!e||r==Math.round(r))&&c*r+this.Te(b,r)>=b[1]);t++);return(k?-1:1)*r};function ss(a){return a<0?a+2E-10:a>0?a-2E-10:a} w.Te=function(a,b){var c=Math.ceil(a[0]/b)*b;c>a[0]&&(c-=b);return c};qs.prototype.getDefaultViewport=qs.prototype.Ed;qs.prototype.getTicks=qs.prototype.Nb;qs.prototype.getNicingFunction=qs.prototype.Ig;qs.prototype.getDynamicTicks=qs.prototype.Bm;qs.prototype.setDynamicTicks=qs.prototype.ah;qs.prototype.getIntIntervalsOnly=qs.prototype.Mm;qs.prototype.setIntIntervalsOnly=qs.prototype.Fk;qs.prototype.getNiceCoefficients=qs.prototype.an;qs.prototype.setNiceCoefficients=qs.prototype.wi;qs.prototype.getNumTicks=qs.prototype.bn;qs.prototype.setNumTicks=qs.prototype.xi;var rs=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];Od("aplos.chart.BaseTickProvider",qs);function ts(){qs.call(this);this.ah(!0);this.wi([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Ng=!1} cd(ts,qs);ts.prototype.Ch=function(a,b,c,e){if(b===0&&(c[0]>0&&c[1]<0||c[0]<0&&c[1]>0))return[0];if(c[1]-c[0]===0)return[c[0]];a=this.Re(a,c,b,e);e=this.Te(c,a);var f=[];if(this.Ng){f.push(c[0]);if(b===0)return f;if(b===1)return f.push(c[1]),f}b=this.Ie?b+2:b;for(var k=0;k<=b;k++){var n=k*a+e;if(n>c[1])break;if(this.Ng){if(n-c[0]=n){var na=this.Te(b,ma);if(c*ma+na>b[1])if(e)if(na=Math.floor((b[1]-na)/ma)+1,na>y)y=na;else break;else break;r=ma}t=ma}}r===null&&(r=t!==null?t:1);return(k?-1:1)*r};ts.prototype.Te=function(a,b){return Math.ceil(a[0]/b)*b};Od("aplos.chart.DataTickProvider",ts);function us(){} us.prototype.We=function(){return!0};us.prototype.Nb=function(a,b,c,e,f){a=vs(c||a);b=[];f?(b=To(a,f,e),b.forEach(function(k){var n=!e;Math.log(Math.abs(+k.value))*Math.LOG10E%1===0?(k.label=n?ws(k.value):k.label,k.Mh="major"):(k.label="",k.Mh="minor")})):b=a;return b};us.prototype.Ed=function(a,b,c){return Kh(vs(c||a))};function vs(a){a=a.filter(function(k){return k!==0});var b=Kh(a),c=b[0],e=b[1];c<=0&&e>=0&&(a=a.filter(function(k){return k>0}),c=fr(a));a=e>0?1:-1;b=Oh(e>0?c:-e);c=Math.log(e>0?e:-c)*Math.LOG10E;c=c%1?Math.floor(c+1):c;b===c&&(b>0?b--:c++);for(e=[];b<=c;b++)for(var f=1;f<10&&(e.push(a*(f+"e"+b)),b!==c);f++);a===1||e.reverse();return e} function ws(a){var b=a<0?"-":"";a=Math.log(Math.abs(a))*Math.LOG10E;if(a===0)return b+"1";if(a===1)return b+"10";a=(""+a).split("").map(function(c){return c==="-"?"-":"\u2070\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079"[c]}).join("");return b+"10"+a} Od("aplos.chart.LogTickProvider",us);function xs(){this.ih=[]} xs.prototype.We=function(){return!1};xs.prototype.Nb=function(){return this.ih.map(function(a){return a&&a.value!==void 0?Vh(a):a})};xs.prototype.Ed=function(a){return this.ih.length?Kh(this.ih,function(b){return b.value!=null?b.value:b}):a};xs.prototype.Uk=function(a){this.ih=a.slice();return this};xs.prototype.setTicks=xs.prototype.Uk;xs.prototype.getDefaultViewport=xs.prototype.Ed;xs.prototype.getTicks=xs.prototype.Nb;Od("aplos.chart.ManualTickProvider",xs);function ys(){qs.call(this)} cd(ys,qs);ys.prototype.Ch=function(a,b,c,e){Math.abs(c[0]-c[1])>4E-10&&(c=[ss(c[0]),ss(c[1])]);if(c[0]>=0)var f=0;else if(c[1]<=0)f=b;else{if(b===1)return Kh(zs(this,a,2,1,c,e));f=Math.round(Math.abs(c[0])/(c[1]-c[0])*b);f===0?f=1:f===b&&(f=b-1)}c[1]-c[0]===0&&(c[1]>0?c=[0,c[1]*1.25]:c[1]<0&&(c=[c[0]*1.25,0]));return zs(this,a,b,f,c,e)};function zs(a,b,c,e,f,k){c=Math.max(1,c);var n=0;f[0]<0&&(n=a.Re(b,[f[0],0],e,k));var r=0;f[1]>0&&(r=a.Re(b,[0,f[1]],c-e,k));f[1]-f[0]===0&&(r=b[0]);a=Math.max(Math.abs(n),r);b=[];for(f=0;f<=c;f++)b[f]=f*a-e*a;return b} Od("aplos.chart.QuantumTickProvider",ys);function As(){qs.call(this);this.Bf=new ys} cd(As,qs);As.prototype.Nb=function(a,b,c,e,f,k){if(this.ke>2&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0)){if(this.Ie)this.Bf.ah(!0);else{var n=this.ke;n!=null&&this.Bf.xi(n)}this.Bf.wi(this.Ug);n=this.Ig();n!=void 0&&this.Bf.Md(n);return this.Bf.Nb(a,b,c,e,f,k)}return qs.prototype.Nb.call(this,a,b,c,e,f,k)};As.prototype.Ch=function(a,b,c,e){b=Math.max(1,b);c[1]-c[0]===0&&(c[1]>0?c=[c[0]*.75,c[1]*1.25]:c[1]<0&&(c=[c[0]*1.25,c[1]*.75]));if(b==1&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0))return b=[0,Math.min(Math.abs(c[0]),Math.abs(c[1]))],b=b[1]-b[0]===0?a[0]:this.Re(a,b,1,e),a=this.Te(c,b),e=Math.ceil(c[1]/b)*b,e=0,n=Pe(r,"truncate")>=0);b.Ya=n;b.O=k?45:0;e.axisTitlePaddingPx!==void 0&&b.rk(+e.axisTitlePaddingPx);e.tickRotateDegrees!=null&&(b.ya=+e.tickRotateDegrees);e.showTickMarks!==void 0&&e.showTickMarks==1?b.Ad(c):b.Ad(0);e.minPxBetweenLabels!==void 0&&(b.N=+e.minPxBetweenLabels);e.minPxBetweenTicks!==void 0&&(b.ha=+e.minPxBetweenTicks);a.type==="log"&&(b.ha=0);e.showBaseline!==void 0&&b.zd(e.showBaseline);e.showAxisLine!==void 0&&b.Nd(e.showAxisLine);e.showGridlines!==void 0&&b.Od(e.showGridlines)}return f} function Ks(a,b,c){var e=a.type.toLowerCase(),f=Fs(a).scaleType,k=null,n=Fs(a),r=n.nicing,t=a.ticks||{},y=a.extents||{},E=null;y.type=="fixed"&&Array.isArray(y.values)&&y.values.length>1&&(E=y.values);y=t.type||"default";switch(n.tickProviderType(y,c,E)){default:throw Error("Invalid axis ticks type: "+y);case "ordinal":if(e!="ordinal")throw Error('"ordinal" ticks type can only be used with an "ordinal" axis type');k=new vr(f);break;case "data":k=new ts;break;case "endpoints":k=new ts;k.Ng=!0;break;case "tight":e==="log"?k=new us:e==="time"?k=new js:e==="ordinal"?k=new vr(f):k=new As;break;case "fixed":if(Array.isArray(t.values))f=t.values.map(function(ma){var na={value:e=="ordinal"?ma.value:+ma.value};ma.hasOwnProperty("label")&&(na.label=ma.label);return na}),k=new xs,k.Uk(f);else throw Error('No tick values found for "fixed" tick provider');break;case "quantum":e==="time"?k=new Yr:k=new ys}k&&k.Md&&(r=t.nicing||r,f=k,typeof r==="string"&&Cs[r]?f.Md(Cs[r]):typeof r==="function"&&f.Md(r));a.columnType&&k&&k.wk&&k.wk(a.columnType);k instanceof qs&&(t.integerOnly&&k.Fk(!!t.integerOnly),b?k.xi(b):c&&k.ah(!0));return k} function Hs(a,b){var c=b.ticks||null;c=c&&c.format?c.format:null;b=Fs(b).tickFormatter(c);b!=null&&a.Tk(b)} function Is(a,b){b.extents&&b.extents.type&&b.extents.type==="fixed"&&Array.isArray(b.extents.values)&&a.Ok(b.extents.values)} function Js(a,b){b.layout&&(b=b.layout,b.type&&b.type==="fixed"&&b.size!==void 0&&a.eh(+b.size))} function Fs(a){var b=a.type.toLowerCase();if(Ls[b])return Ls[b];throw Error("Invalid axis scale: "+a.type);} Od("aplos.chart.AxisSpecParser",Ds);Ds.prototype.createMeasureAxisForSpec=Ds.prototype.lj;Ds.prototype.createDomainAxisForSpec=Ds.prototype.kj;var Ls={linear:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:oh(a));return b},tickProviderType:function(a,b,c){return a=="default"?c!=null&&c.length>1&&(c[0]>=0||c[1]<=0)?b?"data":"tight":b?"data":"quantum":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:0,showDomainAxisLine:!0,showBaseline:!0},log:{nicing:"tight",tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:oh(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:1,showDomainAxisLine:!0,showBaseline:!1},ordinal:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:oh(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a){return a=="default"?"labels":a},scaleType:2,showDomainAxisLine:!1,showBaseline:!1},time:{nicing:"none",tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:Pq(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:3,showDomainAxisLine:!0,showBaseline:!1}};function Ms(){} cd(Ms,Ds);Od("aplos.chart.OldAxisSpecParser",Ms);var Ns=new Ds;Bs.current=Ns;function Os(){} Os.prototype.be=function(){};Os.prototype.Rd=function(){};Od("aplos.chart.ShapeRenderer",Os);function Ps(a,b,c){this.N=c!==void 0?c:!1;this.O=b!==void 0?b:!0;this.ha=a;this.ka="0.6ex"} w=Ps.prototype;w.be=function(a,b,c,e,f,k,n){var r=(this.ha+" "+b).trim();a=a.append("g").attr("class",r);this.Ec(a);a.append("text");this.Rd(a,b,c,e,f,k,n)};w.Rd=function(a,b,c,e,f,k,n){var r=n.strokeWidth!=null?n.strokeWidth:2,t=this.O?"white":k,y=this.Mc(a);y.size()<1&&(y=vj(a.node()),b=(this.ha+" "+b).trim(),y.attr("class",b),y.selectAll("*").remove(),this.Ec(y),y.append("text"),y=this.Mc(a));a=a.select("text");this.Sc(y,a,c,e,f,this.O,r,k,t,this.N?n.label:null)};w.Ec=function(){};w.Mc=function(){};w.Sc=function(){};function Qs(a,b,c,e,f,k,n){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};of||pf?(c.y=e,c.dy=a.ka):(c.dy=e,c["dominant-baseline"]="middle");ti(b,c);b.style("fill",k);b.style("font-size",f*1.25+"px");b.text(n)} Od("aplos.chart.shaperenderer.BaseLabelShape",Ps);function Rs(){Ps.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} cd(Rs,Ps);Rs.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-box-triangle-right-shape");a.append("rect").attr("class","primary");a.append("path").attr("class","secondary")};Rs.prototype.Mc=function(a){return a.select("g.aplos-box-triangle-right-shape")};Rs.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=a.select(".primary");if(E.size()<1)throw Error("No primary path found in update selection");var ma=a.select(".secondary");if(ma.size()<1)throw Error("No secondary path found in update selection");var na=f*2,sa=na/16;ti(a,{fill:r,width:na+"px",height:na+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});ti(E,{rx:2,ry:2,width:f*2,height:f*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});ti(ma,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ sa+")"});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.BoxTriangleRight",Rs);function Ss(a,b){Ps.call(this,"aplos-circle-shape-group",a,b)} cd(Ss,Ps);Ss.prototype.Ec=function(a){a.append("circle").attr("class","aplos-circle-shape")};Ss.prototype.Mc=function(a){return a.select("circle.aplos-circle-shape")};Ss.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){ti(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Circle",Ss);function Ts(){} Ts.prototype.be=function(a,b,c,e,f,k,n,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Rd(a,b,c,e,f,k,n,r,t)};Ts.prototype.Rd=function(a,b,c,e,f,k,n,r,t){ti(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.Cylinder",Ts);function Us(a,b){Ps.call(this,"aplos-equilateral-triangle-shape-group",a,b)} cd(Us,Ps);Us.prototype.Ec=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Us.prototype.Mc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Us.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=.866*f;ti(a,{points:c+","+(e-E)+" "+(c+f+","+(e+E)+" ")+(c-f+","+(e+E)),fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Qs(this,b,c,e+f-E,f,t,y)};Od("aplos.chart.shaperenderer.EquilateralTriangle",Us);function Vs(){Ps.call(this,"aplos-error-shape-group",!0,!1)} cd(Vs,Ps);Vs.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Vs.prototype.Mc=function(a){return a.select("g.aplos-error-shape")};Vs.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(k.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");var E=f*2,ma=2,na=2;if(E>36){var sa="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z";var ua=40;na=ma=4}else E>24?(sa="M18 3C9.72 3 3 9.72 3 18s6.72 15 15 15c8.28 0 15-6.72 15-15S26.28 3 18 3zm1 22h-2v-2h2v2zm0-5h-2v-9h2v9z",ua=30,na=ma=3):E>20?(sa="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",ua=20,na=ma=2.5):E>18?(sa="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z",ua=40):(sa="M9 1.03c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zM10 13H8v-2h2v2zm0-3H8V5h2v5z",ua=16,na=ma=1);ua=E/ua;ti(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f-ma)+", "+(e-f-na)+")"});ti(k,{d:sa,transform:"scale("+ua+")"});ti(n,{cx:f+ma,cy:f+na,r:f*.95,fill:"white","stroke-width":"0"});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.ErrorShape",Vs);function Ws(a,b,c){Ps.call(this,"aplos-oval-shape-group",b,c);this.v=a||1} cd(Ws,Ps);Ws.prototype.Ec=function(a){a.append("ellipse").attr("class","aplos-oval-shape")};Ws.prototype.Mc=function(a){return a.select("ellipse.aplos-oval-shape")};Ws.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){ti(a,{cx:c,cy:e,ry:this.v>=1?f:f*this.v,rx:this.v>1?f/this.v:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Oval",Ws);function Xs(){Ps.call(this,"aplos-pause-shape-group",!0,!1)} cd(Xs,Ps);Xs.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-pause-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Xs.prototype.Mc=function(a){return a.select("g.aplos-pause-shape")};Xs.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(k.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");var E=f*2,ma=1.5,na=1.5;E>36?na=ma=4:E>24?na=ma=3:E>20?na=ma=2.5:E>18&&(na=ma=2);var sa=E/40;ti(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f-ma)+", "+(e-f-na)+")"});ti(k,{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-2 28h-4V16h4v16zm8 0h-4V16h4v16z",transform:"scale("+sa+")"});ti(n,{cx:f+ma,cy:f+na,r:f*.9,fill:"white","stroke-width":"0"});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.PauseShape",Xs);function Ys(a,b,c){Ps.call(this,"aplos-rect-shape-group",b,c);this.v=a||1} cd(Ys,Ps);Ys.prototype.Ec=function(a){a.append("rect").attr("class","aplos-rect-shape")};Ys.prototype.Mc=function(a){return a.select("rect.aplos-rect-shape")};Ys.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=this.v>1?f/this.v:f,ma=this.v>=1?f:f*this.v;ti(a,{x:c-E,y:e-ma,rx:2,ry:2,width:E*2,height:ma*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Rect",Ys);function Zs(){} Zs.prototype.be=function(a,b,c,e,f,k,n,r,t){b=("aplos-rectangle-range-shape "+b).trim();a=a.append("line").attr("class",b);this.Rd(a,b,c,e,f,k,n,r,t)};Zs.prototype.Rd=function(a,b,c,e,f,k,n,r,t){ti(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"butt",stroke:k,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.RectangleRange",Zs);function $s(){Ps.call(this,"aplos-refresh-shape-group",!0,!1)} cd($s,Ps);$s.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-refresh-shape");a.append("path").attr("class","primary");a.append("path").attr("class","secondary")};$s.prototype.Mc=function(a){return a.select("g.aplos-refresh-shape")};$s.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(k.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");f*=1.4;var E=f*2;if(E>36){var ma="M35.3 12.7C32.41 9.8 28.42 8 24 8 15.16 8 8.02 15.16 8.02 24S15.16 40 24 40c7.45 0 13.69-5.1 15.46-12H35.3c-1.65 4.66-6.07 8-11.3 8-6.63 0-12-5.37-12-12s5.37-12 12-12c3.31 0 6.28 1.38 8.45 3.55L26 22h14V8l-4.7 4.7z";var na=48}else E> 24?(ma="M26.47 9.53C24.3 7.35 21.32 6 18 6 11.37 6 6 11.37 6 18s5.37 12 12 12c5.94 0 10.85-4.33 11.81-10h-3.04c-.91 4.01-4.49 7-8.77 7-4.97 0-9-4.03-9-9s4.03-9 9-9c2.49 0 4.71 1.03 6.34 2.66L20 16h10V6l-3.53 3.53z",na=36):E>20?(ma="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",na=24):E>18?(ma="M14.95 5.05C13.68 3.79 11.93 3 10 3c-3.87 0-7 3.13-7 7s3.13 7 7 7c3.17 0 5.85-2.11 6.71-5h-2.13c-.77 1.77-2.53 3-4.58 3-2.76 0-5-2.24-5-5s2.24-5 5-5c1.38 0 2.62.57 3.52 1.48L11 9h6V3l-2.05 2.05z",na=20):(ma="M9 13.5c-2.49 0-4.5-2.01-4.5-4.5S6.51 4.5 9 4.5c1.24 0 2.36.52 3.17 1.33L10 8h5V3l-1.76 1.76C12.15 3.68 10.66 3 9 3 5.69 3 3.01 5.69 3.01 9S5.69 15 9 15c2.97 0 5.43-2.16 5.9-5h-1.52c-.46 2-2.24 3.5-4.38 3.5z",na=18);ti(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f)+", "+(e-f)+") scale("+E/na+")"});ti(k,{d:ma});ti(n,{d:"M0 0h"+E+"v"+E+"H0z",fill:"none"});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Refresh",$s);function at(){Ps.call(this,"aplos-warning-shape-group",!0,!1)} cd(at,Ps);at.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-warning-shape");a.append("polygon").attr("class","secondary");a.append("path").attr("class","primary")};at.prototype.Mc=function(a){return a.select("g.aplos-warning-shape")};at.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=a.select(".primary");if(E.size()<1)throw Error("No primary path found in update selection");k=a.select(".secondary");if(k.size()<1)throw Error("No secondary path found in update selection");var ma=f*2,na=2;n=1;if(ma>36){var sa="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z";var ua=44}else ma>24?(sa="M1 32h34L18 3 1 32zm18-5h-2v-2h2v2zm0-5h-2v-7h2v7z",ua=32):ma>20?(sa="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ua=20):ma>18?(sa="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ua=20):(sa="M.5 16h17L9 1 .5 16zm9.5-2H8v-2h2v2zm0-3H8V7h2v4z",ua=16,na=1,n=0);ua=ma/ua;ti(a,{fill:r,width:ma+"px",height:ma+"px",viewBox:"0 0 "+ma+" "+ma,transform:"translate("+(c-f-na)+", "+(e-f-n)+")"});ti(E,{d:sa,transform:"scale("+ua+")"});a=.866*f*.95;r=f*.95;na=f+na;n=f+n;ti(k,{points:na+","+(n-a)+" "+(na+r+","+(n+a)+" ")+(na-r+","+(n+a)),fill:"white","stroke-width":"0"});Qs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.WarningShape",at);function bt(a,b){return new Ss(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createCircleRenderer",bt);function ct(){return new Ts} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createCylinderRenderer",ct);function dt(a,b){return new Us(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createEquilateralTriangleRenderer",dt);function et(){return new Vs} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createErrorRenderer",et);function ft(a,b,c){return new Ws(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createOvalRenderer",ft);function gt(){return new Xs} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createPauseRenderer",gt);function ht(a,b,c){return new Ys(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRectRenderer",ht);Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRectangleRangeRenderer",function(){return new Zs});function it(){return new $s} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRefreshRenderer",it);function jt(a,b){return ht(1,a,b)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createSquareRenderer",jt);function kt(){return new at} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createWarningRenderer",kt);function lt(){return new Rs} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createBoxTriangleRightRenderer",lt);Od("aplos.chart.shaperenderer.ShapeRendererFactory",function(){});function mt(){this.v=ct()} w=mt.prototype;w.Ob=function(a){for(var b=0;b=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};w.distance=function(a){var b=a.x325E11;e.forEach(function(ua){var ta=ua.domain;ua.time=ta<325E11?ta*1E3:ta;ua.displayName=a.name;ua.description=ua.datum.description;ua.chartX=Uo(k,n?ua.time:ua.time/1E3);ua.chartY=0;ta=b.Dd()||Lt;ua.label=ta(ua.time)},this);e.sort(function(ua,ta){return ua.hb-ta.hb});var r=[];if(e.length>0){var t;for(t=0;t=0){var y={Kb:e[t],lb:[]};r.push(y);break}for(t+=1;tf.Za())break;E.hb>y.Kb.hb+100?(y.ld=E.hb-y.Kb.hb,y={Kb:E,lb:[]},r.push(y)):y.lb.push(E)}if(!y)return;if(y.Kb.hb+60>f.Za()){y.Yl=!0;y.lb.length>0&&(e=y.lb.pop(),y.lb.unshift(y.Kb),y.Kb=e);var ma=r[r.length-2],na=y;if(ma&&ma.Kb.hb+ma.ld>na.Kb.hb-100){var sa=(na.Kb.hb-ma.Kb.hb)/2+ma.Kb.hb;y=na.lb;e=ma.lb;na.lb=[];ma.lb=[];e.forEach(function(ua){ua.chartX> sa?na.lb.push(ua):ma.lb.push(ua)});y.forEach(function(ua){ua.chartX>sa?na.lb.push(ua):ma.lb.push(ua)});ma.ld=sa-ma.Kb.hb;na.ld=na.Kb.hb-sa;ma.ld<60&&(na.ld+=ma.ld,na.lb=[ma.Kb].concat(ma.lb).concat(na.lb),r.splice(r.length-2,1))}}else y.ld=f.Za()-y.Kb.hb}c.Fj=r;Mn(b,c)}};w.render=function(a,b,c){var e=b.wb;b=Mn(b);if(b.Fj&&b.Yq)if(a.data.length===0&&c.node()==null)c.selectAll("*").remove();else return c.attr("transform","translate(0, -60)"),a=c.select(".background-rect"),a.size()||(a=c.append("rect").classed("background-rect",!0).style("fill","#fafafa")),a.attr("width",e.Za()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.Fj),c.exit().remove(),a=c.enter().append("g").classed("event-annotation-content",!0),a.append("g").classed("subdominant-lines",!0),a.append("line").classed("marker-line",!0),a.append("line").classed("range-line",!0),a.append("g").classed("text-holder",!0),c=a.merge(c),c.each(function(f){var k=vj(this),n=f.Kb,r=f.Yl,t=f.ld-4-10;ti(k,{transform:"translate("+n.hb+", 0)"});var y=k.select(".text-holder");y.append("text").classed("annotation-title",!0);y.append("text").classed("date",!0);y.append("text").classed("subdominant-additional-text",!0);y.attr("transform","translate("+(r?"-":"")+4+", 10)");var E=y.select("text.annotation-title").text(n.description);zj(E.node(),t);E.attr("dy","1em");Aj(E.node(),n.description);E=y.select("text.date").text(n.label);zj(E.node(),t);E.attr("dy","2.15em");Aj(E.node(),n.label);var ma=f.lb.length>0;E=k.select("text.subdominant-additional-text");if(ma){ma="+ "+f.lb.length+" more";E=E.text(ma);zj(E.node(),t);var na="";f.lb.forEach(function(sa){na+=sa.label+" "+sa.description+"\n"});Aj(E.node(),na);ti(E,{dy:"3.30em",display:null})}else E.attr("display","none");y.selectAll("text").attr("text-anchor",Ij(r?"right":"left"));f.lb.length>0&&(t=k.select("line.range-line"),y=er(f.lb,function(sa){return Math.abs(n.hb-sa.hb)}),ti(t,{x1:(r?"-":"")+y,transform:"translate(0, 60)","pointer-events":"none"}));r=k.select("line.marker-line");ti(r,{y2:60+e.Ab(),"pointer-events":"none"});f=k.selectAll(".subdominant-lines").selectAll("line").data(f.lb);f.exit().remove();f=f.enter().append("line").merge(f);k=60+e.Ab();ti(f,{y1:60,y2:k,x1:function(sa){return sa.hb-n.hb},x2:function(sa){return sa.hb-n.hb},"pointer-events":"none"})}),c;else c.selectAll("*").remove()};w.me=function(a,b,c,e,f){a=f.width;f=f.height;e=e.append("g").attr("class","event-annotation-content");e.append("rect").attr("class","event-annotation-content").attr("width",a).attr("height",f).attr("x",0).attr("y",0).attr("fill","#fafafa");e.append("line").attr("class","event-annotation-content").attr("y2",f).attr("stroke","#d2d2d2").attr("shape-rendering","crispEdges")};w.ij=function(){};w.ne=function(){return!1};w.rd=function(){return-10};w.Hd=function(a){return a instanceof Kt};w.qd=function(){};w.ee=function(){};w.Cb=function(){};function Lt(a){return Sq("%b %e")(a/1E3)} Od("aplos.chart.renderer.Annotation",Kt);var Mt={kl:0,lq:1};Od("aplos.chart.renderer.ArcLabelPosition",Mt);Mt.INSIDE=0;Mt.OUTSIDE=1;function Nt(a,b,c,e){this.Db=a;this.N=Ot(b);this.Wa=c;this.O=!!e;this.v=0} function Pt(a,b,c,e,f,k){var n=Qt().outerRadius(a.outerRadius()).innerRadius(a.innerRadius());c!=0&&n.innerRadius(n.outerRadius()());var r=[];b.forEach(function(t){r.push({start:n.centroid(t),datum:t})});c!=0&&n.innerRadius(n.outerRadius()()+f);b.forEach(function(t,y){t=n.centroid(t);r[y].offset=[Math.round(t[0]-r[y].start[0]),Math.round(t[1]-r[y].start[1])]});f&&k||(n.innerRadius(n.innerRadius()()+e),b.forEach(function(t,y){t=n.centroid(t);r[y].Zc=[Math.round(t[0]-r[y].start[0]),Math.round(t[1]-r[y].start[1])]}));return{position:c,padding:e,Lf:f,ie:k,data:r}} Nt.prototype.Sg=function(a){if(a==null)return this.v;this.v=a;return this};Nt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Db.data[c]]},this));Rt(this,a.enter())};function Rt(a,b){b=b.append("g").filter(Md(function(c){return c.datum.endAngle-c.datum.startAngle>Math.PI/180*this.v},a)).classed("arc-label-group",!0).style("opacity","0").attr("transform",function(c){return"translate("+c.start+")"});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1");a.O&&!of?St(a,b):Tt(a,b);Ut(a,b);Vt(b);b.filter(function(){return!vj(this).select(".arc-label").text()}).style("display","none")} function St(a,b){var c=a.Db.Lf,e=a.Db.ie,f=a.Db.position,k=a.Db.padding;b=b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=k+e;t=r===0?0:r>0?t:-t}else r=n.Zc[0],n=n.Zc[1],t=0;return"translate("+[r+t,n]+")"}).append("foreignObject").append("xhtml:body").classed("arc-label-container",!0).style("margin","0").append("div").style("position","fixed").append("div").classed("arc-label",!0).style("opacity",0).text(Tj(a.N));b.each(function(n){var r=this.getBoundingClientRect(),t=Math.round(r.width);r=Math.round(r.height);var y=vj(this.parentNode.parentNode.parentNode);if(c&&e){var E=n.offset[0];var ma=n.offset[1]}else E=n.Zc[0],ma=n.Zc[1];n=E===0?-(t/2):E>0?0:-t;E=f!=0?E===0?ma>0?0:-r:-(r/2):-(r/2);y.attr("width",t+"px").attr("height",r+"px").attr("transform","translate("+[n,E]+")")});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity",1):b.style("opacity",1)} function Vt(a){var b=null,c=[];a.each(function(f){var k=vj(this),n=k.select(".arc-label").node().getBoundingClientRect();n=new Ct(n.left,n.top,n.width,n.height);var r=k.select(".arc-leader-line-tail");r.empty()||(r=r.node().getBoundingClientRect(),Et(n,new Ct(r.left,r.top,r.width,r.height)));r=f.datum.startAngle;(f.datum.endAngle+r)/2Math.PI&&Dt(f.rect,b)?f.fe.style("display","none"):(f.fe.style("display",""),e=f.rect)})} function Tt(a,b){var c=a.Db.Lf,e=a.Db.ie,f=a.Db.padding,k=a.N;b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=f+e;t=r===0?0:r>0?t:-t}else r=n.Zc[0],n=n.Zc[1],t=0;return"translate("+[r+t,n]+")"}).append("text").classed("arc-label",!0).attr("dy",".35em").style("text-anchor",function(n,r){var t=n.offset[0];return Ij(t!==0&&e?t>0?"start":"end":"middle",k).call(this,n,r)}).each(function(n,r){gg(this,Tj(k)(n,r))})} function Ut(a,b){var c=a.Db.ie;b.append("line").classed("arc-leader-line",!0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});c>0&&b.append("line").classed("arc-leader-line-tail",!0).attr("x1",function(e){return e.offset[0]}).attr("y1",function(e){return e.offset[1]}).attr("x2",function(e){e=e.offset[0];return e+(e===0?0:e>0?c:-c)}).attr("y2",function(e){return e.offset[1]})} function Ot(a){return function(b,c){return a(b.datum,c)}} ;function Wt(a,b,c){this.Db=a;this.N=Xt(b);this.Wa=c;this.v=0} Wt.prototype.Sg=function(a){if(a==null)return this.v;this.v=a;return this};Wt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Db.data[c]]},this));Yt(this,a.enter())};function Yt(a,b){b=b.append("g").filter(Md(function(c){return c.datum.endAngle-c.datum.startAngle>Math.PI/180*this.v},a)).classed("arc-label-group",!0).attr("transform",function(c){return"translate("+c.start+")"});Zt(a,b);$t(a,b);b.empty()||(au(a,b),bu(b),Sj(b).filter(function(){return!vj(this).select(".arc-label").text()}).style("display","none"))} function Zt(a,b){var c=a.Db.Lf,e=a.Db.ie,f=a.Db.position,k=a.Db.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var y=k;t!==0&&r!==0&&(y+=e);y=t===0?0:t>0?y:-y;var E=f===1&&t===0?r<0?-k:k:0}else t=r.Zc[0],r=r.Zc[1],E=y=0;return"translate("+[t+y,r+E]+")"});var n=b=Oj(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",cu(a,f)).append("div").classed("arc-label",!0).style("opacity",0).each(Nd(du,a.N));b.each(Nd(function(r,t){r=vj(this);var y=r.select(".arc-label"),E=y.node();tj(E,null,null,!0);if(c&&e){var ma=t.offset[0];t=t.offset[1]}else ma=t.Zc[0],t=t.Zc[1];y.style("text-align",ma===0?"center":ma>0?"left":"right");y=E.getBoundingClientRect();eu(f,r,new Ct(ma,t,y.width,y.height))},a));b=b.select(".arc-label");a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1")} function du(a,b,c){a=a(b,c,!0);var e=this;Array.isArray(a)?a.forEach(function(f){e.appendChild(f)}):vj(e).text(a)} function cu(a,b){return Uh(Mt,function(c){return c===b},a).toLowerCase()} function eu(a,b,c){var e=c.left===0?-Math.round(c.width/2):c.left>0?0:-c.width;a=a!=0?c.left===0?c.top>0?0:-c.height:-Math.round(c.height/2):-Math.round(c.height/2);b.style("width",Math.ceil(c.width)+"px").style("height",Math.ceil(c.height)+"px");b.select("div").style("left",e+"px").style("top",a+"px").style("position","absolute");b.select(".arc-label").style("max-width",Math.ceil(c.width)+"px");b.attr("data-translate-y",a)} function bu(a){var b=null,c=[];a.each(function(f){var k=vj(this),n=Sj(k.select("g"));if(n.style("display")!=="none"){var r=n.select(".arc-label").node().getBoundingClientRect();r=new Ct(r.left,r.top,r.width,r.height);var t=k.select(".arc-leader-line-tail");t.empty()||(t=t.node().getBoundingClientRect(),Et(r,new Ct(t.left,t.top,t.width,t.height)));t=f.datum.startAngle;(f.datum.endAngle+t)/2Math.PI&&Dt(f.rect,b)?(f.fe.style("display","none"),f.Ph.style("display","none")):(f.fe.style("display",""),f.Ph.style("display",""),e=f.rect)})} function au(a,b){var c=Pj(b).node().getBoundingClientRect();b.each(Nd(function(e,f){var k=vj(this),n=Sj(k.select("g")),r=n.select(".arc-label").node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,y=Math.ceil(f.left-r.left)+5,E=(t>0?t:0)+(y>0?y:0);E&&(t=vj(n.node()),r=Math.ceil(r.width-E),r>0&&(t.style("width",r+"px"),y>0&&(y=+t.attr("data-translate-y"),t.select(".arc-label").style("left",-r+"px").style("top",y+"px"))),t.select(".arc-label").style("max-width",Math.ceil(r)+"px"),r=n.select(".arc-label").node().getBoundingClientRect(),eu(e.Db.position,t,new Ct(r.left-f.left-f.width/2,r.top-f.top-f.height/2,r.width,r.height)));if(r.topf.top+f.height||r.leftf.left+f.width)k.style("display","none"),n.style("display","none")},a,c))} function $t(a,b){var c=a.Db.ie;b.append("line").classed("arc-leader-line",!0).style("opacity",0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});c>0&&b.append("line").classed("arc-leader-line-tail",!0).style("opacity",0).attr("x1",function(e){return e.offset[0]}).attr("y1",function(e){return e.offset[1]}).attr("x2",function(e){var f=e.offset[0];e=e.offset[1];return f+(f===0||e===0?0:f>0?c:-c)}).attr("y2",function(e){return e.offset[1]});a.Wa?b.selectAll("line").transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.selectAll("line").style("opacity","1")} function Xt(a){return function(b,c,e){return a(b.datum,c,e)}} ;function fu(a,b){this.N=Qt().outerRadius(a).innerRadius(b);this.v=gu();this.ya=!0;this.oa=70;this.ma=10;this.ta=20;this.ka=this.ha=0;this.Ia=!1;this.Ka=!0;this.na=this.O=!1;this.Ca=ok} w=fu.prototype;w.innerRadius=function(a){return a==null?this.Fd():this.Ek(a)};w.Ek=function(a){this.N.innerRadius(a);return this};w.Fd=function(){return this.N.innerRadius()()};w.outerRadius=function(a){return a==null?this.Se():this.Qk(a)};w.Qk=function(a){this.N.outerRadius(a);return this};w.Se=function(){return this.N.outerRadius()()};w.startAngle=function(a){a==null?a=this.v.startAngle()():(this.v.startAngle(a),a=this);return a};w.endAngle=function(a){a==null?a=this.v.endAngle()():(this.v.endAngle(a),a=this);return a};w.Xq=function(a){a==null?a=this.na:(this.na=a,a=this);return a};w.Oo=function(a){return a==null?this.ya:this.Ei(a)};w.Ei=function(a){this.ya=a;return this};w.qn=function(){return this.ya};w.Ld=function(a){this.Ca=a;return this};w.Lf=function(a){return a==null?this.oa:this.oi(a)};w.oi=function(a){this.oa=a;return this};w.Rm=function(){return this.oa};w.ie=function(a){return a==null?this.ta:this.ri(a)};w.ri=function(a){this.ta=a;return this};w.Sm=function(){return this.ta};w.Ln=function(a){return a==null?this.ma:this.ni(a)};w.ni=function(a){this.ma=a;return this};w.Pm=function(){return this.ma};w.Mn=function(a){return a==null?this.od():this.Pb(a)};w.Pb=function(a){this.ha=a;return this};w.od=function(){return this.ha};w.Sg=function(a){return a==null?this.ka:this.vi(a)};w.vi=function(a){this.ka=a;return this};w.Zm=function(){return this.ka};w.Vl=function(a){return a==null?this.O:this.hi(a)};w.hi=function(a){this.O=a;return this};w.Dm=function(){return this.O};w.Uc=function(){};w.Ob=function(){};w.render=function(a,b,c,e){if(this.Ia){var f=c.select(".pie-background");f.empty()&&(f=c.insert("path",":first-child").classed("pie-background",!0));f.attr("d",this.N({startAngle:0,endAngle:2*Math.PI}))}else c.select(".pie-background").remove();f=Fv(c);var k=Gv(this,a,b);a=c.select(".arcs");a.empty()&&(a=c.append("g").classed("arcs",!0));var n=c.select(".arc-borders");n.empty()&&(n=c.append("g").classed("arc-borders",!0));c=Hv(b.key());n=n.selectAll(".arc-border").data(k,c);var r=vj(null),t=null,y=n.exit();k.length>0&&k[k.length-1].endAngle>0?(r=a.selectAll(".arc").data(k,c),t=r.exit(),r=Iv(this,r,k,f,b),n=Jv(this,n,k,f,b)):(a=Kv(this,k,f,a,b),t=a.exit,r=a.update,f.length||(e=0));Lv(this,r,n,k,b,e);Mv(this,t,y,k,f,b,e);n.attr("visibility",Md(function(){return this.na&&k.length<=1?"hidden":null},this));return r};w.me=function(a,b,c,e,f){e=e.append("circle").attr("cx",f.width/2).attr("cy",f.height/2).attr("r",f.width/2);ek(e,function(){return c.color()(a,b)})};w.qd=function(a,b,c,e){var f=new xi(c,e),k=this.Se(),n=this.Fd(),r=yi(f,new xi(0,0)),t=null;if(r>=n&&r<=k)for(f=(f.x>=0?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,k=Gv(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=Nv(this,a,b,r.data||{},n,c,e);break}return t};function Nv(a,b,c,e,f,k,n){var r=c.measure(),t=c.domain(),y=c.color(),E=Gv(a,b,c)[f];var ma=E.startAngle-Math.PI/2;var na=E.endAngle-Math.PI/2;E=a.Se();var sa=a.Fd();ma=(ma+na)/2;E=sa+(E-sa)/2;ma=new xi(Math.round(Math.cos(ma)*E),Math.round(Math.sin(ma)*E));sa=c.wb;E=ma.x+sa.Za()/2;sa=ma.y+sa.Ab()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:ma.x,datumY:ma.y,chartX:E,chartY:sa,color:y(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.Cb(b,k,n)} w.Cb=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};Yh(e,a);b!=void 0&&c!=void 0&&(e.relativeDistance=yi(new xi(e.datumX,e.datumY),new xi(b,c)));return e};w.ee=function(a,b,c,e,f,k,n){f=f===void 0?[]:f;for(var r=0;r0;)b.pop();b.push({startAngle:a.v.startAngle()(),endAngle:a.v.endAngle()(),data:{}});var k=Hv(f.key());e=e.selectAll(".arc").data(b,k);k=e.enter().append("g").attr("class","arc");var n=Hv(f.key());k.append("path").classed("pieSegment",!0).classed("empty-pie",!0).each(Nd(function(r,t,y){r=Ov(r,y,b,c,n);this.N={startAngle:r,endAngle:r}},a));return{exit:e.exit(),update:k.merge(e)}} function Iv(a,b,c,e,f){var k=b.enter().append("g").attr("class","arc"),n=k.append("path").classed("pieSegment",!0).attr("data-id",Hv(f.wh()));ek(n,Hv(f.color()));var r=Hv(f.key());n.each(Nd(function(t,y,E){t=Ov(t,E,c,e,r);this.N={startAngle:t,endAngle:t}},a));return k.merge(b)} function Jv(a,b,c,e,f){var k=b.enter().append("line").classed("arc-border",!0).attr("x1",0).attr("x2",0),n=Hv(f.key());k.each(Nd(function(r,t,y){this.O=Ov(r,y,c,e,n)},a)).attr("transform",Nd(function(){return Pv(this.O)},a));return k.merge(b)} function Lv(a,b,c,e,f,k){var n=ln(f,"datumHoverState")?f.md():function(){return 0},r=ln(f,"datumClickState")?f.Xd():function(){return 0},t=b,y=b;c.attr("y1",a.Fd()>0?-a.Fd()+1:0).attr("y2",a.Se()>0?-a.Se()-1:0);k&&(b=b.transition().duration(k),c=c.transition().duration(k));var E=f.color(),ma=b.select("path");ek(ma,function(ua,ta){return a.Ca(E(ua.data,ta),n(ua.data,ta),r(ua.data,ta)).color});var na=f.Fe();b.each(function(ua,ta){var Ba=vj(this);typeof na==="function"?(ua=na(ua.data,ta))&&typeof ua==="string"||(ua=""):ua=na;(ta=Ba.attr("data-user-classes"))&&Ba.classed(ta||"",!1);ua&&Ba.classed(ua,!0);Ba.attr("data-user-classes",ua)});var sa=!a.Ka||sf||tf?null:mk(f.wb.kb.node());k?b.select("path").attrTween("d",Qv(a.N)):b.select("path").attr("d",a.N).each(function(ua){this.N={startAngle:ua.startAngle,endAngle:ua.endAngle};var ta=vj(this);ta.classed("empty-pie")&&ta.attr("color",null);ua.endAngle-ua.startAngle<1E-7?ta.style("display","none"):ta.style("display","")});y.each(function(ua,ta){var Ba=vj(this),ya=Ba.select("path"),Aa=n(ua.data,ta);ua=r(ua.data,ta);Ba.classed("highlight",Aa>0);Ba.classed("inverse-highlight",Aa<0);Ba.classed("selected",ua>0);Ba.classed("inverse-selected",ua<0);ya.attr("filter",Aa>0?sa:null)});t.attr("data-label-position",Md(function(){switch(this.ha){case 0:return"inside";case 1:return"outside";default:throw Error("Unknown label position.");}},a));e.length>0&&e[e.length-1].endAngle>0&&(b=Md(a.Qm,a,f),e=Pt(a.N,e,a.ha,a.ma,a.oa,a.ta),f=null,Mj()?f=new Wt(e,b,k):f=new Nt(e,b,k,a.O),f.Sg(a.ka).render(t));k?c.attrTween("transform",Md(function(ua,ta,Ba){return Rv(Ba,Pv(ua.startAngle))},a)):c.attr("transform",Md(function(ua){return Pv(ua.startAngle)},a))} function Mv(a,b,c,e,f,k,n){if(n){b=b.transition().duration(n);var r=Hv(k.key());k=a.N;b.select("path").attrTween("d",Sv(a,k,e,f,r));c=c.transition().duration(n);c.attrTween("transform",function(t,y){y=Pe(f,t);t=Tv(a,y,e,f,r);return Rv(this.getAttribute("transform"),Pv(t))})}b.remove();c.remove()} w.Qm=function(a,b,c,e){b=b.data;return ln(a,"label")?a.label()(b,c,e):(a.Dd()||vl)(a.domain()(b,c))};function Gv(a,b,c){var e=c.measure();a.v.value(e);a.ya?a.v.sort(function(f,k){return Uv(e(f),e(k))}):a.v.sort(null);return a.v(b.data)} function Pv(a){return"rotate("+(a||0)*180/Math.PI+")"} function Qv(a){return function(b){var c=Vv(this.N,{startAngle:b.startAngle,endAngle:b.endAngle});this.N=c(0);return function(e){e=c(e);e.endAngle-e.startAngle<1E-7&&(e.startAngle=e.endAngle);return a(e)}}} function Sv(a,b,c,e,f){var k=Qv(b);return Nd(function(n,r){r=Pe(e,r);n=Tv(n,r,c,e,f);return k.call(this,{startAngle:n,endAngle:n})},a)} function Ov(a,b,c,e,f){for(--b;b>=0;b--)for(var k=f(c[b],b),n=0;n0:r.measureSize<=0,t),E=r.domainPosition+r.domainSize/2;y=r.measurePosition+r.measureSize+(f?-1:1)*y;switch(this.v){case "vertical":if(k){var ma=-1*y;var na=".32em"}else ma=E,E=-1*y,na=this.N==="middle"?".32em":null;break;default:k?(ma=E,E=y,na=null):(ma=y,na=".32em")}t=(t=r.validValue&&(this.N==="above"||t>=this.ka))&&(k?y<=e:y>=c);r.barLabel={domainPosition:ma,measurePosition:E,valid:t,dy:na,"text-anchor":aw(this,b),"dominant-baseline":bw(this,b)}}};function aw(a,b){switch(a.N){case "above":return a.v==="vertical"?b==="y"?"left":"middle":b==="y"?"middle":"left";case "bottom":return a.v==="vertical"?b==="y"?"left":"middle":b==="y"?"middle":"left";case "middle":return"middle";case "top":return a.v==="vertical"?b==="y"?"right":"middle":b==="y"?"middle":"right";default:throw Error("Unrecognized bar label position");}} function bw(a,b){switch(a.N){case "above":return null;case "bottom":return null;case "middle":return a.v==="vertical"?null:b==="y"?"middle":null;case "top":return a.v==="vertical"?b==="x"?"hanging":null:b==="y"?"hanging":null;default:throw Error("Unrecognized bar label position");}} w.add=function(a){a.append("text").attr("class","bar-label")};w.update=function(a,b,c,e){a=a.select(".bar-label");var f=c==="y",k=this;a.each(function(n){var r=n.barLabel;if(r){var t=vj(this),y=r.valid?1:0,E=null,ma=n.barLabel;if(k.N==="above"){var na=n.chartX;ma=n.chartY}else k.v==="vertical"?f?(na=ma.measurePosition,ma=-1*ma.domainPosition):(na=-1*ma.measurePosition,ma=ma.domainPosition):(na=ma.domainPosition,ma=ma.measurePosition);na=new xi(na,ma);r.valid&&e.contains(na)||(E="none");t.text(n.label);b&&(t=t.transition().duration(b));switch(k.v){case "vertical":na= c==="y"?"rotate(-90)":"rotate(90)";break;default:na=null}ti(t,{x:r.domainPosition,y:r.measurePosition,dy:r.dy,opacity:y,display:E,"dominant-baseline":r["dominant-baseline"],transform:na});t.attr("text-anchor",Ij(r["text-anchor"],n.label));t.style("fill",k.O)}})};w.remove=function(a){a.selectAll(".bar-label").remove()};w.Uf=function(){return!0};Wv.prototype.getMinBarLength=Wv.prototype.Xm;Wv.prototype.setMinBarLength=Wv.prototype.ui;Wv.prototype.getLabelPosition=Wv.prototype.od;Wv.prototype.setLabelPosition=Wv.prototype.Pb;Wv.prototype.getLabelOrientation=Wv.prototype.Om;Wv.prototype.setLabelOrientation=Wv.prototype.Gk;Wv.prototype.getLabelColor=Wv.prototype.Me;Wv.prototype.setLabelColor=Wv.prototype.Wc;Wv.prototype.getLabelOffsetFunction=Wv.prototype.Nm;Wv.prototype.setLabelOffsetFunction=Wv.prototype.ef;function Xv(a,b){return a?-4:-b-4} function Yv(a,b){return a?b-4:-4} function Zv(a,b){return a?b/2:-b/2} function $v(a,b){return a?4:-b+4} Od("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});Od("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function cw(){Ft.call(this);this.oa=this.Sa=2;this.ka=null;this.ta=0;this.Ca=this.ha=1;this.ma=this.La=null;this.N=this.Ya=this.Ia=0;this.v=new Wv;this.ya=[this.v,new nt];this.ab=ok;this.Rb=null} cd(cw,Ft);function dw(a,b){a.ya.push(b);return a} function ew(a,b){Ve(a.ya,a.v);a.v=b;dw(a,a.v)} w=cw.prototype;w.mm=function(){return this.v};w.Mo=function(a){this.Ya=a;return this};w.uo=function(a){this.N=a;return this};w.nm=function(){return this.N};w.Ld=function(a){this.ab=a;return this};w.Cl=function(a){return arguments.length&&a!=null?this.Kd(a):this.Hc()};w.strokeWidth=function(a){return arguments.length&&a!=null?this.Qd(a):this.Hf()};w.Qd=function(a){this.Ia=a;return this};w.Hf=function(){return this.Ia};w.stack=function(a){return arguments.length&&a!=null?this.Pd(a):this.Ue()};w.Pd=function(a){this.dg(a?2:1);return this};w.Ue=function(){return this.ha===2};w.dg=function(a){this.ha=a;return this};w.Hm=function(){return this.ha};w.Po=function(a){return arguments.length&&a!=null?this.Fi(a):this.Ca};w.Fi=function(a){this.Ca=a;return this};w.rn=function(){return this.Ca};w.Qg=function(a){return arguments.length&&a!==void 0?this.fh(a):this.ma};w.fh=function(a){this.ma=Math.max(0,a);return this};w.Wm=function(){return this.ma};w.Pk=function(a){this.La=Math.max(0,a);return this};w.Ym=function(){return this.La};w.Dl=function(a){return arguments.length&&a!=null?this.sk(a):this.oa};w.sk=function(a){this.oa=a;return this};w.jm=function(){return this.oa};w.yn=function(){return this.ka};w.Wk=function(a){this.ka=a;return this};w.El=function(a){return arguments.length&&a!=null?this.uk(a):this.ta};w.uk=function(a){this.ta=a;return this};w.lm=function(){return this.ta};w.ko=function(a){return arguments.length&&a!=null?this.Ai(a):this.Sa};w.Ai=function(a){this.Sa=a;return this};w.hn=function(){return this.Sa};w.rd=function(){return-10};w.Hd=function(a){return a instanceof cw};w.wo=function(a){this.Rb=a;return this};w.Uc=function(a,b){var c=new Map,e=new Map,f=new Map,k=this.ha;Jt(this,a,b);for(var n=0,r=0;r=0?c:e;Ba=Ca.get(ya);Ba||(Ba=new Map,Ca.set(ya,Ba));ya=Ba.get(ma);(Ca=Ba.get(na))&&(ta.barStackIndex=Ca.barStackIndex+1);ta.cumulativeTotal=Aa||0;Aa=ta.measureOffset||0;ya&&ta.measure!==null&&(Aa+=ya.measure+ya.measureOffset,ta.cumulativeTotal+=ya.cumulativeTotal,ta.measure!=0&&(ya.roundedCorners=!1,this.Hc()=="stackTotal"&&(ya.label="")));ta.measureOffset=Aa;Ba.set(na,ta);ta.validValue&&ta.measure!=0?Ba.set(ma,ta):(ta.roundedCorners=!1,this.Hc()=="stackTotal"&&(ta.label=""))}n=Math.max(n,ta.barStackIndex+1);fw(this,ta,t)}sa&&t.Lc(gw(this,y));na=t.wb!=null?mk(t.wb.kb.node()):null;Mn(t,{barData:y,barGroupIndex:E,barGroupCount:this.ha===1?b.length:1,highlightShadowUrl:na,barStackKey:ma})}if(this.ha===3){var Fa=f.size;b.forEach(function(Ea){Mn(Ea).barGroupCount=Fa;Mn(Ea).maxBarStackSize=n})}b.length>0&&(a=b[0].wb,Gt(this)=="x"&&a.Le&&a.ud&&b.forEach(function(Ea){Ea=Mn(Ea);Ea.barGroupIndex=Ea.barGroupCount-1-Ea.barGroupIndex}))};function fw(a,b,c){b.roundedCorners==null&&(b.roundedCorners=!0);b.fill=b.dashPattern&&b.dashPattern.toLowerCase()!=="none"?"transparent":null;if(b.strokeWidth==null||isNaN(b.strokeWidth))b.strokeWidth=a.Ia;if(a.Hc())switch(a.Hc()){case "cumulativeTotal":case "stackTotal":b.validValue&&b.cumulativeTotal!=null&&b.measure!==0?(a=b.cumulativeTotal,c=c.Ub()||vl,b.label=c(a)):b.label="";break;case "measureValue":b.validValue&&b.measure!==0?(c=c.Ub()||vl,b.label=c(b.measure)):b.label=""}} w.Ob=function(a,b){var c=Mn(b),e=c.barData,f=b.Ac(),k=b.qb(),n=ln(b,"datumHoverState")?b.md():function(){return 0},r=ln(b,"datumClickState")?b.Xd():function(){return 0},t=b.wb;c.chartWidth=t.frameWidth();c.chartHeight=t.frameHeight();t=f.bandwidth();t=Math.max(t,1);var y=hw(this,c.barGroupCount);c.barWeights=y;c.barWidth=iw(c.barGroupCount,c.barGroupIndex,y,t,this.oa,this.La,this.ma,this.ta);c.barOffset=jw(c.barGroupCount,c.barGroupIndex,y,t,this.oa,this.La,this.ma,this.ta);if(a.data.length==0)Mn(b).barData=[];else{for(a=0;a0?(b.barClass+=" highlight",b.filter=c.highlightShadowUrl):t<0&&(b.barClass+=" inverse-highlight"),t=r(b.datum,a),t>0?b.barClass+=" selected":t<0&&(b.barClass+=" inverse-selected");c=It(this);for(n=0;n0?f[0].series.name:"series"),r=b.select("#"+n);r.empty()&&(r=b.append("clipPath").attr("id",n),r.append("rect"));var t=e.chartWidth,y=0;f.forEach(function(E){t=Math.min(t,E.domainPosition);y=Math.max(y,E.domainPosition+E.domainSize)},a);a=r.select("rect");k&&(a=a.transition().duration(k));a.attr("x",t).attr("y",0).attr("width",y-t).attr("height",e.chartHeight);c.attr("clip-path","url(#"+n+")")}} function hw(a,b){var c=0,e=[];if(a.ka!=null){var f=a.ka.split(",");if(b>f.length)throw Error('Number of series exceeds length of weight pattern "'+a.ka+'"');for(var k=[],n=0;n=0){var r=b.measurePosition;var t=b.measurePosition+b.measureSize}else t=b.measurePosition,r=b.measurePosition+b.measureSize;b=f?Nh(c,t,r):Nh(c,r,t);return{domainDistance:a>=e&&a<=k?0:Math.abs(a-n),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:yi(new xi(n,b),new xi(a,c))}} w.me=function(a,b,c,e,f){var k=f.width;f=f.height;var n=e.append("g").attr("class","bar-group");e=c.Fc()(a,b);var r=ln(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ia;k=n.append("rect").attr("class","bar").attr("width",k).attr("height",f).attr("stroke-width",r).attr("stroke-dasharray",e).attr("x",0).attr("y",0).attr("rx",1);ek(k,function(){return c.color()(a,b)},!0);e&&e.toLowerCase()!=="none"&&k.attr("fill","transparent")};function nw(a){a=vj(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function pw(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Ya){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function kw(a,b,c,e,f){var k=c.measureOffset,n=c.measure+k,r=zr(f,k),t=zr(f,n);if(ql(r)&&ql(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Ca);n?(n=k===0?Math.floor:Math.ceil,y=Math.ceil):(n=k===0?Math.ceil:Math.floor,y=Math.floor);r=n(r);t=y(t)}else t=r=null;n=Uo(e,c.domain);y=yr(e,c.domain)+b.barOffset;var E=b.barWidth,ma=r;r=t-r;var na=t=void 0,sa=Math.min(E/2,Math.abs(r),c.strokeWidth);E-=sa;y+=sa/2;r+=(r>=0?-1:1)*sa/2;if(c.measureLowerBound!=null&& c.measureUpperBound!=null){var ua=c.measureLowerBound,ta=c.measureUpperBound;ua!=null&&ta!=null&&(t=zr(f,k+ua),na=zr(f,k+ta))}a=Gt(a)=="x";k=b.barWidth/2;b=yr(e,c.domain)+b.barOffset+k;c=Uo(f,c.measure+c.measureOffset);return{barGroupCenter:n,chartX:a?b:c,chartY:a?c:b,domainPosition:y,domainSize:E,measurePosition:ma,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:na,strokeWidth:sa}} w.Df=function(a,b,c,e,f,k,n){a===null||b===null||c===null||e===null||k===null?a="":(k=Math.min(Math.abs(e),k,c/2),n=n==1?"Z":"",a=f?e>=0?"M"+b+" "+a+"h"+(e-k)+"a"+k+","+k+" 0 0 1 "+k+","+k+"v"+(c-2*k)+"a"+k+","+k+" 0 0 1 "+-k+","+k+"h"+-1*(e-k)+n:"M"+b+" "+a+"h"+(e+k)+"a"+k+","+k+" 0 0 0 "+-k+","+k+"v"+(c-2*k)+"a"+k+","+k+" 0 0 0 "+k+","+k+"h"+-1*(e+k)+n:e<=0?"M"+a+" "+b+"v"+(e+k)+"a"+k+","+k+" 0 0 1 "+k+","+-k+"h"+(c-2*k)+"a"+k+","+k+" 0 0 1 "+k+","+k+"v"+-1*(e+k)+n:"M"+a+" "+b+"v"+(e-k)+"a"+k+","+ k+" 0 0 0 "+k+","+k+"h"+(c-2*k)+"a"+k+","+k+" 0 0 0 "+k+","+-k+"v"+-1*(e-k)+n);return a};w.ne=function(){return!0};w.Jg=function(a,b){b=Mn(b);return b.barData==null?a.data:b.barData};cw.prototype.getBarPath=cw.prototype.Df;cw.prototype.setCssName=cw.prototype.wo;cw.prototype.getRoundingRadiusPx=cw.prototype.hn;cw.prototype.setRoundingRadiusPx=cw.prototype.Ai;cw.prototype.roundingRadiusPx=cw.prototype.ko;cw.prototype.getBarHorizontalMargin=cw.prototype.lm;cw.prototype.setBarHorizontalMargin=cw.prototype.uk;cw.prototype.barHorizontalMargin=cw.prototype.El;cw.prototype.setWeightPattern=cw.prototype.Wk;cw.prototype.getWeightPattern=cw.prototype.yn;cw.prototype.getBarGroupInnerPadding=cw.prototype.jm;cw.prototype.setBarGroupInnerPadding=cw.prototype.sk;cw.prototype.barGroupInnerPadding=cw.prototype.Dl;cw.prototype.getMinBarWidth=cw.prototype.Ym;cw.prototype.setMinBarWidth=cw.prototype.Pk;cw.prototype.getMaxBarWidth=cw.prototype.Wm;cw.prototype.setMaxBarWidth=cw.prototype.fh;cw.prototype.maxBarWidth=cw.prototype.Qg;cw.prototype.getStackedBarPadding=cw.prototype.rn;cw.prototype.setStackedBarPadding=cw.prototype.Fi;cw.prototype.stackedBarPadding=cw.prototype.Po;cw.prototype.getGroupingType=cw.prototype.Hm;cw.prototype.setGroupingType=cw.prototype.dg;cw.prototype.getStack=cw.prototype.Ue;cw.prototype.setStack=cw.prototype.Pd;cw.prototype.stack=cw.prototype.stack;cw.prototype.getStrokeWidth=cw.prototype.Hf;cw.prototype.setStrokeWidth=cw.prototype.Qd;cw.prototype.strokeWidth=cw.prototype.strokeWidth;cw.prototype.autoBarLabels=cw.prototype.Cl;cw.prototype.setColorHighlightStrategy=cw.prototype.Ld;cw.prototype.getBorderRenderingStrategy=cw.prototype.nm;cw.prototype.setBorderRenderingStrategy=cw.prototype.uo;cw.prototype.setTransitionStrategy=cw.prototype.Mo;cw.prototype.getBarLabelDecorator=cw.prototype.mm;function iw(a,b,c,e,f,k,n,r){e=Math.floor((e-(r*2+f*(a-1)))/a);k&&(e=Math.max(k,e));n&&(e=Math.min(n,e));return c&&c.length!=0?Math.floor(e*a*c[b]):e} function jw(a,b,c,e,f,k,n,r){var t=Math.floor((e-(r*2+f*(a-1)))/a),y=0;n&&t>n&&(y=Math.floor((t-n)*a/2));for(var E=t=0;E1){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e2*this.size&&Ew(this),!0):!1};function Ew(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return xw;var k=e.v[b++];return{value:a?k:e.N[k],done:!1}};return f};function Fw(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function Gw(){Ft.call(this);this.ta=null;this.ma=0;this.N=!1;this.ka=2;this.v=!1;this.oa=null;this.ha=3} cd(Gw,Ft);w=Gw.prototype;w.jo=function(a){if(a==null)return this.N;this.N=a;return this};w.Qg=function(a){if(a===void 0)return this.oa;this.oa=a;return this};w.strokeWidth=function(a){if(a==null)return this.ha;this.ha=a;return this};w.zn=function(a){if(a==null)return this.ka;this.ka=a;return this};w.Ho=function(a,b){b?(this.ta=null,this.ma=a||0):(this.ta=a||0,this.ma=null);return this};w.stack=function(a){if(!arguments.length||a==null)return this.v;this.v=a;return this};w.Uc=function(a,b){for(var c=new Cw,e=new Cw,f=0;f=0?c:e,ua=sa.get(ma)||0;sa.set(ma,na+ua);E.measureOffset=ua}}this.v&&k.Lc(Hw(t));n=(n=k.wb)?mk(n.kb.node(),0,4):null;Mn(k,{lineData:t,lineIndex:f,numLines:b.length,highlightShadowUrl:n})}};function Hw(a){return function(b,c){return a[c].measureOffset}} w.Ob=function(a,b){var c=b.color(),e=b.Fe(),f=It(this)==="y",k=b.qb(),n=b.Ac(),r=n.bandwidth(),t=this.ma!=null?this.ma*r:this.ta||0,y=ln(b,"datumHoverState")?b.md():function(){return 0},E=Mn(b),ma=E.lineData,na=E.numLines,sa=E.lineIndex,ua=this.v?r:Math.floor((r-this.ka*(na-1))/na),ta=Math.min(this.oa||Infinity,ua);r=Iw(this,sa,na,ta,t);t=Jw(this,ta,ua,sa,na,t);na=t+r/2;E.chartWidth=b.wb.frameWidth();E.chartHeight=b.wb.frameHeight();if(a.data.length==0)Mn(b).barData=[];else for(b=0;b0?(sa.lineClass+=" highlight",sa.filter=E.highlightShadowUrl):ua<0&&(sa.lineClass+=" inverse-highlight")};w.render=function(a,b,c,e){a=Mn(b).lineData;var f=zr(b.qb(),0),k=this.N?"round":"butt";b=c.selectAll(".bar-target-line").data(a,function(y){return y.key});c=b.enter().append("line");a=b.exit();var n=c.merge(b),r=It(this),t=Gt(this);e&&(c.each(function(y){var E=vj(this);ti(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,stroke:y.color,"stroke-linecap":k,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});Dj(this,t+"1",y.domainPosition);Dj(this,t+"2",y.domainPosition+y.domainSize);Dj(this,r+"1",f);Dj(this,r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.each(function(y,E,ma){Dj(ma[E],r+"1",f)}),a.each(function(y,E,ma){Dj(ma[E],r+"2",f)}));a.remove();n.each(function(y){var E=vj(this);e&&(E=E.transition(n));ti(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,filter:y.filter,stroke:y.color,"stroke-linecap":k,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});Dj(this,t+"1",y.domainPosition);Dj(this,t+"2",y.domainPosition+y.domainSize);Dj(this,r+"1",y.measurePosition);Dj(this,r+"2",y.measurePosition)});return null};function Iw(a,b,c,e,f){a.v&&(c=1,b=0);return(b===0?f:0)+e+(b+1===c?f:0)} function Jw(a,b,c,e,f,k){if(a.v)return Math.floor((c-b)/2)-k;c=Math.floor((c-b)*f/2);e===0&&(c-=k);return c+(a.ka+b)*e} function Kw(a,b,c,e,f,k){var n=b.measureOffset,r=b.measure+n;ql(r)&&ql(n)||(r=0);n=Uo(k,r);var t=Uo(k,0);r=r<0;k=(k=t=e&&a<=k?0:Math.abs(a-n),b.domainDistance=c,b.measureDistance=f,b.relativeDistance=a,b):null};w.ee=function(a,b,c,e,f){a=f||[];if(b=Mn(b).lineData)for(f=0;f0&&n>ya.chartX&&(k=!0);n=ya.chartX;Ow(this,ya);ya.pointClass="";var Aa=t(ya.datum,Ba);Aa>0?ya.pointClass= (ya.pointClass+" highlight").trim():Aa<0&&(ya.pointClass=(ya.pointClass+" inverse-highlight").trim());Aa=y(ya.datum,Ba);Aa>0?ya.pointClass=(ya.pointClass+" selected").trim():Aa<0&&(ya.pointClass=(ya.pointClass+" inverse-selected").trim());ua&&(Aa=ya.domainOffset||0,E&&ma&&(ya.domainLowerBound=E(ya.datum,Ba),ya.domainUpperBound=ma(ya.datum,Ba),b||(ya.domainLowerBound+=Aa,ya.domainUpperBound+=Aa),ya.domainLowerBound!==null&&ya.domainUpperBound!==null&&(ya.domainLowerBoundPosition=zr(e,ya.domainLowerBound,null),ya.domainUpperBoundPosition=zr(e,ya.domainUpperBound,null),ya.errorBarColor=ya.color)),Aa=ya.measureOffset||0,ya.measureLowerBound=na(ya.datum,Ba),ya.measureUpperBound=sa(ya.datum,Ba),ta||(ya.measureLowerBound+=Aa,ya.measureUpperBound+=Aa),ya.measureLowerBound!==null&&ya.measureUpperBound!==null&&(ya.measureLowerBoundPosition=zr(f,ya.measureLowerBound,null),ya.measureUpperBoundPosition=zr(f,ya.measureUpperBound,null),ya.errorBarColor=ya.color));ya.shapeRenderer=a(ya.datum,ya.index)}k&&r.sort(function(Ca,Fa){return Ca.chartX-Fa.chartX});c.Gb=r;this.v.Ob(r,It(this),e,f)}};function Nw(a,b,c){var e=a.ma;b.shapeRenderer&&(e=Mw(b.shapeRenderer));return mn(c,"shapeRenderer",function(f){return f.shapeRenderer?Mw(f.shapeRenderer):e})} function Ow(a,b){switch(a.N){case 1:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY-6.5-b.radius;break;case 4:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 2:b.labelX=isNaN(b.chartX)?null:b.chartX-6.5-b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 3:b.labelX=isNaN(b.chartX)?null:b.chartX+6.5+b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;default:case 0:b.labelX=null,b.labelY=null}} w.render=function(a,b,c,e,f,k,n){a=zr(b.qb(),0);f=Mn(b);var r=ln(b,"datumHoverState")?b.md():function(){return 0};b=ln(b,"datumClickState")?b.Xd():function(){return 0};var t=c.node();Pw(this,f.Gb||[],t,a,e,k,n,r,b);return c.selectAll(".point-group")};function Pw(a,b,c,e,f,k,n,r,t){if(b.length===0)Qw(a,c,e,f);else{c=vj(c).selectAll(".point-group").data(b,function(ta){return ta.key});c.exit().remove();var y=c.enter().append("g").attr("class","point-group");c=y.merge(c);a.v.Uf()||a.v.add(y,f,k);var E=function(ta,Ba){var ya=+ta.radius;if(r(ta.datum,Ba)>0||t(ta.datum,Ba)>0)ya+=2;return ya},ma=function(ta,Ba){var ya=r(ta.datum,Ba);Ba=t(ta.datum,Ba);return a.oa(ta.color,ya,Ba).color},na=a.ma;y.each(function(ta,Ba){(ta.shapeRenderer||na).be(vj(this),"point",ta.chartX,e,E(ta,Ba),ma(ta,Ba),ta)});var sa=y.append("text").attr("class","point-label");switch(a.N){case 1:case 4:sa.attr("display",null).attr("text-anchor",Ij("middle")).attr("alignment-baseline","middle");break;case 2:sa.attr("display",null).attr("text-anchor",Ij("end")).attr("alignment-baseline","middle");break;case 3:sa.attr("display",null).attr("text-anchor",Ij("start")).attr("alignment-baseline","middle");break;default:case 0:sa=c.select(".point-label"),sa.attr("display","none")}a.v.Uf()&&a.v.add(y,f,k);y.each(function(ta){ta= Vh(ta);a.ha&&(ta.Wj=e);ta.radius=0;ta.er=ta.Wj;ta.fr=ta.Wj;ta=It(a);a.v.update(vj(this),f,ta,n)});sa.style("fill",a.ka);k={display:function(ta){return ta.validValue?null:"none"},"class":function(ta){var Ba="point-group";ta.pointClass!==void 0&&(Ba=(Ba+" "+ta.pointClass).trim());ta.datumClass!==void 0&&(Ba=(Ba+" "+ta.datumClass).trim());return Ba}};b={dx:function(ta){return isNaN(ta.labelX)?null:ta.labelX},dy:e};var ua=c;f&&(ti(y,k),sa&&ti(sa,b),ua=c.transition().duration(f));c=ua.select(".point");c.attr("display",function(ta){return n.contains(new xi(ta.chartX,ta.chartY))?null:"none"});c.each(function(ta,Ba){var ya=vj(this);f&&(ya=ya.transition().duration(f));(ta.shapeRenderer||na).Rd(ya,"point",ta.chartX,ta.chartY,E(ta,Ba),ma(ta,Ba),ta)});c=ua.select(".point-label");ti(ua,k);b.dy=function(ta){return isNaN(ta.labelY)?null:ta.labelY};b.display=function(ta){return n.contains(new xi(ta.chartX,ta.chartY))?null:"none"};switch(a.N){case 1:case 4:b["text-anchor"]=Ij("middle");break;case 2:b["text-anchor"]=Ij("end");break;case 3:b["text-anchor"]=Ij("start");break;default:case 0:b.display="none"}c.text(function(ta){return ta.label});c.style("fill",a.ka);ti(c,b);ua.each(function(){var ta=It(a);if(f){var Ba=vj(this).transition(ua);a.v.update(Ba,f,ta,n)}else a.v.update(vj(this),f,ta,n)})}} function Qw(a,b,c,e){a.v.remove(vj(b),c,e);a=vj(b).selectAll(".point-group");b=vj(b).selectAll(".point");e&&(a=a.transition().duration(e),b=b.transition().duration(e),c={cx:function(f){return f.chartX},cy:c,r:function(f){return f.radius},fill:function(f){return f.color}},ti(a,{display:function(f){return f.validValue?null:"none"}}),ti(b,c));a.remove()} w.qd=function(a,b,c,e,f,k){b=Mn(b).Gb;a=null;for(var n=Number.MAX_VALUE,r=[],t=0;t0&&t>Aa.chartX&&(n=!0);t=Aa.chartX;Ow(this.v,Aa);this.ya&&(sa&&ua&&(Aa.domainLowerBound= sa(Aa.datum,ya),Aa.domainUpperBound=ua(Aa.datum,ya),Aa.domainLowerBound!==null&&Aa.domainUpperBound!==null&&(Ca=Aa.domainOffset||0,Aa.domainLowerBound+=Ca,Aa.domainUpperBound+=Ca,Aa.domainLowerBoundPosition=zr(f,Ca+Aa.domainLowerBound),Aa.domainUpperBoundPosition=zr(f,Ca+Aa.domainUpperBound),Aa.errorBarColor=Aa.color)),Aa.measureLowerBound=ta(Aa.datum,ya),Aa.measureUpperBound=Ba(Aa.datum,ya),Aa.measureLowerBound!=null&&Aa.measureUpperBound!=null&&(Ca=Aa.measureOffset||0,Aa.measureLowerBound+=Ca,Aa.measureUpperBound+= Ca,Aa.measureLowerBoundPosition=zr(k,Ca+Aa.measureLowerBound),Aa.measureUpperBoundPosition=zr(k,Ca+Aa.measureUpperBound),Aa.errorBarColor=Aa.color));Aa.shapeRenderer=b(Aa.datum,Aa.index);Aa.strokeWidth=na(Aa.datum,ya)}n&&y.sort(function(Ja,Ka){return Ja.chartX-Ka.chartX});var Fa=this.Sa?this.Sa(y,this):y;n=[];if(r)for(r=0;r0?(Pa+=2,Oa+=" highlight"):Qa<0&&(Oa+=" inverse-highlight");var Wa=ma(y[0].datum,0);Wa>0?(Pa+=2,Oa+=" selected"):Wa<0&&(Oa+=" inverse-selected");Ea.push({color:Ka[0],Pg:Ka[1],Fc:Ka[2],Fe:Ka[3],Xl:Ja,yc:Fa,lr:a.name,strokeWidth:Pa,cr:Pa,ar:Qa>0,br:Qa< 0,id:"lineclip"+Vj(),Rj:Oa})},this)}e.Gb=y;e.Jj=n;e.Nf=Ea;this.N&&this.v.v.Ob(y,It(this),f,k)}};w.render=function(a,b,c,e,f,k,n){var r=zr(b.qb(),0),t=Mn(b),y=c.node();if(a.data.length!==0||y!=null){var E=c.select("g");E.node()&&E.classed("area-segments")||Uj(y,'');var ma=fj(y);E=ma[1];var na=ma[2],sa=ma[3];y=ma[4];ma=ma[5];Zw(this,c,t.Nf,b);$w(this,t.Nf,E,r,e,k);ax(this,t.Nf,na,r,e,k);bx(this,t.Jj,sa,r,e,k);cx(this,t.Nf,ma,r,e,k);this.N?this.v.render(a,b,vj(y),e,f,k,n):(b=b.Qh(),Mn(b,{}),this.v.render({name:a.name,data:[]},b,vj(y),e,f,k,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function ax(a,b,c,e,f,k){if(a.ka)if(b.length===0)dx(a,c,e,f);else if(vj(c).attr("clip-path",k),f){k=vj(c).selectAll(".line-series").data(b);k.exit().remove();b=vj(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");ti(c,{"class":function(t){return t.Rj},fill:"none"});k=c.merge(k);var n=b.enter().append("path");ti(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=ex().defined(function(t){return t.validValue}).curve(a.ha).x(function(t){return t.chartX}).y(e);f&&(ti(c,{stroke:function(t){return t.Pg},"stroke-dasharray":function(t){return t.Fc},d:function(t){return r(t.yc)},"stroke-width":function(t){return t.strokeWidth}}),k=k.transition().duration(f),ti(n,{stroke:"transparent",opacity:"0",d:function(t){return r(t.yc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});ti(k,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Fc},d:function(t){return r(t.yc)},"stroke-width":function(t){return t.strokeWidth}});ti(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.yc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else fx(a,c,b),vj(c).selectAll(".line-series").data(b),vj(c).selectAll(".event-target").data(b);else Uj(c,"")} function fx(a,b,c){for(var e="",f=ex().defined(function(r){return r.validValue}).curve(a.ha).x(function(r){return a.Ca?Math.round(r.chartX):Math.round(r.chartX*100)/100}).y(function(r){r=ql(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(r*100)/100}),k=0;k';e+=''}Uj(b,e)} function dx(a,b,c,e){var f=vj(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=ex().defined(function(n){return n.validValue}).curve(a.ha).x(function(n){return n.chartX}).y(c);f.attr("d",function(n){return k(n.yc)}).remove();vj(b).selectAll(".event-target").remove()} function bx(a,b,c,e,f,k){b.length&&!a.N&&a.ka?(a=vj(c).attr("clip-path",k).selectAll(".isolate-datum").data(b),a.exit().remove(),b=a.enter().append("path").attr("stroke-linecap","round"),a=b.merge(a),c={d:function(n){return"M"+n.chartX+","+e+"h0"},stroke:function(n){return n.color},"stroke-width":function(n){return n.strokeWidth*2},"class":function(n){return"line-series isolate-datum"+(n.datumClass!=null?" "+n.datumClass:"")}},f&&(ti(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},ti(a,c)):Uj(c,"")} function $w(a,b,c,e,f,k){if(a.ta)if(b.length===0)gx(c,e,f);else{b=vj(c).attr("clip-path",k).selectAll(".area").data(b);b.exit().remove();c=b.enter().append("path").attr("class","area").attr("stroke-width",0);b=c.merge(b);var n=hx().curve(a.La).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(ti(c,{fill:function(r){return r.Pg},d:function(r){return n(r.yc)}}),b=b.transition().duration(f));n.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});ti(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Pg},d:function(r){return n(r.yc)},"class":function(r){return"area"+(r.datumClass!=null?" "+r.datumClass:"")}})}else Uj(c,"")} function gx(a,b,c){a=vj(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=hx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.yc)}).remove()} function cx(a,b,c,e,f,k){if(a.ya)if(b.length===0||a.N)ix(c,e,f);else{b=vj(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");ti(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=hx().curve(a.La).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(ti(c,{fill:function(r){return r.color},d:function(r){return n(r.yc)}}),b=b.transition().duration(f));n.y1(function(r){return r.measureUpperBoundPosition!=null?r.measureUpperBoundPosition:r.chartY});n.y0(function(r){return r.measureLowerBoundPosition!=null?r.measureLowerBoundPosition:r.chartY});ti(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.color},opacity:a.N?"0":".2",d:function(r){return n(r.yc)}})}else Uj(c,"")} function ix(a,b,c){a=vj(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=hx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.yc)}).remove()} function Yw(a,b){var c=a.O!=null;return function(e,f){if(c)for(e=0;eE)return!0;if(sa=r.length)return null;for(var t=Math.min(Math.max(kx(r,c),a),b),y=null,E=Number.MAX_VALUE,ma=Number.MAX_VALUE,na=t;na<=b&&!n(na);na++);for(b=t;b>=a&&!n(b);b--);y!=null&&(y=this.Cb(y,c,e));return y};function kx(a,b,c){c=c===void 0?!1:c;var e=ff(a,b,function(f,k){return f-k.chartX});if(e<0)return-e-1;if(c)for(;e=0;b--)this.removeBehavior(a[b]);return this};Ux.prototype.removeAllBehaviors=Ux.prototype.fo;Ux.prototype.removeBehavior=function(a){a.xd(this);Ve(this.xf,a);return this};Ux.prototype.removeBehavior=Ux.prototype.removeBehavior;Ux.prototype.Mb=function(){return this.Jc.Mb()};Ux.prototype.getMarginTop=Ux.prototype.Mb;Ux.prototype.Qe=function(){return this.Jc.Qe()};Ux.prototype.getMarginRight=Ux.prototype.Qe;Ux.prototype.Pe=function(){return this.Jc.Pe()};Ux.prototype.getMarginBottom=Ux.prototype.Pe;Ux.prototype.Lb=function(){return this.Jc.Lb()};Ux.prototype.getMarginLeft=Ux.prototype.Lb;Ux.prototype.Gg=function(){return new kj(this.Mb(),this.Qe(),this.Pe(),this.Lb())};Ux.prototype.getMargins=Ux.prototype.Gg;Ux.prototype.Xc=function(a,b){this.Jc.Xc(a,b);return this};Ux.prototype.setMargins=Ux.prototype.Xc;Ux.prototype.Eo=function(a){this.Jc=a;return this};Ux.prototype.setLayoutManager=Ux.prototype.Eo;Ux.prototype.Xh=function(){this.Xa.ob("prelayout",this,this.Jc)};function by(a,b,c){b.Wg("chartDelegate",function(e){this.Xa.ob(on[c].selectionChange,this,e)}.bind(a))} Ux.prototype.bl=function(a){a=a===void 0?1:a;var b=this.ak.node().querySelector(".aplos-chart-container");if(!b)throw Error("No container element for the chart could be found.");var c=cf(b.querySelectorAll("*"));c.push(b);b=b.cloneNode(!0);var e=cf(b.querySelectorAll("*"));e.push(b);for(var f=0;f>6|192:((f&64512)==55296&&e+1>18|240,a[c++]=f>>12&63|128):a[c++]=f>>12|224,a[c++]=f>>6&63|128),a[c++]=f&63|128);b=void 0;b===void 0&&(b=0);if(!vf)for(vf={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++)for(k=c.concat(e[f].split("")),uf[f]=k,n=0;n>2];t=b[(t&3)<<4|y>>4];y=b[(y&15)<<2|r>>6];r=b[r&63];c[f++]=""+n+t+y+r}n=0;r=e;switch(a.length-k){case 2:n=a[k+1],r=b[(n&15)<<2]||e;case 1:a=a[k],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+r+e}a=c.join("")}return"data:image/svg+xml;base64,"+a};Ux.prototype.toSvgDataUrl=Ux.prototype.bl;Ux.prototype.Yo=function(a){a=a===void 0?1:a;var b=document.createElement("canvas"),c=10*a;b.width=this.frameWidth()*a+c*2;b.height=this.frameHeight()*a+c*2;var e=new Image;e.src=this.bl(a);var f=new Qx;e.onload=function(){this.onerror=this.onload=null;try{var k=b.getContext("2d");k.fillStyle="#FFF";k.fillRect(0,0,b.width,b.height);k.drawImage(e,c,c);f.Cf(b.toDataURL("image/png"))}catch(n){f.reject(n)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};Ux.prototype.toPngDataUrl=Ux.prototype.Yo;Ux.prototype.getStyle=function(){return this.Hi};function cy(a,b,c){Ux.call(this,bf(a,["prelayout","postlayout"]),b,c);this.nf=this.Pc=null;this.Xc({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} Od("aplos.chart.SvgChartView",cy);Pd(cy,Ux);var dy=0;cy.prototype.redraw=cy.prototype.le;cy.prototype.yd=function(){cy.Qb.yd.call(this);var a=this.Ve().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.kb.node().setAttribute("transform","translate("+this.Lb()+","+this.Mb()+")");this.Pc&&this.Pc.attr("width",this.Za()+1).attr("height",this.Ab()+2)};cy.prototype.Ve=function(){return this.Qo};cy.prototype.getSvg=cy.prototype.Ve;cy.prototype.Zo=function(){var a=this.Ve().node(),b=document.createElement("style"),c=Gj(a),e=sj(a);c.push("svg{font:"+e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily+"}");b.textContent=c.join("\n");c=document.createElement("defs");c.appendChild(b);a.insertBefore(c,a.firstChild);b=(new XMLSerializer).serializeToString(a);a.removeChild(c);return b};cy.prototype.toSvgString=cy.prototype.Zo;cy.prototype.getNearestDatumDetails=cy.prototype.Ff;var ey=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1");function fy(a,b,c){var e=this;cy.call(this,bf(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.Rb=new Dn(this);this.ta={};this.Vf={};this.Rk("hover",new vn);this.ab=new gy;this.on("viewportChange.seriesChartView",function(){e.ab.reset()})} Pd(fy,cy);Od("aplos.chart.SeriesChartView",fy);fy.prototype.Rk=function(a,b){b.Wg("clearSelectedDatumDetailsCache",this.ql.bind(this));var c=this.Vf,e=on[a].selectionChange,f=this.Xa;f.O.hasOwnProperty(e)||un(f,[e]);e=c[a];e!=null&&e.Wg("chartDelegate",null);c[a]=b;by(this,b,a);return this};fy.prototype.setSelectionModel=fy.prototype.Rk;fy.prototype.Jo=function(a){En(this.Rb,a);return this};fy.prototype.setSeriesDefaults=fy.prototype.Jo;fy.prototype.ub=function(a){return this.ta[a||"__aplosDefault__"]||this.ta.__aplosDefault__};fy.prototype.getRenderer=fy.prototype.ub;fy.prototype.Bn=function(a){return!!this.ta[a||"__aplosDefault__"]};fy.prototype.hasRenderer=fy.prototype.Bn;fy.prototype.fg=function(a,b){b?(b.type&&(b=this.getStyle().Aj(b)),this.ta[a]=b):delete this.ta[a];return this};fy.prototype.setRenderer=fy.prototype.fg;fy.prototype.fi=function(a){a.type&&(a=this.getStyle().Aj(a));this.ta.__aplosDefault__=a;return this};fy.prototype.setDefaultRenderer=fy.prototype.fi;fy.prototype.di=function(a,b){a=this.Hg(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.Vf[nn[b]||"hover"]||null).Ci(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};fy.prototype.selectDatum=fy.prototype.di;fy.prototype.oo=function(a){this.Xa.ob("seriesMouseover",this,a,vi)};fy.prototype.selectSeries=fy.prototype.oo;fy.prototype.Ll=function(a){(this.Vf[nn[a]||"hover"]||null).deselectAll()};fy.prototype.clearSelections=fy.prototype.Ll;fy.prototype.Hg=function(a,b,c){var e=this.O||[],f=this.N||[];if(!e||!f)return[];if(vi){var k=ui(this.kb.node());var n=k[0];k=k[1]}for(var r=[],t=0;t0){if(vi){var e=ui(this.kb.node());var f=e[0];e=e[1]}for(a=0;a0?a[0]-this.Lb():ui(this.kb.node())[0];a=a&&a.length>1?a[1]-this.Mb():ui(this.kb.node())[1];if(this.v&&(b<0||b>this.Za())||!this.v&&(a<0||a>this.Ab()))return[];for(var e=new Ct(this.Lb(),this.Mb(),this.Za(),this.Ab()),f=new xi(b+e.left,a+e.top),k=[],n=0;n=0;k--){var n=a.v=b[k];f=vy(n,e,!0,a)&&f}n=a.v=c;f=vy(n,e,!0,a)&&f;f=vy(n,e,!1,a)&&f;if(b)for(k=0;k0&&athis.N&&this.show():Oy(this)};function Oy(a){a.oa.stop();rp(a.ma);a.ma=null} w.qd=function(a,b){return this.ta(a,b)};My.prototype.setHovercardContainerStyle=My.prototype.Co;My.prototype.hide=My.prototype.Nh;My.prototype.followClosestSeries=My.prototype.uj;My.prototype.followTopMostSeries=My.prototype.am;My.prototype.followNamedSeries=My.prototype.Zl;My.prototype.getPlacer=My.prototype.en;My.prototype.setPlacer=My.prototype.yi;My.prototype.placer=My.prototype.bo;My.prototype.getContentRenderer=My.prototype.Ef;My.prototype.setContentRenderer=My.prototype.df;My.prototype.contentRenderer=My.prototype.yg;My.prototype.getShowDelayMs=My.prototype.mn;My.prototype.setShowDelayMs=My.prototype.Sk;My.prototype.showDelayMs=My.prototype.No;My.prototype.getTransitionMs=My.prototype.xn;My.prototype.setTransitionMs=My.prototype.Vk;My.prototype.transitionMs=My.prototype.kf;My.prototype.getClassName=My.prototype.rm;My.prototype.setClassName=My.prototype.vk;My.prototype.className=My.prototype.className;Od("aplos.chart.behavior.Hovercard",My);function Uy(){this.v=null;this.N=!1} w=Uy.prototype;w.yg=function(a){return arguments.length&&a!=null?this.df(a):this.Ef()};w.Ef=function(){return this.v};w.df=function(a){this.v=a;return this};w.kd=function(a){if(a&&a.Ui){if(this.N)throw Error("A donut center content card can be attached to one and only one pie chart.");this.N=!0;a.on("postrender.donutcentercontent",this.Ri.bind(this,a));a.on("hoverSelectionChange.donutcentercontent",this.Ri.bind(this,a))}};w.xd=function(a){a&&a.Ui&&(a.v(a.N()),this.N=!1,a.on("postrender.donutcentercontent",null),a.on("hoverSelectionChange.donutcentercontent",null))};w.Ri=function(a){var b=a.ub();if(a&&a.Ui&&b&&typeof b.Fd==="function"&&!(b.Fd()=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);Yy(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:Yy(f)&&(b+="\\"),b+=f}}return b+"$"} function $y(a){try{return a=a.replace(/\\"/g,'"'),a=a.replace(/\\'/g,"'"),a=a.replace(/\\n/g,"\n"),a=a.replace(/\\t/g,"\t"),a=a.replace(/\\r/g,"\r"),a=a.replace(/\\\\/g,"\\"),a=a.replace(/\\U([\d\w]{8})/gi,function(b,c){return String.fromCharCode(parseInt(c.substring(0,4),16),parseInt(c.substring(4),16))}),a=a.replace(/\\u([\d\w]{4})/gi,function(b,c){return String.fromCharCode(parseInt(c,16))})}catch(b){throw Error('Unable to unescape "'+a+'" encountered error: '+b);}} function az(){} az.prototype.parse=function(){console&&console.error("No expression parser implementation was defined. Please ensure that aplos.data.GeneratedParser has been required.");throw Error("No expression parser implementation was defined.");};var bz=new az;bz=function(){function a(va,oc,gd,Uc){gd=gd||{};for(Uc=va.length;Uc--;gd[va[Uc]]=oc);return gd} function b(){this.Oc={}} var c=[1,8],e=[1,20],f=[1,26],k=[1,27],n=[1,30],r=[1,112],t=[1,113],y=[1,29],E=[1,28],ma=[1,83],na=[1,84],sa=[1,85],ua=[1,86],ta=[1,87],Ba=[1,88],ya=[1,89],Aa=[1,90],Ca=[1,91],Fa=[1,92],Ea=[1,93],Ja=[1,94],Ka=[1,95],Oa=[1,96],Pa=[1,97],Qa=[1,98],Wa=[1,99],Db=[1,111],Eb=[1,100],Fb=[1,101],Gb=[1,102],Hb=[1,103],Ib=[1,104],Jb=[1,105],$a=[1,106],Kb=[1,107],Lb=[1,108],Mb=[1,109],fb=[1,110],ub=[1,31],vb=[1,32],wb=[1,33],Nb=[1,34],Ob=[1,35],Pb=[1,36],Qb=[1,37],Rb=[1,38],Sb=[1,47],Tb=[1,48],Ub=[1,49],Vb= [1,50],Wb=[1,51],Xb=[1,52],Yb=[1,53],Zb=[1,54],$b=[1,55],ac=[1,56],bc=[1,57],xb=[1,58],cc=[1,59],dc=[1,60],ec=[1,61],yb=[1,62],fc=[1,63],gc=[1,64],Ra=[1,65],Za=[1,66],gb=[1,67],ab=[1,68],bb=[1,69],Xa=[1,70],Ya=[1,71],zb=[1,72],Ab=[1,73],hb=[1,74],cb=[1,75],La=[1,76],ib=[1,77],Bb=[1,78],hc=[1,79],jb=[1,80],Ua=[1,81],kb=[1,82],lb=[1,39],Va=[1,40],mb=[1,41],nb=[1,42],ob=[1,43],pb=[1,44],ic=[1,45],qb=[1,46],rb=[1,116],db=[1,117],sb=[1,118],lc=[1,119],pc=[1,120],uc=[1,121],zc=[1,122],rc=[1,123],Ac=[1,124],Cb=[1,125],Gc=[1,126],Ic=[1,128],Hc=[1,127],nc=[1,129],Bc=[1,130],Cc=[1,131],Dc=[1,132],sc=[1,133],qc=[1,134],Ec=[1,135],vc=[1,136],wc=[1,137],xc=[1,138],yc=[1,139],tb=[5,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],xg=[1,140],vk=[1,150],yg=[5,11,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,55,71,72,74,75,76,81,82,96,97,98,99],Bi=[1,180],Ci=[5,12,17,42,43,44,45,54,96,97,98,99],Xe=[1,233],wf=[1,250],Di=[5,12,17,32,33,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],Fe=[5,12,17,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],qe=[2,37],Ye=[1,336],ke=[5,12,17,54,96,97,98,99],wk=[96,97],Fi={trace:function(){},Oc:{},Ro:{error:2,expressions:3,math:4,EOF:5,float_item:6,boolean_item:7,identifier_item:8,negated_identifier:9,string_item:10,"(":11,")":12,operator_expression:13,aggregation_function:14,scalar_operator:15,scalar_2_operator:16,",":17,scalar_n_operator:18,comma_values:19,scalar_function:20,scalar_2_function:21,scalar_n_functions:22,alias_functions:23,datetime_functions:24,case_function:25,cast_function:26,quantile_functions:27,native_function:28,misc_function_no_args:29,misc_function_one_arg:30,misc_function_n_args:31,"+":32,"-":33,"/":34,"*":35,"=":36,"!=":37,"<":38,"<=":39,">":40,">=":41,BETWEEN_OP:42,AND_OP:43,NOT_BETWEEN_OP:44,OR_OP:45,IS_NULL_OP:46,IS_TRUE_OP:47,IS_FALSE_OP:48,FLOAT_VALUE:49,STRING_VALUE:50,NATIVE_EXPR:51,NATIVE_AGGREGATE:52,misc_function_start:53,IDENTIFIER:54,DOT_OP:55,BOOLEAN_VALUE:56,token_item:57,ROUND:58,TRUNC:59,LN:60,LOG10:61,LOG:62,POW:63,EXP:64,LIKE:65,COUNT:66,DISTINCT:67,COUNT_DISTINCT_EST:68,NOT_OP:69,NOT_EQUAL_EXPR:70,LIKE_OP:71,NOT_LIKE_OP:72,IS_NOT_NULL:73,IS_NOT_NULL_OP:74,IS_NOT_TRUE_OP:75,IS_NOT_FALSE_OP:76,IF:77,IFNULL:78,NULLIF:79,COALESCE:80,IN_OP:81,NOT_IN_OP:82,NTH_QUANTILE:83,EXTRACT:84,DATE_TRUNC:85,DATETIME_TRUNC:86,TIMESTAMP_TRUNC:87,DATE_ADD:88,DATE_SUB:89,PARSETIME:90,FORMATTIME:91,TIMESTAMP:92,CAST:93,CASE:94,when_then_values:95,ELSE:96,END:97,WHEN:98,THEN:99,AVG:100,SUM:101,MIN:102,MAX:103,COUNT_DISTINCT:104,VARIANCE:105,STDDEV:106,HLL_COUNT_MERGE:107,ABS:108,SIGN:109,IS_INF:110,IS_NAN:111,SQRT:112,CEILING:113,FLOOR:114,COS:115,COSH:116,ACOS:117,ACOSH:118,SIN:119,SINH:120,ASIN:121,ASINH:122,TAN:123,TANH:124,ATAN:125,ATANH:126,IS_NULL:127,UNIX_MICROS:128,UNIX_MILLIS:129,TIMESTAMP_MICROS:130,TIMESTAMP_MILLIS:131,ENCODE_URI_COMPONENT:132,HLL_COUNT_EXTRACT:133,IEEE_DIVIDE:134,POWER:135,DIV:136,MOD:137,ATAN2:138,REGEXP_MATCH:139,GREATEST:140,LEAST:141,CONCAT:142,FORMAT:143,NOT_EXPR:144,EQUAL_EXPR:145,LESS_EXPR:146,LESS_OR_EQUAL_EXPR:147,GREATER_EXPR:148,GREATER_OR_EQUAL_EXPR:149,AND_EXPR:150,OR_EXPR:151,$accept:0,$end:1},ig:{2:"error",5:"EOF",11:"(",12:")",17:",",26:"cast_function",32:"+",33:"-",34:"/",35:"*",36:"=",37:"!=",38:"<",39:"<=",40:">",41:">=",42:"BETWEEN_OP",43:"AND_OP",44:"NOT_BETWEEN_OP",45:"OR_OP",46:"IS_NULL_OP",47:"IS_TRUE_OP",48:"IS_FALSE_OP",49:"FLOAT_VALUE",50:"STRING_VALUE",51:"NATIVE_EXPR",52:"NATIVE_AGGREGATE",54:"IDENTIFIER",55:"DOT_OP",56:"BOOLEAN_VALUE",58:"ROUND",59:"TRUNC",60:"LN",61:"LOG10",62:"LOG",63:"POW",64:"EXP",65:"LIKE",66:"COUNT",67:"DISTINCT",68:"COUNT_DISTINCT_EST",69:"NOT_OP",70:"NOT_EQUAL_EXPR",71:"LIKE_OP",72:"NOT_LIKE_OP",73:"IS_NOT_NULL",74:"IS_NOT_NULL_OP",75:"IS_NOT_TRUE_OP",76:"IS_NOT_FALSE_OP",77:"IF",78:"IFNULL",79:"NULLIF",80:"COALESCE",81:"IN_OP",82:"NOT_IN_OP",83:"NTH_QUANTILE",84:"EXTRACT",85:"DATE_TRUNC",86:"DATETIME_TRUNC",87:"TIMESTAMP_TRUNC",88:"DATE_ADD",89:"DATE_SUB",90:"PARSETIME",91:"FORMATTIME",92:"TIMESTAMP",93:"CAST",94:"CASE",96:"ELSE",97:"END",98:"WHEN",99:"THEN",100:"AVG",101:"SUM",102:"MIN",103:"MAX",104:"COUNT_DISTINCT",105:"VARIANCE",106:"STDDEV",107:"HLL_COUNT_MERGE",108:"ABS",109:"SIGN",110:"IS_INF",111:"IS_NAN",112:"SQRT",113:"CEILING",114:"FLOOR",115:"COS",116:"COSH",117:"ACOS",118:"ACOSH",119:"SIN",120:"SINH",121:"ASIN",122:"ASINH",123:"TAN",124:"TANH",125:"ATAN",126:"ATANH",127:"IS_NULL",128:"UNIX_MICROS",129:"UNIX_MILLIS",130:"TIMESTAMP_MICROS",131:"TIMESTAMP_MILLIS",132:"ENCODE_URI_COMPONENT",133:"HLL_COUNT_EXTRACT",134:"IEEE_DIVIDE",135:"POWER",136:"DIV",137:"MOD",138:"ATAN2",139:"REGEXP_MATCH",140:"GREATEST",141:"LEAST",142:"CONCAT",143:"FORMAT",144:"NOT_EXPR",145:"EQUAL_EXPR",146:"LESS_EXPR",147:"LESS_OR_EQUAL_EXPR",148:"GREATER_EXPR",149:"GREATER_OR_EQUAL_EXPR",150:"AND_EXPR",151:"OR_EXPR"},ik:[0,[3,2],[4,1],[4,1],[4,1],[4,1],[4,1],[4,3],[4,1],[4,4],[4,4],[4,6],[4,4],[4,4],[4,6],[4,4],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,5],[13,5],[13,3],[13,3],[13,2],[13,2],[13,2],[6,2],[6,1],[10,1],[28,4],[28,4],[53,2],[29,2],[30,3],[31,3],[9,2],[8,1],[8,3],[7,1],[57,1],[19,3],[19,3],[23,4],[23,6],[23,4],[23,6],[23,4],[23,4],[23,4],[23,6],[23,6],[23,4],[23,6],[23,4],[23,5],[23,4],[23,2],[23,6],[23,3],[23,3],[23,4],[23,2],[23,2],[23,2],[23,8],[23,6],[23,6],[23,4],[23,5],[23,5],[23,5],[23,5],[27,8],[24,10],[24,10],[24,6],[24,6],[24,6],[24,8],[24,8],[24,8],[24,8],[24,8],[24,4],[24,6],[24,6],[25,5],[25,3],[95,4],[95,5],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[22,1],[22,1],[15,1],[16,1],[16,1],[16,1],[16,1],[16,1],[18,1],[18,1]],Th:function(va,oc,gd,Uc,hd,za){va=za.length-1;switch(hd){case 1:return za[va-1];case 7:this.qa=za[va-1];break;case 9:case 10:case 13:this.qa={type:"function",name:za[va-3].toUpperCase(),params:[za[va-1]]};break;case 11:case 14:this.qa={type:"function",name:za[va-5].toUpperCase(),params:[za[va-3],za[va-1]]};break;case 12:case 15:this.qa={type:"function",name:za[va-3].toUpperCase(),params:za[va-1]};break;case 25:case 26:case 27:case 28:this.qa={type:"function",name:za[va-1],params:[za[va-2],za[va]]};break;case 29:this.qa={type:"function",name:"EQUAL",params:[za[va-2],za[va]]};break;case 30:this.qa={type:"function",name:"NOT_EQUAL",params:[za[va-2],za[va]]};break;case 31:this.qa={type:"function",name:"LESS",params:[za[va-2],za[va]]};break;case 32:this.qa={type:"function",name:"LESS_OR_EQUAL",params:[za[va-2],za[va]]};break;case 33:this.qa={type:"function",name:"GREATER",params:[za[va-2],za[va]]};break;case 34:this.qa={type:"function",name:"GREATER_OR_EQUAL",params:[za[va-2],za[va]]};break;case 35:this.qa={type:"function",name:"BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 36:this.qa={type:"function",name:"NOT BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 37:this.qa={type:"function",name:"AND",params:[za[va-2],za[va]]};break;case 38:this.qa={type:"function",name:"OR",params:[za[va-2],za[va]]};break;case 39:this.qa={type:"function",name:"IS NULL",params:[za[va-1]]};break;case 40:this.qa={type:"function",name:"IS TRUE",params:[za[va-1]]};break;case 41:this.qa={type:"function",name:"IS FALSE",params:[za[va-1]]};break;case 42:this.qa={type:"number",value:+-za[va]};break;case 43:this.qa={type:"number",value:+za[va]};break;case 44:this.qa={type:"string",value:$y(za[va].substring(1,za[va].length-1))};break;case 45:case 46:this.qa={type:"function",name:za[va-3],params:[za[va-1]]};break;case 47:hd=za[va-1].pathParts.slice();if(hd.length>2)throw Error("Too many path parts.");oc=hd.pop();this.qa={type:"function",namespace:hd.pop(),name:oc,fullName:za[va-1].column};break;case 48:za[va-1].params=[];this.qa=za[va-1];break;case 49:za[va-2].params=[za[va-1]];this.qa=za[va-2];break;case 50:hd=[];for(oc=0;oc2&&ee.push("'"+this.ig[qh]+"'");var Hn=Jd.hh?"Parse error on line "+(ph+1)+":\n"+Jd.hh()+"\nExpecting "+ee.join(", ")+", got '"+(this.ig[Gd]||Gd)+"'":"Parse error on line "+(ph+1)+": Unexpected "+(Gd==1?"end of input":"'"+(this.ig[Gd]|| Gd)+"'");this.parseError(Hn,{text:Jd.match,dl:this.ig[Gd]||Gd,line:Jd.Xb,dr:yf,Vq:ee})}if($d[0]instanceof Array&&$d.length>1)throw Error("Parse Error: multiple actions possible at state: "+ye+", token: "+Gd);switch($d[0]){case 1:oc.push(Gd);gd.push(Jd.Yb);Uc.push(Jd.Ua);oc.push($d[1]);Gd=null;Ei?(Gd=Ei,Ei=null):(xk=Jd.Ud,za=Jd.Yb,ph=Jd.Xb,yf=Jd.Ua,yk>0&&yk--);break;case 2:ee=this.ik[$d[1]][1];Uf.qa=gd[gd.length-ee];Uf.Vi={de:Uc[Uc.length-(ee||1)].de,Id:Uc[Uc.length-1].Id,nd:Uc[Uc.length-(ee||1)].nd,vd:Uc[Uc.length-1].vd};Gn&&(Uf.Vi.range=[Uc[Uc.length-(ee||1)].range[0],Uc[Uc.length-1].range[1]]);ye=this.Th.apply(Uf,[za,xk,ph,xf,$d[1],gd,Uc].concat(Fn));if(typeof ye!=="undefined")return ye;ee&&(oc=oc.slice(0,-1*ee*2),gd=gd.slice(0,-1*ee),Uc=Uc.slice(0,-1*ee));oc.push(this.ik[$d[1]][0]);gd.push(Uf.qa);Uc.push(Uf.Vi);$d=hd[oc[oc.length-2]][oc[oc.length-1]];oc.push($d);break;case 3:return!0}}}};Fi.Pj=function(){return{Oi:1,parseError:function(va,oc){if(this.Oc.dk)this.Oc.dk.parseError(va,oc);else throw Error(va);},Do:function(va,oc){this.Oc=oc||this.Oc||{};this.ac=va;this.vf=this.og=this.done=!1;this.Xb=this.Ud=0;this.Yb=this.Kc=this.match="";this.Ib=["INITIAL"];this.Ua={de:1,nd:0,Id:1,vd:0};this.options.Sf&&(this.Ua.range=[0,0]);this.offset=0;return this},input:function(){var va=this.ac[0];this.Yb+=va;this.Ud++;this.offset++;this.match+=va;this.Kc+=va;va.match(/(?:\r\n?|\n).*/g)?(this.Xb++,this.Ua.Id++):this.Ua.vd++;this.options.Sf&&this.Ua.range[1]++;this.ac=this.ac.slice(1);return va},fp:function(va){var oc=va.length,gd=va.split(/(?:\r\n?|\n)/g);this.ac=va+this.ac;this.Yb=this.Yb.substr(0,this.Yb.length-oc);this.offset-=oc;va=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.Kc=this.Kc.substr(0,this.Kc.length-1);gd.length-1&&(this.Xb-=gd.length-1);var Uc=this.Ua.range;this.Ua={de:this.Ua.de,Id:this.Xb+1,nd:this.Ua.nd,vd:gd?(gd.length===va.length?this.Ua.nd:0)+va[va.length-gd.length].length-gd[0].length:this.Ua.nd-oc};this.options.Sf&&(this.Ua.range= [Uc[0],Uc[0]+this.Ud-oc]);this.Ud=this.Yb.length;return this},gr:function(){this.vf=!0;return this},reject:function(){if(this.options.Zi)this.og=!0;else return this.parseError("Lexical error on line "+(this.Xb+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.hh(),{text:"",dl:null,line:this.Xb});return this},Zq:function(va){this.fp(this.match.slice(va))},ao:function(){var va=this.Kc.substr(0,this.Kc.length-this.match.length);return(va.length>20?"...":"")+va.substr(-20).replace(/\n/g,"")},gp:function(){var va=this.match;va.length<20&&(va+=this.ac.substr(0,20-va.length));return(va.substr(0,20)+(va.length>20?"...":"")).replace(/\n/g,"")},hh:function(){var va=this.ao(),oc=Array(va.length+1).join("-");return va+this.gp()+"\n"+oc+"^"},Zk:function(va,oc){var gd;if(this.options.Zi){var Uc={Xb:this.Xb,Ua:{de:this.Ua.de,Id:this.Id,nd:this.Ua.nd,vd:this.Ua.vd},Yb:this.Yb,match:this.match,matches:this.matches,Kc:this.Kc,Ud:this.Ud,offset:this.offset,vf:this.vf,ac:this.ac,Oc:this.Oc,Ib:this.Ib.slice(0),done:this.done};this.options.Sf&&(Uc.Ua.range=this.Ua.range.slice(0))}if(gd=va[0].match(/(?:\r\n?|\n).*/g))this.Xb+=gd.length;this.Ua={de:this.Ua.Id,Id:this.Xb+1,nd:this.Ua.vd,vd:gd?gd[gd.length-1].length-gd[gd.length-1].match(/\r?\n?/)[0].length:this.Ua.vd+va[0].length};this.Yb+=va[0];this.match+=va[0];this.matches=va;this.Ud=this.Yb.length;this.options.Sf&&(this.Ua.range=[this.offset,this.offset+=this.Ud]);this.og=this.vf=!1;this.ac=this.ac.slice(va[0].length);this.Kc+=va[0];va=this.Th.call(this,this.Oc,this,oc,this.Ib[this.Ib.length-1]);this.done&&this.ac&&(this.done=!1);if(va)return va;if(this.og)for(var hd in Uc)this[hd]=Uc[hd];return!1},next:function(){if(this.done)return this.Oi;this.ac||(this.done=!0);var va;this.vf||(this.match=this.Yb="");for(var oc=this.tl(),gd=0;gdUc[0].length)){var Uc=va;var hd=gd;if(this.options.Zi){Uc=this.Zk(va,oc[gd]);if(Uc!==!1)return Uc;if(this.og)Uc=!1;else return!1}else if(!this.options.flex)break}return Uc?(Uc=this.Zk(Uc,oc[hd]),Uc!==!1?Uc:!1):this.ac===""?this.Oi:this.parseError("Lexical error on line "+(this.Xb+1)+". Unrecognized text.\n"+ this.hh(),{text:"",dl:null,line:this.Xb})},Oj:function(){var va=this.next();return va?va:this.Oj()},aj:function(va){this.Ib.push(va)},co:function(){return this.Ib.length-1>0?this.Ib.pop():this.Ib[0]},tl:function(){return this.Ib.length&&this.Ib[this.Ib.length-1]?this.conditions[this.Ib[this.Ib.length-1]].rules:this.conditions.INITIAL.rules},ur:function(va){va=this.Ib.length-1-Math.abs(va||0);return va>=0?this.Ib[va]:"INITIAL"},pushState:function(va){this.aj(va)},sr:function(){return this.Ib.length},options:{flex:!0,"case-insensitive":!0},Th:function(va,oc,gd){switch(gd){case 1:return 67;case 2:return 144;case 3:return 150;case 4:return 151;case 5:return 145;case 6:return 70;case 7:return 146;case 8:return 147;case 9:return 148;case 10:return 149;case 11:return 127;case 12:return 73;case 13:return 43;case 14:return 45;case 15:return 65;case 16:return 51;case 17:return 52;case 18:return 93;case 19:return 128;case 20:return 129;case 21:return 130;case 22:return 131;case 23:return 92;case 24:return 100;case 25:return 66;case 26:return 103;case 27:return 102;case 28:return 101;case 29:return 105;case 30:return 106;case 31:return 107;case 32:return 108;case 33:return 109;case 34:return 110;case 35:return 111;case 36:return 134;case 37:return 112;case 38:return 63;case 39:return 135;case 40:return 64;case 41:return 60;case 42:return 62;case 43:return 61;case 44:return 140;case 45:return 141;case 46:return 136;case 47:return 137;case 48:return 58;case 49:return 59;case 50:return 113;case 51:return 113;case 52:return 114;case 53:return 115;case 54:return 116;case 55:return 117;case 56:return 118;case 57:return 119;case 58:return 120;case 59:return 121;case 60:return 122;case 61:return 123;case 62:return 124;case 63:return 125;case 64:return 126;case 65:return 138;case 66:return 133;case 67:return 142;case 68:return 139;case 69:return 143;case 70:return 84;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 89;case 76:return 32;case 77:return 33;case 78:return 35;case 79:return 34;case 80:return 69;case 81:return 43;case 82:return 45;case 83:return 38;case 84:return 39;case 85:return 40;case 86:return 41;case 87:return 36;case 88:return 37;case 89:return 37;case 90:return 55;case 91:return 42;case 92:return 44;case 93:return 71;case 94:return 72;case 95:return 46;case 96:return 74;case 97:return 47;case 98:return 75;case 99:return 48;case 100:return 76;case 101:return 81;case 102:return 82;case 103:return this.aj("CASE_MODE"),94;case 104:return 98;case 105:return 99;case 106:return 96;case 107:return this.co(),97;case 108:return 80;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 104;case 113:return 68;case 114:return 90;case 115:return 91;case 116:return 83;case 117:return 132;case 118:return 11;case 119:return 12;case 120:return 17;case 121:return"'";case 122:return'"';case 123:return'"';case 124:return 49;case 125:return 56;case 126:return 54;case 127:return 50;case 128:return 50;case 129:return 54;case 130:return 5;case 131:return"INVALID";case 132:console.log(oc.Yb)}},rules:[/^(?:\s+)/i,/^(?:DISTINCT)/i,/^(?:NOT(?=[(]))/i,/^(?:AND(?=[(]))/i,/^(?:OR(?=[(]))/i,/^(?:EQUAL(?=[(]))/i,/^(?:NOT_EQUAL(?=[(]))/i,/^(?:LESS(?=[(]))/i,/^(?:LESS_OR_EQUAL(?=[(]))/i,/^(?:GREATER(?=[(]))/i,/^(?:GREATER_OR_EQUAL(?=[(]))/i,/^(?:IS NULL(?=[(]))/i,/^(?:IS NOT NULL(?=[(]))/i,/^(?:&&)/i,/^(?:\|\|)/i,/^(?:LIKE(?=[(]))/i,/^(?:NATIVE_EXPR(?=\s*[(]))/i,/^(?:NATIVE_AGGREGATE(?=\s*[(]))/i,/^(?:CAST(?=\s*[(]))/i,/^(?:UNIX_MICROS(?=\s*[(]))/i,/^(?:UNIX_MILLIS(?=\s*[(]))/i,/^(?:TIMESTAMP_MICROS(?=\s*[(]))/i,/^(?:TIMESTAMP_MILLIS(?=\s*[(]))/i,/^(?:TIMESTAMP(?=\s*[(]))/i,/^(?:AVG(?=\s*[(]))/i,/^(?:COUNT(?=\s*[(]))/i,/^(?:MAX(?=\s*[(]))/i,/^(?:MIN(?=\s*[(]))/i,/^(?:SUM(?=\s*[(]))/i,/^(?:VARIANCE(?=\s*[(]))/i,/^(?:STDDEV(?=\s*[(]))/i,/^(?:HLL_COUNT\.MERGE(?=\s*[(]))/i,/^(?:ABS(?=\s*[(]))/i,/^(?:SIGN(?=\s*[(]))/i,/^(?:IS_INF(?=\s*[(]))/i,/^(?:IS_NAN(?=\s*[(]))/i,/^(?:IEEE_DIVIDE(?=\s*[(]))/i,/^(?:SQRT(?=\s*[(]))/i,/^(?:POW(?=\s*[(]))/i,/^(?:POWER(?=\s*[(]))/i,/^(?:EXP(?=\s*[(]))/i,/^(?:LN(?=\s*[(]))/i,/^(?:LOG(?=\s*[(]))/i,/^(?:LOG10(?=\s*[(]))/i,/^(?:GREATEST(?=\s*[(]))/i,/^(?:LEAST(?=\s*[(]))/i,/^(?:DIV(?=\s*[(]))/i,/^(?:MOD(?=\s*[(]))/i,/^(?:ROUND(?=\s*[(]))/i,/^(?:TRUNC(?=\s*[(]))/i,/^(?:CEIL(?=\s*[(]))/i,/^(?:CEILING(?=\s*[(]))/i,/^(?:FLOOR(?=\s*[(]))/i,/^(?:COS(?=\s*[(]))/i,/^(?:COSH(?=\s*[(]))/i,/^(?:ACOS(?=\s*[(]))/i,/^(?:ACOSH(?=\s*[(]))/i,/^(?:SIN(?=\s*[(]))/i,/^(?:SINH(?=\s*[(]))/i,/^(?:ASIN(?=\s*[(]))/i,/^(?:ASINH(?=\s*[(]))/i,/^(?:TAN(?=\s*[(]))/i,/^(?:TANH(?=\s*[(]))/i,/^(?:ATAN(?=\s*[(]))/i,/^(?:ATANH(?=\s*[(]))/i,/^(?:ATAN2(?=\s*[(]))/i,/^(?:HLL_COUNT\.EXTRACT(?=\s*[(]))/i,/^(?:CONCAT(?=\s*[(]))/i,/^(?:REGEXP_MATCH(?=\s*[(]))/i,/^(?:FORMAT(?=\s*[(]))/i,/^(?:EXTRACT(?=\s*[(]))/i,/^(?:DATE_TRUNC(?=\s*[(]))/i,/^(?:DATETIME_TRUNC(?=\s*[(]))/i,/^(?:TIMESTAMP_TRUNC(?=\s*[(]))/i,/^(?:DATE_ADD(?=\s*[(]))/i,/^(?:DATE_SUB(?=\s*[(]))/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:NOT)/i,/^(?:AND)/i,/^(?:OR)/i,/^(?:<)/i,/^(?:<=)/i,/^(?:>)/i,/^(?:>=)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<>)/i,/^(?:\.)/i,/^(?:BETWEEN)/i,/^(?:NOT BETWEEN)/i,/^(?:LIKE)/i,/^(?:NOT LIKE)/i,/^(?:IS NULL)/i,/^(?:IS NOT NULL)/i,/^(?:IS TRUE)/i,/^(?:IS NOT TRUE)/i,/^(?:IS FALSE)/i,/^(?:IS NOT FALSE)/i,/^(?:IN)/i,/^(?:NOT IN)/i,/^(?:CASE)/i,/^(?:WHEN)/i,/^(?:THEN)/i,/^(?:ELSE)/i,/^(?:END)/i,/^(?:COALESCE(?=\s*[(]))/i,/^(?:IF(?=\s*[(]))/i,/^(?:IFNULL(?=\s*[(]))/i,/^(?:NULLIF(?=\s*[(]))/i,/^(?:COUNT_DISTINCT(?=\s*[(]))/i,/^(?:COUNT_DISTINCT_EST(?=\s*[(]))/i,/^(?:PARSETIME(?=\s*[(]))/i,/^(?:FORMATTIME(?=\s*[(]))/i,/^(?:NTH_QUANTILE(?=\s*[(]))/i,/^(?:ENCODE_URI_COMPONENT(?=\s*[(]))/i,/^(?:\()/i,/^(?:\))/i,/^(?:,)/i,/^(?:')/i,/^(?:")/i,/^(?:")/i,/^(?:[0-9]*(\.[0-9]*)?([eE]-?[0-9]+)?\b)/i,/^(?:TRUE|FALSE)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_]*\b)/i,/^(?:["](\\.|[^"])*["])/i,/^(?:['](\\.|[^'])*['])/i,/^(?:[`](\\.|[^`])*[`])/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{CASE_MODE:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0}}}}();b.prototype=Fi;Fi.v=b;return new b}();function cz(a,b,c){if(c!=null&&typeof c!=="number")throw Error("Provided value for "+b+' to "'+a+'" was of type '+typeof c+" but a number was expected.");} function dz(a,b,c){if(c!=null&&(typeof c!=="number"||!isNaN(c))&&isFinite(c)&&c!==parseInt(c,10))throw Error("Provided value for "+b+' to "'+a+'" was not an integer.');} function ez(a,b,c,e,f){if(c!=null&&!(isNaN(c)||c>=e&&c<=f))throw Error("Value provided for "+b+' to "'+a+'" was out of the allowed range of ['+e+", "+f+"].");} function fz(a,b){cz("TRUNC(X, Y)","X",a);cz("TRUNC(X, Y)","Y",b);dz("TRUNC(X, Y)","Y",b);if(a==null||b==null)return null;if(isNaN(a)||isNaN(b))return NaN;if(!isFinite(a))return+a;a=a>=0?Number(Math.floor(a+"e"+b)):Number(Math.ceil(a+"e"+b));return b>=0?Number(a+"e-"+b):Number(a+"e"+-b)} function gz(a,b){cz("LOG(X, Y)","X",a);cz("LOG(X, Y)","X",b);return a==null||b==null?null:+a/+b} ;function hz(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if(typeof e=="undefined")throw Error("[goog.string.format] Template required");return e.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(f,k,n,r,t,y,E,ma){if(y=="%")return"%";var na=c.shift();if(typeof na=="undefined")throw Error("[goog.string.format] Not enough arguments");arguments[0]=na;return iz[y].apply(null,arguments)})} var iz={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?a+kh(" ",Number(c)-a.length):kh(" ",Number(c)-a.length)+a},f:function(a,b,c,e,f){e=a.toString();isNaN(f)||f==""||(e=parseFloat(a).toFixed(f));var k=Number(a)<0?"-":b.indexOf("+")>=0?"+":b.indexOf(" ")>=0?" ":"";Number(a)>=0&&(e=k+e);if(isNaN(c)||e.length>=Number(c))return e;e=isNaN(f)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(f);a=Number(c)-e.length-k.length;b.indexOf("-",0)>=0?e=k+e+kh(" ",a):(b=b.indexOf("0",0)>=0?"0":" ",e=k+kh(b,a)+e);return e},d:function(a,b,c,e,f,k,n,r){return iz.f(parseInt(a,10),b,c,e,0,k,n,r)}};iz.i=iz.d;iz.u=iz.d;function jz(a,b){if(a==null)return!1;if(b.length===0)return!0;b=Mc(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a===c||typeof a!==typeof c)return!1;return!0} function kz(a,b,c){if(b==null||c==null)return!1;if(typeof b!=typeof c)throw Error("Argument type mismatch in "+a+' comparison function: parameter 1 "'+b+'" is type '+typeof b+' but param2 "'+c+'" is type '+typeof c+".");switch(a){case "EQUAL":return b===c;case "NOT_EQUAL":return b!==c;case "LESS":return bc;case "GREATER_OR_EQUAL":return b>=c;default:throw Error('Unhandled binary operator "'+a+'".');}} function lz(a,b){var c=b[0];if(b.some(function(e){return e==null}))return null;switch(a){case "+":for(a=1;ac)throw Error("CAST result is out of range for integer type.");return e} function sz(a,b,c){switch(typeof a){case "number":var e=a;break;case "boolean":e=a?1:0;break;case "string":if(a.toLowerCase()==="inf"||a.toLowerCase()==="+inf"){e=Infinity;break}else if(a.toLowerCase()==="-inf")e=-Infinity;else if(a.toLowerCase()==="nan")e=NaN;else if(e=Number(a),isNaN(e))throw Error('CAST from string to a floating point value failed for "'+a+'" because of non-numeric characters.');if(isNaN(e)&&a.toLowerCase()!=="nan")throw Error('CAST from string to a floating point value failed for "'+ a+'".');break;default:throw Error("CAST from "+typeof a+" to a floating point value is not supported.");}if(b!=null&&c!=null&&isFinite(e)&&(ec))throw Error("CAST result "+e+" is out of range for target type.");return e} function tz(a){if(typeof a==="number"){if(a===Infinity)return"inf";if(a===-Infinity)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function uz(a,b){var c=vz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Mc(Sh(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new wz(a,k,b[f]))}} function wz(a,b,c){this.O=a;this.N=b;this.v=c} wz.prototype.call=function(){return this.apply(ud.apply(0,arguments))};wz.prototype.apply=function(a){var b=a;b=b===void 0?[]:b;var c=this.v.va,e=this.v.wa;if(c&&b.lengthe)throw Error("Expected no more than "+c+" args for "+this.N);return this.v.yb?this.v.yb.apply(null,a):this.v.ua.apply(null,a)};wz.prototype.Ma=function(a){return this.v.Ma?this.v.Ma.call(null,a):qz(this.O,this.N,a)};var vz=new function(){this.v=new Map};uz("",{AVG:{yb:Lp},COUNTIF:{yb:Op},SUM:{yb:Mp},MIN:{yb:Pp},MAX:{yb:Qp},COUNT:{yb:Np},COUNT_DISTINCT:{yb:Rp},NTH_QUANTILE:{yb:Sp},VARIANCE:{yb:Up},STDDEV:{yb:Vp},"HLL_COUNT.MERGE":{yb:Wp},"HLL_COUNT.EXTRACT":{va:1,wa:1,ua:function(){throw Error("HLL_COUNT.EXTRACT is not implemented on the client.");}},ABS:{va:1,wa:1,ua:function(a){cz("ABS(X)","X",a);return a!=null?Math.abs(+a):null}},SIGN:{va:1,wa:1,ua:function(a){cz("SIGN(X)","X",a);var b=Math.sign||function(c){c=+c;return c===0||isNaN(c)?c:c>0?1:-1};return a!=null?b(+a):null}},IS_INF:{va:1,wa:1,ua:function(a){cz("IS_INF(X)","X",a);return a!=null?!isFinite(+a)&&!isNaN(a):null},uc:"IS_INFINITY"},IS_NAN:{va:1,wa:1,ua:function(a){cz("IS_NAN(X)","X",a);return a!=null?isNaN(+a):null},uc:"IS_NAN"},IEEE_DIVIDE:{va:2,wa:2,ua:gz},SQRT:{va:1,wa:1,ua:function(a){cz("SQRT(X)","X",a);ez("SQRT(X)","X",a,0,Infinity);return a!=null?Math.sqrt(+a):null}},POWER:{va:2,wa:2,ua:function(a,b){cz("POWER(X, Y)","X",a);cz("POWER(X, Y)","Y",b);if(a==null||b==null)return null;if(a!==1&&b!==0&&(a!==-1||b!==Infinity&&b!==-Infinity)){if(Math.abs(a)<1&&b===-Infinity)return Infinity;if(Math.abs(a)>1&&b===-Infinity||Math.abs(a)<1&&b===Infinity||a===-Infinity&&b<0)return 0;if(a===-Infinity&&b>0)return b%2===1?-Infinity:Infinity;if(a===Infinity&&b<0)return 0;if(a===Infinity&&b>0)return Infinity}else return 1;return a!=null?Math.pow(+a,+b):null}},LOG:{va:2,wa:2,ua:function(a,b){cz("LOG(X, Y)","X",a);cz("LOG(X, Y)","Y",b);if(a==null||b==null)return null;if(isNaN(a)||isNaN(b)||a===-Infinity||b===Infinity)return NaN;if(a===Infinity&&b>0&&b<1)return-Infinity;if(a===Infinity&&b>1)return Infinity;ez("LOG(X, Y)","X",a,0,Infinity);ez("LOG(X, Y)","Y",a,0,Infinity);if(b===1)throw Error("Value provided for Y to LOG(X, Y) was 1 which is not allowed");return Math.log(+a)/Math.log(+b)}},GREATEST:{va:2,ua:function(a){for(var b=-Infinity,c=0;c=0?Number(Math.round(a+"e"+b)+"e-"+b):Number(Math.round(a+"e"+b)+"e"+-b):+a}},TRUNC:{va:2,wa:2,ua:fz},CEILING:{va:1,wa:1,ua:function(a){cz("CEILING(X)","X",a);return a!=null?Math.ceil(+a):null}},FLOOR:{va:1,wa:1,ua:function(a){cz("FLOOR(X)","X",a);return a!=null?Math.floor(+a):null}},COS:{va:1,wa:1,ua:function(a){cz("COS(X)","X",a);return a!=null?Math.cos(+a):null}},COSH:{va:1,wa:1,ua:function(a){cz("COSH(X)","X",a);var b=Math.cosh||function(c){c=Math.exp(c);return(c+1/c)/2};return a!=null?b(+a):null}},ACOS:{va:1,wa:1,ua:function(a){cz("ACOS(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;ez("ACOS(X)","X",a,-1,1);return a!=null?Math.acos(+a):null}},ACOSH:{va:1,wa:1,ua:function(a){cz("ACOSH(X)","X",a);if(a===-Infinity)return NaN;ez("ACOSH(X)","X",a,1,Infinity);var b=Math.acosh||function(c){return Math.log(c+Math.sqrt(c*c-1))};return a!=null?b(+a):null}},SIN:{va:1,wa:1,ua:function(a){cz("SIN(X)","X",a);return a!=null?Math.sin(+a):null}},SINH:{va:1,wa:1,ua:function(a){cz("SINH(X)","X",a);var b=Math.sinh||function(c){return(Math.exp(c)-Math.exp(-c))/2};return a!=null?b(+a):null}},ASIN:{va:1,wa:1,ua:function(a){cz("ASIN(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;ez("ASIN(X)","X",a,-1,1);return a!=null?Math.asin(+a):null}},ASINH:{va:1,wa:1,ua:function(a){cz("ASINH(X)","X",a);var b=Math.asinh||function(c){return c===-Infinity?c:Math.log(c+Math.sqrt(c*c+1))};return a!=null?b(+a):null}},TAN:{va:1,wa:1,ua:function(a){cz("TAN(X)","X",a);return a!=null?Math.tan(+a):null}},TANH:{va:1,wa:1,ua:function(a){cz("TANH(X)","X",a);var b=Math.tanh||function(c){return c===Infinity?1:c===-Infinity?-1:(Math.exp(c)-Math.exp(-c))/(Math.exp(c)+Math.exp(-c))};return a!=null?b(+a):null}},ATAN:{va:1,wa:1,ua:function(a){cz("ATAN(X)","X",a);return a!=null?Math.atan(+a):null}},ATANH:{va:1,wa:1,ua:function(a){cz("ATANH(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;if(a!=null&&!(isNaN(a)||a>-1&&a<1))throw Error('Value provided for X to "ATANH(X)" was out of the allowed range of (-1, 1).');var b=Math.atanh||function(c){return Math.log((1+c)/(1-c))/2};return a!=null?b(+a):null}},ATAN2:{va:2,wa:2,ua:function(a,b){cz("ATAN(Y, X)","X",a);cz("ATAN(Y, X)","Y",b);return a==null||b==null?null:Math.atan2(+a,+b)}},REGEXP_MATCH:{va:2,wa:2,ua:function(a,b){if(typeof a!=="string"||typeof b!=="string")return null;if(b.indexOf("(?i)")==0){b=b.substring(4);var c="i"}else b.indexOf("(?is)")==0&&(b=b.substring(5),c="i");return RegExp(b,c).test(a)},uc:"REGEX"},ENCODE_URI_COMPONENT:{va:1,wa:1,ua:function(a){return typeof a!=="string"?null:encodeURIComponent(a)}},FORMAT:{va:2,wa:void 0,ua:function(a){return arguments.length<2?null:hz.apply(null,arguments)}},CONCAT:{va:2,wa:void 0,ua:function(a){for(var b="",c=0;ca||a>c},Ma:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},uc:"NOT_BETWEEN"},CAST:{va:2,wa:2,ua:function(a,b){if(a==null)return null;switch(b.toUpperCase()){case "INT32":return rz(a,-2147483648,2147483647);case "INT64":return rz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return rz(a,0,1.8446744073709552E19);case "FLOAT":return sz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return sz(a);case "BOOL":return mr(a);case "STRING":return tz(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},Ma:function(a){if(a.length!==2)throw Error("Expected two parameters for cast.");var b=a[1].replace(/"/g,"");return"CAST("+a[0]+" AS "+b+")"}},UNIX_MICROS:{va:1,wa:1,ua:function(a){return a}},UNIX_MILLIS:{va:1,wa:1,ua:function(a){return a}},TIMESTAMP_MICROS:{va:1,wa:1,ua:function(a){return a}},TIMESTAMP_MILLIS:{va:1,wa:1,ua:function(a){return 1E3*a}},TIMESTAMP_SECONDS:{va:1,wa:1,ua:function(a){return 1E6*a}},TIMESTAMP:{va:1,wa:2,ua:tq},DATE:{va:1,wa:2,ua:function(a,b){return uq(a,"DAY",b)}},DATETIME:{va:1,wa:1,ua:tq},AND:{va:2,ua:function(){return mz("AND",ud.apply(0,arguments))},Ma:function(a){return nz(" AND ",a)}},OR:{va:2,ua:function(){return mz("OR",ud.apply(0,arguments))},Ma:function(a){return nz(" OR ",a)}},"+":{va:2,ua:function(){return lz("+",ud.apply(0,arguments))},Ma:function(a){return nz("+",a)}},"-":{va:2,ua:function(){return lz("-",ud.apply(0,arguments))},Ma:function(a){return nz("-",a)}},"*":{va:2,ua:function(){return lz("*",ud.apply(0,arguments))},Ma:function(a){return nz("*",a)}},"/":{va:2,ua:function(){return lz("/",ud.apply(0,arguments))},Ma:function(a){return nz("/",a)}},NOT:{va:1,wa:1,ua:function(a){return a==null||typeof a!=="boolean"?null:a===!1},Ma:function(a){if(a.length!==1)throw Error("Expected one parameter for NOT");return"(NOT "+a[0]+")"}},EQUAL:{va:2,wa:2,ua:function(a,b){return kz("EQUAL",a,b)},Ma:function(a){return nz("=",a)},uc:"="},NOT_EQUAL:{va:2,wa:2,ua:function(a,b){return kz("NOT_EQUAL",a,b)},Ma:function(a){return nz("!=",a)},uc:"!="},LESS:{va:2,wa:2,ua:function(a,b){return kz("LESS",a,b)},Ma:function(a){return nz("<",a)},uc:"<"},LESS_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return kz("LESS_OR_EQUAL",a,b)},Ma:function(a){return nz("<=",a)},uc:"<="},GREATER:{va:2,wa:2,ua:function(a,b){return kz("GREATER",a,b)},Ma:function(a){return nz(">",a)},uc:">"},GREATER_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return kz("GREATER_OR_EQUAL",a,b)},Ma:function(a){return nz(">=",a)},uc:">="},NATIVE_EXPR:{va:1,wa:1,ua:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{va:1,wa:1,yb:function(){throw Error("NATIVE_AGGREGATE not yet supported.");}},TO_JSON_STRING:{va:1,wa:2,ua:function(a,b){return b?JSON.stringify(a,null,2):JSON.stringify(a)}}});uz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{yb:Tp},EXTRACT_POINT_DOUBLE:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{yb:Tp}});function xz(){this.ma={};this.ta={};this.oa={};this.ka=[];this.na={};this.ha=[];this.N=null;this.ya=[];this.O=[];this.v={}} w=xz.prototype;w.Zj=function(a,b){this.O.push({zf:a,order:b?b:"ASC"});return this};w.Kl=function(){this.O=[];return this};w.Gf=function(){return this.O};w.qe=function(a){this.O=a.slice()};w.Xn=function(a,b,c,e){a={zf:a,measure:c,tr:e||""};typeof b==="function"?a.yb=b:a.Wq=b;this.ya.push(a);return this};w.Yn=function(a){this.N=a;return this};w.Bl=function(a){Array.isArray(a)?Qe(a,function(b){yz(this,b,{Cd:"decimal",jf:null})},this):yz(this,a,{Cd:"decimal",jf:null});return this};w.Al=function(a){Array.isArray(a)?Qe(a,function(b){yz(this,b,{Cd:"boolean",jf:null})},this):yz(this,a,{Cd:"boolean",jf:null});return this};w.Ij=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Cd)a=a.Cd,b=!!a&&Xq[a].kc==="number";return b?!0:!1};function yz(a,b,c){a.v[b]?(c.Cd&&(a.v[b].Cd=c.Cd),c.jf&&(a.v[b].jf=c.jf)):a.v[b]=c} w.wl=function(a,b){this.ma[a]=b;return this};w.Rl=function(a,b){this.ta[a]=b;return this};w.Sl=function(a,b){this.oa[a]=b;delete this.na[a];return this};w.An=function(a){return this.oa[a]||this.na[a]||this.ma[a]||this.N===a?!0:Pe(this.ka,a)>=0};w.on=function(a){if(a==null||a==void 0)return this;typeof a==="string"&&(a=[a]);for(var b=0;b=0||this.ka.push(a[b]);return this};w.yl=function(a,b,c){b=b?b:zz;this.na[c?c:"aggregatedValue"]={measure:a,yb:b};return this};w.Qj=function(){return this};w.Zn=function(a,b){this.Qj(a);this.Zj(b,"DESC");return this};w.Ml=function(a,b){this.ha.push({zf:a,value:b,operator:"="});return this};w.filter=function(a,b,c){this.ha.push(kr(a,b,c));return this};w.ro=function(){return this};w.Gm=function(){return this.ha};w.Jl=function(){this.ha=[];return this};w.Im=function(){var a=this.ka.slice(0);!this.N||Pe(a,this.N)>=0||df(a,0,0,this.N);return a};Od("aplos.data.Projection",xz);xz.prototype.getHierarchy=xz.prototype.Im;xz.prototype.clearFilters=xz.prototype.Jl;xz.prototype.getFilters=xz.prototype.Gm;xz.prototype.setAllowCachedSince=xz.prototype.ro;xz.prototype.filter=xz.prototype.filter;xz.prototype.columnEquals=xz.prototype.Ml;xz.prototype.onlyTop=xz.prototype.Zn;xz.prototype.limit=xz.prototype.Qj;xz.prototype.aggregate=xz.prototype.yl;xz.prototype.on=xz.prototype.on;xz.prototype.hasOutputColumn=xz.prototype.An;xz.prototype.derivePostAggregation=xz.prototype.Sl;xz.prototype.deriveColumn=xz.prototype.Rl;xz.prototype.addExpression=xz.prototype.wl;xz.prototype.asBoolean=xz.prototype.Al;xz.prototype.asNumber=xz.prototype.Bl;xz.prototype.oneSeriesPer=xz.prototype.Yn;xz.prototype.oneColumnPer=xz.prototype.Xn;xz.prototype.setOrdering=xz.prototype.qe;xz.prototype.clearOrdering=xz.prototype.Kl;xz.prototype.orderBy=xz.prototype.Zj;function Az(){var a=a===void 0?bz:a;var b=b===void 0?vz:b;this.N=a;this.v=b} function Bz(a,b){var c=c===void 0?Cz:c;var e=Dz(a,b),f=new Ez(a.v,c);return function(k){return Fz(e,f,k)}} function Dz(a,b){a=a.N.parse(b);if(a===null)throw Error("Got a null parse tree.");return a} function Fz(a,b,c){switch(a.type){case "column":a=Mc(a.pathParts);for(var e=a.next();!e.done;e=a.next())c=b.N(e.value,c);return c;case "number":return a.value;case "string":return a.value;case "boolean":return a.value;case "function":var f=b.v,k=a.namespace;e=a.name;k=k?k.toUpperCase():k;e=e.toUpperCase();f=f.v.get(k||"");if(!f)throw Error("Unknown namespace: "+k);k=f.get(e);if(!k)throw Error("Unknown function: "+e);if(k.v.yb)throw Error("Found aggregating function "+a.name+" while building a non-aggregating expression evaluator.");e=[];for(f=0;f'):c&&typeof f==="string"&&(f=ih(f));return f} function Lz(a,b){var c=b.getExpression().trim().replace(/ +/," ").trim().split(" ");if(c.length!==2)throw Error("nest expression requires two parameters");b=c[0];var e=c[1].split("."),f={nest_label:"NEST_TOP",nest_children:[],nest_child_map:{}};a=Th(a.v[a.v.length-1],b.split("."));if(a==null)return null;if(!Ed(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var n=f;(Th(k,e)||"").split("|").forEach(function(r){var t=n.nest_child_map[r];t|| (t={nest_label:r,nest_children:[],nest_child_map:{}},n.nest_child_map[r]=t,n.nest_children.push(t));n=t});n.nest_children.push(k)});return f} ;function Mz(a){this.v=a;this.O=this.N=-1;this.ha=0} Mz.prototype.next=function(){this.N++;var a=this.v[this.N];a==="\n"?(this.ha++,this.O=-1):this.O++;return a};Mz.prototype.index=function(){return this.N};function Nz(a,b){if(b<0)throw Error("CharacterIterator can only skip forward");for(var c=0;c0&&this.N.Rc(new Xz(a)),this.ma(b);this.O+=a;return!0};Zz.prototype.ma=function(a){if(Oz(a,"#each ",1)){var b=new Rz;this.N.Rc(b);this.v=new aA(b,"each",a);Nz(a,6)}else Oz(a,"#if ",1)?(b=new Tz,this.N.Rc(b),this.v=new aA(b,"if",a),Nz(a,4)):Oz(a,"#first ",1)?(b=new Qz,this.N.Rc(b),this.v=new aA(b,"first",a),Nz(a,7)):Oz(a,"#nest ",1)?(b=new Uz,this.N.Rc(b),this.v=new aA(b,"nest",a),Nz(a,6)):Oz(a,"#partial ",1)?(b=new Vz,this.N.Rc(b),this.v=new aA(b,"partial",a),Nz(a,9)):Oz(a,"#html ",1)?(b=new Sz,this.N.Rc(b),this.v=new $z(b,a),Nz(a,6)):(b=new Gz,this.N.Rc(b),this.v=new $z(b,a));return!0};Zz.prototype.close=function(a){this.v!=null&&this.v.close(a);this.O.length>0&&(this.N.Rc(new Xz(this.O)),this.O="");return this.N};function aA(a,b,c){Zz.call(this,a,c);this.na="{{/"+b+"}}";this.ka=new $z(a,c)} cd(aA,Zz);aA.prototype.ma=function(a){if(Oz(a,this.na,-1))return Nz(a,this.na.length-2),!1;if(Oz(a,"/",1))throw Error("Attempt to close the wrong expression [row:"+a.ha+", col:"+a.O+"] expected "+this.na+" template:"+a.v);return Zz.prototype.ma.call(this,a)};aA.prototype.ha=function(a,b){return this.ka?(this.ka.ha(a,b)||(this.ka=null),!0):Zz.prototype.ha.call(this,a,b)};aA.prototype.close=function(a){if(this.ka)throw Error("Template parse error at [row:"+this.ta+", col:"+this.oa+"] (expression not closed) template:"+a.v);throw Error("Template parse error at [row:"+this.ta+", col:"+this.oa+"] ("+this.na+" not found) template:"+a.v);};function bA(a){this.v=(new Yz).parse(a)} ;function cA(){this.ya="{{#partial mainDetail}}{{#template header}}{{/partial}}{{#nest details series.seriesCategory}}{{#each nest_children}}{{#first nest_children}}{{#template seriesCategory}}{{/first}}{{#each nest_children}}{{#if IF(series.annotation is null, true, NOT(series.annotation))}}{{#template body}}{{/if}}{{#if series.annotation}}{{#partial datum}}{{#template annotation}}{{/partial}}{{/if}}{{/each}}{{/each}}{{/nest}}{{#partial mainDetail}}{{#template footer}}{{/partial}}";this.O=this.ma= this.ka=null;this.oa="{{title}}";this.Ca="{{measure}}";this.N=this.v=this.ha=null;this.na="series_asc";this.Ia=new Ai(12,12);this.ta=new sl} w=cA.prototype;w.Hk=function(a){this.ya=a;this.v=null;return this};w.Yf=function(a){this.N=dA(this,a||{});return this};w.Bg=function(){this.N==null&&(this.N=dA(this,{}));return this.N};w.qe=function(a){this.na=a;return this};w.Gf=function(){return this.na};w.eg=function(a){this.ka=a;this.v=null;return this};w.Eg=function(){return this.ka};w.hg=function(a){this.ma=a;this.v=null;return this};w.Lg=function(){return this.ma};w.Xf=function(a){this.O=a;this.v=null;return this};w.Ag=function(){return this.O};w.ei=function(a){this.oa=a;this.v=null;return this};w.Dh=function(){return this.oa};w.ag=function(a){this.ha=a;this.v=null;return this};w.Dg=function(){return this.ha};w.hf=function(a){this.ta=a;return this};w.Zg=function(a,b,c){a.textContent="";this.N===null&&(this.N=dA(this,{}));var e=this.N;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.ll)}b={mainDetail:b,details:c};if(!this.v){c=this.ka||"";var f=this.ma||"",k=this.O||"",n=this.oa||"",r=this.ha||"";c===""&&f===""&&k===""&&r===""&&(k=this.Ca);c=this.ya.replace(/{{#template header}}/,c).replace(/{{#template seriesCategory}}/,f).replace(/{{#template body}}/,k).replace(/{{#template annotation}}/,n).replace(/{{#template footer}}/,r);this.v=new bA(c)}b=new Iz(b,e);this.v.v.accept(b);e=bn(b.N);b=b.ha;for(var t in b)c=e.querySelector("#"+t),c.parentElement.replaceChild(b[t],c);for(;e.firstChild;)a.appendChild(e.firstChild)};function dA(a,b){var c=kn();c["svg-sample"]=a.ta.v(a.Ia);Yh(c,b);return c} w.ll=function(a,b){return a.chartY!==b.chartY?a.chartY-b.chartY:a.chartX-b.chartX};cA.prototype.setLegendKey=cA.prototype.hf;cA.prototype.getFooterTemplate=cA.prototype.Dg;cA.prototype.setFooterTemplate=cA.prototype.ag;cA.prototype.getAnnotationTemplate=cA.prototype.Dh;cA.prototype.setAnnotationTemplate=cA.prototype.ei;cA.prototype.getBodyTemplate=cA.prototype.Ag;cA.prototype.setBodyTemplate=cA.prototype.Xf;cA.prototype.getSeriesCategoryTemplate=cA.prototype.Lg;cA.prototype.setSeriesCategoryTemplate=cA.prototype.hg;cA.prototype.getHeaderTemplate=cA.prototype.Eg;cA.prototype.setHeaderTemplate=cA.prototype.eg;cA.prototype.getOrdering=cA.prototype.Gf;cA.prototype.setOrdering=cA.prototype.qe;cA.prototype.getConversionFunctionMap=cA.prototype.Bg;cA.prototype.setConversionFunctionMap=cA.prototype.Yf;cA.prototype.setMainTemplate=cA.prototype.Hk;var eA=!0;Od("aplos.spec.flags.setEnableNewTemplateContentRenderer",function(a){eA=a});function fA(){this.O=this.N=this.ka=null;this.oa="{{measure}}";this.v=this.ha=null;this.na="series_asc";this.ta=new Ai(12,12);this.ma=new sl} w=fA.prototype;w.Ee=function(a){return a==null?this.Bg():this.Yf(a)};w.Yf=function(a){this.v=gA(this,a||{});return this};w.Bg=function(){this.v===null&&(this.v=gA(this,{}));return this.v};w.Xg=function(a){return a==null?this.Gf():this.qe(a)};w.qe=function(a){this.na=a;return this};w.Gf=function(){return this.na};w.Hk=function(){return this};w.Cn=function(a){return a===void 0?this.Eg():this.eg(a)};w.eg=function(a){this.ka=a;return this};w.Eg=function(){return this.ka};w.qo=function(a){return a===void 0?this.Lg():this.hg(a)};w.hg=function(a){this.N=a;return this};w.Lg=function(){return this.N};w.Fl=function(a){return a===void 0?this.Ag():this.Xf(a)};w.Xf=function(a){this.O=a;return this};w.Ag=function(){return this.O};w.ei=function(){return this};w.Dh=function(){return null};w.dm=function(a){return a===void 0?this.Dg():this.ag(a)};w.ag=function(a){this.ha=a;return this};w.Dg=function(){return this.ha};w.hf=function(a){this.ma=a;return this};w.Zg=function(a,b,c){a.textContent="";this.v===null&&(this.v=gA(this,{}));var e=this.v;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.ml)}var f=this.ka||"",k=this.ha||"",n=this.O;f===""&&this.N==null&&n==null&&k===""&&(n=this.oa);n=n||"";var r=!1,t=void 0,y;a:{if(f!==""&&k!==""){if(!hA.length)for(y=0;y]*?>","gi"),close:new RegExp(""+E+"[^>]*?>","gi")})}for(y=0;y(ma?ma.length:0)&&(na=(ma=k.match(E.open))?ma.length:0,ma=k.match(E.close),(ma?ma.length:0)>na)){y=!0;break a}}}y=!1}y?(r=!0,(t=f.toLowerCase().indexOf("=0?f+''+k:f+'
'+k)&&Ym(a,b,t,e,void 0),y=vj(a).select(".aplos-placeholder"),t=y.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,y.remove()):(f&&Ym(a,b,f,e,void 0),f=a);y=void 0;for(E=0;E0&&!e.empty()&&k=k?pA.Yk(f,n,c.height-k):f=n;var t=[];f.forEach(function(y){t.push({width:e,height:y})});return t},pr:function(a,b,c){for(var e=c.height,f=[],k=0,n=[],r=0;r=k?pA.Yk(f,n,c.width-k):f=n;var t=[];f.forEach(function(y){t.push({width:y,height:e})});return t},Yk:function(a,b,c){for(var e=0;e0&&k.scrollHeight>c&&f.style("height",c+"px");a.ma||k.scrollHeight<=c&&f.style("overflow-y",null);c=pA.yj(a.O,b,a.v);if(E0&&r.minWidthc?r.style("width",n+"px"):Math.ceil(r.node().getBoundingClientRect().width)>n?r.style("width",n+"px"):r.style("width","auto");e=Math.ceil(k.getBoundingClientRect().width);e>0&&c>0&&k.scrollWidth>c?(f.style("overflow-x","auto"),f.style("width",Math.min(c,e)+"px")):(f.style("overflow-x"),f.style("width","auto"));xA(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function yA(a,b){var c=b.node().getBoundingClientRect(),e=c.top;a=(a.ka?b.select(".aplos-legend-title").node():b.select(".aplos-legend-column").node()).getBoundingClientRect();b=b.select(".aplos-legend-column").selectAll(".aplos-legend-entry");b.empty()?c=0:(b=b.nodes()[b.size()-1].getBoundingClientRect(),c=c.height-(b.top+b.height-a.top));return{top:e,jp:c}} function uA(a,b,c,e){var f=b.Qa.append("div").style("visibility","hidden");f.append(function(){return c.node().cloneNode(!0)});c=f.select(".aplos-legend");c.selectAll(".aplos-legend-column").remove();e=c.select(".aplos-legend-columns").append("div").classed("aplos-legend-column",!0).append("table").classed(vA(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.De(b,e);a.update(b,e,0);var k=yA(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=pA.xj(a.O,b,a.v)-(n-k.top)-k.jp,t=[[]],y=0,E=n;e.each(Nd(function(ma,na){var sa=this.getBoundingClientRect(),ua=sa.top;sa=ua-E+sa.height;t[y].length>0&&(sa>r||t[y].length===ma.Rg)&&(t[y+=1]=[],E=ua);t[y].push(na)},a));f.remove();return t} function xA(a,b){var c=b.Qa.select(".aplos-legend");pA.eo(b,a.O,a.v,c);c.attr("data-position",Md(function(){var e=Uh(mA,function(f){return oA(this.v)===f},this);return e!=null?e.toLowerCase():null},a))} w.De=function(a,b){var c=this.Sj(a);return b.enter().append("tr").classed("aplos-legend-entry",!0).attr("tabindex",c&&this.ha?"0":null).on("click.legend",c).on("keypress.legend",this.ha?c:null).on("mouseover.legend",this.Uj(a)).on("mouseout.legend",this.Tj(a)).each(function(){if(this.nextSibling){var e=document.createElement("tr");e.className="aplos-legend-row-spacer";this.parentNode.insertBefore(e,this.nextSibling)}}).merge(b)};w.update=function(a,b){zA(this,b);b.empty()||vj(b.node().parentElement).select(".aplos-legend-box-cell").style("width",this.ta.width+"px");var c=0;b.select(".aplos-legend-value").each(function(){c=Math.max(c,this.offsetWidth)});b.filter(function(e,f){return f===0}).select(".aplos-legend-value-cell").style("width",c+"px")};function zA(a,b){var c=a.Ia||kn();c["svg-sample"]||(c["svg-sample"]=a.Ka.v(a.ta));b.each(Nd(function(e,f){e=Zm(f,"
"+(f.categorySeparator?e.yf:e.yh)+"
",c)[0];for(e=vj(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function wA(a){a.each(function(){vj(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} w.xl=function(a,b){b.Ce(new AA(a,this))};function vA(a){return a.yf!=null?"aplos-legend-table-category":"aplos-legend-table"} w.Go=function(a){this.Dc=a;return this};qA.prototype.setMinPreferredLayoutHeight=qA.prototype.Go;function AA(a,b){this.N=a;this.v=b} AA.prototype.Hh=function(){var a={position:BA(this),Pf:30},b=this.v.Gg();if(b!=null)a.margins=b;else switch(a.position){case 1:case 2:case 3:case 4:a.margins={top:5,right:0,bottom:5,left:0};break;case 6:a.margins={top:0,right:0,bottom:0,left:30};break;case 5:a.margins={top:0,right:30,bottom:0,left:0}}return a};AA.prototype.kg=function(a){rA(this.v,this.N,this.v.ab,this.v.Ya,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Qa.select(".aplos-legend");if(b.empty())return{Ba:{width:0,height:0},rb:{width:0,height:0},Bc:!0};var c=BA(this),e=Vg(a,this.v.Oe(),c);if(e!=null)return e;var f=b.node(),k=f.offsetWidth;e=f.offsetHeight;f=Math.ceil(f.getBoundingClientRect().width);f==k+1&&(k=f);var n=k;f=e;b=b.selectAll(".aplos-legend-column");var r=b.size();switch(c){case 5:case 6:r>1&&(n=Math.floor(k/r));n= Math.min(n,40);break;case 1:case 2:case 3:case 4:var t=0;b.each(function(){var y=vj(this).selectAll(".aplos-legend-entry");y.size()>t&&(t=y.size())});c=this.N.Qa.select(".aplos-legend-title");c=yj(c.node());c>0&&(c+=20);t>1&&(f=Math.floor(e/t)+c);f=Math.min(f,this.v.Dc+c);k=n=a.width}n>a.width&&(n=a.width);f>a.height&&(f=a.height);k>a.width&&(k=a.width);e>a.height&&(e=a.height);return{Ba:{width:n,height:f},rb:{width:k,height:e},Bc:!1}};AA.prototype.dh=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Qa.select(".aplos-legend").node();b!=a.offsetWidth&&xA(this.v,this.N)};AA.prototype.Ne=function(){return this.v.O};function BA(a){switch(oA(a.v.v)){case mA.LEFT:return 5;case mA.RIGHT:return 6;case mA.TOP:case mA.TOP_FULL_LEFT:case mA.TOP_FULL_RIGHT:return 2;case mA.TOP_LEFT:case mA.TOP_RIGHT:return 1;case mA.BOTTOM:case mA.BOTTOM_FULL_LEFT:case mA.BOTTOM_FULL_RIGHT:return 4;case mA.BOTTOM_LEFT:case mA.BOTTOM_RIGHT:return 3;default:return 0}} ;function CA(){this.N=new Cw;this.v=new DA("");this.v.next=this.v.v=this.v} w=CA.prototype;w.get=function(a,b){return(a=this.N.get(a))?a.value:b};w.set=function(a,b){var c=this.N.get(a);c?c.value=b:(c=new DA(a,b),this.N.set(a,c),a=c,a.v=this.v.v,a.next=this.v,this.v.v=a,a.v.next=a)};w.shift=function(){return EA(this,this.v.next)};w.pop=function(){return EA(this,this.v.v)};w.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function FA(a){return a.map(function(b){return b})} w.contains=function(a){return this.some(function(b){return b==a})};w.clear=function(){this.lf(0)};w.forEach=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)a.call(b,c.value,c.key,this)};w.map=function(a,b){for(var c=[],e=this.v.next;e!=this.v;e=e.next)c.push(a.call(b,e.value,e.key,this));return c};w.some=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};w.every=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};w.lf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function EA(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function DA(a,b){this.key=a;this.value=b} DA.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};Od("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function GA(a){qA.call(this,a||'{{svg-sample}} {{series.name}}');this.Ca=!1;this.oa={};this.Sa=!1;this.N={};this.na=[];this.Oa=[];this.La="series_asc";this.ya=1} Pd(GA,qA);Od("aplos.chart.behavior.SeriesLegend",GA);var HA=null,IA=null;GA.prototype.ip=function(a){return a!=null?(this.Ca=a,a||(this.oa={}),this):this.Ca};GA.prototype.valuesFromNearestDatum=GA.prototype.ip;GA.prototype.Dn=function(a){if(a==null)return this.Sa;this.Sa=!!a;return this};GA.prototype.hideEmptySeries=GA.prototype.Dn;GA.prototype.En=function(a){this.N[a]=!0;return this};GA.prototype.hideSeries=GA.prototype.En;GA.prototype.Xg=function(a){if(a==null)return this.La;this.La=a;return this};GA.prototype.ordering=GA.prototype.Xg;GA.prototype.hj=function(a){if(a==null)return this.ya;this.ya=a;return this};GA.prototype.clickHandling=GA.prototype.hj;w=GA.prototype;w.kd=function(a){var b=this;GA.Qb.kd.call(this,a);a.on("mouseout.seriesLegend",function(){this.Ca&&(this.oa={},a.le())},this);a.on("mousemove.seriesLegend",function(){if(this.Ca){for(var c=a.Ff(),e=0;e=0},a)}} function tA(a,b,c){for(var e=new CA,f=0;fthis.N)a.Gd("hover").deselectAll(),LA(this);else{var e=[c];switch(this.ha){case 0:c.domain!==void 0&&(e=a.Hg(function(f){return!f.series.overlay&&f.domain===c.domain},!0,!0));break;case 1:e=b}this.select(a,e)}}};w.select=function(a,b){a.Gd("hover").Ci(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));NA(this,a)};function NA(a,b){if(!a.v){var c="selectnearest_"+Date.now();vj(a.ka).on("mouseout."+c,function(){var e=b.kb.select(".mouseCapturePane").node(),f;if(f=vi&&vi.target)e?(f=wi(e),e=e.getBoundingClientRect(),f=f[0]>=0&&f[0]=0&&f[1]*{line-height:normal}.aplos-chart text{letter-spacing:0}.aplos-chart .aplos-draw-area{cursor:default}.aplos-chart .aplos-draw-area.aplos-cursor-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.aplos-chart .slider-widget{cursor:-webkit-grab;cursor:grab}.axis path,.axis line{fill:none;stroke:#000;shape-rendering:crispEdges}.aplos-chart .area{opacity:.25}.aplos-table-viewport{overflow:hidden}.aplos-table-chart .padder,.aplos-table-chart .open-pivot-key,.aplos-table-chart .contract-pivot-key{float:left}.aplos-table-chart .pivot-key{display:block;overflow:hidden;text-overflow:ellipsis}.aplos-synthetic-row-header{text-align:right}.aplos-fixed-headers-table{position:absolute;margin:0}.aplos-fixed-headers-table .aplos-table-thead,.aplos-fixed-headers-table .aplos-table-tfoot{overflow:hidden}.aplos-fixed-headers-table .aplos-table-tbody{overflow:auto}.aplos-frozen-columns{position:absolute}.aplos-frozen-columns-table{margin:0;border-right:0;border-left:0}.aplos-frozen-columns-table .aplos-table-thead,.aplos-frozen-columns-table .aplos-table-tbody,.aplos-frozen-columns-table .aplos-table-tfoot{display:block;overflow:hidden;background:white}.aplos-googlemap-label{color:#424242;fill:#757575;font-family:"Roboto",sans-serif;font-size:14px;stroke:none;white-space:nowrap}.aplos-legend{position:absolute;line-height:1em;overflow-x:auto;overflow-y:hidden}.aplos-legend-title{font-size:16px;line-height:16px;padding:0 0 20px 0}.aplos-legend-entry{font-size:13px}.aplos-legend-entry-clickable{cursor:pointer}.aplos-legend-entry-hidden{opacity:.26}.aplos-legend-box-cell{padding:0 8px 0 0}[dir="rtl"] .aplos-legend-box-cell{padding:0 0 0 8px}.aplos-legend-columns{white-space:nowrap}.aplos-legend-column{display:inline-block;vertical-align:top;padding:0 15px 0 0}.aplos-legend-column:only-child{max-width:100%}.aplos-legend-column:last-child{padding:0;min-width:0}[dir="rtl"] .aplos-legend-column{padding:0 0 0 15px}[dir="rtl"] .aplos-legend-column:last-child{padding:0}.aplos-legend-table{table-layout:fixed;border-spacing:0}.aplos-legend-table-category{table-layout:auto;border-spacing:0}.aplos-legend-entry{vertical-align:top}.aplos-legend-box-cell{vertical-align:middle}.aplos-legend-label-cell{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.aplos-legend-value-cell{white-space:nowrap;text-align:right}.aplos-legend-row-spacer{height:8px}.aplos-rolelegend-colorrange svg{display:block}.aplos-rolelegend-colorrange-box{stroke:#cccccc}.aplos-rolelegend-sizerange svg{display:block}.aplos-rolelegend-sizerange-axis,.aplos-rolelegend-sizerange-axistick{stroke:darkgray;stroke-width:1px}.aplos-rolelegend-mapping svg{display:block}.aplos-hovercard{background:white;border:1px solid #e0e0e0;border-radius:2px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.16);box-shadow:0 1px 4px rgba(0,0,0,.16);color:#757575;font-size:14px;line-height:20px;padding:12px 16px;position:absolute;text-align:left;white-space:nowrap}.aplos-hovercard .aplos-renderer-key{margin-right:8px}.plx-tooltip-header{color:#424242;font-weight:500;margin-bottom:4px}.aplos-donut-center{background:transparent;border-width:0;color:#757575;line-height:20px;padding:0;position:absolute;text-align:center;white-space:normal}.aplos-chart .aplos-table-sort-index{color:#ccc;display:inline;font-size:9px;margin:0;padding:2px 2px 2px 6px;vertical-align:middle}.aplos-sort-indicator-asc{display:inline-block;height:0;width:0;position:relative;top:-4px;border:4px solid transparent;border-bottom-color:#000}.aplos-sort-indicator-desc{display:inline-block;height:0;width:0;border:4px solid transparent;border-top-color:#000}.breadcrumb{height:35px}.breadcrumb .chip{display:inline-block;margin:2px 0 2px 2px;vertical-align:top}.breadcrumb .chip div{display:inline-block;vertical-align:top}.breadcrumb .chip .chip-tail{width:0;height:0;border-top:12px solid #fdd0a2;border-bottom:12px solid #fdd0a2;border-left:10px solid transparent;margin-left:-10px}.breadcrumb .chip .chip-text{border-right:none;cursor:pointer;padding:5px 10px;background:#fdd0a2;font-size:11px;height:14px;-webkit-box-sizing:content-box;box-sizing:content-box}.breadcrumb .chip .chip-arrow{width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:10px solid #fdd0a2}.aplos-selector-view{overflow:hidden;white-space:nowrap;display:block}.aplos-selector-view .selector-item{background:none;border-bottom:2px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:#777;font-weight:normal;cursor:pointer;display:inline-block;font-size:14px;padding:4px;margin:4px;-webkit-transition:background-color .15s,border-bottom .15s;transition:background-color .15s,border-bottom .15s}.aplos-selector-view .selector-item:hover{color:#222}.aplos-selector-view .selector-item.active{border-bottom:2px solid #4285f4;color:#4285f4;font-weight:bold}.collapsibleheatmap-modeselector-holder{position:absolute;top:0;left:0;right:0;text-align:center}.aplos-chart .cell-label-group text{font-weight:bold}.range-selector .extent{fill:#000;fill-opacity:.04;shape-rendering:crispEdges}.range-selector .unselected{fill:#fff;fill-opacity:.8}.range-selector .brush-handle-bar{stroke:#9e9e9e;stroke-width:1px;shape-rendering:crispEdges}.range-selector .brush-handle-thumb{fill:#fff}.range-selector .brush-handle-mark{stroke:#bbb;stroke-width:2px;shape-rendering:crispEdges}.aplos-badge{display:inline-block;position:absolute;top:10px;right:10px}.aplos-message-overlay{margin:0 15px}.aplos-message-warning-badge{width:24px;height:24px;overflow:hidden;border:none;-webkit-background-size:24px 24px;background-size:24px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0Ij48ZyBpZD0iSGVhZGVyIj48Zz48cmVjdCB4PSItNjE4IiB5PSItNTY4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+PC9nPjwvZz48ZyBpZD0iSWNvbiI+PGc+PHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+PHBhdGggZmlsbD0iI2ZmYjc0ZCIgZD0iTTEsMjFoMjJMMTIsMkwxLDIxeiBNMTMsMThoLTJ2LTJoMlYxOHogTTEzLDE0aC0ydi00aDJWMTR6Ii8+PC9nPjwvZz48L3N2Zz4=)}.aplos-message-icon-error{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0Ij48ZyBpZD0iSGVhZGVyIj48Zz48cmVjdCB4PSItNjE4IiB5PSItNTY4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+PC9nPjwvZz48ZyBpZD0iSWNvbiI+PGc+PHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+PHBhdGggZmlsbD0iI2ZmMTc0NCIgZD0iTTEsMjFoMjJMMTIsMkwxLDIxeiBNMTMsMThoLTJ2LTJoMlYxOHogTTEzLDE0aC0ydi00aDJWMTR6Ii8+PC9nPjwvZz48L3N2Zz4=);display:inline-block;position:absolute;top:-5px;left:-30px;width:24px;height:24px;overflow:hidden;border:none;-webkit-background-size:24px 24px;background-size:24px}.aplos-message{font-weight:normal;font-size:14px;color:#7f7f7f;line-height:normal}.aplos-chart .arc-border{stroke:white;stroke-width:2}.aplos-chart .empty-pie{fill:#eeeeee}.aplos-chart .arc-label-container{display:table;max-height:50px;max-width:50px}.aplos-chart .arc-label{display:table-cell;height:100%;text-align:center;vertical-align:middle}.aplos-chart .arc-leader-line,.aplos-chart .arc-leader-line-tail{stroke:#9E9E9E}.html-container>body{background:transparent}.aplos-chart .padder{display:inline-block;width:1em}.aplos-annotation-hover-content{color:#DB4437}.aplos-annotation{cursor:default;shape-rendering:crispEdges}.aplos-annotation-base,.aplos-annotation-pole{stroke:#ccc;stroke-linecap:square;stroke-width:2px}.aplos-annotation-flag{fill:#fff;fill-opacity:.6;stroke:#ccc;stroke-width:1px}.aplos-annotation:hover .aplos-annotation-base,.aplos-annotation:hover .aplos-annotation-pole,.aplos-annotation:hover .aplos-annotation-flag{fill-opacity:1;stroke:#666}.aplos-annotation:hover text{fill:#000}.aplos-chart .dot-follow-domain-line,.aplos-chart .dot-follow-measure-line{stroke:#757575;stroke-dasharray:1,3;pointer-events:none}.aplos-chart .dot-follow-point-group{pointer-events:none}.aplos-line-annotation-layer{pointer-events:none}.aplos-chart .line-annotation .annotation-label{font-size:11px}.ginsu-style .axis line,.quantum-style .axis line{stroke:#eeeeee}.ginsu-style .axis path,.quantum-style .axis path{stroke:#eeeeee}.quantum-style .baseline-group .baseline,.quantum-style .axis .strong-tick-mark{stroke:#9E9E9E}.ginsu-style text,.quantum-style text{fill:#757575;font-family:"Roboto",sans-serif;font-size:12px;stroke:none}.ginsu-style .axis-title,.quantum-style .axis-title{fill:#424242}.ginsu-style .arc-label,.quantum-style .arc-label{fill:#fff;color:#fff;font-weight:500}.ginsu-style .arc[data-label-position="outside"] .arc-label,.quantum-style .arc[data-label-position="outside"] .arc-label,.ginsu-style .html-container[data-label-position="outside"] .arc-label,.quantum-style .html-container[data-label-position="outside"] .arc-label{fill:inherit;color:inherit}.ginsu-style .aplos-legend-entry,.quantum-style .aplos-legend-entry{color:#757575;font-family:"Roboto",sans-serif;font-size:14px}.ginsu-style .legend-color-chip,.quantum-style .legend-color-chip{display:inline-block;width:10px;height:10px;overflow:hidden}.marker-label{font-size:10px}.aplos-chart .node rect{shape-rendering:crispEdges}.aplos-chart .node text{pointer-events:none;text-shadow:0 1px 0 #fff}.aplos-chart .link{fill:none;stroke:#000;stroke-opacity:.2}.aplos-chart .link:hover{stroke-opacity:.5}.aplos-chart .error-group .error-bar,.aplos-chart .error-group .error-upper-whisker,.aplos-chart .error-group .error-lower-whisker{stroke-width:1px}.ginsu-style .chart-title,.quantum-style .chart-title{color:#757575;font-size:16px}.aplos-table-view{height:100%;outline:none;position:relative;width:100%}.aplos-table-view :focus{outline:none}.aplos-table{border-spacing:0;table-layout:fixed;width:1px}.aplos-sizing-table{border-spacing:0}.aplos-table-header{font-weight:500;overflow:hidden}.aplos-table-header,.aplos-table-body,.aplos-table-footer{overflow:hidden;position:relative}.aplos-footer-row-name{text-align:right}.aplos-table td{margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;vertical-align:top}.aplos-table .row-number-cell{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.aplos-data-row.aplos-selected{background-color:#f5f5f5}.aplos-table .padder,.aplos-table .open-pivot-key,.aplos-table .contract-pivot-key{float:left}.aplos-table .pivot-key{display:block;overflow:hidden;text-overflow:ellipsis}.aplos-data-row.aplos-hover{background-color:#eee}.aplos-scrollbar{position:absolute}.aplos-horizontal-scrollbar{bottom:0;overflow-x:scroll;overflow-y:hidden}.aplos-vertical-scrollbar{right:0;overflow-x:hidden;overflow-y:scroll}.aplos-table-view.aplos-quantum-style{background-color:white;border:0;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);color:rgba(0,0,0,.87);font-family:Roboto;font-size:13px}.aplos-quantum-style .aplos-table-header{border-bottom:1px solid rgba(0,0,0,.12);color:rgba(0,0,0,.54);cursor:pointer;font-size:12px;text-align:left}.aplos-quantum-style .aplos-column-header .aplos-content-holder{display:block;margin:16px 8px;overflow:hidden;text-overflow:ellipsis}.aplos-quantum-style .aplos-column-header.aplos-sort .aplos-content-holder{color:rgba(0,0,0,.87)}.aplos-quantum-style .aplos-column-header .aplos-content{white-space:nowrap}.aplos-quantum-style .aplos-table-cell .aplos-content{margin:8px;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.aplos-quantum-style .aplos-column-header{position:relative}.aplos-quantum-style .aplos-table-cell,.aplos-quantum-style .aplos-padding-cell{border-bottom:1px solid #e0e0e0;padding:0}.aplos-quantum-style .aplos-data-row.aplos-hover{background-color:#eee}.aplos-quantum-style .row-number-cell{color:rgba(0,0,0,.54);font-size:12px;font-weight:500}.aplos-quantum-style .row-number-cell .aplos-content-holder{color:rgba(0,0,0,.54);font-size:12px;font-weight:500;margin:8px 0 8px 8px}.aplos-quantum-style .aplos-table-cell.row-number-cell .aplos-content{margin:8px 0 8px 16px}.aplos-quantum-style a{color:#15c;cursor:pointer;text-decoration:none}.aplos-quantum-style a:hover{text-decoration:underline}.aplos-quantum-style a,.aplos-quantum-style a:visited,.aplos-quantum-style a:active{color:#4d90fe}.aplos-quantum-style .pivot-key-group{padding:8px}.aplos-quantum-style .aplos-sort-indicator-asc{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6c2tldGNoPSJodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2gvbnMiPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBza2V0Y2g6dHlwZT0iTVNQYWdlIj4gICAgICAgIDxnIGlkPSJpYy11cC1hcnJvdyIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTguMDAwMDAwLCAtOC4wMDAwMDApIj4gICAgICAgICAgICA8cGF0aCBkPSJNMCwwIEw0OCwwIEw0OCw0OCBMMCw0OCBMMCwwIEwwLDAgWiIgaWQ9IlNoYXBlIiBza2V0Y2g6dHlwZT0iTVNTaGFwZUdyb3VwIj48L3BhdGg+ICAgICAgICAgICAgPHBhdGggZD0iTTgsMjQgTDEwLjgzLDI2LjgzIEwyMiwxNS42NiBMMjIsNDAgTDI2LDQwIEwyNiwxNS42NiBMMzcuMTcsMjYuODMgTDQwLDI0IEwyNCw4IEw4LDI0IEw4LDI0IFoiIGlkPSJTaGFwZSIgZmlsbD0iIzAwMDAwMCIgc2tldGNoOnR5cGU9Ik1TU2hhcGVHcm91cCI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);background-position:2px 2px;background-repeat:no-repeat;-webkit-background-size:9px 9px;background-size:9px;border:none;height:11px;opacity:.8;top:0;width:1em}.aplos-quantum-style .aplos-sort-indicator-desc{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6c2tldGNoPSJodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2gvbnMiPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBza2V0Y2g6dHlwZT0iTVNQYWdlIj4gICAgICAgIDxnIGlkPSJpYy1kb3duLWFycm93IiBza2V0Y2g6dHlwZT0iTVNMYXllckdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOC4wMDAwMDAsIC04LjAwMDAwMCkiPiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLDAgTDQ4LDAgTDQ4LDQ4IEwwLDQ4IEwwLDAgTDAsMCBaIiBpZD0iU2hhcGUiIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPjwvcGF0aD4gICAgICAgICAgICA8cGF0aCBkPSJNOCwyNCBMMTAuODMsMjYuODMgTDIyLDE1LjY2IEwyMiw0MCBMMjYsNDAgTDI2LDE1LjY2IEwzNy4xNywyNi44MyBMNDAsMjQgTDI0LDggTDgsMjQgTDgsMjQgWiIgaWQ9IlNoYXBlIiBmaWxsPSIjMDAwMDAwIiBza2V0Y2g6dHlwZT0iTVNTaGFwZUdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNC4wMDAwMDAsIDI0LjAwMDAwMCkgc2NhbGUoMSwgLTEpIHRyYW5zbGF0ZSgtMjQuMDAwMDAwLCAtMjQuMDAwMDAwKSAiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg==);background-position:2px 2px;background-repeat:no-repeat;-webkit-background-size:9px 9px;background-size:9px;border:none;height:11px;opacity:.8;top:0;width:1em}.aplos-quantum-style .aplos-footer-row{background:#f5f5f5;border-top:1px solid #e0e0e0}.aplos-quantum-style::-webkit-scrollbar{height:8px;width:8px}.aplos-quantum-style ::-webkit-scrollbar{height:8px;overflow:visible;width:8px}.aplos-quantum-style ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:solid transparent;min-height:28px;padding:100px 0 0;-webkit-box-shadow:inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);box-shadow:inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);border-width:1px 1px 1px 1px}.aplos-quantum-style ::-webkit-scrollbar-button{height:0;width:0}.aplos-quantum-style ::-webkit-scrollbar-track{background-clip:padding-box;border:solid transparent;border-width:0 0 0 4px}.aplos-quantum-style ::-webkit-scrollbar-corner{background:transparent}.aplos-column-resizer{height:0;position:absolute}.aplos-column-resizer-inner{position:absolute}.aplos-sizer-grip{position:absolute;width:8px;cursor:ew-resize;top:0;left:0}.aplos-sizer-line{height:100%;margin-left:50%}.aplos-sizer-grip.aplos-hover>.aplos-sizer-grip-inner{background-color:#e0e0e0;top:8px;bottom:8px;left:3px;right:3px;position:absolute}.aplos-chart .row-axis .tick-line,.aplos-chart .column-axis .tick-line{fill:none;stroke:#000;shape-rendering:crispEdges}.aplos-chart .waterfall-transition{shape-rendering:crispEdges}.aplos-quantum-checkbox{-webkit-appearance:none;-moz-appearance:none;background:none;border:2px solid rgba(0,0,0,.54);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:15px;width:15px;outline:none;vertical-align:top;margin:0}.aplos-quantum-checkbox:checked,.aplos-quantum-checkbox:indeterminate{background-color:#757575;border:none}.aplos-quantum-checkbox:checked::after{border-bottom:2px solid #fff;border-left:2px solid #fff;content:"";display:block;height:4px;-webkit-transform:translate(2px,3px) rotate(-45deg) scale(1)!important;-ms-transform:translate(2px,3px) rotate(-45deg) scale(1)!important;transform:translate(2px,3px) rotate(-45deg) scale(1)!important;width:9px!important}.aplos-quantum-checkbox:indeterminate::after{border-bottom:2px solid #fff;content:"";display:block;height:0;-webkit-transform:translate(3px,6px) scale(1)!important;-ms-transform:translate(3px,6px) scale(1)!important;transform:translate(3px,6px) scale(1)!important;width:9px!important}.aplos-quantum-numbers .value{display:block;width:15px;text-align:center}.aplos-quantum-numbers .aplos-quantum-checkbox{display:none;pointer-events:none}.aplos-quantum-numbers .aplos-quantum-checkbox:only-child{display:block}.aplos-data-row:hover .aplos-quantum-numbers .value{display:none}.aplos-data-row:hover .aplos-quantum-numbers .aplos-quantum-checkbox{display:block}.aplos-highlight{background-color:yellow}.aplos-highlight-active{background-color:orange}.aplos-scorecard{color:rgba(0,0,0,.87);cursor:default;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;font-family:"Roboto",sans-serif;font-size:13px}.aplos-scorecard .aplos-series{margin:24px}.aplos-scorecard-title{font-weight:normal;font-size:1em;margin:0 0 8px 0}.aplos-scorecard .aplos-positive{color:#0F9D58}.aplos-scorecard .aplos-negative{color:#f3574c}.aplos-scorecard-subtitle{margin-top:8px;color:rgba(0,0,0,.54)}.aplos-scorecard-metric{font-size:32px}.aplos-chart .symbol-annotation-separator,.aplos-chart .symbol-annotation-bottom-separator{stroke:gray;shape-rendering:crispEdges}text.symbol-annotation-series-label-error{opacity:.4;fill:#DB4437}.aplos-chart .event-annotation-content{color:#757575;font-family:"Roboto",sans-serif;font-size:12px;padding:0 4px}.aplos-chart .event-annotation-content .annotation-title{font-weight:600}.aplos-chart .event-annotation-content .subdominant-additional-text,.aplos-chart .event-annotation-content .annotation-title,.aplos-chart .event-annotation-content .date{fill:#a3a3a3}.aplos-chart .event-annotation-content .range-line,.aplos-chart .event-annotation-content .marker-line{stroke:#d2d2d2;shape-rendering:crispEdges}.aplos-chart .event-annotation-content .subdominant-lines{stroke:#f2f2f2;shape-rendering:crispEdges}.aplos-a11y-content{color:transparent;position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden}.aplos-multiselect-brush.brush-hidden{opacity:0}.aplos-multiselect-brush .selection{fill:none;shape-rendering:crispEdges;stroke:rgba(0,0,0,.12)}.aplos-multiselect-brush .overlay{fill:#fff;fill-opacity:0;-webkit-transition:fill-opacity .2s;transition:fill-opacity .2s}.aplos-multiselect-brush .overlay.overlay-visible{fill-opacity:.69}.aplos-multiselect-hide-brush-overlay .aplos-multiselect-brush .overlay{fill:none}.aplos-range-selection .overlay{fill:#fff;fill-opacity:0;-webkit-transition:fill-opacity .2s;transition:fill-opacity .2s}.aplos-range-selection .overlay.visible{fill-opacity:.7}.aplos-range-selection .selection{fill:none;shape-rendering:crispEdges;stroke:#9e9e9e}.aplos-range-selection-domain-handle{opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s}.aplos-range-selection-domain-handle.visible{left:0;opacity:1;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.aplos-range-selection-domain-handle span{background:rgba(97,97,97,.9);border-radius:1px;color:#fff;cursor:move;display:inline-block;font-size:10px;padding:5px 8px;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.aplos-databox-overlay{display:none;position:absolute;top:0;left:0}.aplos-databox-overlay.visible{display:block}.aplos-legacy-style .aplos-spark-cell,.aplos-quantum-style .aplos-spark-cell{vertical-align:middle}.aplos-spark-bar{height:1em}.aplos-spark-bar.positive{background:#4d90fe;border-radius:0 4px 4px 0}.aplos-spark-bar.negative{background:#db4437;border-radius:4px 0 0 4px}sentinel{}\n';QA=mj(QA);PA=new kg(QA);var jj=Sd||(Sd=new hj),RA=ij("HEAD")[0];if(!RA){var SA=ij("BODY")[0];RA=jj.jj("HEAD");SA.parentNode.insertBefore(RA,SA)}var TA=jj.jj("STYLE"),UA=jg("style");UA&&TA.setAttribute("nonce",UA);var VA=lg(PA);if(Bd.trustedTypes)if("textContent"in TA)TA.textContent=VA;else if(TA.nodeType==3)TA.data=String(VA);else if(TA.firstChild&&TA.firstChild.nodeType==3){for(;TA.lastChild!=TA.firstChild;)TA.removeChild(TA.lastChild);TA.firstChild.data=String(VA)}else dj(TA),TA.appendChild((TA.nodeType==9?TA:TA.ownerDocument||TA.document).createTextNode(String(VA)));else TA.innerHTML=VA;jj.appendChild(RA,TA); var th,Kh,$h,ci,di,fi,gi,ii,fr,er,vi,wi,vj,Kj,ak,lk,rq,Rq,Sq,zz,Qt,gu,Rv,Uv,Vv,ex,hx,nx,ox,px,qx,rx,sx,tx,ux,vx,Vx,WA;(function(){function a(l){return function(){return this.matches(l)}} function b(l,h){return lh?1:l>=h?0:NaN} function c(l){l.length===1&&(l=e(l));return{left:function(h,p,u,x){u==null&&(u=0);x==null&&(x=h.length);for(;u>>1;l(h[z],p)<0?u=z+1:x=z}return u},right:function(h,p,u,x){u==null&&(u=0);x==null&&(x=h.length);for(;u>>1;l(h[z],p)>0?x=z:u=z+1}return u}}} function e(l){return function(h,p){return b(l(h),p)}} function f(l,h,p){l=+l;h=+h;p=(x=arguments.length)<2?(h=l,l=0,1):x<3?1:+p;for(var u=-1,x=Math.max(0,Math.ceil((h-l)/p))|0,z=Array(x);++u0)return[l];if(u=h0)for(l=Math.ceil(l/z),h=Math.floor(h/z),h=Array(A=Math.ceil(h-l+1));++x=0?(h>=Zn?10:h>=$n?5:h>=ao?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(h>=Zn?10:h>=$n?5:h>=ao?2:1)} function r(l,h,p){var u=Math.abs(h-l)/Math.max(0,p);p=Math.pow(10,Math.floor(Math.log(u)/Math.LN10));u/=p;u>=Zn?p*=10:u>=$n?p*=5:u>=ao&&(p*=2);return h=0&&(u=p.slice(x+1),p=p.slice(0,x));if(p&&!h.hasOwnProperty(p))throw Error("unknown type: "+p);return{type:p,name:u}})} function ma(l,h,p){for(var u=0,x=l.length;u=0&&(h=l.slice(0,p))!=="xmlns"&&(l=l.slice(p+1));return se.hasOwnProperty(h)?{space:se[h],local:l}:l} function sa(l){return function(){var h=this.ownerDocument,p=this.namespaceURI;return p==="http://www.w3.org/1999/xhtml"&&h.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?h.createElement(l):h.createElementNS(p,l)}} function ua(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}} function ta(l){l=na(l);return(l.local?ua:sa)(l)} function Ba(){} function ya(l){return l==null?Ba:function(){return this.querySelector(l)}} function Aa(){return[]} function Ca(l){return l==null?Aa:function(){return this.querySelectorAll(l)}} function Fa(l){return Array(l.length)} function Ea(l,h){this.ownerDocument=l.ownerDocument;this.namespaceURI=l.namespaceURI;this.Qc=null;this.rg=l;this.__data__=h} function Ja(l){return function(){return l}} function Ka(l,h,p,u,x,z){for(var A=0,la,oa=h.length,ra=z.length;Ah?1:l>=h?0:NaN} function Qa(l){return function(){this.removeAttribute(l)}} function Wa(l){return function(){this.removeAttributeNS(l.space,l.local)}} function Db(l,h){return function(){this.setAttribute(l,h)}} function Eb(l,h){return function(){this.setAttributeNS(l.space,l.local,h)}} function Fb(l,h){return function(){var p=h.apply(this,arguments);p==null?this.removeAttribute(l):this.setAttribute(l,p)}} function Gb(l,h){return function(){var p=h.apply(this,arguments);p==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,p)}} function Hb(l){return function(){this.style.removeProperty(l)}} function Ib(l,h,p){return function(){this.style.setProperty(l,h,p)}} function Jb(l,h,p){return function(){var u=h.apply(this,arguments);u==null?this.style.removeProperty(l):this.style.setProperty(l,u,p)}} function $a(l,h){return l.style.getPropertyValue(h)||(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView).getComputedStyle(l,null).getPropertyValue(h)} function Kb(l){return function(){delete this[l]}} function Lb(l,h){return function(){this[l]=h}} function Mb(l,h){return function(){var p=h.apply(this,arguments);p==null?delete this[l]:this[l]=p}} function fb(l){return l.classList||new ub(l)} function ub(l){this.Wi=l;this.Vd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function vb(l,h){l=fb(l);for(var p=-1,u=h.length;++p=0&&(p=h.slice(u+1),h=h.slice(0,u));return{type:h,name:p}})} function dc(l){return function(){var h=this.__on;if(h){for(var p=0,u=-1,x=h.length,z;p>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=bB.exec(l))?zb(parseInt(h[1],16)):(h=cB.exec(l))?new La(h[1],h[2],h[3],1):(h=dB.exec(l))?new La(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=eB.exec(l))?Ab(h[1],h[2],h[3],h[4]):(h=fB.exec(l))?Ab(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=gB.exec(l))?Bb(h[1],h[2]/100,h[3]/100,1):(h=hB.exec(l))?Bb(h[1],h[2]/100,h[3]/100,h[4]):ju.hasOwnProperty(l)?zb(ju[l]):l==="transparent"?new La(NaN,NaN,NaN,0):null} function zb(l){return new La(l>>16&255,l>>8&255,l&255,1)} function Ab(l,h,p,u){u<=0&&(l=h=p=NaN);return new La(l,h,p,u)} function hb(l){l instanceof Xa||(l=Ya(l));if(!l)return new La;l=l.rgb();return new La(l.r,l.g,l.b,l.opacity)} function cb(l,h,p,u){return arguments.length===1?hb(l):new La(l,h,p,u==null?1:u)} function La(l,h,p,u){this.r=+l;this.g=+h;this.b=+p;this.opacity=+u} function ib(l){l=Math.max(0,Math.min(255,Math.round(l)||0));return(l<16?"0":"")+l.toString(16)} function Bb(l,h,p,u){u<=0?l=h=p=NaN:p<=0||p>=1?l=h=NaN:h<=0&&(l=NaN);return new Ua(l,h,p,u)} function hc(l){if(l instanceof Ua)return new Ua(l.h,l.s,l.l,l.opacity);l instanceof Xa||(l=Ya(l));if(!l)return new Ua;if(l instanceof Ua)return l;l=l.rgb();var h=l.r/255,p=l.g/255,u=l.b/255,x=Math.min(h,p,u),z=Math.max(h,p,u),A=NaN,la=z-x,oa=(z+x)/2;la?(A=h===z?(p-u)/la+(p0&&oa<1?0:A;return new Ua(A,la,oa,l.opacity)} function jb(l,h,p,u){return arguments.length===1?hc(l):new Ua(l,h,p,u==null?1:u)} function Ua(l,h,p,u){this.h=+l;this.s=+h;this.l=+p;this.opacity=+u} function kb(l,h,p){return(l<60?h+(p-h)*l/60:l<180?p:l<240?h+(p-h)*(240-l)/60:h)*255} function lb(l){if(l instanceof Va)return new Va(l.l,l.a,l.b,l.opacity);if(l instanceof rb){if(isNaN(l.h))return new Va(l.l,0,0,l.opacity);var h=l.h*ku;return new Va(l.l,Math.cos(h)*l.c,Math.sin(h)*l.c,l.opacity)}l instanceof La||(l=hb(l));var p=pb(l.r),u=pb(l.g),x=pb(l.b);h=mb(.2225045*p+.7168786*u+.0606169*x);if(p===u&&u===x)var z=p=h;else z=mb((.4360747*p+.3850649*u+.1430804*x)/.96422),p=mb((.0139322*p+.0971045*u+.7141733*x)/.82521);return new Va(116*h-16,500*(z-h),200*(h-p),l.opacity)} function Va(l,h,p,u){this.l=+l;this.a=+h;this.b=+p;this.opacity=+u} function mb(l){return l>iB?Math.pow(l,1/3):l/lu+mu} function nb(l){return l>xh?l*l*l:lu*(l-mu)} function ob(l){return 255*(l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function pb(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)} function ic(l){if(l instanceof rb)return new rb(l.h,l.c,l.l,l.opacity);l instanceof Va||(l=lb(l));if(l.a===0&&l.b===0)return new rb(NaN,0,l.l,l.opacity);var h=Math.atan2(l.b,l.a)*nu;return new rb(h<0?h+360:h,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function qb(l,h,p,u){return arguments.length===1?ic(l):new rb(l,h,p,u==null?1:u)} function rb(l,h,p,u){this.h=+l;this.c=+h;this.l=+p;this.opacity=+u} function db(l,h,p,u){if(arguments.length===1){var x=l;if(x instanceof sb)x=new sb(x.h,x.s,x.l,x.opacity);else{x instanceof La||(x=hb(x));var z=x.g/255,A=x.b/255,la=(ou*A+x.r/255*-1.7884503806-3.5172982438*z)/(ou+-1.7884503806-3.5172982438);A-=la;var oa=(1.97294*(z-la)- -.29227*A)/-.90649;A=(z=Math.sqrt(oa*oa+A*A)/(1.97294*la*(1-la)))?Math.atan2(oa,A)*nu-120:NaN;x=new sb(A<0?A+360:A,z,la,x.opacity)}}else x=new sb(l,h,p,u==null?1:u);return x} function sb(l,h,p,u){this.h=+l;this.s=+h;this.l=+p;this.opacity=+u} function lc(l,h,p,u,x){var z=l*l,A=z*l;return((1-3*l+3*z-A)*h+(4-6*z+3*A)*p+(1+3*l+3*z-3*A)*u+A*x)/6} function pc(l){return function(){return l}} function uc(l,h){return function(p){return l+p*h}} function zc(l,h,p){return l=Math.pow(l,p),h=Math.pow(h,p)-l,p=1/p,function(u){return Math.pow(l+u*h,p)}} function rc(l,h){var p=h-l;return p?uc(l,p>180||p<-180?p-360*Math.round(p/360):p):pc(isNaN(l)?h:l)} function Ac(l){return(l=+l)===1?Cb:function(h,p){return p-h?zc(h,p,l):pc(isNaN(h)?p:h)}} function Cb(l,h){var p=h-l;return p?uc(l,p):pc(isNaN(l)?h:l)} function Gc(l){return function(h){var p=h.length,u=Array(p),x=Array(p),z=Array(p),A;for(A=0;A

p&&(z=h.slice(p,z),la[A]?la[A]+=z:la[++A]=z),(u=u[0])===(x=x[0])?la[A]?la[A]+=x:la[++A]=x:(la[++A]=null,oa.push({td:A,x:nc(u,x)})),p=co.lastIndex;p180?qa+=360:qa-ra>180&&(ra+=360),wa.push({td:pa.push(x(pa)+"rotate(",null,u)-2,x:nc(ra,qa)})):qa&&pa.push(x(pa)+"rotate("+qa+u)} function la(ra,qa,pa,wa){ra!==qa?wa.push({td:pa.push(x(pa)+"skewX(",null,u)-2,x:nc(ra,qa)}):qa&&pa.push(x(pa)+"skewX("+qa+u)} function oa(ra,qa,pa,wa,Da,Ha){ra!==pa||qa!==wa?(Da=Da.push(x(Da)+"scale(",null,",",null,")"),Ha.push({td:Da-4,x:nc(ra,pa)},{td:Da-2,x:nc(qa,wa)})):pa===1&&wa===1||Da.push(x(Da)+"scale("+pa+","+wa+")")} return function(ra,qa){var pa=[],wa=[];ra=l(ra);qa=l(qa);z(ra.Ki,ra.Li,qa.Ki,qa.Li,pa,wa);A(ra.rotate,qa.rotate,pa,wa);la(ra.skewX,qa.skewX,pa,wa);oa(ra.ai,ra.bi,qa.ai,qa.bi,pa,wa);ra=qa=null;return function(Da){for(var Ha=-1,jc=wa.length,eb;++Ha=0&&l.uf.call(null,h),l=l.Qc;--yh}finally{yh=0;l=Kk;for(var p=Infinity;l;)if(l.uf){p>l.wf&&(p=l.wf);var u=l;l=l.Qc}else h=l.Qc,l.Qc=null,l=u?u.Qc=h:Kk=h;Oi=u;wf(p);Bg=0}} function Xe(){var l=Mi.now(),h=l-Jk;h>1E3&&(Ik-=h,Jk=l)} function wf(l){yh||(Ni&&(Ni=clearTimeout(Ni)),l-Bg>24?(l0)throw Error("too late; already scheduled");return l} function Ye(l,h){l=ke(l,h);if(l.state>2)throw Error("too late; already started");return l} function ke(l,h){l=l.Bd;if(!l||!(l=l[h]))throw Error("transition not found");return l} function wk(l,h,p){function u(oa){var ra,qa;if(p.state!==1)return z();for(wa in A){var pa=A[wa];if(pa.name===p.name){if(pa.state===3)return Di(u);pa.state===4?(pa.state=6,pa.timer.stop(),pa.on.call("interrupt",l,l.__data__,pa.index,pa.group),delete A[wa]):+wa=0&&(h=h.slice(0,p));return!h||h==="start"})} function $d(l,h,p){var u,x,z=ye(h)?qe:Ye;return function(){var A=z(this,l),la=A.on;if(la!==u)(x=(u=la).copy()).on(h,p);A.on=x}} function Uf(l){return function(){var h=this.parentNode,p;for(p in this.Bd)if(+p!==l)return;h&&h.removeChild(this)}} function qh(l,h){var p,u,x;return function(){var z=$a(this,l),A=(this.style.removeProperty(l),$a(this,l));return z===A?null:z===p&&A===u?x:x=h(p=z,u=A)}} function ee(l){return function(){this.style.removeProperty(l)}} function Hn(l,h,p){var u,x;return function(){var z=$a(this,l);return z===p?null:z===u?x:x=h(u=z,p)}} function lB(l,h,p){var u,x,z;return function(){var A=$a(this,l),la=p(this);la==null&&(la=(this.style.removeProperty(l),$a(this,l)));return A===la?null:A===u&&la===x?z:z=h(u=A,x=la)}} function mB(l,h,p){function u(){var x=this,z=h.apply(x,arguments);return z&&function(A){x.style.setProperty(l,z(A),p)}} u.ug=h;return u} function nB(l){return function(){this.textContent=l}} function oB(l){return function(){var h=l(this);this.textContent=h==null?"":h}} function Af(l,h,p,u){this.mb=l;this.bc=h;this.ze=p;this.Sb=u} function eo(l){return{type:l}} function fo(){this.Pa=this.Ra=this.Aa=this.Ea=null;this.Ga=""} function Lk(){return new fo} function Mk(){} function Nk(l,h){var p=new Mk;if(l instanceof Mk)l.each(function(A,la){p.set(la,A)});else if(Array.isArray(l)){var u=-1,x=l.length,z;if(h==null)for(;++u=qa?Ha=!0:(tc=A.charCodeAt(pa++))===10?jc=!0:tc===13&&(jc=!0,A.charCodeAt(pa)===10&&++pa);return A.slice(Tc+1,Pc-1).replace(/""/g,'"')}for(;pa=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=p>=(pa=(la+ra)/2))?la=pa:ra=pa,x=z,!(z=z[Ha=Da<<1|wa]))return x[Ha]=u,l;var jc=+l.Bb.call(null,z.data);var eb=+l.Fb.call(null,z.data);if(h===jc&&p===eb)return u.next=z,x?x[Ha]=u:l.tb=u,l;do x=x?x[Ha]=Array(4):l.tb=Array(4),(wa=h>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=p>=(pa=(la+ra)/2))?la=pa:ra=pa;while((Ha= Da<<1|wa)===(wa=(eb>=pa)<<1|jc>=qa));return x[wa]=z,x[Ha]=u,l} function fe(l,h,p,u,x){this.node=l;this.x0=h;this.y0=p;this.x1=u;this.y1=x} function sB(l){return l[0]} function tB(l){return l[1]} function ho(l,h,p,u,x,z){this.Bb=l;this.Fb=h;this.Pa=p;this.Ra=u;this.Aa=x;this.Ea=z;this.tb=void 0} function wu(l){for(var h={data:l.data},p=h;l=l.next;)p=p.next={data:l.data};return h} function Pk(l,h){if((h=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e"))<0)return null;var p=l.slice(0,h);return[p.length>1?p[0]+p.slice(2):p,+l.slice(h+1)]} function zh(l){return l=Pk(Math.abs(l)),l?l[1]:NaN} function uB(l,h){return function(p,u){for(var x=p.length,z=[],A=0,la=l[0],oa=0;x>0&&la>0;){oa+la+1>u&&(la=Math.max(1,u-oa));z.push(p.substring(x-=la,x+la));if((oa+=la+1)>u)break;la=l[A=(A+1)%l.length]}return z.reverse().join(h)}} function vB(l){return function(h){return h.replace(/[0-9]/g,function(p){return l[+p]})}} function Qk(l){return new io(l)} function io(l){if(!(h=wB.exec(l)))throw Error("invalid format: "+l);var h;this.fill=h[1]||" ";this.align=h[2]||">";this.sign=h[3]||"-";this.symbol=h[4]||"";this.zero=!!h[5];this.width=h[6]&&+h[6];this.comma=!!h[7];this.precision=h[8]&&+h[8].slice(1);this.trim=!!h[9];this.type=h[10]||""} function xu(l,h){h=Pk(l,h);if(!h)return l+"";l=h[0];h=h[1];return h<0?"0."+Array(-h).join("0")+l:l.length>h+1?l.slice(0,h+1)+"."+l.slice(h+1):l+Array(h-l.length+2).join("0")} function yu(l){return l} function xB(l){function h(la){function oa(Ma){var Rc=tc,Ia=Oc,Ta;if(Tc==="c")Ia=ad(Ma)+Ia,Ma="";else{Ma=+Ma;var Ga=Ma<0;Ma=ad(Math.abs(Ma),eb);if(Pc){var Na=Ma.length;var Zc=1,yd=-1,Dd;a:for(;Zc0&&(yd=0)}Ma=yd>0?Ma.slice(0,yd)+Ma.slice(Dd+1):Ma}Ga&&+Ma===0&&(Ga=!1);Rc=(Ga?pa==="("?pa:"-":pa==="-"||pa==="("?"":pa)+Rc;Ia=(Tc==="s"?zu[8+Au/3]:"")+Ia+(Ga&&pa==="("?")":"");if(Qc)for(Ga=-1,Na=Ma.length;++GaTa||Ta>57){Ia=(Ta===46?x+Ma.slice(Ga+1):Ma.slice(Ga))+Ia;Ma=Ma.slice(0,Ga);break}}jc&&!Da&&(Ma=p(Ma,Infinity));Ta=Rc.length+Ma.length+Ia.length;Ga=Ta>1)+Rc+Ma+Ia+Ga.slice(Ta);break;default:Ma=Ga+Rc+Ma+Ia}return z(Ma)} la=Qk(la);var ra=la.fill,qa=la.align,pa=la.sign,wa=la.symbol,Da=la.zero,Ha=la.width,jc=la.comma,eb=la.precision,Pc=la.trim,Tc=la.type;Tc==="n"?(jc=!0,Tc="g"):Bu[Tc]||(eb==null&&(eb=12),Pc=!0,Tc="g");if(Da||ra==="0"&&qa==="=")Da=!0,ra="0",qa="=";var tc=wa==="$"?u[0]:wa==="#"&&/[boxX]/.test(Tc)?"0"+Tc.toLowerCase():"",Oc=wa==="$"?u[1]:/[%p]/.test(Tc)?A:"",ad=Bu[Tc],Qc=/[defgprs%]/.test(Tc);eb=eb==null?6:/[gprs]/.test(Tc)?Math.max(1,Math.min(21,eb)):Math.max(0,Math.min(20,eb));oa.toString=function(){return la+ ""};return oa} var p=l.grouping&&l.thousands?uB(l.grouping,l.thousands):yu,u=l.currency,x=l.decimal,z=l.numerals?vB(l.numerals):yu,A=l.percent||"%";return{format:h,formatPrefix:function(la,oa){var ra=h((la=Qk(la),la.type="f",la));la=Math.max(-8,Math.min(8,Math.floor(zh(oa)/3)))*3;var qa=Math.pow(10,-la),pa=zu[8+la/3];return function(wa){return ra(qa*wa)+pa}}}} function Ge(){this.reset()} function Cu(l,h,p){var u=l.s=h+p,x=u-h;l.t=h-(u-x)+(p-x)} function Rk(l){return l>1?Ae:l<-1?-Ae:Math.asin(l)} function yB(){} function Du(l){var h=l[0];l=l[1];var p=Be(l);return[p*Be(h),p*ae(h),ae(l)]} function Eu(l,h){return[l[1]*h[2]-l[2]*h[1],l[2]*h[0]-l[0]*h[2],l[0]*h[1]-l[1]*h[0]]} function Fu(l){var h=Sk(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function zB(){var l=[],h;return{point:function(p,u){h.push([p,u])},lineStart:function(){l.push(h=[])},lineEnd:yB,kr:function(){l.length>1&&l.push(l.pop().concat(l.shift()))},result:function(){var p=l;l=[];h=null;return p}}} function Tk(l,h,p,u){this.x=l;this.z=h;this.Vg=p;this.e=u;this.kh=!1;this.n=this.p=null} function AB(l,h,p,u,x){var z=[],A=[];l.forEach(function(pa){if(!((wa=pa.length-1)<=0)){var wa,Da=pa[0],Ha=pa[wa],jc=Da;if(Yf(jc[0]-Ha[0])<1E-6&&Yf(jc[1]-Ha[1])<1E-6){x.lineStart();for(la=0;la=0;--la)x.point((oa=h[la])[0],oa[1]);else u(ra.x,ra.p.x,-1,x);ra=ra.p}ra=ra.Vg;h=ra.z;qa=!qa}while(!ra.kh);x.lineEnd()}}} function Gu(l){if(h=l.length){for(var h,p=0,u=l[0],x;++p1} function CB(l,h){return((l=l.x)[0]<0?l[1]-Ae-1E-6:Ae-l[1])-((h=h.x)[0]<0?h[1]-Ae-1E-6:Ae-h[1])} function jo(){} function Hu(l){return function(h,p){var u=Be(h),x=Be(p);u=l(u*x);return[u*x*ae(h),u*ae(p)]}} function Qi(l){return function(h,p){var u=Sk(h*h+p*p),x=l(u),z=ae(x);x=Be(x);return[Iu(h*z,u*x),Rk(u&&p*z/u)]}} function DB(l){var h=0,p=l.children,u=p&&p.length;if(u)for(;--u>=0;)h+=p[u].value;else h=1;l.value=h} function Ju(l,h){var p=new Ri(l);l=+l.value&&(p.value=l.value);var u,x=[p],z,A,la,oa;for(h==null&&(h=EB);u=x.pop();)if(l&&(u.value=+u.data.value),(A=h(u.data))&&(oa=A.length))for(u.children=Array(oa),la=oa-1;la>=0;--la)x.push(z=u.children[la]=new Ri(A[la])),z.parent=u,z.depth=u.depth+1;return p.eachBefore(FB)} function EB(l){return l.children} function GB(l){l.data=l.data.data} function FB(l){var h=0;do l.height=h;while((l=l.parent)&&l.height<++h)} function Ri(l){this.data=l;this.depth=this.height=0;this.parent=null} function ko(l){function h(z){var A=z+"",la=p.get(A);if(!la){if(x!==Ku)return x;p.set(A,la=u.push(z))}return l[(la-1)%l.length]} var p=Nk(),u=[],x=Ku;l=l==null?[]:Uk.call(l);h.domain=function(z){if(!arguments.length)return u.slice();u=[];p=Nk();for(var A=-1,la=z.length,oa,ra;++A=p?1:u(x)}}} function JB(l){return function(h,p){var u=l(h=+h,p=+p);return function(x){return x<=0?h:x>=1?p:u(x)}}} function KB(l,h,p,u){var x=l[0];l=l[1];var z=h[0];h=h[1];l2?LB:KB;ra=qa=null;return u} function u(pa){return(ra||(ra=oa(x,z,la?IB(l):l,A)))(+pa)} var x=Nu,z=Nu,A=qc,la=!1,oa,ra,qa;u.invert=function(pa){return(qa||(qa=oa(z,x,mo,la?JB(h):h)))(+pa)};u.domain=function(pa){return arguments.length?(x=Ou.call(pa,HB),p()):x.slice()};u.range=function(pa){return arguments.length?(z=Uk.call(pa),p()):z.slice()};u.rangeRound=function(pa){return z=Uk.call(pa),A=Ec,p()};u.clamp=function(pa){return arguments.length?(la=!!pa,p()):la};u.interpolate=function(pa){return arguments.length?(A=pa,p()):A};return p()} function NB(l){var h=l.domain;l.ticks=function(p){var u=h();return k(u[0],u[u.length-1],p==null?10:p)};l.tickFormat=function(p,u){a:{var x=h(),z=x[0];x=x[x.length-1];p=r(z,x,p==null?10:p);u=Qk(u==null?",f":u);switch(u.type){case "s":z=Math.max(Math.abs(z),Math.abs(x));if(x=u.precision==null){var A=isNaN;p=Math.max(0,Math.max(-8,Math.min(8,Math.floor(zh(z)/3)))*3-zh(Math.abs(p)));x=!A(A=p)}x&&(u.precision=A);u=WA(u,z);break a;case "":case "e":case "g":case "p":case "r":var la;if(la=u.precision==null)A=isNaN,z=Math.max(Math.abs(z),Math.abs(x)),p=Math.abs(p),z=Math.abs(z)-p,p=Math.max(0,zh(z)-zh(p))+ 1,la=!A(A=p);la&&(u.precision=A-(u.type==="e"));break;case "f":case "%":u.precision!=null||isNaN(A=Math.max(0,-zh(Math.abs(p))))||(u.precision=A-(u.type==="%")*2)}u=th(u)}return u};l.nice=function(p){p==null&&(p=10);var u=h(),x=0,z=u.length-1,A=u[x],la=u[z];if(la0?(A=Math.floor(A/oa)*oa,la=Math.ceil(la/oa)*oa,oa=n(A,la,p)):oa<0&&(A=Math.ceil(A*oa)/oa,la=Math.floor(la*oa)/oa,oa=n(A,la,p));oa>0?(u[x]=Math.floor(A/oa)*oa,u[z]=Math.ceil(la/oa)*oa,h(u)):oa<0&&(u[x]=Math.ceil(A*oa)/oa,u[z]=Math.floor(la*oa)/oa,h(u));return l};return l} function Pu(){var l=oo(mo,nc);l.copy=function(){return no(l,Pu())};return NB(l)} function Qu(l,h){l=l.slice();var p=0,u=l.length-1,x=l[p],z=l[u];if(z0)for(;qala)break;A.push(Ha)}}}else for(;qa=1;--Da){if(Ha=wa*Da,!(Hala)break;A.push(Ha)}}else A=k(qa,pa,Math.min(pa-qa,wa)).map(z);return ra?A.reverse():A};h.tickFormat=function(A,la){la==null&&(la=u===10?".0e":",");typeof la!=="function"&&(la=th(la));if(A===Infinity)return la;A==null&&(A=10);var oa=Math.max(1,u*A/h.ticks().length);return function(ra){var qa=ra/z(Math.round(x(ra)));qa*u0))return oa;do oa.push(ra=new Date(+z)),h(z,la),l(z);while(ra=A)for(;l(A),!z(A);)A.setTime(A-1)},function(A,la){if(A>=A)if(la<0)for(;++la<=0;)for(;h(A,-1),!z(A););else for(;--la>=0;)for(;h(A,1),!z(A););})};p&&(x.count=function(z,A){po.setTime(+z);qo.setTime(+A);l(po);l(qo);return Math.floor(p(po,qo))},x.every=function(z){z=Math.floor(z);return isFinite(z)&&z>0?z>1?x.filter(u?function(A){return u(A)%z===0}:function(A){return x.count(0,A)%z===0}):x:null});return x} function Cg(l){return Rd(function(h){h.setDate(h.getDate()-(h.getDay()+7-l)%7);h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p*7)},function(h,p){return(p-h-(p.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/6048E5})} function Dg(l){return Rd(function(h){h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-l)%7);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCDate(h.getUTCDate()+p*7)},function(h,p){return(p-h)/6048E5})} function RB(l){if(0<=l.y&&l.y<100){var h=new Date(-1,l.m,l.d,l.jd,l.M,l.S,l.L);h.setFullYear(l.y);return h}return new Date(l.y,l.m,l.d,l.jd,l.M,l.S,l.L)} function Vk(l){if(0<=l.y&&l.y<100){var h=new Date(Date.UTC(-1,l.m,l.d,l.jd,l.M,l.S,l.L));h.setUTCFullYear(l.y);return h}return new Date(Date.UTC(l.y,l.m,l.d,l.jd,l.M,l.S,l.L))} function Si(l){return{y:l,m:0,d:1,jd:0,M:0,S:0,L:0}} function SB(l){function h(Ia,Ta){return function(Ga){var Na=[],Zc=-1,yd=0,Dd=Ia.length,pd,te;for(Ga instanceof Date||(Ga=new Date(+Ga));++Zc

53)return null;"w"in Na||(Na.w=1);if("Z"in Na){Ga=Vk(Si(Na.y));var Zc=Ga.getUTCDay();Ga=Zc>4||Zc===0?ro.ceil(Ga):ro(Ga);Ga=Wu.offset(Ga,(Na.mg-1)*7);Na.y=Ga.getUTCFullYear();Na.m=Ga.getUTCMonth();Na.d=Ga.getUTCDate()+(Na.w+6)%7}else Ga=Ta(Si(Na.y)),Zc=Ga.getDay(),Ga=Zc>4||Zc===0?so.ceil(Ga):so(Ga),Ga=to.offset(Ga,(Na.mg-1)*7),Na.y=Ga.getFullYear(),Na.m=Ga.getMonth(),Na.d=Ga.getDate()+(Na.w+6)%7}else if("W"in Na||"U"in Na)"w"in Na||(Na.w="u"in Na?Na.ep%7:"W"in Na?1:0),Zc="Z"in Na?Vk(Si(Na.y)).getUTCDay():Ta(Si(Na.y)).getDay(),Na.m=0,Na.d="W"in Na?(Na.w+6)%7+Na.W*7-(Zc+5)%7:Na.w+Na.U*7-(Zc+6)%7;return"Z"in Na?(Na.jd+=Na.Z/100|0,Na.M+=Na.Z%100,Vk(Na)):Ta(Na)}} function u(Ia,Ta,Ga,Na){for(var Zc=0,yd=Ta.length,Dd=Ga.length,pd;Zc=Dd)return-1;pd=Ta.charCodeAt(Zc++);if(pd===37){if(pd=Ta.charAt(Zc++),pd=Rc[pd in Vu?Ta.charAt(Zc++):pd],!pd||(Na=pd(Ia,Ga,Na))<0)return-1}else if(pd!=Ga.charCodeAt(Na++))return-1}return Na} var x=l.dateTime,z=l.date,A=l.time,la=l.periods,oa=l.days,ra=l.shortDays,qa=l.months,pa=l.shortMonths,wa=Ti(la),Da=Ui(la),Ha=Ti(oa),jc=Ui(oa),eb=Ti(ra),Pc=Ui(ra),Tc=Ti(qa),tc=Ui(qa),Oc=Ti(pa),ad=Ui(pa),Qc={a:function(Ia){return ra[Ia.getDay()]},A:function(Ia){return oa[Ia.getDay()]},b:function(Ia){return pa[Ia.getMonth()]},B:function(Ia){return qa[Ia.getMonth()]},c:null,d:Xu,e:Xu,f:TB,H:UB,I:VB,j:WB,L:Yu,m:XB,M:YB,p:function(Ia){return la[+(Ia.getHours()>=12)]},Q:Zu,s:$u,S:ZB,u:$B,U:aC,V:bC,w:cC,W:dC,x:null,X:null,y:eC,Y:fC,Z:gC,"%":av},Ma={a:function(Ia){return ra[Ia.getUTCDay()]},A:function(Ia){return oa[Ia.getUTCDay()]},b:function(Ia){return pa[Ia.getUTCMonth()]},B:function(Ia){return qa[Ia.getUTCMonth()]},c:null,d:bv,e:bv,f:hC,H:iC,I:jC,j:kC,L:cv,m:lC,M:mC,p:function(Ia){return la[+(Ia.getUTCHours()>=12)]},Q:Zu,s:$u,S:nC,u:oC,U:pC,V:qC,w:rC,W:sC,x:null,X:null,y:tC,Y:uC,Z:vC,"%":av},Rc={a:function(Ia,Ta,Ga){return(Ta=eb.exec(Ta.slice(Ga)))?(Ia.w=Pc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},A:function(Ia,Ta,Ga){return(Ta=Ha.exec(Ta.slice(Ga)))?(Ia.w=jc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},b:function(Ia,Ta,Ga){return(Ta=Oc.exec(Ta.slice(Ga)))?(Ia.m=ad[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},B:function(Ia,Ta,Ga){return(Ta=Tc.exec(Ta.slice(Ga)))?(Ia.m=tc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},c:function(Ia,Ta,Ga){return u(Ia,x,Ta,Ga)},d:dv,e:dv,f:wC,H:ev,I:ev,j:xC,L:yC,m:zC,M:AC,p:function(Ia,Ta,Ga){return(Ta=wa.exec(Ta.slice(Ga)))?(Ia.p=Da[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},Q:BC,s:CC,S:DC,u:EC,U:FC,V:GC,w:HC,W:IC,x:function(Ia,Ta,Ga){return u(Ia,z,Ta,Ga)},X:function(Ia,Ta,Ga){return u(Ia,A,Ta,Ga)},y:JC,Y:KC,Z:LC,"%":MC};Qc.x=h(z,Qc);Qc.X=h(A,Qc);Qc.c=h(x,Qc);Ma.x=h(z,Ma);Ma.X=h(A,Ma);Ma.c=h(x,Ma);return{format:function(Ia){var Ta=h(Ia+="",Qc);Ta.toString=function(){return Ia};return Ta},parse:function(Ia){var Ta=p(Ia+="",RB);Ta.toString=function(){return Ia};return Ta},utcFormat:function(Ia){var Ta=h(Ia+="",Ma);Ta.toString=function(){return Ia};return Ta},utcParse:function(Ia){var Ta=p(Ia,Vk);Ta.toString=function(){return Ia};return Ta}}} function sd(l,h,p){var u=l<0?"-":"";l=(u?-l:l)+"";var x=l.length;return u+(x

68?1900:2E3),p+h[0].length):-1} function LC(l,h,p){return(h=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(h.slice(p,p+6)))?(l.Z=h[1]?0:-(h[2]+(h[3]||"00")),p+h[0].length):-1} function zC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.m=h[0]-1,p+h[0].length):-1} function dv(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.d=+h[0],p+h[0].length):-1} function xC(l,h,p){return(h=Wd.exec(h.slice(p,p+3)))?(l.m=0,l.d=+h[0],p+h[0].length):-1} function ev(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.jd=+h[0],p+h[0].length):-1} function AC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.M=+h[0],p+h[0].length):-1} function DC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.S=+h[0],p+h[0].length):-1} function yC(l,h,p){return(h=Wd.exec(h.slice(p,p+3)))?(l.L=+h[0],p+h[0].length):-1} function wC(l,h,p){return(h=Wd.exec(h.slice(p,p+6)))?(l.L=Math.floor(h[0]/1E3),p+h[0].length):-1} function MC(l,h,p){return(l=PC.exec(h.slice(p,p+1)))?p+l[0].length:-1} function BC(l,h,p){return(h=Wd.exec(h.slice(p)))?(l.Q=+h[0],p+h[0].length):-1} function CC(l,h,p){return(h=Wd.exec(h.slice(p)))?(l.Q=+h[0]*1E3,p+h[0].length):-1} function Xu(l,h){return sd(l.getDate(),h,2)} function UB(l,h){return sd(l.getHours(),h,2)} function VB(l,h){return sd(l.getHours()%12||12,h,2)} function WB(l,h){return sd(1+to.count(Eg(l),l),h,3)} function Yu(l,h){return sd(l.getMilliseconds(),h,3)} function TB(l,h){return Yu(l,h)+"000"} function XB(l,h){return sd(l.getMonth()+1,h,2)} function YB(l,h){return sd(l.getMinutes(),h,2)} function ZB(l,h){return sd(l.getSeconds(),h,2)} function $B(l){l=l.getDay();return l===0?7:l} function aC(l,h){return sd(fv.count(Eg(l),l),h,2)} function bC(l,h){var p=l.getDay();l=p>=4||p===0?uo(l):uo.ceil(l);return sd(uo.count(Eg(l),l)+(Eg(l).getDay()===4),h,2)} function cC(l){return l.getDay()} function dC(l,h){return sd(so.count(Eg(l),l),h,2)} function eC(l,h){return sd(l.getFullYear()%100,h,2)} function fC(l,h){return sd(l.getFullYear()%1E4,h,4)} function gC(l){l=l.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+sd(l/60|0,"0",2)+sd(l%60,"0",2)} function bv(l,h){return sd(l.getUTCDate(),h,2)} function iC(l,h){return sd(l.getUTCHours(),h,2)} function jC(l,h){return sd(l.getUTCHours()%12||12,h,2)} function kC(l,h){return sd(1+Wu.count(Ah(l),l),h,3)} function cv(l,h){return sd(l.getUTCMilliseconds(),h,3)} function hC(l,h){return cv(l,h)+"000"} function lC(l,h){return sd(l.getUTCMonth()+1,h,2)} function mC(l,h){return sd(l.getUTCMinutes(),h,2)} function nC(l,h){return sd(l.getUTCSeconds(),h,2)} function oC(l){l=l.getUTCDay();return l===0?7:l} function pC(l,h){return sd(QC.count(Ah(l),l),h,2)} function qC(l,h){var p=l.getUTCDay();l=p>=4||p===0?vo(l):vo.ceil(l);return sd(vo.count(Ah(l),l)+(Ah(l).getUTCDay()===4),h,2)} function rC(l){return l.getUTCDay()} function sC(l,h){return sd(ro.count(Ah(l),l),h,2)} function tC(l,h){return sd(l.getUTCFullYear()%100,h,2)} function uC(l,h){return sd(l.getUTCFullYear()%1E4,h,4)} function vC(){return"+0000"} function av(){return"%"} function Zu(l){return+l} function $u(l){return Math.floor(+l/1E3)} function RC(l){return new Date(l)} function SC(l){return l instanceof Date?+l:+new Date(+l)} function gv(l,h,p,u,x,z,A,la,oa){function ra(Ma){return(A(Ma)=1?Xk:l<=-1?-Xk:Math.asin(l)} function UC(l){return l.innerRadius} function VC(l){return l.outerRadius} function WC(l){return l.startAngle} function XC(l){return l.endAngle} function YC(l){return l&&l.padAngle} function Yk(l,h,p,u,x,z,A){var la=l-p,oa=h-u;A=(A?z:-z)/Bh(la*la+oa*oa);oa*=A;la*=-A;var ra=l+oa,qa=h+la,pa=p+oa,wa=u+la;p=(ra+pa)/2;u=(qa+wa)/2;h=pa-ra;l=wa-qa;A=h*h+l*l;z=x-z;wa=ra*wa-pa*qa;var Da=(l<0?-1:1)*Bh(ZC(0,z*z*A-wa*wa));ra=(wa*l-h*Da)/A;qa=(-wa*h-l*Da)/A;pa=(wa*l+h*Da)/A;h=(-wa*h+l*Da)/A;l=ra-p;A=qa-u;p=pa-p;u=h-u;l*l+A*A>p*p+u*u&&(ra=pa,qa=h);return{cx:ra,cy:qa,ad:-oa,hd:-la,Sd:ra*(x/z-1),Td:qa*(x/z-1)}} function iv(l){this.Fa=l} function Zk(l){return new iv(l)} function jv(l){return l[0]} function kv(l){return l[1]} function lv(){function l(la){var oa,ra=la.length,qa,pa=!1,wa;x==null&&(A=z(wa=Lk()));for(oa=0;oa<=ra;++oa)!(oal?1:h>=l?0:NaN} function aD(l){return l} function mv(l){this.ye=l} function nv(l,h,p){l.Fa.bezierCurveTo((2*l.Pa+l.Aa)/3,(2*l.Ra+l.Ea)/3,(l.Pa+2*l.Aa)/3,(l.Ra+2*l.Ea)/3,(l.Pa+4*l.Aa+h)/6,(l.Ra+4*l.Ea+p)/6)} function ov(l){this.Fa=l} function pv(l,h,p){l.Fa.bezierCurveTo(l.Aa+l.qg*(l.Ae-l.Pa),l.Ea+l.qg*(l.Be-l.Ra),l.Ae+l.qg*(l.Aa-h),l.Be+l.qg*(l.Ea-p),l.Ae,l.Be)} function qv(l,h){this.Fa=l;this.qg=(1-h)/6} function rv(l,h,p){var u=l.Aa-l.Pa;h-=l.Aa;var x=(l.Ea-l.Ra)/(u||h<0&&-0);l=(p-l.Ea)/(h||u<0&&-0);return((x<0?-1:1)+(l<0?-1:1))*Math.min(Math.abs(x),Math.abs(l),.5*Math.abs((x*h+l*u)/(u+h)))||0} function sv(l,h){var p=l.Aa-l.Pa;return p?(3*(l.Ea-l.Ra)/p-h)/2:h} function wo(l,h,p){var u=l.Pa,x=l.Aa,z=l.Ea,A=(x-u)/3;l.Fa.bezierCurveTo(u+A,l.Ra+A*h,x-A,z-A*p,x,z)} function $k(l){this.Fa=l} function tv(l){this.Fa=new uv(l)} function uv(l){this.Fa=l} function vv(l){this.Fa=l} function wv(l){var h,p=l.length-1,u=Array(p),x=Array(p),z=Array(p);u[0]=0;x[0]=2;z[0]=l[0]+2*l[1];for(h=1;h=0;--h)u[h]=(z[h]-u[h+1])/x[h];x[p-1]=(l[p]+u[p-1])/2;for(h=0;h0)for(var p=Array(x),u=0,x,z;u=0&&(this.Vd.splice(l,1),this.Wi.setAttribute("class",this.Vd.join(" ")))},contains:function(l){return this.Vd.indexOf(l)>=0}};var hu={};vi=null;typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(hu={mouseenter:"mouseover",mouseleave:"mouseout"}));var iu=[null];Ra.prototype=Za.prototype={constructor:Ra,select:function(l){typeof l!=="function"&&(l=ya(l));for(var h=this.mb,p=h.length,u=Array(p),x=0;x

=pa&&(pa=qa+1);!(Pc=eb[pa])&&++pa=0;)if(A=u[x])z&&z!==A.nextSibling&&z.parentNode.insertBefore(A,z),z=A;return this},sort:function(l){function h(pa,wa){return pa&&wa?l(pa.__data__,wa.__data__):!pa-!wa} l||(l=Pa);for(var p=this.mb,u=p.length,x=Array(u),z=0;z1?this.each((h==null?Hb:typeof h==="function"?Jb:Ib)(l,h,p==null?"":p)):$a(this.node(),l)},property:function(l,h){return arguments.length>1?this.each((h==null?Kb:typeof h==="function"?Mb:Lb)(l,h)):this.node()[l]},classed:function(l,h){var p=(l+"").trim().split(/^|\s+/);if(arguments.length<2){for(var u=fb(this.node()),x=-1,z=p.length;++x=240?l-240:l+120,h,p),kb(l,h,p),kb(l<120?l+240:l-120,h,p),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ku=Math.PI/180,nu=180/Math.PI,mu=4/29,xh=6/29,lu=3*xh*xh,iB=xh*xh*xh;ab(Va,function(l,h,p,u){return arguments.length===1?lb(l):new Va(l,h,p,u==null?1:u)},bb(Xa,{brighter:function(l){return new Va(this.l+18*(l==null?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Va(this.l-18*(l==null?1:l),this.a,this.b,this.opacity)},rgb:function(){var l=(this.l+16)/116,h=isNaN(this.a)?l:l+this.a/500,p=isNaN(this.b)?l:l-this.b/200;h=.96422*nb(h);l=1*nb(l);p=.82521*nb(p);return new La(ob(3.1338561*h-1.6168667*l-.4906146*p),ob(-.9787684*h+1.9161415*l+.033454*p),ob(.0719453*h-.2289914*l+1.4052427*p),this.opacity)}}));ab(rb,qb,bb(Xa,{brighter:function(l){return new rb(this.h,this.c,this.l+18*(l==null?1:l),this.opacity)},darker:function(l){return new rb(this.h,this.c,this.l-18*(l==null?1:l),this.opacity)},rgb:function(){return lb(this).rgb()}}));var ou=1.78277*-.29227-.1347134789;ab(sb,db,bb(Xa,{brighter:function(l){l=l==null?Ch:Math.pow(Ch,l);return new sb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=l==null?.7:Math.pow(.7,l);return new sb(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=isNaN(this.h)?0:(this.h+120)*ku,h=+this.l,p=isNaN(this.s)?0:this.s*h*(1-h),u=Math.cos(l);l=Math.sin(l);return new La(255*(h+p*(-.14861*u+1.78277*l)),255*(h+p*(-.29227*u+-.90649*l)),255*(h+1.97294*u*p),this.opacity)}}));var Hk=function p(h){function u(z,A){var la=x((z=cb(z)).r,(A=cb(A)).r),oa=x(z.g,A.g),ra=x(z.b,A.b),qa=Cb(z.opacity,A.opacity);return function(pa){z.r=la(pa);z.g=oa(pa);z.b=ra(pa);z.opacity=qa(pa);return z+""}} var x=Ac(h);u.gamma=p;return u}(1),TC=Gc(function(h){var p=h.length-1;return function(u){var x=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),z=h[x],A=h[x+1];return lc((u-x/p)*p,x>0?h[x-1]:2*z-A,z,A,x2&&x.state<5;x.state=6;x.timer.stop();la&&x.on.call("interrupt",this,this.__data__,x.index,x.group);delete u[A]}z&&delete this.Bd}})};Za.prototype.transition=function(h){var p;if(h instanceof Af){var u=h.Sb;h=h.ze}else u=++zv,(p=Ao).time=xg(),h=h==null?null:h+"";for(var x=this.mb,z=x.length,A=0;A1E-6)if(Math.abs(pa*oa-ra*qa)>1E-6&&z){u-=A;x-=la;var Da=oa*oa+ra*ra;la=Math.sqrt(Da);A=Math.sqrt(wa);wa=z*Math.tan((Bo-Math.acos((Da+wa-(u*u+x*x))/(2*la*A)))/2);A=wa/A;wa/=la;Math.abs(A-1)>1E-6&&(this.Ga+="L"+(h+A*qa)+","+(p+A*pa));this.Ga+="A"+z+","+z+",0,0,"+ +(pa*u> qa*x)+","+(this.Aa=h+wa*oa)+","+(this.Ea=p+wa*ra)}else this.Ga+="L"+(this.Aa=h)+","+(this.Ea=p)},arc:function(h,p,u,x,z,A){h=+h;p=+p;u=+u;var la=u*Math.cos(x),oa=u*Math.sin(x),ra=h+la,qa=p+oa,pa=1^A;x=A?x-z:z-x;if(u<0)throw Error("negative radius: "+u);if(this.Aa===null)this.Ga+="M"+ra+","+qa;else if(Math.abs(this.Aa-ra)>1E-6||Math.abs(this.Ea-qa)>1E-6)this.Ga+="L"+ra+","+qa;u&&(x<0&&(x=x%Co+Co),x>fD?this.Ga+="A"+u+","+u+",0,1,"+pa+","+(h-la)+","+(p-oa)+"A"+u+","+u+",0,1,"+pa+","+(this.Aa=ra)+","+(this.Ea=qa):x>1E-6&&(this.Ga+="A"+u+","+u+",0,"+ +(x>=Bo)+","+pa+","+(this.Aa=h+u*Math.cos(z))+ ","+(this.Ea=p+u*Math.sin(z))))},rect:function(h,p,u,x){this.Ga+="M"+(this.Pa=this.Aa=+h)+","+(this.Ra=this.Ea=+p)+"h"+ +u+"v"+ +x+"h"+-u+"Z"},toString:function(){return this.Ga}};Mk.prototype=Nk.prototype={constructor:Mk,has:function(h){return" "+h in this},get:function(h){return this[" "+h]},set:function(h,p){this[" "+h]=p;return this},remove:function(h){h=" "+h;return h in this&&delete this[h]},clear:function(){for(var h in this)h[0]===" "&&delete this[h]},keys:function(){var h=[],p;for(p in this)p[0]===" "&&h.push(p.slice(1));return h},values:function(){var h=[],p;for(p in this)p[0]===" "&&h.push(this[p]);return h},entries:function(){var h=[],p;for(p in this)p[0]===" "&&h.push({key:p.slice(1),value:this[p]});return h},size:function(){var h=0,p;for(p in this)p[0]===" "&&++h;return h},empty:function(){for(var h in this)if(h[0]===" ")return!1;return!0},each:function(h){for(var p in this)p[0]===" "&&h(this[p],p.slice(1),this)}};var Fg=Nk.prototype;Ok.prototype=function(h,p){var u=new Ok;if(h instanceof Ok)h.each(function(A){u.add(A)});else if(h){var x=-1,z=h.length;if(p==null)for(;++xpa&&(pa=z),Awa&&(wa=A));pah||h>z||x>p||p>A){var la=z-u,oa=this.tb,ra;switch(ra=(p<(x+A)/2)<<1|h<(u+z)/2){case 0:do{var qa=Array(4);qa[ra]=oa;oa=qa}while(la*=2,z=u+la,A=x+la,h>z||p>A);break;case 1:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,A=x+la,u>h||p>A);break;case 2:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,z=u+la,x=A-la,h>z||x>p);break;case 3:do qa= Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,x=A-la,u>h||x>p)}this.tb&&this.tb.length&&(this.tb=oa)}else return this;this.Pa=u;this.Ra=x;this.Aa=z;this.Ea=A;return this};ge.data=function(){var h=[];this.visit(function(p){if(!p.length){do h.push(p.data);while(p=p.next)}});return h};ge.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this.Pa)?void 0:[[this.Pa,this.Ra],[this.Aa,this.Ea]]};ge.find=function(h,p,u){var x=this.Pa,z=this.Ra,A,la,oa,ra,qa=this.Aa,pa=this.Ea,wa=[],Da=this.tb,Ha;Da&&wa.push(new fe(Da,x,z,qa,pa));u==null?u=Infinity:(x=h-u,z=p-u,qa=h+u,pa=p+u,u*=u);for(;Ha=wa.pop();)if(!(!(Da=Ha.node)||(A=Ha.x0)>qa||(la=Ha.y0)>pa||(oa=Ha.x1)=jc)<<1|h>=Ha)Ha=wa[wa.length-1],wa[wa.length-1]=wa[wa.length- 1-Da],wa[wa.length-1-Da]=Ha}else if(Ha=h-+this.Bb.call(null,Da.data),jc=p-+this.Fb.call(null,Da.data),Ha=Ha*Ha+jc*jc,Ha=(pa=(z+la)/2))?z=pa:la=pa;(Ha=qa>=(wa=(A+oa)/2))?A=wa:oa=wa;if(!(p=u,u=u[jc=Ha<<1|Da]))return this;if(!u.length)break;if(p[jc+1&3]||p[jc+2&3]||p[jc+3&3]){var eb=p;var Pc=jc}}for(;u.data!==h;)if(!(x=u,u=u.next))return this;(h=u.next)&&delete u.next;if(x)return h?x.next=h:delete x.next,this;if(!p)return this.tb=h,this;h?p[jc]=h:delete p[jc];(u=p[0]||p[1]||p[2]||p[3])&&u===(p[3]||p[2]||p[1]||p[0])&&!u.length&&(eb?eb[Pc]=u:this.tb=u);return this};ge.removeAll=function(h){for(var p=0,u=h.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Qk.prototype=io.prototype;io.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};var Au,Bu={"%":function(h,p){return(h*100).toFixed(p)},b:function(h){return Math.round(h).toString(2)},c:function(h){return h+""},d:function(h){return Math.round(h).toString(10)},e:function(h,p){return h.toExponential(p)},f:function(h,p){return h.toFixed(p)},g:function(h,p){return h.toPrecision(p)},o:function(h){return Math.round(h).toString(8)},p:function(h,p){return xu(h*100,p)},r:xu,s:function(h,p){var u=Pk(h,p);if(!u)return h+"";var x=u[0];u=u[1];u=u-(Au=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var z=x.length;return u===z?x:u>z?x+Array(u-z+1).join("0"):u>0?x.slice(0,u)+"."+x.slice(u):"0."+Array(1-u).join("0")+Pk(h,Math.max(0,p+u-1))[0]},X:function(h){return Math.round(h).toString(16).toUpperCase()},x:function(h){return Math.round(h).toString(16)}},zu="y z a f p n \u00b5 m k M G T P E Z Y".split(" "),cl;(function(h){cl=xB(h);th=cl.format;WA=cl.formatPrefix;return cl})({decimal:".",thousands:",",grouping:[3],currency:["$",""]});Ge.prototype={constructor:Ge,reset:function(){this.s=this.t=0},add:function(h){Cu(dl,h,this.t);Cu(this,dl.s,this.s);this.s?this.t+=dl.t:this.s=dl.t},valueOf:function(){return this.s}};var dl=new Ge,Ld=Math.PI,Ae=Ld/2,Av=Ld/4,iD=Ld*2,Do=Ld/180,Yf=Math.abs,Eo=Math.atan,Iu=Math.atan2,Be=Math.cos,ae=Math.sin,Sk=Math.sqrt;new Ge;new Ge;new Ge;var Fo=new Ge;(function(h,p,u,x){return function(z){function A(ad,Qc){h(ad,Qc)&&z.point(ad,Qc)} function la(ad,Qc){Da.point(ad,Qc)} function oa(){Oc.point=la;Da.lineStart()} function ra(){Oc.point=A;Da.lineEnd()} function qa(ad,Qc){tc.push([ad,Qc]);jc.point(ad,Qc)} function pa(){jc.lineStart();tc=[]} function wa(){qa(tc[0][0],tc[0][1]);jc.lineEnd();var ad=jc.Il(),Qc=Ha.result(),Ma=Qc.length,Rc;tc.pop();Pc.push(tc);tc=null;if(Ma)if(ad&1){if(Ma=Qc[0],(Qc=Ma.length-1)>0){eb||(z.polygonStart(),eb=!0);z.lineStart();for(ad=0;ad1&&ad&2&&Qc.push(Qc.pop().concat(Qc.shift())),Tc.push(Qc.filter(BB))} var Da=p(z),Ha=zB(),jc=p(Ha),eb=!1,Pc,Tc,tc,Oc={point:A,lineStart:oa,lineEnd:ra,polygonStart:function(){Oc.point=qa;Oc.lineStart=pa;Oc.lineEnd=wa;Tc=[];Pc=[]},polygonEnd:function(){Oc.point=A;Oc.lineStart=oa;Oc.lineEnd=ra;var ad=Tc,Qc=ad.length;var Ma=-1;for(var Rc=0,Ia,Ta;++Ma=0;)for(Ta=ad[Qc],Ma=Ta.length;--Ma>=0;)Ia[--Rc]=Ta[Ma];Tc=Ia;ad=Pc;Qc=x[0];Rc=x[1];var Ga=ae(Rc);Ma=[ae(Qc),-Be(Qc),0];Ta=Ia=0;Fo.reset();Ga===1?Rc=Ae+1E-6:Ga===-1&&(Rc=-Ae-1E-6);Ga=0;for(var Na=ad.length;Ga=0?1:-1,Io=Ho*Eh,fl=Io>Ld;Zf*=Cv;Fo.add(Iu(Zf*Ho*ae(Io),Bv*Yi+Zf*Be(Io)));Ia+=fl?Eh+Ho*iD:Eh;fl^pd>=Qc^Go>=Qc&&(Dd=Eu(Du(Dd),Du(el)),Fu(Dd),pd=Eu(Ma,Dd),Fu(pd),pd=(fl^Eh>=0?-1:1)*Rk(pd[2]),Rc>pd||Rc===pd&&(Dd[0]||Dd[1]))&&(Ta+=fl^Eh>=0?1:-1)}}ad=(Ia<-1E-6||Ia<1E-6&&Fo<-1E-6)^Ta&1;Tc.length?(eb||(z.polygonStart(),eb=!0),AB(Tc,CB,ad,u,z)):ad&&(eb||(z.polygonStart(),eb=!0),z.lineStart(),u(null,null,1,z),z.lineEnd());eb&&(z.polygonEnd(),eb=!1);Tc=Pc=null},sphere:function(){z.polygonStart();z.lineStart();u(null,null,1,z);z.lineEnd();z.polygonEnd()}};return Oc}})(function(){return!0},function(h){var p=NaN,u=NaN,x=NaN,z;return{lineStart:function(){h.lineStart();z=1},point:function(A,la){var oa=A>0?Ld:-Ld,ra=Yf(A-p);if(Yf(ra-Ld)<1E-6)h.point(p,u=(u+la)/2>0?Ae:-Ae),h.point(x,u),h.lineEnd(),h.lineStart(),h.point(oa,u),h.point(A,u),z=0;else if(x!==oa&&ra>=Ld){Yf(p-x)<1E-6&&(p-=x*1E-6);Yf(A-oa)<1E-6&&(A-=oa*1E-6);ra=p;var qa=u,pa=A,wa,Da,Ha=ae(ra-pa);u=Yf(Ha)>1E-6?Eo((ae(qa)*(Da=Be(la))*ae(pa)-ae(la)*(wa=Be(qa))*ae(ra))/(wa*Da*Ha)):(qa+la)/2;h.point(x,u);h.lineEnd();h.lineStart();h.point(oa,u);z=0}h.point(p=A,u=la);x=oa},lineEnd:function(){h.lineEnd();p=u=NaN},Il:function(){return 2-z}}},function(h,p,u,x){h==null?(u*=Ae,x.point(-Ld,u),x.point(0,u),x.point(Ld,u),x.point(Ld,0),x.point(Ld,-u),x.point(0,-u),x.point(-Ld,-u),x.point(-Ld,0),x.point(-Ld,u)):Yf(h[0]-p[0])>1E-6?(h=h[0]

1?0:h<-1?Ld:Math.acos(h))&&h/ae(h)}).invert=Qi(function(h){return h});Sk(3);Qi(Eo);Qi(Rk);Qi(function(h){return 2*Eo(h)});Ri.prototype=Ju.prototype={constructor:Ri,count:function(){return this.eachAfter(DB)},each:function(h){var p,u=[this],x;do{var z=u.reverse();for(u=[];p=z.pop();)if(h(p),p=p.children){var A=0;for(x=p.length;A=0;--x)u.push(p[x]);return this},sum:function(h){return this.eachAfter(function(p){for(var u=+h(p.data)||0,x=p.children,z=x&&x.length;--z>=0;)u+=x[z].value;p.value=u})},sort:function(h){return this.eachBefore(function(p){p.children&&p.children.sort(h)})},path:function(h){var p=this;var u=p;var x=h;if(u!==x){var z=u.ancestors(),A=x.ancestors(),la=null;u=z.pop();for(x=A.pop();u===x;)la=u,u=z.pop(),x=A.pop();u=la}for(x=[p];p!==u;)p=p.parent,x.push(p);for(p=x.length;h!==u;)x.splice(p,0,h),h=h.parent;return x},ancestors:function(){for(var h=this,p=[h];h=h.parent;)p.push(h);return p},descendants:function(){var h=[];this.each(function(p){h.push(p)});return h},leaves:function(){var h=[];this.eachBefore(function(p){p.children||h.push(p)});return h},links:function(){var h=this,p=[];h.each(function(u){u!==h&&p.push({source:u.parent,target:u})});return p},copy:function(){return Ju(this).eachBefore(GB)}};(function(h,p){this.Ga=h;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.td=p}).prototype=Object.create(Ri.prototype);var Dv=Array.prototype,Ou=Dv.map,Uk=Dv.slice,Ku={name:"implicit"},Nu=[0,1],po=new Date,qo=new Date,Jo=Rd(function(){},function(h,p){h.setTime(+h+p)},function(h,p){return p-h});Jo.every=function(h){h=Math.floor(h);return isFinite(h)&&h>0?h>1?Rd(function(p){p.setTime(Math.floor(p/h)*h)},function(p,u){p.setTime(+p+u*h)},function(p,u){return(u-p)/h}):Jo:null};var jD=Rd(function(h){h.setTime(Math.floor(h/1E3)*1E3)},function(h,p){h.setTime(+h+p*1E3)},function(h,p){return(p-h)/1E3},function(h){return h.getUTCSeconds()}),kD=Rd(function(h){h.setTime(Math.floor(h/6E4)*6E4)},function(h,p){h.setTime(+h+p*6E4)},function(h,p){return(p-h)/6E4},function(h){return h.getMinutes()}),lD=Rd(function(h){var p=h.getTimezoneOffset()*6E4%36E5;p<0&&(p+=36E5);h.setTime(Math.floor((+h-p)/36E5)*36E5+p)},function(h,p){h.setTime(+h+p*36E5)},function(h,p){return(p-h)/36E5},function(h){return h.getHours()}),to=Rd(function(h){h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p)},function(h,p){return(p-h-(p.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/864E5},function(h){return h.getDate()-1}),fv=Cg(0),so=Cg(1);Cg(2);Cg(3);var uo=Cg(4);Cg(5);Cg(6);var mD=Rd(function(h){h.setDate(1);h.setHours(0,0,0,0)},function(h,p){h.setMonth(h.getMonth()+p)},function(h,p){return p.getMonth()-h.getMonth()+(p.getFullYear()-h.getFullYear())*12},function(h){return h.getMonth()}),Eg=Rd(function(h){h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,p){h.setFullYear(h.getFullYear()+p)},function(h,p){return p.getFullYear()-h.getFullYear()},function(h){return h.getFullYear()});Eg.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Rd(function(p){p.setFullYear(Math.floor(p.getFullYear()/h)*h);p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*h)}):null};Rd(function(h){h.setUTCSeconds(0,0)},function(h,p){h.setTime(+h+p*6E4)},function(h,p){return(p-h)/6E4},function(h){return h.getUTCMinutes()});Rd(function(h){h.setUTCMinutes(0,0,0)},function(h,p){h.setTime(+h+p*36E5)},function(h,p){return(p-h)/36E5},function(h){return h.getUTCHours()});var Wu=Rd(function(h){h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCDate(h.getUTCDate()+p)},function(h,p){return(p-h)/864E5},function(h){return h.getUTCDate()-1}),QC=Dg(0),ro=Dg(1);Dg(2);Dg(3);var vo=Dg(4);Dg(5);Dg(6);Rd(function(h){h.setUTCDate(1);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCMonth(h.getUTCMonth()+p)},function(h,p){return p.getUTCMonth()-h.getUTCMonth()+(p.getUTCFullYear()-h.getUTCFullYear())*12},function(h){return h.getUTCMonth()});var Ah=Rd(function(h){h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCFullYear(h.getUTCFullYear()+p)},function(h,p){return p.getUTCFullYear()-h.getUTCFullYear()},function(h){return h.getUTCFullYear()});Ah.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Rd(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/h)*h);p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*h)}):null};var Vu={"-":"",_:" ",0:"0"},Wd=/^\s*\d+/,PC=/^%/,OC=/[\\^$*+?|[\]().{}]/g,Zi;(function(h){Zi=SB(h);Sq=Zi.format;Rq=Zi.utcFormat;rq=Zi.utcParse;return Zi})({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||Rq("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||rq("%Y-%m-%dT%H:%M:%S.%LZ");bd("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");bd("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");bd("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");bd("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");bd("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");bd("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");bd("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");bd("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");bd("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");bd("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");bd("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");bd("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var nD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bd);vd(nD);var oD=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bd);vd(oD);var pD=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bd);vd(pD);var qD=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bd);vd(qD);var rD=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bd);vd(rD);var sD=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bd);vd(sD);var tD=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bd);vd(tD);var uD=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bd);vd(uD);var vD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bd);vd(vD);var wD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bd);vd(wD);var xD=Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bd);vd(xD);var yD=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bd);vd(yD);var zD=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bd);vd(zD);var AD=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bd);vd(AD);var BD=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bd);vd(BD);var CD=Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bd);vd(CD);var DD=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bd);vd(DD);var ED=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bd);vd(ED);var FD=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bd);vd(FD);var GD=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bd);vd(GD);var HD=Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bd);vd(HD);var ID=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bd);vd(ID);var JD=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bd);vd(JD);var KD=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bd);vd(KD);var LD=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bd);vd(LD);var MD=Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bd);vd(MD);var ND=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bd);vd(ND);zo(db(300,.5,0),db(-240,.5,1));zo(db(-100,.75,.35),db(80,1.5,.8));zo(db(260,.75,.35),db(80,1.5,.8));db();cb();Wk(bd("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Wk(bd("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));Wk(bd("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));Wk(bd("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var Ev=Math.abs,be=Math.atan2,Gg=Math.cos,ZC=Math.max,Ko=Math.min,$e=Math.sin,Bh=Math.sqrt,$i=Math.PI,Xk=$i/2,gl=2*$i;iv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Na=0},lineEnd:function(){(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(h,p){h=+h;p=+p;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(h,p):this.Fa.moveTo(h,p);break;case 1:this.Na=2;default:this.Fa.lineTo(h,p)}}};(function(h){function p(u){return new mv(h(u))} p.ye=h;return p})(Zk);mv.prototype={areaStart:function(){this.ye.areaStart()},areaEnd:function(){this.ye.areaEnd()},lineStart:function(){this.ye.lineStart()},lineEnd:function(){this.ye.lineEnd()},point:function(h,p){this.ye.point(p*Math.sin(h),p*-Math.cos(h))}};ov.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Pa=this.Aa=this.Ra=this.Ea=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 3:nv(this,this.Aa,this.Ea);case 2:this.Fa.lineTo(this.Aa,this.Ea)}(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(h,p){h=+h;p=+p;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(h,p):this.Fa.moveTo(h,p);break;case 1:this.Na=2;break;case 2:this.Na=3,this.Fa.lineTo((5*this.Pa+this.Aa)/6,(5*this.Ra+this.Ea)/6);default:nv(this,h,p)}this.Pa=this.Aa;this.Aa=h;this.Ra=this.Ea;this.Ea=p}};qv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Pa=this.Aa=this.Ae=this.Ra=this.Ea=this.Be=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 2:this.Fa.lineTo(this.Ae,this.Be);break;case 3:pv(this,this.Aa,this.Ea)}(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(h,p){h=+h;p=+p;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(h,p):this.Fa.moveTo(h,p);break;case 1:this.Na=2;this.Aa=h;this.Ea=p;break;case 2:this.Na=3;default:pv(this,h,p)}this.Pa=this.Aa;this.Aa=this.Ae;this.Ae=h;this.Ra=this.Ea;this.Ea=this.Be;this.Be=p}};var OD=function u(p){function x(z){return new qv(z,p)} x.tension=function(z){return u(+z)};return x}(0);$k.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Pa=this.Aa=this.Ra=this.Ea=this.tg=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 2:this.Fa.lineTo(this.Aa,this.Ea);break;case 3:wo(this,this.tg,sv(this,this.tg))}(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(p,u){var x=NaN;p=+p;u=+u;if(p!==this.Aa||u!==this.Ea){switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Na=2;break;case 2:this.Na=3;wo(this,sv(this,x=rv(this,p,u)),x);break;default:wo(this,this.tg,x=rv(this,p,u))}this.Pa=this.Aa;this.Aa=p;this.Ra=this.Ea;this.Ea=u;this.tg=x}}};(tv.prototype=Object.create($k.prototype)).point=function(p,u){$k.prototype.point.call(this,u,p)};uv.prototype={moveTo:function(p,u){this.Fa.moveTo(u,p)},closePath:function(){this.Fa.closePath()},lineTo:function(p,u){this.Fa.lineTo(u,p)},bezierCurveTo:function(p,u,x,z,A,la){this.Fa.bezierCurveTo(u,p,z,x,la,A)}};vv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Bb=[];this.Fb=[]},lineEnd:function(){var p=this.Bb,u=this.Fb,x=p.length;if(x)if(this.Ha?this.Fa.lineTo(p[0],u[0]):this.Fa.moveTo(p[0],u[0]),x===2)this.Fa.lineTo(p[1],u[1]);else for(var z=wv(p),A=wv(u),la=0,oa=1;oa=0&&(this.Wd=1-this.Wd,this.Ha=1-this.Ha)},point:function(p,u){p=+p;u=+u;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Na=2;default:if(this.Wd<=0)this.Fa.lineTo(this.Bb,u),this.Fa.lineTo(p,u);else{var x=this.Bb*(1-this.Wd)+p*this.Wd;this.Fa.lineTo(x,this.Fb);this.Fa.lineTo(x,u)}}this.Bb=p;this.Fb=u}};Vi.prototype={constructor:Vi,scale:function(p){return p===1?this:new Vi(this.k*p,this.x,this.y)},translate:function(p,u){return p===0&u===0?this:new Vi(this.k,this.x+this.k*p,this.y+this.k*u)},apply:function(p){return[p[0]*this.k+this.x,p[1]*this.k+this.y]},applyX:function(p){return p*this.k+this.x},applyY:function(p){return p*this.k+this.y},invert:function(p){return[(p[0]-this.x)/this.k,(p[1]-this.y)/this.k]},invertX:function(p){return(p-this.x)/this.k},invertY:function(p){return(p-this.y)/this.k},rescaleX:function(p){return p.copy().domain(p.range().map(this.invertX,this).map(p.invert,p))},rescaleY:function(p){return p.copy().domain(p.range().map(this.invertY,this).map(p.invert,p))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Vi(1,0,0);gi=b;Uv=function(p,u){return u

p?1:u>=p?0:NaN};Kh=function(p,u){var x=p.length,z=-1,A,la,oa;if(u==null)for(;++z=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=A;++zla&&(la=A)}else for(;++z=A)for(la=A;++zla&&(la=A);return la};fr=function(p,u){var x=p.length,z=-1,A,la;if(u==null)for(;++z=A)for(la=A;++zA&&(la=A)}else for(;++z=A)for(la=A;++zA&&(la=A);return la};zz=function(p,u){var x=p.length,z=-1,A,la=0;if(u==null)for(;++zHa;qa||(qa=pa=Lk());if(Da1E-12)if(eb>gl-1E-12)qa.moveTo(Da*Gg(Ha),Da*$e(Ha)),qa.arc(0,0,Da,Ha,jc,!Pc),wa>1E-12&&(qa.moveTo(wa*Gg(jc),wa*$e(jc)),qa.arc(0,0,wa,jc,Ha,Pc));else{var tc=Ha,Oc=jc;Tc=Ha;var ad=jc,Qc=eb,Ma=eb,Rc=ra.apply(this,arguments)/2,Ia=Rc>1E-12&&(A?+A.apply(this,arguments):Bh(wa* wa+Da*Da)),Ta=Ko(Ev(Da-wa)/2,+z.apply(this,arguments)),Ga=Ta,Na=Ta;if(Ia>1E-12){var Zc=hv(Ia/wa*$e(Rc));Rc=hv(Ia/Da*$e(Rc));(Qc-=Zc*2)>1E-12?(Zc*=Pc?1:-1,Tc+=Zc,ad-=Zc):(Qc=0,Tc=ad=(Ha+jc)/2);(Ma-=Rc*2)>1E-12?(Rc*=Pc?1:-1,tc+=Rc,Oc-=Rc):(Ma=0,tc=Oc=(Ha+jc)/2)}Ha=Da*Gg(tc);jc=Da*$e(tc);Zc=wa*Gg(ad);Rc=wa*$e(ad);if(Ta>1E-12){var yd=Da*Gg(Oc),Dd=Da*$e(Oc),pd=wa*Gg(Tc),te=wa*$e(Tc);if(eb<$i){Qc>1E-12?(Ga=pd-Ha,Na=te-jc,eb=Zc-yd,Ia=Rc-Dd,eb=(eb*(jc-Dd)-Ia*(Ha-yd))/(Ia*Ga-eb*Na),Ga=[Ha+eb*Ga,jc+eb*Na]):Ga=[Zc,Rc];Na=Ha-Ga[0];eb=jc-Ga[1];Ia=yd-Ga[0];var Zf=Dd-Ga[1];Na=(Na*Ia+eb*Zf)/(Bh(Na*Na+eb*eb)*Bh(Ia*Ia+Zf*Zf));Na=1/$e((Na>1?0:Na<-1?$i:Math.acos(Na))/2);eb=Bh(Ga[0]*Ga[0]+Ga[1]*Ga[1]);Ga=Ko(Ta,(wa-eb)/(Na-1));Na=Ko(Ta,(Da-eb)/(Na+1))}}Ma>1E-12?Na>1E-12?(tc=Yk(pd,te,Ha,jc,Da,Na,Pc),Oc=Yk(yd,Dd,Zc,Rc,Da,Na,Pc),qa.moveTo(tc.cx+tc.ad,tc.cy+tc.hd),Na1E-12&&Qc>1E-12?Ga>1E-12?(tc=Yk(Zc,Rc,yd,Dd,wa,-Ga,Pc),Oc=Yk(Ha,jc,pd,te,wa,-Ga,Pc),qa.lineTo(tc.cx+tc.ad,tc.cy+tc.hd),Ga=ad;--Ha)pa.point(tc[Ha],Oc[Ha]);pa.lineEnd();pa.areaEnd()}Pc&&(tc[Da]=+x(eb,Da,wa),Oc[Da]=+A(eb,Da,wa),pa.point(z?+z(eb,Da,wa):tc[Da],la?+la(eb,Da,wa):Oc[Da]))}if(Tc)return pa=null,Tc+""||null} function u(){return lv().defined(oa).curve(qa).context(ra)} var x=jv,z=null,A=td(0),la=kv,oa=td(!0),ra=null,qa=Zk,pa=null;p.x=function(wa){return arguments.length?(x=typeof wa==="function"?wa:td(+wa),z=null,p):x};p.x0=function(wa){return arguments.length?(x=typeof wa==="function"?wa:td(+wa),p):x};p.x1=function(wa){return arguments.length?(z=wa==null?null:typeof wa==="function"?wa:td(+wa),p):z};p.y=function(wa){return arguments.length?(A=typeof wa==="function"?wa:td(+wa),la=null,p):A};p.y0=function(wa){return arguments.length?(A=typeof wa==="function"?wa:td(+wa),p):A};p.y1=function(wa){return arguments.length?(la=wa==null?null:typeof wa==="function"?wa:td(+wa),p):la};p.lineX0=p.lineY0=function(){return u().x(x).y(A)};p.lineY1=function(){return u().x(x).y(la)};p.lineX1=function(){return u().x(z).y(A)};p.defined=function(wa){return arguments.length?(oa=typeof wa==="function"?wa:td(!!wa),p):oa};p.curve=function(wa){return arguments.length?(qa=wa,ra!=null&&(pa=qa(ra)),p):qa};p.context=function(wa){return arguments.length?(wa==null?ra=pa=null:pa=qa(ra=wa),p):ra};return p};ex=lv;gu=function(){function p(ra){var qa,pa=ra.length;var wa=0;var Da=Array(pa),Ha=Array(pa),jc=+A.apply(this,arguments);var eb=Math.min(gl,Math.max(-gl,la.apply(this,arguments)-jc));var Pc=Math.min(Math.abs(eb)/pa,oa.apply(this,arguments)),Tc=Pc*(eb<0?-1:1),tc;for(qa=0;qa0&&(wa+=tc);x!=null?Da.sort(function(ad,Qc){return x(Ha[ad],Ha[Qc])}):z!=null&&Da.sort(function(ad,Qc){return z(ra[ad],ra[Qc])});qa=0;for(eb=wa?(eb-pa*Tc)/wa:0;qa0?tc*eb:0)+Tc;Ha[wa]={data:ra[wa],index:qa,value:tc,startAngle:jc,endAngle:Oc,padAngle:Pc}}return Ha} var u=aD,x=$C,z=null,A=td(0),la=td(gl),oa=td(0);p.value=function(ra){return arguments.length?(u=typeof ra==="function"?ra:td(+ra),p):u};p.sortValues=function(ra){return arguments.length?(x=ra,z=null,p):x};p.sort=function(ra){return arguments.length?(z=ra,x=null,p):z};p.startAngle=function(ra){return arguments.length?(A=typeof ra==="function"?ra:td(+ra),p):A};p.endAngle=function(ra){return arguments.length?(la=typeof ra==="function"?ra:td(+ra),p):la};p.padAngle=function(ra){return arguments.length?(oa=typeof ra==="function"?ra:td(+ra),p):oa};return p};ox=function(p){return new ov(p)};px=OD;nx=Zk;ux=function(p){return new $k(p)};vx=function(p){return new tv(p)};qx=function(p){return new vv(p)};rx=function(p){return new al(p,.5)};tx=function(p){return new al(p,1)};sx=function(p){return new al(p,0)};se.svg=se.svg;se.xhtml=se.xhtml;se.xlink=se.xlink;se.xml=se.xml;se.xmlns=se.xmlns})();function XA(){} XA.prototype.v=function(a){return function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("viewBox","0 0 "+a.width+" "+a.height);b.setAttribute("class","aplos-renderer-key");b.style.width=a.width+"px";b.style.height=a.height+"px";var c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("cx",a.width/2);c.setAttribute("cy",a.height/2);c.setAttribute("r",a.width/2);c.setAttribute("fill",this.color);b.appendChild(c);return b}};function YA(a){this.v=a} function PD(a,b){return QD(JSON.parse(a.v.getAttribute("data-primary-activity")||"[]"),b)} function RD(a,b){return QD(JSON.parse(a.v.getAttribute("data-secondary-activity")||"[]"),b)} function SD(a){var b=b===void 0?new Date:b;a.v.textContent="";var c=new sy(a.v);c.Xc({top:60,left:0,right:0});c.ub().Pd(!0);c.xh({type:"linear",ticks:{type:"default",numTicks:3,integerOnly:!0,format:function(e){return e||""}},rendering:{type:"inside_gridlines"}});c.nj({type:"ordinal",ticks:{type:"default",format:function(e){return(new Date(e)).toLocaleDateString(void 0,{month:"short"})}}});c.addBehavior(TD({Ej:"{{monthYear}}",body:"

",Pl:{monthYear:function(){return(new Date(this.datum.month)).toLocaleDateString(void 0,{month:"long",year:"numeric"})}}}));c.addBehavior((new KA(!0)).Vj(200));c.addBehavior((new GA).position(16).Yi(!1).Xg("series_desc").hf(new XA));c.addBehavior(new yy);c.draw([{name:"primary",displayName:a.v.getAttribute("data-primary-label")||"",data:PD(a,b),domain:"month",measure:"count",color:a.v.getAttribute("data-primary-color")},{name:"secondary",displayName:a.v.getAttribute("data-secondary-label")||"",data:RD(a,b),domain:"month",measure:"count",color:"#bdbdbd"}])} function QD(a,b){b=b===void 0?new Date:b;for(var c=[],e=-11;e<=0;e++)c.push(new Date(b.getFullYear(),b.getMonth()+e));var f=new Map;a=Mc(a);for(b=a.next();!b.done;b=a.next()){var k=Mc(b.value);b=k.next().value;e=k.next().value;k=k.next().value;f.set(b+"-"+e,k||0)}return c.map(function(n){return{month:n.getTime(),count:f.get(n.getFullYear()+"-"+(n.getMonth()+1))||0}})} function TD(a){return lA(a.Ej===void 0?"":a.Ej,a.body===void 0?"":a.body,a.bm===void 0?"":a.bm,a.Pl).cj()} Od("hcfe.forum.ActivityChart.setUpAll",function(){for(var a=Mc((window.sc_scope||document).querySelectorAll("[data-activity-chart]")),b=a.next();!b.done;b=a.next())SD(new YA(b.value))});}).call(this);
false