false
Search
Clear search
Close search
Main menu
14062832320074863337
true
Search Help Center
true
true
true
true
true
102095
");return(new DOMParser).parseFromString(dh(a),"text/html").body.children[0]} function $m(a,b){if(!a)return"";var c=document.createElement("div").style;cn(a).forEach(function(e){var f=xf&&e in Xm?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=Sm(a,e),e=rm(f,e,b),e!=null&&Tm(c,f,e))});return c.cssText||""} function dn(a){var b=Array.from(Km(zm,a,"getElementsByTagName",["STYLE"])),c=qf(b,function(n){return cf(Om(n).cssRules)});c=Zm(c);for(var e=[],f=0;f=0)){var f=Sm(b,e);Tm(a.style,e,f)}})} function cn(a){Ed(a)?a=cf(a):(a=aj(a),Ve(a,"cssText"));return a} ;var fn=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,gn=0;function hn(){this.O=[];this.N=[];this.v="data-elementweakmap-index-"+gn++} hn.prototype.set=function(a,b){Km(vm,a,"hasAttribute",[this.v])?(a=parseInt(Km(wm,a,"getAttribute",[this.v])||null,10),this.N[a]=b):(b=this.N.push(b)-1,Mm(a,this.v,b.toString()),this.O.push(a));return this};hn.prototype.get=function(a){if(Km(vm,a,"hasAttribute",[this.v]))return a=parseInt(Km(wm,a,"getAttribute",[this.v])||null,10),this.N[a]};hn.prototype.clear=function(){this.O.forEach(function(a){Km(ym,a,"removeAttribute",[this.v])},this);this.O=[];this.N=[]};function jn(){this.O=document.implementation.createHTMLDocument("")} jn.prototype.ma=function(a){var b=this.O.createElement("span");this.N&&this.ka=="*"&&(b.id=this.N);this.ta&&(a=bn("
"+a+"
"),dn(a),a=a.innerHTML);a=bh(a);var c=document.createElement("template");if("content"in c)di(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;di(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=fn?new WeakMap:new hn;e=a.nextNode();){a:{var f=e;switch(Qm(f)){case 3:f=kn(this,f);break a;case 1:if(Pm(f).toUpperCase()=="TEMPLATE")f=null;else{var h=Pm(f).toUpperCase();if(h in this.na||Um(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&&Mm(n,"data-sanitizer-original-tag",h.toLowerCase());h=n}if(n=h){var r=Lm(f);if(r!=null)for(var t=0;h=r[t];t++)if(h.specified){var x=f,A=h;var la=A.name;if(la.lastIndexOf("data-sanitizer-",0)==0)la=null;else{var ma=Pm(x);A=A.value;var ra={tagName:Wd(ma).toLowerCase(),attributeName:Wd(la).toLowerCase()},ta={wh:void 0};ra.attributeName=="style"&&(ta.wh=Nm(x));x=ln(ma,la);x in this.v?la=(0,this.v[x])(A,ra,ta):(la=ln(null,la),la=la in this.v?(0,this.v[la])(A,ra,ta):null)}la!==null&&Mm(n,h.name,la)}f=n}else f=null}break a;default:f=null}}if(f){if(Qm(f)==1&&c.set(e,f),e=Rm(e),h=!1,e)n=Qm(e),r=Pm(e).toLowerCase(),t=Rm(e),n!=11||t?r=="body"&&t&&(n=Rm(t))&&!Rm(n)&&(h=!0):h=!0,n=null,h||!e?n=b:Qm(e)==1&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else Qj(e)}c.clear&& c.clear();return b};var mn={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 nn={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 on={"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 pn(a){this.O=document.implementation.createHTMLDocument("");a=a||new qn;rn(a);this.v=dj(a.v);this.na=dj(a.Aa);this.ha=dj(a.Ha);this.Aa=a.ta;a.ka.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new Sd('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new Sd('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=sn},this);a.Ka.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||on[b])throw new Sd("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} Qd(pn,jn);function tn(a){return function(b,c){b=Wd(b);return(c=a(b,c))&&oh(c)!=lh.toString()?oh(c):null}} function qn(){this.v={};Qe([fm,gm],function(a){aj(a).forEach(function(b){this.v[b]=sn},this)},this);this.N={};this.ka=[];this.Ka=[];this.Aa=dj(mn);this.Ha=dj(nn);this.ta=!1;this.La=un;this.ma=this.ha=this.Oa=this.O=dm;this.ya=null;this.na=this.oa=!1} function vn(a,b){return function(c,e,f,h){c=a(c,e,f,h);return c==null?null:b(c,e,f,h)}} function wn(a,b,c,e){a[c]&&!b[c]&&(a[c]=vn(a[c],e))} function rn(a){if(a.na)throw Error("HtmlSanitizer.Builder.build() can only be used once.");wn(a.v,a.N,"* USEMAP",xn);var b=tn(a.La);["* ACTION","* CITE","* HREF"].forEach(function(e){wn(this.v,this.N,e,b)},a);var c=tn(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){wn(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){wn(this.v,this.N,e,Nd(yn,this.Oa))},a);wn(a.v,a.N,"A TARGET",Nd(zn,["_blank","_self"]));wn(a.v,a.N,"* CLASS",Nd(An,a.ha));wn(a.v,a.N,"* ID",Nd(Bn,a.ha));wn(a.v,a.N,"* STYLE",Nd(a.ma,c));a.na=!0} function un(a){return sh(a)} function ln(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function sn(a){return Wd(a)} function zn(a,b){b=Wd(b);return Pe(a,b.toLowerCase())>=0?b:null} function xn(a){return(a=Wd(a))&&a.charAt(0)=="#"?a:null} function yn(a,b,c){b=Wd(b);return a(b,c)} function An(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("/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=Ln(a);b&&(a=a.querySelector(b).parentNode);return a} function Kn(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?Mn(e,f,b):f.childNodes.length&&c.push(f)})} function Mn(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 Gn(a,b,c){var e=Rn(a);b.forEach(function(f){var h=c[f];typeof h==="number"||Fd(h)||typeof h==="boolean"?h=h.toString():(h instanceof Node?h=h.outerHTML:h instanceof ah?h=dh(h).toString():h=hi(Rn(h)),h=h.replace("$","$$$$"));f=String("{{"+f+"}}").replace(/([-()\[\]{}+?*.$\^|,:#1&&(h=b.datum[f.substr(6)]);if(typeof h==="function"){var n=f.lastIndexOf("."),r=b;n>0&&(r=Dd(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 En(a){a=Rn(a);if(!a||!a.trim().length)return[];for(var b,c={};b=Qn.exec(a);)c[b[1]]=!0;return aj(c)} Od("aplos.util.SimpleTemplate.extractTemplateVariables",En);Od("aplos.util.SimpleTemplate.setSanitizerFunction",function(a){Ln=a});Od("aplos.util.SimpleTemplate.setSanitizer",function(a){Ln=a.ek.bind(a)});function Ln(a){return Sn.ek(a)} var Tn=new qn;Tn.ma=function(a,b,c,e){if(!e.wh)return null;b=$m(e.wh,function(f,h){c.Il=h;f=a(f,c);var n;f==null?n=null:n=new kh(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 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))};fo.prototype.nb=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};v.deselectAll=function(){!this.N&&this.Jd()&&(this.v.clear(),io(this))};v.Xg=function(a,b){this.Wa.on("selectionChange."+a,b)};function io(a){a.Wa.nb("selectionChange",a,a)} v.Cn=function(){return this.N};v.lock=function(){this.N||(this.N=!0,jo(this))};v.unlock=function(){this.N&&(this.N=!1,jo(this))};v.Qn=function(a,b){this.Wa.on("selectionLockChange."+a,b)};function jo(a){a.Wa.nb("selectionLockChange",a,a)} ho.prototype.onSelectionLockChange=ho.prototype.Qn;ho.prototype.unlock=ho.prototype.unlock;ho.prototype.lock=ho.prototype.lock;ho.prototype.isLocked=ho.prototype.Cn;ho.prototype.onSelectionChange=ho.prototype.Xg;ho.prototype.deselectAll=ho.prototype.deselectAll;ho.prototype.hasSelection=ho.prototype.Jd;ho.prototype.isDatumSelected=ho.prototype.Cj;ho.prototype.deselectDatum=ho.prototype.Ml;ho.prototype.selectDatum=ho.prototype.di;ho.prototype.setSelection=ho.prototype.hh;ho.prototype.setSeriesSelectionProperties=ho.prototype.Go;ho.prototype.setDataSelectionProperties=ho.prototype.qo;ho.prototype.setSelectionProperties=ho.prototype.Bi;Od("aplos.chart.SeriesDataSelectionModel",ho);Od("aplos.chart.SeriesDataSelectionModel.FULL_DATUM_KEY","__datum__");function ko(a){this.N={};this.v=a||null;this.O={}} function lo(a,b){var c=mo(a,b);return c?lo(a,c):a.N[b]?!0:a.v?lo(a.v,b):!1} ko.prototype.xg=function(a,b){var c=this.N;a in c&&delete c[a];this.O[a]=b;return this};ko.prototype.set=function(a,b,c){var e=this.O;a in e&&delete e[a];this.N[a]=Zo(this,b,c);return this};ko.prototype.get=function(a,b){var c=mo(this,a);return c?this.get(c,b):(c=this.N[a])?c:this.v?this.v.get(a,b):$o(a,b)};function Zo(a,b,c){if(typeof b==="function"){var e=Md(b,a);return c?function(f,h){f=e(f,h);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 $o(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 mo(a,b){if(!a.N[b]){if(a.O[b])return a.O[b];if(a.v)return mo(a.v,b)}return null} ;function ap(a,b){this.O=a;this.ha=null;this.v=b||null;this.N=b?new ko(b.N):new ko;this.ta=this.ka=this.ma=null;this.Aa={};this.ya=this.oa=this.na=null} v=ap.prototype;v.Jb=function(){return this.O};v.Lg=function(){return this.ya?this.ya:this.v?this.v.Lg():null};v.Qh=function(){return new ap(this.O,this)};function bp(a,b){a.ya=b;b.x&&a.domain(b.x);b.xLowerBound&&a.Ke(cp(b.xLowerBound));b.xUpperBound&&a.Le(cp(b.xUpperBound));b.x0&&a.fe(cp(b.x0));b.y&&a.measure(cp(b.y));b.yLowerBound&&a.df(cp(b.yLowerBound));b.yUpperBound&&a.ef(cp(b.yUpperBound));b.y0&&a.Lc(cp(b.y0));b.domainFormatter&&a.Ed(b.domainFormatter);b.measureFormatter&&a.Tb(b.measureFormatter);a.displayName(b.displayName||b.name);a.Ub(b.rendererId);a.ne(b.measureAxisId);a.Sf(b.overlay);["category","datumClickState","datumHoverState"].forEach(function(e){return dp(a,e,b[e],!0,!1)});"color dashPattern dataId datumClass domain key label labelTemplate strokeWidth radius".split(" ").forEach(function(e){return ep(a,e,b,!0,!1)});"delta domainLowerBound domainOffset domainUpperBound latitude longitude measure measureLowerBound measureOffset measureUpperBound".split(" ").forEach(function(e){return ep(a,e,b,!1,!0)});var c=c||[];c.forEach(function(e){return ep(a,e,b,!0,!1)})} function dp(a,b,c,e,f){c!=null&&(typeof c!=="string"||e||(c=cp(c)),typeof c==="function"&&(c=Md(c,a)),a.N.set(b,c,f))} function ep(a,b,c,e,f){var h=c[b];(c=c[b+"ColumnId"])&&(h=cp(c,e?h:null));dp(a,b,h,e,f)} function cp(a,b){return function(c){return c&&c.hasOwnProperty(a)?c[a]:b}} function fp(a,b){for(var c=a.domain(),e=Xn(a,"domainOffset")?a.fe():void 0,f=Xn(a,"domainLowerBound")?a.Ke():void 0,h=Xn(a,"domainUpperBound")?a.Le():void 0,n=a.measure(),r=a.Lc(),t=Xn(a,"measureLowerBound")?a.df():void 0,x=Xn(a,"measureUpperBound")?a.ef():void 0,A=a.yh(),la=a.key(),ma=a.radius(),ra=a.color(),ta=a.Je(),sa=a.Ec(),Aa=Xn(a,"strokeWidth")?a.strokeWidth():void 0,xa=a.label(),za=Xn(a,"category")?a.Fb():void 0,Ba=Array(b.length),Ea=0;Ea=0})} function op(a){return a.Aa.filter(function(b){return b.Ac!==!0}).length>0} function sp(a,b){a={Ca:0n){r=wp(f);for(e=a=0;e0&&x.Ca.heighth){n=wp(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.yg=!1)):(b=new Lp(b,this.src,h,!!e,f),b.yg=c,a.push(b));return b};Np.prototype.remove=function(a,b,c,e){a=a.toString();if(!(a in this.v))return!1;var f=this.v[a];b=Op(f,b,c,e);return b>-1?(Mp(f[b]),Ye(f,b),f.length==0&&(delete this.v[a],this.N--),!0):!1};function Pp(a,b){var c=b.type;c in a.v&&Ve(a.v[c],b)&&(Mp(b),a.v[c].length==0&&(delete a.v[c],a.N--))} Np.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)&&bq(c))} function bq(a){if(typeof a!=="number"&&a&&!a.Xf){var b=a.src;if(b&&b[Jp])Pp(b.v,a);else{var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent?b.detachEvent(Zp(c),e):b.addListener&&b.removeListener&&b.removeListener(e);Sp--;(c=Xp(b))?(Pp(c,a),c.N==0&&(c.src=null,b[Qp]=null)):Mp(a)}}} function Zp(a){return a in Rp?Rp[a]:Rp[a]="on"+a} function $p(a,b){if(a.Xf)a=!0;else{b=new Ip(b,this);var c=a.listener,e=a.Ng||a.src;a.yg&&bq(a);a=c.call(e,b)}return a} function Xp(a){a=a[Qp];return a instanceof Np?a:null} var cq="__closure_events_fn_"+(Math.random()*1E9>>>0);function Vp(a){if(typeof a==="function")return a;a[cq]||(a[cq]=function(b){return a.handleEvent(b)});return a[cq]} ;var dq=ih("");function eq(){this.port=this.v=null;this.N=[]} eq.prototype.load=function(){var a=this,b=fq();this.v=gq(b);hq().then(function(){a.v&&document.body.appendChild(a.v)});return iq(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.Wo)})};eq.prototype.exec=function(a,b){var c=this;return new Promise(function(e,f){var h=new MessageChannel;h.port1.onmessage=function(la){h.port1.onmessage=null;la=la.data;la.error!=null?f(new EvalError(la.error)):e(la.result)};for(var n=[],r=[],t=[],x=Wc(b!=null?b:[]),A=x.next();!A.done;A=x.next())A=A.value,n.push(A.name),r.push(A.value),A.transfer&&t.push(A.value);n={code:a,paramNames:n,values:r};c.port?c.port.postMessage(n,[h.port2].concat(Xc(t))):c.N.push({data:n,Wo:[h.port2].concat(Xc(t))})})};eq.prototype.dispose=function(){this.v!=null&&(this.v.parentNode&&this.v.parentNode.removeChild(this.v),this.v=null)};function fq(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")} function hq(){return new Promise(function(a){document.readyState!="loading"?a():Up(document,"DOMContentLoaded",function(){a()})})} function iq(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 gq(a){var b=Oj(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(dq==""){a=' ';c=bh(a);a=ih("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=dh(c)}else{c=new Map([["nonce",a]]);e=jh(dq).toString();var h=e.split(/[?#]/);f=/[?]/.test(e)?"?"+h[1]:"";a=h[0];e=/[#]/.test(e)?"#"+(f?h[2]:h[1]):"";a=Th(a,f,e,c)}b.src=jh(a).toString();b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b} ;var jq={cp:!1},kq;function lq(a){this.options=a=a===void 0?jq:a;mq(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.v=new eq)} lq.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?jq:e;return vd(function(f){if(f.v==1)return jd(f,nq(a,b,c,e),2);if(f.na)return f.return();kq||(kq=new lq,kq.init());return jd(f,oq(kq,a,b,c),0)})};lq.prototype.init=function(){var a=this;return vd(function(b){return a.v==null?b.return():jd(b,a.v.load(),0)})};lq.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return vd(function(f){return f.v==1?jd(f,nq(a,b,c,e.options),2):f.na?f.return():jd(f,oq(e,a,b,c),0)})};function oq(a,b,c,e){e=e===void 0?"":e;var f,h;return vd(function(n){switch(n.v){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){n.Nf(2);break}navigator.msSaveOrOpenBlob(f,c);return jd(n,pq(),3);case 3:return n.return();case 2:if(!oe()||me()>=0||!Me()&&(!Fe("iPad")&&!Fe("iPhone")||Le()||Me()||(He()?0:Fe("Coast"))||Ke()||!Fe("AppleWebKit"))){n.Nf(4);break}h=new FileReader;h.onload=function(){var r=Oj(document,"A"),t=sh(String(h.result));t instanceof kh?t=oh(t):t=vh.test(t)?t:void 0;t!==void 0&&(r.href=t);r.download=c;r.click()};h.readAsDataURL(f);return jd(n,pq(),5);case 5:return n.return();case 4:return a.v==null&&(a.v=new eq,a.v.load()),jd(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 jd(n,pq(),0)}})} function nq(a,b,c,e){c=c===void 0?"":c;e=e===void 0?jq:e;var f;return vd(function(h){switch(h.v){case 1:if(!mq(e))return h.return(!1);h.O=2;return jd(h,qq(a,b,c),4);case 4:h.v=3;h.O=0;break;case 2:f=kd(h);if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})} function mq(a){a=a===void 0?jq:a;return a.cp&&!!window.showSaveFilePicker} function qq(a,b,c){c=c===void 0?"":c;var e,f,h,n;return vd(function(r){switch(r.v){case 1:var t=c,x={suggestedName:b},A;(A=b.match(/\..+$/))?(A=A[0],A=A.length>16?null:A):A=null;if(A){t=t.replace(/;[^]*/,"");var la={};x.types=[{description:"*"+A,accept:(la[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(t)?t:"*/*"]=[A],la)}]}e=x;r.O=2;return jd(r,window.showSaveFilePicker(e),4);case 4:f=r.na;r.v=3;r.O=0;break;case 2:h=kd(r);if(h instanceof DOMException&&h.name==="AbortError")return r.return();throw h;case 3:return jd(r,f.createWritable(),5);case 5:return n=r.na,r.O=0,r.ka=6,jd(r,n.write(a),6);case 6:return r.ta=[r.N],r.O=0,r.ka=0,jd(r,n.close(),9);case 9:x=r.ta.splice(0)[0];(x=r.N=r.N||x)?x.Dj?r.v=r.O||r.ka:x.Nf!=void 0&&r.ka1?f/(h-1):null} ;function uq(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 vq(a,b){b=b===void 0?em:b;var c=wq(a,b);return c==null?null:c/xq(a,b)} Od("aplos.data.aggregations.average",vq);function yq(a,b){b=b===void 0?em:b;var c=0;a.forEach(function(e,f){b(e,f)==1&&c++});return c} Od("aplos.data.aggregations.countIf",yq);function wq(a,b){var c=null;b=b||em;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",wq);function zq(a,b){var c=null;b=b||em;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",Aq);function xq(a,b){var c=0;b=b||em;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",xq);function Bq(a,b){var c=new Set;b=b||em;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",Bq);function Cq(a,b,c,e){if(a<2||!uq(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(b<0||b>a||!uq(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Dq(b/a,c,e)} Od("aplos.data.aggregations.quantiles",Cq);function Dq(a,b,c){if(a<0||a>1)throw Error("phi value for quantiles must be 0 <= phi <= 1");b=b.map(c||em);b=b.filter(function(e){return e!=null&&!isNaN(+e)});if(!b.length)return null;b.sort(pj);return b[a===0?0:Math.ceil(b.length*a)-1]} Od("aplos.data.aggregations.phiQuantiles",Dq);function Eq(a,b){return tq(a,!1,b)} Od("aplos.data.aggregations.variance",Eq);function Fq(a,b){return(a=tq(a,!1,b))&&Math.sqrt(a)} Od("aplos.data.aggregations.stdDev",Fq);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=nf(c,b);f=Li(f);if(f.length<2)e=null;else{c=pf(f);for(var h=0;h=c&&ae?(a=a.Hc(c+1)-e,(c*a+b-e)/a):b=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b} v=Vq.prototype;v.Ne=Pq.dl;v.Oe=Pq.el;v.clone=function(){var a=new Vq(this.date);a.Ne=this.Ne;a.Oe=this.Oe;return a};v.getFullYear=function(){return this.date.getFullYear()};v.getYear=function(){return this.getFullYear()};v.getMonth=function(){return this.date.getMonth()};v.getDate=function(){return this.date.getDate()};v.getTime=function(){return this.date.getTime()};v.getDay=function(){return this.date.getDay()};v.getUTCFullYear=function(){return this.date.getUTCFullYear()};v.getUTCMonth=function(){return this.date.getUTCMonth()};v.getUTCDate=function(){return this.date.getUTCDate()};v.getUTCDay=function(){return this.date.getDay()};v.getUTCHours=function(){return this.date.getUTCHours()};v.getUTCMinutes=function(){return this.date.getUTCMinutes()};v.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};v.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};v.setFullYear=function(a){this.date.setFullYear(a)};v.setYear=function(a){this.setFullYear(a)};v.setMonth=function(a){this.date.setMonth(a)};v.setDate=function(a){this.date.setDate(a)};v.setTime=function(a){this.date.setTime(a)};v.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};v.setUTCMonth=function(a){this.date.setUTCMonth(a)};v.setUTCDate=function(a){this.date.setUTCDate(a)};v.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(Rq(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()),Xq(this,a.getDate()))};v.lg=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+ki(Math.abs(b),c?6:4),ki(this.getMonth()+1,2),ki(this.getDate(),2)].join(a?"-":"")+""};v.toString=function(){return this.lg()};function Xq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.Bg?a-=c.Ug-c.Hb:a<=c.Df&&(a-=c.Vf-c.Hb);return a} function dr(a,b){b=b||"UTC";try{return $q(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return $q(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 er(a,b,c){c=c||"UTC";var e=fr(b);gr(a);ar(c,"Invalid timezone specified");if(c==="local")return hr(a,e);var f=Math.floor(a/1E3);b=ir(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=ir(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=ir(a,c),(a-c)*1E3;case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=ir(a,c),(a-c)*1E3;case "WEEK":return a=new Zq,a.setTime(f+b),b=new Sq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=ir(a,c),(a-c)*1E3;case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=ir(a,c),(a-c)*1E3;case "HOUR":return a=f+b,jr(a-a%36E5-b,c)*1E3;case "MINUTE":return a=f+b,jr(a-a%6E4-b,c)*1E3;case "SECOND":return jr(Math.floor(f/1E3)*1E3,c)*1E3;case "MILLISECOND":return jr(Math.floor(f),c)*1E3;case "MICROSECOND":return jr(Math.floor(a)/1E3,c)* 1E3;default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function kr(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=cr(a,e);switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);b=new Date((a+f.Hb)/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=cr(a,e);a-=f.Hb;break;case "WEEK":c*=7;case "DAY":b=new Date((a+f.Hb)/1E3);b.setUTCDate(b.getUTCDate()+c);a=b.getTime()*1E3;f=cr(a,e);a-=f.Hb;break;case "HOUR":return b=a+c*60*60*1E3*1E3,Math.abs(c)>1&&(c=lr(b,e),b-=c-f.Hb),b;case "MINUTE":c*=60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":a+=c}return a} function lr(a,b){return b?cr(a,b).Hb:-1*(new Date(a/1E3)).getTimezoneOffset()*60*1E3*1E3} function cr(a,b){var c=b.toUpperCase().trim(),e;if(e=mr.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{Hb:e,Df:null,Bg:null,xh:null,Vf:null,Ug:null};e=nr[c];if(e!=null)return{Hb:e*1E3,Df:null,Bg:null,xh:null,Vf:null,Ug:null};c=or[c];if(!c)throw Error("Unknown or unsupported time zone: "+b);b=c.Nn*6E7;c=c.Xo;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{Hb:b,Df:null,Bg:null,xh:null,Vf:null,Ug:null};a=h;break}}e=b+c[a+1]*6E7;f=b+c[a-1]*6E7;return{Hb:e,Df:c[a]*36E8,Bg:c[a+2]*36E8,xh:e-f,Vf:f,Ug:b+c[a+3]*6E7}} function ir(a,b){return cr(a*1E3,b).Hb/1E3} function jr(a,b){var c=a*1E3;b=cr(c,b);var e=b.Vf-b.Hb;return a-(e<=0||c-e>b.Df?0:e)/1E3} function pr(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function ar(a,b){if(typeof a!=="string")throw Error(b);} function gr(a){if(typeof a!=="number")throw Error("Invalid timestamp");} for(var mr=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,nr={"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},or={},qr=[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],rr=Wc(["PST8PDT","America/Los_Angeles","US/Pacific"]),sr=rr.next();!sr.done;sr=rr.next()){var tr=sr.value.toUpperCase();or[tr]={id:tr,Nn:-480,Xo:qr}} var ur={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},vr={},wr;for(wr in ur)vr[ur[wr]]=wr;var xr=vr;function fr(a){if(!a)throw Error("Missing date component.");var b=xr[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function hr(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 yr(a,b){var c=zr(a,b===void 0?"__default__":b);return function(e){return e==null?"null":c(e/1E3)}} function zr(a,b){b=b===void 0?"__default__":b;var c=!1;a.indexOf("%Z")>=0&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=Ar();return function(f){if(f==null)return"null";typeof f==="string"&&(f=+f);Fd(f)&&(f=f.getTime());var h=b==="__default__"?Hq:b,n=Br(a);if(h==="local"){n=Cr(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=cr(f,h),r=(f+r.Hb)/1E3,h=lr(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 Ar(){var a=qi("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 Dr=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Er="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Dr),Fr=["MIN","MAX"].concat(Dr),Gr={},Hr=(Gr[["string"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return String},rc:"",yc:"aplos-string-cell",oc:Dr,Fb:1,jc:"string",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc: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+'"'}},Gr[["decimal"]]={Vb:void 0,Bc:!1,qc:"decimal",uc:ni,rc:".2f",yc:"aplos-numeric-cell",oc:Er,Fb:2,jc:"number",wc:function(a){return a},nc:function(a){return"SUM("+a+")"},mc:String},Gr[["integer"]]={Vb:void 0,Bc:!1,qc:"integer",uc:ni,rc:".0f",yc:"aplos-numeric-cell",oc:Er,Fb:2,jc:"number",wc:function(a){return a},nc:function(a){return"SUM("+a+")"},mc:String},Gr[["time_us"]]={Vb:.001,Bc:!1,qc:"integer",uc:yr,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Fr,Fb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){Fd(a)&&(a=a.getTime()*1E3);return String(a)}},Gr[["time_ms"]]={Vb:1,Bc:!1,qc:"integer",uc:zr,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Fr,Fb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){Fd(a)&&(a=a.getTime());return String(a)}},Gr[["timestamp"]]={Vb:.001,Bc:!1,qc:"integer",uc:yr,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Fr,Fb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"TIMESTAMP_MICROS("+a+")"}},Gr[["date"]]={Vb:.001,Bc:!0,qc:"integer",uc:function(a){return yr(a,"UTC")},rc:"%Y-%m-%d",yc:"aplos-date-cell",oc:Fr,Fb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Gr[["datetime"]]={Vb:.001,Bc:!0,qc:"integer",uc:function(a){return yr(a,"UTC")},rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Fr,Fb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Gr[["boolean"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return String},rc:"",yc:"",oc:Dr,Fb:4,jc:"boolean",wc:function(a){return a},nc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},mc:String},Gr[["hll_sketch"]]={Vb:void 0,Bc:!1,qc:"integer",uc:ni,rc:".0f",yc:"aplos-numeric-cell",oc:["HLL_COUNT.MERGE"],Fb:2,jc:"number",wc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},nc:function(a){return"HLL_COUNT.MERGE("+a+")"},mc:String},Gr[["message"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return function(a){return JSON.stringify(a,null,2)}},rc:"",yc:"aplos-string-cell",oc:[],Fb:1,jc:"object",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},mc:String},Gr[["array"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return function(a){return JSON.stringify(a,null,2)}},rc:"",yc:"aplos-string-cell",oc:[],Fb:1,jc:"object",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},mc:String},Gr[["kll_int64"]]={Ej:!0,Vb:void 0,qc:"integer",uc:ni,rc:".0f",yc:"aplos-numeric-cell",oc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Fb:2,jc:"number",wc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},nc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},mc:String},Gr[["kll_double"]]={Ej:!0,Vb:void 0,qc:"decimal",uc:ni,rc:".2f",yc:"aplos-numeric-cell",oc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Fb:2,jc:"number",wc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},nc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},mc:String},Gr);function Ir(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 Jr={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",Jr);function Kr(a,b,c){return Lr(b).mb(a,c)} function Mr(a,b){return(a=Lr(a).Be)?a(b):b} var Nr={},Tr=(Nr["="]={mb:function(a,b){return b[0]==="null"?Or(a):a+" = "+b[0]},Be:null},Nr[">"]={mb:function(a,b){return a+" > "+b[0]},Be:function(a){return[Pr(a)]}},Nr["<"]={mb:function(a,b){return a+" < "+b[0]},Be:function(a){return[Qr(a)]}},Nr[">="]={mb:function(a,b){return a+" >= "+b[0]},Be:function(a){return[Pr(a)]}},Nr["<="]={mb:function(a,b){return a+" <= "+b[0]},Be:function(a){return[Qr(a)]}},Nr["!="]={mb:function(a,b){return b[0]==="null"?Rr(a):a+" != "+b[0]}},Nr.IN={mb: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 Or(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+Or(a)+")":b}},Nr.NOT_IN={mb: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 Rr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+Rr(a)+")":b}},Nr.BETWEEN={mb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},Be:function(a){return Ei(a)}},Nr.NOT_BETWEEN={mb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},Be:function(a){return Ei(a)}},Nr.IS_NULL={mb:Or},Nr.IS_NOT_NULL={mb:Rr},Nr.IS_INFINITY={mb:function(a){return"IS_INF("+a+")"}},Nr.IS_NOT_INFINITY={mb:function(a){return"NOT(IS_INF("+a+"))"}},Nr.IS_NAN={mb:function(a){return"IS_NAN("+a+")"}},Nr.IS_NOT_NAN={mb:function(a){return"NOT(IS_NAN("+a+"))"}},Nr.CONTAINS={mb:function(a,b){return Sr(a,b[0])}},Nr.DOES_NOT_CONTAIN={mb:function(a,b){return"NOT("+Sr(a,b[0])+")"}},Nr.REGEX={mb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},Nr.NOT_REGEX={mb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},Nr);function Sr(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(Ur,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function Or(a){return a+" IS NULL"} function Rr(a){return a+" IS NOT NULL"} function Lr(a){if(Tr[a]==null)throw Error("Unknown filter operator: "+a);return Tr[a]} var Ur=/([.?*+^$[\]\\(){}|-])/g;function Vr(a,b,c){if(typeof a!=="string")return a={Cf:a.column!==void 0?a.column:a.Cf,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{Cf:a,operator:b,value:c!==void 0?c:""}} Od("aplos.data.SimpleFilter",function(){});Od("aplos.data.SimpleFilter.Operator",Jr);Od("aplos.data.SimpleFilter.buildFromFilterOrValues",Vr);function Wr(a){for(var b=0;be&&(f=1));return f!=null?a==="ASC"?f:-1*f:0} var bs=Yr.bind(null,"ASC",!1);function as(a){return a==null?0:a===-Infinity?2:a===Infinity?4:typeof a==="number"&&isNaN(a)?1:3} var Zr=!1,$r=/^-?[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=Mr(b,c),c.forEach(function(h){var n=e==null?Ir(h):e;f.push(Hr[n].mc(h))}));return Kr(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",Yr);function ds(a){this.vf=this.Ra=.35;this.ab=this.Qb=null;this.ma=new Set;this.v=[0,1];this.oa=new Dl;this.N=0;this.La=!1;this.Ua=a!=null?a:2;this.O=!0;this.na=this.Rc=null;this.Zb=!1;this.ka=null;this.Ka=!1;this.Ha=1;this.Oa=0;this.ta=null;this.Xa=1;this.uf=this.Qc=this.rf=this.tf=this.ha=null;this.wf=new Jj(0,0);this.Aa=this.ya=null;this.vc=void 0;this.og=new es(this);fs(this)} v=ds.prototype;v.Ai=function(a){this.Ua=a;this.O=!0;return this};v.nk=function(a){this.Ra=a;this.Ua==2&&this.Ai(this.Ua);return this};v.am=function(){return this.Ra};v.kk=function(a,b){this.Qb=a;this.ab=b;this.O=!0;return this};v.eh=function(a){this.uf=a;return this};v.Re=function(){return this.uf};v.tb=function(){return this.oa};v.ig=function(a){this.oa=a;return this};v.Qk=function(a){this.Rc=a;return this};v.Ei=function(a){this.na=a;this.Ka||(this.ka=null);this.na instanceof gs&&(a=this.na.Jg(),typeof a==="function"&&this.Pd(a));this.O=!0;return this};v.ln=function(){return this.na};v.jk=function(a){this.La=a;this.O=!0;return this};v.Pd=function(a){this.vc=a;this.Ua===2&&(this.O=!0)};function hs(a){a.ma.clear();a.Ka||(a.ka=null);a.O=!0} function is(a,b,c,e){for(var f=0;fe[0]!=e[1]>e[0]!=f[1]>f[0]?Pr(c):Qr(c)} function ls(a,b){return a.Rc||b||function(c){return c!=null?c.toString():""}} v.bandwidth=function(){fs(this);return this.Ua==2?this.Ja.bandwidth():this.ta?this.Xa===2?this.Ja(this.ta)-this.Ja(0):this.ta||0:0};v.Lk=function(a){this.ka=a;this.Ka=a!=null;this.yi(1,0);return this};v.yi=function(a,b){this.Ha=a;this.Oa=b;this.O=!0};function ms(a,b,c,e,f,h,n){a.Zb!==h&&(a.O=!0);a.ha=b;a.tf=c;a.rf=e;a.N=f;a.Zb=h;a.Qc=n} v.Ih=function(){var a=ui(this.N);this.Re()==null&&this.oa.Yj(this.ha);return{position:a,Tf:10}};v.mg=function(a){var b=ui(this.N);b=yg(a,this.Re(),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=ns(this,this.Qc);a=this.oa.nh(this.ha,c,this.N,a,this.bandwidth(),this.Aa);this.range(b);return a};v.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.wf=new Jj(b,c);this.ya=a};v.Qe=function(){return this.ya};v.render=function(a,b){if(this.ha){var c=this.ya;this.ha.attr("transform","translate("+((this.N==1?c.right:c.left)-a.Kb())+", "+((this.N==2?c.bottom:c.top)-a.Lb())+")");c=ns(this,this.Qc);var e=ks(this,0);if(isNaN(e))switch(this.N){case 0:e=a.vb();break;case 1:e=0;break;case 3:e=a.Ya();break;case 2:e=0}var f={top:a.Lb(),right:a.Kb()+a.Ya(),bottom:a.Lb()+a.vb(),left:a.Kb()};this.oa.render(this.ha,c,this.N,new Jj(a.Ya(),a.vb()),this.wf,this.bandwidth(),b,this.Aa,this.tf,e,this.rf,this.ya,f)}};function ns(a,b){fs(a);var c=os(a),e=a.Rc;c.Ze()||(e=ls(a,b));b=c.Mb(a.Ua==2?null:a.Ja.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ma),e,a,a.og).map(function(h){h&&h.value!==void 0||(h={value:h});h.location===void 0&&(h.location=Math.round(Ep(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 ps(a){if(!a.ka)if(a.Ua==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=Ei(b);b=os(a).Gd(e,c,b).map(function(f){return f.value!==void 0?f.value:f});a.ka=a.Ua===1?[b.length?Qr(b):Infinity,b.length?Pr(b):-Infinity]:[Math.min(e[0],b.length?Qr(b):Infinity),Math.max(e[1],b.length?Pr(b):-Infinity)]}return a.ka||[]} function fs(a){if(a.O){switch(a.Ua){case 0:a.Ja=hj();break;case 2:a.Ja=nj(a.Ra,a.vf,!a.Zb);break;case 1:a.Ja=kj();break;case 3:a.Ja=qj();break;default:throw Error("Unknown scale type: "+a.Ua);}a.Qb!=null&&a.ab!=null&&a.Ja.outerPaddingStartPx&&a.Ja.outerPaddingEndPx&&(a.Ja.outerPaddingStartPx(a.Qb||0),a.Ja.outerPaddingEndPx(a.ab||0));if(a.Ua==2)typeof a.vc==="function"&&a.Ja.domainOverride&&a.Ja.domainOverride(a.vc),a.La&&a.Ja.autoOrderDomain&&a.Ja.autoOrderDomain(a.La),a.Ja.domain(Array.from(a.ma)),a.Ja.range([a.v[0]*a.Ha+a.Oa,a.v[1]*a.Ha+a.Oa]);else{var b=ps(a),c=a.v.map(function(f){return(f-this.Oa)/this.Ha},a),e=a.Ua==1?tj:sj;a.Ja.range(a.v).domain([e(c[0],a.v,b),e(c[1],a.v,b)])}a.O=!1}} function os(a){if(a.na){if(a.na instanceof gs){var b=a.na,c=a.Ja.copy();b.Ja=c}return a.na}b=new gs(a.Ua);a=a.Ja.copy();b.Ja=a;return b} Od("google3.javascript.visualization.aplos.v2_0.chart.common.axis.aplosaxis.AplosAxis",ds);ds.prototype.setMaxViewportExtent=ds.prototype.Lk;ds.prototype.setNicingFunction=ds.prototype.Pd;ds.prototype.setAutoOrderDomain=ds.prototype.jk;ds.prototype.getTickProvider=ds.prototype.ln;ds.prototype.setTickProvider=ds.prototype.Ei;ds.prototype.setTickFormatter=ds.prototype.Qk;ds.prototype.setRenderer=ds.prototype.ig;ds.prototype.getRenderer=ds.prototype.tb;ds.prototype.getLayoutSize=ds.prototype.Re;ds.prototype.setLayoutSize=ds.prototype.eh;ds.prototype.setAxisMargin=ds.prototype.kk;ds.prototype.getBarGroupPaddingPct=ds.prototype.am;ds.prototype.setBarGroupPaddingPct=ds.prototype.nk;ds.prototype.setScaleType=ds.prototype.Ai;function gs(a){this.Ja=null;this.Ua=a;this.vc=void 0;this.Uj=!1} v=gs.prototype;v.On=function(a){this.Uj=a;return this};function qs(a,b){switch(a.Ua){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.Ua);}} v.Pd=function(a){this.vc=a};v.Jg=function(){return this.vc};v.Ze=function(){return!1};v.Mb=function(a,b,c,e,f,h){this.Ja&&this.Ja.ticks?(typeof this.vc==="function"&&this.Ja.domainOverride&&this.Ja.domainOverride(this.vc),a[0]==a[1]&&(a=qs(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.Uj&&h&&f){var n=2,r=Dp(a,f,e);for(e=r;h.v.oa&&h.v.ha&&h.v.oa.Ni(e,h.v.ha,h.v.N)&&e.length>2;)e=r.filter(function(t,x){return x==r.length-1||x%n==0}),n++;return e}return a};v.Gd=function(a,b,c){b=this.Mb(a,b,c);return b.length?Ei(b):a};Od("google3.javascript.visualization.aplos.v2_0.chart.common.axis.aplosaxis.AplosAxisTickProvider",gs);gs.prototype.omitCollidingLabels=gs.prototype.On;function es(a){this.v=a} Od("aplos.chart.AplosAxis",ds);function rs(){Dl.call(this);this.Qd(!1);this.Ad(!0);this.Rd(!0);this.ye(0);this.Bd(0);this.ha=20;this.O=45;this.xe(6)} Uc(rs,Dl);Od("aplos.chart.GridlinesAxisRenderer",rs);function ss(){Dl.call(this);this.La=new Jj(0,0);this.Ra=void 0} Uc(ss,Dl);v=ss.prototype;v.render=function(a,b,c,e,f,h,n,r,t,x,A,la,ma){f=this.La;Dl.prototype.render.call(this,a,b,c,e,f,h,n,r,t,x,A,la,ma)};v.nh=function(a,b,c,e,f,h){b=c==1||c==3;this.La=new Jj(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=Rl(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,qb:e,Ac:!1}};v.Lh=function(a,b,c,e,f){var h="middle",n=0,r=0,t="";this.Ra=hk(b.node(),"MWpgy09",void 0,!0);b=f.label.split("\n").length*this.Ra;f=a.na;var x=a.v,A=a.Ha;switch(c){case 0:n=A?x:0;r=-1*(b+f+x);t=".71em";h=A?"start":"middle";break;case 2:n=A?x:0;r=b+x+f;t="0em";h=A?"start":"middle";break;case 1:n=x+f;r=A?-1*b/2:0;t=".32em";h="left";break;case 3:n=-1*(x+f),r=A?-1*b/2:0,t=".32em",h="right"}switch(a.ka){case 3:if(c===1||c===3)r=-(e/2-x),t=".71em";break;case 1:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n= -(e/2-x),h="left";break;case 4:if(c===1||c===3)r=e/2-x;break;case 2:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n=e/2-x,h="right"}return{anchor:h,x:n,y:r,dy:t,jr:n,kr:null}};v.yj=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}};v.zj=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}};Od("aplos.chart.InsideAxisRenderer",ss);function ts(){ss.call(this);this.Qd(!1);this.Ad(!0);this.Rd(!0);this.ye(0);this.Bd(0);this.ha=20;this.O=45;this.xe(6)} Uc(ts,ss);Od("aplos.chart.InsideGridlinesAxisRenderer",ts);function us(){ss.call(this);this.Qd(!0);this.Ad(!1);this.Rd(!1);this.ye(0);this.Bd(6);this.ha=20;this.O=45;this.xe(0)} Uc(us,ss);Od("aplos.chart.InsideTicksAxisRenderer",us);function vs(){Dl.call(this);this.Qd(!1);this.Ad(!1);this.Rd(!1);this.ye(0);this.Bd(0);this.ha=20;this.O=45;this.xe(6)} Uc(vs,Dl);Od("aplos.chart.LabelsAxisRenderer",vs);function ws(){} ws.prototype.render=function(a,b,c,e,f,h,n,r,t,x,A){a.selectAll("*").remove();if(t!=null){a=".baseline";switch(c){case 0:a+=".x-axis-baseline";break;case 1:a+=".y-axis-baseline";break;case 3:a+=".y2-axis-baseline";break;case 2:a+=".x2-axis-baseline"}t.selectAll(a).remove()}if(A!=null){t=".axis-line";switch(c){case 0:t+=".x-axis-line";break;case 1:t+=".y-axis-line";break;case 3:t+=".y2-axis-line";break;case 2:t+=".x2-axis-line"}A.selectAll(t).remove()}};ws.prototype.Yj=function(){};ws.prototype.Ni=function(){return!1};ws.prototype.nh=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,qb:e,Ac:!0}};function xs(){Dl.call(this);this.Qd(!0);this.Ad(!1);this.Rd(!1);this.ye(0);this.Bd(6);this.ha=20;this.O=45;this.xe(6);this.ab=!0} Uc(xs,Dl);xs.prototype.ak=function(a,b){(b===0||b===2)&&a.length>1&&(a[0].qh=1,a[a.length-1].qh=2)};xs.prototype.Lh=function(a,b,c,e,f){b="middle";var h=0,n=0,r="",t=a.na,x=a.v;f=Sl(this,f);switch(c){case 0:n=x+t;r=".71em";b=f===1?"left":f===2?"right":"middle";break;case 2:n=-1*(x+t);r="0em";b=f===1?"left":f===2?"right":"middle";break;case 1:h=-1*(x+t);r=".32em";b="right";break;case 3:h=x+t,r=".32em",b="left"}switch(a.ka){case 3:if(c===1||c===3)n=-(e/2-x),r=".71em";break;case 1:if(c===2||c===0)n=n/Math.abs(n)*.4+"em",h=-(e/2-x),b="left";break;case 4:if(c===1||c===3)n=e/2-x;break;case 2:if(c===2|| c===0)n=n/Math.abs(n)*.4+"em",h=e/2-x,b="right"}return{anchor:b,x:h,y:n,dy:r}};Od("aplos.chart.OuterJustifiedTicksAxisRenderer",xs);function ys(){Dl.call(this);this.Qd(!0);this.Ad(!1);this.Rd(!1);this.ye(0);this.Bd(6);this.ha=20;this.O=45;this.xe(6)} Uc(ys,Dl);Od("aplos.chart.TicksAxisRenderer",ys);function zs(){this.Jn=100;this.kh=Hq;for(var a=As,b=0,c=Wc(Object.values(a)),e=c.next();!e.done;e=c.next())e=e.value,b=Math.max(b,ii(e.tick,"\n"),ii(e.transition||"","\n"),ii(e.Fc||"","\n"));c=Wc(Object.values(a));for(e=c.next();!e.done;e=c.next())e=e.value,e.tick=Bs(e.tick,b)||"",e.transition=Bs(e.transition,b),e.Fc=Bs(e.Fc,b);this.Bh=a;this.Gi=Cs;this.th=null;this.gp=0} v=zs.prototype;v.uk=function(a){(a=this.th=a)&&Hr[a].Vb!==void 0&&Hr[a].Bc===!0&&(this.kh="UTC");return this};v.Ze=function(){return!0};v.Mb=function(a,b,c,e){if(b<=0)return[];var f=this.th||Ds(c),h=1E3*Hr[f].Vb;f=a[0]>a[1];c=Ei(c);a=Ei(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=Es(this,(a-c)/(b/this.Jn));b=r.interval;r=r.unit;var t=e;e&&(t=function(sa){return e(sa/1E3)});var x=t||Fs(this,this.Bh[r].tick),A=t||Fs(this,this.Bh[r].Fc);t=t||Fs(this,this.Bh[r].transition);var la=Gs(r);n=this.Eg(b,r,c,n);for(var ma=[];n<=a;){if(n>=c){var ra=x(n),ta="minor";la&&this.nf(n,la)===n&&(ta="major",t&&(ra=t(n)));ma.push({value:n,Mh:ta,label:ra})}n=this.Ie(n,r,b)}A&&ma.length&&(ma[0].label=A(ma[0].value));h!==1&&ma.forEach(function(sa){sa.value=sa.value/h});return f===!1?ma:ma.reverse()};v.Gd=function(a,b,c){b=this.Mb(a,b,c);return b.length?Ei(b,function(e){return e.value}):a};function Es(a,b){for(var c=Wc(a.Gi),e=c.next();!e.done;e=c.next())if(e=e.value,Hs[e.unit]*e.interval>=b)return e;return a.Gi[a.Gi.length-1]} function Gs(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} v.nf=function(a,b){return er(a,b,this.kh)};v.Ie=function(a,b,c){return kr(a,b,c,this.kh)};function Fs(a,b){return b?yr(b,a.kh):null} v.Eg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return b==="WEEK"?(b=this.nf(e,"WEEK"),b=this.Ie(b,"DAY",this.gp),a*=7):b=this.nf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.Ie(b,"DAY",c);default:return b=Gs(b)||"YEAR",this.nf(c,b)}};function Ds(a){a=Ei(a);return a[0]>3E11&&a[0]<18E11?"time_ms":"timestamp"} function Bs(a,b){if(!a)return a;var c=ii(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=Os(this.Rh),r-n=Os(b.Cb)&&(b.Cb=null);a=Os(b.step)/a;aOs(b.Cb)&&(b.Cb=b.step));this.Pg=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new Yq;c.setTime(n);n=this.Eg(c,b.step);c=b.Cb?this.Eg(c,b.Cb):null;x=[];for(var A=!1;n.getTime()<=r;){var la= {};a:switch(f){case "milliseconds":var ma=n.getTime();break a;case "microseconds":ma=n.getTime()*1E3;break a;default:ma=new Date(n.getTime())}la.value=ma;c&&b.Cb&&c.getTime()<=n.getTime()?(la.type="transition",la.label=a(new Date(n.getTime())),Qs(c,b.Cb),A=!0):la.label=e(new Date(n.getTime()));x.push(la);Qs(n,b.step)}c&&x.length&&!A&&(x[0].type="transition",x[0].label=a(new Date(x[0].value*h)));t&&x.reverse();return x};v.Gd=function(a,b,c){b=this.Mb(a,b,c);return b.length?Ei(b,function(e){return e.value}):a};v.Eg=function(a,b){if(b.N)var c=new Yq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=Math.ceil(a.getMonth()/b.months)*b.months,c=new Yq(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+=Rq(h,n);c=new Yq(a.getFullYear(),0,e.call(c,f/b.days)*b.days);b.days%7===0&&c.setDate(c.getDate()-c.getDay()+this.Hi)}else if(b.O)c=Math.ceil(a.getHours()/b.O)*b.O,c=new Yq(a.getFullYear(),a.getMonth(),a.getDate(),c);else if(b.ha)c=Math.ceil(a.getMinutes()/ b.ha)*b.ha,c=new Yq(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 Yq(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 Yq(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.We(b,r)>=b[1]);t++);return(h?-1:1)*r};function Ts(a){return a<0?a+2E-10:a>0?a-2E-10:a} v.We=function(a,b){var c=Math.ceil(a[0]/b)*b;c>a[0]&&(c-=b);return c};Rs.prototype.getDefaultViewport=Rs.prototype.Gd;Rs.prototype.getTicks=Rs.prototype.Mb;Rs.prototype.getNicingFunction=Rs.prototype.Jg;Rs.prototype.getDynamicTicks=Rs.prototype.um;Rs.prototype.setDynamicTicks=Rs.prototype.ah;Rs.prototype.getIntIntervalsOnly=Rs.prototype.Em;Rs.prototype.setIntIntervalsOnly=Rs.prototype.Ck;Rs.prototype.getNiceCoefficients=Rs.prototype.Sm;Rs.prototype.setNiceCoefficients=Rs.prototype.vi;Rs.prototype.getNumTicks=Rs.prototype.Tm;Rs.prototype.setNumTicks=Rs.prototype.wi;var Ss=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];Od("aplos.chart.BaseTickProvider",Rs);function Us(){Rs.call(this);this.ah(!0);this.vi([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Og=!1} Uc(Us,Rs);Us.prototype.Eh=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.Ue(a,c,b,e);e=this.We(c,a);var f=[];if(this.Og){f.push(c[0]);if(b===0)return f;if(b===1)return f.push(c[1]),f}b=this.Me?b+2:b;for(var h=0;h<=b;h++){var n=h*a+e;if(n>c[1])break;if(this.Og){if(n-c[0]=n){var ma=this.We(b,la);if(c*la+ma>b[1])if(e)if(ma=Math.floor((b[1]-ma)/la)+1,ma>x)x=ma;else break;else break;r=la}t=la}}r===null&&(r=t!==null?t:1);return(h?-1:1)*r};Us.prototype.We=function(a,b){return Math.ceil(a[0]/b)*b};Od("aplos.chart.DataTickProvider",Us);function Vs(){} Vs.prototype.Ze=function(){return!0};Vs.prototype.Mb=function(a,b,c,e,f){a=Ws(c||a);b=[];f?(b=Dp(a,f,e),b.forEach(function(h){var n=!e;Math.log(Math.abs(+h.value))*Math.LOG10E%1===0?(h.label=n?Xs(h.value):h.label,h.Mh="major"):(h.label="",h.Mh="minor")})):b=a;return b};Vs.prototype.Gd=function(a,b,c){return Ei(Ws(c||a))};function Ws(a){a=a.filter(function(h){return h!==0});var b=Ei(a),c=b[0],e=b[1];c<=0&&e>=0&&(a=a.filter(function(h){return h>0}),c=Qr(a));a=e>0?1:-1;b=Ii(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 Xs(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",Vs);function Ys(){this.jh=[]} Ys.prototype.Ze=function(){return!1};Ys.prototype.Mb=function(){return this.jh.map(function(a){return a&&a.value!==void 0?dj(a):a})};Ys.prototype.Gd=function(a){return this.jh.length?Ei(this.jh,function(b){return b.value!=null?b.value:b}):a};Ys.prototype.Rk=function(a){this.jh=a.slice();return this};Ys.prototype.setTicks=Ys.prototype.Rk;Ys.prototype.getDefaultViewport=Ys.prototype.Gd;Ys.prototype.getTicks=Ys.prototype.Mb;Od("aplos.chart.ManualTickProvider",Ys);function Zs(){Rs.call(this)} Uc(Zs,Rs);Zs.prototype.Eh=function(a,b,c,e){Math.abs(c[0]-c[1])>4E-10&&(c=[Ts(c[0]),Ts(c[1])]);if(c[0]>=0)var f=0;else if(c[1]<=0)f=b;else{if(b===1)return Ei($s(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 $s(this,a,b,f,c,e)};function $s(a,b,c,e,f,h){c=Math.max(1,c);var n=0;f[0]<0&&(n=a.Ue(b,[f[0],0],e,h));var r=0;f[1]>0&&(r=a.Ue(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} Od("aplos.chart.QuantumTickProvider",Zs);function at(){Rs.call(this);this.Ef=new Zs} Uc(at,Rs);at.prototype.Mb=function(a,b,c,e,f,h){if(this.oe>2&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0)){if(this.Me)this.Ef.ah(!0);else{var n=this.oe;n!=null&&this.Ef.wi(n)}this.Ef.vi(this.Vg);n=this.Jg();n!=void 0&&this.Ef.Pd(n);return this.Ef.Mb(a,b,c,e,f,h)}return Rs.prototype.Mb.call(this,a,b,c,e,f,h)};at.prototype.Eh=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.Ue(a,b,1,e),a=this.We(c,b),e=Math.ceil(c[1]/b)*b,e=0,n=Pe(r,"truncate")>=0);b.Xa=n;b.O=h?45:0;e.axisTitlePaddingPx!==void 0&&b.lk(+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.Qd(e.showAxisLine);e.showGridlines!==void 0&&b.Rd(e.showGridlines)}return f} function kt(a,b,c){var e=a.type.toLowerCase(),f=ft(a).scaleType,h=null,n=ft(a),r=n.nicing,t=a.ticks||{},x=a.extents||{},A=null;x.type=="fixed"&&Array.isArray(x.values)&&x.values.length>1&&(A=x.values);x=t.type||"default";switch(n.tickProviderType(x,c,A)){default:throw Error("Invalid axis ticks type: "+x);case "ordinal":if(e!="ordinal")throw Error('"ordinal" ticks type can only be used with an "ordinal" axis type');h=new gs(f);break;case "data":h=new Us;break;case "endpoints":h=new Us;h.Og=!0;break;case "tight":e==="log"?h=new Vs:e==="time"?h=new Ks:e==="ordinal"?h=new gs(f):h=new at;break;case "fixed":if(Array.isArray(t.values))f=t.values.map(function(la){var ma={value:e=="ordinal"?la.value:+la.value};la.hasOwnProperty("label")&&(ma.label=la.label);return ma}),h=new Ys,h.Rk(f);else throw Error('No tick values found for "fixed" tick provider');break;case "quantum":e==="time"?h=new zs:h=new Zs}h&&h.Pd&&(r=t.nicing||r,f=h,typeof r==="string"&&ct[r]?f.Pd(ct[r]):typeof r==="function"&&f.Pd(r));a.columnType&&h&&h.uk&&h.uk(a.columnType);h instanceof Rs&&(t.integerOnly&&h.Ck(!!t.integerOnly),b?h.wi(b):c&&h.ah(!0));return h} function ht(a,b){var c=b.ticks||null;c=c&&c.format?c.format:null;b=ft(b).tickFormatter(c);b!=null&&a.Qk(b)} function it(a,b){b.extents&&b.extents.type&&b.extents.type==="fixed"&&Array.isArray(b.extents.values)&&a.Lk(b.extents.values)} function jt(a,b){b.layout&&(b=b.layout,b.type&&b.type==="fixed"&&b.size!==void 0&&a.eh(+b.size))} function ft(a){var b=a.type.toLowerCase();if(lt[b])return lt[b];throw Error("Invalid axis scale: "+a.type);} Od("aplos.chart.AxisSpecParser",dt);dt.prototype.createMeasureAxisForSpec=dt.prototype.hj;dt.prototype.createDomainAxisForSpec=dt.prototype.fj;var lt={linear:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:ni(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:ni(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:ni(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:zr(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 mt(){} Uc(mt,dt);Od("aplos.chart.OldAxisSpecParser",mt);var nt=new dt;bt.current=nt;function ot(){} ot.prototype.he=function(){};ot.prototype.Ud=function(){};Od("aplos.chart.ShapeRenderer",ot);function pt(a,b,c){this.N=c!==void 0?c:!1;this.O=b!==void 0?b:!0;this.ha=a;this.ka="0.6ex"} v=pt.prototype;v.he=function(a,b,c,e,f,h,n){var r=(this.ha+" "+b).trim();a=a.append("g").attr("class",r);this.Cc(a);a.append("text");this.Ud(a,b,c,e,f,h,n)};v.Ud=function(a,b,c,e,f,h,n){var r=n.strokeWidth!=null?n.strokeWidth:2,t=this.O?"white":h,x=this.Nc(a);x.size()<1&&(x=ek(a.node()),b=(this.ha+" "+b).trim(),x.attr("class",b),x.selectAll("*").remove(),this.Cc(x),x.append("text"),x=this.Nc(a));a=a.select("text");this.Uc(x,a,c,e,f,this.O,r,h,t,this.N?n.label:null)};v.Cc=function(){};v.Nc=function(){};v.Uc=function(){};function qt(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");Cj(b,c);b.style("fill",h);b.style("font-size",f*1.25+"px");b.text(n)} Od("aplos.chart.shaperenderer.BaseLabelShape",pt);function rt(){pt.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Uc(rt,pt);rt.prototype.Cc=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")};rt.prototype.Nc=function(a){return a.select("g.aplos-box-triangle-right-shape")};rt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){var A=a.select(".primary");if(A.size()<1)throw Error("No primary path found in update selection");var la=a.select(".secondary");if(la.size()<1)throw Error("No secondary path found in update selection");var ma=f*2,ra=ma/16;Cj(a,{fill:r,width:ma+"px",height:ma+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});Cj(A,{rx:2,ry:2,width:f*2,height:f*2,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});Cj(la,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ ra+")"});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.BoxTriangleRight",rt);function st(a,b){pt.call(this,"aplos-circle-shape-group",a,b)} Uc(st,pt);st.prototype.Cc=function(a){a.append("circle").attr("class","aplos-circle-shape")};st.prototype.Nc=function(a){return a.select("circle.aplos-circle-shape")};st.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){Cj(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Circle",st);function tt(){} tt.prototype.he=function(a,b,c,e,f,h,n,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Ud(a,b,c,e,f,h,n,r,t)};tt.prototype.Ud=function(a,b,c,e,f,h,n,r,t){Cj(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:h,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.Cylinder",tt);function ut(a,b){pt.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Uc(ut,pt);ut.prototype.Cc=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};ut.prototype.Nc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};ut.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){var A=.866*f;Cj(a,{points:c+","+(e-A)+" "+(c+f+","+(e+A)+" ")+(c-f+","+(e+A)),fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});qt(this,b,c,e+f-A,f,t,x)};Od("aplos.chart.shaperenderer.EquilateralTriangle",ut);function vt(){pt.call(this,"aplos-error-shape-group",!0,!1)} Uc(vt,pt);vt.prototype.Cc=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};vt.prototype.Nc=function(a){return a.select("g.aplos-error-shape")};vt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){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 A=f*2,la=2,ma=2;if(A>36){var ra="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 ta=40;ma=la=4}else A>24?(ra="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",ta=30,ma=la=3):A>20?(ra="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",ta=20,ma=la=2.5):A>18?(ra="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",ta=40):(ra="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",ta=16,ma=la=1);ta=A/ta;Cj(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f-la)+", "+(e-f-ma)+")"});Cj(h,{d:ra,transform:"scale("+ta+")"});Cj(n,{cx:f+la,cy:f+ma,r:f*.95,fill:"white","stroke-width":"0"});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.ErrorShape",vt);function wt(a,b,c){pt.call(this,"aplos-oval-shape-group",b,c);this.v=a||1} Uc(wt,pt);wt.prototype.Cc=function(a){a.append("ellipse").attr("class","aplos-oval-shape")};wt.prototype.Nc=function(a){return a.select("ellipse.aplos-oval-shape")};wt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){Cj(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});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Oval",wt);function xt(){pt.call(this,"aplos-pause-shape-group",!0,!1)} Uc(xt,pt);xt.prototype.Cc=function(a){a=a.append("g").attr("class","aplos-pause-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};xt.prototype.Nc=function(a){return a.select("g.aplos-pause-shape")};xt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){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 A=f*2,la=1.5,ma=1.5;A>36?ma=la=4:A>24?ma=la=3:A>20?ma=la=2.5:A>18&&(ma=la=2);var ra=A/40;Cj(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f-la)+", "+(e-f-ma)+")"});Cj(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("+ra+")"});Cj(n,{cx:f+la,cy:f+ma,r:f*.9,fill:"white","stroke-width":"0"});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.PauseShape",xt);function yt(a,b,c){pt.call(this,"aplos-rect-shape-group",b,c);this.v=a||1} Uc(yt,pt);yt.prototype.Cc=function(a){a.append("rect").attr("class","aplos-rect-shape")};yt.prototype.Nc=function(a){return a.select("rect.aplos-rect-shape")};yt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){var A=this.v>1?f/this.v:f,la=this.v>=1?f:f*this.v;Cj(a,{x:c-A,y:e-la,rx:2,ry:2,width:A*2,height:la*2,fill:h?r:"white",stroke:h?null:r,"stroke-width":h?"0":n});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Rect",yt);function zt(){} zt.prototype.he=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.Ud(a,b,c,e,f,h,n,r,t)};zt.prototype.Ud=function(a,b,c,e,f,h,n,r,t){Cj(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"butt",stroke:h,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.RectangleRange",zt);function At(){pt.call(this,"aplos-refresh-shape-group",!0,!1)} Uc(At,pt);At.prototype.Cc=function(a){a=a.append("g").attr("class","aplos-refresh-shape");a.append("path").attr("class","primary");a.append("path").attr("class","secondary")};At.prototype.Nc=function(a){return a.select("g.aplos-refresh-shape")};At.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){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 A=f*2;if(A>36){var la="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 ma=48}else A> 24?(la="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",ma=36):A>20?(la="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",ma=24):A>18?(la="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",ma=20):(la="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",ma=18);Cj(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f)+", "+(e-f)+") scale("+A/ma+")"});Cj(h,{d:la});Cj(n,{d:"M0 0h"+A+"v"+A+"H0z",fill:"none"});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Refresh",At);function Bt(){pt.call(this,"aplos-warning-shape-group",!0,!1)} Uc(Bt,pt);Bt.prototype.Cc=function(a){a=a.append("g").attr("class","aplos-warning-shape");a.append("polygon").attr("class","secondary");a.append("path").attr("class","primary")};Bt.prototype.Nc=function(a){return a.select("g.aplos-warning-shape")};Bt.prototype.Uc=function(a,b,c,e,f,h,n,r,t,x){var A=a.select(".primary");if(A.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 la=f*2,ma=2;n=1;if(la>36){var ra="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z";var ta=44}else la>24?(ra="M1 32h34L18 3 1 32zm18-5h-2v-2h2v2zm0-5h-2v-7h2v7z",ta=32):la>20?(ra="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ta=20):la>18?(ra="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ta=20):(ra="M.5 16h17L9 1 .5 16zm9.5-2H8v-2h2v2zm0-3H8V7h2v4z",ta=16,ma=1,n=0);ta=la/ta;Cj(a,{fill:r,width:la+"px",height:la+"px",viewBox:"0 0 "+la+" "+la,transform:"translate("+(c-f-ma)+", "+(e-f-n)+")"});Cj(A,{d:ra,transform:"scale("+ta+")"});a=.866*f*.95;r=f*.95;ma=f+ma;n=f+n;Cj(h,{points:ma+","+(n-a)+" "+(ma+r+","+(n+a)+" ")+(ma-r+","+(n+a)),fill:"white","stroke-width":"0"});qt(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.WarningShape",Bt);function Ct(a,b){return new st(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createCircleRenderer",Ct);function Dt(){return new tt} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createCylinderRenderer",Dt);function Et(a,b){return new ut(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createEquilateralTriangleRenderer",Et);function Ft(){return new vt} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createErrorRenderer",Ft);function Gt(a,b,c){return new wt(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createOvalRenderer",Gt);function Ht(){return new xt} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createPauseRenderer",Ht);function It(a,b,c){return new yt(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRectRenderer",It);Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRectangleRangeRenderer",function(){return new zt});function Jt(){return new At} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRefreshRenderer",Jt);function Kt(a,b){return It(1,a,b)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createSquareRenderer",Kt);function Lt(){return new Bt} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createWarningRenderer",Lt);function Mt(){return new rt} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createBoxTriangleRightRenderer",Mt);Od("aplos.chart.shaperenderer.ShapeRendererFactory",function(){});function Nt(){this.v=Dt()} v=Nt.prototype;v.Nb=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};v.distance=function(a){var b=a.x325E11;e.forEach(function(ta){var sa=ta.domain;ta.time=sa<325E11?sa*1E3:sa;ta.displayName=a.name;ta.description=ta.datum.description;ta.chartX=Ep(h,n?ta.time:ta.time/1E3);ta.chartY=0;sa=b.Ed()||lu;ta.label=sa(ta.time)},this);e.sort(function(ta,sa){return ta.Za-sa.Za});var r=[];if(e.length>0){var t;for(t=0;t=0){var x={Ib:e[t],kb:[]};r.push(x);break}for(t+=1;tf.Ya())break;A.Za>x.Ib.Za+100?(x.nd=A.Za-x.Ib.Za,x={Ib:A,kb:[]},r.push(x)):x.kb.push(A)}if(!x)return;if(x.Ib.Za+60>f.Ya()){x.Rl=!0;x.kb.length>0&&(e=x.kb.pop(),x.kb.unshift(x.Ib),x.Ib=e);var la=r[r.length-2],ma=x;if(la&&la.Ib.Za+la.nd>ma.Ib.Za-100){var ra=(ma.Ib.Za-la.Ib.Za)/2+la.Ib.Za;x=ma.kb;e=la.kb;ma.kb=[];la.kb=[];e.forEach(function(ta){ta.chartX> ra?ma.kb.push(ta):la.kb.push(ta)});x.forEach(function(ta){ta.chartX>ra?ma.kb.push(ta):la.kb.push(ta)});la.nd=ra-la.Ib.Za;ma.nd=ma.Ib.Za-ra;la.nd<60&&(ma.nd+=la.nd,ma.kb=[la.Ib].concat(la.kb).concat(ma.kb),r.splice(r.length-2,1))}}else x.nd=f.Ya()-x.Ib.Za}c.Bj=r;gp(b,c)}};v.render=function(a,b,c){var e=b.Jb();b=gp(b);if(b.Bj&&b.Vq)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.Ya()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.Bj),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=ek(this),n=f.Ib,r=f.Rl,t=f.nd-4-10;Cj(h,{transform:"translate("+n.Za+", 0)"});var x=h.select(".text-holder");x.append("text").classed("annotation-title",!0);x.append("text").classed("date",!0);x.append("text").classed("subdominant-additional-text",!0);x.attr("transform","translate("+(r?"-":"")+4+", 10)");var A=x.select("text.annotation-title").text(n.description);ik(A.node(),t);A.attr("dy","1em");jk(A.node(),n.description);A=x.select("text.date").text(n.label);ik(A.node(),t);A.attr("dy","2.15em");jk(A.node(),n.label);var la=f.kb.length>0;A=h.select("text.subdominant-additional-text");if(la){la="+ "+f.kb.length+" more";A=A.text(la);ik(A.node(),t);var ma="";f.kb.forEach(function(ra){ma+=ra.label+" "+ra.description+"\n"});jk(A.node(),ma);Cj(A,{dy:"3.30em",display:null})}else A.attr("display","none");x.selectAll("text").attr("text-anchor",rk(r?"right":"left"));f.kb.length>0&&(t=h.select("line.range-line"),x=Pr(f.kb,function(ra){return Math.abs(n.Za-ra.Za)}),Cj(t,{x1:(r?"-":"")+x,transform:"translate(0, 60)","pointer-events":"none"}));r=h.select("line.marker-line");Cj(r,{y2:60+e.vb(),"pointer-events":"none"});f=h.selectAll(".subdominant-lines").selectAll("line").data(f.kb);f.exit().remove();f=f.enter().append("line").merge(f);h=60+e.vb();Cj(f,{y1:60,y2:h,x1:function(ra){return ra.Za-n.Za},x2:function(ra){return ra.Za-n.Za},"pointer-events":"none"})}),c;else c.selectAll("*").remove()};v.re=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")};v.ej=function(){};v.te=function(){return!1};v.ud=function(){return-10};v.Kd=function(a){return a instanceof ku};v.td=function(){};v.ke=function(){};v.yb=function(){};function lu(a){return Cr("%b %e")(a/1E3)} Od("aplos.chart.renderer.Annotation",ku);var mu={fl:0,iq:1};Od("google3.javascript.visualization.aplos.v2_0.chart.common.renderer.series.arclabelutils.ArcLabelPosition",mu);mu.INSIDE=0;mu.OUTSIDE=1;function nu(a,b,c,e){this.Ab=a;this.N=ou(b);this.Va=c;this.O=!!e;this.v=0} function pu(a,b,c,e,f,h){var n=qu().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,x){t=n.centroid(t);r[x].offset=[Math.round(t[0]-r[x].start[0]),Math.round(t[1]-r[x].start[1])]});f&&h||(n.innerRadius(n.innerRadius()()+e),b.forEach(function(t,x){t=n.centroid(t);r[x].jd=[Math.round(t[0]-r[x].start[0]),Math.round(t[1]-r[x].start[1])]}));return{position:c,padding:e,Pf:f,me:h,data:r}} nu.prototype.Tg=function(a){if(a==null)return this.v;this.v=a;return this};nu.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Ab.data[c]]},this));ru(this,a.enter())};function ru(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.Va?b.transition().delay(a.Va).duration(a.Va).style("opacity","1"):b.style("opacity","1");a.O&&!rf?su(a,b):tu(a,b);uu(a,b);vu(b);b.filter(function(){return!ek(this).select(".arc-label").text()}).style("display","none")} function su(a,b){var c=a.Ab.Pf,e=a.Ab.me,f=a.Ab.position,h=a.Ab.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(Gk(a.N));b.each(function(n){var r=this.getBoundingClientRect(),t=Math.round(r.width);r=Math.round(r.height);var x=ek(this.parentNode.parentNode.parentNode);if(c&&e){var A=n.offset[0];var la=n.offset[1]}else A=n.jd[0],la=n.jd[1];n=A===0?-(t/2):A>0?0:-t;A=f!=0?A===0?la>0?0:-r:-(r/2):-(r/2);x.attr("width",t+"px").attr("height",r+"px").attr("transform","translate("+[n,A]+")")});a.Va?b.transition().delay(a.Va).duration(a.Va).style("opacity",1):b.style("opacity",1)} function vu(a){var b=null,c=[];a.each(function(f){var h=ek(this),n=h.select(".arc-label").node().getBoundingClientRect();n=new cu(n.left,n.top,n.width,n.height);var r=h.select(".arc-leader-line-tail");r.empty()||(r=r.node().getBoundingClientRect(),eu(n,new cu(r.left,r.top,r.width,r.height)));r=f.datum.startAngle;(f.datum.endAngle+r)/2Math.PI&&du(f.rect,b)?f.le.style("display","none"):(f.le.style("display",""),e=f.rect)})} function tu(a,b){var c=a.Ab.Pf,e=a.Ab.me,f=a.Ab.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 rk(t!==0&&e?t>0?"start":"end":"middle",h).call(this,n,r)}).each(function(n,r){di(this,Gk(h)(n,r))})} function uu(a,b){var c=a.Ab.me;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 ou(a){return function(b,c){return a(b.datum,c)}} ;function wu(a,b,c){this.Ab=a;this.N=xu(b);this.Va=c;this.v=0} wu.prototype.Tg=function(a){if(a==null)return this.v;this.v=a;return this};wu.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Ab.data[c]]},this));yu(this,a.enter())};function yu(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+")"});zu(a,b);Au(a,b);b.empty()||(Bu(a,b),Cu(b),Fk(b).filter(function(){return!ek(this).select(".arc-label").text()}).style("display","none"))} function zu(a,b){var c=a.Ab.Pf,e=a.Ab.me,f=a.Ab.position,h=a.Ab.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var x=h;t!==0&&r!==0&&(x+=e);x=t===0?0:t>0?x:-x;var A=f===1&&t===0?r<0?-h:h:0}else t=r.jd[0],r=r.jd[1],A=x=0;return"translate("+[t+x,r+A]+")"});var n=b=Bk(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",Du(a,f)).append("div").classed("arc-label",!0).style("opacity",0).each(Nd(Eu,a.N));b.each(Nd(function(r,t){r=ek(this);var x=r.select(".arc-label"),A=x.node();ck(A,null,null,!0);if(c&&e){var la=t.offset[0];t=t.offset[1]}else la=t.jd[0],t=t.jd[1];x.style("text-align",la===0?"center":la>0?"left":"right");x=A.getBoundingClientRect();cw(f,r,new cu(la,t,x.width,x.height))},a));b=b.select(".arc-label");a.Va?b.transition().delay(a.Va).duration(a.Va).style("opacity","1"):b.style("opacity","1")} function Eu(a,b,c){a=a(b,c,!0);var e=this;Array.isArray(a)?a.forEach(function(f){e.appendChild(f)}):ek(e).text(a)} function Du(a,b){return cj(mu,function(c){return c===b},a).toLowerCase()} function cw(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 Cu(a){var b=null,c=[];a.each(function(f){var h=ek(this),n=Fk(h.select("g"));if(n.style("display")!=="none"){var r=n.select(".arc-label").node().getBoundingClientRect();r=new cu(r.left,r.top,r.width,r.height);var t=h.select(".arc-leader-line-tail");t.empty()||(t=t.node().getBoundingClientRect(),eu(r,new cu(t.left,t.top,t.width,t.height)));t=f.datum.startAngle;(f.datum.endAngle+t)/2Math.PI&&du(f.rect,b)?(f.le.style("display","none"),f.Ph.style("display","none")):(f.le.style("display",""),f.Ph.style("display",""),e=f.rect)})} function Bu(a,b){var c=Ck(b).node().getBoundingClientRect();b.each(Nd(function(e,f){var h=ek(this),n=Fk(h.select("g")),r=n.select(".arc-label").node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,x=Math.ceil(f.left-r.left)+5,A=(t>0?t:0)+(x>0?x:0);A&&(t=ek(n.node()),r=Math.ceil(r.width-A),r>0&&(t.style("width",r+"px"),x>0&&(x=+t.attr("data-translate-y"),t.select(".arc-label").style("left",-r+"px").style("top",x+"px"))),t.select(".arc-label").style("max-width",Math.ceil(r)+"px"),r=n.select(".arc-label").node().getBoundingClientRect(),cw(e.Ab.position,t,new cu(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 Au(a,b){var c=a.Ab.me;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.Va?b.selectAll("line").transition().delay(a.Va).duration(a.Va).style("opacity","1"):b.selectAll("line").style("opacity","1")} function xu(a){return function(b,c,e){return a(b.datum,c,e)}} ;function dw(a,b){this.N=qu().outerRadius(a).innerRadius(b);this.v=ew();this.ya=!0;this.oa=70;this.ma=10;this.ta=20;this.ka=this.ha=0;this.Ha=!1;this.Ka=!0;this.na=this.O=!1;this.Aa=Bl} v=dw.prototype;v.innerRadius=function(a){return a==null?this.Hd():this.Bk(a)};v.Bk=function(a){this.N.innerRadius(a);return this};v.Hd=function(){return this.N.innerRadius()()};v.outerRadius=function(a){return a==null?this.Ve():this.Nk(a)};v.Nk=function(a){this.N.outerRadius(a);return this};v.Ve=function(){return this.N.outerRadius()()};v.startAngle=function(a){a==null?a=this.v.startAngle()():(this.v.startAngle(a),a=this);return a};v.endAngle=function(a){a==null?a=this.v.endAngle()():(this.v.endAngle(a),a=this);return a};v.Uq=function(a){a==null?a=this.na:(this.na=a,a=this);return a};v.Ko=function(a){return a==null?this.ya:this.Ci(a)};v.Ci=function(a){this.ya=a;return this};v.bn=function(){return this.ya};v.Od=function(a){this.Aa=a;return this};v.Pf=function(a){return a==null?this.oa:this.ni(a)};v.ni=function(a){this.oa=a;return this};v.Jm=function(){return this.oa};v.me=function(a){return a==null?this.ta:this.oi(a)};v.oi=function(a){this.ta=a;return this};v.Km=function(){return this.ta};v.En=function(a){return a==null?this.ma:this.mi(a)};v.mi=function(a){this.ma=a;return this};v.Hm=function(){return this.ma};v.Fn=function(a){return a==null?this.rd():this.Ob(a)};v.Ob=function(a){this.ha=a;return this};v.rd=function(){return this.ha};v.Tg=function(a){return a==null?this.ka:this.ui(a)};v.ui=function(a){this.ka=a;return this};v.Rm=function(){return this.ka};v.Ol=function(a){return a==null?this.O:this.hi(a)};v.hi=function(a){this.O=a;return this};v.vm=function(){return this.O};v.Xc=function(){};v.Nb=function(){};v.render=function(a,b,c,e){if(this.Ha){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=fw(c);var h=gw(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=hw(b.key());n=n.selectAll(".arc-border").data(h,c);var r=ek(null),t=null,x=n.exit();h.length>0&&h[h.length-1].endAngle>0?(r=a.selectAll(".arc").data(h,c),t=r.exit(),r=iw(this,r,h,f,b),n=jw(this,n,h,f,b)):(a=kw(this,h,f,a,b),t=a.exit,r=a.update,f.length||(e=0));lw(this,r,n,h,b,e);mw(this,t,x,h,f,b,e);n.attr("visibility",Md(function(){return this.na&&h.length<=1?"hidden":null},this));return r};v.re=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);rl(e,function(){return c.color()(a,b)})};v.td=function(a,b,c,e){var f=new Gj(c,e),h=this.Ve(),n=this.Hd(),r=Hj(f,new Gj(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=gw(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=nw(this,a,b,r.data||{},n,c,e);break}return t};function nw(a,b,c,e,f,h,n){var r=c.measure(),t=c.domain(),x=c.color(),A=gw(a,b,c)[f];var la=A.startAngle-Math.PI/2;var ma=A.endAngle-Math.PI/2;A=a.Ve();var ra=a.Hd();la=(la+ma)/2;A=ra+(A-ra)/2;la=new Gj(Math.round(Math.cos(la)*A),Math.round(Math.sin(la)*A));ra=c.Jb();A=la.x+ra.Ya()/2;ra=la.y+ra.vb()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:la.x,datumY:la.y,chartX:A,chartY:ra,color:x(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.yb(b,h,n)} v.yb=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};gj(e,a);b!=void 0&&c!=void 0&&(e.relativeDistance=Hj(new Gj(e.datumX,e.datumY),new Gj(b,c)));return e};v.ke=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=hw(f.key());e=e.selectAll(".arc").data(b,h);h=e.enter().append("g").attr("class","arc");var n=hw(f.key());h.append("path").classed("pieSegment",!0).classed("empty-pie",!0).each(Nd(function(r,t,x){r=ow(r,x,b,c,n);this.N={startAngle:r,endAngle:r}},a));return{exit:e.exit(),update:h.merge(e)}} function iw(a,b,c,e,f){var h=b.enter().append("g").attr("class","arc"),n=h.append("path").classed("pieSegment",!0).attr("data-id",hw(f.yh()));rl(n,hw(f.color()));var r=hw(f.key());n.each(Nd(function(t,x,A){t=ow(t,A,c,e,r);this.N={startAngle:t,endAngle:t}},a));return h.merge(b)} function jw(a,b,c,e,f){var h=b.enter().append("line").classed("arc-border",!0).attr("x1",0).attr("x2",0),n=hw(f.key());h.each(Nd(function(r,t,x){this.O=ow(r,x,c,e,n)},a)).attr("transform",Nd(function(){return pw(this.O)},a));return h.merge(b)} function lw(a,b,c,e,f,h){var n=Xn(f,"datumHoverState")?f.od():function(){return 0},r=Xn(f,"datumClickState")?f.be():function(){return 0},t=b,x=b;c.attr("y1",a.Hd()>0?-a.Hd()+1:0).attr("y2",a.Ve()>0?-a.Ve()-1:0);h&&(b=b.transition().duration(h),c=c.transition().duration(h));var A=f.color(),la=b.select("path");rl(la,function(ta,sa){return a.Aa(A(ta.data,sa),n(ta.data,sa),r(ta.data,sa)).color});var ma=f.Je();b.each(function(ta,sa){var Aa=ek(this);typeof ma==="function"?(ta=ma(ta.data,sa))&&typeof ta==="string"||(ta=""):ta=ma;(sa=Aa.attr("data-user-classes"))&&Aa.classed(sa||"",!1);ta&&Aa.classed(ta,!0);Aa.attr("data-user-classes",ta)});var ra=!a.Ka||yf||zf?null:zl(f.Jb().hb.node());h?b.select("path").attrTween("d",qw(a.N)):b.select("path").attr("d",a.N).each(function(ta){this.N={startAngle:ta.startAngle,endAngle:ta.endAngle};var sa=ek(this);sa.classed("empty-pie")&&sa.attr("color",null);ta.endAngle-ta.startAngle<1E-7?sa.style("display","none"):sa.style("display","")});x.each(function(ta,sa){var Aa=ek(this),xa=Aa.select("path"),za=n(ta.data,sa);ta=r(ta.data,sa);Aa.classed("highlight",za>0);Aa.classed("inverse-highlight",za<0);Aa.classed("selected",ta>0);Aa.classed("inverse-selected",ta<0);xa.attr("filter",za>0?ra: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.Im,a,f),e=pu(a.N,e,a.ha,a.ma,a.oa,a.ta),f=null,zk()?f=new wu(e,b,h):f=new nu(e,b,h,a.O),f.Tg(a.ka).render(t));h?c.attrTween("transform",Md(function(ta,sa,Aa){return rw(Aa,pw(ta.startAngle))},a)):c.attr("transform",Md(function(ta){return pw(ta.startAngle)},a))} function mw(a,b,c,e,f,h,n){if(n){b=b.transition().duration(n);var r=hw(h.key());h=a.N;b.select("path").attrTween("d",sw(a,h,e,f,r));c=c.transition().duration(n);c.attrTween("transform",function(t,x){x=Pe(f,t);t=tw(a,x,e,f,r);return rw(this.getAttribute("transform"),pw(t))})}b.remove();c.remove()} v.Im=function(a,b,c,e){b=b.data;return Xn(a,"label")?a.label()(b,c,e):(a.Ed()||em)(a.domain()(b,c))};function gw(a,b,c){var e=c.measure();a.v.value(e);a.ya?a.v.sort(function(f,h){return uw(e(f),e(h))}):a.v.sort(null);return a.v(b.data)} function pw(a){return"rotate("+(a||0)*180/Math.PI+")"} function qw(a){return function(b){var c=vw(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 sw(a,b,c,e,f){var h=qw(b);return Nd(function(n,r){r=Pe(e,r);n=tw(n,r,c,e,f);return h.call(this,{startAngle:n,endAngle:n})},a)} function ow(a,b,c,e,f){for(--b;b>=0;b--)for(var h=f(c[b],b),n=0;n0:r.measureSize<=0,t),A=r.domainPosition+r.domainSize/2;x=r.measurePosition+r.measureSize+(f?-1:1)*x;switch(this.v){case "vertical":if(h){var la=-1*x;var ma=".32em"}else la=A,A=-1*x,ma=this.N==="middle"?".32em":null;break;default:h?(la=A,A=x,ma=null):(la=x,ma=".32em")}t=(t=r.validValue&&(this.N==="above"||t>=this.ka))&&(h?x<=e:x>=c);r.barLabel={domainPosition:la,measurePosition:A,valid:t,dy:ma,"text-anchor":Bw(this,b),"dominant-baseline":Cw(this,b)}}};function Bw(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 Cw(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");}} v.add=function(a){a.append("text").attr("class","bar-label")};v.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=ek(this),x=r.valid?1:0,A=null,la=n.barLabel;if(h.N==="above"){var ma=n.chartX;la=n.chartY}else h.v==="vertical"?f?(ma=la.measurePosition,la=-1*la.domainPosition):(ma=-1*la.measurePosition,la=la.domainPosition):(ma=la.domainPosition,la=la.measurePosition);ma=new Gj(ma,la);r.valid&&e.contains(ma)||(A="none");t.text(n.label);b&&(t=t.transition().duration(b));switch(h.v){case "vertical":ma= c==="y"?"rotate(-90)":"rotate(90)";break;default:ma=null}Cj(t,{x:r.domainPosition,y:r.measurePosition,dy:r.dy,opacity:x,display:A,"dominant-baseline":r["dominant-baseline"],transform:ma});t.attr("text-anchor",rk(r["text-anchor"],n.label));t.style("fill",h.O)}})};v.remove=function(a){a.selectAll(".bar-label").remove()};v.Zf=function(){return!0};ww.prototype.getMinBarLength=ww.prototype.Pm;ww.prototype.setMinBarLength=ww.prototype.ti;ww.prototype.getLabelPosition=ww.prototype.rd;ww.prototype.setLabelPosition=ww.prototype.Ob;ww.prototype.getLabelOrientation=ww.prototype.Gm;ww.prototype.setLabelOrientation=ww.prototype.Dk;ww.prototype.getLabelColor=ww.prototype.Pe;ww.prototype.setLabelColor=ww.prototype.Zc;ww.prototype.getLabelOffsetFunction=ww.prototype.Fm;ww.prototype.setLabelOffsetFunction=ww.prototype.kf;function xw(a,b){return a?-4:-b-4} function yw(a,b){return a?b-4:-4} function zw(a,b){return a?b/2:-b/2} function Aw(a,b){return a?4:-b+4} Od("module$exports$aplos$chart$renderer$BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});Od("module$exports$aplos$chart$renderer$BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Dw(){fu.call(this);this.oa=this.Ra=2;this.ka=null;this.ta=0;this.Aa=this.ha=1;this.ma=this.La=null;this.N=this.Xa=this.Ha=0;this.v=new ww;this.ya=[this.v,new Ot];this.ab=Bl;this.Qb=null} Uc(Dw,fu);function Ew(a,b){a.ya.push(b);return a} function Fw(a,b){Ve(a.ya,a.v);a.v=b;Ew(a,a.v)} v=Dw.prototype;v.dm=function(){return this.v};v.Io=function(a){this.Xa=a;return this};v.lo=function(a){this.N=a;return this};v.em=function(){return this.N};v.Od=function(a){this.ab=a;return this};v.wl=function(a){return arguments.length&&a!=null?this.Nd(a):this.Gc()};v.strokeWidth=function(a){return arguments.length&&a!=null?this.Td(a):this.Lf()};v.Td=function(a){this.Ha=a;return this};v.Lf=function(){return this.Ha};v.stack=function(a){return arguments.length&&a!=null?this.Sd(a):this.Xe()};v.Sd=function(a){this.hg(a?2:1);return this};v.Xe=function(){return this.ha===2};v.hg=function(a){this.ha=a;return this};v.zm=function(){return this.ha};v.Lo=function(a){return arguments.length&&a!=null?this.Di(a):this.Aa};v.Di=function(a){this.Aa=a;return this};v.en=function(){return this.Aa};v.Rg=function(a){return arguments.length&&a!==void 0?this.fh(a):this.ma};v.fh=function(a){this.ma=Math.max(0,a);return this};v.Om=function(){return this.ma};v.Mk=function(a){this.La=Math.max(0,a);return this};v.Qm=function(){return this.La};v.xl=function(a){return arguments.length&&a!=null?this.mk(a):this.oa};v.mk=function(a){this.oa=a;return this};v.Zl=function(){return this.oa};v.nn=function(){return this.ka};v.Tk=function(a){this.ka=a;return this};v.yl=function(a){return arguments.length&&a!=null?this.qk(a):this.ta};v.qk=function(a){this.ta=a;return this};v.bm=function(){return this.ta};v.co=function(a){return arguments.length&&a!=null?this.zi(a):this.Ra};v.zi=function(a){this.Ra=a;return this};v.Wm=function(){return this.Ra};v.ud=function(){return-10};v.Kd=function(a){return a instanceof Dw};v.oo=function(a){this.Qb=a;return this};v.Xc=function(a,b){var c=new Map,e=new Map,f=new Map,h=this.ha;ju(this,a,b);for(var n=0,r=0;r=0?c:e;Aa=Ba.get(xa);Aa||(Aa=new Map,Ba.set(xa,Aa));xa=Aa.get(la);(Ba=Aa.get(ma))&&(sa.barStackIndex=Ba.barStackIndex+1);sa.cumulativeTotal=za||0;za=sa.measureOffset||0;xa&&sa.measure!==null&&(za+=xa.measure+xa.measureOffset,sa.cumulativeTotal+=xa.cumulativeTotal,sa.measure!=0&&(xa.roundedCorners=!1,this.Gc()=="stackTotal"&&(xa.label="")));sa.measureOffset=za;Aa.set(ma,sa);sa.validValue&&sa.measure!=0?Aa.set(la,sa):(sa.roundedCorners=!1,this.Gc()=="stackTotal"&&(sa.label=""))}n=Math.max(n,sa.barStackIndex+1);Gw(this,sa,t)}ra&&t.Lc(Hw(this,x));ma=t.Jb()!=null?zl(t.Jb().hb.node()):null;gp(t,{barData:x,barGroupIndex:A,barGroupCount:this.ha===1?b.length:1,highlightShadowUrl:ma,barStackKey:la})}if(this.ha===3){var Ea=f.size;b.forEach(function(Da){gp(Da).barGroupCount=Ea;gp(Da).maxBarStackSize=n})}b.length>0&&(a=b[0].Jb(),gu(this)=="x"&&a.je&&a.Vc&&b.forEach(function(Da){Da=gp(Da);Da.barGroupIndex=Da.barGroupCount-1-Da.barGroupIndex}))};function Gw(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.Ha;if(a.Gc())switch(a.Gc()){case "cumulativeTotal":case "stackTotal":b.validValue&&b.cumulativeTotal!=null&&b.measure!==0?(a=b.cumulativeTotal,c=c.Tb()||em,b.label=c(a)):b.label="";break;case "measureValue":b.validValue&&b.measure!==0?(c=c.Tb()||em,b.label=c(b.measure)):b.label=""}} v.Nb=function(a,b){var c=gp(b),e=c.barData,f=b.zc(),h=b.ob(),n=Xn(b,"datumHoverState")?b.od():function(){return 0},r=Xn(b,"datumClickState")?b.be():function(){return 0},t=b.Jb();c.chartWidth=t.frameWidth();c.chartHeight=t.frameHeight();t=f.bandwidth();t=Math.max(t,1);var x=Iw(this,c.barGroupCount);c.barWeights=x;c.barWidth=Jw(c.barGroupCount,c.barGroupIndex,x,t,this.oa,this.La,this.ma,this.ta);c.barOffset=Kw(c.barGroupCount,c.barGroupIndex,x,t,this.oa,this.La,this.ma,this.ta);if(a.data.length==0)gp(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=iu(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,x=0;f.forEach(function(A){t=Math.min(t,A.domainPosition);x=Math.max(x,A.domainPosition+A.domainSize)},a);a=r.select("rect");h&&(a=a.transition().duration(h));a.attr("x",t).attr("y",0).attr("width",x-t).attr("height",e.chartHeight);c.attr("clip-path","url(#"+n+")")}} function Iw(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?Hi(c,t,r):Hi(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:Hj(new Gj(n,b),new Gj(a,c))}} v.re=function(a,b,c,e,f){var h=f.width;f=f.height;var n=e.append("g").attr("class","bar-group");e=c.Ec()(a,b);var r=Xn(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ha;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);rl(h,function(){return c.color()(a,b)},!0);e&&e.toLowerCase()!=="none"&&h.attr("fill","transparent")};function Ow(a){a=ek(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function Qw(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Xa){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function Lw(a,b,c,e,f){var h=c.measureOffset,n=c.measure+h,r=ks(f,h),t=ks(f,n);if($l(r)&&$l(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Aa);n?(n=h===0?Math.floor:Math.ceil,x=Math.ceil):(n=h===0?Math.ceil:Math.floor,x=Math.floor);r=n(r);t=x(t)}else t=r=null;n=Ep(e,c.domain);x=js(e,c.domain)+b.barOffset;var A=b.barWidth,la=r;r=t-r;var ma=t=void 0,ra=Math.min(A/2,Math.abs(r),c.strokeWidth);A-=ra;x+=ra/2;r+=(r>=0?-1:1)*ra/2;if(c.measureLowerBound!=null&& c.measureUpperBound!=null){var ta=c.measureLowerBound,sa=c.measureUpperBound;ta!=null&&sa!=null&&(t=ks(f,h+ta),ma=ks(f,h+sa))}a=gu(a)=="x";h=b.barWidth/2;b=js(e,c.domain)+b.barOffset+h;c=Ep(f,c.measure+c.measureOffset);return{barGroupCenter:n,chartX:a?b:c,chartY:a?c:b,domainPosition:x,domainSize:A,measurePosition:la,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:ma,strokeWidth:ra}} v.Gf=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};v.te=function(){return!0};v.Kg=function(a,b){b=gp(b);return b.barData==null?a.data:b.barData};Dw.prototype.getBarPath=Dw.prototype.Gf;Dw.prototype.setCssName=Dw.prototype.oo;Dw.prototype.getRoundingRadiusPx=Dw.prototype.Wm;Dw.prototype.setRoundingRadiusPx=Dw.prototype.zi;Dw.prototype.roundingRadiusPx=Dw.prototype.co;Dw.prototype.getBarHorizontalMargin=Dw.prototype.bm;Dw.prototype.setBarHorizontalMargin=Dw.prototype.qk;Dw.prototype.barHorizontalMargin=Dw.prototype.yl;Dw.prototype.setWeightPattern=Dw.prototype.Tk;Dw.prototype.getWeightPattern=Dw.prototype.nn;Dw.prototype.getBarGroupInnerPadding=Dw.prototype.Zl;Dw.prototype.setBarGroupInnerPadding=Dw.prototype.mk;Dw.prototype.barGroupInnerPadding=Dw.prototype.xl;Dw.prototype.getMinBarWidth=Dw.prototype.Qm;Dw.prototype.setMinBarWidth=Dw.prototype.Mk;Dw.prototype.getMaxBarWidth=Dw.prototype.Om;Dw.prototype.setMaxBarWidth=Dw.prototype.fh;Dw.prototype.maxBarWidth=Dw.prototype.Rg;Dw.prototype.getStackedBarPadding=Dw.prototype.en;Dw.prototype.setStackedBarPadding=Dw.prototype.Di;Dw.prototype.stackedBarPadding=Dw.prototype.Lo;Dw.prototype.getGroupingType=Dw.prototype.zm;Dw.prototype.setGroupingType=Dw.prototype.hg;Dw.prototype.getStack=Dw.prototype.Xe;Dw.prototype.setStack=Dw.prototype.Sd;Dw.prototype.stack=Dw.prototype.stack;Dw.prototype.getStrokeWidth=Dw.prototype.Lf;Dw.prototype.setStrokeWidth=Dw.prototype.Td;Dw.prototype.strokeWidth=Dw.prototype.strokeWidth;Dw.prototype.autoBarLabels=Dw.prototype.wl;Dw.prototype.setColorHighlightStrategy=Dw.prototype.Od;Dw.prototype.getBorderRenderingStrategy=Dw.prototype.em;Dw.prototype.setBorderRenderingStrategy=Dw.prototype.lo;Dw.prototype.setTransitionStrategy=Dw.prototype.Io;Dw.prototype.getBarLabelDecorator=Dw.prototype.dm;function Jw(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 Kw(a,b,c,e,f,h,n,r){var t=Math.floor((e-(r*2+f*(a-1)))/a),x=0;n&&t>n&&(x=Math.floor((t-n)*a/2));for(var A=t=0;A=0?c:e,ta=ra.get(la)||0;ra.set(la,ma+ta);A.measureOffset=ta}}this.v&&h.Lc(Ww(t));n=(n=h.Jb())?zl(n.hb.node(),0,4):null;gp(h,{lineData:t,lineIndex:f,numLines:b.length,highlightShadowUrl:n})}};function Ww(a){return function(b,c){return a[c].measureOffset}} v.Nb=function(a,b){var c=b.color(),e=b.Je(),f=iu(this)==="y",h=b.ob(),n=b.zc(),r=n.bandwidth(),t=this.ma!=null?this.ma*r:this.ta||0,x=Xn(b,"datumHoverState")?b.od():function(){return 0},A=gp(b),la=A.lineData,ma=A.numLines,ra=A.lineIndex,ta=this.v?r:Math.floor((r-this.ka*(ma-1))/ma),sa=Math.min(this.oa||Infinity,ta);r=Xw(this,ra,ma,sa,t);t=Yw(this,sa,ta,ra,ma,t);ma=t+r/2;A.chartWidth=b.Jb().frameWidth();A.chartHeight=b.Jb().frameHeight();if(a.data.length==0)gp(b).barData=[];else for(b=0;b0?(ra.lineClass+=" highlight",ra.filter=A.highlightShadowUrl):ta<0&&(ra.lineClass+=" inverse-highlight")};v.render=function(a,b,c,e){a=gp(b).lineData;var f=ks(b.ob(),0),h=this.N?"round":"butt";b=c.selectAll(".bar-target-line").data(a,function(x){return x.key});c=b.enter().append("line");a=b.exit();var n=c.merge(b),r=iu(this),t=gu(this);e&&(c.each(function(x){var A=ek(this);Cj(A,{display:x.validValue?null:"none","class":"bar-target-line "+x.lineClass,stroke:x.color,"stroke-linecap":h,"stroke-width":x.strokeWidth,"stroke-dasharray":x.dashPattern});mk(this,t+"1",x.domainPosition);mk(this,t+"2",x.domainPosition+x.domainSize);mk(this,r+"1",f);mk(this,r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.each(function(x,A,la){mk(la[A],r+"1",f)}),a.each(function(x,A,la){mk(la[A],r+"2",f)}));a.remove();n.each(function(x){var A=ek(this);e&&(A=A.transition(n));Cj(A,{display:x.validValue?null:"none","class":"bar-target-line "+x.lineClass,filter:x.filter,stroke:x.color,"stroke-linecap":h,"stroke-width":x.strokeWidth,"stroke-dasharray":x.dashPattern});mk(this,t+"1",x.domainPosition);mk(this,t+"2",x.domainPosition+x.domainSize);mk(this,r+"1",x.measurePosition);mk(this,r+"2",x.measurePosition)});return null};function Xw(a,b,c,e,f){a.v&&(c=1,b=0);return(b===0?f:0)+e+(b+1===c?f:0)} function Yw(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 Zw(a,b,c,e,f,h){var n=b.measureOffset,r=b.measure+n;$l(r)&&$l(n)||(r=0);n=Ep(h,r);var t=Ep(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};v.ke=function(a,b,c,e,f){a=f||[];if(b=gp(b).lineData)for(f=0;f0&&n>xa.chartX&&(h=!0);n=xa.chartX;cx(this,xa);xa.pointClass="";var za=t(xa.datum,Aa);za>0?xa.pointClass= (xa.pointClass+" highlight").trim():za<0&&(xa.pointClass=(xa.pointClass+" inverse-highlight").trim());za=x(xa.datum,Aa);za>0?xa.pointClass=(xa.pointClass+" selected").trim():za<0&&(xa.pointClass=(xa.pointClass+" inverse-selected").trim());ta&&(za=xa.domainOffset||0,A&&la&&(xa.domainLowerBound=A(xa.datum,Aa),xa.domainUpperBound=la(xa.datum,Aa),b||(xa.domainLowerBound+=za,xa.domainUpperBound+=za),xa.domainLowerBound!==null&&xa.domainUpperBound!==null&&(xa.domainLowerBoundPosition=ks(e,xa.domainLowerBound,null),xa.domainUpperBoundPosition=ks(e,xa.domainUpperBound,null),xa.errorBarColor=xa.color)),za=xa.measureOffset||0,xa.measureLowerBound=ma(xa.datum,Aa),xa.measureUpperBound=ra(xa.datum,Aa),sa||(xa.measureLowerBound+=za,xa.measureUpperBound+=za),xa.measureLowerBound!==null&&xa.measureUpperBound!==null&&(xa.measureLowerBoundPosition=ks(f,xa.measureLowerBound,null),xa.measureUpperBoundPosition=ks(f,xa.measureUpperBound,null),xa.errorBarColor=xa.color));xa.shapeRenderer=a(xa.datum,xa.index)}h&&r.sort(function(Ba,Ea){return Ba.chartX-Ea.chartX});c.Eb=r;this.v.Nb(r,iu(this),e,f)}};function bx(a,b,c){var e=a.ma;b.shapeRenderer&&(e=ax(b.shapeRenderer));return Yn(c,"shapeRenderer",function(f){return f.shapeRenderer?ax(f.shapeRenderer):e})} function cx(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}} v.render=function(a,b,c,e,f,h,n){a=ks(b.ob(),0);f=gp(b);var r=Xn(b,"datumHoverState")?b.od():function(){return 0};b=Xn(b,"datumClickState")?b.be():function(){return 0};var t=c.node();dx(this,f.Eb||[],t,a,e,h,n,r,b);return c.selectAll(".point-group")};function dx(a,b,c,e,f,h,n,r,t){if(b.length===0)ex(a,c,e,f);else{c=ek(c).selectAll(".point-group").data(b,function(sa){return sa.key});c.exit().remove();var x=c.enter().append("g").attr("class","point-group");c=x.merge(c);a.v.Zf()||a.v.add(x,f,h);var A=function(sa,Aa){var xa=+sa.radius;if(r(sa.datum,Aa)>0||t(sa.datum,Aa)>0)xa+=2;return xa},la=function(sa,Aa){var xa=r(sa.datum,Aa);Aa=t(sa.datum,Aa);return a.oa(sa.color,xa,Aa).color},ma=a.ma;x.each(function(sa,Aa){(sa.shapeRenderer||ma).he(ek(this),"point",sa.chartX,e,A(sa,Aa),la(sa,Aa),sa)});var ra=x.append("text").attr("class","point-label");switch(a.N){case 1:case 4:ra.attr("display",null).attr("text-anchor",rk("middle")).attr("alignment-baseline","middle");break;case 2:ra.attr("display",null).attr("text-anchor",rk("end")).attr("alignment-baseline","middle");break;case 3:ra.attr("display",null).attr("text-anchor",rk("start")).attr("alignment-baseline","middle");break;default:case 0:ra=c.select(".point-label"),ra.attr("display","none")}a.v.Zf()&&a.v.add(x,f,h);x.each(function(sa){sa= dj(sa);a.ha&&(sa.Sj=e);sa.radius=0;sa.br=sa.Sj;sa.cr=sa.Sj;sa=iu(a);a.v.update(ek(this),f,sa,n)});ra.style("fill",a.ka);h={display:function(sa){return sa.validValue?null:"none"},"class":function(sa){var Aa="point-group";sa.pointClass!==void 0&&(Aa=(Aa+" "+sa.pointClass).trim());sa.datumClass!==void 0&&(Aa=(Aa+" "+sa.datumClass).trim());return Aa}};b={dx:function(sa){return isNaN(sa.labelX)?null:sa.labelX},dy:e};var ta=c;f&&(Cj(x,h),ra&&Cj(ra,b),ta=c.transition().duration(f));c=ta.select(".point");c.attr("display",function(sa){return n.contains(new Gj(sa.chartX,sa.chartY))?null:"none"});c.each(function(sa,Aa){var xa=ek(this);f&&(xa=xa.transition().duration(f));(sa.shapeRenderer||ma).Ud(xa,"point",sa.chartX,sa.chartY,A(sa,Aa),la(sa,Aa),sa)});c=ta.select(".point-label");Cj(ta,h);b.dy=function(sa){return isNaN(sa.labelY)?null:sa.labelY};b.display=function(sa){return n.contains(new Gj(sa.chartX,sa.chartY))?null:"none"};switch(a.N){case 1:case 4:b["text-anchor"]=rk("middle");break;case 2:b["text-anchor"]=rk("end");break;case 3:b["text-anchor"]=rk("start");break;default:case 0:b.display="none"}c.text(function(sa){return sa.label});c.style("fill",a.ka);Cj(c,b);ta.each(function(){var sa=iu(a);if(f){var Aa=ek(this).transition(ta);a.v.update(Aa,f,sa,n)}else a.v.update(ek(this),f,sa,n)})}} function ex(a,b,c,e){a.v.remove(ek(b),c,e);a=ek(b).selectAll(".point-group");b=ek(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}},Cj(a,{display:function(f){return f.validValue?null:"none"}}),Cj(b,c));a.remove()} v.td=function(a,b,c,e,f,h){b=gp(b).Eb;a=null;for(var n=Number.MAX_VALUE,r=[],t=0;t0&&t>za.chartX&&(n=!0);t=za.chartX;cx(this.v,za);this.ya&&(ra&&ta&&(za.domainLowerBound= ra(za.datum,xa),za.domainUpperBound=ta(za.datum,xa),za.domainLowerBound!==null&&za.domainUpperBound!==null&&(Ba=za.domainOffset||0,za.domainLowerBound+=Ba,za.domainUpperBound+=Ba,za.domainLowerBoundPosition=ks(f,Ba+za.domainLowerBound),za.domainUpperBoundPosition=ks(f,Ba+za.domainUpperBound),za.errorBarColor=za.color)),za.measureLowerBound=sa(za.datum,xa),za.measureUpperBound=Aa(za.datum,xa),za.measureLowerBound!=null&&za.measureUpperBound!=null&&(Ba=za.measureOffset||0,za.measureLowerBound+=Ba,za.measureUpperBound+= Ba,za.measureLowerBoundPosition=ks(h,Ba+za.measureLowerBound),za.measureUpperBoundPosition=ks(h,Ba+za.measureUpperBound),za.errorBarColor=za.color));za.shapeRenderer=b(za.datum,za.index);za.strokeWidth=ma(za.datum,xa)}n&&x.sort(function(Ia,Ja){return Ia.chartX-Ja.chartX});var Ea=this.Ra?this.Ra(x,this):x;n=[];if(r)for(r=0;r0?(Oa+=2,Na+=" highlight"):Pa<0&&(Na+=" inverse-highlight");var Va=la(x[0].datum,0);Va>0?(Oa+=2,Na+=" selected"):Va<0&&(Na+=" inverse-selected");Da.push({color:Ja[0],Qg:Ja[1],Ec:Ja[2],Je:Ja[3],Ql:Ia,xc:Ea,ir:a.name,strokeWidth:Oa,Zq:Oa,Xq:Pa>0,Yq:Pa< 0,id:"lineclip"+il(),Nj:Na})},this)}e.Eb=x;e.Fj=n;e.Rf=Da;this.N&&this.v.v.Nb(x,iu(this),f,h)}};v.render=function(a,b,c,e,f,h,n){var r=ks(b.ob(),0),t=gp(b),x=c.node();if(a.data.length!==0||x!=null){var A=c.select("g");A.node()&&A.classed("area-segments")||Hk(x,'');var la=Sj(x);A=la[1];var ma=la[2],ra=la[3];x=la[4];la=la[5];nx(this,c,t.Rf,b);ox(this,t.Rf,A,r,e,h);px(this,t.Rf,ma,r,e,h);qx(this,t.Fj,ra,r,e,h);rx(this,t.Rf,la,r,e,h);this.N?this.v.render(a,b,ek(x),e,f,h,n):(b=b.Qh(),gp(b,{}),this.v.render({name:a.name,data:[]},b,ek(x),e,f,h,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function px(a,b,c,e,f,h){if(a.ka)if(b.length===0)sx(a,c,e,f);else if(ek(c).attr("clip-path",h),f){h=ek(c).selectAll(".line-series").data(b);h.exit().remove();b=ek(c).selectAll(".event-target").data(b);b.exit().remove();c=h.enter().append("path");Cj(c,{"class":function(t){return t.Nj},fill:"none"});h=c.merge(h);var n=b.enter().append("path");Cj(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=tx().defined(function(t){return t.validValue}).curve(a.ha).x(function(t){return t.chartX}).y(e);f&&(Cj(c,{stroke:function(t){return t.Qg},"stroke-dasharray":function(t){return t.Ec},d:function(t){return r(t.xc)},"stroke-width":function(t){return t.strokeWidth}}),h=h.transition().duration(f),Cj(n,{stroke:"transparent",opacity:"0",d:function(t){return r(t.xc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});Cj(h,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Ec},d:function(t){return r(t.xc)},"stroke-width":function(t){return t.strokeWidth}});Cj(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.xc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else ux(a,c,b),ek(c).selectAll(".line-series").data(b),ek(c).selectAll(".event-target").data(b);else Hk(c,"")} function ux(a,b,c){for(var e="",f=tx().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=$l(r.chartY)?r.chartY:1E4;return a.Aa?Math.round(r):Math.round(r*100)/100}),h=0;h';e+=''}Hk(b,e)} function sx(a,b,c,e){var f=ek(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var h=tx().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.xc)}).remove();ek(b).selectAll(".event-target").remove()} function qx(a,b,c,e,f,h){b.length&&!a.N&&a.ka?(a=ek(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&&(Cj(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},Cj(a,c)):Hk(c,"")} function ox(a,b,c,e,f,h){if(a.ta)if(b.length===0)vx(c,e,f);else{b=ek(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=wx().curve(a.La).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(Cj(c,{fill:function(r){return r.Qg},d:function(r){return n(r.xc)}}),b=b.transition().duration(f));n.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});Cj(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Qg},d:function(r){return n(r.xc)},"class":function(r){return"area"+(r.datumClass!=null?" "+r.datumClass:"")}})}else Hk(c,"")} function vx(a,b,c){a=ek(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=wx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.xc)}).remove()} function rx(a,b,c,e,f,h){if(a.ya)if(b.length===0||a.N)xx(c,e,f);else{b=ek(c).attr("clip-path",h).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");Cj(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=wx().curve(a.La).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(Cj(c,{fill:function(r){return r.color},d:function(r){return n(r.xc)}}),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});Cj(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.xc)}})}else Hk(c,"")} function xx(a,b,c){a=ek(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=wx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.xc)}).remove()} function mx(a,b){var c=a.O!=null;return function(e,f){if(c)for(e=0;eA)return!0;if(ra=r.length)return null;for(var t=Math.min(Math.max(zx(r,c),a),b),x=null,A=Number.MAX_VALUE,la=Number.MAX_VALUE,ma=t;ma<=b&&!n(ma);ma++);for(b=t;b>=a&&!n(b);b--);x!=null&&(x=this.yb(x,c,e));return x};function zx(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};iy.prototype.removeAllBehaviors=iy.prototype.Yn;iy.prototype.removeBehavior=function(a){a.Mc(this);Ve(this.Af,a);return this};iy.prototype.removeBehavior=iy.prototype.removeBehavior;iy.prototype.Lb=function(){return this.Jc.Lb()};iy.prototype.getMarginTop=iy.prototype.Lb;iy.prototype.Te=function(){return this.Jc.Te()};iy.prototype.getMarginRight=iy.prototype.Te;iy.prototype.Se=function(){return this.Jc.Se()};iy.prototype.getMarginBottom=iy.prototype.Se;iy.prototype.Kb=function(){return this.Jc.Kb()};iy.prototype.getMarginLeft=iy.prototype.Kb;iy.prototype.Ig=function(){return new Uj(this.Lb(),this.Te(),this.Se(),this.Kb())};iy.prototype.getMargins=iy.prototype.Ig;iy.prototype.ad=function(a,b){this.Jc.ad(a,b);return this};iy.prototype.setMargins=iy.prototype.ad;iy.prototype.Ao=function(a){this.Jc=a;return this};iy.prototype.setLayoutManager=iy.prototype.Ao;iy.prototype.Xh=function(){this.Wa.nb("prelayout",this,this.Jc)};function qy(a,b,c){b.Xg("chartDelegate",function(e){this.Wa.nb($n[c].selectionChange,this,e)}.bind(a))} iy.prototype.Yk=function(a){a=a===void 0?1:a;var b=this.Wj.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(!Cf)for(Cf={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++)for(h=c.concat(e[f].split("")),Af[f]=h,n=0;n>2];t=b[(t&3)<<4|x>>4];x=b[(x&15)<<2|r>>6];r=b[r&63];c[f++]=""+n+t+x+r}n=0;r=e;switch(a.length-h){case 2:n=a[h+1],r=b[(n&15)<<2]||e;case 1:a=a[h],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+r+e}a=c.join("")}return"data:image/svg+xml;base64,"+a};iy.prototype.toSvgDataUrl=iy.prototype.Yk;iy.prototype.Uo=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.Yk(a);var f=new ey;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.Ff(b.toDataURL("image/png"))}catch(n){f.reject(n)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};iy.prototype.toPngDataUrl=iy.prototype.Uo;iy.prototype.getStyle=function(){return this.Fi};function ry(a,b,c){iy.call(this,bf(a,["prelayout","postlayout"]),b,c);this.rf=this.Qc=null;this.ad({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} Od("aplos.chart.SvgChartView",ry);Qd(ry,iy);var sy=0;ry.prototype.redraw=ry.prototype.qe;ry.prototype.yd=function(){ry.Pb.yd.call(this);var a=this.Ye().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.hb.node().setAttribute("transform","translate("+this.Kb()+","+this.Lb()+")");this.Qc&&this.Qc.attr("width",this.Ya()+1).attr("height",this.vb()+2)};ry.prototype.Ye=function(){return this.Mo};ry.prototype.getSvg=ry.prototype.Ye;ry.prototype.Vo=function(){var a=this.Ye().node(),b=document.createElement("style"),c=pk(a),e=bk(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};ry.prototype.toSvgString=ry.prototype.Vo;ry.prototype.getNearestDatumDetails=ry.prototype.If;var ty=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1");function uy(a,b,c){var e=this;ry.call(this,bf(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.ab=new ap(this);this.oa={};this.ue={};this.Ok("hover",new ho);this.Xa=new vy;this.on("viewportChange.seriesChartView",function(){e.Xa.reset()})} Qd(uy,ry);Od("aplos.chart.SeriesChartView",uy);uy.prototype.Ok=function(a,b){b.Xg("clearSelectedDatumDetailsCache",this.jl.bind(this));var c=this.ue,e=$n[a].selectionChange,f=this.Wa;f.O.hasOwnProperty(e)||go(f,[e]);e=c[a];e!=null&&e.Xg("chartDelegate",null);c[a]=b;qy(this,b,a);return this};uy.prototype.setSelectionModel=uy.prototype.Ok;uy.prototype.Fo=function(a){bp(this.ab,a);return this};uy.prototype.setSeriesDefaults=uy.prototype.Fo;uy.prototype.tb=function(a){return this.oa[a||"__aplosDefault__"]||this.oa.__aplosDefault__};uy.prototype.getRenderer=uy.prototype.tb;uy.prototype.tn=function(a){return!!this.oa[a||"__aplosDefault__"]};uy.prototype.hasRenderer=uy.prototype.tn;uy.prototype.ig=function(a,b){b?(b.type&&(b=this.getStyle().xj(b)),this.oa[a]=b):delete this.oa[a];return this};uy.prototype.setRenderer=uy.prototype.ig;uy.prototype.fi=function(a){a.type&&(a=this.getStyle().xj(a));this.oa.__aplosDefault__=a;return this};uy.prototype.setDefaultRenderer=uy.prototype.fi;uy.prototype.di=function(a,b){a=this.Hf(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.ue[Zn[b]||"hover"]||null).hh(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};uy.prototype.selectDatum=uy.prototype.di;uy.prototype.ho=function(a){this.Wa.nb("seriesMouseover",this,a,Ej)};uy.prototype.selectSeries=uy.prototype.ho;uy.prototype.Fl=function(a){(this.ue[Zn[a]||"hover"]||null).deselectAll()};uy.prototype.clearSelections=uy.prototype.Fl;uy.prototype.Hf=function(a,b,c){var e=this.N||[],f=this.v||[];if(!e||!f)return[];if(Ej){var h=Dj(this.hb.node());var n=h[0];h=h[1]}for(var r=[],t=0;t0){if(Ej){var e=Dj(this.hb.node());var f=e[0];e=e[1]}for(a=0;a0?a[0]-this.Kb():Dj(this.hb.node())[0];a=a&&a.length>1?a[1]-this.Lb():Dj(this.hb.node())[1];if(this.Wb&&(b<0||b>this.Ya())||!this.Wb&&(a<0||a>this.vb()))return[];for(var e=new cu(this.Kb(),this.Lb(),this.Ya(),this.vb()),f=new Gj(b+e.left,a+e.top),h=[],n=0;n=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);My(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:My(f)&&(b+="\\"),b+=f}}return b+"$"} function Oy(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 Py(){} Py.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 Qy=new Py;Qy=function(){function a(ua,nc,fd,Vc){fd=fd||{};for(Vc=ua.length;Vc--;fd[ua[Vc]]=nc);return fd} 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],x=[1,29],A=[1,28],la=[1,83],ma=[1,84],ra=[1,85],ta=[1,86],sa=[1,87],Aa=[1,88],xa=[1,89],za=[1,90],Ba=[1,91],Ea=[1,92],Da=[1,93],Ia=[1,94],Ja=[1,95],Na=[1,96],Oa=[1,97],Pa=[1,98],Va=[1,99],Cb=[1,111],Db=[1,100],Eb=[1,101],Fb=[1,102],Gb=[1,103],Hb=[1,104],Ib=[1,105],Za=[1,106],Jb=[1,107],Kb=[1,108],Lb=[1,109],eb=[1,110],tb=[1,31],ub=[1,32],vb=[1,33],Mb=[1,34],Nb=[1,35],Ob=[1,36],Pb=[1,37],Qb=[1,38],Rb=[1,47],Sb=[1,48],Tb=[1,49],Ub= [1,50],Vb=[1,51],Wb=[1,52],Xb=[1,53],Yb=[1,54],Zb=[1,55],$b=[1,56],ac=[1,57],wb=[1,58],bc=[1,59],cc=[1,60],dc=[1,61],xb=[1,62],ec=[1,63],fc=[1,64],Qa=[1,65],Ya=[1,66],fb=[1,67],$a=[1,68],ab=[1,69],Wa=[1,70],Xa=[1,71],yb=[1,72],zb=[1,73],gb=[1,74],bb=[1,75],Ka=[1,76],hb=[1,77],Ab=[1,78],gc=[1,79],ib=[1,80],Ta=[1,81],jb=[1,82],kb=[1,39],Ua=[1,40],lb=[1,41],mb=[1,42],nb=[1,43],ob=[1,44],hc=[1,45],pb=[1,46],qb=[1,116],cb=[1,117],rb=[1,118],kc=[1,119],oc=[1,120],tc=[1,121],yc=[1,122],qc=[1,123],zc=[1,124],Bb=[1,125],Fc=[1,126],Hc=[1,128],Gc=[1,127],mc=[1,129],Ac=[1,130],Bc=[1,131],Cc=[1,132],rc=[1,133],pc=[1,134],Dc=[1,135],uc=[1,136],vc=[1,137],wc=[1,138],xc=[1,139],sb=[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],vg=[1,140],uk=[1,150],wg=[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],yi=[1,180],zi=[5,12,17,42,43,44,45,54,96,97,98,99],We=[1,233],tf=[1,250],Ai=[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],Ge=[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],Xe=[1,336],je=[5,12,17,54,96,97,98,99],vk=[96,97],Ci={trace:function(){},Pc:{},No:{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},kg:{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"},dk:[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(ua,nc,fd,Vc,gd,ya){ua=ya.length-1;switch(gd){case 1:return ya[ua-1];case 7:this.qa=ya[ua-1];break;case 9:case 10:case 13:this.qa={type:"function",name:ya[ua-3].toUpperCase(),params:[ya[ua-1]]};break;case 11:case 14:this.qa={type:"function",name:ya[ua-5].toUpperCase(),params:[ya[ua-3],ya[ua-1]]};break;case 12:case 15:this.qa={type:"function",name:ya[ua-3].toUpperCase(),params:ya[ua-1]};break;case 25:case 26:case 27:case 28:this.qa={type:"function",name:ya[ua-1],params:[ya[ua-2],ya[ua]]};break;case 29:this.qa={type:"function",name:"EQUAL",params:[ya[ua-2],ya[ua]]};break;case 30:this.qa={type:"function",name:"NOT_EQUAL",params:[ya[ua-2],ya[ua]]};break;case 31:this.qa={type:"function",name:"LESS",params:[ya[ua-2],ya[ua]]};break;case 32:this.qa={type:"function",name:"LESS_OR_EQUAL",params:[ya[ua-2],ya[ua]]};break;case 33:this.qa={type:"function",name:"GREATER",params:[ya[ua-2],ya[ua]]};break;case 34:this.qa={type:"function",name:"GREATER_OR_EQUAL",params:[ya[ua-2],ya[ua]]};break;case 35:this.qa={type:"function",name:"BETWEEN",params:[ya[ua-4],ya[ua-2],ya[ua]]};break;case 36:this.qa={type:"function",name:"NOT BETWEEN",params:[ya[ua-4],ya[ua-2],ya[ua]]};break;case 37:this.qa={type:"function",name:"AND",params:[ya[ua-2],ya[ua]]};break;case 38:this.qa={type:"function",name:"OR",params:[ya[ua-2],ya[ua]]};break;case 39:this.qa={type:"function",name:"IS NULL",params:[ya[ua-1]]};break;case 40:this.qa={type:"function",name:"IS TRUE",params:[ya[ua-1]]};break;case 41:this.qa={type:"function",name:"IS FALSE",params:[ya[ua-1]]};break;case 42:this.qa={type:"number",value:+-ya[ua]};break;case 43:this.qa={type:"number",value:+ya[ua]};break;case 44:this.qa={type:"string",value:Oy(ya[ua].substring(1,ya[ua].length-1))};break;case 45:case 46:this.qa={type:"function",name:ya[ua-3],params:[ya[ua-1]]};break;case 47:gd=ya[ua-1].pathParts.slice();if(gd.length>2)throw Error("Too many path parts.");nc=gd.pop();this.qa={type:"function",namespace:gd.pop(),name:nc,fullName:ya[ua-1].column};break;case 48:ya[ua-1].params=[];this.qa=ya[ua-1];break;case 49:ya[ua-2].params=[ya[ua-1]];this.qa=ya[ua-2];break;case 50:gd=[];for(nc=0;nc2&&de.push("'"+this.kg[nh]+"'");var Pn=Id.ih?"Parse error on line "+(mh+1)+":\n"+Id.ih()+"\nExpecting "+de.join(", ")+", got '"+(this.kg[Gd]||Gd)+"'":"Parse error on line "+(mh+1)+": Unexpected "+(Gd==1?"end of input":"'"+(this.kg[Gd]|| Gd)+"'");this.parseError(Pn,{text:Id.match,Zk:this.kg[Gd]||Gd,line:Id.Xb,ar:vf,Sq:de})}if(Zd[0]instanceof Array&&Zd.length>1)throw Error("Parse Error: multiple actions possible at state: "+xe+", token: "+Gd);switch(Zd[0]){case 1:nc.push(Gd);fd.push(Id.Yb);Vc.push(Id.Ta);nc.push(Zd[1]);Gd=null;Bi?(Gd=Bi,Bi=null):(wk=Id.Xd,ya=Id.Yb,mh=Id.Xb,vf=Id.Ta,xk>0&&xk--);break;case 2:de=this.dk[Zd[1]][1];Rf.qa=fd[fd.length-de];Rf.Si={ie:Vc[Vc.length-(de||1)].ie,Ld:Vc[Vc.length-1].Ld,qd:Vc[Vc.length-(de||1)].qd,wd:Vc[Vc.length-1].wd};On&&(Rf.Si.range=[Vc[Vc.length-(de||1)].range[0],Vc[Vc.length-1].range[1]]);xe=this.Th.apply(Rf,[ya,wk,mh,uf,Zd[1],fd,Vc].concat(Nn));if(typeof xe!=="undefined")return xe;de&&(nc=nc.slice(0,-1*de*2),fd=fd.slice(0,-1*de),Vc=Vc.slice(0,-1*de));nc.push(this.dk[Zd[1]][0]);fd.push(Rf.qa);Vc.push(Rf.Si);Zd=gd[nc[nc.length-2]][nc[nc.length-1]];nc.push(Zd);break;case 3:return!0}}}};Ci.Lj=function(){return{Mi:1,parseError:function(ua,nc){if(this.Pc.Xj)this.Pc.Xj.parseError(ua,nc);else throw Error(ua);},zo:function(ua,nc){this.Pc=nc||this.Pc||{};this.ac=ua;this.yf=this.rg=this.done=!1;this.Xb=this.Xd=0;this.Yb=this.Kc=this.match="";this.Gb=["INITIAL"];this.Ta={ie:1,qd:0,Ld:1,wd:0};this.options.Wf&&(this.Ta.range=[0,0]);this.offset=0;return this},input:function(){var ua=this.ac[0];this.Yb+=ua;this.Xd++;this.offset++;this.match+=ua;this.Kc+=ua;ua.match(/(?:\r\n?|\n).*/g)?(this.Xb++,this.Ta.Ld++):this.Ta.wd++;this.options.Wf&&this.Ta.range[1]++;this.ac=this.ac.slice(1);return ua},Zo:function(ua){var nc=ua.length,fd=ua.split(/(?:\r\n?|\n)/g);this.ac=ua+this.ac;this.Yb=this.Yb.substr(0,this.Yb.length-nc);this.offset-=nc;ua=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);fd.length-1&&(this.Xb-=fd.length-1);var Vc=this.Ta.range;this.Ta={ie:this.Ta.ie,Ld:this.Xb+1,qd:this.Ta.qd,wd:fd?(fd.length===ua.length?this.Ta.qd:0)+ua[ua.length-fd.length].length-fd[0].length:this.Ta.qd-nc};this.options.Wf&&(this.Ta.range= [Vc[0],Vc[0]+this.Xd-nc]);this.Xd=this.Yb.length;return this},er:function(){this.yf=!0;return this},reject:function(){if(this.options.Wi)this.rg=!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.ih(),{text:"",Zk:null,line:this.Xb});return this},Wq:function(ua){this.Zo(this.match.slice(ua))},Un:function(){var ua=this.Kc.substr(0,this.Kc.length-this.match.length);return(ua.length>20?"...":"")+ua.substr(-20).replace(/\n/g,"")},bp:function(){var ua=this.match;ua.length<20&&(ua+=this.ac.substr(0,20-ua.length));return(ua.substr(0,20)+(ua.length>20?"...":"")).replace(/\n/g,"")},ih:function(){var ua=this.Un(),nc=Array(ua.length+1).join("-");return ua+this.bp()+"\n"+nc+"^"},Wk:function(ua,nc){var fd;if(this.options.Wi){var Vc={Xb:this.Xb,Ta:{ie:this.Ta.ie,Ld:this.Ld,qd:this.Ta.qd,wd:this.Ta.wd},Yb:this.Yb,match:this.match,matches:this.matches,Kc:this.Kc,Xd:this.Xd,offset:this.offset,yf:this.yf,ac:this.ac,Pc:this.Pc,Gb:this.Gb.slice(0),done:this.done};this.options.Wf&&(Vc.Ta.range=this.Ta.range.slice(0))}if(fd=ua[0].match(/(?:\r\n?|\n).*/g))this.Xb+=fd.length;this.Ta={ie:this.Ta.Ld,Ld:this.Xb+1,qd:this.Ta.wd,wd:fd?fd[fd.length-1].length-fd[fd.length-1].match(/\r?\n?/)[0].length:this.Ta.wd+ua[0].length};this.Yb+=ua[0];this.match+=ua[0];this.matches=ua;this.Xd=this.Yb.length;this.options.Wf&&(this.Ta.range=[this.offset,this.offset+=this.Xd]);this.rg=this.yf=!1;this.ac=this.ac.slice(ua[0].length);this.Kc+=ua[0];ua=this.Th.call(this,this.Pc,this,nc,this.Gb[this.Gb.length-1]);this.done&&this.ac&&(this.done=!1);if(ua)return ua;if(this.rg)for(var gd in Vc)this[gd]=Vc[gd];return!1},next:function(){if(this.done)return this.Mi;this.ac||(this.done=!0);var ua;this.yf||(this.match=this.Yb="");for(var nc=this.ll(),fd=0;fdVc[0].length)){var Vc=ua;var gd=fd;if(this.options.Wi){Vc=this.Wk(ua,nc[fd]);if(Vc!==!1)return Vc;if(this.rg)Vc=!1;else return!1}else if(!this.options.flex)break}return Vc?(Vc=this.Wk(Vc,nc[gd]),Vc!==!1?Vc:!1):this.ac===""?this.Mi:this.parseError("Lexical error on line "+(this.Xb+1)+". Unrecognized text.\n"+ this.ih(),{text:"",Zk:null,line:this.Xb})},Kj:function(){var ua=this.next();return ua?ua:this.Kj()},Xi:function(ua){this.Gb.push(ua)},Wn:function(){return this.Gb.length-1>0?this.Gb.pop():this.Gb[0]},ll:function(){return this.Gb.length&&this.Gb[this.Gb.length-1]?this.conditions[this.Gb[this.Gb.length-1]].rules:this.conditions.INITIAL.rules},qr:function(ua){ua=this.Gb.length-1-Math.abs(ua||0);return ua>=0?this.Gb[ua]:"INITIAL"},pushState:function(ua){this.Xi(ua)},nr:function(){return this.Gb.length},options:{flex:!0,"case-insensitive":!0},Th:function(ua,nc,fd){switch(fd){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.Xi("CASE_MODE"),94;case 104:return 98;case 105:return 99;case 106:return 96;case 107:return this.Wn(),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(nc.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=Ci;Ci.v=b;return new b}();function Ry(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 Sy(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 Ty(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 Uy(a,b){Ry("TRUNC(X, Y)","X",a);Ry("TRUNC(X, Y)","Y",b);Sy("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 Vy(a,b){Ry("LOG(X, Y)","X",a);Ry("LOG(X, Y)","X",b);return a==null||b==null?null:+a/+b} ;function Wy(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,x,A,la){if(x=="%")return"%";var ma=c.shift();if(typeof ma=="undefined")throw Error("[goog.string.format] Not enough arguments");arguments[0]=ma;return Xy[x].apply(null,arguments)})} var Xy={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?a+ji(" ",Number(c)-a.length):ji(" ",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+ji(" ",a):(b=b.indexOf("0",0)>=0?"0":" ",e=h+ji(b,a)+e);return e},d:function(a,b,c,e,f,h,n,r){return Xy.f(parseInt(a,10),b,c,e,0,h,n,r)}};Xy.i=Xy.d;Xy.u=Xy.d;function Yy(a,b){if(a==null)return!1;if(b.length===0)return!0;b=Wc(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 Zy(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 $y(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 gz(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 hz(a){if(typeof a==="number"){if(a===Infinity)return"inf";if(a===-Infinity)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function iz(a,b){var c=jz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Wc(aj(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.toUpperCase();c.set(h,new kz(a,h,b[f]))}} function kz(a,b,c){this.O=a;this.N=b;this.v=c} kz.prototype.call=function(){return this.apply(wd.apply(0,arguments))};kz.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.ub?this.v.ub.apply(null,a):this.v.ua.apply(null,a)};kz.prototype.Ma=function(a){return this.v.Ma?this.v.Ma.call(null,a):ez(this.O,this.N,a)};var jz=new function(){this.v=new Map};iz("",{AVG:{ub:vq},COUNTIF:{ub:yq},SUM:{ub:wq},MIN:{ub:zq},MAX:{ub:Aq},COUNT:{ub:xq},COUNT_DISTINCT:{ub:Bq},NTH_QUANTILE:{ub:Cq},VARIANCE:{ub:Eq},STDDEV:{ub:Fq},"HLL_COUNT.MERGE":{ub:Gq},"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){Ry("ABS(X)","X",a);return a!=null?Math.abs(+a):null}},SIGN:{va:1,wa:1,ua:function(a){Ry("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){Ry("IS_INF(X)","X",a);return a!=null?!isFinite(+a)&&!isNaN(a):null},tc:"IS_INFINITY"},IS_NAN:{va:1,wa:1,ua:function(a){Ry("IS_NAN(X)","X",a);return a!=null?isNaN(+a):null},tc:"IS_NAN"},IEEE_DIVIDE:{va:2,wa:2,ua:Vy},SQRT:{va:1,wa:1,ua:function(a){Ry("SQRT(X)","X",a);Ty("SQRT(X)","X",a,0,Infinity);return a!=null?Math.sqrt(+a):null}},POWER:{va:2,wa:2,ua:function(a,b){Ry("POWER(X, Y)","X",a);Ry("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){Ry("LOG(X, Y)","X",a);Ry("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;Ty("LOG(X, Y)","X",a,0,Infinity);Ty("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:Uy},CEILING:{va:1,wa:1,ua:function(a){Ry("CEILING(X)","X",a);return a!=null?Math.ceil(+a):null}},FLOOR:{va:1,wa:1,ua:function(a){Ry("FLOOR(X)","X",a);return a!=null?Math.floor(+a):null}},COS:{va:1,wa:1,ua:function(a){Ry("COS(X)","X",a);return a!=null?Math.cos(+a):null}},COSH:{va:1,wa:1,ua:function(a){Ry("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){Ry("ACOS(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Ty("ACOS(X)","X",a,-1,1);return a!=null?Math.acos(+a):null}},ACOSH:{va:1,wa:1,ua:function(a){Ry("ACOSH(X)","X",a);if(a===-Infinity)return NaN;Ty("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){Ry("SIN(X)","X",a);return a!=null?Math.sin(+a):null}},SINH:{va:1,wa:1,ua:function(a){Ry("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){Ry("ASIN(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Ty("ASIN(X)","X",a,-1,1);return a!=null?Math.asin(+a):null}},ASINH:{va:1,wa:1,ua:function(a){Ry("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){Ry("TAN(X)","X",a);return a!=null?Math.tan(+a):null}},TANH:{va:1,wa:1,ua:function(a){Ry("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){Ry("ATAN(X)","X",a);return a!=null?Math.atan(+a):null}},ATANH:{va:1,wa:1,ua:function(a){Ry("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){Ry("ATAN(Y, X)","X",a);Ry("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)},tc:"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:Wy.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]+")"},tc:"NOT_BETWEEN"},CAST:{va:2,wa:2,ua:function(a,b){if(a==null)return null;switch(b.toUpperCase()){case "INT32":return fz(a,-2147483648,2147483647);case "INT64":return fz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return fz(a,0,1.8446744073709552E19);case "FLOAT":return gz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return gz(a);case "BOOL":return Xr(a);case "STRING":return hz(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:dr},DATE:{va:1,wa:2,ua:function(a,b){return er(a,"DAY",b)}},DATETIME:{va:1,wa:1,ua:dr},AND:{va:2,ua:function(){return az("AND",wd.apply(0,arguments))},Ma:function(a){return bz(" AND ",a)}},OR:{va:2,ua:function(){return az("OR",wd.apply(0,arguments))},Ma:function(a){return bz(" OR ",a)}},"+":{va:2,ua:function(){return $y("+",wd.apply(0,arguments))},Ma:function(a){return bz("+",a)}},"-":{va:2,ua:function(){return $y("-",wd.apply(0,arguments))},Ma:function(a){return bz("-",a)}},"*":{va:2,ua:function(){return $y("*",wd.apply(0,arguments))},Ma:function(a){return bz("*",a)}},"/":{va:2,ua:function(){return $y("/",wd.apply(0,arguments))},Ma:function(a){return bz("/",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 Zy("EQUAL",a,b)},Ma:function(a){return bz("=",a)},tc:"="},NOT_EQUAL:{va:2,wa:2,ua:function(a,b){return Zy("NOT_EQUAL",a,b)},Ma:function(a){return bz("!=",a)},tc:"!="},LESS:{va:2,wa:2,ua:function(a,b){return Zy("LESS",a,b)},Ma:function(a){return bz("<",a)},tc:"<"},LESS_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return Zy("LESS_OR_EQUAL",a,b)},Ma:function(a){return bz("<=",a)},tc:"<="},GREATER:{va:2,wa:2,ua:function(a,b){return Zy("GREATER",a,b)},Ma:function(a){return bz(">",a)},tc:">"},GREATER_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return Zy("GREATER_OR_EQUAL",a,b)},Ma:function(a){return bz(">=",a)},tc:">="},NATIVE_EXPR:{va:1,wa:1,ua:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{va:1,wa:1,ub: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)}}});iz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{ub:Dq},EXTRACT_POINT_DOUBLE:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{ub:Dq}});function lz(){this.ma={};this.ta={};this.oa={};this.ka=[];this.na={};this.ha=[];this.N=null;this.ya=[];this.O=[];this.v={}} v=lz.prototype;v.Vj=function(a,b){this.O.push({Cf:a,order:b?b:"ASC"});return this};v.El=function(){this.O=[];return this};v.Jf=function(){return this.O};v.we=function(a){this.O=a.slice()};v.Rn=function(a,b,c,e){a={Cf:a,measure:c,pr:e||""};typeof b==="function"?a.ub=b:a.Tq=b;this.ya.push(a);return this};v.Sn=function(a){this.N=a;return this};v.vl=function(a){Array.isArray(a)?Qe(a,function(b){mz(this,b,{Dd:"decimal",mf:null})},this):mz(this,a,{Dd:"decimal",mf:null});return this};v.ul=function(a){Array.isArray(a)?Qe(a,function(b){mz(this,b,{Dd:"boolean",mf:null})},this):mz(this,a,{Dd:"boolean",mf:null});return this};v.Ej=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Dd)a=a.Dd,b=!!a&&Hr[a].jc==="number";return b?!0:!1};function mz(a,b,c){a.v[b]?(c.Dd&&(a.v[b].Dd=c.Dd),c.mf&&(a.v[b].mf=c.mf)):a.v[b]=c} v.ol=function(a,b){this.ma[a]=b;return this};v.Kl=function(a,b){this.ta[a]=b;return this};v.Ll=function(a,b){this.oa[a]=b;delete this.na[a];return this};v.rn=function(a){return this.oa[a]||this.na[a]||this.ma[a]||this.N===a?!0:Pe(this.ka,a)>=0};v.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};v.rl=function(a,b,c){b=b?b:nz;this.na[c?c:"aggregatedValue"]={measure:a,ub:b};return this};v.Mj=function(){return this};v.Tn=function(a,b){this.Mj(a);this.Vj(b,"DESC");return this};v.Gl=function(a,b){this.ha.push({Cf:a,value:b,operator:"="});return this};v.filter=function(a,b,c){this.ha.push(Vr(a,b,c));return this};v.jo=function(){return this};v.ym=function(){return this.ha};v.Dl=function(){this.ha=[];return this};v.Am=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",lz);lz.prototype.getHierarchy=lz.prototype.Am;lz.prototype.clearFilters=lz.prototype.Dl;lz.prototype.getFilters=lz.prototype.ym;lz.prototype.setAllowCachedSince=lz.prototype.jo;lz.prototype.filter=lz.prototype.filter;lz.prototype.columnEquals=lz.prototype.Gl;lz.prototype.onlyTop=lz.prototype.Tn;lz.prototype.limit=lz.prototype.Mj;lz.prototype.aggregate=lz.prototype.rl;lz.prototype.on=lz.prototype.on;lz.prototype.hasOutputColumn=lz.prototype.rn;lz.prototype.derivePostAggregation=lz.prototype.Ll;lz.prototype.deriveColumn=lz.prototype.Kl;lz.prototype.addExpression=lz.prototype.ol;lz.prototype.asBoolean=lz.prototype.ul;lz.prototype.asNumber=lz.prototype.vl;lz.prototype.oneSeriesPer=lz.prototype.Sn;lz.prototype.oneColumnPer=lz.prototype.Rn;lz.prototype.setOrdering=lz.prototype.we;lz.prototype.clearOrdering=lz.prototype.El;lz.prototype.orderBy=lz.prototype.Vj;function oz(){var a=a===void 0?Qy:a;var b=b===void 0?jz:b;this.N=a;this.v=b} function pz(a,b){var c=c===void 0?qz:c;var e=rz(a,b),f=new sz(a.v,c);return function(h){return tz(e,f,h)}} function rz(a,b){a=a.N.parse(b);if(a===null)throw Error("Got a null parse tree.");return a} function tz(a,b,c){switch(a.type){case "column":a=Wc(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.ub)throw Error("Found aggregating function "+a.name+" while building a non-aggregating expression evaluator.");e=[];for(f=0;f'):c&&typeof f==="string"&&(f=hi(f));return f} function zz(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=bj(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(h){var n=f;(bj(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 Az(a){this.v=a;this.O=this.N=-1;this.ha=0} Az.prototype.next=function(){this.N++;var a=this.v[this.N];a==="\n"?(this.ha++,this.O=-1):this.O++;return a};Az.prototype.index=function(){return this.N};function Bz(a,b){if(b<0)throw Error("CharacterIterator can only skip forward");for(var c=0;c0&&this.N.Tc(new Lz(a)),this.ma(b);this.O+=a;return!0};Nz.prototype.ma=function(a){if(Cz(a,"#each ",1)){var b=new Fz;this.N.Tc(b);this.v=new Pz(b,"each",a);Bz(a,6)}else Cz(a,"#if ",1)?(b=new Hz,this.N.Tc(b),this.v=new Pz(b,"if",a),Bz(a,4)):Cz(a,"#first ",1)?(b=new Ez,this.N.Tc(b),this.v=new Pz(b,"first",a),Bz(a,7)):Cz(a,"#nest ",1)?(b=new Iz,this.N.Tc(b),this.v=new Pz(b,"nest",a),Bz(a,6)):Cz(a,"#partial ",1)?(b=new Jz,this.N.Tc(b),this.v=new Pz(b,"partial",a),Bz(a,9)):Cz(a,"#html ",1)?(b=new Gz,this.N.Tc(b),this.v=new Oz(b,a),Bz(a,6)):(b=new uz,this.N.Tc(b),this.v=new Oz(b,a));return!0};Nz.prototype.close=function(a){this.v!=null&&this.v.close(a);this.O.length>0&&(this.N.Tc(new Lz(this.O)),this.O="");return this.N};function Pz(a,b,c){Nz.call(this,a,c);this.na="{{/"+b+"}}";this.ka=new Oz(a,c)} Uc(Pz,Nz);Pz.prototype.ma=function(a){if(Cz(a,this.na,-1))return Bz(a,this.na.length-2),!1;if(Cz(a,"/",1))throw Error("Attempt to close the wrong expression [row:"+a.ha+", col:"+a.O+"] expected "+this.na+" template:"+a.v);return Nz.prototype.ma.call(this,a)};Pz.prototype.ha=function(a,b){return this.ka?(this.ka.ha(a,b)||(this.ka=null),!0):Nz.prototype.ha.call(this,a,b)};Pz.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 Qz(a){this.v=(new Mz).parse(a)} ;function Rz(){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.Ha=new Jj(12,12);this.ta=new bm} v=Rz.prototype;v.Ek=function(a){this.ya=a;this.v=null;return this};v.dg=function(a){this.N=Sz(this,a||{});return this};v.Dg=function(){this.N==null&&(this.N=Sz(this,{}));return this.N};v.we=function(a){this.na=a;return this};v.Jf=function(){return this.na};v.jf=function(a){this.ka=a;this.v=null;return this};v.Gg=function(){return this.ka};v.jg=function(a){this.ma=a;this.v=null;return this};v.Mg=function(){return this.ma};v.hf=function(a){this.O=a;this.v=null;return this};v.Cg=function(){return this.O};v.ei=function(a){this.oa=a;this.v=null;return this};v.Fh=function(){return this.oa};v.fg=function(a){this.ha=a;this.v=null;return this};v.Fg=function(){return this.ha};v.lf=function(a){this.ta=a;return this};v.Yf=function(a,b,c){a.textContent="";this.N===null&&(this.N=Sz(this,{}));var e=this.N;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.hl)}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 Qz(c)}b=new wz(b,e);this.v.v.accept(b);e=Ln(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 Sz(a,b){var c=Wn();c["svg-sample"]=a.ta.v(a.Ha);gj(c,b);return c} v.hl=function(a,b){return a.chartY!==b.chartY?a.chartY-b.chartY:a.chartX-b.chartX};Rz.prototype.setLegendKey=Rz.prototype.lf;Rz.prototype.getFooterTemplate=Rz.prototype.Fg;Rz.prototype.setFooterTemplate=Rz.prototype.fg;Rz.prototype.getAnnotationTemplate=Rz.prototype.Fh;Rz.prototype.setAnnotationTemplate=Rz.prototype.ei;Rz.prototype.getBodyTemplate=Rz.prototype.Cg;Rz.prototype.setBodyTemplate=Rz.prototype.hf;Rz.prototype.getSeriesCategoryTemplate=Rz.prototype.Mg;Rz.prototype.setSeriesCategoryTemplate=Rz.prototype.jg;Rz.prototype.getHeaderTemplate=Rz.prototype.Gg;Rz.prototype.setHeaderTemplate=Rz.prototype.jf;Rz.prototype.getOrdering=Rz.prototype.Jf;Rz.prototype.setOrdering=Rz.prototype.we;Rz.prototype.getConversionFunctionMap=Rz.prototype.Dg;Rz.prototype.setConversionFunctionMap=Rz.prototype.dg;Rz.prototype.setMainTemplate=Rz.prototype.Ek;var Tz=!0;Od("aplos.spec.flags.setEnableNewTemplateContentRenderer",function(a){Tz=a});function Uz(){this.O=this.N=this.ka=null;this.oa="{{measure}}";this.v=this.ha=null;this.na="series_asc";this.ta=new Jj(12,12);this.ma=new bm} v=Uz.prototype;v.ae=function(a){return a==null?this.Dg():this.dg(a)};v.dg=function(a){this.v=Vz(this,a||{});return this};v.Dg=function(){this.v===null&&(this.v=Vz(this,{}));return this.v};v.Yg=function(a){return a==null?this.Jf():this.we(a)};v.we=function(a){this.na=a;return this};v.Jf=function(){return this.na};v.Ek=function(){return this};v.un=function(a){return a===void 0?this.Gg():this.jf(a)};v.jf=function(a){this.ka=a;return this};v.Gg=function(){return this.ka};v.io=function(a){return a===void 0?this.Mg():this.jg(a)};v.jg=function(a){this.N=a;return this};v.Mg=function(){return this.N};v.zl=function(a){return a===void 0?this.Cg():this.hf(a)};v.hf=function(a){this.O=a;return this};v.Cg=function(){return this.O};v.ei=function(){return this};v.Fh=function(){return null};v.Ul=function(a){return a===void 0?this.Fg():this.fg(a)};v.fg=function(a){this.ha=a;return this};v.Fg=function(){return this.ha};v.lf=function(a){this.ma=a;return this};v.Yf=function(a,b,c){a.textContent="";this.v===null&&(this.v=Vz(this,{}));var e=this.v;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.il)}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,x;a:{if(f!==""&&h!==""){if(!Wz.length)for(x=0;x]*?>","gi"),close:new RegExp("]*?>","gi")})}for(x=0;x(la?la.length:0)&&(ma=(la=h.match(A.open))?la.length:0,la=h.match(A.close),(la?la.length:0)>ma)){x=!0;break a}}}x=!1}x?(r=!0,(t=f.toLowerCase().indexOf("=0?f+''+h:f+'
'+h)&&Hn(a,b,t,e,void 0),x=ek(a).select(".aplos-placeholder"),t=x.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,x.remove()):(f&&Hn(a,b,f,e,void 0),f=a);x=void 0;for(A=0;A=0;h--){var n=a.v=b[h];f=fA(n,e,!0,a)&&f}n=a.v=c;f=fA(n,e,!0,a)&&f;f=fA(n,e,!1,a)&&f;if(b)for(h=0;h0&&athis.N&&this.show():BA(this)};function BA(a){a.oa.stop();bq(a.ma);a.ma=null} v.td=function(a,b){return this.ta(a,b)};zA.prototype.setHovercardContainerStyle=zA.prototype.xo;zA.prototype.hide=zA.prototype.Nh;zA.prototype.followClosestSeries=zA.prototype.oj;zA.prototype.followTopMostSeries=zA.prototype.Tl;zA.prototype.followNamedSeries=zA.prototype.Sl;zA.prototype.getPlacer=zA.prototype.Um;zA.prototype.setPlacer=zA.prototype.xi;zA.prototype.placer=zA.prototype.Vn;zA.prototype.getContentRenderer=zA.prototype.Fd;zA.prototype.setContentRenderer=zA.prototype.zd;zA.prototype.contentRenderer=zA.prototype.Ag;zA.prototype.getShowDelayMs=zA.prototype.Zm;zA.prototype.setShowDelayMs=zA.prototype.Pk;zA.prototype.showDelayMs=zA.prototype.Jo;zA.prototype.getTransitionMs=zA.prototype.mn;zA.prototype.setTransitionMs=zA.prototype.Sk;zA.prototype.transitionMs=zA.prototype.ze;zA.prototype.getClassName=zA.prototype.im;zA.prototype.setClassName=zA.prototype.tk;zA.prototype.className=zA.prototype.className;Od("aplos.chart.behavior.Hovercard",zA);function FA(){this.ka=this.oa=this.na=this.v=this.O=this.N=this.ma=this.ha=null} v=FA.prototype;v.Qo=function(a){this.ha=a;return this};v.Ro=function(a){this.ma=a;return this};v.Oo=function(a){this.N=a;return this};v.Po=function(a){this.O=a;return this};v.ae=function(a){this.v=a;return this};v.Hl=function(a){this.na=a;return this};v.container=function(a){this.ka=a;return this};v.Zg=function(a){this.oa=a;return this};function GA(a){var b=Tz?new Rz:new Uz;a.na&&b.we(a.na);a.ha&&b.jf(a.ha);a.N&&b.hf(a.N);a.O&&b.fg(a.O);a.ma&&b.jg(a.ma);a.v&&b.dg(a.v);return b} v.Yi=function(){var a=(new zA).oj();a.zd(GA(this));var b=a.xi,c=new pA;this.ka!=null&&c.vk(this.ka);this.oa!=null&&c.Zg(this.oa);b.call(a,c);return a};v.Al=function(){var a=new oA;a.Ag(GA(this));return a};FA.prototype.buildPieCard=FA.prototype.Al;FA.prototype.buildCard=FA.prototype.Yi;FA.prototype.positionOptions=FA.prototype.Zg;FA.prototype.container=FA.prototype.container;FA.prototype.contentRendererOrdering=FA.prototype.Hl;FA.prototype.conversionFunctionMap=FA.prototype.ae;FA.prototype.templateFooter=FA.prototype.Po;FA.prototype.templateBody=FA.prototype.Oo;FA.prototype.templateSeriesCategory=FA.prototype.Ro;FA.prototype.templateHeader=FA.prototype.Qo;Od("aplos.chart.behavior.hovercardutils.Builder",FA);function HA(a,b,c,e){var f=new FA;f.ha=a?a:null;f.N=b?b:null;f.O=c?c:null;f.v=e?e:null;return f} Od("aplos.chart.behavior.hovercardutils.Builder.fromTemplate",HA);var IA={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};Od("aplos.chart.behavior.LegendPosition",IA);function JA(){this.v=0;this.ha=null;this.N=!1} JA.prototype.position=function(a){if(!arguments.length||a===void 0)return this.v;this.v=a;return this};JA.prototype.O=function(a){if(!arguments.length||a===void 0)return this.ha;this.ha=a;return this};JA.prototype.Md=function(a){if(!arguments.length||a===void 0)return this.N;this.N=a;return this};function KA(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} Od("aplos.chart.behavior.legend.LegendLayoutParams",JA);var LA={uj:function(a,b,c){return KA(c)===14?b.vb():a.bottom-a.top},vj:function(a,b,c){return KA(c)===14?b.Ya():a.right-a.left},Xn:function(a,b,c,e,f){f=LA.Mm(a,b,c,e,f);e.style("top",LA.Nm(a,b,c)+"px").style("left",f+"px")},Mm:function(a,b,c,e,f){var h=f!==void 0?f:0;f!==void 0||e.empty()||(h=e.node().offsetWidth);switch(KA(c)){case 14:return c.Md()?a.Kb()+a.Ya()-h:a.Kb();case 4:case 1:return c.Md()&&!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=LA.vj(b,a,c),a>0&&!e.empty()&&h=h?LA.Vk(f,n,c.height-h):f=n;var t=[];f.forEach(function(x){t.push({width:e,height:x})});return t},lr:function(a,b,c){for(var e=c.height,f=[],h=0,n=[],r=0;r=h?LA.Vk(f,n,c.width-h):f=n;var t=[];f.forEach(function(x){t.push({width:x,height:e})});return t},Vk: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=LA.vj(a.O,b,a.v);if(A0&&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"));TA(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),h.style("display","none")} function UA(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,fp:c}} function QA(a,b,c,e){var f=b.Ia.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(RA(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.Ie(b,e);a.update(b,e,0);var h=UA(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=LA.uj(a.O,b,a.v)-(n-h.top)-h.fp,t=[[]],x=0,A=n;e.each(Nd(function(la,ma){var ra=this.getBoundingClientRect(),ta=ra.top;ra=ta-A+ra.height;t[x].length>0&&(ra>r||t[x].length===la.Sg)&&(t[x+=1]=[],A=ta);t[x].push(ma)},a));f.remove();return t} function TA(a,b){var c=b.Ia.select(".aplos-legend");LA.Xn(b,a.O,a.v,c);c.attr("data-position",Md(function(){var e=cj(IA,function(f){return KA(this.v)===f},this);return e!=null?e.toLowerCase():null},a))} v.Ie=function(a,b){var c=this.Oj(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.Qj(a)).on("mouseout.legend",this.Pj(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)};v.update=function(a,b){VA(this,b);b.empty()||ek(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 VA(a,b){var c=a.Ha||Wn();c["svg-sample"]||(c["svg-sample"]=a.Ka.v(a.ta));b.each(Nd(function(e,f){e=In(f,""+(f.categorySeparator?e.Bf:e.Ah)+"
",c)[0];for(e=ek(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function SA(a){a.each(function(){ek(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} v.ql=function(a,b){b.He(new WA(a,this))};function RA(a){return a.Bf!=null?"aplos-legend-table-category":"aplos-legend-table"} v.Co=function(a){this.Qc=a;return this};MA.prototype.setMinPreferredLayoutHeight=MA.prototype.Co;function WA(a,b){this.N=a;this.v=b} WA.prototype.Ih=function(){var a={position:XA(this),Tf:30},b=this.v.Ig();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};WA.prototype.mg=function(a){NA(this.v,this.N,this.v.ab,this.v.Xa,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Ia.select(".aplos-legend");if(b.empty())return{Ca:{width:0,height:0},qb:{width:0,height:0},Ac:!0};var c=XA(this),e=yg(a,this.v.Re(),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 x=ek(this).selectAll(".aplos-legend-entry");x.size()>t&&(t=x.size())});c=this.N.Ia.select(".aplos-legend-title");c=hk(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},qb:{width:h,height:e},Ac:!1}};WA.prototype.dh=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Ia.select(".aplos-legend").node();b!=a.offsetWidth&&TA(this.v,this.N)};WA.prototype.Qe=function(){return this.v.O};function XA(a){switch(KA(a.v.v)){case IA.LEFT:return 5;case IA.RIGHT:return 6;case IA.TOP:case IA.TOP_FULL_LEFT:case IA.TOP_FULL_RIGHT:return 2;case IA.TOP_LEFT:case IA.TOP_RIGHT:return 1;case IA.BOTTOM:case IA.BOTTOM_FULL_LEFT:case IA.BOTTOM_FULL_RIGHT:return 4;case IA.BOTTOM_LEFT:case IA.BOTTOM_RIGHT:return 3;default:return 0}} ;function YA(a,b){this.v=a[Bd.Symbol.iterator]();this.N=b} YA.prototype[Symbol.iterator]=function(){return this};YA.prototype.next=function(){var a=this.v.next();return{value:a.done?void 0:this.N.call(void 0,a.value),done:a.done}};function ZA(a,b){return new YA(a,b)} ;function $A(){} $A.prototype.next=function(){return aB};var aB={done:!0,value:void 0};$A.prototype.Ce=function(){return this};function bB(a){if(a instanceof cB||a instanceof dB||a instanceof eB)return a;if(typeof a.next=="function")return new cB(function(){return a});if(typeof a[Symbol.iterator]=="function")return new cB(function(){return a[Symbol.iterator]()});if(typeof a.Ce=="function")return new cB(function(){return a.Ce()});throw Error("Not an iterator or iterable.");} function cB(a){this.v=a} cB.prototype.Ce=function(){return new dB(this.v())};cB.prototype[Symbol.iterator]=function(){return new eB(this.v())};cB.prototype.N=function(){return new eB(this.v())};function dB(a){this.v=a} Uc(dB,$A);dB.prototype.next=function(){return this.v.next()};dB.prototype[Symbol.iterator]=function(){return new eB(this.v)};dB.prototype.N=function(){return new eB(this.v)};function eB(a){cB.call(this,function(){return a});this.O=a} Uc(eB,cB);eB.prototype.next=function(){return this.O.next()};function fB(a,b){this.N={};this.v=[];this.O=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e2*this.size&&hB(this),!0):!1};function hB(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return aB;var h=e.v[b++];return{value:a?h:e.N[h],done:!1}};return f};function iB(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function jB(){this.N=new fB;this.v=new kB("");this.v.next=this.v.v=this.v} v=jB.prototype;v.get=function(a,b){return(a=this.N.get(a))?a.value:b};v.set=function(a,b){var c=this.N.get(a);c?c.value=b:(c=new kB(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)};v.shift=function(){return lB(this,this.v.next)};v.pop=function(){return lB(this,this.v.v)};v.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function mB(a){return a.map(function(b){return b})} v.contains=function(a){return this.some(function(b){return b==a})};v.clear=function(){this.nf(0)};v.forEach=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)a.call(b,c.value,c.key,this)};v.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};v.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};v.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};v.nf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function lB(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function kB(a,b){this.key=a;this.value=b} kB.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 nB(a){MA.call(this,a||'{{svg-sample}} {{series.name}}');this.Aa=!1;this.oa={};this.Ra=!1;this.N={};this.na=[];this.Oa=[];this.La="series_asc";this.ya=1} Qd(nB,MA);Od("aplos.chart.behavior.SeriesLegend",nB);var oB=null,pB=null;nB.prototype.ep=function(a){return a!=null?(this.Aa=a,a||(this.oa={}),this):this.Aa};nB.prototype.valuesFromNearestDatum=nB.prototype.ep;nB.prototype.vn=function(a){if(a==null)return this.Ra;this.Ra=!!a;return this};nB.prototype.hideEmptySeries=nB.prototype.vn;nB.prototype.wn=function(a){this.N[a]=!0;return this};nB.prototype.hideSeries=nB.prototype.wn;nB.prototype.Yg=function(a){if(a==null)return this.La;this.La=a;return this};nB.prototype.ordering=nB.prototype.Yg;nB.prototype.dj=function(a){if(a==null)return this.ya;this.ya=a;return this};nB.prototype.clickHandling=nB.prototype.dj;v=nB.prototype;v.Dc=function(a){var b=this;nB.Pb.Dc.call(this,a);a.on("mouseout.seriesLegend",function(){this.Aa&&(this.oa={},a.qe())},this);a.on("mousemove.seriesLegend",function(){if(this.Aa){for(var c=a.If(),e=0;e=0},a)}} function PA(a,b,c){for(var e=new jB,f=0;fthis.N)a.Id("hover").deselectAll(),sB(this);else{var e=[c];switch(this.ha){case 0:c.domain!==void 0&&(e=a.Hf(function(f){return!f.series.overlay&&f.domain===c.domain},!0,!0));break;case 1:e=b}this.select(a,e)}}};v.select=function(a,b){a.Id("hover").hh(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));uB(this,a)};function uB(a,b){if(!a.v){var c="selectnearest_"+Date.now();ek(a.ka).on("mouseout."+c,function(){var e=b.hb.select(".mouseCapturePane").node(),f;if(f=Ej&&Ej.target)e?(f=Fj(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,w){u==null&&(u=0);w==null&&(w=k.length);for(;u>>1;l(k[y],p)<0?u=y+1:w=y}return u},right:function(k,p,u,w){u==null&&(u=0);w==null&&(w=k.length);for(;u>>1;l(k[y],p)>0?w=y:u=y+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=(w=arguments.length)<2?(k=l,l=0,1):w<3?1:+p;for(var u=-1,w=Math.max(0,Math.ceil((k-l)/p))|0,y=Array(w);++u0)return[l];if(u=k0)for(l=Math.ceil(l/y),k=Math.floor(k/y),k=Array(z=Math.ceil(k-l+1));++w=0?(k>=no?10:k>=oo?5:k>=po?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(k>=no?10:k>=oo?5:k>=po?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>=no?p*=10:u>=oo?p*=5:u>=po&&(p*=2);return k=0&&(u=p.slice(w+1),p=p.slice(0,w));if(p&&!k.hasOwnProperty(p))throw Error("unknown type: "+p);return{type:p,name:u}})} function la(l,k,p){for(var u=0,w=l.length;u=0&&(k=l.slice(0,p))!=="xmlns"&&(l=l.slice(p+1));return se.hasOwnProperty(k)?{space:se[k],local:l}:l} function ra(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 ta(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}} function sa(l){l=ma(l);return(l.local?ta:ra)(l)} function Aa(){} function xa(l){return l==null?Aa:function(){return this.querySelector(l)}} function za(){return[]} function Ba(l){return l==null?za:function(){return this.querySelectorAll(l)}} function Ea(l){return Array(l.length)} function Da(l,k){this.ownerDocument=l.ownerDocument;this.namespaceURI=l.namespaceURI;this.Sc=null;this.ug=l;this.__data__=k} function Ia(l){return function(){return l}} function Ja(l,k,p,u,w,y){for(var z=0,E,na=k.length,qa=y.length;zk?1:l>=k?0:NaN} function Pa(l){return function(){this.removeAttribute(l)}} function Va(l){return function(){this.removeAttributeNS(l.space,l.local)}} function Cb(l,k){return function(){this.setAttribute(l,k)}} function Db(l,k){return function(){this.setAttributeNS(l.space,l.local,k)}} function Eb(l,k){return function(){var p=k.apply(this,arguments);p==null?this.removeAttribute(l):this.setAttribute(l,p)}} function Fb(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 Gb(l){return function(){this.style.removeProperty(l)}} function Hb(l,k,p){return function(){this.style.setProperty(l,k,p)}} function Ib(l,k,p){return function(){var u=k.apply(this,arguments);u==null?this.style.removeProperty(l):this.style.setProperty(l,u,p)}} function Za(l,k){return l.style.getPropertyValue(k)||(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView).getComputedStyle(l,null).getPropertyValue(k)} function Jb(l){return function(){delete this[l]}} function Kb(l,k){return function(){this[l]=k}} function Lb(l,k){return function(){var p=k.apply(this,arguments);p==null?delete this[l]:this[l]=p}} function eb(l){return l.classList||new tb(l)} function tb(l){this.Ti=l;this.Yd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function ub(l,k){l=eb(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 cc(l){return function(){var k=this.__on;if(k){for(var p=0,u=-1,w=k.length,y;p>8&15|k>>4&240,k>>4&15|k&240,(k&15)<<4|k&15,1)):(k=CB.exec(l))?yb(parseInt(k[1],16)):(k=DB.exec(l))?new Ka(k[1],k[2],k[3],1):(k=EB.exec(l))?new Ka(k[1]*255/100,k[2]*255/100,k[3]*255/100,1):(k=FB.exec(l))?zb(k[1],k[2],k[3],k[4]):(k=GB.exec(l))?zb(k[1]*255/100,k[2]*255/100,k[3]*255/100,k[4]):(k=HB.exec(l))?Ab(k[1],k[2]/100,k[3]/100,1):(k=IB.exec(l))?Ab(k[1],k[2]/100,k[3]/100,k[4]):Hu.hasOwnProperty(l)?yb(Hu[l]):l==="transparent"?new Ka(NaN,NaN,NaN,0):null} function yb(l){return new Ka(l>>16&255,l>>8&255,l&255,1)} function zb(l,k,p,u){u<=0&&(l=k=p=NaN);return new Ka(l,k,p,u)} function gb(l){l instanceof Wa||(l=Xa(l));if(!l)return new Ka;l=l.rgb();return new Ka(l.r,l.g,l.b,l.opacity)} function bb(l,k,p,u){return arguments.length===1?gb(l):new Ka(l,k,p,u==null?1:u)} function Ka(l,k,p,u){this.r=+l;this.g=+k;this.b=+p;this.opacity=+u} function hb(l){l=Math.max(0,Math.min(255,Math.round(l)||0));return(l<16?"0":"")+l.toString(16)} function Ab(l,k,p,u){u<=0?l=k=p=NaN:p<=0||p>=1?l=k=NaN:k<=0&&(l=NaN);return new Ta(l,k,p,u)} function gc(l){if(l instanceof Ta)return new Ta(l.h,l.s,l.l,l.opacity);l instanceof Wa||(l=Xa(l));if(!l)return new Ta;if(l instanceof Ta)return l;l=l.rgb();var k=l.r/255,p=l.g/255,u=l.b/255,w=Math.min(k,p,u),y=Math.max(k,p,u),z=NaN,E=y-w,na=(y+w)/2;E?(z=k===y?(p-u)/E+(p0&&na<1?0:z;return new Ta(z,E,na,l.opacity)} function ib(l,k,p,u){return arguments.length===1?gc(l):new Ta(l,k,p,u==null?1:u)} function Ta(l,k,p,u){this.h=+l;this.s=+k;this.l=+p;this.opacity=+u} function jb(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 kb(l){if(l instanceof Ua)return new Ua(l.l,l.a,l.b,l.opacity);if(l instanceof qb){if(isNaN(l.h))return new Ua(l.l,0,0,l.opacity);var k=l.h*Iu;return new Ua(l.l,Math.cos(k)*l.c,Math.sin(k)*l.c,l.opacity)}l instanceof Ka||(l=gb(l));var p=ob(l.r),u=ob(l.g),w=ob(l.b);k=lb(.2225045*p+.7168786*u+.0606169*w);if(p===u&&u===w)var y=p=k;else y=lb((.4360747*p+.3850649*u+.1430804*w)/.96422),p=lb((.0139322*p+.0971045*u+.7141733*w)/.82521);return new Ua(116*k-16,500*(y-k),200*(k-p),l.opacity)} function Ua(l,k,p,u){this.l=+l;this.a=+k;this.b=+p;this.opacity=+u} function lb(l){return l>JB?Math.pow(l,1/3):l/Ju+Ku} function mb(l){return l>wh?l*l*l:Ju*(l-Ku)} function nb(l){return 255*(l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function ob(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)} function hc(l){if(l instanceof qb)return new qb(l.h,l.c,l.l,l.opacity);l instanceof Ua||(l=kb(l));if(l.a===0&&l.b===0)return new qb(NaN,0,l.l,l.opacity);var k=Math.atan2(l.b,l.a)*Lu;return new qb(k<0?k+360:k,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function pb(l,k,p,u){return arguments.length===1?hc(l):new qb(l,k,p,u==null?1:u)} function qb(l,k,p,u){this.h=+l;this.c=+k;this.l=+p;this.opacity=+u} function cb(l,k,p,u){if(arguments.length===1){var w=l;if(w instanceof rb)w=new rb(w.h,w.s,w.l,w.opacity);else{w instanceof Ka||(w=gb(w));var y=w.g/255,z=w.b/255,E=(Mu*z+w.r/255*-1.7884503806-3.5172982438*y)/(Mu+-1.7884503806-3.5172982438);z-=E;var na=(1.97294*(y-E)- -.29227*z)/-.90649;z=(y=Math.sqrt(na*na+z*z)/(1.97294*E*(1-E)))?Math.atan2(na,z)*Lu-120:NaN;w=new rb(z<0?z+360:z,y,E,w.opacity)}}else w=new rb(l,k,p,u==null?1:u);return w} function rb(l,k,p,u){this.h=+l;this.s=+k;this.l=+p;this.opacity=+u} function kc(l,k,p,u,w){var y=l*l,z=y*l;return((1-3*l+3*y-z)*k+(4-6*y+3*z)*p+(1+3*l+3*y-3*z)*u+z*w)/6} function oc(l){return function(){return l}} function tc(l,k){return function(p){return l+p*k}} function yc(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 qc(l,k){var p=k-l;return p?tc(l,p>180||p<-180?p-360*Math.round(p/360):p):oc(isNaN(l)?k:l)} function zc(l){return(l=+l)===1?Bb:function(k,p){return p-k?yc(k,p,l):oc(isNaN(k)?p:k)}} function Bb(l,k){var p=k-l;return p?tc(l,p):oc(isNaN(l)?k:l)} function Fc(l){return function(k){var p=k.length,u=Array(p),w=Array(p),y=Array(p),z;for(z=0;zp&&(y=k.slice(p,y),E[z]?E[z]+=y:E[++z]=y),(u=u[0])===(w=w[0])?E[z]?E[z]+=w:E[++z]=w:(E[++z]=null,na.push({vd:z,x:mc(u,w)})),p=ro.lastIndex;p180?pa+=360:pa-qa>180&&(qa+=360),va.push({vd:oa.push(w(oa)+"rotate(",null,u)-2,x:mc(qa,pa)})):pa&&oa.push(w(oa)+"rotate("+pa+u)} function E(qa,pa,oa,va){qa!==pa?va.push({vd:oa.push(w(oa)+"skewX(",null,u)-2,x:mc(qa,pa)}):pa&&oa.push(w(oa)+"skewX("+pa+u)} function na(qa,pa,oa,va,Ca,Ga){qa!==oa||pa!==va?(Ca=Ca.push(w(Ca)+"scale(",null,",",null,")"),Ga.push({vd:Ca-4,x:mc(qa,oa)},{vd:Ca-2,x:mc(pa,va)})):oa===1&&va===1||Ca.push(w(Ca)+"scale("+oa+","+va+")")} return function(qa,pa){var oa=[],va=[];qa=l(qa);pa=l(pa);y(qa.Ii,qa.Ji,pa.Ii,pa.Ji,oa,va);z(qa.rotate,pa.rotate,oa,va);E(qa.skewX,pa.skewX,oa,va);na(qa.ai,qa.bi,pa.ai,pa.bi,oa,va);qa=pa=null;return function(Ca){for(var Ga=-1,ic=va.length,db;++Ga=0&&l.xf.call(null,k),l=l.Sc;--xh}finally{xh=0;l=Lk;for(var p=Infinity;l;)if(l.xf){p>l.zf&&(p=l.zf);var u=l;l=l.Sc}else k=l.Sc,l.Sc=null,l=u?u.Sc=k:Lk=k;Oi=u;tf(p);Ag=0}} function We(){var l=Mi.now(),k=l-Kk;k>1E3&&(Jk-=k,Kk=l)} function tf(l){xh||(Ni&&(Ni=clearTimeout(Ni)),l-Ag>24?(l0)throw Error("too late; already scheduled");return l} function Xe(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 vk(l,k,p){function u(na){var qa,pa;if(p.state!==1)return y();for(va in z){var oa=z[va];if(oa.name===p.name){if(oa.state===3)return Ai(u);oa.state===4?(oa.state=6,oa.timer.stop(),oa.on.call("interrupt",l,l.__data__,oa.index,oa.group),delete z[va]):+va=0&&(k=k.slice(0,p));return!k||k==="start"})} function Zd(l,k,p){var u,w,y=xe(k)?qe:Xe;return function(){var z=y(this,l),E=z.on;if(E!==u)(w=(u=E).copy()).on(k,p);z.on=w}} function Rf(l){return function(){var k=this.parentNode,p;for(p in this.Cd)if(+p!==l)return;k&&k.removeChild(this)}} function nh(l,k){var p,u,w;return function(){var y=Za(this,l),z=(this.style.removeProperty(l),Za(this,l));return y===z?null:y===p&&z===u?w:w=k(p=y,u=z)}} function de(l){return function(){this.style.removeProperty(l)}} function Pn(l,k,p){var u,w;return function(){var y=Za(this,l);return y===p?null:y===u?w:w=k(u=y,p)}} function MB(l,k,p){var u,w,y;return function(){var z=Za(this,l),E=p(this);E==null&&(E=(this.style.removeProperty(l),Za(this,l)));return z===E?null:z===u&&E===w?y:y=k(u=z,w=E)}} function NB(l,k,p){function u(){var w=this,y=k.apply(w,arguments);return y&&function(z){w.style.setProperty(l,y(z),p)}} u.wg=k;return u} function OB(l){return function(){this.textContent=l}} function PB(l){return function(){var k=l(this);this.textContent=k==null?"":k}} function Bf(l,k,p,u){this.lb=l;this.bc=k;this.Ee=p;this.Rb=u} function so(l){return{type:l}} function to(){this.Pa=this.Qa=this.Ba=this.Da=null;this.Fa=""} function Mk(){return new to} function Nk(){} function Ok(l,k){var p=new Nk;if(l instanceof Nk)l.each(function(z,E){p.set(E,z)});else if(Array.isArray(l)){var u=-1,w=l.length,y;if(k==null)for(;++u=pa?Ga=!0:(sc=z.charCodeAt(oa++))===10?ic=!0:sc===13&&(ic=!0,z.charCodeAt(oa)===10&&++oa);return z.slice(Tc+1,Oc-1).replace(/""/g,'"')}for(;oa=(pa=(z+na)/2))?z=pa:na=pa,(Ca=p>=(oa=(E+qa)/2))?E=oa:qa=oa,w=y,!(y=y[Ga=Ca<<1|va]))return w[Ga]=u,l;var ic=+l.wb.call(null,y.data);var db=+l.Db.call(null,y.data);if(k===ic&&p===db)return u.next=y,w?w[Ga]=u:l.rb=u,l;do w=w?w[Ga]=Array(4):l.rb=Array(4),(va=k>=(pa=(z+na)/2))?z=pa:na=pa,(Ca=p>=(oa=(E+qa)/2))?E=oa:qa=oa;while((Ga=Ca<< 1|va)===(va=(db>=oa)<<1|ic>=pa));return w[va]=y,w[Ga]=u,l} function ee(l,k,p,u,w){this.node=l;this.x0=k;this.y0=p;this.x1=u;this.y1=w} function TB(l){return l[0]} function UB(l){return l[1]} function vo(l,k,p,u,w,y){this.wb=l;this.Db=k;this.Pa=p;this.Qa=u;this.Ba=w;this.Da=y;this.rb=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 Qk(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 yh(l){return l=Qk(Math.abs(l)),l?l[1]:NaN} function VB(l,k){return function(p,u){for(var w=p.length,y=[],z=0,E=l[0],na=0;w>0&&E>0;){na+E+1>u&&(E=Math.max(1,u-na));y.push(p.substring(w-=E,w+E));if((na+=E+1)>u)break;E=l[z=(z+1)%l.length]}return y.reverse().join(k)}} function WB(l){return function(k){return k.replace(/[0-9]/g,function(p){return l[+p]})}} function Rk(l){return new wo(l)} function wo(l){if(!(k=XB.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=Qk(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 YB(l){function k(E){function na(La){var Qc=sc,Ha=Nc,Sa;if(Tc==="c")Ha=bd(La)+Ha,La="";else{La=+La;var Fa=La<0;La=bd(Math.abs(La),db);if(Oc){var Ma=La.length;var Zc=1,xd=-1,Cd;a:for(;Zc0&&(xd=0)}La=xd>0?La.slice(0,xd)+La.slice(Cd+1):La}Fa&&+La===0&&(Fa=!1);Qc=(Fa?oa==="("?oa:"-":oa==="-"||oa==="("?"":oa)+Qc;Ha=(Tc==="s"?Xu[8+Yu/3]:"")+Ha+(Fa&&oa==="("?")":"");if(Pc)for(Fa=-1,Ma=La.length;++FaSa||Sa>57){Ha=(Sa===46?w+La.slice(Fa+1):La.slice(Fa))+Ha;La=La.slice(0,Fa);break}}ic&&!Ca&&(La=p(La,Infinity));Sa=Qc.length+La.length+Ha.length;Fa=Sa>1)+Qc+La+Ha+Fa.slice(Sa);break;default:La=Fa+Qc+La+Ha}return y(La)} E=Rk(E);var qa=E.fill,pa=E.align,oa=E.sign,va=E.symbol,Ca=E.zero,Ga=E.width,ic=E.comma,db=E.precision,Oc=E.trim,Tc=E.type;Tc==="n"?(ic=!0,Tc="g"):Zu[Tc]||(db==null&&(db=12),Oc=!0,Tc="g");if(Ca||qa==="0"&&pa==="=")Ca=!0,qa="0",pa="=";var sc=va==="$"?u[0]:va==="#"&&/[boxX]/.test(Tc)?"0"+Tc.toLowerCase():"",Nc=va==="$"?u[1]:/[%p]/.test(Tc)?z:"",bd=Zu[Tc],Pc=/[defgprs%]/.test(Tc);db=db==null?6:/[gprs]/.test(Tc)?Math.max(1,Math.min(21,db)):Math.max(0,Math.min(20,db));na.toString=function(){return E+""};return na} var p=l.grouping&&l.thousands?VB(l.grouping,l.thousands):Wu,u=l.currency,w=l.decimal,y=l.numerals?WB(l.numerals):Wu,z=l.percent||"%";return{format:k,formatPrefix:function(E,na){var qa=k((E=Rk(E),E.type="f",E));E=Math.max(-8,Math.min(8,Math.floor(yh(na)/3)))*3;var pa=Math.pow(10,-E),oa=Xu[8+E/3];return function(va){return qa(pa*va)+oa}}}} function Ie(){this.reset()} function $u(l,k,p){var u=l.s=k+p,w=u-k;l.t=k-(u-w)+(p-w)} function Sk(l){return l>1?ze:l<-1?-ze:Math.asin(l)} function ZB(){} 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=Tk(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=k;l[1]/=k;l[2]/=k} function $B(){var l=[],k;return{point:function(p,u){k.push([p,u])},lineStart:function(){l.push(k=[])},lineEnd:ZB,hr:function(){l.length>1&&l.push(l.pop().concat(l.shift()))},result:function(){var p=l;l=[];k=null;return p}}} function Uk(l,k,p,u){this.x=l;this.z=k;this.Wg=p;this.e=u;this.lh=!1;this.n=this.p=null} function aC(l,k,p,u,w){var y=[],z=[];l.forEach(function(oa){if(!((va=oa.length-1)<=0)){var va,Ca=oa[0],Ga=oa[va],ic=Ca;if(Xf(ic[0]-Ga[0])<1E-6&&Xf(ic[1]-Ga[1])<1E-6){w.lineStart();for(E=0;E=0;--E)w.point((na=k[E])[0],na[1]);else u(qa.x,qa.p.x,-1,w);qa=qa.p}qa=qa.Wg;k=qa.z;pa=!pa}while(!qa.lh);w.lineEnd()}}} function dv(l){if(k=l.length){for(var k,p=0,u=l[0],w;++p1} function cC(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 xo(){} function ev(l){return function(k,p){var u=Ae(k),w=Ae(p);u=l(u*w);return[u*w*$d(k),u*$d(p)]}} function Qi(l){return function(k,p){var u=Tk(k*k+p*p),w=l(u),y=$d(w);w=Ae(w);return[fv(k*y,u*w),Sk(u&&p*y/u)]}} function dC(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 Ri(l);l=+l.value&&(p.value=l.value);var u,w=[p],y,z,E,na;for(k==null&&(k=eC);u=w.pop();)if(l&&(u.value=+u.data.value),(z=k(u.data))&&(na=z.length))for(u.children=Array(na),E=na-1;E>=0;--E)w.push(y=u.children[E]=new Ri(z[E])),y.parent=u,y.depth=u.depth+1;return p.eachBefore(fC)} function eC(l){return l.children} function gC(l){l.data=l.data.data} function fC(l){var k=0;do l.height=k;while((l=l.parent)&&l.height<++k)} function Ri(l){this.data=l;this.depth=this.height=0;this.parent=null} function yo(l){function k(y){var z=y+"",E=p.get(z);if(!E){if(w!==hv)return w;p.set(z,E=u.push(y))}return l[(E-1)%l.length]} var p=Ok(),u=[],w=hv;l=l==null?[]:Vk.call(l);k.domain=function(y){if(!arguments.length)return u.slice();u=[];p=Ok();for(var z=-1,E=y.length,na,qa;++z=p?1:u(w)}}} function jC(l){return function(k,p){var u=l(k=+k,p=+p);return function(w){return w<=0?k:w>=1?p:u(w)}}} function kC(l,k,p,u){var w=l[0];l=l[1];var y=k[0];k=k[1];l2?lC:kC;qa=pa=null;return u} function u(oa){return(qa||(qa=na(w,y,E?iC(l):l,z)))(+oa)} var w=kv,y=kv,z=pc,E=!1,na,qa,pa;u.invert=function(oa){return(pa||(pa=na(y,w,Ao,E?jC(k):k)))(+oa)};u.domain=function(oa){return arguments.length?(w=lv.call(oa,hC),p()):w.slice()};u.range=function(oa){return arguments.length?(y=Vk.call(oa),p()):y.slice()};u.rangeRound=function(oa){return y=Vk.call(oa),z=Dc,p()};u.clamp=function(oa){return arguments.length?(E=!!oa,p()):E};u.interpolate=function(oa){return arguments.length?(z=oa,p()):z};return p()} function nC(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 w=k(),y=w[0];w=w[w.length-1];p=r(y,w,p==null?10:p);u=Rk(u==null?",f":u);switch(u.type){case "s":y=Math.max(Math.abs(y),Math.abs(w));if(w=u.precision==null){var z=isNaN;p=Math.max(0,Math.max(-8,Math.min(8,Math.floor(yh(y)/3)))*3-yh(Math.abs(p)));w=!z(z=p)}w&&(u.precision=z);u=wB(u,y);break a;case "":case "e":case "g":case "p":case "r":var E;if(E=u.precision==null)z=isNaN,y=Math.max(Math.abs(y),Math.abs(w)),p=Math.abs(p),y=Math.abs(y)-p,p=Math.max(0,yh(y)-yh(p))+1,E=!z(z=p);E&&(u.precision=z-(u.type==="e"));break;case "f":case "%":u.precision!=null||isNaN(z=Math.max(0,-yh(Math.abs(p))))||(u.precision=z-(u.type==="%")*2)}u=qi(u)}return u};l.nice=function(p){p==null&&(p=10);var u=k(),w=0,y=u.length-1,z=u[w],E=u[y];if(E0?(z=Math.floor(z/na)*na,E=Math.ceil(E/na)*na,na=n(z,E,p)):na<0&&(z=Math.ceil(z*na)/na,E=Math.floor(E*na)/na,na=n(z,E,p));na>0?(u[w]=Math.floor(z/na)*na,u[y]=Math.ceil(E/na)*na,k(u)):na<0&&(u[w]=Math.ceil(z*na)/na,u[y]=Math.floor(E*na)/na,k(u));return l};return l} function mv(){var l=Co(Ao,mc);l.copy=function(){return Bo(l,mv())};return nC(l)} function nv(l,k){l=l.slice();var p=0,u=l.length-1,w=l[p],y=l[u];if(y0)for(;paE)break;z.push(Ga)}}}else for(;pa=1;--Ca){if(Ga=va*Ca,!(GaE)break;z.push(Ga)}}else z=h(pa,oa,Math.min(oa-pa,va)).map(y);return qa?z.reverse():z};k.tickFormat=function(z,E){E==null&&(E=u===10?".0e":",");typeof E!=="function"&&(E=qi(E));if(z===Infinity)return E;z==null&&(z=10);var na=Math.max(1,u*z/k.ticks().length);return function(qa){var pa=qa/y(Math.round(w(qa)));pa*u0))return na;do na.push(qa=new Date(+y)),k(y,E),l(y);while(qa=z)for(;l(z),!y(z);)z.setTime(z-1)},function(z,E){if(z>=z)if(E<0)for(;++E<=0;)for(;k(z,-1),!y(z););else for(;--E>=0;)for(;k(z,1),!y(z););})};p&&(w.count=function(y,z){Do.setTime(+y);Eo.setTime(+z);l(Do);l(Eo);return Math.floor(p(Do,Eo))},w.every=function(y){y=Math.floor(y);return isFinite(y)&&y>0?y>1?w.filter(u?function(z){return u(z)%y===0}:function(z){return w.count(0,z)%y===0}):w:null});return w} function Bg(l){return Pd(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 Cg(l){return Pd(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 rC(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 Wk(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 Si(l){return{y:l,m:0,d:1,md:0,M:0,S:0,L:0}} function sC(l){function k(Ha,Sa){return function(Fa){var Ma=[],Zc=-1,xd=0,Cd=Ha.length,od,te;for(Fa instanceof Date||(Fa=new Date(+Fa));++Zc53)return null;"w"in Ma||(Ma.w=1);if("Z"in Ma){Fa=Wk(Si(Ma.y));var Zc=Fa.getUTCDay();Fa=Zc>4||Zc===0?Fo.ceil(Fa):Fo(Fa);Fa=tv.offset(Fa,(Ma.qg-1)*7);Ma.y=Fa.getUTCFullYear();Ma.m=Fa.getUTCMonth();Ma.d=Fa.getUTCDate()+(Ma.w+6)%7}else Fa=Sa(Si(Ma.y)),Zc=Fa.getDay(),Fa=Zc>4||Zc===0?Go.ceil(Fa):Go(Fa),Fa=Ho.offset(Fa,(Ma.qg-1)*7),Ma.y=Fa.getFullYear(),Ma.m=Fa.getMonth(),Ma.d=Fa.getDate()+(Ma.w+6)%7}else if("W"in Ma||"U"in Ma)"w"in Ma||(Ma.w="u"in Ma?Ma.Yo%7:"W"in Ma?1:0),Zc="Z"in Ma?Wk(Si(Ma.y)).getUTCDay():Sa(Si(Ma.y)).getDay(),Ma.m=0,Ma.d="W"in Ma?(Ma.w+6)%7+Ma.W*7-(Zc+5)%7:Ma.w+Ma.U*7-(Zc+6)%7;return"Z"in Ma?(Ma.md+=Ma.Z/100|0,Ma.M+=Ma.Z%100,Wk(Ma)):Sa(Ma)}} function u(Ha,Sa,Fa,Ma){for(var Zc=0,xd=Sa.length,Cd=Fa.length,od;Zc=Cd)return-1;od=Sa.charCodeAt(Zc++);if(od===37){if(od=Sa.charAt(Zc++),od=Qc[od in sv?Sa.charAt(Zc++):od],!od||(Ma=od(Ha,Fa,Ma))<0)return-1}else if(od!=Fa.charCodeAt(Ma++))return-1}return Ma} var w=l.dateTime,y=l.date,z=l.time,E=l.periods,na=l.days,qa=l.shortDays,pa=l.months,oa=l.shortMonths,va=Ti(E),Ca=Ui(E),Ga=Ti(na),ic=Ui(na),db=Ti(qa),Oc=Ui(qa),Tc=Ti(pa),sc=Ui(pa),Nc=Ti(oa),bd=Ui(oa),Pc={a:function(Ha){return qa[Ha.getDay()]},A:function(Ha){return na[Ha.getDay()]},b:function(Ha){return oa[Ha.getMonth()]},B:function(Ha){return pa[Ha.getMonth()]},c:null,d:uv,e:uv,f:tC,H:uC,I:vC,j:wC,L:vv,m:xC,M:yC,p:function(Ha){return E[+(Ha.getHours()>=12)]},Q:wv,s:xv,S:zC,u:AC,U:BC,V:CC,w:DC,W:EC,x:null,X:null,y:FC,Y:GC,Z:HC,"%":yv},La={a:function(Ha){return qa[Ha.getUTCDay()]},A:function(Ha){return na[Ha.getUTCDay()]},b:function(Ha){return oa[Ha.getUTCMonth()]},B:function(Ha){return pa[Ha.getUTCMonth()]},c:null,d:zv,e:zv,f:IC,H:JC,I:KC,j:LC,L:Av,m:MC,M:NC,p:function(Ha){return E[+(Ha.getUTCHours()>=12)]},Q:wv,s:xv,S:OC,u:PC,U:QC,V:RC,w:SC,W:TC,x:null,X:null,y:UC,Y:VC,Z:WC,"%":yv},Qc={a:function(Ha,Sa,Fa){return(Sa=db.exec(Sa.slice(Fa)))?(Ha.w=Oc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},A:function(Ha,Sa,Fa){return(Sa=Ga.exec(Sa.slice(Fa)))?(Ha.w=ic[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},b:function(Ha,Sa,Fa){return(Sa=Nc.exec(Sa.slice(Fa)))?(Ha.m=bd[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},B:function(Ha,Sa,Fa){return(Sa=Tc.exec(Sa.slice(Fa)))?(Ha.m=sc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},c:function(Ha,Sa,Fa){return u(Ha,w,Sa,Fa)},d:Bv,e:Bv,f:XC,H:Cv,I:Cv,j:YC,L:ZC,m:$C,M:aD,p:function(Ha,Sa,Fa){return(Sa=va.exec(Sa.slice(Fa)))?(Ha.p=Ca[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},Q:bD,s:cD,S:dD,u:eD,U:fD,V:gD,w:hD,W:iD,x:function(Ha,Sa,Fa){return u(Ha,y,Sa,Fa)},X:function(Ha,Sa,Fa){return u(Ha,z,Sa,Fa)},y:jD,Y:kD,Z:lD,"%":mD};Pc.x=k(y,Pc);Pc.X=k(z,Pc);Pc.c=k(w,Pc);La.x=k(y,La);La.X=k(z,La);La.c=k(w,La);return{format:function(Ha){var Sa=k(Ha+="",Pc);Sa.toString=function(){return Ha};return Sa},parse:function(Ha){var Sa=p(Ha+="",rC);Sa.toString=function(){return Ha};return Sa},utcFormat:function(Ha){var Sa=k(Ha+="",La);Sa.toString=function(){return Ha};return Sa},utcParse:function(Ha){var Sa=p(Ha,Wk);Sa.toString=function(){return Ha};return Sa}}} function rd(l,k,p){var u=l<0?"-":"";l=(u?-l:l)+"";var w=l.length;return u+(w68?1900:2E3),p+k[0].length):-1} function lD(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 $C(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 YC(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 aD(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.M=+k[0],p+k[0].length):-1} function dD(l,k,p){return(k=Vd.exec(k.slice(p,p+2)))?(l.S=+k[0],p+k[0].length):-1} function ZC(l,k,p){return(k=Vd.exec(k.slice(p,p+3)))?(l.L=+k[0],p+k[0].length):-1} function XC(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 mD(l,k,p){return(l=pD.exec(k.slice(p,p+1)))?p+l[0].length:-1} function bD(l,k,p){return(k=Vd.exec(k.slice(p)))?(l.Q=+k[0],p+k[0].length):-1} function cD(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 rd(l.getDate(),k,2)} function uC(l,k){return rd(l.getHours(),k,2)} function vC(l,k){return rd(l.getHours()%12||12,k,2)} function wC(l,k){return rd(1+Ho.count(Dg(l),l),k,3)} function vv(l,k){return rd(l.getMilliseconds(),k,3)} function tC(l,k){return vv(l,k)+"000"} function xC(l,k){return rd(l.getMonth()+1,k,2)} function yC(l,k){return rd(l.getMinutes(),k,2)} function zC(l,k){return rd(l.getSeconds(),k,2)} function AC(l){l=l.getDay();return l===0?7:l} function BC(l,k){return rd(Dv.count(Dg(l),l),k,2)} function CC(l,k){var p=l.getDay();l=p>=4||p===0?Io(l):Io.ceil(l);return rd(Io.count(Dg(l),l)+(Dg(l).getDay()===4),k,2)} function DC(l){return l.getDay()} function EC(l,k){return rd(Go.count(Dg(l),l),k,2)} function FC(l,k){return rd(l.getFullYear()%100,k,2)} function GC(l,k){return rd(l.getFullYear()%1E4,k,4)} function HC(l){l=l.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+rd(l/60|0,"0",2)+rd(l%60,"0",2)} function zv(l,k){return rd(l.getUTCDate(),k,2)} function JC(l,k){return rd(l.getUTCHours(),k,2)} function KC(l,k){return rd(l.getUTCHours()%12||12,k,2)} function LC(l,k){return rd(1+tv.count(zh(l),l),k,3)} function Av(l,k){return rd(l.getUTCMilliseconds(),k,3)} function IC(l,k){return Av(l,k)+"000"} function MC(l,k){return rd(l.getUTCMonth()+1,k,2)} function NC(l,k){return rd(l.getUTCMinutes(),k,2)} function OC(l,k){return rd(l.getUTCSeconds(),k,2)} function PC(l){l=l.getUTCDay();return l===0?7:l} function QC(l,k){return rd(qD.count(zh(l),l),k,2)} function RC(l,k){var p=l.getUTCDay();l=p>=4||p===0?Jo(l):Jo.ceil(l);return rd(Jo.count(zh(l),l)+(zh(l).getUTCDay()===4),k,2)} function SC(l){return l.getUTCDay()} function TC(l,k){return rd(Fo.count(zh(l),l),k,2)} function UC(l,k){return rd(l.getUTCFullYear()%100,k,2)} function VC(l,k){return rd(l.getUTCFullYear()%1E4,k,4)} function WC(){return"+0000"} function yv(){return"%"} function wv(l){return+l} function xv(l){return Math.floor(+l/1E3)} function rD(l){return new Date(l)} function sD(l){return l instanceof Date?+l:+new Date(+l)} function Ev(l,k,p,u,w,y,z,E,na){function qa(La){return(z(La)=1?Yk:l<=-1?-Yk:Math.asin(l)} function uD(l){return l.innerRadius} function vD(l){return l.outerRadius} function wD(l){return l.startAngle} function xD(l){return l.endAngle} function yD(l){return l&&l.padAngle} function Zk(l,k,p,u,w,y,z){var E=l-p,na=k-u;z=(z?y:-y)/Ah(E*E+na*na);na*=z;E*=-z;var qa=l+na,pa=k+E,oa=p+na,va=u+E;p=(qa+oa)/2;u=(pa+va)/2;k=oa-qa;l=va-pa;z=k*k+l*l;y=w-y;va=qa*va-oa*pa;var Ca=(l<0?-1:1)*Ah(zD(0,y*y*z-va*va));qa=(va*l-k*Ca)/z;pa=(-va*k-l*Ca)/z;oa=(va*l+k*Ca)/z;k=(-va*k+l*Ca)/z;l=qa-p;z=pa-u;p=oa-p;u=k-u;l*l+z*z>p*p+u*u&&(qa=oa,pa=k);return{cx:qa,cy:pa,kd:-na,ld:-E,Vd:qa*(w/y-1),Wd:pa*(w/y-1)}} function Gv(l){this.Ea=l} function $k(l){return new Gv(l)} function Hv(l){return l[0]} function Iv(l){return l[1]} function Jv(){function l(E){var na,qa=E.length,pa,oa=!1,va;w==null&&(z=y(va=Mk()));for(na=0;na<=qa;++na)!(nal?1:k>=l?0:NaN} function BD(l){return l} function Kv(l){this.De=l} function Lv(l,k,p){l.Ea.bezierCurveTo((2*l.Pa+l.Ba)/3,(2*l.Qa+l.Da)/3,(l.Pa+2*l.Ba)/3,(l.Qa+2*l.Da)/3,(l.Pa+4*l.Ba+k)/6,(l.Qa+4*l.Da+p)/6)} function Mv(l){this.Ea=l} function Nv(l,k,p){l.Ea.bezierCurveTo(l.Ba+l.tg*(l.Fe-l.Pa),l.Da+l.tg*(l.Ge-l.Qa),l.Fe+l.tg*(l.Ba-k),l.Ge+l.tg*(l.Da-p),l.Fe,l.Ge)} function Ov(l,k){this.Ea=l;this.tg=(1-k)/6} function Pv(l,k,p){var u=l.Ba-l.Pa;k-=l.Ba;var w=(l.Da-l.Qa)/(u||k<0&&-0);l=(p-l.Da)/(k||u<0&&-0);return((w<0?-1:1)+(l<0?-1:1))*Math.min(Math.abs(w),Math.abs(l),.5*Math.abs((w*k+l*u)/(u+k)))||0} function Qv(l,k){var p=l.Ba-l.Pa;return p?(3*(l.Da-l.Qa)/p-k)/2:k} function Ko(l,k,p){var u=l.Pa,w=l.Ba,y=l.Da,z=(w-u)/3;l.Ea.bezierCurveTo(u+z,l.Qa+z*k,w-z,y-z*p,w,y)} function al(l){this.Ea=l} function Rv(l){this.Ea=new Sv(l)} function Sv(l){this.Ea=l} function Tv(l){this.Ea=l} function Uv(l){var k,p=l.length-1,u=Array(p),w=Array(p),y=Array(p);u[0]=0;w[0]=2;y[0]=l[0]+2*l[1];for(k=1;k=0;--k)u[k]=(y[k]-u[k+1])/w[k];w[p-1]=(l[p]+u[p-1])/2;for(k=0;k0)for(var p=Array(w),u=0,w,y;u=0&&(this.Yd.splice(l,1),this.Ti.setAttribute("class",this.Yd.join(" ")))},contains:function(l){return this.Yd.indexOf(l)>=0}};var Fu={};Ej=null;typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Fu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Gu=[null];Qa.prototype=Ya.prototype={constructor:Qa,select:function(l){typeof l!=="function"&&(l=xa(l));for(var k=this.lb,p=k.length,u=Array(p),w=0;w=oa&&(oa=pa+1);!(Oc=db[oa])&&++oa=0;)if(z=u[w])y&&y!==z.nextSibling&&y.parentNode.insertBefore(z,y),y=z;return this},sort:function(l){function k(oa,va){return oa&&va?l(oa.__data__,va.__data__):!oa-!va} l||(l=Oa);for(var p=this.lb,u=p.length,w=Array(u),y=0;y1?this.each((k==null?Gb:typeof k==="function"?Ib:Hb)(l,k,p==null?"":p)):Za(this.node(),l)},property:function(l,k){return arguments.length>1?this.each((k==null?Jb:typeof k==="function"?Lb:Kb)(l,k)):this.node()[l]},classed:function(l,k){var p=(l+"").trim().split(/^|\s+/);if(arguments.length<2){for(var u=eb(this.node()),w=-1,y=p.length;++w=240?l-240:l+120,k,p),jb(l,k,p),jb(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,wh=6/29,Ju=3*wh*wh,JB=wh*wh*wh;$a(Ua,function(l,k,p,u){return arguments.length===1?kb(l):new Ua(l,k,p,u==null?1:u)},ab(Wa,{brighter:function(l){return new Ua(this.l+18*(l==null?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Ua(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*mb(k);l=1*mb(l);p=.82521*mb(p);return new Ka(nb(3.1338561*k-1.6168667*l-.4906146*p),nb(-.9787684*k+1.9161415*l+.033454*p),nb(.0719453*k-.2289914*l+1.4052427*p),this.opacity)}}));$a(qb,pb,ab(Wa,{brighter:function(l){return new qb(this.h,this.c,this.l+18*(l==null?1:l),this.opacity)},darker:function(l){return new qb(this.h,this.c,this.l-18*(l==null?1:l),this.opacity)},rgb:function(){return kb(this).rgb()}}));var Mu=1.78277*-.29227-.1347134789;$a(rb,cb,ab(Wa,{brighter:function(l){l=l==null?Bh:Math.pow(Bh,l);return new rb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=l==null?.7:Math.pow(.7,l);return new rb(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 Ka(255*(k+p*(-.14861*u+1.78277*l)),255*(k+p*(-.29227*u+-.90649*l)),255*(k+1.97294*u*p),this.opacity)}}));var Ik=function p(k){function u(y,z){var E=w((y=bb(y)).r,(z=bb(z)).r),na=w(y.g,z.g),qa=w(y.b,z.b),pa=Bb(y.opacity,z.opacity);return function(oa){y.r=E(oa);y.g=na(oa);y.b=qa(oa);y.opacity=pa(oa);return y+""}} var w=zc(k);u.gamma=p;return u}(1),tD=Fc(function(k){var p=k.length-1;return function(u){var w=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),y=k[w],z=k[w+1];return kc((u-w/p)*p,w>0?k[w-1]:2*y-z,y,z,w2&&w.state<5;w.state=6;w.timer.stop();E&&w.on.call("interrupt",this,this.__data__,w.index,w.group);delete u[z]}y&&delete this.Cd}})};Ya.prototype.transition=function(k){var p;if(k instanceof Bf){var u=k.Rb;k=k.Ee}else u=++Xv,(p=Oo).time=vg(),k=k==null?null:k+"";for(var w=this.lb,y=w.length,z=0;z1E-6)if(Math.abs(oa*na-qa*pa)>1E-6&&y){u-=z;w-=E;var Ca=na*na+qa*qa;E=Math.sqrt(Ca);z=Math.sqrt(va);va=y*Math.tan((Po-Math.acos((Ca+va-(u*u+w*w))/(2*E*z)))/2);z=va/z;va/=E;Math.abs(z-1)>1E-6&&(this.Fa+="L"+(k+z*pa)+","+(p+z*oa));this.Fa+="A"+y+","+y+",0,0,"+ +(oa*u>pa*w)+ ","+(this.Ba=k+va*na)+","+(this.Da=p+va*qa)}else this.Fa+="L"+(this.Ba=k)+","+(this.Da=p)},arc:function(k,p,u,w,y,z){k=+k;p=+p;u=+u;var E=u*Math.cos(w),na=u*Math.sin(w),qa=k+E,pa=p+na,oa=1^z;w=z?w-y:y-w;if(u<0)throw Error("negative radius: "+u);if(this.Ba===null)this.Fa+="M"+qa+","+pa;else if(Math.abs(this.Ba-qa)>1E-6||Math.abs(this.Da-pa)>1E-6)this.Fa+="L"+qa+","+pa;u&&(w<0&&(w=w%Qo+Qo),w>GD?this.Fa+="A"+u+","+u+",0,1,"+oa+","+(k-E)+","+(p-na)+"A"+u+","+u+",0,1,"+oa+","+(this.Ba=qa)+","+(this.Da=pa):w>1E-6&&(this.Fa+="A"+u+","+u+",0,"+ +(w>=Po)+","+oa+","+(this.Ba=k+u*Math.cos(y))+","+ (this.Da=p+u*Math.sin(y))))},rect:function(k,p,u,w){this.Fa+="M"+(this.Pa=this.Ba=+k)+","+(this.Qa=this.Da=+p)+"h"+ +u+"v"+ +w+"h"+-u+"Z"},toString:function(){return this.Fa}};Nk.prototype=Ok.prototype={constructor:Nk,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 Eg=Ok.prototype;Pk.prototype=function(k,p){var u=new Pk;if(k instanceof Pk)k.each(function(z){u.add(z)});else if(k){var w=-1,y=k.length;if(p==null)for(;++woa&&(oa=y),zva&&(va=z));oak||k>y||w>p||p>z){var E=y-u,na=this.rb,qa;switch(qa=(p<(w+z)/2)<<1|k<(u+y)/2){case 0:do{var pa=Array(4);pa[qa]=na;na=pa}while(E*=2,y=u+E,z=w+E,k>y||p>z);break;case 1:do pa=Array(4),pa[qa]=na,na=pa;while(E*=2,u=y-E,z=w+E,u>k||p>z);break;case 2:do pa=Array(4),pa[qa]=na,na=pa;while(E*=2,y=u+E,w=z-E,k>y||w>p);break;case 3:do pa=Array(4),pa[qa]=na,na=pa;while(E*=2,u=y-E,w=z-E,u>k||w>p)}this.rb&&this.rb.length&&(this.rb=na)}else return this;this.Pa=u;this.Qa=w;this.Ba=y;this.Da=z;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.Pa)?void 0:[[this.Pa,this.Qa],[this.Ba,this.Da]]};fe.find=function(k,p,u){var w=this.Pa,y=this.Qa,z,E,na,qa,pa=this.Ba,oa=this.Da,va=[],Ca=this.rb,Ga;Ca&&va.push(new ee(Ca,w,y,pa,oa));u==null?u=Infinity:(w=k-u,y=p-u,pa=k+u,oa=p+u,u*=u);for(;Ga=va.pop();)if(!(!(Ca=Ga.node)||(z=Ga.x0)>pa||(E=Ga.y0)>oa||(na=Ga.x1)=ic)<<1|k>=Ga)Ga=va[va.length-1],va[va.length-1]=va[va.length- 1-Ca],va[va.length-1-Ca]=Ga}else if(Ga=k-+this.wb.call(null,Ca.data),ic=p-+this.Db.call(null,Ca.data),Ga=Ga*Ga+ic*ic,Ga=(oa=(y+E)/2))?y=oa:E=oa;(Ga=pa>=(va=(z+na)/2))?z=va:na=va;if(!(p=u,u=u[ic=Ga<<1|Ca]))return this;if(!u.length)break;if(p[ic+1&3]||p[ic+2&3]||p[ic+3&3]){var db=p;var Oc=ic}}for(;u.data!==k;)if(!(w=u,u=u.next))return this;(k=u.next)&&delete u.next;if(w)return k?w.next=k:delete w.next,this;if(!p)return this.rb=k,this;k?p[ic]=k:delete p[ic];(u=p[0]||p[1]||p[2]||p[3])&&u===(p[3]||p[2]||p[1]||p[0])&&!u.length&&(db?db[Oc]=u:this.rb=u);return this};fe.removeAll=function(k){for(var p=0,u=k.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Rk.prototype=wo.prototype;wo.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=Qk(k,p);if(!u)return k+"";var w=u[0];u=u[1];u=u-(Yu=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var y=w.length;return u===y?w:u>y?w+Array(u-y+1).join("0"):u>0?w.slice(0,u)+"."+w.slice(u):"0."+Array(1-u).join("0")+Qk(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(" "),dl;(function(k){dl=YB(k);qi=dl.format;wB=dl.formatPrefix;return dl})({decimal:".",thousands:",",grouping:[3],currency:["$",""]});Ie.prototype={constructor:Ie,reset:function(){this.s=this.t=0},add:function(k){$u(el,k,this.t);$u(this,el.s,this.s);this.s?this.t+=el.t:this.s=el.t},valueOf:function(){return this.s}};var el=new Ie,Jd=Math.PI,ze=Jd/2,Yv=Jd/4,JD=Jd*2,Ro=Jd/180,Xf=Math.abs,So=Math.atan,fv=Math.atan2,Ae=Math.cos,$d=Math.sin,Tk=Math.sqrt;new Ie;new Ie;new Ie;var To=new Ie;(function(k,p,u,w){return function(y){function z(bd,Pc){k(bd,Pc)&&y.point(bd,Pc)} function E(bd,Pc){Ca.point(bd,Pc)} function na(){Nc.point=E;Ca.lineStart()} function qa(){Nc.point=z;Ca.lineEnd()} function pa(bd,Pc){sc.push([bd,Pc]);ic.point(bd,Pc)} function oa(){ic.lineStart();sc=[]} function va(){pa(sc[0][0],sc[0][1]);ic.lineEnd();var bd=ic.Cl(),Pc=Ga.result(),La=Pc.length,Qc;sc.pop();Oc.push(sc);sc=null;if(La)if(bd&1){if(La=Pc[0],(Pc=La.length-1)>0){db||(y.polygonStart(),db=!0);y.lineStart();for(bd=0;bd1&&bd&2&&Pc.push(Pc.pop().concat(Pc.shift())),Tc.push(Pc.filter(bC))} var Ca=p(y),Ga=$B(),ic=p(Ga),db=!1,Oc,Tc,sc,Nc={point:z,lineStart:na,lineEnd:qa,polygonStart:function(){Nc.point=pa;Nc.lineStart=oa;Nc.lineEnd=va;Tc=[];Oc=[]},polygonEnd:function(){Nc.point=z;Nc.lineStart=na;Nc.lineEnd=qa;var bd=Tc,Pc=bd.length;var La=-1;for(var Qc=0,Ha,Sa;++La=0;)for(Sa=bd[Pc],La=Sa.length;--La>=0;)Ha[--Qc]=Sa[La];Tc=Ha;bd=Oc;Pc=w[0];Qc=w[1];var Fa=$d(Qc);La=[$d(Pc),-Ae(Pc),0];Sa=Ha=0;To.reset();Fa===1?Qc=ze+1E-6:Fa===-1&&(Qc=-ze-1E-6);Fa=0;for(var Ma=bd.length;Fa=0?1:-1,Wo=Vo*Dh,gl=Wo>Jd;Yf*=$v;To.add(fv(Yf*Vo*$d(Wo),Zv*Yi+Yf*Ae(Wo)));Ha+=gl?Dh+Vo*JD:Dh;gl^od>=Pc^Uo>=Pc&&(Cd=bv(av(Cd),av(fl)),cv(Cd),od=bv(La,Cd),cv(od),od=(gl^Dh>=0?-1:1)*Sk(od[2]),Qc>od||Qc===od&&(Cd[0]||Cd[1]))&&(Sa+=gl^Dh>=0?1:-1)}}bd=(Ha<-1E-6||Ha<1E-6&&To<-1E-6)^Sa&1;Tc.length?(db||(y.polygonStart(),db=!0),aC(Tc,cC,bd,u,y)):bd&&(db||(y.polygonStart(),db=!0),y.lineStart(),u(null,null,1,y),y.lineEnd());db&&(y.polygonEnd(),db=!1);Tc=Oc=null},sphere:function(){y.polygonStart();y.lineStart();u(null,null,1,y);y.lineEnd();y.polygonEnd()}};return Nc}})(function(){return!0},function(k){var p=NaN,u=NaN,w=NaN,y;return{lineStart:function(){k.lineStart();y=1},point:function(z,E){var na=z>0?Jd:-Jd,qa=Xf(z-p);if(Xf(qa-Jd)<1E-6)k.point(p,u=(u+E)/2>0?ze:-ze),k.point(w,u),k.lineEnd(),k.lineStart(),k.point(na,u),k.point(z,u),y=0;else if(w!==na&&qa>=Jd){Xf(p-w)<1E-6&&(p-=w*1E-6);Xf(z-na)<1E-6&&(z-=na*1E-6);qa=p;var pa=u,oa=z,va,Ca,Ga=$d(qa-oa);u=Xf(Ga)>1E-6?So(($d(pa)*(Ca=Ae(E))*$d(oa)-$d(E)*(va=Ae(pa))*$d(qa))/(va*Ca*Ga)):(pa+E)/2;k.point(w,u);k.lineEnd();k.lineStart();k.point(na,u);y=0}k.point(p=z,u=E);w=na},lineEnd:function(){k.lineEnd();p=u=NaN},Cl:function(){return 2-y}}},function(k,p,u,w){k==null?(u*=ze,w.point(-Jd,u),w.point(0,u),w.point(Jd,u),w.point(Jd,0),w.point(Jd,-u),w.point(0,-u),w.point(-Jd,-u),w.point(-Jd,0),w.point(-Jd,u)):Xf(k[0]-p[0])>1E-6?(k=k[0]1?0:k<-1?Jd:Math.acos(k))&&k/$d(k)}).invert=Qi(function(k){return k});Tk(3);Qi(So);Qi(Sk);Qi(function(k){return 2*So(k)});Ri.prototype=gv.prototype={constructor:Ri,count:function(){return this.eachAfter(dC)},each:function(k){var p,u=[this],w;do{var y=u.reverse();for(u=[];p=y.pop();)if(k(p),p=p.children){var z=0;for(w=p.length;z=0;--w)u.push(p[w]);return this},sum:function(k){return this.eachAfter(function(p){for(var u=+k(p.data)||0,w=p.children,y=w&&w.length;--y>=0;)u+=w[y].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 w=k;if(u!==w){var y=u.ancestors(),z=w.ancestors(),E=null;u=y.pop();for(w=z.pop();u===w;)E=u,u=y.pop(),w=z.pop();u=E}for(w=[p];p!==u;)p=p.parent,w.push(p);for(p=w.length;k!==u;)w.splice(p,0,k),k=k.parent;return w},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(gC)}};(function(k,p){this.Fa=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(Ri.prototype);var aw=Array.prototype,lv=aw.map,Vk=aw.slice,hv={name:"implicit"},kv=[0,1],Do=new Date,Eo=new Date,Xo=Pd(function(){},function(k,p){k.setTime(+k+p)},function(k,p){return p-k});Xo.every=function(k){k=Math.floor(k);return isFinite(k)&&k>0?k>1?Pd(function(p){p.setTime(Math.floor(p/k)*k)},function(p,u){p.setTime(+p+u*k)},function(p,u){return(u-p)/k}):Xo:null};var KD=Pd(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()}),LD=Pd(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()}),MD=Pd(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()}),Ho=Pd(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=Bg(0),Go=Bg(1);Bg(2);Bg(3);var Io=Bg(4);Bg(5);Bg(6);var ND=Pd(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()}),Dg=Pd(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()});Dg.every=function(k){return isFinite(k=Math.floor(k))&&k>0?Pd(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};Pd(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()});Pd(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=Pd(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}),qD=Cg(0),Fo=Cg(1);Cg(2);Cg(3);var Jo=Cg(4);Cg(5);Cg(6);Pd(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 zh=Pd(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()});zh.every=function(k){return isFinite(k=Math.floor(k))&&k>0?Pd(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+/,pD=/^%/,oD=/[\\^$*+?|[\]().{}]/g,Zi;(function(k){Zi=sC(k);Cr=Zi.format;Br=Zi.utcFormat;br=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||Br("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||br("%Y-%m-%dT%H:%M:%S.%LZ");cd("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");cd("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");cd("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");cd("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");cd("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");cd("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");cd("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");cd("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");cd("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");cd("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");cd("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");cd("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var OD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cd);ud(OD);var PD=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cd);ud(PD);var QD=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cd);ud(QD);var RD=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cd);ud(RD);var SD=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cd);ud(SD);var TD=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cd);ud(TD);var UD=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cd);ud(UD);var VD=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cd);ud(VD);var WD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cd);ud(WD);var XD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cd);ud(XD);var YD=Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cd);ud(YD);var ZD=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cd);ud(ZD);var $D=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cd);ud($D);var aE=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cd);ud(aE);var bE=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cd);ud(bE);var cE=Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cd);ud(cE);var dE=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cd);ud(dE);var eE=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cd);ud(eE);var fE=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cd);ud(fE);var gE=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cd);ud(gE);var hE=Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cd);ud(hE);var iE=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cd);ud(iE);var jE=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cd);ud(jE);var kE=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cd);ud(kE);var lE=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cd);ud(lE);var mE=Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cd);ud(mE);var nE=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cd);ud(nE);No(cb(300,.5,0),cb(-240,.5,1));No(cb(-100,.75,.35),cb(80,1.5,.8));No(cb(260,.75,.35),cb(80,1.5,.8));cb();bb();Xk(cd("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Xk(cd("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));Xk(cd("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));Xk(cd("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var bw=Math.abs,ae=Math.atan2,Fg=Math.cos,zD=Math.max,Yo=Math.min,Ze=Math.sin,Ah=Math.sqrt,$i=Math.PI,Yk=$i/2,hl=2*$i;Gv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Na=0},lineEnd:function(){(this.Ga||this.Ga!==0&&this.Na===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(k,p){k=+k;p=+p;switch(this.Na){case 0:this.Na=1;this.Ga?this.Ea.lineTo(k,p):this.Ea.moveTo(k,p);break;case 1:this.Na=2;default:this.Ea.lineTo(k,p)}}};(function(k){function p(u){return new Kv(k(u))} p.De=k;return p})($k);Kv.prototype={areaStart:function(){this.De.areaStart()},areaEnd:function(){this.De.areaEnd()},lineStart:function(){this.De.lineStart()},lineEnd:function(){this.De.lineEnd()},point:function(k,p){this.De.point(p*Math.sin(k),p*-Math.cos(k))}};Mv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Pa=this.Ba=this.Qa=this.Da=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 3:Lv(this,this.Ba,this.Da);case 2:this.Ea.lineTo(this.Ba,this.Da)}(this.Ga||this.Ga!==0&&this.Na===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(k,p){k=+k;p=+p;switch(this.Na){case 0:this.Na=1;this.Ga?this.Ea.lineTo(k,p):this.Ea.moveTo(k,p);break;case 1:this.Na=2;break;case 2:this.Na=3,this.Ea.lineTo((5*this.Pa+this.Ba)/6,(5*this.Qa+this.Da)/6);default:Lv(this,k,p)}this.Pa=this.Ba;this.Ba=k;this.Qa=this.Da;this.Da=p}};Ov.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Pa=this.Ba=this.Fe=this.Qa=this.Da=this.Ge=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 2:this.Ea.lineTo(this.Fe,this.Ge);break;case 3:Nv(this,this.Ba,this.Da)}(this.Ga||this.Ga!==0&&this.Na===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(k,p){k=+k;p=+p;switch(this.Na){case 0:this.Na=1;this.Ga?this.Ea.lineTo(k,p):this.Ea.moveTo(k,p);break;case 1:this.Na=2;this.Ba=k;this.Da=p;break;case 2:this.Na=3;default:Nv(this,k,p)}this.Pa=this.Ba;this.Ba=this.Fe;this.Fe=k;this.Qa=this.Da;this.Da=this.Ge;this.Ge=p}};var oE=function u(p){function w(y){return new Ov(y,p)} w.tension=function(y){return u(+y)};return w}(0);al.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Pa=this.Ba=this.Qa=this.Da=this.vg=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 2:this.Ea.lineTo(this.Ba,this.Da);break;case 3:Ko(this,this.vg,Qv(this,this.vg))}(this.Ga||this.Ga!==0&&this.Na===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(p,u){var w=NaN;p=+p;u=+u;if(p!==this.Ba||u!==this.Da){switch(this.Na){case 0:this.Na=1;this.Ga?this.Ea.lineTo(p,u):this.Ea.moveTo(p,u);break;case 1:this.Na=2;break;case 2:this.Na=3;Ko(this,Qv(this,w=Pv(this,p,u)),w);break;default:Ko(this,this.vg,w=Pv(this,p,u))}this.Pa=this.Ba;this.Ba=p;this.Qa=this.Da;this.Da=u;this.vg=w}}};(Rv.prototype=Object.create(al.prototype)).point=function(p,u){al.prototype.point.call(this,u,p)};Sv.prototype={moveTo:function(p,u){this.Ea.moveTo(u,p)},closePath:function(){this.Ea.closePath()},lineTo:function(p,u){this.Ea.lineTo(u,p)},bezierCurveTo:function(p,u,w,y,z,E){this.Ea.bezierCurveTo(u,p,y,w,E,z)}};Tv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.wb=[];this.Db=[]},lineEnd:function(){var p=this.wb,u=this.Db,w=p.length;if(w)if(this.Ga?this.Ea.lineTo(p[0],u[0]):this.Ea.moveTo(p[0],u[0]),w===2)this.Ea.lineTo(p[1],u[1]);else for(var y=Uv(p),z=Uv(u),E=0,na=1;na=0&&(this.Zd=1-this.Zd,this.Ga=1-this.Ga)},point:function(p,u){p=+p;u=+u;switch(this.Na){case 0:this.Na=1;this.Ga?this.Ea.lineTo(p,u):this.Ea.moveTo(p,u);break;case 1:this.Na=2;default:if(this.Zd<=0)this.Ea.lineTo(this.wb,u),this.Ea.lineTo(p,u);else{var w=this.wb*(1-this.Zd)+p*this.Zd;this.Ea.lineTo(w,this.Db);this.Ea.lineTo(w,u)}}this.wb=p;this.Db=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);pj=b;uw=function(p,u){return up?1:u>=p?0:NaN};Ei=function(p,u){var w=p.length,y=-1,z,E,na;if(u==null)for(;++y=z)for(E=na=z;++yz&&(E=z),na=z)for(E=na=z;++yz&&(E=z),na=z)for(E=z;++yE&&(E=z)}else for(;++y=z)for(E=z;++yE&&(E=z);return E};Qr=function(p,u){var w=p.length,y=-1,z,E;if(u==null)for(;++y=z)for(E=z;++yz&&(E=z)}else for(;++y=z)for(E=z;++yz&&(E=z);return E};nz=function(p,u){var w=p.length,y=-1,z,E=0;if(u==null)for(;++yGa;pa||(pa=oa=Mk());if(Ca1E-12)if(db>hl-1E-12)pa.moveTo(Ca*Fg(Ga),Ca*Ze(Ga)),pa.arc(0,0,Ca,Ga,ic,!Oc),va>1E-12&&(pa.moveTo(va*Fg(ic),va*Ze(ic)),pa.arc(0,0,va,ic,Ga,Oc));else{var sc=Ga,Nc=ic;Tc=Ga;var bd=ic,Pc=db,La=db,Qc=qa.apply(this,arguments)/2,Ha=Qc>1E-12&&(z?+z.apply(this,arguments):Ah(va* va+Ca*Ca)),Sa=Yo(bw(Ca-va)/2,+y.apply(this,arguments)),Fa=Sa,Ma=Sa;if(Ha>1E-12){var Zc=Fv(Ha/va*Ze(Qc));Qc=Fv(Ha/Ca*Ze(Qc));(Pc-=Zc*2)>1E-12?(Zc*=Oc?1:-1,Tc+=Zc,bd-=Zc):(Pc=0,Tc=bd=(Ga+ic)/2);(La-=Qc*2)>1E-12?(Qc*=Oc?1:-1,sc+=Qc,Nc-=Qc):(La=0,sc=Nc=(Ga+ic)/2)}Ga=Ca*Fg(sc);ic=Ca*Ze(sc);Zc=va*Fg(bd);Qc=va*Ze(bd);if(Sa>1E-12){var xd=Ca*Fg(Nc),Cd=Ca*Ze(Nc),od=va*Fg(Tc),te=va*Ze(Tc);if(db<$i){Pc>1E-12?(Fa=od-Ga,Ma=te-ic,db=Zc-xd,Ha=Qc-Cd,db=(db*(ic-Cd)-Ha*(Ga-xd))/(Ha*Fa-db*Ma),Fa=[Ga+db*Fa,ic+db*Ma]):Fa=[Zc,Qc];Ma=Ga-Fa[0];db=ic-Fa[1];Ha=xd-Fa[0];var Yf=Cd-Fa[1];Ma=(Ma*Ha+db*Yf)/(Ah(Ma*Ma+db*db)*Ah(Ha*Ha+Yf*Yf));Ma=1/Ze((Ma>1?0:Ma<-1?$i:Math.acos(Ma))/2);db=Ah(Fa[0]*Fa[0]+Fa[1]*Fa[1]);Fa=Yo(Sa,(va-db)/(Ma-1));Ma=Yo(Sa,(Ca-db)/(Ma+1))}}La>1E-12?Ma>1E-12?(sc=Zk(od,te,Ga,ic,Ca,Ma,Oc),Nc=Zk(xd,Cd,Zc,Qc,Ca,Ma,Oc),pa.moveTo(sc.cx+sc.kd,sc.cy+sc.ld),Ma1E-12&&Pc>1E-12?Fa>1E-12?(sc=Zk(Zc,Qc,xd,Cd,va,-Fa,Oc),Nc=Zk(Ga,ic,od,te,va,-Fa,Oc),pa.lineTo(sc.cx+sc.kd,sc.cy+sc.ld),Fa=bd;--Ga)oa.point(sc[Ga],Nc[Ga]);oa.lineEnd();oa.areaEnd()}Oc&&(sc[Ca]=+w(db,Ca,va),Nc[Ca]=+z(db,Ca,va),oa.point(y?+y(db,Ca,va):sc[Ca],E?+E(db,Ca,va):Nc[Ca]))}if(Tc)return oa=null,Tc+""||null} function u(){return Jv().defined(na).curve(pa).context(qa)} var w=Hv,y=null,z=sd(0),E=Iv,na=sd(!0),qa=null,pa=$k,oa=null;p.x=function(va){return arguments.length?(w=typeof va==="function"?va:sd(+va),y=null,p):w};p.x0=function(va){return arguments.length?(w=typeof va==="function"?va:sd(+va),p):w};p.x1=function(va){return arguments.length?(y=va==null?null:typeof va==="function"?va:sd(+va),p):y};p.y=function(va){return arguments.length?(z=typeof va==="function"?va:sd(+va),E=null,p):z};p.y0=function(va){return arguments.length?(z=typeof va==="function"?va:sd(+va),p):z};p.y1=function(va){return arguments.length?(E=va==null?null:typeof va==="function"?va:sd(+va),p):E};p.lineX0=p.lineY0=function(){return u().x(w).y(z)};p.lineY1=function(){return u().x(w).y(E)};p.lineX1=function(){return u().x(y).y(z)};p.defined=function(va){return arguments.length?(na=typeof va==="function"?va:sd(!!va),p):na};p.curve=function(va){return arguments.length?(pa=va,qa!=null&&(oa=pa(qa)),p):pa};p.context=function(va){return arguments.length?(va==null?qa=oa=null:oa=pa(qa=va),p):qa};return p};tx=Jv;ew=function(){function p(qa){var pa,oa=qa.length;var va=0;var Ca=Array(oa),Ga=Array(oa),ic=+z.apply(this,arguments);var db=Math.min(hl,Math.max(-hl,E.apply(this,arguments)-ic));var Oc=Math.min(Math.abs(db)/oa,na.apply(this,arguments)),Tc=Oc*(db<0?-1:1),sc;for(pa=0;pa0&&(va+=sc);w!=null?Ca.sort(function(bd,Pc){return w(Ga[bd],Ga[Pc])}):y!=null&&Ca.sort(function(bd,Pc){return y(qa[bd],qa[Pc])});pa=0;for(db=va?(db-oa*Tc)/va:0;pa0?sc*db:0)+Tc;Ga[va]={data:qa[va],index:pa,value:sc,startAngle:ic,endAngle:Nc,padAngle:Oc}}return Ga} var u=BD,w=AD,y=null,z=sd(0),E=sd(hl),na=sd(0);p.value=function(qa){return arguments.length?(u=typeof qa==="function"?qa:sd(+qa),p):u};p.sortValues=function(qa){return arguments.length?(w=qa,y=null,p):w};p.sort=function(qa){return arguments.length?(y=qa,w=null,p):y};p.startAngle=function(qa){return arguments.length?(z=typeof qa==="function"?qa:sd(+qa),p):z};p.endAngle=function(qa){return arguments.length?(E=typeof qa==="function"?qa:sd(+qa),p):E};p.padAngle=function(qa){return arguments.length?(na=typeof qa==="function"?qa:sd(+qa),p):na};return p};Dx=function(p){return new Mv(p)};Ex=oE;Cx=$k;Jx=function(p){return new al(p)};Kx=function(p){return new Rv(p)};Fx=function(p){return new Tv(p)};Gx=function(p){return new bl(p,.5)};Ix=function(p){return new bl(p,1)};Hx=function(p){return new bl(p,0)};se.svg=se.svg;se.xhtml=se.xhtml;se.xlink=se.xlink;se.xml=se.xml;se.xmlns=se.xmlns})();function xB(){} xB.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 yB(a,{activities:pE(b),locale:f,finalMonth:h,shouldDisableTransitions:c},e)).render()};function pE(a){var b=[];a=Wc(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 ug;else{e=JSON.parse(e);if(!Array.isArray(e))throw Error("dnarr");Pf(e,32);e=new ug(e)}return e})}),b.push(c);return b} function yB(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} yB.prototype.render=function(){var a=this,b=new Hy(this.container);this.shouldDisableTransitions&&b.ze(0);b.ad({top:60,left:0,right:0});b.tb().Sd(!0);b.zh({type:"linear",ticks:{type:"default",numTicks:3,integerOnly:!0,format:function(f){return f||""}},rendering:{type:"inside_gridlines"}});b.jj({type:"ordinal",ticks:{type:"default",format:function(f){return(new Date(f)).toLocaleDateString(a.locale,{month:"short"})}}});var c=qE(this);b.addBehavior(c);b.addBehavior((new rB(!0)).Rj(200));b.addBehavior((new nB).position(16).Vi(!0).Yg("series_desc").ii(!0).lf(new xB));b.addBehavior(new iA);var e=new Yz;e.rk(this.description);e.zd(c.Fd());b.addBehavior(e);b.addBehavior(new dA);b.draw(this.activities.map(function(f){return{name:f.name,displayName:f.label,data:rE(f.data,a.finalMonth),color:f.color,domain:"month",measure:"count"}}))};function rE(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=Wc(a);for(b=a.next();!b.done;b=a.next()){var h=b.value;b=eg(qg(h,1,pg))+"-"+eg(qg(h,2,pg));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 qE(a){var b=a.locale;a={};return HA("{{monthYear}}","
{{series.name}}: {{measure}}
").ae((a.monthYear=function(){return(new Date(this.datum.month)).toLocaleDateString(b,{month:"long",year:"numeric"})},a)).Yi()} ;}).call(this);
false
");return(new DOMParser).parseFromString(dg(a),"text/html").body.children[0]} function pm(a,b){if(!a)return"";var c=document.createElement("div").style;sm(a).forEach(function(e){var f=qf&&e in mm?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=hm(a,e),e=Hl(f,e,b),e!=null&&im(c,f,e))});return c.cssText||""} function tm(a){var b=Array.from($l(Pl,a,"getElementsByTagName",["STYLE"])),c=mf(b,function(n){return bf(dm(n).cssRules)});c=om(c);for(var e=[],f=0;f=0)){var f=hm(b,e);im(a.style,e,f)}})} function sm(a){Dd(a)?a=bf(a):(a=Rh(a),Ue(a,"cssText"));return a} ;var vm=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,wm=0;function xm(){this.O=[];this.N=[];this.v="data-elementweakmap-index-"+wm++} xm.prototype.set=function(a,b){$l(Ll,a,"hasAttribute",[this.v])?(a=parseInt($l(Ml,a,"getAttribute",[this.v])||null,10),this.N[a]=b):(b=this.N.push(b)-1,bm(a,this.v,b.toString()),this.O.push(a));return this};xm.prototype.get=function(a){if($l(Ll,a,"hasAttribute",[this.v]))return a=parseInt($l(Ml,a,"getAttribute",[this.v])||null,10),this.N[a]};xm.prototype.clear=function(){this.O.forEach(function(a){$l(Ol,a,"removeAttribute",[this.v])},this);this.O=[];this.N=[]};function ym(){this.O=document.implementation.createHTMLDocument("")} ym.prototype.ma=function(a){var b=this.O.createElement("span");this.N&&this.ka=="*"&&(b.id=this.N);this.ta&&(a=rm("
"+a+"
"),tm(a),a=a.innerHTML);a=bg(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=vm?new WeakMap:new xm;e=a.nextNode();){a:{var f=e;switch(fm(f)){case 3:f=zm(this,f);break a;case 1:if(em(f).toUpperCase()=="TEMPLATE")f=null;else{var k=em(f).toUpperCase();if(k in this.na||jm(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&&bm(n,"data-sanitizer-original-tag",k.toLowerCase());k=n}if(n=k){var r=am(f);if(r!=null)for(var t=0;k=r[t];t++)if(k.specified){var x=f,A=k;var la=A.name;if(la.lastIndexOf("data-sanitizer-",0)==0)la=null;else{var ma=em(x);A=A.value;var ra={tagName:Ud(ma).toLowerCase(),attributeName:Ud(la).toLowerCase()},ta={rh:void 0};ra.attributeName=="style"&&(ta.rh=cm(x));x=Am(ma,la);x in this.v?la=(0,this.v[x])(A,ra,ta):(la=Am(null,la),la=la in this.v?(0,this.v[la])(A,ra,ta):null)}la!==null&&bm(n,k.name,la)}f=n}else f=null}break a;default:f=null}}if(f){if(fm(f)==1&&c.set(e,f),e=gm(e),k=!1,e)n=fm(e),r=em(e).toLowerCase(),t=gm(e),n!=11||t?r=="body"&&t&&(n=gm(t))&&!gm(n)&&(k=!0):k=!0,n=null,k||!e?n=b:fm(e)==1&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else cj(e)}c.clear&& c.clear();return b};var Bm={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 Cm={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 Dm={"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 Em(a){this.O=document.implementation.createHTMLDocument("");a=a||new Fm;Gm(a);this.v=Uh(a.v);this.na=Uh(a.Ca);this.ha=Uh(a.Ha);this.Ca=a.ta;a.ka.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new Sd('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new Sd('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Hm},this);a.Ja.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||Dm[b])throw new Sd("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} Od(Em,ym);function Im(a){return function(b,c){b=Ud(b);return(c=a(b,c))&&Qf(c)!=Pf.toString()?Qf(c):null}} function Fm(){this.v={};Pe([vl,wl],function(a){Rh(a).forEach(function(b){this.v[b]=Hm},this)},this);this.N={};this.ka=[];this.Ja=[];this.Ca=Uh(Bm);this.Ha=Uh(Cm);this.ta=!1;this.Ka=Jm;this.ma=this.ha=this.Na=this.O=tl;this.ya=null;this.na=this.oa=!1} function Km(a,b){return function(c,e,f,k){c=a(c,e,f,k);return c==null?null:b(c,e,f,k)}} function Lm(a,b,c,e){a[c]&&!b[c]&&(a[c]=Km(a[c],e))} function Gm(a){if(a.na)throw Error("HtmlSanitizer.Builder.build() can only be used once.");Lm(a.v,a.N,"* USEMAP",Mm);var b=Im(a.Ka);["* ACTION","* CITE","* HREF"].forEach(function(e){Lm(this.v,this.N,e,b)},a);var c=Im(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){Lm(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){Lm(this.v,this.N,e,Md(Nm,this.Na))},a);Lm(a.v,a.N,"A TARGET",Md(Om,["_blank","_self"]));Lm(a.v,a.N,"* CLASS",Md(Pm,a.ha));Lm(a.v,a.N,"* ID",Md(Qm,a.ha));Lm(a.v,a.N,"* STYLE",Md(a.ma,c));a.na=!0} function Jm(a){return Vf(a)} function Am(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Hm(a){return Ud(a)} function Om(a,b){b=Ud(b);return Oe(a,b.toLowerCase())>=0?b:null} function Mm(a){return(a=Ud(a))&&a.charAt(0)=="#"?a:null} function Nm(a,b,c){b=Ud(b);return a(b,c)} function Pm(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("/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=$m(a);b&&(a=a.querySelector(b).parentNode);return a} function Zm(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?an(e,f,b):f.childNodes.length&&c.push(f)})} function an(a,b,c){if(b.textContent.match(bn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=bn.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);bn.lastIndex=0}b&&k.push(document.createTextNode(b));k.forEach(function(r){a.insertBefore(r,e)})}} function Vm(a,b,c){var e=cn(a);b.forEach(function(f){var k=c[f];typeof k==="number"||Ed(k)||typeof k==="boolean"?k=k.toString():(k instanceof Node?k=k.outerHTML:k instanceof ag?k=dg(k).toString():k=hh(cn(k)),k=k.replace("$","$$$$"));f=String("{{"+f+"}}").replace(/([-()\[\]{}+?*.$\^|,:#1&&(k=b.datum[f.substr(6)]);if(typeof k==="function"){var n=f.lastIndexOf("."),r=b;n>0&&(r=Bd(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 Tm(a){a=cn(a);if(!a||!a.trim().length)return[];for(var b,c={};b=bn.exec(a);)c[b[1]]=!0;return Rh(c)} Nd("aplos.util.SimpleTemplate.extractTemplateVariables",Tm);Nd("aplos.util.SimpleTemplate.setSanitizerFunction",function(a){$m=a});Nd("aplos.util.SimpleTemplate.setSanitizer",function(a){$m=a.ik.bind(a)});function $m(a){return dn.ik(a)} var en=new Fm;en.ma=function(a,b,c,e){if(!e.rh)return null;b=pm(e.rh,function(f,k){c.Ol=k;f=a(f,c);var n;f==null?n=null:n=new Of(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=Ld(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);Ue(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],Ue(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(".")),Ue(this.N[f]||[],b))};rn.prototype.nb=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};v.deselectAll=function(){!this.N&&this.fe()&&(this.v.clear(),un(this))};v.Vg=function(a,b){this.Wa.on("selectionChange."+a,b)};function un(a){a.Wa.nb("selectionChange",a,a)} v.Jn=function(){return this.N};v.lock=function(){this.N||(this.N=!0,vn(this))};v.unlock=function(){this.N&&(this.N=!1,vn(this))};v.Wn=function(a,b){this.Wa.on("selectionLockChange."+a,b)};function vn(a){a.Wa.nb("selectionLockChange",a,a)} tn.prototype.onSelectionLockChange=tn.prototype.Wn;tn.prototype.unlock=tn.prototype.unlock;tn.prototype.lock=tn.prototype.lock;tn.prototype.isLocked=tn.prototype.Jn;tn.prototype.onSelectionChange=tn.prototype.Vg;tn.prototype.deselectAll=tn.prototype.deselectAll;tn.prototype.hasSelection=tn.prototype.fe;tn.prototype.isDatumSelected=tn.prototype.Fj;tn.prototype.deselectDatum=tn.prototype.Tl;tn.prototype.selectDatum=tn.prototype.ci;tn.prototype.setSelection=tn.prototype.Bi;tn.prototype.setSeriesSelectionProperties=tn.prototype.Lo;tn.prototype.setDataSelectionProperties=tn.prototype.yo;tn.prototype.setSelectionProperties=tn.prototype.Ci;Nd("aplos.chart.SeriesDataSelectionModel",tn);Nd("aplos.chart.SeriesDataSelectionModel.FULL_DATUM_KEY","__datum__");function wn(a){this.N={};this.v=a||null;this.O={}} function xn(a,b){var c=yn(a,b);return c?xn(a,c):a.N[b]?!0:a.v?xn(a.v,b):!1} wn.prototype.ug=function(a,b){var c=this.N;a in c&&delete c[a];this.O[a]=b;return this};wn.prototype.set=function(a,b,c){var e=this.O;a in e&&delete e[a];this.N[a]=zn(this,b,c);return this};wn.prototype.get=function(a,b){var c=yn(this,a);return c?this.get(c,b):(c=this.N[a])?c:this.v?this.v.get(a,b):An(a,b)};function zn(a,b,c){if(typeof b==="function"){var e=Ld(b,a);return c?function(f,k){f=e(f,k);return f!=null?+f:f}:e}return Ld(function(f){f=f?f[b]:void 0;return f===void 0?b:c&&f!==null?+f:f},a)} function An(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 yn(a,b){if(!a.N[b]){if(a.O[b])return a.O[b];if(a.v)return yn(a.v,b)}return null} ;function Bn(a,b){this.ub=a;this.O=null;this.v=b||null;this.N=b?new wn(b.N):new wn;this.oa=this.ha=this.na=null;this.ya={};this.ta=this.ma=this.ka=null} v=Bn.prototype;v.Jg=function(){return this.ta?this.ta:this.v?this.v.Jg():null};v.Ph=function(){return new Bn(this.ub,this)};function Cn(a,b){a.ta=b;b.x&&a.domain(b.x);b.xLowerBound&&a.Fe(Gn(b.xLowerBound));b.xUpperBound&&a.Ge(Gn(b.xUpperBound));b.x0&&a.Zd(Gn(b.x0));b.y&&a.measure(Gn(b.y));b.yLowerBound&&a.Xe(Gn(b.yLowerBound));b.yUpperBound&&a.Ye(Gn(b.yUpperBound));b.y0&&a.Kc(Gn(b.y0));b.domainFormatter&&a.Cd(b.domainFormatter);b.measureFormatter&&a.Tb(b.measureFormatter);a.displayName(b.displayName||b.name);a.Ub(b.rendererId);a.ie(b.measureAxisId);a.Nf(b.overlay);["category","datumClickState","datumHoverState"].forEach(function(e){return Hn(a,e,b[e],!0,!1)});"color dashPattern dataId datumClass domain key label labelTemplate strokeWidth radius".split(" ").forEach(function(e){return In(a,e,b,!0,!1)});"delta domainLowerBound domainOffset domainUpperBound latitude longitude measure measureLowerBound measureOffset measureUpperBound".split(" ").forEach(function(e){return In(a,e,b,!1,!0)});var c=c||[];c.forEach(function(e){return In(a,e,b,!0,!1)})} function Hn(a,b,c,e,f){c!=null&&(typeof c!=="string"||e||(c=Gn(c)),typeof c==="function"&&(c=Ld(c,a)),a.N.set(b,c,f))} function In(a,b,c,e,f){var k=c[b];(c=c[b+"ColumnId"])&&(k=Gn(c,e?k:null));Hn(a,b,k,e,f)} function Gn(a,b){return function(c){return c&&c.hasOwnProperty(a)?c[a]:b}} function Jn(a,b){for(var c=a.domain(),e=jn(a,"domainOffset")?a.Zd():void 0,f=jn(a,"domainLowerBound")?a.Fe():void 0,k=jn(a,"domainUpperBound")?a.Ge():void 0,n=a.measure(),r=a.Kc(),t=jn(a,"measureLowerBound")?a.Xe():void 0,x=jn(a,"measureUpperBound")?a.Ye():void 0,A=a.uh(),la=a.key(),ma=a.radius(),ra=a.color(),ta=a.Ee(),sa=a.Ec(),Aa=jn(a,"strokeWidth")?a.strokeWidth():void 0,xa=a.label(),za=jn(a,"category")?a.Gb():void 0,Ba=Array(b.length),Ea=0;Ea=0})} function Sn(a){return a.Ca.filter(function(b){return b.Ac!==!0}).length>0} function Wn(a,b){a={Ba:0n){r=Mo(f);for(e=a=0;e0&&x.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.vg=!1)):(b=new ap(b,this.src,k,!!e,f),b.vg=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]),Xe(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&&Ue(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.Sf){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.Sf)a=!0;else{b=new Yo(b,this);var c=a.listener,e=a.Lg||a.src;a.vg&&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=Hf("");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.cp)})};up.prototype.exec=function(a,b){var c=this;return new Promise(function(e,f){var k=new MessageChannel;k.port1.onmessage=function(la){k.port1.onmessage=null;la=la.data;la.error!=null?f(new EvalError(la.error)):e(la.result)};for(var n=[],r=[],t=[],x=Wc(b!=null?b:[]),A=x.next();!A.done;A=x.next())A=A.value,n.push(A.name),r.push(A.value),A.transfer&&t.push(A.value);n={code:a,paramNames:n,values:r};c.port?c.port.postMessage(n,[k.port2].concat(Xc(t))):c.N.push({data:n,cp:[k.port2].concat(Xc(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=aj(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=' ';c=bg(a);a=Hf("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=dg(c)}else{c=new Map([["nonce",a]]);var e=If(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=If(a).toString();b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b} ;var zp={ip:!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 qd(function(f){if(f.v==1)return hd(f,Dp(a,b,c,e),2);if(f.na)return f.return();Ap||(Ap=new Bp,Ap.init());return hd(f,Ep(Ap,a,b,c),0)})};Bp.prototype.init=function(){var a=this;return qd(function(b){return a.v==null?b.return():hd(b,a.v.load(),0)})};Bp.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return qd(function(f){return f.v==1?hd(f,Dp(a,b,c,e.options),2):f.na?f.return():hd(f,Ep(e,a,b,c),0)})};function Ep(a,b,c,e){e=e===void 0?"":e;var f,k;return qd(function(n){switch(n.v){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){n.If(2);break}navigator.msSaveOrOpenBlob(f,c);return hd(n,Fp(),3);case 3:return n.return();case 2:if(!ne()||le()>=0||!Le()&&(!Ee("iPad")&&!Ee("iPhone")||Ke()||Le()||(He()?0:Ee("Coast"))||Je()||!Ee("AppleWebKit"))){n.If(4);break}k=new FileReader;k.onload=function(){var r=aj(document,"A"),t=Vf(String(k.result));t instanceof Of?t=Qf(t):t=$f.test(t)?t:void 0;t!==void 0&&(r.href=t);r.download=c;r.click()};k.readAsDataURL(f);return hd(n,Fp(),5);case 5:return n.return();case 4:return a.v==null&&(a.v=new up,a.v.load()),hd(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 hd(n,Fp(),0)}})} function Dp(a,b,c,e){c=c===void 0?"":c;e=e===void 0?zp:e;var f;return qd(function(k){switch(k.v){case 1:if(!Cp(e))return k.return(!1);k.O=2;return hd(k,Gp(a,b,c),4);case 4:k.v=3;k.O=0;break;case 2:f=id(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.ip&&!!window.showSaveFilePicker} function Gp(a,b,c){c=c===void 0?"":c;var e,f,k,n;return qd(function(r){switch(r.v){case 1:var t=c,x={suggestedName:b},A;(A=b.match(/\..+$/))?(A=A[0],A=A.length>16?null:A):A=null;if(A){t=t.replace(/;[^]*/,"");var la={};x.types=[{description:"*"+A,accept:(la[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(t)?t:"*/*"]=[A],la)}]}e=x;r.O=2;return hd(r,window.showSaveFilePicker(e),4);case 4:f=r.na;r.v=3;r.O=0;break;case 2:k=id(r);if(k instanceof DOMException&&k.name==="AbortError")return r.return();throw k;case 3:return hd(r,f.createWritable(),5);case 5:return n=r.na,r.O=0,r.ka=6,hd(r,n.write(a),6);case 6:return r.ta=[r.N],r.O=0,r.ka=0,hd(r,n.close(),9);case 9:x=r.ta.splice(0)[0];(x=r.N=r.N||x)?x.Gj?r.v=r.O||r.ka:x.If!=void 0&&r.ka1?f/(k-1):null} ;function Kp(a){return typeof a!=="number"||isNaN(a)||!isFinite(a)?!1:parseInt(a,10)===a} Nd("aplos.data.aggregations.accumulate",function(a,b){return b?Re(a,b):a});function Lp(a,b){b=b===void 0?ul:b;var c=Mp(a,b);return c==null?null:c/Np(a,b)} Nd("aplos.data.aggregations.average",Lp);function Op(a,b){b=b===void 0?ul:b;var c=0;a.forEach(function(e,f){b(e,f)==1&&c++});return c} Nd("aplos.data.aggregations.countIf",Op);function Mp(a,b){var c=null;b=b||ul;a.forEach(function(e,f){e=b(e,f);e!=null&&!isNaN(+e)&&isFinite(e)&&(c=(c||0)+ +e)});return c} Nd("aplos.data.aggregations.sum",Mp);function Pp(a,b){var c=null;b=b||ul;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} Nd("aplos.data.aggregations.max",Qp);function Np(a,b){var c=0;b=b||ul;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c++});return c} Nd("aplos.data.aggregations.count",Np);function Rp(a,b){var c=new Set;b=b||ul;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} Nd("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)} Nd("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||ul);b=b.filter(function(e){return e!=null&&!isNaN(+e)});if(!b.length)return null;b.sort(fi);return b[a===0?0:Math.ceil(b.length*a)-1]} Nd("aplos.data.aggregations.phiQuantiles",Tp);function Up(a,b){return Jp(a,!1,b)} Nd("aplos.data.aggregations.variance",Up);function Vp(a,b){return(a=Jp(a,!1,b))&&Math.sqrt(a)} Nd("aplos.data.aggregations.stdDev",Vp);Nd("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=jf(c,b);f=Qh(f);if(f.length<2)e=null;else{c=lf(f);for(var k=0;k=c&&ae?(a=a.Hc(c+1)-e,(c*a+b-e)/a):b=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b} v=kq.prototype;v.Ie=eq.il;v.Je=eq.jl;v.clone=function(){var a=new kq(this.date);a.Ie=this.Ie;a.Je=this.Je;return a};v.getFullYear=function(){return this.date.getFullYear()};v.getYear=function(){return this.getFullYear()};v.getMonth=function(){return this.date.getMonth()};v.getDate=function(){return this.date.getDate()};v.getTime=function(){return this.date.getTime()};v.getDay=function(){return this.date.getDay()};v.getUTCFullYear=function(){return this.date.getUTCFullYear()};v.getUTCMonth=function(){return this.date.getUTCMonth()};v.getUTCDate=function(){return this.date.getUTCDate()};v.getUTCDay=function(){return this.date.getDay()};v.getUTCHours=function(){return this.date.getUTCHours()};v.getUTCMinutes=function(){return this.date.getUTCMinutes()};v.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};v.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};v.setFullYear=function(a){this.date.setFullYear(a)};v.setYear=function(a){this.setFullYear(a)};v.setMonth=function(a){this.date.setMonth(a)};v.setDate=function(a){this.date.setDate(a)};v.setTime=function(a){this.date.setTime(a)};v.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};v.setUTCMonth=function(a){this.date.setUTCMonth(a)};v.setUTCDate=function(a){this.date.setUTCDate(a)};v.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()))};v.ig=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+mh(Math.abs(b),c?6:4),mh(this.getMonth()+1,2),mh(this.getDate(),2)].join(a?"-":"")+""};v.toString=function(){return this.ig()};function mq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.yg?a-=c.Sg-c.Ib:a<=c.zf&&(a-=c.Qf-c.Ib);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.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=sq(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=sq(a,e);a-=f.Ib;break;case "HOUR":return b=a+c*60*60*1E3*1E3,Math.abs(c)>1&&(c=Bq(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 Bq(a,b){return b?sq(a,b).Ib:-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{Ib:e,zf:null,yg:null,th:null,Qf:null,Sg:null};e=Dq[c];if(e!=null)return{Ib:e*1E3,zf:null,yg:null,th:null,Qf:null,Sg:null};c=Eq[c];if(!c)throw Error("Unknown or unsupported time zone: "+b);b=c.Tn*6E7;c=c.ep;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{Ib:b,zf:null,yg:null,th:null,Qf:null,Sg:null};a=k;break}}e=b+c[a+1]*6E7;f=b+c[a-1]*6E7;return{Ib:e,zf:c[a]*36E8,yg:c[a+2]*36E8,th:e-f,Qf:f,Sg:b+c[a+3]*6E7}} function yq(a,b){return sq(a*1E3,b).Ib/1E3} function zq(a,b){var c=a*1E3;b=sq(c,b);var e=b.Qf-b.Ib;return a-(e<=0||c-e>b.zf?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=Wc(["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,ep: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);Ed(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.Ib)/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=sh("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"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return String},rc:"",yc:"aplos-string-cell",oc:Tq,Gb:1,jc:"string",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc: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"]]={Vb:void 0,Bc:!1,qc:"decimal",uc:ph,rc:".2f",yc:"aplos-numeric-cell",oc:Uq,Gb:2,jc:"number",wc:function(a){return a},nc:function(a){return"SUM("+a+")"},mc:String},Wq[["integer"]]={Vb:void 0,Bc:!1,qc:"integer",uc:ph,rc:".0f",yc:"aplos-numeric-cell",oc:Uq,Gb:2,jc:"number",wc:function(a){return a},nc:function(a){return"SUM("+a+")"},mc:String},Wq[["time_us"]]={Vb:.001,Bc:!1,qc:"integer",uc:Oq,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Vq,Gb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){Ed(a)&&(a=a.getTime()*1E3);return String(a)}},Wq[["time_ms"]]={Vb:1,Bc:!1,qc:"integer",uc:Pq,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Vq,Gb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){Ed(a)&&(a=a.getTime());return String(a)}},Wq[["timestamp"]]={Vb:.001,Bc:!1,qc:"integer",uc:Oq,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Vq,Gb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){if(a==null)return"null";Ed(a)&&(a=a.getTime()*1E3);return"TIMESTAMP_MICROS("+a+")"}},Wq[["date"]]={Vb:.001,Bc:!0,qc:"integer",uc:function(a){return Oq(a,"UTC")},rc:"%Y-%m-%d",yc:"aplos-date-cell",oc:Vq,Gb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){if(a==null)return"null";Ed(a)&&(a=a.getTime()*1E3);return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Wq[["datetime"]]={Vb:.001,Bc:!0,qc:"integer",uc:function(a){return Oq(a,"UTC")},rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Vq,Gb:3,jc:"number",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT("+a+")"},mc:function(a){if(a==null)return"null";Ed(a)&&(a=a.getTime()*1E3);return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Wq[["boolean"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return String},rc:"",yc:"",oc:Tq,Gb:4,jc:"boolean",wc:function(a){return a},nc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},mc:String},Wq[["hll_sketch"]]={Vb:void 0,Bc:!1,qc:"integer",uc:ph,rc:".0f",yc:"aplos-numeric-cell",oc:["HLL_COUNT.MERGE"],Gb:2,jc:"number",wc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},nc:function(a){return"HLL_COUNT.MERGE("+a+")"},mc:String},Wq[["message"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return function(a){return JSON.stringify(a,null,2)}},rc:"",yc:"aplos-string-cell",oc:[],Gb:1,jc:"object",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},mc:String},Wq[["array"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return function(a){return JSON.stringify(a,null,2)}},rc:"",yc:"aplos-string-cell",oc:[],Gb:1,jc:"object",wc:function(a){return a},nc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},mc:String},Wq[["kll_int64"]]={Hj:!0,Vb:void 0,qc:"integer",uc:ph,rc:".0f",yc:"aplos-numeric-cell",oc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Gb:2,jc:"number",wc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},nc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},mc:String},Wq[["kll_double"]]={Hj:!0,Vb:void 0,qc:"decimal",uc:ph,rc:".2f",yc:"aplos-numeric-cell",oc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Gb:2,jc:"number",wc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},nc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},mc:String},Wq);function Yq(a){if(typeof a==="string")return"string";if(typeof a==="number")return"decimal";if(typeof a==="boolean")return"boolean";if(Ed(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"};Nd("aplos.data.FilterOperator",Zq);function $q(a,b,c){return ar(b).mb(a,c)} function br(a,b){return(a=ar(a).ue)?a(b):b} var cr={},ir=(cr["="]={mb:function(a,b){return b[0]==="null"?dr(a):a+" = "+b[0]},ue:null},cr[">"]={mb:function(a,b){return a+" > "+b[0]},ue:function(a){return[er(a)]}},cr["<"]={mb:function(a,b){return a+" < "+b[0]},ue:function(a){return[fr(a)]}},cr[">="]={mb:function(a,b){return a+" >= "+b[0]},ue:function(a){return[er(a)]}},cr["<="]={mb:function(a,b){return a+" <= "+b[0]},ue:function(a){return[fr(a)]}},cr["!="]={mb:function(a,b){return b[0]==="null"?gr(a):a+" != "+b[0]}},cr.IN={mb:function(a,b){if(b==null||b.length===0)return"true = false";b=b.slice();var c=$e(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={mb:function(a,b){if(b==null||b.length===0)return"true = true";b=b.slice();var c=$e(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={mb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},ue:function(a){return Jh(a)}},cr.NOT_BETWEEN={mb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},ue:function(a){return Jh(a)}},cr.IS_NULL={mb:dr},cr.IS_NOT_NULL={mb:gr},cr.IS_INFINITY={mb:function(a){return"IS_INF("+a+")"}},cr.IS_NOT_INFINITY={mb:function(a){return"NOT(IS_INF("+a+"))"}},cr.IS_NAN={mb:function(a){return"IS_NAN("+a+")"}},cr.IS_NOT_NAN={mb:function(a){return"NOT(IS_NAN("+a+"))"}},cr.CONTAINS={mb:function(a,b){return hr(a,b[0])}},cr.DOES_NOT_CONTAIN={mb:function(a,b){return"NOT("+hr(a,b[0])+")"}},cr.REGEX={mb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},cr.NOT_REGEX={mb: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={yf:a.column!==void 0?a.column:a.yf,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{yf:a,operator:b,value:c!==void 0?c:""}} Nd("aplos.data.SimpleFilter",function(){});Nd("aplos.data.SimpleFilter.Operator",Zq);Nd("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]+$/;Nd("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].mc(k))}));return $q(a,b,f)});Nd("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return c[b]!=null})});Nd("aplos.data.util.sort",nr);function sr(a){this.qf=this.Ra=.35;this.Za=this.Qb=null;this.ma=new Set;this.v=[0,1];this.oa=new pk;this.N=0;this.Ka=!1;this.Ua=a!=null?a:2;this.O=!0;this.na=this.Oc=null;this.Yb=!1;this.ka=null;this.Ja=!1;this.Ha=1;this.Na=0;this.ta=null;this.Xa=1;this.nf=this.Cc=this.ve=this.mf=this.ha=null;this.rf=new Ei(0,0);this.Ca=this.ya=null;this.vc=void 0;this.kg=new tr(this);ur(this)} v=sr.prototype;v.Ai=function(a){this.Ua=a;this.O=!0;return this};v.tk=function(a){this.Ra=a;this.Ua==2&&this.Ai(this.Ua);return this};v.km=function(){return this.Ra};v.nk=function(a,b){this.Qb=a;this.Za=b;this.O=!0;return this};v.dh=function(a){this.nf=a;return this};v.Ne=function(){return this.nf};v.tb=function(){return this.oa};v.eg=function(a){this.oa=a;return this};v.Tk=function(a){this.Oc=a;return this};v.Fi=function(a){this.na=a;this.Ja||(this.ka=null);this.na instanceof vr&&(a=this.na.Hg(),typeof a==="function"&&this.Ld(a));this.O=!0;return this};v.wn=function(){return this.na};v.mk=function(a){this.Ka=a;this.O=!0;return this};v.Ld=function(a){this.vc=a;this.Ua===2&&(this.O=!0)};function wr(a){a.ma.clear();a.Ja||(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.Oc||b||function(c){return c!=null?c.toString():""}} v.bandwidth=function(){ur(this);return this.Ua==2?this.Ia.bandwidth():this.ta?this.Xa===2?this.Ia(this.ta)-this.Ia(0):this.ta||0:0};v.Ok=function(a){this.ka=a;this.Ja=a!=null;this.yi(1,0);return this};v.yi=function(a,b){this.Ha=a;this.Na=b;this.O=!0};function Br(a,b,c,e,f,k,n){a.Yb!==k&&(a.O=!0);a.ha=b;a.mf=c;a.ve=e;a.N=f;a.Yb=k;a.Cc=n} v.Gh=function(){var a=Eh(this.N);this.Ne()==null&&this.oa.dk(this.ha);return{position:a,Of:10}};v.jg=function(a){var b=Eh(this.N);b=Ug(a,this.Ne(),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.Cc);a=this.oa.lh(this.ha,c,this.N,a,this.bandwidth(),this.Ca);this.range(b);return a};v.ah=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.rf=new Ei(b,c);this.ya=a};v.Me=function(){return this.ya};v.render=function(a,b){if(this.ha){var c=this.ya;this.ha.attr("transform","translate("+((this.N==1?c.right:c.left)-a.Kb())+", "+((this.N==2?c.bottom:c.top)-a.Lb())+")");c=Cr(this,this.Cc);var e=zr(this,0);if(isNaN(e))switch(this.N){case 0:e=a.wb();break;case 1:e=0;break;case 3:e=a.Ya();break;case 2:e=0}var f={top:a.Lb(),right:a.Kb()+a.Ya(),bottom:a.Lb()+a.wb(),left:a.Kb()};this.oa.render(this.ha,c,this.N,new Ei(a.Ya(),a.wb()),this.rf,this.bandwidth(),b,this.Ca,this.mf,e,this.ve,this.ya,f)}};function Cr(a,b){ur(a);var c=Dr(a),e=a.Oc;c.Ve()||(e=Ar(a,b));b=c.Mb(a.Ua==2?null:a.Ia.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ma),e,a,a.kg).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.Ua==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=Jh(b);b=Dr(a).Dd(e,c,b).map(function(f){return f.value!==void 0?f.value:f});a.ka=a.Ua===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.Ua){case 0:a.Ia=Yh();break;case 2:a.Ia=di(a.Ra,a.qf,!a.Yb);break;case 1:a.Ia=ai();break;case 3:a.Ia=gi();break;default:throw Error("Unknown scale type: "+a.Ua);}a.Qb!=null&&a.Za!=null&&a.Ia.outerPaddingStartPx&&a.Ia.outerPaddingEndPx&&(a.Ia.outerPaddingStartPx(a.Qb||0),a.Ia.outerPaddingEndPx(a.Za||0));if(a.Ua==2)typeof a.vc==="function"&&a.Ia.domainOverride&&a.Ia.domainOverride(a.vc),a.Ka&&a.Ia.autoOrderDomain&&a.Ia.autoOrderDomain(a.Ka),a.Ia.domain(Array.from(a.ma)),a.Ia.range([a.v[0]*a.Ha+a.Na,a.v[1]*a.Ha+a.Na]);else{var b=Er(a),c=a.v.map(function(f){return(f-this.Na)/this.Ha},a),e=a.Ua==1?ji:ii;a.Ia.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.Ia.copy();b.Ia=c}return a.na}b=new vr(a.Ua);a=a.Ia.copy();b.Ia=a;return b} Nd("google3.javascript.visualization.aplos.v2_0.chart.common.axis.aplosaxis.AplosAxis",sr);sr.prototype.setMaxViewportExtent=sr.prototype.Ok;sr.prototype.setNicingFunction=sr.prototype.Ld;sr.prototype.setAutoOrderDomain=sr.prototype.mk;sr.prototype.getTickProvider=sr.prototype.wn;sr.prototype.setTickProvider=sr.prototype.Fi;sr.prototype.setTickFormatter=sr.prototype.Tk;sr.prototype.setRenderer=sr.prototype.eg;sr.prototype.getRenderer=sr.prototype.tb;sr.prototype.getLayoutSize=sr.prototype.Ne;sr.prototype.setLayoutSize=sr.prototype.dh;sr.prototype.setAxisMargin=sr.prototype.nk;sr.prototype.getBarGroupPaddingPct=sr.prototype.km;sr.prototype.setBarGroupPaddingPct=sr.prototype.tk;sr.prototype.setScaleType=sr.prototype.Ai;function vr(a){this.Ia=null;this.Ua=a;this.vc=void 0;this.Xj=!1} v=vr.prototype;v.Un=function(a){this.Xj=a;return this};function Fr(a,b){switch(a.Ua){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.Ua);}} v.Ld=function(a){this.vc=a};v.Hg=function(){return this.vc};v.Ve=function(){return!1};v.Mb=function(a,b,c,e,f,k){this.Ia&&this.Ia.ticks?(typeof this.vc==="function"&&this.Ia.domainOverride&&this.Ia.domainOverride(this.vc),a[0]==a[1]&&(a=Fr(this,a[0])),a=this.Ia.domain(a||c).range([0,b]).ticks().map(function(t){return typeof t==="number"?+t.toFixed(7):t})):a=c;if(this.Xj&&k&&f){var n=2,r=To(a,f,e);for(e=r;k.v.oa&&k.v.ha&&k.v.oa.Oi(e,k.v.ha,k.v.N)&&e.length>2;)e=r.filter(function(t,x){return x==r.length-1||x%n==0}),n++;return e}return a};v.Dd=function(a,b,c){b=this.Mb(a,b,c);return b.length?Jh(b):a};Nd("google3.javascript.visualization.aplos.v2_0.chart.common.axis.aplosaxis.AplosAxisTickProvider",vr);vr.prototype.omitCollidingLabels=vr.prototype.Un;function tr(a){this.v=a} Nd("aplos.chart.AplosAxis",sr);function Gr(){pk.call(this);this.Md(!1);this.yd(!0);this.Nd(!0);this.re(0);this.zd(0);this.ha=20;this.O=45;this.qe(6)} Vc(Gr,pk);Nd("aplos.chart.GridlinesAxisRenderer",Gr);function Hr(){pk.call(this);this.Ka=new Ei(0,0);this.Ra=void 0} Vc(Hr,pk);v=Hr.prototype;v.render=function(a,b,c,e,f,k,n,r,t,x,A,la,ma){f=this.Ka;pk.prototype.render.call(this,a,b,c,e,f,k,n,r,t,x,A,la,ma)};v.lh=function(a,b,c,e,f,k){b=c==1||c==3;this.Ka=new Ei(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=hl(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,qb:e,Ac:!1}};v.Kh=function(a,b,c,e,f){var k="middle",n=0,r=0,t="";this.Ra=xj(b.node(),"MWpgy09",void 0,!0);b=f.label.split("\n").length*this.Ra;f=a.na;var x=a.v,A=a.Ha;switch(c){case 0:n=A?x:0;r=-1*(b+f+x);t=".71em";k=A?"start":"middle";break;case 2:n=A?x:0;r=b+x+f;t="0em";k=A?"start":"middle";break;case 1:n=x+f;r=A?-1*b/2:0;t=".32em";k="left";break;case 3:n=-1*(x+f),r=A?-1*b/2:0,t=".32em",k="right"}switch(a.ka){case 3:if(c===1||c===3)r=-(e/2-x),t=".71em";break;case 1:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n= -(e/2-x),k="left";break;case 4:if(c===1||c===3)r=e/2-x;break;case 2:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n=e/2-x,k="right"}return{anchor:k,x:n,y:r,dy:t,pr:n,qr:null}};v.Aj=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}};v.Bj=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}};Nd("aplos.chart.InsideAxisRenderer",Hr);function Ir(){Hr.call(this);this.Md(!1);this.yd(!0);this.Nd(!0);this.re(0);this.zd(0);this.ha=20;this.O=45;this.qe(6)} Vc(Ir,Hr);Nd("aplos.chart.InsideGridlinesAxisRenderer",Ir);function Jr(){Hr.call(this);this.Md(!0);this.yd(!1);this.Nd(!1);this.re(0);this.zd(6);this.ha=20;this.O=45;this.qe(0)} Vc(Jr,Hr);Nd("aplos.chart.InsideTicksAxisRenderer",Jr);function Kr(){pk.call(this);this.Md(!1);this.yd(!1);this.Nd(!1);this.re(0);this.zd(0);this.ha=20;this.O=45;this.qe(6)} Vc(Kr,pk);Nd("aplos.chart.LabelsAxisRenderer",Kr);function Lr(){} Lr.prototype.render=function(a,b,c,e,f,k,n,r,t,x,A){a.selectAll("*").remove();if(t!=null){a=".baseline";switch(c){case 0:a+=".x-axis-baseline";break;case 1:a+=".y-axis-baseline";break;case 3:a+=".y2-axis-baseline";break;case 2:a+=".x2-axis-baseline"}t.selectAll(a).remove()}if(A!=null){t=".axis-line";switch(c){case 0:t+=".x-axis-line";break;case 1:t+=".y-axis-line";break;case 3:t+=".y2-axis-line";break;case 2:t+=".x2-axis-line"}A.selectAll(t).remove()}};Lr.prototype.dk=function(){};Lr.prototype.Oi=function(){return!1};Lr.prototype.lh=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,qb:e,Ac:!0}};function Mr(){pk.call(this);this.Md(!0);this.yd(!1);this.Nd(!1);this.re(0);this.zd(6);this.ha=20;this.O=45;this.qe(6);this.Za=!0} Vc(Mr,pk);Mr.prototype.fk=function(a,b){(b===0||b===2)&&a.length>1&&(a[0].nh=1,a[a.length-1].nh=2)};Mr.prototype.Kh=function(a,b,c,e,f){b="middle";var k=0,n=0,r="",t=a.na,x=a.v;f=il(this,f);switch(c){case 0:n=x+t;r=".71em";b=f===1?"left":f===2?"right":"middle";break;case 2:n=-1*(x+t);r="0em";b=f===1?"left":f===2?"right":"middle";break;case 1:k=-1*(x+t);r=".32em";b="right";break;case 3:k=x+t,r=".32em",b="left"}switch(a.ka){case 3:if(c===1||c===3)n=-(e/2-x),r=".71em";break;case 1:if(c===2||c===0)n=n/Math.abs(n)*.4+"em",k=-(e/2-x),b="left";break;case 4:if(c===1||c===3)n=e/2-x;break;case 2:if(c===2|| c===0)n=n/Math.abs(n)*.4+"em",k=e/2-x,b="right"}return{anchor:b,x:k,y:n,dy:r}};Nd("aplos.chart.OuterJustifiedTicksAxisRenderer",Mr);function Nr(){pk.call(this);this.Md(!0);this.yd(!1);this.Nd(!1);this.re(0);this.zd(6);this.ha=20;this.O=45;this.qe(6)} Vc(Nr,pk);Nd("aplos.chart.TicksAxisRenderer",Nr);function Or(){this.Qn=100;this.ih=Xp;for(var a=Pr,b=0,c=Wc(Object.values(a)),e=c.next();!e.done;e=c.next())e=e.value,b=Math.max(b,ih(e.tick,"\n"),ih(e.transition||"","\n"),ih(e.Fc||"","\n"));c=Wc(Object.values(a));for(e=c.next();!e.done;e=c.next())e=e.value,e.tick=Qr(e.tick,b)||"",e.transition=Qr(e.transition,b),e.Fc=Qr(e.Fc,b);this.yh=a;this.Hi=Rr;this.qh=null;this.lp=0} v=Or.prototype;v.wk=function(a){(a=this.qh=a)&&Xq[a].Vb!==void 0&&Xq[a].Bc===!0&&(this.ih="UTC");return this};v.Ve=function(){return!0};v.Mb=function(a,b,c,e){if(b<=0)return[];var f=this.qh||Sr(c),k=1E3*Xq[f].Vb;f=a[0]>a[1];c=Jh(c);a=Jh(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=Tr(this,(a-c)/(b/this.Qn));b=r.interval;r=r.unit;var t=e;e&&(t=function(sa){return e(sa/1E3)});var x=t||Ur(this,this.yh[r].tick),A=t||Ur(this,this.yh[r].Fc);t=t||Ur(this,this.yh[r].transition);var la=Vr(r);n=this.Bg(b,r,c,n);for(var ma=[];n<=a;){if(n>=c){var ra=x(n),ta="minor";la&&this.kf(n,la)===n&&(ta="major",t&&(ra=t(n)));ma.push({value:n,Lh:ta,label:ra})}n=this.Ce(n,r,b)}A&&ma.length&&(ma[0].label=A(ma[0].value));k!==1&&ma.forEach(function(sa){sa.value=sa.value/k});return f===!1?ma:ma.reverse()};v.Dd=function(a,b,c){b=this.Mb(a,b,c);return b.length?Jh(b,function(e){return e.value}):a};function Tr(a,b){for(var c=Wc(a.Hi),e=c.next();!e.done;e=c.next())if(e=e.value,Wr[e.unit]*e.interval>=b)return e;return a.Hi[a.Hi.length-1]} function Vr(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} v.kf=function(a,b){return uq(a,b,this.ih)};v.Ce=function(a,b,c){return Aq(a,b,c,this.ih)};function Ur(a,b){return b?Oq(b,a.ih):null} v.Bg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return b==="WEEK"?(b=this.kf(e,"WEEK"),b=this.Ce(b,"DAY",this.lp),a*=7):b=this.kf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.Ce(b,"DAY",c);default:return b=Vr(b)||"YEAR",this.kf(c,b)}};function Sr(a){a=Jh(a);return a[0]>3E11&&a[0]<18E11?"time_ms":"timestamp"} function Qr(a,b){if(!a)return a;var c=ih(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=ds(this.Qh),r-n=ds(b.Db)&&(b.Db=null);a=ds(b.step)/a;ads(b.Db)&&(b.Db=b.step));this.Ng=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new nq;c.setTime(n);n=this.Bg(c,b.step);c=b.Db?this.Bg(c,b.Db):null;x=[];for(var A=!1;n.getTime()<=r;){var la= {};a:switch(f){case "milliseconds":var ma=n.getTime();break a;case "microseconds":ma=n.getTime()*1E3;break a;default:ma=new Date(n.getTime())}la.value=ma;c&&b.Db&&c.getTime()<=n.getTime()?(la.type="transition",la.label=a(new Date(n.getTime())),fs(c,b.Db),A=!0):la.label=e(new Date(n.getTime()));x.push(la);fs(n,b.step)}c&&x.length&&!A&&(x[0].type="transition",x[0].label=a(new Date(x[0].value*k)));t&&x.reverse();return x};v.Dd=function(a,b,c){b=this.Mb(a,b,c);return b.length?Jh(b,function(e){return e.value}):a};v.Bg=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.Ii)}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.Se(b,r)>=b[1]);t++);return(k?-1:1)*r};function is(a){return a<0?a+2E-10:a>0?a-2E-10:a} v.Se=function(a,b){var c=Math.ceil(a[0]/b)*b;c>a[0]&&(c-=b);return c};gs.prototype.getDefaultViewport=gs.prototype.Dd;gs.prototype.getTicks=gs.prototype.Mb;gs.prototype.getNicingFunction=gs.prototype.Hg;gs.prototype.getDynamicTicks=gs.prototype.Bm;gs.prototype.setDynamicTicks=gs.prototype.Zg;gs.prototype.getIntIntervalsOnly=gs.prototype.Mm;gs.prototype.setIntIntervalsOnly=gs.prototype.Fk;gs.prototype.getNiceCoefficients=gs.prototype.an;gs.prototype.setNiceCoefficients=gs.prototype.vi;gs.prototype.getNumTicks=gs.prototype.bn;gs.prototype.setNumTicks=gs.prototype.wi;var hs=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];Nd("aplos.chart.BaseTickProvider",gs);function js(){gs.call(this);this.Zg(!0);this.vi([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Mg=!1} Vc(js,gs);js.prototype.Bh=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.Qe(a,c,b,e);e=this.Se(c,a);var f=[];if(this.Mg){f.push(c[0]);if(b===0)return f;if(b===1)return f.push(c[1]),f}b=this.He?b+2:b;for(var k=0;k<=b;k++){var n=k*a+e;if(n>c[1])break;if(this.Mg){if(n-c[0]
=n){var ma=this.Se(b,la);if(c*la+ma>b[1])if(e)if(ma=Math.floor((b[1]-ma)/la)+1,ma>x)x=ma;else break;else break;r=la}t=la}}r===null&&(r=t!==null?t:1);return(k?-1:1)*r};js.prototype.Se=function(a,b){return Math.ceil(a[0]/b)*b};Nd("aplos.chart.DataTickProvider",js);function ks(){} ks.prototype.Ve=function(){return!0};ks.prototype.Mb=function(a,b,c,e,f){a=ls(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?ms(k.value):k.label,k.Lh="major"):(k.label="",k.Lh="minor")})):b=a;return b};ks.prototype.Dd=function(a,b,c){return Jh(ls(c||a))};function ls(a){a=a.filter(function(k){return k!==0});var b=Jh(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=Nh(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 ms(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} Nd("aplos.chart.LogTickProvider",ks);function ns(){this.hh=[]} ns.prototype.Ve=function(){return!1};ns.prototype.Mb=function(){return this.hh.map(function(a){return a&&a.value!==void 0?Uh(a):a})};ns.prototype.Dd=function(a){return this.hh.length?Jh(this.hh,function(b){return b.value!=null?b.value:b}):a};ns.prototype.Uk=function(a){this.hh=a.slice();return this};ns.prototype.setTicks=ns.prototype.Uk;ns.prototype.getDefaultViewport=ns.prototype.Dd;ns.prototype.getTicks=ns.prototype.Mb;Nd("aplos.chart.ManualTickProvider",ns);function os(){gs.call(this)} Vc(os,gs);os.prototype.Bh=function(a,b,c,e){Math.abs(c[0]-c[1])>4E-10&&(c=[is(c[0]),is(c[1])]);if(c[0]>=0)var f=0;else if(c[1]<=0)f=b;else{if(b===1)return Jh(ps(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 ps(this,a,b,f,c,e)};function ps(a,b,c,e,f,k){c=Math.max(1,c);var n=0;f[0]<0&&(n=a.Qe(b,[f[0],0],e,k));var r=0;f[1]>0&&(r=a.Qe(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} Nd("aplos.chart.QuantumTickProvider",os);function qs(){gs.call(this);this.Af=new os} Vc(qs,gs);qs.prototype.Mb=function(a,b,c,e,f,k){if(this.je>2&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0)){if(this.He)this.Af.Zg(!0);else{var n=this.je;n!=null&&this.Af.wi(n)}this.Af.vi(this.Tg);n=this.Hg();n!=void 0&&this.Af.Ld(n);return this.Af.Mb(a,b,c,e,f,k)}return gs.prototype.Mb.call(this,a,b,c,e,f,k)};qs.prototype.Bh=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.Qe(a,b,1,e),a=this.Se(c,b),e=Math.ceil(c[1]/b)*b,e=0,n=Oe(r,"truncate")>=0);b.Xa=n;b.O=k?45:0;e.axisTitlePaddingPx!==void 0&&b.qk(+e.axisTitlePaddingPx);e.tickRotateDegrees!=null&&(b.ya=+e.tickRotateDegrees);e.showTickMarks!==void 0&&e.showTickMarks==1?b.zd(c):b.zd(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.yd(e.showBaseline);e.showAxisLine!==void 0&&b.Md(e.showAxisLine);e.showGridlines!==void 0&&b.Nd(e.showGridlines)}return f} function As(a,b,c){var e=a.type.toLowerCase(),f=vs(a).scaleType,k=null,n=vs(a),r=n.nicing,t=a.ticks||{},x=a.extents||{},A=null;x.type=="fixed"&&Array.isArray(x.values)&&x.values.length>1&&(A=x.values);x=t.type||"default";switch(n.tickProviderType(x,c,A)){default:throw Error("Invalid axis ticks type: "+x);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 js;break;case "endpoints":k=new js;k.Mg=!0;break;case "tight":e==="log"?k=new ks:e==="time"?k=new Zr:e==="ordinal"?k=new vr(f):k=new qs;break;case "fixed":if(Array.isArray(t.values))f=t.values.map(function(la){var ma={value:e=="ordinal"?la.value:+la.value};la.hasOwnProperty("label")&&(ma.label=la.label);return ma}),k=new ns,k.Uk(f);else throw Error('No tick values found for "fixed" tick provider');break;case "quantum":e==="time"?k=new Or:k=new os}k&&k.Ld&&(r=t.nicing||r,f=k,typeof r==="string"&&ss[r]?f.Ld(ss[r]):typeof r==="function"&&f.Ld(r));a.columnType&&k&&k.wk&&k.wk(a.columnType);k instanceof gs&&(t.integerOnly&&k.Fk(!!t.integerOnly),b?k.wi(b):c&&k.Zg(!0));return k} function xs(a,b){var c=b.ticks||null;c=c&&c.format?c.format:null;b=vs(b).tickFormatter(c);b!=null&&a.Tk(b)} function ys(a,b){b.extents&&b.extents.type&&b.extents.type==="fixed"&&Array.isArray(b.extents.values)&&a.Ok(b.extents.values)} function zs(a,b){b.layout&&(b=b.layout,b.type&&b.type==="fixed"&&b.size!==void 0&&a.dh(+b.size))} function vs(a){var b=a.type.toLowerCase();if(Bs[b])return Bs[b];throw Error("Invalid axis scale: "+a.type);} Nd("aplos.chart.AxisSpecParser",ts);ts.prototype.createMeasureAxisForSpec=ts.prototype.kj;ts.prototype.createDomainAxisForSpec=ts.prototype.jj;var Bs={linear:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:ph(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:ph(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:ph(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 Cs(){} Vc(Cs,ts);Nd("aplos.chart.OldAxisSpecParser",Cs);var Ds=new ts;rs.current=Ds;function Es(){} Es.prototype.ae=function(){};Es.prototype.Qd=function(){};Nd("aplos.chart.ShapeRenderer",Es);function Fs(a,b,c){this.N=c!==void 0?c:!1;this.O=b!==void 0?b:!0;this.ha=a;this.ka="0.6ex"} v=Fs.prototype;v.ae=function(a,b,c,e,f,k,n){var r=(this.ha+" "+b).trim();a=a.append("g").attr("class",r);this.Dc(a);a.append("text");this.Qd(a,b,c,e,f,k,n)};v.Qd=function(a,b,c,e,f,k,n){var r=n.strokeWidth!=null?n.strokeWidth:2,t=this.O?"white":k,x=this.Lc(a);x.size()<1&&(x=uj(a.node()),b=(this.ha+" "+b).trim(),x.attr("class",b),x.selectAll("*").remove(),this.Dc(x),x.append("text"),x=this.Lc(a));a=a.select("text");this.Rc(x,a,c,e,f,this.O,r,k,t,this.N?n.label:null)};v.Dc=function(){};v.Lc=function(){};v.Rc=function(){};function Gs(a,b,c,e,f,k,n){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};nf||of?(c.y=e,c.dy=a.ka):(c.dy=e,c["dominant-baseline"]="middle");si(b,c);b.style("fill",k);b.style("font-size",f*1.25+"px");b.text(n)} Nd("aplos.chart.shaperenderer.BaseLabelShape",Fs);function Hs(){Fs.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Vc(Hs,Fs);Hs.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")};Hs.prototype.Lc=function(a){return a.select("g.aplos-box-triangle-right-shape")};Hs.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){var A=a.select(".primary");if(A.size()<1)throw Error("No primary path found in update selection");var la=a.select(".secondary");if(la.size()<1)throw Error("No secondary path found in update selection");var ma=f*2,ra=ma/16;si(a,{fill:r,width:ma+"px",height:ma+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});si(A,{rx:2,ry:2,width:f*2,height:f*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});si(la,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ ra+")"});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.BoxTriangleRight",Hs);function Is(a,b){Fs.call(this,"aplos-circle-shape-group",a,b)} Vc(Is,Fs);Is.prototype.Dc=function(a){a.append("circle").attr("class","aplos-circle-shape")};Is.prototype.Lc=function(a){return a.select("circle.aplos-circle-shape")};Is.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){si(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.Circle",Is);function Js(){} Js.prototype.ae=function(a,b,c,e,f,k,n,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Qd(a,b,c,e,f,k,n,r,t)};Js.prototype.Qd=function(a,b,c,e,f,k,n,r,t){si(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":f*2})};Nd("aplos.chart.shaperenderer.Cylinder",Js);function Ks(a,b){Fs.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Vc(Ks,Fs);Ks.prototype.Dc=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Ks.prototype.Lc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Ks.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){var A=.866*f;si(a,{points:c+","+(e-A)+" "+(c+f+","+(e+A)+" ")+(c-f+","+(e+A)),fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e+f-A,f,t,x)};Nd("aplos.chart.shaperenderer.EquilateralTriangle",Ks);function Ls(){Fs.call(this,"aplos-error-shape-group",!0,!1)} Vc(Ls,Fs);Ls.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")};Ls.prototype.Lc=function(a){return a.select("g.aplos-error-shape")};Ls.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){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 A=f*2,la=2,ma=2;if(A>36){var ra="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 ta=40;ma=la=4}else A>24?(ra="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",ta=30,ma=la=3):A>20?(ra="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",ta=20,ma=la=2.5):A>18?(ra="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",ta=40):(ra="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",ta=16,ma=la=1);ta=A/ta;si(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f-la)+", "+(e-f-ma)+")"});si(k,{d:ra,transform:"scale("+ta+")"});si(n,{cx:f+la,cy:f+ma,r:f*.95,fill:"white","stroke-width":"0"});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.ErrorShape",Ls);function Ms(a,b,c){Fs.call(this,"aplos-oval-shape-group",b,c);this.v=a||1} Vc(Ms,Fs);Ms.prototype.Dc=function(a){a.append("ellipse").attr("class","aplos-oval-shape")};Ms.prototype.Lc=function(a){return a.select("ellipse.aplos-oval-shape")};Ms.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){si(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});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.Oval",Ms);function Ns(){Fs.call(this,"aplos-pause-shape-group",!0,!1)} Vc(Ns,Fs);Ns.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")};Ns.prototype.Lc=function(a){return a.select("g.aplos-pause-shape")};Ns.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){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 A=f*2,la=1.5,ma=1.5;A>36?ma=la=4:A>24?ma=la=3:A>20?ma=la=2.5:A>18&&(ma=la=2);var ra=A/40;si(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f-la)+", "+(e-f-ma)+")"});si(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("+ra+")"});si(n,{cx:f+la,cy:f+ma,r:f*.9,fill:"white","stroke-width":"0"});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.PauseShape",Ns);function Os(a,b,c){Fs.call(this,"aplos-rect-shape-group",b,c);this.v=a||1} Vc(Os,Fs);Os.prototype.Dc=function(a){a.append("rect").attr("class","aplos-rect-shape")};Os.prototype.Lc=function(a){return a.select("rect.aplos-rect-shape")};Os.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){var A=this.v>1?f/this.v:f,la=this.v>=1?f:f*this.v;si(a,{x:c-A,y:e-la,rx:2,ry:2,width:A*2,height:la*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.Rect",Os);function Ps(){} Ps.prototype.ae=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.Qd(a,b,c,e,f,k,n,r,t)};Ps.prototype.Qd=function(a,b,c,e,f,k,n,r,t){si(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"butt",stroke:k,"stroke-width":f*2})};Nd("aplos.chart.shaperenderer.RectangleRange",Ps);function Qs(){Fs.call(this,"aplos-refresh-shape-group",!0,!1)} Vc(Qs,Fs);Qs.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")};Qs.prototype.Lc=function(a){return a.select("g.aplos-refresh-shape")};Qs.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){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 A=f*2;if(A>36){var la="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 ma=48}else A> 24?(la="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",ma=36):A>20?(la="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",ma=24):A>18?(la="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",ma=20):(la="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",ma=18);si(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f)+", "+(e-f)+") scale("+A/ma+")"});si(k,{d:la});si(n,{d:"M0 0h"+A+"v"+A+"H0z",fill:"none"});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.Refresh",Qs);function Rs(){Fs.call(this,"aplos-warning-shape-group",!0,!1)} Vc(Rs,Fs);Rs.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")};Rs.prototype.Lc=function(a){return a.select("g.aplos-warning-shape")};Rs.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){var A=a.select(".primary");if(A.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 la=f*2,ma=2;n=1;if(la>36){var ra="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z";var ta=44}else la>24?(ra="M1 32h34L18 3 1 32zm18-5h-2v-2h2v2zm0-5h-2v-7h2v7z",ta=32):la>20?(ra="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ta=20):la>18?(ra="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ta=20):(ra="M.5 16h17L9 1 .5 16zm9.5-2H8v-2h2v2zm0-3H8V7h2v4z",ta=16,ma=1,n=0);ta=la/ta;si(a,{fill:r,width:la+"px",height:la+"px",viewBox:"0 0 "+la+" "+la,transform:"translate("+(c-f-ma)+", "+(e-f-n)+")"});si(A,{d:ra,transform:"scale("+ta+")"});a=.866*f*.95;r=f*.95;ma=f+ma;n=f+n;si(k,{points:ma+","+(n-a)+" "+(ma+r+","+(n+a)+" ")+(ma-r+","+(n+a)),fill:"white","stroke-width":"0"});Gs(this,b,c,e,f,t,x)};Nd("aplos.chart.shaperenderer.WarningShape",Rs);function Ss(a,b){return new Is(a!==void 0?a:!0,b!==void 0?b:!1)} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createCircleRenderer",Ss);function Ts(){return new Js} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createCylinderRenderer",Ts);function Us(a,b){return new Ks(a!==void 0?a:!0,b!==void 0?b:!1)} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createEquilateralTriangleRenderer",Us);function Vs(){return new Ls} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createErrorRenderer",Vs);function Ws(a,b,c){return new Ms(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createOvalRenderer",Ws);function Xs(){return new Ns} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createPauseRenderer",Xs);function Ys(a,b,c){return new Os(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRectRenderer",Ys);Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRectangleRangeRenderer",function(){return new Ps});function Zs(){return new Qs} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRefreshRenderer",Zs);function $s(a,b){return Ys(1,a,b)} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createSquareRenderer",$s);function at(){return new Rs} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createWarningRenderer",at);function bt(){return new Hs} Nd("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createBoxTriangleRightRenderer",bt);Nd("aplos.chart.shaperenderer.ShapeRendererFactory",function(){});function ct(){this.v=Ts()} v=ct.prototype;v.Nb=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};v.distance=function(a){var b=a.x325E11;e.forEach(function(ta){var sa=ta.domain;ta.time=sa<325E11?sa*1E3:sa;ta.displayName=a.name;ta.description=ta.datum.description;ta.chartX=Uo(k,n?ta.time:ta.time/1E3);ta.chartY=0;sa=b.Cd()||Bt;ta.label=sa(ta.time)},this);e.sort(function(ta,sa){return ta.ab-sa.ab});var r=[];if(e.length>0){var t;for(t=0;t=0){var x={Jb:e[t],kb:[]};r.push(x);break}for(t+=1;tf.Ya())break;A.ab>x.Jb.ab+100?(x.kd=A.ab-x.Jb.ab,x={Jb:A,kb:[]},r.push(x)):x.kb.push(A)}if(!x)return;if(x.Jb.ab+60>f.Ya()){x.Yl=!0;x.kb.length>0&&(e=x.kb.pop(),x.kb.unshift(x.Jb),x.Jb=e);var la=r[r.length-2],ma=x;if(la&&la.Jb.ab+la.kd>ma.Jb.ab-100){var ra=(ma.Jb.ab-la.Jb.ab)/2+la.Jb.ab;x=ma.kb;e=la.kb;ma.kb=[];la.kb=[];e.forEach(function(ta){ta.chartX> ra?ma.kb.push(ta):la.kb.push(ta)});x.forEach(function(ta){ta.chartX>ra?ma.kb.push(ta):la.kb.push(ta)});la.kd=ra-la.Jb.ab;ma.kd=ma.Jb.ab-ra;la.kd<60&&(ma.kd+=la.kd,ma.kb=[la.Jb].concat(la.kb).concat(ma.kb),r.splice(r.length-2,1))}}else x.kd=f.Ya()-x.Jb.ab}c.Ej=r;Kn(b,c)}};v.render=function(a,b,c){var e=b.ub;b=Kn(b);if(b.Ej&&b.ar)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.Ya()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.Ej),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=uj(this),n=f.Jb,r=f.Yl,t=f.kd-4-10;si(k,{transform:"translate("+n.ab+", 0)"});var x=k.select(".text-holder");x.append("text").classed("annotation-title",!0);x.append("text").classed("date",!0);x.append("text").classed("subdominant-additional-text",!0);x.attr("transform","translate("+(r?"-":"")+4+", 10)");var A=x.select("text.annotation-title").text(n.description);yj(A.node(),t);A.attr("dy","1em");zj(A.node(),n.description);A=x.select("text.date").text(n.label);yj(A.node(),t);A.attr("dy","2.15em");zj(A.node(),n.label);var la=f.kb.length>0;A=k.select("text.subdominant-additional-text");if(la){la="+ "+f.kb.length+" more";A=A.text(la);yj(A.node(),t);var ma="";f.kb.forEach(function(ra){ma+=ra.label+" "+ra.description+"\n"});zj(A.node(),ma);si(A,{dy:"3.30em",display:null})}else A.attr("display","none");x.selectAll("text").attr("text-anchor",Hj(r?"right":"left"));f.kb.length>0&&(t=k.select("line.range-line"),x=er(f.kb,function(ra){return Math.abs(n.ab-ra.ab)}),si(t,{x1:(r?"-":"")+x,transform:"translate(0, 60)","pointer-events":"none"}));r=k.select("line.marker-line");si(r,{y2:60+e.wb(),"pointer-events":"none"});f=k.selectAll(".subdominant-lines").selectAll("line").data(f.kb);f.exit().remove();f=f.enter().append("line").merge(f);k=60+e.wb();si(f,{y1:60,y2:k,x1:function(ra){return ra.ab-n.ab},x2:function(ra){return ra.ab-n.ab},"pointer-events":"none"})}),c;else c.selectAll("*").remove()};v.le=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")};v.hj=function(){};v.me=function(){return!1};v.qd=function(){return-10};v.Gd=function(a){return a instanceof At};v.od=function(){};v.de=function(){};v.Ab=function(){};function Bt(a){return Sq("%b %e")(a/1E3)} Nd("aplos.chart.renderer.Annotation",At);var Ct={kl:0,nq:1};Nd("google3.javascript.visualization.aplos.v2_0.chart.common.renderer.series.arclabelutils.ArcLabelPosition",Ct);Ct.INSIDE=0;Ct.OUTSIDE=1;function Dt(a,b,c,e){this.Bb=a;this.N=Et(b);this.Va=c;this.O=!!e;this.v=0} function Ft(a,b,c,e,f,k){var n=Gt().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,x){t=n.centroid(t);r[x].offset=[Math.round(t[0]-r[x].start[0]),Math.round(t[1]-r[x].start[1])]});f&&k||(n.innerRadius(n.innerRadius()()+e),b.forEach(function(t,x){t=n.centroid(t);r[x].Yc=[Math.round(t[0]-r[x].start[0]),Math.round(t[1]-r[x].start[1])]}));return{position:c,padding:e,Kf:f,he:k,data:r}} Dt.prototype.Rg=function(a){if(a==null)return this.v;this.v=a;return this};Dt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Ld(function(b,c){return[this.Bb.data[c]]},this));Ht(this,a.enter())};function Ht(a,b){b=b.append("g").filter(Ld(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.Va?b.transition().delay(a.Va).duration(a.Va).style("opacity","1"):b.style("opacity","1");a.O&&!nf?It(a,b):Jt(a,b);Kt(a,b);Lt(b);b.filter(function(){return!uj(this).select(".arc-label").text()}).style("display","none")} function It(a,b){var c=a.Bb.Kf,e=a.Bb.he,f=a.Bb.position,k=a.Bb.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.Yc[0],n=n.Yc[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(Sj(a.N));b.each(function(n){var r=this.getBoundingClientRect(),t=Math.round(r.width);r=Math.round(r.height);var x=uj(this.parentNode.parentNode.parentNode);if(c&&e){var A=n.offset[0];var la=n.offset[1]}else A=n.Yc[0],la=n.Yc[1];n=A===0?-(t/2):A>0?0:-t;A=f!=0?A===0?la>0?0:-r:-(r/2):-(r/2);x.attr("width",t+"px").attr("height",r+"px").attr("transform","translate("+[n,A]+")")});a.Va?b.transition().delay(a.Va).duration(a.Va).style("opacity",1):b.style("opacity",1)} function Lt(a){var b=null,c=[];a.each(function(f){var k=uj(this),n=k.select(".arc-label").node().getBoundingClientRect();n=new st(n.left,n.top,n.width,n.height);var r=k.select(".arc-leader-line-tail");r.empty()||(r=r.node().getBoundingClientRect(),ut(n,new st(r.left,r.top,r.width,r.height)));r=f.datum.startAngle;(f.datum.endAngle+r)/2Math.PI&&tt(f.rect,b)?f.ee.style("display","none"):(f.ee.style("display",""),e=f.rect)})} function Jt(a,b){var c=a.Bb.Kf,e=a.Bb.he,f=a.Bb.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.Yc[0],n=n.Yc[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 Hj(t!==0&&e?t>0?"start":"end":"middle",k).call(this,n,r)}).each(function(n,r){gg(this,Sj(k)(n,r))})} function Kt(a,b){var c=a.Bb.he;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 Et(a){return function(b,c){return a(b.datum,c)}} ;function Mt(a,b,c){this.Bb=a;this.N=Nt(b);this.Va=c;this.v=0} Mt.prototype.Rg=function(a){if(a==null)return this.v;this.v=a;return this};Mt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Ld(function(b,c){return[this.Bb.data[c]]},this));Ot(this,a.enter())};function Ot(a,b){b=b.append("g").filter(Ld(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+")"});Pt(a,b);Qt(a,b);b.empty()||(Rt(a,b),St(b),Rj(b).filter(function(){return!uj(this).select(".arc-label").text()}).style("display","none"))} function Pt(a,b){var c=a.Bb.Kf,e=a.Bb.he,f=a.Bb.position,k=a.Bb.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var x=k;t!==0&&r!==0&&(x+=e);x=t===0?0:t>0?x:-x;var A=f===1&&t===0?r<0?-k:k:0}else t=r.Yc[0],r=r.Yc[1],A=x=0;return"translate("+[t+x,r+A]+")"});var n=b=Nj(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",Tt(a,f)).append("div").classed("arc-label",!0).style("opacity",0).each(Md(Ut,a.N));b.each(Md(function(r,t){r=uj(this);var x=r.select(".arc-label"),A=x.node();sj(A,null,null,!0);if(c&&e){var la=t.offset[0];t=t.offset[1]}else la=t.Yc[0],t=t.Yc[1];x.style("text-align",la===0?"center":la>0?"left":"right");x=A.getBoundingClientRect();Vt(f,r,new st(la,t,x.width,x.height))},a));b=b.select(".arc-label");a.Va?b.transition().delay(a.Va).duration(a.Va).style("opacity","1"):b.style("opacity","1")} function Ut(a,b,c){a=a(b,c,!0);var e=this;Array.isArray(a)?a.forEach(function(f){e.appendChild(f)}):uj(e).text(a)} function Tt(a,b){return Th(Ct,function(c){return c===b},a).toLowerCase()} function Vt(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 St(a){var b=null,c=[];a.each(function(f){var k=uj(this),n=Rj(k.select("g"));if(n.style("display")!=="none"){var r=n.select(".arc-label").node().getBoundingClientRect();r=new st(r.left,r.top,r.width,r.height);var t=k.select(".arc-leader-line-tail");t.empty()||(t=t.node().getBoundingClientRect(),ut(r,new st(t.left,t.top,t.width,t.height)));t=f.datum.startAngle;(f.datum.endAngle+t)/2Math.PI&&tt(f.rect,b)?(f.ee.style("display","none"),f.Oh.style("display","none")):(f.ee.style("display",""),f.Oh.style("display",""),e=f.rect)})} function Rt(a,b){var c=Oj(b).node().getBoundingClientRect();b.each(Md(function(e,f){var k=uj(this),n=Rj(k.select("g")),r=n.select(".arc-label").node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,x=Math.ceil(f.left-r.left)+5,A=(t>0?t:0)+(x>0?x:0);A&&(t=uj(n.node()),r=Math.ceil(r.width-A),r>0&&(t.style("width",r+"px"),x>0&&(x=+t.attr("data-translate-y"),t.select(".arc-label").style("left",-r+"px").style("top",x+"px"))),t.select(".arc-label").style("max-width",Math.ceil(r)+"px"),r=n.select(".arc-label").node().getBoundingClientRect(),Vt(e.Bb.position,t,new st(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 Qt(a,b){var c=a.Bb.he;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.Va?b.selectAll("line").transition().delay(a.Va).duration(a.Va).style("opacity","1"):b.selectAll("line").style("opacity","1")} function Nt(a){return function(b,c,e){return a(b.datum,c,e)}} ;function Wt(a,b){this.N=Gt().outerRadius(a).innerRadius(b);this.v=Xt();this.ya=!0;this.oa=70;this.ma=10;this.ta=20;this.ka=this.ha=0;this.Ha=!1;this.Ja=!0;this.na=this.O=!1;this.Ca=nk} v=Wt.prototype;v.innerRadius=function(a){return a==null?this.Ed():this.Ek(a)};v.Ek=function(a){this.N.innerRadius(a);return this};v.Ed=function(){return this.N.innerRadius()()};v.outerRadius=function(a){return a==null?this.Re():this.Qk(a)};v.Qk=function(a){this.N.outerRadius(a);return this};v.Re=function(){return this.N.outerRadius()()};v.startAngle=function(a){a==null?a=this.v.startAngle()():(this.v.startAngle(a),a=this);return a};v.endAngle=function(a){a==null?a=this.v.endAngle()():(this.v.endAngle(a),a=this);return a};v.Zq=function(a){a==null?a=this.na:(this.na=a,a=this);return a};v.Po=function(a){return a==null?this.ya:this.Di(a)};v.Di=function(a){this.ya=a;return this};v.qn=function(){return this.ya};v.Kd=function(a){this.Ca=a;return this};v.Kf=function(a){return a==null?this.oa:this.ni(a)};v.ni=function(a){this.oa=a;return this};v.Rm=function(){return this.oa};v.he=function(a){return a==null?this.ta:this.oi(a)};v.oi=function(a){this.ta=a;return this};v.Sm=function(){return this.ta};v.Ln=function(a){return a==null?this.ma:this.mi(a)};v.mi=function(a){this.ma=a;return this};v.Pm=function(){return this.ma};v.Mn=function(a){return a==null?this.nd():this.Ob(a)};v.Ob=function(a){this.ha=a;return this};v.nd=function(){return this.ha};v.Rg=function(a){return a==null?this.ka:this.ui(a)};v.ui=function(a){this.ka=a;return this};v.Zm=function(){return this.ka};v.Vl=function(a){return a==null?this.O:this.fi(a)};v.fi=function(a){this.O=a;return this};v.Dm=function(){return this.O};v.Tc=function(){};v.Nb=function(){};v.render=function(a,b,c,e){if(this.Ha){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=Yt(c);var k=Zt(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=$t(b.key());n=n.selectAll(".arc-border").data(k,c);var r=uj(null),t=null,x=n.exit();k.length>0&&k[k.length-1].endAngle>0?(r=a.selectAll(".arc").data(k,c),t=r.exit(),r=au(this,r,k,f,b),n=bu(this,n,k,f,b)):(a=cu(this,k,f,a,b),t=a.exit,r=a.update,f.length||(e=0));du(this,r,n,k,b,e);eu(this,t,x,k,f,b,e);n.attr("visibility",Ld(function(){return this.na&&k.length<=1?"hidden":null},this));return r};v.le=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);dk(e,function(){return c.color()(a,b)})};v.od=function(a,b,c,e){var f=new wi(c,e),k=this.Re(),n=this.Ed(),r=Ci(f,new wi(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=Zt(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=fu(this,a,b,r.data||{},n,c,e);break}return t};function fu(a,b,c,e,f,k,n){var r=c.measure(),t=c.domain(),x=c.color(),A=Zt(a,b,c)[f];var la=A.startAngle-Math.PI/2;var ma=A.endAngle-Math.PI/2;A=a.Re();var ra=a.Ed();la=(la+ma)/2;A=ra+(A-ra)/2;la=new wi(Math.round(Math.cos(la)*A),Math.round(Math.sin(la)*A));ra=c.ub;A=la.x+ra.Ya()/2;ra=la.y+ra.wb()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:la.x,datumY:la.y,chartX:A,chartY:ra,color:x(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.Ab(b,k,n)} v.Ab=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};Xh(e,a);b!=void 0&&c!=void 0&&(e.relativeDistance=Ci(new wi(e.datumX,e.datumY),new wi(b,c)));return e};v.de=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=$t(f.key());e=e.selectAll(".arc").data(b,k);k=e.enter().append("g").attr("class","arc");var n=$t(f.key());k.append("path").classed("pieSegment",!0).classed("empty-pie",!0).each(Md(function(r,t,x){r=gu(r,x,b,c,n);this.N={startAngle:r,endAngle:r}},a));return{exit:e.exit(),update:k.merge(e)}} function au(a,b,c,e,f){var k=b.enter().append("g").attr("class","arc"),n=k.append("path").classed("pieSegment",!0).attr("data-id",$t(f.uh()));dk(n,$t(f.color()));var r=$t(f.key());n.each(Md(function(t,x,A){t=gu(t,A,c,e,r);this.N={startAngle:t,endAngle:t}},a));return k.merge(b)} function bu(a,b,c,e,f){var k=b.enter().append("line").classed("arc-border",!0).attr("x1",0).attr("x2",0),n=$t(f.key());k.each(Md(function(r,t,x){this.O=gu(r,x,c,e,n)},a)).attr("transform",Md(function(){return hu(this.O)},a));return k.merge(b)} function du(a,b,c,e,f,k){var n=jn(f,"datumHoverState")?f.ld():function(){return 0},r=jn(f,"datumClickState")?f.Wd():function(){return 0},t=b,x=b;c.attr("y1",a.Ed()>0?-a.Ed()+1:0).attr("y2",a.Re()>0?-a.Re()-1:0);k&&(b=b.transition().duration(k),c=c.transition().duration(k));var A=f.color(),la=b.select("path");dk(la,function(ta,sa){return a.Ca(A(ta.data,sa),n(ta.data,sa),r(ta.data,sa)).color});var ma=f.Ee();b.each(function(ta,sa){var Aa=uj(this);typeof ma==="function"?(ta=ma(ta.data,sa))&&typeof ta==="string"||(ta=""):ta=ma;(sa=Aa.attr("data-user-classes"))&&Aa.classed(sa||"",!1);ta&&Aa.classed(ta,!0);Aa.attr("data-user-classes",ta)});var ra=!a.Ja||rf||sf?null:lk(f.ub.hb.node());k?b.select("path").attrTween("d",Gv(a.N)):b.select("path").attr("d",a.N).each(function(ta){this.N={startAngle:ta.startAngle,endAngle:ta.endAngle};var sa=uj(this);sa.classed("empty-pie")&&sa.attr("color",null);ta.endAngle-ta.startAngle<1E-7?sa.style("display","none"):sa.style("display","")});x.each(function(ta,sa){var Aa=uj(this),xa=Aa.select("path"),za=n(ta.data,sa);ta=r(ta.data,sa);Aa.classed("highlight",za>0);Aa.classed("inverse-highlight",za<0);Aa.classed("selected",ta>0);Aa.classed("inverse-selected",ta<0);xa.attr("filter",za>0?ra:null)});t.attr("data-label-position",Ld(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=Ld(a.Qm,a,f),e=Ft(a.N,e,a.ha,a.ma,a.oa,a.ta),f=null,Lj()?f=new Mt(e,b,k):f=new Dt(e,b,k,a.O),f.Rg(a.ka).render(t));k?c.attrTween("transform",Ld(function(ta,sa,Aa){return Hv(Aa,hu(ta.startAngle))},a)):c.attr("transform",Ld(function(ta){return hu(ta.startAngle)},a))} function eu(a,b,c,e,f,k,n){if(n){b=b.transition().duration(n);var r=$t(k.key());k=a.N;b.select("path").attrTween("d",Iv(a,k,e,f,r));c=c.transition().duration(n);c.attrTween("transform",function(t,x){x=Oe(f,t);t=Jv(a,x,e,f,r);return Hv(this.getAttribute("transform"),hu(t))})}b.remove();c.remove()} v.Qm=function(a,b,c,e){b=b.data;return jn(a,"label")?a.label()(b,c,e):(a.Cd()||ul)(a.domain()(b,c))};function Zt(a,b,c){var e=c.measure();a.v.value(e);a.ya?a.v.sort(function(f,k){return Kv(e(f),e(k))}):a.v.sort(null);return a.v(b.data)} function hu(a){return"rotate("+(a||0)*180/Math.PI+")"} function Gv(a){return function(b){var c=Lv(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 Iv(a,b,c,e,f){var k=Gv(b);return Md(function(n,r){r=Oe(e,r);n=Jv(n,r,c,e,f);return k.call(this,{startAngle:n,endAngle:n})},a)} function gu(a,b,c,e,f){for(--b;b>=0;b--)for(var k=f(c[b],b),n=0;n0:r.measureSize<=0,t),A=r.domainPosition+r.domainSize/2;x=r.measurePosition+r.measureSize+(f?-1:1)*x;switch(this.v){case "vertical":if(k){var la=-1*x;var ma=".32em"}else la=A,A=-1*x,ma=this.N==="middle"?".32em":null;break;default:k?(la=A,A=x,ma=null):(la=x,ma=".32em")}t=(t=r.validValue&&(this.N==="above"||t>=this.ka))&&(k?x<=e:x>=c);r.barLabel={domainPosition:la,measurePosition:A,valid:t,dy:ma,"text-anchor":Rv(this,b),"dominant-baseline":Sv(this,b)}}};function Rv(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 Sv(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");}} v.add=function(a){a.append("text").attr("class","bar-label")};v.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=uj(this),x=r.valid?1:0,A=null,la=n.barLabel;if(k.N==="above"){var ma=n.chartX;la=n.chartY}else k.v==="vertical"?f?(ma=la.measurePosition,la=-1*la.domainPosition):(ma=-1*la.measurePosition,la=la.domainPosition):(ma=la.domainPosition,la=la.measurePosition);ma=new wi(ma,la);r.valid&&e.contains(ma)||(A="none");t.text(n.label);b&&(t=t.transition().duration(b));switch(k.v){case "vertical":ma= c==="y"?"rotate(-90)":"rotate(90)";break;default:ma=null}si(t,{x:r.domainPosition,y:r.measurePosition,dy:r.dy,opacity:x,display:A,"dominant-baseline":r["dominant-baseline"],transform:ma});t.attr("text-anchor",Hj(r["text-anchor"],n.label));t.style("fill",k.O)}})};v.remove=function(a){a.selectAll(".bar-label").remove()};v.Tf=function(){return!0};Mv.prototype.getMinBarLength=Mv.prototype.Xm;Mv.prototype.setMinBarLength=Mv.prototype.ti;Mv.prototype.getLabelPosition=Mv.prototype.nd;Mv.prototype.setLabelPosition=Mv.prototype.Ob;Mv.prototype.getLabelOrientation=Mv.prototype.Om;Mv.prototype.setLabelOrientation=Mv.prototype.Gk;Mv.prototype.getLabelColor=Mv.prototype.Le;Mv.prototype.setLabelColor=Mv.prototype.Vc;Mv.prototype.getLabelOffsetFunction=Mv.prototype.Nm;Mv.prototype.setLabelOffsetFunction=Mv.prototype.df;function Nv(a,b){return a?-4:-b-4} function Ov(a,b){return a?b-4:-4} function Pv(a,b){return a?b/2:-b/2} function Qv(a,b){return a?4:-b+4} Nd("module$exports$aplos$chart$renderer$BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});Nd("module$exports$aplos$chart$renderer$BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Tv(){vt.call(this);this.oa=this.Ra=2;this.ka=null;this.ta=0;this.Ca=this.ha=1;this.ma=this.Ka=null;this.N=this.Xa=this.Ha=0;this.v=new Mv;this.ya=[this.v,new dt];this.Za=nk;this.Qb=null} Vc(Tv,vt);function Uv(a,b){a.ya.push(b);return a} function Vv(a,b){Ue(a.ya,a.v);a.v=b;Uv(a,a.v)} v=Tv.prototype;v.mm=function(){return this.v};v.No=function(a){this.Xa=a;return this};v.vo=function(a){this.N=a;return this};v.nm=function(){return this.N};v.Kd=function(a){this.Za=a;return this};v.Cl=function(a){return arguments.length&&a!=null?this.Jd(a):this.Gc()};v.strokeWidth=function(a){return arguments.length&&a!=null?this.Pd(a):this.Gf()};v.Pd=function(a){this.Ha=a;return this};v.Gf=function(){return this.Ha};v.stack=function(a){return arguments.length&&a!=null?this.Od(a):this.Te()};v.Od=function(a){this.ag(a?2:1);return this};v.Te=function(){return this.ha===2};v.ag=function(a){this.ha=a;return this};v.Hm=function(){return this.ha};v.Qo=function(a){return arguments.length&&a!=null?this.Ei(a):this.Ca};v.Ei=function(a){this.Ca=a;return this};v.rn=function(){return this.Ca};v.Pg=function(a){return arguments.length&&a!==void 0?this.eh(a):this.ma};v.eh=function(a){this.ma=Math.max(0,a);return this};v.Wm=function(){return this.ma};v.Pk=function(a){this.Ka=Math.max(0,a);return this};v.Ym=function(){return this.Ka};v.Dl=function(a){return arguments.length&&a!=null?this.rk(a):this.oa};v.rk=function(a){this.oa=a;return this};v.jm=function(){return this.oa};v.yn=function(){return this.ka};v.Wk=function(a){this.ka=a;return this};v.El=function(a){return arguments.length&&a!=null?this.uk(a):this.ta};v.uk=function(a){this.ta=a;return this};v.lm=function(){return this.ta};v.ko=function(a){return arguments.length&&a!=null?this.zi(a):this.Ra};v.zi=function(a){this.Ra=a;return this};v.hn=function(){return this.Ra};v.qd=function(){return-10};v.Gd=function(a){return a instanceof Tv};v.xo=function(a){this.Qb=a;return this};v.Tc=function(a,b){var c=new Map,e=new Map,f=new Map,k=this.ha;zt(this,a,b);for(var n=0,r=0;r=0?c:e;Aa=Ba.get(xa);Aa||(Aa=new Map,Ba.set(xa,Aa));xa=Aa.get(la);(Ba=Aa.get(ma))&&(sa.barStackIndex=Ba.barStackIndex+1);sa.cumulativeTotal=za||0;za=sa.measureOffset||0;xa&&sa.measure!==null&&(za+=xa.measure+xa.measureOffset,sa.cumulativeTotal+=xa.cumulativeTotal,sa.measure!=0&&(xa.roundedCorners=!1,this.Gc()=="stackTotal"&&(xa.label="")));sa.measureOffset=za;Aa.set(ma,sa);sa.validValue&&sa.measure!=0?Aa.set(la,sa):(sa.roundedCorners=!1,this.Gc()=="stackTotal"&&(sa.label=""))}n=Math.max(n,sa.barStackIndex+1);Wv(this,sa,t)}ra&&t.Kc(Xv(this,x));ma=t.ub!=null?lk(t.ub.hb.node()):null;Kn(t,{barData:x,barGroupIndex:A,barGroupCount:this.ha===1?b.length:1,highlightShadowUrl:ma,barStackKey:la})}if(this.ha===3){var Ea=f.size;b.forEach(function(Da){Kn(Da).barGroupCount=Ea;Kn(Da).maxBarStackSize=n})}b.length>0&&(a=b[0].ub,wt(this)=="x"&&a.Ke&&a.td&&b.forEach(function(Da){Da=Kn(Da);Da.barGroupIndex=Da.barGroupCount-1-Da.barGroupIndex}))};function Wv(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.Ha;if(a.Gc())switch(a.Gc()){case "cumulativeTotal":case "stackTotal":b.validValue&&b.cumulativeTotal!=null&&b.measure!==0?(a=b.cumulativeTotal,c=c.Tb()||ul,b.label=c(a)):b.label="";break;case "measureValue":b.validValue&&b.measure!==0?(c=c.Tb()||ul,b.label=c(b.measure)):b.label=""}} v.Nb=function(a,b){var c=Kn(b),e=c.barData,f=b.zc(),k=b.ob(),n=jn(b,"datumHoverState")?b.ld():function(){return 0},r=jn(b,"datumClickState")?b.Wd():function(){return 0},t=b.ub;c.chartWidth=t.frameWidth();c.chartHeight=t.frameHeight();t=f.bandwidth();t=Math.max(t,1);var x=Yv(this,c.barGroupCount);c.barWeights=x;c.barWidth=Zv(c.barGroupCount,c.barGroupIndex,x,t,this.oa,this.Ka,this.ma,this.ta);c.barOffset=$v(c.barGroupCount,c.barGroupIndex,x,t,this.oa,this.Ka,this.ma,this.ta);if(a.data.length==0)Kn(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=yt(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,x=0;f.forEach(function(A){t=Math.min(t,A.domainPosition);x=Math.max(x,A.domainPosition+A.domainSize)},a);a=r.select("rect");k&&(a=a.transition().duration(k));a.attr("x",t).attr("y",0).attr("width",x-t).attr("height",e.chartHeight);c.attr("clip-path","url(#"+n+")")}} function Yv(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?Mh(c,t,r):Mh(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:Ci(new wi(n,b),new wi(a,c))}} v.le=function(a,b,c,e,f){var k=f.width;f=f.height;var n=e.append("g").attr("class","bar-group");e=c.Ec()(a,b);var r=jn(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ha;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);dk(k,function(){return c.color()(a,b)},!0);e&&e.toLowerCase()!=="none"&&k.attr("fill","transparent")};function dw(a){a=uj(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function fw(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Xa){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function aw(a,b,c,e,f){var k=c.measureOffset,n=c.measure+k,r=zr(f,k),t=zr(f,n);if(pl(r)&&pl(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Ca);n?(n=k===0?Math.floor:Math.ceil,x=Math.ceil):(n=k===0?Math.ceil:Math.floor,x=Math.floor);r=n(r);t=x(t)}else t=r=null;n=Uo(e,c.domain);x=yr(e,c.domain)+b.barOffset;var A=b.barWidth,la=r;r=t-r;var ma=t=void 0,ra=Math.min(A/2,Math.abs(r),c.strokeWidth);A-=ra;x+=ra/2;r+=(r>=0?-1:1)*ra/2;if(c.measureLowerBound!=null&& c.measureUpperBound!=null){var ta=c.measureLowerBound,sa=c.measureUpperBound;ta!=null&&sa!=null&&(t=zr(f,k+ta),ma=zr(f,k+sa))}a=wt(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:x,domainSize:A,measurePosition:la,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:ma,strokeWidth:ra}} v.Cf=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};v.me=function(){return!0};v.Ig=function(a,b){b=Kn(b);return b.barData==null?a.data:b.barData};Tv.prototype.getBarPath=Tv.prototype.Cf;Tv.prototype.setCssName=Tv.prototype.xo;Tv.prototype.getRoundingRadiusPx=Tv.prototype.hn;Tv.prototype.setRoundingRadiusPx=Tv.prototype.zi;Tv.prototype.roundingRadiusPx=Tv.prototype.ko;Tv.prototype.getBarHorizontalMargin=Tv.prototype.lm;Tv.prototype.setBarHorizontalMargin=Tv.prototype.uk;Tv.prototype.barHorizontalMargin=Tv.prototype.El;Tv.prototype.setWeightPattern=Tv.prototype.Wk;Tv.prototype.getWeightPattern=Tv.prototype.yn;Tv.prototype.getBarGroupInnerPadding=Tv.prototype.jm;Tv.prototype.setBarGroupInnerPadding=Tv.prototype.rk;Tv.prototype.barGroupInnerPadding=Tv.prototype.Dl;Tv.prototype.getMinBarWidth=Tv.prototype.Ym;Tv.prototype.setMinBarWidth=Tv.prototype.Pk;Tv.prototype.getMaxBarWidth=Tv.prototype.Wm;Tv.prototype.setMaxBarWidth=Tv.prototype.eh;Tv.prototype.maxBarWidth=Tv.prototype.Pg;Tv.prototype.getStackedBarPadding=Tv.prototype.rn;Tv.prototype.setStackedBarPadding=Tv.prototype.Ei;Tv.prototype.stackedBarPadding=Tv.prototype.Qo;Tv.prototype.getGroupingType=Tv.prototype.Hm;Tv.prototype.setGroupingType=Tv.prototype.ag;Tv.prototype.getStack=Tv.prototype.Te;Tv.prototype.setStack=Tv.prototype.Od;Tv.prototype.stack=Tv.prototype.stack;Tv.prototype.getStrokeWidth=Tv.prototype.Gf;Tv.prototype.setStrokeWidth=Tv.prototype.Pd;Tv.prototype.strokeWidth=Tv.prototype.strokeWidth;Tv.prototype.autoBarLabels=Tv.prototype.Cl;Tv.prototype.setColorHighlightStrategy=Tv.prototype.Kd;Tv.prototype.getBorderRenderingStrategy=Tv.prototype.nm;Tv.prototype.setBorderRenderingStrategy=Tv.prototype.vo;Tv.prototype.setTransitionStrategy=Tv.prototype.No;Tv.prototype.getBarLabelDecorator=Tv.prototype.mm;function Zv(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 $v(a,b,c,e,f,k,n,r){var t=Math.floor((e-(r*2+f*(a-1)))/a),x=0;n&&t>n&&(x=Math.floor((t-n)*a/2));for(var A=t=0;A=0?c:e,ta=ra.get(la)||0;ra.set(la,ma+ta);A.measureOffset=ta}}this.v&&k.Kc(lw(t));n=(n=k.ub)?lk(n.hb.node(),0,4):null;Kn(k,{lineData:t,lineIndex:f,numLines:b.length,highlightShadowUrl:n})}};function lw(a){return function(b,c){return a[c].measureOffset}} v.Nb=function(a,b){var c=b.color(),e=b.Ee(),f=yt(this)==="y",k=b.ob(),n=b.zc(),r=n.bandwidth(),t=this.ma!=null?this.ma*r:this.ta||0,x=jn(b,"datumHoverState")?b.ld():function(){return 0},A=Kn(b),la=A.lineData,ma=A.numLines,ra=A.lineIndex,ta=this.v?r:Math.floor((r-this.ka*(ma-1))/ma),sa=Math.min(this.oa||Infinity,ta);r=mw(this,ra,ma,sa,t);t=nw(this,sa,ta,ra,ma,t);ma=t+r/2;A.chartWidth=b.ub.frameWidth();A.chartHeight=b.ub.frameHeight();if(a.data.length==0)Kn(b).barData=[];else for(b=0;b0?(ra.lineClass+=" highlight",ra.filter=A.highlightShadowUrl):ta<0&&(ra.lineClass+=" inverse-highlight")};v.render=function(a,b,c,e){a=Kn(b).lineData;var f=zr(b.ob(),0),k=this.N?"round":"butt";b=c.selectAll(".bar-target-line").data(a,function(x){return x.key});c=b.enter().append("line");a=b.exit();var n=c.merge(b),r=yt(this),t=wt(this);e&&(c.each(function(x){var A=uj(this);si(A,{display:x.validValue?null:"none","class":"bar-target-line "+x.lineClass,stroke:x.color,"stroke-linecap":k,"stroke-width":x.strokeWidth,"stroke-dasharray":x.dashPattern});Cj(this,t+"1",x.domainPosition);Cj(this,t+"2",x.domainPosition+x.domainSize);Cj(this,r+"1",f);Cj(this,r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.each(function(x,A,la){Cj(la[A],r+"1",f)}),a.each(function(x,A,la){Cj(la[A],r+"2",f)}));a.remove();n.each(function(x){var A=uj(this);e&&(A=A.transition(n));si(A,{display:x.validValue?null:"none","class":"bar-target-line "+x.lineClass,filter:x.filter,stroke:x.color,"stroke-linecap":k,"stroke-width":x.strokeWidth,"stroke-dasharray":x.dashPattern});Cj(this,t+"1",x.domainPosition);Cj(this,t+"2",x.domainPosition+x.domainSize);Cj(this,r+"1",x.measurePosition);Cj(this,r+"2",x.measurePosition)});return null};function mw(a,b,c,e,f){a.v&&(c=1,b=0);return(b===0?f:0)+e+(b+1===c?f:0)} function nw(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 ow(a,b,c,e,f,k){var n=b.measureOffset,r=b.measure+n;pl(r)&&pl(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};v.de=function(a,b,c,e,f){a=f||[];if(b=Kn(b).lineData)for(f=0;f0&&n>xa.chartX&&(k=!0);n=xa.chartX;sw(this,xa);xa.pointClass="";var za=t(xa.datum,Aa);za>0?xa.pointClass= (xa.pointClass+" highlight").trim():za<0&&(xa.pointClass=(xa.pointClass+" inverse-highlight").trim());za=x(xa.datum,Aa);za>0?xa.pointClass=(xa.pointClass+" selected").trim():za<0&&(xa.pointClass=(xa.pointClass+" inverse-selected").trim());ta&&(za=xa.domainOffset||0,A&&la&&(xa.domainLowerBound=A(xa.datum,Aa),xa.domainUpperBound=la(xa.datum,Aa),b||(xa.domainLowerBound+=za,xa.domainUpperBound+=za),xa.domainLowerBound!==null&&xa.domainUpperBound!==null&&(xa.domainLowerBoundPosition=zr(e,xa.domainLowerBound,null),xa.domainUpperBoundPosition=zr(e,xa.domainUpperBound,null),xa.errorBarColor=xa.color)),za=xa.measureOffset||0,xa.measureLowerBound=ma(xa.datum,Aa),xa.measureUpperBound=ra(xa.datum,Aa),sa||(xa.measureLowerBound+=za,xa.measureUpperBound+=za),xa.measureLowerBound!==null&&xa.measureUpperBound!==null&&(xa.measureLowerBoundPosition=zr(f,xa.measureLowerBound,null),xa.measureUpperBoundPosition=zr(f,xa.measureUpperBound,null),xa.errorBarColor=xa.color));xa.shapeRenderer=a(xa.datum,xa.index)}k&&r.sort(function(Ba,Ea){return Ba.chartX-Ea.chartX});c.Fb=r;this.v.Nb(r,yt(this),e,f)}};function rw(a,b,c){var e=a.ma;b.shapeRenderer&&(e=qw(b.shapeRenderer));return kn(c,"shapeRenderer",function(f){return f.shapeRenderer?qw(f.shapeRenderer):e})} function sw(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}} v.render=function(a,b,c,e,f,k,n){a=zr(b.ob(),0);f=Kn(b);var r=jn(b,"datumHoverState")?b.ld():function(){return 0};b=jn(b,"datumClickState")?b.Wd():function(){return 0};var t=c.node();tw(this,f.Fb||[],t,a,e,k,n,r,b);return c.selectAll(".point-group")};function tw(a,b,c,e,f,k,n,r,t){if(b.length===0)uw(a,c,e,f);else{c=uj(c).selectAll(".point-group").data(b,function(sa){return sa.key});c.exit().remove();var x=c.enter().append("g").attr("class","point-group");c=x.merge(c);a.v.Tf()||a.v.add(x,f,k);var A=function(sa,Aa){var xa=+sa.radius;if(r(sa.datum,Aa)>0||t(sa.datum,Aa)>0)xa+=2;return xa},la=function(sa,Aa){var xa=r(sa.datum,Aa);Aa=t(sa.datum,Aa);return a.oa(sa.color,xa,Aa).color},ma=a.ma;x.each(function(sa,Aa){(sa.shapeRenderer||ma).ae(uj(this),"point",sa.chartX,e,A(sa,Aa),la(sa,Aa),sa)});var ra=x.append("text").attr("class","point-label");switch(a.N){case 1:case 4:ra.attr("display",null).attr("text-anchor",Hj("middle")).attr("alignment-baseline","middle");break;case 2:ra.attr("display",null).attr("text-anchor",Hj("end")).attr("alignment-baseline","middle");break;case 3:ra.attr("display",null).attr("text-anchor",Hj("start")).attr("alignment-baseline","middle");break;default:case 0:ra=c.select(".point-label"),ra.attr("display","none")}a.v.Tf()&&a.v.add(x,f,k);x.each(function(sa){sa= Uh(sa);a.ha&&(sa.Vj=e);sa.radius=0;sa.gr=sa.Vj;sa.hr=sa.Vj;sa=yt(a);a.v.update(uj(this),f,sa,n)});ra.style("fill",a.ka);k={display:function(sa){return sa.validValue?null:"none"},"class":function(sa){var Aa="point-group";sa.pointClass!==void 0&&(Aa=(Aa+" "+sa.pointClass).trim());sa.datumClass!==void 0&&(Aa=(Aa+" "+sa.datumClass).trim());return Aa}};b={dx:function(sa){return isNaN(sa.labelX)?null:sa.labelX},dy:e};var ta=c;f&&(si(x,k),ra&&si(ra,b),ta=c.transition().duration(f));c=ta.select(".point");c.attr("display",function(sa){return n.contains(new wi(sa.chartX,sa.chartY))?null:"none"});c.each(function(sa,Aa){var xa=uj(this);f&&(xa=xa.transition().duration(f));(sa.shapeRenderer||ma).Qd(xa,"point",sa.chartX,sa.chartY,A(sa,Aa),la(sa,Aa),sa)});c=ta.select(".point-label");si(ta,k);b.dy=function(sa){return isNaN(sa.labelY)?null:sa.labelY};b.display=function(sa){return n.contains(new wi(sa.chartX,sa.chartY))?null:"none"};switch(a.N){case 1:case 4:b["text-anchor"]=Hj("middle");break;case 2:b["text-anchor"]=Hj("end");break;case 3:b["text-anchor"]=Hj("start");break;default:case 0:b.display="none"}c.text(function(sa){return sa.label});c.style("fill",a.ka);si(c,b);ta.each(function(){var sa=yt(a);if(f){var Aa=uj(this).transition(ta);a.v.update(Aa,f,sa,n)}else a.v.update(uj(this),f,sa,n)})}} function uw(a,b,c,e){a.v.remove(uj(b),c,e);a=uj(b).selectAll(".point-group");b=uj(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}},si(a,{display:function(f){return f.validValue?null:"none"}}),si(b,c));a.remove()} v.od=function(a,b,c,e,f,k){b=Kn(b).Fb;a=null;for(var n=Number.MAX_VALUE,r=[],t=0;t0&&t>za.chartX&&(n=!0);t=za.chartX;sw(this.v,za);this.ya&&(ra&&ta&&(za.domainLowerBound= ra(za.datum,xa),za.domainUpperBound=ta(za.datum,xa),za.domainLowerBound!==null&&za.domainUpperBound!==null&&(Ba=za.domainOffset||0,za.domainLowerBound+=Ba,za.domainUpperBound+=Ba,za.domainLowerBoundPosition=zr(f,Ba+za.domainLowerBound),za.domainUpperBoundPosition=zr(f,Ba+za.domainUpperBound),za.errorBarColor=za.color)),za.measureLowerBound=sa(za.datum,xa),za.measureUpperBound=Aa(za.datum,xa),za.measureLowerBound!=null&&za.measureUpperBound!=null&&(Ba=za.measureOffset||0,za.measureLowerBound+=Ba,za.measureUpperBound+= Ba,za.measureLowerBoundPosition=zr(k,Ba+za.measureLowerBound),za.measureUpperBoundPosition=zr(k,Ba+za.measureUpperBound),za.errorBarColor=za.color));za.shapeRenderer=b(za.datum,za.index);za.strokeWidth=ma(za.datum,xa)}n&&x.sort(function(Ia,Ja){return Ia.chartX-Ja.chartX});var Ea=this.Ra?this.Ra(x,this):x;n=[];if(r)for(r=0;r0?(Oa+=2,Na+=" highlight"):Pa<0&&(Na+=" inverse-highlight");var Va=la(x[0].datum,0);Va>0?(Oa+=2,Na+=" selected"):Va<0&&(Na+=" inverse-selected");Da.push({color:Ja[0],Og:Ja[1],Ec:Ja[2],Ee:Ja[3],Xl:Ia,xc:Ea,nr:a.name,strokeWidth:Oa,er:Oa,cr:Pa>0,dr:Pa< 0,id:"lineclip"+Uj(),Qj:Na})},this)}e.Fb=x;e.Ij=n;e.Mf=Da;this.N&&this.v.v.Nb(x,yt(this),f,k)}};v.render=function(a,b,c,e,f,k,n){var r=zr(b.ob(),0),t=Kn(b),x=c.node();if(a.data.length!==0||x!=null){var A=c.select("g");A.node()&&A.classed("area-segments")||Tj(x,'');var la=ej(x);A=la[1];var ma=la[2],ra=la[3];x=la[4];la=la[5];Dw(this,c,t.Mf,b);Ew(this,t.Mf,A,r,e,k);Fw(this,t.Mf,ma,r,e,k);Gw(this,t.Ij,ra,r,e,k);Hw(this,t.Mf,la,r,e,k);this.N?this.v.render(a,b,uj(x),e,f,k,n):(b=b.Ph(),Kn(b,{}),this.v.render({name:a.name,data:[]},b,uj(x),e,f,k,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Fw(a,b,c,e,f,k){if(a.ka)if(b.length===0)Iw(a,c,e,f);else if(uj(c).attr("clip-path",k),f){k=uj(c).selectAll(".line-series").data(b);k.exit().remove();b=uj(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");si(c,{"class":function(t){return t.Qj},fill:"none"});k=c.merge(k);var n=b.enter().append("path");si(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=Jw().defined(function(t){return t.validValue}).curve(a.ha).x(function(t){return t.chartX}).y(e);f&&(si(c,{stroke:function(t){return t.Og},"stroke-dasharray":function(t){return t.Ec},d:function(t){return r(t.xc)},"stroke-width":function(t){return t.strokeWidth}}),k=k.transition().duration(f),si(n,{stroke:"transparent",opacity:"0",d:function(t){return r(t.xc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});si(k,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Ec},d:function(t){return r(t.xc)},"stroke-width":function(t){return t.strokeWidth}});si(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.xc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else Kw(a,c,b),uj(c).selectAll(".line-series").data(b),uj(c).selectAll(".event-target").data(b);else Tj(c,"")} function Kw(a,b,c){for(var e="",f=Jw().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=pl(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(r*100)/100}),k=0;k';e+=''}Tj(b,e)} function Iw(a,b,c,e){var f=uj(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=Jw().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.xc)}).remove();uj(b).selectAll(".event-target").remove()} function Gw(a,b,c,e,f,k){b.length&&!a.N&&a.ka?(a=uj(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&&(si(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},si(a,c)):Tj(c,"")} function Ew(a,b,c,e,f,k){if(a.ta)if(b.length===0)Lw(c,e,f);else{b=uj(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=Mw().curve(a.Ka).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(si(c,{fill:function(r){return r.Og},d:function(r){return n(r.xc)}}),b=b.transition().duration(f));n.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});si(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Og},d:function(r){return n(r.xc)},"class":function(r){return"area"+(r.datumClass!=null?" "+r.datumClass:"")}})}else Tj(c,"")} function Lw(a,b,c){a=uj(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=Mw().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.xc)}).remove()} function Hw(a,b,c,e,f,k){if(a.ya)if(b.length===0||a.N)Nw(c,e,f);else{b=uj(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");si(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=Mw().curve(a.Ka).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(si(c,{fill:function(r){return r.color},d:function(r){return n(r.xc)}}),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});si(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.xc)}})}else Tj(c,"")} function Nw(a,b,c){a=uj(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=Mw().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.xc)}).remove()} function Cw(a,b){var c=a.O!=null;return function(e,f){if(c)for(e=0;eA)return!0;if(ra=r.length)return null;for(var t=Math.min(Math.max(Pw(r,c),a),b),x=null,A=Number.MAX_VALUE,la=Number.MAX_VALUE,ma=t;ma<=b&&!n(ma);ma++);for(b=t;b>=a&&!n(b);b--);x!=null&&(x=this.Ab(x,c,e));return x};function Pw(a,b,c){c=c===void 0?!1:c;var e=ef(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};yx.prototype.removeAllBehaviors=yx.prototype.fo;yx.prototype.removeBehavior=function(a){a.wd(this);Ue(this.wf,a);return this};yx.prototype.removeBehavior=yx.prototype.removeBehavior;yx.prototype.Lb=function(){return this.Ic.Lb()};yx.prototype.getMarginTop=yx.prototype.Lb;yx.prototype.Pe=function(){return this.Ic.Pe()};yx.prototype.getMarginRight=yx.prototype.Pe;yx.prototype.Oe=function(){return this.Ic.Oe()};yx.prototype.getMarginBottom=yx.prototype.Oe;yx.prototype.Kb=function(){return this.Ic.Kb()};yx.prototype.getMarginLeft=yx.prototype.Kb;yx.prototype.Fg=function(){return new jj(this.Lb(),this.Pe(),this.Oe(),this.Kb())};yx.prototype.getMargins=yx.prototype.Fg;yx.prototype.Wc=function(a,b){this.Ic.Wc(a,b);return this};yx.prototype.setMargins=yx.prototype.Wc;yx.prototype.Fo=function(a){this.Ic=a;return this};yx.prototype.setLayoutManager=yx.prototype.Fo;yx.prototype.Wh=function(){this.Wa.nb("prelayout",this,this.Ic)};function Gx(a,b,c){b.Vg("chartDelegate",function(e){this.Wa.nb(mn[c].selectionChange,this,e)}.bind(a))} yx.prototype.bl=function(a){a=a===void 0?1:a;var b=this.Zj.node().querySelector(".aplos-chart-container");if(!b)throw Error("No container element for the chart could be found.");var c=bf(b.querySelectorAll("*"));c.push(b);b=b.cloneNode(!0);var e=bf(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(!xf)for(xf={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++)for(k=c.concat(e[f].split("")),tf[f]=k,n=0;n>2];t=b[(t&3)<<4|x>>4];x=b[(x&15)<<2|r>>6];r=b[r&63];c[f++]=""+n+t+x+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};yx.prototype.toSvgDataUrl=yx.prototype.bl;yx.prototype.Zo=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 ux;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.Bf(b.toDataURL("image/png"))}catch(n){f.reject(n)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};yx.prototype.toPngDataUrl=yx.prototype.Zo;yx.prototype.getStyle=function(){return this.Gi};function Hx(a,b,c){yx.call(this,af(a,["prelayout","postlayout"]),b,c);this.mf=this.Oc=null;this.Wc({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} Nd("aplos.chart.SvgChartView",Hx);Od(Hx,yx);var Ix=0;Hx.prototype.redraw=Hx.prototype.ke;Hx.prototype.xd=function(){Hx.Pb.xd.call(this);var a=this.Ue().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.hb.node().setAttribute("transform","translate("+this.Kb()+","+this.Lb()+")");this.Oc&&this.Oc.attr("width",this.Ya()+1).attr("height",this.wb()+2)};Hx.prototype.Ue=function(){return this.Ro};Hx.prototype.getSvg=Hx.prototype.Ue;Hx.prototype.bp=function(){var a=this.Ue().node(),b=document.createElement("style"),c=Fj(a),e=rj(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};Hx.prototype.toSvgString=Hx.prototype.bp;Hx.prototype.getNearestDatumDetails=Hx.prototype.Ef;var Jx=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1");function Kx(a,b,c){var e=this;Hx.call(this,af(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.Qb=new Bn(this);this.ta={};this.Uf={};this.Rk("hover",new tn);this.Za=new Lx;this.on("viewportChange.seriesChartView",function(){e.Za.reset()})} Od(Kx,Hx);Nd("aplos.chart.SeriesChartView",Kx);Kx.prototype.Rk=function(a,b){b.Vg("clearSelectedDatumDetailsCache",this.ql.bind(this));var c=this.Uf,e=mn[a].selectionChange,f=this.Wa;f.O.hasOwnProperty(e)||sn(f,[e]);e=c[a];e!=null&&e.Vg("chartDelegate",null);c[a]=b;Gx(this,b,a);return this};Kx.prototype.setSelectionModel=Kx.prototype.Rk;Kx.prototype.Ko=function(a){Cn(this.Qb,a);return this};Kx.prototype.setSeriesDefaults=Kx.prototype.Ko;Kx.prototype.tb=function(a){return this.ta[a||"__aplosDefault__"]||this.ta.__aplosDefault__};Kx.prototype.getRenderer=Kx.prototype.tb;Kx.prototype.Bn=function(a){return!!this.ta[a||"__aplosDefault__"]};Kx.prototype.hasRenderer=Kx.prototype.Bn;Kx.prototype.eg=function(a,b){b?(b.type&&(b=this.getStyle().zj(b)),this.ta[a]=b):delete this.ta[a];return this};Kx.prototype.setRenderer=Kx.prototype.eg;Kx.prototype.ei=function(a){a.type&&(a=this.getStyle().zj(a));this.ta.__aplosDefault__=a;return this};Kx.prototype.setDefaultRenderer=Kx.prototype.ei;Kx.prototype.ci=function(a,b){a=this.Gg(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.Uf[ln[b]||"hover"]||null).Bi(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};Kx.prototype.selectDatum=Kx.prototype.ci;Kx.prototype.oo=function(a){this.Wa.nb("seriesMouseover",this,a,ui)};Kx.prototype.selectSeries=Kx.prototype.oo;Kx.prototype.Ll=function(a){(this.Uf[ln[a]||"hover"]||null).deselectAll()};Kx.prototype.clearSelections=Kx.prototype.Ll;Kx.prototype.Gg=function(a,b,c){var e=this.O||[],f=this.N||[];if(!e||!f)return[];if(ui){var k=ti(this.hb.node());var n=k[0];k=k[1]}for(var r=[],t=0;t0){if(ui){var e=ti(this.hb.node());var f=e[0];e=e[1]}for(a=0;a0?a[0]-this.Kb():ti(this.hb.node())[0];a=a&&a.length>1?a[1]-this.Lb():ti(this.hb.node())[1];if(this.v&&(b<0||b>this.Ya())||!this.v&&(a<0||a>this.wb()))return[];for(var e=new st(this.Kb(),this.Lb(),this.Ya(),this.wb()),f=new wi(b+e.left,a+e.top),k=[],n=0;n=0;k--){var n=a.v=b[k];f=$x(n,e,!0,a)&&f}n=a.v=c;f=$x(n,e,!0,a)&&f;f=$x(n,e,!1,a)&&f;if(b)for(k=0;k0&&athis.N&&this.show():sy(this)};function sy(a){a.oa.stop();rp(a.ma);a.ma=null} v.od=function(a,b){return this.ta(a,b)};qy.prototype.setHovercardContainerStyle=qy.prototype.Do;qy.prototype.hide=qy.prototype.Mh;qy.prototype.followClosestSeries=qy.prototype.tj;qy.prototype.followTopMostSeries=qy.prototype.am;qy.prototype.followNamedSeries=qy.prototype.Zl;qy.prototype.getPlacer=qy.prototype.en;qy.prototype.setPlacer=qy.prototype.xi;qy.prototype.placer=qy.prototype.bo;qy.prototype.getContentRenderer=qy.prototype.Df;qy.prototype.setContentRenderer=qy.prototype.af;qy.prototype.contentRenderer=qy.prototype.xg;qy.prototype.getShowDelayMs=qy.prototype.mn;qy.prototype.setShowDelayMs=qy.prototype.Sk;qy.prototype.showDelayMs=qy.prototype.Oo;qy.prototype.getTransitionMs=qy.prototype.xn;qy.prototype.setTransitionMs=qy.prototype.Vk;qy.prototype.transitionMs=qy.prototype.jf;qy.prototype.getClassName=qy.prototype.rm;qy.prototype.setClassName=qy.prototype.vk;qy.prototype.className=qy.prototype.className;Nd("aplos.chart.behavior.Hovercard",qy);function yy(){this.v=null;this.N=!1} v=yy.prototype;v.xg=function(a){return arguments.length&&a!=null?this.af(a):this.Df()};v.Df=function(){return this.v};v.af=function(a){this.v=a;return this};v.jd=function(a){if(a&&a.Ti){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.Qi.bind(this,a));a.on("hoverSelectionChange.donutcentercontent",this.Qi.bind(this,a))}};v.wd=function(a){a&&a.Ti&&(a.v(a.N()),this.N=!1,a.on("postrender.donutcentercontent",null),a.on("hoverSelectionChange.donutcentercontent",null))};v.Qi=function(a){var b=a.tb();if(a&&a.Ti&&b&&typeof b.Ed==="function"&&!(b.Ed()=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);Cy(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:Cy(f)&&(b+="\\"),b+=f}}return b+"$"} function Ey(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 Fy(){} Fy.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 Gy=new Fy;Gy=function(){function a(ua,nc,fd,Tc){fd=fd||{};for(Tc=ua.length;Tc--;fd[ua[Tc]]=nc);return fd} function b(){this.Nc={}} var c=[1,8],e=[1,20],f=[1,26],k=[1,27],n=[1,30],r=[1,112],t=[1,113],x=[1,29],A=[1,28],la=[1,83],ma=[1,84],ra=[1,85],ta=[1,86],sa=[1,87],Aa=[1,88],xa=[1,89],za=[1,90],Ba=[1,91],Ea=[1,92],Da=[1,93],Ia=[1,94],Ja=[1,95],Na=[1,96],Oa=[1,97],Pa=[1,98],Va=[1,99],Cb=[1,111],Db=[1,100],Eb=[1,101],Fb=[1,102],Gb=[1,103],Hb=[1,104],Ib=[1,105],Za=[1,106],Jb=[1,107],Kb=[1,108],Lb=[1,109],eb=[1,110],tb=[1,31],ub=[1,32],vb=[1,33],Mb=[1,34],Nb=[1,35],Ob=[1,36],Pb=[1,37],Qb=[1,38],Rb=[1,47],Sb=[1,48],Tb=[1,49],Ub= [1,50],Vb=[1,51],Wb=[1,52],Xb=[1,53],Yb=[1,54],Zb=[1,55],$b=[1,56],ac=[1,57],wb=[1,58],bc=[1,59],cc=[1,60],dc=[1,61],xb=[1,62],ec=[1,63],fc=[1,64],Qa=[1,65],Ya=[1,66],fb=[1,67],$a=[1,68],ab=[1,69],Wa=[1,70],Xa=[1,71],yb=[1,72],zb=[1,73],gb=[1,74],bb=[1,75],Ka=[1,76],hb=[1,77],Ab=[1,78],gc=[1,79],ib=[1,80],Ta=[1,81],jb=[1,82],kb=[1,39],Ua=[1,40],lb=[1,41],mb=[1,42],nb=[1,43],ob=[1,44],hc=[1,45],pb=[1,46],qb=[1,116],cb=[1,117],rb=[1,118],kc=[1,119],oc=[1,120],tc=[1,121],yc=[1,122],qc=[1,123],zc=[1,124],Bb=[1,125],Fc=[1,126],Hc=[1,128],Gc=[1,127],mc=[1,129],Ac=[1,130],Bc=[1,131],Cc=[1,132],rc=[1,133],pc=[1,134],Dc=[1,135],uc=[1,136],vc=[1,137],wc=[1,138],xc=[1,139],sb=[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],ug=[1,140],tk=[1,150],vg=[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],xi=[1,180],yi=[5,12,17,42,43,44,45,54,96,97,98,99],Ve=[1,233],uf=[1,250],zi=[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],We=[1,336],je=[5,12,17,54,96,97,98,99],uk=[96,97],Bi={trace:function(){},Nc:{},So:{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},hg:{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"},hk:[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]],Sh:function(ua,nc,fd,Tc,gd,ya){ua=ya.length-1;switch(gd){case 1:return ya[ua-1];case 7:this.qa=ya[ua-1];break;case 9:case 10:case 13:this.qa={type:"function",name:ya[ua-3].toUpperCase(),params:[ya[ua-1]]};break;case 11:case 14:this.qa={type:"function",name:ya[ua-5].toUpperCase(),params:[ya[ua-3],ya[ua-1]]};break;case 12:case 15:this.qa={type:"function",name:ya[ua-3].toUpperCase(),params:ya[ua-1]};break;case 25:case 26:case 27:case 28:this.qa={type:"function",name:ya[ua-1],params:[ya[ua-2],ya[ua]]};break;case 29:this.qa={type:"function",name:"EQUAL",params:[ya[ua-2],ya[ua]]};break;case 30:this.qa={type:"function",name:"NOT_EQUAL",params:[ya[ua-2],ya[ua]]};break;case 31:this.qa={type:"function",name:"LESS",params:[ya[ua-2],ya[ua]]};break;case 32:this.qa={type:"function",name:"LESS_OR_EQUAL",params:[ya[ua-2],ya[ua]]};break;case 33:this.qa={type:"function",name:"GREATER",params:[ya[ua-2],ya[ua]]};break;case 34:this.qa={type:"function",name:"GREATER_OR_EQUAL",params:[ya[ua-2],ya[ua]]};break;case 35:this.qa={type:"function",name:"BETWEEN",params:[ya[ua-4],ya[ua-2],ya[ua]]};break;case 36:this.qa={type:"function",name:"NOT BETWEEN",params:[ya[ua-4],ya[ua-2],ya[ua]]};break;case 37:this.qa={type:"function",name:"AND",params:[ya[ua-2],ya[ua]]};break;case 38:this.qa={type:"function",name:"OR",params:[ya[ua-2],ya[ua]]};break;case 39:this.qa={type:"function",name:"IS NULL",params:[ya[ua-1]]};break;case 40:this.qa={type:"function",name:"IS TRUE",params:[ya[ua-1]]};break;case 41:this.qa={type:"function",name:"IS FALSE",params:[ya[ua-1]]};break;case 42:this.qa={type:"number",value:+-ya[ua]};break;case 43:this.qa={type:"number",value:+ya[ua]};break;case 44:this.qa={type:"string",value:Ey(ya[ua].substring(1,ya[ua].length-1))};break;case 45:case 46:this.qa={type:"function",name:ya[ua-3],params:[ya[ua-1]]};break;case 47:gd=ya[ua-1].pathParts.slice();if(gd.length>2)throw Error("Too many path parts.");nc=gd.pop();this.qa={type:"function",namespace:gd.pop(),name:nc,fullName:ya[ua-1].column};break;case 48:ya[ua-1].params=[];this.qa=ya[ua-1];break;case 49:ya[ua-2].params=[ya[ua-1]];this.qa=ya[ua-2];break;case 50:gd=[];for(nc=0;nc2&&de.push("'"+this.hg[lh]+"'");var Fn=Id.fh?"Parse error on line "+(kh+1)+":\n"+Id.fh()+"\nExpecting "+de.join(", ")+", got '"+(this.hg[Fd]||Fd)+"'":"Parse error on line "+(kh+1)+": Unexpected "+(Fd==1?"end of input":"'"+(this.hg[Fd]|| Fd)+"'");this.parseError(Fn,{text:Id.match,dl:this.hg[Fd]||Fd,line:Id.Wb,fr:wf,Xq:de})}if(Zd[0]instanceof Array&&Zd.length>1)throw Error("Parse Error: multiple actions possible at state: "+xe+", token: "+Fd);switch(Zd[0]){case 1:nc.push(Fd);fd.push(Id.Xb);Tc.push(Id.Ta);nc.push(Zd[1]);Fd=null;Ai?(Fd=Ai,Ai=null):(vk=Id.Td,ya=Id.Xb,kh=Id.Wb,wf=Id.Ta,wk>0&&wk--);break;case 2:de=this.hk[Zd[1]][1];Sf.qa=fd[fd.length-de];Sf.Ui={be:Tc[Tc.length-(de||1)].be,Hd:Tc[Tc.length-1].Hd,md:Tc[Tc.length-(de||1)].md,ud:Tc[Tc.length-1].ud};En&&(Sf.Ui.range=[Tc[Tc.length-(de||1)].range[0],Tc[Tc.length-1].range[1]]);xe=this.Sh.apply(Sf,[ya,vk,kh,vf,Zd[1],fd,Tc].concat(Dn));if(typeof xe!=="undefined")return xe;de&&(nc=nc.slice(0,-1*de*2),fd=fd.slice(0,-1*de),Tc=Tc.slice(0,-1*de));nc.push(this.hk[Zd[1]][0]);fd.push(Sf.qa);Tc.push(Sf.Ui);Zd=gd[nc[nc.length-2]][nc[nc.length-1]];nc.push(Zd);break;case 3:return!0}}}};Bi.Oj=function(){return{Ni:1,parseError:function(ua,nc){if(this.Nc.ak)this.Nc.ak.parseError(ua,nc);else throw Error(ua);},Eo:function(ua,nc){this.Nc=nc||this.Nc||{};this.Zb=ua;this.uf=this.mg=this.done=!1;this.Wb=this.Td=0;this.Xb=this.Jc=this.match="";this.Hb=["INITIAL"];this.Ta={be:1,md:0,Hd:1,ud:0};this.options.Rf&&(this.Ta.range=[0,0]);this.offset=0;return this},input:function(){var ua=this.Zb[0];this.Xb+=ua;this.Td++;this.offset++;this.match+=ua;this.Jc+=ua;ua.match(/(?:\r\n?|\n).*/g)?(this.Wb++,this.Ta.Hd++):this.Ta.ud++;this.options.Rf&&this.Ta.range[1]++;this.Zb=this.Zb.slice(1);return ua},gp:function(ua){var nc=ua.length,fd=ua.split(/(?:\r\n?|\n)/g);this.Zb=ua+this.Zb;this.Xb=this.Xb.substr(0,this.Xb.length-nc);this.offset-=nc;ua=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.Jc=this.Jc.substr(0,this.Jc.length-1);fd.length-1&&(this.Wb-=fd.length-1);var Tc=this.Ta.range;this.Ta={be:this.Ta.be,Hd:this.Wb+1,md:this.Ta.md,ud:fd?(fd.length===ua.length?this.Ta.md:0)+ua[ua.length-fd.length].length-fd[0].length:this.Ta.md-nc};this.options.Rf&&(this.Ta.range= [Tc[0],Tc[0]+this.Td-nc]);this.Td=this.Xb.length;return this},jr:function(){this.uf=!0;return this},reject:function(){if(this.options.Yi)this.mg=!0;else return this.parseError("Lexical error on line "+(this.Wb+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.fh(),{text:"",dl:null,line:this.Wb});return this},br:function(ua){this.gp(this.match.slice(ua))},ao:function(){var ua=this.Jc.substr(0,this.Jc.length-this.match.length);return(ua.length>20?"...":"")+ua.substr(-20).replace(/\n/g,"")},hp:function(){var ua=this.match;ua.length<20&&(ua+=this.Zb.substr(0,20-ua.length));return(ua.substr(0,20)+(ua.length>20?"...":"")).replace(/\n/g,"")},fh:function(){var ua=this.ao(),nc=Array(ua.length+1).join("-");return ua+this.hp()+"\n"+nc+"^"},Zk:function(ua,nc){var fd;if(this.options.Yi){var Tc={Wb:this.Wb,Ta:{be:this.Ta.be,Hd:this.Hd,md:this.Ta.md,ud:this.Ta.ud},Xb:this.Xb,match:this.match,matches:this.matches,Jc:this.Jc,Td:this.Td,offset:this.offset,uf:this.uf,Zb:this.Zb,Nc:this.Nc,Hb:this.Hb.slice(0),done:this.done};this.options.Rf&&(Tc.Ta.range=this.Ta.range.slice(0))}if(fd=ua[0].match(/(?:\r\n?|\n).*/g))this.Wb+=fd.length;this.Ta={be:this.Ta.Hd,Hd:this.Wb+1,md:this.Ta.ud,ud:fd?fd[fd.length-1].length-fd[fd.length-1].match(/\r?\n?/)[0].length:this.Ta.ud+ua[0].length};this.Xb+=ua[0];this.match+=ua[0];this.matches=ua;this.Td=this.Xb.length;this.options.Rf&&(this.Ta.range=[this.offset,this.offset+=this.Td]);this.mg=this.uf=!1;this.Zb=this.Zb.slice(ua[0].length);this.Jc+=ua[0];ua=this.Sh.call(this,this.Nc,this,nc,this.Hb[this.Hb.length-1]);this.done&&this.Zb&&(this.done=!1);if(ua)return ua;if(this.mg)for(var gd in Tc)this[gd]=Tc[gd];return!1},next:function(){if(this.done)return this.Ni;this.Zb||(this.done=!0);var ua;this.uf||(this.match=this.Xb="");for(var nc=this.tl(),fd=0;fdTc[0].length)){var Tc=ua;var gd=fd;if(this.options.Yi){Tc=this.Zk(ua,nc[fd]);if(Tc!==!1)return Tc;if(this.mg)Tc=!1;else return!1}else if(!this.options.flex)break}return Tc?(Tc=this.Zk(Tc,nc[gd]),Tc!==!1?Tc:!1):this.Zb===""?this.Ni:this.parseError("Lexical error on line "+(this.Wb+1)+". Unrecognized text.\n"+ this.fh(),{text:"",dl:null,line:this.Wb})},Nj:function(){var ua=this.next();return ua?ua:this.Nj()},Zi:function(ua){this.Hb.push(ua)},co:function(){return this.Hb.length-1>0?this.Hb.pop():this.Hb[0]},tl:function(){return this.Hb.length&&this.Hb[this.Hb.length-1]?this.conditions[this.Hb[this.Hb.length-1]].rules:this.conditions.INITIAL.rules},wr:function(ua){ua=this.Hb.length-1-Math.abs(ua||0);return ua>=0?this.Hb[ua]:"INITIAL"},pushState:function(ua){this.Zi(ua)},ur:function(){return this.Hb.length},options:{flex:!0,"case-insensitive":!0},Sh:function(ua,nc,fd){switch(fd){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.Zi("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(nc.Xb)}},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=Bi;Bi.v=b;return new b}();function Hy(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 Iy(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 Jy(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 Ky(a,b){Hy("TRUNC(X, Y)","X",a);Hy("TRUNC(X, Y)","Y",b);Iy("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 Ly(a,b){Hy("LOG(X, Y)","X",a);Hy("LOG(X, Y)","X",b);return a==null||b==null?null:+a/+b} ;function My(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,x,A,la){if(x=="%")return"%";var ma=c.shift();if(typeof ma=="undefined")throw Error("[goog.string.format] Not enough arguments");arguments[0]=ma;return Ny[x].apply(null,arguments)})} var Ny={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?a+jh(" ",Number(c)-a.length):jh(" ",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+jh(" ",a):(b=b.indexOf("0",0)>=0?"0":" ",e=k+jh(b,a)+e);return e},d:function(a,b,c,e,f,k,n,r){return Ny.f(parseInt(a,10),b,c,e,0,k,n,r)}};Ny.i=Ny.d;Ny.u=Ny.d;function Oy(a,b){if(a==null)return!1;if(b.length===0)return!0;b=Wc(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 Py(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 Qy(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 Xy(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 Yy(a){if(typeof a==="number"){if(a===Infinity)return"inf";if(a===-Infinity)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function Zy(a,b){var c=$y;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Wc(Rh(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new az(a,k,b[f]))}} function az(a,b,c){this.O=a;this.N=b;this.v=c} az.prototype.call=function(){return this.apply(td.apply(0,arguments))};az.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.vb?this.v.vb.apply(null,a):this.v.ua.apply(null,a)};az.prototype.La=function(a){return this.v.La?this.v.La.call(null,a):Vy(this.O,this.N,a)};var $y=new function(){this.v=new Map};Zy("",{AVG:{vb:Lp},COUNTIF:{vb:Op},SUM:{vb:Mp},MIN:{vb:Pp},MAX:{vb:Qp},COUNT:{vb:Np},COUNT_DISTINCT:{vb:Rp},NTH_QUANTILE:{vb:Sp},VARIANCE:{vb:Up},STDDEV:{vb:Vp},"HLL_COUNT.MERGE":{vb: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){Hy("ABS(X)","X",a);return a!=null?Math.abs(+a):null}},SIGN:{va:1,wa:1,ua:function(a){Hy("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){Hy("IS_INF(X)","X",a);return a!=null?!isFinite(+a)&&!isNaN(a):null},tc:"IS_INFINITY"},IS_NAN:{va:1,wa:1,ua:function(a){Hy("IS_NAN(X)","X",a);return a!=null?isNaN(+a):null},tc:"IS_NAN"},IEEE_DIVIDE:{va:2,wa:2,ua:Ly},SQRT:{va:1,wa:1,ua:function(a){Hy("SQRT(X)","X",a);Jy("SQRT(X)","X",a,0,Infinity);return a!=null?Math.sqrt(+a):null}},POWER:{va:2,wa:2,ua:function(a,b){Hy("POWER(X, Y)","X",a);Hy("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){Hy("LOG(X, Y)","X",a);Hy("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;Jy("LOG(X, Y)","X",a,0,Infinity);Jy("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:Ky},CEILING:{va:1,wa:1,ua:function(a){Hy("CEILING(X)","X",a);return a!=null?Math.ceil(+a):null}},FLOOR:{va:1,wa:1,ua:function(a){Hy("FLOOR(X)","X",a);return a!=null?Math.floor(+a):null}},COS:{va:1,wa:1,ua:function(a){Hy("COS(X)","X",a);return a!=null?Math.cos(+a):null}},COSH:{va:1,wa:1,ua:function(a){Hy("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){Hy("ACOS(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Jy("ACOS(X)","X",a,-1,1);return a!=null?Math.acos(+a):null}},ACOSH:{va:1,wa:1,ua:function(a){Hy("ACOSH(X)","X",a);if(a===-Infinity)return NaN;Jy("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){Hy("SIN(X)","X",a);return a!=null?Math.sin(+a):null}},SINH:{va:1,wa:1,ua:function(a){Hy("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){Hy("ASIN(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Jy("ASIN(X)","X",a,-1,1);return a!=null?Math.asin(+a):null}},ASINH:{va:1,wa:1,ua:function(a){Hy("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){Hy("TAN(X)","X",a);return a!=null?Math.tan(+a):null}},TANH:{va:1,wa:1,ua:function(a){Hy("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){Hy("ATAN(X)","X",a);return a!=null?Math.atan(+a):null}},ATANH:{va:1,wa:1,ua:function(a){Hy("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){Hy("ATAN(Y, X)","X",a);Hy("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)},tc:"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:My.apply(null,arguments)}},CONCAT:{va:2,wa:void 0,ua:function(a){for(var b="",c=0;ca||a>c},La:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},tc:"NOT_BETWEEN"},CAST:{va:2,wa:2,ua:function(a,b){if(a==null)return null;switch(b.toUpperCase()){case "INT32":return Wy(a,-2147483648,2147483647);case "INT64":return Wy(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return Wy(a,0,1.8446744073709552E19);case "FLOAT":return Xy(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return Xy(a);case "BOOL":return mr(a);case "STRING":return Yy(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},La: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 Ry("AND",td.apply(0,arguments))},La:function(a){return Sy(" AND ",a)}},OR:{va:2,ua:function(){return Ry("OR",td.apply(0,arguments))},La:function(a){return Sy(" OR ",a)}},"+":{va:2,ua:function(){return Qy("+",td.apply(0,arguments))},La:function(a){return Sy("+",a)}},"-":{va:2,ua:function(){return Qy("-",td.apply(0,arguments))},La:function(a){return Sy("-",a)}},"*":{va:2,ua:function(){return Qy("*",td.apply(0,arguments))},La:function(a){return Sy("*",a)}},"/":{va:2,ua:function(){return Qy("/",td.apply(0,arguments))},La:function(a){return Sy("/",a)}},NOT:{va:1,wa:1,ua:function(a){return a==null||typeof a!=="boolean"?null:a===!1},La: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 Py("EQUAL",a,b)},La:function(a){return Sy("=",a)},tc:"="},NOT_EQUAL:{va:2,wa:2,ua:function(a,b){return Py("NOT_EQUAL",a,b)},La:function(a){return Sy("!=",a)},tc:"!="},LESS:{va:2,wa:2,ua:function(a,b){return Py("LESS",a,b)},La:function(a){return Sy("<",a)},tc:"<"},LESS_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return Py("LESS_OR_EQUAL",a,b)},La:function(a){return Sy("<=",a)},tc:"<="},GREATER:{va:2,wa:2,ua:function(a,b){return Py("GREATER",a,b)},La:function(a){return Sy(">",a)},tc:">"},GREATER_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return Py("GREATER_OR_EQUAL",a,b)},La:function(a){return Sy(">=",a)},tc:">="},NATIVE_EXPR:{va:1,wa:1,ua:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{va:1,wa:1,vb: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)}}});Zy("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{vb:Tp},EXTRACT_POINT_DOUBLE:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{vb:Tp}});function bz(){this.ma={};this.ta={};this.oa={};this.ka=[];this.na={};this.ha=[];this.N=null;this.ya=[];this.O=[];this.v={}} v=bz.prototype;v.Yj=function(a,b){this.O.push({yf:a,order:b?b:"ASC"});return this};v.Kl=function(){this.O=[];return this};v.Ff=function(){return this.O};v.oe=function(a){this.O=a.slice()};v.Xn=function(a,b,c,e){a={yf:a,measure:c,vr:e||""};typeof b==="function"?a.vb=b:a.Yq=b;this.ya.push(a);return this};v.Yn=function(a){this.N=a;return this};v.Bl=function(a){Array.isArray(a)?Pe(a,function(b){cz(this,b,{Bd:"decimal",hf:null})},this):cz(this,a,{Bd:"decimal",hf:null});return this};v.Al=function(a){Array.isArray(a)?Pe(a,function(b){cz(this,b,{Bd:"boolean",hf:null})},this):cz(this,a,{Bd:"boolean",hf:null});return this};v.Hj=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Bd)a=a.Bd,b=!!a&&Xq[a].jc==="number";return b?!0:!1};function cz(a,b,c){a.v[b]?(c.Bd&&(a.v[b].Bd=c.Bd),c.hf&&(a.v[b].hf=c.hf)):a.v[b]=c} v.wl=function(a,b){this.ma[a]=b;return this};v.Rl=function(a,b){this.ta[a]=b;return this};v.Sl=function(a,b){this.oa[a]=b;delete this.na[a];return this};v.An=function(a){return this.oa[a]||this.na[a]||this.ma[a]||this.N===a?!0:Oe(this.ka,a)>=0};v.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};v.yl=function(a,b,c){b=b?b:dz;this.na[c?c:"aggregatedValue"]={measure:a,vb:b};return this};v.Pj=function(){return this};v.Zn=function(a,b){this.Pj(a);this.Yj(b,"DESC");return this};v.Ml=function(a,b){this.ha.push({yf:a,value:b,operator:"="});return this};v.filter=function(a,b,c){this.ha.push(kr(a,b,c));return this};v.ro=function(){return this};v.Gm=function(){return this.ha};v.Jl=function(){this.ha=[];return this};v.Im=function(){var a=this.ka.slice(0);!this.N||Oe(a,this.N)>=0||cf(a,0,0,this.N);return a};Nd("aplos.data.Projection",bz);bz.prototype.getHierarchy=bz.prototype.Im;bz.prototype.clearFilters=bz.prototype.Jl;bz.prototype.getFilters=bz.prototype.Gm;bz.prototype.setAllowCachedSince=bz.prototype.ro;bz.prototype.filter=bz.prototype.filter;bz.prototype.columnEquals=bz.prototype.Ml;bz.prototype.onlyTop=bz.prototype.Zn;bz.prototype.limit=bz.prototype.Pj;bz.prototype.aggregate=bz.prototype.yl;bz.prototype.on=bz.prototype.on;bz.prototype.hasOutputColumn=bz.prototype.An;bz.prototype.derivePostAggregation=bz.prototype.Sl;bz.prototype.deriveColumn=bz.prototype.Rl;bz.prototype.addExpression=bz.prototype.wl;bz.prototype.asBoolean=bz.prototype.Al;bz.prototype.asNumber=bz.prototype.Bl;bz.prototype.oneSeriesPer=bz.prototype.Yn;bz.prototype.oneColumnPer=bz.prototype.Xn;bz.prototype.setOrdering=bz.prototype.oe;bz.prototype.clearOrdering=bz.prototype.Kl;bz.prototype.orderBy=bz.prototype.Yj;function ez(){var a=a===void 0?Gy:a;var b=b===void 0?$y:b;this.N=a;this.v=b} function fz(a,b){var c=c===void 0?gz:c;var e=hz(a,b),f=new iz(a.v,c);return function(k){return jz(e,f,k)}} function hz(a,b){a=a.N.parse(b);if(a===null)throw Error("Got a null parse tree.");return a} function jz(a,b,c){switch(a.type){case "column":a=Wc(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.vb)throw Error("Found aggregating function "+a.name+" while building a non-aggregating expression evaluator.");e=[];for(f=0;f'):c&&typeof f==="string"&&(f=hh(f));return f} function pz(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=Sh(a.v[a.v.length-1],b.split("."));if(a==null)return null;if(!Dd(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var n=f;(Sh(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 qz(a){this.v=a;this.O=this.N=-1;this.ha=0} qz.prototype.next=function(){this.N++;var a=this.v[this.N];a==="\n"?(this.ha++,this.O=-1):this.O++;return a};qz.prototype.index=function(){return this.N};function rz(a,b){if(b<0)throw Error("CharacterIterator can only skip forward");for(var c=0;c0&&this.N.Qc(new Bz(a)),this.ma(b);this.O+=a;return!0};Dz.prototype.ma=function(a){if(sz(a,"#each ",1)){var b=new vz;this.N.Qc(b);this.v=new Fz(b,"each",a);rz(a,6)}else sz(a,"#if ",1)?(b=new xz,this.N.Qc(b),this.v=new Fz(b,"if",a),rz(a,4)):sz(a,"#first ",1)?(b=new uz,this.N.Qc(b),this.v=new Fz(b,"first",a),rz(a,7)):sz(a,"#nest ",1)?(b=new yz,this.N.Qc(b),this.v=new Fz(b,"nest",a),rz(a,6)):sz(a,"#partial ",1)?(b=new zz,this.N.Qc(b),this.v=new Fz(b,"partial",a),rz(a,9)):sz(a,"#html ",1)?(b=new wz,this.N.Qc(b),this.v=new Ez(b,a),rz(a,6)):(b=new kz,this.N.Qc(b),this.v=new Ez(b,a));return!0};Dz.prototype.close=function(a){this.v!=null&&this.v.close(a);this.O.length>0&&(this.N.Qc(new Bz(this.O)),this.O="");return this.N};function Fz(a,b,c){Dz.call(this,a,c);this.na="{{/"+b+"}}";this.ka=new Ez(a,c)} Vc(Fz,Dz);Fz.prototype.ma=function(a){if(sz(a,this.na,-1))return rz(a,this.na.length-2),!1;if(sz(a,"/",1))throw Error("Attempt to close the wrong expression [row:"+a.ha+", col:"+a.O+"] expected "+this.na+" template:"+a.v);return Dz.prototype.ma.call(this,a)};Fz.prototype.ha=function(a,b){return this.ka?(this.ka.ha(a,b)||(this.ka=null),!0):Dz.prototype.ha.call(this,a,b)};Fz.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 Gz(a){this.v=(new Cz).parse(a)} ;function Hz(){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.Ha=new Ei(12,12);this.ta=new rl} v=Hz.prototype;v.Hk=function(a){this.ya=a;this.v=null;return this};v.Xf=function(a){this.N=Iz(this,a||{});return this};v.Ag=function(){this.N==null&&(this.N=Iz(this,{}));return this.N};v.oe=function(a){this.na=a;return this};v.Ff=function(){return this.na};v.dg=function(a){this.ka=a;this.v=null;return this};v.Dg=function(){return this.ka};v.fg=function(a){this.ma=a;this.v=null;return this};v.Kg=function(){return this.ma};v.Wf=function(a){this.O=a;this.v=null;return this};v.zg=function(){return this.O};v.di=function(a){this.oa=a;this.v=null;return this};v.Ch=function(){return this.oa};v.Zf=function(a){this.ha=a;this.v=null;return this};v.Cg=function(){return this.ha};v.ef=function(a){this.ta=a;return this};v.Yg=function(a,b,c){a.textContent="";this.N===null&&(this.N=Iz(this,{}));var e=this.N;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":hf(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 Gz(c)}b=new mz(b,e);this.v.v.accept(b);e=$m(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 Iz(a,b){var c=hn();c["svg-sample"]=a.ta.v(a.Ha);Xh(c,b);return c} v.ll=function(a,b){return a.chartY!==b.chartY?a.chartY-b.chartY:a.chartX-b.chartX};Hz.prototype.setLegendKey=Hz.prototype.ef;Hz.prototype.getFooterTemplate=Hz.prototype.Cg;Hz.prototype.setFooterTemplate=Hz.prototype.Zf;Hz.prototype.getAnnotationTemplate=Hz.prototype.Ch;Hz.prototype.setAnnotationTemplate=Hz.prototype.di;Hz.prototype.getBodyTemplate=Hz.prototype.zg;Hz.prototype.setBodyTemplate=Hz.prototype.Wf;Hz.prototype.getSeriesCategoryTemplate=Hz.prototype.Kg;Hz.prototype.setSeriesCategoryTemplate=Hz.prototype.fg;Hz.prototype.getHeaderTemplate=Hz.prototype.Dg;Hz.prototype.setHeaderTemplate=Hz.prototype.dg;Hz.prototype.getOrdering=Hz.prototype.Ff;Hz.prototype.setOrdering=Hz.prototype.oe;Hz.prototype.getConversionFunctionMap=Hz.prototype.Ag;Hz.prototype.setConversionFunctionMap=Hz.prototype.Xf;Hz.prototype.setMainTemplate=Hz.prototype.Hk;var Jz=!0;Nd("aplos.spec.flags.setEnableNewTemplateContentRenderer",function(a){Jz=a});function Kz(){this.O=this.N=this.ka=null;this.oa="{{measure}}";this.v=this.ha=null;this.na="series_asc";this.ta=new Ei(12,12);this.ma=new rl} v=Kz.prototype;v.De=function(a){return a==null?this.Ag():this.Xf(a)};v.Xf=function(a){this.v=Lz(this,a||{});return this};v.Ag=function(){this.v===null&&(this.v=Lz(this,{}));return this.v};v.Wg=function(a){return a==null?this.Ff():this.oe(a)};v.oe=function(a){this.na=a;return this};v.Ff=function(){return this.na};v.Hk=function(){return this};v.Cn=function(a){return a===void 0?this.Dg():this.dg(a)};v.dg=function(a){this.ka=a;return this};v.Dg=function(){return this.ka};v.qo=function(a){return a===void 0?this.Kg():this.fg(a)};v.fg=function(a){this.N=a;return this};v.Kg=function(){return this.N};v.Fl=function(a){return a===void 0?this.zg():this.Wf(a)};v.Wf=function(a){this.O=a;return this};v.zg=function(){return this.O};v.di=function(){return this};v.Ch=function(){return null};v.dm=function(a){return a===void 0?this.Cg():this.Zf(a)};v.Zf=function(a){this.ha=a;return this};v.Cg=function(){return this.ha};v.ef=function(a){this.ma=a;return this};v.Yg=function(a,b,c){a.textContent="";this.v===null&&(this.v=Lz(this,{}));var e=this.v;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":hf(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,x;a:{if(f!==""&&k!==""){if(!Mz.length)for(x=0;x]*?>","gi"),close:new RegExp("]*?>","gi")})}for(x=0;x(la?la.length:0)&&(ma=(la=k.match(A.open))?la.length:0,la=k.match(A.close),(la?la.length:0)>ma)){x=!0;break a}}}x=!1}x?(r=!0,(t=f.toLowerCase().indexOf("=0?f+''+k:f+'
'+k)&&Wm(a,b,t,e,void 0),x=uj(a).select(".aplos-placeholder"),t=x.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,x.remove()):(f&&Wm(a,b,f,e,void 0),f=a);x=void 0;for(A=0;A0&&!e.empty()&&k=k?Uz.Yk(f,n,c.height-k):f=n;var t=[];f.forEach(function(x){t.push({width:e,height:x})});return t},sr:function(a,b,c){for(var e=c.height,f=[],k=0,n=[],r=0;r=k?Uz.Yk(f,n,c.width-k):f=n;var t=[];f.forEach(function(x){t.push({width:x,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=Uz.xj(a.O,b,a.v);if(A0&&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"));bA(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function cA(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,kp:c}} function Zz(a,b,c,e){var f=b.Pa.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($z(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.Ce(b,e);a.update(b,e,0);var k=cA(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=Uz.wj(a.O,b,a.v)-(n-k.top)-k.kp,t=[[]],x=0,A=n;e.each(Md(function(la,ma){var ra=this.getBoundingClientRect(),ta=ra.top;ra=ta-A+ra.height;t[x].length>0&&(ra>r||t[x].length===la.Qg)&&(t[x+=1]=[],A=ta);t[x].push(ma)},a));f.remove();return t} function bA(a,b){var c=b.Pa.select(".aplos-legend");Uz.eo(b,a.O,a.v,c);c.attr("data-position",Ld(function(){var e=Th(Rz,function(f){return Tz(this.v)===f},this);return e!=null?e.toLowerCase():null},a))} v.Ce=function(a,b){var c=this.Rj(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.Tj(a)).on("mouseout.legend",this.Sj(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)};v.update=function(a,b){dA(this,b);b.empty()||uj(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 dA(a,b){var c=a.Ha||hn();c["svg-sample"]||(c["svg-sample"]=a.Ja.v(a.ta));b.each(Md(function(e,f){e=Xm(f,""+(f.categorySeparator?e.xf:e.xh)+"
",c)[0];for(e=uj(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function aA(a){a.each(function(){uj(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} v.xl=function(a,b){b.Be(new eA(a,this))};function $z(a){return a.xf!=null?"aplos-legend-table-category":"aplos-legend-table"} v.Ho=function(a){this.Cc=a;return this};Vz.prototype.setMinPreferredLayoutHeight=Vz.prototype.Ho;function eA(a,b){this.N=a;this.v=b} eA.prototype.Gh=function(){var a={position:fA(this),Of:30},b=this.v.Fg();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};eA.prototype.jg=function(a){Wz(this.v,this.N,this.v.Za,this.v.Xa,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Pa.select(".aplos-legend");if(b.empty())return{Ba:{width:0,height:0},qb:{width:0,height:0},Ac:!0};var c=fA(this),e=Ug(a,this.v.Ne(),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 x=uj(this).selectAll(".aplos-legend-entry");x.size()>t&&(t=x.size())});c=this.N.Pa.select(".aplos-legend-title");c=xj(c.node());c>0&&(c+=20);t>1&&(f=Math.floor(e/t)+c);f=Math.min(f,this.v.Cc+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},qb:{width:k,height:e},Ac:!1}};eA.prototype.ah=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Pa.select(".aplos-legend").node();b!=a.offsetWidth&&bA(this.v,this.N)};eA.prototype.Me=function(){return this.v.O};function fA(a){switch(Tz(a.v.v)){case Rz.LEFT:return 5;case Rz.RIGHT:return 6;case Rz.TOP:case Rz.TOP_FULL_LEFT:case Rz.TOP_FULL_RIGHT:return 2;case Rz.TOP_LEFT:case Rz.TOP_RIGHT:return 1;case Rz.BOTTOM:case Rz.BOTTOM_FULL_LEFT:case Rz.BOTTOM_FULL_RIGHT:return 4;case Rz.BOTTOM_LEFT:case Rz.BOTTOM_RIGHT:return 3;default:return 0}} ;function gA(a,b){this.v=a[Ad.Symbol.iterator]();this.N=b} gA.prototype[Symbol.iterator]=function(){return this};gA.prototype.next=function(){var a=this.v.next();return{value:a.done?void 0:this.N.call(void 0,a.value),done:a.done}};function hA(a,b){return new gA(a,b)} ;function iA(){} iA.prototype.next=function(){return jA};var jA={done:!0,value:void 0};iA.prototype.we=function(){return this};function kA(a){if(a instanceof lA||a instanceof mA||a instanceof nA)return a;if(typeof a.next=="function")return new lA(function(){return a});if(typeof a[Symbol.iterator]=="function")return new lA(function(){return a[Symbol.iterator]()});if(typeof a.we=="function")return new lA(function(){return a.we()});throw Error("Not an iterator or iterable.");} function lA(a){this.v=a} lA.prototype.we=function(){return new mA(this.v())};lA.prototype[Symbol.iterator]=function(){return new nA(this.v())};lA.prototype.N=function(){return new nA(this.v())};function mA(a){this.v=a} Vc(mA,iA);mA.prototype.next=function(){return this.v.next()};mA.prototype[Symbol.iterator]=function(){return new nA(this.v)};mA.prototype.N=function(){return new nA(this.v)};function nA(a){lA.call(this,function(){return a});this.O=a} Vc(nA,lA);nA.prototype.next=function(){return this.O.next()};function oA(a,b){this.N={};this.v=[];this.O=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e2*this.size&&qA(this),!0):!1};function qA(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return jA;var k=e.v[b++];return{value:a?k:e.N[k],done:!1}};return f};function rA(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function sA(){this.N=new oA;this.v=new tA("");this.v.next=this.v.v=this.v} v=sA.prototype;v.get=function(a,b){return(a=this.N.get(a))?a.value:b};v.set=function(a,b){var c=this.N.get(a);c?c.value=b:(c=new tA(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)};v.shift=function(){return uA(this,this.v.next)};v.pop=function(){return uA(this,this.v.v)};v.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function vA(a){return a.map(function(b){return b})} v.contains=function(a){return this.some(function(b){return b==a})};v.clear=function(){this.kf(0)};v.forEach=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)a.call(b,c.value,c.key,this)};v.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};v.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};v.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};v.kf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function uA(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function tA(a,b){this.key=a;this.value=b} tA.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};Nd("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function wA(a){Vz.call(this,a||'{{svg-sample}} {{series.name}}');this.Ca=!1;this.oa={};this.Ra=!1;this.N={};this.na=[];this.Na=[];this.Ka="series_asc";this.ya=1} Od(wA,Vz);Nd("aplos.chart.behavior.SeriesLegend",wA);var xA=null,yA=null;wA.prototype.jp=function(a){return a!=null?(this.Ca=a,a||(this.oa={}),this):this.Ca};wA.prototype.valuesFromNearestDatum=wA.prototype.jp;wA.prototype.Dn=function(a){if(a==null)return this.Ra;this.Ra=!!a;return this};wA.prototype.hideEmptySeries=wA.prototype.Dn;wA.prototype.En=function(a){this.N[a]=!0;return this};wA.prototype.hideSeries=wA.prototype.En;wA.prototype.Wg=function(a){if(a==null)return this.Ka;this.Ka=a;return this};wA.prototype.ordering=wA.prototype.Wg;wA.prototype.fj=function(a){if(a==null)return this.ya;this.ya=a;return this};wA.prototype.clickHandling=wA.prototype.fj;v=wA.prototype;v.jd=function(a){var b=this;wA.Pb.jd.call(this,a);a.on("mouseout.seriesLegend",function(){this.Ca&&(this.oa={},a.ke())},this);a.on("mousemove.seriesLegend",function(){if(this.Ca){for(var c=a.Ef(),e=0;e=0},a)}} function Yz(a,b,c){for(var e=new sA,f=0;fthis.N)a.Fd("hover").deselectAll(),BA(this);else{var e=[c];switch(this.ha){case 0:c.domain!==void 0&&(e=a.Gg(function(f){return!f.series.overlay&&f.domain===c.domain},!0,!0));break;case 1:e=b}this.select(a,e)}}};v.select=function(a,b){a.Fd("hover").Bi(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));DA(this,a)};function DA(a,b){if(!a.v){var c="selectnearest_"+Date.now();uj(a.ka).on("mouseout."+c,function(){var e=b.hb.select(".mouseCapturePane").node(),f;if(f=ui&&ui.target)e?(f=vi(e),e=e.getBoundingClientRect(),f=f[0]>=0&&f[0]=0&&f[1]h?1:l>=h?0:NaN} function c(l){l.length===1&&(l=e(l));return{left:function(h,p,u,w){u==null&&(u=0);w==null&&(w=h.length);for(;u>>1;l(h[y],p)<0?u=y+1:w=y}return u},right:function(h,p,u,w){u==null&&(u=0);w==null&&(w=h.length);for(;u>>1;l(h[y],p)>0?w=y:u=y+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=(w=arguments.length)<2?(h=l,l=0,1):w<3?1:+p;for(var u=-1,w=Math.max(0,Math.ceil((h-l)/p))|0,y=Array(w);++u0)return[l];if(u=h0)for(l=Math.ceil(l/y),h=Math.floor(h/y),h=Array(z=Math.ceil(h-l+1));++w=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(w+1),p=p.slice(0,w));if(p&&!h.hasOwnProperty(p))throw Error("unknown type: "+p);return{type:p,name:u}})} function la(l,h,p){for(var u=0,w=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 ra(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 ta(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}} function sa(l){l=ma(l);return(l.local?ta:ra)(l)} function Aa(){} function xa(l){return l==null?Aa:function(){return this.querySelector(l)}} function za(){return[]} function Ba(l){return l==null?za:function(){return this.querySelectorAll(l)}} function Ea(l){return Array(l.length)} function Da(l,h){this.ownerDocument=l.ownerDocument;this.namespaceURI=l.namespaceURI;this.Pc=null;this.qg=l;this.__data__=h} function Ia(l){return function(){return l}} function Ja(l,h,p,u,w,y){for(var z=0,E,na=h.length,qa=y.length;zh?1:l>=h?0:NaN} function Pa(l){return function(){this.removeAttribute(l)}} function Va(l){return function(){this.removeAttributeNS(l.space,l.local)}} function Cb(l,h){return function(){this.setAttribute(l,h)}} function Db(l,h){return function(){this.setAttributeNS(l.space,l.local,h)}} function Eb(l,h){return function(){var p=h.apply(this,arguments);p==null?this.removeAttribute(l):this.setAttribute(l,p)}} function Fb(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 Gb(l){return function(){this.style.removeProperty(l)}} function Hb(l,h,p){return function(){this.style.setProperty(l,h,p)}} function Ib(l,h,p){return function(){var u=h.apply(this,arguments);u==null?this.style.removeProperty(l):this.style.setProperty(l,u,p)}} function Za(l,h){return l.style.getPropertyValue(h)||(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView).getComputedStyle(l,null).getPropertyValue(h)} function Jb(l){return function(){delete this[l]}} function Kb(l,h){return function(){this[l]=h}} function Lb(l,h){return function(){var p=h.apply(this,arguments);p==null?delete this[l]:this[l]=p}} function eb(l){return l.classList||new tb(l)} function tb(l){this.Vi=l;this.Ud=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function ub(l,h){l=eb(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 cc(l){return function(){var h=this.__on;if(h){for(var p=0,u=-1,w=h.length,y;p>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=SA.exec(l))?yb(parseInt(h[1],16)):(h=TA.exec(l))?new Ka(h[1],h[2],h[3],1):(h=UA.exec(l))?new Ka(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=VA.exec(l))?zb(h[1],h[2],h[3],h[4]):(h=WA.exec(l))?zb(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=XA.exec(l))?Ab(h[1],h[2]/100,h[3]/100,1):(h=YA.exec(l))?Ab(h[1],h[2]/100,h[3]/100,h[4]):ku.hasOwnProperty(l)?yb(ku[l]):l==="transparent"?new Ka(NaN,NaN,NaN,0):null} function yb(l){return new Ka(l>>16&255,l>>8&255,l&255,1)} function zb(l,h,p,u){u<=0&&(l=h=p=NaN);return new Ka(l,h,p,u)} function gb(l){l instanceof Wa||(l=Xa(l));if(!l)return new Ka;l=l.rgb();return new Ka(l.r,l.g,l.b,l.opacity)} function bb(l,h,p,u){return arguments.length===1?gb(l):new Ka(l,h,p,u==null?1:u)} function Ka(l,h,p,u){this.r=+l;this.g=+h;this.b=+p;this.opacity=+u} function hb(l){l=Math.max(0,Math.min(255,Math.round(l)||0));return(l<16?"0":"")+l.toString(16)} function Ab(l,h,p,u){u<=0?l=h=p=NaN:p<=0||p>=1?l=h=NaN:h<=0&&(l=NaN);return new Ta(l,h,p,u)} function gc(l){if(l instanceof Ta)return new Ta(l.h,l.s,l.l,l.opacity);l instanceof Wa||(l=Xa(l));if(!l)return new Ta;if(l instanceof Ta)return l;l=l.rgb();var h=l.r/255,p=l.g/255,u=l.b/255,w=Math.min(h,p,u),y=Math.max(h,p,u),z=NaN,E=y-w,na=(y+w)/2;E?(z=h===y?(p-u)/E+(p0&&na<1?0:z;return new Ta(z,E,na,l.opacity)} function ib(l,h,p,u){return arguments.length===1?gc(l):new Ta(l,h,p,u==null?1:u)} function Ta(l,h,p,u){this.h=+l;this.s=+h;this.l=+p;this.opacity=+u} function jb(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 kb(l){if(l instanceof Ua)return new Ua(l.l,l.a,l.b,l.opacity);if(l instanceof qb){if(isNaN(l.h))return new Ua(l.l,0,0,l.opacity);var h=l.h*lu;return new Ua(l.l,Math.cos(h)*l.c,Math.sin(h)*l.c,l.opacity)}l instanceof Ka||(l=gb(l));var p=ob(l.r),u=ob(l.g),w=ob(l.b);h=lb(.2225045*p+.7168786*u+.0606169*w);if(p===u&&u===w)var y=p=h;else y=lb((.4360747*p+.3850649*u+.1430804*w)/.96422),p=lb((.0139322*p+.0971045*u+.7141733*w)/.82521);return new Ua(116*h-16,500*(y-h),200*(h-p),l.opacity)} function Ua(l,h,p,u){this.l=+l;this.a=+h;this.b=+p;this.opacity=+u} function lb(l){return l>ZA?Math.pow(l,1/3):l/mu+nu} function mb(l){return l>uh?l*l*l:mu*(l-nu)} function nb(l){return 255*(l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function ob(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)} function hc(l){if(l instanceof qb)return new qb(l.h,l.c,l.l,l.opacity);l instanceof Ua||(l=kb(l));if(l.a===0&&l.b===0)return new qb(NaN,0,l.l,l.opacity);var h=Math.atan2(l.b,l.a)*ou;return new qb(h<0?h+360:h,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function pb(l,h,p,u){return arguments.length===1?hc(l):new qb(l,h,p,u==null?1:u)} function qb(l,h,p,u){this.h=+l;this.c=+h;this.l=+p;this.opacity=+u} function cb(l,h,p,u){if(arguments.length===1){var w=l;if(w instanceof rb)w=new rb(w.h,w.s,w.l,w.opacity);else{w instanceof Ka||(w=gb(w));var y=w.g/255,z=w.b/255,E=(pu*z+w.r/255*-1.7884503806-3.5172982438*y)/(pu+-1.7884503806-3.5172982438);z-=E;var na=(1.97294*(y-E)- -.29227*z)/-.90649;z=(y=Math.sqrt(na*na+z*z)/(1.97294*E*(1-E)))?Math.atan2(na,z)*ou-120:NaN;w=new rb(z<0?z+360:z,y,E,w.opacity)}}else w=new rb(l,h,p,u==null?1:u);return w} function rb(l,h,p,u){this.h=+l;this.s=+h;this.l=+p;this.opacity=+u} function kc(l,h,p,u,w){var y=l*l,z=y*l;return((1-3*l+3*y-z)*h+(4-6*y+3*z)*p+(1+3*l+3*y-3*z)*u+z*w)/6} function oc(l){return function(){return l}} function tc(l,h){return function(p){return l+p*h}} function yc(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 qc(l,h){var p=h-l;return p?tc(l,p>180||p<-180?p-360*Math.round(p/360):p):oc(isNaN(l)?h:l)} function zc(l){return(l=+l)===1?Bb:function(h,p){return p-h?yc(h,p,l):oc(isNaN(h)?p:h)}} function Bb(l,h){var p=h-l;return p?tc(l,p):oc(isNaN(l)?h:l)} function Fc(l){return function(h){var p=h.length,u=Array(p),w=Array(p),y=Array(p),z;for(z=0;zp&&(y=h.slice(p,y),E[z]?E[z]+=y:E[++z]=y),(u=u[0])===(w=w[0])?E[z]?E[z]+=w:E[++z]=w:(E[++z]=null,na.push({rd:z,x:mc(u,w)})),p=co.lastIndex;p180?pa+=360:pa-qa>180&&(qa+=360),va.push({rd:oa.push(w(oa)+"rotate(",null,u)-2,x:mc(qa,pa)})):pa&&oa.push(w(oa)+"rotate("+pa+u)} function E(qa,pa,oa,va){qa!==pa?va.push({rd:oa.push(w(oa)+"skewX(",null,u)-2,x:mc(qa,pa)}):pa&&oa.push(w(oa)+"skewX("+pa+u)} function na(qa,pa,oa,va,Ca,Ga){qa!==oa||pa!==va?(Ca=Ca.push(w(Ca)+"scale(",null,",",null,")"),Ga.push({rd:Ca-4,x:mc(qa,oa)},{rd:Ca-2,x:mc(pa,va)})):oa===1&&va===1||Ca.push(w(Ca)+"scale("+oa+","+va+")")} return function(qa,pa){var oa=[],va=[];qa=l(qa);pa=l(pa);y(qa.Ji,qa.Ki,pa.Ji,pa.Ki,oa,va);z(qa.rotate,pa.rotate,oa,va);E(qa.skewX,pa.skewX,oa,va);na(qa.Zh,qa.ai,pa.Zh,pa.ai,oa,va);qa=pa=null;return function(Ca){for(var Ga=-1,ic=va.length,db;++Ga=0&&l.tf.call(null,h),l=l.Pc;--vh}finally{vh=0;l=Jk;for(var p=Infinity;l;)if(l.tf){p>l.vf&&(p=l.vf);var u=l;l=l.Pc}else h=l.Pc,l.Pc=null,l=u?u.Pc=h:Jk=h;Li=u;uf(p);zg=0}} function Ve(){var l=Ji.now(),h=l-Ik;h>1E3&&(Hk-=h,Ik=l)} function uf(l){vh||(Ki&&(Ki=clearTimeout(Ki)),l-zg>24?(l0)throw Error("too late; already scheduled");return l} function We(l,h){l=je(l,h);if(l.state>2)throw Error("too late; already started");return l} function je(l,h){l=l.Ad;if(!l||!(l=l[h]))throw Error("transition not found");return l} function uk(l,h,p){function u(na){var qa,pa;if(p.state!==1)return y();for(va in z){var oa=z[va];if(oa.name===p.name){if(oa.state===3)return zi(u);oa.state===4?(oa.state=6,oa.timer.stop(),oa.on.call("interrupt",l,l.__data__,oa.index,oa.group),delete z[va]):+va=0&&(h=h.slice(0,p));return!h||h==="start"})} function Zd(l,h,p){var u,w,y=xe(h)?qe:We;return function(){var z=y(this,l),E=z.on;if(E!==u)(w=(u=E).copy()).on(h,p);z.on=w}} function Sf(l){return function(){var h=this.parentNode,p;for(p in this.Ad)if(+p!==l)return;h&&h.removeChild(this)}} function lh(l,h){var p,u,w;return function(){var y=Za(this,l),z=(this.style.removeProperty(l),Za(this,l));return y===z?null:y===p&&z===u?w:w=h(p=y,u=z)}} function de(l){return function(){this.style.removeProperty(l)}} function Fn(l,h,p){var u,w;return function(){var y=Za(this,l);return y===p?null:y===u?w:w=h(u=y,p)}} function bB(l,h,p){var u,w,y;return function(){var z=Za(this,l),E=p(this);E==null&&(E=(this.style.removeProperty(l),Za(this,l)));return z===E?null:z===u&&E===w?y:y=h(u=z,w=E)}} function cB(l,h,p){function u(){var w=this,y=h.apply(w,arguments);return y&&function(z){w.style.setProperty(l,y(z),p)}} u.tg=h;return u} function dB(l){return function(){this.textContent=l}} function eB(l){return function(){var h=l(this);this.textContent=h==null?"":h}} function zf(l,h,p,u){this.lb=l;this.ac=h;this.ye=p;this.Rb=u} function eo(l){return{type:l}} function fo(){this.Oa=this.Qa=this.Aa=this.Da=null;this.Fa=""} function Kk(){return new fo} function Lk(){} function Mk(l,h){var p=new Lk;if(l instanceof Lk)l.each(function(z,E){p.set(E,z)});else if(Array.isArray(l)){var u=-1,w=l.length,y;if(h==null)for(;++u=pa?Ga=!0:(sc=z.charCodeAt(oa++))===10?ic=!0:sc===13&&(ic=!0,z.charCodeAt(oa)===10&&++oa);return z.slice(Sc+1,Oc-1).replace(/""/g,'"')}for(;oa=(pa=(z+na)/2))?z=pa:na=pa,(Ca=p>=(oa=(E+qa)/2))?E=oa:qa=oa,w=y,!(y=y[Ga=Ca<<1|va]))return w[Ga]=u,l;var ic=+l.yb.call(null,y.data);var db=+l.Eb.call(null,y.data);if(h===ic&&p===db)return u.next=y,w?w[Ga]=u:l.rb=u,l;do w=w?w[Ga]=Array(4):l.rb=Array(4),(va=h>=(pa=(z+na)/2))?z=pa:na=pa,(Ca=p>=(oa=(E+qa)/2))?E=oa:qa=oa;while((Ga=Ca<< 1|va)===(va=(db>=oa)<<1|ic>=pa));return w[va]=y,w[Ga]=u,l} function ee(l,h,p,u,w){this.node=l;this.x0=h;this.y0=p;this.x1=u;this.y1=w} function iB(l){return l[0]} function jB(l){return l[1]} function ho(l,h,p,u,w,y){this.yb=l;this.Eb=h;this.Oa=p;this.Qa=u;this.Aa=w;this.Da=y;this.rb=void 0} function xu(l){for(var h={data:l.data},p=h;l=l.next;)p=p.next={data:l.data};return h} function Ok(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 wh(l){return l=Ok(Math.abs(l)),l?l[1]:NaN} function kB(l,h){return function(p,u){for(var w=p.length,y=[],z=0,E=l[0],na=0;w>0&&E>0;){na+E+1>u&&(E=Math.max(1,u-na));y.push(p.substring(w-=E,w+E));if((na+=E+1)>u)break;E=l[z=(z+1)%l.length]}return y.reverse().join(h)}} function lB(l){return function(h){return h.replace(/[0-9]/g,function(p){return l[+p]})}} function Pk(l){return new io(l)} function io(l){if(!(h=mB.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 yu(l,h){h=Ok(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 zu(l){return l} function nB(l){function h(E){function na(La){var Qc=sc,Ha=Nc,Sa;if(Sc==="c")Ha=$c(La)+Ha,La="";else{La=+La;var Fa=La<0;La=$c(Math.abs(La),db);if(Oc){var Ma=La.length;var Yc=1,xd=-1,Cd;a:for(;Yc0&&(xd=0)}La=xd>0?La.slice(0,xd)+La.slice(Cd+1):La}Fa&&+La===0&&(Fa=!1);Qc=(Fa?oa==="("?oa:"-":oa==="-"||oa==="("?"":oa)+Qc;Ha=(Sc==="s"?Au[8+Bu/3]:"")+Ha+(Fa&&oa==="("?")":"");if(Pc)for(Fa=-1,Ma=La.length;++FaSa||Sa>57){Ha=(Sa===46?w+La.slice(Fa+1):La.slice(Fa))+Ha;La=La.slice(0,Fa);break}}ic&&!Ca&&(La=p(La,Infinity));Sa=Qc.length+La.length+Ha.length;Fa=Sa>1)+Qc+La+Ha+Fa.slice(Sa);break;default:La=Fa+Qc+La+Ha}return y(La)} E=Pk(E);var qa=E.fill,pa=E.align,oa=E.sign,va=E.symbol,Ca=E.zero,Ga=E.width,ic=E.comma,db=E.precision,Oc=E.trim,Sc=E.type;Sc==="n"?(ic=!0,Sc="g"):Cu[Sc]||(db==null&&(db=12),Oc=!0,Sc="g");if(Ca||qa==="0"&&pa==="=")Ca=!0,qa="0",pa="=";var sc=va==="$"?u[0]:va==="#"&&/[boxX]/.test(Sc)?"0"+Sc.toLowerCase():"",Nc=va==="$"?u[1]:/[%p]/.test(Sc)?z:"",$c=Cu[Sc],Pc=/[defgprs%]/.test(Sc);db=db==null?6:/[gprs]/.test(Sc)?Math.max(1,Math.min(21,db)):Math.max(0,Math.min(20,db));na.toString=function(){return E+""};return na} var p=l.grouping&&l.thousands?kB(l.grouping,l.thousands):zu,u=l.currency,w=l.decimal,y=l.numerals?lB(l.numerals):zu,z=l.percent||"%";return{format:h,formatPrefix:function(E,na){var qa=h((E=Pk(E),E.type="f",E));E=Math.max(-8,Math.min(8,Math.floor(wh(na)/3)))*3;var pa=Math.pow(10,-E),oa=Au[8+E/3];return function(va){return qa(pa*va)+oa}}}} function Ge(){this.reset()} function Du(l,h,p){var u=l.s=h+p,w=u-h;l.t=h-(u-w)+(p-w)} function Qk(l){return l>1?ze:l<-1?-ze:Math.asin(l)} function oB(){} function Eu(l){var h=l[0];l=l[1];var p=Ae(l);return[p*Ae(h),p*$d(h),$d(l)]} function Fu(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 Gu(l){var h=Rk(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function pB(){var l=[],h;return{point:function(p,u){h.push([p,u])},lineStart:function(){l.push(h=[])},lineEnd:oB,mr:function(){l.length>1&&l.push(l.pop().concat(l.shift()))},result:function(){var p=l;l=[];h=null;return p}}} function Sk(l,h,p,u){this.x=l;this.z=h;this.Ug=p;this.e=u;this.jh=!1;this.n=this.p=null} function qB(l,h,p,u,w){var y=[],z=[];l.forEach(function(oa){if(!((va=oa.length-1)<=0)){var va,Ca=oa[0],Ga=oa[va],ic=Ca;if(Wf(ic[0]-Ga[0])<1E-6&&Wf(ic[1]-Ga[1])<1E-6){w.lineStart();for(E=0;E=0;--E)w.point((na=h[E])[0],na[1]);else u(qa.x,qa.p.x,-1,w);qa=qa.p}qa=qa.Ug;h=qa.z;pa=!pa}while(!qa.jh);w.lineEnd()}}} function Hu(l){if(h=l.length){for(var h,p=0,u=l[0],w;++p1} function sB(l,h){return((l=l.x)[0]<0?l[1]-ze-1E-6:ze-l[1])-((h=h.x)[0]<0?h[1]-ze-1E-6:ze-h[1])} function jo(){} function Iu(l){return function(h,p){var u=Ae(h),w=Ae(p);u=l(u*w);return[u*w*$d(h),u*$d(p)]}} function Ni(l){return function(h,p){var u=Rk(h*h+p*p),w=l(u),y=$d(w);w=Ae(w);return[Ju(h*y,u*w),Qk(u&&p*y/u)]}} function tB(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 Ku(l,h){var p=new Oi(l);l=+l.value&&(p.value=l.value);var u,w=[p],y,z,E,na;for(h==null&&(h=uB);u=w.pop();)if(l&&(u.value=+u.data.value),(z=h(u.data))&&(na=z.length))for(u.children=Array(na),E=na-1;E>=0;--E)w.push(y=u.children[E]=new Oi(z[E])),y.parent=u,y.depth=u.depth+1;return p.eachBefore(vB)} function uB(l){return l.children} function wB(l){l.data=l.data.data} function vB(l){var h=0;do l.height=h;while((l=l.parent)&&l.height<++h)} function Oi(l){this.data=l;this.depth=this.height=0;this.parent=null} function ko(l){function h(y){var z=y+"",E=p.get(z);if(!E){if(w!==Lu)return w;p.set(z,E=u.push(y))}return l[(E-1)%l.length]} var p=Mk(),u=[],w=Lu;l=l==null?[]:Tk.call(l);h.domain=function(y){if(!arguments.length)return u.slice();u=[];p=Mk();for(var z=-1,E=y.length,na,qa;++z=p?1:u(w)}}} function zB(l){return function(h,p){var u=l(h=+h,p=+p);return function(w){return w<=0?h:w>=1?p:u(w)}}} function AB(l,h,p,u){var w=l[0];l=l[1];var y=h[0];h=h[1];l2?BB:AB;qa=pa=null;return u} function u(oa){return(qa||(qa=na(w,y,E?yB(l):l,z)))(+oa)} var w=Ou,y=Ou,z=pc,E=!1,na,qa,pa;u.invert=function(oa){return(pa||(pa=na(y,w,mo,E?zB(h):h)))(+oa)};u.domain=function(oa){return arguments.length?(w=Pu.call(oa,xB),p()):w.slice()};u.range=function(oa){return arguments.length?(y=Tk.call(oa),p()):y.slice()};u.rangeRound=function(oa){return y=Tk.call(oa),z=Dc,p()};u.clamp=function(oa){return arguments.length?(E=!!oa,p()):E};u.interpolate=function(oa){return arguments.length?(z=oa,p()):z};return p()} function DB(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 w=h(),y=w[0];w=w[w.length-1];p=r(y,w,p==null?10:p);u=Pk(u==null?",f":u);switch(u.type){case "s":y=Math.max(Math.abs(y),Math.abs(w));if(w=u.precision==null){var z=isNaN;p=Math.max(0,Math.max(-8,Math.min(8,Math.floor(wh(y)/3)))*3-wh(Math.abs(p)));w=!z(z=p)}w&&(u.precision=z);u=MA(u,y);break a;case "":case "e":case "g":case "p":case "r":var E;if(E=u.precision==null)z=isNaN,y=Math.max(Math.abs(y),Math.abs(w)),p=Math.abs(p),y=Math.abs(y)-p,p=Math.max(0,wh(y)-wh(p))+1,E=!z(z=p);E&&(u.precision=z-(u.type==="e"));break;case "f":case "%":u.precision!=null||isNaN(z=Math.max(0,-wh(Math.abs(p))))||(u.precision=z-(u.type==="%")*2)}u=sh(u)}return u};l.nice=function(p){p==null&&(p=10);var u=h(),w=0,y=u.length-1,z=u[w],E=u[y];if(E0?(z=Math.floor(z/na)*na,E=Math.ceil(E/na)*na,na=n(z,E,p)):na<0&&(z=Math.ceil(z*na)/na,E=Math.floor(E*na)/na,na=n(z,E,p));na>0?(u[w]=Math.floor(z/na)*na,u[y]=Math.ceil(E/na)*na,h(u)):na<0&&(u[w]=Math.ceil(z*na)/na,u[y]=Math.floor(E*na)/na,h(u));return l};return l} function Qu(){var l=oo(mo,mc);l.copy=function(){return no(l,Qu())};return DB(l)} function Ru(l,h){l=l.slice();var p=0,u=l.length-1,w=l[p],y=l[u];if(y0)for(;paE)break;z.push(Ga)}}}else for(;pa=1;--Ca){if(Ga=va*Ca,!(GaE)break;z.push(Ga)}}else z=k(pa,oa,Math.min(oa-pa,va)).map(y);return qa?z.reverse():z};h.tickFormat=function(z,E){E==null&&(E=u===10?".0e":",");typeof E!=="function"&&(E=sh(E));if(z===Infinity)return E;z==null&&(z=10);var na=Math.max(1,u*z/h.ticks().length);return function(qa){var pa=qa/y(Math.round(w(qa)));pa*u0))return na;do na.push(qa=new Date(+y)),h(y,E),l(y);while(qa=z)for(;l(z),!y(z);)z.setTime(z-1)},function(z,E){if(z>=z)if(E<0)for(;++E<=0;)for(;h(z,-1),!y(z););else for(;--E>=0;)for(;h(z,1),!y(z););})};p&&(w.count=function(y,z){po.setTime(+y);qo.setTime(+z);l(po);l(qo);return Math.floor(p(po,qo))},w.every=function(y){y=Math.floor(y);return isFinite(y)&&y>0?y>1?w.filter(u?function(z){return u(z)%y===0}:function(z){return w.count(0,z)%y===0}):w:null});return w} function Ag(l){return Qd(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 Bg(l){return Qd(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 HB(l){if(0<=l.y&&l.y<100){var h=new Date(-1,l.m,l.d,l.hd,l.M,l.S,l.L);h.setFullYear(l.y);return h}return new Date(l.y,l.m,l.d,l.hd,l.M,l.S,l.L)} function Uk(l){if(0<=l.y&&l.y<100){var h=new Date(Date.UTC(-1,l.m,l.d,l.hd,l.M,l.S,l.L));h.setUTCFullYear(l.y);return h}return new Date(Date.UTC(l.y,l.m,l.d,l.hd,l.M,l.S,l.L))} function Pi(l){return{y:l,m:0,d:1,hd:0,M:0,S:0,L:0}} function IB(l){function h(Ha,Sa){return function(Fa){var Ma=[],Yc=-1,xd=0,Cd=Ha.length,od,te;for(Fa instanceof Date||(Fa=new Date(+Fa));++Yc53)return null;"w"in Ma||(Ma.w=1);if("Z"in Ma){Fa=Uk(Pi(Ma.y));var Yc=Fa.getUTCDay();Fa=Yc>4||Yc===0?ro.ceil(Fa):ro(Fa);Fa=Xu.offset(Fa,(Ma.lg-1)*7);Ma.y=Fa.getUTCFullYear();Ma.m=Fa.getUTCMonth();Ma.d=Fa.getUTCDate()+(Ma.w+6)%7}else Fa=Sa(Pi(Ma.y)),Yc=Fa.getDay(),Fa=Yc>4||Yc===0?so.ceil(Fa):so(Fa),Fa=to.offset(Fa,(Ma.lg-1)*7),Ma.y=Fa.getFullYear(),Ma.m=Fa.getMonth(),Ma.d=Fa.getDate()+(Ma.w+6)%7}else if("W"in Ma||"U"in Ma)"w"in Ma||(Ma.w="u"in Ma?Ma.fp%7:"W"in Ma?1:0),Yc="Z"in Ma?Uk(Pi(Ma.y)).getUTCDay():Sa(Pi(Ma.y)).getDay(),Ma.m=0,Ma.d="W"in Ma?(Ma.w+6)%7+Ma.W*7-(Yc+5)%7:Ma.w+Ma.U*7-(Yc+6)%7;return"Z"in Ma?(Ma.hd+=Ma.Z/100|0,Ma.M+=Ma.Z%100,Uk(Ma)):Sa(Ma)}} function u(Ha,Sa,Fa,Ma){for(var Yc=0,xd=Sa.length,Cd=Fa.length,od;Yc=Cd)return-1;od=Sa.charCodeAt(Yc++);if(od===37){if(od=Sa.charAt(Yc++),od=Qc[od in Wu?Sa.charAt(Yc++):od],!od||(Ma=od(Ha,Fa,Ma))<0)return-1}else if(od!=Fa.charCodeAt(Ma++))return-1}return Ma} var w=l.dateTime,y=l.date,z=l.time,E=l.periods,na=l.days,qa=l.shortDays,pa=l.months,oa=l.shortMonths,va=Qi(E),Ca=Ri(E),Ga=Qi(na),ic=Ri(na),db=Qi(qa),Oc=Ri(qa),Sc=Qi(pa),sc=Ri(pa),Nc=Qi(oa),$c=Ri(oa),Pc={a:function(Ha){return qa[Ha.getDay()]},A:function(Ha){return na[Ha.getDay()]},b:function(Ha){return oa[Ha.getMonth()]},B:function(Ha){return pa[Ha.getMonth()]},c:null,d:Yu,e:Yu,f:JB,H:KB,I:LB,j:MB,L:Zu,m:NB,M:OB,p:function(Ha){return E[+(Ha.getHours()>=12)]},Q:$u,s:av,S:PB,u:QB,U:RB,V:SB,w:TB,W:UB,x:null,X:null,y:VB,Y:WB,Z:XB,"%":bv},La={a:function(Ha){return qa[Ha.getUTCDay()]},A:function(Ha){return na[Ha.getUTCDay()]},b:function(Ha){return oa[Ha.getUTCMonth()]},B:function(Ha){return pa[Ha.getUTCMonth()]},c:null,d:cv,e:cv,f:YB,H:ZB,I:$B,j:aC,L:dv,m:bC,M:cC,p:function(Ha){return E[+(Ha.getUTCHours()>=12)]},Q:$u,s:av,S:dC,u:eC,U:fC,V:gC,w:hC,W:iC,x:null,X:null,y:jC,Y:kC,Z:lC,"%":bv},Qc={a:function(Ha,Sa,Fa){return(Sa=db.exec(Sa.slice(Fa)))?(Ha.w=Oc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},A:function(Ha,Sa,Fa){return(Sa=Ga.exec(Sa.slice(Fa)))?(Ha.w=ic[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},b:function(Ha,Sa,Fa){return(Sa=Nc.exec(Sa.slice(Fa)))?(Ha.m=$c[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},B:function(Ha,Sa,Fa){return(Sa=Sc.exec(Sa.slice(Fa)))?(Ha.m=sc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},c:function(Ha,Sa,Fa){return u(Ha,w,Sa,Fa)},d:ev,e:ev,f:mC,H:fv,I:fv,j:nC,L:oC,m:pC,M:qC,p:function(Ha,Sa,Fa){return(Sa=va.exec(Sa.slice(Fa)))?(Ha.p=Ca[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},Q:rC,s:sC,S:tC,u:uC,U:vC,V:wC,w:xC,W:yC,x:function(Ha,Sa,Fa){return u(Ha,y,Sa,Fa)},X:function(Ha,Sa,Fa){return u(Ha,z,Sa,Fa)},y:zC,Y:AC,Z:BC,"%":CC};Pc.x=h(y,Pc);Pc.X=h(z,Pc);Pc.c=h(w,Pc);La.x=h(y,La);La.X=h(z,La);La.c=h(w,La);return{format:function(Ha){var Sa=h(Ha+="",Pc);Sa.toString=function(){return Ha};return Sa},parse:function(Ha){var Sa=p(Ha+="",HB);Sa.toString=function(){return Ha};return Sa},utcFormat:function(Ha){var Sa=h(Ha+="",La);Sa.toString=function(){return Ha};return Sa},utcParse:function(Ha){var Sa=p(Ha,Uk);Sa.toString=function(){return Ha};return Sa}}} function rd(l,h,p){var u=l<0?"-":"";l=(u?-l:l)+"";var w=l.length;return u+(w68?1900:2E3),p+h[0].length):-1} function BC(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 pC(l,h,p){return(h=Vd.exec(h.slice(p,p+2)))?(l.m=h[0]-1,p+h[0].length):-1} function ev(l,h,p){return(h=Vd.exec(h.slice(p,p+2)))?(l.d=+h[0],p+h[0].length):-1} function nC(l,h,p){return(h=Vd.exec(h.slice(p,p+3)))?(l.m=0,l.d=+h[0],p+h[0].length):-1} function fv(l,h,p){return(h=Vd.exec(h.slice(p,p+2)))?(l.hd=+h[0],p+h[0].length):-1} function qC(l,h,p){return(h=Vd.exec(h.slice(p,p+2)))?(l.M=+h[0],p+h[0].length):-1} function tC(l,h,p){return(h=Vd.exec(h.slice(p,p+2)))?(l.S=+h[0],p+h[0].length):-1} function oC(l,h,p){return(h=Vd.exec(h.slice(p,p+3)))?(l.L=+h[0],p+h[0].length):-1} function mC(l,h,p){return(h=Vd.exec(h.slice(p,p+6)))?(l.L=Math.floor(h[0]/1E3),p+h[0].length):-1} function CC(l,h,p){return(l=FC.exec(h.slice(p,p+1)))?p+l[0].length:-1} function rC(l,h,p){return(h=Vd.exec(h.slice(p)))?(l.Q=+h[0],p+h[0].length):-1} function sC(l,h,p){return(h=Vd.exec(h.slice(p)))?(l.Q=+h[0]*1E3,p+h[0].length):-1} function Yu(l,h){return rd(l.getDate(),h,2)} function KB(l,h){return rd(l.getHours(),h,2)} function LB(l,h){return rd(l.getHours()%12||12,h,2)} function MB(l,h){return rd(1+to.count(Cg(l),l),h,3)} function Zu(l,h){return rd(l.getMilliseconds(),h,3)} function JB(l,h){return Zu(l,h)+"000"} function NB(l,h){return rd(l.getMonth()+1,h,2)} function OB(l,h){return rd(l.getMinutes(),h,2)} function PB(l,h){return rd(l.getSeconds(),h,2)} function QB(l){l=l.getDay();return l===0?7:l} function RB(l,h){return rd(gv.count(Cg(l),l),h,2)} function SB(l,h){var p=l.getDay();l=p>=4||p===0?uo(l):uo.ceil(l);return rd(uo.count(Cg(l),l)+(Cg(l).getDay()===4),h,2)} function TB(l){return l.getDay()} function UB(l,h){return rd(so.count(Cg(l),l),h,2)} function VB(l,h){return rd(l.getFullYear()%100,h,2)} function WB(l,h){return rd(l.getFullYear()%1E4,h,4)} function XB(l){l=l.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+rd(l/60|0,"0",2)+rd(l%60,"0",2)} function cv(l,h){return rd(l.getUTCDate(),h,2)} function ZB(l,h){return rd(l.getUTCHours(),h,2)} function $B(l,h){return rd(l.getUTCHours()%12||12,h,2)} function aC(l,h){return rd(1+Xu.count(xh(l),l),h,3)} function dv(l,h){return rd(l.getUTCMilliseconds(),h,3)} function YB(l,h){return dv(l,h)+"000"} function bC(l,h){return rd(l.getUTCMonth()+1,h,2)} function cC(l,h){return rd(l.getUTCMinutes(),h,2)} function dC(l,h){return rd(l.getUTCSeconds(),h,2)} function eC(l){l=l.getUTCDay();return l===0?7:l} function fC(l,h){return rd(GC.count(xh(l),l),h,2)} function gC(l,h){var p=l.getUTCDay();l=p>=4||p===0?vo(l):vo.ceil(l);return rd(vo.count(xh(l),l)+(xh(l).getUTCDay()===4),h,2)} function hC(l){return l.getUTCDay()} function iC(l,h){return rd(ro.count(xh(l),l),h,2)} function jC(l,h){return rd(l.getUTCFullYear()%100,h,2)} function kC(l,h){return rd(l.getUTCFullYear()%1E4,h,4)} function lC(){return"+0000"} function bv(){return"%"} function $u(l){return+l} function av(l){return Math.floor(+l/1E3)} function HC(l){return new Date(l)} function IC(l){return l instanceof Date?+l:+new Date(+l)} function hv(l,h,p,u,w,y,z,E,na){function qa(La){return(z(La)=1?Wk:l<=-1?-Wk:Math.asin(l)} function KC(l){return l.innerRadius} function LC(l){return l.outerRadius} function MC(l){return l.startAngle} function NC(l){return l.endAngle} function OC(l){return l&&l.padAngle} function Xk(l,h,p,u,w,y,z){var E=l-p,na=h-u;z=(z?y:-y)/yh(E*E+na*na);na*=z;E*=-z;var qa=l+na,pa=h+E,oa=p+na,va=u+E;p=(qa+oa)/2;u=(pa+va)/2;h=oa-qa;l=va-pa;z=h*h+l*l;y=w-y;va=qa*va-oa*pa;var Ca=(l<0?-1:1)*yh(PC(0,y*y*z-va*va));qa=(va*l-h*Ca)/z;pa=(-va*h-l*Ca)/z;oa=(va*l+h*Ca)/z;h=(-va*h+l*Ca)/z;l=qa-p;z=pa-u;p=oa-p;u=h-u;l*l+z*z>p*p+u*u&&(qa=oa,pa=h);return{cx:qa,cy:pa,Zc:-na,ad:-E,Rd:qa*(w/y-1),Sd:pa*(w/y-1)}} function jv(l){this.Ea=l} function Yk(l){return new jv(l)} function kv(l){return l[0]} function lv(l){return l[1]} function mv(){function l(E){var na,qa=E.length,pa,oa=!1,va;w==null&&(z=y(va=Kk()));for(na=0;na<=qa;++na)!(nal?1:h>=l?0:NaN} function RC(l){return l} function nv(l){this.xe=l} function ov(l,h,p){l.Ea.bezierCurveTo((2*l.Oa+l.Aa)/3,(2*l.Qa+l.Da)/3,(l.Oa+2*l.Aa)/3,(l.Qa+2*l.Da)/3,(l.Oa+4*l.Aa+h)/6,(l.Qa+4*l.Da+p)/6)} function pv(l){this.Ea=l} function qv(l,h,p){l.Ea.bezierCurveTo(l.Aa+l.og*(l.ze-l.Oa),l.Da+l.og*(l.Ae-l.Qa),l.ze+l.og*(l.Aa-h),l.Ae+l.og*(l.Da-p),l.ze,l.Ae)} function rv(l,h){this.Ea=l;this.og=(1-h)/6} function sv(l,h,p){var u=l.Aa-l.Oa;h-=l.Aa;var w=(l.Da-l.Qa)/(u||h<0&&-0);l=(p-l.Da)/(h||u<0&&-0);return((w<0?-1:1)+(l<0?-1:1))*Math.min(Math.abs(w),Math.abs(l),.5*Math.abs((w*h+l*u)/(u+h)))||0} function tv(l,h){var p=l.Aa-l.Oa;return p?(3*(l.Da-l.Qa)/p-h)/2:h} function wo(l,h,p){var u=l.Oa,w=l.Aa,y=l.Da,z=(w-u)/3;l.Ea.bezierCurveTo(u+z,l.Qa+z*h,w-z,y-z*p,w,y)} function Zk(l){this.Ea=l} function uv(l){this.Ea=new vv(l)} function vv(l){this.Ea=l} function wv(l){this.Ea=l} function xv(l){var h,p=l.length-1,u=Array(p),w=Array(p),y=Array(p);u[0]=0;w[0]=2;y[0]=l[0]+2*l[1];for(h=1;h=0;--h)u[h]=(y[h]-u[h+1])/w[h];w[p-1]=(l[p]+u[p-1])/2;for(h=0;h0)for(var p=Array(w),u=0,w,y;u=0&&(this.Ud.splice(l,1),this.Vi.setAttribute("class",this.Ud.join(" ")))},contains:function(l){return this.Ud.indexOf(l)>=0}};var iu={};ui=null;typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(iu={mouseenter:"mouseover",mouseleave:"mouseout"}));var ju=[null];Qa.prototype=Ya.prototype={constructor:Qa,select:function(l){typeof l!=="function"&&(l=xa(l));for(var h=this.lb,p=h.length,u=Array(p),w=0;w=oa&&(oa=pa+1);!(Oc=db[oa])&&++oa=0;)if(z=u[w])y&&y!==z.nextSibling&&y.parentNode.insertBefore(z,y),y=z;return this},sort:function(l){function h(oa,va){return oa&&va?l(oa.__data__,va.__data__):!oa-!va} l||(l=Oa);for(var p=this.lb,u=p.length,w=Array(u),y=0;y1?this.each((h==null?Gb:typeof h==="function"?Ib:Hb)(l,h,p==null?"":p)):Za(this.node(),l)},property:function(l,h){return arguments.length>1?this.each((h==null?Jb:typeof h==="function"?Lb:Kb)(l,h)):this.node()[l]},classed:function(l,h){var p=(l+"").trim().split(/^|\s+/);if(arguments.length<2){for(var u=eb(this.node()),w=-1,y=p.length;++w=240?l-240:l+120,h,p),jb(l,h,p),jb(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 lu=Math.PI/180,ou=180/Math.PI,nu=4/29,uh=6/29,mu=3*uh*uh,ZA=uh*uh*uh;$a(Ua,function(l,h,p,u){return arguments.length===1?kb(l):new Ua(l,h,p,u==null?1:u)},ab(Wa,{brighter:function(l){return new Ua(this.l+18*(l==null?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Ua(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*mb(h);l=1*mb(l);p=.82521*mb(p);return new Ka(nb(3.1338561*h-1.6168667*l-.4906146*p),nb(-.9787684*h+1.9161415*l+.033454*p),nb(.0719453*h-.2289914*l+1.4052427*p),this.opacity)}}));$a(qb,pb,ab(Wa,{brighter:function(l){return new qb(this.h,this.c,this.l+18*(l==null?1:l),this.opacity)},darker:function(l){return new qb(this.h,this.c,this.l-18*(l==null?1:l),this.opacity)},rgb:function(){return kb(this).rgb()}}));var pu=1.78277*-.29227-.1347134789;$a(rb,cb,ab(Wa,{brighter:function(l){l=l==null?zh:Math.pow(zh,l);return new rb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=l==null?.7:Math.pow(.7,l);return new rb(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=isNaN(this.h)?0:(this.h+120)*lu,h=+this.l,p=isNaN(this.s)?0:this.s*h*(1-h),u=Math.cos(l);l=Math.sin(l);return new Ka(255*(h+p*(-.14861*u+1.78277*l)),255*(h+p*(-.29227*u+-.90649*l)),255*(h+1.97294*u*p),this.opacity)}}));var Gk=function p(h){function u(y,z){var E=w((y=bb(y)).r,(z=bb(z)).r),na=w(y.g,z.g),qa=w(y.b,z.b),pa=Bb(y.opacity,z.opacity);return function(oa){y.r=E(oa);y.g=na(oa);y.b=qa(oa);y.opacity=pa(oa);return y+""}} var w=zc(h);u.gamma=p;return u}(1),JC=Fc(function(h){var p=h.length-1;return function(u){var w=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),y=h[w],z=h[w+1];return kc((u-w/p)*p,w>0?h[w-1]:2*y-z,y,z,w2&&w.state<5;w.state=6;w.timer.stop();E&&w.on.call("interrupt",this,this.__data__,w.index,w.group);delete u[z]}y&&delete this.Ad}})};Ya.prototype.transition=function(h){var p;if(h instanceof zf){var u=h.Rb;h=h.ye}else u=++Av,(p=Ao).time=ug(),h=h==null?null:h+"";for(var w=this.lb,y=w.length,z=0;z1E-6)if(Math.abs(oa*na-qa*pa)>1E-6&&y){u-=z;w-=E;var Ca=na*na+qa*qa;E=Math.sqrt(Ca);z=Math.sqrt(va);va=y*Math.tan((Bo-Math.acos((Ca+va-(u*u+w*w))/(2*E*z)))/2);z=va/z;va/=E;Math.abs(z-1)>1E-6&&(this.Fa+="L"+(h+z*pa)+","+(p+z*oa));this.Fa+="A"+y+","+y+",0,0,"+ +(oa*u>pa*w)+ ","+(this.Aa=h+va*na)+","+(this.Da=p+va*qa)}else this.Fa+="L"+(this.Aa=h)+","+(this.Da=p)},arc:function(h,p,u,w,y,z){h=+h;p=+p;u=+u;var E=u*Math.cos(w),na=u*Math.sin(w),qa=h+E,pa=p+na,oa=1^z;w=z?w-y:y-w;if(u<0)throw Error("negative radius: "+u);if(this.Aa===null)this.Fa+="M"+qa+","+pa;else if(Math.abs(this.Aa-qa)>1E-6||Math.abs(this.Da-pa)>1E-6)this.Fa+="L"+qa+","+pa;u&&(w<0&&(w=w%Co+Co),w>WC?this.Fa+="A"+u+","+u+",0,1,"+oa+","+(h-E)+","+(p-na)+"A"+u+","+u+",0,1,"+oa+","+(this.Aa=qa)+","+(this.Da=pa):w>1E-6&&(this.Fa+="A"+u+","+u+",0,"+ +(w>=Bo)+","+oa+","+(this.Aa=h+u*Math.cos(y))+","+ (this.Da=p+u*Math.sin(y))))},rect:function(h,p,u,w){this.Fa+="M"+(this.Oa=this.Aa=+h)+","+(this.Qa=this.Da=+p)+"h"+ +u+"v"+ +w+"h"+-u+"Z"},toString:function(){return this.Fa}};Lk.prototype=Mk.prototype={constructor:Lk,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 Dg=Mk.prototype;Nk.prototype=function(h,p){var u=new Nk;if(h instanceof Nk)h.each(function(z){u.add(z)});else if(h){var w=-1,y=h.length;if(p==null)for(;++woa&&(oa=y),zva&&(va=z));oah||h>y||w>p||p>z){var E=y-u,na=this.rb,qa;switch(qa=(p<(w+z)/2)<<1|h<(u+y)/2){case 0:do{var pa=Array(4);pa[qa]=na;na=pa}while(E*=2,y=u+E,z=w+E,h>y||p>z);break;case 1:do pa=Array(4),pa[qa]=na,na=pa;while(E*=2,u=y-E,z=w+E,u>h||p>z);break;case 2:do pa=Array(4),pa[qa]=na,na=pa;while(E*=2,y=u+E,w=z-E,h>y||w>p);break;case 3:do pa=Array(4),pa[qa]=na,na=pa;while(E*=2,u=y-E,w=z-E,u>h||w>p)}this.rb&&this.rb.length&&(this.rb=na)}else return this;this.Oa=u;this.Qa=w;this.Aa=y;this.Da=z;return this};fe.data=function(){var h=[];this.visit(function(p){if(!p.length){do h.push(p.data);while(p=p.next)}});return h};fe.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this.Oa)?void 0:[[this.Oa,this.Qa],[this.Aa,this.Da]]};fe.find=function(h,p,u){var w=this.Oa,y=this.Qa,z,E,na,qa,pa=this.Aa,oa=this.Da,va=[],Ca=this.rb,Ga;Ca&&va.push(new ee(Ca,w,y,pa,oa));u==null?u=Infinity:(w=h-u,y=p-u,pa=h+u,oa=p+u,u*=u);for(;Ga=va.pop();)if(!(!(Ca=Ga.node)||(z=Ga.x0)>pa||(E=Ga.y0)>oa||(na=Ga.x1)=ic)<<1|h>=Ga)Ga=va[va.length-1],va[va.length-1]=va[va.length- 1-Ca],va[va.length-1-Ca]=Ga}else if(Ga=h-+this.yb.call(null,Ca.data),ic=p-+this.Eb.call(null,Ca.data),Ga=Ga*Ga+ic*ic,Ga=(oa=(y+E)/2))?y=oa:E=oa;(Ga=pa>=(va=(z+na)/2))?z=va:na=va;if(!(p=u,u=u[ic=Ga<<1|Ca]))return this;if(!u.length)break;if(p[ic+1&3]||p[ic+2&3]||p[ic+3&3]){var db=p;var Oc=ic}}for(;u.data!==h;)if(!(w=u,u=u.next))return this;(h=u.next)&&delete u.next;if(w)return h?w.next=h:delete w.next,this;if(!p)return this.rb=h,this;h?p[ic]=h:delete p[ic];(u=p[0]||p[1]||p[2]||p[3])&&u===(p[3]||p[2]||p[1]||p[0])&&!u.length&&(db?db[Oc]=u:this.rb=u);return this};fe.removeAll=function(h){for(var p=0,u=h.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Pk.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 Bu,Cu={"%":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 yu(h*100,p)},r:yu,s:function(h,p){var u=Ok(h,p);if(!u)return h+"";var w=u[0];u=u[1];u=u-(Bu=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var y=w.length;return u===y?w:u>y?w+Array(u-y+1).join("0"):u>0?w.slice(0,u)+"."+w.slice(u):"0."+Array(1-u).join("0")+Ok(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)}},Au="y z a f p n \u00b5 m k M G T P E Z Y".split(" "),bl;(function(h){bl=nB(h);sh=bl.format;MA=bl.formatPrefix;return bl})({decimal:".",thousands:",",grouping:[3],currency:["$",""]});Ge.prototype={constructor:Ge,reset:function(){this.s=this.t=0},add:function(h){Du(cl,h,this.t);Du(this,cl.s,this.s);this.s?this.t+=cl.t:this.s=cl.t},valueOf:function(){return this.s}};var cl=new Ge,Kd=Math.PI,ze=Kd/2,Bv=Kd/4,ZC=Kd*2,Do=Kd/180,Wf=Math.abs,Eo=Math.atan,Ju=Math.atan2,Ae=Math.cos,$d=Math.sin,Rk=Math.sqrt;new Ge;new Ge;new Ge;var Fo=new Ge;(function(h,p,u,w){return function(y){function z($c,Pc){h($c,Pc)&&y.point($c,Pc)} function E($c,Pc){Ca.point($c,Pc)} function na(){Nc.point=E;Ca.lineStart()} function qa(){Nc.point=z;Ca.lineEnd()} function pa($c,Pc){sc.push([$c,Pc]);ic.point($c,Pc)} function oa(){ic.lineStart();sc=[]} function va(){pa(sc[0][0],sc[0][1]);ic.lineEnd();var $c=ic.Il(),Pc=Ga.result(),La=Pc.length,Qc;sc.pop();Oc.push(sc);sc=null;if(La)if($c&1){if(La=Pc[0],(Pc=La.length-1)>0){db||(y.polygonStart(),db=!0);y.lineStart();for($c=0;$c1&&$c&2&&Pc.push(Pc.pop().concat(Pc.shift())),Sc.push(Pc.filter(rB))} var Ca=p(y),Ga=pB(),ic=p(Ga),db=!1,Oc,Sc,sc,Nc={point:z,lineStart:na,lineEnd:qa,polygonStart:function(){Nc.point=pa;Nc.lineStart=oa;Nc.lineEnd=va;Sc=[];Oc=[]},polygonEnd:function(){Nc.point=z;Nc.lineStart=na;Nc.lineEnd=qa;var $c=Sc,Pc=$c.length;var La=-1;for(var Qc=0,Ha,Sa;++La=0;)for(Sa=$c[Pc],La=Sa.length;--La>=0;)Ha[--Qc]=Sa[La];Sc=Ha;$c=Oc;Pc=w[0];Qc=w[1];var Fa=$d(Qc);La=[$d(Pc),-Ae(Pc),0];Sa=Ha=0;Fo.reset();Fa===1?Qc=ze+1E-6:Fa===-1&&(Qc=-ze-1E-6);Fa=0;for(var Ma=$c.length;Fa=0?1:-1,Io=Ho*Bh,el=Io>Kd;Xf*=Dv;Fo.add(Ju(Xf*Ho*$d(Io),Cv*Vi+Xf*Ae(Io)));Ha+=el?Bh+Ho*ZC:Bh;el^od>=Pc^Go>=Pc&&(Cd=Fu(Eu(Cd),Eu(dl)),Gu(Cd),od=Fu(La,Cd),Gu(od),od=(el^Bh>=0?-1:1)*Qk(od[2]),Qc>od||Qc===od&&(Cd[0]||Cd[1]))&&(Sa+=el^Bh>=0?1:-1)}}$c=(Ha<-1E-6||Ha<1E-6&&Fo<-1E-6)^Sa&1;Sc.length?(db||(y.polygonStart(),db=!0),qB(Sc,sB,$c,u,y)):$c&&(db||(y.polygonStart(),db=!0),y.lineStart(),u(null,null,1,y),y.lineEnd());db&&(y.polygonEnd(),db=!1);Sc=Oc=null},sphere:function(){y.polygonStart();y.lineStart();u(null,null,1,y);y.lineEnd();y.polygonEnd()}};return Nc}})(function(){return!0},function(h){var p=NaN,u=NaN,w=NaN,y;return{lineStart:function(){h.lineStart();y=1},point:function(z,E){var na=z>0?Kd:-Kd,qa=Wf(z-p);if(Wf(qa-Kd)<1E-6)h.point(p,u=(u+E)/2>0?ze:-ze),h.point(w,u),h.lineEnd(),h.lineStart(),h.point(na,u),h.point(z,u),y=0;else if(w!==na&&qa>=Kd){Wf(p-w)<1E-6&&(p-=w*1E-6);Wf(z-na)<1E-6&&(z-=na*1E-6);qa=p;var pa=u,oa=z,va,Ca,Ga=$d(qa-oa);u=Wf(Ga)>1E-6?Eo(($d(pa)*(Ca=Ae(E))*$d(oa)-$d(E)*(va=Ae(pa))*$d(qa))/(va*Ca*Ga)):(pa+E)/2;h.point(w,u);h.lineEnd();h.lineStart();h.point(na,u);y=0}h.point(p=z,u=E);w=na},lineEnd:function(){h.lineEnd();p=u=NaN},Il:function(){return 2-y}}},function(h,p,u,w){h==null?(u*=ze,w.point(-Kd,u),w.point(0,u),w.point(Kd,u),w.point(Kd,0),w.point(Kd,-u),w.point(0,-u),w.point(-Kd,-u),w.point(-Kd,0),w.point(-Kd,u)):Wf(h[0]-p[0])>1E-6?(h=h[0]1?0:h<-1?Kd:Math.acos(h))&&h/$d(h)}).invert=Ni(function(h){return h});Rk(3);Ni(Eo);Ni(Qk);Ni(function(h){return 2*Eo(h)});Oi.prototype=Ku.prototype={constructor:Oi,count:function(){return this.eachAfter(tB)},each:function(h){var p,u=[this],w;do{var y=u.reverse();for(u=[];p=y.pop();)if(h(p),p=p.children){var z=0;for(w=p.length;z=0;--w)u.push(p[w]);return this},sum:function(h){return this.eachAfter(function(p){for(var u=+h(p.data)||0,w=p.children,y=w&&w.length;--y>=0;)u+=w[y].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 w=h;if(u!==w){var y=u.ancestors(),z=w.ancestors(),E=null;u=y.pop();for(w=z.pop();u===w;)E=u,u=y.pop(),w=z.pop();u=E}for(w=[p];p!==u;)p=p.parent,w.push(p);for(p=w.length;h!==u;)w.splice(p,0,h),h=h.parent;return w},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 Ku(this).eachBefore(wB)}};(function(h,p){this.Fa=h;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.rd=p}).prototype=Object.create(Oi.prototype);var Ev=Array.prototype,Pu=Ev.map,Tk=Ev.slice,Lu={name:"implicit"},Ou=[0,1],po=new Date,qo=new Date,Jo=Qd(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?Qd(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 $C=Qd(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()}),aD=Qd(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()}),bD=Qd(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=Qd(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}),gv=Ag(0),so=Ag(1);Ag(2);Ag(3);var uo=Ag(4);Ag(5);Ag(6);var cD=Qd(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()}),Cg=Qd(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()});Cg.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Qd(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};Qd(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()});Qd(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 Xu=Qd(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}),GC=Bg(0),ro=Bg(1);Bg(2);Bg(3);var vo=Bg(4);Bg(5);Bg(6);Qd(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 xh=Qd(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()});xh.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Qd(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 Wu={"-":"",_:" ",0:"0"},Vd=/^\s*\d+/,FC=/^%/,EC=/[\\^$*+?|[\]().{}]/g,Wi;(function(h){Wi=IB(h);Sq=Wi.format;Rq=Wi.utcFormat;rq=Wi.utcParse;return Wi})({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");ad("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");ad("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ad("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ad("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ad("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ad("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ad("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");ad("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ad("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ad("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ad("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ad("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var dD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ad);ud(dD);var eD=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ad);ud(eD);var fD=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ad);ud(fD);var gD=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ad);ud(gD);var hD=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ad);ud(hD);var iD=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ad);ud(iD);var jD=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ad);ud(jD);var kD=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ad);ud(kD);var lD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ad);ud(lD);var mD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ad);ud(mD);var nD=Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ad);ud(nD);var oD=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ad);ud(oD);var pD=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ad);ud(pD);var qD=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ad);ud(qD);var rD=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ad);ud(rD);var sD=Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ad);ud(sD);var tD=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ad);ud(tD);var uD=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ad);ud(uD);var vD=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ad);ud(vD);var wD=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ad);ud(wD);var xD=Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ad);ud(xD);var yD=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ad);ud(yD);var zD=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ad);ud(zD);var AD=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ad);ud(AD);var BD=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ad);ud(BD);var CD=Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ad);ud(CD);var DD=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ad);ud(DD);zo(cb(300,.5,0),cb(-240,.5,1));zo(cb(-100,.75,.35),cb(80,1.5,.8));zo(cb(260,.75,.35),cb(80,1.5,.8));cb();bb();Vk(ad("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Vk(ad("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));Vk(ad("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));Vk(ad("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var Fv=Math.abs,ae=Math.atan2,Eg=Math.cos,PC=Math.max,Ko=Math.min,Ye=Math.sin,yh=Math.sqrt,Xi=Math.PI,Wk=Xi/2,fl=2*Xi;jv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Ma=0},lineEnd:function(){(this.Ga||this.Ga!==0&&this.Ma===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(h,p){h=+h;p=+p;switch(this.Ma){case 0:this.Ma=1;this.Ga?this.Ea.lineTo(h,p):this.Ea.moveTo(h,p);break;case 1:this.Ma=2;default:this.Ea.lineTo(h,p)}}};(function(h){function p(u){return new nv(h(u))} p.xe=h;return p})(Yk);nv.prototype={areaStart:function(){this.xe.areaStart()},areaEnd:function(){this.xe.areaEnd()},lineStart:function(){this.xe.lineStart()},lineEnd:function(){this.xe.lineEnd()},point:function(h,p){this.xe.point(p*Math.sin(h),p*-Math.cos(h))}};pv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Oa=this.Aa=this.Qa=this.Da=NaN;this.Ma=0},lineEnd:function(){switch(this.Ma){case 3:ov(this,this.Aa,this.Da);case 2:this.Ea.lineTo(this.Aa,this.Da)}(this.Ga||this.Ga!==0&&this.Ma===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(h,p){h=+h;p=+p;switch(this.Ma){case 0:this.Ma=1;this.Ga?this.Ea.lineTo(h,p):this.Ea.moveTo(h,p);break;case 1:this.Ma=2;break;case 2:this.Ma=3,this.Ea.lineTo((5*this.Oa+this.Aa)/6,(5*this.Qa+this.Da)/6);default:ov(this,h,p)}this.Oa=this.Aa;this.Aa=h;this.Qa=this.Da;this.Da=p}};rv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Oa=this.Aa=this.ze=this.Qa=this.Da=this.Ae=NaN;this.Ma=0},lineEnd:function(){switch(this.Ma){case 2:this.Ea.lineTo(this.ze,this.Ae);break;case 3:qv(this,this.Aa,this.Da)}(this.Ga||this.Ga!==0&&this.Ma===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(h,p){h=+h;p=+p;switch(this.Ma){case 0:this.Ma=1;this.Ga?this.Ea.lineTo(h,p):this.Ea.moveTo(h,p);break;case 1:this.Ma=2;this.Aa=h;this.Da=p;break;case 2:this.Ma=3;default:qv(this,h,p)}this.Oa=this.Aa;this.Aa=this.ze;this.ze=h;this.Qa=this.Da;this.Da=this.Ae;this.Ae=p}};var ED=function u(p){function w(y){return new rv(y,p)} w.tension=function(y){return u(+y)};return w}(0);Zk.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.Oa=this.Aa=this.Qa=this.Da=this.rg=NaN;this.Ma=0},lineEnd:function(){switch(this.Ma){case 2:this.Ea.lineTo(this.Aa,this.Da);break;case 3:wo(this,this.rg,tv(this,this.rg))}(this.Ga||this.Ga!==0&&this.Ma===1)&&this.Ea.closePath();this.Ga=1-this.Ga},point:function(p,u){var w=NaN;p=+p;u=+u;if(p!==this.Aa||u!==this.Da){switch(this.Ma){case 0:this.Ma=1;this.Ga?this.Ea.lineTo(p,u):this.Ea.moveTo(p,u);break;case 1:this.Ma=2;break;case 2:this.Ma=3;wo(this,tv(this,w=sv(this,p,u)),w);break;default:wo(this,this.rg,w=sv(this,p,u))}this.Oa=this.Aa;this.Aa=p;this.Qa=this.Da;this.Da=u;this.rg=w}}};(uv.prototype=Object.create(Zk.prototype)).point=function(p,u){Zk.prototype.point.call(this,u,p)};vv.prototype={moveTo:function(p,u){this.Ea.moveTo(u,p)},closePath:function(){this.Ea.closePath()},lineTo:function(p,u){this.Ea.lineTo(u,p)},bezierCurveTo:function(p,u,w,y,z,E){this.Ea.bezierCurveTo(u,p,y,w,E,z)}};wv.prototype={areaStart:function(){this.Ga=0},areaEnd:function(){this.Ga=NaN},lineStart:function(){this.yb=[];this.Eb=[]},lineEnd:function(){var p=this.yb,u=this.Eb,w=p.length;if(w)if(this.Ga?this.Ea.lineTo(p[0],u[0]):this.Ea.moveTo(p[0],u[0]),w===2)this.Ea.lineTo(p[1],u[1]);else for(var y=xv(p),z=xv(u),E=0,na=1;na=0&&(this.Vd=1-this.Vd,this.Ga=1-this.Ga)},point:function(p,u){p=+p;u=+u;switch(this.Ma){case 0:this.Ma=1;this.Ga?this.Ea.lineTo(p,u):this.Ea.moveTo(p,u);break;case 1:this.Ma=2;default:if(this.Vd<=0)this.Ea.lineTo(this.yb,u),this.Ea.lineTo(p,u);else{var w=this.yb*(1-this.Vd)+p*this.Vd;this.Ea.lineTo(w,this.Eb);this.Ea.lineTo(w,u)}}this.yb=p;this.Eb=u}};Si.prototype={constructor:Si,scale:function(p){return p===1?this:new Si(this.k*p,this.x,this.y)},translate:function(p,u){return p===0&u===0?this:new Si(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 Si(1,0,0);fi=b;Kv=function(p,u){return up?1:u>=p?0:NaN};Jh=function(p,u){var w=p.length,y=-1,z,E,na;if(u==null)for(;++y=z)for(E=na=z;++yz&&(E=z),na=z)for(E=na=z;++yz&&(E=z),na=z)for(E=z;++yE&&(E=z)}else for(;++y=z)for(E=z;++yE&&(E=z);return E};fr=function(p,u){var w=p.length,y=-1,z,E;if(u==null)for(;++y=z)for(E=z;++yz&&(E=z)}else for(;++y=z)for(E=z;++yz&&(E=z);return E};dz=function(p,u){var w=p.length,y=-1,z,E=0;if(u==null)for(;++yGa;pa||(pa=oa=Kk());if(Ca1E-12)if(db>fl-1E-12)pa.moveTo(Ca*Eg(Ga),Ca*Ye(Ga)),pa.arc(0,0,Ca,Ga,ic,!Oc),va>1E-12&&(pa.moveTo(va*Eg(ic),va*Ye(ic)),pa.arc(0,0,va,ic,Ga,Oc));else{var sc=Ga,Nc=ic;Sc=Ga;var $c=ic,Pc=db,La=db,Qc=qa.apply(this,arguments)/2,Ha=Qc>1E-12&&(z?+z.apply(this,arguments):yh(va* va+Ca*Ca)),Sa=Ko(Fv(Ca-va)/2,+y.apply(this,arguments)),Fa=Sa,Ma=Sa;if(Ha>1E-12){var Yc=iv(Ha/va*Ye(Qc));Qc=iv(Ha/Ca*Ye(Qc));(Pc-=Yc*2)>1E-12?(Yc*=Oc?1:-1,Sc+=Yc,$c-=Yc):(Pc=0,Sc=$c=(Ga+ic)/2);(La-=Qc*2)>1E-12?(Qc*=Oc?1:-1,sc+=Qc,Nc-=Qc):(La=0,sc=Nc=(Ga+ic)/2)}Ga=Ca*Eg(sc);ic=Ca*Ye(sc);Yc=va*Eg($c);Qc=va*Ye($c);if(Sa>1E-12){var xd=Ca*Eg(Nc),Cd=Ca*Ye(Nc),od=va*Eg(Sc),te=va*Ye(Sc);if(db1E-12?(Fa=od-Ga,Ma=te-ic,db=Yc-xd,Ha=Qc-Cd,db=(db*(ic-Cd)-Ha*(Ga-xd))/(Ha*Fa-db*Ma),Fa=[Ga+db*Fa,ic+db*Ma]):Fa=[Yc,Qc];Ma=Ga-Fa[0];db=ic-Fa[1];Ha=xd-Fa[0];var Xf=Cd-Fa[1];Ma=(Ma*Ha+db*Xf)/(yh(Ma*Ma+db*db)*yh(Ha*Ha+Xf*Xf));Ma=1/Ye((Ma>1?0:Ma<-1?Xi:Math.acos(Ma))/2);db=yh(Fa[0]*Fa[0]+Fa[1]*Fa[1]);Fa=Ko(Sa,(va-db)/(Ma-1));Ma=Ko(Sa,(Ca-db)/(Ma+1))}}La>1E-12?Ma>1E-12?(sc=Xk(od,te,Ga,ic,Ca,Ma,Oc),Nc=Xk(xd,Cd,Yc,Qc,Ca,Ma,Oc),pa.moveTo(sc.cx+sc.Zc,sc.cy+sc.ad),Ma1E-12&&Pc>1E-12?Fa>1E-12?(sc=Xk(Yc,Qc,xd,Cd,va,-Fa,Oc),Nc=Xk(Ga,ic,od,te,va,-Fa,Oc),pa.lineTo(sc.cx+sc.Zc,sc.cy+sc.ad),Fa=$c;--Ga)oa.point(sc[Ga],Nc[Ga]);oa.lineEnd();oa.areaEnd()}Oc&&(sc[Ca]=+w(db,Ca,va),Nc[Ca]=+z(db,Ca,va),oa.point(y?+y(db,Ca,va):sc[Ca],E?+E(db,Ca,va):Nc[Ca]))}if(Sc)return oa=null,Sc+""||null} function u(){return mv().defined(na).curve(pa).context(qa)} var w=kv,y=null,z=sd(0),E=lv,na=sd(!0),qa=null,pa=Yk,oa=null;p.x=function(va){return arguments.length?(w=typeof va==="function"?va:sd(+va),y=null,p):w};p.x0=function(va){return arguments.length?(w=typeof va==="function"?va:sd(+va),p):w};p.x1=function(va){return arguments.length?(y=va==null?null:typeof va==="function"?va:sd(+va),p):y};p.y=function(va){return arguments.length?(z=typeof va==="function"?va:sd(+va),E=null,p):z};p.y0=function(va){return arguments.length?(z=typeof va==="function"?va:sd(+va),p):z};p.y1=function(va){return arguments.length?(E=va==null?null:typeof va==="function"?va:sd(+va),p):E};p.lineX0=p.lineY0=function(){return u().x(w).y(z)};p.lineY1=function(){return u().x(w).y(E)};p.lineX1=function(){return u().x(y).y(z)};p.defined=function(va){return arguments.length?(na=typeof va==="function"?va:sd(!!va),p):na};p.curve=function(va){return arguments.length?(pa=va,qa!=null&&(oa=pa(qa)),p):pa};p.context=function(va){return arguments.length?(va==null?qa=oa=null:oa=pa(qa=va),p):qa};return p};Jw=mv;Xt=function(){function p(qa){var pa,oa=qa.length;var va=0;var Ca=Array(oa),Ga=Array(oa),ic=+z.apply(this,arguments);var db=Math.min(fl,Math.max(-fl,E.apply(this,arguments)-ic));var Oc=Math.min(Math.abs(db)/oa,na.apply(this,arguments)),Sc=Oc*(db<0?-1:1),sc;for(pa=0;pa0&&(va+=sc);w!=null?Ca.sort(function($c,Pc){return w(Ga[$c],Ga[Pc])}):y!=null&&Ca.sort(function($c,Pc){return y(qa[$c],qa[Pc])});pa=0;for(db=va?(db-oa*Sc)/va:0;pa0?sc*db:0)+Sc;Ga[va]={data:qa[va],index:pa,value:sc,startAngle:ic,endAngle:Nc,padAngle:Oc}}return Ga} var u=RC,w=QC,y=null,z=sd(0),E=sd(fl),na=sd(0);p.value=function(qa){return arguments.length?(u=typeof qa==="function"?qa:sd(+qa),p):u};p.sortValues=function(qa){return arguments.length?(w=qa,y=null,p):w};p.sort=function(qa){return arguments.length?(y=qa,w=null,p):y};p.startAngle=function(qa){return arguments.length?(z=typeof qa==="function"?qa:sd(+qa),p):z};p.endAngle=function(qa){return arguments.length?(E=typeof qa==="function"?qa:sd(+qa),p):E};p.padAngle=function(qa){return arguments.length?(na=typeof qa==="function"?qa:sd(+qa),p):na};return p};Tw=function(p){return new pv(p)};Uw=ED;Sw=Yk;Zw=function(p){return new Zk(p)};$w=function(p){return new uv(p)};Vw=function(p){return new wv(p)};Ww=function(p){return new $k(p,.5)};Yw=function(p){return new $k(p,1)};Xw=function(p){return new $k(p,0)};se.svg=se.svg;se.xhtml=se.xhtml;se.xlink=se.xlink;se.xml=se.xml;se.xmlns=se.xmlns})();function NA(){} NA.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 OA(a){this.v=a} function FD(a,b){return GD(JSON.parse(a.v.getAttribute("data-primary-activity")||"[]"),b)} function HD(a,b){return GD(JSON.parse(a.v.getAttribute("data-secondary-activity")||"[]"),b)} function ID(a){var b=b===void 0?new Date:b;a.v.textContent="";var c=new Xx(a.v);c.Wc({top:60,left:0,right:0});c.tb().Od(!0);c.wh({type:"linear",ticks:{type:"default",numTicks:3,integerOnly:!0,format:function(e){return e||""}},rendering:{type:"inside_gridlines"}});c.mj({type:"ordinal",ticks:{type:"default",format:function(e){return(new Date(e)).toLocaleDateString(void 0,{month:"short"})}}});c.addBehavior(JD({Dj:"{{monthYear}}",body:"
{{series.name}}: {{measure}}
",Pl:{monthYear:function(){return(new Date(this.datum.month)).toLocaleDateString(void 0,{month:"long",year:"numeric"})}}}));c.addBehavior((new AA(!0)).Uj(200));c.addBehavior((new wA).position(16).Xi(!1).Wg("series_desc").ef(new NA));c.addBehavior(new cy);c.draw([{name:"primary",displayName:a.v.getAttribute("data-primary-label")||"",data:FD(a,b),domain:"month",measure:"count",color:a.v.getAttribute("data-primary-color")},{name:"secondary",displayName:a.v.getAttribute("data-secondary-label")||"",data:HD(a,b),domain:"month",measure:"count",color:"#bdbdbd"}])} function GD(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=Wc(a);for(b=a.next();!b.done;b=a.next()){var k=Wc(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 JD(a){return Qz(a.Dj===void 0?"":a.Dj,a.body===void 0?"":a.body,a.bm===void 0?"":a.bm,a.Pl).aj()} Nd("hcfe.forum.ActivityChart.setUpAll",function(){for(var a=Wc((window.sc_scope||document).querySelectorAll("[data-activity-chart]")),b=a.next();!b.done;b=a.next())ID(new OA(b.value))});}).call(this);
false