/admanager/community?hl=en

About the Community

Activity
Loading...
Top 11 posters this month
33435 members
Bablu Chakma(66 posts)
Gold Product Expert
Alice Liu/劉玲君(33 posts)
Bronze Member
Supra KETO BHB + ACV Gummies(22 posts)
365ads.info(18 posts)
Bronze Member
Magicbid.ai(10 posts)
ChirpyCharm Camera(9 posts)
WeightCare Forskolin(9 posts)
Mehboob Ahmed 1564(6 posts)
PTrivedi(5 posts)
dev maxvalue(5 posts)
radheshyam sahu(5 posts)
false
Search
Clear search
Close search
Main menu
18382228025960474959
true
Search Help Center
true
true
true
true
true
148
false
");return(new DOMParser).parseFromString(eg(a),"text/html").body.children[0]} function qm(a,b){if(!a)return"";var c=document.createElement("div").style;tm(a).forEach(function(e){var f=rf&&e in nm?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");f.lastIndexOf("--",0)!=0&&f.lastIndexOf("var",0)!=0&&(e=im(a,e),e=Il(f,e,b),e!=null&&jm(c,f,e))});return c.cssText||""} function um(a){var b=Array.from(am(Ql,a,"getElementsByTagName",["STYLE"])),c=nf(b,function(n){return cf(em(n).cssRules)});c=pm(c);for(var e=[],f=0;f=0)){var f=im(b,e);jm(a.style,e,f)}})} function tm(a){Ed(a)?a=cf(a):(a=Sh(a),Ve(a,"cssText"));return a} ;var wm=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,xm=0;function ym(){this.O=[];this.N=[];this.v="data-elementweakmap-index-"+xm++} ym.prototype.set=function(a,b){am(Ml,a,"hasAttribute",[this.v])?(a=parseInt(am(Nl,a,"getAttribute",[this.v])||null,10),this.N[a]=b):(b=this.N.push(b)-1,cm(a,this.v,b.toString()),this.O.push(a));return this};ym.prototype.get=function(a){if(am(Ml,a,"hasAttribute",[this.v]))return a=parseInt(am(Nl,a,"getAttribute",[this.v])||null,10),this.N[a]};ym.prototype.clear=function(){this.O.forEach(function(a){am(Pl,a,"removeAttribute",[this.v])},this);this.O=[];this.N=[]};function zm(){this.O=document.implementation.createHTMLDocument("")} zm.prototype.ma=function(a){var b=this.O.createElement("span");this.N&&this.ka=="*"&&(b.id=this.N);this.ta&&(a=sm("
"+a+"
"),um(a),a=a.innerHTML);a=cg(a);var c=document.createElement("template");if("content"in c)hg(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;hg(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=wm?new WeakMap:new ym;e=a.nextNode();){a:{var f=e;switch(gm(f)){case 3:f=Am(this,f);break a;case 1:if(fm(f).toUpperCase()=="TEMPLATE")f=null;else{var k=fm(f).toUpperCase();if(k in this.na||km(f)!="http://www.w3.org/1999/xhtml")k=null;else if(this.ha[k])k=this.O.createElement(k);else{var n=this.O.createElement("span");this.Ca&&cm(n,"data-sanitizer-original-tag",k.toLowerCase());k=n}if(n=k){var r=bm(f);if(r!=null)for(var t=0;k=r[t];t++)if(k.specified){var x=f,A=k;var la=A.name;if(la.lastIndexOf("data-sanitizer-",0)==0)la=null;else{var ma=fm(x);A=A.value;var ra={tagName:Vd(ma).toLowerCase(),attributeName:Vd(la).toLowerCase()},ta={rh:void 0};ra.attributeName=="style"&&(ta.rh=dm(x));x=Bm(ma,la);x in this.v?la=(0,this.v[x])(A,ra,ta):(la=Bm(null,la),la=la in this.v?(0,this.v[la])(A,ra,ta):null)}la!==null&&cm(n,k.name,la)}f=n}else f=null}break a;default:f=null}}if(f){if(gm(f)==1&&c.set(e,f),e=hm(e),k=!1,e)n=gm(e),r=fm(e).toLowerCase(),t=hm(e),n!=11||t?r=="body"&&t&&(n=hm(t))&&!hm(n)&&(k=!0):k=!0,n=null,k||!e?n=b:gm(e)==1&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else dj(e)}c.clear&& c.clear();return b};var Cm={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 Dm={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 Em={"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 Fm(a){this.O=document.implementation.createHTMLDocument("");a=a||new Gm;Hm(a);this.v=Vh(a.v);this.na=Vh(a.Ca);this.ha=Vh(a.Ha);this.Ca=a.ta;a.ka.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new Td('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new Td('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Im},this);a.Ja.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||Em[b])throw new Td("Only valid custom element tag names allowed, got: %s.",[b]);this.ha[b]=!0},this);this.ya=a.O;this.ka=a.ya;this.N=null;this.ta=a.oa} Pd(Fm,zm);function Jm(a){return function(b,c){b=Vd(b);return(c=a(b,c))&&Rf(c)!=Qf.toString()?Rf(c):null}} function Gm(){this.v={};Qe([wl,xl],function(a){Sh(a).forEach(function(b){this.v[b]=Im},this)},this);this.N={};this.ka=[];this.Ja=[];this.Ca=Vh(Cm);this.Ha=Vh(Dm);this.ta=!1;this.Ka=Km;this.ma=this.ha=this.Na=this.O=ul;this.ya=null;this.na=this.oa=!1} function Lm(a,b){return function(c,e,f,k){c=a(c,e,f,k);return c==null?null:b(c,e,f,k)}} function Mm(a,b,c,e){a[c]&&!b[c]&&(a[c]=Lm(a[c],e))} function Hm(a){if(a.na)throw Error("HtmlSanitizer.Builder.build() can only be used once.");Mm(a.v,a.N,"* USEMAP",Nm);var b=Jm(a.Ka);["* ACTION","* CITE","* HREF"].forEach(function(e){Mm(this.v,this.N,e,b)},a);var c=Jm(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){Mm(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){Mm(this.v,this.N,e,Nd(Om,this.Na))},a);Mm(a.v,a.N,"A TARGET",Nd(Pm,["_blank","_self"]));Mm(a.v,a.N,"* CLASS",Nd(Qm,a.ha));Mm(a.v,a.N,"* ID",Nd(Rm,a.ha));Mm(a.v,a.N,"* STYLE",Nd(a.ma,c));a.na=!0} function Km(a){return Wf(a)} function Bm(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Im(a){return Vd(a)} function Pm(a,b){b=Vd(b);return Pe(a,b.toLowerCase())>=0?b:null} function Nm(a){return(a=Vd(a))&&a.charAt(0)=="#"?a:null} function Om(a,b,c){b=Vd(b);return a(b,c)} function Qm(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=an(a);b&&(a=a.querySelector(b).parentNode);return a} function $m(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?bn(e,f,b):f.childNodes.length&&c.push(f)})} function bn(a,b,c){if(b.textContent.match(cn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=cn.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);cn.lastIndex=0}b&&k.push(document.createTextNode(b));k.forEach(function(r){a.insertBefore(r,e)})}} function Wm(a,b,c){var e=dn(a);b.forEach(function(f){var k=c[f];typeof k==="number"||Fd(k)||typeof k==="boolean"?k=k.toString():(k instanceof Node?k=k.outerHTML:k instanceof bg?k=eg(k).toString():k=ih(dn(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=Cd(f.substring(0,n),b));k=k.apply(r)}(n=c[f])&&(k=n.apply(b,[k,b]));e[f]=k!=null?k:""});return e} function Um(a){a=dn(a);if(!a||!a.trim().length)return[];for(var b,c={};b=cn.exec(a);)c[b[1]]=!0;return Sh(c)} Od("aplos.util.SimpleTemplate.extractTemplateVariables",Um);Od("aplos.util.SimpleTemplate.setSanitizerFunction",function(a){an=a});Od("aplos.util.SimpleTemplate.setSanitizer",function(a){an=a.ik.bind(a)});function an(a){return en.ik(a)} var fn=new Gm;fn.ma=function(a,b,c,e){if(!e.rh)return null;b=qm(e.rh,function(f,k){c.Ol=k;f=a(f,c);var n;f==null?n=null:n=new Pf(f);return n});return b==""?null:b};(function(a,b){for(var c=1;c=0?a.slice(0,e):a;e<0&&(a=f+".autoNamespace"+this.ha++);if(b){c&&(b=Md(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);Ve(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],Ve(this.N[f]||[],b),delete this.v[a];else if(a.length>1)for(k in this.v)b=k.length-a.length,b>=0&&k.indexOf(a,b)==b&&(b=this.v[k],delete this.v[k],f=k.slice(0,k.indexOf(".")),Ve(this.N[f]||[],b))};sn.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(),vn(this))};v.Vg=function(a,b){this.Wa.on("selectionChange."+a,b)};function vn(a){a.Wa.nb("selectionChange",a,a)} v.Jn=function(){return this.N};v.lock=function(){this.N||(this.N=!0,wn(this))};v.unlock=function(){this.N&&(this.N=!1,wn(this))};v.Wn=function(a,b){this.Wa.on("selectionLockChange."+a,b)};function wn(a){a.Wa.nb("selectionLockChange",a,a)} un.prototype.onSelectionLockChange=un.prototype.Wn;un.prototype.unlock=un.prototype.unlock;un.prototype.lock=un.prototype.lock;un.prototype.isLocked=un.prototype.Jn;un.prototype.onSelectionChange=un.prototype.Vg;un.prototype.deselectAll=un.prototype.deselectAll;un.prototype.hasSelection=un.prototype.fe;un.prototype.isDatumSelected=un.prototype.Fj;un.prototype.deselectDatum=un.prototype.Tl;un.prototype.selectDatum=un.prototype.ci;un.prototype.setSelection=un.prototype.Bi;un.prototype.setSeriesSelectionProperties=un.prototype.Lo;un.prototype.setDataSelectionProperties=un.prototype.yo;un.prototype.setSelectionProperties=un.prototype.Ci;Od("aplos.chart.SeriesDataSelectionModel",un);Od("aplos.chart.SeriesDataSelectionModel.FULL_DATUM_KEY","__datum__");function xn(a){this.N={};this.v=a||null;this.O={}} function yn(a,b){var c=zn(a,b);return c?yn(a,c):a.N[b]?!0:a.v?yn(a.v,b):!1} xn.prototype.ug=function(a,b){var c=this.N;a in c&&delete c[a];this.O[a]=b;return this};xn.prototype.set=function(a,b,c){var e=this.O;a in e&&delete e[a];this.N[a]=An(this,b,c);return this};xn.prototype.get=function(a,b){var c=zn(this,a);return c?this.get(c,b):(c=this.N[a])?c:this.v?this.v.get(a,b):Bn(a,b)};function An(a,b,c){if(typeof b==="function"){var e=Md(b,a);return c?function(f,k){f=e(f,k);return f!=null?+f:f}:e}return Md(function(f){f=f?f[b]:void 0;return f===void 0?b:c&&f!==null?+f:f},a)} function Bn(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 zn(a,b){if(!a.N[b]){if(a.O[b])return a.O[b];if(a.v)return zn(a.v,b)}return null} ;function Cn(a,b){this.ub=a;this.O=null;this.v=b||null;this.N=b?new xn(b.N):new xn;this.oa=this.ha=this.na=null;this.ya={};this.ta=this.ma=this.ka=null} v=Cn.prototype;v.Jg=function(){return this.ta?this.ta:this.v?this.v.Jg():null};v.Ph=function(){return new Cn(this.ub,this)};function Dn(a,b){a.ta=b;b.x&&a.domain(b.x);b.xLowerBound&&a.Fe(Hn(b.xLowerBound));b.xUpperBound&&a.Ge(Hn(b.xUpperBound));b.x0&&a.Zd(Hn(b.x0));b.y&&a.measure(Hn(b.y));b.yLowerBound&&a.Xe(Hn(b.yLowerBound));b.yUpperBound&&a.Ye(Hn(b.yUpperBound));b.y0&&a.Kc(Hn(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 In(a,e,b[e],!0,!1)});"color dashPattern dataId datumClass domain key label labelTemplate strokeWidth radius".split(" ").forEach(function(e){return Jn(a,e,b,!0,!1)});"delta domainLowerBound domainOffset domainUpperBound latitude longitude measure measureLowerBound measureOffset measureUpperBound".split(" ").forEach(function(e){return Jn(a,e,b,!1,!0)});var c=c||[];c.forEach(function(e){return Jn(a,e,b,!0,!1)})} function In(a,b,c,e,f){c!=null&&(typeof c!=="string"||e||(c=Hn(c)),typeof c==="function"&&(c=Md(c,a)),a.N.set(b,c,f))} function Jn(a,b,c,e,f){var k=c[b];(c=c[b+"ColumnId"])&&(k=Hn(c,e?k:null));In(a,b,k,e,f)} function Hn(a,b){return function(c){return c&&c.hasOwnProperty(a)?c[a]:b}} function Kn(a,b){for(var c=a.domain(),e=kn(a,"domainOffset")?a.Zd():void 0,f=kn(a,"domainLowerBound")?a.Fe():void 0,k=kn(a,"domainUpperBound")?a.Ge():void 0,n=a.measure(),r=a.Kc(),t=kn(a,"measureLowerBound")?a.Xe():void 0,x=kn(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=kn(a,"strokeWidth")?a.strokeWidth():void 0,xa=a.label(),za=kn(a,"category")?a.Gb():void 0,Ba=Array(b.length),Ea=0;Ea=0})} function Tn(a){return a.Ca.filter(function(b){return b.Ac!==!0}).length>0} function Xn(a,b){a={Ba:0n){r=No(f);for(e=a=0;e0&&x.Ba.heightk){n=No(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 bp(b,this.src,k,!!e,f),b.vg=c,a.push(b));return b};dp.prototype.remove=function(a,b,c,e){a=a.toString();if(!(a in this.v))return!1;var f=this.v[a];b=ep(f,b,c,e);return b>-1?(cp(f[b]),Ye(f,b),f.length==0&&(delete this.v[a],this.N--),!0):!1};function fp(a,b){var c=b.type;c in a.v&&Ve(a.v[c],b)&&(cp(b),a.v[c].length==0&&(delete a.v[c],a.N--))} dp.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)&&sp(c))} function sp(a){if(typeof a!=="number"&&a&&!a.Sf){var b=a.src;if(b&&b[$o])fp(b.v,a);else{var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent?b.detachEvent(pp(c),e):b.addListener&&b.removeListener&&b.removeListener(e);ip--;(c=np(b))?(fp(c,a),c.N==0&&(c.src=null,b[gp]=null)):cp(a)}}} function pp(a){return a in hp?hp[a]:hp[a]="on"+a} function qp(a,b){if(a.Sf)a=!0;else{b=new Zo(b,this);var c=a.listener,e=a.Lg||a.src;a.vg&&sp(a);a=c.call(e,b)}return a} function np(a){a=a[gp];return a instanceof dp?a:null} var tp="__closure_events_fn_"+(Math.random()*1E9>>>0);function lp(a){if(typeof a==="function")return a;a[tp]||(a[tp]=function(b){return a.handleEvent(b)});return a[tp]} ;var up=If("");function vp(){this.port=this.v=null;this.N=[]} vp.prototype.load=function(){var a=this,b=wp();this.v=xp(b);yp().then(function(){a.v&&document.body.appendChild(a.v)});return zp(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)})};vp.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=Xc(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(Yc(t))):c.N.push({data:n,cp:[k.port2].concat(Yc(t))})})};vp.prototype.dispose=function(){this.v!=null&&(this.v.parentNode&&this.v.parentNode.removeChild(this.v),this.v=null)};function wp(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")} function yp(){return new Promise(function(a){document.readyState!="loading"?a():kp(document,"DOMContentLoaded",function(){a()})})} function zp(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 xp(a){var b=bj(document,"IFRAME");if(!b.sandbox)throw Error("iframe sandboxes not supported");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(up==""){a=' ';c=cg(a);a=If("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=eg(c)}else{c=new Map([["nonce",a]]);var e=Jf(up).toString();var f=e.split(/[?#]/),k=/[?]/.test(e)?"?"+f[1]:"";a=f[0];e=/[#]/.test(e)?"#"+(k?f[2]:f[1]):"";a=Tg(a,k,e,c)}b.src=Jf(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 Ap={ip:!1},Bp;function Cp(a){this.options=a=a===void 0?Ap:a;Dp(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.v=new vp)} Cp.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?Ap:e;return rd(function(f){if(f.v==1)return id(f,Ep(a,b,c,e),2);if(f.na)return f.return();Bp||(Bp=new Cp,Bp.init());return id(f,Fp(Bp,a,b,c),0)})};Cp.prototype.init=function(){var a=this;return rd(function(b){return a.v==null?b.return():id(b,a.v.load(),0)})};Cp.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return rd(function(f){return f.v==1?id(f,Ep(a,b,c,e.options),2):f.na?f.return():id(f,Fp(e,a,b,c),0)})};function Fp(a,b,c,e){e=e===void 0?"":e;var f,k;return rd(function(n){switch(n.v){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){n.If(2);break}navigator.msSaveOrOpenBlob(f,c);return id(n,Gp(),3);case 3:return n.return();case 2:if(!oe()||me()>=0||!Me()&&(!Fe("iPad")&&!Fe("iPhone")||Le()||Me()||(Ie()?0:Fe("Coast"))||Ke()||!Fe("AppleWebKit"))){n.If(4);break}k=new FileReader;k.onload=function(){var r=bj(document,"A"),t=Wf(String(k.result));t instanceof Pf?t=Rf(t):t=ag.test(t)?t:void 0;t!==void 0&&(r.href=t);r.download=c;r.click()};k.readAsDataURL(f);return id(n,Gp(),5);case 5:return n.return();case 4:return a.v==null&&(a.v=new vp,a.v.load()),id(n,a.v.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return id(n,Gp(),0)}})} function Ep(a,b,c,e){c=c===void 0?"":c;e=e===void 0?Ap:e;var f;return rd(function(k){switch(k.v){case 1:if(!Dp(e))return k.return(!1);k.O=2;return id(k,Hp(a,b,c),4);case 4:k.v=3;k.O=0;break;case 2:f=jd(k);if(f instanceof DOMException&&f.name==="SecurityError")return k.return(!1);throw f;case 3:return k.return(!0)}})} function Dp(a){a=a===void 0?Ap:a;return a.ip&&!!window.showSaveFilePicker} function Hp(a,b,c){c=c===void 0?"":c;var e,f,k,n;return rd(function(r){switch(r.v){case 1:var t=c,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 id(r,window.showSaveFilePicker(e),4);case 4:f=r.na;r.v=3;r.O=0;break;case 2:k=jd(r);if(k instanceof DOMException&&k.name==="AbortError")return r.return();throw k;case 3:return id(r,f.createWritable(),5);case 5:return n=r.na,r.O=0,r.ka=6,id(r,n.write(a),6);case 6:return r.ta=[r.N],r.O=0,r.ka=0,id(r,n.close(),9);case 9: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 Lp(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 Mp(a,b){b=b===void 0?vl:b;var c=Np(a,b);return c==null?null:c/Op(a,b)} Od("aplos.data.aggregations.average",Mp);function Pp(a,b){b=b===void 0?vl:b;var c=0;a.forEach(function(e,f){b(e,f)==1&&c++});return c} Od("aplos.data.aggregations.countIf",Pp);function Np(a,b){var c=null;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&!isNaN(+e)&&isFinite(e)&&(c=(c||0)+ +e)});return c} Od("aplos.data.aggregations.sum",Np);function Qp(a,b){var c=null;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&(c===null&&(c=Infinity),c=ce?c:c==e?c:e)});return c} Od("aplos.data.aggregations.max",Rp);function Op(a,b){var c=0;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c++});return c} Od("aplos.data.aggregations.count",Op);function Sp(a,b){var c=new Set;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} Od("aplos.data.aggregations.countDistinct",Sp);function Tp(a,b,c,e){if(a<2||!Lp(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(b<0||b>a||!Lp(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Up(b/a,c,e)} Od("aplos.data.aggregations.quantiles",Tp);function Up(a,b,c){if(a<0||a>1)throw Error("phi value for quantiles must be 0 <= phi <= 1");b=b.map(c||vl);b=b.filter(function(e){return e!=null&&!isNaN(+e)});if(!b.length)return null;b.sort(gi);return b[a===0?0:Math.ceil(b.length*a)-1]} Od("aplos.data.aggregations.phiQuantiles",Up);function Vp(a,b){return Kp(a,!1,b)} Od("aplos.data.aggregations.variance",Vp);function Wp(a,b){return(a=Kp(a,!1,b))&&Math.sqrt(a)} Od("aplos.data.aggregations.stdDev",Wp);Od("aplos.data.aggregations.makeJackknifeStdErrFn",function(a,b){return function(c){if(!c||c.length<2)var e=null;else{if(!c||c.length<2)e=null;else if(e=[],b){var f=kf(c,b);f=Rh(f);if(f.length<2)e=null;else{c=mf(f);for(var k=0;k=c&&ae?(a=a.Hc(c+1)-e,(c*a+b-e)/a):b=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b} v=lq.prototype;v.Ie=fq.il;v.Je=fq.jl;v.clone=function(){var a=new lq(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(hq(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()),nq(this,a.getDate()))};v.ig=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+nh(Math.abs(b),c?6:4),nh(this.getMonth()+1,2),nh(this.getDate(),2)].join(a?"-":"")+""};v.toString=function(){return this.ig()};function nq(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 uq(a,b){b=b||"UTC";try{return qq(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return qq(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 vq(a,b,c){c=c||"UTC";var e=wq(b);xq(a);rq(c,"Invalid timezone specified");if(c==="local")return yq(a,e);var f=Math.floor(a/1E3);b=zq(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=zq(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=zq(a,c),(a-c)*1E3;case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=zq(a,c),(a-c)*1E3;case "WEEK":return a=new pq,a.setTime(f+b),b=new iq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=zq(a,c),(a-c)*1E3;case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=zq(a,c),(a-c)*1E3;case "HOUR":return a=f+b,Aq(a-a%36E5-b,c)*1E3;case "MINUTE":return a=f+b,Aq(a-a%6E4-b,c)*1E3;case "SECOND":return Aq(Math.floor(f/1E3)*1E3,c)*1E3;case "MILLISECOND":return Aq(Math.floor(f),c)*1E3;case "MICROSECOND":return Aq(Math.floor(a)/1E3,c)* 1E3;default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function Bq(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=tq(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=tq(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=tq(a,e);a-=f.Ib;break;case "HOUR":return b=a+c*60*60*1E3*1E3,Math.abs(c)>1&&(c=Cq(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 Cq(a,b){return b?tq(a,b).Ib:-1*(new Date(a/1E3)).getTimezoneOffset()*60*1E3*1E3} function tq(a,b){var c=b.toUpperCase().trim(),e;if(e=Dq.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=Eq[c];if(e!=null)return{Ib:e*1E3,zf:null,yg:null,th:null,Qf:null,Sg:null};c=Fq[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 zq(a,b){return tq(a*1E3,b).Ib/1E3} function Aq(a,b){var c=a*1E3;b=tq(c,b);var e=b.Qf-b.Ib;return a-(e<=0||c-e>b.zf?0:e)/1E3} function Gq(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function rq(a,b){if(typeof a!=="string")throw Error(b);} function xq(a){if(typeof a!=="number")throw Error("Invalid timestamp");} for(var Dq=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,Eq={"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},Fq={},Hq=[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],Iq=Xc(["PST8PDT","America/Los_Angeles","US/Pacific"]),Jq=Iq.next();!Jq.done;Jq=Iq.next()){var Kq=Jq.value.toUpperCase();Fq[Kq]={id:Kq,Tn:-480,ep:Hq}} var Lq={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},Mq={},Nq;for(Nq in Lq)Mq[Lq[Nq]]=Nq;var Oq=Mq;function wq(a){if(!a)throw Error("Missing date component.");var b=Oq[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function yq(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 Pq(a,b){var c=Qq(a,b===void 0?"__default__":b);return function(e){return e==null?"null":c(e/1E3)}} function Qq(a,b){b=b===void 0?"__default__":b;var c=!1;a.indexOf("%Z")>=0&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=Rq();return function(f){if(f==null)return"null";typeof f==="string"&&(f=+f);Fd(f)&&(f=f.getTime());var k=b==="__default__"?Yp:b,n=Sq(a);if(k==="local"){n=Tq(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=tq(f,k),r=(f+r.Ib)/1E3,k=Cq(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 Rq(){var a=th("02.0f");return function(b){if(b==null)return"null";typeof b==="string"&&(b=+b);var c=b>=0?"":"-";b=Math.abs(b);var e=Math.floor(b/36E8);b-=e*36E8;b=Math.floor(b/6E7);return""+c+a(e)+":"+a(b)}} ;var Uq=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Vq="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Uq),Wq=["MIN","MAX"].concat(Uq),Xq={},Yq=(Xq[["string"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return String},rc:"",yc:"aplos-string-cell",oc:Uq,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+'"'}},Xq[["decimal"]]={Vb:void 0,Bc:!1,qc:"decimal",uc:qh,rc:".2f",yc:"aplos-numeric-cell",oc:Vq,Gb:2,jc:"number",wc:function(a){return a},nc:function(a){return"SUM("+a+")"},mc:String},Xq[["integer"]]={Vb:void 0,Bc:!1,qc:"integer",uc:qh,rc:".0f",yc:"aplos-numeric-cell",oc:Vq,Gb:2,jc:"number",wc:function(a){return a},nc:function(a){return"SUM("+a+")"},mc:String},Xq[["time_us"]]={Vb:.001,Bc:!1,qc:"integer",uc:Pq,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Wq,Gb: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)}},Xq[["time_ms"]]={Vb:1,Bc:!1,qc:"integer",uc:Qq,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Wq,Gb: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)}},Xq[["timestamp"]]={Vb:.001,Bc:!1,qc:"integer",uc:Pq,rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Wq,Gb: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+")"}},Xq[["date"]]={Vb:.001,Bc:!0,qc:"integer",uc:function(a){return Pq(a,"UTC")},rc:"%Y-%m-%d",yc:"aplos-date-cell",oc:Wq,Gb: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")'}},Xq[["datetime"]]={Vb:.001,Bc:!0,qc:"integer",uc:function(a){return Pq(a,"UTC")},rc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",oc:Wq,Gb: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")'}},Xq[["boolean"]]={Vb:void 0,Bc:!1,qc:"integer",uc:function(){return String},rc:"",yc:"",oc:Uq,Gb:4,jc:"boolean",wc:function(a){return a},nc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},mc:String},Xq[["hll_sketch"]]={Vb:void 0,Bc:!1,qc:"integer",uc:qh,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},Xq[["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},Xq[["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},Xq[["kll_int64"]]={Hj:!0,Vb:void 0,qc:"integer",uc:qh,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},Xq[["kll_double"]]={Hj:!0,Vb:void 0,qc:"decimal",uc:qh,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},Xq);function Zq(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 $q={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",$q);function ar(a,b,c){return br(b).mb(a,c)} function cr(a,b){return(a=br(a).ue)?a(b):b} var dr={},jr=(dr["="]={mb:function(a,b){return b[0]==="null"?er(a):a+" = "+b[0]},ue:null},dr[">"]={mb:function(a,b){return a+" > "+b[0]},ue:function(a){return[fr(a)]}},dr["<"]={mb:function(a,b){return a+" < "+b[0]},ue:function(a){return[gr(a)]}},dr[">="]={mb:function(a,b){return a+" >= "+b[0]},ue:function(a){return[fr(a)]}},dr["<="]={mb:function(a,b){return a+" <= "+b[0]},ue:function(a){return[gr(a)]}},dr["!="]={mb:function(a,b){return b[0]==="null"?hr(a):a+" != "+b[0]}},dr.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 er(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+er(a)+")":b}},dr.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 hr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+hr(a)+")":b}},dr.BETWEEN={mb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},ue:function(a){return Kh(a)}},dr.NOT_BETWEEN={mb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},ue:function(a){return Kh(a)}},dr.IS_NULL={mb:er},dr.IS_NOT_NULL={mb:hr},dr.IS_INFINITY={mb:function(a){return"IS_INF("+a+")"}},dr.IS_NOT_INFINITY={mb:function(a){return"NOT(IS_INF("+a+"))"}},dr.IS_NAN={mb:function(a){return"IS_NAN("+a+")"}},dr.IS_NOT_NAN={mb:function(a){return"NOT(IS_NAN("+a+"))"}},dr.CONTAINS={mb:function(a,b){return ir(a,b[0])}},dr.DOES_NOT_CONTAIN={mb:function(a,b){return"NOT("+ir(a,b[0])+")"}},dr.REGEX={mb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},dr.NOT_REGEX={mb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},dr);function ir(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(kr,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function er(a){return a+" IS NULL"} function hr(a){return a+" IS NOT NULL"} function br(a){if(jr[a]==null)throw Error("Unknown filter operator: "+a);return jr[a]} var kr=/([.?*+^$[\]\\(){}|-])/g;function lr(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:""}} Od("aplos.data.SimpleFilter",function(){});Od("aplos.data.SimpleFilter.Operator",$q);Od("aplos.data.SimpleFilter.buildFromFilterOrValues",lr);function mr(a){for(var b=0;be&&(f=1));return f!=null?a==="ASC"?f:-1*f:0} var sr=or.bind(null,"ASC",!1);function rr(a){return a==null?0:a===-Infinity?2:a===Infinity?4:typeof a==="number"&&isNaN(a)?1:3} var pr=!1,qr=/^-?[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=cr(b,c),c.forEach(function(k){var n=e==null?Zq(k):e;f.push(Yq[n].mc(k))}));return ar(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",or);function tr(a){this.qf=this.Ra=.35;this.Za=this.Qb=null;this.ma=new Set;this.v=[0,1];this.oa=new qk;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 Fi(0,0);this.Ca=this.ya=null;this.vc=void 0;this.kg=new ur(this);vr(this)} v=tr.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 wr&&(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 xr(a){a.ma.clear();a.Ja||(a.ka=null);a.O=!0} function yr(a,b,c,e){for(var f=0;fe[0]!=e[1]>e[0]!=f[1]>f[0]?fr(c):gr(c)} function Br(a,b){return a.Oc||b||function(c){return c!=null?c.toString():""}} v.bandwidth=function(){vr(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 Cr(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=Fh(this.N);this.Ne()==null&&this.oa.dk(this.ha);return{position:a,Of:10}};v.jg=function(a){var b=Fh(this.N);b=Vg(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=Dr(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 Fi(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=Dr(this,this.Cc);var e=Ar(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 Fi(a.Ya(),a.wb()),this.rf,this.bandwidth(),b,this.Ca,this.mf,e,this.ve,this.ya,f)}};function Dr(a,b){vr(a);var c=Er(a),e=a.Oc;c.Ve()||(e=Br(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(Vo(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 Fr(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=Kh(b);b=Er(a).Dd(e,c,b).map(function(f){return f.value!==void 0?f.value:f});a.ka=a.Ua===1?[b.length?gr(b):Infinity,b.length?fr(b):-Infinity]:[Math.min(e[0],b.length?gr(b):Infinity),Math.max(e[1],b.length?fr(b):-Infinity)]}return a.ka||[]} function vr(a){if(a.O){switch(a.Ua){case 0:a.Ia=Zh();break;case 2:a.Ia=ei(a.Ra,a.qf,!a.Yb);break;case 1:a.Ia=bi();break;case 3:a.Ia=hi();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=Fr(a),c=a.v.map(function(f){return(f-this.Na)/this.Ha},a),e=a.Ua==1?ki:ji;a.Ia.range(a.v).domain([e(c[0],a.v,b),e(c[1],a.v,b)])}a.O=!1}} function Er(a){if(a.na){if(a.na instanceof wr){var b=a.na,c=a.Ia.copy();b.Ia=c}return a.na}b=new wr(a.Ua);a=a.Ia.copy();b.Ia=a;return b} Od("google3.javascript.visualization.aplos.v2_0.chart.common.axis.aplosaxis.AplosAxis",tr);tr.prototype.setMaxViewportExtent=tr.prototype.Ok;tr.prototype.setNicingFunction=tr.prototype.Ld;tr.prototype.setAutoOrderDomain=tr.prototype.mk;tr.prototype.getTickProvider=tr.prototype.wn;tr.prototype.setTickProvider=tr.prototype.Fi;tr.prototype.setTickFormatter=tr.prototype.Tk;tr.prototype.setRenderer=tr.prototype.eg;tr.prototype.getRenderer=tr.prototype.tb;tr.prototype.getLayoutSize=tr.prototype.Ne;tr.prototype.setLayoutSize=tr.prototype.dh;tr.prototype.setAxisMargin=tr.prototype.nk;tr.prototype.getBarGroupPaddingPct=tr.prototype.km;tr.prototype.setBarGroupPaddingPct=tr.prototype.tk;tr.prototype.setScaleType=tr.prototype.Ai;function wr(a){this.Ia=null;this.Ua=a;this.vc=void 0;this.Xj=!1} v=wr.prototype;v.Un=function(a){this.Xj=a;return this};function Gr(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=Gr(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=Uo(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?Kh(b):a};Od("google3.javascript.visualization.aplos.v2_0.chart.common.axis.aplosaxis.AplosAxisTickProvider",wr);wr.prototype.omitCollidingLabels=wr.prototype.Un;function ur(a){this.v=a} Od("aplos.chart.AplosAxis",tr);function Hr(){qk.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)} Wc(Hr,qk);Od("aplos.chart.GridlinesAxisRenderer",Hr);function Ir(){qk.call(this);this.Ka=new Fi(0,0);this.Ra=void 0} Wc(Ir,qk);v=Ir.prototype;v.render=function(a,b,c,e,f,k,n,r,t,x,A,la,ma){f=this.Ka;qk.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 Fi(e.width,e.height);f={width:e.width,height:e.height};e={width:e.width,height:e.height};var n=0;k!=null&&k!=""&&(n=il(a,k));a=this.oa;b?(f.width=0,e.width=0,n>0&&(a=c==3?a+Math.floor(n/2):a,e.width+=n+a)):(f.height=n,e.height=n,n>0&&(e.height+=n+a));return{Ba:f,qb:e,Ac:!1}};v.Kh=function(a,b,c,e,f){var k="middle",n=0,r=0,t="";this.Ra=yj(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}};Od("aplos.chart.InsideAxisRenderer",Ir);function Jr(){Ir.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)} Wc(Jr,Ir);Od("aplos.chart.InsideGridlinesAxisRenderer",Jr);function Kr(){Ir.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)} Wc(Kr,Ir);Od("aplos.chart.InsideTicksAxisRenderer",Kr);function Lr(){qk.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)} Wc(Lr,qk);Od("aplos.chart.LabelsAxisRenderer",Lr);function Mr(){} Mr.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()}};Mr.prototype.dk=function(){};Mr.prototype.Oi=function(){return!1};Mr.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 Nr(){qk.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} Wc(Nr,qk);Nr.prototype.fk=function(a,b){(b===0||b===2)&&a.length>1&&(a[0].nh=1,a[a.length-1].nh=2)};Nr.prototype.Kh=function(a,b,c,e,f){b="middle";var k=0,n=0,r="",t=a.na,x=a.v;f=jl(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}};Od("aplos.chart.OuterJustifiedTicksAxisRenderer",Nr);function Or(){qk.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)} Wc(Or,qk);Od("aplos.chart.TicksAxisRenderer",Or);function Pr(){this.Qn=100;this.ih=Yp;for(var a=Qr,b=0,c=Xc(Object.values(a)),e=c.next();!e.done;e=c.next())e=e.value,b=Math.max(b,jh(e.tick,"\n"),jh(e.transition||"","\n"),jh(e.Fc||"","\n"));c=Xc(Object.values(a));for(e=c.next();!e.done;e=c.next())e=e.value,e.tick=Rr(e.tick,b)||"",e.transition=Rr(e.transition,b),e.Fc=Rr(e.Fc,b);this.yh=a;this.Hi=Sr;this.qh=null;this.lp=0} v=Pr.prototype;v.wk=function(a){(a=this.qh=a)&&Yq[a].Vb!==void 0&&Yq[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||Tr(c),k=1E3*Yq[f].Vb;f=a[0]>a[1];c=Kh(c);a=Kh(a);c[1]-c[0]===0&&(a=c=[c[0]-36E8,c[0]+36E8]);var n=+c[0]*k;c=+a[0]*k;a=+a[1]*k;var r=Ur(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||Vr(this,this.yh[r].tick),A=t||Vr(this,this.yh[r].Fc);t=t||Vr(this,this.yh[r].transition);var la=Wr(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?Kh(b,function(e){return e.value}):a};function Ur(a,b){for(var c=Xc(a.Hi),e=c.next();!e.done;e=c.next())if(e=e.value,Xr[e.unit]*e.interval>=b)return e;return a.Hi[a.Hi.length-1]} function Wr(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 vq(a,b,this.ih)};v.Ce=function(a,b,c){return Bq(a,b,c,this.ih)};function Vr(a,b){return b?Pq(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=Wr(b)||"YEAR",this.kf(c,b)}};function Tr(a){a=Kh(a);return a[0]>3E11&&a[0]<18E11?"time_ms":"timestamp"} function Rr(a,b){if(!a)return a;var c=jh(a||"","\n");return c1E13?"microseconds":"date":typeof f==="number"?f>1E13?"microseconds":"milliseconds":null;if(!f)throw Error("Unsupported date type.");var k=f==="microseconds"?.001:1,n=+a[0]*k,r=+a[1]*k,t=r=c[1]&&(a=es(this.Qh),r-n=es(b.Db)&&(b.Db=null);a=es(b.step)/a;aes(b.Db)&&(b.Db=b.step));this.Ng=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new oq;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())),gs(c,b.Db),A=!0):la.label=e(new Date(n.getTime()));x.push(la);gs(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?Kh(b,function(e){return e.value}):a};v.Bg=function(a,b){if(b.N)var c=new oq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=new oq(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+=hq(e,f);c=new oq(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 oq(a.getFullYear(),a.getMonth(),a.getDate(),Math.ceil(a.getHours()/b.O)*b.O);else if(b.ha)c=new oq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),Math.ceil(a.getMinutes()/b.ha)*b.ha);else if(b.v>=1)c=new oq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),Math.ceil(a.getSeconds()/b.v)*b.v);else if(b.v)c=new oq(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 js(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};hs.prototype.getDefaultViewport=hs.prototype.Dd;hs.prototype.getTicks=hs.prototype.Mb;hs.prototype.getNicingFunction=hs.prototype.Hg;hs.prototype.getDynamicTicks=hs.prototype.Bm;hs.prototype.setDynamicTicks=hs.prototype.Zg;hs.prototype.getIntIntervalsOnly=hs.prototype.Mm;hs.prototype.setIntIntervalsOnly=hs.prototype.Fk;hs.prototype.getNiceCoefficients=hs.prototype.an;hs.prototype.setNiceCoefficients=hs.prototype.vi;hs.prototype.getNumTicks=hs.prototype.bn;hs.prototype.setNumTicks=hs.prototype.wi;var is=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];Od("aplos.chart.BaseTickProvider",hs);function ks(){hs.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} Wc(ks,hs);ks.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};ks.prototype.Se=function(a,b){return Math.ceil(a[0]/b)*b};Od("aplos.chart.DataTickProvider",ks);function ls(){} ls.prototype.Ve=function(){return!0};ls.prototype.Mb=function(a,b,c,e,f){a=ms(c||a);b=[];f?(b=Uo(a,f,e),b.forEach(function(k){var n=!e;Math.log(Math.abs(+k.value))*Math.LOG10E%1===0?(k.label=n?ns(k.value):k.label,k.Lh="major"):(k.label="",k.Lh="minor")})):b=a;return b};ls.prototype.Dd=function(a,b,c){return Kh(ms(c||a))};function ms(a){a=a.filter(function(k){return k!==0});var b=Kh(a),c=b[0],e=b[1];c<=0&&e>=0&&(a=a.filter(function(k){return k>0}),c=gr(a));a=e>0?1:-1;b=Oh(e>0?c:-e);c=Math.log(e>0?e:-c)*Math.LOG10E;c=c%1?Math.floor(c+1):c;b===c&&(b>0?b--:c++);for(e=[];b<=c;b++)for(var f=1;f<10&&(e.push(a*(f+"e"+b)),b!==c);f++);a===1||e.reverse();return e} function ns(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",ls);function os(){this.hh=[]} os.prototype.Ve=function(){return!1};os.prototype.Mb=function(){return this.hh.map(function(a){return a&&a.value!==void 0?Vh(a):a})};os.prototype.Dd=function(a){return this.hh.length?Kh(this.hh,function(b){return b.value!=null?b.value:b}):a};os.prototype.Uk=function(a){this.hh=a.slice();return this};os.prototype.setTicks=os.prototype.Uk;os.prototype.getDefaultViewport=os.prototype.Dd;os.prototype.getTicks=os.prototype.Mb;Od("aplos.chart.ManualTickProvider",os);function ps(){hs.call(this)} Wc(ps,hs);ps.prototype.Bh=function(a,b,c,e){Math.abs(c[0]-c[1])>4E-10&&(c=[js(c[0]),js(c[1])]);if(c[0]>=0)var f=0;else if(c[1]<=0)f=b;else{if(b===1)return Kh(qs(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 qs(this,a,b,f,c,e)};function qs(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} Od("aplos.chart.QuantumTickProvider",ps);function rs(){hs.call(this);this.Af=new ps} Wc(rs,hs);rs.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 hs.prototype.Mb.call(this,a,b,c,e,f,k)};rs.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=Pe(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 Bs(a,b,c){var e=a.type.toLowerCase(),f=ws(a).scaleType,k=null,n=ws(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 wr(f);break;case "data":k=new ks;break;case "endpoints":k=new ks;k.Mg=!0;break;case "tight":e==="log"?k=new ls:e==="time"?k=new $r:e==="ordinal"?k=new wr(f):k=new rs;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 os,k.Uk(f);else throw Error('No tick values found for "fixed" tick provider');break;case "quantum":e==="time"?k=new Pr:k=new ps}k&&k.Ld&&(r=t.nicing||r,f=k,typeof r==="string"&&ts[r]?f.Ld(ts[r]):typeof r==="function"&&f.Ld(r));a.columnType&&k&&k.wk&&k.wk(a.columnType);k instanceof hs&&(t.integerOnly&&k.Fk(!!t.integerOnly),b?k.wi(b):c&&k.Zg(!0));return k} function ys(a,b){var c=b.ticks||null;c=c&&c.format?c.format:null;b=ws(b).tickFormatter(c);b!=null&&a.Tk(b)} function zs(a,b){b.extents&&b.extents.type&&b.extents.type==="fixed"&&Array.isArray(b.extents.values)&&a.Ok(b.extents.values)} function As(a,b){b.layout&&(b=b.layout,b.type&&b.type==="fixed"&&b.size!==void 0&&a.dh(+b.size))} function ws(a){var b=a.type.toLowerCase();if(Cs[b])return Cs[b];throw Error("Invalid axis scale: "+a.type);} Od("aplos.chart.AxisSpecParser",us);us.prototype.createMeasureAxisForSpec=us.prototype.kj;us.prototype.createDomainAxisForSpec=us.prototype.jj;var Cs={linear:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:qh(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:qh(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:qh(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:Qq(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 Ds(){} Wc(Ds,us);Od("aplos.chart.OldAxisSpecParser",Ds);var Es=new us;ss.current=Es;function Fs(){} Fs.prototype.ae=function(){};Fs.prototype.Qd=function(){};Od("aplos.chart.ShapeRenderer",Fs);function Gs(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=Gs.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=vj(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 Hs(a,b,c,e,f,k,n){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};of||pf?(c.y=e,c.dy=a.ka):(c.dy=e,c["dominant-baseline"]="middle");ti(b,c);b.style("fill",k);b.style("font-size",f*1.25+"px");b.text(n)} Od("aplos.chart.shaperenderer.BaseLabelShape",Gs);function Is(){Gs.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Wc(Is,Gs);Is.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")};Is.prototype.Lc=function(a){return a.select("g.aplos-box-triangle-right-shape")};Is.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;ti(a,{fill:r,width:ma+"px",height:ma+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});ti(A,{rx:2,ry:2,width:f*2,height:f*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});ti(la,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ ra+")"});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.BoxTriangleRight",Is);function Js(a,b){Gs.call(this,"aplos-circle-shape-group",a,b)} Wc(Js,Gs);Js.prototype.Dc=function(a){a.append("circle").attr("class","aplos-circle-shape")};Js.prototype.Lc=function(a){return a.select("circle.aplos-circle-shape")};Js.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){ti(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Circle",Js);function Ks(){} Ks.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)};Ks.prototype.Qd=function(a,b,c,e,f,k,n,r,t){ti(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.Cylinder",Ks);function Ls(a,b){Gs.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Wc(Ls,Gs);Ls.prototype.Dc=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Ls.prototype.Lc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Ls.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){var A=.866*f;ti(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});Hs(this,b,c,e+f-A,f,t,x)};Od("aplos.chart.shaperenderer.EquilateralTriangle",Ls);function Ms(){Gs.call(this,"aplos-error-shape-group",!0,!1)} Wc(Ms,Gs);Ms.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")};Ms.prototype.Lc=function(a){return a.select("g.aplos-error-shape")};Ms.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;ti(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f-la)+", "+(e-f-ma)+")"});ti(k,{d:ra,transform:"scale("+ta+")"});ti(n,{cx:f+la,cy:f+ma,r:f*.95,fill:"white","stroke-width":"0"});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.ErrorShape",Ms);function Ns(a,b,c){Gs.call(this,"aplos-oval-shape-group",b,c);this.v=a||1} Wc(Ns,Gs);Ns.prototype.Dc=function(a){a.append("ellipse").attr("class","aplos-oval-shape")};Ns.prototype.Lc=function(a){return a.select("ellipse.aplos-oval-shape")};Ns.prototype.Rc=function(a,b,c,e,f,k,n,r,t,x){ti(a,{cx:c,cy:e,ry:this.v>=1?f:f*this.v,rx:this.v>1?f/this.v:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Oval",Ns);function Os(){Gs.call(this,"aplos-pause-shape-group",!0,!1)} Wc(Os,Gs);Os.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")};Os.prototype.Lc=function(a){return a.select("g.aplos-pause-shape")};Os.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;ti(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f-la)+", "+(e-f-ma)+")"});ti(k,{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-2 28h-4V16h4v16zm8 0h-4V16h4v16z",transform:"scale("+ra+")"});ti(n,{cx:f+la,cy:f+ma,r:f*.9,fill:"white","stroke-width":"0"});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.PauseShape",Os);function Ps(a,b,c){Gs.call(this,"aplos-rect-shape-group",b,c);this.v=a||1} Wc(Ps,Gs);Ps.prototype.Dc=function(a){a.append("rect").attr("class","aplos-rect-shape")};Ps.prototype.Lc=function(a){return a.select("rect.aplos-rect-shape")};Ps.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;ti(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});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Rect",Ps);function Qs(){} Qs.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)};Qs.prototype.Qd=function(a,b,c,e,f,k,n,r,t){ti(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"butt",stroke:k,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.RectangleRange",Qs);function Rs(){Gs.call(this,"aplos-refresh-shape-group",!0,!1)} Wc(Rs,Gs);Rs.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")};Rs.prototype.Lc=function(a){return a.select("g.aplos-refresh-shape")};Rs.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);ti(a,{fill:r,width:A+"px",height:A+"px",viewBox:"0 0 "+A+" "+A,transform:"translate("+(c-f)+", "+(e-f)+") scale("+A/ma+")"});ti(k,{d:la});ti(n,{d:"M0 0h"+A+"v"+A+"H0z",fill:"none"});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.Refresh",Rs);function Ss(){Gs.call(this,"aplos-warning-shape-group",!0,!1)} Wc(Ss,Gs);Ss.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")};Ss.prototype.Lc=function(a){return a.select("g.aplos-warning-shape")};Ss.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;ti(a,{fill:r,width:la+"px",height:la+"px",viewBox:"0 0 "+la+" "+la,transform:"translate("+(c-f-ma)+", "+(e-f-n)+")"});ti(A,{d:ra,transform:"scale("+ta+")"});a=.866*f*.95;r=f*.95;ma=f+ma;n=f+n;ti(k,{points:ma+","+(n-a)+" "+(ma+r+","+(n+a)+" ")+(ma-r+","+(n+a)),fill:"white","stroke-width":"0"});Hs(this,b,c,e,f,t,x)};Od("aplos.chart.shaperenderer.WarningShape",Ss);function Ts(a,b){return new Js(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createCircleRenderer",Ts);function Us(){return new Ks} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createCylinderRenderer",Us);function Vs(a,b){return new Ls(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createEquilateralTriangleRenderer",Vs);function Ws(){return new Ms} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createErrorRenderer",Ws);function Xs(a,b,c){return new Ns(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createOvalRenderer",Xs);function Ys(){return new Os} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createPauseRenderer",Ys);function Zs(a,b,c){return new Ps(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRectRenderer",Zs);Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRectangleRangeRenderer",function(){return new Qs});function $s(){return new Rs} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createRefreshRenderer",$s);function at(a,b){return Zs(1,a,b)} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createSquareRenderer",at);function bt(){return new Ss} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createWarningRenderer",bt);function ct(){return new Is} Od("module$exports$aplos$chart$shaperenderer$ShapeRendererFactory.createBoxTriangleRightRenderer",ct);Od("aplos.chart.shaperenderer.ShapeRendererFactory",function(){});function dt(){this.v=Us()} v=dt.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=Vo(k,n?ta.time:ta.time/1E3);ta.chartY=0;sa=b.Cd()||Ct;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;Ln(b,c)}};v.render=function(a,b,c){var e=b.ub;b=Ln(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=vj(this),n=f.Jb,r=f.Yl,t=f.kd-4-10;ti(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);zj(A.node(),t);A.attr("dy","1em");Aj(A.node(),n.description);A=x.select("text.date").text(n.label);zj(A.node(),t);A.attr("dy","2.15em");Aj(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);zj(A.node(),t);var ma="";f.kb.forEach(function(ra){ma+=ra.label+" "+ra.description+"\n"});Aj(A.node(),ma);ti(A,{dy:"3.30em",display:null})}else A.attr("display","none");x.selectAll("text").attr("text-anchor",Ij(r?"right":"left"));f.kb.length>0&&(t=k.select("line.range-line"),x=fr(f.kb,function(ra){return Math.abs(n.ab-ra.ab)}),ti(t,{x1:(r?"-":"")+x,transform:"translate(0, 60)","pointer-events":"none"}));r=k.select("line.marker-line");ti(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();ti(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 Bt};v.od=function(){};v.de=function(){};v.Ab=function(){};function Ct(a){return Tq("%b %e")(a/1E3)} Od("aplos.chart.renderer.Annotation",Bt);var Dt={kl:0,nq:1};Od("google3.javascript.visualization.aplos.v2_0.chart.common.renderer.series.arclabelutils.ArcLabelPosition",Dt);Dt.INSIDE=0;Dt.OUTSIDE=1;function Et(a,b,c,e){this.Bb=a;this.N=Ft(b);this.Va=c;this.O=!!e;this.v=0} function Gt(a,b,c,e,f,k){var n=Ht().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}} Et.prototype.Rg=function(a){if(a==null)return this.v;this.v=a;return this};Et.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Bb.data[c]]},this));It(this,a.enter())};function It(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&&!of?Jt(a,b):Kt(a,b);Lt(a,b);Mt(b);b.filter(function(){return!vj(this).select(".arc-label").text()}).style("display","none")} function Jt(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(Tj(a.N));b.each(function(n){var r=this.getBoundingClientRect(),t=Math.round(r.width);r=Math.round(r.height);var x=vj(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 Mt(a){var b=null,c=[];a.each(function(f){var k=vj(this),n=k.select(".arc-label").node().getBoundingClientRect();n=new tt(n.left,n.top,n.width,n.height);var r=k.select(".arc-leader-line-tail");r.empty()||(r=r.node().getBoundingClientRect(),vt(n,new tt(r.left,r.top,r.width,r.height)));r=f.datum.startAngle;(f.datum.endAngle+r)/2Math.PI&&ut(f.rect,b)?f.ee.style("display","none"):(f.ee.style("display",""),e=f.rect)})} function Kt(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 Ij(t!==0&&e?t>0?"start":"end":"middle",k).call(this,n,r)}).each(function(n,r){hg(this,Tj(k)(n,r))})} function Lt(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 Ft(a){return function(b,c){return a(b.datum,c)}} ;function Nt(a,b,c){this.Bb=a;this.N=Ot(b);this.Va=c;this.v=0} Nt.prototype.Rg=function(a){if(a==null)return this.v;this.v=a;return this};Nt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Bb.data[c]]},this));Pt(this,a.enter())};function Pt(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+")"});Qt(a,b);Rt(a,b);b.empty()||(St(a,b),Tt(b),Sj(b).filter(function(){return!vj(this).select(".arc-label").text()}).style("display","none"))} function Qt(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=Oj(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",Ut(a,f)).append("div").classed("arc-label",!0).style("opacity",0).each(Nd(Vt,a.N));b.each(Nd(function(r,t){r=vj(this);var x=r.select(".arc-label"),A=x.node();tj(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();Wt(f,r,new tt(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 Vt(a,b,c){a=a(b,c,!0);var e=this;Array.isArray(a)?a.forEach(function(f){e.appendChild(f)}):vj(e).text(a)} function Ut(a,b){return Uh(Dt,function(c){return c===b},a).toLowerCase()} function Wt(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 Tt(a){var b=null,c=[];a.each(function(f){var k=vj(this),n=Sj(k.select("g"));if(n.style("display")!=="none"){var r=n.select(".arc-label").node().getBoundingClientRect();r=new tt(r.left,r.top,r.width,r.height);var t=k.select(".arc-leader-line-tail");t.empty()||(t=t.node().getBoundingClientRect(),vt(r,new tt(t.left,t.top,t.width,t.height)));t=f.datum.startAngle;(f.datum.endAngle+t)/2Math.PI&&ut(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 St(a,b){var c=Pj(b).node().getBoundingClientRect();b.each(Nd(function(e,f){var k=vj(this),n=Sj(k.select("g")),r=n.select(".arc-label").node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,x=Math.ceil(f.left-r.left)+5,A=(t>0?t:0)+(x>0?x:0);A&&(t=vj(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(),Wt(e.Bb.position,t,new tt(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 Rt(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 Ot(a){return function(b,c,e){return a(b.datum,c,e)}} ;function Xt(a,b){this.N=Ht().outerRadius(a).innerRadius(b);this.v=Yt();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=ok} v=Xt.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=Zt(c);var k=$t(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=au(b.key());n=n.selectAll(".arc-border").data(k,c);var r=vj(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=bu(this,r,k,f,b),n=cu(this,n,k,f,b)):(a=du(this,k,f,a,b),t=a.exit,r=a.update,f.length||(e=0));eu(this,r,n,k,b,e);fu(this,t,x,k,f,b,e);n.attr("visibility",Md(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);ek(e,function(){return c.color()(a,b)})};v.od=function(a,b,c,e){var f=new xi(c,e),k=this.Re(),n=this.Ed(),r=Di(f,new xi(0,0)),t=null;if(r>=n&&r<=k)for(f=(f.x>=0?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,k=$t(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=gu(this,a,b,r.data||{},n,c,e);break}return t};function gu(a,b,c,e,f,k,n){var r=c.measure(),t=c.domain(),x=c.color(),A=$t(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 xi(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};Yh(e,a);b!=void 0&&c!=void 0&&(e.relativeDistance=Di(new xi(e.datumX,e.datumY),new xi(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=au(f.key());e=e.selectAll(".arc").data(b,k);k=e.enter().append("g").attr("class","arc");var n=au(f.key());k.append("path").classed("pieSegment",!0).classed("empty-pie",!0).each(Nd(function(r,t,x){r=hu(r,x,b,c,n);this.N={startAngle:r,endAngle:r}},a));return{exit:e.exit(),update:k.merge(e)}} function bu(a,b,c,e,f){var k=b.enter().append("g").attr("class","arc"),n=k.append("path").classed("pieSegment",!0).attr("data-id",au(f.uh()));ek(n,au(f.color()));var r=au(f.key());n.each(Nd(function(t,x,A){t=hu(t,A,c,e,r);this.N={startAngle:t,endAngle:t}},a));return k.merge(b)} function cu(a,b,c,e,f){var k=b.enter().append("line").classed("arc-border",!0).attr("x1",0).attr("x2",0),n=au(f.key());k.each(Nd(function(r,t,x){this.O=hu(r,x,c,e,n)},a)).attr("transform",Nd(function(){return iu(this.O)},a));return k.merge(b)} function eu(a,b,c,e,f,k){var n=kn(f,"datumHoverState")?f.ld():function(){return 0},r=kn(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");ek(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=vj(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||sf||tf?null:mk(f.ub.hb.node());k?b.select("path").attrTween("d",Hv(a.N)):b.select("path").attr("d",a.N).each(function(ta){this.N={startAngle:ta.startAngle,endAngle:ta.endAngle};var sa=vj(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=vj(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.Qm,a,f),e=Gt(a.N,e,a.ha,a.ma,a.oa,a.ta),f=null,Mj()?f=new Nt(e,b,k):f=new Et(e,b,k,a.O),f.Rg(a.ka).render(t));k?c.attrTween("transform",Md(function(ta,sa,Aa){return Iv(Aa,iu(ta.startAngle))},a)):c.attr("transform",Md(function(ta){return iu(ta.startAngle)},a))} function fu(a,b,c,e,f,k,n){if(n){b=b.transition().duration(n);var r=au(k.key());k=a.N;b.select("path").attrTween("d",Jv(a,k,e,f,r));c=c.transition().duration(n);c.attrTween("transform",function(t,x){x=Pe(f,t);t=Kv(a,x,e,f,r);return Iv(this.getAttribute("transform"),iu(t))})}b.remove();c.remove()} v.Qm=function(a,b,c,e){b=b.data;return kn(a,"label")?a.label()(b,c,e):(a.Cd()||vl)(a.domain()(b,c))};function $t(a,b,c){var e=c.measure();a.v.value(e);a.ya?a.v.sort(function(f,k){return Lv(e(f),e(k))}):a.v.sort(null);return a.v(b.data)} function iu(a){return"rotate("+(a||0)*180/Math.PI+")"} function Hv(a){return function(b){var c=Mv(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 Jv(a,b,c,e,f){var k=Hv(b);return Nd(function(n,r){r=Pe(e,r);n=Kv(n,r,c,e,f);return k.call(this,{startAngle:n,endAngle:n})},a)} function hu(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":Sv(this,b),"dominant-baseline":Tv(this,b)}}};function Sv(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 Tv(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=vj(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 xi(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}ti(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",Ij(r["text-anchor"],n.label));t.style("fill",k.O)}})};v.remove=function(a){a.selectAll(".bar-label").remove()};v.Tf=function(){return!0};Nv.prototype.getMinBarLength=Nv.prototype.Xm;Nv.prototype.setMinBarLength=Nv.prototype.ti;Nv.prototype.getLabelPosition=Nv.prototype.nd;Nv.prototype.setLabelPosition=Nv.prototype.Ob;Nv.prototype.getLabelOrientation=Nv.prototype.Om;Nv.prototype.setLabelOrientation=Nv.prototype.Gk;Nv.prototype.getLabelColor=Nv.prototype.Le;Nv.prototype.setLabelColor=Nv.prototype.Vc;Nv.prototype.getLabelOffsetFunction=Nv.prototype.Nm;Nv.prototype.setLabelOffsetFunction=Nv.prototype.df;function Ov(a,b){return a?-4:-b-4} function Pv(a,b){return a?b-4:-4} function Qv(a,b){return a?b/2:-b/2} function Rv(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 Uv(){wt.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 Nv;this.ya=[this.v,new et];this.Za=ok;this.Qb=null} Wc(Uv,wt);function Vv(a,b){a.ya.push(b);return a} function Wv(a,b){Ve(a.ya,a.v);a.v=b;Vv(a,a.v)} v=Uv.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 Uv};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;At(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);Xv(this,sa,t)}ra&&t.Kc(Yv(this,x));ma=t.ub!=null?mk(t.ub.hb.node()):null;Ln(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){Ln(Da).barGroupCount=Ea;Ln(Da).maxBarStackSize=n})}b.length>0&&(a=b[0].ub,xt(this)=="x"&&a.Ke&&a.td&&b.forEach(function(Da){Da=Ln(Da);Da.barGroupIndex=Da.barGroupCount-1-Da.barGroupIndex}))};function Xv(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()||vl,b.label=c(a)):b.label="";break;case "measureValue":b.validValue&&b.measure!==0?(c=c.Tb()||vl,b.label=c(b.measure)):b.label=""}} v.Nb=function(a,b){var c=Ln(b),e=c.barData,f=b.zc(),k=b.ob(),n=kn(b,"datumHoverState")?b.ld():function(){return 0},r=kn(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=Zv(this,c.barGroupCount);c.barWeights=x;c.barWidth=$v(c.barGroupCount,c.barGroupIndex,x,t,this.oa,this.Ka,this.ma,this.ta);c.barOffset=aw(c.barGroupCount,c.barGroupIndex,x,t,this.oa,this.Ka,this.ma,this.ta);if(a.data.length==0)Ln(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=zt(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 Zv(a,b){var c=0,e=[];if(a.ka!=null){var f=a.ka.split(",");if(b>f.length)throw Error('Number of series exceeds length of weight pattern "'+a.ka+'"');for(var k=[],n=0;n=0){var r=b.measurePosition;var t=b.measurePosition+b.measureSize}else t=b.measurePosition,r=b.measurePosition+b.measureSize;b=f?Nh(c,t,r):Nh(c,r,t);return{domainDistance:a>=e&&a<=k?0:Math.abs(a-n),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:Di(new xi(n,b),new xi(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=kn(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);ek(k,function(){return c.color()(a,b)},!0);e&&e.toLowerCase()!=="none"&&k.attr("fill","transparent")};function ew(a){a=vj(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function gw(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 bw(a,b,c,e,f){var k=c.measureOffset,n=c.measure+k,r=Ar(f,k),t=Ar(f,n);if(ql(r)&&ql(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Ca);n?(n=k===0?Math.floor:Math.ceil,x=Math.ceil):(n=k===0?Math.ceil:Math.floor,x=Math.floor);r=n(r);t=x(t)}else t=r=null;n=Vo(e,c.domain);x=zr(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=Ar(f,k+ta),ma=Ar(f,k+sa))}a=xt(a)=="x";k=b.barWidth/2;b=zr(e,c.domain)+b.barOffset+k;c=Vo(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=Ln(b);return b.barData==null?a.data:b.barData};Uv.prototype.getBarPath=Uv.prototype.Cf;Uv.prototype.setCssName=Uv.prototype.xo;Uv.prototype.getRoundingRadiusPx=Uv.prototype.hn;Uv.prototype.setRoundingRadiusPx=Uv.prototype.zi;Uv.prototype.roundingRadiusPx=Uv.prototype.ko;Uv.prototype.getBarHorizontalMargin=Uv.prototype.lm;Uv.prototype.setBarHorizontalMargin=Uv.prototype.uk;Uv.prototype.barHorizontalMargin=Uv.prototype.El;Uv.prototype.setWeightPattern=Uv.prototype.Wk;Uv.prototype.getWeightPattern=Uv.prototype.yn;Uv.prototype.getBarGroupInnerPadding=Uv.prototype.jm;Uv.prototype.setBarGroupInnerPadding=Uv.prototype.rk;Uv.prototype.barGroupInnerPadding=Uv.prototype.Dl;Uv.prototype.getMinBarWidth=Uv.prototype.Ym;Uv.prototype.setMinBarWidth=Uv.prototype.Pk;Uv.prototype.getMaxBarWidth=Uv.prototype.Wm;Uv.prototype.setMaxBarWidth=Uv.prototype.eh;Uv.prototype.maxBarWidth=Uv.prototype.Pg;Uv.prototype.getStackedBarPadding=Uv.prototype.rn;Uv.prototype.setStackedBarPadding=Uv.prototype.Ei;Uv.prototype.stackedBarPadding=Uv.prototype.Qo;Uv.prototype.getGroupingType=Uv.prototype.Hm;Uv.prototype.setGroupingType=Uv.prototype.ag;Uv.prototype.getStack=Uv.prototype.Te;Uv.prototype.setStack=Uv.prototype.Od;Uv.prototype.stack=Uv.prototype.stack;Uv.prototype.getStrokeWidth=Uv.prototype.Gf;Uv.prototype.setStrokeWidth=Uv.prototype.Pd;Uv.prototype.strokeWidth=Uv.prototype.strokeWidth;Uv.prototype.autoBarLabels=Uv.prototype.Cl;Uv.prototype.setColorHighlightStrategy=Uv.prototype.Kd;Uv.prototype.getBorderRenderingStrategy=Uv.prototype.nm;Uv.prototype.setBorderRenderingStrategy=Uv.prototype.vo;Uv.prototype.setTransitionStrategy=Uv.prototype.No;Uv.prototype.getBarLabelDecorator=Uv.prototype.mm;function $v(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 aw(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(mw(t));n=(n=k.ub)?mk(n.hb.node(),0,4):null;Ln(k,{lineData:t,lineIndex:f,numLines:b.length,highlightShadowUrl:n})}};function mw(a){return function(b,c){return a[c].measureOffset}} v.Nb=function(a,b){var c=b.color(),e=b.Ee(),f=zt(this)==="y",k=b.ob(),n=b.zc(),r=n.bandwidth(),t=this.ma!=null?this.ma*r:this.ta||0,x=kn(b,"datumHoverState")?b.ld():function(){return 0},A=Ln(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=nw(this,ra,ma,sa,t);t=ow(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)Ln(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=Ln(b).lineData;var f=Ar(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=zt(this),t=xt(this);e&&(c.each(function(x){var A=vj(this);ti(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});Dj(this,t+"1",x.domainPosition);Dj(this,t+"2",x.domainPosition+x.domainSize);Dj(this,r+"1",f);Dj(this,r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.each(function(x,A,la){Dj(la[A],r+"1",f)}),a.each(function(x,A,la){Dj(la[A],r+"2",f)}));a.remove();n.each(function(x){var A=vj(this);e&&(A=A.transition(n));ti(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});Dj(this,t+"1",x.domainPosition);Dj(this,t+"2",x.domainPosition+x.domainSize);Dj(this,r+"1",x.measurePosition);Dj(this,r+"2",x.measurePosition)});return null};function nw(a,b,c,e,f){a.v&&(c=1,b=0);return(b===0?f:0)+e+(b+1===c?f:0)} function ow(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 pw(a,b,c,e,f,k){var n=b.measureOffset,r=b.measure+n;ql(r)&&ql(n)||(r=0);n=Vo(k,r);var t=Vo(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=Ln(b).lineData)for(f=0;f0&&n>xa.chartX&&(k=!0);n=xa.chartX;tw(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=Ar(e,xa.domainLowerBound,null),xa.domainUpperBoundPosition=Ar(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=Ar(f,xa.measureLowerBound,null),xa.measureUpperBoundPosition=Ar(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,zt(this),e,f)}};function sw(a,b,c){var e=a.ma;b.shapeRenderer&&(e=rw(b.shapeRenderer));return ln(c,"shapeRenderer",function(f){return f.shapeRenderer?rw(f.shapeRenderer):e})} function tw(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=Ar(b.ob(),0);f=Ln(b);var r=kn(b,"datumHoverState")?b.ld():function(){return 0};b=kn(b,"datumClickState")?b.Wd():function(){return 0};var t=c.node();uw(this,f.Fb||[],t,a,e,k,n,r,b);return c.selectAll(".point-group")};function uw(a,b,c,e,f,k,n,r,t){if(b.length===0)vw(a,c,e,f);else{c=vj(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(vj(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",Ij("middle")).attr("alignment-baseline","middle");break;case 2:ra.attr("display",null).attr("text-anchor",Ij("end")).attr("alignment-baseline","middle");break;case 3:ra.attr("display",null).attr("text-anchor",Ij("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= Vh(sa);a.ha&&(sa.Vj=e);sa.radius=0;sa.gr=sa.Vj;sa.hr=sa.Vj;sa=zt(a);a.v.update(vj(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&&(ti(x,k),ra&&ti(ra,b),ta=c.transition().duration(f));c=ta.select(".point");c.attr("display",function(sa){return n.contains(new xi(sa.chartX,sa.chartY))?null:"none"});c.each(function(sa,Aa){var xa=vj(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");ti(ta,k);b.dy=function(sa){return isNaN(sa.labelY)?null:sa.labelY};b.display=function(sa){return n.contains(new xi(sa.chartX,sa.chartY))?null:"none"};switch(a.N){case 1:case 4:b["text-anchor"]=Ij("middle");break;case 2:b["text-anchor"]=Ij("end");break;case 3:b["text-anchor"]=Ij("start");break;default:case 0:b.display="none"}c.text(function(sa){return sa.label});c.style("fill",a.ka);ti(c,b);ta.each(function(){var sa=zt(a);if(f){var Aa=vj(this).transition(ta);a.v.update(Aa,f,sa,n)}else a.v.update(vj(this),f,sa,n)})}} function vw(a,b,c,e){a.v.remove(vj(b),c,e);a=vj(b).selectAll(".point-group");b=vj(b).selectAll(".point");e&&(a=a.transition().duration(e),b=b.transition().duration(e),c={cx:function(f){return f.chartX},cy:c,r:function(f){return f.radius},fill:function(f){return f.color}},ti(a,{display:function(f){return f.validValue?null:"none"}}),ti(b,c));a.remove()} v.od=function(a,b,c,e,f,k){b=Ln(b).Fb;a=null;for(var n=Number.MAX_VALUE,r=[],t=0;t0&&t>za.chartX&&(n=!0);t=za.chartX;tw(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=Ar(f,Ba+za.domainLowerBound),za.domainUpperBoundPosition=Ar(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=Ar(k,Ba+za.measureLowerBound),za.measureUpperBoundPosition=Ar(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"+Vj(),Qj:Na})},this)}e.Fb=x;e.Ij=n;e.Mf=Da;this.N&&this.v.v.Nb(x,zt(this),f,k)}};v.render=function(a,b,c,e,f,k,n){var r=Ar(b.ob(),0),t=Ln(b),x=c.node();if(a.data.length!==0||x!=null){var A=c.select("g");A.node()&&A.classed("area-segments")||Uj(x,'');var la=fj(x);A=la[1];var ma=la[2],ra=la[3];x=la[4];la=la[5];Ew(this,c,t.Mf,b);Fw(this,t.Mf,A,r,e,k);Gw(this,t.Mf,ma,r,e,k);Hw(this,t.Ij,ra,r,e,k);Iw(this,t.Mf,la,r,e,k);this.N?this.v.render(a,b,vj(x),e,f,k,n):(b=b.Ph(),Ln(b,{}),this.v.render({name:a.name,data:[]},b,vj(x),e,f,k,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Gw(a,b,c,e,f,k){if(a.ka)if(b.length===0)Jw(a,c,e,f);else if(vj(c).attr("clip-path",k),f){k=vj(c).selectAll(".line-series").data(b);k.exit().remove();b=vj(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");ti(c,{"class":function(t){return t.Qj},fill:"none"});k=c.merge(k);var n=b.enter().append("path");ti(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=Kw().defined(function(t){return t.validValue}).curve(a.ha).x(function(t){return t.chartX}).y(e);f&&(ti(c,{stroke:function(t){return t.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),ti(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});ti(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}});ti(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 Lw(a,c,b),vj(c).selectAll(".line-series").data(b),vj(c).selectAll(".event-target").data(b);else Uj(c,"")} function Lw(a,b,c){for(var e="",f=Kw().defined(function(r){return r.validValue}).curve(a.ha).x(function(r){return a.Ca?Math.round(r.chartX):Math.round(r.chartX*100)/100}).y(function(r){r=ql(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(r*100)/100}),k=0;k';e+=''}Uj(b,e)} function Jw(a,b,c,e){var f=vj(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=Kw().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();vj(b).selectAll(".event-target").remove()} function Hw(a,b,c,e,f,k){b.length&&!a.N&&a.ka?(a=vj(c).attr("clip-path",k).selectAll(".isolate-datum").data(b),a.exit().remove(),b=a.enter().append("path").attr("stroke-linecap","round"),a=b.merge(a),c={d:function(n){return"M"+n.chartX+","+e+"h0"},stroke:function(n){return n.color},"stroke-width":function(n){return n.strokeWidth*2},"class":function(n){return"line-series isolate-datum"+(n.datumClass!=null?" "+n.datumClass:"")}},f&&(ti(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},ti(a,c)):Uj(c,"")} function Fw(a,b,c,e,f,k){if(a.ta)if(b.length===0)Mw(c,e,f);else{b=vj(c).attr("clip-path",k).selectAll(".area").data(b);b.exit().remove();c=b.enter().append("path").attr("class","area").attr("stroke-width",0);b=c.merge(b);var n=Nw().curve(a.Ka).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(ti(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});ti(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 Uj(c,"")} function Mw(a,b,c){a=vj(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=Nw().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 Iw(a,b,c,e,f,k){if(a.ya)if(b.length===0||a.N)Ow(c,e,f);else{b=vj(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");ti(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=Nw().curve(a.Ka).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(ti(c,{fill:function(r){return r.color},d:function(r){return n(r.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});ti(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.color},opacity:a.N?"0":".2",d:function(r){return n(r.xc)}})}else Uj(c,"")} function Ow(a,b,c){a=vj(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=Nw().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 Dw(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(Qw(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 Qw(a,b,c){c=c===void 0?!1:c;var e=ff(a,b,function(f,k){return f-k.chartX});if(e<0)return-e-1;if(c)for(;e=0;b--)this.removeBehavior(a[b]);return this};zx.prototype.removeAllBehaviors=zx.prototype.fo;zx.prototype.removeBehavior=function(a){a.wd(this);Ve(this.wf,a);return this};zx.prototype.removeBehavior=zx.prototype.removeBehavior;zx.prototype.Lb=function(){return this.Ic.Lb()};zx.prototype.getMarginTop=zx.prototype.Lb;zx.prototype.Pe=function(){return this.Ic.Pe()};zx.prototype.getMarginRight=zx.prototype.Pe;zx.prototype.Oe=function(){return this.Ic.Oe()};zx.prototype.getMarginBottom=zx.prototype.Oe;zx.prototype.Kb=function(){return this.Ic.Kb()};zx.prototype.getMarginLeft=zx.prototype.Kb;zx.prototype.Fg=function(){return new kj(this.Lb(),this.Pe(),this.Oe(),this.Kb())};zx.prototype.getMargins=zx.prototype.Fg;zx.prototype.Wc=function(a,b){this.Ic.Wc(a,b);return this};zx.prototype.setMargins=zx.prototype.Wc;zx.prototype.Fo=function(a){this.Ic=a;return this};zx.prototype.setLayoutManager=zx.prototype.Fo;zx.prototype.Wh=function(){this.Wa.nb("prelayout",this,this.Ic)};function Hx(a,b,c){b.Vg("chartDelegate",function(e){this.Wa.nb(nn[c].selectionChange,this,e)}.bind(a))} zx.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=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(!yf)for(yf={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++)for(k=c.concat(e[f].split("")),uf[f]=k,n=0;n>2];t=b[(t&3)<<4|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};zx.prototype.toSvgDataUrl=zx.prototype.bl;zx.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 vx;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};zx.prototype.toPngDataUrl=zx.prototype.Zo;zx.prototype.getStyle=function(){return this.Gi};function Ix(a,b,c){zx.call(this,bf(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})} Od("aplos.chart.SvgChartView",Ix);Pd(Ix,zx);var Jx=0;Ix.prototype.redraw=Ix.prototype.ke;Ix.prototype.xd=function(){Ix.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)};Ix.prototype.Ue=function(){return this.Ro};Ix.prototype.getSvg=Ix.prototype.Ue;Ix.prototype.bp=function(){var a=this.Ue().node(),b=document.createElement("style"),c=Gj(a),e=sj(a);c.push("svg{font:"+e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily+"}");b.textContent=c.join("\n");c=document.createElement("defs");c.appendChild(b);a.insertBefore(c,a.firstChild);b=(new XMLSerializer).serializeToString(a);a.removeChild(c);return b};Ix.prototype.toSvgString=Ix.prototype.bp;Ix.prototype.getNearestDatumDetails=Ix.prototype.Ef;var Kx=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1");function Lx(a,b,c){var e=this;Ix.call(this,bf(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.Qb=new Cn(this);this.ta={};this.Uf={};this.Rk("hover",new un);this.Za=new Mx;this.on("viewportChange.seriesChartView",function(){e.Za.reset()})} Pd(Lx,Ix);Od("aplos.chart.SeriesChartView",Lx);Lx.prototype.Rk=function(a,b){b.Vg("clearSelectedDatumDetailsCache",this.ql.bind(this));var c=this.Uf,e=nn[a].selectionChange,f=this.Wa;f.O.hasOwnProperty(e)||tn(f,[e]);e=c[a];e!=null&&e.Vg("chartDelegate",null);c[a]=b;Hx(this,b,a);return this};Lx.prototype.setSelectionModel=Lx.prototype.Rk;Lx.prototype.Ko=function(a){Dn(this.Qb,a);return this};Lx.prototype.setSeriesDefaults=Lx.prototype.Ko;Lx.prototype.tb=function(a){return this.ta[a||"__aplosDefault__"]||this.ta.__aplosDefault__};Lx.prototype.getRenderer=Lx.prototype.tb;Lx.prototype.Bn=function(a){return!!this.ta[a||"__aplosDefault__"]};Lx.prototype.hasRenderer=Lx.prototype.Bn;Lx.prototype.eg=function(a,b){b?(b.type&&(b=this.getStyle().zj(b)),this.ta[a]=b):delete this.ta[a];return this};Lx.prototype.setRenderer=Lx.prototype.eg;Lx.prototype.ei=function(a){a.type&&(a=this.getStyle().zj(a));this.ta.__aplosDefault__=a;return this};Lx.prototype.setDefaultRenderer=Lx.prototype.ei;Lx.prototype.ci=function(a,b){a=this.Gg(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.Uf[mn[b]||"hover"]||null).Bi(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};Lx.prototype.selectDatum=Lx.prototype.ci;Lx.prototype.oo=function(a){this.Wa.nb("seriesMouseover",this,a,vi)};Lx.prototype.selectSeries=Lx.prototype.oo;Lx.prototype.Ll=function(a){(this.Uf[mn[a]||"hover"]||null).deselectAll()};Lx.prototype.clearSelections=Lx.prototype.Ll;Lx.prototype.Gg=function(a,b,c){var e=this.O||[],f=this.N||[];if(!e||!f)return[];if(vi){var k=ui(this.hb.node());var n=k[0];k=k[1]}for(var r=[],t=0;t0){if(vi){var e=ui(this.hb.node());var f=e[0];e=e[1]}for(a=0;a0?a[0]-this.Kb():ui(this.hb.node())[0];a=a&&a.length>1?a[1]-this.Lb():ui(this.hb.node())[1];if(this.v&&(b<0||b>this.Ya())||!this.v&&(a<0||a>this.wb()))return[];for(var e=new tt(this.Kb(),this.Lb(),this.Ya(),this.wb()),f=new xi(b+e.left,a+e.top),k=[],n=0;n=0;k--){var n=a.v=b[k];f=ay(n,e,!0,a)&&f}n=a.v=c;f=ay(n,e,!0,a)&&f;f=ay(n,e,!1,a)&&f;if(b)for(k=0;k0&&athis.N&&this.show():ty(this)};function ty(a){a.oa.stop();sp(a.ma);a.ma=null} v.od=function(a,b){return this.ta(a,b)};ry.prototype.setHovercardContainerStyle=ry.prototype.Do;ry.prototype.hide=ry.prototype.Mh;ry.prototype.followClosestSeries=ry.prototype.tj;ry.prototype.followTopMostSeries=ry.prototype.am;ry.prototype.followNamedSeries=ry.prototype.Zl;ry.prototype.getPlacer=ry.prototype.en;ry.prototype.setPlacer=ry.prototype.xi;ry.prototype.placer=ry.prototype.bo;ry.prototype.getContentRenderer=ry.prototype.Df;ry.prototype.setContentRenderer=ry.prototype.af;ry.prototype.contentRenderer=ry.prototype.xg;ry.prototype.getShowDelayMs=ry.prototype.mn;ry.prototype.setShowDelayMs=ry.prototype.Sk;ry.prototype.showDelayMs=ry.prototype.Oo;ry.prototype.getTransitionMs=ry.prototype.xn;ry.prototype.setTransitionMs=ry.prototype.Vk;ry.prototype.transitionMs=ry.prototype.jf;ry.prototype.getClassName=ry.prototype.rm;ry.prototype.setClassName=ry.prototype.vk;ry.prototype.className=ry.prototype.className;Od("aplos.chart.behavior.Hovercard",ry);function zy(){this.v=null;this.N=!1} v=zy.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);Dy(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:Dy(f)&&(b+="\\"),b+=f}}return b+"$"} function Fy(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 Gy(){} Gy.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 Hy=new Gy;Hy=function(){function a(ua,oc,gd,Uc){gd=gd||{};for(Uc=ua.length;Uc--;gd[ua[Uc]]=oc);return gd} 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],hc=[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],ic=[1,45],pb=[1,46],qb=[1,116],cb=[1,117],rb=[1,118],lc=[1,119],pc=[1,120],uc=[1,121],zc=[1,122],rc=[1,123],Ac=[1,124],Bb=[1,125],Gc=[1,126],Ic=[1,128],Hc=[1,127],nc=[1,129],Bc=[1,130],Cc=[1,131],Dc=[1,132],sc=[1,133],qc=[1,134],Ec=[1,135],vc=[1,136],wc=[1,137],xc=[1,138],yc=[1,139],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],vf=[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],re=[2,37],Xe=[1,336],ke=[5,12,17,54,96,97,98,99],vk=[96,97],Ci={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,oc,gd,Uc,hd,ya){ua=ya.length-1;switch(hd){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:Fy(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:hd=ya[ua-1].pathParts.slice();if(hd.length>2)throw Error("Too many path parts.");oc=hd.pop();this.qa={type:"function",namespace:hd.pop(),name:oc,fullName: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:hd=[];for(oc=0;oc2&&ee.push("'"+this.hg[mh]+"'");var Gn=Jd.fh?"Parse error on line "+(lh+1)+":\n"+Jd.fh()+"\nExpecting "+ee.join(", ")+", got '"+(this.hg[Gd]||Gd)+"'":"Parse error on line "+(lh+1)+": Unexpected "+(Gd==1?"end of input":"'"+(this.hg[Gd]|| Gd)+"'");this.parseError(Gn,{text:Jd.match,dl:this.hg[Gd]||Gd,line:Jd.Wb,fr:xf,Xq:ee})}if($d[0]instanceof Array&&$d.length>1)throw Error("Parse Error: multiple actions possible at state: "+ye+", token: "+Gd);switch($d[0]){case 1:oc.push(Gd);gd.push(Jd.Xb);Uc.push(Jd.Ta);oc.push($d[1]);Gd=null;Bi?(Gd=Bi,Bi=null):(wk=Jd.Td,ya=Jd.Xb,lh=Jd.Wb,xf=Jd.Ta,xk>0&&xk--);break;case 2:ee=this.hk[$d[1]][1];Tf.qa=gd[gd.length-ee];Tf.Ui={be:Uc[Uc.length-(ee||1)].be,Hd:Uc[Uc.length-1].Hd,md:Uc[Uc.length-(ee||1)].md,ud:Uc[Uc.length-1].ud};Fn&&(Tf.Ui.range=[Uc[Uc.length-(ee||1)].range[0],Uc[Uc.length-1].range[1]]);ye=this.Sh.apply(Tf,[ya,wk,lh,wf,$d[1],gd,Uc].concat(En));if(typeof ye!=="undefined")return ye;ee&&(oc=oc.slice(0,-1*ee*2),gd=gd.slice(0,-1*ee),Uc=Uc.slice(0,-1*ee));oc.push(this.hk[$d[1]][0]);gd.push(Tf.qa);Uc.push(Tf.Ui);$d=hd[oc[oc.length-2]][oc[oc.length-1]];oc.push($d);break;case 3:return!0}}}};Ci.Oj=function(){return{Ni:1,parseError:function(ua,oc){if(this.Nc.ak)this.Nc.ak.parseError(ua,oc);else throw Error(ua);},Eo:function(ua,oc){this.Nc=oc||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 oc=ua.length,gd=ua.split(/(?:\r\n?|\n)/g);this.Zb=ua+this.Zb;this.Xb=this.Xb.substr(0,this.Xb.length-oc);this.offset-=oc;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);gd.length-1&&(this.Wb-=gd.length-1);var Uc=this.Ta.range;this.Ta={be:this.Ta.be,Hd:this.Wb+1,md:this.Ta.md,ud:gd?(gd.length===ua.length?this.Ta.md:0)+ua[ua.length-gd.length].length-gd[0].length:this.Ta.md-oc};this.options.Rf&&(this.Ta.range= [Uc[0],Uc[0]+this.Td-oc]);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(),oc=Array(ua.length+1).join("-");return ua+this.hp()+"\n"+oc+"^"},Zk:function(ua,oc){var gd;if(this.options.Yi){var Uc={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&&(Uc.Ta.range=this.Ta.range.slice(0))}if(gd=ua[0].match(/(?:\r\n?|\n).*/g))this.Wb+=gd.length;this.Ta={be:this.Ta.Hd,Hd:this.Wb+1,md:this.Ta.ud,ud:gd?gd[gd.length-1].length-gd[gd.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,oc,this.Hb[this.Hb.length-1]);this.done&&this.Zb&&(this.done=!1);if(ua)return ua;if(this.mg)for(var hd in Uc)this[hd]=Uc[hd];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 oc=this.tl(),gd=0;gdUc[0].length)){var Uc=ua;var hd=gd;if(this.options.Yi){Uc=this.Zk(ua,oc[gd]);if(Uc!==!1)return Uc;if(this.mg)Uc=!1;else return!1}else if(!this.options.flex)break}return Uc?(Uc=this.Zk(Uc,oc[hd]),Uc!==!1?Uc:!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,oc,gd){switch(gd){case 1:return 67;case 2:return 144;case 3:return 150;case 4:return 151;case 5:return 145;case 6:return 70;case 7:return 146;case 8:return 147;case 9:return 148;case 10:return 149;case 11:return 127;case 12:return 73;case 13:return 43;case 14:return 45;case 15:return 65;case 16:return 51;case 17:return 52;case 18:return 93;case 19:return 128;case 20:return 129;case 21:return 130;case 22:return 131;case 23:return 92;case 24:return 100;case 25:return 66;case 26:return 103;case 27:return 102;case 28:return 101;case 29:return 105;case 30:return 106;case 31:return 107;case 32:return 108;case 33:return 109;case 34:return 110;case 35:return 111;case 36:return 134;case 37:return 112;case 38:return 63;case 39:return 135;case 40:return 64;case 41:return 60;case 42:return 62;case 43:return 61;case 44:return 140;case 45:return 141;case 46:return 136;case 47:return 137;case 48:return 58;case 49:return 59;case 50:return 113;case 51:return 113;case 52:return 114;case 53:return 115;case 54:return 116;case 55:return 117;case 56:return 118;case 57:return 119;case 58:return 120;case 59:return 121;case 60:return 122;case 61:return 123;case 62:return 124;case 63:return 125;case 64:return 126;case 65:return 138;case 66:return 133;case 67:return 142;case 68:return 139;case 69:return 143;case 70:return 84;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 89;case 76:return 32;case 77:return 33;case 78:return 35;case 79:return 34;case 80:return 69;case 81:return 43;case 82:return 45;case 83:return 38;case 84:return 39;case 85:return 40;case 86:return 41;case 87:return 36;case 88:return 37;case 89:return 37;case 90:return 55;case 91:return 42;case 92:return 44;case 93:return 71;case 94:return 72;case 95:return 46;case 96:return 74;case 97:return 47;case 98:return 75;case 99:return 48;case 100:return 76;case 101:return 81;case 102:return 82;case 103:return this.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(oc.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=Ci;Ci.v=b;return new b}();function Iy(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 Jy(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 Ky(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 Ly(a,b){Iy("TRUNC(X, Y)","X",a);Iy("TRUNC(X, Y)","Y",b);Jy("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 My(a,b){Iy("LOG(X, Y)","X",a);Iy("LOG(X, Y)","X",b);return a==null||b==null?null:+a/+b} ;function Ny(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 Oy[x].apply(null,arguments)})} var Oy={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?a+kh(" ",Number(c)-a.length):kh(" ",Number(c)-a.length)+a},f:function(a,b,c,e,f){e=a.toString();isNaN(f)||f==""||(e=parseFloat(a).toFixed(f));var k=Number(a)<0?"-":b.indexOf("+")>=0?"+":b.indexOf(" ")>=0?" ":"";Number(a)>=0&&(e=k+e);if(isNaN(c)||e.length>=Number(c))return e;e=isNaN(f)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(f);a=Number(c)-e.length-k.length;b.indexOf("-",0)>=0?e=k+e+kh(" ",a):(b=b.indexOf("0",0)>=0?"0":" ",e=k+kh(b,a)+e);return e},d:function(a,b,c,e,f,k,n,r){return Oy.f(parseInt(a,10),b,c,e,0,k,n,r)}};Oy.i=Oy.d;Oy.u=Oy.d;function Py(a,b){if(a==null)return!1;if(b.length===0)return!0;b=Xc(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 Qy(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 Ry(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 Yy(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 Zy(a){if(typeof a==="number"){if(a===Infinity)return"inf";if(a===-Infinity)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function $y(a,b){var c=az;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Xc(Sh(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new bz(a,k,b[f]))}} function bz(a,b,c){this.O=a;this.N=b;this.v=c} bz.prototype.call=function(){return this.apply(ud.apply(0,arguments))};bz.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)};bz.prototype.La=function(a){return this.v.La?this.v.La.call(null,a):Wy(this.O,this.N,a)};var az=new function(){this.v=new Map};$y("",{AVG:{vb:Mp},COUNTIF:{vb:Pp},SUM:{vb:Np},MIN:{vb:Qp},MAX:{vb:Rp},COUNT:{vb:Op},COUNT_DISTINCT:{vb:Sp},NTH_QUANTILE:{vb:Tp},VARIANCE:{vb:Vp},STDDEV:{vb:Wp},"HLL_COUNT.MERGE":{vb:Xp},"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){Iy("ABS(X)","X",a);return a!=null?Math.abs(+a):null}},SIGN:{va:1,wa:1,ua:function(a){Iy("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){Iy("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){Iy("IS_NAN(X)","X",a);return a!=null?isNaN(+a):null},tc:"IS_NAN"},IEEE_DIVIDE:{va:2,wa:2,ua:My},SQRT:{va:1,wa:1,ua:function(a){Iy("SQRT(X)","X",a);Ky("SQRT(X)","X",a,0,Infinity);return a!=null?Math.sqrt(+a):null}},POWER:{va:2,wa:2,ua:function(a,b){Iy("POWER(X, Y)","X",a);Iy("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){Iy("LOG(X, Y)","X",a);Iy("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;Ky("LOG(X, Y)","X",a,0,Infinity);Ky("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:Ly},CEILING:{va:1,wa:1,ua:function(a){Iy("CEILING(X)","X",a);return a!=null?Math.ceil(+a):null}},FLOOR:{va:1,wa:1,ua:function(a){Iy("FLOOR(X)","X",a);return a!=null?Math.floor(+a):null}},COS:{va:1,wa:1,ua:function(a){Iy("COS(X)","X",a);return a!=null?Math.cos(+a):null}},COSH:{va:1,wa:1,ua:function(a){Iy("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){Iy("ACOS(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Ky("ACOS(X)","X",a,-1,1);return a!=null?Math.acos(+a):null}},ACOSH:{va:1,wa:1,ua:function(a){Iy("ACOSH(X)","X",a);if(a===-Infinity)return NaN;Ky("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){Iy("SIN(X)","X",a);return a!=null?Math.sin(+a):null}},SINH:{va:1,wa:1,ua:function(a){Iy("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){Iy("ASIN(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Ky("ASIN(X)","X",a,-1,1);return a!=null?Math.asin(+a):null}},ASINH:{va:1,wa:1,ua:function(a){Iy("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){Iy("TAN(X)","X",a);return a!=null?Math.tan(+a):null}},TANH:{va:1,wa:1,ua:function(a){Iy("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){Iy("ATAN(X)","X",a);return a!=null?Math.atan(+a):null}},ATANH:{va:1,wa:1,ua:function(a){Iy("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){Iy("ATAN(Y, X)","X",a);Iy("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:Ny.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 Xy(a,-2147483648,2147483647);case "INT64":return Xy(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return Xy(a,0,1.8446744073709552E19);case "FLOAT":return Yy(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return Yy(a);case "BOOL":return nr(a);case "STRING":return Zy(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:uq},DATE:{va:1,wa:2,ua:function(a,b){return vq(a,"DAY",b)}},DATETIME:{va:1,wa:1,ua:uq},AND:{va:2,ua:function(){return Sy("AND",ud.apply(0,arguments))},La:function(a){return Ty(" AND ",a)}},OR:{va:2,ua:function(){return Sy("OR",ud.apply(0,arguments))},La:function(a){return Ty(" OR ",a)}},"+":{va:2,ua:function(){return Ry("+",ud.apply(0,arguments))},La:function(a){return Ty("+",a)}},"-":{va:2,ua:function(){return Ry("-",ud.apply(0,arguments))},La:function(a){return Ty("-",a)}},"*":{va:2,ua:function(){return Ry("*",ud.apply(0,arguments))},La:function(a){return Ty("*",a)}},"/":{va:2,ua:function(){return Ry("/",ud.apply(0,arguments))},La:function(a){return Ty("/",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 Qy("EQUAL",a,b)},La:function(a){return Ty("=",a)},tc:"="},NOT_EQUAL:{va:2,wa:2,ua:function(a,b){return Qy("NOT_EQUAL",a,b)},La:function(a){return Ty("!=",a)},tc:"!="},LESS:{va:2,wa:2,ua:function(a,b){return Qy("LESS",a,b)},La:function(a){return Ty("<",a)},tc:"<"},LESS_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return Qy("LESS_OR_EQUAL",a,b)},La:function(a){return Ty("<=",a)},tc:"<="},GREATER:{va:2,wa:2,ua:function(a,b){return Qy("GREATER",a,b)},La:function(a){return Ty(">",a)},tc:">"},GREATER_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return Qy("GREATER_OR_EQUAL",a,b)},La:function(a){return Ty(">=",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)}}});$y("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{vb:Up},EXTRACT_POINT_DOUBLE:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{vb:Up}});function cz(){this.ma={};this.ta={};this.oa={};this.ka=[];this.na={};this.ha=[];this.N=null;this.ya=[];this.O=[];this.v={}} v=cz.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)?Qe(a,function(b){dz(this,b,{Bd:"decimal",hf:null})},this):dz(this,a,{Bd:"decimal",hf:null});return this};v.Al=function(a){Array.isArray(a)?Qe(a,function(b){dz(this,b,{Bd:"boolean",hf:null})},this):dz(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&&Yq[a].jc==="number";return b?!0:!1};function dz(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: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.yl=function(a,b,c){b=b?b:ez;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(lr(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||Pe(a,this.N)>=0||df(a,0,0,this.N);return a};Od("aplos.data.Projection",cz);cz.prototype.getHierarchy=cz.prototype.Im;cz.prototype.clearFilters=cz.prototype.Jl;cz.prototype.getFilters=cz.prototype.Gm;cz.prototype.setAllowCachedSince=cz.prototype.ro;cz.prototype.filter=cz.prototype.filter;cz.prototype.columnEquals=cz.prototype.Ml;cz.prototype.onlyTop=cz.prototype.Zn;cz.prototype.limit=cz.prototype.Pj;cz.prototype.aggregate=cz.prototype.yl;cz.prototype.on=cz.prototype.on;cz.prototype.hasOutputColumn=cz.prototype.An;cz.prototype.derivePostAggregation=cz.prototype.Sl;cz.prototype.deriveColumn=cz.prototype.Rl;cz.prototype.addExpression=cz.prototype.wl;cz.prototype.asBoolean=cz.prototype.Al;cz.prototype.asNumber=cz.prototype.Bl;cz.prototype.oneSeriesPer=cz.prototype.Yn;cz.prototype.oneColumnPer=cz.prototype.Xn;cz.prototype.setOrdering=cz.prototype.oe;cz.prototype.clearOrdering=cz.prototype.Kl;cz.prototype.orderBy=cz.prototype.Yj;function fz(){var a=a===void 0?Hy:a;var b=b===void 0?az:b;this.N=a;this.v=b} function gz(a,b){var c=c===void 0?hz:c;var e=iz(a,b),f=new jz(a.v,c);return function(k){return kz(e,f,k)}} function iz(a,b){a=a.N.parse(b);if(a===null)throw Error("Got a null parse tree.");return a} function kz(a,b,c){switch(a.type){case "column":a=Xc(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=ih(f));return f} function qz(a,b){var c=b.getExpression().trim().replace(/ +/," ").trim().split(" ");if(c.length!==2)throw Error("nest expression requires two parameters");b=c[0];var e=c[1].split("."),f={nest_label:"NEST_TOP",nest_children:[],nest_child_map:{}};a=Th(a.v[a.v.length-1],b.split("."));if(a==null)return null;if(!Ed(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var n=f;(Th(k,e)||"").split("|").forEach(function(r){var t=n.nest_child_map[r];t|| (t={nest_label:r,nest_children:[],nest_child_map:{}},n.nest_child_map[r]=t,n.nest_children.push(t));n=t});n.nest_children.push(k)});return f} ;function rz(a){this.v=a;this.O=this.N=-1;this.ha=0} rz.prototype.next=function(){this.N++;var a=this.v[this.N];a==="\n"?(this.ha++,this.O=-1):this.O++;return a};rz.prototype.index=function(){return this.N};function sz(a,b){if(b<0)throw Error("CharacterIterator can only skip forward");for(var c=0;c0&&this.N.Qc(new Cz(a)),this.ma(b);this.O+=a;return!0};Ez.prototype.ma=function(a){if(tz(a,"#each ",1)){var b=new wz;this.N.Qc(b);this.v=new Gz(b,"each",a);sz(a,6)}else tz(a,"#if ",1)?(b=new yz,this.N.Qc(b),this.v=new Gz(b,"if",a),sz(a,4)):tz(a,"#first ",1)?(b=new vz,this.N.Qc(b),this.v=new Gz(b,"first",a),sz(a,7)):tz(a,"#nest ",1)?(b=new zz,this.N.Qc(b),this.v=new Gz(b,"nest",a),sz(a,6)):tz(a,"#partial ",1)?(b=new Az,this.N.Qc(b),this.v=new Gz(b,"partial",a),sz(a,9)):tz(a,"#html ",1)?(b=new xz,this.N.Qc(b),this.v=new Fz(b,a),sz(a,6)):(b=new lz,this.N.Qc(b),this.v=new Fz(b,a));return!0};Ez.prototype.close=function(a){this.v!=null&&this.v.close(a);this.O.length>0&&(this.N.Qc(new Cz(this.O)),this.O="");return this.N};function Gz(a,b,c){Ez.call(this,a,c);this.na="{{/"+b+"}}";this.ka=new Fz(a,c)} Wc(Gz,Ez);Gz.prototype.ma=function(a){if(tz(a,this.na,-1))return sz(a,this.na.length-2),!1;if(tz(a,"/",1))throw Error("Attempt to close the wrong expression [row:"+a.ha+", col:"+a.O+"] expected "+this.na+" template:"+a.v);return Ez.prototype.ma.call(this,a)};Gz.prototype.ha=function(a,b){return this.ka?(this.ka.ha(a,b)||(this.ka=null),!0):Ez.prototype.ha.call(this,a,b)};Gz.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 Hz(a){this.v=(new Dz).parse(a)} ;function Iz(){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 Fi(12,12);this.ta=new sl} v=Iz.prototype;v.Hk=function(a){this.ya=a;this.v=null;return this};v.Xf=function(a){this.N=Jz(this,a||{});return this};v.Ag=function(){this.N==null&&(this.N=Jz(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=Jz(this,{}));var e=this.N;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.ll)}b={mainDetail:b,details:c};if(!this.v){c=this.ka||"";var f=this.ma||"",k=this.O||"",n=this.oa||"",r=this.ha||"";c===""&&f===""&&k===""&&r===""&&(k=this.Ca);c=this.ya.replace(/{{#template header}}/,c).replace(/{{#template seriesCategory}}/,f).replace(/{{#template body}}/,k).replace(/{{#template annotation}}/,n).replace(/{{#template footer}}/,r);this.v=new Hz(c)}b=new nz(b,e);this.v.v.accept(b);e=an(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 Jz(a,b){var c=jn();c["svg-sample"]=a.ta.v(a.Ha);Yh(c,b);return c} v.ll=function(a,b){return a.chartY!==b.chartY?a.chartY-b.chartY:a.chartX-b.chartX};Iz.prototype.setLegendKey=Iz.prototype.ef;Iz.prototype.getFooterTemplate=Iz.prototype.Cg;Iz.prototype.setFooterTemplate=Iz.prototype.Zf;Iz.prototype.getAnnotationTemplate=Iz.prototype.Ch;Iz.prototype.setAnnotationTemplate=Iz.prototype.di;Iz.prototype.getBodyTemplate=Iz.prototype.zg;Iz.prototype.setBodyTemplate=Iz.prototype.Wf;Iz.prototype.getSeriesCategoryTemplate=Iz.prototype.Kg;Iz.prototype.setSeriesCategoryTemplate=Iz.prototype.fg;Iz.prototype.getHeaderTemplate=Iz.prototype.Dg;Iz.prototype.setHeaderTemplate=Iz.prototype.dg;Iz.prototype.getOrdering=Iz.prototype.Ff;Iz.prototype.setOrdering=Iz.prototype.oe;Iz.prototype.getConversionFunctionMap=Iz.prototype.Ag;Iz.prototype.setConversionFunctionMap=Iz.prototype.Xf;Iz.prototype.setMainTemplate=Iz.prototype.Hk;var Kz=!0;Od("aplos.spec.flags.setEnableNewTemplateContentRenderer",function(a){Kz=a});function Lz(){this.O=this.N=this.ka=null;this.oa="{{measure}}";this.v=this.ha=null;this.na="series_asc";this.ta=new Fi(12,12);this.ma=new sl} v=Lz.prototype;v.De=function(a){return a==null?this.Ag():this.Xf(a)};v.Xf=function(a){this.v=Mz(this,a||{});return this};v.Ag=function(){this.v===null&&(this.v=Mz(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=Mz(this,{}));var e=this.v;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.ml)}var f=this.ka||"",k=this.ha||"",n=this.O;f===""&&this.N==null&&n==null&&k===""&&(n=this.oa);n=n||"";var r=!1,t=void 0,x;a:{if(f!==""&&k!==""){if(!Nz.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)&&Xm(a,b,t,e,void 0),x=vj(a).select(".aplos-placeholder"),t=x.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,x.remove()):(f&&Xm(a,b,f,e,void 0),f=a);x=void 0;for(A=0;A0&&!e.empty()&&k=k?Vz.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?Vz.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=Vz.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"));cA(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function dA(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 $z(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(aA(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=dA(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=Vz.wj(a.O,b,a.v)-(n-k.top)-k.kp,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.Qg)&&(t[x+=1]=[],A=ta);t[x].push(ma)},a));f.remove();return t} function cA(a,b){var c=b.Pa.select(".aplos-legend");Vz.eo(b,a.O,a.v,c);c.attr("data-position",Md(function(){var e=Uh(Sz,function(f){return Uz(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){eA(this,b);b.empty()||vj(b.node().parentElement).select(".aplos-legend-box-cell").style("width",this.ta.width+"px");var c=0;b.select(".aplos-legend-value").each(function(){c=Math.max(c,this.offsetWidth)});b.filter(function(e,f){return f===0}).select(".aplos-legend-value-cell").style("width",c+"px")};function eA(a,b){var c=a.Ha||jn();c["svg-sample"]||(c["svg-sample"]=a.Ja.v(a.ta));b.each(Nd(function(e,f){e=Ym(f,""+(f.categorySeparator?e.xf:e.xh)+"
",c)[0];for(e=vj(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function bA(a){a.each(function(){vj(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} v.xl=function(a,b){b.Be(new fA(a,this))};function aA(a){return a.xf!=null?"aplos-legend-table-category":"aplos-legend-table"} v.Ho=function(a){this.Cc=a;return this};Wz.prototype.setMinPreferredLayoutHeight=Wz.prototype.Ho;function fA(a,b){this.N=a;this.v=b} fA.prototype.Gh=function(){var a={position:gA(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};fA.prototype.jg=function(a){Xz(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=gA(this),e=Vg(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=vj(this).selectAll(".aplos-legend-entry");x.size()>t&&(t=x.size())});c=this.N.Pa.select(".aplos-legend-title");c=yj(c.node());c>0&&(c+=20);t>1&&(f=Math.floor(e/t)+c);f=Math.min(f,this.v.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}};fA.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&&cA(this.v,this.N)};fA.prototype.Me=function(){return this.v.O};function gA(a){switch(Uz(a.v.v)){case Sz.LEFT:return 5;case Sz.RIGHT:return 6;case Sz.TOP:case Sz.TOP_FULL_LEFT:case Sz.TOP_FULL_RIGHT:return 2;case Sz.TOP_LEFT:case Sz.TOP_RIGHT:return 1;case Sz.BOTTOM:case Sz.BOTTOM_FULL_LEFT:case Sz.BOTTOM_FULL_RIGHT:return 4;case Sz.BOTTOM_LEFT:case Sz.BOTTOM_RIGHT:return 3;default:return 0}} ;function hA(a,b){this.v=a[Bd.Symbol.iterator]();this.N=b} hA.prototype[Symbol.iterator]=function(){return this};hA.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 iA(a,b){return new hA(a,b)} ;function jA(){} jA.prototype.next=function(){return kA};var kA={done:!0,value:void 0};jA.prototype.we=function(){return this};function lA(a){if(a instanceof mA||a instanceof nA||a instanceof oA)return a;if(typeof a.next=="function")return new mA(function(){return a});if(typeof a[Symbol.iterator]=="function")return new mA(function(){return a[Symbol.iterator]()});if(typeof a.we=="function")return new mA(function(){return a.we()});throw Error("Not an iterator or iterable.");} function mA(a){this.v=a} mA.prototype.we=function(){return new nA(this.v())};mA.prototype[Symbol.iterator]=function(){return new oA(this.v())};mA.prototype.N=function(){return new oA(this.v())};function nA(a){this.v=a} Wc(nA,jA);nA.prototype.next=function(){return this.v.next()};nA.prototype[Symbol.iterator]=function(){return new oA(this.v)};nA.prototype.N=function(){return new oA(this.v)};function oA(a){mA.call(this,function(){return a});this.O=a} Wc(oA,mA);oA.prototype.next=function(){return this.O.next()};function pA(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&&rA(this),!0):!1};function rA(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return kA;var k=e.v[b++];return{value:a?k:e.N[k],done:!1}};return f};function sA(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function tA(){this.N=new pA;this.v=new uA("");this.v.next=this.v.v=this.v} v=tA.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 uA(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 vA(this,this.v.next)};v.pop=function(){return vA(this,this.v.v)};v.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function wA(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 vA(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function uA(a,b){this.key=a;this.value=b} uA.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 xA(a){Wz.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} Pd(xA,Wz);Od("aplos.chart.behavior.SeriesLegend",xA);var yA=null,zA=null;xA.prototype.jp=function(a){return a!=null?(this.Ca=a,a||(this.oa={}),this):this.Ca};xA.prototype.valuesFromNearestDatum=xA.prototype.jp;xA.prototype.Dn=function(a){if(a==null)return this.Ra;this.Ra=!!a;return this};xA.prototype.hideEmptySeries=xA.prototype.Dn;xA.prototype.En=function(a){this.N[a]=!0;return this};xA.prototype.hideSeries=xA.prototype.En;xA.prototype.Wg=function(a){if(a==null)return this.Ka;this.Ka=a;return this};xA.prototype.ordering=xA.prototype.Wg;xA.prototype.fj=function(a){if(a==null)return this.ya;this.ya=a;return this};xA.prototype.clickHandling=xA.prototype.fj;v=xA.prototype;v.jd=function(a){var b=this;xA.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 Zz(a,b,c){for(var e=new tA,f=0;fthis.N)a.Fd("hover").deselectAll(),CA(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}}));EA(this,a)};function EA(a,b){if(!a.v){var c="selectnearest_"+Date.now();vj(a.ka).on("mouseout."+c,function(){var e=b.hb.select(".mouseCapturePane").node(),f;if(f=vi&&vi.target)e?(f=wi(e),e=e.getBoundingClientRect(),f=f[0]>=0&&f[0]=0&&f[1]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>=$n?10:h>=ao?5:h>=bo?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(h>=$n?10:h>=ao?5:h>=bo?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>=$n?p*=10:u>=ao?p*=5:u>=bo&&(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 te.hasOwnProperty(h)?{space:te[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=TA.exec(l))?yb(parseInt(h[1],16)):(h=UA.exec(l))?new Ka(h[1],h[2],h[3],1):(h=VA.exec(l))?new Ka(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=WA.exec(l))?zb(h[1],h[2],h[3],h[4]):(h=XA.exec(l))?zb(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=YA.exec(l))?Ab(h[1],h[2]/100,h[3]/100,1):(h=ZA.exec(l))?Ab(h[1],h[2]/100,h[3]/100,h[4]):lu.hasOwnProperty(l)?yb(lu[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 hc(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?hc(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*mu;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>$A?Math.pow(l,1/3):l/nu+ou} function mb(l){return l>vh?l*l*l:nu*(l-ou)} 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 ic(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)*pu;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?ic(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=(qu*z+w.r/255*-1.7884503806-3.5172982438*y)/(qu+-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)*pu-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 lc(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 pc(l){return function(){return l}} function uc(l,h){return function(p){return l+p*h}} function zc(l,h,p){return l=Math.pow(l,p),h=Math.pow(h,p)-l,p=1/p,function(u){return Math.pow(l+u*h,p)}} function rc(l,h){var p=h-l;return p?uc(l,p>180||p<-180?p-360*Math.round(p/360):p):pc(isNaN(l)?h:l)} function Ac(l){return(l=+l)===1?Bb:function(h,p){return p-h?zc(h,p,l):pc(isNaN(h)?p:h)}} function Bb(l,h){var p=h-l;return p?uc(l,p):pc(isNaN(l)?h:l)} function Gc(l){return function(h){var p=h.length,u=Array(p),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:nc(u,w)})),p=eo.lastIndex;p180?pa+=360:pa-qa>180&&(qa+=360),va.push({rd:oa.push(w(oa)+"rotate(",null,u)-2,x:nc(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:nc(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:nc(qa,oa)},{rd:Ca-2,x:nc(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,jc=va.length,db;++Ga=0&&l.tf.call(null,h),l=l.Pc;--wh}finally{wh=0;l=Kk;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:Kk=h;Mi=u;vf(p);Ag=0}} function We(){var l=Ki.now(),h=l-Jk;h>1E3&&(Ik-=h,Jk=l)} function vf(l){wh||(Li&&(Li=clearTimeout(Li)),l-Ag>24?(l0)throw Error("too late; already scheduled");return l} function Xe(l,h){l=ke(l,h);if(l.state>2)throw Error("too late; already started");return l} function ke(l,h){l=l.Ad;if(!l||!(l=l[h]))throw Error("transition not found");return l} function vk(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 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&&(h=h.slice(0,p));return!h||h==="start"})} function $d(l,h,p){var u,w,y=ye(h)?re:Xe;return function(){var z=y(this,l),E=z.on;if(E!==u)(w=(u=E).copy()).on(h,p);z.on=w}} function Tf(l){return function(){var h=this.parentNode,p;for(p in this.Ad)if(+p!==l)return;h&&h.removeChild(this)}} function mh(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 ee(l){return function(){this.style.removeProperty(l)}} function Gn(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 cB(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 dB(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 eB(l){return function(){this.textContent=l}} function fB(l){return function(){var h=l(this);this.textContent=h==null?"":h}} function Af(l,h,p,u){this.lb=l;this.ac=h;this.ye=p;this.Rb=u} function fo(l){return{type:l}} function go(){this.Oa=this.Qa=this.Aa=this.Da=null;this.Fa=""} function Lk(){return new go} function Mk(){} function Nk(l,h){var p=new Mk;if(l instanceof Mk)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:(tc=z.charCodeAt(oa++))===10?jc=!0:tc===13&&(jc=!0,z.charCodeAt(oa)===10&&++oa);return z.slice(Tc+1,Pc-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 jc=+l.yb.call(null,y.data);var db=+l.Eb.call(null,y.data);if(h===jc&&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|jc>=pa));return w[va]=y,w[Ga]=u,l} function fe(l,h,p,u,w){this.node=l;this.x0=h;this.y0=p;this.x1=u;this.y1=w} function jB(l){return l[0]} function kB(l){return l[1]} function io(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 yu(l){for(var h={data:l.data},p=h;l=l.next;)p=p.next={data:l.data};return h} function Pk(l,h){if((h=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e"))<0)return null;var p=l.slice(0,h);return[p.length>1?p[0]+p.slice(2):p,+l.slice(h+1)]} function xh(l){return l=Pk(Math.abs(l)),l?l[1]:NaN} function lB(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 mB(l){return function(h){return h.replace(/[0-9]/g,function(p){return l[+p]})}} function Qk(l){return new jo(l)} function jo(l){if(!(h=nB.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 zu(l,h){h=Pk(l,h);if(!h)return l+"";l=h[0];h=h[1];return h<0?"0."+Array(-h).join("0")+l:l.length>h+1?l.slice(0,h+1)+"."+l.slice(h+1):l+Array(h-l.length+2).join("0")} function Au(l){return l} function oB(l){function h(E){function na(La){var Rc=tc,Ha=Oc,Sa;if(Tc==="c")Ha=ad(La)+Ha,La="";else{La=+La;var Fa=La<0;La=ad(Math.abs(La),db);if(Pc){var Ma=La.length;var Zc=1,yd=-1,Dd;a:for(;Zc0&&(yd=0)}La=yd>0?La.slice(0,yd)+La.slice(Dd+1):La}Fa&&+La===0&&(Fa=!1);Rc=(Fa?oa==="("?oa:"-":oa==="-"||oa==="("?"":oa)+Rc;Ha=(Tc==="s"?Bu[8+Cu/3]:"")+Ha+(Fa&&oa==="("?")":"");if(Qc)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}}jc&&!Ca&&(La=p(La,Infinity));Sa=Rc.length+La.length+Ha.length;Fa=Sa>1)+Rc+La+Ha+Fa.slice(Sa);break;default:La=Fa+Rc+La+Ha}return y(La)} E=Qk(E);var qa=E.fill,pa=E.align,oa=E.sign,va=E.symbol,Ca=E.zero,Ga=E.width,jc=E.comma,db=E.precision,Pc=E.trim,Tc=E.type;Tc==="n"?(jc=!0,Tc="g"):Du[Tc]||(db==null&&(db=12),Pc=!0,Tc="g");if(Ca||qa==="0"&&pa==="=")Ca=!0,qa="0",pa="=";var tc=va==="$"?u[0]:va==="#"&&/[boxX]/.test(Tc)?"0"+Tc.toLowerCase():"",Oc=va==="$"?u[1]:/[%p]/.test(Tc)?z:"",ad=Du[Tc],Qc=/[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?lB(l.grouping,l.thousands):Au,u=l.currency,w=l.decimal,y=l.numerals?mB(l.numerals):Au,z=l.percent||"%";return{format:h,formatPrefix:function(E,na){var qa=h((E=Qk(E),E.type="f",E));E=Math.max(-8,Math.min(8,Math.floor(xh(na)/3)))*3;var pa=Math.pow(10,-E),oa=Bu[8+E/3];return function(va){return qa(pa*va)+oa}}}} function He(){this.reset()} function Eu(l,h,p){var u=l.s=h+p,w=u-h;l.t=h-(u-w)+(p-w)} function Rk(l){return l>1?Ae:l<-1?-Ae:Math.asin(l)} function pB(){} function Fu(l){var h=l[0];l=l[1];var p=Be(l);return[p*Be(h),p*ae(h),ae(l)]} function Gu(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 Hu(l){var h=Sk(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function qB(){var l=[],h;return{point:function(p,u){h.push([p,u])},lineStart:function(){l.push(h=[])},lineEnd:pB,mr:function(){l.length>1&&l.push(l.pop().concat(l.shift()))},result:function(){var p=l;l=[];h=null;return p}}} function Tk(l,h,p,u){this.x=l;this.z=h;this.Ug=p;this.e=u;this.jh=!1;this.n=this.p=null} function rB(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],jc=Ca;if(Xf(jc[0]-Ga[0])<1E-6&&Xf(jc[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 Iu(l){if(h=l.length){for(var h,p=0,u=l[0],w;++p1} function tB(l,h){return((l=l.x)[0]<0?l[1]-Ae-1E-6:Ae-l[1])-((h=h.x)[0]<0?h[1]-Ae-1E-6:Ae-h[1])} function ko(){} function Ju(l){return function(h,p){var u=Be(h),w=Be(p);u=l(u*w);return[u*w*ae(h),u*ae(p)]}} function Oi(l){return function(h,p){var u=Sk(h*h+p*p),w=l(u),y=ae(w);w=Be(w);return[Ku(h*y,u*w),Rk(u&&p*y/u)]}} function uB(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 Lu(l,h){var p=new Pi(l);l=+l.value&&(p.value=l.value);var u,w=[p],y,z,E,na;for(h==null&&(h=vB);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 Pi(z[E])),y.parent=u,y.depth=u.depth+1;return p.eachBefore(wB)} function vB(l){return l.children} function xB(l){l.data=l.data.data} function wB(l){var h=0;do l.height=h;while((l=l.parent)&&l.height<++h)} function Pi(l){this.data=l;this.depth=this.height=0;this.parent=null} function lo(l){function h(y){var z=y+"",E=p.get(z);if(!E){if(w!==Mu)return w;p.set(z,E=u.push(y))}return l[(E-1)%l.length]} var p=Nk(),u=[],w=Mu;l=l==null?[]:Uk.call(l);h.domain=function(y){if(!arguments.length)return u.slice();u=[];p=Nk();for(var z=-1,E=y.length,na,qa;++z=p?1:u(w)}}} function AB(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 BB(l,h,p,u){var w=l[0];l=l[1];var y=h[0];h=h[1];l2?CB:BB;qa=pa=null;return u} function u(oa){return(qa||(qa=na(w,y,E?zB(l):l,z)))(+oa)} var w=Pu,y=Pu,z=qc,E=!1,na,qa,pa;u.invert=function(oa){return(pa||(pa=na(y,w,no,E?AB(h):h)))(+oa)};u.domain=function(oa){return arguments.length?(w=Qu.call(oa,yB),p()):w.slice()};u.range=function(oa){return arguments.length?(y=Uk.call(oa),p()):y.slice()};u.rangeRound=function(oa){return y=Uk.call(oa),z=Ec,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 EB(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=Qk(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(xh(y)/3)))*3-xh(Math.abs(p)));w=!z(z=p)}w&&(u.precision=z);u=NA(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,xh(y)-xh(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,-xh(Math.abs(p))))||(u.precision=z-(u.type==="%")*2)}u=th(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 Ru(){var l=po(no,nc);l.copy=function(){return oo(l,Ru())};return EB(l)} function Su(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=th(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){qo.setTime(+y);ro.setTime(+z);l(qo);l(ro);return Math.floor(p(qo,ro))},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 Rd(function(h){h.setDate(h.getDate()-(h.getDay()+7-l)%7);h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p*7)},function(h,p){return(p-h-(p.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/6048E5})} function Cg(l){return Rd(function(h){h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-l)%7);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCDate(h.getUTCDate()+p*7)},function(h,p){return(p-h)/6048E5})} function IB(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 Vk(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 Qi(l){return{y:l,m:0,d:1,hd:0,M:0,S:0,L:0}} function JB(l){function h(Ha,Sa){return function(Fa){var Ma=[],Zc=-1,yd=0,Dd=Ha.length,pd,ue;for(Fa instanceof Date||(Fa=new Date(+Fa));++Zc53)return null;"w"in Ma||(Ma.w=1);if("Z"in Ma){Fa=Vk(Qi(Ma.y));var Zc=Fa.getUTCDay();Fa=Zc>4||Zc===0?so.ceil(Fa):so(Fa);Fa=Yu.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(Qi(Ma.y)),Zc=Fa.getDay(),Fa=Zc>4||Zc===0?to.ceil(Fa):to(Fa),Fa=uo.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),Zc="Z"in Ma?Vk(Qi(Ma.y)).getUTCDay():Sa(Qi(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.hd+=Ma.Z/100|0,Ma.M+=Ma.Z%100,Vk(Ma)):Sa(Ma)}} function u(Ha,Sa,Fa,Ma){for(var Zc=0,yd=Sa.length,Dd=Fa.length,pd;Zc=Dd)return-1;pd=Sa.charCodeAt(Zc++);if(pd===37){if(pd=Sa.charAt(Zc++),pd=Rc[pd in Xu?Sa.charAt(Zc++):pd],!pd||(Ma=pd(Ha,Fa,Ma))<0)return-1}else if(pd!=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=Ri(E),Ca=Si(E),Ga=Ri(na),jc=Si(na),db=Ri(qa),Pc=Si(qa),Tc=Ri(pa),tc=Si(pa),Oc=Ri(oa),ad=Si(oa),Qc={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:Zu,e:Zu,f:KB,H:LB,I:MB,j:NB,L:$u,m:OB,M:PB,p:function(Ha){return E[+(Ha.getHours()>=12)]},Q:av,s:bv,S:QB,u:RB,U:SB,V:TB,w:UB,W:VB,x:null,X:null,y:WB,Y:XB,Z:YB,"%":cv},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:dv,e:dv,f:ZB,H:$B,I:aC,j:bC,L:ev,m:cC,M:dC,p:function(Ha){return E[+(Ha.getUTCHours()>=12)]},Q:av,s:bv,S:eC,u:fC,U:gC,V:hC,w:iC,W:jC,x:null,X:null,y:kC,Y:lC,Z:mC,"%":cv},Rc={a:function(Ha,Sa,Fa){return(Sa=db.exec(Sa.slice(Fa)))?(Ha.w=Pc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},A:function(Ha,Sa,Fa){return(Sa=Ga.exec(Sa.slice(Fa)))?(Ha.w=jc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},b:function(Ha,Sa,Fa){return(Sa=Oc.exec(Sa.slice(Fa)))?(Ha.m=ad[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},B:function(Ha,Sa,Fa){return(Sa=Tc.exec(Sa.slice(Fa)))?(Ha.m=tc[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},c:function(Ha,Sa,Fa){return u(Ha,w,Sa,Fa)},d:fv,e:fv,f:nC,H:gv,I:gv,j:oC,L:pC,m:qC,M:rC,p:function(Ha,Sa,Fa){return(Sa=va.exec(Sa.slice(Fa)))?(Ha.p=Ca[Sa[0].toLowerCase()],Fa+Sa[0].length):-1},Q:sC,s:tC,S:uC,u:vC,U:wC,V:xC,w:yC,W:zC,x:function(Ha,Sa,Fa){return u(Ha,y,Sa,Fa)},X:function(Ha,Sa,Fa){return u(Ha,z,Sa,Fa)},y:AC,Y:BC,Z:CC,"%":DC};Qc.x=h(y,Qc);Qc.X=h(z,Qc);Qc.c=h(w,Qc);La.x=h(y,La);La.X=h(z,La);La.c=h(w,La);return{format:function(Ha){var Sa=h(Ha+="",Qc);Sa.toString=function(){return Ha};return Sa},parse:function(Ha){var Sa=p(Ha+="",IB);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,Vk);Sa.toString=function(){return Ha};return Sa}}} function sd(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 CC(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 qC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.m=h[0]-1,p+h[0].length):-1} function fv(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.d=+h[0],p+h[0].length):-1} function oC(l,h,p){return(h=Wd.exec(h.slice(p,p+3)))?(l.m=0,l.d=+h[0],p+h[0].length):-1} function gv(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.hd=+h[0],p+h[0].length):-1} function rC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.M=+h[0],p+h[0].length):-1} function uC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.S=+h[0],p+h[0].length):-1} function pC(l,h,p){return(h=Wd.exec(h.slice(p,p+3)))?(l.L=+h[0],p+h[0].length):-1} function nC(l,h,p){return(h=Wd.exec(h.slice(p,p+6)))?(l.L=Math.floor(h[0]/1E3),p+h[0].length):-1} function DC(l,h,p){return(l=GC.exec(h.slice(p,p+1)))?p+l[0].length:-1} function sC(l,h,p){return(h=Wd.exec(h.slice(p)))?(l.Q=+h[0],p+h[0].length):-1} function tC(l,h,p){return(h=Wd.exec(h.slice(p)))?(l.Q=+h[0]*1E3,p+h[0].length):-1} function Zu(l,h){return sd(l.getDate(),h,2)} function LB(l,h){return sd(l.getHours(),h,2)} function MB(l,h){return sd(l.getHours()%12||12,h,2)} function NB(l,h){return sd(1+uo.count(Dg(l),l),h,3)} function $u(l,h){return sd(l.getMilliseconds(),h,3)} function KB(l,h){return $u(l,h)+"000"} function OB(l,h){return sd(l.getMonth()+1,h,2)} function PB(l,h){return sd(l.getMinutes(),h,2)} function QB(l,h){return sd(l.getSeconds(),h,2)} function RB(l){l=l.getDay();return l===0?7:l} function SB(l,h){return sd(hv.count(Dg(l),l),h,2)} function TB(l,h){var p=l.getDay();l=p>=4||p===0?vo(l):vo.ceil(l);return sd(vo.count(Dg(l),l)+(Dg(l).getDay()===4),h,2)} function UB(l){return l.getDay()} function VB(l,h){return sd(to.count(Dg(l),l),h,2)} function WB(l,h){return sd(l.getFullYear()%100,h,2)} function XB(l,h){return sd(l.getFullYear()%1E4,h,4)} function YB(l){l=l.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+sd(l/60|0,"0",2)+sd(l%60,"0",2)} function dv(l,h){return sd(l.getUTCDate(),h,2)} function $B(l,h){return sd(l.getUTCHours(),h,2)} function aC(l,h){return sd(l.getUTCHours()%12||12,h,2)} function bC(l,h){return sd(1+Yu.count(yh(l),l),h,3)} function ev(l,h){return sd(l.getUTCMilliseconds(),h,3)} function ZB(l,h){return ev(l,h)+"000"} function cC(l,h){return sd(l.getUTCMonth()+1,h,2)} function dC(l,h){return sd(l.getUTCMinutes(),h,2)} function eC(l,h){return sd(l.getUTCSeconds(),h,2)} function fC(l){l=l.getUTCDay();return l===0?7:l} function gC(l,h){return sd(HC.count(yh(l),l),h,2)} function hC(l,h){var p=l.getUTCDay();l=p>=4||p===0?wo(l):wo.ceil(l);return sd(wo.count(yh(l),l)+(yh(l).getUTCDay()===4),h,2)} function iC(l){return l.getUTCDay()} function jC(l,h){return sd(so.count(yh(l),l),h,2)} function kC(l,h){return sd(l.getUTCFullYear()%100,h,2)} function lC(l,h){return sd(l.getUTCFullYear()%1E4,h,4)} function mC(){return"+0000"} function cv(){return"%"} function av(l){return+l} function bv(l){return Math.floor(+l/1E3)} function IC(l){return new Date(l)} function JC(l){return l instanceof Date?+l:+new Date(+l)} function iv(l,h,p,u,w,y,z,E,na){function qa(La){return(z(La)=1?Xk:l<=-1?-Xk:Math.asin(l)} function LC(l){return l.innerRadius} function MC(l){return l.outerRadius} function NC(l){return l.startAngle} function OC(l){return l.endAngle} function PC(l){return l&&l.padAngle} function Yk(l,h,p,u,w,y,z){var E=l-p,na=h-u;z=(z?y:-y)/zh(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)*zh(QC(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 kv(l){this.Ea=l} function Zk(l){return new kv(l)} function lv(l){return l[0]} function mv(l){return l[1]} function nv(){function l(E){var na,qa=E.length,pa,oa=!1,va;w==null&&(z=y(va=Lk()));for(na=0;na<=qa;++na)!(nal?1:h>=l?0:NaN} function SC(l){return l} function ov(l){this.xe=l} function pv(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 qv(l){this.Ea=l} function rv(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 sv(l,h){this.Ea=l;this.og=(1-h)/6} function tv(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 uv(l,h){var p=l.Aa-l.Oa;return p?(3*(l.Da-l.Qa)/p-h)/2:h} function xo(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 $k(l){this.Ea=l} function vv(l){this.Ea=new wv(l)} function wv(l){this.Ea=l} function xv(l){this.Ea=l} function yv(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 ju={};vi=null;typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(ju={mouseenter:"mouseover",mouseleave:"mouseout"}));var ku=[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);!(Pc=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 mu=Math.PI/180,pu=180/Math.PI,ou=4/29,vh=6/29,nu=3*vh*vh,$A=vh*vh*vh;$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 qu=1.78277*-.29227-.1347134789;$a(rb,cb,ab(Wa,{brighter:function(l){l=l==null?Ah:Math.pow(Ah,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)*mu,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 Hk=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=Ac(h);u.gamma=p;return u}(1),KC=Gc(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 lc((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 Af){var u=h.Rb;h=h.ye}else u=++Bv,(p=Bo).time=vg(),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((Co-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%Do+Do),w>XC?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>=Co)+","+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}};Mk.prototype=Nk.prototype={constructor:Mk,has:function(h){return" "+h in this},get:function(h){return this[" "+h]},set:function(h,p){this[" "+h]=p;return this},remove:function(h){h=" "+h;return h in this&&delete this[h]},clear:function(){for(var h in this)h[0]===" "&&delete this[h]},keys:function(){var h=[],p;for(p in this)p[0]===" "&&h.push(p.slice(1));return h},values:function(){var h=[],p;for(p in this)p[0]===" "&&h.push(this[p]);return h},entries:function(){var h=[],p;for(p in this)p[0]===" "&&h.push({key:p.slice(1),value:this[p]});return h},size:function(){var h=0,p;for(p in this)p[0]===" "&&++h;return h},empty:function(){for(var h in this)if(h[0]===" ")return!1;return!0},each:function(h){for(var p in this)p[0]===" "&&h(this[p],p.slice(1),this)}};var Eg=Nk.prototype;Ok.prototype=function(h,p){var u=new Ok;if(h instanceof Ok)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};ge.data=function(){var h=[];this.visit(function(p){if(!p.length){do h.push(p.data);while(p=p.next)}});return h};ge.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this.Oa)?void 0:[[this.Oa,this.Qa],[this.Aa,this.Da]]};ge.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 fe(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)=jc)<<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),jc=p-+this.Eb.call(null,Ca.data),Ga=Ga*Ga+jc*jc,Ga=(oa=(y+E)/2))?y=oa:E=oa;(Ga=pa>=(va=(z+na)/2))?z=va:na=va;if(!(p=u,u=u[jc=Ga<<1|Ca]))return this;if(!u.length)break;if(p[jc+1&3]||p[jc+2&3]||p[jc+3&3]){var db=p;var Pc=jc}}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[jc]=h:delete p[jc];(u=p[0]||p[1]||p[2]||p[3])&&u===(p[3]||p[2]||p[1]||p[0])&&!u.length&&(db?db[Pc]=u:this.rb=u);return this};ge.removeAll=function(h){for(var p=0,u=h.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Qk.prototype=jo.prototype;jo.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 Cu,Du={"%":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 zu(h*100,p)},r:zu,s:function(h,p){var u=Pk(h,p);if(!u)return h+"";var w=u[0];u=u[1];u=u-(Cu=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")+Pk(h,Math.max(0,p+u-1))[0]},X:function(h){return Math.round(h).toString(16).toUpperCase()},x:function(h){return Math.round(h).toString(16)}},Bu="y z a f p n \u00b5 m k M G T P E Z Y".split(" "),cl;(function(h){cl=oB(h);th=cl.format;NA=cl.formatPrefix;return cl})({decimal:".",thousands:",",grouping:[3],currency:["$",""]});He.prototype={constructor:He,reset:function(){this.s=this.t=0},add:function(h){Eu(dl,h,this.t);Eu(this,dl.s,this.s);this.s?this.t+=dl.t:this.s=dl.t},valueOf:function(){return this.s}};var dl=new He,Ld=Math.PI,Ae=Ld/2,Cv=Ld/4,$C=Ld*2,Eo=Ld/180,Xf=Math.abs,Fo=Math.atan,Ku=Math.atan2,Be=Math.cos,ae=Math.sin,Sk=Math.sqrt;new He;new He;new He;var Go=new He;(function(h,p,u,w){return function(y){function z(ad,Qc){h(ad,Qc)&&y.point(ad,Qc)} function E(ad,Qc){Ca.point(ad,Qc)} function na(){Oc.point=E;Ca.lineStart()} function qa(){Oc.point=z;Ca.lineEnd()} function pa(ad,Qc){tc.push([ad,Qc]);jc.point(ad,Qc)} function oa(){jc.lineStart();tc=[]} function va(){pa(tc[0][0],tc[0][1]);jc.lineEnd();var ad=jc.Il(),Qc=Ga.result(),La=Qc.length,Rc;tc.pop();Pc.push(tc);tc=null;if(La)if(ad&1){if(La=Qc[0],(Qc=La.length-1)>0){db||(y.polygonStart(),db=!0);y.lineStart();for(ad=0;ad1&&ad&2&&Qc.push(Qc.pop().concat(Qc.shift())),Tc.push(Qc.filter(sB))} var Ca=p(y),Ga=qB(),jc=p(Ga),db=!1,Pc,Tc,tc,Oc={point:z,lineStart:na,lineEnd:qa,polygonStart:function(){Oc.point=pa;Oc.lineStart=oa;Oc.lineEnd=va;Tc=[];Pc=[]},polygonEnd:function(){Oc.point=z;Oc.lineStart=na;Oc.lineEnd=qa;var ad=Tc,Qc=ad.length;var La=-1;for(var Rc=0,Ha,Sa;++La=0;)for(Sa=ad[Qc],La=Sa.length;--La>=0;)Ha[--Rc]=Sa[La];Tc=Ha;ad=Pc;Qc=w[0];Rc=w[1];var Fa=ae(Rc);La=[ae(Qc),-Be(Qc),0];Sa=Ha=0;Go.reset();Fa===1?Rc=Ae+1E-6:Fa===-1&&(Rc=-Ae-1E-6);Fa=0;for(var Ma=ad.length;Fa=0?1:-1,Jo=Io*Ch,fl=Jo>Ld;Yf*=Ev;Go.add(Ku(Yf*Io*ae(Jo),Dv*Wi+Yf*Be(Jo)));Ha+=fl?Ch+Io*$C:Ch;fl^pd>=Qc^Ho>=Qc&&(Dd=Gu(Fu(Dd),Fu(el)),Hu(Dd),pd=Gu(La,Dd),Hu(pd),pd=(fl^Ch>=0?-1:1)*Rk(pd[2]),Rc>pd||Rc===pd&&(Dd[0]||Dd[1]))&&(Sa+=fl^Ch>=0?1:-1)}}ad=(Ha<-1E-6||Ha<1E-6&&Go<-1E-6)^Sa&1;Tc.length?(db||(y.polygonStart(),db=!0),rB(Tc,tB,ad,u,y)):ad&&(db||(y.polygonStart(),db=!0),y.lineStart(),u(null,null,1,y),y.lineEnd());db&&(y.polygonEnd(),db=!1);Tc=Pc=null},sphere:function(){y.polygonStart();y.lineStart();u(null,null,1,y);y.lineEnd();y.polygonEnd()}};return Oc}})(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?Ld:-Ld,qa=Xf(z-p);if(Xf(qa-Ld)<1E-6)h.point(p,u=(u+E)/2>0?Ae:-Ae),h.point(w,u),h.lineEnd(),h.lineStart(),h.point(na,u),h.point(z,u),y=0;else if(w!==na&&qa>=Ld){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=ae(qa-oa);u=Xf(Ga)>1E-6?Fo((ae(pa)*(Ca=Be(E))*ae(oa)-ae(E)*(va=Be(pa))*ae(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*=Ae,w.point(-Ld,u),w.point(0,u),w.point(Ld,u),w.point(Ld,0),w.point(Ld,-u),w.point(0,-u),w.point(-Ld,-u),w.point(-Ld,0),w.point(-Ld,u)):Xf(h[0]-p[0])>1E-6?(h=h[0]1?0:h<-1?Ld:Math.acos(h))&&h/ae(h)}).invert=Oi(function(h){return h});Sk(3);Oi(Fo);Oi(Rk);Oi(function(h){return 2*Fo(h)});Pi.prototype=Lu.prototype={constructor:Pi,count:function(){return this.eachAfter(uB)},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 Lu(this).eachBefore(xB)}};(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(Pi.prototype);var Fv=Array.prototype,Qu=Fv.map,Uk=Fv.slice,Mu={name:"implicit"},Pu=[0,1],qo=new Date,ro=new Date,Ko=Rd(function(){},function(h,p){h.setTime(+h+p)},function(h,p){return p-h});Ko.every=function(h){h=Math.floor(h);return isFinite(h)&&h>0?h>1?Rd(function(p){p.setTime(Math.floor(p/h)*h)},function(p,u){p.setTime(+p+u*h)},function(p,u){return(u-p)/h}):Ko:null};var aD=Rd(function(h){h.setTime(Math.floor(h/1E3)*1E3)},function(h,p){h.setTime(+h+p*1E3)},function(h,p){return(p-h)/1E3},function(h){return h.getUTCSeconds()}),bD=Rd(function(h){h.setTime(Math.floor(h/6E4)*6E4)},function(h,p){h.setTime(+h+p*6E4)},function(h,p){return(p-h)/6E4},function(h){return h.getMinutes()}),cD=Rd(function(h){var p=h.getTimezoneOffset()*6E4%36E5;p<0&&(p+=36E5);h.setTime(Math.floor((+h-p)/36E5)*36E5+p)},function(h,p){h.setTime(+h+p*36E5)},function(h,p){return(p-h)/36E5},function(h){return h.getHours()}),uo=Rd(function(h){h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p)},function(h,p){return(p-h-(p.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/864E5},function(h){return h.getDate()-1}),hv=Bg(0),to=Bg(1);Bg(2);Bg(3);var vo=Bg(4);Bg(5);Bg(6);var dD=Rd(function(h){h.setDate(1);h.setHours(0,0,0,0)},function(h,p){h.setMonth(h.getMonth()+p)},function(h,p){return p.getMonth()-h.getMonth()+(p.getFullYear()-h.getFullYear())*12},function(h){return h.getMonth()}),Dg=Rd(function(h){h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,p){h.setFullYear(h.getFullYear()+p)},function(h,p){return p.getFullYear()-h.getFullYear()},function(h){return h.getFullYear()});Dg.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Rd(function(p){p.setFullYear(Math.floor(p.getFullYear()/h)*h);p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*h)}):null};Rd(function(h){h.setUTCSeconds(0,0)},function(h,p){h.setTime(+h+p*6E4)},function(h,p){return(p-h)/6E4},function(h){return h.getUTCMinutes()});Rd(function(h){h.setUTCMinutes(0,0,0)},function(h,p){h.setTime(+h+p*36E5)},function(h,p){return(p-h)/36E5},function(h){return h.getUTCHours()});var Yu=Rd(function(h){h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCDate(h.getUTCDate()+p)},function(h,p){return(p-h)/864E5},function(h){return h.getUTCDate()-1}),HC=Cg(0),so=Cg(1);Cg(2);Cg(3);var wo=Cg(4);Cg(5);Cg(6);Rd(function(h){h.setUTCDate(1);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCMonth(h.getUTCMonth()+p)},function(h,p){return p.getUTCMonth()-h.getUTCMonth()+(p.getUTCFullYear()-h.getUTCFullYear())*12},function(h){return h.getUTCMonth()});var yh=Rd(function(h){h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCFullYear(h.getUTCFullYear()+p)},function(h,p){return p.getUTCFullYear()-h.getUTCFullYear()},function(h){return h.getUTCFullYear()});yh.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Rd(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/h)*h);p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*h)}):null};var Xu={"-":"",_:" ",0:"0"},Wd=/^\s*\d+/,GC=/^%/,FC=/[\\^$*+?|[\]().{}]/g,Xi;(function(h){Xi=JB(h);Tq=Xi.format;Sq=Xi.utcFormat;sq=Xi.utcParse;return Xi})({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||Sq("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||sq("%Y-%m-%dT%H:%M:%S.%LZ");bd("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");bd("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");bd("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");bd("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");bd("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");bd("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");bd("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");bd("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");bd("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");bd("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");bd("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");bd("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var eD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bd);vd(eD);var fD=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bd);vd(fD);var gD=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bd);vd(gD);var hD=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bd);vd(hD);var iD=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bd);vd(iD);var jD=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bd);vd(jD);var kD=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bd);vd(kD);var lD=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bd);vd(lD);var mD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bd);vd(mD);var nD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bd);vd(nD);var oD=Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bd);vd(oD);var pD=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bd);vd(pD);var qD=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bd);vd(qD);var rD=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bd);vd(rD);var sD=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bd);vd(sD);var tD=Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bd);vd(tD);var uD=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bd);vd(uD);var vD=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bd);vd(vD);var wD=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bd);vd(wD);var xD=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bd);vd(xD);var yD=Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bd);vd(yD);var zD=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bd);vd(zD);var AD=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bd);vd(AD);var BD=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bd);vd(BD);var CD=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bd);vd(CD);var DD=Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bd);vd(DD);var ED=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bd);vd(ED);Ao(cb(300,.5,0),cb(-240,.5,1));Ao(cb(-100,.75,.35),cb(80,1.5,.8));Ao(cb(260,.75,.35),cb(80,1.5,.8));cb();bb();Wk(bd("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Wk(bd("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));Wk(bd("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));Wk(bd("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var Gv=Math.abs,be=Math.atan2,Fg=Math.cos,QC=Math.max,Lo=Math.min,Ze=Math.sin,zh=Math.sqrt,Yi=Math.PI,Xk=Yi/2,gl=2*Yi;kv.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 ov(h(u))} p.xe=h;return p})(Zk);ov.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))}};qv.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:pv(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:pv(this,h,p)}this.Oa=this.Aa;this.Aa=h;this.Qa=this.Da;this.Da=p}};sv.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:rv(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:rv(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 FD=function u(p){function w(y){return new sv(y,p)} w.tension=function(y){return u(+y)};return w}(0);$k.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:xo(this,this.rg,uv(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;xo(this,uv(this,w=tv(this,p,u)),w);break;default:xo(this,this.rg,w=tv(this,p,u))}this.Oa=this.Aa;this.Aa=p;this.Qa=this.Da;this.Da=u;this.rg=w}}};(vv.prototype=Object.create($k.prototype)).point=function(p,u){$k.prototype.point.call(this,u,p)};wv.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)}};xv.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=yv(p),z=yv(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}};Ti.prototype={constructor:Ti,scale:function(p){return p===1?this:new Ti(this.k*p,this.x,this.y)},translate:function(p,u){return p===0&u===0?this:new Ti(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 Ti(1,0,0);gi=b;Lv=function(p,u){return up?1:u>=p?0:NaN};Kh=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};gr=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};ez=function(p,u){var w=p.length,y=-1,z,E=0;if(u==null)for(;++yGa;pa||(pa=oa=Lk());if(Ca1E-12)if(db>gl-1E-12)pa.moveTo(Ca*Fg(Ga),Ca*Ze(Ga)),pa.arc(0,0,Ca,Ga,jc,!Pc),va>1E-12&&(pa.moveTo(va*Fg(jc),va*Ze(jc)),pa.arc(0,0,va,jc,Ga,Pc));else{var tc=Ga,Oc=jc;Tc=Ga;var ad=jc,Qc=db,La=db,Rc=qa.apply(this,arguments)/2,Ha=Rc>1E-12&&(z?+z.apply(this,arguments):zh(va* va+Ca*Ca)),Sa=Lo(Gv(Ca-va)/2,+y.apply(this,arguments)),Fa=Sa,Ma=Sa;if(Ha>1E-12){var Zc=jv(Ha/va*Ze(Rc));Rc=jv(Ha/Ca*Ze(Rc));(Qc-=Zc*2)>1E-12?(Zc*=Pc?1:-1,Tc+=Zc,ad-=Zc):(Qc=0,Tc=ad=(Ga+jc)/2);(La-=Rc*2)>1E-12?(Rc*=Pc?1:-1,tc+=Rc,Oc-=Rc):(La=0,tc=Oc=(Ga+jc)/2)}Ga=Ca*Fg(tc);jc=Ca*Ze(tc);Zc=va*Fg(ad);Rc=va*Ze(ad);if(Sa>1E-12){var yd=Ca*Fg(Oc),Dd=Ca*Ze(Oc),pd=va*Fg(Tc),ue=va*Ze(Tc);if(db1E-12?(Fa=pd-Ga,Ma=ue-jc,db=Zc-yd,Ha=Rc-Dd,db=(db*(jc-Dd)-Ha*(Ga-yd))/(Ha*Fa-db*Ma),Fa=[Ga+db*Fa,jc+db*Ma]):Fa=[Zc,Rc];Ma=Ga-Fa[0];db=jc-Fa[1];Ha=yd-Fa[0];var Yf=Dd-Fa[1];Ma=(Ma*Ha+db*Yf)/(zh(Ma*Ma+db*db)*zh(Ha*Ha+Yf*Yf));Ma=1/Ze((Ma>1?0:Ma<-1?Yi:Math.acos(Ma))/2);db=zh(Fa[0]*Fa[0]+Fa[1]*Fa[1]);Fa=Lo(Sa,(va-db)/(Ma-1));Ma=Lo(Sa,(Ca-db)/(Ma+1))}}La>1E-12?Ma>1E-12?(tc=Yk(pd,ue,Ga,jc,Ca,Ma,Pc),Oc=Yk(yd,Dd,Zc,Rc,Ca,Ma,Pc),pa.moveTo(tc.cx+tc.Zc,tc.cy+tc.ad),Ma1E-12&&Qc>1E-12?Fa>1E-12?(tc=Yk(Zc,Rc,yd,Dd,va,-Fa,Pc),Oc=Yk(Ga,jc,pd,ue,va,-Fa,Pc),pa.lineTo(tc.cx+tc.Zc,tc.cy+tc.ad),Fa=ad;--Ga)oa.point(tc[Ga],Oc[Ga]);oa.lineEnd();oa.areaEnd()}Pc&&(tc[Ca]=+w(db,Ca,va),Oc[Ca]=+z(db,Ca,va),oa.point(y?+y(db,Ca,va):tc[Ca],E?+E(db,Ca,va):Oc[Ca]))}if(Tc)return oa=null,Tc+""||null} function u(){return nv().defined(na).curve(pa).context(qa)} var w=lv,y=null,z=td(0),E=mv,na=td(!0),qa=null,pa=Zk,oa=null;p.x=function(va){return arguments.length?(w=typeof va==="function"?va:td(+va),y=null,p):w};p.x0=function(va){return arguments.length?(w=typeof va==="function"?va:td(+va),p):w};p.x1=function(va){return arguments.length?(y=va==null?null:typeof va==="function"?va:td(+va),p):y};p.y=function(va){return arguments.length?(z=typeof va==="function"?va:td(+va),E=null,p):z};p.y0=function(va){return arguments.length?(z=typeof va==="function"?va:td(+va),p):z};p.y1=function(va){return arguments.length?(E=va==null?null:typeof va==="function"?va:td(+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:td(!!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};Kw=nv;Yt=function(){function p(qa){var pa,oa=qa.length;var va=0;var Ca=Array(oa),Ga=Array(oa),jc=+z.apply(this,arguments);var db=Math.min(gl,Math.max(-gl,E.apply(this,arguments)-jc));var Pc=Math.min(Math.abs(db)/oa,na.apply(this,arguments)),Tc=Pc*(db<0?-1:1),tc;for(pa=0;pa0&&(va+=tc);w!=null?Ca.sort(function(ad,Qc){return w(Ga[ad],Ga[Qc])}):y!=null&&Ca.sort(function(ad,Qc){return y(qa[ad],qa[Qc])});pa=0;for(db=va?(db-oa*Tc)/va:0;pa0?tc*db:0)+Tc;Ga[va]={data:qa[va],index:pa,value:tc,startAngle:jc,endAngle:Oc,padAngle:Pc}}return Ga} var u=SC,w=RC,y=null,z=td(0),E=td(gl),na=td(0);p.value=function(qa){return arguments.length?(u=typeof qa==="function"?qa:td(+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:td(+qa),p):z};p.endAngle=function(qa){return arguments.length?(E=typeof qa==="function"?qa:td(+qa),p):E};p.padAngle=function(qa){return arguments.length?(na=typeof qa==="function"?qa:td(+qa),p):na};return p};Uw=function(p){return new qv(p)};Vw=FD;Tw=Zk;$w=function(p){return new $k(p)};ax=function(p){return new vv(p)};Ww=function(p){return new xv(p)};Xw=function(p){return new al(p,.5)};Zw=function(p){return new al(p,1)};Yw=function(p){return new al(p,0)};te.svg=te.svg;te.xhtml=te.xhtml;te.xlink=te.xlink;te.xml=te.xml;te.xmlns=te.xmlns})();function OA(){} OA.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 PA(a){this.v=a} function GD(a,b){return HD(JSON.parse(a.v.getAttribute("data-primary-activity")||"[]"),b)} function ID(a,b){return HD(JSON.parse(a.v.getAttribute("data-secondary-activity")||"[]"),b)} function JD(a){var b=b===void 0?new Date:b;a.v.textContent="";var c=new Yx(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(KD({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 BA(!0)).Uj(200));c.addBehavior((new xA).position(16).Xi(!1).Wg("series_desc").ef(new OA));c.addBehavior(new dy);c.draw([{name:"primary",displayName:a.v.getAttribute("data-primary-label")||"",data:GD(a,b),domain:"month",measure:"count",color:a.v.getAttribute("data-primary-color")},{name:"secondary",displayName:a.v.getAttribute("data-secondary-label")||"",data:ID(a,b),domain:"month",measure:"count",color:"#bdbdbd"}])} function HD(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=Xc(a);for(b=a.next();!b.done;b=a.next()){var k=Xc(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 KD(a){return Rz(a.Dj===void 0?"":a.Dj,a.body===void 0?"":a.body,a.bm===void 0?"":a.bm,a.Pl).aj()} Od("hcfe.forum.ActivityChart.setUpAll",function(){for(var a=Xc((window.sc_scope||document).querySelectorAll("[data-activity-chart]")),b=a.next();!b.done;b=a.next())JD(new PA(b.value))});}).call(this);
false