@deephaven/embed-chart 0.39.1-beta.0 → 0.39.1-chart-refactor.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/App-af4994df.js +2 -0
- package/build/assets/App-af4994df.js.map +1 -0
- package/build/assets/{index-80ef9060.js → index-d2030d08.js} +2 -2
- package/build/assets/{index-80ef9060.js.map → index-d2030d08.js.map} +1 -1
- package/build/assets/{index-38e21f9d.js → index-dd42eaa9.js} +2 -2
- package/build/assets/{index-38e21f9d.js.map → index-dd42eaa9.js.map} +1 -1
- package/build/assets/{plotly-b153f4cb.js → plotly-5c7122a2.js} +5 -5
- package/build/assets/plotly-5c7122a2.js.map +1 -0
- package/build/assets/{useConnection-aafa6724.js → useConnection-cc39874a.js} +2 -2
- package/build/assets/{useConnection-aafa6724.js.map → useConnection-cc39874a.js.map} +1 -1
- package/build/assets/{vendor-c6328e9a.js → vendor-84eaa63e.js} +2 -2
- package/build/assets/{vendor-c6328e9a.js.map → vendor-84eaa63e.js.map} +1 -1
- package/build/index.html +2 -2
- package/package.json +14 -14
- package/build/assets/App-285052ed.js +0 -2
- package/build/assets/App-285052ed.js.map +0 -1
- package/build/assets/plotly-b153f4cb.js.map +0 -1
|
@@ -1171,5 +1171,5 @@ void main() {
|
|
|
1171
1171
|
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
|
|
1172
1172
|
|
|
1173
1173
|
gl_FragColor = color;
|
|
1174
|
-
}`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=Ete(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ke){return parseFloat(Ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=kte(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Lte(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ke,ct){if(typeof Ke=="string")try{Ke=Bs.parse(Ke)}catch{Ke=Bs.parse(xr.baseFontSize+"px "+Ke)}else Ke=Bs.parse(Bs.stringify(Ke));var yt=Bs.stringify({size:xr.baseFontSize,family:Ke.family,stretch:im?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style}),qt=Rte(Ke.size),Yt=Math.round(qt[0]*Pte(qt[1]));if(Yt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=Yt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Qe=Ke.family.join(", "),At=[Ke.style];Ke.style!=Ke.variant&&At.push(Ke.variant),Ke.variant!=Ke.weight&&At.push(Ke.weight),im&&Ke.weight!=Ke.stretch&&At.push(Ke.stretch),r.font[ct]={baseString:yt,family:Qe,weight:Ke.weight,stretch:Ke.stretch,style:Ke.style,variant:Ke.variant,width:{},kerning:{},metrics:Nte(Qe,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Ke,ct){var yt=Bs.stringify({size:r.fontSize[ct],family:Ke.family,stretch:im?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var qt=Ke.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*qt.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Ke,ct){xr.atlasContext.font=Ke.baseString;for(var yt=r.fontAtlas[ct],qt=0;qt<r.text.length;qt++){var Yt=r.text.charAt(qt);if(yt.ids[Yt]==null&&(yt.ids[Yt]=yt.chars.length,yt.chars.push(Yt),l.push(Yt)),Ke.width[Yt]==null&&(Ke.width[Yt]=xr.atlasContext.measureText(Yt).width/xr.baseFontSize,r.kerning)){var Qe=[];for(var At in Ke.width)Qe.push(At+Yt,Yt+At);Fte(Ke.kerning,Ite(Ke.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=Lo.mallocFloat(this.count*2),g=0,v=0;g<this.counts.length;g++){var y=this.counts[g];if(f)for(var E=0;E<y;E++)d[v++]=t.position[g*2],d[v++]=t.position[g*2+1];else for(var k=0;k<y;k++)d[v++]=t.position[g][0],d[v++]=t.position[g][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Lo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var x=Lo.mallocUint8(this.count),w=Lo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,C=0;_<this.counts.length;_++){for(var T=this.counts[_],F=this.font[_]||this.font[0],L=this.fontAtlas[_]||this.fontAtlas[0],V=0;V<T;V++){var j=this.text.charAt(C),te=this.text.charAt(C-1);if(x[C]=L.ids[j],w[C*2]=F.width[j],V){var ge=w[C*2-2],me=w[C*2],ke=w[C*2-1],Fe=ke+ge*.5+me*.5;if(this.kerning){var Le=F.kerning[te+j];Le&&(Fe+=Le*.001)}w[C*2+1]=Fe}else w[C*2+1]=w[C*2]*.5;C++}this.textWidth.push(w.length?w[C*2-2]*.5+w[C*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:x,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Lo.freeUint8(x),Lo.freeFloat(w),l.length&&this.font.forEach(function(Ke,ct){var yt=r.fontAtlas[ct],qt=yt.step,Yt=Math.floor(xr.maxAtlasSize/qt),Qe=Math.min(Yt,yt.chars.length),At=Math.ceil(yt.chars.length/Qe),Gt=Pk(Qe*qt),Ce=Pk(At*qt);yt.width=Gt,yt.height=Ce,yt.rows=At,yt.cols=Qe,yt.em&&yt.texture({data:Ote({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[Gt,Ce],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Ke,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Ke;case"center":case"centre":case"middle":return-Ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ke,ct){var yt=(r.font[ct]||r.font[0]).metrics,qt=0;return qt+=yt.bottom*.5,typeof Ke=="number"?qt+=Ke-yt.baseline:qt+=-yt[Ke],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=rw(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Lo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(rw(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Lo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(rw(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var we=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(we){var qe=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(qe);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function $te(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Eae=xr;function Bte(e,t){return e.parent===t.parent?1:2}function zte(e){return e.reduce(Ute,0)/e.length}function Ute(e,t){return e+t.x}function jte(e){return 1+e.reduce(Gte,0)}function Gte(e,t){return Math.max(e,t.y)}function Wte(e){for(var t;t=e.children;)e=t[0];return e}function Hte(e){for(var t;t=e.children;)e=t[t.length-1];return e}function qte(){var e=Bte,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(v){var y=v.children;y?(v.x=zte(y),v.y=jte(y)):(v.x=o?l+=e(v,o):0,v.y=0,o=v)});var s=Wte(a),f=Hte(a),d=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return a.eachAfter(n?function(v){v.x=(v.x-a.x)*t,v.y=(a.y-v.y)*r}:function(v){v.x=(v.x-d)/(g-d)*t,v.y=(1-(a.y?v.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function Vte(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Yte(){return this.eachAfter(Vte)}function Xte(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function Kte(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function Qte(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Zte(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function Jte(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function ere(e){for(var t=this,r=tre(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function tre(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function rre(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function nre(){var e=[];return this.each(function(t){e.push(t)}),e}function ire(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function are(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function zE(e,t){var r=new Nf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,f;for(t==null&&(t=ure);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(f=l.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new Nf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(LN)}function ore(){return zE(this).eachBefore(lre)}function ure(e){return e.children}function lre(e){e.data=e.data.data}function LN(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Nf(e){this.data=e,this.depth=this.height=0,this.parent=null}Nf.prototype=zE.prototype={constructor:Nf,count:Yte,each:Xte,eachAfter:Qte,eachBefore:Kte,sum:Zte,sort:Jte,path:ere,ancestors:rre,descendants:nre,leaves:ire,links:are,copy:ore};var sre=Array.prototype.slice;function fre(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function DN(e){for(var t=0,r=(e=fre(sre.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&$N(a,i)?++t:(a=hre(n=cre(n,i)),t=0);return a}function cre(e,t){var r,n;if(iw(t,e))return[t];for(r=0;r<e.length;++r)if(R0(t,e[r])&&iw(Wh(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(R0(Wh(e[r],e[n]),t)&&R0(Wh(e[r],t),e[n])&&R0(Wh(e[n],t),e[r])&&iw(BN(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function R0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function $N(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function iw(e,t){for(var r=0;r<t.length;++r)if(!$N(e,t[r]))return!1;return!0}function hre(e){switch(e.length){case 1:return dre(e[0]);case 2:return Wh(e[0],e[1]);case 3:return BN(e[0],e[1],e[2])}}function dre(e){return{x:e.x,y:e.y,r:e.r}}function Wh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,f=o-n,d=l-i,g=Math.sqrt(s*s+f*f);return{x:(r+a+s/g*d)/2,y:(n+o+f/g*d)/2,r:(g+i+l)/2}}function BN(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,f=r.x,d=r.y,g=r.r,v=n-o,y=n-f,E=i-l,k=i-d,x=s-a,w=g-a,_=n*n+i*i-a*a,C=_-o*o-l*l+s*s,T=_-f*f-d*d+g*g,F=y*E-v*k,L=(E*T-k*C)/(F*2)-n,V=(k*x-E*w)/F,j=(y*C-v*T)/(F*2)-i,te=(v*w-y*x)/F,ge=V*V+te*te-1,me=2*(a+L*V+j*te),ke=L*L+j*j-a*a,Fe=-(ge?(me+Math.sqrt(me*me-4*ge*ke))/(2*ge):ke/me);return{x:n+L+V*Fe,y:i+j+te*Fe,r:Fe}}function Fk(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),l=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(f+a-s)/(2*f),l=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function Nk(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Lk(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function P0(e){this._=e,this.next=null,this.previous=null}function zN(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,f,d,g;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;Fk(r,t,n=e[2]),t=new P0(t),r=new P0(r),n=new P0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){Fk(t._,r._,n=e[l]),n=new P0(n),s=r.next,f=t.previous,d=r._.r,g=t._.r;do if(d<=g){if(Nk(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(Nk(f._,n._)){t=f,t.next=r,r.previous=t,--l;continue e}g+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=Lk(t);(n=n.next)!==r;)(o=Lk(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=DN(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function pre(e){return zN(e),e}function vre(e){return e==null?null:dg(e)}function dg(e){if(typeof e!="function")throw new Error;return e}function al(){return 0}function Ws(e){return function(){return e}}function mre(e){return Math.sqrt(e.value)}function gre(){var e=null,t=1,r=1,n=al;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(Dk(e)).eachAfter(aw(n,.5)).eachBefore($k(1)):a.eachBefore(Dk(mre)).eachAfter(aw(al,1)).eachAfter(aw(n,a.r/Math.min(t,r))).eachBefore($k(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=vre(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ws(+a),i):n},i}function Dk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function aw(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=zN(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function $k(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function UN(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function _p(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function yre(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(UN),o}function a(o,l){return function(s){s.children&&_p(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var f=s.x0,d=s.y0,g=s.x1-r,v=s.y1-r;g<f&&(f=g=(f+g)/2),v<d&&(d=v=(d+v)/2),s.x0=f,s.y0=d,s.x1=g,s.y1=v}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var Bk="$",bre={depth:-1},zk={};function xre(e){return e.id}function wre(e){return e.parentId}function _re(){var e=xre,t=wre;function r(n){var i,a,o=n.length,l,s,f,d=new Array(o),g,v,y={};for(a=0;a<o;++a)i=n[a],f=d[a]=new Nf(i),(g=e(i,a,n))!=null&&(g+="")&&(v=Bk+(f.id=g),y[v]=v in y?zk:f);for(a=0;a<o;++a)if(f=d[a],g=t(n[a],a,n),g==null||!(g+="")){if(l)throw new Error("multiple roots");l=f}else{if(s=y[Bk+g],!s)throw new Error("missing: "+g);if(s===zk)throw new Error("ambiguous: "+g);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!l)throw new Error("no root");if(l.parent=bre,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(LN),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=dg(n),r):e},r.parentId=function(n){return arguments.length?(t=dg(n),r):t},r}function Sre(e,t){return e.parent===t.parent?1:2}function ow(e){var t=e.children;return t?t[0]:e.t}function uw(e){var t=e.children;return t?t[t.length-1]:e.t}function Ere(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Are(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function Tre(e,t,r){return e.a.parent===t.parent?e.a:r}function am(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}am.prototype=Object.create(Nf.prototype);function Cre(e){for(var t=new am(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new am(a[o],o)),i.parent=r;return(t.parent=new am(null,0)).children=[t],t}function Ore(){var e=Sre,t=1,r=1,n=null;function i(f){var d=Cre(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var g=f,v=f,y=f;f.eachBefore(function(_){_.x<g.x&&(g=_),_.x>v.x&&(v=_),_.depth>y.depth&&(y=_)});var E=g===v?1:e(g,v)/2,k=E-g.x,x=t/(v.x+E+k),w=r/(y.depth||1);f.eachBefore(function(_){_.x=(_.x+k)*x,_.y=_.depth*w})}return f}function a(f){var d=f.children,g=f.parent.children,v=f.i?g[f.i-1]:null;if(d){Are(f);var y=(d[0].z+d[d.length-1].z)/2;v?(f.z=v.z+e(f._,v._),f.m=f.z-y):f.z=y}else v&&(f.z=v.z+e(f._,v._));f.parent.A=l(f,v,f.parent.A||g[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function l(f,d,g){if(d){for(var v=f,y=f,E=d,k=v.parent.children[0],x=v.m,w=y.m,_=E.m,C=k.m,T;E=uw(E),v=ow(v),E&&v;)k=ow(k),y=uw(y),y.a=f,T=E.z+_-v.z-x+e(E._,v._),T>0&&(Ere(Tre(E,f,g),f,T),x+=T,w+=T),_+=E.m,x+=v.m,C+=k.m,w+=y.m;E&&!uw(y)&&(y.t=E,y.m+=_-w),v&&!ow(k)&&(k.t=v,k.m+=x-C,g=f)}return g}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function my(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var jN=(1+Math.sqrt(5))/2;function GN(e,t,r,n,i,a){for(var o=[],l=t.children,s,f,d=0,g=0,v=l.length,y,E,k=t.value,x,w,_,C,T,F,L;d<v;){y=i-r,E=a-n;do x=l[g++].value;while(!x&&g<v);for(w=_=x,F=Math.max(E/y,y/E)/(k*e),L=x*x*F,T=Math.max(_/L,L/w);g<v;++g){if(x+=f=l[g].value,f<w&&(w=f),f>_&&(_=f),L=x*x*F,C=Math.max(_/L,L/w),C>T){x-=f;break}T=C}o.push(s={value:x,dice:y<E,children:l.slice(d,g)}),s.dice?_p(s,r,n,i,k?n+=E*x/k:a):my(s,r,n,k?r+=y*x/k:i,a),k-=x,d=g}return o}const WN=function e(t){function r(n,i,a,o,l){GN(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(jN);function kre(){var e=WN,t=!1,r=1,n=1,i=[0],a=al,o=al,l=al,s=al,f=al;function d(v){return v.x0=v.y0=0,v.x1=r,v.y1=n,v.eachBefore(g),i=[0],t&&v.eachBefore(UN),v}function g(v){var y=i[v.depth],E=v.x0+y,k=v.y0+y,x=v.x1-y,w=v.y1-y;x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),v.x0=E,v.y0=k,v.x1=x,v.y1=w,v.children&&(y=i[v.depth+1]=a(v)/2,E+=f(v)-y,k+=o(v)-y,x-=l(v)-y,w-=s(v)-y,x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),e(v,E,k,x,w))}return d.round=function(v){return arguments.length?(t=!!v,d):t},d.size=function(v){return arguments.length?(r=+v[0],n=+v[1],d):[r,n]},d.tile=function(v){return arguments.length?(e=dg(v),d):e},d.padding=function(v){return arguments.length?d.paddingInner(v).paddingOuter(v):d.paddingInner()},d.paddingInner=function(v){return arguments.length?(a=typeof v=="function"?v:Ws(+v),d):a},d.paddingOuter=function(v){return arguments.length?d.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):d.paddingTop()},d.paddingTop=function(v){return arguments.length?(o=typeof v=="function"?v:Ws(+v),d):o},d.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:Ws(+v),d):l},d.paddingBottom=function(v){return arguments.length?(s=typeof v=="function"?v:Ws(+v),d):s},d.paddingLeft=function(v){return arguments.length?(f=typeof v=="function"?v:Ws(+v),d):f},d}function Mre(e,t,r,n,i){var a=e.children,o,l=a.length,s,f=new Array(l+1);for(f[0]=s=o=0;o<l;++o)f[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(g,v,y,E,k,x,w){if(g>=v-1){var _=a[g];_.x0=E,_.y0=k,_.x1=x,_.y1=w;return}for(var C=f[g],T=y/2+C,F=g+1,L=v-1;F<L;){var V=F+L>>>1;f[V]<T?F=V+1:L=V}T-f[F-1]<f[F]-T&&g+1<F&&--F;var j=f[F]-C,te=y-j;if(x-E>w-k){var ge=(E*te+x*j)/y;d(g,F,j,E,k,ge,w),d(F,v,te,ge,k,x,w)}else{var me=(k*te+w*j)/y;d(g,F,j,E,k,x,me),d(F,v,te,E,me,x,w)}}}function Rre(e,t,r,n,i){(e.depth&1?my:_p)(e,t,r,n,i)}const Pre=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,g,v=-1,y,E=s.length,k=n.value;++v<E;){for(f=s[v],d=f.children,g=f.value=0,y=d.length;g<y;++g)f.value+=d[g].value;f.dice?_p(f,i,a,o,a+=(l-a)*f.value/k):my(f,i,a,i+=(o-i)*f.value/k,l),k-=f.value}else n._squarify=s=GN(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(jN),Ire=Object.freeze(Object.defineProperty({__proto__:null,cluster:qte,hierarchy:zE,pack:gre,packEnclose:DN,packSiblings:pre,partition:yre,stratify:_re,tree:Ore,treemap:kre,treemapBinary:Mre,treemapDice:_p,treemapResquarify:Pre,treemapSlice:my,treemapSliceDice:Rre,treemapSquarify:WN},Symbol.toStringTag,{value:"Module"})),Aae=Rl(Ire);function Yf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Sp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Su(){}var Ol=.7,Lf=1/Ol,gf="\\s*([+-]?\\d+)\\s*",Wd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fre=/^#([0-9a-f]{3,8})$/,Nre=new RegExp(`^rgb\\(${gf},${gf},${gf}\\)$`),Lre=new RegExp(`^rgb\\(${xa},${xa},${xa}\\)$`),Dre=new RegExp(`^rgba\\(${gf},${gf},${gf},${Wd}\\)$`),$re=new RegExp(`^rgba\\(${xa},${xa},${xa},${Wd}\\)$`),Bre=new RegExp(`^hsl\\(${Wd},${xa},${xa}\\)$`),zre=new RegExp(`^hsla\\(${Wd},${xa},${xa},${Wd}\\)$`),Uk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yf(Su,Hd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHex8:Ure,formatHsl:jre,formatRgb:Gk,toString:Gk});function jk(){return this.rgb().formatHex()}function Ure(){return this.rgb().formatHex8()}function jre(){return HN(this).formatHsl()}function Gk(){return this.rgb().formatRgb()}function Hd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Fre.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Wk(t):r===3?new bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?I0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?I0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Nre.exec(e))?new bn(t[1],t[2],t[3],1):(t=Lre.exec(e))?new bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dre.exec(e))?I0(t[1],t[2],t[3],t[4]):(t=$re.exec(e))?I0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Bre.exec(e))?Vk(t[1],t[2]/100,t[3]/100,1):(t=zre.exec(e))?Vk(t[1],t[2]/100,t[3]/100,t[4]):Uk.hasOwnProperty(e)?Wk(Uk[e]):e==="transparent"?new bn(NaN,NaN,NaN,0):null}function Wk(e){return new bn(e>>16&255,e>>8&255,e&255,1)}function I0(e,t,r,n){return n<=0&&(e=t=r=NaN),new bn(e,t,r,n)}function UE(e){return e instanceof Su||(e=Hd(e)),e?(e=e.rgb(),new bn(e.r,e.g,e.b,e.opacity)):new bn}function pg(e,t,r,n){return arguments.length===1?UE(e):new bn(e,t,r,n??1)}function bn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Yf(bn,pg,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bn(gl(this.r),gl(this.g),gl(this.b),vg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Hk,formatHex:Hk,formatHex8:Gre,formatRgb:qk,toString:qk}));function Hk(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}`}function Gre(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}${dl((isNaN(this.opacity)?1:this.opacity)*255)}`}function qk(){const e=vg(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function vg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function Vk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xi(e,t,r,n)}function HN(e){if(e instanceof Xi)return new Xi(e.h,e.s,e.l,e.opacity);if(e instanceof Su||(e=Hd(e)),!e)return new Xi;if(e instanceof Xi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Xi(o,l,s,e.opacity)}function _2(e,t,r,n){return arguments.length===1?HN(e):new Xi(e,t,r,n??1)}function Xi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(Xi,_2,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new Xi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new Xi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new bn(lw(e>=240?e-240:e+120,i,n),lw(e,i,n),lw(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xi(Yk(this.h),F0(this.s),F0(this.l),vg(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(){const e=vg(this.opacity);return`${e===1?"hsl(":"hsla("}${Yk(this.h)}, ${F0(this.s)*100}%, ${F0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yk(e){return e=(e||0)%360,e<0?e+360:e}function F0(e){return Math.max(0,Math.min(1,e||0))}function lw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const qN=Math.PI/180,VN=180/Math.PI,mg=18,YN=.96422,XN=1,KN=.82521,QN=4/29,yf=6/29,ZN=3*yf*yf,Wre=yf*yf*yf;function JN(e){if(e instanceof wa)return new wa(e.l,e.a,e.b,e.opacity);if(e instanceof Qa)return e6(e);e instanceof bn||(e=UE(e));var t=hw(e.r),r=hw(e.g),n=hw(e.b),i=sw((.2225045*t+.7168786*r+.0606169*n)/XN),a,o;return t===r&&r===n?a=o=i:(a=sw((.4360747*t+.3850649*r+.1430804*n)/YN),o=sw((.0139322*t+.0971045*r+.7141733*n)/KN)),new wa(116*i-16,500*(a-i),200*(i-o),e.opacity)}function S2(e,t,r,n){return arguments.length===1?JN(e):new wa(e,t,r,n??1)}function wa(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Yf(wa,S2,Sp(Su,{brighter(e){return new wa(this.l+mg*(e??1),this.a,this.b,this.opacity)},darker(e){return new wa(this.l-mg*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=YN*fw(t),e=XN*fw(e),r=KN*fw(r),new bn(cw(3.1338561*t-1.6168667*e-.4906146*r),cw(-.9787684*t+1.9161415*e+.033454*r),cw(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function sw(e){return e>Wre?Math.pow(e,1/3):e/ZN+QN}function fw(e){return e>yf?e*e*e:ZN*(e-QN)}function cw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function hw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hre(e){if(e instanceof Qa)return new Qa(e.h,e.c,e.l,e.opacity);if(e instanceof wa||(e=JN(e)),e.a===0&&e.b===0)return new Qa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*VN;return new Qa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function E2(e,t,r,n){return arguments.length===1?Hre(e):new Qa(e,t,r,n??1)}function Qa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function e6(e){if(isNaN(e.h))return new wa(e.l,0,0,e.opacity);var t=e.h*qN;return new wa(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Yf(Qa,E2,Sp(Su,{brighter(e){return new Qa(this.h,this.c,this.l+mg*(e??1),this.opacity)},darker(e){return new Qa(this.h,this.c,this.l-mg*(e??1),this.opacity)},rgb(){return e6(this).rgb()}}));var t6=-.14861,jE=1.78277,GE=-.29227,gy=-.90649,qd=1.97294,Xk=qd*gy,Kk=qd*jE,Qk=jE*GE-gy*t6;function qre(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=UE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Qk*n+Xk*t-Kk*r)/(Qk+Xk-Kk),a=n-i,o=(qd*(r-i)-GE*a)/gy,l=Math.sqrt(o*o+a*a)/(qd*i*(1-i)),s=l?Math.atan2(o,a)*VN-120:NaN;return new yl(s<0?s+360:s,l,i,e.opacity)}function A2(e,t,r,n){return arguments.length===1?qre(e):new yl(e,t,r,n??1)}function yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(yl,A2,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*qN,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new bn(255*(t+r*(t6*n+jE*i)),255*(t+r*(GE*n+gy*i)),255*(t+r*(qd*n)),this.opacity)}}));function r6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function n6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return r6((r-n/t)*t,o,i,a,l)}}function i6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return r6((r-n/t)*t,i,a,o,l)}}const yy=e=>()=>e;function a6(e,t){return function(r){return e+r*t}}function Vre(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function by(e,t){var r=t-e;return r?a6(e,r>180||r<-180?r-360*Math.round(r/360):r):yy(isNaN(e)?t:e)}function Yre(e){return(e=+e)==1?xn:function(t,r){return r-t?Vre(t,r,e):yy(isNaN(t)?r:t)}}function xn(e,t){var r=t-e;return r?a6(e,r):yy(isNaN(e)?t:e)}const T2=function e(t){var r=Yre(t);function n(i,a){var o=r((i=pg(i)).r,(a=pg(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),f=xn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function o6(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=pg(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var Xre=o6(n6),Kre=o6(i6);function WE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function u6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qre(e,t){return(u6(t)?WE:l6)(e,t)}function l6(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=xy(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function s6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ha(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function f6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=xy(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var C2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dw=new RegExp(C2.source,"g");function Zre(e){return function(){return e}}function Jre(e){return function(t){return e(t)+""}}function c6(e,t){var r=C2.lastIndex=dw.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=C2.exec(e))&&(i=dw.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:ha(n,i)})),r=dw.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?Jre(s[0].x):Zre(t):(t=s.length,function(f){for(var d=0,g;d<t;++d)l[(g=s[d]).i]=g.x(f);return l.join("")})}function xy(e,t){var r=typeof t,n;return t==null||r==="boolean"?yy(t):(r==="number"?ha:r==="string"?(n=Hd(t))?(t=n,T2):c6:t instanceof Hd?T2:t instanceof Date?s6:u6(t)?WE:Array.isArray(t)?l6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?f6:ha)(e,t)}function ene(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function tne(e,t){var r=by(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function rne(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Zk=180/Math.PI,O2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h6(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Zk,skewX:Math.atan(s)*Zk,scaleX:o,scaleY:l}}var N0;function nne(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?O2:h6(t.a,t.b,t.c,t.d,t.e,t.f)}function ine(e){return e==null||(N0||(N0=document.createElementNS("http://www.w3.org/2000/svg","g")),N0.setAttribute("transform",e),!(e=N0.transform.baseVal.consolidate()))?O2:(e=e.matrix,h6(e.a,e.b,e.c,e.d,e.e,e.f))}function d6(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push("translate(",null,t,null,r);E.push({i:k-4,x:ha(f,g)},{i:k-2,x:ha(d,v)})}else(g||v)&&y.push("translate("+g+t+v+r)}function o(f,d,g,v){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),v.push({i:g.push(i(g)+"rotate(",null,n)-2,x:ha(f,d)})):d&&g.push(i(g)+"rotate("+d+n)}function l(f,d,g,v){f!==d?v.push({i:g.push(i(g)+"skewX(",null,n)-2,x:ha(f,d)}):d&&g.push(i(g)+"skewX("+d+n)}function s(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push(i(y)+"scale(",null,",",null,")");E.push({i:k-4,x:ha(f,g)},{i:k-2,x:ha(d,v)})}else(g!==1||v!==1)&&y.push(i(y)+"scale("+g+","+v+")")}return function(f,d){var g=[],v=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,g,v),o(f.rotate,d.rotate,g,v),l(f.skewX,d.skewX,g,v),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,v),f=d=null,function(y){for(var E=-1,k=v.length,x;++E<k;)g[(x=v[E]).i]=x.x(y);return g.join("")}}}var ane=d6(nne,"px, ","px)","deg)"),one=d6(ine,", ",")",")"),une=1e-12;function Jk(e){return((e=Math.exp(e))+1/e)/2}function lne(e){return((e=Math.exp(e))-1/e)/2}function sne(e){return((e=Math.exp(2*e))-1)/(e+1)}const fne=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],f=a[2],d=o[0],g=o[1],v=o[2],y=d-l,E=g-s,k=y*y+E*E,x,w;if(k<une)w=Math.log(v/f)/t,x=function(V){return[l+V*y,s+V*E,f*Math.exp(t*V*w)]};else{var _=Math.sqrt(k),C=(v*v-f*f+n*k)/(2*f*r*_),T=(v*v-f*f-n*k)/(2*v*r*_),F=Math.log(Math.sqrt(C*C+1)-C),L=Math.log(Math.sqrt(T*T+1)-T);w=(L-F)/t,x=function(V){var j=V*w,te=Jk(F),ge=f/(r*_)*(te*sne(t*j+F)-lne(F));return[l+ge*y,s+ge*E,f*te/Jk(t*j+F)]}}return x.duration=w*1e3*t/Math.SQRT2,x}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function p6(e){return function(t,r){var n=e((t=_2(t)).h,(r=_2(r)).h),i=xn(t.s,r.s),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const cne=p6(by);var hne=p6(xn);function dne(e,t){var r=xn((e=S2(e)).l,(t=S2(t)).l),n=xn(e.a,t.a),i=xn(e.b,t.b),a=xn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function v6(e){return function(t,r){var n=e((t=E2(t)).h,(r=E2(r)).h),i=xn(t.c,r.c),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const pne=v6(by);var vne=v6(xn);function m6(e){return function t(r){r=+r;function n(i,a){var o=e((i=A2(i)).h,(a=A2(a)).h),l=xn(i.s,a.s),s=xn(i.l,a.l),f=xn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const mne=m6(by);var gne=m6(xn);function yne(e,t){t===void 0&&(t=e,e=xy);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function bne(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const xne=Object.freeze(Object.defineProperty({__proto__:null,interpolate:xy,interpolateArray:Qre,interpolateBasis:n6,interpolateBasisClosed:i6,interpolateCubehelix:mne,interpolateCubehelixLong:gne,interpolateDate:s6,interpolateDiscrete:ene,interpolateHcl:pne,interpolateHclLong:vne,interpolateHsl:cne,interpolateHslLong:hne,interpolateHue:tne,interpolateLab:dne,interpolateNumber:ha,interpolateNumberArray:WE,interpolateObject:f6,interpolateRgb:T2,interpolateRgbBasis:Xre,interpolateRgbBasisClosed:Kre,interpolateRound:rne,interpolateString:c6,interpolateTransformCss:ane,interpolateTransformSvg:one,interpolateZoom:fne,piecewise:yne,quantize:bne},Symbol.toStringTag,{value:"Module"})),Tae=Rl(xne);var wne="Expected a function",g6="__lodash_hash_undefined__",y6=1/0,_ne=9007199254740991,Sne="[object Function]",Ene="[object GeneratorFunction]",Ane="[object Symbol]",Tne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cne=/^\w*$/,One=/^\./,kne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mne=/[\\^$.*+?()[\]{}|]/g,Rne=/\\(\\)?/g,Pne=/^\[object .+?Constructor\]$/,Ine=/^(?:0|[1-9]\d*)$/,Fne=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Nne=typeof self=="object"&&self&&self.Object===Object&&self,HE=Fne||Nne||Function("return this")();function Lne(e,t){return e==null?void 0:e[t]}function Dne(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var $ne=Array.prototype,Bne=Function.prototype,b6=Object.prototype,pw=HE["__core-js_shared__"],eM=function(){var e=/[^.]+$/.exec(pw&&pw.keys&&pw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x6=Bne.toString,wy=b6.hasOwnProperty,w6=b6.toString,zne=RegExp("^"+x6.call(wy).replace(Mne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tM=HE.Symbol,Une=$ne.splice,jne=_6(HE,"Map"),Vd=_6(Object,"create"),rM=tM?tM.prototype:void 0,nM=rM?rM.toString:void 0;function kl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gne(){this.__data__=Vd?Vd(null):{}}function Wne(e){return this.has(e)&&delete this.__data__[e]}function Hne(e){var t=this.__data__;if(Vd){var r=t[e];return r===g6?void 0:r}return wy.call(t,e)?t[e]:void 0}function qne(e){var t=this.__data__;return Vd?t[e]!==void 0:wy.call(t,e)}function Vne(e,t){var r=this.__data__;return r[e]=Vd&&t===void 0?g6:t,this}kl.prototype.clear=Gne;kl.prototype.delete=Wne;kl.prototype.get=Hne;kl.prototype.has=qne;kl.prototype.set=Vne;function Xf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Yne(){this.__data__=[]}function Xne(e){var t=this.__data__,r=_y(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Une.call(t,r,1),!0}function Kne(e){var t=this.__data__,r=_y(t,e);return r<0?void 0:t[r][1]}function Qne(e){return _y(this.__data__,e)>-1}function Zne(e,t){var r=this.__data__,n=_y(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Xf.prototype.clear=Yne;Xf.prototype.delete=Xne;Xf.prototype.get=Kne;Xf.prototype.has=Qne;Xf.prototype.set=Zne;function Wl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jne(){this.__data__={hash:new kl,map:new(jne||Xf),string:new kl}}function eie(e){return Sy(this,e).delete(e)}function tie(e){return Sy(this,e).get(e)}function rie(e){return Sy(this,e).has(e)}function nie(e,t){return Sy(this,e).set(e,t),this}Wl.prototype.clear=Jne;Wl.prototype.delete=eie;Wl.prototype.get=tie;Wl.prototype.has=rie;Wl.prototype.set=nie;function iie(e,t,r){var n=e[t];(!(wy.call(e,t)&&S6(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _y(e,t){for(var r=e.length;r--;)if(S6(e[r][0],t))return r;return-1}function aie(e){if(!gg(e)||hie(e))return!1;var t=mie(e)||Dne(e)?zne:Pne;return t.test(vie(e))}function oie(e,t,r,n){if(!gg(e))return e;t=fie(t,e)?[t]:lie(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=pie(t[i]),f=r;if(i!=o){var d=l[s];f=n?n(d,s,l):void 0,f===void 0&&(f=gg(d)?d:sie(t[i+1])?[]:{})}iie(l,s,f),l=l[s]}return e}function uie(e){if(typeof e=="string")return e;if(VE(e))return nM?nM.call(e):"";var t=e+"";return t=="0"&&1/e==-y6?"-0":t}function lie(e){return E6(e)?e:die(e)}function Sy(e,t){var r=e.__data__;return cie(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _6(e,t){var r=Lne(e,t);return aie(r)?r:void 0}function sie(e,t){return t=t??_ne,!!t&&(typeof e=="number"||Ine.test(e))&&e>-1&&e%1==0&&e<t}function fie(e,t){if(E6(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||VE(e)?!0:Cne.test(e)||!Tne.test(e)||t!=null&&e in Object(t)}function cie(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hie(e){return!!eM&&eM in e}var die=qE(function(e){e=yie(e);var t=[];return One.test(e)&&t.push(""),e.replace(kne,function(r,n,i,a){t.push(i?a.replace(Rne,"$1"):n||r)}),t});function pie(e){if(typeof e=="string"||VE(e))return e;var t=e+"";return t=="0"&&1/e==-y6?"-0":t}function vie(e){if(e!=null){try{return x6.call(e)}catch{}try{return e+""}catch{}}return""}function qE(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(wne);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(qE.Cache||Wl),r}qE.Cache=Wl;function S6(e,t){return e===t||e!==e&&t!==t}var E6=Array.isArray;function mie(e){var t=gg(e)?w6.call(e):"";return t==Sne||t==Ene}function gg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function gie(e){return!!e&&typeof e=="object"}function VE(e){return typeof e=="symbol"||gie(e)&&w6.call(e)==Ane}function yie(e){return e==null?"":uie(e)}function bie(e,t,r){return e==null?e:oie(e,t,r)}var Cae=bie;/*! js-cookie v3.0.5 | MIT */function L0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var xie={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function k2(e,t){function r(i,a,o){if(!(typeof document>"u")){o=L0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),f=s.slice(1).join("=");try{var d=decodeURIComponent(s[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",L0({},a,{expires:-1}))},withAttributes:function(i){return k2(this.converter,L0({},this.attributes,i))},withConverter:function(i){return k2(L0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Oae=k2(xie,{path:"/"});function kae(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:n=f=>f.id||f.key,filter:i,initialFilterText:a=""}=e,[o,l]=zt.useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:a}),s=zt.useMemo(()=>i?o.items.filter(f=>i(f,o.filterText)):o.items,[o.items,o.filterText,i]);return{...o,items:s,...wie({getKey:n},l),getItem(f){return o.items.find(d=>n(d)===f)}}}function wie(e,t){let{cursor:r,getKey:n}=e;return{setSelectedKeys(i){t(a=>({...a,selectedKeys:i}))},setFilterText(i){t(a=>({...a,filterText:i}))},insert(i,...a){t(o=>Ih(o,i,...a))},insertBefore(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l,...a)})},insertAfter(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l+1,...a)})},prepend(...i){t(a=>Ih(a,0,...i))},append(...i){t(a=>Ih(a,a.items.length,...i))},remove(...i){t(a=>{let o=new Set(i),l=a.items.filter(f=>!o.has(n(f))),s="all";if(a.selectedKeys!=="all"){s=new Set(a.selectedKeys);for(let f of i)s.delete(f)}return r==null&&l.length===0&&(s=new Set),{...a,items:l,selectedKeys:s}})},removeSelectedItems(){t(i=>{if(i.selectedKeys==="all")return{...i,items:[],selectedKeys:new Set};let a=i.selectedKeys,o=i.items.filter(l=>!a.has(n(l)));return{...i,items:o,selectedKeys:new Set}})},move(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let s=o.items.slice(),[f]=s.splice(l,1);return s.splice(a,0,f),{...o,items:s}})},moveBefore(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return iM(o,f,l)})},moveAfter(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return iM(o,f,l+1)})},update(i,a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);return l===-1?o:{...o,items:[...o.items.slice(0,l),a,...o.items.slice(l+1)]}})}}}function Ih(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function iM(e,t,r){r-=t.filter(a=>a<r).length;let n=t.map(a=>({from:a,to:r++}));for(let a=0;a<n.length;a++){let o=n[a].from;for(let l=a;l<n.length;l++)n[l].from>o&&n[l].from--}for(let a=0;a<n.length;a++){let o=n[a];for(let l=n.length-1;l>a;l--){let s=n[l];s.from<o.to?o.to++:s.from++}}let i=e.items.slice();for(let a of n){let[o]=i.splice(a.from,1);i.splice(a.to,0,o)}return{...e,items:i}}var _ie={},Ep={},Ap={},Ey={},A6={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(A6);var T6={},Ml={};Ml.__esModule=!0;Ml.InternalServerError=Ml.OK=void 0;Ml.OK=200;Ml.InternalServerError=500;(function(e){var t=Jt&&Jt.__spreadArray||function(l,s,f){if(f||arguments.length===2)for(var d=0,g=s.length,v;d<g;d++)(v||!(d in s))&&(v||(v=Array.prototype.slice.call(s,0,d)),v[d]=s[d]);return l.concat(v||Array.prototype.slice.call(s))};e.__esModule=!0;var r=i2,n=i2,i=Ml,a=function(l){for(var s=[],f=1;f<arguments.length;f++)s[f-1]=arguments[f];return typeof l!="string"?{on:function(d,g){g(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,f){a(l,function(d){if(d.statusCode!==i.OK)return f(new Error("HTTP Error Response: "+d.statusCode+" "+d.statusMessage+" ("+l+")"));var g=null;d.on("data",function(v){if(g===null){g=v;return}g+=v}),d.on("end",function(){return s(g)})}).on("error",f)})};e.default=o})(T6);var C6={},nu={};nu.__esModule=!0;nu.DONE=nu.OPENED=nu.UNSENT=void 0;nu.UNSENT=0;nu.OPENED=1;nu.DONE=4;(function(e){e.__esModule=!0;var t=Ml,r=nu,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(C6);Ey.__esModule=!0;Ey.createLoadRemoteModule=void 0;var Sie=A6,Eie=T6,Aie=C6,Tie=typeof window<"u"&&typeof window.document<"u",Cie=Tie?Aie.default:Eie.default,Oie=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},kie=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||Oie,a=n||Cie;return(0,Sie.default)(function(o){return a(o).then(function(l){var s={},f={exports:s},d=new Function("require","module","exports",l);return d(i,f,s),f.exports})})};Ey.createLoadRemoteModule=kie;var Ay={};Ay.__esModule=!0;Ay.createRequires=void 0;var Mie=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};Ay.createRequires=Mie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=Ey;t(e,r,"createLoadRemoteModule","default");var n=Ay;t(e,n,"createRequires")})(Ap);const Mae=yg(Ap);var Rie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ep.__esModule=!0;Ep.createUseRemoteComponent=void 0;var aM=zt,Pie=Rie(Ap),Iie=function(e){var t=Pie.default(e),r=function(n,i){i===void 0&&(i="default");var a=aM.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,f=o.component,d=a[1];return aM.useEffect(function(){var g=d;return g({loading:!0,err:void 0,component:void 0}),t(n).then(function(v){return g({loading:!1,err:void 0,component:v[i]})}).catch(function(v){return g({loading:!1,err:v,component:void 0})}),function(){g=function(){}}},[n]),[l,s,f]};return r};Ep.createUseRemoteComponent=Iie;var Tp={};Tp.__esModule=!0;Tp.createRequires=void 0;var Fie=function(e){return typeof e=="function"?e():e||{}},Nie=function(e){var t=!1;return function(r){if(t||(e=Fie(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Tp.createRequires=Nie;var YE={};(function(e){var t=Jt&&Jt.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,f=arguments.length;s<f;s++){l=arguments[s];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(YE);var Cp={},M2=Jt&&Jt.__assign||function(){return M2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},M2.apply(this,arguments)},Lie=Jt&&Jt.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},Die=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cp.__esModule=!0;Cp.createRemoteComponent=void 0;var oM=Die(zt),$ie=Ep,Bie=function(e){var t=$ie.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=Lie(n,["url","fallback","render"]),f=t(i),d=f[0],g=f[1],v=f[2];return d?o:l?l({err:g,Component:v}):g||!v?oM.default.createElement("div",null,"Unknown Error: ",(g||"UNKNOWN").toString()):oM.default.createElement(v,M2({},s))};return r};Cp.createRemoteComponent=Bie;var Ty={};Ty.__esModule=!0;Ty.RemoteComponent=void 0;var zie=Cp,Uie=Tp,jie=YE,Gie=Uie.createRequires(jie.getDependencies);Ty.RemoteComponent=zie.createRemoteComponent({requires:Gie});var Cy={},Wie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cy.__esModule=!0;Cy.fetchRemoteComponent=void 0;var Hie=Wie(Ap),qie=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=Hie.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};Cy.fetchRemoteComponent=qie;var Oy={},Vie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Oy.__esModule=!0;Oy.getServerSideProps=void 0;var Yie=Vie(Ap),Xie=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=Yie.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};Oy.getServerSideProps=Xie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(f,d,g,v){v===void 0&&(v=g),Object.defineProperty(f,v,{enumerable:!0,get:function(){return d[g]}})}:function(f,d,g,v){v===void 0&&(v=g),f[v]=d[g]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Ep;t(e,r,"createUseRemoteComponent");var n=Tp;t(e,n,"createRequires");var i=YE;t(e,i,"getDependencies");var a=Cp;t(e,a,"createRemoteComponent");var o=Ty;t(e,o,"RemoteComponent");var l=Cy;t(e,l,"fetchRemoteComponent");var s=Oy;t(e,s,"getServerSideProps")})(_ie);export{lae as $,zt as A,fr as B,XE as C,Jie as D,TT as E,Hg as F,wr as G,Cae as H,tn as I,sae as J,Zie as K,Qie as L,zS as M,tae as N,$G as O,eae as P,aae as Q,Bh as R,iae as S,AG as T,oae as U,uae as V,Oae as W,kae as X,rae as Y,nae as Z,_ie as _,cae as a,Ap as a0,Mae as a1,mae as b,gae as c,i5 as d,h2 as e,hae as f,dae as g,pae as h,lg as i,HK as j,bae as k,sy as l,vae as m,yae as n,d2 as o,BF as p,x2 as q,fae as r,xae as s,T5 as t,wae as u,_ae as v,Sae as w,Eae as x,Aae as y,Tae as z};
|
|
1175
|
-
//# sourceMappingURL=vendor-
|
|
1174
|
+
}`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=Ete(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ke){return parseFloat(Ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=kte(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Lte(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ke,ct){if(typeof Ke=="string")try{Ke=Bs.parse(Ke)}catch{Ke=Bs.parse(xr.baseFontSize+"px "+Ke)}else Ke=Bs.parse(Bs.stringify(Ke));var yt=Bs.stringify({size:xr.baseFontSize,family:Ke.family,stretch:im?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style}),qt=Rte(Ke.size),Yt=Math.round(qt[0]*Pte(qt[1]));if(Yt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=Yt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Qe=Ke.family.join(", "),At=[Ke.style];Ke.style!=Ke.variant&&At.push(Ke.variant),Ke.variant!=Ke.weight&&At.push(Ke.weight),im&&Ke.weight!=Ke.stretch&&At.push(Ke.stretch),r.font[ct]={baseString:yt,family:Qe,weight:Ke.weight,stretch:Ke.stretch,style:Ke.style,variant:Ke.variant,width:{},kerning:{},metrics:Nte(Qe,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Ke,ct){var yt=Bs.stringify({size:r.fontSize[ct],family:Ke.family,stretch:im?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var qt=Ke.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*qt.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Ke,ct){xr.atlasContext.font=Ke.baseString;for(var yt=r.fontAtlas[ct],qt=0;qt<r.text.length;qt++){var Yt=r.text.charAt(qt);if(yt.ids[Yt]==null&&(yt.ids[Yt]=yt.chars.length,yt.chars.push(Yt),l.push(Yt)),Ke.width[Yt]==null&&(Ke.width[Yt]=xr.atlasContext.measureText(Yt).width/xr.baseFontSize,r.kerning)){var Qe=[];for(var At in Ke.width)Qe.push(At+Yt,Yt+At);Fte(Ke.kerning,Ite(Ke.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=Lo.mallocFloat(this.count*2),g=0,v=0;g<this.counts.length;g++){var y=this.counts[g];if(f)for(var E=0;E<y;E++)d[v++]=t.position[g*2],d[v++]=t.position[g*2+1];else for(var k=0;k<y;k++)d[v++]=t.position[g][0],d[v++]=t.position[g][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Lo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var x=Lo.mallocUint8(this.count),w=Lo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,C=0;_<this.counts.length;_++){for(var T=this.counts[_],F=this.font[_]||this.font[0],L=this.fontAtlas[_]||this.fontAtlas[0],V=0;V<T;V++){var j=this.text.charAt(C),te=this.text.charAt(C-1);if(x[C]=L.ids[j],w[C*2]=F.width[j],V){var ge=w[C*2-2],me=w[C*2],ke=w[C*2-1],Fe=ke+ge*.5+me*.5;if(this.kerning){var Le=F.kerning[te+j];Le&&(Fe+=Le*.001)}w[C*2+1]=Fe}else w[C*2+1]=w[C*2]*.5;C++}this.textWidth.push(w.length?w[C*2-2]*.5+w[C*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:x,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Lo.freeUint8(x),Lo.freeFloat(w),l.length&&this.font.forEach(function(Ke,ct){var yt=r.fontAtlas[ct],qt=yt.step,Yt=Math.floor(xr.maxAtlasSize/qt),Qe=Math.min(Yt,yt.chars.length),At=Math.ceil(yt.chars.length/Qe),Gt=Pk(Qe*qt),Ce=Pk(At*qt);yt.width=Gt,yt.height=Ce,yt.rows=At,yt.cols=Qe,yt.em&&yt.texture({data:Ote({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[Gt,Ce],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Ke,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Ke;case"center":case"centre":case"middle":return-Ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ke,ct){var yt=(r.font[ct]||r.font[0]).metrics,qt=0;return qt+=yt.bottom*.5,typeof Ke=="number"?qt+=Ke-yt.baseline:qt+=-yt[Ke],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=rw(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Lo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(rw(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Lo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(rw(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var we=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(we){var qe=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(qe);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function $te(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Eae=xr;function Bte(e,t){return e.parent===t.parent?1:2}function zte(e){return e.reduce(Ute,0)/e.length}function Ute(e,t){return e+t.x}function jte(e){return 1+e.reduce(Gte,0)}function Gte(e,t){return Math.max(e,t.y)}function Wte(e){for(var t;t=e.children;)e=t[0];return e}function Hte(e){for(var t;t=e.children;)e=t[t.length-1];return e}function qte(){var e=Bte,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(v){var y=v.children;y?(v.x=zte(y),v.y=jte(y)):(v.x=o?l+=e(v,o):0,v.y=0,o=v)});var s=Wte(a),f=Hte(a),d=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return a.eachAfter(n?function(v){v.x=(v.x-a.x)*t,v.y=(a.y-v.y)*r}:function(v){v.x=(v.x-d)/(g-d)*t,v.y=(1-(a.y?v.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function Vte(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Yte(){return this.eachAfter(Vte)}function Xte(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function Kte(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function Qte(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Zte(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function Jte(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function ere(e){for(var t=this,r=tre(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function tre(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function rre(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function nre(){var e=[];return this.each(function(t){e.push(t)}),e}function ire(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function are(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function zE(e,t){var r=new Nf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,f;for(t==null&&(t=ure);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(f=l.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new Nf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(LN)}function ore(){return zE(this).eachBefore(lre)}function ure(e){return e.children}function lre(e){e.data=e.data.data}function LN(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Nf(e){this.data=e,this.depth=this.height=0,this.parent=null}Nf.prototype=zE.prototype={constructor:Nf,count:Yte,each:Xte,eachAfter:Qte,eachBefore:Kte,sum:Zte,sort:Jte,path:ere,ancestors:rre,descendants:nre,leaves:ire,links:are,copy:ore};var sre=Array.prototype.slice;function fre(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function DN(e){for(var t=0,r=(e=fre(sre.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&$N(a,i)?++t:(a=hre(n=cre(n,i)),t=0);return a}function cre(e,t){var r,n;if(iw(t,e))return[t];for(r=0;r<e.length;++r)if(R0(t,e[r])&&iw(Wh(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(R0(Wh(e[r],e[n]),t)&&R0(Wh(e[r],t),e[n])&&R0(Wh(e[n],t),e[r])&&iw(BN(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function R0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function $N(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function iw(e,t){for(var r=0;r<t.length;++r)if(!$N(e,t[r]))return!1;return!0}function hre(e){switch(e.length){case 1:return dre(e[0]);case 2:return Wh(e[0],e[1]);case 3:return BN(e[0],e[1],e[2])}}function dre(e){return{x:e.x,y:e.y,r:e.r}}function Wh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,f=o-n,d=l-i,g=Math.sqrt(s*s+f*f);return{x:(r+a+s/g*d)/2,y:(n+o+f/g*d)/2,r:(g+i+l)/2}}function BN(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,f=r.x,d=r.y,g=r.r,v=n-o,y=n-f,E=i-l,k=i-d,x=s-a,w=g-a,_=n*n+i*i-a*a,C=_-o*o-l*l+s*s,T=_-f*f-d*d+g*g,F=y*E-v*k,L=(E*T-k*C)/(F*2)-n,V=(k*x-E*w)/F,j=(y*C-v*T)/(F*2)-i,te=(v*w-y*x)/F,ge=V*V+te*te-1,me=2*(a+L*V+j*te),ke=L*L+j*j-a*a,Fe=-(ge?(me+Math.sqrt(me*me-4*ge*ke))/(2*ge):ke/me);return{x:n+L+V*Fe,y:i+j+te*Fe,r:Fe}}function Fk(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),l=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(f+a-s)/(2*f),l=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function Nk(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Lk(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function P0(e){this._=e,this.next=null,this.previous=null}function zN(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,f,d,g;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;Fk(r,t,n=e[2]),t=new P0(t),r=new P0(r),n=new P0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){Fk(t._,r._,n=e[l]),n=new P0(n),s=r.next,f=t.previous,d=r._.r,g=t._.r;do if(d<=g){if(Nk(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(Nk(f._,n._)){t=f,t.next=r,r.previous=t,--l;continue e}g+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=Lk(t);(n=n.next)!==r;)(o=Lk(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=DN(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function pre(e){return zN(e),e}function vre(e){return e==null?null:dg(e)}function dg(e){if(typeof e!="function")throw new Error;return e}function al(){return 0}function Ws(e){return function(){return e}}function mre(e){return Math.sqrt(e.value)}function gre(){var e=null,t=1,r=1,n=al;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(Dk(e)).eachAfter(aw(n,.5)).eachBefore($k(1)):a.eachBefore(Dk(mre)).eachAfter(aw(al,1)).eachAfter(aw(n,a.r/Math.min(t,r))).eachBefore($k(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=vre(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ws(+a),i):n},i}function Dk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function aw(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=zN(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function $k(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function UN(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function _p(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function yre(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(UN),o}function a(o,l){return function(s){s.children&&_p(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var f=s.x0,d=s.y0,g=s.x1-r,v=s.y1-r;g<f&&(f=g=(f+g)/2),v<d&&(d=v=(d+v)/2),s.x0=f,s.y0=d,s.x1=g,s.y1=v}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var Bk="$",bre={depth:-1},zk={};function xre(e){return e.id}function wre(e){return e.parentId}function _re(){var e=xre,t=wre;function r(n){var i,a,o=n.length,l,s,f,d=new Array(o),g,v,y={};for(a=0;a<o;++a)i=n[a],f=d[a]=new Nf(i),(g=e(i,a,n))!=null&&(g+="")&&(v=Bk+(f.id=g),y[v]=v in y?zk:f);for(a=0;a<o;++a)if(f=d[a],g=t(n[a],a,n),g==null||!(g+="")){if(l)throw new Error("multiple roots");l=f}else{if(s=y[Bk+g],!s)throw new Error("missing: "+g);if(s===zk)throw new Error("ambiguous: "+g);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!l)throw new Error("no root");if(l.parent=bre,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(LN),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=dg(n),r):e},r.parentId=function(n){return arguments.length?(t=dg(n),r):t},r}function Sre(e,t){return e.parent===t.parent?1:2}function ow(e){var t=e.children;return t?t[0]:e.t}function uw(e){var t=e.children;return t?t[t.length-1]:e.t}function Ere(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Are(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function Tre(e,t,r){return e.a.parent===t.parent?e.a:r}function am(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}am.prototype=Object.create(Nf.prototype);function Cre(e){for(var t=new am(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new am(a[o],o)),i.parent=r;return(t.parent=new am(null,0)).children=[t],t}function Ore(){var e=Sre,t=1,r=1,n=null;function i(f){var d=Cre(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var g=f,v=f,y=f;f.eachBefore(function(_){_.x<g.x&&(g=_),_.x>v.x&&(v=_),_.depth>y.depth&&(y=_)});var E=g===v?1:e(g,v)/2,k=E-g.x,x=t/(v.x+E+k),w=r/(y.depth||1);f.eachBefore(function(_){_.x=(_.x+k)*x,_.y=_.depth*w})}return f}function a(f){var d=f.children,g=f.parent.children,v=f.i?g[f.i-1]:null;if(d){Are(f);var y=(d[0].z+d[d.length-1].z)/2;v?(f.z=v.z+e(f._,v._),f.m=f.z-y):f.z=y}else v&&(f.z=v.z+e(f._,v._));f.parent.A=l(f,v,f.parent.A||g[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function l(f,d,g){if(d){for(var v=f,y=f,E=d,k=v.parent.children[0],x=v.m,w=y.m,_=E.m,C=k.m,T;E=uw(E),v=ow(v),E&&v;)k=ow(k),y=uw(y),y.a=f,T=E.z+_-v.z-x+e(E._,v._),T>0&&(Ere(Tre(E,f,g),f,T),x+=T,w+=T),_+=E.m,x+=v.m,C+=k.m,w+=y.m;E&&!uw(y)&&(y.t=E,y.m+=_-w),v&&!ow(k)&&(k.t=v,k.m+=x-C,g=f)}return g}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function my(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var jN=(1+Math.sqrt(5))/2;function GN(e,t,r,n,i,a){for(var o=[],l=t.children,s,f,d=0,g=0,v=l.length,y,E,k=t.value,x,w,_,C,T,F,L;d<v;){y=i-r,E=a-n;do x=l[g++].value;while(!x&&g<v);for(w=_=x,F=Math.max(E/y,y/E)/(k*e),L=x*x*F,T=Math.max(_/L,L/w);g<v;++g){if(x+=f=l[g].value,f<w&&(w=f),f>_&&(_=f),L=x*x*F,C=Math.max(_/L,L/w),C>T){x-=f;break}T=C}o.push(s={value:x,dice:y<E,children:l.slice(d,g)}),s.dice?_p(s,r,n,i,k?n+=E*x/k:a):my(s,r,n,k?r+=y*x/k:i,a),k-=x,d=g}return o}const WN=function e(t){function r(n,i,a,o,l){GN(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(jN);function kre(){var e=WN,t=!1,r=1,n=1,i=[0],a=al,o=al,l=al,s=al,f=al;function d(v){return v.x0=v.y0=0,v.x1=r,v.y1=n,v.eachBefore(g),i=[0],t&&v.eachBefore(UN),v}function g(v){var y=i[v.depth],E=v.x0+y,k=v.y0+y,x=v.x1-y,w=v.y1-y;x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),v.x0=E,v.y0=k,v.x1=x,v.y1=w,v.children&&(y=i[v.depth+1]=a(v)/2,E+=f(v)-y,k+=o(v)-y,x-=l(v)-y,w-=s(v)-y,x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),e(v,E,k,x,w))}return d.round=function(v){return arguments.length?(t=!!v,d):t},d.size=function(v){return arguments.length?(r=+v[0],n=+v[1],d):[r,n]},d.tile=function(v){return arguments.length?(e=dg(v),d):e},d.padding=function(v){return arguments.length?d.paddingInner(v).paddingOuter(v):d.paddingInner()},d.paddingInner=function(v){return arguments.length?(a=typeof v=="function"?v:Ws(+v),d):a},d.paddingOuter=function(v){return arguments.length?d.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):d.paddingTop()},d.paddingTop=function(v){return arguments.length?(o=typeof v=="function"?v:Ws(+v),d):o},d.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:Ws(+v),d):l},d.paddingBottom=function(v){return arguments.length?(s=typeof v=="function"?v:Ws(+v),d):s},d.paddingLeft=function(v){return arguments.length?(f=typeof v=="function"?v:Ws(+v),d):f},d}function Mre(e,t,r,n,i){var a=e.children,o,l=a.length,s,f=new Array(l+1);for(f[0]=s=o=0;o<l;++o)f[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(g,v,y,E,k,x,w){if(g>=v-1){var _=a[g];_.x0=E,_.y0=k,_.x1=x,_.y1=w;return}for(var C=f[g],T=y/2+C,F=g+1,L=v-1;F<L;){var V=F+L>>>1;f[V]<T?F=V+1:L=V}T-f[F-1]<f[F]-T&&g+1<F&&--F;var j=f[F]-C,te=y-j;if(x-E>w-k){var ge=(E*te+x*j)/y;d(g,F,j,E,k,ge,w),d(F,v,te,ge,k,x,w)}else{var me=(k*te+w*j)/y;d(g,F,j,E,k,x,me),d(F,v,te,E,me,x,w)}}}function Rre(e,t,r,n,i){(e.depth&1?my:_p)(e,t,r,n,i)}const Pre=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,g,v=-1,y,E=s.length,k=n.value;++v<E;){for(f=s[v],d=f.children,g=f.value=0,y=d.length;g<y;++g)f.value+=d[g].value;f.dice?_p(f,i,a,o,a+=(l-a)*f.value/k):my(f,i,a,i+=(o-i)*f.value/k,l),k-=f.value}else n._squarify=s=GN(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(jN),Ire=Object.freeze(Object.defineProperty({__proto__:null,cluster:qte,hierarchy:zE,pack:gre,packEnclose:DN,packSiblings:pre,partition:yre,stratify:_re,tree:Ore,treemap:kre,treemapBinary:Mre,treemapDice:_p,treemapResquarify:Pre,treemapSlice:my,treemapSliceDice:Rre,treemapSquarify:WN},Symbol.toStringTag,{value:"Module"})),Aae=Rl(Ire);function Yf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Sp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Su(){}var Ol=.7,Lf=1/Ol,gf="\\s*([+-]?\\d+)\\s*",Wd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fre=/^#([0-9a-f]{3,8})$/,Nre=new RegExp(`^rgb\\(${gf},${gf},${gf}\\)$`),Lre=new RegExp(`^rgb\\(${xa},${xa},${xa}\\)$`),Dre=new RegExp(`^rgba\\(${gf},${gf},${gf},${Wd}\\)$`),$re=new RegExp(`^rgba\\(${xa},${xa},${xa},${Wd}\\)$`),Bre=new RegExp(`^hsl\\(${Wd},${xa},${xa}\\)$`),zre=new RegExp(`^hsla\\(${Wd},${xa},${xa},${Wd}\\)$`),Uk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yf(Su,Hd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHex8:Ure,formatHsl:jre,formatRgb:Gk,toString:Gk});function jk(){return this.rgb().formatHex()}function Ure(){return this.rgb().formatHex8()}function jre(){return HN(this).formatHsl()}function Gk(){return this.rgb().formatRgb()}function Hd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Fre.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Wk(t):r===3?new bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?I0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?I0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Nre.exec(e))?new bn(t[1],t[2],t[3],1):(t=Lre.exec(e))?new bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dre.exec(e))?I0(t[1],t[2],t[3],t[4]):(t=$re.exec(e))?I0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Bre.exec(e))?Vk(t[1],t[2]/100,t[3]/100,1):(t=zre.exec(e))?Vk(t[1],t[2]/100,t[3]/100,t[4]):Uk.hasOwnProperty(e)?Wk(Uk[e]):e==="transparent"?new bn(NaN,NaN,NaN,0):null}function Wk(e){return new bn(e>>16&255,e>>8&255,e&255,1)}function I0(e,t,r,n){return n<=0&&(e=t=r=NaN),new bn(e,t,r,n)}function UE(e){return e instanceof Su||(e=Hd(e)),e?(e=e.rgb(),new bn(e.r,e.g,e.b,e.opacity)):new bn}function pg(e,t,r,n){return arguments.length===1?UE(e):new bn(e,t,r,n??1)}function bn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Yf(bn,pg,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bn(gl(this.r),gl(this.g),gl(this.b),vg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Hk,formatHex:Hk,formatHex8:Gre,formatRgb:qk,toString:qk}));function Hk(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}`}function Gre(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}${dl((isNaN(this.opacity)?1:this.opacity)*255)}`}function qk(){const e=vg(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function vg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function Vk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xi(e,t,r,n)}function HN(e){if(e instanceof Xi)return new Xi(e.h,e.s,e.l,e.opacity);if(e instanceof Su||(e=Hd(e)),!e)return new Xi;if(e instanceof Xi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Xi(o,l,s,e.opacity)}function _2(e,t,r,n){return arguments.length===1?HN(e):new Xi(e,t,r,n??1)}function Xi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(Xi,_2,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new Xi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new Xi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new bn(lw(e>=240?e-240:e+120,i,n),lw(e,i,n),lw(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xi(Yk(this.h),F0(this.s),F0(this.l),vg(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(){const e=vg(this.opacity);return`${e===1?"hsl(":"hsla("}${Yk(this.h)}, ${F0(this.s)*100}%, ${F0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yk(e){return e=(e||0)%360,e<0?e+360:e}function F0(e){return Math.max(0,Math.min(1,e||0))}function lw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const qN=Math.PI/180,VN=180/Math.PI,mg=18,YN=.96422,XN=1,KN=.82521,QN=4/29,yf=6/29,ZN=3*yf*yf,Wre=yf*yf*yf;function JN(e){if(e instanceof wa)return new wa(e.l,e.a,e.b,e.opacity);if(e instanceof Qa)return e6(e);e instanceof bn||(e=UE(e));var t=hw(e.r),r=hw(e.g),n=hw(e.b),i=sw((.2225045*t+.7168786*r+.0606169*n)/XN),a,o;return t===r&&r===n?a=o=i:(a=sw((.4360747*t+.3850649*r+.1430804*n)/YN),o=sw((.0139322*t+.0971045*r+.7141733*n)/KN)),new wa(116*i-16,500*(a-i),200*(i-o),e.opacity)}function S2(e,t,r,n){return arguments.length===1?JN(e):new wa(e,t,r,n??1)}function wa(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Yf(wa,S2,Sp(Su,{brighter(e){return new wa(this.l+mg*(e??1),this.a,this.b,this.opacity)},darker(e){return new wa(this.l-mg*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=YN*fw(t),e=XN*fw(e),r=KN*fw(r),new bn(cw(3.1338561*t-1.6168667*e-.4906146*r),cw(-.9787684*t+1.9161415*e+.033454*r),cw(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function sw(e){return e>Wre?Math.pow(e,1/3):e/ZN+QN}function fw(e){return e>yf?e*e*e:ZN*(e-QN)}function cw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function hw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hre(e){if(e instanceof Qa)return new Qa(e.h,e.c,e.l,e.opacity);if(e instanceof wa||(e=JN(e)),e.a===0&&e.b===0)return new Qa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*VN;return new Qa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function E2(e,t,r,n){return arguments.length===1?Hre(e):new Qa(e,t,r,n??1)}function Qa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function e6(e){if(isNaN(e.h))return new wa(e.l,0,0,e.opacity);var t=e.h*qN;return new wa(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Yf(Qa,E2,Sp(Su,{brighter(e){return new Qa(this.h,this.c,this.l+mg*(e??1),this.opacity)},darker(e){return new Qa(this.h,this.c,this.l-mg*(e??1),this.opacity)},rgb(){return e6(this).rgb()}}));var t6=-.14861,jE=1.78277,GE=-.29227,gy=-.90649,qd=1.97294,Xk=qd*gy,Kk=qd*jE,Qk=jE*GE-gy*t6;function qre(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=UE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Qk*n+Xk*t-Kk*r)/(Qk+Xk-Kk),a=n-i,o=(qd*(r-i)-GE*a)/gy,l=Math.sqrt(o*o+a*a)/(qd*i*(1-i)),s=l?Math.atan2(o,a)*VN-120:NaN;return new yl(s<0?s+360:s,l,i,e.opacity)}function A2(e,t,r,n){return arguments.length===1?qre(e):new yl(e,t,r,n??1)}function yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(yl,A2,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*qN,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new bn(255*(t+r*(t6*n+jE*i)),255*(t+r*(GE*n+gy*i)),255*(t+r*(qd*n)),this.opacity)}}));function r6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function n6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return r6((r-n/t)*t,o,i,a,l)}}function i6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return r6((r-n/t)*t,i,a,o,l)}}const yy=e=>()=>e;function a6(e,t){return function(r){return e+r*t}}function Vre(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function by(e,t){var r=t-e;return r?a6(e,r>180||r<-180?r-360*Math.round(r/360):r):yy(isNaN(e)?t:e)}function Yre(e){return(e=+e)==1?xn:function(t,r){return r-t?Vre(t,r,e):yy(isNaN(t)?r:t)}}function xn(e,t){var r=t-e;return r?a6(e,r):yy(isNaN(e)?t:e)}const T2=function e(t){var r=Yre(t);function n(i,a){var o=r((i=pg(i)).r,(a=pg(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),f=xn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function o6(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=pg(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var Xre=o6(n6),Kre=o6(i6);function WE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function u6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qre(e,t){return(u6(t)?WE:l6)(e,t)}function l6(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=xy(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function s6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ha(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function f6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=xy(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var C2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dw=new RegExp(C2.source,"g");function Zre(e){return function(){return e}}function Jre(e){return function(t){return e(t)+""}}function c6(e,t){var r=C2.lastIndex=dw.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=C2.exec(e))&&(i=dw.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:ha(n,i)})),r=dw.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?Jre(s[0].x):Zre(t):(t=s.length,function(f){for(var d=0,g;d<t;++d)l[(g=s[d]).i]=g.x(f);return l.join("")})}function xy(e,t){var r=typeof t,n;return t==null||r==="boolean"?yy(t):(r==="number"?ha:r==="string"?(n=Hd(t))?(t=n,T2):c6:t instanceof Hd?T2:t instanceof Date?s6:u6(t)?WE:Array.isArray(t)?l6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?f6:ha)(e,t)}function ene(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function tne(e,t){var r=by(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function rne(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Zk=180/Math.PI,O2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h6(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Zk,skewX:Math.atan(s)*Zk,scaleX:o,scaleY:l}}var N0;function nne(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?O2:h6(t.a,t.b,t.c,t.d,t.e,t.f)}function ine(e){return e==null||(N0||(N0=document.createElementNS("http://www.w3.org/2000/svg","g")),N0.setAttribute("transform",e),!(e=N0.transform.baseVal.consolidate()))?O2:(e=e.matrix,h6(e.a,e.b,e.c,e.d,e.e,e.f))}function d6(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push("translate(",null,t,null,r);E.push({i:k-4,x:ha(f,g)},{i:k-2,x:ha(d,v)})}else(g||v)&&y.push("translate("+g+t+v+r)}function o(f,d,g,v){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),v.push({i:g.push(i(g)+"rotate(",null,n)-2,x:ha(f,d)})):d&&g.push(i(g)+"rotate("+d+n)}function l(f,d,g,v){f!==d?v.push({i:g.push(i(g)+"skewX(",null,n)-2,x:ha(f,d)}):d&&g.push(i(g)+"skewX("+d+n)}function s(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push(i(y)+"scale(",null,",",null,")");E.push({i:k-4,x:ha(f,g)},{i:k-2,x:ha(d,v)})}else(g!==1||v!==1)&&y.push(i(y)+"scale("+g+","+v+")")}return function(f,d){var g=[],v=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,g,v),o(f.rotate,d.rotate,g,v),l(f.skewX,d.skewX,g,v),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,v),f=d=null,function(y){for(var E=-1,k=v.length,x;++E<k;)g[(x=v[E]).i]=x.x(y);return g.join("")}}}var ane=d6(nne,"px, ","px)","deg)"),one=d6(ine,", ",")",")"),une=1e-12;function Jk(e){return((e=Math.exp(e))+1/e)/2}function lne(e){return((e=Math.exp(e))-1/e)/2}function sne(e){return((e=Math.exp(2*e))-1)/(e+1)}const fne=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],f=a[2],d=o[0],g=o[1],v=o[2],y=d-l,E=g-s,k=y*y+E*E,x,w;if(k<une)w=Math.log(v/f)/t,x=function(V){return[l+V*y,s+V*E,f*Math.exp(t*V*w)]};else{var _=Math.sqrt(k),C=(v*v-f*f+n*k)/(2*f*r*_),T=(v*v-f*f-n*k)/(2*v*r*_),F=Math.log(Math.sqrt(C*C+1)-C),L=Math.log(Math.sqrt(T*T+1)-T);w=(L-F)/t,x=function(V){var j=V*w,te=Jk(F),ge=f/(r*_)*(te*sne(t*j+F)-lne(F));return[l+ge*y,s+ge*E,f*te/Jk(t*j+F)]}}return x.duration=w*1e3*t/Math.SQRT2,x}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function p6(e){return function(t,r){var n=e((t=_2(t)).h,(r=_2(r)).h),i=xn(t.s,r.s),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const cne=p6(by);var hne=p6(xn);function dne(e,t){var r=xn((e=S2(e)).l,(t=S2(t)).l),n=xn(e.a,t.a),i=xn(e.b,t.b),a=xn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function v6(e){return function(t,r){var n=e((t=E2(t)).h,(r=E2(r)).h),i=xn(t.c,r.c),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const pne=v6(by);var vne=v6(xn);function m6(e){return function t(r){r=+r;function n(i,a){var o=e((i=A2(i)).h,(a=A2(a)).h),l=xn(i.s,a.s),s=xn(i.l,a.l),f=xn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const mne=m6(by);var gne=m6(xn);function yne(e,t){t===void 0&&(t=e,e=xy);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function bne(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const xne=Object.freeze(Object.defineProperty({__proto__:null,interpolate:xy,interpolateArray:Qre,interpolateBasis:n6,interpolateBasisClosed:i6,interpolateCubehelix:mne,interpolateCubehelixLong:gne,interpolateDate:s6,interpolateDiscrete:ene,interpolateHcl:pne,interpolateHclLong:vne,interpolateHsl:cne,interpolateHslLong:hne,interpolateHue:tne,interpolateLab:dne,interpolateNumber:ha,interpolateNumberArray:WE,interpolateObject:f6,interpolateRgb:T2,interpolateRgbBasis:Xre,interpolateRgbBasisClosed:Kre,interpolateRound:rne,interpolateString:c6,interpolateTransformCss:ane,interpolateTransformSvg:one,interpolateZoom:fne,piecewise:yne,quantize:bne},Symbol.toStringTag,{value:"Module"})),Tae=Rl(xne);var wne="Expected a function",g6="__lodash_hash_undefined__",y6=1/0,_ne=9007199254740991,Sne="[object Function]",Ene="[object GeneratorFunction]",Ane="[object Symbol]",Tne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cne=/^\w*$/,One=/^\./,kne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mne=/[\\^$.*+?()[\]{}|]/g,Rne=/\\(\\)?/g,Pne=/^\[object .+?Constructor\]$/,Ine=/^(?:0|[1-9]\d*)$/,Fne=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Nne=typeof self=="object"&&self&&self.Object===Object&&self,HE=Fne||Nne||Function("return this")();function Lne(e,t){return e==null?void 0:e[t]}function Dne(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var $ne=Array.prototype,Bne=Function.prototype,b6=Object.prototype,pw=HE["__core-js_shared__"],eM=function(){var e=/[^.]+$/.exec(pw&&pw.keys&&pw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x6=Bne.toString,wy=b6.hasOwnProperty,w6=b6.toString,zne=RegExp("^"+x6.call(wy).replace(Mne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tM=HE.Symbol,Une=$ne.splice,jne=_6(HE,"Map"),Vd=_6(Object,"create"),rM=tM?tM.prototype:void 0,nM=rM?rM.toString:void 0;function kl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gne(){this.__data__=Vd?Vd(null):{}}function Wne(e){return this.has(e)&&delete this.__data__[e]}function Hne(e){var t=this.__data__;if(Vd){var r=t[e];return r===g6?void 0:r}return wy.call(t,e)?t[e]:void 0}function qne(e){var t=this.__data__;return Vd?t[e]!==void 0:wy.call(t,e)}function Vne(e,t){var r=this.__data__;return r[e]=Vd&&t===void 0?g6:t,this}kl.prototype.clear=Gne;kl.prototype.delete=Wne;kl.prototype.get=Hne;kl.prototype.has=qne;kl.prototype.set=Vne;function Xf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Yne(){this.__data__=[]}function Xne(e){var t=this.__data__,r=_y(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Une.call(t,r,1),!0}function Kne(e){var t=this.__data__,r=_y(t,e);return r<0?void 0:t[r][1]}function Qne(e){return _y(this.__data__,e)>-1}function Zne(e,t){var r=this.__data__,n=_y(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Xf.prototype.clear=Yne;Xf.prototype.delete=Xne;Xf.prototype.get=Kne;Xf.prototype.has=Qne;Xf.prototype.set=Zne;function Wl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jne(){this.__data__={hash:new kl,map:new(jne||Xf),string:new kl}}function eie(e){return Sy(this,e).delete(e)}function tie(e){return Sy(this,e).get(e)}function rie(e){return Sy(this,e).has(e)}function nie(e,t){return Sy(this,e).set(e,t),this}Wl.prototype.clear=Jne;Wl.prototype.delete=eie;Wl.prototype.get=tie;Wl.prototype.has=rie;Wl.prototype.set=nie;function iie(e,t,r){var n=e[t];(!(wy.call(e,t)&&S6(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _y(e,t){for(var r=e.length;r--;)if(S6(e[r][0],t))return r;return-1}function aie(e){if(!gg(e)||hie(e))return!1;var t=mie(e)||Dne(e)?zne:Pne;return t.test(vie(e))}function oie(e,t,r,n){if(!gg(e))return e;t=fie(t,e)?[t]:lie(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=pie(t[i]),f=r;if(i!=o){var d=l[s];f=n?n(d,s,l):void 0,f===void 0&&(f=gg(d)?d:sie(t[i+1])?[]:{})}iie(l,s,f),l=l[s]}return e}function uie(e){if(typeof e=="string")return e;if(VE(e))return nM?nM.call(e):"";var t=e+"";return t=="0"&&1/e==-y6?"-0":t}function lie(e){return E6(e)?e:die(e)}function Sy(e,t){var r=e.__data__;return cie(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _6(e,t){var r=Lne(e,t);return aie(r)?r:void 0}function sie(e,t){return t=t??_ne,!!t&&(typeof e=="number"||Ine.test(e))&&e>-1&&e%1==0&&e<t}function fie(e,t){if(E6(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||VE(e)?!0:Cne.test(e)||!Tne.test(e)||t!=null&&e in Object(t)}function cie(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hie(e){return!!eM&&eM in e}var die=qE(function(e){e=yie(e);var t=[];return One.test(e)&&t.push(""),e.replace(kne,function(r,n,i,a){t.push(i?a.replace(Rne,"$1"):n||r)}),t});function pie(e){if(typeof e=="string"||VE(e))return e;var t=e+"";return t=="0"&&1/e==-y6?"-0":t}function vie(e){if(e!=null){try{return x6.call(e)}catch{}try{return e+""}catch{}}return""}function qE(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(wne);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(qE.Cache||Wl),r}qE.Cache=Wl;function S6(e,t){return e===t||e!==e&&t!==t}var E6=Array.isArray;function mie(e){var t=gg(e)?w6.call(e):"";return t==Sne||t==Ene}function gg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function gie(e){return!!e&&typeof e=="object"}function VE(e){return typeof e=="symbol"||gie(e)&&w6.call(e)==Ane}function yie(e){return e==null?"":uie(e)}function bie(e,t,r){return e==null?e:oie(e,t,r)}var Cae=bie;/*! js-cookie v3.0.5 | MIT */function L0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var xie={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function k2(e,t){function r(i,a,o){if(!(typeof document>"u")){o=L0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),f=s.slice(1).join("=");try{var d=decodeURIComponent(s[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",L0({},a,{expires:-1}))},withAttributes:function(i){return k2(this.converter,L0({},this.attributes,i))},withConverter:function(i){return k2(L0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Oae=k2(xie,{path:"/"});function kae(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:n=f=>f.id||f.key,filter:i,initialFilterText:a=""}=e,[o,l]=zt.useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:a}),s=zt.useMemo(()=>i?o.items.filter(f=>i(f,o.filterText)):o.items,[o.items,o.filterText,i]);return{...o,items:s,...wie({getKey:n},l),getItem(f){return o.items.find(d=>n(d)===f)}}}function wie(e,t){let{cursor:r,getKey:n}=e;return{setSelectedKeys(i){t(a=>({...a,selectedKeys:i}))},setFilterText(i){t(a=>({...a,filterText:i}))},insert(i,...a){t(o=>Ih(o,i,...a))},insertBefore(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l,...a)})},insertAfter(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l+1,...a)})},prepend(...i){t(a=>Ih(a,0,...i))},append(...i){t(a=>Ih(a,a.items.length,...i))},remove(...i){t(a=>{let o=new Set(i),l=a.items.filter(f=>!o.has(n(f))),s="all";if(a.selectedKeys!=="all"){s=new Set(a.selectedKeys);for(let f of i)s.delete(f)}return r==null&&l.length===0&&(s=new Set),{...a,items:l,selectedKeys:s}})},removeSelectedItems(){t(i=>{if(i.selectedKeys==="all")return{...i,items:[],selectedKeys:new Set};let a=i.selectedKeys,o=i.items.filter(l=>!a.has(n(l)));return{...i,items:o,selectedKeys:new Set}})},move(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let s=o.items.slice(),[f]=s.splice(l,1);return s.splice(a,0,f),{...o,items:s}})},moveBefore(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return iM(o,f,l)})},moveAfter(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return iM(o,f,l+1)})},update(i,a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);return l===-1?o:{...o,items:[...o.items.slice(0,l),a,...o.items.slice(l+1)]}})}}}function Ih(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function iM(e,t,r){r-=t.filter(a=>a<r).length;let n=t.map(a=>({from:a,to:r++}));for(let a=0;a<n.length;a++){let o=n[a].from;for(let l=a;l<n.length;l++)n[l].from>o&&n[l].from--}for(let a=0;a<n.length;a++){let o=n[a];for(let l=n.length-1;l>a;l--){let s=n[l];s.from<o.to?o.to++:s.from++}}let i=e.items.slice();for(let a of n){let[o]=i.splice(a.from,1);i.splice(a.to,0,o)}return{...e,items:i}}var _ie={},Ep={},Ap={},Ey={},A6={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(A6);var T6={},Ml={};Ml.__esModule=!0;Ml.InternalServerError=Ml.OK=void 0;Ml.OK=200;Ml.InternalServerError=500;(function(e){var t=Jt&&Jt.__spreadArray||function(l,s,f){if(f||arguments.length===2)for(var d=0,g=s.length,v;d<g;d++)(v||!(d in s))&&(v||(v=Array.prototype.slice.call(s,0,d)),v[d]=s[d]);return l.concat(v||Array.prototype.slice.call(s))};e.__esModule=!0;var r=i2,n=i2,i=Ml,a=function(l){for(var s=[],f=1;f<arguments.length;f++)s[f-1]=arguments[f];return typeof l!="string"?{on:function(d,g){g(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,f){a(l,function(d){if(d.statusCode!==i.OK)return f(new Error("HTTP Error Response: "+d.statusCode+" "+d.statusMessage+" ("+l+")"));var g=null;d.on("data",function(v){if(g===null){g=v;return}g+=v}),d.on("end",function(){return s(g)})}).on("error",f)})};e.default=o})(T6);var C6={},nu={};nu.__esModule=!0;nu.DONE=nu.OPENED=nu.UNSENT=void 0;nu.UNSENT=0;nu.OPENED=1;nu.DONE=4;(function(e){e.__esModule=!0;var t=Ml,r=nu,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(C6);Ey.__esModule=!0;Ey.createLoadRemoteModule=void 0;var Sie=A6,Eie=T6,Aie=C6,Tie=typeof window<"u"&&typeof window.document<"u",Cie=Tie?Aie.default:Eie.default,Oie=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},kie=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||Oie,a=n||Cie;return(0,Sie.default)(function(o){return a(o).then(function(l){var s={},f={exports:s},d=new Function("require","module","exports",l);return d(i,f,s),f.exports})})};Ey.createLoadRemoteModule=kie;var Ay={};Ay.__esModule=!0;Ay.createRequires=void 0;var Mie=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};Ay.createRequires=Mie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=Ey;t(e,r,"createLoadRemoteModule","default");var n=Ay;t(e,n,"createRequires")})(Ap);const Mae=yg(Ap);var Rie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ep.__esModule=!0;Ep.createUseRemoteComponent=void 0;var aM=zt,Pie=Rie(Ap),Iie=function(e){var t=Pie.default(e),r=function(n,i){i===void 0&&(i="default");var a=aM.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,f=o.component,d=a[1];return aM.useEffect(function(){var g=d;return g({loading:!0,err:void 0,component:void 0}),t(n).then(function(v){return g({loading:!1,err:void 0,component:v[i]})}).catch(function(v){return g({loading:!1,err:v,component:void 0})}),function(){g=function(){}}},[n]),[l,s,f]};return r};Ep.createUseRemoteComponent=Iie;var Tp={};Tp.__esModule=!0;Tp.createRequires=void 0;var Fie=function(e){return typeof e=="function"?e():e||{}},Nie=function(e){var t=!1;return function(r){if(t||(e=Fie(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Tp.createRequires=Nie;var YE={};(function(e){var t=Jt&&Jt.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,f=arguments.length;s<f;s++){l=arguments[s];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(YE);var Cp={},M2=Jt&&Jt.__assign||function(){return M2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},M2.apply(this,arguments)},Lie=Jt&&Jt.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},Die=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cp.__esModule=!0;Cp.createRemoteComponent=void 0;var oM=Die(zt),$ie=Ep,Bie=function(e){var t=$ie.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=Lie(n,["url","fallback","render"]),f=t(i),d=f[0],g=f[1],v=f[2];return d?o:l?l({err:g,Component:v}):g||!v?oM.default.createElement("div",null,"Unknown Error: ",(g||"UNKNOWN").toString()):oM.default.createElement(v,M2({},s))};return r};Cp.createRemoteComponent=Bie;var Ty={};Ty.__esModule=!0;Ty.RemoteComponent=void 0;var zie=Cp,Uie=Tp,jie=YE,Gie=Uie.createRequires(jie.getDependencies);Ty.RemoteComponent=zie.createRemoteComponent({requires:Gie});var Cy={},Wie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cy.__esModule=!0;Cy.fetchRemoteComponent=void 0;var Hie=Wie(Ap),qie=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=Hie.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};Cy.fetchRemoteComponent=qie;var Oy={},Vie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Oy.__esModule=!0;Oy.getServerSideProps=void 0;var Yie=Vie(Ap),Xie=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=Yie.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};Oy.getServerSideProps=Xie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(f,d,g,v){v===void 0&&(v=g),Object.defineProperty(f,v,{enumerable:!0,get:function(){return d[g]}})}:function(f,d,g,v){v===void 0&&(v=g),f[v]=d[g]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Ep;t(e,r,"createUseRemoteComponent");var n=Tp;t(e,n,"createRequires");var i=YE;t(e,i,"getDependencies");var a=Cp;t(e,a,"createRemoteComponent");var o=Ty;t(e,o,"RemoteComponent");var l=Cy;t(e,l,"fetchRemoteComponent");var s=Oy;t(e,s,"getServerSideProps")})(_ie);export{lae as $,Aae as A,Tae as B,XE as C,Jie as D,TT as E,Hg as F,wr as G,Cae as H,tn as I,sae as J,Zie as K,Qie as L,zS as M,tae as N,$G as O,eae as P,aae as Q,Bh as R,iae as S,AG as T,oae as U,uae as V,Oae as W,kae as X,rae as Y,nae as Z,_ie as _,fae as a,Ap as a0,Mae as a1,cae as b,BF as c,i5 as d,h2 as e,hae as f,dae as g,pae as h,lg as i,mae as j,gae as k,HK as l,vae as m,yae as n,bae as o,fr as p,sy as q,zt as r,xae as s,T5 as t,d2 as u,x2 as v,wae as w,_ae as x,Sae as y,Eae as z};
|
|
1175
|
+
//# sourceMappingURL=vendor-84eaa63e.js.map
|