import{peek as M,constant as qe,isNumber as xe,span as Be,isObject as Ge,isString as Q,error as Oe,toSet as Pe,array as ke,toNumber as ze,isArray as V}from"/-/vega-util@v1.17.2-LUfkDhormMyfWqy3Ts6U/dist=es2020,mode=imports,min/optimized/vega-util.js";import{bisectRight as Y,range as Ie,bisect as je}from"/-/d3-array@v3.2.4-G4hy00bPnjF6FrSYpT32/dist=es2020,mode=imports,min/optimized/d3-array.js";import{scaleIdentity as De,scaleLinear as Le,scaleLog as Ce,scalePow as Ae,scaleSqrt as Te,scaleSymlog as Ue,scaleTime as Ee,scaleUtc as Ne,scaleSequential as K,scaleSequentialLog as Qe,scaleSequentialPow as Ve,scaleSequentialSqrt as Ye,scaleSequentialSymlog as Ke,scaleDiverging as We,scaleDivergingLog as He,scaleDivergingPow as Xe,scaleDivergingSqrt as Je,scaleDivergingSymlog as Ze,scaleQuantile as _e,scaleQuantize as en,scaleThreshold as nn,scaleOrdinal as W,tickFormat as an}from"/-/d3-scale@v4.0.2-qUv67mnQQKwRMEsPRKcO/dist=es2020,mode=imports,min/optimized/d3-scale.js";export{scaleImplicit}from"/-/d3-scale@v4.0.2-qUv67mnQQKwRMEsPRKcO/dist=es2020,mode=imports,min/optimized/d3-scale.js";import*as tn from"/-/d3-interpolate@v3.0.1-i9AsUdFHwyaukRBWNe8d/dist=es2020,mode=imports,min/optimized/d3-interpolate.js";import{piecewise as fn}from"/-/d3-interpolate@v3.0.1-i9AsUdFHwyaukRBWNe8d/dist=es2020,mode=imports,min/optimized/d3-interpolate.js";import{schemeAccent as cn,schemeCategory10 as dn,schemeDark2 as rn,schemeObservable10 as bn,schemePaired as on,schemePastel1 as sn,schemePastel2 as un,schemeSet1 as ln,schemeSet2 as mn,schemeSet3 as gn}from"/-/d3-scale-chromatic@v3.1.0-xNM6NGi6M0zu1PK6q2i9/dist=es2020,mode=imports,min/optimized/d3-scale-chromatic.js";import{timeInterval as pn,utcInterval as hn}from"/-/vega-time@v2.1.2-0zBPNlF5GMoxR6YChBaP/dist=es2020,mode=imports,min/optimized/vega-time.js";function H(e,n,t){const a=e-n+t*2;return e?a>0?a:1:0}const X="identity",z="linear",v="log",I="pow",j="sqrt",D="symlog",S="time",$="utc",R="sequential",q="diverging",x="quantile",L="quantize",C="threshold",J="ordinal",Z="point",_="band",ee="bin-ordinal",s="continuous",G="discrete",O="discretizing",g="interpolating",T="temporal";function yn(e){return function(n){let t=n[0],a=n[1],f;return a=a&&t[o]<=f&&(c<0&&(c=o),d=o);return c<0?void 0:(a=e.invertExtent(t[c]),f=e.invertExtent(t[d]),[a[0]===void 0?a[1]:a[0],f[1]===void 0?f[0]:f[1]])}}function U(){const e=W().unknown(void 0),n=e.domain,t=e.range;let a=[0,1],f,c,d=!1,r=0,o=0,l=.5;delete e.unknown;function m(){const i=n().length,p=a[1]u+f*y);return t(p?h.reverse():h)}return e.domain=function(i){return arguments.length?(n(i),m()):n()},e.range=function(i){return arguments.length?(a=[+i[0],+i[1]],m()):a.slice()},e.rangeRound=function(i){return a=[+i[0],+i[1]],d=!0,m()},e.bandwidth=function(){return c},e.step=function(){return f},e.round=function(i){return arguments.length?(d=!!i,m()):d},e.padding=function(i){return arguments.length?(o=Math.max(0,Math.min(1,i)),r=o,m()):r},e.paddingInner=function(i){return arguments.length?(r=Math.max(0,Math.min(1,i)),m()):r},e.paddingOuter=function(i){return arguments.length?(o=Math.max(0,Math.min(1,i)),m()):o},e.align=function(i){return arguments.length?(l=Math.max(0,Math.min(1,i)),m()):l},e.invertRange=function(i){if(i[0]==null||i[1]==null)return;const p=a[1]a[1-p]?void 0:(y=Math.max(0,Y(w,u)-1),B=u===h?y:Y(w,h)-1,u-w[y]>c+1e-10&&++y,p&&(k=y,y=P-B,B=P-k),y>B?void 0:n().slice(y,B+1)))},e.invert=function(i){const p=e.invertRange([i,i]);return p&&p[0]},e.copy=function(){return U().domain(n()).range(a).round(d).paddingInner(r).paddingOuter(o).align(l)},m()}function ne(e){const n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,e.copy=function(){return ne(n())},e}function wn(){return ne(U().paddingInner(1))}var Mn=Array.prototype.map;function Sn(e){return Mn.call(e,ze)}const $n=Array.prototype.slice;function ae(){let e=[],n=[];function t(a){return a==null||a!==a?void 0:n[(je(e,a)-1)%n.length]}return t.domain=function(a){return arguments.length?(e=Sn(a),t):e.slice()},t.range=function(a){return arguments.length?(n=$n.call(a),t):n.slice()},t.tickFormat=function(a,f){return an(e[0],M(e),a??10,f)},t.copy=function(){return ae().domain(t.domain()).range(t.range())},t}const A=new Map,te=Symbol("vega_scale");function fe(e){return e[te]=!0,e}function Rn(e){return e&&e[te]===!0}function Fn(e,n,t){const a=function(){const c=n();return c.invertRange||(c.invertRange=c.invert?yn(c):c.invertExtent?vn(c):void 0),c.type=e,fe(c)};return a.metadata=Pe(ke(t)),a}function b(e,n,t){return arguments.length>1?(A.set(e,Fn(e,n,t)),this):ce(e)?A.get(e):void 0}b(X,De),b(z,Le,s),b(v,Ce,[s,v]),b(I,Ae,s),b(j,Te,s),b(D,Ue,s),b(S,Ee,[s,T]),b($,Ne,[s,T]),b(R,K,[s,g]),b(`${R}-${z}`,K,[s,g]),b(`${R}-${v}`,Qe,[s,g,v]),b(`${R}-${I}`,Ve,[s,g]),b(`${R}-${j}`,Ye,[s,g]),b(`${R}-${D}`,Ke,[s,g]),b(`${q}-${z}`,We,[s,g]),b(`${q}-${v}`,He,[s,g,v]),b(`${q}-${I}`,Xe,[s,g]),b(`${q}-${j}`,Je,[s,g]),b(`${q}-${D}`,Ze,[s,g]),b(x,_e,[O,x]),b(L,en,O),b(C,nn,O),b(ee,ae,[G,O]),b(J,W,G),b(_,U,G),b(Z,wn,G);function ce(e){return A.has(e)}function F(e,n){const t=A.get(e);return t&&t.metadata[n]}function qn(e){return F(e,s)}function de(e){return F(e,G)}function re(e){return F(e,O)}function ie(e){return F(e,v)}function be(e){return F(e,T)}function xn(e){return F(e,g)}function Bn(e){return F(e,x)}const Gn=["clamp","base","constant","exponent"];function On(e,n){const t=n[0],a=M(n)-t;return function(f){return e(t+f*a)}}function oe(e,n,t){return fn(se(n||"rgb",t),e)}function Pn(e,n){const t=new Array(n),a=n+1;for(let f=0;fe[r]?d[r](e[r]()):0),d)}function se(e,n){const t=tn[In(e)];return n!=null&&t&&t.gamma?t.gamma(n):t}function In(e){return"interpolate"+e.toLowerCase().split("-").map(n=>n[0].toUpperCase()+n.slice(1)).join("")}const jn={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},Dn={accent:cn,category10:dn,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:rn,observable10:bn,paired:on,pastel1:sn,pastel2:un,set1:ln,set2:mn,set3:gn,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function ue(e){if(V(e))return e;const n=e.length/6|0,t=new Array(n);for(let a=0;aoe(ue(e)));function ge(e,n){return e=e&&e.toLowerCase(),arguments.length>1?(me[e]=n,this):me[e]}const pe="symbol",he="discrete",Ln="gradient",Cn=e=>V(e)?e.map(n=>String(n)):String(e),An=(e,n)=>e[1]-n[1],Tn=(e,n)=>n[1]-e[1];function Un(e,n,t){let a;return xe(n)&&(e.bins&&(n=Math.max(n,e.bins.length)),t!=null&&(n=Math.min(n,Math.floor(Be(e.domain())/t||1)+1))),Ge(n)&&(a=n.step,n=n.interval),Q(n)&&(n=e.type===S?pn(n):e.type==$?hn(n):Oe("Only time and utc scales accept interval strings."),a&&(n=n.every(a))),n}function ye(e,n,t){let a=e.range(),f=a[0],c=M(a),d=An;if(f>c&&(a=c,c=f,f=a,d=Tn),f=Math.floor(f),c=Math.ceil(c),n=n.map(r=>[r,e(r)]).filter(r=>f<=r[1]&&r[1]<=c).sort(d).map(r=>r[0]),t>0&&n.length>1){const r=[n[0],M(n)];for(;n.length>t&&n.length>=3;)n=n.filter((o,l)=>!(l%2));n.length<3&&(n=r)}return n}function E(e,n){return e.bins?ye(e,e.bins,n):e.ticks?e.ticks(n):e.domain()}function ve(e,n,t,a,f,c){const d=n.type;let r=Cn;if(d===S||f===S)r=e.timeFormat(a);else if(d===$||f===$)r=e.utcFormat(a);else if(ie(d)){const o=e.formatFloat(a);if(c||n.bins)r=o;else{const l=we(n,t,!1);r=m=>l(m)?o(m):""}}else if(n.tickFormat){const o=n.domain();r=e.formatSpan(o[0],o[o.length-1],t,a)}else a&&(r=e.format(a));return r}function we(e,n,t){const a=E(e,n),f=e.base(),c=Math.log(f),d=Math.max(1,f*n/a.length),r=o=>{let l=o/Math.pow(f,Math.round(Math.log(o)/c));return l*f1?a[1]-a[0]:a[0],d;for(d=1;dN[e.type]||e.bins;function $e(e,n,t,a,f,c,d){const r=Me[n.type]&&c!==S&&c!==$?En(e,n,f):ve(e,n,t,f,c,d);return a===pe&&Vn(n)?Yn(r):a===he?Kn(r):Wn(r)}const Yn=e=>(n,t,a)=>{const f=Re(a[t+1],Re(a.max,Infinity)),c=Fe(n,e),d=Fe(f,e);return c&&d?c+" \u2013 "+d:d?"< "+d:"\u2265 "+c},Re=(e,n)=>e??n,Kn=e=>(n,t)=>t?e(n):null,Wn=e=>n=>e(n),Fe=(e,n)=>Number.isFinite(e)?n(e):null;function Hn(e){const n=e.domain(),t=n.length-1;let a=+n[0],f=+M(n),c=f-a;if(e.type===C){const d=t?c/t:.1;a-=d,f+=d,c=f-a}return d=>(d-a)/c}function Xn(e,n,t,a){const f=a||n.type;return Q(t)&&be(f)&&(t=t.replace(/%a/g,"%A").replace(/%b/g,"%B")),!t&&f===S?e.timeFormat("%A, %d %B %Y, %X"):!t&&f===$?e.utcFormat("%A, %d %B %Y, %X UTC"):$e(e,n,5,null,t,a,!0)}function Jn(e,n,t){t=t||{};const a=Math.max(3,t.maxlen||7),f=Xn(e,n,t.format,t.formatType);if(re(n.type)){const c=Se(n).slice(1).map(f),d=c.length;return`${d} boundar${d===1?"y":"ies"}: ${c.join(", ")}`}else if(de(n.type)){const c=n.domain(),d=c.length,r=d>a?c.slice(0,a-2).map(f).join(", ")+", ending with "+c.slice(-1).map(f):c.map(f).join(", ");return`${d} value${d===1?"":"s"}: ${r}`}else{const c=n.domain();return`values from ${f(c[0])} to ${f(M(c))}`}}export{_ as Band,ee as BinOrdinal,he as DiscreteLegend,q as Diverging,Ln as GradientLegend,X as Identity,z as Linear,v as Log,J as Ordinal,Z as Point,I as Pow,x as Quantile,L as Quantize,R as Sequential,j as Sqrt,pe as SymbolLegend,D as Symlog,C as Threshold,S as Time,$ as UTC,H as bandSpace,Jn as domainCaption,se as interpolate,oe as interpolateColors,On as interpolateRange,qn as isContinuous,de as isDiscrete,re as isDiscretizing,xn as isInterpolating,ie as isLogarithmic,Bn as isQuantile,Rn as isRegisteredScale,be as isTemporal,ce as isValidScaleType,$e as labelFormat,Hn as labelFraction,Se as labelValues,Pn as quantizeInterpolator,fe as registerScale,b as scale,kn as scaleCopy,zn as scaleFraction,ge as scheme,Un as tickCount,ve as tickFormat,E as tickValues,ye as validTicks};export default null;