(()=>{var fJ=Object.create;var{getPrototypeOf:qJ,defineProperty:ru,getOwnPropertyNames:U6,getOwnPropertyDescriptor:JJ}=Object,N6=Object.prototype.hasOwnProperty;function K6(u){return this[u]}var QJ,ZJ,C=(u,f,q)=>{var J=u!=null&&typeof u==="object";if(J){var Q=f?QJ??=new WeakMap:ZJ??=new WeakMap,Z=Q.get(u);if(Z)return Z}q=u!=null?fJ(qJ(u)):{};let F=f||!u||!u.__esModule?ru(q,"default",{value:u,enumerable:!0}):q;for(let $ of U6(u))if(!N6.call(F,$))ru(F,$,{get:K6.bind(u,$),enumerable:!0});if(J)Q.set(u,F);return F},E9=(u)=>{var f=(F6??=new WeakMap).get(u),q;if(f)return f;if(f=ru({},"__esModule",{value:!0}),u&&typeof u==="object"||typeof u==="function"){for(var J of U6(u))if(!N6.call(f,J))ru(f,J,{get:K6.bind(u,J),enumerable:!(q=JJ(u,J))||q.enumerable})}return F6.set(u,f),f},F6;var $J=(u)=>u;function FJ(u,f){this[u]=$J.bind(null,f)}var m9=(u,f)=>{for(var q in f)ru(u,q,{get:f[q],enumerable:!0,configurable:!0,set:FJ.bind(f,q)})};var E=((u)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(u,{get:(f,q)=>(typeof require<"u"?require:f)[q]}):u)(function(u){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+u+'" is not supported')});var U0,B6,UJ,s0,O5,Tf,X6,_f,G6,x5,L5,NJ,Ef={},mf=[],KJ=/^m(i|n|o|s|text|space)$/,g5=Array.isArray,y5=mf.slice,Fu=Object.assign;function $u(u){u&&u.parentNode&&u.remove()}function I6(u,f,q){var J,Q,Z,F={},$=arguments.length;for(Z in f)Z=="key"?J=f[Z]:Z=="ref"&&typeof u!="function"?Q=f[Z]:F[Z]=f[Z];return $>2&&(F.children=$>3?y5.call(arguments,2):q),ou(u,F,J,Q,null)}function ou(u,f,q,J,Q){var Z={type:u,props:f,key:q,ref:J,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:Q||++B6,__i:-1,__u:0};return!Q&&U0.vnode&&U0.vnode(Z),Z}function vf(u){return u.children}function pf(u,f){this.props=u,this.context=f,this.__g=0}function i0(u,f){if(f==null)return u.__&&i0(u.__,u.__i+1);for(var q;ff&&s0.sort(X6),u=s0.shift(),f=s0.length,8&u.__g&&(J=void 0,Q=void 0,Z=(Q=(q=u).__v).__e,F=[],$=[],(N=q.__P)&&((J=Fu({constructor:void 0},Q)).__v=Q.__v+1,U0.vnode&&U0.vnode(J),S5(N,J,Q,q.__n,N.namespaceURI,32&Q.__u?[Z]:null,F,Z||i0(Q),32&Q.__u,$),J.__v=Q.__v,J.__.__k[J.__i]=J,W6(F,J,$),Q.__=Q.__e=null,J.__e!=Z&&V6(J)))}finally{(Tf=s0.length)&&(O5||queueMicrotask)(M6)}}function P6(u,f,q,J,Q,Z,F,$,N,U,z){var K,B,Y,X,G,P,A=J.__k||mf,T=f.length;for(N=zJ(q,f,A,N,T),K=0;KN?P--:P++,A=1)):(~U||(Q>X?P--:Q>1](N?1:0)){for(Q=q-1;Q>=0;Q--)if(($=f[Q])&&!(2&$.__u)&&Z==$.key&&F==$.type)return Q;for(Q=q+1;Q=q.__.length&&q.__.push({}),q.__[u]}function e(u){return Cf=1,IJ(k6,u)}function IJ(u,f,q){var J=kf(Hu++,2);if(J.t=u,!J.__c&&(J.__=[q?q(f):k6(void 0,f),function(Z){var F=J.__N?J.__N[0]:J.__[0],$=J.t(F,Z);r5(F,$)||(J.__N=[$,J.__[1]],J.__c.setState({}))}],J.__c=Y0,!Y0.__f)){Y0.__f=!0;var Q=Y0.shouldComponentUpdate;Y0.shouldComponentUpdate=function(Z,F,$){var N=this.__H;if(!N)return!0;var U=!1,z=this.props!=Z;if(N.__.some(function(B){B.__N&&(U=!0,r5(B.__[0],B.__N[0])||(z=!0))}),Q){var K=Q.call(this,Z,F,$);return U?K||z:K}return!U||z}}return J.__}function q0(u,f){var q=kf(Hu++,3);!N0.__s&&s5(q.__H,f)&&(q.__P=!0,q.__=u,q.u=f,Y0.__H.__h.push(q))}function d5(u,f){var q=kf(Hu++,4);!N0.__s&&s5(q.__H,f)&&(q.__P=!1,q.__=u,q.u=f,Y0.__h.push(q))}function _0(u){return Cf=5,VJ(function(){return{current:u}},[])}function VJ(u,f){var q=kf(Hu++,7);return s5(q.__H,f)&&(q.__=u(),q.__H=f),q.__}function MJ(){var u;do{for(;u=o5.shift();)try{cu(u)}catch(q){N0.__e(q,{__:(u=u.__P)&&u.__v})}for(;u=C6.shift();){var f=u.__H;if(u.__P&&f)try{f.__h.some(cu),f.__h.some(c5),f.__h=[]}catch(q){f.__h=[],N0.__e(q,u.__v)}}}while(o5.length)}N0.__b=function(u){Y0=null,w6&&w6(u)},N0.__=function(u,f){u&&f.__k&&f.__k.__m&&(u.__m=f.__k.__m),E6&&E6(u,f)},N0.__r=function(u){j6&&j6(u),Hu=0;var f=(Y0=u.__c).__H;f&&(n5==Y0?Y0.__h=[]:(f.__h.some(cu),f.__h.some(c5),Hu=0),f.__h=[],f.__.some(function(q){q.__N&&(q.__=q.__N),q.u=q.__N=void 0})),n5=Y0},N0.diffed=function(u){_6&&_6(u);var f=u.__c;f&&f.__H&&(f.__H.__h.length&&v6(C6.push(f)),f.__H.__.some(function(q){q.u&&(q.__H=q.u)})),n5=Y0=null},N0.__c=function(u,f){f.some(function(q){try{q.__h.some(cu),q.__h=q.__h.filter(function(J){return!J.__||c5(J)})}catch(J){f.some(function(Q){Q.__h&&(Q.__h=[])}),f=[],N0.__e(J,q.__v)}}),p6&&p6(u,f)},N0.unmount=function(u){T6&&T6(u);var f,q,J=u.__c;J&&J.__H&&(J.__H.__.some(function(Q){try{if(Q.__P&&Q.__c){if(q===void 0){for(q=u.__;q&&(!q.__c||!q.__c.__P);)q=q.__;q=q&&q.__c}Q.__P=q,v6(o5.push(Q))}else cu(Q)}catch(Z){f=Z}}),J.__H=void 0,f&&N0.__e(f,J.__v))};var m6=typeof requestAnimationFrame=="function";function PJ(u){var f,q=function(){clearTimeout(J),m6&&cancelAnimationFrame(f),setTimeout(u)},J=setTimeout(q,35);m6&&(f=requestAnimationFrame(q))}function v6(u){u!=1&&H6==N0.requestAnimationFrame||((H6=N0.requestAnimationFrame)||PJ)(MJ)}function cu(u){var f=Y0,q=u.__c;typeof q=="function"&&(u.__c=void 0,q()),Y0=f}function c5(u){var f=Y0;u.__c=u.__(),Y0=f}function s5(u,f){return!u||u.length!=f.length||f.some(function(q,J){return!r5(q,u[J])})}function k6(u,f){return typeof f=="function"?f(u):f}var L6=function(u,f,q,J){var Q;f[0]=0;for(var Z=1;Z=5&&((F||!B&&Z===5)&&(N.push(Z,0,F,Q),Z=6),B&&(N.push(Z,B,0,Q),Z=6)),F=""},z=0;z"?(Z=1,F=""):F=J+F[0]:$?J===$?$="":F+=J:J==='"'||J==="'"?$=J:J===">"?(U(),Z=1):Z&&(J==="="?(Z=5,Q=F,F=""):J==="/"&&(Z<5||q[z][K+1]===">")?(U(),Z===3&&(N=N[0]),Z=N,(N=N[0]).push(2,0,Z),Z=0):J===" "||J==="\t"||J===` `||J==="\r"?(U(),Z=2):F+=J),Z===3&&F==="!--"&&(Z=4,N=N[0])}return U(),N}(u)),f),arguments,[])).length>1?f:f[0]}function Nu(u,f){return u==null||f==null?NaN:uf?1:u>=f?0:NaN}function t5(u,f){return u==null||f==null?NaN:fu?1:f>=u?0:NaN}function Ku(u){let f,q,J;if(u.length!==2)f=Nu,q=($,N)=>Nu(u($),N),J=($,N)=>u($)-N;else f=u===Nu||u===t5?u:AJ,q=u,J=u;function Q($,N,U=0,z=$.length){if(U>>1;if(q($[K],N)<0)U=K+1;else z=K}while(U>>1;if(q($[K],N)<=0)U=K+1;else z=K}while(UU&&J($[K-1],N)>-J($[K],N)?K-1:K}return{left:Q,center:F,right:Z}}function AJ(){return 0}function e5(u){return u===null?NaN:+u}var R6=Ku(Nu),x6=R6.right,DJ=R6.left,WJ=Ku(e5).center,l5=x6;function Of(u,f){var q=0,J=0;return Float64Array.from(u,f===void 0?(Q)=>q+=+Q||0:(Q)=>q+=+f(Q,J++,u)||0)}function Lf(u,f){let q,J;if(f===void 0){for(let Q of u)if(Q!=null)if(q===void 0){if(Q>=Q)q=J=Q}else{if(q>Q)q=Q;if(J=Z)q=J=Z}else{if(q>Z)q=Z;if(J0){Z=u[--f];while(f>0)if(q=Z,J=u[--f],Z=q+J,Q=J-(Z-q),Q)break;if(f>0&&(Q<0&&u[f-1]<0||Q>0&&u[f-1]>0)){if(J=Q*2,q=Z+J,J==q-Z)Z=q}}return Z}}class zu extends Map{constructor(u,f=b6){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),u!=null)for(let[q,J]of u)this.set(q,J)}get(u){return super.get(a5(this,u))}has(u){return super.has(a5(this,u))}set(u,f){return super.set(y6(this,u),f)}delete(u){return super.delete(S6(this,u))}}class Rf extends Set{constructor(u,f=b6){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),u!=null)for(let q of u)this.add(q)}has(u){return super.has(a5(this,u))}add(u){return super.add(y6(this,u))}delete(u){return super.delete(S6(this,u))}}function a5({_intern:u,_key:f},q){let J=f(q);return u.has(J)?u.get(J):q}function y6({_intern:u,_key:f},q){let J=f(q);if(u.has(J))return u.get(J);return u.set(J,q),q}function S6({_intern:u,_key:f},q){let J=f(q);if(u.has(J))q=u.get(J),u.delete(J);return q}function b6(u){return u!==null&&typeof u==="object"?u.valueOf():u}function uq(u){return u}function fq(u,...f){return wJ(u,uq,HJ,f)}function HJ(u){if(u.length!==1)throw Error("duplicate key");return u[0]}function wJ(u,f,q,J){return function Q(Z,F){if(F>=J.length)return q(Z);let $=new zu,N=J[F++],U=-1;for(let z of Z){let K=N(z,++U,Z),B=$.get(K);if(B)B.push(z);else $.set(K,[z])}for(let[z,K]of $)$.set(z,Q(K,F));return f($)}(u,0)}function xf(u,f){let q;if(f===void 0){for(let J of u)if(J!=null&&(q=J))q=J}else{let J=-1;for(let Q of u)if((Q=f(Q,++J,u))!=null&&(q=Q))q=Q}return q}function wu(u,f,q){u=+u,f=+f,q=(Q=arguments.length)<2?(f=u,u=0,1):Q<3?1:+q;var J=-1,Q=Math.max(0,Math.ceil((f-u)/q))|0,Z=Array(Q);while(++J=jJ?10:Z>=_J?5:Z>=pJ?2:1,$,N,U;if(Q<0){if(U=Math.pow(10,-Q)/F,$=Math.round(u*U),N=Math.round(f*U),$/Uf)--N;U=-U}else{if(U=Math.pow(10,Q)*F,$=Math.round(u/U),N=Math.round(f/U),$*Uf)--N}if(N<$&&0.5<=q&&q<2)return yf(u,f,q*2);return[$,N,U]}function Yu(u,f,q){if(f=+f,u=+u,q=+q,!(q>0))return[];if(u===f)return[u];let J=f=Q))return[];let $=Z-Q+1,N=Array($);if(J)if(F<0)for(let U=0;U<$;++U)N[U]=(Z-U)/-F;else for(let U=0;U<$;++U)N[U]=(Z-U)*F;else if(F<0)for(let U=0;U<$;++U)N[U]=(Q+U)/-F;else for(let U=0;U<$;++U)N[U]=(Q+U)*F;return N}function du(u,f,q){return f=+f,u=+u,q=+q,yf(u,f,q)[2]}function ju(u,f,q){f=+f,u=+u,q=+q;let J=f>8&15|f>>4&240,f>>4&15|f&240,(f&15)<<4|f&15,1):q===8?bf(f>>24&255,f>>16&255,f>>8&255,(f&255)/255):q===4?bf(f>>12&15|f>>8&240,f>>8&15|f>>4&240,f>>4&15|f&240,((f&15)<<4|f&15)/255):null):(f=GQ.exec(u))?new W0(f[1],f[2],f[3],1):(f=IQ.exec(u))?new W0(f[1]*255/100,f[2]*255/100,f[3]*255/100,1):(f=VQ.exec(u))?bf(f[1],f[2],f[3],f[4]):(f=MQ.exec(u))?bf(f[1]*255/100,f[2]*255/100,f[3]*255/100,f[4]):(f=PQ.exec(u))?a6(f[1],f[2]/100,f[3]/100,1):(f=AQ.exec(u))?a6(f[1],f[2]/100,f[3]/100,f[4]):d6.hasOwnProperty(u)?t6(d6[u]):u==="transparent"?new W0(NaN,NaN,NaN,0):null}function t6(u){return new W0(u>>16&255,u>>8&255,u&255,1)}function bf(u,f,q,J){if(J<=0)u=f=q=NaN;return new W0(u,f,q,J)}function HQ(u){if(!(u instanceof eu))u=t0(u);if(!u)return new W0;return u=u.rgb(),new W0(u.r,u.g,u.b,u.opacity)}function Tu(u,f,q,J){return arguments.length===1?HQ(u):new W0(u,f,q,J==null?1:J)}function W0(u,f,q,J){this.r=+u,this.g=+f,this.b=+q,this.opacity=+J}su(W0,Tu,$q(eu,{brighter(u){return u=u==null?nf:Math.pow(nf,u),new W0(this.r*u,this.g*u,this.b*u,this.opacity)},darker(u){return u=u==null?iu:Math.pow(iu,u),new W0(this.r*u,this.g*u,this.b*u,this.opacity)},rgb(){return this},clamp(){return new W0(Gu(this.r),Gu(this.g),Gu(this.b),rf(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:e6,formatHex:e6,formatHex8:wQ,formatRgb:l6,toString:l6}));function e6(){return`#${Xu(this.r)}${Xu(this.g)}${Xu(this.b)}`}function wQ(){return`#${Xu(this.r)}${Xu(this.g)}${Xu(this.b)}${Xu((isNaN(this.opacity)?1:this.opacity)*255)}`}function l6(){let u=rf(this.opacity);return`${u===1?"rgb(":"rgba("}${Gu(this.r)}, ${Gu(this.g)}, ${Gu(this.b)}${u===1?")":`, ${u})`}`}function rf(u){return isNaN(u)?1:Math.max(0,Math.min(1,u))}function Gu(u){return Math.max(0,Math.min(255,Math.round(u)||0))}function Xu(u){return u=Gu(u),(u<16?"0":"")+u.toString(16)}function a6(u,f,q,J){if(J<=0)u=f=q=NaN;else if(q<=0||q>=1)u=f=NaN;else if(f<=0)u=NaN;return new m0(u,f,q,J)}function f7(u){if(u instanceof m0)return new m0(u.h,u.s,u.l,u.opacity);if(!(u instanceof eu))u=t0(u);if(!u)return new m0;if(u instanceof m0)return u;u=u.rgb();var f=u.r/255,q=u.g/255,J=u.b/255,Q=Math.min(f,q,J),Z=Math.max(f,q,J),F=NaN,$=Z-Q,N=(Z+Q)/2;if($){if(f===Z)F=(q-J)/$+(q0&&N<1?0:F;return new m0(F,$,N,u.opacity)}function q7(u,f,q,J){return arguments.length===1?f7(u):new m0(u,f,q,J==null?1:J)}function m0(u,f,q,J){this.h=+u,this.s=+f,this.l=+q,this.opacity=+J}su(m0,q7,$q(eu,{brighter(u){return u=u==null?nf:Math.pow(nf,u),new m0(this.h,this.s,this.l*u,this.opacity)},darker(u){return u=u==null?iu:Math.pow(iu,u),new m0(this.h,this.s,this.l*u,this.opacity)},rgb(){var u=this.h%360+(this.h<0)*360,f=isNaN(u)||isNaN(this.s)?0:this.s,q=this.l,J=q+(q<0.5?q:1-q)*f,Q=2*q-J;return new W0(Fq(u>=240?u-240:u+120,Q,J),Fq(u,Q,J),Fq(u<120?u+240:u-120,Q,J),this.opacity)},clamp(){return new m0(u7(this.h),hf(this.s),hf(this.l),rf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let u=rf(this.opacity);return`${u===1?"hsl(":"hsla("}${u7(this.h)}, ${hf(this.s)*100}%, ${hf(this.l)*100}%${u===1?")":`, ${u})`}`}}));function u7(u){return u=(u||0)%360,u<0?u+360:u}function hf(u){return Math.max(0,Math.min(1,u||0))}function Fq(u,f,q){return(u<60?f+(q-f)*u/60:u<180?q:u<240?f+(q-f)*(240-u)/60:f)*255}function Uq(u,f,q,J,Q){var Z=u*u,F=Z*u;return((1-3*u+3*Z-F)*f+(4-6*Z+3*F)*q+(1+3*u+3*Z-3*F)*J+F*Q)/6}function Nq(u){var f=u.length-1;return function(q){var J=q<=0?q=0:q>=1?(q=1,f-1):Math.floor(q*f),Q=u[J],Z=u[J+1],F=J>0?u[J-1]:2*Q-Z,$=J()=>u;function _Q(u,f){return function(q){return u+q*f}}function pQ(u,f,q){return u=Math.pow(u,q),f=Math.pow(f,q)-u,q=1/q,function(J){return Math.pow(u+J*f,q)}}function J7(u){return(u=+u)===1?cf:function(f,q){return q-f?pQ(f,q,u):lu(isNaN(f)?q:f)}}function cf(u,f){var q=f-u;return q?_Q(u,q):lu(isNaN(u)?f:u)}var zq=function u(f){var q=J7(f);function J(Q,Z){var F=q((Q=Tu(Q)).r,(Z=Tu(Z)).r),$=q(Q.g,Z.g),N=q(Q.b,Z.b),U=cf(Q.opacity,Z.opacity);return function(z){return Q.r=F(z),Q.g=$(z),Q.b=N(z),Q.opacity=U(z),Q+""}}return J.gamma=u,J}(1);function Q7(u){return function(f){var q=f.length,J=Array(q),Q=Array(q),Z=Array(q),F,$;for(F=0;Fq)if(Z=f.slice(q,Z),$[F])$[F]+=Z;else $[++F]=Z;if((J=J[0])===(Q=Q[0]))if($[F])$[F]+=Q;else $[++F]=Q;else $[++F]=null,N.push({i:F,x:v0(J,Q)});q=Gq.lastIndex}if(qf)q=u,u=f,f=q;return function(J){return Math.max(u,Math.min(f,J))}}function rQ(u,f,q){var J=u[0],Q=u[1],Z=f[0],F=f[1];if(Q2?oQ:rQ,N=U=null,K}function K(B){return B==null||isNaN(B=+B)?Z:(N||(N=$(u.map(J),f,q)))(J(F(B)))}return K.invert=function(B){return F(Q((U||(U=$(f,u.map(J),v0)))(B)))},K.domain=function(B){return arguments.length?(u=Array.from(B,Aq),z()):u.slice()},K.range=function(B){return arguments.length?(f=Array.from(B),z()):f.slice()},K.rangeRound=function(B){return f=Array.from(B),q=Eu,z()},K.clamp=function(B){return arguments.length?(F=B?!0:H0,z()):F!==H0},K.interpolate=function(B){return arguments.length?(q=B,z()):q},K.unknown=function(B){return arguments.length?(Z=B,K):Z},function(B,Y){return J=B,Q=Y,z()}}function uf(){return au()(H0,H0)}function Wq(u){return Math.abs(u=Math.round(u))>=1000000000000000000000?u.toLocaleString("en").replace(/,/g,""):u.toString(10)}function Iu(u,f){if(!isFinite(u)||u===0)return null;var q=(u=f?u.toExponential(f-1):u.toExponential()).indexOf("e"),J=u.slice(0,q);return[J.length>1?J[0]+J.slice(2):J,+u.slice(q+1)]}function C0(u){return u=Iu(Math.abs(u)),u?u[1]:NaN}function Hq(u,f){return function(q,J){var Q=q.length,Z=[],F=0,$=u[0],N=0;while(Q>0&&$>0){if(N+$+1>J)$=Math.max(1,J-N);if(Z.push(q.substring(Q-=$,Q+$)),(N+=$+1)>J)break;$=u[F=(F+1)%u.length]}return Z.reverse().join(f)}}function wq(u){return function(f){return f.replace(/[0-9]/g,function(q){return u[+q]})}}var cQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function g0(u){if(!(f=cQ.exec(u)))throw Error("invalid format: "+u);var f;return new df({fill:f[1],align:f[2],sign:f[3],symbol:f[4],zero:f[5],width:f[6],comma:f[7],precision:f[8]&&f[8].slice(1),trim:f[9],type:f[10]})}g0.prototype=df.prototype;function df(u){this.fill=u.fill===void 0?" ":u.fill+"",this.align=u.align===void 0?">":u.align+"",this.sign=u.sign===void 0?"-":u.sign+"",this.symbol=u.symbol===void 0?"":u.symbol+"",this.zero=!!u.zero,this.width=u.width===void 0?void 0:+u.width,this.comma=!!u.comma,this.precision=u.precision===void 0?void 0:+u.precision,this.trim=!!u.trim,this.type=u.type===void 0?"":u.type+""}df.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function jq(u){u:for(var f=u.length,q=1,J=-1,Q;q0)J=0;break}return J>0?u.slice(0,J)+u.slice(Q+1):u}var ff;function _q(u,f){var q=Iu(u,f);if(!q)return ff=void 0,u.toPrecision(f);var J=q[0],Q=q[1],Z=Q-(ff=Math.max(-8,Math.min(8,Math.floor(Q/3)))*3)+1,F=J.length;return Z===F?J:Z>F?J+Array(Z-F+1).join("0"):Z>0?J.slice(0,Z)+"."+J.slice(Z):"0."+Array(1-Z).join("0")+Iu(u,Math.max(0,f+Z-1))[0]}function sf(u,f){var q=Iu(u,f);if(!q)return u+"";var J=q[0],Q=q[1];return Q<0?"0."+Array(-Q).join("0")+J:J.length>Q+1?J.slice(0,Q+1)+"."+J.slice(Q+1):J+Array(Q-J.length+2).join("0")}var pq={"%":(u,f)=>(u*100).toFixed(f),b:(u)=>Math.round(u).toString(2),c:(u)=>u+"",d:Wq,e:(u,f)=>u.toExponential(f),f:(u,f)=>u.toFixed(f),g:(u,f)=>u.toPrecision(f),o:(u)=>Math.round(u).toString(8),p:(u,f)=>sf(u*100,f),r:sf,s:_q,X:(u)=>Math.round(u).toString(16).toUpperCase(),x:(u)=>Math.round(u).toString(16)};function tf(u){return u}var Y7=Array.prototype.map,B7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tq(u){var f=u.grouping===void 0||u.thousands===void 0?tf:Hq(Y7.call(u.grouping,Number),u.thousands+""),q=u.currency===void 0?"":u.currency[0]+"",J=u.currency===void 0?"":u.currency[1]+"",Q=u.decimal===void 0?".":u.decimal+"",Z=u.numerals===void 0?tf:wq(Y7.call(u.numerals,String)),F=u.percent===void 0?"%":u.percent+"",$=u.minus===void 0?"−":u.minus+"",N=u.nan===void 0?"NaN":u.nan+"";function U(K,B){K=g0(K);var{fill:Y,align:X,sign:G,symbol:P,zero:A,width:T,comma:w,precision:H,trim:p,type:V}=K;if(V==="n")w=!0,V="g";else if(!pq[V])H===void 0&&(H=12),p=!0,V="g";if(A||Y==="0"&&X==="=")A=!0,Y="0",X="=";var m=(B&&B.prefix!==void 0?B.prefix:"")+(P==="$"?q:P==="#"&&/[boxX]/.test(V)?"0"+V.toLowerCase():""),v=(P==="$"?J:/[%p]/.test(V)?F:"")+(B&&B.suffix!==void 0?B.suffix:""),S=pq[V],k=/[defgprs%]/.test(V);H=H===void 0?6:/[gprs]/.test(V)?Math.max(1,Math.min(21,H)):Math.max(0,Math.min(20,H));function D(W){var j=m,I=v,O,R,y;if(V==="c")I=S(W)+I,W="";else{W=+W;var s=W<0||1/W<0;if(W=isNaN(W)?N:S(Math.abs(W),H),p)W=jq(W);if(s&&+W===0&&G!=="+")s=!1;if(j=(s?G==="("?G:$:G==="-"||G==="("?"":G)+j,I=(V==="s"&&!isNaN(W)&&ff!==void 0?B7[8+ff/3]:"")+I+(s&&G==="("?")":""),k){O=-1,R=W.length;while(++Oy||y>57){I=(y===46?Q+W.slice(O+1):W.slice(O))+I,W=W.slice(0,O);break}}}if(w&&!A)W=f(W,1/0);var b=j.length+W.length+I.length,h=b>1)+j+W+I+h.slice(b);break;default:W=h+j+W+I;break}return Z(W)}return D.toString=function(){return K+""},D}function z(K,B){var Y=Math.max(-8,Math.min(8,Math.floor(C0(B)/3)))*3,X=Math.pow(10,-Y),G=U((K=g0(K),K.type="f",K),{suffix:B7[8+Y/3]});return function(P){return G(X*P)}}return{format:U,formatPrefix:z}}var ef,l0,lf;Eq({thousands:",",grouping:[3],currency:["$",""]});function Eq(u){return ef=Tq(u),l0=ef.format,lf=ef.formatPrefix,ef}function af(u){return Math.max(0,-C0(Math.abs(u)))}function u5(u,f){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(C0(f)/3)))*3-C0(Math.abs(u)))}function f5(u,f){return u=Math.abs(u),f=Math.abs(f)-u,Math.max(0,C0(f)-C0(u))+1}function mq(u,f,q,J){var Q=ju(u,f,q),Z;switch(J=g0(J==null?",f":J),J.type){case"s":{var F=Math.max(Math.abs(u),Math.abs(f));if(J.precision==null&&!isNaN(Z=u5(Q,F)))J.precision=Z;return lf(J,F)}case"":case"e":case"g":case"p":case"r":{if(J.precision==null&&!isNaN(Z=f5(Q,Math.max(Math.abs(u),Math.abs(f)))))J.precision=Z-(J.type==="e");break}case"f":case"%":{if(J.precision==null&&!isNaN(Z=af(Q)))J.precision=Z-(J.type==="%")*2;break}}return l0(J)}function qf(u){var f=u.domain;return u.ticks=function(q){var J=f();return Yu(J[0],J[J.length-1],q==null?10:q)},u.tickFormat=function(q,J){var Q=f();return mq(Q[0],Q[Q.length-1],q==null?10:q,J)},u.nice=function(q){if(q==null)q=10;var J=f(),Q=0,Z=J.length-1,F=J[Q],$=J[Z],N,U,z=10;if($0){if(U=du(F,$,q),U===N)return J[Q]=F,J[Z]=$,f(J);else if(U>0)F=Math.floor(F/U)*U,$=Math.ceil($/U)*U;else if(U<0)F=Math.ceil(F*U)/U,$=Math.floor($*U)/U;else break;N=U}return u},u}function Jf(){var u=uf();return u.copy=function(){return e0(u,Jf())},T0.apply(u,arguments),qf(u)}function Qf(u,f){u=u.slice();var q=0,J=u.length-1,Q=u[q],Z=u[J],F;if(ZMath.pow(u,f)}function lQ(u){return u===Math.E?Math.log:u===10&&Math.log10||u===2&&Math.log2||(u=Math.log(u),(f)=>Math.log(f)/u)}function I7(u){return(f,q)=>-u(-f,q)}function aQ(u){let f=u(X7,G7),q=f.domain,J=10,Q,Z;function F(){if(Q=lQ(J),Z=eQ(J),q()[0]<0)Q=I7(Q),Z=I7(Z),u(sQ,iQ);else u(X7,G7);return f}return f.base=function($){return arguments.length?(J=+$,F()):J},f.domain=function($){return arguments.length?(q($),F()):q()},f.ticks=($)=>{let N=q(),U=N[0],z=N[N.length-1],K=z0)for(;B<=Y;++B)for(X=1;Xz)break;A.push(G)}else for(;B<=Y;++B)for(X=J-1;X>=1;--X){if(G=B>0?X/Z(-B):X*Z(B),Gz)break;A.push(G)}if(A.length*2{if($==null)$=10;if(N==null)N=J===10?"s":",";if(typeof N!=="function"){if(!(J%1)&&(N=g0(N)).precision==null)N.trim=!0;N=l0(N)}if($===1/0)return N;let U=Math.max(1,J*$/f.ticks().length);return(z)=>{let K=z/Z(Math.round(Q(z)));if(K*J{return q(Qf(q(),{floor:($)=>Z(Math.floor(Q($))),ceil:($)=>Z(Math.ceil(Q($)))}))},f}function Zf(){let u=aQ(au()).domain([1,10]);return u.copy=()=>e0(u,Zf()).base(u.base()),T0.apply(u,arguments),u}function V7(u){return function(f){return f<0?-Math.pow(-f,u):Math.pow(f,u)}}function uZ(u){return u<0?-Math.sqrt(-u):Math.sqrt(u)}function fZ(u){return u<0?-u*u:u*u}function qZ(u){var f=u(H0,H0),q=1;function J(){return q===1?u(H0,H0):q===0.5?u(uZ,fZ):u(V7(q),V7(1/q))}return f.exponent=function(Q){return arguments.length?(q=+Q,J()):q},qf(f)}function q5(){var u=qZ(au());return u.copy=function(){return e0(u,q5()).exponent(u.exponent())},T0.apply(u,arguments),u}function vq(){return q5.apply(null,arguments).exponent(0.5)}var Cq=new Date,kq=new Date;function $0(u,f,q,J){function Q(Z){return u(Z=arguments.length===0?new Date:new Date(+Z)),Z}if(Q.floor=(Z)=>{return u(Z=new Date(+Z)),Z},Q.ceil=(Z)=>{return u(Z=new Date(Z-1)),f(Z,1),u(Z),Z},Q.round=(Z)=>{let F=Q(Z),$=Q.ceil(Z);return Z-F<$-Z?F:$},Q.offset=(Z,F)=>{return f(Z=new Date(+Z),F==null?1:Math.floor(F)),Z},Q.range=(Z,F,$)=>{let N=[];if(Z=Q.ceil(Z),$=$==null?1:Math.floor($),!(Z0))return N;let U;do N.push(U=new Date(+Z)),f(Z,$),u(Z);while(U{return $0((F)=>{if(F>=F)while(u(F),!Z(F))F.setTime(F-1)},(F,$)=>{if(F>=F)if($<0)while(++$<=0)while(f(F,-1),!Z(F));else while(--$>=0)while(f(F,1),!Z(F));})},q)Q.count=(Z,F)=>{return Cq.setTime(+Z),kq.setTime(+F),u(Cq),u(kq),Math.floor(q(Cq,kq))},Q.every=(Z)=>{return Z=Math.floor(Z),!isFinite(Z)||!(Z>0)?null:!(Z>1)?Q:Q.filter(J?(F)=>J(F)%Z===0:(F)=>Q.count(0,F)%Z===0)};return Q}var E0=1000,M0=60000,y0=3600000,a0=86400000,$f=604800000,Oq=2592000000,J5=31536000000;var S0=$0((u)=>{u.setTime(u-u.getMilliseconds())},(u,f)=>{u.setTime(+u+f*E0)},(u,f)=>{return(f-u)/E0},(u)=>{return u.getUTCSeconds()}),M7=S0.range;var mu=$0((u)=>{u.setTime(u-u.getMilliseconds()-u.getSeconds()*E0)},(u,f)=>{u.setTime(+u+f*M0)},(u,f)=>{return(f-u)/M0},(u)=>{return u.getMinutes()}),JZ=mu.range,Q5=$0((u)=>{u.setUTCSeconds(0,0)},(u,f)=>{u.setTime(+u+f*M0)},(u,f)=>{return(f-u)/M0},(u)=>{return u.getUTCMinutes()}),QZ=Q5.range;var vu=$0((u)=>{u.setTime(u-u.getMilliseconds()-u.getSeconds()*E0-u.getMinutes()*M0)},(u,f)=>{u.setTime(+u+f*y0)},(u,f)=>{return(f-u)/y0},(u)=>{return u.getHours()}),ZZ=vu.range,Z5=$0((u)=>{u.setUTCMinutes(0,0,0)},(u,f)=>{u.setTime(+u+f*y0)},(u,f)=>{return(f-u)/y0},(u)=>{return u.getUTCHours()}),$Z=Z5.range;var r0=$0((u)=>u.setHours(0,0,0,0),(u,f)=>u.setDate(u.getDate()+f),(u,f)=>(f-u-(f.getTimezoneOffset()-u.getTimezoneOffset())*M0)/a0,(u)=>u.getDate()-1),FZ=r0.range,Ff=$0((u)=>{u.setUTCHours(0,0,0,0)},(u,f)=>{u.setUTCDate(u.getUTCDate()+f)},(u,f)=>{return(f-u)/a0},(u)=>{return u.getUTCDate()-1}),UZ=Ff.range,$5=$0((u)=>{u.setUTCHours(0,0,0,0)},(u,f)=>{u.setUTCDate(u.getUTCDate()+f)},(u,f)=>{return(f-u)/a0},(u)=>{return Math.floor(u/a0)}),NZ=$5.range;function Vu(u){return $0((f)=>{f.setDate(f.getDate()-(f.getDay()+7-u)%7),f.setHours(0,0,0,0)},(f,q)=>{f.setDate(f.getDate()+q*7)},(f,q)=>{return(q-f-(q.getTimezoneOffset()-f.getTimezoneOffset())*M0)/$f})}var o0=Vu(0),Cu=Vu(1),P7=Vu(2),A7=Vu(3),uu=Vu(4),D7=Vu(5),W7=Vu(6),H7=o0.range,KZ=Cu.range,zZ=P7.range,YZ=A7.range,BZ=uu.range,XZ=D7.range,GZ=W7.range;function Mu(u){return $0((f)=>{f.setUTCDate(f.getUTCDate()-(f.getUTCDay()+7-u)%7),f.setUTCHours(0,0,0,0)},(f,q)=>{f.setUTCDate(f.getUTCDate()+q*7)},(f,q)=>{return(q-f)/$f})}var Pu=Mu(0),ku=Mu(1),w7=Mu(2),j7=Mu(3),fu=Mu(4),_7=Mu(5),p7=Mu(6),T7=Pu.range,IZ=ku.range,VZ=w7.range,MZ=j7.range,PZ=fu.range,AZ=_7.range,DZ=p7.range;var Ou=$0((u)=>{u.setDate(1),u.setHours(0,0,0,0)},(u,f)=>{u.setMonth(u.getMonth()+f)},(u,f)=>{return f.getMonth()-u.getMonth()+(f.getFullYear()-u.getFullYear())*12},(u)=>{return u.getMonth()}),WZ=Ou.range,F5=$0((u)=>{u.setUTCDate(1),u.setUTCHours(0,0,0,0)},(u,f)=>{u.setUTCMonth(u.getUTCMonth()+f)},(u,f)=>{return f.getUTCMonth()-u.getUTCMonth()+(f.getUTCFullYear()-u.getUTCFullYear())*12},(u)=>{return u.getUTCMonth()}),HZ=F5.range;var p0=$0((u)=>{u.setMonth(0,1),u.setHours(0,0,0,0)},(u,f)=>{u.setFullYear(u.getFullYear()+f)},(u,f)=>{return f.getFullYear()-u.getFullYear()},(u)=>{return u.getFullYear()});p0.every=(u)=>{return!isFinite(u=Math.floor(u))||!(u>0)?null:$0((f)=>{f.setFullYear(Math.floor(f.getFullYear()/u)*u),f.setMonth(0,1),f.setHours(0,0,0,0)},(f,q)=>{f.setFullYear(f.getFullYear()+q*u)})};var wZ=p0.range,k0=$0((u)=>{u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},(u,f)=>{u.setUTCFullYear(u.getUTCFullYear()+f)},(u,f)=>{return f.getUTCFullYear()-u.getUTCFullYear()},(u)=>{return u.getUTCFullYear()});k0.every=(u)=>{return!isFinite(u=Math.floor(u))||!(u>0)?null:$0((f)=>{f.setUTCFullYear(Math.floor(f.getUTCFullYear()/u)*u),f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},(f,q)=>{f.setUTCFullYear(f.getUTCFullYear()+q*u)})};var jZ=k0.range;var Uf=$0(()=>{},(u,f)=>{u.setTime(+u+f)},(u,f)=>{return f-u});Uf.every=(u)=>{if(u=Math.floor(u),!isFinite(u)||!(u>0))return null;if(!(u>1))return Uf;return $0((f)=>{f.setTime(Math.floor(f/u)*u)},(f,q)=>{f.setTime(+f+q*u)},(f,q)=>{return(q-f)/u})};var JK=Uf.range;function E7(u,f,q,J,Q,Z){let F=[[S0,1,E0],[S0,5,5*E0],[S0,15,15*E0],[S0,30,30*E0],[Z,1,M0],[Z,5,5*M0],[Z,15,15*M0],[Z,30,30*M0],[Q,1,y0],[Q,3,3*y0],[Q,6,6*y0],[Q,12,12*y0],[J,1,a0],[J,2,2*a0],[q,1,$f],[f,1,Oq],[f,3,3*Oq],[u,1,J5]];function $(U,z,K){let B=zP).right(F,B);if(Y===F.length)return u.every(ju(U/J5,z/J5,K));if(Y===0)return Uf.every(Math.max(ju(U,z,K),1));let[X,G]=F[B/F[Y-1][2]53)return null;if(!("w"in g))g.w=1;if("Z"in g)F0=gq(Nf(g.y,0,1)),w0=F0.getUTCDay(),F0=w0>4||w0===0?ku.ceil(F0):ku(F0),F0=Ff.offset(F0,(g.V-1)*7),g.y=F0.getUTCFullYear(),g.m=F0.getUTCMonth(),g.d=F0.getUTCDate()+(g.w+6)%7;else F0=xq(Nf(g.y,0,1)),w0=F0.getDay(),F0=w0>4||w0===0?Cu.ceil(F0):Cu(F0),F0=r0.offset(F0,(g.V-1)*7),g.y=F0.getFullYear(),g.m=F0.getMonth(),g.d=F0.getDate()+(g.w+6)%7}else if("W"in g||"U"in g){if(!("w"in g))g.w="u"in g?g.u%7:("W"in g)?1:0;w0="Z"in g?gq(Nf(g.y,0,1)).getUTCDay():xq(Nf(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(w0+5)%7:g.w+g.U*7-(w0+6)%7}if("Z"in g)return g.H+=g.Z/100|0,g.M+=g.Z%100,gq(g);return xq(g)}}function v(o,t,u0,g){var D0=0,F0=t.length,w0=u0.length,j0,Zu;while(D0=w0)return-1;if(j0=t.charCodeAt(D0++),j0===37){if(j0=t.charAt(D0++),Zu=p[j0 in m7?t.charAt(D0++):j0],!Zu||(g=Zu(o,u0,g))<0)return-1}else if(j0!=u0.charCodeAt(g++))return-1}return g}function S(o,t,u0){var g=U.exec(t.slice(u0));return g?(o.p=z.get(g[0].toLowerCase()),u0+g[0].length):-1}function k(o,t,u0){var g=Y.exec(t.slice(u0));return g?(o.w=X.get(g[0].toLowerCase()),u0+g[0].length):-1}function D(o,t,u0){var g=K.exec(t.slice(u0));return g?(o.w=B.get(g[0].toLowerCase()),u0+g[0].length):-1}function W(o,t,u0){var g=A.exec(t.slice(u0));return g?(o.m=T.get(g[0].toLowerCase()),u0+g[0].length):-1}function j(o,t,u0){var g=G.exec(t.slice(u0));return g?(o.m=P.get(g[0].toLowerCase()),u0+g[0].length):-1}function I(o,t,u0){return v(o,f,t,u0)}function O(o,t,u0){return v(o,q,t,u0)}function R(o,t,u0){return v(o,J,t,u0)}function y(o){return F[o.getDay()]}function s(o){return Z[o.getDay()]}function b(o){return N[o.getMonth()]}function h(o){return $[o.getMonth()]}function a(o){return Q[+(o.getHours()>=12)]}function c(o){return 1+~~(o.getMonth()/3)}function Q0(o){return F[o.getUTCDay()]}function z0(o){return Z[o.getUTCDay()]}function f0(o){return N[o.getUTCMonth()]}function X0(o){return $[o.getUTCMonth()]}function L0(o){return Q[+(o.getUTCHours()>=12)]}function G0(o){return 1+~~(o.getUTCMonth()/3)}return{format:function(o){var t=V(o+="",w);return t.toString=function(){return o},t},parse:function(o){var t=m(o+="",!1);return t.toString=function(){return o},t},utcFormat:function(o){var t=V(o+="",H);return t.toString=function(){return o},t},utcParse:function(o){var t=m(o+="",!0);return t.toString=function(){return o},t}}}var m7={"-":"",_:" ","0":"0"},I0=/^\s*\d+/,EZ=/^%/,mZ=/[\\^$*+?|[\]().{}]/g;function J0(u,f,q){var J=u<0?"-":"",Q=(J?-u:u)+"",Z=Q.length;return J+(Z[f.toLowerCase(),q]))}function CZ(u,f,q){var J=I0.exec(f.slice(q,q+1));return J?(u.w=+J[0],q+J[0].length):-1}function kZ(u,f,q){var J=I0.exec(f.slice(q,q+1));return J?(u.u=+J[0],q+J[0].length):-1}function OZ(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.U=+J[0],q+J[0].length):-1}function LZ(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.V=+J[0],q+J[0].length):-1}function RZ(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.W=+J[0],q+J[0].length):-1}function v7(u,f,q){var J=I0.exec(f.slice(q,q+4));return J?(u.y=+J[0],q+J[0].length):-1}function C7(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.y=+J[0]+(+J[0]>68?1900:2000),q+J[0].length):-1}function xZ(u,f,q){var J=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(f.slice(q,q+6));return J?(u.Z=J[1]?0:-(J[2]+(J[3]||"00")),q+J[0].length):-1}function gZ(u,f,q){var J=I0.exec(f.slice(q,q+1));return J?(u.q=J[0]*3-3,q+J[0].length):-1}function yZ(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.m=J[0]-1,q+J[0].length):-1}function k7(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.d=+J[0],q+J[0].length):-1}function SZ(u,f,q){var J=I0.exec(f.slice(q,q+3));return J?(u.m=0,u.d=+J[0],q+J[0].length):-1}function O7(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.H=+J[0],q+J[0].length):-1}function bZ(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.M=+J[0],q+J[0].length):-1}function hZ(u,f,q){var J=I0.exec(f.slice(q,q+2));return J?(u.S=+J[0],q+J[0].length):-1}function nZ(u,f,q){var J=I0.exec(f.slice(q,q+3));return J?(u.L=+J[0],q+J[0].length):-1}function rZ(u,f,q){var J=I0.exec(f.slice(q,q+6));return J?(u.L=Math.floor(J[0]/1000),q+J[0].length):-1}function oZ(u,f,q){var J=EZ.exec(f.slice(q,q+1));return J?q+J[0].length:-1}function cZ(u,f,q){var J=I0.exec(f.slice(q));return J?(u.Q=+J[0],q+J[0].length):-1}function dZ(u,f,q){var J=I0.exec(f.slice(q));return J?(u.s=+J[0],q+J[0].length):-1}function L7(u,f){return J0(u.getDate(),f,2)}function sZ(u,f){return J0(u.getHours(),f,2)}function iZ(u,f){return J0(u.getHours()%12||12,f,2)}function tZ(u,f){return J0(1+r0.count(p0(u),u),f,3)}function S7(u,f){return J0(u.getMilliseconds(),f,3)}function eZ(u,f){return S7(u,f)+"000"}function lZ(u,f){return J0(u.getMonth()+1,f,2)}function aZ(u,f){return J0(u.getMinutes(),f,2)}function u$(u,f){return J0(u.getSeconds(),f,2)}function f$(u){var f=u.getDay();return f===0?7:f}function q$(u,f){return J0(o0.count(p0(u)-1,u),f,2)}function b7(u){var f=u.getDay();return f>=4||f===0?uu(u):uu.ceil(u)}function J$(u,f){return u=b7(u),J0(uu.count(p0(u),u)+(p0(u).getDay()===4),f,2)}function Q$(u){return u.getDay()}function Z$(u,f){return J0(Cu.count(p0(u)-1,u),f,2)}function $$(u,f){return J0(u.getFullYear()%100,f,2)}function F$(u,f){return u=b7(u),J0(u.getFullYear()%100,f,2)}function U$(u,f){return J0(u.getFullYear()%1e4,f,4)}function N$(u,f){var q=u.getDay();return u=q>=4||q===0?uu(u):uu.ceil(u),J0(u.getFullYear()%1e4,f,4)}function K$(u){var f=u.getTimezoneOffset();return(f>0?"-":(f*=-1,"+"))+J0(f/60|0,"0",2)+J0(f%60,"0",2)}function R7(u,f){return J0(u.getUTCDate(),f,2)}function z$(u,f){return J0(u.getUTCHours(),f,2)}function Y$(u,f){return J0(u.getUTCHours()%12||12,f,2)}function B$(u,f){return J0(1+Ff.count(k0(u),u),f,3)}function h7(u,f){return J0(u.getUTCMilliseconds(),f,3)}function X$(u,f){return h7(u,f)+"000"}function G$(u,f){return J0(u.getUTCMonth()+1,f,2)}function I$(u,f){return J0(u.getUTCMinutes(),f,2)}function V$(u,f){return J0(u.getUTCSeconds(),f,2)}function M$(u){var f=u.getUTCDay();return f===0?7:f}function P$(u,f){return J0(Pu.count(k0(u)-1,u),f,2)}function n7(u){var f=u.getUTCDay();return f>=4||f===0?fu(u):fu.ceil(u)}function A$(u,f){return u=n7(u),J0(fu.count(k0(u),u)+(k0(u).getUTCDay()===4),f,2)}function D$(u){return u.getUTCDay()}function W$(u,f){return J0(ku.count(k0(u)-1,u),f,2)}function H$(u,f){return J0(u.getUTCFullYear()%100,f,2)}function w$(u,f){return u=n7(u),J0(u.getUTCFullYear()%100,f,2)}function j$(u,f){return J0(u.getUTCFullYear()%1e4,f,4)}function _$(u,f){var q=u.getUTCDay();return u=q>=4||q===0?fu(u):fu.ceil(u),J0(u.getUTCFullYear()%1e4,f,4)}function p$(){return"+0000"}function x7(){return"%"}function g7(u){return+u}function y7(u){return Math.floor(+u/1000)}var Lu,N5,r7,o7,c7;Sq({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Sq(u){return Lu=yq(u),N5=Lu.format,r7=Lu.parse,o7=Lu.utcFormat,c7=Lu.utcParse,Lu}function v$(u){return new Date(u)}function C$(u){return u instanceof Date?+u:+new Date(+u)}function d7(u,f,q,J,Q,Z,F,$,N,U){var z=uf(),K=z.invert,B=z.domain,Y=U(".%L"),X=U(":%S"),G=U("%I:%M"),P=U("%I %p"),A=U("%a %d"),T=U("%b %d"),w=U("%B"),H=U("%Y");function p(V){return(N(V)1?0:u<-1?Ru:Math.acos(u)}function nq(u){return u>=1?Bf:u<=-1?-Bf:Math.asin(u)}var rq=Math.PI,oq=2*rq;var r$=oq-0.000001;function e7(u){this._+=u[0];for(let f=1,q=u.length;f=0))throw Error(`invalid digits: ${u}`);if(f>15)return e7;let q=10**f;return function(J){this._+=J[0];for(let Q=1,Z=J.length;Q0.000001));else if(!(Math.abs(z*$-N*U)>0.000001)||!Q)this._append`L${this._x1=u},${this._y1=f}`;else{let B=q-Z,Y=J-F,X=$*$+N*N,G=B*B+Y*Y,P=Math.sqrt(X),A=Math.sqrt(K),T=Q*Math.tan((rq-Math.acos((X+K-G)/(2*P*A)))/2),w=T/A,H=T/P;if(Math.abs(w-1)>0.000001)this._append`L${u+w*U},${f+w*z}`;this._append`A${Q},${Q},0,0,${+(z*B>U*Y)},${this._x1=u+H*$},${this._y1=f+H*N}`}}arc(u,f,q,J,Q,Z){if(u=+u,f=+f,q=+q,Z=!!Z,q<0)throw Error(`negative radius: ${q}`);let F=q*Math.cos(J),$=q*Math.sin(J),N=u+F,U=f+$,z=1^Z,K=Z?J-Q:Q-J;if(this._x1===null)this._append`M${N},${U}`;else if(Math.abs(this._x1-N)>0.000001||Math.abs(this._y1-U)>0.000001)this._append`L${N},${U}`;if(!q)return;if(K<0)K=K%oq+oq;if(K>r$)this._append`A${q},${q},0,1,${z},${u-F},${f-$}A${q},${q},0,1,${z},${this._x1=N},${this._y1=U}`;else if(K>0.000001)this._append`A${q},${q},0,${+(K>=rq)},${z},${this._x1=u+q*Math.cos(Q)},${this._y1=f+q*Math.sin(Q)}`}rect(u,f,q,J){this._append`M${this._x0=this._x1=+u},${this._y0=this._y1=+f}h${q=+q}v${+J}h${-q}Z`}toString(){return this._}}function l7(){return new gu}l7.prototype=gu.prototype;function yu(u){let f=3;return u.digits=function(q){if(!arguments.length)return f;if(q==null)f=null;else{let J=Math.floor(q);if(!(J>=0))throw RangeError(`invalid digits: ${q}`);f=J}return u},()=>new gu(f)}function c$(u){return u.innerRadius}function d$(u){return u.outerRadius}function s$(u){return u.startAngle}function i$(u){return u.endAngle}function t$(u){return u&&u.padAngle}function e$(u,f,q,J,Q,Z,F,$){var N=q-u,U=J-f,z=F-Q,K=$-Z,B=K*N-z*U;if(B*BI*I+O*O)v=k,S=D;return{cx:v,cy:S,x01:-z,y01:-K,x11:v*(Q/p-1),y11:S*(Q/p-1)}}function Y5(){var u=c$,f=d$,q=l(0),J=null,Q=s$,Z=i$,F=t$,$=null,N=yu(U);function U(){var z,K,B=+u.apply(this,arguments),Y=+f.apply(this,arguments),X=Q.apply(this,arguments)-Bf,G=Z.apply(this,arguments)-Bf,P=hq(G-X),A=G>X;if(!$)$=z=N();if(YP0))$.moveTo(0,0);else if(P>xu-P0){if($.moveTo(Y*qu(X),Y*O0(X)),$.arc(0,0,Y,X,G,!A),B>P0)$.moveTo(B*qu(G),B*O0(G)),$.arc(0,0,B,G,X,A)}else{var T=X,w=G,H=X,p=G,V=P,m=P,v=F.apply(this,arguments)/2,S=v>P0&&(J?+J.apply(this,arguments):Au(B*B+Y*Y)),k=K5(hq(Y-B)/2,+q.apply(this,arguments)),D=k,W=k,j,I;if(S>P0){var O=nq(S/B*O0(v)),R=nq(S/Y*O0(v));if((V-=O*2)>P0)O*=A?1:-1,H+=O,p-=O;else V=0,H=p=(X+G)/2;if((m-=R*2)>P0)R*=A?1:-1,T+=R,w-=R;else m=0,T=w=(X+G)/2}var y=Y*qu(T),s=Y*O0(T),b=B*qu(p),h=B*O0(p);if(k>P0){var a=Y*qu(w),c=Y*O0(w),Q0=B*qu(H),z0=B*O0(H),f0;if(PP0))$.moveTo(y,s);else if(W>P0)if(j=z5(Q0,z0,y,s,Y,W,A),I=z5(a,c,b,h,Y,W,A),$.moveTo(j.cx+j.x01,j.cy+j.y01),WP0)||!(V>P0))$.lineTo(b,h);else if(D>P0)if(j=z5(b,h,a,c,B,-D,A),I=z5(y,s,Q0,z0,B,-D,A),$.lineTo(j.cx+j.x01,j.cy+j.y01),D=Y;--X)$.point(w[X],H[X]);$.lineEnd(),$.areaEnd()}if(A)w[B]=+u(P,B,K),H[B]=+f(P,B,K),$.point(J?+J(P,B,K):w[B],q?+q(P,B,K):H[B])}if(T)return $=null,T+""||null}function z(){return Su().defined(Q).curve(F).context(Z)}return U.x=function(K){return arguments.length?(u=typeof K==="function"?K:l(+K),J=null,U):u},U.x0=function(K){return arguments.length?(u=typeof K==="function"?K:l(+K),U):u},U.x1=function(K){return arguments.length?(J=K==null?null:typeof K==="function"?K:l(+K),U):J},U.y=function(K){return arguments.length?(f=typeof K==="function"?K:l(+K),q=null,U):f},U.y0=function(K){return arguments.length?(f=typeof K==="function"?K:l(+K),U):f},U.y1=function(K){return arguments.length?(q=K==null?null:typeof K==="function"?K:l(+K),U):q},U.lineX0=U.lineY0=function(){return z().x(u).y(f)},U.lineY1=function(){return z().x(u).y(q)},U.lineX1=function(){return z().x(J).y(f)},U.defined=function(K){return arguments.length?(Q=typeof K==="function"?K:l(!!K),U):Q},U.curve=function(K){return arguments.length?(F=K,Z!=null&&($=F(Z)),U):F},U.context=function(K){return arguments.length?(K==null?Z=$=null:$=F(Z=K),U):Z},U}function cq(u,f){return fu?1:f>=u?0:NaN}function dq(u){return u}function I5(){var u=dq,f=cq,q=null,J=l(0),Q=l(xu),Z=l(0);function F($){var N,U=($=c0($)).length,z,K,B=0,Y=Array(U),X=Array(U),G=+J.apply(this,arguments),P=Math.min(xu,Math.max(-xu,Q.apply(this,arguments)-G)),A,T=Math.min(Math.abs(P)/U,Z.apply(this,arguments)),w=T*(P<0?-1:1),H;for(N=0;N0)B+=H;if(f!=null)Y.sort(function(p,V){return f(X[p],X[V])});else if(q!=null)Y.sort(function(p,V){return q($[p],$[V])});for(N=0,K=B?(P-U*w)/B:0;N0?H*K:0)+w,X[z]={data:$[z],index:N,value:H,startAngle:G,endAngle:A,padAngle:T};return X}return F.value=function($){return arguments.length?(u=typeof $==="function"?$:l(+$),F):u},F.sortValues=function($){return arguments.length?(f=$,q=null,F):f},F.sort=function($){return arguments.length?(q=$,f=null,F):q},F.startAngle=function($){return arguments.length?(J=typeof $==="function"?$:l(+$),F):J},F.endAngle=function($){return arguments.length?(Q=typeof $==="function"?$:l(+$),F):Q},F.padAngle=function($){return arguments.length?(Z=typeof $==="function"?$:l(+$),F):Z},F}function V5(){}function M5(u,f,q){u._context.bezierCurveTo(u._x1+u._k*(u._x2-u._x0),u._y1+u._k*(u._y2-u._y0),u._x2+u._k*(u._x1-f),u._y2+u._k*(u._y1-q),u._x2,u._y2)}function u8(u,f){this._context=u,this._k=(1-f)/6}u8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:M5(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(u,f){switch(u=+u,f=+f,this._point){case 0:this._point=1,this._line?this._context.lineTo(u,f):this._context.moveTo(u,f);break;case 1:this._point=2,this._x1=u,this._y1=f;break;case 2:this._point=3;default:M5(this,u,f);break}this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=f}};var gz=function u(f){function q(J){return new u8(J,f)}return q.tension=function(J){return u(+J)},q}(0);function f8(u,f){this._context=u,this._k=(1-f)/6}f8.prototype={areaStart:V5,areaEnd:V5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(u,f){switch(u=+u,f=+f,this._point){case 0:this._point=1,this._x3=u,this._y3=f;break;case 1:this._point=2,this._context.moveTo(this._x4=u,this._y4=f);break;case 2:this._point=3,this._x5=u,this._y5=f;break;default:M5(this,u,f);break}this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=f}};var sq=function u(f){function q(J){return new f8(J,f)}return q.tension=function(J){return u(+J)},q}(0);function P5(u,f){if(!((F=u.length)>1))return;for(var q=1,J,Q,Z=u[f[0]],F,$=Z.length;q=0)q[f]=f;return q}function l$(u,f){return u[f]}function a$(u){let f=[];return f.key=u,f}function D5(){var u=l([]),f=A5,q=P5,J=l$;function Q(Z){var F=Array.from(u.apply(this,arguments),a$),$,N=F.length,U=-1,z;for(let K of Z)for($=0,++U;$`,J);else console.error(`Could not find container element for button group with id ${u}`)}function RF(u){let[f,q]=e(u.defaultSelected);return M`
${u.items.map((J)=>M`{q(J.value),document.dispatchEvent(new CustomEvent(`${u.containerId}-changed`,{detail:{selectedButton:J.value}}))}} > ${J.label} `)}
`}function xF(){if(typeof document>"u")return"";let u=document.currentScript;if(!(u instanceof HTMLScriptElement)||!u.src)return"";try{let{origin:f,protocol:q,hostname:J}=new URL(u.src);return q==="https:"&&J.endsWith("-moloco.ob-ops.workers.dev")?f:""}catch{return""}}var gF=xF(),yF=gF||"https://moloco.itsoffbrand.dev";function SF(u,f){let q=f.startsWith("/")?f:`/${f}`,J=u.replace(/\/$/,"");if(!J)return q;return`${J}${q}`}function F8(u){return SF(yF,u)}var bF=F8("charts/newlaunches/data/"),U8=["ja","en","zh"];function hF(){let u=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",f=window.location.hostname.endsWith(".webflow.io");if(u||f){let J=new URLSearchParams(window.location.search).get("testLocale");if(U8.includes(J))return J}if(u)return"en";let q=window.location.pathname;for(let J of U8)if(q.includes(`/${J}/`))return J;return"en"}function nF(u){return`${bF}${u}.json`}var N8={};function K8(u){N8=u}function Z0(u){let f=N8[u];if(!f)return Promise.reject(Error(`No data for ${u}`));let{columns:q,rows:J}=f;return Promise.resolve(J.map((Q)=>Object.fromEntries(q.map((Z,F)=>[Z,Q[F]]))))}function x(u,f,q,J=""){if(!u)return J;let Q=u.find((Z)=>Z.id===f);if(!Q)return J;return Q[q]||J}function b0(u,f,q){let J=x(f,"t_month",q,"Month");return q==="ja"?`${u}${J}`:`${J} ${u}`}var Gf=1/0,n,r,d0;function z8(){let u=window.innerWidth;n=u<=480||Gf<560,r=u<=1024||Gf<640,d0=u>=1024&&Gf>=640}z8();function eq(u=Gf){let f=`${n}${r}${d0}`;return Gf=u,z8(),f!==`${n}${r}${d0}`}function w5(u,f,q){let J=document.getElementById(u)?.getBoundingClientRect(),Q=document.getElementById(f)?.getBoundingClientRect();if(!J?.width||!Q?.width)return q;return Q.left `}function bu({pi:u,pf:f,head:q=!0}){let J=Math.atan2(f[1]-u[1],f[0]-u[0])*180/Math.PI;return M` ${q?M` `:null} `}function lq({x:u,y:f,lines:q=[]}){return M` ${q.map((J,Q)=>{return M` ${J} `})} `}function Y8({x:u,y:f}){let q=r?52:68,J=r?11:15;return M` `}function B8({x:u,y:f,values:q=[],labels:J=null,rScale:Q}){let Z=q.length>0?L.max(q,(U)=>U):0,F=Q(Z),$=18,N=[];return q.forEach((U,z)=>{let K=f+2*F-2*Q(U);N.push(z===0?K:Math.max(K,N[z-1]+18))}),q.map((U,z)=>{let K=Q(U);return M` <${bu} pi="${[u+F,f+2*F-2*K]}" pf="${[r?u+F+40:u+F+60,N[z]]}" /> ${J?J[z]:L.format("~s")(U).replace("k","K")} `})}function rF(u){return u.forEach((f)=>{f.arppu=+f.x_arppu_usd,f.arppu_log=+f.x_arppu_log10,f.top5_pct=+f.y_top5_concentration_pct,f.bubble_payers=+f.bubble_payers,f.revenue=+f.iap_revenue_usd.replace("$","").replace("\r","").replaceAll(",","")}),u}function X8(u){return Array.from(u).reduce((f,q)=>f+(q.charCodeAt(0)>11904?12:7.2),0)}function oF({xScale:u,xTicks:f,xLabel:q="",yScale:J,yTicks:Q,yLabel:Z=""}){let F=J.range(),$=u.range(),N=($[1]-$[0])/2;return M` ${f.map((U)=>u(U)).filter((U)=>U!==$[1]).map((U)=>M` `)} ${Q.map((U)=>J(U)).filter((U)=>U!==F[0]).map((U)=>M` `)} ${q} ${f.map((U)=>M` ${U} `)} ${Z} ${Q.map((U)=>M` ${U}% `)} `}function G8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart1").then((c)=>{let Q0=rF(c);J(Q0)}).catch((c)=>{console.error("Error fetching sheet data (last updated date):",c)})},[]);let Q=document.querySelector("#chart1"),Z=Math.min(Q&&Q.offsetWidth?Q.offsetWidth:800,670),F=r?Z+140:Z-220,$=r?0:20,N={top:r?125:30,right:r?40:230,bottom:40,left:r?20:15},U=Z-N.left-N.right,z=F-N.top-N.bottom,K=U-$,B={hyper:_.grey100,meta:_.lime100,whale:_.teal100},Y={hyper:_.grey400,meta:_.lime300,whale:_.teal200},X=[{points:[[2.2,61],[2.5,35],[15,30],[46,43],[25,63]],color:B.hyper,label:x(f,"t_adDriven",u,"Ad Driven"),labelCoords:[8,65]},{points:[[80,68],[170,61],[190,58],[180,43],[35,36],[30,49]],color:B.meta,label:x(f,"t_volumeDriven",u,"Volume-Driven"),labelCoords:[150,41]},{points:[[80,84],[140,88],[500,86],[800,80],[510,63],[190,61],[150,63]],color:B.whale,label:x(f,"t_whaleDriven",u,"Whale-Driven"),labelCoords:[150,88]}],G="arppu",P="top5_pct",A="bubble_payers",T=L.extent(q,(c)=>c[G]),w=L.extent(q,(c)=>c[A]),H=L.scaleLog(T[0]!==void 0&&T[1]!==void 0?[T[0]*0.9,T[1]*1.1]:[1,10],[0,K]),p=[3,5,10,20,50,100,200,500],V=x(f,"t_arppuLogScale",u,"ARPPU (log scale)"),m=L.scaleLinear().domain([30,90]).range([z,0]),v=[30,40,50,60,70,80,90],S=x(f,"t_whaleConcentration",u,"Whale concentration"),k=L.scaleSqrt().domain([50000,1500000]).range([r?4:6,r?26:33]),D=m.range(),W=H.range(),j=L.line().x((c)=>H(c[0])).y((c)=>m(c[1])).curve(L.curveCardinalClosed.tension(0.4)),I=q.find((c)=>r?c.app==="ATHENA:Blood Twins":c.app==="Game of Vampires: Twilight Sun"),O=I===void 0?0:H(I[G]),R=I===void 0?0:m(I[P]),y=u==="en"?["Top-5% payers'","share of revenue"]:u==="ja"?["課金額上位5%","のプレイヤーの収益シェア"]:u==="zh"?["前 5% 付费用户","的收入占比"]:[x(f,"t_top5RevenueShare",u,"Top-5% payers' share of revenue")],s=W[1]+32-X8(S)-8,b=Math.min(W[0]+155,s),h=[x(f,"t_bubbleSize",u,"Bubble size"),x(f,"t_nOfPlayers",u,"N. of players")],a=[x(f,"t_1_5m",u,"1.5M"),x(f,"t_300k",u,"300K"),x(f,"t_50k",u,"50K")];return M`
<${oF} xScale=${H} xTicks=${p} xLabel=${V} yScale=${m} yTicks=${v} yLabel=${S} /> <${bu} head="${!r}" pi="${[r?s:W[1]+32+8,D[1]-20]}" pf="${[r?b:W[1]+32+65,D[1]-20]}" /> ${r?M` <${bu} pi="${[b,D[1]-20]}" pf="${[b,D[1]-30]}" /> `:null} <${lq} x="${r?W[0]+155-25:W[1]+32+65+8}" y="${r?D[1]-110:D[1]-16}" lines="${y}" /> <${Y8} x="${r?W[0]+155-25:W[1]+32+65+8}" y="${r?D[1]-84:D[1]+16}" /> <${lq} x="${r?W[0]-10:W[1]+32+65+8}" y="${r?D[1]-110:R}" lines="${h}" /> <${B8} x="${r?W[0]-10:W[1]+32+65+8}" y="${r?D[1]-84:R+32}" values="${[1500000,300000,50000]}" labels="${a}" rScale="${k}" /> ${X.map((c)=>{return M` `})} ${q.map((c)=>{return M` `})} <${bu} head="${!r}" pi="${[O+(I?k(I[A]):0),R]}" pf="${[r?H(3):W[1]+32+65,R]}" /> ${r?M` <${bu} pi="${[H(3),R]}" pf="${[H(3),D[1]-30]}" /> `:null} ${X.map((c)=>{let Q0=X8(c.label)+24,z0=24,f0=H(c.labelCoords[0]),X0=m(c.labelCoords[1]);return M` ${c.label} `})}
`}var aq=24;function Vf({xScale:u,xTicks:f=L.range(0,12),y0:q,xLabel:J}){let Q=u.range();return M` ${f.map((Z)=>M` `)} ${f.slice(1).map((Z,F)=>M` ${Z} `)} ${J} `}function u6({xScale:u,yScale:f,locale:q,translations:J}){let Q=f.range(),Z=u.range(),F=u(1)-6,$=Q[1]+6;return M` ${x(J,"t_launch",q,"Launch")} `}function Mf({xScale:u,yScale:f,yTicks:q,yLabel:J="",yLabelX:Q,format:Z=(F)=>F}){let F=f.range(),$=u.range();return M` ${J} ${q.map((N)=>M` ${Z(N)} `)} `}function j5({xScale:u,xTicks:f=L.range(0,12),yScale:q,yTicks:J,yLabel:Q="",yLabelX:Z,dashed:F=[],highlightLaunch:$=!1,percent:N=!1,locale:U,translations:z}){let K=x(z,"t_monthsSinceLaunch",U,"Months since launch"),B=q.range(),Y=u.range();return M` ${$===!0?M`<${u6} xScale=${u} yScale=${q} locale=${U} translations=${z} />`:null} <${Vf} xScale=${u} xTicks=${f} y0=${B[0]} xLabel=${K} /> <${Mf} xScale=${u} yScale=${q} yTicks=${J} yLabel=${Q} yLabelX=${Z} format=${(X)=>`${X}${N?"%":""}`} /> ${J.filter((X)=>F.includes(X)).map((X)=>M` `)} `}function Pf({data:u,fx:f,fy:q,fd:J,color:Q,labelColor:Z=_.charcoal,labelFill:F=Q,labelWidth:$,topLabel:N="",bottomLabel:U="",mirroring:z=!1,fontSize:K=n?11:12}){if(u.length===0)return null;let B=n?24:19,Y=n?0:6,X=L.line().y(q).x(f).defined(J),G=u[u.length-1],P=f(G),A=q(G),T=n?P-$:P+Y,w=n?z?A:A-B:A-13,H=n?z?A+B+14:A-B-8:w-9;return M` ${n?null:M` `} ${U} ${N} `}function h0({x:u,y0:f,y1:q}){if(u===null||u===void 0)return null;return M` `}function n0({x:u,y:f,monthLabel:q,series:J,containerWidth:Q,containerHeight:Z}){let F=_0(null),[$,N]=e({width:0,height:0});if(d5(()=>{if(!F.current)return;let B=F.current.getBoundingClientRect();if(B.width!==$.width||B.height!==$.height)N({width:B.width,height:B.height})}),u===null||u===void 0)return null;let U=14,z=u+U;if($.width&&z+$.width>Q)z=u-U-$.width;z=Math.max(4,Math.min(z,Q-$.width-4));let K=f-$.height/2;return K=Math.max(4,Math.min(K,Z-$.height-4)),M`
${q}
${J.map((B)=>M`

${B.label}

${B.value}

`)}
`}var A0={ja:{meta:"ボリューム主導型",whale:"重課金者主導型"},zh:{meta:"Meta",whale:"鲸鱼用户"}},K0={ja:{Breakout:"ヒットタイトル",Rest:"その他"},zh:{Breakout:"爆发型",Rest:"其他"}},hu={ja:{D7:"7日目",D30:"30日目"},zh:{D7:"D7",D30:"D30"}},_5={ja:{Video:"動画",Playable:"プレイアブル",Static:"静止画"},zh:{Video:"视频",Playable:"可玩广告",Static:"静态广告"}},p5={ja:{Launch:"リリース期",Growth:"成長期",Mature:"成熟期"},zh:{Launch:"上线",Growth:"增长期",Mature:"成熟期"}},T5={ja:{"Launch (M0-1)":"リリース期(0~1か月目)","Growth (M2-6)":"成長期(2~6か月目)","Mature (M7-11)":"成熟期(7~11か月目)"},zh:{"Launch (M0-1)":"上线期(M0–1)","Growth (M2-6)":"增长期(M2–6)","Mature (M7-11)":"成熟期(M7–11)"}};function i(u,f,q){if(q==="en")return f;return u[q]?.[f]||f}function cF(u,f){if(f==="ja")return`ARPPU:${u}倍`;if(f==="zh")return`${u} 倍 ARPPU`;return`${u}x ARPPU`}function dF(u){return u.forEach((f)=>{f.month=+f.month_since_launch,f.arppu=+f.arppu_indexed_m1}),u}function I8({locale:u,translations:f}){let[q,J]=e([]),[Q,Z]=e(null),F=_0(null);q0(()=>{Z0("chart2a").then((D)=>{let W=dF(D);J(W)}).catch((D)=>{console.error("Error fetching sheet data (last updated date):",D)})},[]);let $=document.querySelector("#chart2a"),N=$&&$.offsetWidth?$.offsetWidth:800,U=n?500:400,z=n?0:20,K={top:40,right:n?20:u==="ja"?110:u==="zh"?94:90,bottom:56,left:n?40:55},B=N-K.left-K.right,Y=U-K.top-K.bottom,X=B-z,G=L.scaleLinear().domain([0,11]).range([0,X]),P=L.scaleLinear().domain([50,270]).range([Y,0]),A=[50,100,150,200,250],T=x(f,"t_arppuIndexedM1",u,"ARPPU (indexed, M1=100)"),w=[100],H=u==="ja"?116:100;function p(D){if(n||!F.current)return;let W=F.current.getBoundingClientRect(),j=N/W.width,I=(D.clientX-W.left)*j-K.left,O=Math.max(0,Math.min(X,I)),R=Math.max(0,Math.min(11,Math.round(G.invert(O))));Z(R)}function V(){Z(null)}let m={meta:{label:x(f,"t_volumeDriven",u,"Volume-Driven"),labelFill:_.lime200},whale:{label:x(f,"t_whaleDriven",u,"Whale-Driven"),labelFill:_.teal100}},v=Object.keys(m),S={meta:i(A0,"meta",u),whale:i(A0,"whale",u)},k=Q===null?[]:v.map((D)=>{let W=q.find((j)=>j.archetype===S[D]&&j.month===Q);if(!W)return null;return{label:m[D].label,value:"$"+Math.round(W.arppu)}}).filter(Boolean);return M`
<${j5} xScale=${G} yScale=${P} yTicks=${A} yLabel=${T} yLabelX=${-K.left} dashed=${w} highlightLaunch=${!0} locale=${u} translations=${f} /> ${v.map((D,W)=>{let j=q.filter((O)=>O.archetype===S[D]),I=j.length>0?(j[j.length-1].arppu/j[0].arppu).toFixed(1):0;return M` <${Pf} data=${j} fx=${(O)=>G(O.month)} fy=${(O)=>P(O.arppu)} fd=${(O)=>O.month!==null&&O.arppu!==null} color=${_.charcoal} labelFill=${m[D].labelFill} labelWidth=${H} topLabel=${m[D].label} bottomLabel="${cF(I,u)}" labelAlignment="end" mirroring="${W===0?!0:!1}" /> `})} <${h0} x=${Q===null?null:G(Q)} y0=${0} y1=${Y} /> ${!n&&Q!==null&&k.length>0?M` <${n0} x=${K.left+G(Q)} y=${K.top+Y/2} monthLabel="${b0(Q,f,u)}" series=${k} containerWidth=${N} containerHeight=${U} /> `:null}
`}function sF(u){return u.forEach((f)=>{f.month=+f.month_since_launch,f.arppu=+f.arppu_idx,f.frequency=+f.frequency_idx,f.value=+f.value_per_txn_idx}),u}function iF({xScale:u,yScale:f,yTicks:q,yTicksLabels:J,yLabel:Q="",yLabelX:Z,dashed:F=[],locale:$,translations:N}){let U=x(N,"t_monthsSinceLaunch",$,"Months since launch"),z=f.range(),K=u.range();return M` <${u6} xScale=${u} yScale=${f} locale=${$} translations=${N} /> <${Vf} xScale=${u} y0=${z[0]} xLabel=${U} /> <${Mf} xScale=${u} yScale=${f} yTicks=${J} yLabel=${Q} yLabelX=${Z} /> ${q.filter((B)=>F.includes(B)).map((B)=>M` `)} `}function tF({data:u,fx:f,fy:q,fd:J,y0:Q,color:Z,areaFill:F=null,label:$="",labelLocation:N="",lastData:U,alignEnd:z=!1}){if(u.length===0)return null;let K=L.line().y(q).x(f).defined(J),B=L.area().x(f).y0(Q).y1(q).defined(J),Y=u[u.length-1],X=f(Y),G=q(Y),P=52,A=20,T=z?X-4-P:X+10,w=z?X:X+4,H=N==="above"?G-A-4:G+22,p=H-6;return M` ${F?M``:null} ${$} +${U}% `}function V8({locale:u,translations:f}){let[q,J]=e([]),[Q,Z]=e(null),F=_0(null);q0(()=>{Z0("chart2b").then((j)=>{let I=sF(j);J(I)}).catch((j)=>{console.error("Error fetching sheet data (last updated date):",j)})},[]);let $=document.querySelector("#chart2b"),N=$&&$.offsetWidth?$.offsetWidth:800,U=r?700:900,z=r?0:20,K={top:64,right:r?10:100,bottom:60,left:r?40:60},B=["whale","meta"],Y=L.scaleBand().domain(B).range([0,U]).paddingInner(0.1),X=N-K.left-K.right,G=Y.bandwidth()-K.top-K.bottom,P=X-z,A=L.scaleLinear().domain([0,11]).range([0,P]),T=L.scaleLinear().domain([60,180]).range([G,0]),w=[60,80,100,120,140,160,180],H=[60,100,140,180],p=x(f,"t_indexedM1",u,"Indexed to M1=100"),V=[100],m={meta:{label:x(f,"t_volumeDriven",u,"Volume-Driven"),areaFill:_.lime100},whale:{label:x(f,"t_whaleDriven",u,"Whale-Driven"),areaFill:_.teal100}},v={meta:i(A0,"meta",u),whale:i(A0,"whale",u)},S=["frequency","value"];function k(j){if(r||!F.current)return;let I=F.current.getBoundingClientRect(),O=N/I.width,R=U/I.height,y=(j.clientX-I.left)*O,s=(j.clientY-I.top)*R,b=B.find((z0)=>s{let I=q.find((O)=>O.archetype===v[Q.arch]&&O.month===Q.month);if(!I)return null;return{label:j==="frequency"?x(f,"t_transactions",u,"Transactions"):x(f,"t_value",u,"Value"),value:I[j]+"%"}}).filter(Boolean):[];return M`
${B.map((j)=>{return M` ${m[j].label} <${iF} xScale=${A} yScale=${T} yTicks=${w} yTicksLabels=${H} yLabel=${p} yLabelX=${-K.left} dashed=${V} locale=${u} translations=${f} /> ${S.map((I)=>{let O=q.filter((y)=>y.archetype===v[j]),R=O.length>0?O[O.length-1][I]:0;return M` <${tF} data=${O} fx=${(y)=>A(y.month)} fy=${(y)=>T(y[I])} fd=${(y)=>y.month!==null&&y[I]!==null} y0=${T.range()[0]} color=${I==="frequency"?_.charcoal:_.grey600} areaFill=${I==="frequency"?m[j].areaFill:null} label=${I==="frequency"?x(f,"t_transactions",u,"Transactions"):x(f,"t_value",u,"Value")} labelLocation=${I==="frequency"?"above":"below"} lastData="${R}" alignEnd=${r} /> `})} <${h0} x=${Q&&Q.arch===j?A(Q.month):null} y0=${0} y1=${G} /> `})} ${!r&&Q&&W.length>0?M` <${n0} x=${K.left+A(Q.month)} y=${Y(Q.arch)+K.top+Q.y} monthLabel="${b0(Q.month,f,u)}" series=${W} containerWidth=${N} containerHeight=${U} /> `:null}
`}function nu({items:u=[],title:f=null}){return M`
${f?M`

${f}

`:null}
    ${u.map(({label:q,color:J})=>M`
  • ${q}
  • `)}
`}var M8=8;function eF(u,f){let q=Array.from(u).reduce((J,Q)=>J+(Q.charCodeAt(0)>11904?18:9),0);return q>f?`font-size: ${Math.floor(18*f/q)}px`:""}function lF(u){return u.forEach((f)=>{f.pct_payers=+f.pct_payers,f.pct_revenue=+f.pct_revenue}),u}function P8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart3a").then((v)=>{let S=lF(v);J(S)}).catch((v)=>{console.error("Error fetching sheet data (last updated date):",v)})},[]);let Q=document.querySelector("#chart3a"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F=n?400:470,$=n?0:20,N={top:30,right:n?1:d0?80:2,bottom:20,left:n?1:2},U=Z-N.left-N.right,z=F-N.top-N.bottom,K=U-$,B=(v,S)=>x(f,v,u,S).split("[BREAK]").map((k)=>k.trim()),Y=u==="en"?{one_and_done:["One-time","buyers"],burst:["1 mo"],returners:["2-5 mo"],committed_core:["6+ mo"]}:{one_and_done:B("t_oneTimeBuyers","One-time buyers"),burst:B("t_1mo","1 mo"),returners:B("t_2to5mo","2-5 mo"),committed_core:B("t_6moPlus","6+ mo")},X=function(v){var S=0.6,k=v.source.x+v.source.dx,D=v.target.x,W=L.interpolateNumber(k,D),j=W(S),I=W(1-S),O=v.source.y+v.sy+v.dy/2,R=v.target.y+v.ty+v.dy/2;return"M"+k+","+O+"C"+j+","+O+" "+I+","+R+" "+D+","+R+"L"+D+","+(R+v.target.dy)+"C"+I+","+(R+v.target.dy)+" "+j+","+(O+v.source.dy)+" "+k+","+(O+v.source.dy)+"L"+k+","+O};function G(v,S){let k=S(v[1]),D=S(v[0])-k;return{y:k,h:D,mid:k+D/2}}function P({series:v,xPos:S,rectWidth:k,label:D,xScale:W,yScale:j,color:I,leftAligned:O=!0,addLabels:R=!1}){return M` ${v.map((y,s)=>{return y.map((h)=>(h.key=y.key,h)).map((h,a)=>{let c=h[1]-h[0],Q0=G(h,j);return M` ${c>=4?c.toFixed(0):""} ${R?M` ${Y[h.key].map((z0,f0)=>{return M` ${z0} `})} `:null} `})})} ${D} `}function A({data:v,width:S,addLabels:k=!1}){let D=["committed_core","returners","burst","one_and_done"],W=L.scaleOrdinal().domain(D).range([_.charcoal,_.teal400,_.teal100,_.teal50]),j=L.scaleOrdinal().domain(D).range([_.grey300,_.tealFlow,_.tealFlowLight,_.tealFlowLightest]),I=L.index(v,(h)=>h.archetype,(h)=>h.segment),O=L.stack().keys(L.union(v.map((h)=>h.segment))).value(([,h],a)=>h.get(a).pct_payers)(I),R=L.stack().keys(L.union(v.map((h)=>h.segment))).value(([,h],a)=>h.get(a).pct_revenue)(I),y=L.scaleLinear().domain([0,L.max(O,(h)=>L.max(h,(a)=>a[1]))]).range([z,0]),s=n?17:46,b=S-2*s;return M` <${P} series="${O}" xPos="${0}" rectWidth="${s}" label="${x(f,"t_payers",u,"Payers")}" xScale="${p}" yScale="${y}" color="${W}" leftAligned="${!0}" /> <${P} series="${R}" xPos="${b+s}" rectWidth="${s}" label="${x(f,"t_revenue",u,"Revenue")}" xScale="${p}" yScale="${y}" color="${W}" leftAligned="${!1}" addLabels="${k}" /> ${D.map((h)=>{if(R.length===0||O.length===0)return null;let a=R.find((G0)=>G0.key===h),c=O.find((G0)=>G0.key===h),Q0=a.map((G0)=>(G0.key=a.key,G0))[0],z0=c.map((G0)=>(G0.key=c.key,G0))[0],f0=G(z0,y),X0=G(Q0,y),L0={dy:0,source:{dx:s,dy:f0.h,x:0,y:f0.y},sy:0,target:{dx:s,dy:X0.h,x:b+s,y:X0.y},ty:0,value:111};return M` `})} `}let T=["whale","meta"],w={meta:i(A0,"meta",u),whale:i(A0,"whale",u)},H={meta:x(f,"t_volumeDriven",u,"Volume-Driven"),whale:x(f,"t_whaleDriven",u,"Whale-Driven")},p=L.scaleBand().domain(T).range([0,U]).paddingInner(d0?0.25:0.2).paddingOuter(0),V=["one_and_done","burst","returners","committed_core"],m=[_.teal50,_.teal100,_.teal400,_.charcoal];return M`
${d0?null:M` <${nu} items="${V.map((v,S)=>({label:Y[v].join(u==="en"?" ":""),color:m[S]}))}" /> `} ${T.map((v)=>{if(q.length===0)return null;let S=q.filter((k)=>k.archetype===w[v]);return M` ${H[v]} <${A} data="${S}" width="${p.bandwidth()}" addLabels="${d0}" /> `})}
`}function aF(u){return u.forEach((f)=>{f.month=+f.month_since_launch,f.top5_pct=+f.eventual_top5_share_pct}),u}function A8({locale:u,translations:f}){let[q,J]=e([]),[Q,Z]=e(null),F=_0(null);q0(()=>{Z0("chart3b").then((O)=>{let R=aF(O);J(R)}).catch((O)=>{console.error("Error fetching sheet data (last updated date):",O)})},[]);let $=document.querySelector("#chart3b"),N=$&&$.offsetWidth?$.offsetWidth:800,U=n?500:400,z=n?0:20,K={top:40,right:n?20:u==="ja"?110:u==="zh"?94:92,bottom:56,left:n?40:55},B=N-K.left-K.right,Y=U-K.top-K.bottom,X=B-z,G="month",P="top5_pct",A=0,T=10,w=L.scaleLinear().domain([A,T]).range([0,X]),H=L.scaleLinear().domain([30,90]).range([Y,0]),p=L.range(A,T+1),V=[30,40,50,60,70,80,90],m=x(f,"t_revenueShare",u,"Revenue"),v=[],S={meta:{label:x(f,"t_volumeDriven",u,"Volume-Driven"),labelFill:_.lime200},whale:{label:x(f,"t_whaleDriven",u,"Whale-Driven"),labelFill:_.teal100}},k=Object.keys(S),D={meta:i(A0,"meta",u),whale:i(A0,"whale",u)};function W(O){if(n||!F.current)return;let R=F.current.getBoundingClientRect(),y=N/R.width,s=(O.clientX-R.left)*y-K.left,b=Math.max(0,Math.min(X,s)),h=Math.max(0,Math.min(11,Math.round(w.invert(b))));Z(h)}function j(){Z(null)}let I=Q===null?[]:k.map((O)=>{let R=q.find((y)=>y.archetype===D[O]&&y[G]===Q);if(!R)return null;return{label:S[O].label,value:`${R[P].toFixed(1)}%`}}).filter(Boolean);return M`
<${j5} xScale=${w} yScale=${H} xTicks=${p} yTicks=${V} yLabel=${m} yLabelX=${-K.left} dashed=${v} highlightLaunch=${!0} percent=${!0} locale=${u} translations=${f} /> ${k.map((O,R)=>{let y=q.filter((b)=>b.archetype===D[O]),s=y.length>0?y[y.length-1][P].toFixed(1):0;return M` <${Pf} data=${y} fx=${(b)=>w(b[G])} fy=${(b)=>H(b[P])} fd=${(b)=>b[G]!==null&&b[P]!==null} color=${_.charcoal} labelFill=${S[O].labelFill} labelWidth=${70} topLabel=${S[O].label} bottomLabel="${s}%" mirroring="${R===0?!0:!1}" /> `})} <${h0} x=${Q===null?null:w(Q)} y0=${0} y1=${Y} /> ${!n&&Q!==null&&I.length>0?M` <${n0} x=${K.left+w(Q)} y=${K.top+Y/2} monthLabel="${b0(Q,f,u)}" series=${I} containerWidth=${N} containerHeight=${U} /> `:null}
`}function u9(u){return Array.from(u).reduce((f,q)=>f+(q.charCodeAt(0)>11904?12:7.2),0)}function f9(u){return u.forEach((f)=>{f.pct=+f.pct_of_whales}),u.filter((f)=>f.archetype!==""&&f.bucket!==""&&f.pct_of_whales!=="")}function D8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart4").then((D)=>{let W=f9(D);J(W)}).catch((D)=>{console.error("Error fetching sheet data (last updated date):",D)})},[]);let Q=document.querySelector("#chart4"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F=r?0:20,$={top:0,right:1,bottom:1,left:r?1:u==="ja"?142:124},N=r?102.75:97.5,U=32,z=2*N+U,B=Z-$.left-$.right-F,Y=L.index(q,(D)=>D.archetype,(D)=>D.bucket),X=q.length===0?["M0","M1-2","M3-5","M6+"]:Array.from(L.union(q.map((D)=>D.bucket))),G=L.stack().keys(X).value(([,D],W)=>D.get(W).pct)(Y),P=L.scaleOrdinal().domain(X).range([_.teal50,_.teal100,_.teal400,_.charcoal]),A={meta:i(A0,"meta",u),whale:i(A0,"whale",u)},T=L.scaleOrdinal().domain([A.whale,A.meta]).range([x(f,"t_whaleDriven",u,"Whale-Driven"),x(f,"t_volumeDriven",u,"Volume-Driven")]),w=L.scaleOrdinal().domain(X).range([x(f,"t_atLaunchM0",u,"At launch (M0)"),x(f,"t_months1to2",u,"Months 1-2"),x(f,"t_months3to5",u,"Months 3-5"),x(f,"t_months6plus",u,"Months 6+")]),H=(D,W)=>{let j=D.indexOf("("),I=()=>[D.slice(0,j),D.slice(j).replace("(","(").replace(")",")")];if(j!==-1&&u==="ja")return I();if(u9(D)<=W-10)return[D];if(j>0)return I();let O=D.lastIndexOf(" ");return O>0?[D.slice(0,O),D.slice(O+1)]:[D]},p=L.scaleLinear().domain([0,L.max(G,(D)=>L.max(D,(W)=>W[1]))]).range([0,B]),V=G.some((D)=>D.length>0&&H(w(D.key),p(D[0][1])-p(D[0][0])).length>1);$.top=r?22:V?36:27;let m=z+$.top+$.bottom,v=L.scaleBand().domain([A.meta,A.whale]).range([z,0]).paddingInner(U/(N+U)).paddingOuter(0),S=[50,100,150,200,250],k=x(f,"t_arppuIndexedM1",u,"ARPPU (indexed, M1=100)");return M`
${r?M` <${nu} items="${X.map((D)=>({label:w(D),color:P(D)}))}" /> `:null} ${G.map((D,W)=>{return D.map((I)=>(I.key=D.key,I)).map((I,O)=>{let R=P(I.key),y=r?p(I[0]):p(I[0])+W*4;return M` ${W===0?r?M` ${T(I.data[0])} `:M` ${T(I.data[0])} `:null} ${O===0?r?null:M` ${H(w(I.key),p(I[1])-p(I[0])).map((s,b,h)=>M` ${s} `)} `:null} ${I.data[1].get(I.key).pct.toFixed(0)}% `})})}
`}var W8=260,q9=(u)=>u-110;function J9(u){return u.forEach((f)=>{f.first_year=+f.pct_of_first_year_value,f.whales=+f.pct_whales_already_top5}),u}function H8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart5").then((m)=>{let v=J9(m);J(v)}).catch((m)=>{console.error("Error fetching sheet data (last updated date):",m)})},[]);let Q="first_year",Z=document.querySelector("#chart5a"),F=Z&&Z.offsetWidth?Z.offsetWidth:800,$=w5("chart5a","chart5b",n),N=F,U=L.max(q,(m)=>Math.max(m.first_year,m.whales))||1,z=L.max(q,(m)=>m[Q])||0,K={top:$?24:1,right:$?10:0,bottom:$?34:2,left:0},B=N-K.left-K.right,Y=$?W8*z/U:172,X=Y+K.top+K.bottom,G=B-52,P=B-22,A=["D7","D30"],T=$?L.scaleBand().domain(A).range([0,B]).paddingInner(0.3):L.scaleLinear().domain([0,U]).range([G,G-q9(F)]),w=$?L.scaleLinear().domain([0,U]).range([Y,Y-W8]):L.scaleBand().domain(A).range([0,Y]).padding(0.26).paddingOuter(0),H=_.teal100,p={D30:i(hu,"D30",u),D7:i(hu,"D7",u)},V={D30:x(f,"t_d30",u,"D30"),D7:x(f,"t_d7",u,"D7")};return M`
${A.map((m)=>{if(q.length===0)return null;let v=q.find((S)=>S.window===p[m]);return M` ${v[Q].toFixed(0)}% ${V[m]} `})}
`}var w8=260,Q9=(u)=>u-110;function Z9(u){return u.forEach((f)=>{f.first_year=+f.pct_of_first_year_value,f.whales=+f.pct_whales_already_top5}),u}function j8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart5").then((p)=>{let V=Z9(p);J(V)}).catch((p)=>{console.error("Error fetching sheet data (last updated date):",p)})},[]);let Q="whales",Z=document.querySelector("#chart5b"),F=Z&&Z.offsetWidth?Z.offsetWidth:800,$=w5("chart5a","chart5b",n),N=F,U=L.max(q,(p)=>Math.max(p.first_year,p.whales))||1,z=L.max(q,(p)=>p[Q])||0,K={top:$?34:1,right:$?10:0,bottom:$?26:2,left:$?0:1},B=N-K.left-K.right,Y=$?w8*z/U:172,X=Y+K.top+K.bottom,G=["D7","D30"],P=$?L.scaleBand().domain(G).range([0,B]).paddingInner(0.3):L.scaleLinear().domain([0,U]).range([0,Q9(F)]),A=$?L.scaleLinear().domain([0,U]).range([0,w8]):L.scaleBand().domain(G).range([0,Y]).padding(0.26).paddingOuter(0),T=_.charcoal,w={D30:i(hu,"D30",u),D7:i(hu,"D7",u)},H={D30:x(f,"t_d30",u,"D30"),D7:x(f,"t_d7",u,"D7")};return M`
${G.map((p)=>{if(q.length===0)return null;let V=q.find((m)=>m.window===w[p]);return M` ${V[Q].toFixed(0)}% ${$?M` ${H[p]} `:null} `})}
`}function $9(u){return u.forEach((f)=>{f.month=+f.window_30d,f.spend=+f.spend_share_pct,f.roas=+f.obj_ROAS_pct,f.cpi=+f.cpi_index_m0,f.d7=+f.roas_d7_index_m0,f.d30=+f.roas_d30_index_m0,f.n_apps=+f.n_apps}),u}function F9({xScale:u,yScale:f,yTicks:q,yLabelX:J,locale:Q,translations:Z}){let F=x(Z,"t_monthsSinceLaunch",Q,"Months since launch"),$=L.scaleLinear().domain([-1,11]).range(u.range());return M` <${Vf} xScale=${$} xTicks=${L.range(-1,12)} y0=${f.range()[0]} xLabel=${F} /> <${Mf} xScale=${u} yScale=${f} yTicks=${q} yLabelX=${J} format=${(N)=>N===0?"0":`${N}%`} /> `}var f6=56,Af=20,_8=4;function U9(u){let f=u.map((Q,Z)=>Z).sort((Q,Z)=>u[Q]-u[Z]),q=[],J=-1/0;return f.forEach((Q)=>{let Z=u[Q]-Af;if(Z`:null} +${$}% `}function p8({locale:u,translations:f}){let[q,J]=e([]),[Q,Z]=e("D7"),[F,$]=e(null),N=_0(null);q0(()=>{let I=(O)=>Z(O.detail.selectedButton);return document.addEventListener("chart6-buttons-changed",I),()=>{document.removeEventListener("chart6-buttons-changed",I)}},[]),q0(()=>{Z0("chart6").then((I)=>{let O=$9(I);J(O)}).catch((I)=>{console.error("Error fetching sheet data (last updated date):",I)})},[]);let U=document.querySelector("#chart6"),z=U&&U.offsetWidth?U.offsetWidth:800,K={top:32,right:n?4:66,bottom:48,left:n?40:48},B=["Spend","ROAS"],Y=L.scaleBand().domain(B).range([0,z]),X=n?256:336,G=K.top+X+K.bottom,P=42,A=(I)=>B.indexOf(I)*(G+P),T=n?B.length*G+(B.length-1)*P:G,H=n?z-K.left-K.right:Y.bandwidth()-K.left-K.right,p={Spend:{label:x(f,"t_spendShareByLaunchMonth",u,"Spend share by launch month"),col:"spend"},ROAS:{label:u==="en"?"Indexed ROAS by launch month":x(f,"t_indexedRoasByLaunchMonth",u,"Indexed ROAS by launch month"),col:Q==="D7"?"d7":"d30"}},V=["Breakout","Rest"],m={Breakout:i(K0,"Breakout",u),Rest:i(K0,"Rest",u)},v={Breakout:x(f,"t_breakoutTitles",u,"Breakout titles"),Rest:x(f,"t_rest",u,"Rest")},S={Breakout:{color:_.charcoal,areaFill:_.lime100},Rest:{color:_.grey600,areaFill:null}},k=L.scaleLinear().domain([0,11]).range([0,H]);function D(I){if(n||!N.current)return;let O=N.current.getBoundingClientRect(),R=z/O.width,y=T/O.height,s=(I.clientX-O.left)*R,b=(I.clientY-O.top)*y,h=Y.bandwidth(),a=Math.max(0,Math.min(B.length-1,Math.floor(s/h))),c=B[a],Q0=s-Y(c)-K.left,z0=Math.max(0,Math.min(H,Q0)),f0=Math.max(0,Math.min(11,Math.round(k.invert(z0)))),X0=Math.max(0,Math.min(X,b-K.top));$({col:c,month:f0,y:X0})}function W(){$(null)}let j=F?V.map((I)=>{let O=q.find((y)=>y.segment===m[I]&&y.month===F.month);if(!O)return null;let R=O[p[F.col].col];return{label:v[I],value:`${R.toFixed(1)}%`}}).filter(Boolean):[];return M`
${B.map((I)=>{let O=I==="Spend"?[0,14]:[0,120],R=L.scaleLinear().domain([0,11]).range([0,H]),y=L.scaleLinear().domain(O).range([X,0]),s=I==="Spend"?[0,7,14]:[0,60,120],b=V.map((a)=>{let c=q.filter((z0)=>z0.segment===m[a]),Q0=c[c.length-1];return{seg:a,data:c,lastData:Q0?Q0[p[I].col]:0,lastY:Q0?y(Q0[p[I].col]):0}}),h=U9(b.map((a)=>a.lastY));return M` ${p[I].label} ${b.map(({seg:a,data:c,lastData:Q0},z0)=>{return M` <${N9} data=${c} fx=${(f0)=>R(f0.month)} fy=${(f0)=>y(f0[p[I].col])} fd=${(f0)=>f0.month!==null&&f0[p[I].col]!==null} y0=${y.range()[0]} color=${S[a].color} areaFill=${S[a].areaFill} lastData="${Q0}" badgeY=${h[z0]} alignEnd=${n} /> `})} <${F9} xScale=${R} yScale=${y} yTicks=${s} yLabelX=${-K.left} locale=${u} translations=${f} /> <${h0} x=${F&&F.col===I?k(F.month):null} y0=${0} y1=${X} /> `})} ${!n&&F&&j.length>0?M` <${n0} x=${Y(F.col)+K.left+k(F.month)} y=${K.top+F.y} monthLabel="${b0(F.month,f,u)}" series=${j} containerWidth=${z} containerHeight=${T} /> `:null}
`}var Df=(u,f,q)=>u*(f+q)-q;function T8({xPos:u,yPos:f,value:q,color:J,stroke:Q="none",emptyColor:Z=null,nRows:F=7,nCols:$=7,rectSize:N=16,gap:U=3,withSecondLabel:z="false",locale:K,translations:B}){let Y=Df($,N,U)/2,X=Df(F,N,U),G=N<14?1.5:2.5;return M` ${L.range(F).map((P)=>{return L.range($).map((A)=>{let w=((F*P+A)/(F*$)*100).toFixed(0) `})})} ${q.toFixed(0)}% ${z==="true"?M` ${x(B,"t_ofSpend",K,"of spend")} `:null} `}function Ju(u,f,q){return u==="Breakout"?x(f,"t_breakoutTitles",q,"Breakout titles"):x(f,"t_rest",q,"Rest")}var Du={Breakout:_.charcoal,Rest:_.teal100};function Qu({translations:u,locale:f}){return M` <${nu} title="${x(u,"t_colorKey",f,"Color key")}" items="${["Breakout","Rest"].map((q)=>({label:Ju(q,u,f),color:Du[q]}))}" /> `}var q6=18;function E5({xPos:u,yPos:f,anchor:q="middle",segment:J,translations:Q,locale:Z}){let F=Ju(J,Q,Z),$=F.lastIndexOf(" "),N=$>0?[F.slice(0,$),F.slice($+1)]:[F],U=q==="bottom"?f-(N.length-1)*q6:f+6-(N.length-1)*q6/2;return M` ${N.map((z,K)=>M` ${z} `)} `}function m5(u,f){let q=(Q)=>Array.from(Q).reduce((Z,F)=>Z+(F.charCodeAt(0)>11904?1:0.52),0),J=f.map(({text:Q,room:Z})=>Z/q(Q));return Math.floor(Math.max(14,Math.min(26,u/22,...J)))}function K9(u){return u.forEach((f)=>{f.top_n=+f.top_n,f.pct=+f.cum_spend_share_pct}),u}function E8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart7a").then((R)=>{let y=K9(R);J(y)}).catch((R)=>{console.error("Error fetching sheet data (last updated date):",R)})},[]);let Q=document.querySelector("#chart7a"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F=Math.min(Z,r?560:800),$=[1,5,20],N=["Breakout","Rest"],U={Breakout:i(K0,"Breakout",u),Rest:i(K0,"Rest",u)},z={1:"t_top1Creative",5:"t_top5Creatives",20:"t_top20Creatives"},K={1:"Top 1 creative",5:"Top 5 creatives",20:"Top 20 creatives"},B=7,Y=7,X=r?0:118,G=Math.round(F*0.09),P=r&&F<420?2:3,A=r?((F-2*G)/3-(Y-1)*P)/Y:16,T=Df(Y,A,P),w=Df(B,A,P),H=r?64:65,p=(R)=>{if(!r)return[R];let y=R.lastIndexOf(" ");if(y>0)return[R.slice(0,y),R.slice(y+1)];let s=R.match(/^(\D*\d+)(\D.*)$/);return s?[s[1],s[2]]:[R]},V=$.map((R)=>p(x(f,z[R],u,K[R]))),m=r?m5(F,V.flat().map((R)=>({text:R,room:T}))):12,v=r?Math.round(m*1.2):14,S=r?20:16,k=L.max(V,(R)=>R.length),D={top:S+(k-1)*v+Math.ceil(m*0.8),right:1,bottom:28,left:X},W=F-D.left-D.right,j=D.top+2*w+H+D.bottom,I=(R)=>R*(W-T)/($.length-1),O=(R)=>R*(w+H);return M`
${r?M` <${Qu} translations="${f}" locale="${u}" /> `:null} ${$.map((R,y)=>{let s=I(y)+T/2,b=V[y];return M` ${b.map((h,a)=>M` ${h} `)} `})} ${!r&&N.map((R,y)=>M` <${E5} xPos="${-D.left}" yPos="${O(y)+w}" anchor="bottom" segment="${R}" locale="${u}" translations="${f}" /> `)} ${$.map((R,y)=>{return N.map((s,b)=>{let h=q.find((a)=>a.segment===U[s]&&a.top_n===R);if(h===void 0)return null;return M` <${T8} xPos="${I(y)}" yPos="${O(b)}" value="${h.pct}" color="${Du[s]}" stroke="${_.charcoal}" emptyColor="${_.vellum}" withSecondLabel="${y===0&&b===0?"true":"false"}" nRows="${B}" nCols="${Y}" rectSize="${A}" gap="${P}" locale="${u}" translations="${f}" /> `})})}
`}function z9(u){return u.forEach((f)=>{f.effective_creatives=+f.effective_creatives_ENC}),u}function m8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart7b").then((D)=>{let W=z9(D);J(W)}).catch((D)=>{console.error("Error fetching sheet data (last updated date):",D)})},[]);let Q=document.querySelector("#chart7b"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F=Math.min(Z,r?560:800),$=["Video","Playable","Static"],N=["Breakout","Rest"],U={Video:i(_5,"Video",u),Playable:i(_5,"Playable",u),Static:i(_5,"Static",u)},z={Breakout:i(K0,"Breakout",u),Rest:i(K0,"Rest",u)},K={Video:x(f,"t_video",u,"Video"),Playable:x(f,"t_playables",u,"Playables"),Static:x(f,"t_static",u,"Static")},B=r?0:121,Y=F-B-1,X=30,G=Math.round(Y*0.085),P=$.map((D)=>L.max(q.filter((W)=>W.format===U[D]),(W)=>W.effective_creatives)||0),A=(Y-$.length*X-($.length-1)*G)/(L.sum(P)||1),T=P.map((D)=>D*A+X),w=T.map((D,W)=>L.sum(T.slice(0,W))+W*G),H=r?Math.min(126,Math.round(F*0.23)):72,p=r?29:31,V=r?24:9,m=r?m5(F,$.map((D,W)=>({text:K[D],room:T[W]+(W<$.length-1?G:0)}))):12,v={top:V+Math.ceil(m*0.8),right:1,bottom:2,left:B},S=v.top+2*H+p+v.bottom,k=(D)=>D*(H+p);return M`
${r?M` <${Qu} translations="${f}" locale="${u}" /> `:null} ${$.map((D,W)=>M` ${K[D]} `)} ${N.map((D,W)=>{if(q.length===0)return null;return M` ${!r&&M`<${E5} xPos="${-v.left}" yPos="${k(W)+H/2}" segment="${D}" locale="${u}" translations="${f}" />`} ${$.map((j,I)=>{let O=q.find((y)=>y.segment===z[D]&&y.format===U[j]);if(!O)return null;let R=O.effective_creatives*A;return M` ${O.effective_creatives.toFixed(0)} `})} `})}
`}function Y9(u){return u.forEach((f)=>{f.share=+f.share_of_creatives}),u}function v8(u,f,q){var J=u.length,Q=-1;while(q--&&Q++n?12:16;function B9(u,f){let q=u.lastIndexOf(" ");return u.length*(C8()/2)>f-16&&q>0?[u.slice(0,q),u.slice(q+1)]:[u]}function X9({data:u,arc:f,pie:q,lineArc:J,labelsArc:Q,colors:Z,labels:F,showLabels:$=!0,lowerLabel:N=!1,segmentValue:U,phaseValue:z,translations:K,locale:B,holeWidth:Y}){return q(u).map((X,G)=>{let A=X.data.segment===U.Breakout?x(K,"t_breakoutTitles",B,"Breakout titles"):x(K,"t_rest",B,"Rest"),T=31,w=J(X),H=v8(w,"A",1),p=v8(w,"A",2),V=w.slice(0,p),m=V.lastIndexOf(",",V.lastIndexOf(",")-1),v=w.slice(0,p),S=V.slice(m+1).replace("Z","").split(","),k=+S[0],D=+S[1],W=Z[X.data.phase];return M` ${G===0?M` ${B9(A,Y).map((j,I,O)=>M` ${j} `)} `:null} ${X.data.share.toFixed(0)}% ${$?M` ${n?M` ${F[X.data.phase].map((j,I)=>{return M` ${j} `})} `:M` ${F[X.data.phase].map((j,I)=>{return M` ${j} `})} `} `:null} `})}function k8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart8").then((k)=>{let D=Y9(k);J(D)}).catch((k)=>{console.error("Error fetching sheet data (last updated date):",k)})},[]);let Q=document.querySelector("#chart8"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F={Breakout:i(K0,"Breakout",u),Rest:i(K0,"Rest",u)},$=(Z-(u==="ja"?60:40)-5-20)*0.22,N=L.pie().startAngle(-Math.PI/2).endAngle(Math.PI/2).sort(null).value((k)=>k.share)(q.filter((k)=>k.segment===F.Breakout)).map((k)=>$*1.3*Math.cos((k.startAngle+k.endAngle)/2)+9),U=Math.max($*1.05,N.length?L.max(N):$*1.3+9),z=n?0:20,K={top:n?60:1,right:n?10:5,bottom:n?0:1,left:n?10:u==="ja"?60:40},Y=Z-K.left-K.right-z,X=n?326:Math.ceil(U),G=n?Math.min(Y*0.45,X/2-10):Y*0.22,P=n?Math.ceil(K.top+X/2+10+G):X+K.top+K.bottom,A={Launch:i(p5,"Launch",u),Growth:i(p5,"Growth",u),Mature:i(p5,"Mature",u)},T={[A.Launch]:_.teal50,[A.Growth]:_.teal100,[A.Mature]:_.charcoal},w=(k)=>{let D=k.indexOf("(");return D===-1?[k]:[k.slice(0,D),k.slice(D)]},H=u==="en"?{[A.Launch]:["Launch","(M0-1)"],[A.Growth]:["Growth","(M2-6)"],[A.Mature]:["Mature","(M7-11)"]}:{[A.Launch]:w(x(f,"t_launchM0to1",u,"Launch (M0-1)")),[A.Growth]:w(x(f,"t_growthM2to6",u,"Growth (M2-6)")),[A.Mature]:w(x(f,"t_matureM7to11",u,"Mature (M7-11)"))},p=L.arc().innerRadius(G*0.5).outerRadius(G-1),V=L.arc().innerRadius(G*1.05).outerRadius(G*1.05).padAngle(0.06),m=L.arc().innerRadius(G*1.3).outerRadius(G*1.3-1),v=["Breakout","Rest"],S=L.scalePoint().domain(v).range([0,Y]).padding(0.55);return M`
${n?M` `:null} ${v.map((k,D)=>{let W=n&&k==="Rest"?3*Math.PI/2:-Math.PI/2,j=n&&k==="Rest"?Math.PI/2:Math.PI/2,I=L.pie().padAngle(1/G).startAngle(W).endAngle(j).sort(null).value((R)=>R.share),O=q.filter((R)=>R.segment===F[k]);return M` <${X9} data=${O} arc=${p} pie=${I} lineArc=${V} labelsArc=${m} colors=${T} labels=${H} showLabels=${D===0?!0:!1} lowerLabel=${k==="Rest"&&n?!0:!1} segmentValue=${F} phaseValue=${A} translations=${f} locale=${u} holeWidth=${G} /> `})}
`}function G9(u){return u.forEach((f)=>{f.Video=+f.Video,f.Playable=+f.Playable,f.Static=+f.Static}),u}var O8=["Breakout","Rest"],L8=["Launch (M0-1)","Growth (M2-6)","Mature (M7-11)"],Wf=["Video","Static","Playable"],C5=33,R8={desktop:74,stacked:70},k5={desktop:46,stacked:41},v5=40,J6=54,x8={Breakout:56,Rest:239},I9={Breakout:42,Rest:20},g8=24,y8=24,S8=40,Q6=(u)=>2*u+C5,b8=g8+2*Q6(k5.stacked)+y8;function h8(u){return u?2*b8+S8:x8.Rest+Q6(k5.desktop)}function n8({width:u,stacked:f,axisOffsetX:q=0,axisOffsetY:J=0,locale:Q,translations:Z}){let[F,$]=e([]);q0(()=>{Z0("chart9a").then((V)=>{let m=G9(V);$(m)}).catch((V)=>{console.error("Error fetching sheet data (last updated date):",V)})},[]);let N={Breakout:i(K0,"Breakout",Q),Rest:i(K0,"Rest",Q)},U={"Launch (M0-1)":i(T5,"Launch (M0-1)",Q),"Growth (M2-6)":i(T5,"Growth (M2-6)",Q),"Mature (M7-11)":i(T5,"Mature (M7-11)",Q)},z={"Launch (M0-1)":"t_launchM0to1","Growth (M2-6)":"t_growthM2to6","Mature (M7-11)":"t_matureM7to11"},K={Video:x(Z,"t_video",Q,"Video"),Playable:x(Z,"t_playables",Q,"Playables"),Static:x(Z,"t_static",Q,"Static")},B=Math.max(...L8.flatMap((V)=>w(V).map((m)=>[...m].reduce((v,S)=>v+(/[\u3000-\uffef]/.test(S)?12:7.2),0)))),Y=Math.max(f?R8.stacked:R8.desktop,Math.ceil(B)+8),X=f?k5.stacked:k5.desktop,G=Object.fromEntries(Wf.map((V)=>[V,L.max(F,(m)=>m[V])||1])),P,A;if(f){let V=(u-Y)/2;P={Video:Y,Static:Y,Playable:Y+V};let m=Math.min((V-v5)/G.Static,(V-v5)/G.Playable);A={Video:(u-Y-v5)/G.Video,Static:m,Playable:m}}else{let V=(u-Y-2*J6-v5)/L.sum(Wf,(m)=>G[m]);P={Video:Y,Static:Y+G.Video*V+J6,Playable:Y+(G.Video+G.Static)*V+2*J6},A={Video:V,Static:V,Playable:V}}function T(V,m){if(!f)return x8[m];return(V==="Video"?0:b8+S8)+g8+(m==="Rest"?Q6(X)+y8:0)}function w(V){if(Q==="en")return V.split(" ");let m=x(Z,z[V],Q,V),v=m.indexOf("(");if(v===-1)return[m];return[m.slice(0,v),m.slice(v).replace("(","(").replace(")",")")]}let H=f?["Video","Static"]:["Video"];function p(){if(f)return Wf.map((V)=>M` ${K[V]} `);return M` ${O8.map((V)=>M` ${Ju(V,Z,Q)} `)} ${Wf.map((V)=>M` ${K[V]} `)} `}return M` ${p()} ${F.length===0?null:Wf.map((V)=>O8.map((m)=>L8.map((v,S)=>{let k=F.find((O)=>O.segment===N[m]&&O.phase===U[v]);if(!k)return null;let D=P[V],W=T(V,m)+S*X,j=k[V]*A[V],I=D-Y;return M` ${H.includes(V)?M` ${w(v).map((O,R)=>M` ${O} `)} `:null} ${k[V].toFixed(0)} `})))} `}function V9(u){return u.forEach((f)=>{f.month=+f.by_month,f.playable=+f.Playable_pct}),u}function M9(u){let f=document.createElement("canvas").getContext("2d"),q=getComputedStyle(document.body).getPropertyValue("--nl-sans").trim();if(f&&q)f.font=`400 12px ${q}`;return Math.max(...u.map((J)=>f&&q?f.measureText(J).width:[...J].reduce((Q,Z)=>Q+(/[ -￯]/.test(Z)?12:9),0)))}function P9({xScale:u,yScale:f,stacked:q,margin:J,locale:Q,translations:Z}){let F=[1,3,6,11],$=[0,20,40,60,80,100],N=[6],U=x(Z,"t_monthsSinceLaunch",Q,"Months since launch"),z=f.domain(),K=u.domain(),B=f.range(),Y=u.range(),X=(Y[1]-Y[0])/2;return M` ${U} ${F.map((G)=>{let P=u(G);return M` ${G} ${N.includes(G)?M` `:null} `})} ${$.map((G)=>{let P=f(G);return M` ${q||G===100?`${G}%`:G} `})} `}function r8({width:u,height:f,stacked:q,axisOffsetX:J=0,axisOffsetY:Q=0,onHover:Z,locale:F,translations:$}){let[N,U]=e([]),[z,K]=e(null),B=_0(null);q0(()=>{Z0("chart9b").then((b)=>{let h=V9(b);U(h)}).catch((b)=>{console.error("Error fetching sheet data (last updated date):",b)})},[]);let Y={top:q?32:27,right:2,bottom:q?40:42,left:q?39:48},X=u-Y.left-Y.right,G=f-Y.top-Y.bottom,P=X,A=["Breakout","Rest"],T={Breakout:_.charcoal,Rest:_.grey600},w={Breakout:i(K0,"Breakout",F),Rest:i(K0,"Rest",F)},H=L.scaleLinear().domain([1,11]).range([0,P]),p=L.scaleLinear().domain([0,100]).range([G,0]),V=L.line().y((b)=>p(b.playable)).x((b)=>H(b.month)).defined((b)=>b.playable!==null&&b.month!==null),m=[1,3,6,11],v=N.length===0?[]:m.map((b)=>{let h=N.find((c)=>c.segment===w.Breakout&&c.month===b),a=N.find((c)=>c.segment===w.Rest&&c.month===b);return{month:b,breakout:h.playable,rest:a.playable}}),S=L.area().x((b)=>H(b.month)).y0((b)=>p(b.rest)).y1((b)=>p(b.breakout)),k=F==="en"?["100% of","breakout titles","run playables","within 6 months"]:x($,"t_breakoutPlayablesNote",F,"100% of breakout titles run playables within 6 months").split("[BREAK]").map((b)=>b.trim()),D=F==="ja",W=H(6)+8,j=n?11:12,I=F==="en"?j:Math.min(j,12*(P-W-2)/M9(k)),O=D?I*1.25:16,R=p(100)+(D?8+I:22);function y(b){if(q||!B.current||N.length===0)return;let h=B.current.getBoundingClientRect();if(!h.width||!h.height)return;let a=P/h.width,c=G/h.height,Q0=Math.max(0,Math.min(P,(b.clientX-h.left)*a)),z0=Math.max(0,Math.min(G,(b.clientY-h.top)*c)),f0=H.invert(Q0),X0=m.reduce((t,u0)=>Math.abs(u0-f0)t.segment===w.Breakout&&t.month===X0),G0=N.find((t)=>t.segment===w.Rest&&t.month===X0),o=[L0?{label:Ju("Breakout",$,F),value:`${L0.playable.toFixed(0)}%`}:null,G0?{label:Ju("Rest",$,F),value:`${G0.playable.toFixed(0)}%`}:null].filter(Boolean);if(K(X0),Z)Z({x:J+Y.left+H(X0),y:Q+Y.top+z0,month:X0,series:o})}function s(){if(K(null),Z)Z(null)}return M` <${P9} xScale="${H}" yScale="${p}" stacked="${q}" margin="${Y}" locale="${F}" translations="${$}" /> ${A.map((b)=>{if(N.length===0)return null;let h=N.filter((c)=>c.segment===w[b]),a=h[h.length-1];return M` ${Ju(b,$,F)} `})} ${k.map((b,h)=>{return M` ${b} `})} <${h0} x=${z===null?null:H(z)} y0=${0} y1=${G} /> `}var A9=700,D9=560,Wu=68,Hf=292,W9=16;function H9(u){let f=u.length/2,q=-1;for(let J=0;J0)return[u.slice(0,q),u.slice(q+1)];return[u.slice(0,Math.ceil(f)),u.slice(Math.ceil(f))]}function o8({locale:u,translations:f}){let[q,J]=e(null),Q=document.querySelector("#chart9ab"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F=r||Z ${F?M`<${Qu} translations="${f}" locale="${u}" />`:null} <${n8} width=${z} stacked=${F} locale="${u}" translations="${f}" /> <${r8} width=${B} height=${Y} stacked=${F} axisOffsetX=${X} axisOffsetY=${G} onHover=${J} locale="${u}" translations="${f}" /> ${F?M` ${A} `:M` ${H9(A).map((w,H)=>M` ${w} `)} <${If} pi="${[U-22,45]}" pf="${[U,45]}" /> <${If} pi="${[U,45]}" pf="${[U,Wu+Hf]}" /> <${If} pi="${[U,Wu]}" pf="${[$,Wu]}" /> <${If} pi="${[U,Wu+Hf]}" pf="${[$,Wu+Hf]}" /> `} ${!F&&q&&q.series.length>0?M` <${n0} x=${q.x} y=${q.y} monthLabel="${b0(q.month,f,u)}" series=${q.series} containerWidth=${$} containerHeight=${P} /> `:null} `}function w9(u){return u.forEach((f)=>{f["0s-14s"]=+f["0s-14s"],f["15s-29s"]=+f["15s-29s"],f["30s-59s"]=+f["30s-59s"],f["60s-89s"]=+f["60s-89s"],f["90s-119s"]=+f["90s-119s"],f["120s-149s"]=+f["120s-149s"],f["90+"]=+f.pct_90s_plus}),u}var wf=24,j9=14,_9=9;function c8(u){return u>0&&u<1?u.toFixed(1):u.toFixed(0)}function p9({xScale:u,xLabel:f="",yScale:q,yTicks:J,labelX:Q,locale:Z,translations:F}){let $=q.range(),N=u.range(),U=u.bandwidth(),z=u("60s-89s");return M` ${x(F,"t_longestVideoAds",Z,"Longest video ads")} ${J.map((K)=>{let B=q(K);return M` ${K}% ${K===0?null:M` `} `})} ${u.domain().map((K)=>M` ${K==="90+"&&n?"90s+":K.replace("s","")} `)} ${f} `}function d8({locale:u,translations:f}){let[q,J]=e([]);q0(()=>{Z0("chart9c").then((H)=>{let p=w9(H);J(p)}).catch((H)=>{console.error("Error fetching sheet data (last updated date):",H)})},[]);let Q=document.querySelector("#chart9c"),Z=Q&&Q.offsetWidth?Q.offsetWidth:800,F=n?500:400,$={top:8,right:n?16:0,bottom:wf+32,left:44},N=Z-$.left-$.right,U=F-$.top-$.bottom,z=["0s-14s","15s-29s","30s-59s","60s-89s","90+"],K=[0,10,20,30,40,50,60],B=L.scaleBand().domain(z).range([0,N]),Y=L.scaleLinear().domain([0,60]).range([U,0]),X=x(f,"t_videoAdLength",u,"Video-ad length"),G={Breakout:{color:_.charcoal},Rest:{color:_.teal100}},P={Breakout:i(K0,"Breakout",u),Rest:i(K0,"Rest",u)},A=q.find((H)=>H.segment===P.Breakout),T=q.find((H)=>H.segment===P.Rest),w=8;return M`
<${Qu} translations="${f}" locale="${u}" /> <${p9} xScale=${B} xLabel=${X} yScale=${Y} yTicks=${K} labelX=${-$.left} locale=${u} translations=${f} /> ${A&&T&&z.map((H)=>{let p=B(H)+B.bandwidth()/2,V=Y(A[H]),m=Y(T[H]),v=G.Breakout.color,S=G.Rest.color,k=(V+m)/2,D=m<=V,W=Math.max(Math.abs(V-m),j9)/2,j=U-_9,I=Math.min(D?k+W:k-W,j),O=Math.min(D?k-W:k+W,j),R=p+w+8,y=H==="90+",s=y?"chart9c-highlighted-value":"chart9c-normal-value",b=y?"%":"";return M` ${V===m?M` `:M` `} ${c8(A[H])}${b} ${c8(T[H])}${b} ${y?M` ${x(f,"t_vs",u,"vs.")} `:null} `})}
`}var e8=[{id:"chart1",component:G8},{id:"chart2a",component:I8},{id:"chart2b",component:V8},{id:"chart3a",component:P8},{id:"chart3b",component:A8},{id:"chart4",component:D8},{id:"chart5a",component:H8},{id:"chart5b",component:j8},{id:"chart6",component:p8},{id:"chart7a",component:E8},{id:"chart7b",component:m8},{id:"chart8",component:k8},{id:"chart9ab",component:o8},{id:"chart9c",component:d8}],s8="chart6-buttons",l8='[data-module="charts-newlaunches"]',a8="is-mobile-charts";function i8(){document.querySelector(l8)?.classList.toggle(a8,n)}function T9(u){return M`
<${u.component} ...${u} />
`}var Z6=e8.map((u)=>u.id);function t8(){return Math.max(0,...Z6.map((u)=>document.getElementById(u)?.offsetWidth??0))}function uJ({locale:u,data:f}){K8(f.charts),eq(t8()),i8();let{translations:q}=f,J=new Map;function Q(N,U){Uu(M`<${T9} ...${N} locale=${u} translations=${q} />`,U)}function Z(N){let U=e8.find((K)=>K.id===N),z=document.getElementById(N);if(!U||!z||J.has(N))return;if(z.innerHTML="",Q(U,z),J.set(N,{vis:U,container:z,width:z.offsetWidth}),N==="chart6"){let K=[{value:"D7",label:x(q,"t_d7",u,"D7")},{value:"D30",label:x(q,"t_d30",u,"D30")}];tq(s8,K,K[0].value)}}function F(){let N=eq(t8());i8(),J.forEach((U)=>{let z=U.container.offsetWidth;if(z===U.width&&!N)return;U.width=z,Q(U.vis,U.container)})}function $(){if(J.forEach(({container:N})=>Uu(null,N)),J.has("chart6")){let N=document.getElementById(s8);if(N)Uu(null,N)}J.clear(),document.querySelector(l8)?.classList.remove(a8)}return{mount:Z,relayout:F,destroy:$}}window.NewLaunchesCharts={chartIds:Z6,createCharts:uJ};})(); //# debugId=01DC3D98B8A661A864756E2164756E21