@milaboratories/graph-maker 1.1.104 → 1.1.105
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/dist/graph-maker.js +1 -1
- package/dist/graph-maker.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/graph-maker.umd.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __p += '`),Va&&(Ht+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+Ht+`return __p
|
|
27
|
-
}`;var Wr=DE(function(){return ea(Te,xn+"return "+Ht).apply(n,$e)});if(Wr.source=Ht,gh(Wr))throw Wr;return Wr}function xM(w){return bi(w).toLowerCase()}function tw(w){return bi(w).toUpperCase()}function SM(w,B,F){if(w=bi(w),w&&(F||B===n))return It(w);if(!w||!(B=Zo(B)))return w;var re=ui(w),ve=ui(B),Te=xa(re,ve),$e=ul(re,ve)+1;return wu(re,Te,$e).join("")}function nw(w,B,F){if(w=bi(w),w&&(F||B===n))return w.slice(0,tp(w)+1);if(!w||!(B=Zo(B)))return w;var re=ui(w),ve=ul(re,ui(B))+1;return wu(re,0,ve).join("")}function ME(w,B,F){if(w=bi(w),w&&(F||B===n))return w.replace(qr,"");if(!w||!(B=Zo(B)))return w;var re=ui(w),ve=xa(re,ui(B));return wu(re,ve).join("")}function BM(w,B){var F=ee,re=z;if(tl(B)){var ve="separator"in B?B.separator:ve;F="length"in B?Fr(B.length):F,re="omission"in B?Zo(B.omission):re}w=bi(w);var Te=w.length;if(Dd(w)){var $e=ui(w);Te=$e.length}if(F>=Te)return w;var Oe=F-Jc(re);if(Oe<1)return re;var Ze=$e?wu($e,0,Oe).join(""):w.slice(0,Oe);if(ve===n)return Ze+re;if($e&&(Oe+=Ze.length-Oe),$2(ve)){if(w.slice(Oe).search(ve)){var kt,St=Ze;for(ve.global||(ve=is(ve.source,bi(On.exec(ve))+"g")),ve.lastIndex=0;kt=ve.exec(St);)var Ht=kt.index;Ze=Ze.slice(0,Ht===n?Oe:Ht)}}else if(w.indexOf(Zo(ve),Oe)!=Oe){var Kt=Ze.lastIndexOf(ve);Kt>-1&&(Ze=Ze.slice(0,Kt))}return Ze+re}function kM(w){return w=bi(w),w&&lo.test(w)?w.replace(Sr,e0):w}var TM=G(function(w,B,F){return w+(F?" ":"")+B.toUpperCase()}),rw=L("toUpperCase");function aw(w,B,F){return w=bi(w),B=F?n:B,B===n?c1(w)?ah(w):Xc(w):w.match(B)||[]}var DE=Er(function(w,B){try{return Zn(w,n,B)}catch(F){return gh(F)?F:new zn(F)}}),_M=zd(function(w,B){return gr(B,function(F){F=Su(F),Vl(w,F,Lt(w[F],w))}),w});function PM(w){var B=w==null?0:w.length,F=Kn();return w=B?Qr(w,function(re){if(typeof re[1]!="function")throw new Ts(l);return[F(re[0]),re[1]]}):[],Er(function(re){for(var ve=-1;++ve<B;){var Te=w[ve];if(Zn(Te[0],this,re))return Zn(Te[1],this,re)}})}function MM(w){return lp(Xo(w,h))}function iw(w){return function(){return w}}function DM(w,B){return w==null||w!==w?B:w}var HM=Ie(),ow=Ie(!0);function gf(w){return w}function lw(w){return af(typeof w=="function"?w:Xo(w,h))}function IM(w){return ru(Xo(w,h))}function RM(w,B){return Za(w,Xo(B,h))}var NM=Er(function(w,B){return function(F){return Al(F,w,B)}}),LM=Er(function(w,B){return function(F){return Al(w,F,B)}});function sw(w,B,F){var re=ou(B),ve=dl(B,re);F==null&&!(tl(B)&&(ve.length||!re.length))&&(F=B,B=w,w=this,ve=dl(B,ou(B)));var Te=!(tl(F)&&"chain"in F)||!!F.chain,$e=yp(w);return gr(ve,function(Oe){var Ze=B[Oe];w[Oe]=Ze,$e&&(w.prototype[Oe]=function(){var kt=this.__chain__;if(Te||kt){var St=w(this.__wrapped__),Ht=St.__actions__=yo(this.__actions__);return Ht.push({func:Ze,args:arguments,thisArg:w}),St.__chain__=kt,St}return Ze.apply(w,sl([this.value()],arguments))})}),w}function $M(){return pa._===this&&(pa._=AA),this}function uw(){}function HE(w){return w=Fr(w),Er(function(B){return of(B,w)})}var cw=Wt(Qr),FM=Wt(Ss),VM=Wt(Wc);function i3(w){return ln(w)?J(Su(w)):Cn(w)}function o3(w){return function(B){return w==null?n:ho(w,B)}}var OM=wo(),QM=wo(!0);function fw(){return[]}function dw(){return!1}function zM(){return{}}function UM(){return""}function GM(){return!0}function IE(w,B){if(w=Fr(w),w<1||w>ae)return[];var F=ue,re=Ki(w,ue);B=Kn(B),w-=ue;for(var ve=qe(re,B);++F<w;)B(F);return ve}function jM(w){return zr(w)?Qr(w,Su):_a(w)?[w]:yo(Kv(bi(w)))}function YM(w){var B=++mc;return bi(w)+B}var WM=Pt(function(w,B){return w+B},0),XM=Ta("ceil"),KM=Pt(function(w,B){return w/B},1),ZM=Ta("floor");function JM(w){return w&&w.length?Ps(w,gf,Zs):n}function qM(w,B){return w&&w.length?Ps(w,Kn(B,2),Zs):n}function eD(w){return cA(w,gf)}function tD(w,B){return cA(w,Kn(B,2))}function nD(w){return w&&w.length?Ps(w,gf,Tl):n}function rD(w,B){return w&&w.length?Ps(w,Kn(B,2),Tl):n}var aD=Pt(function(w,B){return w*B},1),iD=Ta("round"),oD=Pt(function(w,B){return w-B},0);function lD(w){return w&&w.length?nt(w,gf):0}function mm(w,B){return w&&w.length?nt(w,Kn(B,2)):0}return xe.after=Qe,xe.ary=dt,xe.assign=vf,xe.assignIn=pm,xe.assignInWith=P1,xe.assignWith=Ch,xe.at=wE,xe.before=Nt,xe.bind=Lt,xe.bindAll=_M,xe.bindKey=Rt,xe.castArray=dE,xe.chain=im,xe.chunk=s0,xe.compact=Zv,xe.concat=df,xe.cond=PM,xe.conforms=MM,xe.constant=iw,xe.countBy=Ug,xe.create=M1,xe.curry=nn,xe.curryRight=yn,xe.debounce=En,xe.defaults=D1,xe.defaultsDeep=O2,xe.defer=vl,xe.delay=rt,xe.difference=sa,xe.differenceBy=el,xe.differenceWith=no,xe.drop=Gl,xe.dropRight=nc,xe.dropRightWhile=dh,xe.dropWhile=jl,xe.fill=g1,xe.filter=um,xe.flatMap=jg,xe.flatMapDeep=L4,xe.flatMapDepth=Yg,xe.flatten=Jv,xe.flattenDeep=pp,xe.flattenDepth=iu,xe.flip=Ue,xe.flow=HM,xe.flowRight=ow,xe.fromPairs=qv,xe.functions=EE,xe.functionsIn=nM,xe.groupBy=mp,xe.initial=em,xe.intersection=$g,xe.intersectionBy=Af,xe.intersectionWith=Ah,xe.invert=xE,xe.invertBy=rM,xe.invokeMap=R2,xe.iteratee=lw,xe.keyBy=$4,xe.keys=ou,xe.keysIn=mf,xe.map=p0,xe.mapKeys=aM,xe.mapValues=iM,xe.matches=IM,xe.matchesProperty=RM,xe.memoize=ot,xe.merge=oM,xe.mergeWith=SE,xe.method=NM,xe.methodOf=LM,xe.mixin=sw,xe.negate=Qt,xe.nthArg=HE,xe.omit=lM,xe.omitBy=sM,xe.once=Dn,xe.orderBy=F4,xe.over=cw,xe.overArgs=qn,xe.overEvery=FM,xe.overSome=VM,xe.partial=An,xe.partialRight=er,xe.partition=B1,xe.pick=uM,xe.pickBy=BE,xe.property=i3,xe.propertyOf=o3,xe.pull=w1,xe.pullAll=hp,xe.pullAllBy=ms,xe.pullAllWith=BA,xe.pullAt=Fo,xe.range=OM,xe.rangeRight=QM,xe.rearg=Wl,xe.reject=p,xe.remove=Yl,xe.rest=Ja,xe.reverse=ph,xe.sampleSize=T,xe.set=K4,xe.setWith=Z4,xe.shuffle=R,xe.slice=f0,xe.sortBy=we,xe.sortedUniq=nm,xe.sortedUniqBy=d0,xe.split=CM,xe.spread=kA,xe.tail=S2,xe.take=B2,xe.takeRight=C1,xe.takeRightWhile=rm,xe.takeWhile=M4,xe.tap=N4,xe.throttle=V4,xe.thru=cd,xe.toArray=Am,xe.toPairs=j2,xe.toPairsIn=kE,xe.toPath=jM,xe.toPlainObject=j4,xe.transform=qg,xe.unary=OP,xe.union=D4,xe.unionBy=k2,xe.unionWith=T2,xe.uniq=vp,xe.uniqBy=H4,xe.uniqWith=vh,xe.unset=e3,xe.unzip=am,xe.unzipWith=Vo,xe.update=cM,xe.updateWith=TE,xe.values=vm,xe.valuesIn=fM,xe.without=I4,xe.words=aw,xe.wrap=QP,xe.xor=_2,xe.xorBy=Qg,xe.xorWith=R4,xe.zip=P2,xe.zipObject=M2,xe.zipObjectDeep=D2,xe.zipWith=hf,xe.entries=j2,xe.entriesIn=kE,xe.extend=pm,xe.extendWith=P1,sw(xe,xe),xe.add=WM,xe.attempt=DE,xe.camelCase=PE,xe.capitalize=t3,xe.ceil=XM,xe.clamp=_E,xe.clone=AE,xe.cloneDeep=UP,xe.cloneDeepWith=pE,xe.cloneWith=zP,xe.conformsTo=O4,xe.deburr=n3,xe.defaultTo=DM,xe.divide=KM,xe.endsWith=Y2,xe.eq=TA,xe.escape=r3,xe.escapeRegExp=a3,xe.every=Gg,xe.find=x1,xe.findIndex=Ap,xe.findKey=Y4,xe.findLast=I2,xe.findLastIndex=u0,xe.findLastKey=Q2,xe.floor=ZM,xe.forEach=S1,xe.forEachRight=mh,xe.forIn=Jg,xe.forInRight=CE,xe.forOwn=z2,xe.forOwnRight=bE,xe.get=W4,xe.gt=GP,xe.gte=jP,xe.has=U2,xe.hasIn=hm,xe.head=c0,xe.identity=gf,xe.includes=cm,xe.indexOf=SA,xe.inRange=dM,xe.invoke=G2,xe.isArguments=k1,xe.isArray=zr,xe.isArrayBuffer=YP,xe.isArrayLike=Hs,xe.isArrayLikeObject=ml,xe.isBoolean=Wg,xe.isBuffer=gp,xe.isDate=WP,xe.isElement=XP,xe.isEmpty=hE,xe.isEqual=KP,xe.isEqualWith=L2,xe.isError=gh,xe.isFinite=Q4,xe.isFunction=yp,xe.isInteger=Xg,xe.isLength=Kg,xe.isMap=z4,xe.isMatch=vE,xe.isMatchWith=mE,xe.isNaN=yh,xe.isNative=ZP,xe.isNil=qP,xe.isNull=JP,xe.isNumber=dm,xe.isObject=tl,xe.isObjectLike=gl,xe.isPlainObject=T1,xe.isRegExp=$2,xe.isSafeInteger=eM,xe.isSet=U4,xe.isString=F2,xe.isSymbol=_a,xe.isTypedArray=wh,xe.isUndefined=V2,xe.isWeakMap=Zg,xe.isWeakSet=gE,xe.join=pf,xe.kebabCase=pM,xe.last=Bu,xe.lastIndexOf=y1,xe.lowerCase=J4,xe.lowerFirst=q4,xe.lt=yE,xe.lte=G4,xe.max=JM,xe.maxBy=qM,xe.mean=eD,xe.meanBy=tD,xe.min=nD,xe.minBy=rD,xe.stubArray=fw,xe.stubFalse=dw,xe.stubObject=zM,xe.stubString=UM,xe.stubTrue=GM,xe.multiply=aD,xe.nth=tm,xe.noConflict=$M,xe.noop=uw,xe.now=He,xe.pad=hM,xe.padEnd=vM,xe.padStart=RZ,xe.parseInt=mM,xe.random=AM,xe.reduce=N2,xe.reduceRight=fm,xe.repeat=gM,xe.replace=yM,xe.result=X4,xe.round=iD,xe.runInContext=Ye,xe.sample=m,xe.size=j,xe.snakeCase=wM,xe.some=ne,xe.sortedIndex=Fg,xe.sortedIndexBy=Vg,xe.sortedIndexOf=Yd,xe.sortedLastIndex=hh,xe.sortedLastIndexBy=Og,xe.sortedLastIndexOf=Wd,xe.startCase=bM,xe.startsWith=ew,xe.subtract=oD,xe.sum=lD,xe.sumBy=mm,xe.template=EM,xe.times=IE,xe.toFinite=h0,xe.toInteger=Fr,xe.toLength=_1,xe.toLower=xM,xe.toNumber=Xd,xe.toSafeInteger=tM,xe.toString=bi,xe.toUpper=tw,xe.trim=SM,xe.trimEnd=nw,xe.trimStart=ME,xe.truncate=BM,xe.unescape=kM,xe.uniqueId=YM,xe.upperCase=TM,xe.upperFirst=rw,xe.each=S1,xe.eachRight=mh,xe.first=c0,sw(xe,function(){var w={};return ka(xe,function(B,F){ia.call(xe.prototype,F)||(w[F]=B)}),w}(),{chain:!1}),xe.VERSION=r,gr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){xe[w].placeholder=xe}),gr(["drop","take"],function(w,B){cr.prototype[w]=function(F){F=F===n?1:ai(Fr(F),0);var re=this.__filtered__&&!B?new cr(this):this.clone();return re.__filtered__?re.__takeCount__=Ki(F,re.__takeCount__):re.__views__.push({size:Ki(F,ue),type:w+(re.__dir__<0?"Right":"")}),re},cr.prototype[w+"Right"]=function(F){return this.reverse()[w](F).reverse()}}),gr(["filter","map","takeWhile"],function(w,B){var F=B+1,re=F==Y||F==oe;cr.prototype[w]=function(ve){var Te=this.clone();return Te.__iteratees__.push({iteratee:Kn(ve,3),type:F}),Te.__filtered__=Te.__filtered__||re,Te}}),gr(["head","last"],function(w,B){var F="take"+(B?"Right":"");cr.prototype[w]=function(){return this[F](1).value()[0]}}),gr(["initial","tail"],function(w,B){var F="drop"+(B?"":"Right");cr.prototype[w]=function(){return this.__filtered__?new cr(this):this[F](1)}}),cr.prototype.compact=function(){return this.filter(gf)},cr.prototype.find=function(w){return this.filter(w).head()},cr.prototype.findLast=function(w){return this.reverse().find(w)},cr.prototype.invokeMap=Er(function(w,B){return typeof w=="function"?new cr(this):this.map(function(F){return Al(F,w,B)})}),cr.prototype.reject=function(w){return this.filter(Qt(Kn(w)))},cr.prototype.slice=function(w,B){w=Fr(w);var F=this;return F.__filtered__&&(w>0||B<0)?new cr(F):(w<0?F=F.takeRight(-w):w&&(F=F.drop(w)),B!==n&&(B=Fr(B),F=B<0?F.dropRight(-B):F.take(B-w)),F)},cr.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},cr.prototype.toArray=function(){return this.take(ue)},ka(cr.prototype,function(w,B){var F=/^(?:filter|find|map|reject)|While$/.test(B),re=/^(?:head|last)$/.test(B),ve=xe[re?"take"+(B=="last"?"Right":""):B],Te=re||/^find/.test(B);ve&&(xe.prototype[B]=function(){var $e=this.__wrapped__,Oe=re?[1]:arguments,Ze=$e instanceof cr,kt=Oe[0],St=Ze||zr($e),Ht=function(ma){var Va=ve.apply(xe,sl([ma],Oe));return re&&Kt?Va[0]:Va};St&&F&&typeof kt=="function"&&kt.length!=1&&(Ze=St=!1);var Kt=this.__chain__,xn=!!this.__actions__.length,rr=Te&&!Kt,Wr=Ze&&!xn;if(!Te&&St){$e=Wr?$e:new cr(this);var pr=w.apply($e,Oe);return pr.__actions__.push({func:cd,args:[Ht],thisArg:n}),new fo(pr,Kt)}return rr&&Wr?w.apply(this,Oe):(pr=this.thru(Ht),rr?re?pr.value()[0]:pr.value():pr)})}),gr(["pop","push","shift","sort","splice","unshift"],function(w){var B=os[w],F=/^(?:push|sort|unshift)$/.test(w)?"tap":"thru",re=/^(?:pop|shift)$/.test(w);xe.prototype[w]=function(){var ve=arguments;if(re&&!this.__chain__){var Te=this.value();return B.apply(zr(Te)?Te:[],ve)}return this[F](function($e){return B.apply(zr($e)?$e:[],ve)})}}),ka(cr.prototype,function(w,B){var F=xe[B];if(F){var re=F.name+"";ia.call(Yf,re)||(Yf[re]=[]),Yf[re].push({name:B,func:F})}}),Yf[Ke(n,k).name]=[{name:"wrapper",func:n}],cr.prototype.clone=Sn,cr.prototype.reverse=js,cr.prototype.value=Ka,xe.prototype.at=om,xe.prototype.chain=A0,xe.prototype.commit=lm,xe.prototype.next=sm,xe.prototype.plant=E1,xe.prototype.reverse=zg,xe.prototype.toJSON=xe.prototype.valueOf=xe.prototype.value=H2,xe.prototype.first=xe.prototype.head,Nl&&(xe.prototype[Nl]=b1),xe},hc=np();Re?((Re.exports=hc)._=hc,he._=hc):pa._=hc}).call(g7)}(sC,sC.exports);var tne=sC.exports;const ir=U1(tne);var nne="pl7.app/axisNature",ZI="pl7.app/label",rne="pl7.app/isLabel",ane="pl7.app/columnAsAxis/name",ine="pl7.app/columnAsAxis/domain",N7="pl7.app/isSubset",L7="pl7.app/isDiscreteFilter",one="pl7.app/discreteValues",lne="pl7.app/graph/axis/highCardinality",sne="pl7.app/graph/isVirtual",JI="pl7.app/isLinkerColumn",Nr=class Jw{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return DA(this)}static fromAxisSpec(t){return new Jw({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>Jw.fromAxisSpec(n))}copy(){return new Jw({type:this.type,name:this.name,domain:this.domain})}toPFrameId(){return{type:this.type,name:this.name,domain:this.domain}}static fromPojo(t){return new Jw(t)}},T3=class Vee{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return DA(this)}static fromPojo(t){return new Vee(t)}};function Tn(e){return e!==null&&e.kind==="column"}function uC(e){return e!==null&&e.kind==="axis"}function en(e){const t=JSON.parse(e);if(t.kind==="column")return T3.fromPojo(t);if(t.kind==="axis")return Nr.fromPojo(t);throw Error("wrong column or axis object")}async function une(e,t,n){if(n){const r=await e.pFrameProvider.getTableOuterJoin([t,n],[]),a=r.columnsData[t.toCanonicalString()],i=r.columnsData[n.toCanonicalString()];return a.reduce((l,s,c)=>(l[String(s)]=String(i[c]),l),{})}return null}async function cne(e,t,n,r){if(r){const{data:a,axesData:i}=await e.pFrameProvider.getSingleColumnData(r);return i[t.toCanonicalString()].reduce((s,c,f)=>(s[String(c)]=String(a[f]),s),{})}return null}async function fne(e,t,n,r,a,i,l=!0){var s,c,f,A;const h=en(t);if(Tn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);if(!v)return;const g=v.axesSpec.map(k=>Nr.fromAxisSpec(k).toCanonicalString()),b=[],C={};l&&g.forEach((k,_)=>{!a.has(k)&&!i.has(k)&&(b.push(k),C[k]=_)});const x={kind:"column",name:v.name,label:n??await ta(e,t,[]),type:v.valueType,spec:v,annotations:v.annotations,isSubsetFilter:((s=v.annotations)==null?void 0:s[N7])==="true",isDiscreteFilter:v.valueType==="String"||((c=v.annotations)==null?void 0:c[L7])==="true",axesToBeFixed:b,axesToBeFixedIndexes:C};r.set(h.toCanonicalString(),x);for(const k of v.axesSpec){const M=Nr.fromAxisSpec(k).toCanonicalString();if(r.has(M))continue;const V=tR(k),I={kind:"axis",name:k.name,label:await ta(e,M,[t]),type:k.type,mustBeConsumed:V,dividable:!1,spec:k,annotations:k.annotations,isSubsetFilter:((f=k.annotations)==null?void 0:f[N7])==="true",isDiscreteFilter:k.type==="String"||((A=k.annotations)==null?void 0:A[L7])==="true",parentSources:[t]};r.set(M,I)}}}function qI(e){const t=en(e),{name:n,type:r}=t;return Tn(t)?{kind:"column",name:"",label:" ",type:t.type,spec:{axesSpec:[],kind:"PColumn",valueType:t.type,name:n},annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:t.type==="String",axesToBeFixed:[],axesToBeFixedIndexes:{}}:{kind:"axis",name:"",label:" ",type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1,annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:r==="String",parentSources:[]}}function cC(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function dne(e){const{selectedSource:t,type:n,selectedFilterRange:r,selectedFilterValue:a}=e,i=en(t);if(!i)throw Error("Empty source selected");if(n==="range"){const l=[];return(r==null?void 0:r.max)!==void 0&&l.push({type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"LessOrEqual",reference:r.max}}),(r==null?void 0:r.min)!==void 0&&l.push({type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}),l}else if(n==="subset")return[{type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}];return typeof a>"u"?[]:[{type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function K1(e){const t=[];for(const n of e)t.push(...dne(n));return t}function qx(e){var t,n,r,a;if("kind"in e&&e.kind==="PColumn"){const s=(n=e.name)!=null?n:(t=e.annotations)==null?void 0:t[ane],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[ine];return DA({name:s,domain:c})}const i=e.name,l=e.domain;return DA({name:i,domain:l})}async function eR(e,t,n){var r;for(const a of n){const i=en(a);if(Tn(i)){const l=await e.pFrameProvider.getColumnSpecById(i),s=((r=l==null?void 0:l.axesSpec)!=null?r:[]).find(c=>Nr.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}var Ane="pl7.app/label";async function Ma(e,t,n){const r=en(t);async function a(f){const A=await eR(e,f,n);return A?qx(A):null}async function i(f){const A=await e.pFrameProvider.getColumnSpecById(f);return A?qx(A):null}const l=await e.pFrameProvider.getColumns([],!1,void 0,[Ane]),s=Tn(r)?await i(r):await a(r),c=await Promise.all(l.map(async f=>{const A=await e.pFrameProvider.getColumnSpecById(f);return A&&A.axesSpec.length===1&&qx(A.axesSpec[0])===s})).then(f=>f.findIndex(A=>A===!0));if(c!==-1)return l[c]}async function ta(e,t,n){var r,a;const i=en(t),l=await Ma(e,t,n);let s;if(Tn(i)?s=await e.pFrameProvider.getColumnSpecById(l??i):s=l?await e.pFrameProvider.getColumnSpecById(l):await eR(e,i,n),!s)return"";const c=(a=(r=s.annotations)==null?void 0:r[ZI])!=null?a:s.name;return e.labelsModifier(s.name,c)}function tR(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[nne])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function Z1(e){var t,n;return((t=e.annotations)==null?void 0:t[N7])==="true"||((n=e.annotations)==null?void 0:n[L7])==="true",!0}function pne(e){var t;return!e.name.includes("metadata")&&((t=e.annotations)==null?void 0:t[sne])!=="true"}async function J1(e){var t;const n=await e.pFrameProvider.getColumns([],!1,void 0,void 0,{[JI]:"true"}),r={};for(const a of n){const i=await e.pFrameProvider.getColumnSpecById(a),l=(t=i==null?void 0:i.axesSpec)!=null?t:[];if(i&&l.length){const[s,c]=l,f=Nr.fromAxisSpec(s).toCanonicalString(),A=Nr.fromAxisSpec(c).toCanonicalString();r[f]||(r[f]={}),r[A]||(r[A]={}),r[f][A]={id:a,spec:i},r[A][f]={id:a,spec:i}}}return r}async function Rm(e,t){const n=new Set;for(const r of t){const a=en(r);if(Tn(a)){const i=await e.pFrameProvider.getColumnSpecById(a);if(!i)continue;i.axesSpec.forEach(l=>{n.add(Nr.fromAxisSpec(l).toCanonicalString())})}}return n}function hne(e,t,n){const r={},a=new Set([t]);let i=[t];for(;i.length;){const l=new Set;for(const s of i)if(e[s]){const c=Object.keys(e[s]);for(const f of c)if(r[f]=s,f===n){const A=[];let h=n;for(;r[h]!==t;)A.push(h),h=r[h];return A.push(h),A.map(v=>e[v][r[v]].id)}else a.has(f)||(l.add(f),a.add(f))}i=[...l]}return null}function vne(e,t,n){const r=[...t].map(i=>hne(e,i,n)).filter(i=>i!==null);if(r.length===0)return[];let a=r[0];for(const i of r)i.length<a.length&&(a=i);return a}async function Qc(e,t,n,r,a){const i=en(r);if(!Tn(i))return[];const l=await e.pFrameProvider.getColumnSpecById(i);if(!l)return[];const s=l.axesSpec.map(f=>Nr.fromAxisSpec(f).toCanonicalString()).filter(f=>!n.has(f)&&!(a!=null&&a.some(A=>A.axisSource===f))),c=new Set;return s.forEach(f=>{vne(t,n,f).forEach(h=>{c.add(h.toCanonicalString())})}),[...c].map(f=>en(f))}var Nm=class{constructor(e,t){this.simpleComponentControllers=e,this.filterComponentControllers=t,this.ignoredOptionIdNames=[],this.dataInputs=[],this.dontAllowUnfilteredHighCardinality=!1}get requiredComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isRequired&&e.push(t);return e}get dimensionsConsumerComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isDimensionsConsumer&&e.push(t);for(const t of Object.keys(this.filterComponentControllers))this.filterComponentControllers[t].isDimensionsConsumer&&e.push(t);return e}addSelected(e,t,n){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].addSelected(t,n);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].addSelected(t,n);throw Error(`Unknown input name: ${String(e)}`)}deleteSelected(e,t,n,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].deleteSelected(n,r.selectedSource);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].deleteSelected(n,r.selectedSource);throw Error(`Unknown input name: ${String(e)}`)}changeSelected(e,t,n,r){const a=n.components[e].selectorStates,i=a.filter(c=>!r.find(f=>f.selectedSource===c.selectedSource)),l=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let s=cC(n);return i.forEach(c=>{s=this.deleteSelected(e,t,s,c)}),l.forEach(c=>{s=this.addSelected(e,s,c)}),n.components[e].selectorStates=r.map(c=>n.components[e].selectorStates.find(f=>f.selectedSource===c.selectedSource)).filter(Boolean),s}switchDividableAxis(e,t){return cC(e)}async getMustBeConsumedAxes(e,t){return Promise.resolve(new Set)}createEmptyComponentsGuide(e){return Object.fromEntries(Object.entries(e.components).map(([t,n])=>[t,{options:[],optionsInfo:new Map,stateConsistency:{},required:!1,multipleSelectors:!1}]))}async getSelectedSourcesInfo(e,t,n,r){var a;const i=new Map,l=new Set;for(const f of this.dataInputs)for(const A of t.components[f].selectorStates){const h=en(A.selectedSource);if(Tn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);v&&v.axesSpec.forEach(g=>l.add(Nr.fromAxisSpec(g).toCanonicalString()))}}const s=new Set;let c=[...l];for(;c.length;){const f=[];for(const A of c)if(r[A]){const h=Object.keys(r[A]);for(const v of h)!s.has(v)&&!l.has(v)&&(f.push(v),s.add(v))}c=f}for(const[f,{selectorStates:A}]of Object.entries(t.components)){const v=((a=this.simpleComponentControllers[f])!=null?a:this.filterComponentControllers[f]).settings.columnsWithExtraAxesAllowed;for(const{selectedSource:g}of A)await fne(e,g,n[g],i,l,s,v)}return i}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>qI(t),freeOptionsSet:new Set,axesToBeFixedSet:new Set,readyData:!1,ready:!1,consistent:!0}}getConsumedOptionsSet(e){const t=new Set;for(const n of this.dimensionsConsumerComponents)for(const{selectedSource:r}of e.components[n].selectorStates)t.add(r);return t}async getLabelsMap(e,t){const n=await e.pFrameProvider.getColumnsFull(this.dataInputs.reduce((r,a)=>{const l=t.components[a].selectorStates.map(s=>en(s.selectedSource));return r.concat(l)},[]),!1);return ene(n,r=>r.spec).reduce((r,a)=>{const i=new T3({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[],r=pne){var a,i;const l=this.createEmptyComponentsGuide(t),s=this.getConsumedOptionsSet(t),c=new Set(this.ignoredOptionIdNames),f=new Set(n),A=await J1(e),h=await this.getLabelsMap(e,t),v=await this.getSelectedSourcesInfo(e,t,h,A),g=new Map,b={...this.simpleComponentControllers,...this.filterComponentControllers},C=new Set;for(const[I,$]of Object.entries(b)){const Q=await $.getOptions(e,t,h,s,A,r,c,f);this.dataInputs.includes(I)||Q.options.forEach(q=>{C.add(q.value)});for(const[q,te]of Q.optionsInfo)g.set(q,te);l[I]=Q}const x=I=>{const $=g.get(I);$&&$.kind==="axis"&&($.mustBeConsumed=!0);const Q=v.get(I);Q&&Q.kind==="axis"&&(Q.mustBeConsumed=!0)},k=await this.getMustBeConsumedAxes(e,t);for(const I of k)x(I);if(this.dontAllowUnfilteredHighCardinality){const I=Q=>{var q;return((q=Q==null?void 0:Q.annotations)==null?void 0:q[lne])==="true"},$=(i=(a=t.components.filters)==null?void 0:a.selectorStates.reduce((Q,q)=>{const te=v.get(q.selectedSource);return(te==null?void 0:te.kind)==="column"&&te.spec.axesSpec.filter(I).forEach(z=>Q.add(Nr.fromAxisSpec(z).toCanonicalString())),(te==null?void 0:te.kind)==="axis"&&I(te.spec)&&Q.add(Nr.fromAxisSpec(te.spec).toCanonicalString()),Q},new Set))!=null?i:new Set;this.dataInputs.forEach(Q=>{for(const{selectedSource:q}of t.components[Q].selectorStates){const te=v.get(q);if((te==null?void 0:te.kind)==="column"&&te.spec.axesSpec.filter(I).forEach(z=>{const U=Nr.fromAxisSpec(z).toCanonicalString();!C.has(U)&&!$.has(U)&&C.add(U),$.has(U)||x(U)}),(te==null?void 0:te.kind)==="axis"&&I(te.spec)){const ee=Nr.fromAxisSpec(te.spec).toCanonicalString();C.has(ee)||C.add(ee),$.has(ee)||x(ee)}}})}const _=new Set;for(const{selectorStates:I}of Object.values(t.components))for(const{selectedSource:$}of I){const Q=v.get($);Q&&Q.kind==="column"&&Q.axesToBeFixed.forEach(q=>{_.add(q)})}const M=await this.isConsistent(e,t,A),V=I=>{var $,Q,q;const te=($=en(I).toCanonicalString())!=null?$:I;return(q=(Q=g.get(te))!=null?Q:v.get(te))!=null?q:qI(I)};return{components:l,getSourceInfo:V,freeOptionsSet:C,axesToBeFixedSet:_,readyData:this.readyDataInputs(t),ready:this.readyForPlotBuilding(e,t,M,C,V),consistent:M}}async getUniqueSourceValuesWithLabels(e,t,n){var r;const a=t.getSourceInfo(n),i=(r=a.annotations)==null?void 0:r[one],l=i?JSON.parse(i).map(s=>String(s)):null;if(a.kind==="axis"){const s=en(n),c=a.parentSources.map(en),f=await Ma(e,n,a.parentSources),A=l??await e.pFrameProvider.getAxisUniqueValues(s,c),h=await cne(e,s,c[0],f);return A.map(v=>{var g;return{value:v,label:(g=h==null?void 0:h[v])!=null?g:v}})}if(a.kind==="column"){const s=en(n),c=await Ma(e,n,[]),f=await e.pFrameProvider.getColumnUniqueValues(s),A=await une(e,s,c);return f.map(h=>{var v;return{value:h,label:(v=A==null?void 0:A[h])!=null?v:h}})}return[]}async checkStateConsistency(e,t,n){const r=new Map;for(const a of Object.keys(this.simpleComponentControllers))r.set(a,await this.simpleComponentControllers[a].checkStateConsistency(e,t,n));for(const a of Object.keys(this.filterComponentControllers))r.set(a,await this.filterComponentControllers[a].checkStateConsistency(e,t,n));return r}async isConsistent(e,t,n){const r=await this.checkStateConsistency(e,t,n);for(const a of r.values())if(Object.values(a).some(i=>!i))return!1;return!0}readyDataInputs(e){return this.dataInputs.every(t=>e.components[t].selectorStates.length>0)}readyForPlotBuilding(e,t,n,r,a){if(!n||!this.readyDataInputs(t))return!1;let i=!1;for(const s of r){const c=a(s);if(c&&c.kind==="axis"&&c.mustBeConsumed){i=!0;break}}let l=!1;for(const{selectorStates:s}of Object.values(t.components)){for(const{selectedSource:c,fixedAxes:f}of s){const A=a(c);if(A&&A.kind==="column"&&A.axesToBeFixed.some(h=>{var v;return((v=(f??[]).find(g=>g.axisSource===h))==null?void 0:v.axisValue)===void 0})){l=!0;break}}if(l)break}return this.requiredComponents.every(s=>t.components[s].selectorStates.length>0)&&!i&&!l}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},nR=class Oee{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:l=[],annotations:s={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...Oee.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...l],this.strictlyDependsOnParents=a??!0,this.annotations={...s},c&&(this.checkSourceBySpec=c)}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}addSelected(t,n){const r=cC(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=cC(t);return r.components[this.componentName].selectorStates=r.components[this.componentName].selectorStates.filter(a=>a.selectedSource!==n),r}async checkStateConsistency(t,n,r){const a=n.components[this.componentName],{allowedAxes:i}=await this.getAllowedAxes(t,n,r);function l(c){const f=Nr.fromAxisSpec(c);return i.has(f.toCanonicalString())}const s=await Promise.all(a.selectorStates.map(async({selectedSource:c})=>{const f=en(c);if(Tn(f)){const A=await t.pFrameProvider.getColumnSpecById(f);return A?this.parentComponents.length===0?!0:this.strictlyDependsOnParents&&!this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?A.axesSpec.every(v=>l(v)):this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?A.axesSpec.some(v=>l(v)):i.size===0||A.axesSpec.some(v=>l(v)):!1}return i.has(c)}));return a.selectorStates.reduce((c,f,A)=>(c[f.selectedSource]=s[A],c),{})}async getProducingAxes(t,n){const i=n.components[this.componentName].selectorStates.map(c=>en(c.selectedSource)).filter(c=>Tn(c)),l=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{l.add(Nr.fromAxisSpec(f).toCanonicalString())})}),l}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const l=n.components[i].selectorStates.map(s=>en(s.selectedSource));return a.push(...l),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const l of a)if(Tn(l)){const s=await t.pFrameProvider.getColumnSpecById(l);(r=s==null?void 0:s.axesSpec)==null||r.forEach(c=>{const f=Nr.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n,r){var a,i,l,s,c;const f=this.getParentSelectedSources(t,n),A=new Set,h=new Set,v=new Set,g=new Map;for(const C of f)if(Tn(C)){const x=await t.pFrameProvider.getColumnSpecById(C);for(const k of(a=x==null?void 0:x.axesSpec)!=null?a:[]){const M=Nr.fromAxisSpec(k).toCanonicalString();if(A.has(M))continue;A.add(M),h.add(M);const V=tR(k);g.set(M,{kind:"axis",name:k.name,label:await ta(t,M,[C.toCanonicalString()]),type:k.type,mustBeConsumed:V,dividable:!1,spec:k,annotations:k.annotations,isSubsetFilter:((i=k.annotations)==null?void 0:i[N7])==="true",isDiscreteFilter:k.type==="String"||((l=k.annotations)==null?void 0:l[L7])==="true",parentSources:[C.toCanonicalString()]})}}let b=[...A];for(;b.length;){const C=[];for(const x of b)if(r[x]){const k=Object.keys(r[x]);for(const _ of k)if(!A.has(_)){C.push(_),A.add(_),v.add(_);const{spec:M,id:V}=r[x][_];for(const I of M.axesSpec){const $=Nr.fromAxisSpec(I).toCanonicalString();g.set($,{kind:"axis",name:I.name,label:(c=(s=I.annotations)==null?void 0:s[ZI])!=null?c:"",type:I.type,mustBeConsumed:!1,dividable:!1,spec:I,annotations:I.annotations,isSubsetFilter:!1,isDiscreteFilter:!1,parentSources:[V.toCanonicalString()]})}}}b=C}return{allowedAxes:A,parentAxes:h,linkerAxes:v,optionsInfo:g}}async getOptions(t,n,r,a,i,l,s=new Set,c=new Set){var f,A,h,v,g,b,C,x,k;const _=this.settings.multipleSelectors,M=this.settings.required,V=await this.checkStateConsistency(t,n,i);if(this.dependsOn.length&&this.dependsOn.some(W=>n.components[W].selectorStates.length===0))return{multipleSelectors:_,required:M,stateConsistency:V,options:[],optionsInfo:new Map};if(this.strictlyDependsOnParents&&!this.settings.isDataComponent&&this.parentComponents.some(W=>n.components[W].selectorStates.length===0))return{multipleSelectors:_,required:M,stateConsistency:V,options:[],optionsInfo:new Map};const I=this.getParentSelectedSources(t,n),$=(await t.pFrameProvider.getColumns([],!1,this.allowedTypes,void 0,this.annotations)).filter(W=>!a.has(W.toCanonicalString())),{allowedAxes:Q,parentAxes:q,linkerAxes:te,optionsInfo:ee}=await this.getAllowedAxes(t,n,i),z=n.components[this.componentName],U=[];if(this.settings.axesAllowed)for(const W of q){const Y=en(W),X=ee.get(Y.toCanonicalString()),oe=this.allowedTypes.includes(X.spec.type),de=Object.entries(this.annotations).every(([Ne,De])=>{var Le;return((Le=X.spec.annotations)==null?void 0:Le[Ne])===De}),ae=this.checkSourceBySpec?this.checkSourceBySpec(X.spec,n):!0,ye=!this.settings.homogeneous||!(X!=null&&X.mustBeConsumed),Ce=!a.has(W),ue=s.has(Y.name)||c.has(Y.toCanonicalString()),me=z.selectorStates.some(Ne=>Ne.selectedSource===W);oe&&de&&ae&&ye&&Ce&&!ue&&!me&&U.push({value:W})}if(this.settings.columnsAllowed){const W=!this.settings.columnsWithExtraAxesAllowed&&this.strictlyDependsOnParents;for(const Y of $){const X=Y.toCanonicalString(),oe=en(X),de=await t.pFrameProvider.getColumnSpecById(oe),ae=((f=de==null?void 0:de.annotations)==null?void 0:f[rne])==="true",ye=((A=de==null?void 0:de.annotations)==null?void 0:A[JI])==="true";if(ae||ye||this.checkSourceBySpec&&de&&!this.checkSourceBySpec(de,n)||this.settings.isDataComponent&&de&&!l(de)||W&&((h=de==null?void 0:de.axesSpec)!=null&&h.some(Le=>!Q.has(Nr.fromAxisSpec(Le).toCanonicalString())))||I.length&&!((v=de==null?void 0:de.axesSpec)!=null&&v.some(Le=>Q.has(Nr.fromAxisSpec(Le).toCanonicalString()))))continue;const Ce=(b=(g=de==null?void 0:de.axesSpec)==null?void 0:g.map(Le=>Nr.fromAxisSpec(Le).toCanonicalString()))!=null?b:[],ue=[],me={};if(this.settings.columnsWithExtraAxesAllowed&&Ce.forEach((Le,Ve)=>{Q.has(Le)||(ue.push(Le),me[Le]=Ve)}),de){const Le=(C=r[X])!=null?C:await ta(t,Y.toCanonicalString(),[]),Ve={kind:"column",name:de.name,label:Le,type:de.valueType,spec:de,annotations:de.annotations,isSubsetFilter:((x=de.annotations)==null?void 0:x[N7])==="true",isDiscreteFilter:de.valueType==="String"||((k=de.annotations)==null?void 0:k[L7])==="true",axesToBeFixed:ue,axesToBeFixedIndexes:me};ee.set(oe.toCanonicalString(),Ve)}const Ne=s.has(oe.name)||c.has(oe.toCanonicalString()),De=n.components[this.componentName].selectorStates.some(Le=>Le.selectedSource===X);!Ne&&!De&&U.push({value:X})}}return{multipleSelectors:_,required:M,stateConsistency:V,options:U,optionsInfo:ee}}};nR.DefaultSettings={isDataComponent:!1,multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,columnsWithExtraAxesAllowed:!0,dimensionConsumer:!1};var _n=nR,mne={type:"bubble",components:{valueSize:{type:"simple",selectorStates:[]},valueColor:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function fC(e,t){if(!t.length)return[];const n=t.map(i=>en(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const l=n.map(s=>{const c=s.toCanonicalString();return Tn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(l)}return a}var gne=class extends Nm{constructor(){super({valueSize:new _n({componentName:"valueSize",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueColor"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),valueColor:new _n({componentName:"valueColor",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueSize"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new _n({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),y:new _n({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["valueSize","valueColor"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.valueColor.selectorStates.length)return new Set;const n=t.components.valueColor.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(en(n));return r?new Set(r.axesSpec.map(a=>Nr.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("Value column is not valid");const s=en(i),c=en(l);if(!s||!c||!Tn(s)&&!Tn(c))throw Error("Value column is not valid");const f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=await J1(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=K1(h),g=h.map(W=>en(W.selectedSource)).filter(Tn),b=[s,c].filter(Tn),C=b.map(W=>W.toCanonicalString()),x=await Rm(e,C),k=[t.components.facetBy,t.components.x,t.components.y,t.components.tooltipContent],_=[],M=b.map(()=>[]),V=[],I=[];for(const{selectedSource:W,fixedAxes:Y}of h)I.push(...await Qc(e,A,x,W,Y)),M.push((Y??[]).map(({axisIdx:X,axisValue:oe})=>({idx:X,value:oe})));for(const W of k)for(const{selectedSource:Y,fixedAxes:X}of W.selectorStates){_.push(en(Y)),V.push((X??[]).map(({axisIdx:de,axisValue:ae})=>({idx:de,value:ae}))),I.push(...await Qc(e,A,x,Y,X));const oe=await Ma(e,Y,C);oe&&_.push(oe)}const $=await e.pFrameProvider.getTableOuterJoin([...b,...I,...g],_,v,!0,M,V);_.forEach(W=>{const Y=W.toCanonicalString();f.values[Y]=Tn(W)?$.columnsData[Y]:$.axesData[Y]}),f.values[i]=Tn(s)?$.columnsData[i]:$.axesData[i],f.values[l]=Tn(c)?$.columnsData[l]:$.axesData[l];const Q=t.components.x.selectorStates.map(W=>W.selectedSource),q=Q.join(", "),te=await Promise.all(Q.map(async W=>{var Y,X;return(X=(Y=await Ma(e,W,C))==null?void 0:Y.toCanonicalString())!=null?X:W}));f.values[q]=fC($,Q),f.values.xLabels=fC($,te);const ee=t.components.y.selectorStates.map(W=>W.selectedSource),z=ee.join(", "),U=await Promise.all(ee.map(async W=>{var Y,X;return(X=(Y=await Ma(e,W,C))==null?void 0:Y.toCanonicalString())!=null?X:W}));return f.values[z]=fC($,ee),f.values.yLabels=fC($,U),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,i=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!a||!i)throw Error("Value column is not valid");const l=en(a),s=en(i);if(!Tn(l)&&!Tn(s))throw Error("Value column is not valid");const c=[l,s].filter(Tn).map(M=>M.toCanonicalString()),f={type:"column",value:a,label:await ta(e,a,[])},A={type:"column",value:i,label:await ta(e,i,[])},v=t.components.x.selectorStates.map(({selectedSource:M})=>M).join(", "),b=t.components.y.selectorStates.map(({selectedSource:M})=>M).join(", "),C=await Promise.all(t.components.facetBy.selectorStates.map(async M=>{var V,I;return{type:"column",value:(I=(V=await Ma(e,M.selectedSource,c))==null?void 0:V.toCanonicalString())!=null?I:M.selectedSource}})),x=(await Promise.all(t.components.x.selectorStates.map(M=>ta(e,M.selectedSource,c)))).join(", "),k=(await Promise.all(t.components.y.selectorStates.map(M=>ta(e,M.selectedSource,c)))).join(", "),_=await Promise.all(t.components.tooltipContent.selectorStates.map(async M=>{var V,I;const $=M.selectedSource;return{type:"column",label:await ta(e,$,c)||$,value:$,valueLabels:(I=(V=await Ma(e,$,c))==null?void 0:V.toCanonicalString())!=null?I:$}}));return{type:"bubble",valueColor:f,valueSize:A,xColumn:{type:"column",value:v,label:x,valueLabels:"xLabels"},yColumn:{type:"column",value:b,label:k,valueLabels:"yLabels"},facetBy:C,tooltips:{show:!0,content:_}}}},yne={type:"histogram",components:{value:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]}},dividedAxes:{}},wne=class extends Nm{constructor(){super({value:new _n({componentName:"value",allowedTypes:["Int","Long","Double","Float"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=en(a);if(!Tn(i))throw Error("Value column is not valid");const l={type:"columns",id:(r=DA(t.components))!=null?r:"",values:{}},s=await J1(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=K1(c),A=c.map(M=>en(M.selectedSource)).filter(Tn),h=[a],v=await Rm(e,h),g=[t.components.facetBy],b=[],C=[[]],x=[],k=[];for(const{selectedSource:M,fixedAxes:V}of c)k.push(...await Qc(e,s,v,M,V)),k.push(...await Qc(e,s,v,M,V)),C.push((V??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})));for(const M of g)for(const{selectedSource:V,fixedAxes:I}of M.selectorStates){b.push(en(V)),x.push((I??[]).map(({axisIdx:Q,axisValue:q})=>({idx:Q,value:q}))),k.push(...await Qc(e,s,v,V,I));const $=await Ma(e,V,h);$&&b.push($)}const _=await e.pFrameProvider.getTableOuterJoin([i,...k,...A],b,f,!0,C,x);return b.forEach(M=>{const V=M.toCanonicalString();l.values[V]=Tn(M)?_.columnsData[V]:_.axesData[V]}),l.values[i.toCanonicalString()]=_.columnsData[i.toCanonicalString()],l}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=en(r);if(!Tn(a))throw Error("Value column is not valid");const i=[r],l={type:"column",value:r,label:await ta(e,r,[])},s=await Promise.all(t.components.facetBy.selectorStates.map(async c=>{var f,A;return{type:"column",value:(A=(f=await Ma(e,c.selectedSource,i))==null?void 0:f.toCanonicalString())!=null?A:c.selectedSource}}));return{type:"histogram",valueColumn:l,facetBy:s}}},Cne={type:"discrete",components:{y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},primaryGrouping:{type:"simple",selectorStates:[]},secondaryGrouping:{type:"simple",selectorStates:[]}},dividedAxes:{}},bne=class extends Nm{constructor(){super({y:new _n({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{isDataComponent:!0}}),primaryGrouping:new _n({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new _n({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["y"],this.dontAllowUnfilteredHighCardinality=!0}async createDataByColumns(e,t){var n;const r=t.components.y.selectorStates[0].selectedSource,a=en(r);if(!r||!Tn(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=DA(t.components))!=null?n:"",values:{}},l=await J1(e),s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=K1(s),f=s.map(_=>en(_.selectedSource)).filter(Tn),A=[r],h=await Rm(e,A),v=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],g=[],b=[[]],C=[],x=[];for(const{selectedSource:_,fixedAxes:M}of s)x.push(...await Qc(e,l,h,_,M)),b.push((M??[]).map(({axisIdx:V,axisValue:I})=>({idx:V,value:I})));for(const _ of v)for(const{selectedSource:M,fixedAxes:V}of _.selectorStates){g.push(en(M)),C.push((V??[]).map(({axisIdx:$,axisValue:Q})=>({idx:$,value:Q}))),x.push(...await Qc(e,l,h,M,V));const I=await Ma(e,M,A);I&&g.push(I)}const k=await e.pFrameProvider.getTableOuterJoin([a,...x,...f],g,c,!0,b,C);return g.forEach(_=>{const M=_.toCanonicalString();i.values[M]=Tn(_)?k.columnsData[M]:k.axesData[M]}),i.values[a.toCanonicalString()]=k.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=en(a);if(!a||!Tn(i))throw Error("Y column is not valid");const l={type:"column",value:a,label:await ta(e,a,[])},s=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:h,label:await ta(e,h,s),valueLabels:(n=await Ma(e,h,s))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:h,label:await ta(e,h,s),valueLabels:(r=await Ma(e,h,s))==null?void 0:r.toCanonicalString()}}}const A=await Promise.all(t.components.facetBy.selectorStates.map(async h=>{var v,g;return{type:"column",value:(g=(v=await Ma(e,h.selectedSource,s))==null?void 0:v.toCanonicalString())!=null?g:h.selectedSource,label:await ta(e,h.selectedSource,s)}}));return{type:"discrete",y:l,primaryGrouping:c,secondaryGrouping:f,facetBy:A}}},Ene={type:"heatmap",components:{value:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},xGroupBy:{type:"simple",selectorStates:[]},yGroupBy:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},annotationsX:{type:"simple",selectorStates:[]},annotationsY:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function eS(e){return e?"kind"in e&&e.kind==="PColumn"?e.valueType==="String":e.type==="String":!0}function dC(e,t){if(!t.length)return[];const n=t.map(i=>en(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const l=n.map(s=>{const c=s.toCanonicalString();return Tn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(l)}return a}var xne=class extends Nm{constructor(){super({value:new _n({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new _n({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new _n({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!0},dependsOn:["x"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.x.selectorStates.map(r=>r.selectedSource),...t.components.xGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),y:new _n({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!0}}),yGroupBy:new _n({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.y.selectorStates.map(r=>r.selectedSource),...t.components.yGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotationsX:new _n({componentName:"annotationsX",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,multipleSelectors:!0},dependsOn:["x"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.x.selectorStates.map(r=>r.selectedSource),...t.components.xGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Nr.fromAxisSpec(e).toCanonicalString())}}),annotationsY:new _n({componentName:"annotationsY",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,multipleSelectors:!0},dependsOn:["y"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.y.selectorStates.map(r=>r.selectedSource),...t.components.yGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Nr.fromAxisSpec(e).toCanonicalString())}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.value.selectorStates.length)return new Set;const n=t.components.value.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(en(n));return r?new Set(r.axesSpec.map(a=>Nr.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=en(a);if(!Tn(i))throw Error("Value column is not valid");const l={type:"columns",id:(r=DA(t.components))!=null?r:"",values:{}},s=await J1(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=K1(c),A=c.map(z=>en(z.selectedSource)).filter(Tn),h=[a],v=await Rm(e,h),g=[t.components.facetBy,t.components.annotationsX,t.components.annotationsY,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy,t.components.tooltipContent],b=[],C=[[]],x=[],k=[];for(const{selectedSource:z,fixedAxes:U}of c)k.push(...await Qc(e,s,v,z,U)),C.push((U??[]).map(({axisIdx:W,axisValue:Y})=>({idx:W,value:Y})));for(const z of g)for(const{selectedSource:U,fixedAxes:W}of z.selectorStates){b.push(en(U)),x.push((W??[]).map(({axisIdx:X,axisValue:oe})=>({idx:X,value:oe}))),k.push(...await Qc(e,s,v,U,W));const Y=await Ma(e,U,h);Y&&b.push(Y)}const _=await e.pFrameProvider.getTableOuterJoin([i,...k,...A],b,f,!0,C,x);b.forEach(z=>{const U=z.toCanonicalString();l.values[U]=Tn(z)?_.columnsData[U]:_.axesData[U]}),l.values[i.toCanonicalString()]=_.columnsData[i.toCanonicalString()];const M=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(z=>z.selectedSource),V=M.join(", ");l.values[V]=dC(_,M);const I=t.components.x.selectorStates.map(z=>z.selectedSource),$=await Promise.all(I.map(async z=>{var U,W;return(W=(U=await Ma(e,z,h))==null?void 0:U.toCanonicalString())!=null?W:z}));l.values.xLabelsKey=dC(_,$);const Q=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(z=>z.selectedSource),q=Q.join(", ");l.values[q]=dC(_,Q);const te=t.components.y.selectorStates.map(z=>z.selectedSource),ee=await Promise.all(te.map(async z=>{var U,W;return(W=(U=await Ma(e,z,h))==null?void 0:U.toCanonicalString())!=null?W:z}));return l.values.yLabelsKey=dC(_,ee),l}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=en(r);if(!Tn(a))throw Error("Value column is not valid");const i=[r],l={type:"column",value:r,label:await ta(e,r,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:V})=>en(V)).map(V=>V.toCanonicalString()).join(", "),A=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:V})=>en(V)).map(V=>V.toCanonicalString()).join(", "),h=await Promise.all(t.components.facetBy.selectorStates.map(async V=>{var I,$;return{type:"column",value:($=(I=await Ma(e,V.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),v=await Promise.all(t.components.xGroupBy.selectorStates.map(async V=>{var I,$;return{type:"column",label:await ta(e,V.selectedSource,i),value:V.selectedSource,valueLabels:($=(I=await Ma(e,V.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),g=await Promise.all(t.components.yGroupBy.selectorStates.map(async V=>{var I,$;return{type:"column",label:await ta(e,V.selectedSource,i),value:V.selectedSource,valueLabels:($=(I=await Ma(e,V.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),b=await e.pFrameProvider.getColumnSpecById(a),C=await Promise.all(t.components.annotationsX.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource,q=en(Q),te=Tn(q)?await e.pFrameProvider.getColumnSpecById(q):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ee=>Nr.fromAxisSpec(ee).toCanonicalString()===Q))!=null?$:null;return{axis:"x",valueColumn:{type:"column",value:Q,label:await ta(e,Q,i)},type:eS(te)?"discrete":"continuous"}})),x=await Promise.all(t.components.annotationsY.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource,q=en(Q),te=Tn(q)?await e.pFrameProvider.getColumnSpecById(q):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ee=>Nr.fromAxisSpec(ee).toCanonicalString()===Q))!=null?$:null;return{axis:"y",valueColumn:{type:"column",value:Q,label:await ta(e,Q,i)},type:eS(te)?"discrete":"continuous"}})),k=(await Promise.all(t.components.x.selectorStates.map(V=>ta(e,V.selectedSource,i)))).join(", "),_=(await Promise.all(t.components.y.selectorStates.map(V=>ta(e,V.selectedSource,i)))).join(", "),M=await Promise.all(t.components.tooltipContent.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource;return{type:"column",label:await ta(e,Q,i)||Q,value:Q,valueLabels:($=(I=await Ma(e,Q,i))==null?void 0:I.toCanonicalString())!=null?$:Q}}));return{type:"heatmap",valueColumn:l,valueType:eS(b)?"discrete":"continuous",xColumn:{type:"column",value:c,label:k,valueLabels:"xLabelsKey"},yColumn:{type:"column",value:A,label:_,valueLabels:"yLabelsKey"},facetBy:h,xGroupBy:v,yGroupBy:g,annotations:[...C,...x],tooltips:{show:!0,content:M}}}},Sne={type:"scatterplot",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},highlight:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},shape:{type:"simple",selectorStates:[]},size:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Bne=class extends Nm{constructor(){super({x:new _n({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new _n({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new _n({componentName:"grouping",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),shape:new _n({componentName:"shape",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),size:new _n({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new _n({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new _n({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:Z1})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(en(n)),i=await e.pFrameProvider.getColumnSpecById(en(r));if(!a||!i)return new Set;const l=a.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),c=l.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!l.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const s=en(i),c=en(l),f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=await J1(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=K1(h),g=h.map(q=>en(q.selectedSource)).filter(Tn),b=[s,c].filter(Tn).map(q=>q.toCanonicalString());if(b.length===0)throw Error("One of X and Y should be a column");const C=await Rm(e,b),x=[s,c,...g],k=[],_=[[],[]],M=[],V=[];for(const{selectedSource:q,fixedAxes:te}of h)V.push(...await Qc(e,A,C,q,te)),_.push((te??[]).map(({axisIdx:ee,axisValue:z})=>({idx:ee,value:z})));const I=[t.components.grouping,t.components.size,t.components.shape,t.components.tooltipContent,t.components.facetBy,t.components.label,t.components.highlight];for(const q of I)for(const{selectedSource:te,fixedAxes:ee}of q.selectorStates){k.push(en(te)),M.push((ee??[]).map(({axisIdx:U,axisValue:W})=>({idx:U,value:W}))),V.push(...await Qc(e,A,C,te,ee));const z=await Ma(e,te,b);z&&k.push(z)}const $=await e.pFrameProvider.getTableOuterJoin([s,c,...V,...g],k,v,!1,_,M);[...x,...k].forEach(q=>{const te=q.toCanonicalString();f.values[te]=Tn(q)?$.columnsData[te]:$.axesData[te]}),f.values.key=f.values[Object.keys(f.values)[0]].map((q,te)=>te);const Q=t.components.highlight.selectorStates.map(({selectedSource:q})=>en(q));return Q.length&&(f.values.highlight=f.values.key.map((q,te)=>{let ee=!1;for(let z=0;z<Q.length;z++){const{selectedSource:U,selectedFilterValue:W,selectedFilterRange:Y,type:X}=t.components.highlight.selectorStates[z],oe=(Tn(Q[z])?$.columnsData[U]:$.axesData[U])[te];if(W!==void 0&&(ee=ee||oe===W),Y!==void 0&&(Y.min!==void 0||Y.max!==void 0)&&typeof oe=="number"){let de=!0;Y.min!==void 0&&(de=de&&oe>=Y.min),Y.max!==void 0&&(de=de&&oe<=Y.max),ee=ee||de}X==="subset"&&(ee=ee||oe!=null)}return ee?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const l=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=l?en(l):null,f=s?en(s):null;if(!l||!s||!c||!f||!Tn(c)&&!Tn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(Tn).map(V=>V.toCanonicalString()),h={type:"column",value:l,label:await ta(e,l,A)},v={type:"column",value:s,label:await ta(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async V=>{var I,$;return{type:"column",value:($=(I=await Ma(e,V.selectedSource,A))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),C=ir.uniq([...t.components.grouping.selectorStates.map(V=>V.selectedSource),...t.components.size.selectorStates.map(V=>V.selectedSource),...t.components.shape.selectorStates.map(V=>V.selectedSource)]),x=await Promise.all(C.map(async V=>{var I,$;return{type:"column",label:await ta(e,V,A)||V,value:V,valueLabels:($=(I=await Ma(e,V,A))==null?void 0:I.toCanonicalString())!=null?$:V}})),k=await Promise.all(t.components.tooltipContent.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource;return{type:"column",label:await ta(e,Q,A)||Q,value:Q,valueLabels:($=(I=await Ma(e,Q,A))==null?void 0:I.toCanonicalString())!=null?$:Q}}));let _;if(t.components.label.selectorStates.length){const V=t.components.label.selectorStates[0].selectedSource;_={type:"column",value:V,label:await ta(e,V,A),valueLabels:(i=(a=await Ma(e,V,A))==null?void 0:a.toCanonicalString())!=null?i:V}}let M;return t.components.highlight.selectorStates.length&&(M={type:"column",value:"highlight"}),{type:"scatterplot",x:h,y:v,keyColumn:g,facetBy:b,grouping:x,label:_,highlight:M,tooltips:{show:!0,content:k}}}},kne={type:"scatterplot-umap",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},highlight:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Tne=class extends Nm{constructor(){super({x:new _n({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new _n({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new _n({componentName:"grouping",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new _n({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new _n({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:Z1})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(en(n)),i=await e.pFrameProvider.getColumnSpecById(en(r));if(!a||!i)return new Set;const l=a.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),c=l.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!l.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const s=en(i),c=en(l);if(!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=await J1(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=K1(h),g=h.map(te=>en(te.selectedSource)).filter(Tn),b=[s,c].filter(Tn).map(te=>te.toCanonicalString());if(b.length===0)throw Error("One of X and Y should be a column");const C=await Rm(e,b),x=[s,c,...g],k=[],_=[[],[]],M=[],V=[];for(const{selectedSource:te,fixedAxes:ee}of h)V.push(...await Qc(e,A,C,te,ee)),V.push(...await Qc(e,A,C,te,ee)),_.push((ee??[]).map(({axisIdx:z,axisValue:U})=>({idx:z,value:U})));const I=[t.components.grouping,t.components.facetBy,t.components.tooltipContent,t.components.label,t.components.highlight];for(const te of I)for(const{selectedSource:ee,fixedAxes:z}of te.selectorStates){k.push(en(ee)),M.push((z??[]).map(({axisIdx:W,axisValue:Y})=>({idx:W,value:Y}))),V.push(...await Qc(e,A,C,ee,z));const U=await Ma(e,ee,b);U&&k.push(U)}const $=await e.pFrameProvider.getTableOuterJoin([s,c,...V,...g],k,v,!1,_,M);[...x,...k].forEach(te=>{const ee=te.toCanonicalString();f.values[ee]=Tn(te)?$.columnsData[ee]:$.axesData[ee]});const Q=Object.keys($.axesData);f.values.key=f.values[Object.keys(f.values)[0]].map((te,ee)=>JSON.stringify(Q.reduce((z,U)=>(z[U]=$.axesData[U][ee],z),{})));const q=t.components.highlight.selectorStates.map(({selectedSource:te})=>en(te));return q.length&&(f.values.highlight=f.values.key.map((te,ee)=>{let z=!1;for(let U=0;U<q.length;U++){const{selectedSource:W,selectedFilterValue:Y,selectedFilterRange:X,type:oe}=t.components.highlight.selectorStates[U],de=(Tn(q[U])?$.columnsData[W]:$.axesData[W])[ee];if(Y!==void 0&&(z=z||de===Y),X!==void 0&&(X.min!==void 0||X.max!==void 0)&&typeof de=="number"){let ae=!0;X.min!==void 0&&(ae=ae&&de>=X.min),X.max!==void 0&&(ae=ae&&de<=X.max),z=z||ae}oe==="subset"&&(z=z||de!=null)}return z?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const l=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=l?en(l):null,f=s?en(s):null;if(!l||!s||!c||!f||!Tn(c)&&!Tn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(Tn).map(M=>M.toCanonicalString()),h={type:"column",value:l,label:await ta(e,l,A)},v={type:"column",value:s,label:await ta(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async M=>{var V,I;return{type:"column",value:(I=(V=await Ma(e,M.selectedSource,A))==null?void 0:V.toCanonicalString())!=null?I:M.selectedSource}})),C=await Promise.all(t.components.grouping.selectorStates.map(async M=>{var V,I;const $=M.selectedSource;return{type:"column",label:await ta(e,$,A)||$,value:$,valueLabels:(I=(V=await Ma(e,$,A))==null?void 0:V.toCanonicalString())!=null?I:$}})),x=await Promise.all(t.components.tooltipContent.selectorStates.map(async M=>{var V,I;const $=M.selectedSource;return{type:"column",label:await ta(e,$,A)||$,value:$,valueLabels:(I=(V=await Ma(e,$,A))==null?void 0:V.toCanonicalString())!=null?I:$}}));let k;if(t.components.label.selectorStates.length){const M=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:M,label:await ta(e,M,A),valueLabels:(i=(a=await Ma(e,M,A))==null?void 0:a.toCanonicalString())!=null?i:M}}let _;return t.components.highlight.selectorStates.length&&(_={type:"column",value:"highlight"}),{type:"scatterplot-umap",x:h,y:v,keyColumn:g,facetBy:b,grouping:C,label:k,highlight:_,tooltips:{show:!0,content:x}}}},tS="pl7.app/dendrogram/nodeId",nS="id",_ne={type:"dendro",components:{value:{type:"simple",selectorStates:[]},height:{type:"simple",selectorStates:[]},labels:{type:"simple",selectorStates:[]},tableContent:{type:"simple",selectorStates:[]},nodeColor:{type:"simple",selectorStates:[]},nodeShape:{type:"simple",selectorStates:[]},nodeSize:{type:"simple",selectorStates:[]},lineColor:{type:"simple",selectorStates:[]},heatmapAnnotation:{type:"simple",selectorStates:[]},heatmapForSequence:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},heatmapAxis:{type:"simple",selectorStates:[]},heatmapGroup:{type:"simple",selectorStates:[]}},dividedAxes:{}},Pne=class extends Nm{constructor(){super({value:new _n({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{isDataComponent:!0,columnsAllowed:!0,required:!0,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),height:new _n({componentName:"height",allowedTypes:["Int","Long","Double","Float"],annotations:{"pl7.app/dendrogram/isDistance":"true"},parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),labels:new _n({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tableContent:new _n({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0,columnsWithExtraAxesAllowed:!1}}),nodeShape:new _n({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeSize:new _n({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeColor:new _n({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),lineColor:new _n({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapForSequence:new _n({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),heatmapAnnotation:new _n({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapAxis:new _n({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapGroup:new _n({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})}),this.ignoredOptionIdNames=[tS]}readyDataInputs(e){return e.components.value.selectorStates.length>0}async createTableData(e,t){var n;const r={},a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,i=en(a);if(!a||!Tn(i))throw Error("Value column is not valid");const l=await J1(e),s=K1([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),c=[...t.components.filters.selectorStates.map(M=>en(M.selectedSource)),...t.components.tabBy.selectorStates.map(M=>en(M.selectedSource))].filter(Tn),f=[a],A=await Rm(e,f),h=[],v=[],g=[],b=[t.components.value],C=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],x={};for(const M of b)for(const{selectedSource:V,fixedAxes:I}of M.selectorStates){g.push(...await Qc(e,l,A,V,I));const $=await Ma(e,V,f),Q=$??en(V);x[Q.toCanonicalString()]=V,h.push(Q)}for(const M of C)for(const{selectedSource:V,fixedAxes:I}of M.selectorStates){g.push(...await Qc(e,l,A,V,I));const $=await Ma(e,V,f),Q=$??en(V);x[V]=Q.toCanonicalString(),v.push(Q)}const k=await e.pFrameProvider.getTableOuterJoin([...h,...c,...g],v,s,!1);for(const M of[...h,...v]){const V=M.toCanonicalString(),I=x[M.toCanonicalString()];r[I]={data:Tn(M)?k.columnsData[V]:k.axesData[V],spec:Tn(M)?k.columnSpecs[V]:k.axesSpecs[V],label:await ta(e,I,f)}}const _=Object.keys(k.axesData).find(M=>{var V;return((V=en(M))==null?void 0:V.name)===tS});return _?r[nS]={data:k.axesData[_],spec:{kind:"PColumn",valueType:"Int",name:"Node id"},label:"Node id"}:console.warn("Missed node id axis in data column"),r}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,s=en(i),c=l?en(l):null;if(!i||!Tn(s))throw Error("Value column is not valid");const f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=K1(A),v=A.map($=>en($.selectedSource)).filter(Tn),g=[s,c].filter(Tn).map($=>$.toCanonicalString()),b=[],C=[],x=[],k=[],_=[t.components.value,t.components.height,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor,t.components.heatmapAnnotation,t.components.heatmapForSequence],M=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const $ of _)for(const{selectedSource:Q,fixedAxes:q}of $.selectorStates){b.push(en(Q)),x.push((q??[]).map(({axisIdx:ee,axisValue:z})=>({idx:ee,value:z})));const te=await Ma(e,Q,g);te&&b.push(te)}A.forEach(({fixedAxes:$})=>{x.push(($??[]).map(({axisIdx:Q,axisValue:q})=>({idx:Q,value:q})))});for(const $ of M)for(const{selectedSource:Q,fixedAxes:q}of $.selectorStates){C.push(en(Q)),k.push((q??[]).map(({axisIdx:ee,axisValue:z})=>({idx:ee,value:z})));const te=await Ma(e,Q,g);te&&C.push(te)}const V=await e.pFrameProvider.getTableOuterJoin([...b,...v],C,h,!1,x,k);[...b,...C].forEach($=>{const Q=$.toCanonicalString(),q=Tn($)?V.columnsData[Q]:V.axesData[Q];f.values[Q]=[],f.values[Q]=q});const I=Object.keys(V.axesData).find($=>{var Q;return((Q=en($))==null?void 0:Q.name)===tS});return I?f.values[nS]=V.axesData[I]:console.warn("Missed node id axis in data column"),f}async createChartSettings(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=en(i);if(!i||!Tn(l))throw Error("Data column is not valid");const s=[i],c={type:"column",value:nS},f={type:"column",value:i},A=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,h=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,v={};if(t.components.nodeColor.selectorStates.length){const x=t.components.nodeColor.selectorStates[0].selectedSource;v.nodeColor={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}if(t.components.nodeShape.selectorStates.length){const x=t.components.nodeShape.selectorStates[0].selectedSource;v.nodeShape={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}if(t.components.nodeSize.selectorStates.length){const x=t.components.nodeSize.selectorStates[0].selectedSource;v.nodeSize={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}if(t.components.lineColor.selectorStates.length){const x=t.components.lineColor.selectorStates[0].selectedSource;v.lineColor={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}let g,b,C;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const x=t.components.heatmapAnnotation.selectorStates[0].selectedSource;g={type:"column",value:x,label:await ta(e,x,[]),valueLabels:(r=await Ma(e,x,[]))==null?void 0:r.toCanonicalString()};const k=t.components.heatmapAxis.selectorStates[0].selectedSource;b={type:"column",value:k,label:await ta(e,k,[x]),valueLabels:(a=await Ma(e,k,[x]))==null?void 0:a.toCanonicalString()},C=await Promise.all(t.components.heatmapGroup.selectorStates.map(async _=>{var M;return{type:"column",value:_.selectedSource,label:await ta(e,_.selectedSource,[x]),valueLabels:(M=await Ma(e,_.selectedSource,[x]))==null?void 0:M.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const x=t.components.heatmapForSequence.selectorStates[0].selectedSource;g={type:"column",value:x,label:await ta(e,x,[])}}return{type:"dendro",id:c,parentId:f,height:A,labels:h,aes:v,heatmapAnnotation:g,heatmapAxis:b,heatmapGroup:C}}},AC=1e6;function _3(e,t){return e==="String"?t.data:Array.from(t.data).map(n=>e==="Int"&&n===-2147483648||e==="Long"&&n===BigInt(-9007199254740991)||(e==="Double"||e==="Float")&&isNaN(n)?null:Number(n))}var q1=!1,Kbt=100,Mne=class{constructor(e,t){this.pframeHandle=e,this.pframeDriver=t}async isColumnExisted(e){return!!await this.getColumnSpecById(e)}async getSingleColumnData(e,t=[]){if(!await this.isColumnExisted(e))return{axesData:{},data:[]};try{const n=Date.now(),r=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),a=r.filter(l=>l.spec.type==="axis"),i=r.filter(l=>l.spec.type==="column");return{axesData:a.reduce((l,s)=>{const c=Nr.fromAxisSpec(s.spec.spec);return l[c.toCanonicalString()]=_3(c.type,s.data),l},{}),data:i.length?_3(e.type,i[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[],n=!1){if(!await this.isColumnExisted(e))return[];const r={columnId:e.name,filters:t,limit:AC};try{const a=Date.now(),i=await this.pframeDriver.getUniqueValues(this.pframeHandle,r);return i.overflow&&console.warn(`More than ${AC} values for ${e.name} column`),_3(e.type,i.values).map(String)}catch(a){throw console.error("PFrame: getUniqueValues for column error"),a}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(Tn),a=await Promise.all(r.map(s=>this.getColumnSpecById(s))),i=e.toCanonicalString(),l=r.filter((s,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(A=>Nr.fromAxisSpec(A).toCanonicalString()===i)});if(l.length===0)return[];try{const s=Date.now(),c=await Promise.all(l.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:AC})));return c.forEach((f,A)=>{f.overflow&&console.warn(`More than ${AC} values for ${l[A].name} column`)}),ir.uniq(ir.flatten(c.map(f=>_3(e.type,f.values).map(String))))}catch(s){throw console.error("PFrame: getUniqueValues for axis error",s),s}}async getTableOuterJoin(e,t,n=[],r=!0,a=[],i=[]){const l=e.filter(Tn),s=t.filter(Tn),c={src:{type:"outer",primary:{type:r?"inner":"full",entries:l.map((f,A)=>{var h;const v=(h=a[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return v!=null&&v.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:v}:{type:"column",column:f.name}})},secondary:s.map((f,A)=>{var h;const v=(h=i[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return v!=null&&v.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:v}:{type:"column",column:f.name}})},filters:n,sorting:[]};try{const f=Date.now(),A=await this.pframeDriver.calculateTableData(this.pframeHandle,c),h=A.filter(g=>g.spec.type==="axis"),v=A.filter(g=>g.spec.type==="column");return{axesData:h.reduce((g,b)=>{const C=Nr.fromAxisSpec(b.spec.spec);return g[C.toCanonicalString()]=_3(C.type,b.data),g},{}),columnsData:v.reduce((g,b)=>{const C=b.spec.spec,x=new T3({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=_3(x.type,b.data),g},{}),columnSpecs:v.reduce((g,b)=>{const C=b.spec.spec,x=new T3({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=C,g},{}),axesSpecs:h.reduce((g,b)=>{const C=b.spec.spec,x=Nr.fromAxisSpec(C);return g[x.toCanonicalString()]=C,g},{})}}catch(f){throw console.error("PFrame: table outer join error"),console.info("error with request: ",c),f}}async getColumnSpecById(e){try{const t=Date.now(),n=await this.pframeDriver.getColumnSpec(this.pframeHandle,e.name);return n??null}catch{return console.error("PFrame: get single column error"),null}}async getColumnAxesIds(e){var t,n;return(n=(t=await this.getColumnSpecById(e))==null?void 0:t.axesSpec.map(r=>Nr.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(Tn(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(l=>Nr.fromAxisSpec(l).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumnsFull(e,t,n,r,a){try{const i={columnFilter:{type:n,name:r,annotationValue:a},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:t},l=Date.now(),s=await this.pframeDriver.findColumns(this.pframeHandle,i),c=[];return s.hits.forEach(f=>{c.push(f)}),c}catch(i){throw console.error("PFrame: findColumns error"),i}}async getColumns(e,t,n,r,a){return(await this.getColumnsFull(e,t,n,r,a)).map(i=>new T3({name:i.columnId,type:i.spec.valueType}))}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},i=Date.now(),l=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return l.hits.forEach(({columnId:c,spec:f})=>{s.push(new T3({name:c,type:f.valueType}))}),s.length>1&&console.warn(`More than 1 column found for ${e}}`),s.length===0?(console.warn(`No columns found for ${e}}`),null):s[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},Dne=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new Mne(e,t)}},rR={controllers:{discrete:new bne,scatterplot:new Bne,"scatterplot-umap":new Tne,heatmap:new xne,dendro:new Pne,histogram:new wne,bubble:new gne},initialStates:{discrete:Cne,scatterplot:Sne,"scatterplot-umap":kne,heatmap:Ene,dendro:_ne,histogram:yne,bubble:mne}};function pC(e){return rR.controllers[e]}function aR(e){return rR.initialStates[e]}const mr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Hne={},Ine={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rne(e,t){return d.openBlock(),d.createElementBlock("svg",Ine,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25V21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 1C17.5523 1 18 1.44772 18 2C18 2.55228 17.5523 3 17 3C16.4477 3 16 2.55228 16 2C16 1.44772 16.4477 1 17 1ZM15 6.75H16.25L16.25 9H14C13.4477 9 13 9.44771 13 10V12.125V13.25V14V14.75V16V18C13 18.5523 13.4477 19 14 19H16.25L16.25 21.25H15H14.25V22.75H15H19H19.75V21.25H19H17.75V19H20C20.5523 19 21 18.5523 21 18V16V14.75V14V13.25V12.125V10C21 9.44771 20.5523 9 20 9H17.75V6.75H19H19.75V5.25H19H15H14.25V6.75H15ZM16.25 10.5H14.5V12.125V13.25H19.5V12.125V10.5H17.75H16.25ZM14.5 16V14.75H19.5V16V17.5H14.5V16Z",fill:"#07AD3E"},null,-1)]))}const Nne=mr(Hne,[["render",Rne]]),Lne={},$ne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fne(e,t){return d.openBlock(),d.createElementBlock("svg",$ne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const Vne=mr(Lne,[["render",Fne]]),One={},Qne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zne(e,t){return d.openBlock(),d.createElementBlock("svg",Qne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3ZM17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15ZM18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5ZM17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5ZM18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5ZM21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15ZM15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5ZM15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5ZM16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19ZM18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11ZM18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5ZM18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z",fill:"#07AD3E"},null,-1)]))}const Une=mr(One,[["render",zne]]),Gne={},jne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yne(e,t){return d.openBlock(),d.createElementBlock("svg",jne,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25H21" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M14 11.5C14 12.3284 13.3284 13 12.5 13C11.6716 13 11 12.3284 11 11.5C11 10.6716 11.6716 10 12.5 10C13.3284 10 14 10.6716 14 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 14.5C14 15.3284 13.3284 16 12.5 16C11.6716 16 11 15.3284 11 14.5C11 13.6716 11.6716 13 12.5 13C13.3284 13 14 13.6716 14 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 17.5C14 18.3284 13.3284 19 12.5 19C11.6716 19 11 18.3284 11 17.5C11 16.6716 11.6716 16 12.5 16C13.3284 16 14 16.6716 14 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M9 17.5C9 18.3284 8.32843 19 7.5 19C6.67157 19 6 18.3284 6 17.5C6 16.6716 6.67157 16 7.5 16C8.32843 16 9 16.6716 9 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4C16.3284 4 17 4.67157 17 5.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 17.5C17 18.3284 16.3284 19 15.5 19C14.6716 19 14 18.3284 14 17.5C14 16.6716 14.6716 16 15.5 16C16.3284 16 17 16.6716 17 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 17.5C20 18.3284 19.3284 19 18.5 19C17.6716 19 17 18.3284 17 17.5C17 16.6716 17.6716 16 18.5 16C19.3284 16 20 16.6716 20 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 14.5C20 15.3284 19.3284 16 18.5 16C17.6716 16 17 15.3284 17 14.5C17 13.6716 17.6716 13 18.5 13C19.3284 13 20 13.6716 20 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 14.5C17 15.3284 16.3284 16 15.5 16C14.6716 16 14 15.3284 14 14.5C14 13.6716 14.6716 13 15.5 13C16.3284 13 17 13.6716 17 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 11.5C17 12.3284 16.3284 13 15.5 13C14.6716 13 14 12.3284 14 11.5C14 10.6716 14.6716 10 15.5 10C16.3284 10 17 10.6716 17 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path>',18)]))}const Wne=mr(Gne,[["render",Yne]]),Xne={},Kne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zne(e,t){return d.openBlock(),d.createElementBlock("svg",Kne,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3Z" fill="#07AD3E"></path><path d="M17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15Z" fill="#07AD3E"></path><path d="M18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5Z" fill="#07AD3E"></path><path d="M17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5Z" fill="#07AD3E"></path><path d="M18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5Z" fill="#07AD3E"></path><path d="M21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15Z" fill="#07AD3E"></path><path d="M15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5Z" fill="#07AD3E"></path><path d="M15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5Z" fill="#07AD3E"></path><path d="M16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19Z" fill="#07AD3E"></path><path d="M18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11Z" fill="#07AD3E"></path><path d="M18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5Z" fill="#07AD3E"></path><path d="M18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z" fill="#07AD3E"></path><path d="M8 3C8 2.44772 7.55228 2 7 2C6.44772 2 6 2.44772 6 3C6 3.55228 6.44772 4 7 4C7.55228 4 8 3.55228 8 3Z" fill="#110529"></path><path d="M6 4.5C6.55228 4.5 7 4.94772 7 5.5C7 6.05228 6.55228 6.5 6 6.5C5.44772 6.5 5 6.05228 5 5.5C5 4.94772 5.44772 4.5 6 4.5Z" fill="#110529"></path><path d="M5 7C5 6.44772 4.55228 6 4 6C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8C4.55228 8 5 7.55228 5 7Z" fill="#110529"></path><path d="M8 6C8.55228 6 9 6.44772 9 7C9 7.55228 8.55228 8 8 8C7.44772 8 7 7.55228 7 7C7 6.44772 7.44772 6 8 6Z" fill="#110529"></path><path d="M7 8.5C7 7.94772 6.55228 7.5 6 7.5C5.44772 7.5 5 7.94772 5 8.5C5 9.05228 5.44772 9.5 6 9.5C6.55228 9.5 7 9.05228 7 8.5Z" fill="#110529"></path><path d="M8 20.5C8 19.9477 7.55228 19.5 7 19.5C6.44772 19.5 6 19.9477 6 20.5C6 21.0523 6.44772 21.5 7 21.5C7.55228 21.5 8 21.0523 8 20.5Z" fill="#110529"></path><path d="M7 17C7 16.4477 6.55228 16 6 16C5.44772 16 5 16.4477 5 17C5 17.5523 5.44772 18 6 18C6.55228 18 7 17.5523 7 17Z" fill="#110529"></path><path d="M8 14C8.55228 14 9 14.4477 9 15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15C7 14.4477 7.44772 14 8 14Z" fill="#110529"></path><path d="M11 8.5C11 7.94772 10.5523 7.5 10 7.5C9.44772 7.5 9 7.94772 9 8.5C9 9.05228 9.44772 9.5 10 9.5C10.5523 9.5 11 9.05228 11 8.5Z" fill="#110529"></path><path d="M5 10C5.55228 10 6 10.4477 6 11C6 11.5523 5.55228 12 5 12C4.44772 12 4 11.5523 4 11C4 10.4477 4.44772 10 5 10Z" fill="#110529"></path><path d="M8 12.5C8 11.9477 7.55228 11.5 7 11.5C6.44772 11.5 6 11.9477 6 12.5C6 13.0523 6.44772 13.5 7 13.5C7.55228 13.5 8 13.0523 8 12.5Z" fill="#110529"></path><path d="M8 9C8.55228 9 9 9.44772 9 10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10C7 9.44772 7.44772 9 8 9Z" fill="#110529"></path>',24)]))}const Jne=mr(Xne,[["render",Zne]]),qne={},ere={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tre(e,t){return d.openBlock(),d.createElementBlock("svg",ere,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const nre=mr(qne,[["render",tre]]),rre={},are={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ire(e,t){return d.openBlock(),d.createElementBlock("svg",are,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40826 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const ore=mr(rre,[["render",ire]]),lre={},sre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ure(e,t){return d.openBlock(),d.createElementBlock("svg",sre,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const cre=mr(lre,[["render",ure]]),fre={},dre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Are(e,t){return d.openBlock(),d.createElementBlock("svg",dre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 10" stroke="#07AD3E" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M15 19L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 19L19 7" stroke="#110529" stroke-width="1.5"></path>',11)]))}const iR=mr(fre,[["render",Are]]),pre={},hre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vre(e,t){return d.openBlock(),d.createElementBlock("svg",hre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M5.49982 10.5L10.5037 5.49615C10.7829 5.21695 11.2307 5.20204 11.5279 5.46205L14.4718 8.03795C14.7689 8.29796 15.2168 8.28305 15.496 8.00385L20.4998 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 14V19" stroke="#110529" stroke-width="1.5"></path><path d="M11 10L11 19" stroke="#110529" stroke-width="1.5"></path><path d="M15 12V19" stroke="#110529" stroke-width="1.5"></path><path d="M19 9L19 19" stroke="#110529" stroke-width="1.5"></path>',12)]))}const oR=mr(pre,[["render",vre]]),mre={},gre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yre(e,t){return d.openBlock(),d.createElementBlock("svg",gre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11.25 11V13V16V18C11.25 18.1381 11.1381 18.25 11 18.25H9H7C6.86193 18.25 6.75 18.1381 6.75 18V16V13V11C6.75 10.8619 6.86193 10.75 7 10.75H9H11C11.1381 10.75 11.25 10.8619 11.25 11Z" stroke="#07AD3E" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.75 8V7.25H8.25V8H9.75ZM9.75 14V8H8.25V14H9.75Z" fill="#07AD3E"></path><path d="M19.25 6V9.66667V14.3333V18C19.25 18.1381 19.1381 18.25 19 18.25H17H15C14.8619 18.25 14.75 18.1381 14.75 18V14.3333V9.66667V6C14.75 5.86193 14.8619 5.75 15 5.75H17H19C19.1381 5.75 19.25 5.86193 19.25 6Z" stroke="#110529" stroke-width="1.5" stroke-linecap="round"></path><path d="M17 9V3" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path>',11)]))}const wre=mr(mre,[["render",yre]]),Cre={},bre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ere(e,t){return d.openBlock(),d.createElementBlock("svg",bre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M11 13L11 9" stroke="#07AD3E" stroke-width="1.5"></path><path d="M15 19L15 7" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 11" stroke="#110529" stroke-width="1.5"></path><path d="M19 19L19 11" stroke="#110529" stroke-width="1.5"></path><path d="M15 6L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 10L7 7" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 10L19 6" stroke="#07AD3E" stroke-width="1.5"></path>',15)]))}const xre=mr(Cre,[["render",Ere]]),Sre={},Bre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kre(e,t){return d.openBlock(),d.createElementBlock("svg",Bre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M6 17L10.3949 10.1634C10.4567 10.0673 10.5759 10.0253 10.6843 10.0614L16.3157 11.9386C16.4241 11.9747 16.5433 11.9327 16.6051 11.8366L21 5" stroke="#07AD3E" stroke-width="1.5"></path>',8)]))}const lR=mr(Sre,[["render",kre]]),Tre={},_re={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pre(e,t){return d.openBlock(),d.createElementBlock("svg",_re,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.87166 17.4862C6.72148 18.5589 5.21191 19.25 3 19.25H2.25V20.75H3C5.01 20.75 6.5821 20.2481 7.84779 19.4106C7.78374 19.1173 7.75 18.8126 7.75 18.5C7.75 18.1506 7.79216 17.8111 7.87166 17.4862ZM16.5833 6.12522C17.6721 5.27714 19.0682 4.75 21 4.75H21.75V3.25H21C18.7445 3.25 17.0404 3.882 15.702 4.91089C15.8578 5.18652 15.9838 5.48129 16.0755 5.79079C16.253 5.8903 16.4227 6.00217 16.5833 6.12522ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.75 7C9.75 5.75736 10.7574 4.75 12 4.75C13.2426 4.75 14.25 5.75736 14.25 7C14.25 7.08866 14.2449 7.17613 14.2349 7.26211C15.3671 7.37957 16.25 8.33668 16.25 9.5C16.25 10.6633 15.3671 11.6204 14.2349 11.7379C14.2449 11.8239 14.25 11.9113 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12C9.75 11.9113 9.75513 11.8239 9.7651 11.7379C8.63285 11.6204 7.75 10.6633 7.75 9.5C7.75 8.33668 8.63285 7.37957 9.7651 7.26211C9.75513 7.17613 9.75 7.08866 9.75 7ZM12 6.25C11.5858 6.25 11.25 6.58579 11.25 7C11.25 7.41421 11.5858 7.75 12 7.75C12.4142 7.75 12.75 7.41421 12.75 7C12.75 6.58579 12.4142 6.25 12 6.25ZM9.25 9.5C9.25 9.08579 9.58579 8.75 10 8.75C10.4142 8.75 10.75 9.08579 10.75 9.5C10.75 9.91421 10.4142 10.25 10 10.25C9.58579 10.25 9.25 9.91421 9.25 9.5ZM14 8.75C13.5858 8.75 13.25 9.08579 13.25 9.5C13.25 9.91421 13.5858 10.25 14 10.25C14.4142 10.25 14.75 9.91421 14.75 9.5C14.75 9.08579 14.4142 8.75 14 8.75ZM9.75 18.5C9.75 17.2574 10.7574 16.25 12 16.25C13.2426 16.25 14.25 17.2574 14.25 18.5C14.25 19.7426 13.2426 20.75 12 20.75C10.7574 20.75 9.75 19.7426 9.75 18.5ZM12 17.75C11.5858 17.75 11.25 18.0858 11.25 18.5C11.25 18.9142 11.5858 19.25 12 19.25C12.4142 19.25 12.75 18.9142 12.75 18.5C12.75 18.0858 12.4142 17.75 12 17.75ZM11.25 12C11.25 11.5858 11.5858 11.25 12 11.25C12.4142 11.25 12.75 11.5858 12.75 12C12.75 12.4142 12.4142 12.75 12 12.75C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#07AD3E"},null,-1)]))}const Mre=mr(Tre,[["render",Pre]]),Dre={},Hre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ire(e,t){return d.openBlock(),d.createElementBlock("svg",Hre,t[0]||(t[0]=[d.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M6.66173 18.3797C5.69642 18.9269 4.51239 19.25 3 19.25H2.25V20.75H3C5.08009 20.75 6.69121 20.2125 7.97909 19.3218C7.45744 19.133 7.00308 18.8038 6.66173 18.3797ZM15.6198 7.03708C15.6306 7.02483 15.6415 7.01261 15.6524 7.00044C16.858 5.65468 18.4693 4.75 21 4.75H21.75V3.25H21C18.0608 3.25 16.0579 4.32325 14.5803 5.94949C15.0122 6.21765 15.3709 6.59244 15.6198 7.03708ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z" fill="#110529"></path><path d="M13 3C13 3.55228 12.5523 4 12 4C11.4477 4 11 3.55228 11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3Z" fill="#07AD3E"></path><path d="M12 15C12 15.5523 11.5523 16 11 16C10.4477 16 10 15.5523 10 15C10 14.4477 10.4477 14 11 14C11.5523 14 12 14.4477 12 15Z" fill="#07AD3E"></path><path d="M13 17.5C13.5523 17.5 14 17.0523 14 16.5C14 15.9477 13.5523 15.5 13 15.5C12.4477 15.5 12 15.9477 12 16.5C12 17.0523 12.4477 17.5 13 17.5Z" fill="#07AD3E"></path><path d="M12 6.5C12 7.05228 11.5523 7.5 11 7.5C10.4477 7.5 10 7.05228 10 6.5C10 5.94772 10.4477 5.5 11 5.5C11.5523 5.5 12 5.94772 12 6.5Z" fill="#07AD3E"></path><path d="M13 9.5C13.5523 9.5 14 9.05228 14 8.5C14 7.94772 13.5523 7.5 13 7.5C12.4477 7.5 12 7.94772 12 8.5C12 9.05228 12.4477 9.5 13 9.5Z" fill="#07AD3E"></path><path d="M16 15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15C14 14.4477 14.4477 14 15 14C15.5523 14 16 14.4477 16 15Z" fill="#07AD3E"></path><path d="M10 13.5C10.5523 13.5 11 13.0523 11 12.5C11 11.9477 10.5523 11.5 10 11.5C9.44772 11.5 9 11.9477 9 12.5C9 13.0523 9.44772 13.5 10 13.5Z" fill="#07AD3E"></path><path d="M10 16.5C10 17.0523 9.55228 17.5 9 17.5C8.44772 17.5 8 17.0523 8 16.5C8 15.9477 8.44772 15.5 9 15.5C9.55228 15.5 10 15.9477 10 16.5Z" fill="#07AD3E"></path><path d="M11 19C11.5523 19 12 18.5523 12 18C12 17.4477 11.5523 17 11 17C10.4477 17 10 17.4477 10 18C10 18.5523 10.4477 19 11 19Z" fill="#07AD3E"></path><path d="M13 11C13 11.5523 12.5523 12 12 12C11.4477 12 11 11.5523 11 11C11 10.4477 11.4477 10 12 10C12.5523 10 13 10.4477 13 11Z" fill="#07AD3E"></path><path d="M13 14.5C13.5523 14.5 14 14.0523 14 13.5C14 12.9477 13.5523 12.5 13 12.5C12.4477 12.5 12 12.9477 12 13.5C12 14.0523 12.4477 14.5 13 14.5Z" fill="#07AD3E"></path><path d="M13 20.5C13 21.0523 12.5523 21.5 12 21.5C11.4477 21.5 11 21.0523 11 20.5C11 19.9477 11.4477 19.5 12 19.5C12.5523 19.5 13 19.9477 13 20.5Z" fill="#07AD3E"></path>',13)]))}const sR=mr(Dre,[["render",Ire]]),Rre={},Nre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lre(e,t){return d.openBlock(),d.createElementBlock("svg",Nre,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M19 2.75V7.5V12.25M19 2.75H16M19 2.75H22M19 12.25H16M19 12.25H22M19 14.5V16M19 17.5V19M19 20.5V22",stroke:"#110529","stroke-width":"1.5"},null,-1)]))}const $re=mr(Rre,[["render",Lre]]),Fre={},Vre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ore(e,t){return d.openBlock(),d.createElementBlock("svg",Vre,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 4.5C18 3.94772 17.5523 3.5 17 3.5C16.4477 3.5 16 3.94772 16 4.5C16 5.05228 16.4477 5.5 17 5.5C17.5523 5.5 18 5.05228 18 4.5Z" fill="#07AD3E"></path><path d="M17 18.5C17.5523 18.5 18 18.9477 18 19.5C18 20.0523 17.5523 20.5 17 20.5C16.4477 20.5 16 20.0523 16 19.5C16 18.9477 16.4477 18.5 17 18.5Z" fill="#07AD3E"></path><path d="M16 16.5C16.5523 16.5 17 16.9477 17 17.5C17 18.0523 16.5523 18.5 16 18.5C15.4477 18.5 15 18.0523 15 17.5C15 16.9477 15.4477 16.5 16 16.5Z" fill="#07AD3E"></path><path d="M17 17.5C17 16.9477 17.4477 16.5 18 16.5C18.5523 16.5 19 16.9477 19 17.5C19 18.0523 18.5523 18.5 18 18.5C17.4477 18.5 17 18.0523 17 17.5Z" fill="#07AD3E"></path><path d="M17 14.5C17.5523 14.5 18 14.9477 18 15.5C18 16.0523 17.5523 16.5 17 16.5C16.4477 16.5 16 16.0523 16 15.5C16 14.9477 16.4477 14.5 17 14.5Z" fill="#07AD3E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16 7C16.5523 7 17 7.44772 17 8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8C15 7.44772 15.4477 7 16 7ZM17 10C17 9.44772 16.5523 9 16 9C15.4477 9 15 9.44772 15 10C15 9.44772 14.5523 9 14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11C14.5523 11 15 10.5523 15 10C15 10.5523 15.4477 11 16 11C15.4477 11 15 11.4477 15 12C15 12.5523 15.4477 13 16 13C16.5523 13 17 12.5523 17 12C17 12.5523 17.4477 13 18 13C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11C18.5523 11 19 10.5523 19 10C19 10.5523 19.4477 11 20 11C20.5523 11 21 10.5523 21 10C21 9.44772 20.5523 9 20 9C19.4477 9 19 9.44772 19 10C19 9.44772 18.5523 9 18 9C18.5523 9 19 8.55228 19 8C19 7.44772 18.5523 7 18 7C17.4477 7 17 7.44772 17 8C17 8.55228 17.4477 9 18 9C17.4477 9 17 9.44772 17 10ZM17 10C17 10.5523 17.4477 11 18 11C17.4477 11 17 11.4477 17 12C17 11.4477 16.5523 11 16 11C16.5523 11 17 10.5523 17 10Z" fill="#07AD3E"></path><path d="M7 5.5C7.55228 5.5 8 5.05228 8 4.5C8 3.94772 7.55228 3.5 7 3.5C6.44772 3.5 6 3.94772 6 4.5C6 5.05228 6.44772 5.5 7 5.5Z" fill="#110529"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C8.55228 15 9 14.5523 9 14C9 14.5523 9.44772 15 10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14C9 13.4477 8.55228 13 8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13C5.44772 13 5 13.4477 5 14C5 13.4477 4.55228 13 4 13C3.44772 13 3 13.4477 3 14C3 14.5523 3.44772 15 4 15C4.55228 15 5 14.5523 5 14C5 14.5523 5.44772 15 6 15C5.44772 15 5 15.4477 5 16C5 16.5523 5.44772 17 6 17C6.55228 17 7 16.5523 7 16C7 16.5523 7.44772 17 8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15ZM8 15C7.44772 15 7 15.4477 7 16C7 15.4477 6.55228 15 6 15C6.55228 15 7 14.5523 7 14C7 14.5523 7.44772 15 8 15ZM7 14C7 13.4477 6.55228 13 6 13C6.55228 13 7 12.5523 7 12C7 12.5523 7.44772 13 8 13C7.44772 13 7 13.4477 7 14Z" fill="#110529"></path><path d="M6 7.5C6.55228 7.5 7 7.05228 7 6.5C7 7.05228 7.44772 7.5 8 7.5C8.55228 7.5 9 7.05228 9 6.5C9 5.94772 8.55228 5.5 8 5.5C7.44772 5.5 7 5.94772 7 6.5C7 5.94772 6.55228 5.5 6 5.5C5.44772 5.5 5 5.94772 5 6.5C5 7.05228 5.44772 7.5 6 7.5Z" fill="#110529"></path><path d="M7 9.5C7.55228 9.5 8 9.05228 8 8.5C8 7.94772 7.55228 7.5 7 7.5C6.44772 7.5 6 7.94772 6 8.5C6 9.05228 6.44772 9.5 7 9.5Z" fill="#110529"></path><path d="M8 19.5C8 20.0523 7.55228 20.5 7 20.5C6.44772 20.5 6 20.0523 6 19.5C6 18.9477 6.44772 18.5 7 18.5C7.55228 18.5 8 18.9477 8 19.5Z" fill="#110529"></path>',11)]))}const Qre=mr(Fre,[["render",Ore]]),zre={},Ure={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gre(e,t){return d.openBlock(),d.createElementBlock("svg",Ure,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M20 5C20 5.55228 19.5523 6 19 6C18.4477 6 18 5.55228 18 5C18 4.44772 18.4477 4 19 4C19.5523 4 20 4.44772 20 5Z" fill="#07AD3E"></path><path d="M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z" fill="#07AD3E"></path><path d="M16 17C16.5523 17 17 16.5523 17 16C17 15.4477 16.5523 15 16 15C15.4477 15 15 15.4477 15 16C15 16.5523 15.4477 17 16 17Z" fill="#07AD3E"></path><path d="M13 6C13.5523 6 14 5.55228 14 5C14 4.44772 13.5523 4 13 4C12.4477 4 12 4.44772 12 5C12 5.55228 12.4477 6 13 6Z" fill="#110529"></path><path d="M16 9C16.5523 9 17 8.55228 17 8C17 7.44772 16.5523 7 16 7C15.4477 7 15 7.44772 15 8C15 8.55228 15.4477 9 16 9Z" fill="#110529"></path><path d="M8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15C7.44772 15 7 15.4477 7 16C7 16.5523 7.44772 17 8 17Z" fill="#110529"></path><path d="M20 11C20 11.5523 19.5523 12 19 12C18.4477 12 18 11.5523 18 11C18 10.4477 18.4477 10 19 10C19.5523 10 20 10.4477 20 11Z" fill="#110529"></path><path d="M15 12C15.5523 12 16 11.5523 16 11C16 10.4477 15.5523 10 15 10C14.4477 10 14 10.4477 14 11C14 11.5523 14.4477 12 15 12Z" fill="#110529"></path><path d="M10 13C10 13.5523 9.55228 14 9 14C8.44772 14 8 13.5523 8 13C8 12.4477 8.44772 12 9 12C9.55228 12 10 12.4477 10 13Z" fill="#110529"></path><path d="M11 16C11.5523 16 12 15.5523 12 15C12 14.4477 11.5523 14 11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16Z" fill="#110529"></path><path d="M14 9C14 9.55228 13.5523 10 13 10C12.4477 10 12 9.55228 12 9C12 8.44772 12.4477 8 13 8C13.5523 8 14 8.44772 14 9Z" fill="#110529"></path><path d="M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z" fill="#110529"></path>',19)]))}const jre=mr(zre,[["render",Gre]]),Yre={},Wre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xre(e,t){return d.openBlock(),d.createElementBlock("svg",Wre,t[0]||(t[0]=[d.createStaticVNode('<path d="M10 20.5C10 20.7761 10.2239 21 10.5 21H13.5C13.7761 21 14 20.7761 14 20.5V19.3333V18.3333V18V17.5C14 17.2239 13.7761 17 13.5 17H10.5C10.2239 17 10 17.2239 10 17.5V18V18.3333V19.3333V20.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M10 13.5C10 13.7761 10.2239 14 10.5 14H13.5C13.7761 14 14 13.7761 14 13.5V12.3333V11.3333V11V10.5C14 10.2239 13.7761 10 13.5 10H10.5C10.2239 10 10 10.2239 10 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 13.5C17 13.7761 17.2239 14 17.5 14H20.5C20.7761 14 21 13.7761 21 13.5V12.3333V11.3333V11V10.5C21 10.2239 20.7761 10 20.5 10H17.5C17.2239 10 17 10.2239 17 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 20.5C17 20.7761 17.2239 21 17.5 21H20.5C20.7761 21 21 20.7761 21 20.5V19.3333V18.3333V18V17.5C21 17.2239 20.7761 17 20.5 17H17.5C17.2239 17 17 17.2239 17 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M10 6.5C10 6.77614 10.2239 7 10.5 7H13.5C13.7761 7 14 6.77614 14 6.5V5.33333V4.33333V4V3.5C14 3.22386 13.7761 3 13.5 3H10.5C10.2239 3 10 3.22386 10 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 20.5C3 20.7761 3.22386 21 3.5 21H6.5C6.77614 21 7 20.7761 7 20.5V19.3333V18.3333V18V17.5C7 17.2239 6.77614 17 6.5 17H3.5C3.22386 17 3 17.2239 3 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 13.5C3 13.7761 3.22386 14 3.5 14H6.5C6.77614 14 7 13.7761 7 13.5V12.3333V11.3333V11V10.5C7 10.2239 6.77614 10 6.5 10H3.5C3.22386 10 3 10.2239 3 10.5V11V11.3333V12.3333V13.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 6.5C17 6.77614 17.2239 7 17.5 7H20.5C20.7761 7 21 6.77614 21 6.5V5.33333V4.33333V4V3.5C21 3.22386 20.7761 3 20.5 3H17.5C17.2239 3 17 3.22386 17 3.5V4V4.33333V5.33333V6.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M3 6.5C3 6.77614 3.22386 7 3.5 7H6.5C6.77614 7 7 6.77614 7 6.5V5.33333V4.33333V4V3.5C7 3.22386 6.77614 3 6.5 3H3.5C3.22386 3 3 3.22386 3 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path>',9)]))}const uR=mr(Yre,[["render",Xre]]),Kre={},Zre={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Jre(e,t){return d.openBlock(),d.createElementBlock("svg",Zre,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 20.5H21.75V22H2.25V20.5Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M8.91649 19H7.25L10.2842 10H12.2116L15.25 19H13.5835L11.2816 11.8457H11.2142L8.91649 19ZM8.9712 15.4712H13.5162V16.7808H8.9712V15.4712Z",fill:"#07AD3E"},null,-1),d.createElementVNode("path",{d:"M20.4799 8.18631C20.4158 7.77567 20.3273 7.40811 20.2144 7.08365C20.1041 6.75412 19.9707 6.47275 19.8142 6.23954C19.6603 6.00634 19.4832 5.83143 19.2831 5.71483C19.083 5.59316 18.8649 5.53232 18.6289 5.53232C18.2056 5.53232 17.8285 5.74271 17.4975 6.1635C17.1666 6.58428 16.9062 7.20279 16.7163 8.01901C16.529 8.83016 16.4354 9.81876 16.4354 10.9848C16.4354 12.161 16.529 13.1572 16.7163 13.9734C16.9036 14.7896 17.164 15.4106 17.4975 15.8365C17.831 16.2573 18.2184 16.4677 18.6597 16.4677C19.0599 16.4677 19.4063 16.3156 19.6987 16.0114C19.9938 15.7072 20.2208 15.2763 20.3799 14.7186C20.5389 14.1559 20.6185 13.4968 20.6185 12.7414H20.618H18.8021V10.635H22V12.5057C22 13.839 21.8563 14.9924 21.569 15.9658C21.2817 16.9392 20.8866 17.6895 20.3837 18.2167C19.8809 18.7389 19.3036 19 18.652 19C17.926 19 17.2884 18.6781 16.7394 18.0342C16.193 17.3853 15.7658 16.4651 15.4579 15.2738C15.1526 14.0773 15 12.6578 15 11.0152C15 9.75792 15.0898 8.63498 15.2694 7.64639C15.4515 6.6578 15.7055 5.81876 16.0313 5.12928C16.3572 4.43473 16.7394 3.90748 17.1781 3.54753C17.6168 3.18251 18.094 3 18.6097 3C19.0458 3 19.4524 3.12674 19.8296 3.38023C20.2067 3.62864 20.5415 3.98352 20.834 4.44487C21.129 4.90621 21.3714 5.45374 21.5613 6.08745C21.7511 6.72117 21.8756 7.42079 21.9346 8.18631H20.4799Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M2 7V5H9L9 7H6.25V19H4.75V7H2Z",fill:"#110529"},null,-1)]))}const qre=mr(Kre,[["render",Jre]]),P3=[{name:"Light green",color:"#99E099"},{name:"Green",color:"#42B842"},{name:"Dark green",color:"#198020"},{name:"Light violet",color:"#C1ADFF"},{name:"Violet",color:"#845CFF"},{name:"Dark violet",color:"#5F31CC"},{name:"Light orange",color:"#FFCB8F"},{name:"Orange",color:"#FF9429"},{name:"Dark orange",color:"#C26A27"},{name:"Light teal",color:"#90E0E0"},{name:"Teal",color:"#27C2C2"},{name:"Dark teal",color:"#068A94"},{name:"Light rose",color:"#FAAAFA"},{name:"Rose",color:"#E553E5"},{name:"Dark rose",color:"#A324B2"},{name:"Light lime",color:"#CBEB67"},{name:"Lime",color:"#95C700"},{name:"Dark lime",color:"#659406"},{name:"Light blue",color:"#99CCFF"},{name:"Blue",color:"#2D93FA"},{name:"Dark blue",color:"#105BCC"},{name:"Light red",color:"#FFADBA"},{name:"Red",color:"#F05670"},{name:"Dark red",color:"#AD3757"},{name:"Light grey",color:"#D3D7E0"},{name:"Grey",color:"#929BAD"},{name:"Dark grey",color:"#5E5E70"},{name:"Black",color:"#110529"},{name:"White",color:"#FFFFFF"},{name:"None",color:"transparent"}],M3="#FFFFFF",Ii="#110529";P3.reduce((e,t)=>(e[t.color]=t,e),{});const $7=P3.slice(0,-3).map(e=>e.color),eae=$7.filter((e,t)=>t%3===0),tae=$7.filter((e,t)=>t%3===1),nae=$7.filter((e,t)=>t%3===2),rae=$7.filter((e,t)=>t%3!==2),aae=$7,iae=["#FFF680","#53D788","#36739D","#4A005C"],oae=["#FFF680","#F77E5B","#902B83","#2B125C"],lae=["#DFFADC","#74CFD1","#635AC1","#611347"],sae=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],uae=["#FFEA80","#F07A76","#7535A4","#003752"],cae=["#FFF780","#6CEA90","#6C90F0","#942AAE"],fae=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],dae=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],Aae=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],pae=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],hae=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],cR=["light","bright","dark","paired","triadic"],vae=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],mae=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function rS(e){return cR.includes(e)}const Gi={...{light:{title:"Light",colors:eae},bright:{title:"Bright",colors:tae},dark:{title:"Dark",colors:nae},paired:{title:"Paired",colors:rae},triadic:{title:"Triadic",colors:aae}},...{viridis:{title:"Viridis",colors:iae},magma:{title:"Magma",colors:oae},density:{title:"Density",colors:lae},salinity:{title:"Salinity",colors:sae},sunset:{title:"Sunset",colors:uae},perceptual_rainbow:{title:"Rainbow",colors:cae}},...{spectrum:{title:"Spectrum",colors:fae},teal_red:{title:"Teal-Red",colors:dae},blue_red:{title:"Blue-Red",colors:Aae},lime_rose:{title:"Lime-Rose",colors:pae},viridis_magma:{title:"Vir-Mag",colors:hae}}},fR="light",ev="salinity",gae="salinity",F7=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],hC="#F0F0F0",P0="21",D3=["solid","dashed","dotted","dotdash","longdash","twodash"],vC="solid",yae={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}},wae={A:"#cc0100",C:"#0000cc",G:"#ffb300",T:"#027f00",U:"#027f00"},Cae={A:"#7fa0f0",R:"#ef1405",N:"#01ff00",D:"#c048bf",C:"#ef8080",Q:"#01ff00",E:"#c048bf",G:"#f09047",H:"#14a4a4",I:"#7fa0f0",L:"#7fa0f0",K:"#ef1405",M:"#7fa0f0",F:"#7fa0f0",P:"#ffff00",S:"#01ff00",T:"#01ff00",W:"#7fa0f0",Y:"#14a4a4",V:"#7fa0f0",B:"#eeeeee",X:"#eeeeee",Z:"#eeeeee"};function H3(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aS(e){let t,n,r;e.length!==2?(t=H3,n=(s,c)=>H3(e(s),c),r=(s,c)=>e(s)-c):(t=e===H3||e===bae?e:Eae,n=e,r=e);function a(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<0?f=h+1:A=h}while(f<A)}return f}function i(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<=0?f=h+1:A=h}while(f<A)}return f}function l(s,c,f=0,A=s.length){const h=a(s,c,f,A-1);return h>f&&r(s[h-1],c)>-r(s[h],c)?h-1:h}return{left:a,center:l,right:i}}function Eae(){return 0}function dR(e){return e===null?NaN:+e}function*xae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const AR=aS(H3).right;aS(dR).center;function Sae(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Bae(e,t){let n=0,r,a=0,i=0;for(let l of e)l!=null&&(l=+l)>=l&&(r=l-a,a+=r/++n,i+=r*(l-a));if(n>1)return i/(n-1)}function pR(e,t){const n=Bae(e);return n&&Math.sqrt(n)}function HA(e,t){let n,r;if(t===void 0)for(const a of e)a!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)));else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}class hR extends Map{constructor(t,n=_ae){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(vR(this,t))}has(t){return super.has(vR(this,t))}set(t,n){return super.set(kae(this,t),n)}delete(t){return super.delete(Tae(this,t))}}function vR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function kae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Tae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _ae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Pae(e){return e}function Mae(e=H3){if(e===H3)return mR;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function mR(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Dae=Array.prototype,Hae=Dae.slice;function iS(e){return()=>e}const Iae=Math.sqrt(50),Rae=Math.sqrt(10),Nae=Math.sqrt(2);function mC(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=Iae?10:i>=Rae?5:i>=Nae?2:1;let s,c,f;return a<0?(f=Math.pow(10,-a)/l,s=Math.round(e*f),c=Math.round(t*f),s/f<e&&++s,c/f>t&&--c,f=-f):(f=Math.pow(10,a)*l,s=Math.round(e/f),c=Math.round(t/f),s*f<e&&++s,c*f>t&&--c),c<s&&.5<=n&&n<2?mC(e,t,n*2):[s,c,f]}function gC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,l]=r?mC(t,e,n):mC(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(l<0)for(let f=0;f<s;++f)c[f]=(i-f)/-l;else for(let f=0;f<s;++f)c[f]=(i-f)*l;else if(l<0)for(let f=0;f<s;++f)c[f]=(a+f)/-l;else for(let f=0;f<s;++f)c[f]=(a+f)*l;return c}function I3(e,t,n){return t=+t,e=+e,n=+n,mC(e,t,n)[2]}function oS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?I3(t,e,n):I3(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Lae(e,t,n){let r;for(;;){const a=I3(e,t,n);if(a===r||a===0||!isFinite(a))return[e,t];a>0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),r=a}}function $ae(e){return Math.max(1,Math.ceil(Math.log(Sae(e))/Math.LN2)+1)}function gR(){var e=Pae,t=HA,n=$ae;function r(a){Array.isArray(a)||(a=Array.from(a));var i,l=a.length,s,c,f=new Array(l);for(i=0;i<l;++i)f[i]=e(a[i],i,a);var A=t(f),h=A[0],v=A[1],g=n(f,h,v);if(!Array.isArray(g)){const M=v,V=+g;if(t===HA&&([h,v]=Lae(h,v,V)),g=gC(h,v,V),g[0]<=h&&(c=I3(h,v,V)),g[g.length-1]>=v)if(M>=v&&t===HA){const I=I3(h,v,V);isFinite(I)&&(I>0?v=(Math.floor(v/I)+1)*I:I<0&&(v=(Math.ceil(v*-I)+1)/-I))}else g.pop()}for(var b=g.length,C=0,x=b;g[C]<=h;)++C;for(;g[x-1]>v;)--x;(C||x<b)&&(g=g.slice(C,x),b=x-C);var k=new Array(b+1),_;for(i=0;i<=b;++i)_=k[i]=[],_.x0=i>0?g[i-1]:h,_.x1=i<b?g[i]:v;if(isFinite(c)){if(c>0)for(i=0;i<l;++i)(s=f[i])!=null&&h<=s&&s<=v&&k[Math.min(b,Math.floor((s-h)/c))].push(a[i]);else if(c<0){for(i=0;i<l;++i)if((s=f[i])!=null&&h<=s&&s<=v){const M=Math.floor((h-s)*c);k[Math.min(b,M+(g[M]<=s))].push(a[i])}}}else for(i=0;i<l;++i)(s=f[i])!=null&&h<=s&&s<=v&&k[AR(g,s,0,b)].push(a[i]);return k}return r.value=function(a){return arguments.length?(e=typeof a=="function"?a:iS(a),r):e},r.domain=function(a){return arguments.length?(t=typeof a=="function"?a:iS([a[0],a[1]]),r):t},r.thresholds=function(a){return arguments.length?(n=typeof a=="function"?a:iS(Array.isArray(a)?Hae.call(a):a),r):n},r}function Ih(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function yC(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function yR(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?mR:Mae(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,A=Math.log(c),h=.5*Math.exp(2*A/3),v=.5*Math.sqrt(A*h*(c-h)/c)*(f-c/2<0?-1:1),g=Math.max(n,Math.floor(t-f*h/c+v)),b=Math.min(r,Math.floor(t+(c-f)*h/c+v));yR(e,t,g,b,a)}const i=e[t];let l=n,s=r;for(V7(e,n,t),a(e[r],i)>0&&V7(e,n,r);l<s;){for(V7(e,l,s),++l,--s;a(e[l],i)<0;)++l;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?V7(e,n,s):(++s,V7(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function V7(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wR(e,t,n){if(e=Float64Array.from(xae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return yC(e);if(t>=1)return Ih(e);var r,a=(r-1)*t,i=Math.floor(a),l=Ih(yR(e,i).subarray(0,i+1)),s=yC(e.subarray(i+1));return l+(s-l)*(a-i)}}function Pp(e,t,n=dR){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),l=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return l+(s-l)*(a-i)}}function Ns(e,t){let n=0,r=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(++n,r+=a);else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function Fae(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function ic(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Lm(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const CR=Symbol("implicit");function rl(){var e=new hR,t=[],n=[],r=CR;function a(i){let l=e.get(i);if(l===void 0){if(r!==CR)return r;e.set(i,l=t.push(i)-1)}return n[l%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new hR;for(const l of i)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return rl(t,n).unknown(r)},Lm.apply(a,arguments),a}function O7(){var e=rl().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,s=!1,c=0,f=0,A=.5;delete e.unknown;function h(){var v=t().length,g=a<r,b=g?a:r,C=g?r:a;i=(C-b)/Math.max(1,v-c+f*2),s&&(i=Math.floor(i)),b+=(C-b-i*(v-c))*A,l=i*(1-c),s&&(b=Math.round(b),l=Math.round(l));var x=Fae(v).map(function(k){return b+i*k});return n(g?x.reverse():x)}return e.domain=function(v){return arguments.length?(t(v),h()):t()},e.range=function(v){return arguments.length?([r,a]=v,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(v){return[r,a]=v,r=+r,a=+a,s=!0,h()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(v){return arguments.length?(s=!!v,h()):s},e.padding=function(v){return arguments.length?(c=Math.min(1,f=+v),h()):c},e.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),h()):c},e.paddingOuter=function(v){return arguments.length?(f=+v,h()):f},e.align=function(v){return arguments.length?(A=Math.max(0,Math.min(1,v)),h()):A},e.copy=function(){return O7(t(),[r,a]).round(s).paddingInner(c).paddingOuter(f).align(A)},Lm.apply(h(),arguments)}function lS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bR(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Q7(){}var z7=.7,wC=1/z7,R3="\\s*([+-]?\\d+)\\s*",U7="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vae=/^#([0-9a-f]{3,8})$/,Oae=new RegExp(`^rgb\\(${R3},${R3},${R3}\\)$`),Qae=new RegExp(`^rgb\\(${M0},${M0},${M0}\\)$`),zae=new RegExp(`^rgba\\(${R3},${R3},${R3},${U7}\\)$`),Uae=new RegExp(`^rgba\\(${M0},${M0},${M0},${U7}\\)$`),Gae=new RegExp(`^hsl\\(${U7},${M0},${M0}\\)$`),jae=new RegExp(`^hsla\\(${U7},${M0},${M0},${U7}\\)$`),ER={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};lS(Q7,$m,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xR,formatHex:xR,formatHex8:Yae,formatHsl:Wae,formatRgb:SR,toString:SR});function xR(){return this.rgb().formatHex()}function Yae(){return this.rgb().formatHex8()}function Wae(){return PR(this).formatHsl()}function SR(){return this.rgb().formatRgb()}function $m(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Vae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?BR(t):n===3?new vd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?CC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?CC(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=Oae.exec(e))?new vd(t[1],t[2],t[3],1):(t=Qae.exec(e))?new vd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zae.exec(e))?CC(t[1],t[2],t[3],t[4]):(t=Uae.exec(e))?CC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gae.exec(e))?_R(t[1],t[2]/100,t[3]/100,1):(t=jae.exec(e))?_R(t[1],t[2]/100,t[3]/100,t[4]):ER.hasOwnProperty(e)?BR(ER[e]):e==="transparent"?new vd(NaN,NaN,NaN,0):null}function BR(e){return new vd(e>>16&255,e>>8&255,e&255,1)}function CC(e,t,n,r){return r<=0&&(e=t=n=NaN),new vd(e,t,n,r)}function Xae(e){return e instanceof Q7||(e=$m(e)),e?(e=e.rgb(),new vd(e.r,e.g,e.b,e.opacity)):new vd}function N3(e,t,n,r){return arguments.length===1?Xae(e):new vd(e,t,n,r??1)}function vd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lS(vd,N3,bR(Q7,{brighter(e){return e=e==null?wC:Math.pow(wC,e),new vd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?z7:Math.pow(z7,e),new vd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vd(Fm(this.r),Fm(this.g),Fm(this.b),bC(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:kR,formatHex:kR,formatHex8:Kae,formatRgb:TR,toString:TR}));function kR(){return`#${Vm(this.r)}${Vm(this.g)}${Vm(this.b)}`}function Kae(){return`#${Vm(this.r)}${Vm(this.g)}${Vm(this.b)}${Vm((isNaN(this.opacity)?1:this.opacity)*255)}`}function TR(){const e=bC(this.opacity);return`${e===1?"rgb(":"rgba("}${Fm(this.r)}, ${Fm(this.g)}, ${Fm(this.b)}${e===1?")":`, ${e})`}`}function bC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vm(e){return e=Fm(e),(e<16?"0":"")+e.toString(16)}function _R(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mp(e,t,n,r)}function PR(e){if(e instanceof Mp)return new Mp(e.h,e.s,e.l,e.opacity);if(e instanceof Q7||(e=$m(e)),!e)return new Mp;if(e instanceof Mp)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,s=i-a,c=(i+a)/2;return s?(t===i?l=(n-r)/s+(n<r)*6:n===i?l=(r-t)/s+2:l=(t-n)/s+4,s/=c<.5?i+a:2-i-a,l*=60):s=c>0&&c<1?0:l,new Mp(l,s,c,e.opacity)}function Zae(e,t,n,r){return arguments.length===1?PR(e):new Mp(e,t,n,r??1)}function Mp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lS(Mp,Zae,bR(Q7,{brighter(e){return e=e==null?wC:Math.pow(wC,e),new Mp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?z7:Math.pow(z7,e),new Mp(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,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new vd(sS(e>=240?e-240:e+120,a,r),sS(e,a,r),sS(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Mp(MR(this.h),EC(this.s),EC(this.l),bC(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=bC(this.opacity);return`${e===1?"hsl(":"hsla("}${MR(this.h)}, ${EC(this.s)*100}%, ${EC(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MR(e){return e=(e||0)%360,e<0?e+360:e}function EC(e){return Math.max(0,Math.min(1,e||0))}function sS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const uS=e=>()=>e;function Jae(e,t){return function(n){return e+n*t}}function qae(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function eie(e){return(e=+e)==1?DR:function(t,n){return n-t?qae(t,n,e):uS(isNaN(t)?n:t)}}function DR(e,t){var n=t-e;return n?Jae(e,n):uS(isNaN(e)?t:e)}const xC=function e(t){var n=eie(t);function r(a,i){var l=n((a=N3(a)).r,(i=N3(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),f=DR(a.opacity,i.opacity);return function(A){return a.r=l(A),a.g=s(A),a.b=c(A),a.opacity=f(A),a+""}}return r.gamma=e,r}(1);function tie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function nie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),l;for(l=0;l<r;++l)a[l]=dS(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(s){for(l=0;l<r;++l)i[l]=a[l](s);return i}}function aie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iie(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=dS(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var cS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fS=new RegExp(cS.source,"g");function oie(e){return function(){return e}}function lie(e){return function(t){return e(t)+""}}function HR(e,t){var n=cS.lastIndex=fS.lastIndex=0,r,a,i,l=-1,s=[],c=[];for(e=e+"",t=t+"";(r=cS.exec(e))&&(a=fS.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(r=r[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:Dp(r,a)})),n=fS.lastIndex;return n<t.length&&(i=t.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?lie(c[0].x):oie(t):(t=c.length,function(f){for(var A=0,h;A<t;++A)s[(h=c[A]).i]=h.x(f);return s.join("")})}function dS(e,t){var n=typeof t,r;return t==null||n==="boolean"?uS(t):(n==="number"?Dp:n==="string"?(r=$m(t))?(t=r,xC):HR:t instanceof $m?xC:t instanceof Date?aie:nie(t)?tie:Array.isArray(t)?rie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?iie:Dp)(e,t)}function sie(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var IR=180/Math.PI,AS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function RR(e,t,n,r,a,i){var l,s,c;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*IR,skewX:Math.atan(c)*IR,scaleX:l,scaleY:s}}var SC;function uie(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?AS:RR(t.a,t.b,t.c,t.d,t.e,t.f)}function cie(e){return e==null||(SC||(SC=document.createElementNS("http://www.w3.org/2000/svg","g")),SC.setAttribute("transform",e),!(e=SC.transform.baseVal.consolidate()))?AS:(e=e.matrix,RR(e.a,e.b,e.c,e.d,e.e,e.f))}function NR(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,A,h,v,g,b){if(f!==h||A!==v){var C=g.push("translate(",null,t,null,n);b.push({i:C-4,x:Dp(f,h)},{i:C-2,x:Dp(A,v)})}else(h||v)&&g.push("translate("+h+t+v+n)}function l(f,A,h,v){f!==A?(f-A>180?A+=360:A-f>180&&(f+=360),v.push({i:h.push(a(h)+"rotate(",null,r)-2,x:Dp(f,A)})):A&&h.push(a(h)+"rotate("+A+r)}function s(f,A,h,v){f!==A?v.push({i:h.push(a(h)+"skewX(",null,r)-2,x:Dp(f,A)}):A&&h.push(a(h)+"skewX("+A+r)}function c(f,A,h,v,g,b){if(f!==h||A!==v){var C=g.push(a(g)+"scale(",null,",",null,")");b.push({i:C-4,x:Dp(f,h)},{i:C-2,x:Dp(A,v)})}else(h!==1||v!==1)&&g.push(a(g)+"scale("+h+","+v+")")}return function(f,A){var h=[],v=[];return f=e(f),A=e(A),i(f.translateX,f.translateY,A.translateX,A.translateY,h,v),l(f.rotate,A.rotate,h,v),s(f.skewX,A.skewX,h,v),c(f.scaleX,f.scaleY,A.scaleX,A.scaleY,h,v),f=A=null,function(g){for(var b=-1,C=v.length,x;++b<C;)h[(x=v[b]).i]=x.x(g);return h.join("")}}}var fie=NR(uie,"px, ","px)","deg)"),die=NR(cie,", ",")",")"),Aie=1e-12;function LR(e){return((e=Math.exp(e))+1/e)/2}function pie(e){return((e=Math.exp(e))-1/e)/2}function hie(e){return((e=Math.exp(2*e))-1)/(e+1)}const vie=function e(t,n,r){function a(i,l){var s=i[0],c=i[1],f=i[2],A=l[0],h=l[1],v=l[2],g=A-s,b=h-c,C=g*g+b*b,x,k;if(C<Aie)k=Math.log(v/f)/t,x=function(Q){return[s+Q*g,c+Q*b,f*Math.exp(t*Q*k)]};else{var _=Math.sqrt(C),M=(v*v-f*f+r*C)/(2*f*n*_),V=(v*v-f*f-r*C)/(2*v*n*_),I=Math.log(Math.sqrt(M*M+1)-M),$=Math.log(Math.sqrt(V*V+1)-V);k=($-I)/t,x=function(Q){var q=Q*k,te=LR(I),ee=f/(n*_)*(te*hie(t*q+I)-pie(I));return[s+ee*g,c+ee*b,f*te/LR(t*q+I)]}}return x.duration=k*1e3*t/Math.SQRT2,x}return a.rho=function(i){var l=Math.max(.001,+i),s=l*l,c=s*s;return e(l,s,c)},a}(Math.SQRT2,2,4);function mie(e){return function(){return e}}function pS(e){return+e}var $R=[0,1];function D0(e){return e}function hS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:mie(isNaN(t)?NaN:.5)}function gie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yie(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=hS(a,r),i=n(l,i)):(r=hS(r,a),i=n(i,l)),function(s){return i(r(s))}}function wie(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=hS(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(s){var c=AR(e,s,1,r)-1;return i[c](a[c](s))}}function G7(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function BC(){var e=$R,t=$R,n=dS,r,a,i,l=D0,s,c,f;function A(){var v=Math.min(e.length,t.length);return l!==D0&&(l=gie(e[0],e[v-1])),s=v>2?wie:yie,c=f=null,h}function h(v){return v==null||isNaN(v=+v)?i:(c||(c=s(e.map(r),t,n)))(r(l(v)))}return h.invert=function(v){return l(a((f||(f=s(t,e.map(r),Dp)))(v)))},h.domain=function(v){return arguments.length?(e=Array.from(v,pS),A()):e.slice()},h.range=function(v){return arguments.length?(t=Array.from(v),A()):t.slice()},h.rangeRound=function(v){return t=Array.from(v),n=sie,A()},h.clamp=function(v){return arguments.length?(l=v?!0:D0,A()):l!==D0},h.interpolate=function(v){return arguments.length?(n=v,A()):n},h.unknown=function(v){return arguments.length?(i=v,h):i},function(v,g){return r=v,a=g,A()}}function FR(){return BC()(D0,D0)}function Cie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function kC(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function L3(e){return e=kC(Math.abs(e)),e?e[1]:NaN}function bie(e,t){return function(n,r){for(var a=n.length,i=[],l=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[l=(l+1)%e.length];return i.reverse().join(t)}}function Eie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var xie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j7(e){if(!(t=xie.exec(e)))throw new Error("invalid format: "+e);var t;return new vS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}j7.prototype=vS.prototype;function vS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}vS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Sie(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var VR;function Bie(e,t){var n=kC(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(VR=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+kC(e,Math.max(0,t+i-1))[0]}function OR(e,t){var n=kC(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const QR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Cie,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>OR(e*100,t),r:OR,s:Bie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function zR(e){return e}var UR=Array.prototype.map,GR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kie(e){var t=e.grouping===void 0||e.thousands===void 0?zR:bie(UR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?zR:Eie(UR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=j7(h);var v=h.fill,g=h.align,b=h.sign,C=h.symbol,x=h.zero,k=h.width,_=h.comma,M=h.precision,V=h.trim,I=h.type;I==="n"?(_=!0,I="g"):QR[I]||(M===void 0&&(M=12),V=!0,I="g"),(x||v==="0"&&g==="=")&&(x=!0,v="0",g="=");var $=C==="$"?n:C==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",Q=C==="$"?r:/[%p]/.test(I)?l:"",q=QR[I],te=/[defgprs%]/.test(I);M=M===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function ee(z){var U=$,W=Q,Y,X,oe;if(I==="c")W=q(z)+W,z="";else{z=+z;var de=z<0||1/z<0;if(z=isNaN(z)?c:q(Math.abs(z),M),V&&(z=Sie(z)),de&&+z==0&&b!=="+"&&(de=!1),U=(de?b==="("?b:s:b==="-"||b==="("?"":b)+U,W=(I==="s"?GR[8+VR/3]:"")+W+(de&&b==="("?")":""),te){for(Y=-1,X=z.length;++Y<X;)if(oe=z.charCodeAt(Y),48>oe||oe>57){W=(oe===46?a+z.slice(Y+1):z.slice(Y))+W,z=z.slice(0,Y);break}}}_&&!x&&(z=t(z,1/0));var ae=U.length+z.length+W.length,ye=ae<k?new Array(k-ae+1).join(v):"";switch(_&&x&&(z=t(ye+z,ye.length?k-W.length:1/0),ye=""),g){case"<":z=U+z+W+ye;break;case"=":z=U+ye+z+W;break;case"^":z=ye.slice(0,ae=ye.length>>1)+U+z+W+ye.slice(ae);break;default:z=ye+U+z+W;break}return i(z)}return ee.toString=function(){return h+""},ee}function A(h,v){var g=f((h=j7(h),h.type="f",h)),b=Math.max(-8,Math.min(8,Math.floor(L3(v)/3)))*3,C=Math.pow(10,-b),x=GR[8+b/3];return function(k){return g(C*k)+x}}return{format:f,formatPrefix:A}}var TC,Y7,jR;Tie({thousands:",",grouping:[3],currency:["$",""]});function Tie(e){return TC=kie(e),Y7=TC.format,jR=TC.formatPrefix,TC}function _ie(e){return Math.max(0,-L3(Math.abs(e)))}function Pie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(L3(t)/3)))*3-L3(Math.abs(e)))}function Mie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,L3(t)-L3(e))+1}function Die(e,t,n,r){var a=oS(e,t,n),i;switch(r=j7(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Pie(a,l))&&(r.precision=i),jR(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Mie(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=_ie(a))&&(r.precision=i-(r.type==="%")*2);break}}return Y7(r)}function _C(e){var t=e.domain;return e.ticks=function(n){var r=t();return gC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Die(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,l=r[a],s=r[i],c,f,A=10;for(s<l&&(f=l,l=s,s=f,f=a,a=i,i=f);A-- >0;){if(f=I3(l,s,n),f===c)return r[a]=l,r[i]=s,t(r);if(f>0)l=Math.floor(l/f)*f,s=Math.ceil(s/f)*f;else if(f<0)l=Math.ceil(l*f)/f,s=Math.floor(s*f)/f;else break;c=f}return e},e}function Kr(){var e=FR();return e.copy=function(){return G7(e,Kr())},Lm.apply(e,arguments),_C(e)}function tv(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,pS),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return tv(e).unknown(t)},e=arguments.length?Array.from(e,pS):[0,1],_C(n)}function YR(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return i<a&&(l=n,n=r,r=l,l=a,a=i,i=l),e[n]=t.floor(a),e[r]=t.ceil(i),e}function WR(e){return Math.log(e)}function XR(e){return Math.exp(e)}function Hie(e){return-Math.log(-e)}function Iie(e){return-Math.exp(-e)}function Rie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Nie(e){return e===10?Rie:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Lie(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function KR(e){return(t,n)=>-e(-t,n)}function $ie(e){const t=e(WR,XR),n=t.domain;let r=10,a,i;function l(){return a=Lie(r),i=Nie(r),n()[0]<0?(a=KR(a),i=KR(i),e(Hie,Iie)):e(WR,XR),t}return t.base=function(s){return arguments.length?(r=+s,l()):r},t.domain=function(s){return arguments.length?(n(s),l()):n()},t.ticks=s=>{const c=n();let f=c[0],A=c[c.length-1];const h=A<f;h&&([f,A]=[A,f]);let v=a(f),g=a(A),b,C;const x=s==null?10:+s;let k=[];if(!(r%1)&&g-v<x){if(v=Math.floor(v),g=Math.ceil(g),f>0){for(;v<=g;++v)for(b=1;b<r;++b)if(C=v<0?b/i(-v):b*i(v),!(C<f)){if(C>A)break;k.push(C)}}else for(;v<=g;++v)for(b=r-1;b>=1;--b)if(C=v>0?b/i(-v):b*i(v),!(C<f)){if(C>A)break;k.push(C)}k.length*2<x&&(k=gC(f,A,x))}else k=gC(v,g,Math.min(g-v,x)).map(i);return h?k.reverse():k},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=j7(c)).precision==null&&(c.trim=!0),c=Y7(c)),s===1/0)return c;const f=Math.max(1,r*s/t.ticks().length);return A=>{let h=A/i(Math.round(a(A)));return h*r<r-.5&&(h*=r),h<=f?c(A):""}},t.nice=()=>n(YR(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Om(){const e=$ie(BC()).domain([1,10]);return e.copy=()=>G7(e,Om()).base(e.base()),Lm.apply(e,arguments),e}function ZR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function JR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Fie(e){var t=1,n=e(ZR(t),JR(t));return n.constant=function(r){return arguments.length?e(ZR(t=+r),JR(t)):t},_C(n)}function nv(){var e=Fie(BC());return e.copy=function(){return G7(e,nv()).constant(e.constant())},Lm.apply(e,arguments)}function qR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Vie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Oie(e){return e<0?-e*e:e*e}function Qie(e){var t=e(D0,D0),n=1;function r(){return n===1?e(D0,D0):n===.5?e(Vie,Oie):e(qR(n),qR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},_C(t)}function mS(){var e=Qie(BC());return e.copy=function(){return G7(e,mS()).exponent(e.exponent())},Lm.apply(e,arguments),e}function $3(){return mS.apply(null,arguments).exponent(.5)}const gS=new Date,yS=new Date;function su(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const l=a(i),s=a.ceil(i);return i-l<s-i?l:s},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<l)||!(s>0))return c;let f;do c.push(f=new Date(+i)),t(i,s),e(i);while(f<i&&i<l);return c},a.filter=i=>su(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,s)=>{if(l>=l)if(s<0)for(;++s<=0;)for(;t(l,-1),!i(l););else for(;--s>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(gS.setTime(+i),yS.setTime(+l),e(gS),e(yS),Math.floor(n(gS,yS))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const PC=su(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);PC.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?su(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):PC),PC.range;const Rh=1e3,IA=Rh*60,Nh=IA*60,Lh=Nh*24,wS=Lh*7,eN=Lh*30,CS=Lh*365,F3=su(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Rh)},(e,t)=>(t-e)/Rh,e=>e.getUTCSeconds());F3.range;const bS=su(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rh)},(e,t)=>{e.setTime(+e+t*IA)},(e,t)=>(t-e)/IA,e=>e.getMinutes());bS.range,su(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*IA)},(e,t)=>(t-e)/IA,e=>e.getUTCMinutes()).range;const ES=su(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rh-e.getMinutes()*IA)},(e,t)=>{e.setTime(+e+t*Nh)},(e,t)=>(t-e)/Nh,e=>e.getHours());ES.range,su(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Nh)},(e,t)=>(t-e)/Nh,e=>e.getUTCHours()).range;const W7=su(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*IA)/Lh,e=>e.getDate()-1);W7.range;const xS=su(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lh,e=>e.getUTCDate()-1);xS.range,su(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lh,e=>Math.floor(e/Lh)).range;function Qm(e){return su(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*IA)/wS)}const MC=Qm(0),DC=Qm(1),zie=Qm(2),Uie=Qm(3),V3=Qm(4),Gie=Qm(5),jie=Qm(6);MC.range,DC.range,zie.range,Uie.range,V3.range,Gie.range,jie.range;function zm(e){return su(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/wS)}const tN=zm(0),HC=zm(1),Yie=zm(2),Wie=zm(3),O3=zm(4),Xie=zm(5),Kie=zm(6);tN.range,HC.range,Yie.range,Wie.range,O3.range,Xie.range,Kie.range;const SS=su(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());SS.range,su(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const $h=su(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$h.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:su(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),$h.range;const Um=su(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Um.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:su(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Um.range;function Zie(e,t,n,r,a,i){const l=[[F3,1,Rh],[F3,5,5*Rh],[F3,15,15*Rh],[F3,30,30*Rh],[i,1,IA],[i,5,5*IA],[i,15,15*IA],[i,30,30*IA],[a,1,Nh],[a,3,3*Nh],[a,6,6*Nh],[a,12,12*Nh],[r,1,Lh],[r,2,2*Lh],[n,1,wS],[t,1,eN],[t,3,3*eN],[e,1,CS]];function s(f,A,h){const v=A<f;v&&([f,A]=[A,f]);const g=h&&typeof h.range=="function"?h:c(f,A,h),b=g?g.range(f,+A+1):[];return v?b.reverse():b}function c(f,A,h){const v=Math.abs(A-f)/h,g=aS(([,,x])=>x).right(l,v);if(g===l.length)return e.every(oS(f/CS,A/CS,h));if(g===0)return PC.every(Math.max(oS(f,A,h),1));const[b,C]=l[v/l[g-1][2]<l[g][2]/v?g-1:g];return b.every(C)}return[s,c]}const[Jie,qie]=Zie($h,SS,MC,W7,ES,bS);function BS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function X7(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function eoe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,s=e.months,c=e.shortMonths,f=K7(a),A=Z7(a),h=K7(i),v=Z7(i),g=K7(l),b=Z7(l),C=K7(s),x=Z7(s),k=K7(c),_=Z7(c),M={a:de,A:ae,b:ye,B:Ce,c:null,d:lN,e:lN,f:Eoe,g:Hoe,G:Roe,H:woe,I:Coe,j:boe,L:sN,m:xoe,M:Soe,p:ue,q:me,Q:pN,s:hN,S:Boe,u:koe,U:Toe,V:_oe,w:Poe,W:Moe,x:null,X:null,y:Doe,Y:Ioe,Z:Noe,"%":AN},V={a:Ne,A:De,b:Le,B:Ve,c:null,d:cN,e:cN,f:Voe,g:Koe,G:Joe,H:Loe,I:$oe,j:Foe,L:fN,m:Ooe,M:Qoe,p:je,q:ft,Q:pN,s:hN,S:zoe,u:Uoe,U:Goe,V:joe,w:Yoe,W:Woe,x:null,X:null,y:Xoe,Y:Zoe,Z:qoe,"%":AN},I={a:ee,A:z,b:U,B:W,c:Y,d:iN,e:iN,f:voe,g:aN,G:rN,H:oN,I:oN,j:doe,L:hoe,m:foe,M:Aoe,p:te,q:coe,Q:goe,s:yoe,S:poe,u:ioe,U:ooe,V:loe,w:aoe,W:soe,x:X,X:oe,y:aN,Y:rN,Z:uoe,"%":moe};M.x=$(n,M),M.X=$(r,M),M.c=$(t,M),V.x=$(n,V),V.X=$(r,V),V.c=$(t,V);function $(ze,Je){return function(ut){var et=[],yt=-1,wt=0,Xt=ze.length,sr,ar,Ha;for(ut instanceof Date||(ut=new Date(+ut));++yt<Xt;)ze.charCodeAt(yt)===37&&(et.push(ze.slice(wt,yt)),(ar=nN[sr=ze.charAt(++yt)])!=null?sr=ze.charAt(++yt):ar=sr==="e"?" ":"0",(Ha=Je[sr])&&(sr=Ha(ut,ar)),et.push(sr),wt=yt+1);return et.push(ze.slice(wt,yt)),et.join("")}}function Q(ze,Je){return function(ut){var et=X7(1900,void 0,1),yt=q(et,ze,ut+="",0),wt,Xt;if(yt!=ut.length)return null;if("Q"in et)return new Date(et.Q);if("s"in et)return new Date(et.s*1e3+("L"in et?et.L:0));if(Je&&!("Z"in et)&&(et.Z=0),"p"in et&&(et.H=et.H%12+et.p*12),et.m===void 0&&(et.m="q"in et?et.q:0),"V"in et){if(et.V<1||et.V>53)return null;"w"in et||(et.w=1),"Z"in et?(wt=kS(X7(et.y,0,1)),Xt=wt.getUTCDay(),wt=Xt>4||Xt===0?HC.ceil(wt):HC(wt),wt=xS.offset(wt,(et.V-1)*7),et.y=wt.getUTCFullYear(),et.m=wt.getUTCMonth(),et.d=wt.getUTCDate()+(et.w+6)%7):(wt=BS(X7(et.y,0,1)),Xt=wt.getDay(),wt=Xt>4||Xt===0?DC.ceil(wt):DC(wt),wt=W7.offset(wt,(et.V-1)*7),et.y=wt.getFullYear(),et.m=wt.getMonth(),et.d=wt.getDate()+(et.w+6)%7)}else("W"in et||"U"in et)&&("w"in et||(et.w="u"in et?et.u%7:"W"in et?1:0),Xt="Z"in et?kS(X7(et.y,0,1)).getUTCDay():BS(X7(et.y,0,1)).getDay(),et.m=0,et.d="W"in et?(et.w+6)%7+et.W*7-(Xt+5)%7:et.w+et.U*7-(Xt+6)%7);return"Z"in et?(et.H+=et.Z/100|0,et.M+=et.Z%100,kS(et)):BS(et)}}function q(ze,Je,ut,et){for(var yt=0,wt=Je.length,Xt=ut.length,sr,ar;yt<wt;){if(et>=Xt)return-1;if(sr=Je.charCodeAt(yt++),sr===37){if(sr=Je.charAt(yt++),ar=I[sr in nN?Je.charAt(yt++):sr],!ar||(et=ar(ze,ut,et))<0)return-1}else if(sr!=ut.charCodeAt(et++))return-1}return et}function te(ze,Je,ut){var et=f.exec(Je.slice(ut));return et?(ze.p=A.get(et[0].toLowerCase()),ut+et[0].length):-1}function ee(ze,Je,ut){var et=g.exec(Je.slice(ut));return et?(ze.w=b.get(et[0].toLowerCase()),ut+et[0].length):-1}function z(ze,Je,ut){var et=h.exec(Je.slice(ut));return et?(ze.w=v.get(et[0].toLowerCase()),ut+et[0].length):-1}function U(ze,Je,ut){var et=k.exec(Je.slice(ut));return et?(ze.m=_.get(et[0].toLowerCase()),ut+et[0].length):-1}function W(ze,Je,ut){var et=C.exec(Je.slice(ut));return et?(ze.m=x.get(et[0].toLowerCase()),ut+et[0].length):-1}function Y(ze,Je,ut){return q(ze,t,Je,ut)}function X(ze,Je,ut){return q(ze,n,Je,ut)}function oe(ze,Je,ut){return q(ze,r,Je,ut)}function de(ze){return l[ze.getDay()]}function ae(ze){return i[ze.getDay()]}function ye(ze){return c[ze.getMonth()]}function Ce(ze){return s[ze.getMonth()]}function ue(ze){return a[+(ze.getHours()>=12)]}function me(ze){return 1+~~(ze.getMonth()/3)}function Ne(ze){return l[ze.getUTCDay()]}function De(ze){return i[ze.getUTCDay()]}function Le(ze){return c[ze.getUTCMonth()]}function Ve(ze){return s[ze.getUTCMonth()]}function je(ze){return a[+(ze.getUTCHours()>=12)]}function ft(ze){return 1+~~(ze.getUTCMonth()/3)}return{format:function(ze){var Je=$(ze+="",M);return Je.toString=function(){return ze},Je},parse:function(ze){var Je=Q(ze+="",!1);return Je.toString=function(){return ze},Je},utcFormat:function(ze){var Je=$(ze+="",V);return Je.toString=function(){return ze},Je},utcParse:function(ze){var Je=Q(ze+="",!0);return Je.toString=function(){return ze},Je}}}var nN={"-":"",_:" ",0:"0"},Nu=/^\s*\d+/,toe=/^%/,noe=/[\\^$*+?|[\]().{}]/g;function mi(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function roe(e){return e.replace(noe,"\\$&")}function K7(e){return new RegExp("^(?:"+e.map(roe).join("|")+")","i")}function Z7(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function aoe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ioe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ooe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function loe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function soe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=Nu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function aN(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function uoe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function coe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function foe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function iN(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function doe(e,t,n){var r=Nu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function oN(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Aoe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function poe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hoe(e,t,n){var r=Nu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function voe(e,t,n){var r=Nu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function moe(e,t,n){var r=toe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function goe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function yoe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lN(e,t){return mi(e.getDate(),t,2)}function woe(e,t){return mi(e.getHours(),t,2)}function Coe(e,t){return mi(e.getHours()%12||12,t,2)}function boe(e,t){return mi(1+W7.count($h(e),e),t,3)}function sN(e,t){return mi(e.getMilliseconds(),t,3)}function Eoe(e,t){return sN(e,t)+"000"}function xoe(e,t){return mi(e.getMonth()+1,t,2)}function Soe(e,t){return mi(e.getMinutes(),t,2)}function Boe(e,t){return mi(e.getSeconds(),t,2)}function koe(e){var t=e.getDay();return t===0?7:t}function Toe(e,t){return mi(MC.count($h(e)-1,e),t,2)}function uN(e){var t=e.getDay();return t>=4||t===0?V3(e):V3.ceil(e)}function _oe(e,t){return e=uN(e),mi(V3.count($h(e),e)+($h(e).getDay()===4),t,2)}function Poe(e){return e.getDay()}function Moe(e,t){return mi(DC.count($h(e)-1,e),t,2)}function Doe(e,t){return mi(e.getFullYear()%100,t,2)}function Hoe(e,t){return e=uN(e),mi(e.getFullYear()%100,t,2)}function Ioe(e,t){return mi(e.getFullYear()%1e4,t,4)}function Roe(e,t){var n=e.getDay();return e=n>=4||n===0?V3(e):V3.ceil(e),mi(e.getFullYear()%1e4,t,4)}function Noe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mi(t/60|0,"0",2)+mi(t%60,"0",2)}function cN(e,t){return mi(e.getUTCDate(),t,2)}function Loe(e,t){return mi(e.getUTCHours(),t,2)}function $oe(e,t){return mi(e.getUTCHours()%12||12,t,2)}function Foe(e,t){return mi(1+xS.count(Um(e),e),t,3)}function fN(e,t){return mi(e.getUTCMilliseconds(),t,3)}function Voe(e,t){return fN(e,t)+"000"}function Ooe(e,t){return mi(e.getUTCMonth()+1,t,2)}function Qoe(e,t){return mi(e.getUTCMinutes(),t,2)}function zoe(e,t){return mi(e.getUTCSeconds(),t,2)}function Uoe(e){var t=e.getUTCDay();return t===0?7:t}function Goe(e,t){return mi(tN.count(Um(e)-1,e),t,2)}function dN(e){var t=e.getUTCDay();return t>=4||t===0?O3(e):O3.ceil(e)}function joe(e,t){return e=dN(e),mi(O3.count(Um(e),e)+(Um(e).getUTCDay()===4),t,2)}function Yoe(e){return e.getUTCDay()}function Woe(e,t){return mi(HC.count(Um(e)-1,e),t,2)}function Xoe(e,t){return mi(e.getUTCFullYear()%100,t,2)}function Koe(e,t){return e=dN(e),mi(e.getUTCFullYear()%100,t,2)}function Zoe(e,t){return mi(e.getUTCFullYear()%1e4,t,4)}function Joe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?O3(e):O3.ceil(e),mi(e.getUTCFullYear()%1e4,t,4)}function qoe(){return"+0000"}function AN(){return"%"}function pN(e){return+e}function hN(e){return Math.floor(+e/1e3)}var Q3,vN;ele({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ele(e){return Q3=eoe(e),vN=Q3.format,Q3.parse,Q3.utcFormat,Q3.utcParse,Q3}function tle(e){return new Date(e)}function nle(e){return e instanceof Date?+e:+new Date(+e)}function mN(e,t,n,r,a,i,l,s,c,f){var A=FR(),h=A.invert,v=A.domain,g=f(".%L"),b=f(":%S"),C=f("%I:%M"),x=f("%I %p"),k=f("%a %d"),_=f("%b %d"),M=f("%B"),V=f("%Y");function I($){return(c($)<$?g:s($)<$?b:l($)<$?C:i($)<$?x:r($)<$?a($)<$?k:_:n($)<$?M:V)($)}return A.invert=function($){return new Date(h($))},A.domain=function($){return arguments.length?v(Array.from($,nle)):v().map(tle)},A.ticks=function($){var Q=v();return e(Q[0],Q[Q.length-1],$??10)},A.tickFormat=function($,Q){return Q==null?I:f(Q)},A.nice=function($){var Q=v();return(!$||typeof $.range!="function")&&($=t(Q[0],Q[Q.length-1],$??10)),$?v(YR(Q,$)):A},A.copy=function(){return G7(A,mN(e,t,n,r,a,i,l,s,c,f))},A}function rle(){return Lm.apply(mN(Jie,qie,$h,SS,MC,W7,ES,bS,F3,vN).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gN(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="continuous"}function yN(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="categorical"}function wN(e){return yN(e)||gN(e)}const z3="#110529",ale="solid",TS=1,J7="21",Hp=3,U3={min:3,max:10},CN={color:"#ccc",lineShape:ale,dotShape:J7},ile="light";function ole(e){const t=1/(e.length-1);return Kr().domain(e.map((n,r)=>r*t)).range(e)}function bN(e,t){const n=Gi[e].colors,r=t.length>1?1/(t.length-1):0,a=ole(n),i=rS(e),l=t.reduce((s,c,f)=>(s[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:D3[f%D3.length],dotShape:F7[f%F7.length]}},s),{});return{type:"categorical",palette:e,naAes:CN,order:t,mapping:l}}function Gm(e){return{type:"continuous",palette:e,naAes:CN,range:null,midPoint:null,log:!1}}function G3(e){return bN(ile,e)}function EN(e,t,n,r){var i;if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??G3(n?((i=e[n])==null?void 0:i.list)??[]:[]);return{order:a.order,inheritedAes:a.order.reduce((l,s)=>{const c=a.mapping[s].aes;return l[s]={},r.fill&&(l[s].fillColor=c.color,l[s].dotFill=c.color),r.stroke&&(l[s].lineColor=c.color),r.dotShape&&(l[s].dotShape=c.dotShape),r.lineType&&(l[s].lineShape=c.lineShape),l},{})}}function xN(e,t,n){var i;const r=n[e];if(r&&!yN(r))return{};const a=r??G3(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((l,s)=>{const c=a.mapping[s].aes;return l[s]={fillColor:c.color,lineColor:c.color,dotFill:c.color,dotShape:c.dotShape,dotSize:Hp,lineWidth:TS},l},{})}function _S(e,t,n,r){var i;const a=n[e]??G3(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((l,s)=>{const c=a.mapping[s].aes;return l[s]=c[r],l},{})}const lle={},sle={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function ule(e,t){return d.openBlock(),d.createElementBlock("svg",sle,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 2.25H12V3.75H15.25V11.25H13.5C12.8096 11.25 12.25 11.8096 12.25 12.5V21H13.75V12.75H18.25V16.25H17.5C16.8096 16.25 16.25 16.8096 16.25 17.5V21H17.75V17.75H20.25V21H21.75V17.5C21.75 16.8096 21.1904 16.25 20.5 16.25H19.75V12.5C19.75 11.8096 19.1904 11.25 18.5 11.25H16.75V3.5C16.75 2.80964 16.1904 2.25 15.5 2.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5 3.75H7.25V7.25H8.5C9.19036 7.25 9.75 7.80964 9.75 8.5V21H8.25V8.75H4.75V21H3.25V8.5C3.25 7.80965 3.80964 7.25 4.5 7.25H5.75V3.5C5.75 2.80964 6.30964 2.25 7 2.25H10.5V3.75Z",fill:"#07AD3E"},null,-1)]))}const SN=mr(lle,[["render",ule]]),IC="pl7.app/graph/thresholds",rv="pl7.app/graph/axis/lowerLimit",av="pl7.app/graph/axis/upperLimit",iv="pl7.app/graph/axis/symmetricRange",j3="pl7.app/graph/palette",RC="pl7.app/axisNature",cle="pl7.app/isSubset";function fle(e,t){return t==="discrete"?e&&Y3[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&jm[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const Y3={box:["box"],box_binnedDots:["box","binnedDots"],box_jitteredDots:["box","jitteredDots"],violin:["violin"],violin_binnedDots:["violin","binnedDots"],violin_jitteredDots:["violin","jitteredDots"],binnedDots:["binnedDots"],jitteredDots:["jitteredDots"],bar:["bar"],bar_line:["bar","line"],bar_errorbar:["bar","errorbar"],stackedBar:["stackedBar"],line:["line"],line_jitteredDots:["line","jitteredDots"],line_binnedDots:["line","binnedDots"],line_errorbar:["line","errorbar"],errorbar:["errorbar"],sina:["sina"],logo:["logo"]},jm={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},BN={dots:["dots"],curve_dots:["curve","dots"]},dle={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},Ale={bins:["bins"]},H0={box:"Boxplot",binnedDots:"Binned Dots",jitteredDots:"Jittered Dots",violin:"Violins",bar:"Bar",stackedBar:"Stacked Bar",line:"Line",errorbar:"Error Bar",sina:"Sina",logo:"Logo Plot",dots:"Scatter Plot",curve:"Curve",heatmap:"Heatmap",heatmapClustered:"Heatmap + Dendro",dendro:"Dendrogram",bins:"Histogram",bubble:"Bubble plot"};function ple(e,t){var r,a,i,l,s,c,f,A,h,v,g,b,C,x,k,_,M,V,I,$,Q,q,te,ee,z,U,W,Y,X,oe,de;if(e==="discrete"){const ae=t;return{overall:{data:{testMethod:((a=(r=ae==null?void 0:ae.overall)==null?void 0:r.data)==null?void 0:a.testMethod)??null},validity:{testMethod:((l=(i=ae==null?void 0:ae.overall)==null?void 0:i.validity)==null?void 0:l.testMethod)??!0}},referenceGroup:{data:{testMethod:((c=(s=ae==null?void 0:ae.referenceGroup)==null?void 0:s.data)==null?void 0:c.testMethod)??null,referenceGroup:((A=(f=ae==null?void 0:ae.referenceGroup)==null?void 0:f.data)==null?void 0:A.referenceGroup)??null,correctionMethod:((v=(h=ae==null?void 0:ae.referenceGroup)==null?void 0:h.data)==null?void 0:v.correctionMethod)??"Bonferroni",format:((b=(g=ae==null?void 0:ae.referenceGroup)==null?void 0:g.data)==null?void 0:b.format)??"significance",ns:((x=(C=ae==null?void 0:ae.referenceGroup)==null?void 0:C.data)==null?void 0:x.ns)??!1},validity:{testMethod:((_=(k=ae==null?void 0:ae.referenceGroup)==null?void 0:k.validity)==null?void 0:_.testMethod)??!0,referenceGroup:((V=(M=ae==null?void 0:ae.referenceGroup)==null?void 0:M.validity)==null?void 0:V.referenceGroup)??!0}},pairwise:{data:{testMethod:(($=(I=ae==null?void 0:ae.pairwise)==null?void 0:I.data)==null?void 0:$.testMethod)??null,correctionMethod:((q=(Q=ae==null?void 0:ae.pairwise)==null?void 0:Q.data)==null?void 0:q.correctionMethod)??"Bonferroni",format:((ee=(te=ae==null?void 0:ae.pairwise)==null?void 0:te.data)==null?void 0:ee.format)??"significance",ns:((U=(z=ae==null?void 0:ae.pairwise)==null?void 0:z.data)==null?void 0:U.ns)??!1},validity:{testMethod:((Y=(W=ae==null?void 0:ae.pairwise)==null?void 0:W.validity)==null?void 0:Y.testMethod)??!0}}}}const n=t;return{trend:{on:((X=n==null?void 0:n.trend)==null?void 0:X.on)??!1,trim:((oe=n==null?void 0:n.trend)==null?void 0:oe.trim)??!1,showLegend:((de=n==null?void 0:n.trend)==null?void 0:de.showLegend)??!0}}}function PS(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function W3(e){return typeof e=="object"&&e!==null&&"type"in e}function Ym(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e}const hle=()=>({bubble:{NAValueAs:0,strokeColor:null,minRadius:3,maxRadius:38,normalizationDirection:"row",normalizationMethod:"standardScaling"},bins:{fillColor:null,opacity:1},dendro:{dotFill:Ii,dotShape:P0,dotSize:Hp,lineColor:Ii,mode:"normal",leavesMode:"normal",showTable:!1,showLegend:!0},heatmap:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling"},heatmapClustered:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling",dendrogramX:!0,dendrogramY:!0,disableClusteringX:!1,disableClusteringY:!1},dots:{dotFill:null,dotShape:null,dotSize:Hp},curve:{lineColor:Ii,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:z3,dotShape:P0,lineType:vC,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:z3,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:P0,lineColor:z3,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:z3,lineType:vC,opacity:1,trim:!1,showQuartiles:!1,quartilesLineStyle:"dashed",medianLineStyle:"solid"},bar:{fillColor:null,lineColor:z3,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:z3,opacity:1,normalize:!1},line:{pointsValues:"mean",lineColor:null,dotShape:P0,lineType:vC,dotFill:null,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:P0,dotFill:null,opacity:1},sina:{dotFill:null,dotShape:P0,opacity:1,showOutliers:!0},logo:{normalize:!1,opacity:1}});function vle(e){const t=hle();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const mle=()=>({title:{value:"Graph 1",position:"center",mode:"auto",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:null,axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3,binsCount:10}});function kN(e){return e==="full"||e==="none"}function gle(e,t){var a;const n=mle();if(!t)return n;function r(i){return!i||e==="heatmap"&&!kN(i)?"full":e!=="heatmap"&&kN(i)&&i==="none"?"empty":i}return{title:{...n.title,...t.title},axisX:{...n.axisX,...t.axisX},axisY:{...n.axisY,...t.axisY},legend:{...n.legend,...t.legend},other:{...n.other,...t.other,frame:r((a=t.other)==null?void 0:a.frame)}}}const Sf={box:Nne,box_binnedDots:Vne,box_jitteredDots:Une,binnedDots:Wne,jitteredDots:Jne,violin:nre,violin_binnedDots:ore,violin_jitteredDots:cre,bar:iR,bar_line:oR,bar_errorbar:wre,stackedBar:xre,line:lR,line_binnedDots:Mre,line_jitteredDots:sR,line_errorbar:$re,errorbar:oR,sina:Qre,logo:qre,dots:jre,curve:lR,curve_dots:sR,heatmap:uR,heatmapClustered:SN,dendro:SN,bins:iR,bubble:uR},NC=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],TN=[{value:"BenjaminiHochberg",text:"Benjamini-Hochberg"},{value:"BenjaminiYekutieli",text:"Benjamini-Yekutieli"},{value:"Bonferroni",text:"Bonferroni"},{value:"Hochberg",text:"Hochberg"},{value:"Holm",text:"Holm"},{value:"Hommel",text:"Hommel"},{value:"none",text:"None"}],_N=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}],PN=600,MN=350,yle=400,wle=250;function DN(e,t,n){var a,i,l,s,c,f;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((s=(l=e.components)==null?void 0:l[n])!=null&&s.selectorStates.length))return["single common group"];const r=(c=e.components)==null?void 0:c[n].selectorStates[0].selectedSource;return((f=t[r])==null?void 0:f.list)??[]}function Cle(e){const t=[];if(e.overall.data.testMethod&&e.overall.validity.testMethod&&t.push({type:"stat",statType:"overall",testMethod:e.overall.data.testMethod}),e.referenceGroup.data.testMethod&&e.referenceGroup.validity.testMethod&&e.referenceGroup.validity.referenceGroup){const n={type:"stat",statType:"referenceGroup",testMethod:e.referenceGroup.data.testMethod,referenceGroup:e.referenceGroup.data.referenceGroup,format:e.referenceGroup.data.format,ns:e.referenceGroup.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}if(e.pairwise.data.testMethod&&e.pairwise.validity.testMethod){const n={type:"stat",statType:"pairwise",testMethod:e.pairwise.data.testMethod,format:e.pairwise.data.format,ns:e.pairwise.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}return t}function HN(e,t,n,r,a){const i=[],l=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function c(f,A=!1){return f===null?s?{type:"secondaryGrouping"}:l&&!A?{type:"primaryGrouping"}:{type:"secondaryGrouping"}:f}return e.forEach(f=>{var A;if(f==="box"){const h=t[f];i.push({type:"box",aes:{showOutliers:h.showOutliers,dotShape:h.dotShape,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="binnedDots"){const h=t[f];i.push({type:"binnedDots",aes:{showOutliers:h.showOutliers,fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="jitteredDots"){const h=t[f];i.push({type:"dot",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape,lineColor:h.lineColor,opacity:h.opacity}})}if(f==="violin"){const h=t[f];i.push({type:"violin",stat:{trim:h.trim},aes:{showQuartiles:h.showQuartiles,medianLineStyle:h.medianLineStyle,quartilesLineStyle:h.quartilesLineStyle,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="bar"){const h=t[f];i.push({type:"bar",height:h.height,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="stackedBar"){const h=t[f];i.push({type:"stackedBar",normalize:h.normalize,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="line"){const h=t[f];i.push({type:"line",pointsValues:h.pointsValues,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),lineShape:h.lineType,dotShape:h.dotShape,opacity:h.opacity}})}if(f==="errorbar"){const h=t[f];i.push({type:"errorbar",pointsValues:h.pointsValues,interval:h.interval,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),dotShape:h.dotShape,opacity:h.opacity}})}if(f==="sina"){const h=t[f];i.push({type:"sina",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape}})}if(f==="logo"&&s){const h=t[f],g=((A=a.getSourceInfo(r.components.secondaryGrouping.selectorStates[0].selectedSource).spec.domain)==null?void 0:A["pl7.app/alphabet"])==="aminoacid";i.push({type:"logo",normalize:h.normalize,aes:{opacity:h.opacity,dotFill:g?Cae:wae}})}}),l&&!s&&i.push(...Cle(n)),i}function ble(e,t,n){if(e){const r=Ym(t)?t:{column:e.value,range:U3},a=[1/0,-1/0];return n.values[e.value].forEach(i=>{const l=Number(i);l<a[0]&&(a[0]=l),l>a[1]&&(a[1]=l)}),{columnName:e,domain:a,range:[r.range.min,r.range.max]}}return Ym(t)?Hp:t??Hp}function IN(e,t,n,r){const a=n.find(l=>l.value===e);let i=[1/0,-1/0];if(a){const{range:l,palette:s,midPoint:c,log:f}=t,A=(l==null?void 0:l.minValue)===null||(l==null?void 0:l.minValue)===void 0,h=(l==null?void 0:l.maxValue)===null||(l==null?void 0:l.maxValue)===void 0;if((A||h)&&r.values[a.value].forEach(v=>{const g=Number(v);A&&g<i[0]&&(i[0]=g),h&&g>i[1]&&(i[1]=g)}),A||(i[0]=l==null?void 0:l.minValue),h||(i[1]=l==null?void 0:l.maxValue),c!=null){const v=Math.max(Math.abs(c-i[0]),Math.abs(c-i[1]));i[0]=c-v,i[1]=c+v}return{columnName:a,domain:i,range:Gi[s].colors,type:f?"log":"linear"}}return Ii}function RN(e,t,n,r,a,i,l=[]){var g,b;const s=[];function c(C,x,k,_=!1){var M;if(x.length){const V=x.length?(M=i.getSourceInfo(x[0]))==null?void 0:M.type:void 0,I=V==="String"||!_?{type:"grouping",value:x[0]}:IN(x[0],Gm(ev),l,n),$=a[x[0]];return C===null||V==="String"||!_||!gN($)?I:IN(x[0],$,l,n)}return typeof C=="object"?k:C}const f=r.components.grouping.selectorStates.map(C=>C.selectedSource),A=((g=r.components.shape)==null?void 0:g.selectorStates.map(C=>C.selectedSource))??[],h=(b=r.components.size)==null?void 0:b.selectorStates.map(C=>C.selectedSource)[0],v=h?l.find(C=>C.value===h):void 0;return e.forEach(C=>{if(C==="dots"){const x=t[C];s.push({type:"dots",aes:{dotFill:c(x.dotFill,f,Ii,!0),dotShape:c(x.dotShape,A,P0),dotSize:ble(v,x.dotSize,n)}})}if(C==="curve"){const x=t[C];s.push({type:"curve",smoothing:x.smoothing,aes:{lineColor:c(x.lineColor,f,Ii,!0)}})}}),s}const Ele=6,xle=5;function NN(e,t=[]){return e!==null?e:t.length>Ele&&t.some(({label:n})=>n.length>xle)?"45deg":"center"}function X3(e,t,n=[]){let r={},a={};t==="discrete"&&(r.labelsPosition=NN(e.axisX.labelsRotation,n),r.linesBetweenCategories=e.axisX.linesBetweenCategories,a.scale=e.axisY.scale),(t==="discrete"||t==="scatterplot"||t==="scatterplot-umap")&&(r.showGrid=e.axisX.gridlines,r.showTicks=e.axisX.ticks,a.showGrid=e.axisY.gridlines,a.showTicks=e.axisY.ticks),(t==="scatterplot"||t==="scatterplot-umap")&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale,r.significantLinesStyle=e.axisX.significantLinesStyle,a.significantLinesStyle=e.axisY.significantLinesStyle),t==="histogram"&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale),(t==="heatmap"||t==="bubble")&&(r.axisLabelsAngle=e.axisX.axisLabelsAngle,a.axisLabelsAngle=e.axisY.axisLabelsAngle,r.sorting=e.axisX.sorting,a.sorting=e.axisY.sorting),e.axisY.titleMode!=="auto"&&(a.title=e.axisY.titleMode==="custom"?e.axisY.customTitle:""),e.axisX.titleMode!=="auto"&&(r.title=e.axisX.titleMode==="custom"?e.axisX.customTitle:"");const i={xAxis:r,yAxis:a,frame:{type:e.other.frame},facetSettings:{nCols:e.other.facetColumns}};return(t==="discrete"||t==="scatterplot"||t==="heatmap")&&(i.orientation=e.other.reverse?"horizontal":"vertical",i.facetSettings.sharedX=["x","xy"].includes(e.other.facetSharedBy),i.facetSettings.sharedY=["y","xy"].includes(e.other.facetSharedBy)),i}function Ip(e){return JSON.parse(JSON.stringify(e))}function Sle(e,t){if(typeof e>"u")return!0;const n=Object.keys(e);return typeof t>"u"?n.length===0:n.every(r=>t[r])}function LN(e,t,n,r){return(t==null?void 0:t[cle])==="true"?"subset":r!==void 0?"range":n!==void 0||e==="Int"||e==="String"?"equals":"range"}async function MS(e,t,n=!0){const r=[],a=t.filter(({selectedSource:s})=>"kind"in s&&s.kind==="PColumn"),i=t.filter(({selectedSource:s})=>!("kind"in s&&s.kind==="PColumn")),l=[];for(const{inputName:s,filterType:c,selectedSource:f,selectedFilterValue:A,selectedFilterRange:h,fixedAxes:v}of a){const{name:g,valueType:b,annotations:C,domain:x}=f,k=await e.pFrameProvider.findColumnBy(g,b,d.toRaw(C),d.toRaw(x)),_=s==="filters"||s==="tabBy";if(k){const M=await e.pFrameProvider.getColumnSpecById(k),V=M&&v?v.map(I=>({axisIdx:I.axisIdx,axisValue:I.axisValue,axisSource:Nr.fromAxisSpec(M==null?void 0:M.axesSpec[I.axisIdx]).toCanonicalString()})):[];if(!_)r.push({inputName:s,selectedSource:k.toCanonicalString(),fixedAxes:V});else{const I=c??LN(b,M==null?void 0:M.annotations,A,h),$=I==="equals"&&typeof A>"u"?(await e.pFrameProvider.getColumnUniqueValues(k))[0]:A,Q={min:void 0,max:void 0,...h};r.push({inputName:s,filterType:I,selectedSource:k.toCanonicalString(),selectedFilterValue:$,selectedFilterRange:Q,fixedAxes:V})}l.push(...(M==null?void 0:M.axesSpec.map(I=>({spec:I,parentColumn:k})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:s,selectedSource:f})}`)}for(const{inputName:s,selectedSource:c,filterType:f,selectedFilterValue:A,selectedFilterRange:h}of i){const v=Nr.fromAxisSpec(c),g=v.toCanonicalString(),b=s==="filters"||s==="tabBy",C=b?f??LN(v.type,c==null?void 0:c.annotations):void 0,x=l.find(M=>Nr.fromAxisSpec(M.spec).toCanonicalString()===g),k=b&&C==="equals"&&typeof A>"u"&&(x!=null&&x.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(v,[x==null?void 0:x.parentColumn]))[0]:A,_={min:void 0,max:void 0,...h};if(n||r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]}),x)r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]});else{const{spec:M,parentColumn:V}=l.find(I=>v.name===I.spec.name&&v.type===I.spec.type&&Sle(v.domain,I.spec.domain))??{};if(M){const I=(s==="filters"||s==="tabBy")&&typeof A>"u"?(await e.pFrameProvider.getAxisUniqueValues(Nr.fromAxisSpec(M),[V]))[0]:A;r.push({inputName:s,filterType:C,selectedSource:Nr.fromAxisSpec(M).toCanonicalString(),selectedFilterValue:I,selectedFilterRange:_,fixedAxes:[]})}}}return r}async function $N(e,t,n){if(!n||n.length===0)return e;const r=await MS(t,n,!1),a=Ip(e);return r.forEach(({inputName:i,selectedSource:l,selectedFilterValue:s})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:l,type:"equals",selectedFilterValue:s})}),a}function Ble(e,t,n,r){var c;const a=HN(Y3[t.template],t.layersSettings,t.statisticsSettings,t.optionsState,r),i=QN(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,r);e.layers=a;const l=t.optionsState.components;if(l.primaryGrouping.selectorStates.length&&e.primaryGrouping){const f=l.primaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.primaryGrouping,EN(n,t.dataBindAes[f],f,A))}if(l.secondaryGrouping.selectorStates&&e.secondaryGrouping){const f=l.secondaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.secondaryGrouping,EN(n,t.dataBindAes[f],f,A))}const s=e.primaryGrouping?(c=n[e.primaryGrouping.columnName.value])==null?void 0:c.options:[];return Object.assign(e,X3(t.axesSettings,t.chartType,s)),e}function kle(e,t,n,r,a){var b,C,x,k,_;e.layers=RN(jm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping,l=n.optionsState.components.shape;if(i.selectorStates.length||l.selectorStates.length){const M=[...i.selectorStates,...l.selectorStates],V={};M.forEach(({selectedSource:I})=>{V[I]=xN(I,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:V})}const s=n.statisticsSettings,c=e.layers.find(M=>M.type==="dots");s.trend.on&&c&&(e.trend={color:(b=c.aes)==null?void 0:b.dotFill,bounded:!1}),Object.assign(e,X3(n.axesSettings,n.chartType));const f=(C=i.selectorStates[0])==null?void 0:C.selectedSource,A=(x=n.optionsState.components.x.selectorStates[0])==null?void 0:x.selectedSource,h=(k=n.optionsState.components.y.selectorStates[0])==null?void 0:k.selectedSource,v=r.getSourceInfo(A),g=r.getSourceInfo(h);if(i.selectorStates.length){const M=r.getSourceInfo(f).annotations;if(M!=null&&M[IC]&&(JSON.parse(M[IC])??[]).forEach(I=>{const{columnId:$,value:Q}=I;$&&v.kind==="column"&&v.type===$.valueType&&v.name===$.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(Q))),$&&g.kind==="column"&&g.type===$.valueType&&g.name===$.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(Q)))}),M!=null&&M[j3]){const V=JSON.parse(M[j3]),{mapping:I={},name:$=""}=V;e.layers.forEach(te=>{te.type==="dots"&&(te.aes||(te.aes={}),te.aes.dotFill={type:"grouping",value:f})});const Q=[...Object.entries(I),["null",hC]],q=((_=Gi[$])==null?void 0:_.colors)??[];e.inheritedAes[f]=Q.reduce((te,[ee,z])=>{const U=q[Number(z)]??Ii;return te[ee]={fillColor:U,lineColor:U,dotFill:U,dotShape:J7,dotSize:Hp,lineWidth:TS},te},{})}}return v.annotations&&(v.annotations[av]&&(e.xAxis.upperValue=Number(v.annotations[av])),v.annotations[rv]&&(e.xAxis.lowerValue=Number(v.annotations[rv])),v.annotations[iv]&&(e.xAxis.symmetricRange=Number(v.annotations[iv]))),g.annotations&&(g.annotations[av]&&(e.yAxis.upperValue=Number(g.annotations[av])),g.annotations[rv]&&(e.yAxis.lowerValue=Number(g.annotations[rv])),g.annotations[iv]&&(e.yAxis.symmetricRange=Number(g.annotations[iv]))),e}const Tle=750,_le=450;function Ple(e,t,n,r,a){var h,v,g,b;e.layers=RN(jm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping;if(i.selectorStates.length){const C=[...i.selectorStates],x={};C.forEach(({selectedSource:k})=>{x[k]=xN(k,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:x})}Object.assign(e,X3(n.axesSettings,n.chartType));const l=(h=i.selectorStates[0])==null?void 0:h.selectedSource,s=(v=n.optionsState.components.x.selectorStates[0])==null?void 0:v.selectedSource,c=(g=n.optionsState.components.y.selectorStates[0])==null?void 0:g.selectedSource,f=r.getSourceInfo(s),A=r.getSourceInfo(c);if(i.selectorStates.length){const C=r.getSourceInfo(l).annotations;if(C!=null&&C[IC]&&(JSON.parse(C[IC])??[]).forEach(k=>{const{columnId:_,value:M}=k;_&&f.kind==="column"&&f.type===_.valueType&&f.name===_.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(M))),_&&A.kind==="column"&&A.type===_.valueType&&A.name===_.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(M)))}),C!=null&&C[j3]){const x=JSON.parse(C[j3]),{mapping:k={},name:_=""}=x;e.layers.forEach(I=>{I.type==="dots"&&(I.aes||(I.aes={}),I.aes.dotFill={type:"grouping",value:l})});const M=[...Object.entries(k),["null",hC]],V=((b=Gi[_])==null?void 0:b.colors)??[];e.inheritedAes[l]=M.reduce((I,[$,Q])=>{const q=V[Number(Q)]??Ii;return I[$]={fillColor:q,lineColor:q,dotFill:q,dotShape:J7,dotSize:Hp,lineWidth:TS},I},{})}}return f.annotations&&(f.annotations[av]&&(e.xAxis.upperValue=Number(f.annotations[av])),f.annotations[rv]&&(e.xAxis.lowerValue=Number(f.annotations[rv])),f.annotations[iv]&&(e.xAxis.symmetricRange=Number(f.annotations[iv]))),A.annotations&&(A.annotations[av]&&(e.yAxis.upperValue=Number(A.annotations[av])),A.annotations[rv]&&(e.yAxis.lowerValue=Number(A.annotations[rv])),A.annotations[iv]&&(e.yAxis.symmetricRange=Number(A.annotations[iv]))),e.size={width:Tle,height:_le},e.lassoMode=n.lassoMode,e}function Mle(e,t){var l,s;const n={},r=(l=t.dataBindAes[e.valueColumn.value])==null?void 0:l.palette;if((e==null?void 0:e.valueType)!=="discrete"){if(t.template==="heatmapClustered"){const c=t.layersSettings.heatmapClustered;c.disableClusteringX||(e.dendrogramX={fillNA:0,showNodes:!1,hidden:!c.dendrogramX}),c.disableClusteringY||(e.dendrogramY={fillNA:0,position:"right",showNodes:!1,hidden:!c.dendrogramY})}n.colorsList=Gi[r??gae].colors}else n.colorsList=Gi[r??"bright"].colors;e.aes=n,(s=e.annotations)==null||s.forEach(c=>{var v;const f=c.valueColumn.value,A=(v=t.dataBindAes[f])==null?void 0:v.palette,h=c.type==="discrete"?fR:ev;c.colors=Gi[A??h].colors}),Object.assign(e,X3(t.axesSettings,t.chartType)),t.template==="heatmapClustered"&&(e==null?void 0:e.valueType)!=="discrete"&&(e.facetSettings.sharedX=!1,e.facetSettings.sharedY=!1);const a=t.template,i=t.layersSettings[a];return e.NAValueAs=i.NAValueAs,e.valueType==="continuous"&&i.normalizationDirection&&(e.normalization={method:i.normalizationMethod,direction:i.normalizationDirection}),e}const Dle=280;async function Hle(e,t,n,r,a,i){var f,A,h,v;n.rootPosition="left",n.size={width:PN,height:MN};const l=r.optionsState.components,s=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const g=(f=l.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,b=_S(g,a,r.dataBindAes,"dotShape");Object.keys(b).length?c.nodeShape.valuesMap=b:c.nodeShape=J7}else typeof s.dotShape=="string"&&(c.nodeShape=s.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const g=(A=l.nodeColor.selectorStates[0])==null?void 0:A.selectedSource,b=_S(g,a,r.dataBindAes,"color");Object.keys(b).length?c.nodeColor.valuesMap=b:c.nodeColor=Ii}else typeof s.dotFill=="string"&&(c.nodeColor=s.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const g=(h=l.nodeSize.selectorStates[0])==null?void 0:h.selectedSource;let[b,C]=[1/0,-1/0];t.values[g].forEach(x=>{const k=Number(x);k<b&&(b=k),k>C&&(C=k)}),c.nodeSize.domain=[b,C],c.nodeSize.range=PS(s.dotSize)?[s.dotSize.min,s.dotSize.max]:[U3.min,U3.max]}else typeof s.dotSize=="number"&&(c.nodeSize=s.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const g=(v=l.lineColor.selectorStates[0])==null?void 0:v.selectedSource;c.lineColor.valuesMap=_S(g,a,r.dataBindAes,"color")}else typeof s.lineColor=="string"&&(c.lineColor=s.lineColor);if(l.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Gi.bright.colors}},n.size.maxCellWidth=8),l.heatmapAnnotation.selectorStates.length>0){const g=en(l.heatmapAnnotation.selectorStates[0].selectedSource),b=await e.pFrameProvider.getColumnSpecById(g),C=(b==null?void 0:b.valueType)==="Double"||(b==null?void 0:b.valueType)==="Float"||(b==null?void 0:b.valueType)==="Int"||(b==null?void 0:b.valueType)==="Long"?"continuous":"discrete",x=Gi.bright.colors;let k;C==="discrete"&&(k=(await e.pFrameProvider.getColumnUniqueValues(g)).filter(Boolean).reduce((M,V,I)=>(M[V]=x[I%x.length],M),{})),n.heatmapSettings={valueType:C,aes:{colorsList:Gi.viridis.colors,colorsMap:k}}}return n.mode=s.mode,n.leavesMode=s.leavesMode,n.showNodesLabels=l.labels.selectorStates.length>0,n.showLeavesLabels=l.labels.selectorStates.length>0,s.showTable&&l.heatmapAnnotation.selectorStates.length===0&&l.heatmapForSequence.selectorStates.length===0&&(n.size.width=Dle),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}function Ile(e,t){const n=Ale[t.template],r=[];return n.forEach(a=>{if(a==="bins"){const i=t.layersSettings[a];r.push({type:"bins",aes:{opacity:i.opacity,fillColor:i.fillColor??"white"}})}}),e.layers=r,Object.assign(e,X3(t.axesSettings,t.chartType)),e.binsCount=t.axesSettings.other.binsCount,e}const FN=40,Rle=FN/2-2,Nle=3;function Lle(e,t){var i;const n=t.template,r=t.layersSettings[n],a=(i=t.dataBindAes[e.valueColor.value])==null?void 0:i.palette;return e.aes={cellStrokeColor:r.strokeColor??Ii,colorsList:Gi[a??ev].colors,maxRadius:Rle*(t.chartScale/100),minRadius:Nle},e.size={cellSize:FN*(t.chartScale/100)},Object.assign(e,X3(t.axesSettings,t.chartType)),e.NAValueAs=r.NAValueAs,r.normalizationDirection&&(e.normalization={method:r.normalizationMethod,direction:r.normalizationDirection}),e}function $le(e,t=0){return{width:(t>0?yle:PN)*(e/100),height:(t>0?wle:MN)*(e/100)}}function Fle(e,t,n,r){var a,i;if(e!=="scatterplot"&&e!=="scatterplot-umap"&&e!=="discrete"&&e!=="heatmap"&&e!=="histogram"&&e!=="bubble")return{name:"",show:!1};if(r.title.mode==="hidden")return{name:"",show:!1};if(r.title.mode==="custom")return{name:r.title.value,show:!0,position:r.title.position};if(r.title.mode==="auto"){const l=[];return[...((a=t.components)==null?void 0:a.filters.selectorStates)??[],...((i=t.components)==null?void 0:i.tabBy.selectorStates)??[]].forEach(({type:f,selectedSource:A,selectedFilterValue:h})=>{if((!f||f==="equals")&&h){const v=n[A];l.push((v==null?void 0:v.labels[h])??String(h))}}),{name:l.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function Vle(e,t,n,r,a){var i;if(!e.ready||r===null)return null;try{const l=pC(n.chartType),s=await $N(n.optionsState,r,a),c=await l.createDataForPlot(r,s);let f=c.settings;return f.title=Fle(n.chartType,n.optionsState,t,n.axesSettings),f.size=$le(n.chartScale,((i=n.optionsState.components)==null?void 0:i.facetBy.selectorStates.length)||0),n.chartType==="discrete"&&(f=Ble(f,n,t,e)),n.chartType==="scatterplot"&&(f=kle(f,c.dataByColumns,n,e,t)),n.chartType==="scatterplot-umap"&&(f=Ple(f,c.dataByColumns,n,e,t)),n.chartType==="heatmap"&&(f=Mle(f,n)),n.chartType==="dendro"&&(f=await Hle(r,c.dataByColumns,f,n,t,n.chartScale)),n.chartType==="histogram"&&(f=Ile(f,n)),n.chartType==="bubble"&&(f=Lle(f,n)),{settings:f,dataByColumns:c.dataByColumns}}catch(l){return console.warn("Cant build chart data"),console.warn(l.message),null}}function VN(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function ON(e){return e.length<2?[]:e.length>2?NC.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):NC}function DS(e){return async()=>{const t=e.value.commonHelpersData.primaryGroups.value;function n(c,f){return f===null||!!c.find(A=>A.value===f)}if(e.value.reactive.chartType!=="discrete")return;const r=e.value.reactive.statisticsSettings,a=ON(t),i=VN(t),l=r.overall.data.testMethod,s=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,l),r.referenceGroup.validity.referenceGroup=n(i,s)}}function Ole(e){e.dispatchEvent(new MouseEvent("click"))}function Qle(e,t){const n=window.URL||window.webkitURL,r=document.createElement("a");r.download=t,r.rel="noopener",r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ole(r)},0)}function q7(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return W3(a)&&a.type===n})}function QN(e,t,n,r,a,i){var c,f,A;const l={};let s=[];if(e==="discrete"){s=["primaryGrouping","secondaryGrouping"];const h=HN(Y3[t],n,r,a,i);s.forEach(v=>{var b,C;const g=(C=(b=a.components[v])==null?void 0:b.selectorStates[0])==null?void 0:C.selectedSource;g&&(l[g]={fill:q7(h,"fillColor",v)||q7(h,"dotFill",v),stroke:q7(h,"lineColor",v),dotShape:q7(h,"dotShape",v),lineType:q7(h,"lineShape",v),size:!1})})}if(e==="scatterplot"){const h=a.components.grouping.selectorStates.map(g=>g.selectedSource),v=a.components.shape.selectorStates.map(g=>g.selectedSource);s=[...h,...v],s.forEach(g=>{l[g]={fill:g===h[0],stroke:!1,dotShape:g===v[0],lineType:!1,size:!1}})}return e==="scatterplot-umap"&&(s=a.components.grouping.selectorStates.map(h=>h.selectedSource),s.forEach(h=>{l[h]={fill:h===s[0],stroke:!1,dotShape:!1,lineType:!1,size:!1}})),e==="dendro"&&(s=[((c=a.components.nodeColor.selectorStates[0])==null?void 0:c.selectedSource)??null,((f=a.components.nodeShape.selectorStates[0])==null?void 0:f.selectedSource)??null,((A=a.components.lineColor.selectorStates[0])==null?void 0:A.selectedSource)??null].filter(v=>v!==null),s.forEach(v=>{l[v]={fill:W3(n.dendro.dotFill)&&n.dendro.dotFill.value===v,stroke:W3(n.dendro.lineColor)&&n.dendro.lineColor.value===v,dotShape:W3(n.dendro.dotShape)&&n.dendro.dotShape.value===v,lineType:!1,size:!1}})),l}var zle=Object.defineProperty,Ule=(e,t,n)=>t in e?zle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HS=(e,t,n)=>Ule(e,typeof t!="symbol"?t+"":t,n);function Gle(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function jle(e,t){if(e===void 0)throw Error(t??"Undefined value");return e}function Yle(e=void 0){return e}function Wle(e){return e}function Xle(e){return[...new Set(e)]}function Kle(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value")}function Zle(e,t){if(e===void 0)throw Error(t??"Undefined value")}function Jle(e,t,n){const r=Math.min(t,n),a=Math.max(t,n);return e>=r&&e<=a}function qle(e){return e.map(t=>({text:String(t),value:t}))}function ese(e){return function(...t){const n=e(...t);async function r(a){return a.done?Promise.resolve(a.value):Promise.resolve(a.value).then(i=>r(n.next(i))).catch(i=>r(n.throw(i)))}try{return r(n.next())}catch(a){return Promise.reject(a instanceof Error?a:Error(String(a)))}}}class tse{constructor(){HS(this,"promise"),HS(this,"resolve",()=>{}),HS(this,"reject",()=>{}),this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}function IS(e){return new Promise(t=>setTimeout(t,e))}function nse(){return new Promise(e=>queueMicrotask(e))}function rse(){const e=new Date().getTime();return function(){return new Date().getTime()-e}}function ase(){const e=performance.now();return function(){return performance.now()-e}}function ise(e){return e()}function ose(e,t,n){return t>e?t:e>n?n:e}function lse(e,t){return t(e)}function sse(e,t){if(e!=null)return t(e)}function use(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e}function*zN(e,t,n=1){for(let r=e;r<t;r+=n)yield r}function UN(e){const t=[];for(const n of e)t.push(n);return t}function cse(e,t){return UN(zN(0,e)).map(t)}let fse=class{constructor(t){this._delay=t}async*generate(){let t=0;for(;;)await IS(this._delay),yield t++}async*[Symbol.asyncIterator](){let t=0;for(;;)await IS(this._delay),yield t++}};function dse(e,t){return Array.from({length:e},(n,r)=>t(r))}function Ase(e,t){throw Error(t)}function pse(e){return t=>e[t]()}function hse(e){if(e&&e.ok)return e.value}function vse(e){if(e&&!e.ok)return e.error}function mse(e){if(e.ok)return e.value;throw Error(e.error)}function gse(e){return Array.isArray(e)?e:[e]}async function yse(e){return Object.fromEntries(await Promise.all(Object.entries(e).map(async([t,n])=>[t,await n])))}function wse(e,t){return Object.keys(t).every(n=>e[n]===t[n])}const Cse=e=>e;function bse(e){return e}function Ese(e){return Object.entries(e).map(([t,n])=>({key:t,value:n}))}const e5=Object.freeze(Object.defineProperty({__proto__:null,Deferred:tse,Interval:fse,alike:wse,arrayFrom:dse,asConst:bse,async:ese,between:Jle,bool:Wle,call:ise,checkIfDefined:Zle,checkIfNotEmpty:Kle,clamp:ose,delay:IS,errorOptional:vse,exhaustive:Ase,flatValue:gse,identity:Cse,listToOptions:qle,match:pse,notEmpty:Gle,notUndef:jle,okOptional:hse,performanceTimer:ase,randomInt:use,range:zN,resolveAwaited:yse,tap:lse,tapIf:sse,tear:nse,timer:rse,times:cse,toList:UN,undef:Yle,unionize:Ese,uniqueValues:Xle,unwrap:mse},Symbol.toStringTag,{value:"Module"})),t5=Array.isArray;function LC(e){return e!==null&&typeof e=="object"}function K3(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}function xse(e,t){return Object.keys(e).map(n=>t(e[n],n))}function GN(e){return Object.values(e).reduce((t,n)=>n!==void 0?t+1:t,0)}function $C(e,t){if(!(LC(e)&&LC(t)))return e===t;if(t5(e)&&t5(t))return e.length!==t.length?!1:[...e.keys()].every(n=>$C(e[n],t[n]));if(K3(e)&&K3(t))return GN(e)!==GN(t)?!1:Object.keys(e).every(n=>$C(e[n],t[n]));throw Error(`Cannot compare a ${String(e)} and b ${String(t)}`)}const Sse=$C;function FC(e){if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=FC(e[n]);return t}else if(K3(e)){const t={};return Object.keys(e).forEach(n=>{t[n]=FC(e[n])}),t}else return e}function Bse(e){return Array.isArray(e)?Object.assign([],e):LC(e)?Object.assign({},e):e}function kse(e,t){const n={};for(const r in t)t[r]!==e[r]&&(n[r]=e[r]);return n}function Tse(e){return Object.entries(e).forEach(([t,n])=>{n instanceof Function&&(e[t]=n.bind(e))}),e}function _se(e,t,n){return e[t]=n,e}function Pse(e,t){return e[t]}function Mse(e,t){e={...e};const n=e[t];return delete e[t],[n,e]}function Dse(e,...t){return Object.assign({},...t.map(n=>({[n]:e[n]})))}function Hse(e,...t){return t.map(n=>e[n])}function Ise(e,...t){const n=Object.assign({},e);return t.forEach(r=>delete n[r]),n}function jN(e,t){return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{const r=e[n],a=t[n];K3(r)&&K3(a)||t5(r)&&t5(a)&&r.length===a.length?jN(r,a):e[n]=a}),e}const Rse=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Tse,deepClone:FC,deepEqual:Sse,deepPatch:jN,getProp:Pse,isArray:t5,isJsonEqual:$C,isNonPrimitive:LC,isPlainObject:K3,map:xse,omit:Ise,pick:Dse,pickValues:Hse,setProp:_se,shallowClone:Bse,shallowDiff:kse,shiftProp:Mse},Symbol.toStringTag,{value:"Module"}));function Nse(e,t){const n=Ip(aR(e));if((t==null?void 0:t.type)!==e)return n;const r=Ip(t);return{...n,...r,components:{...n.components,...r.components}}}function RS(e,t){return d.reactive({chartType:t,optionsState:Nse(t,e.optionsState),dataStateKey:FC(e.dataStateKey),template:fle(e.template,t),statisticsSettings:ple(t,e.statisticsSettings),layersSettings:vle(e.layersSettings),axesSettings:gle(t,e.axesSettings),dataBindAes:Ip(e.dataBindAes??{}),chartScale:e.zoomState??100,lassoMode:!1,currentTab:e.currentTab===void 0?"dataMapping":e.currentTab,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Lse(e,t,n,r,a,i,l){return{reactive:e,loading:d.reactive({initialInputGuide:!0,initialCharts:!0,initialDefaults:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:d.computed(()=>DN(e.optionsState,i.value,"primaryGrouping")),secondaryGroups:d.computed(()=>DN(e.optionsState,i.value,"secondaryGrouping")),usedAesInMapping:d.computed(()=>QN(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState,n.value)),dendroTableData:a},controller:pC(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r,uniqueValuesData:i,readonlyInputs:l}}function $se(e,t,n,r,a,i,l){const s=RS(e,n),c=pC(s.chartType),f=d.ref(pC(s.chartType).getEmptyInputGuide(s.optionsState)),A=d.ref(null),h=d.ref({}),v=d.ref(null),g=d.computed(()=>Lse(s,d.toRaw(t.value),f,A,v,h,l));d.watch([()=>t.value,()=>r.value],async([x,k])=>{if(!k||!x||!g.value.loading.initialDefaults)return;g.value.loading.initialDefaults=!1,g.value.loading.initialInputGuide=!0;const _=Ip(s.optionsState.components),M=k.filter(I=>{var $;return(($=s.optionsState.components[I.inputName])==null?void 0:$.selectorStates.length)===0||(l==null?void 0:l.includes(I.inputName))});if(M.length===0)return;M.forEach(I=>{_[I.inputName].selectorStates=[]});const V=await MS(x,M);for(const{inputName:I,selectedSource:$,filterType:Q,selectedFilterValue:q,selectedFilterRange:te,fixedAxes:ee}of V)_[I].selectorStates.push({selectedSource:$,type:Q,selectedFilterValue:q,selectedFilterRange:te,fixedAxes:ee});s.optionsState.components={...s.optionsState.components,..._}},{immediate:!0});const b=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>a.value],async([x,k,_])=>{b.value++;const M=b.value;g.value.loading.inputGuide=!0;const V=k&&_?(await MS(k,_,!1)).map(te=>te.selectedSource):[],I=k?await c.calculateOptions(d.toRaw(k),x,V,i):c.getEmptyInputGuide(x),$=["primaryGrouping","secondaryGrouping","grouping","shape","nodeColor","nodeShape","lineColor","filters","highlight","tabBy"],Q=[];$.forEach(te=>{const ee=s.optionsState.components[te];if(ee)for(const{selectedSource:z}of ee.selectorStates)Q.push(z)}),[...I.freeOptionsSet].forEach(te=>{var z,U,W;const ee=I.getSourceInfo(te);ee.kind==="axis"&&((z=ee.annotations)!=null&&z[RC])&&((U=ee.annotations)==null?void 0:U[RC])!=="homogeneous"&&((W=ee.annotations)==null?void 0:W[RC])!=="homogenous"&&Q.push(te)}),[...I.axesToBeFixedSet].forEach(te=>{Q.push(te)});const q={};for(const te of Q)if(k&&!h.value[te]){const ee=await c.getUniqueSourceValuesWithLabels(k,I,te);if(!ee.length)continue;ee.sort((z,U)=>z.label.localeCompare(U.label,"en",{numeric:!0})),q[te]={list:ee.map(z=>z.value),options:ee,labels:ee.reduce((z,U)=>(z[U.value]=U.label,z),{})}}h.value={...h.value,...q},M===b.value&&(f.value=I,g.value.loading.inputGuide=!1,g.value.loading.initialInputGuide=!1)},{immediate:!0,deep:!0});const C=d.ref(0);if(d.watch([()=>f.value,()=>s.template,()=>s.layersSettings,()=>s.axesSettings,()=>s.statisticsSettings,()=>s.dataBindAes,()=>s.chartScale,()=>s.lassoMode],async([x])=>{C.value++;const k=C.value;g.value.loading.chartData=!0;const _=await Vle(x,h.value,s,d.toRaw(t.value),a.value);k===C.value&&(A.value=_,x.ready&&(g.value.loading.initialCharts=!1),g.value.loading.chartData=!1)},{immediate:!0,deep:!0}),s.chartType==="dendro"){const x=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>f.value.readyData,()=>a.value],async([k,_,M,V])=>{if(M&&_){x.value++;const I=x.value;g.value.loading.dendroTableData=!0;const $=await $N(k,_,V),Q=await c.createTableData(_,$);x.value===I&&(v.value=Q),g.value.loading.dendroTableData=!1}},{immediate:!0})}return d.provide(RI,g),g}function Tr(){return Gee(d.inject(RI),"Empty store")}const Fse={class:"template-list"},Vse=["onClick"],Ose=["onClick"],Qse=["onClick"],zse=["onClick"],Use=d.defineComponent({__name:"TemplateForm",setup(e){const t=Tr(),n=Object.entries(Y3).map(([A,h])=>({id:A,text:h.map(v=>H0[v]).join(" + "),icon:Sf[A]})),r=Object.entries(jm).map(([A,h])=>({id:A,text:h.map(v=>H0[v]).join(" + "),icon:Sf[A]})),a=Object.entries(BN).map(([A,h])=>({id:A,text:h.map(v=>H0[v]).join(" + "),icon:Sf[A]})),i=[{id:"heatmap",text:"Heatmap",icon:Sf.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:Sf.heatmapClustered}],l=[{id:"dendro",text:"Dendrogram",icon:Sf.dendro}],s=[{id:"bins",text:"Histogram",icon:Sf.bar}],c=[{id:"bubble",text:"Bubble plot",icon:Sf.bubble}];function f(A){t.value.reactive.template=A}return(A,h)=>(d.openBlock(),d.createElementBlock("div",{class:"template-form",onClick:h[0]||(h[0]=v=>v.stopPropagation())},[h[8]||(h[8]=d.createElementVNode("div",{class:"template-title"},[d.createElementVNode("h3",null," Template ")],-1)),d.createElementVNode("div",Fse,[d.unref(t).reactive.chartType==="discrete"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(d.unref(n),({id:v,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[1]||(h[1]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Vse))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(d.unref(r),({id:v,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[2]||(h[2]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Ose))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot-umap"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:2},d.renderList(d.unref(a),({id:v,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[3]||(h[3]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Qse))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="heatmap"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},d.renderList(i,({id:v,text:g,icon:b})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[4]||(h[4]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,zse)),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="dendro"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},d.renderList(l,({text:v,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(v)+" ",1),h[5]||(h[5]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="histogram"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:5},d.renderList(s,({text:v,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(v)+" ",1),h[6]||(h[6]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="bubble"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:6},d.renderList(c,({text:v,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(v)+" ",1),h[7]||(h[7]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0)])]))}});function YN(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const l=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(M=>M.axisSource===h&&M.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return f.isSubsetFilter?{selectedSource:s,type:"subset",fixedAxes:A}:f.isDiscreteFilter?{selectedSource:s,type:"equals",selectedFilterValue:void 0,fixedAxes:A}:{selectedSource:s,type:"range",selectedFilterRange:{min:void 0,max:void 0},fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,l)}})}function WN(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const l=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(M=>M.axisSource===h&&M.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return{selectedSource:s,fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,l)}})}function XN(e,t,n,r){return d.computed({get(){var a;return((a=e.value.components[t].selectorStates.map(i=>i.selectedSource))==null?void 0:a[0])??void 0},set(a){r&&(e.value=n.changeSelected(t,r,e.value,typeof a>"u"?[]:[{selectedSource:a}]))}})}function Gse(e,t,n){const r=e.options.map(i=>({text:t(i.value).label,value:i.value}));return n.selectorStates.map(i=>i.selectedSource).forEach(i=>{const l=t(i),s=e.stateConsistency[i]===!1;r.unshift({text:s?"Inconsistent value":l.label,value:i})}),r.sort((i,l)=>i.text>l.text?1:-1)}function KN(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Gse(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function NS(e,t){if(!e.value.readyData)return[];const n=new Set;return t.forEach(r=>{e.value.components[r].options.forEach(({value:i})=>{n.add(i)})}),[...n].map(r=>({id:r,info:e.value.getSourceInfo(r)})).sort((r,a)=>r.info.label.localeCompare(a.info.label))}function jse(e,t){return NS(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function Yse(e,t){return NS(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function ZN(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function Z3(e,t){return ZN(e,t)?" ":""}function Wse(e){var n;const t=(n=e==null?void 0:e[RC])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function JN(e,t,n){return n.reduce((r,a)=>{var A;const i=e.getSourceInfo(a),s=[...Object.keys(e.components).filter(h=>e.components[h].options.find(v=>v.value===a))],c=Object.values(e.components).some(({stateConsistency:h})=>h[a]===!1),f=(((A=t[a])==null?void 0:A.options)??[]).sort((h,v)=>h.label>v.label?1:-1).map(h=>h.label);return r[a]={id:a,title:c?"Inconsistent value":i.label,type:i.type,nonHomogenous:i.kind==="axis"&&Wse(i.annotations),isSubsetFilter:i.isSubsetFilter,isDiscreteFilter:i.isDiscreteFilter,availableBasketIds:new Set(s),uniqueValues:f,axesToBeFixed:i.kind==="column"?i.axesToBeFixed:[],axesToBeFixedInfo:i.kind==="column"?i.axesToBeFixed.reduce((h,v)=>{const g=e.getSourceInfo(v);return h[v]={title:g.label,type:g.type,idx:i.axesToBeFixedIndexes[v]},h},{}):{}},r},{})}const LS=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
27
|
+
}`;var Wr=DE(function(){return ea(Te,xn+"return "+Ht).apply(n,$e)});if(Wr.source=Ht,gh(Wr))throw Wr;return Wr}function xM(w){return bi(w).toLowerCase()}function tw(w){return bi(w).toUpperCase()}function SM(w,B,F){if(w=bi(w),w&&(F||B===n))return It(w);if(!w||!(B=Zo(B)))return w;var re=ui(w),ve=ui(B),Te=xa(re,ve),$e=ul(re,ve)+1;return wu(re,Te,$e).join("")}function nw(w,B,F){if(w=bi(w),w&&(F||B===n))return w.slice(0,tp(w)+1);if(!w||!(B=Zo(B)))return w;var re=ui(w),ve=ul(re,ui(B))+1;return wu(re,0,ve).join("")}function ME(w,B,F){if(w=bi(w),w&&(F||B===n))return w.replace(qr,"");if(!w||!(B=Zo(B)))return w;var re=ui(w),ve=xa(re,ui(B));return wu(re,ve).join("")}function BM(w,B){var F=ee,re=z;if(tl(B)){var ve="separator"in B?B.separator:ve;F="length"in B?Fr(B.length):F,re="omission"in B?Zo(B.omission):re}w=bi(w);var Te=w.length;if(Dd(w)){var $e=ui(w);Te=$e.length}if(F>=Te)return w;var Oe=F-Jc(re);if(Oe<1)return re;var Ze=$e?wu($e,0,Oe).join(""):w.slice(0,Oe);if(ve===n)return Ze+re;if($e&&(Oe+=Ze.length-Oe),$2(ve)){if(w.slice(Oe).search(ve)){var kt,St=Ze;for(ve.global||(ve=is(ve.source,bi(On.exec(ve))+"g")),ve.lastIndex=0;kt=ve.exec(St);)var Ht=kt.index;Ze=Ze.slice(0,Ht===n?Oe:Ht)}}else if(w.indexOf(Zo(ve),Oe)!=Oe){var Kt=Ze.lastIndexOf(ve);Kt>-1&&(Ze=Ze.slice(0,Kt))}return Ze+re}function kM(w){return w=bi(w),w&&lo.test(w)?w.replace(Sr,e0):w}var TM=G(function(w,B,F){return w+(F?" ":"")+B.toUpperCase()}),rw=L("toUpperCase");function aw(w,B,F){return w=bi(w),B=F?n:B,B===n?c1(w)?ah(w):Xc(w):w.match(B)||[]}var DE=Er(function(w,B){try{return Zn(w,n,B)}catch(F){return gh(F)?F:new zn(F)}}),_M=zd(function(w,B){return gr(B,function(F){F=Su(F),Vl(w,F,Lt(w[F],w))}),w});function PM(w){var B=w==null?0:w.length,F=Kn();return w=B?Qr(w,function(re){if(typeof re[1]!="function")throw new Ts(l);return[F(re[0]),re[1]]}):[],Er(function(re){for(var ve=-1;++ve<B;){var Te=w[ve];if(Zn(Te[0],this,re))return Zn(Te[1],this,re)}})}function MM(w){return lp(Xo(w,h))}function iw(w){return function(){return w}}function DM(w,B){return w==null||w!==w?B:w}var HM=Ie(),ow=Ie(!0);function gf(w){return w}function lw(w){return af(typeof w=="function"?w:Xo(w,h))}function IM(w){return ru(Xo(w,h))}function RM(w,B){return Za(w,Xo(B,h))}var NM=Er(function(w,B){return function(F){return Al(F,w,B)}}),LM=Er(function(w,B){return function(F){return Al(w,F,B)}});function sw(w,B,F){var re=ou(B),ve=dl(B,re);F==null&&!(tl(B)&&(ve.length||!re.length))&&(F=B,B=w,w=this,ve=dl(B,ou(B)));var Te=!(tl(F)&&"chain"in F)||!!F.chain,$e=yp(w);return gr(ve,function(Oe){var Ze=B[Oe];w[Oe]=Ze,$e&&(w.prototype[Oe]=function(){var kt=this.__chain__;if(Te||kt){var St=w(this.__wrapped__),Ht=St.__actions__=yo(this.__actions__);return Ht.push({func:Ze,args:arguments,thisArg:w}),St.__chain__=kt,St}return Ze.apply(w,sl([this.value()],arguments))})}),w}function $M(){return pa._===this&&(pa._=AA),this}function uw(){}function HE(w){return w=Fr(w),Er(function(B){return of(B,w)})}var cw=Wt(Qr),FM=Wt(Ss),VM=Wt(Wc);function i3(w){return ln(w)?J(Su(w)):Cn(w)}function o3(w){return function(B){return w==null?n:ho(w,B)}}var OM=wo(),QM=wo(!0);function fw(){return[]}function dw(){return!1}function zM(){return{}}function UM(){return""}function GM(){return!0}function IE(w,B){if(w=Fr(w),w<1||w>ae)return[];var F=ue,re=Ki(w,ue);B=Kn(B),w-=ue;for(var ve=qe(re,B);++F<w;)B(F);return ve}function jM(w){return zr(w)?Qr(w,Su):_a(w)?[w]:yo(Kv(bi(w)))}function YM(w){var B=++mc;return bi(w)+B}var WM=Pt(function(w,B){return w+B},0),XM=Ta("ceil"),KM=Pt(function(w,B){return w/B},1),ZM=Ta("floor");function JM(w){return w&&w.length?Ps(w,gf,Zs):n}function qM(w,B){return w&&w.length?Ps(w,Kn(B,2),Zs):n}function eD(w){return cA(w,gf)}function tD(w,B){return cA(w,Kn(B,2))}function nD(w){return w&&w.length?Ps(w,gf,Tl):n}function rD(w,B){return w&&w.length?Ps(w,Kn(B,2),Tl):n}var aD=Pt(function(w,B){return w*B},1),iD=Ta("round"),oD=Pt(function(w,B){return w-B},0);function lD(w){return w&&w.length?nt(w,gf):0}function mm(w,B){return w&&w.length?nt(w,Kn(B,2)):0}return xe.after=Qe,xe.ary=dt,xe.assign=vf,xe.assignIn=pm,xe.assignInWith=P1,xe.assignWith=Ch,xe.at=wE,xe.before=Nt,xe.bind=Lt,xe.bindAll=_M,xe.bindKey=Rt,xe.castArray=dE,xe.chain=im,xe.chunk=s0,xe.compact=Zv,xe.concat=df,xe.cond=PM,xe.conforms=MM,xe.constant=iw,xe.countBy=Ug,xe.create=M1,xe.curry=nn,xe.curryRight=yn,xe.debounce=En,xe.defaults=D1,xe.defaultsDeep=O2,xe.defer=vl,xe.delay=rt,xe.difference=sa,xe.differenceBy=el,xe.differenceWith=no,xe.drop=Gl,xe.dropRight=nc,xe.dropRightWhile=dh,xe.dropWhile=jl,xe.fill=g1,xe.filter=um,xe.flatMap=jg,xe.flatMapDeep=L4,xe.flatMapDepth=Yg,xe.flatten=Jv,xe.flattenDeep=pp,xe.flattenDepth=iu,xe.flip=Ue,xe.flow=HM,xe.flowRight=ow,xe.fromPairs=qv,xe.functions=EE,xe.functionsIn=nM,xe.groupBy=mp,xe.initial=em,xe.intersection=$g,xe.intersectionBy=Af,xe.intersectionWith=Ah,xe.invert=xE,xe.invertBy=rM,xe.invokeMap=R2,xe.iteratee=lw,xe.keyBy=$4,xe.keys=ou,xe.keysIn=mf,xe.map=p0,xe.mapKeys=aM,xe.mapValues=iM,xe.matches=IM,xe.matchesProperty=RM,xe.memoize=ot,xe.merge=oM,xe.mergeWith=SE,xe.method=NM,xe.methodOf=LM,xe.mixin=sw,xe.negate=Qt,xe.nthArg=HE,xe.omit=lM,xe.omitBy=sM,xe.once=Dn,xe.orderBy=F4,xe.over=cw,xe.overArgs=qn,xe.overEvery=FM,xe.overSome=VM,xe.partial=An,xe.partialRight=er,xe.partition=B1,xe.pick=uM,xe.pickBy=BE,xe.property=i3,xe.propertyOf=o3,xe.pull=w1,xe.pullAll=hp,xe.pullAllBy=ms,xe.pullAllWith=BA,xe.pullAt=Fo,xe.range=OM,xe.rangeRight=QM,xe.rearg=Wl,xe.reject=p,xe.remove=Yl,xe.rest=Ja,xe.reverse=ph,xe.sampleSize=T,xe.set=K4,xe.setWith=Z4,xe.shuffle=R,xe.slice=f0,xe.sortBy=we,xe.sortedUniq=nm,xe.sortedUniqBy=d0,xe.split=CM,xe.spread=kA,xe.tail=S2,xe.take=B2,xe.takeRight=C1,xe.takeRightWhile=rm,xe.takeWhile=M4,xe.tap=N4,xe.throttle=V4,xe.thru=cd,xe.toArray=Am,xe.toPairs=j2,xe.toPairsIn=kE,xe.toPath=jM,xe.toPlainObject=j4,xe.transform=qg,xe.unary=OP,xe.union=D4,xe.unionBy=k2,xe.unionWith=T2,xe.uniq=vp,xe.uniqBy=H4,xe.uniqWith=vh,xe.unset=e3,xe.unzip=am,xe.unzipWith=Vo,xe.update=cM,xe.updateWith=TE,xe.values=vm,xe.valuesIn=fM,xe.without=I4,xe.words=aw,xe.wrap=QP,xe.xor=_2,xe.xorBy=Qg,xe.xorWith=R4,xe.zip=P2,xe.zipObject=M2,xe.zipObjectDeep=D2,xe.zipWith=hf,xe.entries=j2,xe.entriesIn=kE,xe.extend=pm,xe.extendWith=P1,sw(xe,xe),xe.add=WM,xe.attempt=DE,xe.camelCase=PE,xe.capitalize=t3,xe.ceil=XM,xe.clamp=_E,xe.clone=AE,xe.cloneDeep=UP,xe.cloneDeepWith=pE,xe.cloneWith=zP,xe.conformsTo=O4,xe.deburr=n3,xe.defaultTo=DM,xe.divide=KM,xe.endsWith=Y2,xe.eq=TA,xe.escape=r3,xe.escapeRegExp=a3,xe.every=Gg,xe.find=x1,xe.findIndex=Ap,xe.findKey=Y4,xe.findLast=I2,xe.findLastIndex=u0,xe.findLastKey=Q2,xe.floor=ZM,xe.forEach=S1,xe.forEachRight=mh,xe.forIn=Jg,xe.forInRight=CE,xe.forOwn=z2,xe.forOwnRight=bE,xe.get=W4,xe.gt=GP,xe.gte=jP,xe.has=U2,xe.hasIn=hm,xe.head=c0,xe.identity=gf,xe.includes=cm,xe.indexOf=SA,xe.inRange=dM,xe.invoke=G2,xe.isArguments=k1,xe.isArray=zr,xe.isArrayBuffer=YP,xe.isArrayLike=Hs,xe.isArrayLikeObject=ml,xe.isBoolean=Wg,xe.isBuffer=gp,xe.isDate=WP,xe.isElement=XP,xe.isEmpty=hE,xe.isEqual=KP,xe.isEqualWith=L2,xe.isError=gh,xe.isFinite=Q4,xe.isFunction=yp,xe.isInteger=Xg,xe.isLength=Kg,xe.isMap=z4,xe.isMatch=vE,xe.isMatchWith=mE,xe.isNaN=yh,xe.isNative=ZP,xe.isNil=qP,xe.isNull=JP,xe.isNumber=dm,xe.isObject=tl,xe.isObjectLike=gl,xe.isPlainObject=T1,xe.isRegExp=$2,xe.isSafeInteger=eM,xe.isSet=U4,xe.isString=F2,xe.isSymbol=_a,xe.isTypedArray=wh,xe.isUndefined=V2,xe.isWeakMap=Zg,xe.isWeakSet=gE,xe.join=pf,xe.kebabCase=pM,xe.last=Bu,xe.lastIndexOf=y1,xe.lowerCase=J4,xe.lowerFirst=q4,xe.lt=yE,xe.lte=G4,xe.max=JM,xe.maxBy=qM,xe.mean=eD,xe.meanBy=tD,xe.min=nD,xe.minBy=rD,xe.stubArray=fw,xe.stubFalse=dw,xe.stubObject=zM,xe.stubString=UM,xe.stubTrue=GM,xe.multiply=aD,xe.nth=tm,xe.noConflict=$M,xe.noop=uw,xe.now=He,xe.pad=hM,xe.padEnd=vM,xe.padStart=RZ,xe.parseInt=mM,xe.random=AM,xe.reduce=N2,xe.reduceRight=fm,xe.repeat=gM,xe.replace=yM,xe.result=X4,xe.round=iD,xe.runInContext=Ye,xe.sample=m,xe.size=j,xe.snakeCase=wM,xe.some=ne,xe.sortedIndex=Fg,xe.sortedIndexBy=Vg,xe.sortedIndexOf=Yd,xe.sortedLastIndex=hh,xe.sortedLastIndexBy=Og,xe.sortedLastIndexOf=Wd,xe.startCase=bM,xe.startsWith=ew,xe.subtract=oD,xe.sum=lD,xe.sumBy=mm,xe.template=EM,xe.times=IE,xe.toFinite=h0,xe.toInteger=Fr,xe.toLength=_1,xe.toLower=xM,xe.toNumber=Xd,xe.toSafeInteger=tM,xe.toString=bi,xe.toUpper=tw,xe.trim=SM,xe.trimEnd=nw,xe.trimStart=ME,xe.truncate=BM,xe.unescape=kM,xe.uniqueId=YM,xe.upperCase=TM,xe.upperFirst=rw,xe.each=S1,xe.eachRight=mh,xe.first=c0,sw(xe,function(){var w={};return ka(xe,function(B,F){ia.call(xe.prototype,F)||(w[F]=B)}),w}(),{chain:!1}),xe.VERSION=r,gr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){xe[w].placeholder=xe}),gr(["drop","take"],function(w,B){cr.prototype[w]=function(F){F=F===n?1:ai(Fr(F),0);var re=this.__filtered__&&!B?new cr(this):this.clone();return re.__filtered__?re.__takeCount__=Ki(F,re.__takeCount__):re.__views__.push({size:Ki(F,ue),type:w+(re.__dir__<0?"Right":"")}),re},cr.prototype[w+"Right"]=function(F){return this.reverse()[w](F).reverse()}}),gr(["filter","map","takeWhile"],function(w,B){var F=B+1,re=F==Y||F==oe;cr.prototype[w]=function(ve){var Te=this.clone();return Te.__iteratees__.push({iteratee:Kn(ve,3),type:F}),Te.__filtered__=Te.__filtered__||re,Te}}),gr(["head","last"],function(w,B){var F="take"+(B?"Right":"");cr.prototype[w]=function(){return this[F](1).value()[0]}}),gr(["initial","tail"],function(w,B){var F="drop"+(B?"":"Right");cr.prototype[w]=function(){return this.__filtered__?new cr(this):this[F](1)}}),cr.prototype.compact=function(){return this.filter(gf)},cr.prototype.find=function(w){return this.filter(w).head()},cr.prototype.findLast=function(w){return this.reverse().find(w)},cr.prototype.invokeMap=Er(function(w,B){return typeof w=="function"?new cr(this):this.map(function(F){return Al(F,w,B)})}),cr.prototype.reject=function(w){return this.filter(Qt(Kn(w)))},cr.prototype.slice=function(w,B){w=Fr(w);var F=this;return F.__filtered__&&(w>0||B<0)?new cr(F):(w<0?F=F.takeRight(-w):w&&(F=F.drop(w)),B!==n&&(B=Fr(B),F=B<0?F.dropRight(-B):F.take(B-w)),F)},cr.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},cr.prototype.toArray=function(){return this.take(ue)},ka(cr.prototype,function(w,B){var F=/^(?:filter|find|map|reject)|While$/.test(B),re=/^(?:head|last)$/.test(B),ve=xe[re?"take"+(B=="last"?"Right":""):B],Te=re||/^find/.test(B);ve&&(xe.prototype[B]=function(){var $e=this.__wrapped__,Oe=re?[1]:arguments,Ze=$e instanceof cr,kt=Oe[0],St=Ze||zr($e),Ht=function(ma){var Va=ve.apply(xe,sl([ma],Oe));return re&&Kt?Va[0]:Va};St&&F&&typeof kt=="function"&&kt.length!=1&&(Ze=St=!1);var Kt=this.__chain__,xn=!!this.__actions__.length,rr=Te&&!Kt,Wr=Ze&&!xn;if(!Te&&St){$e=Wr?$e:new cr(this);var pr=w.apply($e,Oe);return pr.__actions__.push({func:cd,args:[Ht],thisArg:n}),new fo(pr,Kt)}return rr&&Wr?w.apply(this,Oe):(pr=this.thru(Ht),rr?re?pr.value()[0]:pr.value():pr)})}),gr(["pop","push","shift","sort","splice","unshift"],function(w){var B=os[w],F=/^(?:push|sort|unshift)$/.test(w)?"tap":"thru",re=/^(?:pop|shift)$/.test(w);xe.prototype[w]=function(){var ve=arguments;if(re&&!this.__chain__){var Te=this.value();return B.apply(zr(Te)?Te:[],ve)}return this[F](function($e){return B.apply(zr($e)?$e:[],ve)})}}),ka(cr.prototype,function(w,B){var F=xe[B];if(F){var re=F.name+"";ia.call(Yf,re)||(Yf[re]=[]),Yf[re].push({name:B,func:F})}}),Yf[Ke(n,k).name]=[{name:"wrapper",func:n}],cr.prototype.clone=Sn,cr.prototype.reverse=js,cr.prototype.value=Ka,xe.prototype.at=om,xe.prototype.chain=A0,xe.prototype.commit=lm,xe.prototype.next=sm,xe.prototype.plant=E1,xe.prototype.reverse=zg,xe.prototype.toJSON=xe.prototype.valueOf=xe.prototype.value=H2,xe.prototype.first=xe.prototype.head,Nl&&(xe.prototype[Nl]=b1),xe},hc=np();Re?((Re.exports=hc)._=hc,he._=hc):pa._=hc}).call(g7)}(sC,sC.exports);var tne=sC.exports;const ir=U1(tne);var nne="pl7.app/axisNature",ZI="pl7.app/label",rne="pl7.app/isLabel",ane="pl7.app/columnAsAxis/name",ine="pl7.app/columnAsAxis/domain",N7="pl7.app/isSubset",L7="pl7.app/isDiscreteFilter",one="pl7.app/discreteValues",lne="pl7.app/graph/axis/highCardinality",sne="pl7.app/graph/isVirtual",JI="pl7.app/isLinkerColumn",Nr=class Jw{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return DA(this)}static fromAxisSpec(t){return new Jw({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>Jw.fromAxisSpec(n))}copy(){return new Jw({type:this.type,name:this.name,domain:this.domain})}toPFrameId(){return{type:this.type,name:this.name,domain:this.domain}}static fromPojo(t){return new Jw(t)}},T3=class Vee{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return DA(this)}static fromPojo(t){return new Vee(t)}};function Tn(e){return e!==null&&e.kind==="column"}function uC(e){return e!==null&&e.kind==="axis"}function en(e){const t=JSON.parse(e);if(t.kind==="column")return T3.fromPojo(t);if(t.kind==="axis")return Nr.fromPojo(t);throw Error("wrong column or axis object")}async function une(e,t,n){if(n){const r=await e.pFrameProvider.getTableOuterJoin([t,n],[]),a=r.columnsData[t.toCanonicalString()],i=r.columnsData[n.toCanonicalString()];return a.reduce((l,s,c)=>(l[String(s)]=String(i[c]),l),{})}return null}async function cne(e,t,n,r){if(r){const{data:a,axesData:i}=await e.pFrameProvider.getSingleColumnData(r);return i[t.toCanonicalString()].reduce((s,c,f)=>(s[String(c)]=String(a[f]),s),{})}return null}async function fne(e,t,n,r,a,i,l=!0){var s,c,f,A;const h=en(t);if(Tn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);if(!v)return;const g=v.axesSpec.map(k=>Nr.fromAxisSpec(k).toCanonicalString()),b=[],C={};l&&g.forEach((k,_)=>{!a.has(k)&&!i.has(k)&&(b.push(k),C[k]=_)});const x={kind:"column",name:v.name,label:n??await ta(e,t,[]),type:v.valueType,spec:v,annotations:v.annotations,isSubsetFilter:((s=v.annotations)==null?void 0:s[N7])==="true",isDiscreteFilter:v.valueType==="String"||((c=v.annotations)==null?void 0:c[L7])==="true",axesToBeFixed:b,axesToBeFixedIndexes:C};r.set(h.toCanonicalString(),x);for(const k of v.axesSpec){const M=Nr.fromAxisSpec(k).toCanonicalString();if(r.has(M))continue;const V=tR(k),I={kind:"axis",name:k.name,label:await ta(e,M,[t]),type:k.type,mustBeConsumed:V,dividable:!1,spec:k,annotations:k.annotations,isSubsetFilter:((f=k.annotations)==null?void 0:f[N7])==="true",isDiscreteFilter:k.type==="String"||((A=k.annotations)==null?void 0:A[L7])==="true",parentSources:[t]};r.set(M,I)}}}function qI(e){const t=en(e),{name:n,type:r}=t;return Tn(t)?{kind:"column",name:"",label:" ",type:t.type,spec:{axesSpec:[],kind:"PColumn",valueType:t.type,name:n},annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:t.type==="String",axesToBeFixed:[],axesToBeFixedIndexes:{}}:{kind:"axis",name:"",label:" ",type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1,annotations:void 0,isSubsetFilter:!1,isDiscreteFilter:r==="String",parentSources:[]}}function cC(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function dne(e){const{selectedSource:t,type:n,selectedFilterRange:r,selectedFilterValue:a}=e,i=en(t);if(!i)throw Error("Empty source selected");if(n==="range"){const l=[];return(r==null?void 0:r.max)!==void 0&&l.push({type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"LessOrEqual",reference:r.max}}),(r==null?void 0:r.min)!==void 0&&l.push({type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}),l}else if(n==="subset")return[{type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}];return typeof a>"u"?[]:[{type:"bySingleColumnV2",column:uC(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function K1(e){const t=[];for(const n of e)t.push(...dne(n));return t}function qx(e){var t,n,r,a;if("kind"in e&&e.kind==="PColumn"){const s=(n=e.name)!=null?n:(t=e.annotations)==null?void 0:t[ane],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[ine];return DA({name:s,domain:c})}const i=e.name,l=e.domain;return DA({name:i,domain:l})}async function eR(e,t,n){var r;for(const a of n){const i=en(a);if(Tn(i)){const l=await e.pFrameProvider.getColumnSpecById(i),s=((r=l==null?void 0:l.axesSpec)!=null?r:[]).find(c=>Nr.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}var Ane="pl7.app/label";async function Ma(e,t,n){const r=en(t);async function a(f){const A=await eR(e,f,n);return A?qx(A):null}async function i(f){const A=await e.pFrameProvider.getColumnSpecById(f);return A?qx(A):null}const l=await e.pFrameProvider.getColumns([],!1,void 0,[Ane]),s=Tn(r)?await i(r):await a(r),c=await Promise.all(l.map(async f=>{const A=await e.pFrameProvider.getColumnSpecById(f);return A&&A.axesSpec.length===1&&qx(A.axesSpec[0])===s})).then(f=>f.findIndex(A=>A===!0));if(c!==-1)return l[c]}async function ta(e,t,n){var r,a;const i=en(t),l=await Ma(e,t,n);let s;if(Tn(i)?s=await e.pFrameProvider.getColumnSpecById(l??i):s=l?await e.pFrameProvider.getColumnSpecById(l):await eR(e,i,n),!s)return"";const c=(a=(r=s.annotations)==null?void 0:r[ZI])!=null?a:s.name;return e.labelsModifier(s.name,c)}function tR(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[nne])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function Z1(e){var t,n;return((t=e.annotations)==null?void 0:t[N7])==="true"||((n=e.annotations)==null?void 0:n[L7])==="true",!0}function pne(e){var t;return!e.name.includes("metadata")&&((t=e.annotations)==null?void 0:t[sne])!=="true"}async function J1(e){var t;const n=await e.pFrameProvider.getColumns([],!1,void 0,void 0,{[JI]:"true"}),r={};for(const a of n){const i=await e.pFrameProvider.getColumnSpecById(a),l=(t=i==null?void 0:i.axesSpec)!=null?t:[];if(i&&l.length){const[s,c]=l,f=Nr.fromAxisSpec(s).toCanonicalString(),A=Nr.fromAxisSpec(c).toCanonicalString();r[f]||(r[f]={}),r[A]||(r[A]={}),r[f][A]={id:a,spec:i},r[A][f]={id:a,spec:i}}}return r}async function Rm(e,t){const n=new Set;for(const r of t){const a=en(r);if(Tn(a)){const i=await e.pFrameProvider.getColumnSpecById(a);if(!i)continue;i.axesSpec.forEach(l=>{n.add(Nr.fromAxisSpec(l).toCanonicalString())})}}return n}function hne(e,t,n){const r={},a=new Set([t]);let i=[t];for(;i.length;){const l=new Set;for(const s of i)if(e[s]){const c=Object.keys(e[s]);for(const f of c)if(r[f]=s,f===n){const A=[];let h=n;for(;r[h]!==t;)A.push(h),h=r[h];return A.push(h),A.map(v=>e[v][r[v]].id)}else a.has(f)||(l.add(f),a.add(f))}i=[...l]}return null}function vne(e,t,n){const r=[...t].map(i=>hne(e,i,n)).filter(i=>i!==null);if(r.length===0)return[];let a=r[0];for(const i of r)i.length<a.length&&(a=i);return a}async function Qc(e,t,n,r,a){const i=en(r);if(!Tn(i))return[];const l=await e.pFrameProvider.getColumnSpecById(i);if(!l)return[];const s=l.axesSpec.map(f=>Nr.fromAxisSpec(f).toCanonicalString()).filter(f=>!n.has(f)&&!(a!=null&&a.some(A=>A.axisSource===f))),c=new Set;return s.forEach(f=>{vne(t,n,f).forEach(h=>{c.add(h.toCanonicalString())})}),[...c].map(f=>en(f))}var Nm=class{constructor(e,t){this.simpleComponentControllers=e,this.filterComponentControllers=t,this.ignoredOptionIdNames=[],this.dataInputs=[],this.dontAllowUnfilteredHighCardinality=!1}get requiredComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isRequired&&e.push(t);return e}get dimensionsConsumerComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].isDimensionsConsumer&&e.push(t);for(const t of Object.keys(this.filterComponentControllers))this.filterComponentControllers[t].isDimensionsConsumer&&e.push(t);return e}addSelected(e,t,n){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].addSelected(t,n);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].addSelected(t,n);throw Error(`Unknown input name: ${String(e)}`)}deleteSelected(e,t,n,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].deleteSelected(n,r.selectedSource);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].deleteSelected(n,r.selectedSource);throw Error(`Unknown input name: ${String(e)}`)}changeSelected(e,t,n,r){const a=n.components[e].selectorStates,i=a.filter(c=>!r.find(f=>f.selectedSource===c.selectedSource)),l=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let s=cC(n);return i.forEach(c=>{s=this.deleteSelected(e,t,s,c)}),l.forEach(c=>{s=this.addSelected(e,s,c)}),n.components[e].selectorStates=r.map(c=>n.components[e].selectorStates.find(f=>f.selectedSource===c.selectedSource)).filter(Boolean),s}switchDividableAxis(e,t){return cC(e)}async getMustBeConsumedAxes(e,t){return Promise.resolve(new Set)}createEmptyComponentsGuide(e){return Object.fromEntries(Object.entries(e.components).map(([t,n])=>[t,{options:[],optionsInfo:new Map,stateConsistency:{},required:!1,multipleSelectors:!1}]))}async getSelectedSourcesInfo(e,t,n,r){var a;const i=new Map,l=new Set;for(const f of this.dataInputs)for(const A of t.components[f].selectorStates){const h=en(A.selectedSource);if(Tn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);v&&v.axesSpec.forEach(g=>l.add(Nr.fromAxisSpec(g).toCanonicalString()))}}const s=new Set;let c=[...l];for(;c.length;){const f=[];for(const A of c)if(r[A]){const h=Object.keys(r[A]);for(const v of h)!s.has(v)&&!l.has(v)&&(f.push(v),s.add(v))}c=f}for(const[f,{selectorStates:A}]of Object.entries(t.components)){const v=((a=this.simpleComponentControllers[f])!=null?a:this.filterComponentControllers[f]).settings.columnsWithExtraAxesAllowed;for(const{selectedSource:g}of A)await fne(e,g,n[g],i,l,s,v)}return i}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>qI(t),freeOptionsSet:new Set,axesToBeFixedSet:new Set,readyData:!1,ready:!1,consistent:!0}}getConsumedOptionsSet(e){const t=new Set;for(const n of this.dimensionsConsumerComponents)for(const{selectedSource:r}of e.components[n].selectorStates)t.add(r);return t}async getLabelsMap(e,t){const n=await e.pFrameProvider.getColumnsFull(this.dataInputs.reduce((r,a)=>{const l=t.components[a].selectorStates.map(s=>en(s.selectedSource));return r.concat(l)},[]),!1);return ene(n,r=>r.spec).reduce((r,a)=>{const i=new T3({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[],r=pne){var a,i;const l=this.createEmptyComponentsGuide(t),s=this.getConsumedOptionsSet(t),c=new Set(this.ignoredOptionIdNames),f=new Set(n),A=await J1(e),h=await this.getLabelsMap(e,t),v=await this.getSelectedSourcesInfo(e,t,h,A),g=new Map,b={...this.simpleComponentControllers,...this.filterComponentControllers},C=new Set;for(const[I,$]of Object.entries(b)){const Q=await $.getOptions(e,t,h,s,A,r,c,f);this.dataInputs.includes(I)||Q.options.forEach(q=>{C.add(q.value)});for(const[q,te]of Q.optionsInfo)g.set(q,te);l[I]=Q}const x=I=>{const $=g.get(I);$&&$.kind==="axis"&&($.mustBeConsumed=!0);const Q=v.get(I);Q&&Q.kind==="axis"&&(Q.mustBeConsumed=!0)},k=await this.getMustBeConsumedAxes(e,t);for(const I of k)x(I);if(this.dontAllowUnfilteredHighCardinality){const I=Q=>{var q;return((q=Q==null?void 0:Q.annotations)==null?void 0:q[lne])==="true"},$=(i=(a=t.components.filters)==null?void 0:a.selectorStates.reduce((Q,q)=>{const te=v.get(q.selectedSource);return(te==null?void 0:te.kind)==="column"&&te.spec.axesSpec.filter(I).forEach(z=>Q.add(Nr.fromAxisSpec(z).toCanonicalString())),(te==null?void 0:te.kind)==="axis"&&I(te.spec)&&Q.add(Nr.fromAxisSpec(te.spec).toCanonicalString()),Q},new Set))!=null?i:new Set;this.dataInputs.forEach(Q=>{for(const{selectedSource:q}of t.components[Q].selectorStates){const te=v.get(q);if((te==null?void 0:te.kind)==="column"&&te.spec.axesSpec.filter(I).forEach(z=>{const U=Nr.fromAxisSpec(z).toCanonicalString();!C.has(U)&&!$.has(U)&&C.add(U),$.has(U)||x(U)}),(te==null?void 0:te.kind)==="axis"&&I(te.spec)){const ee=Nr.fromAxisSpec(te.spec).toCanonicalString();C.has(ee)||C.add(ee),$.has(ee)||x(ee)}}})}const _=new Set;for(const{selectorStates:I}of Object.values(t.components))for(const{selectedSource:$}of I){const Q=v.get($);Q&&Q.kind==="column"&&Q.axesToBeFixed.forEach(q=>{_.add(q)})}const M=await this.isConsistent(e,t,A),V=I=>{var $,Q,q;const te=($=en(I).toCanonicalString())!=null?$:I;return(q=(Q=g.get(te))!=null?Q:v.get(te))!=null?q:qI(I)};return{components:l,getSourceInfo:V,freeOptionsSet:C,axesToBeFixedSet:_,readyData:this.readyDataInputs(t),ready:this.readyForPlotBuilding(e,t,M,C,V),consistent:M}}async getUniqueSourceValuesWithLabels(e,t,n){var r;const a=t.getSourceInfo(n),i=(r=a.annotations)==null?void 0:r[one],l=i?JSON.parse(i).map(s=>String(s)):null;if(a.kind==="axis"){const s=en(n),c=a.parentSources.map(en),f=await Ma(e,n,a.parentSources),A=l??await e.pFrameProvider.getAxisUniqueValues(s,c),h=await cne(e,s,c[0],f);return A.map(v=>{var g;return{value:v,label:(g=h==null?void 0:h[v])!=null?g:v}})}if(a.kind==="column"){const s=en(n),c=await Ma(e,n,[]),f=await e.pFrameProvider.getColumnUniqueValues(s),A=await une(e,s,c);return f.map(h=>{var v;return{value:h,label:(v=A==null?void 0:A[h])!=null?v:h}})}return[]}async checkStateConsistency(e,t,n){const r=new Map;for(const a of Object.keys(this.simpleComponentControllers))r.set(a,await this.simpleComponentControllers[a].checkStateConsistency(e,t,n));for(const a of Object.keys(this.filterComponentControllers))r.set(a,await this.filterComponentControllers[a].checkStateConsistency(e,t,n));return r}async isConsistent(e,t,n){const r=await this.checkStateConsistency(e,t,n);for(const a of r.values())if(Object.values(a).some(i=>!i))return!1;return!0}readyDataInputs(e){return this.dataInputs.every(t=>e.components[t].selectorStates.length>0)}readyForPlotBuilding(e,t,n,r,a){if(!n||!this.readyDataInputs(t))return!1;let i=!1;for(const s of r){const c=a(s);if(c&&c.kind==="axis"&&c.mustBeConsumed){i=!0;break}}let l=!1;for(const{selectorStates:s}of Object.values(t.components)){for(const{selectedSource:c,fixedAxes:f}of s){const A=a(c);if(A&&A.kind==="column"&&A.axesToBeFixed.some(h=>{var v;return((v=(f??[]).find(g=>g.axisSource===h))==null?void 0:v.axisValue)===void 0})){l=!0;break}}if(l)break}return this.requiredComponents.every(s=>t.components[s].selectorStates.length>0)&&!i&&!l}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},nR=class Oee{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:l=[],annotations:s={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...Oee.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...l],this.strictlyDependsOnParents=a??!0,this.annotations={...s},c&&(this.checkSourceBySpec=c)}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}addSelected(t,n){const r=cC(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=cC(t);return r.components[this.componentName].selectorStates=r.components[this.componentName].selectorStates.filter(a=>a.selectedSource!==n),r}async checkStateConsistency(t,n,r){const a=n.components[this.componentName],{allowedAxes:i}=await this.getAllowedAxes(t,n,r);function l(c){const f=Nr.fromAxisSpec(c);return i.has(f.toCanonicalString())}const s=await Promise.all(a.selectorStates.map(async({selectedSource:c})=>{const f=en(c);if(Tn(f)){const A=await t.pFrameProvider.getColumnSpecById(f);return A?this.parentComponents.length===0?!0:this.strictlyDependsOnParents&&!this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?A.axesSpec.every(v=>l(v)):this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?A.axesSpec.some(v=>l(v)):i.size===0||A.axesSpec.some(v=>l(v)):!1}return i.has(c)}));return a.selectorStates.reduce((c,f,A)=>(c[f.selectedSource]=s[A],c),{})}async getProducingAxes(t,n){const i=n.components[this.componentName].selectorStates.map(c=>en(c.selectedSource)).filter(c=>Tn(c)),l=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{l.add(Nr.fromAxisSpec(f).toCanonicalString())})}),l}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const l=n.components[i].selectorStates.map(s=>en(s.selectedSource));return a.push(...l),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const l of a)if(Tn(l)){const s=await t.pFrameProvider.getColumnSpecById(l);(r=s==null?void 0:s.axesSpec)==null||r.forEach(c=>{const f=Nr.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n,r){var a,i,l,s,c;const f=this.getParentSelectedSources(t,n),A=new Set,h=new Set,v=new Set,g=new Map;for(const C of f)if(Tn(C)){const x=await t.pFrameProvider.getColumnSpecById(C);for(const k of(a=x==null?void 0:x.axesSpec)!=null?a:[]){const M=Nr.fromAxisSpec(k).toCanonicalString();if(A.has(M))continue;A.add(M),h.add(M);const V=tR(k);g.set(M,{kind:"axis",name:k.name,label:await ta(t,M,[C.toCanonicalString()]),type:k.type,mustBeConsumed:V,dividable:!1,spec:k,annotations:k.annotations,isSubsetFilter:((i=k.annotations)==null?void 0:i[N7])==="true",isDiscreteFilter:k.type==="String"||((l=k.annotations)==null?void 0:l[L7])==="true",parentSources:[C.toCanonicalString()]})}}let b=[...A];for(;b.length;){const C=[];for(const x of b)if(r[x]){const k=Object.keys(r[x]);for(const _ of k)if(!A.has(_)){C.push(_),A.add(_),v.add(_);const{spec:M,id:V}=r[x][_];for(const I of M.axesSpec){const $=Nr.fromAxisSpec(I).toCanonicalString();g.set($,{kind:"axis",name:I.name,label:(c=(s=I.annotations)==null?void 0:s[ZI])!=null?c:"",type:I.type,mustBeConsumed:!1,dividable:!1,spec:I,annotations:I.annotations,isSubsetFilter:!1,isDiscreteFilter:!1,parentSources:[V.toCanonicalString()]})}}}b=C}return{allowedAxes:A,parentAxes:h,linkerAxes:v,optionsInfo:g}}async getOptions(t,n,r,a,i,l,s=new Set,c=new Set){var f,A,h,v,g,b,C,x,k;const _=this.settings.multipleSelectors,M=this.settings.required,V=await this.checkStateConsistency(t,n,i);if(this.dependsOn.length&&this.dependsOn.some(W=>n.components[W].selectorStates.length===0))return{multipleSelectors:_,required:M,stateConsistency:V,options:[],optionsInfo:new Map};if(this.strictlyDependsOnParents&&!this.settings.isDataComponent&&this.parentComponents.some(W=>n.components[W].selectorStates.length===0))return{multipleSelectors:_,required:M,stateConsistency:V,options:[],optionsInfo:new Map};const I=this.getParentSelectedSources(t,n),$=(await t.pFrameProvider.getColumns([],!1,this.allowedTypes,void 0,this.annotations)).filter(W=>!a.has(W.toCanonicalString())),{allowedAxes:Q,parentAxes:q,linkerAxes:te,optionsInfo:ee}=await this.getAllowedAxes(t,n,i),z=n.components[this.componentName],U=[];if(this.settings.axesAllowed)for(const W of q){const Y=en(W),X=ee.get(Y.toCanonicalString()),oe=this.allowedTypes.includes(X.spec.type),de=Object.entries(this.annotations).every(([Ne,De])=>{var Le;return((Le=X.spec.annotations)==null?void 0:Le[Ne])===De}),ae=this.checkSourceBySpec?this.checkSourceBySpec(X.spec,n):!0,ye=!this.settings.homogeneous||!(X!=null&&X.mustBeConsumed),Ce=!a.has(W),ue=s.has(Y.name)||c.has(Y.toCanonicalString()),me=z.selectorStates.some(Ne=>Ne.selectedSource===W);oe&&de&&ae&&ye&&Ce&&!ue&&!me&&U.push({value:W})}if(this.settings.columnsAllowed){const W=!this.settings.columnsWithExtraAxesAllowed&&this.strictlyDependsOnParents;for(const Y of $){const X=Y.toCanonicalString(),oe=en(X),de=await t.pFrameProvider.getColumnSpecById(oe),ae=((f=de==null?void 0:de.annotations)==null?void 0:f[rne])==="true",ye=((A=de==null?void 0:de.annotations)==null?void 0:A[JI])==="true";if(ae||ye||this.checkSourceBySpec&&de&&!this.checkSourceBySpec(de,n)||this.settings.isDataComponent&&de&&!l(de)||W&&((h=de==null?void 0:de.axesSpec)!=null&&h.some(Le=>!Q.has(Nr.fromAxisSpec(Le).toCanonicalString())))||I.length&&!((v=de==null?void 0:de.axesSpec)!=null&&v.some(Le=>Q.has(Nr.fromAxisSpec(Le).toCanonicalString()))))continue;const Ce=(b=(g=de==null?void 0:de.axesSpec)==null?void 0:g.map(Le=>Nr.fromAxisSpec(Le).toCanonicalString()))!=null?b:[],ue=[],me={};if(this.settings.columnsWithExtraAxesAllowed&&Ce.forEach((Le,Ve)=>{Q.has(Le)||(ue.push(Le),me[Le]=Ve)}),de){const Le=(C=r[X])!=null?C:await ta(t,Y.toCanonicalString(),[]),Ve={kind:"column",name:de.name,label:Le,type:de.valueType,spec:de,annotations:de.annotations,isSubsetFilter:((x=de.annotations)==null?void 0:x[N7])==="true",isDiscreteFilter:de.valueType==="String"||((k=de.annotations)==null?void 0:k[L7])==="true",axesToBeFixed:ue,axesToBeFixedIndexes:me};ee.set(oe.toCanonicalString(),Ve)}const Ne=s.has(oe.name)||c.has(oe.toCanonicalString()),De=n.components[this.componentName].selectorStates.some(Le=>Le.selectedSource===X);!Ne&&!De&&U.push({value:X})}}return{multipleSelectors:_,required:M,stateConsistency:V,options:U,optionsInfo:ee}}};nR.DefaultSettings={isDataComponent:!1,multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,columnsWithExtraAxesAllowed:!0,dimensionConsumer:!1};var _n=nR,mne={type:"bubble",components:{valueSize:{type:"simple",selectorStates:[]},valueColor:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function fC(e,t){if(!t.length)return[];const n=t.map(i=>en(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const l=n.map(s=>{const c=s.toCanonicalString();return Tn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(l)}return a}var gne=class extends Nm{constructor(){super({valueSize:new _n({componentName:"valueSize",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueColor"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),valueColor:new _n({componentName:"valueColor",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueSize"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new _n({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),y:new _n({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["valueSize","valueColor"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.valueColor.selectorStates.length)return new Set;const n=t.components.valueColor.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(en(n));return r?new Set(r.axesSpec.map(a=>Nr.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("Value column is not valid");const s=en(i),c=en(l);if(!s||!c||!Tn(s)&&!Tn(c))throw Error("Value column is not valid");const f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=await J1(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=K1(h),g=h.map(W=>en(W.selectedSource)).filter(Tn),b=[s,c].filter(Tn),C=b.map(W=>W.toCanonicalString()),x=await Rm(e,C),k=[t.components.facetBy,t.components.x,t.components.y,t.components.tooltipContent],_=[],M=b.map(()=>[]),V=[],I=[];for(const{selectedSource:W,fixedAxes:Y}of h)I.push(...await Qc(e,A,x,W,Y)),M.push((Y??[]).map(({axisIdx:X,axisValue:oe})=>({idx:X,value:oe})));for(const W of k)for(const{selectedSource:Y,fixedAxes:X}of W.selectorStates){_.push(en(Y)),V.push((X??[]).map(({axisIdx:de,axisValue:ae})=>({idx:de,value:ae}))),I.push(...await Qc(e,A,x,Y,X));const oe=await Ma(e,Y,C);oe&&_.push(oe)}const $=await e.pFrameProvider.getTableOuterJoin([...b,...I,...g],_,v,!0,M,V);_.forEach(W=>{const Y=W.toCanonicalString();f.values[Y]=Tn(W)?$.columnsData[Y]:$.axesData[Y]}),f.values[i]=Tn(s)?$.columnsData[i]:$.axesData[i],f.values[l]=Tn(c)?$.columnsData[l]:$.axesData[l];const Q=t.components.x.selectorStates.map(W=>W.selectedSource),q=Q.join(", "),te=await Promise.all(Q.map(async W=>{var Y,X;return(X=(Y=await Ma(e,W,C))==null?void 0:Y.toCanonicalString())!=null?X:W}));f.values[q]=fC($,Q),f.values.xLabels=fC($,te);const ee=t.components.y.selectorStates.map(W=>W.selectedSource),z=ee.join(", "),U=await Promise.all(ee.map(async W=>{var Y,X;return(X=(Y=await Ma(e,W,C))==null?void 0:Y.toCanonicalString())!=null?X:W}));return f.values[z]=fC($,ee),f.values.yLabels=fC($,U),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.valueColor.selectorStates[0])==null?void 0:n.selectedSource,i=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!a||!i)throw Error("Value column is not valid");const l=en(a),s=en(i);if(!Tn(l)&&!Tn(s))throw Error("Value column is not valid");const c=[l,s].filter(Tn).map(M=>M.toCanonicalString()),f={type:"column",value:a,label:await ta(e,a,[])},A={type:"column",value:i,label:await ta(e,i,[])},v=t.components.x.selectorStates.map(({selectedSource:M})=>M).join(", "),b=t.components.y.selectorStates.map(({selectedSource:M})=>M).join(", "),C=await Promise.all(t.components.facetBy.selectorStates.map(async M=>{var V,I;return{type:"column",value:(I=(V=await Ma(e,M.selectedSource,c))==null?void 0:V.toCanonicalString())!=null?I:M.selectedSource}})),x=(await Promise.all(t.components.x.selectorStates.map(M=>ta(e,M.selectedSource,c)))).join(", "),k=(await Promise.all(t.components.y.selectorStates.map(M=>ta(e,M.selectedSource,c)))).join(", "),_=await Promise.all(t.components.tooltipContent.selectorStates.map(async M=>{var V,I;const $=M.selectedSource;return{type:"column",label:await ta(e,$,c)||$,value:$,valueLabels:(I=(V=await Ma(e,$,c))==null?void 0:V.toCanonicalString())!=null?I:$}}));return{type:"bubble",valueColor:f,valueSize:A,xColumn:{type:"column",value:v,label:x,valueLabels:"xLabels"},yColumn:{type:"column",value:b,label:k,valueLabels:"yLabels"},facetBy:C,tooltips:{show:!0,content:_}}}},yne={type:"histogram",components:{value:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]}},dividedAxes:{}},wne=class extends Nm{constructor(){super({value:new _n({componentName:"value",allowedTypes:["Int","Long","Double","Float"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=en(a);if(!Tn(i))throw Error("Value column is not valid");const l={type:"columns",id:(r=DA(t.components))!=null?r:"",values:{}},s=await J1(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=K1(c),A=c.map(M=>en(M.selectedSource)).filter(Tn),h=[a],v=await Rm(e,h),g=[t.components.facetBy],b=[],C=[[]],x=[],k=[];for(const{selectedSource:M,fixedAxes:V}of c)k.push(...await Qc(e,s,v,M,V)),k.push(...await Qc(e,s,v,M,V)),C.push((V??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})));for(const M of g)for(const{selectedSource:V,fixedAxes:I}of M.selectorStates){b.push(en(V)),x.push((I??[]).map(({axisIdx:Q,axisValue:q})=>({idx:Q,value:q}))),k.push(...await Qc(e,s,v,V,I));const $=await Ma(e,V,h);$&&b.push($)}const _=await e.pFrameProvider.getTableOuterJoin([i,...k,...A],b,f,!0,C,x);return b.forEach(M=>{const V=M.toCanonicalString();l.values[V]=Tn(M)?_.columnsData[V]:_.axesData[V]}),l.values[i.toCanonicalString()]=_.columnsData[i.toCanonicalString()],l}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=en(r);if(!Tn(a))throw Error("Value column is not valid");const i=[r],l={type:"column",value:r,label:await ta(e,r,[])},s=await Promise.all(t.components.facetBy.selectorStates.map(async c=>{var f,A;return{type:"column",value:(A=(f=await Ma(e,c.selectedSource,i))==null?void 0:f.toCanonicalString())!=null?A:c.selectedSource}}));return{type:"histogram",valueColumn:l,facetBy:s}}},Cne={type:"discrete",components:{y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},primaryGrouping:{type:"simple",selectorStates:[]},secondaryGrouping:{type:"simple",selectorStates:[]}},dividedAxes:{}},bne=class extends Nm{constructor(){super({y:new _n({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{isDataComponent:!0}}),primaryGrouping:new _n({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new _n({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["y"],this.dontAllowUnfilteredHighCardinality=!0}async createDataByColumns(e,t){var n;const r=t.components.y.selectorStates[0].selectedSource,a=en(r);if(!r||!Tn(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=DA(t.components))!=null?n:"",values:{}},l=await J1(e),s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=K1(s),f=s.map(_=>en(_.selectedSource)).filter(Tn),A=[r],h=await Rm(e,A),v=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],g=[],b=[[]],C=[],x=[];for(const{selectedSource:_,fixedAxes:M}of s)x.push(...await Qc(e,l,h,_,M)),b.push((M??[]).map(({axisIdx:V,axisValue:I})=>({idx:V,value:I})));for(const _ of v)for(const{selectedSource:M,fixedAxes:V}of _.selectorStates){g.push(en(M)),C.push((V??[]).map(({axisIdx:$,axisValue:Q})=>({idx:$,value:Q}))),x.push(...await Qc(e,l,h,M,V));const I=await Ma(e,M,A);I&&g.push(I)}const k=await e.pFrameProvider.getTableOuterJoin([a,...x,...f],g,c,!0,b,C);return g.forEach(_=>{const M=_.toCanonicalString();i.values[M]=Tn(_)?k.columnsData[M]:k.axesData[M]}),i.values[a.toCanonicalString()]=k.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=en(a);if(!a||!Tn(i))throw Error("Y column is not valid");const l={type:"column",value:a,label:await ta(e,a,[])},s=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:h,label:await ta(e,h,s),valueLabels:(n=await Ma(e,h,s))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:h,label:await ta(e,h,s),valueLabels:(r=await Ma(e,h,s))==null?void 0:r.toCanonicalString()}}}const A=await Promise.all(t.components.facetBy.selectorStates.map(async h=>{var v,g;return{type:"column",value:(g=(v=await Ma(e,h.selectedSource,s))==null?void 0:v.toCanonicalString())!=null?g:h.selectedSource,label:await ta(e,h.selectedSource,s)}}));return{type:"discrete",y:l,primaryGrouping:c,secondaryGrouping:f,facetBy:A}}},Ene={type:"heatmap",components:{value:{type:"simple",selectorStates:[]},x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},xGroupBy:{type:"simple",selectorStates:[]},yGroupBy:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},annotationsX:{type:"simple",selectorStates:[]},annotationsY:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}};function eS(e){return e?"kind"in e&&e.kind==="PColumn"?e.valueType==="String":e.type==="String":!0}function dC(e,t){if(!t.length)return[];const n=t.map(i=>en(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const l=n.map(s=>{const c=s.toCanonicalString();return Tn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(l)}return a}var xne=class extends Nm{constructor(){super({value:new _n({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new _n({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new _n({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!0},dependsOn:["x"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.x.selectorStates.map(r=>r.selectedSource),...t.components.xGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),y:new _n({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!0}}),yGroupBy:new _n({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.y.selectorStates.map(r=>r.selectedSource),...t.components.yGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotationsX:new _n({componentName:"annotationsX",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,multipleSelectors:!0},dependsOn:["x"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.x.selectorStates.map(r=>r.selectedSource),...t.components.xGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Nr.fromAxisSpec(e).toCanonicalString())}}),annotationsY:new _n({componentName:"annotationsY",allowedTypes:["Int","Long","Double","Float","String"],parentComponents:["value"],settings:{axesAllowed:!0,multipleSelectors:!0},dependsOn:["y"],checkSourceBySpec:(e,t)=>{const n=new Set([...t.components.y.selectorStates.map(r=>r.selectedSource),...t.components.yGroupBy.selectorStates.map(r=>r.selectedSource)]);return"kind"in e&&e.kind==="PColumn"?Nr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Nr.fromAxisSpec(e).toCanonicalString())}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"],this.dontAllowUnfilteredHighCardinality=!0}async getMustBeConsumedAxes(e,t){if(!t.components.value.selectorStates.length)return new Set;const n=t.components.value.selectorStates[0].selectedSource,r=await e.pFrameProvider.getColumnSpecById(en(n));return r?new Set(r.axesSpec.map(a=>Nr.fromAxisSpec(a).toCanonicalString())):new Set}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!a)throw Error("Value column is not valid");const i=en(a);if(!Tn(i))throw Error("Value column is not valid");const l={type:"columns",id:(r=DA(t.components))!=null?r:"",values:{}},s=await J1(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=K1(c),A=c.map(z=>en(z.selectedSource)).filter(Tn),h=[a],v=await Rm(e,h),g=[t.components.facetBy,t.components.annotationsX,t.components.annotationsY,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy,t.components.tooltipContent],b=[],C=[[]],x=[],k=[];for(const{selectedSource:z,fixedAxes:U}of c)k.push(...await Qc(e,s,v,z,U)),C.push((U??[]).map(({axisIdx:W,axisValue:Y})=>({idx:W,value:Y})));for(const z of g)for(const{selectedSource:U,fixedAxes:W}of z.selectorStates){b.push(en(U)),x.push((W??[]).map(({axisIdx:X,axisValue:oe})=>({idx:X,value:oe}))),k.push(...await Qc(e,s,v,U,W));const Y=await Ma(e,U,h);Y&&b.push(Y)}const _=await e.pFrameProvider.getTableOuterJoin([i,...k,...A],b,f,!0,C,x);b.forEach(z=>{const U=z.toCanonicalString();l.values[U]=Tn(z)?_.columnsData[U]:_.axesData[U]}),l.values[i.toCanonicalString()]=_.columnsData[i.toCanonicalString()];const M=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(z=>z.selectedSource),V=M.join(", ");l.values[V]=dC(_,M);const I=t.components.x.selectorStates.map(z=>z.selectedSource),$=await Promise.all(I.map(async z=>{var U,W;return(W=(U=await Ma(e,z,h))==null?void 0:U.toCanonicalString())!=null?W:z}));l.values.xLabelsKey=dC(_,$);const Q=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(z=>z.selectedSource),q=Q.join(", ");l.values[q]=dC(_,Q);const te=t.components.y.selectorStates.map(z=>z.selectedSource),ee=await Promise.all(te.map(async z=>{var U,W;return(W=(U=await Ma(e,z,h))==null?void 0:U.toCanonicalString())!=null?W:z}));return l.values.yLabelsKey=dC(_,ee),l}async createChartSettings(e,t){var n;const r=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource;if(!r)throw Error("Value column is not valid");const a=en(r);if(!Tn(a))throw Error("Value column is not valid");const i=[r],l={type:"column",value:r,label:await ta(e,r,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:V})=>en(V)).map(V=>V.toCanonicalString()).join(", "),A=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:V})=>en(V)).map(V=>V.toCanonicalString()).join(", "),h=await Promise.all(t.components.facetBy.selectorStates.map(async V=>{var I,$;return{type:"column",value:($=(I=await Ma(e,V.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),v=await Promise.all(t.components.xGroupBy.selectorStates.map(async V=>{var I,$;return{type:"column",label:await ta(e,V.selectedSource,i),value:V.selectedSource,valueLabels:($=(I=await Ma(e,V.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),g=await Promise.all(t.components.yGroupBy.selectorStates.map(async V=>{var I,$;return{type:"column",label:await ta(e,V.selectedSource,i),value:V.selectedSource,valueLabels:($=(I=await Ma(e,V.selectedSource,i))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),b=await e.pFrameProvider.getColumnSpecById(a),C=await Promise.all(t.components.annotationsX.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource,q=en(Q),te=Tn(q)?await e.pFrameProvider.getColumnSpecById(q):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ee=>Nr.fromAxisSpec(ee).toCanonicalString()===Q))!=null?$:null;return{axis:"x",valueColumn:{type:"column",value:Q,label:await ta(e,Q,i)},type:eS(te)?"discrete":"continuous"}})),x=await Promise.all(t.components.annotationsY.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource,q=en(Q),te=Tn(q)?await e.pFrameProvider.getColumnSpecById(q):($=(I=b==null?void 0:b.axesSpec)==null?void 0:I.find(ee=>Nr.fromAxisSpec(ee).toCanonicalString()===Q))!=null?$:null;return{axis:"y",valueColumn:{type:"column",value:Q,label:await ta(e,Q,i)},type:eS(te)?"discrete":"continuous"}})),k=(await Promise.all(t.components.x.selectorStates.map(V=>ta(e,V.selectedSource,i)))).join(", "),_=(await Promise.all(t.components.y.selectorStates.map(V=>ta(e,V.selectedSource,i)))).join(", "),M=await Promise.all(t.components.tooltipContent.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource;return{type:"column",label:await ta(e,Q,i)||Q,value:Q,valueLabels:($=(I=await Ma(e,Q,i))==null?void 0:I.toCanonicalString())!=null?$:Q}}));return{type:"heatmap",valueColumn:l,valueType:eS(b)?"discrete":"continuous",xColumn:{type:"column",value:c,label:k,valueLabels:"xLabelsKey"},yColumn:{type:"column",value:A,label:_,valueLabels:"yLabelsKey"},facetBy:h,xGroupBy:v,yGroupBy:g,annotations:[...C,...x],tooltips:{show:!0,content:M}}}},Sne={type:"scatterplot",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},highlight:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},shape:{type:"simple",selectorStates:[]},size:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Bne=class extends Nm{constructor(){super({x:new _n({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new _n({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new _n({componentName:"grouping",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),shape:new _n({componentName:"shape",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),size:new _n({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new _n({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new _n({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:Z1})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(en(n)),i=await e.pFrameProvider.getColumnSpecById(en(r));if(!a||!i)return new Set;const l=a.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),c=l.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!l.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const s=en(i),c=en(l),f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=await J1(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=K1(h),g=h.map(q=>en(q.selectedSource)).filter(Tn),b=[s,c].filter(Tn).map(q=>q.toCanonicalString());if(b.length===0)throw Error("One of X and Y should be a column");const C=await Rm(e,b),x=[s,c,...g],k=[],_=[[],[]],M=[],V=[];for(const{selectedSource:q,fixedAxes:te}of h)V.push(...await Qc(e,A,C,q,te)),_.push((te??[]).map(({axisIdx:ee,axisValue:z})=>({idx:ee,value:z})));const I=[t.components.grouping,t.components.size,t.components.shape,t.components.tooltipContent,t.components.facetBy,t.components.label,t.components.highlight];for(const q of I)for(const{selectedSource:te,fixedAxes:ee}of q.selectorStates){k.push(en(te)),M.push((ee??[]).map(({axisIdx:U,axisValue:W})=>({idx:U,value:W}))),V.push(...await Qc(e,A,C,te,ee));const z=await Ma(e,te,b);z&&k.push(z)}const $=await e.pFrameProvider.getTableOuterJoin([s,c,...V,...g],k,v,!1,_,M);[...x,...k].forEach(q=>{const te=q.toCanonicalString();f.values[te]=Tn(q)?$.columnsData[te]:$.axesData[te]}),f.values.key=f.values[Object.keys(f.values)[0]].map((q,te)=>te);const Q=t.components.highlight.selectorStates.map(({selectedSource:q})=>en(q));return Q.length&&(f.values.highlight=f.values.key.map((q,te)=>{let ee=!1;for(let z=0;z<Q.length;z++){const{selectedSource:U,selectedFilterValue:W,selectedFilterRange:Y,type:X}=t.components.highlight.selectorStates[z],oe=(Tn(Q[z])?$.columnsData[U]:$.axesData[U])[te];if(W!==void 0&&(ee=ee||oe===W),Y!==void 0&&(Y.min!==void 0||Y.max!==void 0)&&typeof oe=="number"){let de=!0;Y.min!==void 0&&(de=de&&oe>=Y.min),Y.max!==void 0&&(de=de&&oe<=Y.max),ee=ee||de}X==="subset"&&(ee=ee||oe!=null)}return ee?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const l=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=l?en(l):null,f=s?en(s):null;if(!l||!s||!c||!f||!Tn(c)&&!Tn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(Tn).map(V=>V.toCanonicalString()),h={type:"column",value:l,label:await ta(e,l,A)},v={type:"column",value:s,label:await ta(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async V=>{var I,$;return{type:"column",value:($=(I=await Ma(e,V.selectedSource,A))==null?void 0:I.toCanonicalString())!=null?$:V.selectedSource}})),C=ir.uniq([...t.components.grouping.selectorStates.map(V=>V.selectedSource),...t.components.size.selectorStates.map(V=>V.selectedSource),...t.components.shape.selectorStates.map(V=>V.selectedSource)]),x=await Promise.all(C.map(async V=>{var I,$;return{type:"column",label:await ta(e,V,A)||V,value:V,valueLabels:($=(I=await Ma(e,V,A))==null?void 0:I.toCanonicalString())!=null?$:V}})),k=await Promise.all(t.components.tooltipContent.selectorStates.map(async V=>{var I,$;const Q=V.selectedSource;return{type:"column",label:await ta(e,Q,A)||Q,value:Q,valueLabels:($=(I=await Ma(e,Q,A))==null?void 0:I.toCanonicalString())!=null?$:Q}}));let _;if(t.components.label.selectorStates.length){const V=t.components.label.selectorStates[0].selectedSource;_={type:"column",value:V,label:await ta(e,V,A),valueLabels:(i=(a=await Ma(e,V,A))==null?void 0:a.toCanonicalString())!=null?i:V}}let M;return t.components.highlight.selectorStates.length&&(M={type:"column",value:"highlight"}),{type:"scatterplot",x:h,y:v,keyColumn:g,facetBy:b,grouping:x,label:_,highlight:M,tooltips:{show:!0,content:k}}}},kne={type:"scatterplot-umap",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},highlight:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Tne=class extends Nm{constructor(){super({x:new _n({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new _n({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new _n({componentName:"grouping",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new _n({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),label:new _n({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:Z1}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new _n({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:Z1})}),this.dataInputs=["x","y"]}async getMustBeConsumedAxes(e,t){if(!t.components.x.selectorStates.length||!t.components.y.selectorStates.length)return new Set;const n=t.components.x.selectorStates[0].selectedSource,r=t.components.y.selectorStates[0].selectedSource,a=await e.pFrameProvider.getColumnSpecById(en(n)),i=await e.pFrameProvider.getColumnSpecById(en(r));if(!a||!i)return new Set;const l=a.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Nr.fromAxisSpec(A).toCanonicalString()),c=l.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!l.some(h=>h===A));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const s=en(i),c=en(l);if(!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=await J1(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=K1(h),g=h.map(te=>en(te.selectedSource)).filter(Tn),b=[s,c].filter(Tn).map(te=>te.toCanonicalString());if(b.length===0)throw Error("One of X and Y should be a column");const C=await Rm(e,b),x=[s,c,...g],k=[],_=[[],[]],M=[],V=[];for(const{selectedSource:te,fixedAxes:ee}of h)V.push(...await Qc(e,A,C,te,ee)),V.push(...await Qc(e,A,C,te,ee)),_.push((ee??[]).map(({axisIdx:z,axisValue:U})=>({idx:z,value:U})));const I=[t.components.grouping,t.components.facetBy,t.components.tooltipContent,t.components.label,t.components.highlight];for(const te of I)for(const{selectedSource:ee,fixedAxes:z}of te.selectorStates){k.push(en(ee)),M.push((z??[]).map(({axisIdx:W,axisValue:Y})=>({idx:W,value:Y}))),V.push(...await Qc(e,A,C,ee,z));const U=await Ma(e,ee,b);U&&k.push(U)}const $=await e.pFrameProvider.getTableOuterJoin([s,c,...V,...g],k,v,!1,_,M);[...x,...k].forEach(te=>{const ee=te.toCanonicalString();f.values[ee]=Tn(te)?$.columnsData[ee]:$.axesData[ee]});const Q=Object.keys($.axesData);f.values.key=f.values[Object.keys(f.values)[0]].map((te,ee)=>JSON.stringify(Q.reduce((z,U)=>(z[U]=$.axesData[U][ee],z),{})));const q=t.components.highlight.selectorStates.map(({selectedSource:te})=>en(te));return q.length&&(f.values.highlight=f.values.key.map((te,ee)=>{let z=!1;for(let U=0;U<q.length;U++){const{selectedSource:W,selectedFilterValue:Y,selectedFilterRange:X,type:oe}=t.components.highlight.selectorStates[U],de=(Tn(q[U])?$.columnsData[W]:$.axesData[W])[ee];if(Y!==void 0&&(z=z||de===Y),X!==void 0&&(X.min!==void 0||X.max!==void 0)&&typeof de=="number"){let ae=!0;X.min!==void 0&&(ae=ae&&de>=X.min),X.max!==void 0&&(ae=ae&&de<=X.max),z=z||ae}oe==="subset"&&(z=z||de!=null)}return z?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const l=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=l?en(l):null,f=s?en(s):null;if(!l||!s||!c||!f||!Tn(c)&&!Tn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(Tn).map(M=>M.toCanonicalString()),h={type:"column",value:l,label:await ta(e,l,A)},v={type:"column",value:s,label:await ta(e,s,A)},g={type:"column",value:"key"},b=await Promise.all(t.components.facetBy.selectorStates.map(async M=>{var V,I;return{type:"column",value:(I=(V=await Ma(e,M.selectedSource,A))==null?void 0:V.toCanonicalString())!=null?I:M.selectedSource}})),C=await Promise.all(t.components.grouping.selectorStates.map(async M=>{var V,I;const $=M.selectedSource;return{type:"column",label:await ta(e,$,A)||$,value:$,valueLabels:(I=(V=await Ma(e,$,A))==null?void 0:V.toCanonicalString())!=null?I:$}})),x=await Promise.all(t.components.tooltipContent.selectorStates.map(async M=>{var V,I;const $=M.selectedSource;return{type:"column",label:await ta(e,$,A)||$,value:$,valueLabels:(I=(V=await Ma(e,$,A))==null?void 0:V.toCanonicalString())!=null?I:$}}));let k;if(t.components.label.selectorStates.length){const M=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:M,label:await ta(e,M,A),valueLabels:(i=(a=await Ma(e,M,A))==null?void 0:a.toCanonicalString())!=null?i:M}}let _;return t.components.highlight.selectorStates.length&&(_={type:"column",value:"highlight"}),{type:"scatterplot-umap",x:h,y:v,keyColumn:g,facetBy:b,grouping:C,label:k,highlight:_,tooltips:{show:!0,content:x}}}},tS="pl7.app/dendrogram/nodeId",nS="id",_ne={type:"dendro",components:{value:{type:"simple",selectorStates:[]},height:{type:"simple",selectorStates:[]},labels:{type:"simple",selectorStates:[]},tableContent:{type:"simple",selectorStates:[]},nodeColor:{type:"simple",selectorStates:[]},nodeShape:{type:"simple",selectorStates:[]},nodeSize:{type:"simple",selectorStates:[]},lineColor:{type:"simple",selectorStates:[]},heatmapAnnotation:{type:"simple",selectorStates:[]},heatmapForSequence:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},heatmapAxis:{type:"simple",selectorStates:[]},heatmapGroup:{type:"simple",selectorStates:[]}},dividedAxes:{}},Pne=class extends Nm{constructor(){super({value:new _n({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{isDataComponent:!0,columnsAllowed:!0,required:!0,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),height:new _n({componentName:"height",allowedTypes:["Int","Long","Double","Float"],annotations:{"pl7.app/dendrogram/isDistance":"true"},parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),labels:new _n({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tableContent:new _n({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0,columnsWithExtraAxesAllowed:!1}}),nodeShape:new _n({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeSize:new _n({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeColor:new _n({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),lineColor:new _n({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapForSequence:new _n({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),heatmapAnnotation:new _n({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),facetBy:new _n({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapAxis:new _n({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapGroup:new _n({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})},{filters:new _n({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tabBy:new _n({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})}),this.ignoredOptionIdNames=[tS]}readyDataInputs(e){return e.components.value.selectorStates.length>0}async createTableData(e,t){var n;const r={},a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,i=en(a);if(!a||!Tn(i))throw Error("Value column is not valid");const l=await J1(e),s=K1([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),c=[...t.components.filters.selectorStates.map(M=>en(M.selectedSource)),...t.components.tabBy.selectorStates.map(M=>en(M.selectedSource))].filter(Tn),f=[a],A=await Rm(e,f),h=[],v=[],g=[],b=[t.components.value],C=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],x={};for(const M of b)for(const{selectedSource:V,fixedAxes:I}of M.selectorStates){g.push(...await Qc(e,l,A,V,I));const $=await Ma(e,V,f),Q=$??en(V);x[Q.toCanonicalString()]=V,h.push(Q)}for(const M of C)for(const{selectedSource:V,fixedAxes:I}of M.selectorStates){g.push(...await Qc(e,l,A,V,I));const $=await Ma(e,V,f),Q=$??en(V);x[V]=Q.toCanonicalString(),v.push(Q)}const k=await e.pFrameProvider.getTableOuterJoin([...h,...c,...g],v,s,!1);for(const M of[...h,...v]){const V=M.toCanonicalString(),I=x[M.toCanonicalString()];r[I]={data:Tn(M)?k.columnsData[V]:k.axesData[V],spec:Tn(M)?k.columnSpecs[V]:k.axesSpecs[V],label:await ta(e,I,f)}}const _=Object.keys(k.axesData).find(M=>{var V;return((V=en(M))==null?void 0:V.name)===tS});return _?r[nS]={data:k.axesData[_],spec:{kind:"PColumn",valueType:"Int",name:"Node id"},label:"Node id"}:console.warn("Missed node id axis in data column"),r}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,s=en(i),c=l?en(l):null;if(!i||!Tn(s))throw Error("Value column is not valid");const f={type:"columns",id:(a=DA(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=K1(A),v=A.map($=>en($.selectedSource)).filter(Tn),g=[s,c].filter(Tn).map($=>$.toCanonicalString()),b=[],C=[],x=[],k=[],_=[t.components.value,t.components.height,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor,t.components.heatmapAnnotation,t.components.heatmapForSequence],M=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const $ of _)for(const{selectedSource:Q,fixedAxes:q}of $.selectorStates){b.push(en(Q)),x.push((q??[]).map(({axisIdx:ee,axisValue:z})=>({idx:ee,value:z})));const te=await Ma(e,Q,g);te&&b.push(te)}A.forEach(({fixedAxes:$})=>{x.push(($??[]).map(({axisIdx:Q,axisValue:q})=>({idx:Q,value:q})))});for(const $ of M)for(const{selectedSource:Q,fixedAxes:q}of $.selectorStates){C.push(en(Q)),k.push((q??[]).map(({axisIdx:ee,axisValue:z})=>({idx:ee,value:z})));const te=await Ma(e,Q,g);te&&C.push(te)}const V=await e.pFrameProvider.getTableOuterJoin([...b,...v],C,h,!1,x,k);[...b,...C].forEach($=>{const Q=$.toCanonicalString(),q=Tn($)?V.columnsData[Q]:V.axesData[Q];f.values[Q]=[],f.values[Q]=q});const I=Object.keys(V.axesData).find($=>{var Q;return((Q=en($))==null?void 0:Q.name)===tS});return I?f.values[nS]=V.axesData[I]:console.warn("Missed node id axis in data column"),f}async createChartSettings(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=en(i);if(!i||!Tn(l))throw Error("Data column is not valid");const s=[i],c={type:"column",value:nS},f={type:"column",value:i},A=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,h=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,v={};if(t.components.nodeColor.selectorStates.length){const x=t.components.nodeColor.selectorStates[0].selectedSource;v.nodeColor={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}if(t.components.nodeShape.selectorStates.length){const x=t.components.nodeShape.selectorStates[0].selectedSource;v.nodeShape={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}if(t.components.nodeSize.selectorStates.length){const x=t.components.nodeSize.selectorStates[0].selectedSource;v.nodeSize={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}if(t.components.lineColor.selectorStates.length){const x=t.components.lineColor.selectorStates[0].selectedSource;v.lineColor={columnName:{type:"column",value:x,label:await ta(e,x,s)}}}let g,b,C;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const x=t.components.heatmapAnnotation.selectorStates[0].selectedSource;g={type:"column",value:x,label:await ta(e,x,[]),valueLabels:(r=await Ma(e,x,[]))==null?void 0:r.toCanonicalString()};const k=t.components.heatmapAxis.selectorStates[0].selectedSource;b={type:"column",value:k,label:await ta(e,k,[x]),valueLabels:(a=await Ma(e,k,[x]))==null?void 0:a.toCanonicalString()},C=await Promise.all(t.components.heatmapGroup.selectorStates.map(async _=>{var M;return{type:"column",value:_.selectedSource,label:await ta(e,_.selectedSource,[x]),valueLabels:(M=await Ma(e,_.selectedSource,[x]))==null?void 0:M.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const x=t.components.heatmapForSequence.selectorStates[0].selectedSource;g={type:"column",value:x,label:await ta(e,x,[])}}return{type:"dendro",id:c,parentId:f,height:A,labels:h,aes:v,heatmapAnnotation:g,heatmapAxis:b,heatmapGroup:C}}},AC=1e6;function _3(e,t){return e==="String"?t.data:Array.from(t.data).map(n=>e==="Int"&&n===-2147483648||e==="Long"&&n===BigInt(-9007199254740991)||(e==="Double"||e==="Float")&&isNaN(n)?null:Number(n))}var q1=!1,Kbt=100,Mne=class{constructor(e,t){this.pframeHandle=e,this.pframeDriver=t}async isColumnExisted(e){return!!await this.getColumnSpecById(e)}async getSingleColumnData(e,t=[]){if(!await this.isColumnExisted(e))return{axesData:{},data:[]};try{const n=Date.now(),r=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),a=r.filter(l=>l.spec.type==="axis"),i=r.filter(l=>l.spec.type==="column");return{axesData:a.reduce((l,s)=>{const c=Nr.fromAxisSpec(s.spec.spec);return l[c.toCanonicalString()]=_3(c.type,s.data),l},{}),data:i.length?_3(e.type,i[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[],n=!1){if(!await this.isColumnExisted(e))return[];const r={columnId:e.name,filters:t,limit:AC};try{const a=Date.now(),i=await this.pframeDriver.getUniqueValues(this.pframeHandle,r);return i.overflow&&console.warn(`More than ${AC} values for ${e.name} column`),_3(e.type,i.values).map(String)}catch(a){throw console.error("PFrame: getUniqueValues for column error"),a}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(Tn),a=await Promise.all(r.map(s=>this.getColumnSpecById(s))),i=e.toCanonicalString(),l=r.filter((s,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(A=>Nr.fromAxisSpec(A).toCanonicalString()===i)});if(l.length===0)return[];try{const s=Date.now(),c=await Promise.all(l.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:AC})));return c.forEach((f,A)=>{f.overflow&&console.warn(`More than ${AC} values for ${l[A].name} column`)}),ir.uniq(ir.flatten(c.map(f=>_3(e.type,f.values).map(String))))}catch(s){throw console.error("PFrame: getUniqueValues for axis error",s),s}}async getTableOuterJoin(e,t,n=[],r=!0,a=[],i=[]){const l=e.filter(Tn),s=t.filter(Tn),c={src:{type:"outer",primary:{type:r?"inner":"full",entries:l.map((f,A)=>{var h;const v=(h=a[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return v!=null&&v.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:v}:{type:"column",column:f.name}})},secondary:s.map((f,A)=>{var h;const v=(h=i[A])==null?void 0:h.map(g=>({type:"constant",axisIndex:g.idx,constant:g.value})).filter(g=>g.constant!==void 0);return v!=null&&v.length?{type:"slicedColumn",newId:f.name,column:f.name,axisFilters:v}:{type:"column",column:f.name}})},filters:n,sorting:[]};try{const f=Date.now(),A=await this.pframeDriver.calculateTableData(this.pframeHandle,c),h=A.filter(g=>g.spec.type==="axis"),v=A.filter(g=>g.spec.type==="column");return{axesData:h.reduce((g,b)=>{const C=Nr.fromAxisSpec(b.spec.spec);return g[C.toCanonicalString()]=_3(C.type,b.data),g},{}),columnsData:v.reduce((g,b)=>{const C=b.spec.spec,x=new T3({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=_3(x.type,b.data),g},{}),columnSpecs:v.reduce((g,b)=>{const C=b.spec.spec,x=new T3({name:b.spec.id,type:C.valueType});return g[x.toCanonicalString()]=C,g},{}),axesSpecs:h.reduce((g,b)=>{const C=b.spec.spec,x=Nr.fromAxisSpec(C);return g[x.toCanonicalString()]=C,g},{})}}catch(f){throw console.error("PFrame: table outer join error"),console.info("error with request: ",c),f}}async getColumnSpecById(e){try{const t=Date.now(),n=await this.pframeDriver.getColumnSpec(this.pframeHandle,e.name);return n??null}catch{return console.error("PFrame: get single column error"),null}}async getColumnAxesIds(e){var t,n;return(n=(t=await this.getColumnSpecById(e))==null?void 0:t.axesSpec.map(r=>Nr.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(Tn(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(l=>Nr.fromAxisSpec(l).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumnsFull(e,t,n,r,a){try{const i={columnFilter:{type:n,name:r,annotationValue:a},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:t},l=Date.now(),s=await this.pframeDriver.findColumns(this.pframeHandle,i),c=[];return s.hits.forEach(f=>{c.push(f)}),c}catch(i){throw console.error("PFrame: findColumns error"),i}}async getColumns(e,t,n,r,a){return(await this.getColumnsFull(e,t,n,r,a)).map(i=>new T3({name:i.columnId,type:i.spec.valueType}))}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},i=Date.now(),l=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return l.hits.forEach(({columnId:c,spec:f})=>{s.push(new T3({name:c,type:f.valueType}))}),s.length>1&&console.warn(`More than 1 column found for ${e}}`),s.length===0?(console.warn(`No columns found for ${e}}`),null):s[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},Dne=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new Mne(e,t)}},rR={controllers:{discrete:new bne,scatterplot:new Bne,"scatterplot-umap":new Tne,heatmap:new xne,dendro:new Pne,histogram:new wne,bubble:new gne},initialStates:{discrete:Cne,scatterplot:Sne,"scatterplot-umap":kne,heatmap:Ene,dendro:_ne,histogram:yne,bubble:mne}};function pC(e){return rR.controllers[e]}function aR(e){return rR.initialStates[e]}const mr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Hne={},Ine={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rne(e,t){return d.openBlock(),d.createElementBlock("svg",Ine,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25V21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 1C17.5523 1 18 1.44772 18 2C18 2.55228 17.5523 3 17 3C16.4477 3 16 2.55228 16 2C16 1.44772 16.4477 1 17 1ZM15 6.75H16.25L16.25 9H14C13.4477 9 13 9.44771 13 10V12.125V13.25V14V14.75V16V18C13 18.5523 13.4477 19 14 19H16.25L16.25 21.25H15H14.25V22.75H15H19H19.75V21.25H19H17.75V19H20C20.5523 19 21 18.5523 21 18V16V14.75V14V13.25V12.125V10C21 9.44771 20.5523 9 20 9H17.75V6.75H19H19.75V5.25H19H15H14.25V6.75H15ZM16.25 10.5H14.5V12.125V13.25H19.5V12.125V10.5H17.75H16.25ZM14.5 16V14.75H19.5V16V17.5H14.5V16Z",fill:"#07AD3E"},null,-1)]))}const Nne=mr(Hne,[["render",Rne]]),Lne={},$ne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fne(e,t){return d.openBlock(),d.createElementBlock("svg",$ne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const Vne=mr(Lne,[["render",Fne]]),One={},Qne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zne(e,t){return d.openBlock(),d.createElementBlock("svg",Qne,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 1.25H4.25V2.75H5H6.25L6.25 5H4C3.44772 5 3 5.44772 3 6V8V9.25V10V10.75V12V16C3 16.5523 3.44772 17 4 17H6.25L6.25 21.25H5H4.25V22.75H5H9H9.75V21.25H9H7.75V17H10C10.5523 17 11 16.5523 11 16V12V10.75V10V9.25V8V6C11 5.44771 10.5523 5 10 5H7.75V2.75H9H9.75V1.25H9H5ZM4.5 10.75H9.5V12V15.5H4.5V12V10.75ZM9.5 9.25H4.5V8V6.5H9.5V8V9.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3ZM17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15ZM18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5ZM17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5ZM18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5ZM21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15ZM15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5ZM15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5ZM16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19ZM18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11ZM18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5ZM18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z",fill:"#07AD3E"},null,-1)]))}const Une=mr(One,[["render",zne]]),Gne={},jne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yne(e,t){return d.openBlock(),d.createElementBlock("svg",jne,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25H21" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M14 11.5C14 12.3284 13.3284 13 12.5 13C11.6716 13 11 12.3284 11 11.5C11 10.6716 11.6716 10 12.5 10C13.3284 10 14 10.6716 14 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 14.5C14 15.3284 13.3284 16 12.5 16C11.6716 16 11 15.3284 11 14.5C11 13.6716 11.6716 13 12.5 13C13.3284 13 14 13.6716 14 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M14 17.5C14 18.3284 13.3284 19 12.5 19C11.6716 19 11 18.3284 11 17.5C11 16.6716 11.6716 16 12.5 16C13.3284 16 14 16.6716 14 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M9 17.5C9 18.3284 8.32843 19 7.5 19C6.67157 19 6 18.3284 6 17.5C6 16.6716 6.67157 16 7.5 16C8.32843 16 9 16.6716 9 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4C16.3284 4 17 4.67157 17 5.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 17.5C17 18.3284 16.3284 19 15.5 19C14.6716 19 14 18.3284 14 17.5C14 16.6716 14.6716 16 15.5 16C16.3284 16 17 16.6716 17 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 17.5C20 18.3284 19.3284 19 18.5 19C17.6716 19 17 18.3284 17 17.5C17 16.6716 17.6716 16 18.5 16C19.3284 16 20 16.6716 20 17.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M20 14.5C20 15.3284 19.3284 16 18.5 16C17.6716 16 17 15.3284 17 14.5C17 13.6716 17.6716 13 18.5 13C19.3284 13 20 13.6716 20 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 14.5C17 15.3284 16.3284 16 15.5 16C14.6716 16 14 15.3284 14 14.5C14 13.6716 14.6716 13 15.5 13C16.3284 13 17 13.6716 17 14.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 11.5C17 12.3284 16.3284 13 15.5 13C14.6716 13 14 12.3284 14 11.5C14 10.6716 14.6716 10 15.5 10C16.3284 10 17 10.6716 17 11.5Z" stroke="#07AD3E" stroke-width="1.5"></path>',18)]))}const Wne=mr(Gne,[["render",Yne]]),Xne={},Kne={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zne(e,t){return d.openBlock(),d.createElementBlock("svg",Kne,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 3C18 3.55228 17.5523 4 17 4C16.4477 4 16 3.55228 16 3C16 2.44772 16.4477 2 17 2C17.5523 2 18 2.44772 18 3Z" fill="#07AD3E"></path><path d="M17 15C17 15.5523 16.5523 16 16 16C15.4477 16 15 15.5523 15 15C15 14.4477 15.4477 14 16 14C16.5523 14 17 14.4477 17 15Z" fill="#07AD3E"></path><path d="M18 17.5C18.5523 17.5 19 17.0523 19 16.5C19 15.9477 18.5523 15.5 18 15.5C17.4477 15.5 17 15.9477 17 16.5C17 17.0523 17.4477 17.5 18 17.5Z" fill="#07AD3E"></path><path d="M17 6.5C17 7.05228 16.5523 7.5 16 7.5C15.4477 7.5 15 7.05228 15 6.5C15 5.94772 15.4477 5.5 16 5.5C16.5523 5.5 17 5.94772 17 6.5Z" fill="#07AD3E"></path><path d="M18 9.5C18.5523 9.5 19 9.05228 19 8.5C19 7.94772 18.5523 7.5 18 7.5C17.4477 7.5 17 7.94772 17 8.5C17 9.05228 17.4477 9.5 18 9.5Z" fill="#07AD3E"></path><path d="M21 15C21 15.5523 20.5523 16 20 16C19.4477 16 19 15.5523 19 15C19 14.4477 19.4477 14 20 14C20.5523 14 21 14.4477 21 15Z" fill="#07AD3E"></path><path d="M15 13.5C15.5523 13.5 16 13.0523 16 12.5C16 11.9477 15.5523 11.5 15 11.5C14.4477 11.5 14 11.9477 14 12.5C14 13.0523 14.4477 13.5 15 13.5Z" fill="#07AD3E"></path><path d="M15 16.5C15 17.0523 14.5523 17.5 14 17.5C13.4477 17.5 13 17.0523 13 16.5C13 15.9477 13.4477 15.5 14 15.5C14.5523 15.5 15 15.9477 15 16.5Z" fill="#07AD3E"></path><path d="M16 19C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19Z" fill="#07AD3E"></path><path d="M18 11C18 11.5523 17.5523 12 17 12C16.4477 12 16 11.5523 16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11Z" fill="#07AD3E"></path><path d="M18 14.5C18.5523 14.5 19 14.0523 19 13.5C19 12.9477 18.5523 12.5 18 12.5C17.4477 12.5 17 12.9477 17 13.5C17 14.0523 17.4477 14.5 18 14.5Z" fill="#07AD3E"></path><path d="M18 20.5C18 21.0523 17.5523 21.5 17 21.5C16.4477 21.5 16 21.0523 16 20.5C16 19.9477 16.4477 19.5 17 19.5C17.5523 19.5 18 19.9477 18 20.5Z" fill="#07AD3E"></path><path d="M8 3C8 2.44772 7.55228 2 7 2C6.44772 2 6 2.44772 6 3C6 3.55228 6.44772 4 7 4C7.55228 4 8 3.55228 8 3Z" fill="#110529"></path><path d="M6 4.5C6.55228 4.5 7 4.94772 7 5.5C7 6.05228 6.55228 6.5 6 6.5C5.44772 6.5 5 6.05228 5 5.5C5 4.94772 5.44772 4.5 6 4.5Z" fill="#110529"></path><path d="M5 7C5 6.44772 4.55228 6 4 6C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8C4.55228 8 5 7.55228 5 7Z" fill="#110529"></path><path d="M8 6C8.55228 6 9 6.44772 9 7C9 7.55228 8.55228 8 8 8C7.44772 8 7 7.55228 7 7C7 6.44772 7.44772 6 8 6Z" fill="#110529"></path><path d="M7 8.5C7 7.94772 6.55228 7.5 6 7.5C5.44772 7.5 5 7.94772 5 8.5C5 9.05228 5.44772 9.5 6 9.5C6.55228 9.5 7 9.05228 7 8.5Z" fill="#110529"></path><path d="M8 20.5C8 19.9477 7.55228 19.5 7 19.5C6.44772 19.5 6 19.9477 6 20.5C6 21.0523 6.44772 21.5 7 21.5C7.55228 21.5 8 21.0523 8 20.5Z" fill="#110529"></path><path d="M7 17C7 16.4477 6.55228 16 6 16C5.44772 16 5 16.4477 5 17C5 17.5523 5.44772 18 6 18C6.55228 18 7 17.5523 7 17Z" fill="#110529"></path><path d="M8 14C8.55228 14 9 14.4477 9 15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15C7 14.4477 7.44772 14 8 14Z" fill="#110529"></path><path d="M11 8.5C11 7.94772 10.5523 7.5 10 7.5C9.44772 7.5 9 7.94772 9 8.5C9 9.05228 9.44772 9.5 10 9.5C10.5523 9.5 11 9.05228 11 8.5Z" fill="#110529"></path><path d="M5 10C5.55228 10 6 10.4477 6 11C6 11.5523 5.55228 12 5 12C4.44772 12 4 11.5523 4 11C4 10.4477 4.44772 10 5 10Z" fill="#110529"></path><path d="M8 12.5C8 11.9477 7.55228 11.5 7 11.5C6.44772 11.5 6 11.9477 6 12.5C6 13.0523 6.44772 13.5 7 13.5C7.55228 13.5 8 13.0523 8 12.5Z" fill="#110529"></path><path d="M8 9C8.55228 9 9 9.44772 9 10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10C7 9.44772 7.44772 9 8 9Z" fill="#110529"></path>',24)]))}const Jne=mr(Xne,[["render",Zne]]),qne={},ere={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tre(e,t){return d.openBlock(),d.createElementBlock("svg",ere,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const nre=mr(qne,[["render",tre]]),rre={},are={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ire(e,t){return d.openBlock(),d.createElementBlock("svg",are,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40826 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.25 7C14.25 5.75736 15.2574 4.75 16.5 4.75C17.7426 4.75 18.75 5.75736 18.75 7C18.75 7.08866 18.7449 7.17613 18.7349 7.26211C19.8671 7.37957 20.75 8.33668 20.75 9.5C20.75 10.6633 19.8671 11.6204 18.7349 11.7379C18.7449 11.8239 18.75 11.9113 18.75 12C18.75 13.2426 17.7426 14.25 16.5 14.25C15.2574 14.25 14.25 13.2426 14.25 12C14.25 11.9113 14.2551 11.8239 14.2651 11.7379C13.1329 11.6204 12.25 10.6633 12.25 9.5C12.25 8.33668 13.1329 7.37957 14.2651 7.26211C14.2551 7.17613 14.25 7.08866 14.25 7ZM16.5 6.25C16.0858 6.25 15.75 6.58579 15.75 7C15.75 7.41421 16.0858 7.75 16.5 7.75C16.9142 7.75 17.25 7.41421 17.25 7C17.25 6.58579 16.9142 6.25 16.5 6.25ZM13.75 9.5C13.75 9.08579 14.0858 8.75 14.5 8.75C14.9142 8.75 15.25 9.08579 15.25 9.5C15.25 9.91421 14.9142 10.25 14.5 10.25C14.0858 10.25 13.75 9.91421 13.75 9.5ZM18.5 8.75C18.0858 8.75 17.75 9.08579 17.75 9.5C17.75 9.91421 18.0858 10.25 18.5 10.25C18.9142 10.25 19.25 9.91421 19.25 9.5C19.25 9.08579 18.9142 8.75 18.5 8.75ZM14.25 18.5C14.25 17.2574 15.2574 16.25 16.5 16.25C17.7426 16.25 18.75 17.2574 18.75 18.5C18.75 19.7426 17.7426 20.75 16.5 20.75C15.2574 20.75 14.25 19.7426 14.25 18.5ZM16.5 17.75C16.0858 17.75 15.75 18.0858 15.75 18.5C15.75 18.9142 16.0858 19.25 16.5 19.25C16.9142 19.25 17.25 18.9142 17.25 18.5C17.25 18.0858 16.9142 17.75 16.5 17.75ZM15.75 12C15.75 11.5858 16.0858 11.25 16.5 11.25C16.9142 11.25 17.25 11.5858 17.25 12C17.25 12.4142 16.9142 12.75 16.5 12.75C16.0858 12.75 15.75 12.4142 15.75 12Z",fill:"#07AD3E"},null,-1)]))}const ore=mr(rre,[["render",ire]]),lre={},sre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ure(e,t){return d.openBlock(),d.createElementBlock("svg",sre,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5.25 6.225C5.25 5.2973 5.72673 4.83692 6.50349 4.27228C6.57903 4.21737 6.65984 4.16045 6.74435 4.10093C7.13565 3.82533 7.60622 3.49391 8 3.04693C8.39378 3.49391 8.86435 3.82533 9.25565 4.10093C9.34016 4.16045 9.42097 4.21737 9.49651 4.27228C10.2733 4.83692 10.75 5.2973 10.75 6.225C10.75 6.98245 10.4136 7.42894 9.96423 7.88766C9.91223 7.94075 9.85282 7.99937 9.78954 8.06181C9.60563 8.24327 9.38899 8.45703 9.22609 8.66134C8.98372 8.96531 8.75 9.37152 8.75 9.9C8.75 10.2529 8.89718 10.5561 9.04005 10.7795C9.1882 11.0112 9.38331 11.2356 9.5837 11.4445C9.81868 11.6895 10.1205 11.9716 10.424 12.2553C10.6132 12.4321 10.8031 12.6096 10.9779 12.779C11.4667 13.2531 11.9187 13.7374 12.2473 14.2398C12.5747 14.7403 12.75 15.214 12.75 15.675C12.75 16.8257 11.9675 17.5375 10.6808 18.4832C10.5917 18.5487 10.5001 18.6153 10.4066 18.6832C9.61093 19.2617 8.67831 19.9396 8 20.8746C7.32169 19.9396 6.38907 19.2617 5.59338 18.6832C5.49988 18.6153 5.40827 18.5487 5.31918 18.4832C4.03253 17.5375 3.25 16.8257 3.25 15.675C3.25 15.2151 3.42451 14.7479 3.75038 14.2556C4.07818 13.7604 4.52918 13.2845 5.01908 12.8148C5.17958 12.6609 5.35137 12.5014 5.52353 12.3416C5.84428 12.0438 6.16631 11.7448 6.419 11.4786C6.62115 11.2656 6.81744 11.0354 6.96613 10.7948C7.11184 10.559 7.25 10.2526 7.25 9.9C7.25 9.36255 7.02776 8.9483 6.77782 8.62937C6.60371 8.4072 6.37475 8.18497 6.18446 8.00027C6.12892 7.94636 6.07668 7.89566 6.03005 7.84908C5.58055 7.40004 5.25 6.97698 5.25 6.225Z",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M16.1603 11.6035C16.5892 12.0178 17.0904 12.5021 17.5 13.1017C17.9096 12.5021 18.4108 12.0178 18.8397 11.6035C18.8575 11.5863 18.8751 11.5692 18.8927 11.5522C19.7742 10.6998 20.25 10.1824 20.25 9.5C20.25 8.81759 19.7742 8.30021 18.8927 7.4478C18.8751 7.43083 18.8575 7.41374 18.8397 7.39653C18.4108 6.98221 17.9096 6.49792 17.5 5.89827C17.0904 6.49792 16.5892 6.98221 16.1603 7.39653C16.1425 7.41374 16.1249 7.43083 16.1073 7.4478C15.2258 8.30021 14.75 8.81759 14.75 9.5C14.75 10.1824 15.2258 10.6998 16.1073 11.5522C16.1249 11.5692 16.1425 11.5863 16.1603 11.6035Z",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const cre=mr(lre,[["render",ure]]),fre={},dre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Are(e,t){return d.openBlock(),d.createElementBlock("svg",dre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 10" stroke="#07AD3E" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M15 19L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 19L19 7" stroke="#110529" stroke-width="1.5"></path>',11)]))}const iR=mr(fre,[["render",Are]]),pre={},hre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vre(e,t){return d.openBlock(),d.createElementBlock("svg",hre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M5.49982 10.5L10.5037 5.49615C10.7829 5.21695 11.2307 5.20204 11.5279 5.46205L14.4718 8.03795C14.7689 8.29796 15.2168 8.28305 15.496 8.00385L20.4998 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 14V19" stroke="#110529" stroke-width="1.5"></path><path d="M11 10L11 19" stroke="#110529" stroke-width="1.5"></path><path d="M15 12V19" stroke="#110529" stroke-width="1.5"></path><path d="M19 9L19 19" stroke="#110529" stroke-width="1.5"></path>',12)]))}const oR=mr(pre,[["render",vre]]),mre={},gre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yre(e,t){return d.openBlock(),d.createElementBlock("svg",gre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11.25 11V13V16V18C11.25 18.1381 11.1381 18.25 11 18.25H9H7C6.86193 18.25 6.75 18.1381 6.75 18V16V13V11C6.75 10.8619 6.86193 10.75 7 10.75H9H11C11.1381 10.75 11.25 10.8619 11.25 11Z" stroke="#07AD3E" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.75 8V7.25H8.25V8H9.75ZM9.75 14V8H8.25V14H9.75Z" fill="#07AD3E"></path><path d="M19.25 6V9.66667V14.3333V18C19.25 18.1381 19.1381 18.25 19 18.25H17H15C14.8619 18.25 14.75 18.1381 14.75 18V14.3333V9.66667V6C14.75 5.86193 14.8619 5.75 15 5.75H17H19C19.1381 5.75 19.25 5.86193 19.25 6Z" stroke="#110529" stroke-width="1.5" stroke-linecap="round"></path><path d="M17 9V3" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path>',11)]))}const wre=mr(mre,[["render",yre]]),Cre={},bre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ere(e,t){return d.openBlock(),d.createElementBlock("svg",bre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M11 19L11 14" stroke="#110529" stroke-width="1.5"></path><path d="M11 13L11 9" stroke="#07AD3E" stroke-width="1.5"></path><path d="M15 19L15 7" stroke="#110529" stroke-width="1.5"></path><path d="M7 19L7 11" stroke="#110529" stroke-width="1.5"></path><path d="M19 19L19 11" stroke="#110529" stroke-width="1.5"></path><path d="M15 6L15 3" stroke="#07AD3E" stroke-width="1.5"></path><path d="M7 10L7 7" stroke="#07AD3E" stroke-width="1.5"></path><path d="M19 10L19 6" stroke="#07AD3E" stroke-width="1.5"></path>',15)]))}const xre=mr(Cre,[["render",Ere]]),Sre={},Bre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kre(e,t){return d.openBlock(),d.createElementBlock("svg",Bre,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M6 17L10.3949 10.1634C10.4567 10.0673 10.5759 10.0253 10.6843 10.0614L16.3157 11.9386C16.4241 11.9747 16.5433 11.9327 16.6051 11.8366L21 5" stroke="#07AD3E" stroke-width="1.5"></path>',8)]))}const lR=mr(Sre,[["render",kre]]),Tre={},_re={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pre(e,t){return d.openBlock(),d.createElementBlock("svg",_re,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.87166 17.4862C6.72148 18.5589 5.21191 19.25 3 19.25H2.25V20.75H3C5.01 20.75 6.5821 20.2481 7.84779 19.4106C7.78374 19.1173 7.75 18.8126 7.75 18.5C7.75 18.1506 7.79216 17.8111 7.87166 17.4862ZM16.5833 6.12522C17.6721 5.27714 19.0682 4.75 21 4.75H21.75V3.25H21C18.7445 3.25 17.0404 3.882 15.702 4.91089C15.8578 5.18652 15.9838 5.48129 16.0755 5.79079C16.253 5.8903 16.4227 6.00217 16.5833 6.12522ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.75 7C9.75 5.75736 10.7574 4.75 12 4.75C13.2426 4.75 14.25 5.75736 14.25 7C14.25 7.08866 14.2449 7.17613 14.2349 7.26211C15.3671 7.37957 16.25 8.33668 16.25 9.5C16.25 10.6633 15.3671 11.6204 14.2349 11.7379C14.2449 11.8239 14.25 11.9113 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12C9.75 11.9113 9.75513 11.8239 9.7651 11.7379C8.63285 11.6204 7.75 10.6633 7.75 9.5C7.75 8.33668 8.63285 7.37957 9.7651 7.26211C9.75513 7.17613 9.75 7.08866 9.75 7ZM12 6.25C11.5858 6.25 11.25 6.58579 11.25 7C11.25 7.41421 11.5858 7.75 12 7.75C12.4142 7.75 12.75 7.41421 12.75 7C12.75 6.58579 12.4142 6.25 12 6.25ZM9.25 9.5C9.25 9.08579 9.58579 8.75 10 8.75C10.4142 8.75 10.75 9.08579 10.75 9.5C10.75 9.91421 10.4142 10.25 10 10.25C9.58579 10.25 9.25 9.91421 9.25 9.5ZM14 8.75C13.5858 8.75 13.25 9.08579 13.25 9.5C13.25 9.91421 13.5858 10.25 14 10.25C14.4142 10.25 14.75 9.91421 14.75 9.5C14.75 9.08579 14.4142 8.75 14 8.75ZM9.75 18.5C9.75 17.2574 10.7574 16.25 12 16.25C13.2426 16.25 14.25 17.2574 14.25 18.5C14.25 19.7426 13.2426 20.75 12 20.75C10.7574 20.75 9.75 19.7426 9.75 18.5ZM12 17.75C11.5858 17.75 11.25 18.0858 11.25 18.5C11.25 18.9142 11.5858 19.25 12 19.25C12.4142 19.25 12.75 18.9142 12.75 18.5C12.75 18.0858 12.4142 17.75 12 17.75ZM11.25 12C11.25 11.5858 11.5858 11.25 12 11.25C12.4142 11.25 12.75 11.5858 12.75 12C12.75 12.4142 12.4142 12.75 12 12.75C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#07AD3E"},null,-1)]))}const Mre=mr(Tre,[["render",Pre]]),Dre={},Hre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ire(e,t){return d.openBlock(),d.createElementBlock("svg",Hre,t[0]||(t[0]=[d.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M6.66173 18.3797C5.69642 18.9269 4.51239 19.25 3 19.25H2.25V20.75H3C5.08009 20.75 6.69121 20.2125 7.97909 19.3218C7.45744 19.133 7.00308 18.8038 6.66173 18.3797ZM15.6198 7.03708C15.6306 7.02483 15.6415 7.01261 15.6524 7.00044C16.858 5.65468 18.4693 4.75 21 4.75H21.75V3.25H21C18.0608 3.25 16.0579 4.32325 14.5803 5.94949C15.0122 6.21765 15.3709 6.59244 15.6198 7.03708ZM3.75 5.5L3.75 4H2.25L2.25 5.5H3.75ZM3.75 8.5V7H2.25L2.25 8.5H3.75ZM3.75 10L3.75 11.5H2.25L2.25 10H3.75ZM3.75 14.5V13H2.25V14.5H3.75ZM3.75 16L3.75 17.5H2.25V16H3.75ZM20.25 6.5V8L21.75 8V6.5H20.25ZM20.25 11V9.5H21.75V11H20.25ZM20.25 12.5V14H21.75V12.5H20.25ZM20.25 17V15.5H21.75V17H20.25ZM20.25 20V18.5H21.75V20H20.25Z" fill="#110529"></path><path d="M13 3C13 3.55228 12.5523 4 12 4C11.4477 4 11 3.55228 11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3Z" fill="#07AD3E"></path><path d="M12 15C12 15.5523 11.5523 16 11 16C10.4477 16 10 15.5523 10 15C10 14.4477 10.4477 14 11 14C11.5523 14 12 14.4477 12 15Z" fill="#07AD3E"></path><path d="M13 17.5C13.5523 17.5 14 17.0523 14 16.5C14 15.9477 13.5523 15.5 13 15.5C12.4477 15.5 12 15.9477 12 16.5C12 17.0523 12.4477 17.5 13 17.5Z" fill="#07AD3E"></path><path d="M12 6.5C12 7.05228 11.5523 7.5 11 7.5C10.4477 7.5 10 7.05228 10 6.5C10 5.94772 10.4477 5.5 11 5.5C11.5523 5.5 12 5.94772 12 6.5Z" fill="#07AD3E"></path><path d="M13 9.5C13.5523 9.5 14 9.05228 14 8.5C14 7.94772 13.5523 7.5 13 7.5C12.4477 7.5 12 7.94772 12 8.5C12 9.05228 12.4477 9.5 13 9.5Z" fill="#07AD3E"></path><path d="M16 15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15C14 14.4477 14.4477 14 15 14C15.5523 14 16 14.4477 16 15Z" fill="#07AD3E"></path><path d="M10 13.5C10.5523 13.5 11 13.0523 11 12.5C11 11.9477 10.5523 11.5 10 11.5C9.44772 11.5 9 11.9477 9 12.5C9 13.0523 9.44772 13.5 10 13.5Z" fill="#07AD3E"></path><path d="M10 16.5C10 17.0523 9.55228 17.5 9 17.5C8.44772 17.5 8 17.0523 8 16.5C8 15.9477 8.44772 15.5 9 15.5C9.55228 15.5 10 15.9477 10 16.5Z" fill="#07AD3E"></path><path d="M11 19C11.5523 19 12 18.5523 12 18C12 17.4477 11.5523 17 11 17C10.4477 17 10 17.4477 10 18C10 18.5523 10.4477 19 11 19Z" fill="#07AD3E"></path><path d="M13 11C13 11.5523 12.5523 12 12 12C11.4477 12 11 11.5523 11 11C11 10.4477 11.4477 10 12 10C12.5523 10 13 10.4477 13 11Z" fill="#07AD3E"></path><path d="M13 14.5C13.5523 14.5 14 14.0523 14 13.5C14 12.9477 13.5523 12.5 13 12.5C12.4477 12.5 12 12.9477 12 13.5C12 14.0523 12.4477 14.5 13 14.5Z" fill="#07AD3E"></path><path d="M13 20.5C13 21.0523 12.5523 21.5 12 21.5C11.4477 21.5 11 21.0523 11 20.5C11 19.9477 11.4477 19.5 12 19.5C12.5523 19.5 13 19.9477 13 20.5Z" fill="#07AD3E"></path>',13)]))}const sR=mr(Dre,[["render",Ire]]),Rre={},Nre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lre(e,t){return d.openBlock(),d.createElementBlock("svg",Nre,t[0]||(t[0]=[d.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M5 21.25V16.5V11.75M5 21.25H8M5 21.25H2M5 11.75H8M5 11.75H2M5 9.5V8M5 6.5V5M5 3.5V2",stroke:"#110529","stroke-width":"1.5"},null,-1),d.createElementVNode("path",{d:"M19 2.75V7.5V12.25M19 2.75H16M19 2.75H22M19 12.25H16M19 12.25H22M19 14.5V16M19 17.5V19M19 20.5V22",stroke:"#110529","stroke-width":"1.5"},null,-1)]))}const $re=mr(Rre,[["render",Lre]]),Fre={},Vre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ore(e,t){return d.openBlock(),d.createElementBlock("svg",Vre,t[0]||(t[0]=[d.createStaticVNode('<path d="M18 4.5C18 3.94772 17.5523 3.5 17 3.5C16.4477 3.5 16 3.94772 16 4.5C16 5.05228 16.4477 5.5 17 5.5C17.5523 5.5 18 5.05228 18 4.5Z" fill="#07AD3E"></path><path d="M17 18.5C17.5523 18.5 18 18.9477 18 19.5C18 20.0523 17.5523 20.5 17 20.5C16.4477 20.5 16 20.0523 16 19.5C16 18.9477 16.4477 18.5 17 18.5Z" fill="#07AD3E"></path><path d="M16 16.5C16.5523 16.5 17 16.9477 17 17.5C17 18.0523 16.5523 18.5 16 18.5C15.4477 18.5 15 18.0523 15 17.5C15 16.9477 15.4477 16.5 16 16.5Z" fill="#07AD3E"></path><path d="M17 17.5C17 16.9477 17.4477 16.5 18 16.5C18.5523 16.5 19 16.9477 19 17.5C19 18.0523 18.5523 18.5 18 18.5C17.4477 18.5 17 18.0523 17 17.5Z" fill="#07AD3E"></path><path d="M17 14.5C17.5523 14.5 18 14.9477 18 15.5C18 16.0523 17.5523 16.5 17 16.5C16.4477 16.5 16 16.0523 16 15.5C16 14.9477 16.4477 14.5 17 14.5Z" fill="#07AD3E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16 7C16.5523 7 17 7.44772 17 8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8C15 7.44772 15.4477 7 16 7ZM17 10C17 9.44772 16.5523 9 16 9C15.4477 9 15 9.44772 15 10C15 9.44772 14.5523 9 14 9C13.4477 9 13 9.44772 13 10C13 10.5523 13.4477 11 14 11C14.5523 11 15 10.5523 15 10C15 10.5523 15.4477 11 16 11C15.4477 11 15 11.4477 15 12C15 12.5523 15.4477 13 16 13C16.5523 13 17 12.5523 17 12C17 12.5523 17.4477 13 18 13C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11C18.5523 11 19 10.5523 19 10C19 10.5523 19.4477 11 20 11C20.5523 11 21 10.5523 21 10C21 9.44772 20.5523 9 20 9C19.4477 9 19 9.44772 19 10C19 9.44772 18.5523 9 18 9C18.5523 9 19 8.55228 19 8C19 7.44772 18.5523 7 18 7C17.4477 7 17 7.44772 17 8C17 8.55228 17.4477 9 18 9C17.4477 9 17 9.44772 17 10ZM17 10C17 10.5523 17.4477 11 18 11C17.4477 11 17 11.4477 17 12C17 11.4477 16.5523 11 16 11C16.5523 11 17 10.5523 17 10Z" fill="#07AD3E"></path><path d="M7 5.5C7.55228 5.5 8 5.05228 8 4.5C8 3.94772 7.55228 3.5 7 3.5C6.44772 3.5 6 3.94772 6 4.5C6 5.05228 6.44772 5.5 7 5.5Z" fill="#110529"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M8 15C8.55228 15 9 14.5523 9 14C9 14.5523 9.44772 15 10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14C9 13.4477 8.55228 13 8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13C5.44772 13 5 13.4477 5 14C5 13.4477 4.55228 13 4 13C3.44772 13 3 13.4477 3 14C3 14.5523 3.44772 15 4 15C4.55228 15 5 14.5523 5 14C5 14.5523 5.44772 15 6 15C5.44772 15 5 15.4477 5 16C5 16.5523 5.44772 17 6 17C6.55228 17 7 16.5523 7 16C7 16.5523 7.44772 17 8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15ZM8 15C7.44772 15 7 15.4477 7 16C7 15.4477 6.55228 15 6 15C6.55228 15 7 14.5523 7 14C7 14.5523 7.44772 15 8 15ZM7 14C7 13.4477 6.55228 13 6 13C6.55228 13 7 12.5523 7 12C7 12.5523 7.44772 13 8 13C7.44772 13 7 13.4477 7 14Z" fill="#110529"></path><path d="M6 7.5C6.55228 7.5 7 7.05228 7 6.5C7 7.05228 7.44772 7.5 8 7.5C8.55228 7.5 9 7.05228 9 6.5C9 5.94772 8.55228 5.5 8 5.5C7.44772 5.5 7 5.94772 7 6.5C7 5.94772 6.55228 5.5 6 5.5C5.44772 5.5 5 5.94772 5 6.5C5 7.05228 5.44772 7.5 6 7.5Z" fill="#110529"></path><path d="M7 9.5C7.55228 9.5 8 9.05228 8 8.5C8 7.94772 7.55228 7.5 7 7.5C6.44772 7.5 6 7.94772 6 8.5C6 9.05228 6.44772 9.5 7 9.5Z" fill="#110529"></path><path d="M8 19.5C8 20.0523 7.55228 20.5 7 20.5C6.44772 20.5 6 20.0523 6 19.5C6 18.9477 6.44772 18.5 7 18.5C7.55228 18.5 8 18.9477 8 19.5Z" fill="#110529"></path>',11)]))}const Qre=mr(Fre,[["render",Ore]]),zre={},Ure={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gre(e,t){return d.openBlock(),d.createElementBlock("svg",Ure,t[0]||(t[0]=[d.createStaticVNode('<path d="M3 21.25L21 21.25" stroke="#110529" stroke-width="1.5" stroke-linecap="square"></path><path d="M3 4L3 2.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 7L3 5.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 10L3 8.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 13L3 11.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 16L3 14.5" stroke="#110529" stroke-width="1.5"></path><path d="M3 19L3 17.5" stroke="#110529" stroke-width="1.5"></path><path d="M20 5C20 5.55228 19.5523 6 19 6C18.4477 6 18 5.55228 18 5C18 4.44772 18.4477 4 19 4C19.5523 4 20 4.44772 20 5Z" fill="#07AD3E"></path><path d="M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z" fill="#07AD3E"></path><path d="M16 17C16.5523 17 17 16.5523 17 16C17 15.4477 16.5523 15 16 15C15.4477 15 15 15.4477 15 16C15 16.5523 15.4477 17 16 17Z" fill="#07AD3E"></path><path d="M13 6C13.5523 6 14 5.55228 14 5C14 4.44772 13.5523 4 13 4C12.4477 4 12 4.44772 12 5C12 5.55228 12.4477 6 13 6Z" fill="#110529"></path><path d="M16 9C16.5523 9 17 8.55228 17 8C17 7.44772 16.5523 7 16 7C15.4477 7 15 7.44772 15 8C15 8.55228 15.4477 9 16 9Z" fill="#110529"></path><path d="M8 17C8.55228 17 9 16.5523 9 16C9 15.4477 8.55228 15 8 15C7.44772 15 7 15.4477 7 16C7 16.5523 7.44772 17 8 17Z" fill="#110529"></path><path d="M20 11C20 11.5523 19.5523 12 19 12C18.4477 12 18 11.5523 18 11C18 10.4477 18.4477 10 19 10C19.5523 10 20 10.4477 20 11Z" fill="#110529"></path><path d="M15 12C15.5523 12 16 11.5523 16 11C16 10.4477 15.5523 10 15 10C14.4477 10 14 10.4477 14 11C14 11.5523 14.4477 12 15 12Z" fill="#110529"></path><path d="M10 13C10 13.5523 9.55228 14 9 14C8.44772 14 8 13.5523 8 13C8 12.4477 8.44772 12 9 12C9.55228 12 10 12.4477 10 13Z" fill="#110529"></path><path d="M11 16C11.5523 16 12 15.5523 12 15C12 14.4477 11.5523 14 11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16Z" fill="#110529"></path><path d="M14 9C14 9.55228 13.5523 10 13 10C12.4477 10 12 9.55228 12 9C12 8.44772 12.4477 8 13 8C13.5523 8 14 8.44772 14 9Z" fill="#110529"></path><path d="M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z" fill="#110529"></path>',19)]))}const jre=mr(zre,[["render",Gre]]),Yre={},Wre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xre(e,t){return d.openBlock(),d.createElementBlock("svg",Wre,t[0]||(t[0]=[d.createStaticVNode('<path d="M10 20.5C10 20.7761 10.2239 21 10.5 21H13.5C13.7761 21 14 20.7761 14 20.5V19.3333V18.3333V18V17.5C14 17.2239 13.7761 17 13.5 17H10.5C10.2239 17 10 17.2239 10 17.5V18V18.3333V19.3333V20.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M10 13.5C10 13.7761 10.2239 14 10.5 14H13.5C13.7761 14 14 13.7761 14 13.5V12.3333V11.3333V11V10.5C14 10.2239 13.7761 10 13.5 10H10.5C10.2239 10 10 10.2239 10 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 13.5C17 13.7761 17.2239 14 17.5 14H20.5C20.7761 14 21 13.7761 21 13.5V12.3333V11.3333V11V10.5C21 10.2239 20.7761 10 20.5 10H17.5C17.2239 10 17 10.2239 17 10.5V11V11.3333V12.3333V13.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M17 20.5C17 20.7761 17.2239 21 17.5 21H20.5C20.7761 21 21 20.7761 21 20.5V19.3333V18.3333V18V17.5C21 17.2239 20.7761 17 20.5 17H17.5C17.2239 17 17 17.2239 17 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M10 6.5C10 6.77614 10.2239 7 10.5 7H13.5C13.7761 7 14 6.77614 14 6.5V5.33333V4.33333V4V3.5C14 3.22386 13.7761 3 13.5 3H10.5C10.2239 3 10 3.22386 10 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 20.5C3 20.7761 3.22386 21 3.5 21H6.5C6.77614 21 7 20.7761 7 20.5V19.3333V18.3333V18V17.5C7 17.2239 6.77614 17 6.5 17H3.5C3.22386 17 3 17.2239 3 17.5V18V18.3333V19.3333V20.5Z" stroke="#110529" stroke-width="1.5"></path><path d="M3 13.5C3 13.7761 3.22386 14 3.5 14H6.5C6.77614 14 7 13.7761 7 13.5V12.3333V11.3333V11V10.5C7 10.2239 6.77614 10 6.5 10H3.5C3.22386 10 3 10.2239 3 10.5V11V11.3333V12.3333V13.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M17 6.5C17 6.77614 17.2239 7 17.5 7H20.5C20.7761 7 21 6.77614 21 6.5V5.33333V4.33333V4V3.5C21 3.22386 20.7761 3 20.5 3H17.5C17.2239 3 17 3.22386 17 3.5V4V4.33333V5.33333V6.5Z" stroke="#07AD3E" stroke-width="1.5"></path><path d="M3 6.5C3 6.77614 3.22386 7 3.5 7H6.5C6.77614 7 7 6.77614 7 6.5V5.33333V4.33333V4V3.5C7 3.22386 6.77614 3 6.5 3H3.5C3.22386 3 3 3.22386 3 3.5V4V4.33333V5.33333V6.5Z" stroke="#110529" stroke-width="1.5"></path>',9)]))}const uR=mr(Yre,[["render",Xre]]),Kre={},Zre={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Jre(e,t){return d.openBlock(),d.createElementBlock("svg",Zre,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 20.5H21.75V22H2.25V20.5Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M8.91649 19H7.25L10.2842 10H12.2116L15.25 19H13.5835L11.2816 11.8457H11.2142L8.91649 19ZM8.9712 15.4712H13.5162V16.7808H8.9712V15.4712Z",fill:"#07AD3E"},null,-1),d.createElementVNode("path",{d:"M20.4799 8.18631C20.4158 7.77567 20.3273 7.40811 20.2144 7.08365C20.1041 6.75412 19.9707 6.47275 19.8142 6.23954C19.6603 6.00634 19.4832 5.83143 19.2831 5.71483C19.083 5.59316 18.8649 5.53232 18.6289 5.53232C18.2056 5.53232 17.8285 5.74271 17.4975 6.1635C17.1666 6.58428 16.9062 7.20279 16.7163 8.01901C16.529 8.83016 16.4354 9.81876 16.4354 10.9848C16.4354 12.161 16.529 13.1572 16.7163 13.9734C16.9036 14.7896 17.164 15.4106 17.4975 15.8365C17.831 16.2573 18.2184 16.4677 18.6597 16.4677C19.0599 16.4677 19.4063 16.3156 19.6987 16.0114C19.9938 15.7072 20.2208 15.2763 20.3799 14.7186C20.5389 14.1559 20.6185 13.4968 20.6185 12.7414H20.618H18.8021V10.635H22V12.5057C22 13.839 21.8563 14.9924 21.569 15.9658C21.2817 16.9392 20.8866 17.6895 20.3837 18.2167C19.8809 18.7389 19.3036 19 18.652 19C17.926 19 17.2884 18.6781 16.7394 18.0342C16.193 17.3853 15.7658 16.4651 15.4579 15.2738C15.1526 14.0773 15 12.6578 15 11.0152C15 9.75792 15.0898 8.63498 15.2694 7.64639C15.4515 6.6578 15.7055 5.81876 16.0313 5.12928C16.3572 4.43473 16.7394 3.90748 17.1781 3.54753C17.6168 3.18251 18.094 3 18.6097 3C19.0458 3 19.4524 3.12674 19.8296 3.38023C20.2067 3.62864 20.5415 3.98352 20.834 4.44487C21.129 4.90621 21.3714 5.45374 21.5613 6.08745C21.7511 6.72117 21.8756 7.42079 21.9346 8.18631H20.4799Z",fill:"#110529"},null,-1),d.createElementVNode("path",{d:"M2 7V5H9L9 7H6.25V19H4.75V7H2Z",fill:"#110529"},null,-1)]))}const qre=mr(Kre,[["render",Jre]]),P3=[{name:"Light green",color:"#99E099"},{name:"Green",color:"#42B842"},{name:"Dark green",color:"#198020"},{name:"Light violet",color:"#C1ADFF"},{name:"Violet",color:"#845CFF"},{name:"Dark violet",color:"#5F31CC"},{name:"Light orange",color:"#FFCB8F"},{name:"Orange",color:"#FF9429"},{name:"Dark orange",color:"#C26A27"},{name:"Light teal",color:"#90E0E0"},{name:"Teal",color:"#27C2C2"},{name:"Dark teal",color:"#068A94"},{name:"Light rose",color:"#FAAAFA"},{name:"Rose",color:"#E553E5"},{name:"Dark rose",color:"#A324B2"},{name:"Light lime",color:"#CBEB67"},{name:"Lime",color:"#95C700"},{name:"Dark lime",color:"#659406"},{name:"Light blue",color:"#99CCFF"},{name:"Blue",color:"#2D93FA"},{name:"Dark blue",color:"#105BCC"},{name:"Light red",color:"#FFADBA"},{name:"Red",color:"#F05670"},{name:"Dark red",color:"#AD3757"},{name:"Light grey",color:"#D3D7E0"},{name:"Grey",color:"#929BAD"},{name:"Dark grey",color:"#5E5E70"},{name:"Black",color:"#110529"},{name:"White",color:"#FFFFFF"},{name:"None",color:"transparent"}],M3="#FFFFFF",Ii="#110529";P3.reduce((e,t)=>(e[t.color]=t,e),{});const $7=P3.slice(0,-3).map(e=>e.color),eae=$7.filter((e,t)=>t%3===0),tae=$7.filter((e,t)=>t%3===1),nae=$7.filter((e,t)=>t%3===2),rae=$7.filter((e,t)=>t%3!==2),aae=$7,iae=["#FFF680","#53D788","#36739D","#4A005C"],oae=["#FFF680","#F77E5B","#902B83","#2B125C"],lae=["#DFFADC","#74CFD1","#635AC1","#611347"],sae=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],uae=["#FFEA80","#F07A76","#7535A4","#003752"],cae=["#FFF780","#6CEA90","#6C90F0","#942AAE"],fae=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],dae=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],Aae=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],pae=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],hae=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],cR=["light","bright","dark","paired","triadic"],vae=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],mae=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function rS(e){return cR.includes(e)}const Gi={...{light:{title:"Light",colors:eae},bright:{title:"Bright",colors:tae},dark:{title:"Dark",colors:nae},paired:{title:"Paired",colors:rae},triadic:{title:"Triadic",colors:aae}},...{viridis:{title:"Viridis",colors:iae},magma:{title:"Magma",colors:oae},density:{title:"Density",colors:lae},salinity:{title:"Salinity",colors:sae},sunset:{title:"Sunset",colors:uae},perceptual_rainbow:{title:"Rainbow",colors:cae}},...{spectrum:{title:"Spectrum",colors:fae},teal_red:{title:"Teal-Red",colors:dae},blue_red:{title:"Blue-Red",colors:Aae},lime_rose:{title:"Lime-Rose",colors:pae},viridis_magma:{title:"Vir-Mag",colors:hae}}},fR="light",ev="salinity",gae="salinity",F7=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],hC="#F0F0F0",P0="21",D3=["solid","dashed","dotted","dotdash","longdash","twodash"],vC="solid",yae={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}},wae={A:"#cc0100",C:"#0000cc",G:"#ffb300",T:"#027f00",U:"#027f00"},Cae={A:"#7fa0f0",R:"#ef1405",N:"#01ff00",D:"#c048bf",C:"#ef8080",Q:"#01ff00",E:"#c048bf",G:"#f09047",H:"#14a4a4",I:"#7fa0f0",L:"#7fa0f0",K:"#ef1405",M:"#7fa0f0",F:"#7fa0f0",P:"#ffff00",S:"#01ff00",T:"#01ff00",W:"#7fa0f0",Y:"#14a4a4",V:"#7fa0f0",B:"#eeeeee",X:"#eeeeee",Z:"#eeeeee"};function H3(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aS(e){let t,n,r;e.length!==2?(t=H3,n=(s,c)=>H3(e(s),c),r=(s,c)=>e(s)-c):(t=e===H3||e===bae?e:Eae,n=e,r=e);function a(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<0?f=h+1:A=h}while(f<A)}return f}function i(s,c,f=0,A=s.length){if(f<A){if(t(c,c)!==0)return A;do{const h=f+A>>>1;n(s[h],c)<=0?f=h+1:A=h}while(f<A)}return f}function l(s,c,f=0,A=s.length){const h=a(s,c,f,A-1);return h>f&&r(s[h-1],c)>-r(s[h],c)?h-1:h}return{left:a,center:l,right:i}}function Eae(){return 0}function dR(e){return e===null?NaN:+e}function*xae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const AR=aS(H3).right;aS(dR).center;function Sae(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Bae(e,t){let n=0,r,a=0,i=0;for(let l of e)l!=null&&(l=+l)>=l&&(r=l-a,a+=r/++n,i+=r*(l-a));if(n>1)return i/(n-1)}function pR(e,t){const n=Bae(e);return n&&Math.sqrt(n)}function HA(e,t){let n,r;if(t===void 0)for(const a of e)a!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)));else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}class hR extends Map{constructor(t,n=_ae){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(vR(this,t))}has(t){return super.has(vR(this,t))}set(t,n){return super.set(kae(this,t),n)}delete(t){return super.delete(Tae(this,t))}}function vR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function kae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Tae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _ae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Pae(e){return e}function Mae(e=H3){if(e===H3)return mR;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function mR(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Dae=Array.prototype,Hae=Dae.slice;function iS(e){return()=>e}const Iae=Math.sqrt(50),Rae=Math.sqrt(10),Nae=Math.sqrt(2);function mC(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=Iae?10:i>=Rae?5:i>=Nae?2:1;let s,c,f;return a<0?(f=Math.pow(10,-a)/l,s=Math.round(e*f),c=Math.round(t*f),s/f<e&&++s,c/f>t&&--c,f=-f):(f=Math.pow(10,a)*l,s=Math.round(e/f),c=Math.round(t/f),s*f<e&&++s,c*f>t&&--c),c<s&&.5<=n&&n<2?mC(e,t,n*2):[s,c,f]}function gC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,l]=r?mC(t,e,n):mC(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(l<0)for(let f=0;f<s;++f)c[f]=(i-f)/-l;else for(let f=0;f<s;++f)c[f]=(i-f)*l;else if(l<0)for(let f=0;f<s;++f)c[f]=(a+f)/-l;else for(let f=0;f<s;++f)c[f]=(a+f)*l;return c}function I3(e,t,n){return t=+t,e=+e,n=+n,mC(e,t,n)[2]}function oS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?I3(t,e,n):I3(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Lae(e,t,n){let r;for(;;){const a=I3(e,t,n);if(a===r||a===0||!isFinite(a))return[e,t];a>0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),r=a}}function $ae(e){return Math.max(1,Math.ceil(Math.log(Sae(e))/Math.LN2)+1)}function gR(){var e=Pae,t=HA,n=$ae;function r(a){Array.isArray(a)||(a=Array.from(a));var i,l=a.length,s,c,f=new Array(l);for(i=0;i<l;++i)f[i]=e(a[i],i,a);var A=t(f),h=A[0],v=A[1],g=n(f,h,v);if(!Array.isArray(g)){const M=v,V=+g;if(t===HA&&([h,v]=Lae(h,v,V)),g=gC(h,v,V),g[0]<=h&&(c=I3(h,v,V)),g[g.length-1]>=v)if(M>=v&&t===HA){const I=I3(h,v,V);isFinite(I)&&(I>0?v=(Math.floor(v/I)+1)*I:I<0&&(v=(Math.ceil(v*-I)+1)/-I))}else g.pop()}for(var b=g.length,C=0,x=b;g[C]<=h;)++C;for(;g[x-1]>v;)--x;(C||x<b)&&(g=g.slice(C,x),b=x-C);var k=new Array(b+1),_;for(i=0;i<=b;++i)_=k[i]=[],_.x0=i>0?g[i-1]:h,_.x1=i<b?g[i]:v;if(isFinite(c)){if(c>0)for(i=0;i<l;++i)(s=f[i])!=null&&h<=s&&s<=v&&k[Math.min(b,Math.floor((s-h)/c))].push(a[i]);else if(c<0){for(i=0;i<l;++i)if((s=f[i])!=null&&h<=s&&s<=v){const M=Math.floor((h-s)*c);k[Math.min(b,M+(g[M]<=s))].push(a[i])}}}else for(i=0;i<l;++i)(s=f[i])!=null&&h<=s&&s<=v&&k[AR(g,s,0,b)].push(a[i]);return k}return r.value=function(a){return arguments.length?(e=typeof a=="function"?a:iS(a),r):e},r.domain=function(a){return arguments.length?(t=typeof a=="function"?a:iS([a[0],a[1]]),r):t},r.thresholds=function(a){return arguments.length?(n=typeof a=="function"?a:iS(Array.isArray(a)?Hae.call(a):a),r):n},r}function Ih(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function yC(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function yR(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?mR:Mae(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,A=Math.log(c),h=.5*Math.exp(2*A/3),v=.5*Math.sqrt(A*h*(c-h)/c)*(f-c/2<0?-1:1),g=Math.max(n,Math.floor(t-f*h/c+v)),b=Math.min(r,Math.floor(t+(c-f)*h/c+v));yR(e,t,g,b,a)}const i=e[t];let l=n,s=r;for(V7(e,n,t),a(e[r],i)>0&&V7(e,n,r);l<s;){for(V7(e,l,s),++l,--s;a(e[l],i)<0;)++l;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?V7(e,n,s):(++s,V7(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function V7(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wR(e,t,n){if(e=Float64Array.from(xae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return yC(e);if(t>=1)return Ih(e);var r,a=(r-1)*t,i=Math.floor(a),l=Ih(yR(e,i).subarray(0,i+1)),s=yC(e.subarray(i+1));return l+(s-l)*(a-i)}}function Pp(e,t,n=dR){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),l=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return l+(s-l)*(a-i)}}function Ns(e,t){let n=0,r=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(++n,r+=a);else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function Fae(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function ic(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Lm(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const CR=Symbol("implicit");function rl(){var e=new hR,t=[],n=[],r=CR;function a(i){let l=e.get(i);if(l===void 0){if(r!==CR)return r;e.set(i,l=t.push(i)-1)}return n[l%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new hR;for(const l of i)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return rl(t,n).unknown(r)},Lm.apply(a,arguments),a}function O7(){var e=rl().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,s=!1,c=0,f=0,A=.5;delete e.unknown;function h(){var v=t().length,g=a<r,b=g?a:r,C=g?r:a;i=(C-b)/Math.max(1,v-c+f*2),s&&(i=Math.floor(i)),b+=(C-b-i*(v-c))*A,l=i*(1-c),s&&(b=Math.round(b),l=Math.round(l));var x=Fae(v).map(function(k){return b+i*k});return n(g?x.reverse():x)}return e.domain=function(v){return arguments.length?(t(v),h()):t()},e.range=function(v){return arguments.length?([r,a]=v,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(v){return[r,a]=v,r=+r,a=+a,s=!0,h()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(v){return arguments.length?(s=!!v,h()):s},e.padding=function(v){return arguments.length?(c=Math.min(1,f=+v),h()):c},e.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),h()):c},e.paddingOuter=function(v){return arguments.length?(f=+v,h()):f},e.align=function(v){return arguments.length?(A=Math.max(0,Math.min(1,v)),h()):A},e.copy=function(){return O7(t(),[r,a]).round(s).paddingInner(c).paddingOuter(f).align(A)},Lm.apply(h(),arguments)}function lS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bR(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Q7(){}var z7=.7,wC=1/z7,R3="\\s*([+-]?\\d+)\\s*",U7="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vae=/^#([0-9a-f]{3,8})$/,Oae=new RegExp(`^rgb\\(${R3},${R3},${R3}\\)$`),Qae=new RegExp(`^rgb\\(${M0},${M0},${M0}\\)$`),zae=new RegExp(`^rgba\\(${R3},${R3},${R3},${U7}\\)$`),Uae=new RegExp(`^rgba\\(${M0},${M0},${M0},${U7}\\)$`),Gae=new RegExp(`^hsl\\(${U7},${M0},${M0}\\)$`),jae=new RegExp(`^hsla\\(${U7},${M0},${M0},${U7}\\)$`),ER={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};lS(Q7,$m,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xR,formatHex:xR,formatHex8:Yae,formatHsl:Wae,formatRgb:SR,toString:SR});function xR(){return this.rgb().formatHex()}function Yae(){return this.rgb().formatHex8()}function Wae(){return PR(this).formatHsl()}function SR(){return this.rgb().formatRgb()}function $m(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Vae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?BR(t):n===3?new vd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?CC(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?CC(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=Oae.exec(e))?new vd(t[1],t[2],t[3],1):(t=Qae.exec(e))?new vd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zae.exec(e))?CC(t[1],t[2],t[3],t[4]):(t=Uae.exec(e))?CC(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gae.exec(e))?_R(t[1],t[2]/100,t[3]/100,1):(t=jae.exec(e))?_R(t[1],t[2]/100,t[3]/100,t[4]):ER.hasOwnProperty(e)?BR(ER[e]):e==="transparent"?new vd(NaN,NaN,NaN,0):null}function BR(e){return new vd(e>>16&255,e>>8&255,e&255,1)}function CC(e,t,n,r){return r<=0&&(e=t=n=NaN),new vd(e,t,n,r)}function Xae(e){return e instanceof Q7||(e=$m(e)),e?(e=e.rgb(),new vd(e.r,e.g,e.b,e.opacity)):new vd}function N3(e,t,n,r){return arguments.length===1?Xae(e):new vd(e,t,n,r??1)}function vd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lS(vd,N3,bR(Q7,{brighter(e){return e=e==null?wC:Math.pow(wC,e),new vd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?z7:Math.pow(z7,e),new vd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vd(Fm(this.r),Fm(this.g),Fm(this.b),bC(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:kR,formatHex:kR,formatHex8:Kae,formatRgb:TR,toString:TR}));function kR(){return`#${Vm(this.r)}${Vm(this.g)}${Vm(this.b)}`}function Kae(){return`#${Vm(this.r)}${Vm(this.g)}${Vm(this.b)}${Vm((isNaN(this.opacity)?1:this.opacity)*255)}`}function TR(){const e=bC(this.opacity);return`${e===1?"rgb(":"rgba("}${Fm(this.r)}, ${Fm(this.g)}, ${Fm(this.b)}${e===1?")":`, ${e})`}`}function bC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vm(e){return e=Fm(e),(e<16?"0":"")+e.toString(16)}function _R(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mp(e,t,n,r)}function PR(e){if(e instanceof Mp)return new Mp(e.h,e.s,e.l,e.opacity);if(e instanceof Q7||(e=$m(e)),!e)return new Mp;if(e instanceof Mp)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,s=i-a,c=(i+a)/2;return s?(t===i?l=(n-r)/s+(n<r)*6:n===i?l=(r-t)/s+2:l=(t-n)/s+4,s/=c<.5?i+a:2-i-a,l*=60):s=c>0&&c<1?0:l,new Mp(l,s,c,e.opacity)}function Zae(e,t,n,r){return arguments.length===1?PR(e):new Mp(e,t,n,r??1)}function Mp(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lS(Mp,Zae,bR(Q7,{brighter(e){return e=e==null?wC:Math.pow(wC,e),new Mp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?z7:Math.pow(z7,e),new Mp(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,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new vd(sS(e>=240?e-240:e+120,a,r),sS(e,a,r),sS(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Mp(MR(this.h),EC(this.s),EC(this.l),bC(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=bC(this.opacity);return`${e===1?"hsl(":"hsla("}${MR(this.h)}, ${EC(this.s)*100}%, ${EC(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MR(e){return e=(e||0)%360,e<0?e+360:e}function EC(e){return Math.max(0,Math.min(1,e||0))}function sS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const uS=e=>()=>e;function Jae(e,t){return function(n){return e+n*t}}function qae(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function eie(e){return(e=+e)==1?DR:function(t,n){return n-t?qae(t,n,e):uS(isNaN(t)?n:t)}}function DR(e,t){var n=t-e;return n?Jae(e,n):uS(isNaN(e)?t:e)}const xC=function e(t){var n=eie(t);function r(a,i){var l=n((a=N3(a)).r,(i=N3(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),f=DR(a.opacity,i.opacity);return function(A){return a.r=l(A),a.g=s(A),a.b=c(A),a.opacity=f(A),a+""}}return r.gamma=e,r}(1);function tie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function nie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),l;for(l=0;l<r;++l)a[l]=dS(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(s){for(l=0;l<r;++l)i[l]=a[l](s);return i}}function aie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iie(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=dS(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var cS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fS=new RegExp(cS.source,"g");function oie(e){return function(){return e}}function lie(e){return function(t){return e(t)+""}}function HR(e,t){var n=cS.lastIndex=fS.lastIndex=0,r,a,i,l=-1,s=[],c=[];for(e=e+"",t=t+"";(r=cS.exec(e))&&(a=fS.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(r=r[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:Dp(r,a)})),n=fS.lastIndex;return n<t.length&&(i=t.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?lie(c[0].x):oie(t):(t=c.length,function(f){for(var A=0,h;A<t;++A)s[(h=c[A]).i]=h.x(f);return s.join("")})}function dS(e,t){var n=typeof t,r;return t==null||n==="boolean"?uS(t):(n==="number"?Dp:n==="string"?(r=$m(t))?(t=r,xC):HR:t instanceof $m?xC:t instanceof Date?aie:nie(t)?tie:Array.isArray(t)?rie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?iie:Dp)(e,t)}function sie(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var IR=180/Math.PI,AS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function RR(e,t,n,r,a,i){var l,s,c;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*IR,skewX:Math.atan(c)*IR,scaleX:l,scaleY:s}}var SC;function uie(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?AS:RR(t.a,t.b,t.c,t.d,t.e,t.f)}function cie(e){return e==null||(SC||(SC=document.createElementNS("http://www.w3.org/2000/svg","g")),SC.setAttribute("transform",e),!(e=SC.transform.baseVal.consolidate()))?AS:(e=e.matrix,RR(e.a,e.b,e.c,e.d,e.e,e.f))}function NR(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,A,h,v,g,b){if(f!==h||A!==v){var C=g.push("translate(",null,t,null,n);b.push({i:C-4,x:Dp(f,h)},{i:C-2,x:Dp(A,v)})}else(h||v)&&g.push("translate("+h+t+v+n)}function l(f,A,h,v){f!==A?(f-A>180?A+=360:A-f>180&&(f+=360),v.push({i:h.push(a(h)+"rotate(",null,r)-2,x:Dp(f,A)})):A&&h.push(a(h)+"rotate("+A+r)}function s(f,A,h,v){f!==A?v.push({i:h.push(a(h)+"skewX(",null,r)-2,x:Dp(f,A)}):A&&h.push(a(h)+"skewX("+A+r)}function c(f,A,h,v,g,b){if(f!==h||A!==v){var C=g.push(a(g)+"scale(",null,",",null,")");b.push({i:C-4,x:Dp(f,h)},{i:C-2,x:Dp(A,v)})}else(h!==1||v!==1)&&g.push(a(g)+"scale("+h+","+v+")")}return function(f,A){var h=[],v=[];return f=e(f),A=e(A),i(f.translateX,f.translateY,A.translateX,A.translateY,h,v),l(f.rotate,A.rotate,h,v),s(f.skewX,A.skewX,h,v),c(f.scaleX,f.scaleY,A.scaleX,A.scaleY,h,v),f=A=null,function(g){for(var b=-1,C=v.length,x;++b<C;)h[(x=v[b]).i]=x.x(g);return h.join("")}}}var fie=NR(uie,"px, ","px)","deg)"),die=NR(cie,", ",")",")"),Aie=1e-12;function LR(e){return((e=Math.exp(e))+1/e)/2}function pie(e){return((e=Math.exp(e))-1/e)/2}function hie(e){return((e=Math.exp(2*e))-1)/(e+1)}const vie=function e(t,n,r){function a(i,l){var s=i[0],c=i[1],f=i[2],A=l[0],h=l[1],v=l[2],g=A-s,b=h-c,C=g*g+b*b,x,k;if(C<Aie)k=Math.log(v/f)/t,x=function(Q){return[s+Q*g,c+Q*b,f*Math.exp(t*Q*k)]};else{var _=Math.sqrt(C),M=(v*v-f*f+r*C)/(2*f*n*_),V=(v*v-f*f-r*C)/(2*v*n*_),I=Math.log(Math.sqrt(M*M+1)-M),$=Math.log(Math.sqrt(V*V+1)-V);k=($-I)/t,x=function(Q){var q=Q*k,te=LR(I),ee=f/(n*_)*(te*hie(t*q+I)-pie(I));return[s+ee*g,c+ee*b,f*te/LR(t*q+I)]}}return x.duration=k*1e3*t/Math.SQRT2,x}return a.rho=function(i){var l=Math.max(.001,+i),s=l*l,c=s*s;return e(l,s,c)},a}(Math.SQRT2,2,4);function mie(e){return function(){return e}}function pS(e){return+e}var $R=[0,1];function D0(e){return e}function hS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:mie(isNaN(t)?NaN:.5)}function gie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yie(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=hS(a,r),i=n(l,i)):(r=hS(r,a),i=n(i,l)),function(s){return i(r(s))}}function wie(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=hS(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(s){var c=AR(e,s,1,r)-1;return i[c](a[c](s))}}function G7(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function BC(){var e=$R,t=$R,n=dS,r,a,i,l=D0,s,c,f;function A(){var v=Math.min(e.length,t.length);return l!==D0&&(l=gie(e[0],e[v-1])),s=v>2?wie:yie,c=f=null,h}function h(v){return v==null||isNaN(v=+v)?i:(c||(c=s(e.map(r),t,n)))(r(l(v)))}return h.invert=function(v){return l(a((f||(f=s(t,e.map(r),Dp)))(v)))},h.domain=function(v){return arguments.length?(e=Array.from(v,pS),A()):e.slice()},h.range=function(v){return arguments.length?(t=Array.from(v),A()):t.slice()},h.rangeRound=function(v){return t=Array.from(v),n=sie,A()},h.clamp=function(v){return arguments.length?(l=v?!0:D0,A()):l!==D0},h.interpolate=function(v){return arguments.length?(n=v,A()):n},h.unknown=function(v){return arguments.length?(i=v,h):i},function(v,g){return r=v,a=g,A()}}function FR(){return BC()(D0,D0)}function Cie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function kC(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function L3(e){return e=kC(Math.abs(e)),e?e[1]:NaN}function bie(e,t){return function(n,r){for(var a=n.length,i=[],l=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[l=(l+1)%e.length];return i.reverse().join(t)}}function Eie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var xie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function j7(e){if(!(t=xie.exec(e)))throw new Error("invalid format: "+e);var t;return new vS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}j7.prototype=vS.prototype;function vS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}vS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Sie(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var VR;function Bie(e,t){var n=kC(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(VR=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+kC(e,Math.max(0,t+i-1))[0]}function OR(e,t){var n=kC(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const QR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Cie,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>OR(e*100,t),r:OR,s:Bie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function zR(e){return e}var UR=Array.prototype.map,GR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kie(e){var t=e.grouping===void 0||e.thousands===void 0?zR:bie(UR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?zR:Eie(UR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=j7(h);var v=h.fill,g=h.align,b=h.sign,C=h.symbol,x=h.zero,k=h.width,_=h.comma,M=h.precision,V=h.trim,I=h.type;I==="n"?(_=!0,I="g"):QR[I]||(M===void 0&&(M=12),V=!0,I="g"),(x||v==="0"&&g==="=")&&(x=!0,v="0",g="=");var $=C==="$"?n:C==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",Q=C==="$"?r:/[%p]/.test(I)?l:"",q=QR[I],te=/[defgprs%]/.test(I);M=M===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function ee(z){var U=$,W=Q,Y,X,oe;if(I==="c")W=q(z)+W,z="";else{z=+z;var de=z<0||1/z<0;if(z=isNaN(z)?c:q(Math.abs(z),M),V&&(z=Sie(z)),de&&+z==0&&b!=="+"&&(de=!1),U=(de?b==="("?b:s:b==="-"||b==="("?"":b)+U,W=(I==="s"?GR[8+VR/3]:"")+W+(de&&b==="("?")":""),te){for(Y=-1,X=z.length;++Y<X;)if(oe=z.charCodeAt(Y),48>oe||oe>57){W=(oe===46?a+z.slice(Y+1):z.slice(Y))+W,z=z.slice(0,Y);break}}}_&&!x&&(z=t(z,1/0));var ae=U.length+z.length+W.length,ye=ae<k?new Array(k-ae+1).join(v):"";switch(_&&x&&(z=t(ye+z,ye.length?k-W.length:1/0),ye=""),g){case"<":z=U+z+W+ye;break;case"=":z=U+ye+z+W;break;case"^":z=ye.slice(0,ae=ye.length>>1)+U+z+W+ye.slice(ae);break;default:z=ye+U+z+W;break}return i(z)}return ee.toString=function(){return h+""},ee}function A(h,v){var g=f((h=j7(h),h.type="f",h)),b=Math.max(-8,Math.min(8,Math.floor(L3(v)/3)))*3,C=Math.pow(10,-b),x=GR[8+b/3];return function(k){return g(C*k)+x}}return{format:f,formatPrefix:A}}var TC,Y7,jR;Tie({thousands:",",grouping:[3],currency:["$",""]});function Tie(e){return TC=kie(e),Y7=TC.format,jR=TC.formatPrefix,TC}function _ie(e){return Math.max(0,-L3(Math.abs(e)))}function Pie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(L3(t)/3)))*3-L3(Math.abs(e)))}function Mie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,L3(t)-L3(e))+1}function Die(e,t,n,r){var a=oS(e,t,n),i;switch(r=j7(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Pie(a,l))&&(r.precision=i),jR(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Mie(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=_ie(a))&&(r.precision=i-(r.type==="%")*2);break}}return Y7(r)}function _C(e){var t=e.domain;return e.ticks=function(n){var r=t();return gC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Die(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,l=r[a],s=r[i],c,f,A=10;for(s<l&&(f=l,l=s,s=f,f=a,a=i,i=f);A-- >0;){if(f=I3(l,s,n),f===c)return r[a]=l,r[i]=s,t(r);if(f>0)l=Math.floor(l/f)*f,s=Math.ceil(s/f)*f;else if(f<0)l=Math.ceil(l*f)/f,s=Math.floor(s*f)/f;else break;c=f}return e},e}function Kr(){var e=FR();return e.copy=function(){return G7(e,Kr())},Lm.apply(e,arguments),_C(e)}function tv(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,pS),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return tv(e).unknown(t)},e=arguments.length?Array.from(e,pS):[0,1],_C(n)}function YR(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return i<a&&(l=n,n=r,r=l,l=a,a=i,i=l),e[n]=t.floor(a),e[r]=t.ceil(i),e}function WR(e){return Math.log(e)}function XR(e){return Math.exp(e)}function Hie(e){return-Math.log(-e)}function Iie(e){return-Math.exp(-e)}function Rie(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Nie(e){return e===10?Rie:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Lie(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function KR(e){return(t,n)=>-e(-t,n)}function $ie(e){const t=e(WR,XR),n=t.domain;let r=10,a,i;function l(){return a=Lie(r),i=Nie(r),n()[0]<0?(a=KR(a),i=KR(i),e(Hie,Iie)):e(WR,XR),t}return t.base=function(s){return arguments.length?(r=+s,l()):r},t.domain=function(s){return arguments.length?(n(s),l()):n()},t.ticks=s=>{const c=n();let f=c[0],A=c[c.length-1];const h=A<f;h&&([f,A]=[A,f]);let v=a(f),g=a(A),b,C;const x=s==null?10:+s;let k=[];if(!(r%1)&&g-v<x){if(v=Math.floor(v),g=Math.ceil(g),f>0){for(;v<=g;++v)for(b=1;b<r;++b)if(C=v<0?b/i(-v):b*i(v),!(C<f)){if(C>A)break;k.push(C)}}else for(;v<=g;++v)for(b=r-1;b>=1;--b)if(C=v>0?b/i(-v):b*i(v),!(C<f)){if(C>A)break;k.push(C)}k.length*2<x&&(k=gC(f,A,x))}else k=gC(v,g,Math.min(g-v,x)).map(i);return h?k.reverse():k},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=j7(c)).precision==null&&(c.trim=!0),c=Y7(c)),s===1/0)return c;const f=Math.max(1,r*s/t.ticks().length);return A=>{let h=A/i(Math.round(a(A)));return h*r<r-.5&&(h*=r),h<=f?c(A):""}},t.nice=()=>n(YR(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Om(){const e=$ie(BC()).domain([1,10]);return e.copy=()=>G7(e,Om()).base(e.base()),Lm.apply(e,arguments),e}function ZR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function JR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Fie(e){var t=1,n=e(ZR(t),JR(t));return n.constant=function(r){return arguments.length?e(ZR(t=+r),JR(t)):t},_C(n)}function nv(){var e=Fie(BC());return e.copy=function(){return G7(e,nv()).constant(e.constant())},Lm.apply(e,arguments)}function qR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Vie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Oie(e){return e<0?-e*e:e*e}function Qie(e){var t=e(D0,D0),n=1;function r(){return n===1?e(D0,D0):n===.5?e(Vie,Oie):e(qR(n),qR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},_C(t)}function mS(){var e=Qie(BC());return e.copy=function(){return G7(e,mS()).exponent(e.exponent())},Lm.apply(e,arguments),e}function $3(){return mS.apply(null,arguments).exponent(.5)}const gS=new Date,yS=new Date;function su(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const l=a(i),s=a.ceil(i);return i-l<s-i?l:s},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<l)||!(s>0))return c;let f;do c.push(f=new Date(+i)),t(i,s),e(i);while(f<i&&i<l);return c},a.filter=i=>su(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,s)=>{if(l>=l)if(s<0)for(;++s<=0;)for(;t(l,-1),!i(l););else for(;--s>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(gS.setTime(+i),yS.setTime(+l),e(gS),e(yS),Math.floor(n(gS,yS))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const PC=su(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);PC.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?su(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):PC),PC.range;const Rh=1e3,IA=Rh*60,Nh=IA*60,Lh=Nh*24,wS=Lh*7,eN=Lh*30,CS=Lh*365,F3=su(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Rh)},(e,t)=>(t-e)/Rh,e=>e.getUTCSeconds());F3.range;const bS=su(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rh)},(e,t)=>{e.setTime(+e+t*IA)},(e,t)=>(t-e)/IA,e=>e.getMinutes());bS.range,su(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*IA)},(e,t)=>(t-e)/IA,e=>e.getUTCMinutes()).range;const ES=su(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rh-e.getMinutes()*IA)},(e,t)=>{e.setTime(+e+t*Nh)},(e,t)=>(t-e)/Nh,e=>e.getHours());ES.range,su(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Nh)},(e,t)=>(t-e)/Nh,e=>e.getUTCHours()).range;const W7=su(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*IA)/Lh,e=>e.getDate()-1);W7.range;const xS=su(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lh,e=>e.getUTCDate()-1);xS.range,su(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lh,e=>Math.floor(e/Lh)).range;function Qm(e){return su(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*IA)/wS)}const MC=Qm(0),DC=Qm(1),zie=Qm(2),Uie=Qm(3),V3=Qm(4),Gie=Qm(5),jie=Qm(6);MC.range,DC.range,zie.range,Uie.range,V3.range,Gie.range,jie.range;function zm(e){return su(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/wS)}const tN=zm(0),HC=zm(1),Yie=zm(2),Wie=zm(3),O3=zm(4),Xie=zm(5),Kie=zm(6);tN.range,HC.range,Yie.range,Wie.range,O3.range,Xie.range,Kie.range;const SS=su(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());SS.range,su(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const $h=su(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$h.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:su(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),$h.range;const Um=su(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Um.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:su(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Um.range;function Zie(e,t,n,r,a,i){const l=[[F3,1,Rh],[F3,5,5*Rh],[F3,15,15*Rh],[F3,30,30*Rh],[i,1,IA],[i,5,5*IA],[i,15,15*IA],[i,30,30*IA],[a,1,Nh],[a,3,3*Nh],[a,6,6*Nh],[a,12,12*Nh],[r,1,Lh],[r,2,2*Lh],[n,1,wS],[t,1,eN],[t,3,3*eN],[e,1,CS]];function s(f,A,h){const v=A<f;v&&([f,A]=[A,f]);const g=h&&typeof h.range=="function"?h:c(f,A,h),b=g?g.range(f,+A+1):[];return v?b.reverse():b}function c(f,A,h){const v=Math.abs(A-f)/h,g=aS(([,,x])=>x).right(l,v);if(g===l.length)return e.every(oS(f/CS,A/CS,h));if(g===0)return PC.every(Math.max(oS(f,A,h),1));const[b,C]=l[v/l[g-1][2]<l[g][2]/v?g-1:g];return b.every(C)}return[s,c]}const[Jie,qie]=Zie($h,SS,MC,W7,ES,bS);function BS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function X7(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function eoe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,s=e.months,c=e.shortMonths,f=K7(a),A=Z7(a),h=K7(i),v=Z7(i),g=K7(l),b=Z7(l),C=K7(s),x=Z7(s),k=K7(c),_=Z7(c),M={a:de,A:ae,b:ye,B:Ce,c:null,d:lN,e:lN,f:Eoe,g:Hoe,G:Roe,H:woe,I:Coe,j:boe,L:sN,m:xoe,M:Soe,p:ue,q:me,Q:pN,s:hN,S:Boe,u:koe,U:Toe,V:_oe,w:Poe,W:Moe,x:null,X:null,y:Doe,Y:Ioe,Z:Noe,"%":AN},V={a:Ne,A:De,b:Le,B:Ve,c:null,d:cN,e:cN,f:Voe,g:Koe,G:Joe,H:Loe,I:$oe,j:Foe,L:fN,m:Ooe,M:Qoe,p:je,q:ft,Q:pN,s:hN,S:zoe,u:Uoe,U:Goe,V:joe,w:Yoe,W:Woe,x:null,X:null,y:Xoe,Y:Zoe,Z:qoe,"%":AN},I={a:ee,A:z,b:U,B:W,c:Y,d:iN,e:iN,f:voe,g:aN,G:rN,H:oN,I:oN,j:doe,L:hoe,m:foe,M:Aoe,p:te,q:coe,Q:goe,s:yoe,S:poe,u:ioe,U:ooe,V:loe,w:aoe,W:soe,x:X,X:oe,y:aN,Y:rN,Z:uoe,"%":moe};M.x=$(n,M),M.X=$(r,M),M.c=$(t,M),V.x=$(n,V),V.X=$(r,V),V.c=$(t,V);function $(ze,Je){return function(ut){var et=[],yt=-1,wt=0,Xt=ze.length,sr,ar,Ha;for(ut instanceof Date||(ut=new Date(+ut));++yt<Xt;)ze.charCodeAt(yt)===37&&(et.push(ze.slice(wt,yt)),(ar=nN[sr=ze.charAt(++yt)])!=null?sr=ze.charAt(++yt):ar=sr==="e"?" ":"0",(Ha=Je[sr])&&(sr=Ha(ut,ar)),et.push(sr),wt=yt+1);return et.push(ze.slice(wt,yt)),et.join("")}}function Q(ze,Je){return function(ut){var et=X7(1900,void 0,1),yt=q(et,ze,ut+="",0),wt,Xt;if(yt!=ut.length)return null;if("Q"in et)return new Date(et.Q);if("s"in et)return new Date(et.s*1e3+("L"in et?et.L:0));if(Je&&!("Z"in et)&&(et.Z=0),"p"in et&&(et.H=et.H%12+et.p*12),et.m===void 0&&(et.m="q"in et?et.q:0),"V"in et){if(et.V<1||et.V>53)return null;"w"in et||(et.w=1),"Z"in et?(wt=kS(X7(et.y,0,1)),Xt=wt.getUTCDay(),wt=Xt>4||Xt===0?HC.ceil(wt):HC(wt),wt=xS.offset(wt,(et.V-1)*7),et.y=wt.getUTCFullYear(),et.m=wt.getUTCMonth(),et.d=wt.getUTCDate()+(et.w+6)%7):(wt=BS(X7(et.y,0,1)),Xt=wt.getDay(),wt=Xt>4||Xt===0?DC.ceil(wt):DC(wt),wt=W7.offset(wt,(et.V-1)*7),et.y=wt.getFullYear(),et.m=wt.getMonth(),et.d=wt.getDate()+(et.w+6)%7)}else("W"in et||"U"in et)&&("w"in et||(et.w="u"in et?et.u%7:"W"in et?1:0),Xt="Z"in et?kS(X7(et.y,0,1)).getUTCDay():BS(X7(et.y,0,1)).getDay(),et.m=0,et.d="W"in et?(et.w+6)%7+et.W*7-(Xt+5)%7:et.w+et.U*7-(Xt+6)%7);return"Z"in et?(et.H+=et.Z/100|0,et.M+=et.Z%100,kS(et)):BS(et)}}function q(ze,Je,ut,et){for(var yt=0,wt=Je.length,Xt=ut.length,sr,ar;yt<wt;){if(et>=Xt)return-1;if(sr=Je.charCodeAt(yt++),sr===37){if(sr=Je.charAt(yt++),ar=I[sr in nN?Je.charAt(yt++):sr],!ar||(et=ar(ze,ut,et))<0)return-1}else if(sr!=ut.charCodeAt(et++))return-1}return et}function te(ze,Je,ut){var et=f.exec(Je.slice(ut));return et?(ze.p=A.get(et[0].toLowerCase()),ut+et[0].length):-1}function ee(ze,Je,ut){var et=g.exec(Je.slice(ut));return et?(ze.w=b.get(et[0].toLowerCase()),ut+et[0].length):-1}function z(ze,Je,ut){var et=h.exec(Je.slice(ut));return et?(ze.w=v.get(et[0].toLowerCase()),ut+et[0].length):-1}function U(ze,Je,ut){var et=k.exec(Je.slice(ut));return et?(ze.m=_.get(et[0].toLowerCase()),ut+et[0].length):-1}function W(ze,Je,ut){var et=C.exec(Je.slice(ut));return et?(ze.m=x.get(et[0].toLowerCase()),ut+et[0].length):-1}function Y(ze,Je,ut){return q(ze,t,Je,ut)}function X(ze,Je,ut){return q(ze,n,Je,ut)}function oe(ze,Je,ut){return q(ze,r,Je,ut)}function de(ze){return l[ze.getDay()]}function ae(ze){return i[ze.getDay()]}function ye(ze){return c[ze.getMonth()]}function Ce(ze){return s[ze.getMonth()]}function ue(ze){return a[+(ze.getHours()>=12)]}function me(ze){return 1+~~(ze.getMonth()/3)}function Ne(ze){return l[ze.getUTCDay()]}function De(ze){return i[ze.getUTCDay()]}function Le(ze){return c[ze.getUTCMonth()]}function Ve(ze){return s[ze.getUTCMonth()]}function je(ze){return a[+(ze.getUTCHours()>=12)]}function ft(ze){return 1+~~(ze.getUTCMonth()/3)}return{format:function(ze){var Je=$(ze+="",M);return Je.toString=function(){return ze},Je},parse:function(ze){var Je=Q(ze+="",!1);return Je.toString=function(){return ze},Je},utcFormat:function(ze){var Je=$(ze+="",V);return Je.toString=function(){return ze},Je},utcParse:function(ze){var Je=Q(ze+="",!0);return Je.toString=function(){return ze},Je}}}var nN={"-":"",_:" ",0:"0"},Nu=/^\s*\d+/,toe=/^%/,noe=/[\\^$*+?|[\]().{}]/g;function mi(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function roe(e){return e.replace(noe,"\\$&")}function K7(e){return new RegExp("^(?:"+e.map(roe).join("|")+")","i")}function Z7(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function aoe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ioe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ooe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function loe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function soe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=Nu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function aN(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function uoe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function coe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function foe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function iN(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function doe(e,t,n){var r=Nu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function oN(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Aoe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function poe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hoe(e,t,n){var r=Nu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function voe(e,t,n){var r=Nu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function moe(e,t,n){var r=toe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function goe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function yoe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lN(e,t){return mi(e.getDate(),t,2)}function woe(e,t){return mi(e.getHours(),t,2)}function Coe(e,t){return mi(e.getHours()%12||12,t,2)}function boe(e,t){return mi(1+W7.count($h(e),e),t,3)}function sN(e,t){return mi(e.getMilliseconds(),t,3)}function Eoe(e,t){return sN(e,t)+"000"}function xoe(e,t){return mi(e.getMonth()+1,t,2)}function Soe(e,t){return mi(e.getMinutes(),t,2)}function Boe(e,t){return mi(e.getSeconds(),t,2)}function koe(e){var t=e.getDay();return t===0?7:t}function Toe(e,t){return mi(MC.count($h(e)-1,e),t,2)}function uN(e){var t=e.getDay();return t>=4||t===0?V3(e):V3.ceil(e)}function _oe(e,t){return e=uN(e),mi(V3.count($h(e),e)+($h(e).getDay()===4),t,2)}function Poe(e){return e.getDay()}function Moe(e,t){return mi(DC.count($h(e)-1,e),t,2)}function Doe(e,t){return mi(e.getFullYear()%100,t,2)}function Hoe(e,t){return e=uN(e),mi(e.getFullYear()%100,t,2)}function Ioe(e,t){return mi(e.getFullYear()%1e4,t,4)}function Roe(e,t){var n=e.getDay();return e=n>=4||n===0?V3(e):V3.ceil(e),mi(e.getFullYear()%1e4,t,4)}function Noe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mi(t/60|0,"0",2)+mi(t%60,"0",2)}function cN(e,t){return mi(e.getUTCDate(),t,2)}function Loe(e,t){return mi(e.getUTCHours(),t,2)}function $oe(e,t){return mi(e.getUTCHours()%12||12,t,2)}function Foe(e,t){return mi(1+xS.count(Um(e),e),t,3)}function fN(e,t){return mi(e.getUTCMilliseconds(),t,3)}function Voe(e,t){return fN(e,t)+"000"}function Ooe(e,t){return mi(e.getUTCMonth()+1,t,2)}function Qoe(e,t){return mi(e.getUTCMinutes(),t,2)}function zoe(e,t){return mi(e.getUTCSeconds(),t,2)}function Uoe(e){var t=e.getUTCDay();return t===0?7:t}function Goe(e,t){return mi(tN.count(Um(e)-1,e),t,2)}function dN(e){var t=e.getUTCDay();return t>=4||t===0?O3(e):O3.ceil(e)}function joe(e,t){return e=dN(e),mi(O3.count(Um(e),e)+(Um(e).getUTCDay()===4),t,2)}function Yoe(e){return e.getUTCDay()}function Woe(e,t){return mi(HC.count(Um(e)-1,e),t,2)}function Xoe(e,t){return mi(e.getUTCFullYear()%100,t,2)}function Koe(e,t){return e=dN(e),mi(e.getUTCFullYear()%100,t,2)}function Zoe(e,t){return mi(e.getUTCFullYear()%1e4,t,4)}function Joe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?O3(e):O3.ceil(e),mi(e.getUTCFullYear()%1e4,t,4)}function qoe(){return"+0000"}function AN(){return"%"}function pN(e){return+e}function hN(e){return Math.floor(+e/1e3)}var Q3,vN;ele({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ele(e){return Q3=eoe(e),vN=Q3.format,Q3.parse,Q3.utcFormat,Q3.utcParse,Q3}function tle(e){return new Date(e)}function nle(e){return e instanceof Date?+e:+new Date(+e)}function mN(e,t,n,r,a,i,l,s,c,f){var A=FR(),h=A.invert,v=A.domain,g=f(".%L"),b=f(":%S"),C=f("%I:%M"),x=f("%I %p"),k=f("%a %d"),_=f("%b %d"),M=f("%B"),V=f("%Y");function I($){return(c($)<$?g:s($)<$?b:l($)<$?C:i($)<$?x:r($)<$?a($)<$?k:_:n($)<$?M:V)($)}return A.invert=function($){return new Date(h($))},A.domain=function($){return arguments.length?v(Array.from($,nle)):v().map(tle)},A.ticks=function($){var Q=v();return e(Q[0],Q[Q.length-1],$??10)},A.tickFormat=function($,Q){return Q==null?I:f(Q)},A.nice=function($){var Q=v();return(!$||typeof $.range!="function")&&($=t(Q[0],Q[Q.length-1],$??10)),$?v(YR(Q,$)):A},A.copy=function(){return G7(A,mN(e,t,n,r,a,i,l,s,c,f))},A}function rle(){return Lm.apply(mN(Jie,qie,$h,SS,MC,W7,ES,bS,F3,vN).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gN(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="continuous"}function yN(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="categorical"}function wN(e){return yN(e)||gN(e)}const z3="#110529",ale="solid",TS=1,J7="21",Hp=3,U3={min:3,max:10},CN={color:"#ccc",lineShape:ale,dotShape:J7},ile="light";function ole(e){const t=1/(e.length-1);return Kr().domain(e.map((n,r)=>r*t)).range(e)}function bN(e,t){const n=Gi[e].colors,r=t.length>1?1/(t.length-1):0,a=ole(n),i=rS(e),l=t.reduce((s,c,f)=>(s[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:D3[f%D3.length],dotShape:F7[f%F7.length]}},s),{});return{type:"categorical",palette:e,naAes:CN,order:t,mapping:l}}function Gm(e){return{type:"continuous",palette:e,naAes:CN,range:null,midPoint:null,log:!1}}function G3(e){return bN(ile,e)}function EN(e,t,n,r){var i;if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??G3(n?((i=e[n])==null?void 0:i.list)??[]:[]);return{order:a.order,inheritedAes:a.order.reduce((l,s)=>{const c=a.mapping[s].aes;return l[s]={},r.fill&&(l[s].fillColor=c.color,l[s].dotFill=c.color),r.stroke&&(l[s].lineColor=c.color),r.dotShape&&(l[s].dotShape=c.dotShape),r.lineType&&(l[s].lineShape=c.lineShape),l},{})}}function xN(e,t,n){var i;const r=n[e];if(r&&!yN(r))return{};const a=r??G3(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((l,s)=>{const c=a.mapping[s].aes;return l[s]={fillColor:c.color,lineColor:c.color,dotFill:c.color,dotShape:c.dotShape,dotSize:Hp,lineWidth:TS},l},{})}function _S(e,t,n,r){var i;const a=n[e]??G3(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((l,s)=>{const c=a.mapping[s].aes;return l[s]=c[r],l},{})}const lle={},sle={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function ule(e,t){return d.openBlock(),d.createElementBlock("svg",sle,t[0]||(t[0]=[d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 2.25H12V3.75H15.25V11.25H13.5C12.8096 11.25 12.25 11.8096 12.25 12.5V21H13.75V12.75H18.25V16.25H17.5C16.8096 16.25 16.25 16.8096 16.25 17.5V21H17.75V17.75H20.25V21H21.75V17.5C21.75 16.8096 21.1904 16.25 20.5 16.25H19.75V12.5C19.75 11.8096 19.1904 11.25 18.5 11.25H16.75V3.5C16.75 2.80964 16.1904 2.25 15.5 2.25Z",fill:"#110529"},null,-1),d.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5 3.75H7.25V7.25H8.5C9.19036 7.25 9.75 7.80964 9.75 8.5V21H8.25V8.75H4.75V21H3.25V8.5C3.25 7.80965 3.80964 7.25 4.5 7.25H5.75V3.5C5.75 2.80964 6.30964 2.25 7 2.25H10.5V3.75Z",fill:"#07AD3E"},null,-1)]))}const SN=mr(lle,[["render",ule]]),IC="pl7.app/graph/thresholds",rv="pl7.app/graph/axis/lowerLimit",av="pl7.app/graph/axis/upperLimit",iv="pl7.app/graph/axis/symmetricRange",j3="pl7.app/graph/palette",RC="pl7.app/axisNature",cle="pl7.app/isSubset";function fle(e,t){return t==="discrete"?e&&Y3[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&jm[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const Y3={box:["box"],box_binnedDots:["box","binnedDots"],box_jitteredDots:["box","jitteredDots"],violin:["violin"],violin_binnedDots:["violin","binnedDots"],violin_jitteredDots:["violin","jitteredDots"],binnedDots:["binnedDots"],jitteredDots:["jitteredDots"],bar:["bar"],bar_line:["bar","line"],bar_errorbar:["bar","errorbar"],stackedBar:["stackedBar"],line:["line"],line_jitteredDots:["line","jitteredDots"],line_binnedDots:["line","binnedDots"],line_errorbar:["line","errorbar"],errorbar:["errorbar"],sina:["sina"],logo:["logo"]},jm={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},BN={dots:["dots"],curve_dots:["curve","dots"]},dle={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},Ale={bins:["bins"]},H0={box:"Boxplot",binnedDots:"Binned Dots",jitteredDots:"Jittered Dots",violin:"Violins",bar:"Bar",stackedBar:"Stacked Bar",line:"Line",errorbar:"Error Bar",sina:"Sina",logo:"Logo Plot",dots:"Scatter Plot",curve:"Curve",heatmap:"Heatmap",heatmapClustered:"Heatmap + Dendro",dendro:"Dendrogram",bins:"Histogram",bubble:"Bubble plot"};function ple(e,t){var r,a,i,l,s,c,f,A,h,v,g,b,C,x,k,_,M,V,I,$,Q,q,te,ee,z,U,W,Y,X,oe,de;if(e==="discrete"){const ae=t;return{overall:{data:{testMethod:((a=(r=ae==null?void 0:ae.overall)==null?void 0:r.data)==null?void 0:a.testMethod)??null},validity:{testMethod:((l=(i=ae==null?void 0:ae.overall)==null?void 0:i.validity)==null?void 0:l.testMethod)??!0}},referenceGroup:{data:{testMethod:((c=(s=ae==null?void 0:ae.referenceGroup)==null?void 0:s.data)==null?void 0:c.testMethod)??null,referenceGroup:((A=(f=ae==null?void 0:ae.referenceGroup)==null?void 0:f.data)==null?void 0:A.referenceGroup)??null,correctionMethod:((v=(h=ae==null?void 0:ae.referenceGroup)==null?void 0:h.data)==null?void 0:v.correctionMethod)??"Bonferroni",format:((b=(g=ae==null?void 0:ae.referenceGroup)==null?void 0:g.data)==null?void 0:b.format)??"significance",ns:((x=(C=ae==null?void 0:ae.referenceGroup)==null?void 0:C.data)==null?void 0:x.ns)??!1},validity:{testMethod:((_=(k=ae==null?void 0:ae.referenceGroup)==null?void 0:k.validity)==null?void 0:_.testMethod)??!0,referenceGroup:((V=(M=ae==null?void 0:ae.referenceGroup)==null?void 0:M.validity)==null?void 0:V.referenceGroup)??!0}},pairwise:{data:{testMethod:(($=(I=ae==null?void 0:ae.pairwise)==null?void 0:I.data)==null?void 0:$.testMethod)??null,correctionMethod:((q=(Q=ae==null?void 0:ae.pairwise)==null?void 0:Q.data)==null?void 0:q.correctionMethod)??"Bonferroni",format:((ee=(te=ae==null?void 0:ae.pairwise)==null?void 0:te.data)==null?void 0:ee.format)??"significance",ns:((U=(z=ae==null?void 0:ae.pairwise)==null?void 0:z.data)==null?void 0:U.ns)??!1},validity:{testMethod:((Y=(W=ae==null?void 0:ae.pairwise)==null?void 0:W.validity)==null?void 0:Y.testMethod)??!0}}}}const n=t;return{trend:{on:((X=n==null?void 0:n.trend)==null?void 0:X.on)??!1,trim:((oe=n==null?void 0:n.trend)==null?void 0:oe.trim)??!1,showLegend:((de=n==null?void 0:n.trend)==null?void 0:de.showLegend)??!0}}}function PS(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function W3(e){return typeof e=="object"&&e!==null&&"type"in e}function Ym(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e}const hle=()=>({bubble:{NAValueAs:0,strokeColor:null,minRadius:3,maxRadius:38,normalizationDirection:"row",normalizationMethod:"standardScaling"},bins:{fillColor:null,opacity:1},dendro:{dotFill:Ii,dotShape:P0,dotSize:Hp,lineColor:Ii,mode:"normal",leavesMode:"normal",showTable:!1,showLegend:!0},heatmap:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling"},heatmapClustered:{NAValueAs:0,normalizationDirection:"row",normalizationMethod:"standardScaling",dendrogramX:!0,dendrogramY:!0,disableClusteringX:!1,disableClusteringY:!1},dots:{dotFill:null,dotShape:null,dotSize:Hp},curve:{lineColor:Ii,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:z3,dotShape:P0,lineType:vC,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:z3,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:P0,lineColor:z3,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:z3,lineType:vC,opacity:1,trim:!1,showQuartiles:!1,quartilesLineStyle:"dashed",medianLineStyle:"solid"},bar:{fillColor:null,lineColor:z3,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:z3,opacity:1,normalize:!1},line:{pointsValues:"mean",lineColor:null,dotShape:P0,lineType:vC,dotFill:null,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:P0,dotFill:null,opacity:1},sina:{dotFill:null,dotShape:P0,opacity:1,showOutliers:!0},logo:{normalize:!1,opacity:1}});function vle(e){const t=hle();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const mle=()=>({title:{value:"Graph 1",position:"center",mode:"auto",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:null,axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed",sorting:"asc"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3,binsCount:10}});function kN(e){return e==="full"||e==="none"}function gle(e,t){var a;const n=mle();if(!t)return n;function r(i){return!i||e==="heatmap"&&!kN(i)?"full":e!=="heatmap"&&kN(i)&&i==="none"?"empty":i}return{title:{...n.title,...t.title},axisX:{...n.axisX,...t.axisX},axisY:{...n.axisY,...t.axisY},legend:{...n.legend,...t.legend},other:{...n.other,...t.other,frame:r((a=t.other)==null?void 0:a.frame)}}}const Sf={box:Nne,box_binnedDots:Vne,box_jitteredDots:Une,binnedDots:Wne,jitteredDots:Jne,violin:nre,violin_binnedDots:ore,violin_jitteredDots:cre,bar:iR,bar_line:oR,bar_errorbar:wre,stackedBar:xre,line:lR,line_binnedDots:Mre,line_jitteredDots:sR,line_errorbar:$re,errorbar:oR,sina:Qre,logo:qre,dots:jre,curve:lR,curve_dots:sR,heatmap:uR,heatmapClustered:SN,dendro:SN,bins:iR,bubble:uR},NC=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],TN=[{value:"BenjaminiHochberg",text:"Benjamini-Hochberg"},{value:"BenjaminiYekutieli",text:"Benjamini-Yekutieli"},{value:"Bonferroni",text:"Bonferroni"},{value:"Hochberg",text:"Hochberg"},{value:"Holm",text:"Holm"},{value:"Hommel",text:"Hommel"},{value:"none",text:"None"}],_N=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}],PN=600,MN=350,yle=400,wle=250;function DN(e,t,n){var a,i,l,s,c,f;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((s=(l=e.components)==null?void 0:l[n])!=null&&s.selectorStates.length))return["single common group"];const r=(c=e.components)==null?void 0:c[n].selectorStates[0].selectedSource;return((f=t[r])==null?void 0:f.list)??[]}function Cle(e){const t=[];if(e.overall.data.testMethod&&e.overall.validity.testMethod&&t.push({type:"stat",statType:"overall",testMethod:e.overall.data.testMethod}),e.referenceGroup.data.testMethod&&e.referenceGroup.validity.testMethod&&e.referenceGroup.validity.referenceGroup){const n={type:"stat",statType:"referenceGroup",testMethod:e.referenceGroup.data.testMethod,referenceGroup:e.referenceGroup.data.referenceGroup,format:e.referenceGroup.data.format,ns:e.referenceGroup.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}if(e.pairwise.data.testMethod&&e.pairwise.validity.testMethod){const n={type:"stat",statType:"pairwise",testMethod:e.pairwise.data.testMethod,format:e.pairwise.data.format,ns:e.pairwise.data.ns};e.referenceGroup.data.correctionMethod!=="none"&&(n.correctionMethod=e.referenceGroup.data.correctionMethod),t.push(n)}return t}function HN(e,t,n,r,a){const i=[],l=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function c(f,A=!1){return f===null?s?{type:"secondaryGrouping"}:l&&!A?{type:"primaryGrouping"}:{type:"secondaryGrouping"}:f}return e.forEach(f=>{var A;if(f==="box"){const h=t[f];i.push({type:"box",aes:{showOutliers:h.showOutliers,dotShape:h.dotShape,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="binnedDots"){const h=t[f];i.push({type:"binnedDots",aes:{showOutliers:h.showOutliers,fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="jitteredDots"){const h=t[f];i.push({type:"dot",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape,lineColor:h.lineColor,opacity:h.opacity}})}if(f==="violin"){const h=t[f];i.push({type:"violin",stat:{trim:h.trim},aes:{showQuartiles:h.showQuartiles,medianLineStyle:h.medianLineStyle,quartilesLineStyle:h.quartilesLineStyle,fillColor:c(h.fillColor),lineColor:c(h.lineColor),lineShape:h.lineType,opacity:h.opacity}})}if(f==="bar"){const h=t[f];i.push({type:"bar",height:h.height,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="stackedBar"){const h=t[f];i.push({type:"stackedBar",normalize:h.normalize,aes:{fillColor:c(h.fillColor),lineColor:c(h.lineColor),opacity:h.opacity}})}if(f==="line"){const h=t[f];i.push({type:"line",pointsValues:h.pointsValues,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),lineShape:h.lineType,dotShape:h.dotShape,opacity:h.opacity}})}if(f==="errorbar"){const h=t[f];i.push({type:"errorbar",pointsValues:h.pointsValues,interval:h.interval,aes:{lineColor:c(h.lineColor,!0),fillColor:c(h.dotFill,!0),dotShape:h.dotShape,opacity:h.opacity}})}if(f==="sina"){const h=t[f];i.push({type:"sina",aes:{showOutliers:h.showOutliers,dotFill:c(h.dotFill),dotShape:h.dotShape}})}if(f==="logo"&&s){const h=t[f],g=((A=a.getSourceInfo(r.components.secondaryGrouping.selectorStates[0].selectedSource).spec.domain)==null?void 0:A["pl7.app/alphabet"])==="aminoacid";i.push({type:"logo",normalize:h.normalize,aes:{opacity:h.opacity,dotFill:g?Cae:wae}})}}),l&&!s&&i.push(...Cle(n)),i}function ble(e,t,n){if(e){const r=Ym(t)?t:{column:e.value,range:U3},a=[1/0,-1/0];return n.values[e.value].forEach(i=>{const l=Number(i);l<a[0]&&(a[0]=l),l>a[1]&&(a[1]=l)}),{columnName:e,domain:a,range:[r.range.min,r.range.max]}}return Ym(t)?Hp:t??Hp}function IN(e,t,n,r){const a=n.find(l=>l.value===e);let i=[1/0,-1/0];if(a){const{range:l,palette:s,midPoint:c,log:f}=t,A=(l==null?void 0:l.minValue)===null||(l==null?void 0:l.minValue)===void 0,h=(l==null?void 0:l.maxValue)===null||(l==null?void 0:l.maxValue)===void 0;if((A||h)&&r.values[a.value].forEach(v=>{const g=Number(v);A&&g<i[0]&&(i[0]=g),h&&g>i[1]&&(i[1]=g)}),A||(i[0]=l==null?void 0:l.minValue),h||(i[1]=l==null?void 0:l.maxValue),c!=null){const v=Math.max(Math.abs(c-i[0]),Math.abs(c-i[1]));i[0]=c-v,i[1]=c+v}return{columnName:a,domain:i,range:Gi[s].colors,type:f?"log":"linear"}}return Ii}function RN(e,t,n,r,a,i,l=[]){var g,b;const s=[];function c(C,x,k,_=!1){var M;if(x.length){const V=x.length?(M=i.getSourceInfo(x[0]))==null?void 0:M.type:void 0,I=V==="String"||!_?{type:"grouping",value:x[0]}:IN(x[0],Gm(ev),l,n),$=a[x[0]];return C===null||V==="String"||!_||!gN($)?I:IN(x[0],$,l,n)}return typeof C=="object"?k:C}const f=r.components.grouping.selectorStates.map(C=>C.selectedSource),A=((g=r.components.shape)==null?void 0:g.selectorStates.map(C=>C.selectedSource))??[],h=(b=r.components.size)==null?void 0:b.selectorStates.map(C=>C.selectedSource)[0],v=h?l.find(C=>C.value===h):void 0;return e.forEach(C=>{if(C==="dots"){const x=t[C];s.push({type:"dots",aes:{dotFill:c(x.dotFill,f,Ii,!0),dotShape:c(x.dotShape,A,P0),dotSize:ble(v,x.dotSize,n)}})}if(C==="curve"){const x=t[C];s.push({type:"curve",smoothing:x.smoothing,aes:{lineColor:c(x.lineColor,f,Ii,!0)}})}}),s}const Ele=6,xle=5;function NN(e,t=[]){return e!==null?e:t.length>Ele&&t.some(({label:n})=>n.length>xle)?"45deg":"center"}function X3(e,t,n=[]){let r={},a={};t==="discrete"&&(r.labelsPosition=NN(e.axisX.labelsRotation,n),r.linesBetweenCategories=e.axisX.linesBetweenCategories,a.scale=e.axisY.scale),(t==="discrete"||t==="scatterplot"||t==="scatterplot-umap")&&(r.showGrid=e.axisX.gridlines,r.showTicks=e.axisX.ticks,a.showGrid=e.axisY.gridlines,a.showTicks=e.axisY.ticks),(t==="scatterplot"||t==="scatterplot-umap")&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale,r.significantLinesStyle=e.axisX.significantLinesStyle,a.significantLinesStyle=e.axisY.significantLinesStyle),t==="histogram"&&(r.scale=e.axisX.scale,a.scale=e.axisY.scale),(t==="heatmap"||t==="bubble")&&(r.axisLabelsAngle=e.axisX.axisLabelsAngle,a.axisLabelsAngle=e.axisY.axisLabelsAngle,r.sorting=e.axisX.sorting,a.sorting=e.axisY.sorting),e.axisY.titleMode!=="auto"&&(a.title=e.axisY.titleMode==="custom"?e.axisY.customTitle:""),e.axisX.titleMode!=="auto"&&(r.title=e.axisX.titleMode==="custom"?e.axisX.customTitle:"");const i={xAxis:r,yAxis:a,frame:{type:e.other.frame},facetSettings:{nCols:e.other.facetColumns}};return(t==="discrete"||t==="scatterplot"||t==="heatmap")&&(i.orientation=e.other.reverse?"horizontal":"vertical",i.facetSettings.sharedX=["x","xy"].includes(e.other.facetSharedBy),i.facetSettings.sharedY=["y","xy"].includes(e.other.facetSharedBy)),i}function Ip(e){return JSON.parse(JSON.stringify(e))}function Sle(e,t){if(typeof e>"u")return!0;const n=Object.keys(e);return typeof t>"u"?n.length===0:n.every(r=>t[r])}function LN(e,t,n,r){return(t==null?void 0:t[cle])==="true"?"subset":r!==void 0?"range":n!==void 0||e==="Int"||e==="String"?"equals":"range"}async function MS(e,t,n=!0){const r=[],a=t.filter(({selectedSource:s})=>"kind"in s&&s.kind==="PColumn"),i=t.filter(({selectedSource:s})=>!("kind"in s&&s.kind==="PColumn")),l=[];for(const{inputName:s,filterType:c,selectedSource:f,selectedFilterValue:A,selectedFilterRange:h,fixedAxes:v}of a){const{name:g,valueType:b,annotations:C,domain:x}=f,k=await e.pFrameProvider.findColumnBy(g,b,d.toRaw(C),d.toRaw(x)),_=s==="filters"||s==="tabBy"||s==="highlight";if(k){const M=await e.pFrameProvider.getColumnSpecById(k),V=M&&v?v.map(I=>({axisIdx:I.axisIdx,axisValue:I.axisValue,axisSource:Nr.fromAxisSpec(M==null?void 0:M.axesSpec[I.axisIdx]).toCanonicalString()})):[];if(!_)r.push({inputName:s,selectedSource:k.toCanonicalString(),fixedAxes:V});else{const I=c??LN(b,M==null?void 0:M.annotations,A,h),$=I==="equals"&&typeof A>"u"?(await e.pFrameProvider.getColumnUniqueValues(k))[0]:A,Q={min:void 0,max:void 0,...h};r.push({inputName:s,filterType:I,selectedSource:k.toCanonicalString(),selectedFilterValue:$,selectedFilterRange:Q,fixedAxes:V})}l.push(...(M==null?void 0:M.axesSpec.map(I=>({spec:I,parentColumn:k})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:s,selectedSource:f})}`)}for(const{inputName:s,selectedSource:c,filterType:f,selectedFilterValue:A,selectedFilterRange:h}of i){const v=Nr.fromAxisSpec(c),g=v.toCanonicalString(),b=s==="filters"||s==="tabBy",C=b?f??LN(v.type,c==null?void 0:c.annotations):void 0,x=l.find(M=>Nr.fromAxisSpec(M.spec).toCanonicalString()===g),k=b&&C==="equals"&&typeof A>"u"&&(x!=null&&x.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(v,[x==null?void 0:x.parentColumn]))[0]:A,_={min:void 0,max:void 0,...h};if(n||r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]}),x)r.push({inputName:s,filterType:C,selectedSource:g,selectedFilterValue:k,selectedFilterRange:_,fixedAxes:[]});else{const{spec:M,parentColumn:V}=l.find(I=>v.name===I.spec.name&&v.type===I.spec.type&&Sle(v.domain,I.spec.domain))??{};if(M){const I=(s==="filters"||s==="tabBy")&&typeof A>"u"?(await e.pFrameProvider.getAxisUniqueValues(Nr.fromAxisSpec(M),[V]))[0]:A;r.push({inputName:s,filterType:C,selectedSource:Nr.fromAxisSpec(M).toCanonicalString(),selectedFilterValue:I,selectedFilterRange:_,fixedAxes:[]})}}}return r}async function $N(e,t,n){if(!n||n.length===0)return e;const r=await MS(t,n,!1),a=Ip(e);return r.forEach(({inputName:i,selectedSource:l,selectedFilterValue:s})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:l,type:"equals",selectedFilterValue:s})}),a}function Ble(e,t,n,r){var c;const a=HN(Y3[t.template],t.layersSettings,t.statisticsSettings,t.optionsState,r),i=QN(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,r);e.layers=a;const l=t.optionsState.components;if(l.primaryGrouping.selectorStates.length&&e.primaryGrouping){const f=l.primaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.primaryGrouping,EN(n,t.dataBindAes[f],f,A))}if(l.secondaryGrouping.selectorStates&&e.secondaryGrouping){const f=l.secondaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.secondaryGrouping,EN(n,t.dataBindAes[f],f,A))}const s=e.primaryGrouping?(c=n[e.primaryGrouping.columnName.value])==null?void 0:c.options:[];return Object.assign(e,X3(t.axesSettings,t.chartType,s)),e}function kle(e,t,n,r,a){var b,C,x,k,_;e.layers=RN(jm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping,l=n.optionsState.components.shape;if(i.selectorStates.length||l.selectorStates.length){const M=[...i.selectorStates,...l.selectorStates],V={};M.forEach(({selectedSource:I})=>{V[I]=xN(I,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:V})}const s=n.statisticsSettings,c=e.layers.find(M=>M.type==="dots");s.trend.on&&c&&(e.trend={color:(b=c.aes)==null?void 0:b.dotFill,bounded:!1}),Object.assign(e,X3(n.axesSettings,n.chartType));const f=(C=i.selectorStates[0])==null?void 0:C.selectedSource,A=(x=n.optionsState.components.x.selectorStates[0])==null?void 0:x.selectedSource,h=(k=n.optionsState.components.y.selectorStates[0])==null?void 0:k.selectedSource,v=r.getSourceInfo(A),g=r.getSourceInfo(h);if(i.selectorStates.length){const M=r.getSourceInfo(f).annotations;if(M!=null&&M[IC]&&(JSON.parse(M[IC])??[]).forEach(I=>{const{columnId:$,value:Q}=I;$&&v.kind==="column"&&v.type===$.valueType&&v.name===$.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(Q))),$&&g.kind==="column"&&g.type===$.valueType&&g.name===$.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(Q)))}),M!=null&&M[j3]){const V=JSON.parse(M[j3]),{mapping:I={},name:$=""}=V;e.layers.forEach(te=>{te.type==="dots"&&(te.aes||(te.aes={}),te.aes.dotFill={type:"grouping",value:f})});const Q=[...Object.entries(I),["null",hC]],q=((_=Gi[$])==null?void 0:_.colors)??[];e.inheritedAes[f]=Q.reduce((te,[ee,z])=>{const U=q[Number(z)]??Ii;return te[ee]={fillColor:U,lineColor:U,dotFill:U,dotShape:J7,dotSize:Hp,lineWidth:TS},te},{})}}return v.annotations&&(v.annotations[av]&&(e.xAxis.upperValue=Number(v.annotations[av])),v.annotations[rv]&&(e.xAxis.lowerValue=Number(v.annotations[rv])),v.annotations[iv]&&(e.xAxis.symmetricRange=Number(v.annotations[iv]))),g.annotations&&(g.annotations[av]&&(e.yAxis.upperValue=Number(g.annotations[av])),g.annotations[rv]&&(e.yAxis.lowerValue=Number(g.annotations[rv])),g.annotations[iv]&&(e.yAxis.symmetricRange=Number(g.annotations[iv]))),e}const Tle=750,_le=450;function Ple(e,t,n,r,a){var h,v,g,b;e.layers=RN(jm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping;if(i.selectorStates.length){const C=[...i.selectorStates],x={};C.forEach(({selectedSource:k})=>{x[k]=xN(k,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:x})}Object.assign(e,X3(n.axesSettings,n.chartType));const l=(h=i.selectorStates[0])==null?void 0:h.selectedSource,s=(v=n.optionsState.components.x.selectorStates[0])==null?void 0:v.selectedSource,c=(g=n.optionsState.components.y.selectorStates[0])==null?void 0:g.selectedSource,f=r.getSourceInfo(s),A=r.getSourceInfo(c);if(i.selectorStates.length){const C=r.getSourceInfo(l).annotations;if(C!=null&&C[IC]&&(JSON.parse(C[IC])??[]).forEach(k=>{const{columnId:_,value:M}=k;_&&f.kind==="column"&&f.type===_.valueType&&f.name===_.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(M))),_&&A.kind==="column"&&A.type===_.valueType&&A.name===_.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(M)))}),C!=null&&C[j3]){const x=JSON.parse(C[j3]),{mapping:k={},name:_=""}=x;e.layers.forEach(I=>{I.type==="dots"&&(I.aes||(I.aes={}),I.aes.dotFill={type:"grouping",value:l})});const M=[...Object.entries(k),["null",hC]],V=((b=Gi[_])==null?void 0:b.colors)??[];e.inheritedAes[l]=M.reduce((I,[$,Q])=>{const q=V[Number(Q)]??Ii;return I[$]={fillColor:q,lineColor:q,dotFill:q,dotShape:J7,dotSize:Hp,lineWidth:TS},I},{})}}return f.annotations&&(f.annotations[av]&&(e.xAxis.upperValue=Number(f.annotations[av])),f.annotations[rv]&&(e.xAxis.lowerValue=Number(f.annotations[rv])),f.annotations[iv]&&(e.xAxis.symmetricRange=Number(f.annotations[iv]))),A.annotations&&(A.annotations[av]&&(e.yAxis.upperValue=Number(A.annotations[av])),A.annotations[rv]&&(e.yAxis.lowerValue=Number(A.annotations[rv])),A.annotations[iv]&&(e.yAxis.symmetricRange=Number(A.annotations[iv]))),e.size={width:Tle,height:_le},e.lassoMode=n.lassoMode,e}function Mle(e,t){var l,s;const n={},r=(l=t.dataBindAes[e.valueColumn.value])==null?void 0:l.palette;if((e==null?void 0:e.valueType)!=="discrete"){if(t.template==="heatmapClustered"){const c=t.layersSettings.heatmapClustered;c.disableClusteringX||(e.dendrogramX={fillNA:0,showNodes:!1,hidden:!c.dendrogramX}),c.disableClusteringY||(e.dendrogramY={fillNA:0,position:"right",showNodes:!1,hidden:!c.dendrogramY})}n.colorsList=Gi[r??gae].colors}else n.colorsList=Gi[r??"bright"].colors;e.aes=n,(s=e.annotations)==null||s.forEach(c=>{var v;const f=c.valueColumn.value,A=(v=t.dataBindAes[f])==null?void 0:v.palette,h=c.type==="discrete"?fR:ev;c.colors=Gi[A??h].colors}),Object.assign(e,X3(t.axesSettings,t.chartType)),t.template==="heatmapClustered"&&(e==null?void 0:e.valueType)!=="discrete"&&(e.facetSettings.sharedX=!1,e.facetSettings.sharedY=!1);const a=t.template,i=t.layersSettings[a];return e.NAValueAs=i.NAValueAs,e.valueType==="continuous"&&i.normalizationDirection&&(e.normalization={method:i.normalizationMethod,direction:i.normalizationDirection}),e}const Dle=280;async function Hle(e,t,n,r,a,i){var f,A,h,v;n.rootPosition="left",n.size={width:PN,height:MN};const l=r.optionsState.components,s=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const g=(f=l.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,b=_S(g,a,r.dataBindAes,"dotShape");Object.keys(b).length?c.nodeShape.valuesMap=b:c.nodeShape=J7}else typeof s.dotShape=="string"&&(c.nodeShape=s.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const g=(A=l.nodeColor.selectorStates[0])==null?void 0:A.selectedSource,b=_S(g,a,r.dataBindAes,"color");Object.keys(b).length?c.nodeColor.valuesMap=b:c.nodeColor=Ii}else typeof s.dotFill=="string"&&(c.nodeColor=s.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const g=(h=l.nodeSize.selectorStates[0])==null?void 0:h.selectedSource;let[b,C]=[1/0,-1/0];t.values[g].forEach(x=>{const k=Number(x);k<b&&(b=k),k>C&&(C=k)}),c.nodeSize.domain=[b,C],c.nodeSize.range=PS(s.dotSize)?[s.dotSize.min,s.dotSize.max]:[U3.min,U3.max]}else typeof s.dotSize=="number"&&(c.nodeSize=s.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const g=(v=l.lineColor.selectorStates[0])==null?void 0:v.selectedSource;c.lineColor.valuesMap=_S(g,a,r.dataBindAes,"color")}else typeof s.lineColor=="string"&&(c.lineColor=s.lineColor);if(l.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Gi.bright.colors}},n.size.maxCellWidth=8),l.heatmapAnnotation.selectorStates.length>0){const g=en(l.heatmapAnnotation.selectorStates[0].selectedSource),b=await e.pFrameProvider.getColumnSpecById(g),C=(b==null?void 0:b.valueType)==="Double"||(b==null?void 0:b.valueType)==="Float"||(b==null?void 0:b.valueType)==="Int"||(b==null?void 0:b.valueType)==="Long"?"continuous":"discrete",x=Gi.bright.colors;let k;C==="discrete"&&(k=(await e.pFrameProvider.getColumnUniqueValues(g)).filter(Boolean).reduce((M,V,I)=>(M[V]=x[I%x.length],M),{})),n.heatmapSettings={valueType:C,aes:{colorsList:Gi.viridis.colors,colorsMap:k}}}return n.mode=s.mode,n.leavesMode=s.leavesMode,n.showNodesLabels=l.labels.selectorStates.length>0,n.showLeavesLabels=l.labels.selectorStates.length>0,s.showTable&&l.heatmapAnnotation.selectorStates.length===0&&l.heatmapForSequence.selectorStates.length===0&&(n.size.width=Dle),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}function Ile(e,t){const n=Ale[t.template],r=[];return n.forEach(a=>{if(a==="bins"){const i=t.layersSettings[a];r.push({type:"bins",aes:{opacity:i.opacity,fillColor:i.fillColor??"white"}})}}),e.layers=r,Object.assign(e,X3(t.axesSettings,t.chartType)),e.binsCount=t.axesSettings.other.binsCount,e}const FN=40,Rle=FN/2-2,Nle=3;function Lle(e,t){var i;const n=t.template,r=t.layersSettings[n],a=(i=t.dataBindAes[e.valueColor.value])==null?void 0:i.palette;return e.aes={cellStrokeColor:r.strokeColor??Ii,colorsList:Gi[a??ev].colors,maxRadius:Rle*(t.chartScale/100),minRadius:Nle},e.size={cellSize:FN*(t.chartScale/100)},Object.assign(e,X3(t.axesSettings,t.chartType)),e.NAValueAs=r.NAValueAs,r.normalizationDirection&&(e.normalization={method:r.normalizationMethod,direction:r.normalizationDirection}),e}function $le(e,t=0){return{width:(t>0?yle:PN)*(e/100),height:(t>0?wle:MN)*(e/100)}}function Fle(e,t,n,r){var a,i;if(e!=="scatterplot"&&e!=="scatterplot-umap"&&e!=="discrete"&&e!=="heatmap"&&e!=="histogram"&&e!=="bubble")return{name:"",show:!1};if(r.title.mode==="hidden")return{name:"",show:!1};if(r.title.mode==="custom")return{name:r.title.value,show:!0,position:r.title.position};if(r.title.mode==="auto"){const l=[];return[...((a=t.components)==null?void 0:a.filters.selectorStates)??[],...((i=t.components)==null?void 0:i.tabBy.selectorStates)??[]].forEach(({type:f,selectedSource:A,selectedFilterValue:h})=>{if((!f||f==="equals")&&h){const v=n[A];l.push((v==null?void 0:v.labels[h])??String(h))}}),{name:l.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function Vle(e,t,n,r,a){var i;if(!e.ready||r===null)return null;try{const l=pC(n.chartType),s=await $N(n.optionsState,r,a),c=await l.createDataForPlot(r,s);let f=c.settings;return f.title=Fle(n.chartType,n.optionsState,t,n.axesSettings),f.size=$le(n.chartScale,((i=n.optionsState.components)==null?void 0:i.facetBy.selectorStates.length)||0),n.chartType==="discrete"&&(f=Ble(f,n,t,e)),n.chartType==="scatterplot"&&(f=kle(f,c.dataByColumns,n,e,t)),n.chartType==="scatterplot-umap"&&(f=Ple(f,c.dataByColumns,n,e,t)),n.chartType==="heatmap"&&(f=Mle(f,n)),n.chartType==="dendro"&&(f=await Hle(r,c.dataByColumns,f,n,t,n.chartScale)),n.chartType==="histogram"&&(f=Ile(f,n)),n.chartType==="bubble"&&(f=Lle(f,n)),{settings:f,dataByColumns:c.dataByColumns}}catch(l){return console.warn("Cant build chart data"),console.warn(l.message),null}}function VN(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function ON(e){return e.length<2?[]:e.length>2?NC.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):NC}function DS(e){return async()=>{const t=e.value.commonHelpersData.primaryGroups.value;function n(c,f){return f===null||!!c.find(A=>A.value===f)}if(e.value.reactive.chartType!=="discrete")return;const r=e.value.reactive.statisticsSettings,a=ON(t),i=VN(t),l=r.overall.data.testMethod,s=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,l),r.referenceGroup.validity.referenceGroup=n(i,s)}}function Ole(e){e.dispatchEvent(new MouseEvent("click"))}function Qle(e,t){const n=window.URL||window.webkitURL,r=document.createElement("a");r.download=t,r.rel="noopener",r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ole(r)},0)}function q7(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return W3(a)&&a.type===n})}function QN(e,t,n,r,a,i){var c,f,A;const l={};let s=[];if(e==="discrete"){s=["primaryGrouping","secondaryGrouping"];const h=HN(Y3[t],n,r,a,i);s.forEach(v=>{var b,C;const g=(C=(b=a.components[v])==null?void 0:b.selectorStates[0])==null?void 0:C.selectedSource;g&&(l[g]={fill:q7(h,"fillColor",v)||q7(h,"dotFill",v),stroke:q7(h,"lineColor",v),dotShape:q7(h,"dotShape",v),lineType:q7(h,"lineShape",v),size:!1})})}if(e==="scatterplot"){const h=a.components.grouping.selectorStates.map(g=>g.selectedSource),v=a.components.shape.selectorStates.map(g=>g.selectedSource);s=[...h,...v],s.forEach(g=>{l[g]={fill:g===h[0],stroke:!1,dotShape:g===v[0],lineType:!1,size:!1}})}return e==="scatterplot-umap"&&(s=a.components.grouping.selectorStates.map(h=>h.selectedSource),s.forEach(h=>{l[h]={fill:h===s[0],stroke:!1,dotShape:!1,lineType:!1,size:!1}})),e==="dendro"&&(s=[((c=a.components.nodeColor.selectorStates[0])==null?void 0:c.selectedSource)??null,((f=a.components.nodeShape.selectorStates[0])==null?void 0:f.selectedSource)??null,((A=a.components.lineColor.selectorStates[0])==null?void 0:A.selectedSource)??null].filter(v=>v!==null),s.forEach(v=>{l[v]={fill:W3(n.dendro.dotFill)&&n.dendro.dotFill.value===v,stroke:W3(n.dendro.lineColor)&&n.dendro.lineColor.value===v,dotShape:W3(n.dendro.dotShape)&&n.dendro.dotShape.value===v,lineType:!1,size:!1}})),l}var zle=Object.defineProperty,Ule=(e,t,n)=>t in e?zle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HS=(e,t,n)=>Ule(e,typeof t!="symbol"?t+"":t,n);function Gle(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function jle(e,t){if(e===void 0)throw Error(t??"Undefined value");return e}function Yle(e=void 0){return e}function Wle(e){return e}function Xle(e){return[...new Set(e)]}function Kle(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value")}function Zle(e,t){if(e===void 0)throw Error(t??"Undefined value")}function Jle(e,t,n){const r=Math.min(t,n),a=Math.max(t,n);return e>=r&&e<=a}function qle(e){return e.map(t=>({text:String(t),value:t}))}function ese(e){return function(...t){const n=e(...t);async function r(a){return a.done?Promise.resolve(a.value):Promise.resolve(a.value).then(i=>r(n.next(i))).catch(i=>r(n.throw(i)))}try{return r(n.next())}catch(a){return Promise.reject(a instanceof Error?a:Error(String(a)))}}}class tse{constructor(){HS(this,"promise"),HS(this,"resolve",()=>{}),HS(this,"reject",()=>{}),this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}function IS(e){return new Promise(t=>setTimeout(t,e))}function nse(){return new Promise(e=>queueMicrotask(e))}function rse(){const e=new Date().getTime();return function(){return new Date().getTime()-e}}function ase(){const e=performance.now();return function(){return performance.now()-e}}function ise(e){return e()}function ose(e,t,n){return t>e?t:e>n?n:e}function lse(e,t){return t(e)}function sse(e,t){if(e!=null)return t(e)}function use(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e}function*zN(e,t,n=1){for(let r=e;r<t;r+=n)yield r}function UN(e){const t=[];for(const n of e)t.push(n);return t}function cse(e,t){return UN(zN(0,e)).map(t)}let fse=class{constructor(t){this._delay=t}async*generate(){let t=0;for(;;)await IS(this._delay),yield t++}async*[Symbol.asyncIterator](){let t=0;for(;;)await IS(this._delay),yield t++}};function dse(e,t){return Array.from({length:e},(n,r)=>t(r))}function Ase(e,t){throw Error(t)}function pse(e){return t=>e[t]()}function hse(e){if(e&&e.ok)return e.value}function vse(e){if(e&&!e.ok)return e.error}function mse(e){if(e.ok)return e.value;throw Error(e.error)}function gse(e){return Array.isArray(e)?e:[e]}async function yse(e){return Object.fromEntries(await Promise.all(Object.entries(e).map(async([t,n])=>[t,await n])))}function wse(e,t){return Object.keys(t).every(n=>e[n]===t[n])}const Cse=e=>e;function bse(e){return e}function Ese(e){return Object.entries(e).map(([t,n])=>({key:t,value:n}))}const e5=Object.freeze(Object.defineProperty({__proto__:null,Deferred:tse,Interval:fse,alike:wse,arrayFrom:dse,asConst:bse,async:ese,between:Jle,bool:Wle,call:ise,checkIfDefined:Zle,checkIfNotEmpty:Kle,clamp:ose,delay:IS,errorOptional:vse,exhaustive:Ase,flatValue:gse,identity:Cse,listToOptions:qle,match:pse,notEmpty:Gle,notUndef:jle,okOptional:hse,performanceTimer:ase,randomInt:use,range:zN,resolveAwaited:yse,tap:lse,tapIf:sse,tear:nse,timer:rse,times:cse,toList:UN,undef:Yle,unionize:Ese,uniqueValues:Xle,unwrap:mse},Symbol.toStringTag,{value:"Module"})),t5=Array.isArray;function LC(e){return e!==null&&typeof e=="object"}function K3(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}function xse(e,t){return Object.keys(e).map(n=>t(e[n],n))}function GN(e){return Object.values(e).reduce((t,n)=>n!==void 0?t+1:t,0)}function $C(e,t){if(!(LC(e)&&LC(t)))return e===t;if(t5(e)&&t5(t))return e.length!==t.length?!1:[...e.keys()].every(n=>$C(e[n],t[n]));if(K3(e)&&K3(t))return GN(e)!==GN(t)?!1:Object.keys(e).every(n=>$C(e[n],t[n]));throw Error(`Cannot compare a ${String(e)} and b ${String(t)}`)}const Sse=$C;function FC(e){if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=FC(e[n]);return t}else if(K3(e)){const t={};return Object.keys(e).forEach(n=>{t[n]=FC(e[n])}),t}else return e}function Bse(e){return Array.isArray(e)?Object.assign([],e):LC(e)?Object.assign({},e):e}function kse(e,t){const n={};for(const r in t)t[r]!==e[r]&&(n[r]=e[r]);return n}function Tse(e){return Object.entries(e).forEach(([t,n])=>{n instanceof Function&&(e[t]=n.bind(e))}),e}function _se(e,t,n){return e[t]=n,e}function Pse(e,t){return e[t]}function Mse(e,t){e={...e};const n=e[t];return delete e[t],[n,e]}function Dse(e,...t){return Object.assign({},...t.map(n=>({[n]:e[n]})))}function Hse(e,...t){return t.map(n=>e[n])}function Ise(e,...t){const n=Object.assign({},e);return t.forEach(r=>delete n[r]),n}function jN(e,t){return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{const r=e[n],a=t[n];K3(r)&&K3(a)||t5(r)&&t5(a)&&r.length===a.length?jN(r,a):e[n]=a}),e}const Rse=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Tse,deepClone:FC,deepEqual:Sse,deepPatch:jN,getProp:Pse,isArray:t5,isJsonEqual:$C,isNonPrimitive:LC,isPlainObject:K3,map:xse,omit:Ise,pick:Dse,pickValues:Hse,setProp:_se,shallowClone:Bse,shallowDiff:kse,shiftProp:Mse},Symbol.toStringTag,{value:"Module"}));function Nse(e,t){const n=Ip(aR(e));if((t==null?void 0:t.type)!==e)return n;const r=Ip(t);return{...n,...r,components:{...n.components,...r.components}}}function RS(e,t){return d.reactive({chartType:t,optionsState:Nse(t,e.optionsState),dataStateKey:FC(e.dataStateKey),template:fle(e.template,t),statisticsSettings:ple(t,e.statisticsSettings),layersSettings:vle(e.layersSettings),axesSettings:gle(t,e.axesSettings),dataBindAes:Ip(e.dataBindAes??{}),chartScale:e.zoomState??100,lassoMode:!1,currentTab:e.currentTab===void 0?"dataMapping":e.currentTab,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Lse(e,t,n,r,a,i,l){return{reactive:e,loading:d.reactive({initialInputGuide:!0,initialCharts:!0,initialDefaults:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:d.computed(()=>DN(e.optionsState,i.value,"primaryGrouping")),secondaryGroups:d.computed(()=>DN(e.optionsState,i.value,"secondaryGrouping")),usedAesInMapping:d.computed(()=>QN(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState,n.value)),dendroTableData:a},controller:pC(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r,uniqueValuesData:i,readonlyInputs:l}}function $se(e,t,n,r,a,i,l){const s=RS(e,n),c=pC(s.chartType),f=d.ref(pC(s.chartType).getEmptyInputGuide(s.optionsState)),A=d.ref(null),h=d.ref({}),v=d.ref(null),g=d.computed(()=>Lse(s,d.toRaw(t.value),f,A,v,h,l));d.watch([()=>t.value,()=>r.value],async([x,k])=>{if(!k||!x||!g.value.loading.initialDefaults)return;g.value.loading.initialDefaults=!1,g.value.loading.initialInputGuide=!0;const _=Ip(s.optionsState.components),M=k.filter(I=>{var $;return(($=s.optionsState.components[I.inputName])==null?void 0:$.selectorStates.length)===0||(l==null?void 0:l.includes(I.inputName))});if(M.length===0)return;M.forEach(I=>{_[I.inputName].selectorStates=[]});const V=await MS(x,M);for(const{inputName:I,selectedSource:$,filterType:Q,selectedFilterValue:q,selectedFilterRange:te,fixedAxes:ee}of V)_[I].selectorStates.push({selectedSource:$,type:Q,selectedFilterValue:q,selectedFilterRange:te,fixedAxes:ee});s.optionsState.components={...s.optionsState.components,..._}},{immediate:!0});const b=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>a.value],async([x,k,_])=>{b.value++;const M=b.value;g.value.loading.inputGuide=!0;const V=k&&_?(await MS(k,_,!1)).map(te=>te.selectedSource):[],I=k?await c.calculateOptions(d.toRaw(k),x,V,i):c.getEmptyInputGuide(x),$=["primaryGrouping","secondaryGrouping","grouping","shape","nodeColor","nodeShape","lineColor","filters","highlight","tabBy"],Q=[];$.forEach(te=>{const ee=s.optionsState.components[te];if(ee)for(const{selectedSource:z}of ee.selectorStates)Q.push(z)}),[...I.freeOptionsSet].forEach(te=>{var z,U,W;const ee=I.getSourceInfo(te);ee.kind==="axis"&&((z=ee.annotations)!=null&&z[RC])&&((U=ee.annotations)==null?void 0:U[RC])!=="homogeneous"&&((W=ee.annotations)==null?void 0:W[RC])!=="homogenous"&&Q.push(te)}),[...I.axesToBeFixedSet].forEach(te=>{Q.push(te)});const q={};for(const te of Q)if(k&&!h.value[te]){const ee=await c.getUniqueSourceValuesWithLabels(k,I,te);if(!ee.length)continue;ee.sort((z,U)=>z.label.localeCompare(U.label,"en",{numeric:!0})),q[te]={list:ee.map(z=>z.value),options:ee,labels:ee.reduce((z,U)=>(z[U.value]=U.label,z),{})}}h.value={...h.value,...q},M===b.value&&(f.value=I,g.value.loading.inputGuide=!1,g.value.loading.initialInputGuide=!1)},{immediate:!0,deep:!0});const C=d.ref(0);if(d.watch([()=>f.value,()=>s.template,()=>s.layersSettings,()=>s.axesSettings,()=>s.statisticsSettings,()=>s.dataBindAes,()=>s.chartScale,()=>s.lassoMode],async([x])=>{C.value++;const k=C.value;g.value.loading.chartData=!0;const _=await Vle(x,h.value,s,d.toRaw(t.value),a.value);k===C.value&&(A.value=_,x.ready&&(g.value.loading.initialCharts=!1),g.value.loading.chartData=!1)},{immediate:!0,deep:!0}),s.chartType==="dendro"){const x=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>f.value.readyData,()=>a.value],async([k,_,M,V])=>{if(M&&_){x.value++;const I=x.value;g.value.loading.dendroTableData=!0;const $=await $N(k,_,V),Q=await c.createTableData(_,$);x.value===I&&(v.value=Q),g.value.loading.dendroTableData=!1}},{immediate:!0})}return d.provide(RI,g),g}function Tr(){return Gee(d.inject(RI),"Empty store")}const Fse={class:"template-list"},Vse=["onClick"],Ose=["onClick"],Qse=["onClick"],zse=["onClick"],Use=d.defineComponent({__name:"TemplateForm",setup(e){const t=Tr(),n=Object.entries(Y3).map(([A,h])=>({id:A,text:h.map(v=>H0[v]).join(" + "),icon:Sf[A]})),r=Object.entries(jm).map(([A,h])=>({id:A,text:h.map(v=>H0[v]).join(" + "),icon:Sf[A]})),a=Object.entries(BN).map(([A,h])=>({id:A,text:h.map(v=>H0[v]).join(" + "),icon:Sf[A]})),i=[{id:"heatmap",text:"Heatmap",icon:Sf.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:Sf.heatmapClustered}],l=[{id:"dendro",text:"Dendrogram",icon:Sf.dendro}],s=[{id:"bins",text:"Histogram",icon:Sf.bar}],c=[{id:"bubble",text:"Bubble plot",icon:Sf.bubble}];function f(A){t.value.reactive.template=A}return(A,h)=>(d.openBlock(),d.createElementBlock("div",{class:"template-form",onClick:h[0]||(h[0]=v=>v.stopPropagation())},[h[8]||(h[8]=d.createElementVNode("div",{class:"template-title"},[d.createElementVNode("h3",null," Template ")],-1)),d.createElementVNode("div",Fse,[d.unref(t).reactive.chartType==="discrete"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(d.unref(n),({id:v,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[1]||(h[1]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Vse))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(d.unref(r),({id:v,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[2]||(h[2]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Ose))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="scatterplot-umap"?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:2},d.renderList(d.unref(a),({id:v,text:g,icon:b})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[3]||(h[3]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Qse))),256)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="heatmap"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},d.renderList(i,({id:v,text:g,icon:b})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:C=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(b))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[4]||(h[4]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,zse)),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="dendro"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},d.renderList(l,({text:v,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(v)+" ",1),h[5]||(h[5]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="histogram"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:5},d.renderList(s,({text:v,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(v)+" ",1),h[6]||(h[6]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="bubble"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:6},d.renderList(c,({text:v,icon:g})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:!0}])},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(g))),d.createTextVNode(" "+d.toDisplayString(v)+" ",1),h[7]||(h[7]=d.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):d.createCommentVNode("",!0)])]))}});function YN(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const l=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(M=>M.axisSource===h&&M.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return f.isSubsetFilter?{selectedSource:s,type:"subset",fixedAxes:A}:f.isDiscreteFilter?{selectedSource:s,type:"equals",selectedFilterValue:void 0,fixedAxes:A}:{selectedSource:s,type:"range",selectedFilterRange:{min:void 0,max:void 0},fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,l)}})}function WN(e,t,n,r,a){return d.computed({get(){return e.value.components[t].selectorStates.map(i=>i.selectedSource)},set(i){if(!r)return;const l=i.map(s=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===s);if(c)return c;{const f=a.value.getSourceInfo(s),A=f.kind==="column"?f.axesToBeFixed.map(h=>{var b,C;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:x}of Object.values(e.value.components)){for(const k of x){const _=(C=(b=k.fixedAxes)==null?void 0:b.find(M=>M.axisSource===h&&M.axisValue!==void 0))==null?void 0:C.axisValue;if(_){g=_;break}}if(g)break}return{axisSource:h,axisIdx:f.axesToBeFixedIndexes[h],axisValue:g}}):[];return{selectedSource:s,fixedAxes:A}}});e.value=n.changeSelected(t,r,e.value,l)}})}function XN(e,t,n,r){return d.computed({get(){var a;return((a=e.value.components[t].selectorStates.map(i=>i.selectedSource))==null?void 0:a[0])??void 0},set(a){r&&(e.value=n.changeSelected(t,r,e.value,typeof a>"u"?[]:[{selectedSource:a}]))}})}function Gse(e,t,n){const r=e.options.map(i=>({text:t(i.value).label,value:i.value}));return n.selectorStates.map(i=>i.selectedSource).forEach(i=>{const l=t(i),s=e.stateConsistency[i]===!1;r.unshift({text:s?"Inconsistent value":l.label,value:i})}),r.sort((i,l)=>i.text>l.text?1:-1)}function KN(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Gse(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function NS(e,t){if(!e.value.readyData)return[];const n=new Set;return t.forEach(r=>{e.value.components[r].options.forEach(({value:i})=>{n.add(i)})}),[...n].map(r=>({id:r,info:e.value.getSourceInfo(r)})).sort((r,a)=>r.info.label.localeCompare(a.info.label))}function jse(e,t){return NS(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function Yse(e,t){return NS(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function ZN(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function Z3(e,t){return ZN(e,t)?" ":""}function Wse(e){var n;const t=(n=e==null?void 0:e[RC])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function JN(e,t,n){return n.reduce((r,a)=>{var A;const i=e.getSourceInfo(a),s=[...Object.keys(e.components).filter(h=>e.components[h].options.find(v=>v.value===a))],c=Object.values(e.components).some(({stateConsistency:h})=>h[a]===!1),f=(((A=t[a])==null?void 0:A.options)??[]).sort((h,v)=>h.label>v.label?1:-1).map(h=>h.label);return r[a]={id:a,title:c?"Inconsistent value":i.label,type:i.type,nonHomogenous:i.kind==="axis"&&Wse(i.annotations),isSubsetFilter:i.isSubsetFilter,isDiscreteFilter:i.isDiscreteFilter,availableBasketIds:new Set(s),uniqueValues:f,axesToBeFixed:i.kind==="column"?i.axesToBeFixed:[],axesToBeFixedInfo:i.kind==="column"?i.axesToBeFixed.reduce((h,v)=>{const g=e.getSourceInfo(v);return h[v]={title:g.label,type:g.type,idx:i.axesToBeFixedIndexes[v]},h},{}):{}},r},{})}const LS=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
28
28
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.00011 2.93933L8.00011 6.93933L12.0001 2.93933L13.0608 3.99999L9.06077 7.99999L13.0608 12L12.0001 13.0607L8.00011 9.06065L4.00011 13.0607L2.93945 12L6.93945 7.99999L2.93945 3.99999L4.00011 2.93933Z" fill="#110529"/>
|
|
29
29
|
</svg>`;function qN(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function Xse(e,t){if(e!=null)return t(e)}function Kse(e,t,n){let r;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(this,a)},t)}}function Zse(e){let t=0n,n;return async function(...r){const a=++t;try{await n}catch{}if(t!==a)return{ok:!1};const i=e(...r);return n=i,{ok:!0,value:await i}}}const n5=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};function VC(e,t,n,r){d.onMounted(()=>{var a;return(a=d.unref(e))==null?void 0:a.addEventListener(t,n,r)}),d.onUnmounted(()=>{var a;return(a=d.unref(e))==null?void 0:a.removeEventListener(t,n,r)})}function*Jse(e,t){for(const n of e)yield t(n)}function qse(e){const t=[];for(const n of e)t.push(n);return t}const $S=new Map;function eue(e){return $S.has(e)||$S.set(e,d.ref(localStorage.getItem(e))),qN($S.get(e),"...")}function tue(e,t){t==null?localStorage.removeItem(e):localStorage.setItem(e,t)}function nue(e){const t=eue(e);return d.watch(t,n=>tue(e,n)),t}const rue=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{qse(Jse(rue.values(),t=>t(e.matches?"dark":"light")))});const aue=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.ref(aue),nue("theme");const iue=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
30
30
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 4.5H4.5L4.5 19.5H19.5V4.5ZM4.5 3C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3H4.5Z" fill="#110529"/>
|