@milaboratories/graph-maker 1.1.122 → 1.1.123
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 +2 -2
- package/dist/graph-maker.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/graph-maker.umd.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __p += '`),Oa&&(Dt+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+Dt+`return __p
|
|
27
|
-
}`;var Wr=OS(function(){return na(Te,xn+"return "+Dt).apply(n,Ve)});if(Wr.source=Dt,Ch(Wr))throw Wr;return Wr}function LP(w){return xi(w).toLowerCase()}function o6(w){return xi(w).toUpperCase()}function RP(w,_,N){if(w=xi(w),w&&(N||_===n))return $t(w);if(!w||!(_=Jo(_)))return w;var re=ci(w),ve=ci(_),Te=_a(re,ve),Ve=ul(re,ve)+1;return Su(re,Te,Ve).join("")}function l6(w,_,N){if(w=xi(w),w&&(N||_===n))return w.slice(0,r0(w)+1);if(!w||!(_=Jo(_)))return w;var re=ci(w),ve=ul(re,ci(_))+1;return Su(re,0,ve).join("")}function zS(w,_,N){if(w=xi(w),w&&(N||_===n))return w.replace(ta,"");if(!w||!(_=Jo(_)))return w;var re=ci(w),ve=_a(re,ci(_));return Su(re,ve).join("")}function VP(w,_){var N=le,re=Q;if(nl(_)){var ve="separator"in _?_.separator:ve;N="length"in _?Nr(_.length):N,re="omission"in _?Jo(_.omission):re}w=xi(w);var Te=w.length;if(Id(w)){var Ve=ci(w);Te=Ve.length}if(N>=Te)return w;var Fe=N-ef(re);if(Fe<1)return re;var Je=Ve?Su(Ve,0,Fe).join(""):w.slice(0,Fe);if(ve===n)return Je+re;if(Ve&&(Fe+=Je.length-Fe),K3(ve)){if(w.slice(Fe).search(ve)){var _t,Et=Je;for(ve.global||(ve=os(ve.source,xi(On.exec(ve))+"g")),ve.lastIndex=0;_t=ve.exec(Et);)var Dt=_t.index;Je=Je.slice(0,Dt===n?Fe:Dt)}}else if(w.indexOf(Jo(ve),Fe)!=Fe){var Kt=Je.lastIndexOf(ve);Kt>-1&&(Je=Je.slice(0,Kt))}return Je+re}function NP(w){return w=xi(w),w&&lo.test(w)?w.replace(Er,aA):w}var zP=G(function(w,_,N){return w+(N?" ":"")+_.toUpperCase()}),s6=V("toUpperCase");function u6(w,_,N){return w=xi(w),_=N?n:_,_===n?pp(w)?sh(w):Zc(w):w.match(_)||[]}var OS=Sr(function(w,_){try{return Jn(w,n,_)}catch(N){return Ch(N)?N:new Qn(N)}}),OP=Gd(function(w,_){return gr(_,function(N){N=Tu(N),Ol(w,N,Rt(w[N],w))}),w});function FP(w){var _=w==null?0:w.length,N=Kn();return w=_?Fr(w,function(re){if(typeof re[1]!="function")throw new Ms(o);return[N(re[0]),re[1]]}):[],Sr(function(re){for(var ve=-1;++ve<_;){var Te=w[ve];if(Jn(Te[0],this,re))return Jn(Te[1],this,re)}})}function QP(w){return u0(Ko(w,h))}function c6(w){return function(){return w}}function jP(w,_){return w==null||w!==w?_:w}var UP=Le(),f6=Le(!0);function wf(w){return w}function d6(w){return lf(typeof w=="function"?w:Ko(w,h))}function GP(w){return au(Ko(w,h))}function YP(w,_){return qa(w,Ko(_,h))}var WP=Sr(function(w,_){return function(N){return Al(N,w,_)}}),XP=Sr(function(w,_){return function(N){return Al(w,N,_)}});function A6(w,_,N){var re=lu(_),ve=dl(_,re);N==null&&!(nl(_)&&(ve.length||!re.length))&&(N=_,_=w,w=this,ve=dl(_,lu(_)));var Te=!(nl(N)&&"chain"in N)||!!N.chain,Ve=b0(w);return gr(ve,function(Fe){var Je=_[Fe];w[Fe]=Je,Ve&&(w.prototype[Fe]=function(){var _t=this.__chain__;if(Te||_t){var Et=w(this.__wrapped__),Dt=Et.__actions__=yo(this.__actions__);return Dt.push({func:Je,args:arguments,thisArg:w}),Et.__chain__=_t,Et}return Je.apply(w,sl([this.value()],arguments))})}),w}function KP(){return va._===this&&(va._=v1),this}function h6(){}function FS(w){return w=Nr(w),Sr(function(_){return sf(_,w)})}var p6=Wt(Fr),ZP=Wt(_s),JP=Wt(Kc);function vg(w){return sn(w)?q(Tu(w)):bn(w)}function mg(w){return function(_){return w==null?n:po(w,_)}}var qP=wo(),eH=wo(!0);function v6(){return[]}function m6(){return!1}function tH(){return{}}function nH(){return""}function rH(){return!0}function QS(w,_){if(w=Nr(w),w<1||w>ae)return[];var N=fe,re=Ki(w,fe);_=Kn(_),w-=fe;for(var ve=et(re,_);++N<w;)_(N);return ve}function aH(w){return Qr(w)?Fr(w,Tu):Ha(w)?[w]:yo(r2(xi(w)))}function iH(w){var _=++yc;return xi(w)+_}var oH=Mt(function(w,_){return w+_},0),lH=Pa("ceil"),sH=Mt(function(w,_){return w/_},1),uH=Pa("floor");function cH(w){return w&&w.length?Hs(w,wf,Js):n}function fH(w,_){return w&&w.length?Hs(w,Kn(_,2),Js):n}function dH(w){return A1(w,wf)}function AH(w,_){return A1(w,Kn(_,2))}function hH(w){return w&&w.length?Hs(w,wf,Tl):n}function pH(w,_){return w&&w.length?Hs(w,Kn(_,2),Tl):n}var vH=Mt(function(w,_){return w*_},1),mH=Pa("round"),gH=Mt(function(w,_){return w-_},0);function yH(w){return w&&w.length?at(w,wf):0}function x2(w,_){return w&&w.length?at(w,Kn(_,2)):0}return xe.after=Qe,xe.ary=dt,xe.assign=gf,xe.assignIn=b2,xe.assignInWith=Ip,xe.assignWith=Eh,xe.at=kS,xe.before=Lt,xe.bind=Rt,xe.bindAll=OP,xe.bindKey=It,xe.castArray=bS,xe.chain=d2,xe.chunk=dA,xe.compact=a2,xe.concat=hf,xe.cond=FP,xe.conforms=QP,xe.constant=c6,xe.countBy=tg,xe.create=Lp,xe.curry=rn,xe.curryRight=wn,xe.debounce=Sn,xe.defaults=Rp,xe.defaultsDeep=q3,xe.defer=vl,xe.delay=it,xe.difference=ca,xe.differenceBy=tl,xe.differenceWith=no,xe.drop=Gl,xe.dropRight=ac,xe.dropRightWhile=vh,xe.dropWhile=Yl,xe.fill=Sp,xe.filter=v2,xe.flatMap=rg,xe.flatMapDeep=F9,xe.flatMapDepth=ag,xe.flatten=i2,xe.flattenDeep=v0,xe.flattenDepth=ou,xe.flip=Ue,xe.flow=UP,xe.flowRight=f6,xe.fromPairs=o2,xe.functions=HS,xe.functionsIn=hP,xe.groupBy=y0,xe.initial=l2,xe.intersection=Xm,xe.intersectionBy=pf,xe.intersectionWith=mh,xe.invert=DS,xe.invertBy=pP,xe.invokeMap=Y3,xe.iteratee=d6,xe.keyBy=Q9,xe.keys=lu,xe.keysIn=yf,xe.map=gA,xe.mapKeys=vP,xe.mapValues=mP,xe.matches=GP,xe.matchesProperty=YP,xe.memoize=lt,xe.merge=gP,xe.mergeWith=$S,xe.method=WP,xe.methodOf=XP,xe.mixin=A6,xe.negate=Ft,xe.nthArg=FS,xe.omit=yP,xe.omitBy=wP,xe.once=Hn,xe.orderBy=j9,xe.over=p6,xe.overArgs=er,xe.overEvery=ZP,xe.overSome=JP,xe.partial=hn,xe.partialRight=tr,xe.partition=Pp,xe.pick=bP,xe.pickBy=IS,xe.property=vg,xe.propertyOf=mg,xe.pull=Ep,xe.pullAll=m0,xe.pullAllBy=gs,xe.pullAllWith=k1,xe.pullAt=No,xe.range=qP,xe.rangeRight=eH,xe.rearg=Xl,xe.reject=p,xe.remove=Wl,xe.rest=ei,xe.reverse=gh,xe.sampleSize=T,xe.set=t6,xe.setWith=n6,xe.shuffle=L,xe.slice=pA,xe.sortBy=we,xe.sortedUniq=u2,xe.sortedUniqBy=vA,xe.split=DP,xe.spread=M1,xe.tail=R3,xe.take=V3,xe.takeRight=Bp,xe.takeRightWhile=c2,xe.takeWhile=L9,xe.tap=O9,xe.throttle=U9,xe.thru=dd,xe.toArray=w2,xe.toPairs=a4,xe.toPairsIn=LS,xe.toPath=aH,xe.toPlainObject=Z9,xe.transform=cg,xe.unary=qM,xe.union=R9,xe.unionBy=N3,xe.unionWith=z3,xe.uniq=g0,xe.uniqBy=V9,xe.uniqWith=wh,xe.unset=fg,xe.unzip=f2,xe.unzipWith=zo,xe.update=CP,xe.updateWith=RS,xe.values=S2,xe.valuesIn=SP,xe.without=N9,xe.words=u6,xe.wrap=eP,xe.xor=O3,xe.xorBy=qm,xe.xorWith=z9,xe.zip=F3,xe.zipObject=Q3,xe.zipObjectDeep=j3,xe.zipWith=mf,xe.entries=a4,xe.entriesIn=LS,xe.extend=b2,xe.extendWith=Ip,A6(xe,xe),xe.add=oH,xe.attempt=OS,xe.camelCase=NS,xe.capitalize=dg,xe.ceil=lH,xe.clamp=VS,xe.clone=CS,xe.cloneDeep=nP,xe.cloneDeepWith=SS,xe.cloneWith=tP,xe.conformsTo=G9,xe.deburr=Ag,xe.defaultTo=jP,xe.divide=sH,xe.endsWith=i4,xe.eq=P1,xe.escape=hg,xe.escapeRegExp=pg,xe.every=ng,xe.find=kp,xe.findIndex=p0,xe.findKey=J9,xe.findLast=G3,xe.findLastIndex=AA,xe.findLastKey=e4,xe.floor=uH,xe.forEach=Mp,xe.forEachRight=bh,xe.forIn=ug,xe.forInRight=MS,xe.forOwn=t4,xe.forOwnRight=PS,xe.get=q9,xe.gt=rP,xe.gte=aP,xe.has=n4,xe.hasIn=C2,xe.head=hA,xe.identity=wf,xe.includes=m2,xe.indexOf=T1,xe.inRange=xP,xe.invoke=r4,xe.isArguments=Hp,xe.isArray=Qr,xe.isArrayBuffer=iP,xe.isArrayLike=Is,xe.isArrayLikeObject=ml,xe.isBoolean=ig,xe.isBuffer=w0,xe.isDate=oP,xe.isElement=lP,xe.isEmpty=xS,xe.isEqual=sP,xe.isEqualWith=X3,xe.isError=Ch,xe.isFinite=Y9,xe.isFunction=b0,xe.isInteger=og,xe.isLength=lg,xe.isMap=W9,xe.isMatch=ES,xe.isMatchWith=BS,xe.isNaN=Sh,xe.isNative=uP,xe.isNil=fP,xe.isNull=cP,xe.isNumber=y2,xe.isObject=nl,xe.isObjectLike=gl,xe.isPlainObject=Dp,xe.isRegExp=K3,xe.isSafeInteger=dP,xe.isSet=X9,xe.isString=Z3,xe.isSymbol=Ha,xe.isTypedArray=xh,xe.isUndefined=J3,xe.isWeakMap=sg,xe.isWeakSet=_S,xe.join=vf,xe.kebabCase=BP,xe.last=ku,xe.lastIndexOf=xp,xe.lowerCase=r6,xe.lowerFirst=a6,xe.lt=TS,xe.lte=K9,xe.max=cH,xe.maxBy=fH,xe.mean=dH,xe.meanBy=AH,xe.min=hH,xe.minBy=pH,xe.stubArray=v6,xe.stubFalse=m6,xe.stubObject=tH,xe.stubString=nH,xe.stubTrue=rH,xe.multiply=vH,xe.nth=s2,xe.noConflict=KP,xe.noop=h6,xe.now=Ie,xe.pad=_P,xe.padEnd=TP,xe.padStart=rJ,xe.parseInt=kP,xe.random=EP,xe.reduce=W3,xe.reduceRight=g2,xe.repeat=MP,xe.replace=PP,xe.result=e6,xe.round=mH,xe.runInContext=Ye,xe.sample=m,xe.size=W,xe.snakeCase=HP,xe.some=ne,xe.sortedIndex=Km,xe.sortedIndexBy=Zm,xe.sortedIndexOf=Kd,xe.sortedLastIndex=yh,xe.sortedLastIndexBy=Jm,xe.sortedLastIndexOf=Zd,xe.startCase=$P,xe.startsWith=i6,xe.subtract=gH,xe.sum=yH,xe.sumBy=x2,xe.template=IP,xe.times=QS,xe.toFinite=yA,xe.toInteger=Nr,xe.toLength=$p,xe.toLower=LP,xe.toNumber=Jd,xe.toSafeInteger=AP,xe.toString=xi,xe.toUpper=o6,xe.trim=RP,xe.trimEnd=l6,xe.trimStart=zS,xe.truncate=VP,xe.unescape=NP,xe.uniqueId=iH,xe.upperCase=zP,xe.upperFirst=s6,xe.each=Mp,xe.eachRight=bh,xe.first=hA,A6(xe,function(){var w={};return Ma(xe,function(_,N){la.call(xe.prototype,N)||(w[N]=_)}),w}(),{chain:!1}),xe.VERSION=r,gr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){xe[w].placeholder=xe}),gr(["drop","take"],function(w,_){cr.prototype[w]=function(N){N=N===n?1:ii(Nr(N),0);var re=this.__filtered__&&!_?new cr(this):this.clone();return re.__filtered__?re.__takeCount__=Ki(N,re.__takeCount__):re.__views__.push({size:Ki(N,fe),type:w+(re.__dir__<0?"Right":"")}),re},cr.prototype[w+"Right"]=function(N){return this.reverse()[w](N).reverse()}}),gr(["filter","map","takeWhile"],function(w,_){var N=_+1,re=N==Y||N==te;cr.prototype[w]=function(ve){var Te=this.clone();return Te.__iteratees__.push({iteratee:Kn(ve,3),type:N}),Te.__filtered__=Te.__filtered__||re,Te}}),gr(["head","last"],function(w,_){var N="take"+(_?"Right":"");cr.prototype[w]=function(){return this[N](1).value()[0]}}),gr(["initial","tail"],function(w,_){var N="drop"+(_?"":"Right");cr.prototype[w]=function(){return this.__filtered__?new cr(this):this[N](1)}}),cr.prototype.compact=function(){return this.filter(wf)},cr.prototype.find=function(w){return this.filter(w).head()},cr.prototype.findLast=function(w){return this.reverse().find(w)},cr.prototype.invokeMap=Sr(function(w,_){return typeof w=="function"?new cr(this):this.map(function(N){return Al(N,w,_)})}),cr.prototype.reject=function(w){return this.filter(Ft(Kn(w)))},cr.prototype.slice=function(w,_){w=Nr(w);var N=this;return N.__filtered__&&(w>0||_<0)?new cr(N):(w<0?N=N.takeRight(-w):w&&(N=N.drop(w)),_!==n&&(_=Nr(_),N=_<0?N.dropRight(-_):N.take(_-w)),N)},cr.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},cr.prototype.toArray=function(){return this.take(fe)},Ma(cr.prototype,function(w,_){var N=/^(?:filter|find|map|reject)|While$/.test(_),re=/^(?:head|last)$/.test(_),ve=xe[re?"take"+(_=="last"?"Right":""):_],Te=re||/^find/.test(_);ve&&(xe.prototype[_]=function(){var Ve=this.__wrapped__,Fe=re?[1]:arguments,Je=Ve instanceof cr,_t=Fe[0],Et=Je||Qr(Ve),Dt=function(ya){var Oa=ve.apply(xe,sl([ya],Fe));return re&&Kt?Oa[0]:Oa};Et&&N&&typeof _t=="function"&&_t.length!=1&&(Je=Et=!1);var Kt=this.__chain__,xn=!!this.__actions__.length,ir=Te&&!Kt,Wr=Je&&!xn;if(!Te&&Et){Ve=Wr?Ve:new cr(this);var hr=w.apply(Ve,Fe);return hr.__actions__.push({func:dd,args:[Dt],thisArg:n}),new fo(hr,Kt)}return ir&&Wr?w.apply(this,Fe):(hr=this.thru(Dt),ir?re?hr.value()[0]:hr.value():hr)})}),gr(["pop","push","shift","sort","splice","unshift"],function(w){var _=ls[w],N=/^(?: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 _.apply(Qr(Te)?Te:[],ve)}return this[N](function(Ve){return _.apply(Qr(Ve)?Ve:[],ve)})}}),Ma(cr.prototype,function(w,_){var N=xe[_];if(N){var re=N.name+"";la.call(Xf,re)||(Xf[re]=[]),Xf[re].push({name:_,func:N})}}),Xf[Ze(n,E).name]=[{name:"wrapper",func:n}],cr.prototype.clone=Bn,cr.prototype.reverse=Ys,cr.prototype.value=Ja,xe.prototype.at=A2,xe.prototype.chain=mA,xe.prototype.commit=h2,xe.prototype.next=p2,xe.prototype.plant=Tp,xe.prototype.reverse=eg,xe.prototype.toJSON=xe.prototype.valueOf=xe.prototype.value=U3,xe.prototype.first=xe.prototype.head,Rl&&(xe.prototype[Rl]=_p),xe},mc=a0();Re?((Re.exports=mc)._=mc,he._=mc):va._=mc}).call(M4)}(hw,hw.exports);var sI=hw.exports;const Zn=Xp(sI);var Ene="pl7.app/axisNature",uI="pl7.app/label",Bne="pl7.app/columnAsAxis/name",_ne="pl7.app/columnAsAxis/domain",F2="pl7.app/isSubset",Ng="pl7.app/isDiscreteFilter",Tne="pl7.app/discreteValues",kne="pl7.app/graph/axis/highCardinality",Mne="pl7.app/graph/isVirtual",cI="pl7.app/isLinkerColumn",Lr=class rw{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return I1(this)}static fromAxisSpec(t){return new rw({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>rw.fromAxisSpec(n))}copy(){return new rw({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 rw(t)}},Q2=class ste{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return I1(this)}static fromPojo(t){return new ste(t)}};function kn(e){return e!==null&&e.kind==="column"}function pw(e){return e!==null&&e.kind==="axis"}function en(e){const t=JSON.parse(e);if(t.kind==="column")return Q2.fromPojo(t);if(t.kind==="axis")return Lr.fromPojo(t);throw Error("wrong column or axis object")}async function Pne(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((o,s,c)=>(o[String(s)]=String(i[c]),o),{})}return null}async function Hne(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 Dne(e,t,n,r,a,i,o=!0){var s,c,f,A;const h=en(t);if(kn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);if(!v)return;const g=v.axesSpec.map(E=>Lr.fromAxisSpec(E).toCanonicalString()),C=[],b={};o&&g.forEach((E,k)=>{!a.has(E)&&!i.has(E)&&(C.push(E),b[E]=k)});const B={kind:"column",name:v.name,label:n??await Kr(e,t,[]),type:v.valueType,spec:v,annotations:v.annotations,isSubsetFilter:((s=v.annotations)==null?void 0:s[F2])==="true",isDiscreteFilter:v.valueType==="String"||((c=v.annotations)==null?void 0:c[Ng])==="true",axesToBeFixed:C,axesToBeFixedIndexes:b};r.set(h.toCanonicalString(),B);for(const E of v.axesSpec){const P=Lr.fromAxisSpec(E).toCanonicalString();if(r.has(P))continue;const I=hI(E),$={kind:"axis",name:E.name,label:await Kr(e,P,[t]),type:E.type,mustBeConsumed:I,dividable:!1,spec:E,annotations:E.annotations,isSubsetFilter:((f=E.annotations)==null?void 0:f[F2])==="true",isDiscreteFilter:E.type==="String"||((A=E.annotations)==null?void 0:A[Ng])==="true",parentSources:[t]};r.set(P,$)}}}function fI(e){const t=en(e),{name:n,type:r}=t;return kn(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 vw(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function $ne(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 o=[];return(r==null?void 0:r.max)!==void 0&&o.push({type:"bySingleColumnV2",column:pw(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&&o.push({type:"bySingleColumnV2",column:pw(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}),o}else if(n==="subset")return[{type:"bySingleColumnV2",column:pw(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}];return typeof a>"u"?[]:[{type:"bySingleColumnV2",column:pw(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function tv(e){const t=[];for(const n of e)t.push(...$ne(n));return t}function dI(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[Bne],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[_ne];return I1({name:s,domain:c})}const i=e.name,o=e.domain;return I1({name:i,domain:o})}async function AI(e,t,n){var r;for(const a of n){const i=en(a);if(kn(i)){const o=await e.pFrameProvider.getColumnSpecById(i),s=((r=o==null?void 0:o.axesSpec)!=null?r:[]).find(c=>Lr.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}var Ine="pl7.app/label";async function wa(e,t,n){const r=en(t);if(kn(r))return;async function a(c){const f=await AI(e,c,n);return f?dI(f):null}const i=await e.pFrameProvider.getColumnsFull([],!1,void 0,[Ine]),o=await a(r),s=i.find(({spec:c})=>c&&c.axesSpec.length===1&&dI(c.axesSpec[0])===o);return s?new Q2({name:s.columnId,type:s.spec.valueType}):void 0}async function Kr(e,t,n){var r,a;const i=en(t),o=await wa(e,t,n);let s;if(kn(i)?s=await e.pFrameProvider.getColumnSpecById(o??i):s=o?await e.pFrameProvider.getColumnSpecById(o):await AI(e,i,n),!s)return"";const c=(a=(r=s.annotations)==null?void 0:r[uI])!=null?a:s.name;return e.labelsModifier(s.name,c)}function hI(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[Ene])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function nv(e){var t,n;return((t=e.annotations)==null?void 0:t[F2])==="true"||((n=e.annotations)==null?void 0:n[Ng])==="true",!0}function Lne(e){var t,n;return!e.name.includes("metadata")&&((t=e.annotations)==null?void 0:t[Mne])!=="true"&&((n=e.annotations)==null?void 0:n[F2])!=="true"}async function rv(e){var t;const n=await e.pFrameProvider.getColumns([],!1,void 0,void 0,{[cI]:"true"}),r={};for(const a of n){const i=await e.pFrameProvider.getColumnSpecById(a),o=(t=i==null?void 0:i.axesSpec)!=null?t:[];if(i&&o.length){const[s,c]=o,f=Lr.fromAxisSpec(s).toCanonicalString(),A=Lr.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 j2(e,t){const n=new Set;for(const r of t){const a=en(r);if(kn(a)){const i=await e.pFrameProvider.getColumnSpecById(a);if(!i)continue;i.axesSpec.forEach(o=>{n.add(Lr.fromAxisSpec(o).toCanonicalString())})}}return n}function Rne(e,t,n){const r={},a=new Set([t]);let i=[t];for(;i.length;){const o=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)||(o.add(f),a.add(f))}i=[...o]}return null}function Vne(e,t,n){const r=[...t].map(i=>Rne(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 jc(e,t,n,r,a){const i=en(r);if(!kn(i))return[];const o=await e.pFrameProvider.getColumnSpecById(i);if(!o)return[];const s=o.axesSpec.map(f=>Lr.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 U2=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)),o=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let s=vw(n);return i.forEach(c=>{s=this.deleteSelected(e,t,s,c)}),o.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 vw(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,o=new Set;for(const f of this.dataInputs)for(const A of t.components[f].selectorStates){const h=en(A.selectedSource);if(kn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);v&&v.axesSpec.forEach(g=>o.add(Lr.fromAxisSpec(g).toCanonicalString()))}}const s=new Set;let c=[...o];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)&&!o.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 Dne(e,g,n[g],i,o,s,v)}return i}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>fI(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 o=t.components[a].selectorStates.map(s=>en(s.selectedSource));return r.concat(o)},[]),!1);return Sne(n,r=>r.spec).reduce((r,a)=>{const i=new Q2({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[],r=Lne){var a,i;const o=this.createEmptyComponentsGuide(t),s=this.getConsumedOptionsSet(t),c=new Set(this.ignoredOptionIdNames),f=new Set(n),A=await rv(e),h=await this.getLabelsMap(e,t),v=await this.getSelectedSourcesInfo(e,t,h,A),g=new Map,C={...this.simpleComponentControllers,...this.filterComponentControllers},b=new Set;for(const[$,z]of Object.entries(C)){const F=await z.getOptions(e,t,h,s,A,r,c,f);this.dataInputs.includes($)||F.options.forEach(Z=>{b.add(Z.value)});for(const[Z,ee]of F.optionsInfo)g.set(Z,ee);o[$]=F}const B=$=>{const z=g.get($);z&&z.kind==="axis"&&(z.mustBeConsumed=!0);const F=v.get($);F&&F.kind==="axis"&&(F.mustBeConsumed=!0)},E=await this.getMustBeConsumedAxes(e,t);for(const $ of E)B($);if(this.dontAllowUnfilteredHighCardinality){const $=F=>{var Z;return((Z=F==null?void 0:F.annotations)==null?void 0:Z[kne])==="true"},z=(i=(a=t.components.filters)==null?void 0:a.selectorStates.reduce((F,Z)=>{const ee=v.get(Z.selectedSource);return(ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter($).forEach(Q=>F.add(Lr.fromAxisSpec(Q).toCanonicalString())),(ee==null?void 0:ee.kind)==="axis"&&$(ee.spec)&&F.add(Lr.fromAxisSpec(ee.spec).toCanonicalString()),F},new Set))!=null?i:new Set;this.dataInputs.forEach(F=>{for(const{selectedSource:Z}of t.components[F].selectorStates){const ee=v.get(Z);if((ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter($).forEach(Q=>{const j=Lr.fromAxisSpec(Q).toCanonicalString();!b.has(j)&&!z.has(j)&&b.add(j),z.has(j)||B(j)}),(ee==null?void 0:ee.kind)==="axis"&&$(ee.spec)){const le=Lr.fromAxisSpec(ee.spec).toCanonicalString();b.has(le)||b.add(le),z.has(le)||B(le)}}})}const k=new Set;for(const{selectorStates:$}of Object.values(t.components))for(const{selectedSource:z}of $){const F=v.get(z);F&&F.kind==="column"&&F.axesToBeFixed.forEach(Z=>{k.add(Z)})}const P=await this.isConsistent(e,t,A),I=$=>{var z,F,Z;const ee=(z=en($).toCanonicalString())!=null?z:$;return(Z=(F=g.get(ee))!=null?F:v.get(ee))!=null?Z:fI($)};return{components:o,getSourceInfo:I,freeOptionsSet:b,axesToBeFixedSet:k,readyData:this.readyDataInputs(t),ready:this.readyForPlotBuilding(e,t,P,b,I),consistent:P}}async getUniqueSourceValuesWithLabels(e,t,n){var r;const a=t.getSourceInfo(n),i=(r=a.annotations)==null?void 0:r[Tne],o=i?JSON.parse(i).map(s=>String(s)):null;if(a.kind==="axis"){const s=en(n),c=a.parentSources.map(en),f=await wa(e,n,a.parentSources),A=o??await e.pFrameProvider.getAxisUniqueValues(s,c),h=await Hne(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 wa(e,n,[]),f=await e.pFrameProvider.getColumnUniqueValues(s),A=await Pne(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 o=!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})){o=!0;break}}if(o)break}return this.requiredComponents.every(s=>t.components[s].selectorStates.length>0)&&!i&&!o}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},pI=class ute{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:o=[],annotations:s={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...ute.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...o],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=vw(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=vw(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 o(c){const f=Lr.fromAxisSpec(c);return i.has(f.toCanonicalString())}const s=await Promise.all(a.selectorStates.map(async({selectedSource:c})=>{const f=en(c);if(kn(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=>o(v)):this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?A.axesSpec.some(v=>o(v)):i.size===0||A.axesSpec.some(v=>o(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=>kn(c)),o=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{o.add(Lr.fromAxisSpec(f).toCanonicalString())})}),o}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const o=n.components[i].selectorStates.map(s=>en(s.selectedSource));return a.push(...o),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const o of a)if(kn(o)){const s=await t.pFrameProvider.getColumnSpecById(o);(r=s==null?void 0:s.axesSpec)==null||r.forEach(c=>{const f=Lr.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n,r){var a,i,o,s,c,f,A;const h=this.getParentSelectedSources(t,n),v=new Set,g=new Set,C=new Set,b=new Map;for(const E of h)if(kn(E)){const k=await t.pFrameProvider.getColumnSpecById(E);for(const P of(a=k==null?void 0:k.axesSpec)!=null?a:[]){const $=Lr.fromAxisSpec(P).toCanonicalString();if(v.has($))continue;v.add($),g.add($);const z=hI(P);b.set($,{kind:"axis",name:P.name,label:await Kr(t,$,[E.toCanonicalString()]),type:P.type,mustBeConsumed:z,dividable:!1,spec:P,annotations:P.annotations,isSubsetFilter:((i=P.annotations)==null?void 0:i[F2])==="true",isDiscreteFilter:P.type==="String"||((o=P.annotations)==null?void 0:o[Ng])==="true",parentSources:[E.toCanonicalString()]})}}let B=[...v];for(;B.length;){const E=[];for(const k of B)if(r[k]){const P=Object.keys(r[k]);for(const I of P)if(!v.has(I)){E.push(I),v.add(I),C.add(I);const{spec:$,id:z}=r[k][I];for(const F of $.axesSpec){const Z=Lr.fromAxisSpec(F).toCanonicalString();b.has(Z)||b.set(Z,{kind:"axis",name:F.name,label:(c=(s=F.annotations)==null?void 0:s[uI])!=null?c:"",type:F.type,mustBeConsumed:!1,dividable:!1,spec:F,annotations:F.annotations,isSubsetFilter:((f=F.annotations)==null?void 0:f[F2])==="true",isDiscreteFilter:F.type==="String"||((A=F.annotations)==null?void 0:A[Ng])==="true",parentSources:[z.toCanonicalString()]})}}}B=E}return{allowedAxes:v,parentAxes:g,linkerAxes:C,optionsInfo:b}}async getOptions(t,n,r,a,i,o,s=new Set,c=new Set){var f,A,h,v,g,C,b,B;const E=this.settings.multipleSelectors,k=this.settings.required,P=await this.checkStateConsistency(t,n,i);if(this.dependsOn.length&&this.dependsOn.some(j=>n.components[j].selectorStates.length===0))return{multipleSelectors:E,required:k,stateConsistency:P,options:[],optionsInfo:new Map};if(this.strictlyDependsOnParents&&!this.settings.isDataComponent&&this.parentComponents.some(j=>n.components[j].selectorStates.length===0))return{multipleSelectors:E,required:k,stateConsistency:P,options:[],optionsInfo:new Map};const I=this.getParentSelectedSources(t,n),$=(await t.pFrameProvider.getColumns([],!1,this.allowedTypes,void 0,this.annotations)).filter(j=>!a.has(j.toCanonicalString())),{allowedAxes:z,parentAxes:F,linkerAxes:Z,optionsInfo:ee}=await this.getAllowedAxes(t,n,i),le=n.components[this.componentName],Q=[];if(this.settings.axesAllowed)for(const j of F){const U=en(j),Y=ee.get(U.toCanonicalString()),X=this.allowedTypes.includes(Y.spec.type),te=Object.entries(this.annotations).every(([Ce,De])=>{var ke;return((ke=Y.spec.annotations)==null?void 0:ke[Ce])===De}),pe=this.checkSourceBySpec?this.checkSourceBySpec(Y.spec,n):!0,ae=!this.settings.homogeneous||!(Y!=null&&Y.mustBeConsumed),ge=!a.has(j),me=s.has(U.name)||c.has(U.toCanonicalString()),fe=le.selectorStates.some(Ce=>Ce.selectedSource===j);X&&te&&pe&&ae&&ge&&!me&&!fe&&Q.push({value:j})}if(this.settings.columnsAllowed){const j=!this.settings.columnsWithExtraAxesAllowed&&this.strictlyDependsOnParents;for(const U of $){const Y=U.toCanonicalString(),X=en(Y),te=await t.pFrameProvider.getColumnSpecById(X),pe=((f=te==null?void 0:te.annotations)==null?void 0:f[cI])==="true";if(!te||xne(te)||pe||this.checkSourceBySpec&&!this.checkSourceBySpec(te,n)||this.settings.isDataComponent&&!o(te)||j&&((A=te.axesSpec)!=null&&A.some(De=>!z.has(Lr.fromAxisSpec(De).toCanonicalString())))||I.length&&!((h=te.axesSpec)!=null&&h.some(De=>z.has(Lr.fromAxisSpec(De).toCanonicalString()))))continue;const ae=(g=(v=te==null?void 0:te.axesSpec)==null?void 0:v.map(De=>Lr.fromAxisSpec(De).toCanonicalString()))!=null?g:[],ge=[],me={};if(this.settings.columnsWithExtraAxesAllowed&&ae.forEach((De,ke)=>{z.has(De)||(ge.push(De),me[De]=ke)}),te){const De=(C=r[Y])!=null?C:await Kr(t,U.toCanonicalString(),[]),ke={kind:"column",name:te.name,label:De,type:te.valueType,spec:te,annotations:te.annotations,isSubsetFilter:((b=te.annotations)==null?void 0:b[F2])==="true",isDiscreteFilter:te.valueType==="String"||((B=te.annotations)==null?void 0:B[Ng])==="true",axesToBeFixed:ge,axesToBeFixedIndexes:me};ee.set(X.toCanonicalString(),ke)}const fe=s.has(X.name)||c.has(X.toCanonicalString()),Ce=n.components[this.componentName].selectorStates.some(De=>De.selectedSource===Y);!fe&&!Ce&&Q.push({value:Y})}}return{multipleSelectors:E,required:k,stateConsistency:P,options:Q,optionsInfo:ee}}};pI.DefaultSettings={isDataComponent:!1,multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,columnsWithExtraAxesAllowed:!0,dimensionConsumer:!1};var En=pI,Nne={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 mw(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 o=n.map(s=>{const c=s.toCanonicalString();return kn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var zne=class extends U2{constructor(){super({valueSize:new En({componentName:"valueSize",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueColor"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),valueColor:new En({componentName:"valueColor",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueSize"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new En({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),y:new En({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tooltipContent:new En({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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=>Lr.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,o=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("Value column is not valid");const s=en(i),c=en(o);if(!s||!c||!kn(s)&&!kn(c))throw Error("Value column is not valid");const f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=await rv(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=tv(h),g=h.map(U=>en(U.selectedSource)).filter(kn),C=[s,c].filter(kn),b=C.map(U=>U.toCanonicalString()),B=await j2(e,b),E=[t.components.facetBy,t.components.x,t.components.y,t.components.tooltipContent],k=[],P=C.map(()=>[]),I=[],$=[];for(const{selectedSource:U,fixedAxes:Y}of h)$.push(...await jc(e,A,B,U,Y)),P.push((Y??[]).map(({axisIdx:X,axisValue:te})=>({idx:X,value:te})));for(const U of E)for(const{selectedSource:Y,fixedAxes:X}of U.selectorStates){k.push(en(Y)),I.push((X??[]).map(({axisIdx:pe,axisValue:ae})=>({idx:pe,value:ae}))),$.push(...await jc(e,A,B,Y,X));const te=await wa(e,Y,b);te&&k.push(te)}const z=await e.pFrameProvider.getTableOuterJoin([...C,...$,...g],k,v,!0,P,I);k.forEach(U=>{const Y=U.toCanonicalString();f.values[Y]=kn(U)?z.columnsData[Y]:z.axesData[Y]}),f.values[i]=kn(s)?z.columnsData[i]:z.axesData[i],f.values[o]=kn(c)?z.columnsData[o]:z.axesData[o];const F=t.components.x.selectorStates.map(U=>U.selectedSource),Z=F.join(", "),ee=await Promise.all(F.map(async U=>{var Y,X;return(X=(Y=await wa(e,U,b))==null?void 0:Y.toCanonicalString())!=null?X:U}));f.values[Z]=mw(z,F),f.values.xLabels=mw(z,ee);const le=t.components.y.selectorStates.map(U=>U.selectedSource),Q=le.join(", "),j=await Promise.all(le.map(async U=>{var Y,X;return(X=(Y=await wa(e,U,b))==null?void 0:Y.toCanonicalString())!=null?X:U}));return f.values[Q]=mw(z,le),f.values.yLabels=mw(z,j),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 o=en(a),s=en(i);if(!kn(o)&&!kn(s))throw Error("Value column is not valid");const c=[o,s].filter(kn).map(P=>P.toCanonicalString()),f={type:"column",value:a,label:await Kr(e,a,[])},A={type:"column",value:i,label:await Kr(e,i,[])},v=t.components.x.selectorStates.map(({selectedSource:P})=>P).join(", "),C=t.components.y.selectorStates.map(({selectedSource:P})=>P).join(", "),b=await Promise.all(t.components.facetBy.selectorStates.map(async P=>{var I,$;return{type:"column",value:($=(I=await wa(e,P.selectedSource,c))==null?void 0:I.toCanonicalString())!=null?$:P.selectedSource}})),B=(await Promise.all(t.components.x.selectorStates.map(P=>Kr(e,P.selectedSource,c)))).join(", "),E=(await Promise.all(t.components.y.selectorStates.map(P=>Kr(e,P.selectedSource,c)))).join(", "),k=await Promise.all(t.components.tooltipContent.selectorStates.map(async P=>{var I,$;const z=P.selectedSource;return{type:"column",label:await Kr(e,z,c)||z,value:z,valueLabels:($=(I=await wa(e,z,c))==null?void 0:I.toCanonicalString())!=null?$:z}}));return{type:"bubble",valueColor:f,valueSize:A,xColumn:{type:"column",value:v,label:B,valueLabels:"xLabels"},yColumn:{type:"column",value:C,label:E,valueLabels:"yLabels"},facetBy:b,tooltips:{show:!0,content:k}}}},One={type:"histogram",components:{value:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]}},dividedAxes:{}},Fne=class extends U2{constructor(){super({value:new En({componentName:"value",allowedTypes:["Int","Long","Double","Float"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),grouping:new En({componentName:"grouping",allowedTypes:["String","Int","Long"],parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,multipleSelectors:!1}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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(!kn(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=I1(t.components))!=null?r:"",values:{}},s=await rv(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=tv(c),A=c.map(P=>en(P.selectedSource)).filter(kn),h=[a],v=await j2(e,h),g=[t.components.facetBy,t.components.grouping],C=[],b=[[]],B=[],E=[];for(const{selectedSource:P,fixedAxes:I}of c)E.push(...await jc(e,s,v,P,I)),E.push(...await jc(e,s,v,P,I)),b.push((I??[]).map(({axisIdx:$,axisValue:z})=>({idx:$,value:z})));for(const P of g)for(const{selectedSource:I,fixedAxes:$}of P.selectorStates){C.push(en(I)),B.push(($??[]).map(({axisIdx:F,axisValue:Z})=>({idx:F,value:Z}))),E.push(...await jc(e,s,v,I,$));const z=await wa(e,I,h);z&&C.push(z)}const k=await e.pFrameProvider.getTableOuterJoin([i,...E,...A],C,f,!0,b,B);return C.forEach(P=>{const I=P.toCanonicalString();o.values[I]=kn(P)?k.columnsData[I]:k.axesData[I]}),o.values[i.toCanonicalString()]=k.columnsData[i.toCanonicalString()],o}async createChartSettings(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(!kn(i))throw Error("Value column is not valid");const o=[a],s={type:"column",value:a,label:await Kr(e,a,[])},c=await Promise.all(t.components.facetBy.selectorStates.map(async A=>{var h,v;return{type:"column",value:(v=(h=await wa(e,A.selectedSource,o))==null?void 0:h.toCanonicalString())!=null?v:A.selectedSource}}));let f;if(t.components.grouping.selectorStates.length){const{selectedSource:A}=t.components.grouping.selectorStates[0];f={type:"column",value:A,label:await Kr(e,A,o),valueLabels:(r=await wa(e,A,o))==null?void 0:r.toCanonicalString()}}return{type:"histogram",valueColumn:s,facetBy:c,grouping:f}}},Qne={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:{}},jne=class extends U2{constructor(){super({y:new En({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{isDataComponent:!0}}),primaryGrouping:new En({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new En({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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||!kn(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=I1(t.components))!=null?n:"",values:{}},o=await rv(e),s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=tv(s),f=s.map(k=>en(k.selectedSource)).filter(kn),A=[r],h=await j2(e,A),v=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],g=[],C=[[]],b=[],B=[];for(const{selectedSource:k,fixedAxes:P}of s)B.push(...await jc(e,o,h,k,P)),C.push((P??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})));for(const k of v)for(const{selectedSource:P,fixedAxes:I}of k.selectorStates){g.push(en(P)),b.push((I??[]).map(({axisIdx:z,axisValue:F})=>({idx:z,value:F}))),B.push(...await jc(e,o,h,P,I));const $=await wa(e,P,A);$&&g.push($)}const E=await e.pFrameProvider.getTableOuterJoin([a,...B,...f],g,c,!0,C,b);return g.forEach(k=>{const P=k.toCanonicalString();i.values[P]=kn(k)?E.columnsData[P]:E.axesData[P]}),i.values[a.toCanonicalString()]=E.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=en(a);if(!a||!kn(i))throw Error("Y column is not valid");const o={type:"column",value:a,label:await Kr(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 Kr(e,h,s),valueLabels:(n=await wa(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 Kr(e,h,s),valueLabels:(r=await wa(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 wa(e,h.selectedSource,s))==null?void 0:v.toCanonicalString())!=null?g:h.selectedSource,label:await Kr(e,h.selectedSource,s)}}));return{type:"discrete",y:o,primaryGrouping:c,secondaryGrouping:f,facetBy:A}}},Une={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 sE(e){return e?"kind"in e&&e.kind==="PColumn"?e.valueType==="String":e.type==="String":!0}function gw(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 o=n.map(s=>{const c=s.toCanonicalString();return kn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var Gne=class extends U2{constructor(){super({value:new En({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new En({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),y:new En({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!0}}),yGroupBy:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),tooltipContent:new En({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotationsX:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Lr.fromAxisSpec(e).toCanonicalString())}}),annotationsY:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Lr.fromAxisSpec(e).toCanonicalString())}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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=>Lr.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(!kn(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=I1(t.components))!=null?r:"",values:{}},s=await rv(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=tv(c),A=c.map(Q=>en(Q.selectedSource)).filter(kn),h=[a],v=await j2(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],C=[],b=[[]],B=[],E=[];for(const{selectedSource:Q,fixedAxes:j}of c)E.push(...await jc(e,s,v,Q,j)),b.push((j??[]).map(({axisIdx:U,axisValue:Y})=>({idx:U,value:Y})));for(const Q of g)for(const{selectedSource:j,fixedAxes:U}of Q.selectorStates){C.push(en(j)),B.push((U??[]).map(({axisIdx:X,axisValue:te})=>({idx:X,value:te}))),E.push(...await jc(e,s,v,j,U));const Y=await wa(e,j,h);Y&&C.push(Y)}const k=await e.pFrameProvider.getTableOuterJoin([i,...E,...A],C,f,!0,b,B);C.forEach(Q=>{const j=Q.toCanonicalString();o.values[j]=kn(Q)?k.columnsData[j]:k.axesData[j]}),o.values[i.toCanonicalString()]=k.columnsData[i.toCanonicalString()];const P=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(Q=>Q.selectedSource),I=P.join(", ");o.values[I]=gw(k,P);const $=t.components.x.selectorStates.map(Q=>Q.selectedSource),z=await Promise.all($.map(async Q=>{var j,U;return(U=(j=await wa(e,Q,h))==null?void 0:j.toCanonicalString())!=null?U:Q}));o.values.xLabelsKey=gw(k,z);const F=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(Q=>Q.selectedSource),Z=F.join(", ");o.values[Z]=gw(k,F);const ee=t.components.y.selectorStates.map(Q=>Q.selectedSource),le=await Promise.all(ee.map(async Q=>{var j,U;return(U=(j=await wa(e,Q,h))==null?void 0:j.toCanonicalString())!=null?U:Q}));return o.values.yLabelsKey=gw(k,le),o}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(!kn(a))throw Error("Value column is not valid");const i=[r],o={type:"column",value:r,label:await Kr(e,r,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:I})=>en(I)).map(I=>I.toCanonicalString()).join(", "),A=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:I})=>en(I)).map(I=>I.toCanonicalString()).join(", "),h=await Promise.all(t.components.facetBy.selectorStates.map(async I=>{var $,z;return{type:"column",value:(z=($=await wa(e,I.selectedSource,i))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),v=await Promise.all(t.components.xGroupBy.selectorStates.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I.selectedSource,i),value:I.selectedSource,valueLabels:(z=($=await wa(e,I.selectedSource,i))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),g=await Promise.all(t.components.yGroupBy.selectorStates.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I.selectedSource,i),value:I.selectedSource,valueLabels:(z=($=await wa(e,I.selectedSource,i))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),C=await e.pFrameProvider.getColumnSpecById(a),b=await Promise.all(t.components.annotationsX.selectorStates.map(async I=>{var $,z;const F=I.selectedSource,Z=en(F),ee=kn(Z)?await e.pFrameProvider.getColumnSpecById(Z):(z=($=C==null?void 0:C.axesSpec)==null?void 0:$.find(le=>Lr.fromAxisSpec(le).toCanonicalString()===F))!=null?z:null;return{axis:"x",valueColumn:{type:"column",value:F,label:await Kr(e,F,i)},type:sE(ee)?"discrete":"continuous"}})),B=await Promise.all(t.components.annotationsY.selectorStates.map(async I=>{var $,z;const F=I.selectedSource,Z=en(F),ee=kn(Z)?await e.pFrameProvider.getColumnSpecById(Z):(z=($=C==null?void 0:C.axesSpec)==null?void 0:$.find(le=>Lr.fromAxisSpec(le).toCanonicalString()===F))!=null?z:null;return{axis:"y",valueColumn:{type:"column",value:F,label:await Kr(e,F,i)},type:sE(ee)?"discrete":"continuous"}})),E=(await Promise.all(t.components.x.selectorStates.map(I=>Kr(e,I.selectedSource,i)))).join(", "),k=(await Promise.all(t.components.y.selectorStates.map(I=>Kr(e,I.selectedSource,i)))).join(", "),P=await Promise.all(t.components.tooltipContent.selectorStates.map(async I=>{var $,z;const F=I.selectedSource;return{type:"column",label:await Kr(e,F,i)||F,value:F,valueLabels:(z=($=await wa(e,F,i))==null?void 0:$.toCanonicalString())!=null?z:F}}));return{type:"heatmap",valueColumn:o,valueType:sE(C)?"discrete":"continuous",xColumn:{type:"column",value:c,label:E,valueLabels:"xLabelsKey"},yColumn:{type:"column",value:A,label:k,valueLabels:"yLabelsKey"},facetBy:h,xGroupBy:v,yGroupBy:g,annotations:[...b,...B],tooltips:{show:!0,content:P}}}},Yne={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:{}},Wne=class extends U2{constructor(){super({x:new En({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new En({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new En({componentName:"grouping",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),shape:new En({componentName:"shape",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),size:new En({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),tooltipContent:new En({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 En({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new En({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:nv}),tabBy:new En({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new En({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:nv})}),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 o=a.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.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,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=en(i),c=en(o),f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=await rv(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=tv(h),g=h.map(Z=>en(Z.selectedSource)).filter(kn),C=[s,c].filter(kn).map(Z=>Z.toCanonicalString());if(C.length===0)throw Error("One of X and Y should be a column");const b=await j2(e,C),B=[s,c,...g],E=[],k=[[],[]],P=[],I=[];for(const{selectedSource:Z,fixedAxes:ee}of h)I.push(...await jc(e,A,b,Z,ee)),k.push((ee??[]).map(({axisIdx:le,axisValue:Q})=>({idx:le,value:Q})));const $=[t.components.grouping,t.components.size,t.components.shape,t.components.tooltipContent,t.components.facetBy,t.components.label,t.components.highlight];for(const Z of $)for(const{selectedSource:ee,fixedAxes:le}of Z.selectorStates){E.push(en(ee)),P.push((le??[]).map(({axisIdx:j,axisValue:U})=>({idx:j,value:U}))),I.push(...await jc(e,A,b,ee,le));const Q=await wa(e,ee,C);Q&&E.push(Q)}const z=await e.pFrameProvider.getTableOuterJoin([s,c,...I,...g],E,v,!1,k,P);[...B,...E].forEach(Z=>{const ee=Z.toCanonicalString();f.values[ee]=kn(Z)?z.columnsData[ee]:z.axesData[ee]}),f.values.key=f.values[Object.keys(f.values)[0]].map((Z,ee)=>ee);const F=t.components.highlight.selectorStates.map(({selectedSource:Z})=>en(Z));return F.length&&(f.values.highlight=f.values.key.map((Z,ee)=>{let le=!1;for(let Q=0;Q<F.length;Q++){const{selectedSource:j,selectedFilterValue:U,selectedFilterRange:Y,type:X}=t.components.highlight.selectorStates[Q],te=(kn(F[Q])?z.columnsData[j]:z.axesData[j])[ee];if(U!==void 0&&(le=le||te===U),Y!==void 0&&(Y.min!==void 0||Y.max!==void 0)&&typeof te=="number"){let pe=!0;Y.min!==void 0&&(pe=pe&&te>=Y.min),Y.max!==void 0&&(pe=pe&&te<=Y.max),le=le||pe}X==="subset"&&(le=le||te!=null)}return le?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?en(o):null,f=s?en(s):null;if(!o||!s||!c||!f||!kn(c)&&!kn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(kn).map(I=>I.toCanonicalString()),h={type:"column",value:o,label:await Kr(e,o,A)},v={type:"column",value:s,label:await Kr(e,s,A)},g={type:"column",value:"key"},C=await Promise.all(t.components.facetBy.selectorStates.map(async I=>{var $,z;return{type:"column",value:(z=($=await wa(e,I.selectedSource,A))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),b=Zn.uniq([...t.components.grouping.selectorStates.map(I=>I.selectedSource),...t.components.size.selectorStates.map(I=>I.selectedSource),...t.components.shape.selectorStates.map(I=>I.selectedSource)]),B=await Promise.all(b.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I,A)||I,value:I,valueLabels:(z=($=await wa(e,I,A))==null?void 0:$.toCanonicalString())!=null?z:I}})),E=await Promise.all(t.components.tooltipContent.selectorStates.map(async I=>{var $,z;const F=I.selectedSource;return{type:"column",label:await Kr(e,F,A)||F,value:F,valueLabels:(z=($=await wa(e,F,A))==null?void 0:$.toCanonicalString())!=null?z:F}}));let k;if(t.components.label.selectorStates.length){const I=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:I,label:await Kr(e,I,A),valueLabels:(i=(a=await wa(e,I,A))==null?void 0:a.toCanonicalString())!=null?i:I}}let P;return t.components.highlight.selectorStates.length&&(P={type:"column",value:"highlight"}),{type:"scatterplot",x:h,y:v,keyColumn:g,facetBy:C,grouping:B,label:k,highlight:P,tooltips:{show:!0,content:E}}}},Xne={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:[]},size:{type:"simple",selectorStates:[]}},dividedAxes:{}},Kne=class extends U2{constructor(){super({x:new En({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new En({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new En({componentName:"grouping",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new En({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 En({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}}),size:new En({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new En({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:nv})}),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 o=a.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.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,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=en(i),c=en(o);if(!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=await rv(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=tv(h),g=h.map(ee=>en(ee.selectedSource)).filter(kn),C=[s,c].filter(kn).map(ee=>ee.toCanonicalString());if(C.length===0)throw Error("One of X and Y should be a column");const b=await j2(e,C),B=[s,c,...g],E=[],k=[[],[]],P=[],I=[];for(const{selectedSource:ee,fixedAxes:le}of h)I.push(...await jc(e,A,b,ee,le)),I.push(...await jc(e,A,b,ee,le)),k.push((le??[]).map(({axisIdx:Q,axisValue:j})=>({idx:Q,value:j})));const $=[t.components.grouping,t.components.facetBy,t.components.tooltipContent,t.components.label,t.components.highlight,t.components.size];for(const ee of $)for(const{selectedSource:le,fixedAxes:Q}of ee.selectorStates){E.push(en(le)),P.push((Q??[]).map(({axisIdx:U,axisValue:Y})=>({idx:U,value:Y}))),I.push(...await jc(e,A,b,le,Q));const j=await wa(e,le,C);j&&E.push(j)}const z=await e.pFrameProvider.getTableOuterJoin([s,c,...I,...g],E,v,!1,k,P);[...B,...E].forEach(ee=>{const le=ee.toCanonicalString();f.values[le]=kn(ee)?z.columnsData[le]:z.axesData[le]});const F=Object.keys(z.axesData);f.values.key=f.values[Object.keys(f.values)[0]].map((ee,le)=>JSON.stringify(F.reduce((Q,j)=>(Q[j]=z.axesData[j][le],Q),{})));const Z=t.components.highlight.selectorStates.map(({selectedSource:ee})=>en(ee));return Z.length&&(f.values.highlight=f.values.key.map((ee,le)=>{let Q=!1;for(let j=0;j<Z.length;j++){const{selectedSource:U,selectedFilterValue:Y,selectedFilterRange:X,type:te}=t.components.highlight.selectorStates[j],pe=(kn(Z[j])?z.columnsData[U]:z.axesData[U])[le];if(Y!==void 0&&(Q=Q||pe===Y),X!==void 0&&(X.min!==void 0||X.max!==void 0)&&typeof pe=="number"){let ae=!0;X.min!==void 0&&(ae=ae&&pe>=X.min),X.max!==void 0&&(ae=ae&&pe<=X.max),Q=Q||ae}te==="subset"&&(Q=Q||pe!=null)}return Q?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?en(o):null,f=s?en(s):null;if(!o||!s||!c||!f||!kn(c)&&!kn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(kn).map(I=>I.toCanonicalString()),h={type:"column",value:o,label:await Kr(e,o,A)},v={type:"column",value:s,label:await Kr(e,s,A)},g={type:"column",value:"key"},C=await Promise.all(t.components.facetBy.selectorStates.map(async I=>{var $,z;return{type:"column",value:(z=($=await wa(e,I.selectedSource,A))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),b=Zn.uniq([...t.components.grouping.selectorStates.map(I=>I.selectedSource),...t.components.size.selectorStates.map(I=>I.selectedSource)]),B=await Promise.all(b.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I,A)||I,value:I,valueLabels:(z=($=await wa(e,I,A))==null?void 0:$.toCanonicalString())!=null?z:I}})),E=await Promise.all(t.components.tooltipContent.selectorStates.map(async I=>{var $,z;const F=I.selectedSource;return{type:"column",label:await Kr(e,F,A)||F,value:F,valueLabels:(z=($=await wa(e,F,A))==null?void 0:$.toCanonicalString())!=null?z:F}}));let k;if(t.components.label.selectorStates.length){const I=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:I,label:await Kr(e,I,A),valueLabels:(i=(a=await wa(e,I,A))==null?void 0:a.toCanonicalString())!=null?i:I}}let P;return t.components.highlight.selectorStates.length&&(P={type:"column",value:"highlight"}),{type:"scatterplot-umap",x:h,y:v,keyColumn:g,facetBy:C,grouping:B,label:k,highlight:P,tooltips:{show:!0,content:E}}}},uE="pl7.app/dendrogram/nodeId",cE="id",Zne={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:{}},Jne=class extends U2{constructor(){super({value:new En({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{isDataComponent:!0,columnsAllowed:!0,required:!0,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),height:new En({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 En({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tableContent:new En({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0,columnsWithExtraAxesAllowed:!1}}),nodeShape:new En({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeSize:new En({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeColor:new En({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),lineColor:new En({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapForSequence:new En({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),heatmapAnnotation:new En({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapAxis:new En({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapGroup:new En({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tabBy:new En({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})}),this.ignoredOptionIdNames=[uE]}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||!kn(i))throw Error("Value column is not valid");const o=await rv(e),s=tv([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),c=[...t.components.filters.selectorStates.map(P=>en(P.selectedSource)),...t.components.tabBy.selectorStates.map(P=>en(P.selectedSource))].filter(kn),f=[a],A=await j2(e,f),h=[],v=[],g=[],C=[t.components.value],b=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],B={};for(const P of C)for(const{selectedSource:I,fixedAxes:$}of P.selectorStates){g.push(...await jc(e,o,A,I,$));const z=await wa(e,I,f),F=z??en(I);B[F.toCanonicalString()]=I,h.push(F)}for(const P of b)for(const{selectedSource:I,fixedAxes:$}of P.selectorStates){g.push(...await jc(e,o,A,I,$));const z=await wa(e,I,f),F=z??en(I);B[I]=F.toCanonicalString(),v.push(F)}const E=await e.pFrameProvider.getTableOuterJoin([...h,...c,...g],v,s,!1);for(const P of[...h,...v]){const I=P.toCanonicalString(),$=B[P.toCanonicalString()];r[$]={data:kn(P)?E.columnsData[I]:E.axesData[I],spec:kn(P)?E.columnSpecs[I]:E.axesSpecs[I],label:await Kr(e,$,f)}}const k=Object.keys(E.axesData).find(P=>{var I;return((I=en(P))==null?void 0:I.name)===uE});return k?r[cE]={data:E.axesData[k],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,o=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,s=en(i),c=o?en(o):null;if(!i||!kn(s))throw Error("Value column is not valid");const f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=tv(A),v=A.map(z=>en(z.selectedSource)).filter(kn),g=[s,c].filter(kn).map(z=>z.toCanonicalString()),C=[],b=[],B=[],E=[],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],P=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const z of k)for(const{selectedSource:F,fixedAxes:Z}of z.selectorStates){C.push(en(F)),B.push((Z??[]).map(({axisIdx:le,axisValue:Q})=>({idx:le,value:Q})));const ee=await wa(e,F,g);ee&&C.push(ee)}A.forEach(({fixedAxes:z})=>{B.push((z??[]).map(({axisIdx:F,axisValue:Z})=>({idx:F,value:Z})))});for(const z of P)for(const{selectedSource:F,fixedAxes:Z}of z.selectorStates){b.push(en(F)),E.push((Z??[]).map(({axisIdx:le,axisValue:Q})=>({idx:le,value:Q})));const ee=await wa(e,F,g);ee&&b.push(ee)}const I=await e.pFrameProvider.getTableOuterJoin([...C,...v],b,h,!1,B,E);[...C,...b].forEach(z=>{const F=z.toCanonicalString(),Z=kn(z)?I.columnsData[F]:I.axesData[F];f.values[F]=[],f.values[F]=Z});const $=Object.keys(I.axesData).find(z=>{var F;return((F=en(z))==null?void 0:F.name)===uE});return $?f.values[cE]=I.axesData[$]: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,o=en(i);if(!i||!kn(o))throw Error("Data column is not valid");const s=[i],c={type:"column",value:cE},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 B=t.components.nodeColor.selectorStates[0].selectedSource;v.nodeColor={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}if(t.components.nodeShape.selectorStates.length){const B=t.components.nodeShape.selectorStates[0].selectedSource;v.nodeShape={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}if(t.components.nodeSize.selectorStates.length){const B=t.components.nodeSize.selectorStates[0].selectedSource;v.nodeSize={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}if(t.components.lineColor.selectorStates.length){const B=t.components.lineColor.selectorStates[0].selectedSource;v.lineColor={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}let g,C,b;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const B=t.components.heatmapAnnotation.selectorStates[0].selectedSource;g={type:"column",value:B,label:await Kr(e,B,[]),valueLabels:(r=await wa(e,B,[]))==null?void 0:r.toCanonicalString()};const E=t.components.heatmapAxis.selectorStates[0].selectedSource;C={type:"column",value:E,label:await Kr(e,E,[B]),valueLabels:(a=await wa(e,E,[B]))==null?void 0:a.toCanonicalString()},b=await Promise.all(t.components.heatmapGroup.selectorStates.map(async k=>{var P;return{type:"column",value:k.selectedSource,label:await Kr(e,k.selectedSource,[B]),valueLabels:(P=await wa(e,k.selectedSource,[B]))==null?void 0:P.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const B=t.components.heatmapForSequence.selectorStates[0].selectedSource;g={type:"column",value:B,label:await Kr(e,B,[])}}return{type:"dendro",id:c,parentId:f,height:A,labels:h,aes:v,heatmapAnnotation:g,heatmapAxis:C,heatmapGroup:b}}},yw=1e6;function zg(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 av=!1,Akt=100,qne=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(o=>o.spec.type==="axis"),i=r.filter(o=>o.spec.type==="column");return{axesData:a.reduce((o,s)=>{const c=Lr.fromAxisSpec(s.spec.spec);return o[c.toCanonicalString()]=zg(c.type,s.data),o},{}),data:i.length?zg(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:yw};try{const a=Date.now(),i=await this.pframeDriver.getUniqueValues(this.pframeHandle,r);return i.overflow&&console.warn(`More than ${yw} values for ${e.name} column`),zg(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(kn),a=await Promise.all(r.map(s=>this.getColumnSpecById(s))),i=e.toCanonicalString(),o=r.filter((s,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(A=>Lr.fromAxisSpec(A).toCanonicalString()===i)});if(o.length===0)return[];try{const s=Date.now(),c=await Promise.all(o.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:yw})));return c.forEach((f,A)=>{f.overflow&&console.warn(`More than ${yw} values for ${o[A].name} column`)}),Zn.uniq(Zn.flatten(c.map(f=>zg(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 o=e.filter(kn),s=t.filter(kn),c={src:{type:"outer",primary:{type:r?"inner":"full",entries:o.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,C)=>{const b=Lr.fromAxisSpec(C.spec.spec);return g[b.toCanonicalString()]=zg(b.type,C.data),g},{}),columnsData:v.reduce((g,C)=>{const b=C.spec.spec,B=new Q2({name:C.spec.id,type:b.valueType});return g[B.toCanonicalString()]=zg(B.type,C.data),g},{}),columnSpecs:v.reduce((g,C)=>{const b=C.spec.spec,B=new Q2({name:C.spec.id,type:b.valueType});return g[B.toCanonicalString()]=b,g},{}),axesSpecs:h.reduce((g,C)=>{const b=C.spec.spec,B=Lr.fromAxisSpec(b);return g[B.toCanonicalString()]=b,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=>Lr.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(kn(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(o=>Lr.fromAxisSpec(o).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},o=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 Q2({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(),o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:c,spec:f})=>{s.push(new Q2({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}}},ere=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new qne(e,t)}},vI={controllers:{discrete:new jne,scatterplot:new Wne,"scatterplot-umap":new Kne,heatmap:new Gne,dendro:new Jne,histogram:new Fne,bubble:new zne},initialStates:{discrete:Qne,scatterplot:Yne,"scatterplot-umap":Xne,heatmap:Une,dendro:Zne,histogram:One,bubble:Nne}};function ww(e){return vI.controllers[e]}function mI(e){return vI.initialStates[e]}const mr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},tre={},nre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rre(e,t){return d.openBlock(),d.createElementBlock("svg",nre,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 are=mr(tre,[["render",rre]]),ire={},ore={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",ore,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 sre=mr(ire,[["render",lre]]),ure={},cre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fre(e,t){return d.openBlock(),d.createElementBlock("svg",cre,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 dre=mr(ure,[["render",fre]]),Are={},hre={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",hre,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 vre=mr(Are,[["render",pre]]),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="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 wre=mr(mre,[["render",yre]]),bre={},Cre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sre(e,t){return d.openBlock(),d.createElementBlock("svg",Cre,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 xre=mr(bre,[["render",Sre]]),Ere={},Bre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _re(e,t){return d.openBlock(),d.createElementBlock("svg",Bre,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 Tre=mr(Ere,[["render",_re]]),kre={},Mre={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",Mre,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 Hre=mr(kre,[["render",Pre]]),Dre={},$re={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",$re,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 gI=mr(Dre,[["render",Ire]]),Lre={},Rre={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",Rre,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 yI=mr(Lre,[["render",Vre]]),Nre={},zre={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",zre,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 Fre=mr(Nre,[["render",Ore]]),Qre={},jre={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",jre,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 Gre=mr(Qre,[["render",Ure]]),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="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 wI=mr(Yre,[["render",Xre]]),Kre={},Zre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};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:"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 qre=mr(Kre,[["render",Jre]]),eae={},tae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nae(e,t){return d.openBlock(),d.createElementBlock("svg",tae,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 bI=mr(eae,[["render",nae]]),rae={},aae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iae(e,t){return d.openBlock(),d.createElementBlock("svg",aae,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 oae=mr(rae,[["render",iae]]),lae={},sae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uae(e,t){return d.openBlock(),d.createElementBlock("svg",sae,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 cae=mr(lae,[["render",uae]]),fae={},dae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aae(e,t){return d.openBlock(),d.createElementBlock("svg",dae,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 hae=mr(fae,[["render",Aae]]),pae={},vae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mae(e,t){return d.openBlock(),d.createElementBlock("svg",vae,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 CI=mr(pae,[["render",mae]]),gae={},yae={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function wae(e,t){return d.openBlock(),d.createElementBlock("svg",yae,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 bae=mr(gae,[["render",wae]]),Og=[{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"}],iv="#FFFFFF",pi="#110529";Og.reduce((e,t)=>(e[t.color]=t,e),{});const W4=Og.slice(0,-3).map(e=>e.color),Cae=W4.filter((e,t)=>t%3===0),Sae=W4.filter((e,t)=>t%3===1),xae=W4.filter((e,t)=>t%3===2),Eae=W4.filter((e,t)=>t%3!==2),Bae=W4,_ae=["#FFF680","#53D788","#36739D","#4A005C"],Tae=["#FFF680","#F77E5B","#902B83","#2B125C"],kae=["#DFFADC","#74CFD1","#635AC1","#611347"],Mae=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],Pae=["#FFEA80","#F07A76","#7535A4","#003752"],Hae=["#FFF780","#6CEA90","#6C90F0","#942AAE"],Dae=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],$ae=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],Iae=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],Lae=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],Rae=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],SI=["light","bright","dark","paired","triadic"],Vae=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],Nae=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function fE(e){return SI.includes(e)}const Ui={...{light:{title:"Light",colors:Cae},bright:{title:"Bright",colors:Sae},dark:{title:"Dark",colors:xae},paired:{title:"Paired",colors:Eae},triadic:{title:"Triadic",colors:Bae}},...{viridis:{title:"Viridis",colors:_ae},magma:{title:"Magma",colors:Tae},density:{title:"Density",colors:kae},salinity:{title:"Salinity",colors:Mae},sunset:{title:"Sunset",colors:Pae},perceptual_rainbow:{title:"Rainbow",colors:Hae}},...{spectrum:{title:"Spectrum",colors:Dae},teal_red:{title:"Teal-Red",colors:$ae},blue_red:{title:"Blue-Red",colors:Iae},lime_rose:{title:"Lime-Rose",colors:Lae},viridis_magma:{title:"Vir-Mag",colors:Rae}}},xI="light",ov="salinity",zae="salinity",X4=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],bw="#F0F0F0",DA="21",Fg=["solid","dashed","dotted","dotdash","longdash","twodash"],Cw="solid",Oae={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}},Fae={A:"#cc0100",C:"#0000cc",G:"#ffb300",T:"#027f00",U:"#027f00"},Qae={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 Qg(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dE(e){let t,n,r;e.length!==2?(t=Qg,n=(s,c)=>Qg(e(s),c),r=(s,c)=>e(s)-c):(t=e===Qg||e===jae?e:Uae,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 o(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:o,right:i}}function Uae(){return 0}function EI(e){return e===null?NaN:+e}function*Gae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const BI=dE(Qg).right;dE(EI).center;function Yae(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Wae(e,t){let n=0,r,a=0,i=0;for(let o of e)o!=null&&(o=+o)>=o&&(r=o-a,a+=r/++n,i+=r*(o-a));if(n>1)return i/(n-1)}function _I(e,t){const n=Wae(e);return n&&Math.sqrt(n)}function H0(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 TI extends Map{constructor(t,n=Zae){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(kI(this,t))}has(t){return super.has(kI(this,t))}set(t,n){return super.set(Xae(this,t),n)}delete(t){return super.delete(Kae(this,t))}}function kI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Xae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Kae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Zae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Jae(e){return e}function qae(e=Qg){if(e===Qg)return MI;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 MI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var eie=Array.prototype,tie=eie.slice;function AE(e){return()=>e}const nie=Math.sqrt(50),rie=Math.sqrt(10),aie=Math.sqrt(2);function Sw(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=nie?10:i>=rie?5:i>=aie?2:1;let s,c,f;return a<0?(f=Math.pow(10,-a)/o,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)*o,s=Math.round(e/f),c=Math.round(t/f),s*f<e&&++s,c*f>t&&--c),c<s&&.5<=n&&n<2?Sw(e,t,n*2):[s,c,f]}function xw(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?Sw(t,e,n):Sw(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let f=0;f<s;++f)c[f]=(i-f)/-o;else for(let f=0;f<s;++f)c[f]=(i-f)*o;else if(o<0)for(let f=0;f<s;++f)c[f]=(a+f)/-o;else for(let f=0;f<s;++f)c[f]=(a+f)*o;return c}function jg(e,t,n){return t=+t,e=+e,n=+n,Sw(e,t,n)[2]}function hE(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?jg(t,e,n):jg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function iie(e,t,n){let r;for(;;){const a=jg(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 oie(e){return Math.max(1,Math.ceil(Math.log(Yae(e))/Math.LN2)+1)}function PI(){var e=Jae,t=H0,n=oie;function r(a){Array.isArray(a)||(a=Array.from(a));var i,o=a.length,s,c,f=new Array(o);for(i=0;i<o;++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 P=v,I=+g;if(t===H0&&([h,v]=iie(h,v,I)),g=xw(h,v,I),g[0]<=h&&(c=jg(h,v,I)),g[g.length-1]>=v)if(P>=v&&t===H0){const $=jg(h,v,I);isFinite($)&&($>0?v=(Math.floor(v/$)+1)*$:$<0&&(v=(Math.ceil(v*-$)+1)/-$))}else g.pop()}for(var C=g.length,b=0,B=C;g[b]<=h;)++b;for(;g[B-1]>v;)--B;(b||B<C)&&(g=g.slice(b,B),C=B-b);var E=new Array(C+1),k;for(i=0;i<=C;++i)k=E[i]=[],k.x0=i>0?g[i-1]:h,k.x1=i<C?g[i]:v;if(isFinite(c)){if(c>0)for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=v&&E[Math.min(C,Math.floor((s-h)/c))].push(a[i]);else if(c<0){for(i=0;i<o;++i)if((s=f[i])!=null&&h<=s&&s<=v){const P=Math.floor((h-s)*c);E[Math.min(C,P+(g[P]<=s))].push(a[i])}}}else for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=v&&E[BI(g,s,0,C)].push(a[i]);return E}return r.value=function(a){return arguments.length?(e=typeof a=="function"?a:AE(a),r):e},r.domain=function(a){return arguments.length?(t=typeof a=="function"?a:AE([a[0],a[1]]),r):t},r.thresholds=function(a){return arguments.length?(n=typeof a=="function"?a:AE(Array.isArray(a)?tie.call(a):a),r):n},r}function Vh(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 Ew(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 HI(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?MI:qae(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)),C=Math.min(r,Math.floor(t+(c-f)*h/c+v));HI(e,t,g,C,a)}const i=e[t];let o=n,s=r;for(K4(e,n,t),a(e[r],i)>0&&K4(e,n,r);o<s;){for(K4(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?K4(e,n,s):(++s,K4(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function K4(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function DI(e,t,n){if(e=Float64Array.from(Gae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Ew(e);if(t>=1)return Vh(e);var r,a=(r-1)*t,i=Math.floor(a),o=Vh(HI(e,i).subarray(0,i+1)),s=Ew(e.subarray(i+1));return o+(s-o)*(a-i)}}function D0(e,t,n=EI){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),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function Vs(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 lie(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 lc(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 G2(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const $I=Symbol("implicit");function Qo(){var e=new TI,t=[],n=[],r=$I;function a(i){let o=e.get(i);if(o===void 0){if(r!==$I)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new TI;for(const o of i)e.has(o)||e.set(o,t.push(o)-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 Qo(t,n).unknown(r)},G2.apply(a,arguments),a}function Z4(){var e=Qo().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,f=0,A=.5;delete e.unknown;function h(){var v=t().length,g=a<r,C=g?a:r,b=g?r:a;i=(b-C)/Math.max(1,v-c+f*2),s&&(i=Math.floor(i)),C+=(b-C-i*(v-c))*A,o=i*(1-c),s&&(C=Math.round(C),o=Math.round(o));var B=lie(v).map(function(E){return C+i*E});return n(g?B.reverse():B)}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 o},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 Z4(t(),[r,a]).round(s).paddingInner(c).paddingOuter(f).align(A)},G2.apply(h(),arguments)}function pE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function II(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function J4(){}var q4=.7,Bw=1/q4,Ug="\\s*([+-]?\\d+)\\s*",ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sie=/^#([0-9a-f]{3,8})$/,uie=new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`),cie=new RegExp(`^rgb\\(${$A},${$A},${$A}\\)$`),fie=new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${ey}\\)$`),die=new RegExp(`^rgba\\(${$A},${$A},${$A},${ey}\\)$`),Aie=new RegExp(`^hsl\\(${ey},${$A},${$A}\\)$`),hie=new RegExp(`^hsla\\(${ey},${$A},${$A},${ey}\\)$`),LI={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};pE(J4,lv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:RI,formatHex:RI,formatHex8:pie,formatHsl:vie,formatRgb:VI,toString:VI});function RI(){return this.rgb().formatHex()}function pie(){return this.rgb().formatHex8()}function vie(){return QI(this).formatHsl()}function VI(){return this.rgb().formatRgb()}function lv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?NI(t):n===3?new gd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_w(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_w(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=uie.exec(e))?new gd(t[1],t[2],t[3],1):(t=cie.exec(e))?new gd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fie.exec(e))?_w(t[1],t[2],t[3],t[4]):(t=die.exec(e))?_w(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Aie.exec(e))?FI(t[1],t[2]/100,t[3]/100,1):(t=hie.exec(e))?FI(t[1],t[2]/100,t[3]/100,t[4]):LI.hasOwnProperty(e)?NI(LI[e]):e==="transparent"?new gd(NaN,NaN,NaN,0):null}function NI(e){return new gd(e>>16&255,e>>8&255,e&255,1)}function _w(e,t,n,r){return r<=0&&(e=t=n=NaN),new gd(e,t,n,r)}function mie(e){return e instanceof J4||(e=lv(e)),e?(e=e.rgb(),new gd(e.r,e.g,e.b,e.opacity)):new gd}function Gg(e,t,n,r){return arguments.length===1?mie(e):new gd(e,t,n,r??1)}function gd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pE(gd,Gg,II(J4,{brighter(e){return e=e==null?Bw:Math.pow(Bw,e),new gd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?q4:Math.pow(q4,e),new gd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gd(Y2(this.r),Y2(this.g),Y2(this.b),Tw(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:zI,formatHex:zI,formatHex8:gie,formatRgb:OI,toString:OI}));function zI(){return`#${W2(this.r)}${W2(this.g)}${W2(this.b)}`}function gie(){return`#${W2(this.r)}${W2(this.g)}${W2(this.b)}${W2((isNaN(this.opacity)?1:this.opacity)*255)}`}function OI(){const e=Tw(this.opacity);return`${e===1?"rgb(":"rgba("}${Y2(this.r)}, ${Y2(this.g)}, ${Y2(this.b)}${e===1?")":`, ${e})`}`}function Tw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Y2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function W2(e){return e=Y2(e),(e<16?"0":"")+e.toString(16)}function FI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $0(e,t,n,r)}function QI(e){if(e instanceof $0)return new $0(e.h,e.s,e.l,e.opacity);if(e instanceof J4||(e=lv(e)),!e)return new $0;if(e instanceof $0)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),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new $0(o,s,c,e.opacity)}function yie(e,t,n,r){return arguments.length===1?QI(e):new $0(e,t,n,r??1)}function $0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pE($0,yie,II(J4,{brighter(e){return e=e==null?Bw:Math.pow(Bw,e),new $0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?q4:Math.pow(q4,e),new $0(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 gd(vE(e>=240?e-240:e+120,a,r),vE(e,a,r),vE(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new $0(jI(this.h),kw(this.s),kw(this.l),Tw(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=Tw(this.opacity);return`${e===1?"hsl(":"hsla("}${jI(this.h)}, ${kw(this.s)*100}%, ${kw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jI(e){return e=(e||0)%360,e<0?e+360:e}function kw(e){return Math.max(0,Math.min(1,e||0))}function vE(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 mE=e=>()=>e;function wie(e,t){return function(n){return e+n*t}}function bie(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 Cie(e){return(e=+e)==1?UI:function(t,n){return n-t?bie(t,n,e):mE(isNaN(t)?n:t)}}function UI(e,t){var n=t-e;return n?wie(e,n):mE(isNaN(e)?t:e)}const Mw=function e(t){var n=Cie(t);function r(a,i){var o=n((a=Gg(a)).r,(i=Gg(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),f=UI(a.opacity,i.opacity);return function(A){return a.r=o(A),a.g=s(A),a.b=c(A),a.opacity=f(A),a+""}}return r.gamma=e,r}(1);function Sie(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 xie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Eie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=wE(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function Bie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function I0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _ie(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]=wE(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var gE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yE=new RegExp(gE.source,"g");function Tie(e){return function(){return e}}function kie(e){return function(t){return e(t)+""}}function GI(e,t){var n=gE.lastIndex=yE.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=gE.exec(e))&&(a=yE.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:I0(r,a)})),n=yE.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?kie(c[0].x):Tie(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 wE(e,t){var n=typeof t,r;return t==null||n==="boolean"?mE(t):(n==="number"?I0:n==="string"?(r=lv(t))?(t=r,Mw):GI:t instanceof lv?Mw:t instanceof Date?Bie:xie(t)?Sie:Array.isArray(t)?Eie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_ie:I0)(e,t)}function Mie(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var YI=180/Math.PI,bE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function WI(e,t,n,r,a,i){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(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,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*YI,skewX:Math.atan(c)*YI,scaleX:o,scaleY:s}}var Pw;function Pie(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?bE:WI(t.a,t.b,t.c,t.d,t.e,t.f)}function Hie(e){return e==null||(Pw||(Pw=document.createElementNS("http://www.w3.org/2000/svg","g")),Pw.setAttribute("transform",e),!(e=Pw.transform.baseVal.consolidate()))?bE:(e=e.matrix,WI(e.a,e.b,e.c,e.d,e.e,e.f))}function XI(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,A,h,v,g,C){if(f!==h||A!==v){var b=g.push("translate(",null,t,null,n);C.push({i:b-4,x:I0(f,h)},{i:b-2,x:I0(A,v)})}else(h||v)&&g.push("translate("+h+t+v+n)}function o(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:I0(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:I0(f,A)}):A&&h.push(a(h)+"skewX("+A+r)}function c(f,A,h,v,g,C){if(f!==h||A!==v){var b=g.push(a(g)+"scale(",null,",",null,")");C.push({i:b-4,x:I0(f,h)},{i:b-2,x:I0(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),o(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 C=-1,b=v.length,B;++C<b;)h[(B=v[C]).i]=B.x(g);return h.join("")}}}var Die=XI(Pie,"px, ","px)","deg)"),$ie=XI(Hie,", ",")",")"),Iie=1e-12;function KI(e){return((e=Math.exp(e))+1/e)/2}function Lie(e){return((e=Math.exp(e))-1/e)/2}function Rie(e){return((e=Math.exp(2*e))-1)/(e+1)}const Vie=function e(t,n,r){function a(i,o){var s=i[0],c=i[1],f=i[2],A=o[0],h=o[1],v=o[2],g=A-s,C=h-c,b=g*g+C*C,B,E;if(b<Iie)E=Math.log(v/f)/t,B=function(F){return[s+F*g,c+F*C,f*Math.exp(t*F*E)]};else{var k=Math.sqrt(b),P=(v*v-f*f+r*b)/(2*f*n*k),I=(v*v-f*f-r*b)/(2*v*n*k),$=Math.log(Math.sqrt(P*P+1)-P),z=Math.log(Math.sqrt(I*I+1)-I);E=(z-$)/t,B=function(F){var Z=F*E,ee=KI($),le=f/(n*k)*(ee*Rie(t*Z+$)-Lie($));return[s+le*g,c+le*C,f*ee/KI(t*Z+$)]}}return B.duration=E*1e3*t/Math.SQRT2,B}return a.rho=function(i){var o=Math.max(.001,+i),s=o*o,c=s*s;return e(o,s,c)},a}(Math.SQRT2,2,4);function Nie(e){return function(){return e}}function CE(e){return+e}var ZI=[0,1];function IA(e){return e}function SE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Nie(isNaN(t)?NaN:.5)}function zie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Oie(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=SE(a,r),i=n(o,i)):(r=SE(r,a),i=n(i,o)),function(s){return i(r(s))}}function Fie(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=SE(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=BI(e,s,1,r)-1;return i[c](a[c](s))}}function ty(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Hw(){var e=ZI,t=ZI,n=wE,r,a,i,o=IA,s,c,f;function A(){var v=Math.min(e.length,t.length);return o!==IA&&(o=zie(e[0],e[v-1])),s=v>2?Fie:Oie,c=f=null,h}function h(v){return v==null||isNaN(v=+v)?i:(c||(c=s(e.map(r),t,n)))(r(o(v)))}return h.invert=function(v){return o(a((f||(f=s(t,e.map(r),I0)))(v)))},h.domain=function(v){return arguments.length?(e=Array.from(v,CE),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=Mie,A()},h.clamp=function(v){return arguments.length?(o=v?!0:IA,A()):o!==IA},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 JI(){return Hw()(IA,IA)}function Qie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Dw(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 Yg(e){return e=Dw(Math.abs(e)),e?e[1]:NaN}function jie(e,t){return function(n,r){for(var a=n.length,i=[],o=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[o=(o+1)%e.length];return i.reverse().join(t)}}function Uie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Gie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ny(e){if(!(t=Gie.exec(e)))throw new Error("invalid format: "+e);var t;return new xE({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]})}ny.prototype=xE.prototype;function xE(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+""}xE.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 Yie(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 qI;function Wie(e,t){var n=Dw(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(qI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Dw(e,Math.max(0,t+i-1))[0]}function eL(e,t){var n=Dw(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 tL={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Qie,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)=>eL(e*100,t),r:eL,s:Wie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function nL(e){return e}var rL=Array.prototype.map,aL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xie(e){var t=e.grouping===void 0||e.thousands===void 0?nL:jie(rL.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?nL:Uie(rL.call(e.numerals,String)),o=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=ny(h);var v=h.fill,g=h.align,C=h.sign,b=h.symbol,B=h.zero,E=h.width,k=h.comma,P=h.precision,I=h.trim,$=h.type;$==="n"?(k=!0,$="g"):tL[$]||(P===void 0&&(P=12),I=!0,$="g"),(B||v==="0"&&g==="=")&&(B=!0,v="0",g="=");var z=b==="$"?n:b==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",F=b==="$"?r:/[%p]/.test($)?o:"",Z=tL[$],ee=/[defgprs%]/.test($);P=P===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function le(Q){var j=z,U=F,Y,X,te;if($==="c")U=Z(Q)+U,Q="";else{Q=+Q;var pe=Q<0||1/Q<0;if(Q=isNaN(Q)?c:Z(Math.abs(Q),P),I&&(Q=Yie(Q)),pe&&+Q==0&&C!=="+"&&(pe=!1),j=(pe?C==="("?C:s:C==="-"||C==="("?"":C)+j,U=($==="s"?aL[8+qI/3]:"")+U+(pe&&C==="("?")":""),ee){for(Y=-1,X=Q.length;++Y<X;)if(te=Q.charCodeAt(Y),48>te||te>57){U=(te===46?a+Q.slice(Y+1):Q.slice(Y))+U,Q=Q.slice(0,Y);break}}}k&&!B&&(Q=t(Q,1/0));var ae=j.length+Q.length+U.length,ge=ae<E?new Array(E-ae+1).join(v):"";switch(k&&B&&(Q=t(ge+Q,ge.length?E-U.length:1/0),ge=""),g){case"<":Q=j+Q+U+ge;break;case"=":Q=j+ge+Q+U;break;case"^":Q=ge.slice(0,ae=ge.length>>1)+j+Q+U+ge.slice(ae);break;default:Q=ge+j+Q+U;break}return i(Q)}return le.toString=function(){return h+""},le}function A(h,v){var g=f((h=ny(h),h.type="f",h)),C=Math.max(-8,Math.min(8,Math.floor(Yg(v)/3)))*3,b=Math.pow(10,-C),B=aL[8+C/3];return function(E){return g(b*E)+B}}return{format:f,formatPrefix:A}}var $w,ry,iL;Kie({thousands:",",grouping:[3],currency:["$",""]});function Kie(e){return $w=Xie(e),ry=$w.format,iL=$w.formatPrefix,$w}function Zie(e){return Math.max(0,-Yg(Math.abs(e)))}function Jie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yg(t)/3)))*3-Yg(Math.abs(e)))}function qie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yg(t)-Yg(e))+1}function eoe(e,t,n,r){var a=hE(e,t,n),i;switch(r=ny(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Jie(a,o))&&(r.precision=i),iL(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=qie(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Zie(a))&&(r.precision=i-(r.type==="%")*2);break}}return ry(r)}function Iw(e){var t=e.domain;return e.ticks=function(n){var r=t();return xw(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return eoe(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,o=r[a],s=r[i],c,f,A=10;for(s<o&&(f=o,o=s,s=f,f=a,a=i,i=f);A-- >0;){if(f=jg(o,s,n),f===c)return r[a]=o,r[i]=s,t(r);if(f>0)o=Math.floor(o/f)*f,s=Math.ceil(s/f)*f;else if(f<0)o=Math.ceil(o*f)/f,s=Math.floor(s*f)/f;else break;c=f}return e},e}function Zr(){var e=JI();return e.copy=function(){return ty(e,Zr())},G2.apply(e,arguments),Iw(e)}function sv(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,CE),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return sv(e).unknown(t)},e=arguments.length?Array.from(e,CE):[0,1],Iw(n)}function oL(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function lL(e){return Math.log(e)}function sL(e){return Math.exp(e)}function toe(e){return-Math.log(-e)}function noe(e){return-Math.exp(-e)}function roe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function aoe(e){return e===10?roe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ioe(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 uL(e){return(t,n)=>-e(-t,n)}function ooe(e){const t=e(lL,sL),n=t.domain;let r=10,a,i;function o(){return a=ioe(r),i=aoe(r),n()[0]<0?(a=uL(a),i=uL(i),e(toe,noe)):e(lL,sL),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):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),C,b;const B=s==null?10:+s;let E=[];if(!(r%1)&&g-v<B){if(v=Math.floor(v),g=Math.ceil(g),f>0){for(;v<=g;++v)for(C=1;C<r;++C)if(b=v<0?C/i(-v):C*i(v),!(b<f)){if(b>A)break;E.push(b)}}else for(;v<=g;++v)for(C=r-1;C>=1;--C)if(b=v>0?C/i(-v):C*i(v),!(b<f)){if(b>A)break;E.push(b)}E.length*2<B&&(E=xw(f,A,B))}else E=xw(v,g,Math.min(g-v,B)).map(i);return h?E.reverse():E},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=ny(c)).precision==null&&(c.trim=!0),c=ry(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(oL(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function X2(){const e=ooe(Hw()).domain([1,10]);return e.copy=()=>ty(e,X2()).base(e.base()),G2.apply(e,arguments),e}function cL(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fL(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function loe(e){var t=1,n=e(cL(t),fL(t));return n.constant=function(r){return arguments.length?e(cL(t=+r),fL(t)):t},Iw(n)}function uv(){var e=loe(Hw());return e.copy=function(){return ty(e,uv()).constant(e.constant())},G2.apply(e,arguments)}function dL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function soe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function uoe(e){return e<0?-e*e:e*e}function coe(e){var t=e(IA,IA),n=1;function r(){return n===1?e(IA,IA):n===.5?e(soe,uoe):e(dL(n),dL(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Iw(t)}function EE(){var e=coe(Hw());return e.copy=function(){return ty(e,EE()).exponent(e.exponent())},G2.apply(e,arguments),e}function cv(){return EE.apply(null,arguments).exponent(.5)}const BE=new Date,_E=new Date;function uu(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 o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let f;do c.push(f=new Date(+i)),t(i,s),e(i);while(f<i&&i<o);return c},a.filter=i=>uu(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(BE.setTime(+i),_E.setTime(+o),e(BE),e(_E),Math.floor(n(BE,_E))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lw=uu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lw.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?uu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lw),Lw.range;const Nh=1e3,L1=Nh*60,zh=L1*60,Oh=zh*24,TE=Oh*7,AL=Oh*30,kE=Oh*365,Wg=uu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nh)},(e,t)=>(t-e)/Nh,e=>e.getUTCSeconds());Wg.range;const ME=uu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nh)},(e,t)=>{e.setTime(+e+t*L1)},(e,t)=>(t-e)/L1,e=>e.getMinutes());ME.range,uu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*L1)},(e,t)=>(t-e)/L1,e=>e.getUTCMinutes()).range;const PE=uu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nh-e.getMinutes()*L1)},(e,t)=>{e.setTime(+e+t*zh)},(e,t)=>(t-e)/zh,e=>e.getHours());PE.range,uu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*zh)},(e,t)=>(t-e)/zh,e=>e.getUTCHours()).range;const ay=uu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*L1)/Oh,e=>e.getDate()-1);ay.range;const HE=uu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oh,e=>e.getUTCDate()-1);HE.range,uu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oh,e=>Math.floor(e/Oh)).range;function K2(e){return uu(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())*L1)/TE)}const Rw=K2(0),Vw=K2(1),foe=K2(2),doe=K2(3),Xg=K2(4),Aoe=K2(5),hoe=K2(6);Rw.range,Vw.range,foe.range,doe.range,Xg.range,Aoe.range,hoe.range;function Z2(e){return uu(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)/TE)}const hL=Z2(0),Nw=Z2(1),poe=Z2(2),voe=Z2(3),Kg=Z2(4),moe=Z2(5),goe=Z2(6);hL.range,Nw.range,poe.range,voe.range,Kg.range,moe.range,goe.range;const DE=uu(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());DE.range,uu(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 Fh=uu(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());Fh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:uu(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)}),Fh.range;const J2=uu(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());J2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:uu(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)}),J2.range;function yoe(e,t,n,r,a,i){const o=[[Wg,1,Nh],[Wg,5,5*Nh],[Wg,15,15*Nh],[Wg,30,30*Nh],[i,1,L1],[i,5,5*L1],[i,15,15*L1],[i,30,30*L1],[a,1,zh],[a,3,3*zh],[a,6,6*zh],[a,12,12*zh],[r,1,Oh],[r,2,2*Oh],[n,1,TE],[t,1,AL],[t,3,3*AL],[e,1,kE]];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),C=g?g.range(f,+A+1):[];return v?C.reverse():C}function c(f,A,h){const v=Math.abs(A-f)/h,g=dE(([,,B])=>B).right(o,v);if(g===o.length)return e.every(hE(f/kE,A/kE,h));if(g===0)return Lw.every(Math.max(hE(f,A,h),1));const[C,b]=o[v/o[g-1][2]<o[g][2]/v?g-1:g];return C.every(b)}return[s,c]}const[woe,boe]=yoe(Fh,DE,Rw,ay,PE,ME);function $E(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 IE(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 iy(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Coe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,f=oy(a),A=ly(a),h=oy(i),v=ly(i),g=oy(o),C=ly(o),b=oy(s),B=ly(s),E=oy(c),k=ly(c),P={a:pe,A:ae,b:ge,B:me,c:null,d:wL,e:wL,f:Uoe,g:tle,G:rle,H:Foe,I:Qoe,j:joe,L:bL,m:Goe,M:Yoe,p:fe,q:Ce,Q:_L,s:TL,S:Woe,u:Xoe,U:Koe,V:Zoe,w:Joe,W:qoe,x:null,X:null,y:ele,Y:nle,Z:ale,"%":BL},I={a:De,A:ke,b:$e,B:je,c:null,d:SL,e:SL,f:sle,g:gle,G:wle,H:ile,I:ole,j:lle,L:xL,m:ule,M:cle,p:Oe,q:ft,Q:_L,s:TL,S:fle,u:dle,U:Ale,V:hle,w:ple,W:vle,x:null,X:null,y:mle,Y:yle,Z:ble,"%":BL},$={a:le,A:Q,b:j,B:U,c:Y,d:gL,e:gL,f:Voe,g:mL,G:vL,H:yL,I:yL,j:$oe,L:Roe,m:Doe,M:Ioe,p:ee,q:Hoe,Q:zoe,s:Ooe,S:Loe,u:_oe,U:Toe,V:koe,w:Boe,W:Moe,x:X,X:te,y:mL,Y:vL,Z:Poe,"%":Noe};P.x=z(n,P),P.X=z(r,P),P.c=z(t,P),I.x=z(n,I),I.X=z(r,I),I.c=z(t,I);function z(ze,Xe){return function(tt){var qe=[],gt=-1,wt=0,Xt=ze.length,rr,sr,ra;for(tt instanceof Date||(tt=new Date(+tt));++gt<Xt;)ze.charCodeAt(gt)===37&&(qe.push(ze.slice(wt,gt)),(sr=pL[rr=ze.charAt(++gt)])!=null?rr=ze.charAt(++gt):sr=rr==="e"?" ":"0",(ra=Xe[rr])&&(rr=ra(tt,sr)),qe.push(rr),wt=gt+1);return qe.push(ze.slice(wt,gt)),qe.join("")}}function F(ze,Xe){return function(tt){var qe=iy(1900,void 0,1),gt=Z(qe,ze,tt+="",0),wt,Xt;if(gt!=tt.length)return null;if("Q"in qe)return new Date(qe.Q);if("s"in qe)return new Date(qe.s*1e3+("L"in qe?qe.L:0));if(Xe&&!("Z"in qe)&&(qe.Z=0),"p"in qe&&(qe.H=qe.H%12+qe.p*12),qe.m===void 0&&(qe.m="q"in qe?qe.q:0),"V"in qe){if(qe.V<1||qe.V>53)return null;"w"in qe||(qe.w=1),"Z"in qe?(wt=IE(iy(qe.y,0,1)),Xt=wt.getUTCDay(),wt=Xt>4||Xt===0?Nw.ceil(wt):Nw(wt),wt=HE.offset(wt,(qe.V-1)*7),qe.y=wt.getUTCFullYear(),qe.m=wt.getUTCMonth(),qe.d=wt.getUTCDate()+(qe.w+6)%7):(wt=$E(iy(qe.y,0,1)),Xt=wt.getDay(),wt=Xt>4||Xt===0?Vw.ceil(wt):Vw(wt),wt=ay.offset(wt,(qe.V-1)*7),qe.y=wt.getFullYear(),qe.m=wt.getMonth(),qe.d=wt.getDate()+(qe.w+6)%7)}else("W"in qe||"U"in qe)&&("w"in qe||(qe.w="u"in qe?qe.u%7:"W"in qe?1:0),Xt="Z"in qe?IE(iy(qe.y,0,1)).getUTCDay():$E(iy(qe.y,0,1)).getDay(),qe.m=0,qe.d="W"in qe?(qe.w+6)%7+qe.W*7-(Xt+5)%7:qe.w+qe.U*7-(Xt+6)%7);return"Z"in qe?(qe.H+=qe.Z/100|0,qe.M+=qe.Z%100,IE(qe)):$E(qe)}}function Z(ze,Xe,tt,qe){for(var gt=0,wt=Xe.length,Xt=tt.length,rr,sr;gt<wt;){if(qe>=Xt)return-1;if(rr=Xe.charCodeAt(gt++),rr===37){if(rr=Xe.charAt(gt++),sr=$[rr in pL?Xe.charAt(gt++):rr],!sr||(qe=sr(ze,tt,qe))<0)return-1}else if(rr!=tt.charCodeAt(qe++))return-1}return qe}function ee(ze,Xe,tt){var qe=f.exec(Xe.slice(tt));return qe?(ze.p=A.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function le(ze,Xe,tt){var qe=g.exec(Xe.slice(tt));return qe?(ze.w=C.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function Q(ze,Xe,tt){var qe=h.exec(Xe.slice(tt));return qe?(ze.w=v.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function j(ze,Xe,tt){var qe=E.exec(Xe.slice(tt));return qe?(ze.m=k.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function U(ze,Xe,tt){var qe=b.exec(Xe.slice(tt));return qe?(ze.m=B.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function Y(ze,Xe,tt){return Z(ze,t,Xe,tt)}function X(ze,Xe,tt){return Z(ze,n,Xe,tt)}function te(ze,Xe,tt){return Z(ze,r,Xe,tt)}function pe(ze){return o[ze.getDay()]}function ae(ze){return i[ze.getDay()]}function ge(ze){return c[ze.getMonth()]}function me(ze){return s[ze.getMonth()]}function fe(ze){return a[+(ze.getHours()>=12)]}function Ce(ze){return 1+~~(ze.getMonth()/3)}function De(ze){return o[ze.getUTCDay()]}function ke(ze){return i[ze.getUTCDay()]}function $e(ze){return c[ze.getUTCMonth()]}function je(ze){return s[ze.getUTCMonth()]}function Oe(ze){return a[+(ze.getUTCHours()>=12)]}function ft(ze){return 1+~~(ze.getUTCMonth()/3)}return{format:function(ze){var Xe=z(ze+="",P);return Xe.toString=function(){return ze},Xe},parse:function(ze){var Xe=F(ze+="",!1);return Xe.toString=function(){return ze},Xe},utcFormat:function(ze){var Xe=z(ze+="",I);return Xe.toString=function(){return ze},Xe},utcParse:function(ze){var Xe=F(ze+="",!0);return Xe.toString=function(){return ze},Xe}}}var pL={"-":"",_:" ",0:"0"},Nu=/^\s*\d+/,Soe=/^%/,xoe=/[\\^$*+?|[\]().{}]/g;function yi(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 Eoe(e){return e.replace(xoe,"\\$&")}function oy(e){return new RegExp("^(?:"+e.map(Eoe).join("|")+")","i")}function ly(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Boe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _oe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Toe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function koe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Moe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vL(e,t,n){var r=Nu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mL(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 Poe(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 Hoe(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 Doe(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 gL(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $oe(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 yL(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ioe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Loe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Roe(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 Noe(e,t,n){var r=Soe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function zoe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ooe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wL(e,t){return yi(e.getDate(),t,2)}function Foe(e,t){return yi(e.getHours(),t,2)}function Qoe(e,t){return yi(e.getHours()%12||12,t,2)}function joe(e,t){return yi(1+ay.count(Fh(e),e),t,3)}function bL(e,t){return yi(e.getMilliseconds(),t,3)}function Uoe(e,t){return bL(e,t)+"000"}function Goe(e,t){return yi(e.getMonth()+1,t,2)}function Yoe(e,t){return yi(e.getMinutes(),t,2)}function Woe(e,t){return yi(e.getSeconds(),t,2)}function Xoe(e){var t=e.getDay();return t===0?7:t}function Koe(e,t){return yi(Rw.count(Fh(e)-1,e),t,2)}function CL(e){var t=e.getDay();return t>=4||t===0?Xg(e):Xg.ceil(e)}function Zoe(e,t){return e=CL(e),yi(Xg.count(Fh(e),e)+(Fh(e).getDay()===4),t,2)}function Joe(e){return e.getDay()}function qoe(e,t){return yi(Vw.count(Fh(e)-1,e),t,2)}function ele(e,t){return yi(e.getFullYear()%100,t,2)}function tle(e,t){return e=CL(e),yi(e.getFullYear()%100,t,2)}function nle(e,t){return yi(e.getFullYear()%1e4,t,4)}function rle(e,t){var n=e.getDay();return e=n>=4||n===0?Xg(e):Xg.ceil(e),yi(e.getFullYear()%1e4,t,4)}function ale(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yi(t/60|0,"0",2)+yi(t%60,"0",2)}function SL(e,t){return yi(e.getUTCDate(),t,2)}function ile(e,t){return yi(e.getUTCHours(),t,2)}function ole(e,t){return yi(e.getUTCHours()%12||12,t,2)}function lle(e,t){return yi(1+HE.count(J2(e),e),t,3)}function xL(e,t){return yi(e.getUTCMilliseconds(),t,3)}function sle(e,t){return xL(e,t)+"000"}function ule(e,t){return yi(e.getUTCMonth()+1,t,2)}function cle(e,t){return yi(e.getUTCMinutes(),t,2)}function fle(e,t){return yi(e.getUTCSeconds(),t,2)}function dle(e){var t=e.getUTCDay();return t===0?7:t}function Ale(e,t){return yi(hL.count(J2(e)-1,e),t,2)}function EL(e){var t=e.getUTCDay();return t>=4||t===0?Kg(e):Kg.ceil(e)}function hle(e,t){return e=EL(e),yi(Kg.count(J2(e),e)+(J2(e).getUTCDay()===4),t,2)}function ple(e){return e.getUTCDay()}function vle(e,t){return yi(Nw.count(J2(e)-1,e),t,2)}function mle(e,t){return yi(e.getUTCFullYear()%100,t,2)}function gle(e,t){return e=EL(e),yi(e.getUTCFullYear()%100,t,2)}function yle(e,t){return yi(e.getUTCFullYear()%1e4,t,4)}function wle(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Kg(e):Kg.ceil(e),yi(e.getUTCFullYear()%1e4,t,4)}function ble(){return"+0000"}function BL(){return"%"}function _L(e){return+e}function TL(e){return Math.floor(+e/1e3)}var Zg,kL;Cle({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 Cle(e){return Zg=Coe(e),kL=Zg.format,Zg.parse,Zg.utcFormat,Zg.utcParse,Zg}function Sle(e){return new Date(e)}function xle(e){return e instanceof Date?+e:+new Date(+e)}function ML(e,t,n,r,a,i,o,s,c,f){var A=JI(),h=A.invert,v=A.domain,g=f(".%L"),C=f(":%S"),b=f("%I:%M"),B=f("%I %p"),E=f("%a %d"),k=f("%b %d"),P=f("%B"),I=f("%Y");function $(z){return(c(z)<z?g:s(z)<z?C:o(z)<z?b:i(z)<z?B:r(z)<z?a(z)<z?E:k:n(z)<z?P:I)(z)}return A.invert=function(z){return new Date(h(z))},A.domain=function(z){return arguments.length?v(Array.from(z,xle)):v().map(Sle)},A.ticks=function(z){var F=v();return e(F[0],F[F.length-1],z??10)},A.tickFormat=function(z,F){return F==null?$:f(F)},A.nice=function(z){var F=v();return(!z||typeof z.range!="function")&&(z=t(F[0],F[F.length-1],z??10)),z?v(oL(F,z)):A},A.copy=function(){return ty(A,ML(e,t,n,r,a,i,o,s,c,f))},A}function Ele(){return G2.apply(ML(woe,boe,Fh,DE,Rw,ay,PE,ME,Wg,kL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PL(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="continuous"}function LE(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="categorical"}function HL(e){return LE(e)||PL(e)}const Jg="#110529",Ble="solid",sy=1,q2="21",L0=3,RE=2,em={min:3,max:10},DL={color:"#ccc",lineShape:Ble,dotShape:q2},_le="light";function Tle(e){const t=1/(e.length-1);return Zr().domain(e.map((n,r)=>r*t)).range(e)}function $L(e,t){const n=Ui[e].colors,r=t.length>1?1/(t.length-1):0,a=Tle(n),i=fE(e),o=t.reduce((s,c,f)=>(s[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:Fg[f%Fg.length],dotShape:X4[f%X4.length]}},s),{});return{type:"categorical",palette:e,naAes:DL,order:t,mapping:o}}function tm(e){return{type:"continuous",palette:e,naAes:DL,range:null,midPoint:null,log:!1}}function nm(e){return $L(_le,e)}function IL(e,t,n,r){var i;if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??nm(n?((i=e[n])==null?void 0:i.list)??[]:[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={},r.fill&&(o[s].fillColor=c.color,o[s].dotFill=c.color),r.stroke&&(o[s].lineColor=c.color),r.dotShape&&(o[s].dotShape=c.dotShape),r.lineType&&(o[s].lineShape=c.lineShape),o},{})}}function LL(e,t,n){var i;const r=n[e];if(r&&!LE(r))return{};const a=r??nm(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={fillColor:c.color,lineColor:c.color,dotFill:c.color,dotShape:c.dotShape,dotSize:L0,lineWidth:sy},o},{})}function kle(e,t,n){var i;const r=n[e];if(r&&!LE(r))return{};const a=r??nm(((i=t[e])==null?void 0:i.list)??[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={fillColor:c.color,lineColor:pi,dotFill:pi,dotShape:q2,dotSize:L0,lineWidth:sy},o},{})}}function VE(e,t,n,r){var i;const a=n[e]??nm(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]=c[r],o},{})}const Mle={},Ple={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Hle(e,t){return d.openBlock(),d.createElementBlock("svg",Ple,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 RL=mr(Mle,[["render",Hle]]),zw="pl7.app/graph/thresholds",fv="pl7.app/graph/axis/lowerLimit",dv="pl7.app/graph/axis/upperLimit",Av="pl7.app/graph/axis/symmetricRange",qg="pl7.app/graph/palette",Ow="pl7.app/axisNature",Dle="pl7.app/isSubset";function $le(e,t){return t==="discrete"?e&&e5[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&rm[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const e5={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"]},rm={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},VL={dots:["dots"],curve_dots:["curve","dots"]},Ile={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},Lle={bins:["bins"]},LA={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 Rle(e,t){var r,a,i,o,s,c,f,A,h,v,g,C,b,B,E,k,P,I,$,z,F,Z,ee,le,Q,j,U,Y,X,te,pe;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:((o=(i=ae==null?void 0:ae.overall)==null?void 0:i.validity)==null?void 0:o.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:((C=(g=ae==null?void 0:ae.referenceGroup)==null?void 0:g.data)==null?void 0:C.format)??"significance",ns:((B=(b=ae==null?void 0:ae.referenceGroup)==null?void 0:b.data)==null?void 0:B.ns)??!1},validity:{testMethod:((k=(E=ae==null?void 0:ae.referenceGroup)==null?void 0:E.validity)==null?void 0:k.testMethod)??!0,referenceGroup:((I=(P=ae==null?void 0:ae.referenceGroup)==null?void 0:P.validity)==null?void 0:I.referenceGroup)??!0}},pairwise:{data:{testMethod:((z=($=ae==null?void 0:ae.pairwise)==null?void 0:$.data)==null?void 0:z.testMethod)??null,correctionMethod:((Z=(F=ae==null?void 0:ae.pairwise)==null?void 0:F.data)==null?void 0:Z.correctionMethod)??"Bonferroni",format:((le=(ee=ae==null?void 0:ae.pairwise)==null?void 0:ee.data)==null?void 0:le.format)??"significance",ns:((j=(Q=ae==null?void 0:ae.pairwise)==null?void 0:Q.data)==null?void 0:j.ns)??!1},validity:{testMethod:((Y=(U=ae==null?void 0:ae.pairwise)==null?void 0:U.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:((te=n==null?void 0:n.trend)==null?void 0:te.trim)??!1,showLegend:((pe=n==null?void 0:n.trend)==null?void 0:pe.showLegend)??!0}}}function NE(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function t5(e){return typeof e=="object"&&e!==null&&"type"in e}function Qh(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e}const Vle=()=>({bubble:{NAValueAs:0,strokeColor:null,minRadius:3,maxRadius:38,normalizationDirection:"row",normalizationMethod:"standardScaling"},bins:{fillColor:null,opacity:1},dendro:{dotFill:pi,dotShape:DA,dotSize:L0,lineColor:pi,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:null},curve:{lineColor:pi,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:Jg,dotShape:DA,lineType:Cw,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:Jg,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:DA,lineColor:Jg,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:Jg,lineType:Cw,opacity:1,trim:!1,showQuartiles:!1,quartilesLineStyle:"dashed",medianLineStyle:"solid"},bar:{fillColor:null,lineColor:Jg,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:Jg,opacity:1,normalize:!1},line:{pointsValues:"mean",lineColor:null,dotShape:DA,lineType:Cw,dotFill:null,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:DA,dotFill:null,opacity:1},sina:{dotFill:null,dotShape:DA,opacity:1,showOutliers:!0},logo:{normalize:!1,opacity:1}});function Nle(e){const t=Vle();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const zle=()=>({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",allowNullPrimaryGroups:!1,allowNullSecondaryGroups:!1},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,groupingDirection:"straight",groupingStack:"vertical"}});function NL(e){return e==="full"||e==="none"}function Ole(e,t){var a;const n=zle();if(!t)return n;function r(i){return!i||e==="heatmap"&&!NL(i)?"full":e!=="heatmap"&&NL(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 _f={box:are,box_binnedDots:sre,box_jitteredDots:dre,binnedDots:vre,jitteredDots:wre,violin:xre,violin_binnedDots:Tre,violin_jitteredDots:Hre,bar:gI,bar_line:yI,bar_errorbar:Fre,stackedBar:Gre,line:wI,line_binnedDots:qre,line_jitteredDots:bI,line_errorbar:oae,errorbar:yI,sina:cae,logo:bae,dots:hae,curve:wI,curve_dots:bI,heatmap:CI,heatmapClustered:RL,dendro:RL,bins:gI,bubble:CI},Fw=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],zL=[{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"}],OL=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}],FL=600,QL=350,Fle=400,Qle=250;function jL(e,t,n){var a,i,o,s,c,f;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((s=(o=e.components)==null?void 0:o[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 jle(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 UL(e,t,n,r,a){const i=[],o=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function c(f,A=!1){return f===null?s?{type:"secondaryGrouping"}:o&&!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?Qae:Fae}})}}),o&&!s&&i.push(...jle(n)),i}function Ule(e,t,n,r){if(e){const a=Qh(t)?t:{column:e.value,range:em},i=[1/0,-1/0];return n.values[e.value].forEach(o=>{const s=Number(o);s<i[0]&&(i[0]=s),s>i[1]&&(i[1]=s)}),{columnName:e,domain:i,range:[a.range.min,a.range.max]}}return Qh(t)?r:t??r}function GL(e,t,n,r){const a=n.find(o=>o.value===e);let i=[1/0,-1/0];if(a){const{range:o,palette:s,midPoint:c,log:f}=t,A=(o==null?void 0:o.minValue)===null||(o==null?void 0:o.minValue)===void 0,h=(o==null?void 0:o.maxValue)===null||(o==null?void 0:o.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]=o==null?void 0:o.minValue),h||(i[1]=o==null?void 0:o.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:Ui[s].colors,type:f?"log":"linear"}}return pi}function YL(e,t,n,r,a,i,o=[],s=L0){var C,b;const c=[];function f(B,E,k,P=!1){var I;if(E.length){const $=E.length?(I=i.getSourceInfo(E[0]))==null?void 0:I.type:void 0,z=$==="String"||!P?{type:"grouping",value:E[0]}:GL(E[0],tm(ov),o,n),F=a[E[0]];return B===null||$==="String"||!P||!PL(F)?z:GL(E[0],F,o,n)}return typeof B=="object"?k:B}const A=r.components.grouping.selectorStates.map(B=>B.selectedSource),h=((C=r.components.shape)==null?void 0:C.selectorStates.map(B=>B.selectedSource))??[],v=(b=r.components.size)==null?void 0:b.selectorStates.map(B=>B.selectedSource)[0],g=v?o.find(B=>B.value===v):void 0;return e.forEach(B=>{if(B==="dots"){const E=t[B];c.push({type:"dots",aes:{dotFill:f(E.dotFill,A,pi,!0),dotShape:f(E.dotShape,h,DA),dotSize:Ule(g,E.dotSize,n,s)}})}if(B==="curve"){const E=t[B];c.push({type:"curve",smoothing:E.smoothing,aes:{lineColor:f(E.lineColor,A,pi,!0)}})}}),c}const Gle=6,Yle=5;function WL(e,t=[]){return e!==null?e:t.length>Gle&&t.some(({label:n})=>n.length>Yle)?"45deg":"center"}function n5(e,t,n=[]){let r={},a={};t==="discrete"&&(r.labelsPosition=WL(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)),t==="histogram"&&(i.groupingDirection=e.other.groupingDirection,i.groupingStack=e.other.groupingStack),i}function R0(e){return JSON.parse(JSON.stringify(e))}function Wle(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 XL(e,t,n,r){return(t==null?void 0:t[Dle])==="true"?"subset":r!==void 0?"range":n!==void 0||e==="Int"||e==="String"?"equals":"range"}async function zE(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")),o=[];for(const{inputName:s,filterType:c,selectedSource:f,selectedFilterValue:A,selectedFilterRange:h,fixedAxes:v}of a){const{name:g,valueType:C,annotations:b,domain:B}=f,E=await e.pFrameProvider.findColumnBy(g,C,d.toRaw(b),d.toRaw(B)),k=s==="filters"||s==="tabBy"||s==="highlight";if(E){const P=await e.pFrameProvider.getColumnSpecById(E),I=P&&v?v.map($=>({axisIdx:$.axisIdx,axisValue:$.axisValue,axisSource:Lr.fromAxisSpec(P==null?void 0:P.axesSpec[$.axisIdx]).toCanonicalString()})):[];if(!k)r.push({inputName:s,selectedSource:E.toCanonicalString(),fixedAxes:I});else{const $=c??XL(C,P==null?void 0:P.annotations,A,h),z=$==="equals"&&typeof A>"u"?(await e.pFrameProvider.getColumnUniqueValues(E))[0]:A,F={min:void 0,max:void 0,...h};r.push({inputName:s,filterType:$,selectedSource:E.toCanonicalString(),selectedFilterValue:z,selectedFilterRange:F,fixedAxes:I})}o.push(...(P==null?void 0:P.axesSpec.map($=>({spec:$,parentColumn:E})))??[])}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=Lr.fromAxisSpec(c),g=v.toCanonicalString(),C=s==="filters"||s==="tabBy"||s==="highlight",b=C?f??XL(v.type,c==null?void 0:c.annotations):void 0,B=o.find(P=>Lr.fromAxisSpec(P.spec).toCanonicalString()===g),E=C&&b==="equals"&&typeof A>"u"&&(B!=null&&B.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(v,[B==null?void 0:B.parentColumn]))[0]:A,k={min:void 0,max:void 0,...h};if(n||r.push({inputName:s,filterType:b,selectedSource:g,selectedFilterValue:E,selectedFilterRange:k,fixedAxes:[]}),B)r.push({inputName:s,filterType:b,selectedSource:g,selectedFilterValue:E,selectedFilterRange:k,fixedAxes:[]});else{const{spec:P,parentColumn:I}=o.find($=>v.name===$.spec.name&&v.type===$.spec.type&&Wle(v.domain,$.spec.domain))??{};if(P){const $=(s==="filters"||s==="tabBy")&&typeof A>"u"?(await e.pFrameProvider.getAxisUniqueValues(Lr.fromAxisSpec(P),[I]))[0]:A;r.push({inputName:s,filterType:b,selectedSource:Lr.fromAxisSpec(P).toCanonicalString(),selectedFilterValue:$,selectedFilterRange:k,fixedAxes:[]})}}}return r}async function KL(e,t,n){if(!n||n.length===0)return e;const r=await zE(t,n,!1),a=R0(e);return r.forEach(({inputName:i,selectedSource:o,selectedFilterValue:s})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:o,type:"equals",selectedFilterValue:s})}),a}const ZL={fillColor:iv,lineColor:pi,dotFill:iv,dotShape:q2,dotSize:L0,lineWidth:sy};function Xle(e,t,n,r){var c;const a=UL(e5[t.template],t.layersSettings,t.statisticsSettings,t.optionsState,r),i=tR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,r);e.layers=a;const o=t.optionsState.components;if(o.primaryGrouping.selectorStates.length&&e.primaryGrouping){const f=o.primaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.primaryGrouping,IL(n,t.dataBindAes[f],f,A)),t.axesSettings.axisX.allowNullPrimaryGroups&&(e.primaryGrouping.allowNullGroup=!0,e.primaryGrouping.order&&(e.primaryGrouping.order=[...e.primaryGrouping.order,"null"]),e.primaryGrouping.inheritedAes&&(e.primaryGrouping.inheritedAes.null=ZL))}if(o.secondaryGrouping.selectorStates&&e.secondaryGrouping){const f=o.secondaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.secondaryGrouping,IL(n,t.dataBindAes[f],f,A)),t.axesSettings.axisX.allowNullSecondaryGroups&&(e.secondaryGrouping.allowNullGroup=!0,e.secondaryGrouping.order&&(e.secondaryGrouping.order=[...e.secondaryGrouping.order,"null"]),e.secondaryGrouping.inheritedAes&&(e.secondaryGrouping.inheritedAes.null=ZL))}const s=e.primaryGrouping?(c=n[e.primaryGrouping.columnName.value])==null?void 0:c.options:[];return Object.assign(e,n5(t.axesSettings,t.chartType,s)),e}function Kle(e,t,n,r,a){var C,b,B,E,k;e.layers=YL(rm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping,o=n.optionsState.components.shape;if(i.selectorStates.length||o.selectorStates.length){const P=[...i.selectorStates,...o.selectorStates],I={};P.forEach(({selectedSource:$})=>{I[$]=LL($,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:I})}const s=n.statisticsSettings,c=e.layers.find(P=>P.type==="dots");s.trend.on&&c&&(e.trend={color:(C=c.aes)==null?void 0:C.dotFill,bounded:!1}),Object.assign(e,n5(n.axesSettings,n.chartType));const f=(b=i.selectorStates[0])==null?void 0:b.selectedSource,A=(B=n.optionsState.components.x.selectorStates[0])==null?void 0:B.selectedSource,h=(E=n.optionsState.components.y.selectorStates[0])==null?void 0:E.selectedSource,v=r.getSourceInfo(A),g=r.getSourceInfo(h);if(i.selectorStates.length){const P=r.getSourceInfo(f).annotations;if(P!=null&&P[zw]&&(JSON.parse(P[zw])??[]).forEach($=>{const{columnId:z,value:F}=$;z&&v.kind==="column"&&v.type===z.valueType&&v.name===z.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(F))),z&&g.kind==="column"&&g.type===z.valueType&&g.name===z.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(F)))}),P!=null&&P[qg]){const I=JSON.parse(P[qg]),{mapping:$={},name:z=""}=I;e.layers.forEach(ee=>{ee.type==="dots"&&(ee.aes||(ee.aes={}),ee.aes.dotFill={type:"grouping",value:f})});const F=[...Object.entries($),["null",bw]],Z=((k=Ui[z])==null?void 0:k.colors)??[];e.inheritedAes[f]=F.reduce((ee,[le,Q])=>{const j=Z[Number(Q)]??pi;return ee[le]={fillColor:j,lineColor:j,dotFill:j,dotShape:q2,dotSize:L0,lineWidth:sy},ee},{})}}return v.annotations&&(v.annotations[dv]&&(e.xAxis.upperValue=Number(v.annotations[dv])),v.annotations[fv]&&(e.xAxis.lowerValue=Number(v.annotations[fv])),v.annotations[Av]&&(e.xAxis.symmetricRange=Number(v.annotations[Av]))),g.annotations&&(g.annotations[dv]&&(e.yAxis.upperValue=Number(g.annotations[dv])),g.annotations[fv]&&(e.yAxis.lowerValue=Number(g.annotations[fv])),g.annotations[Av]&&(e.yAxis.symmetricRange=Number(g.annotations[Av]))),e}const Zle=750,Jle=450;function qle(e,t,n,r,a){var h,v,g,C;e.layers=YL(rm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping,RE);const i=n.optionsState.components.grouping;if(i.selectorStates.length){const b=[...i.selectorStates],B={};b.forEach(({selectedSource:E})=>{B[E]=LL(E,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:B})}Object.assign(e,n5(n.axesSettings,n.chartType));const o=(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 b=r.getSourceInfo(o).annotations;if(b!=null&&b[zw]&&(JSON.parse(b[zw])??[]).forEach(E=>{const{columnId:k,value:P}=E;k&&f.kind==="column"&&f.type===k.valueType&&f.name===k.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(P))),k&&A.kind==="column"&&A.type===k.valueType&&A.name===k.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(P)))}),b!=null&&b[qg]){const B=JSON.parse(b[qg]),{mapping:E={},name:k=""}=B;e.layers.forEach($=>{$.type==="dots"&&($.aes||($.aes={}),$.aes.dotFill={type:"grouping",value:o})});const P=[...Object.entries(E),["null",bw]],I=((C=Ui[k])==null?void 0:C.colors)??[];e.inheritedAes[o]=P.reduce(($,[z,F])=>{const Z=I[Number(F)]??pi;return $[z]={fillColor:Z,lineColor:Z,dotFill:Z,dotShape:q2,dotSize:L0,lineWidth:sy},$},{})}}return f.annotations&&(f.annotations[dv]&&(e.xAxis.upperValue=Number(f.annotations[dv])),f.annotations[fv]&&(e.xAxis.lowerValue=Number(f.annotations[fv])),f.annotations[Av]&&(e.xAxis.symmetricRange=Number(f.annotations[Av]))),A.annotations&&(A.annotations[dv]&&(e.yAxis.upperValue=Number(A.annotations[dv])),A.annotations[fv]&&(e.yAxis.lowerValue=Number(A.annotations[fv])),A.annotations[Av]&&(e.yAxis.symmetricRange=Number(A.annotations[Av]))),e.size={width:Zle,height:Jle},e.lassoMode=n.lassoMode,e}function ese(e,t){var o,s;const n={},r=(o=t.dataBindAes[e.valueColumn.value])==null?void 0:o.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=Ui[r??zae].colors}else n.colorsList=Ui[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"?xI:ov;c.colors=Ui[A??h].colors}),Object.assign(e,n5(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 tse=280;async function nse(e,t,n,r,a,i){var f,A,h,v;n.rootPosition="left",n.size={width:FL,height:QL};const o=r.optionsState.components,s=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const g=(f=o.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,C=VE(g,a,r.dataBindAes,"dotShape");Object.keys(C).length?c.nodeShape.valuesMap=C:c.nodeShape=q2}else typeof s.dotShape=="string"&&(c.nodeShape=s.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const g=(A=o.nodeColor.selectorStates[0])==null?void 0:A.selectedSource,C=VE(g,a,r.dataBindAes,"color");Object.keys(C).length?c.nodeColor.valuesMap=C:c.nodeColor=pi}else typeof s.dotFill=="string"&&(c.nodeColor=s.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const g=(h=o.nodeSize.selectorStates[0])==null?void 0:h.selectedSource;let[C,b]=[1/0,-1/0];t.values[g].forEach(B=>{const E=Number(B);E<C&&(C=E),E>b&&(b=E)}),c.nodeSize.domain=[C,b],c.nodeSize.range=NE(s.dotSize)?[s.dotSize.min,s.dotSize.max]:[em.min,em.max]}else typeof s.dotSize=="number"&&(c.nodeSize=s.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const g=(v=o.lineColor.selectorStates[0])==null?void 0:v.selectedSource;c.lineColor.valuesMap=VE(g,a,r.dataBindAes,"color")}else typeof s.lineColor=="string"&&(c.lineColor=s.lineColor);if(o.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Ui.bright.colors}},n.size.maxCellWidth=8),o.heatmapAnnotation.selectorStates.length>0){const g=en(o.heatmapAnnotation.selectorStates[0].selectedSource),C=await e.pFrameProvider.getColumnSpecById(g),b=(C==null?void 0:C.valueType)==="Double"||(C==null?void 0:C.valueType)==="Float"||(C==null?void 0:C.valueType)==="Int"||(C==null?void 0:C.valueType)==="Long"?"continuous":"discrete",B=Ui.bright.colors;let E;b==="discrete"&&(E=(await e.pFrameProvider.getColumnUniqueValues(g)).filter(Boolean).reduce((P,I,$)=>(P[I]=B[$%B.length],P),{})),n.heatmapSettings={valueType:b,aes:{colorsList:Ui.viridis.colors,colorsMap:E}}}return n.mode=s.mode,n.leavesMode=s.leavesMode,n.showNodesLabels=o.labels.selectorStates.length>0,n.showLeavesLabels=o.labels.selectorStates.length>0,s.showTable&&o.heatmapAnnotation.selectorStates.length===0&&o.heatmapForSequence.selectorStates.length===0&&(n.size.width=tse),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}function rse(e,t,n){return t.length?{type:"grouping",value:t[0]}:typeof e=="object"?n:e}function ase(e,t,n){const r=t.optionsState.components.grouping;if(r.selectorStates.length){const o=r.selectorStates[0].selectedSource,{inheritedAes:s,order:c}=kle(o,n,t.dataBindAes);Object.assign(e,{inheritedAes:{[o]:s},groupingOrder:c})}const a=Lle[t.template],i=[];return a.forEach(o=>{if(o==="bins"){const s=t.layersSettings[o];i.push({type:"bins",aes:{opacity:s.opacity,fillColor:rse(s.fillColor,r.selectorStates.map(c=>c.selectedSource),"white")}})}}),e.layers=i,Object.assign(e,n5(t.axesSettings,t.chartType)),e.binsCount=t.axesSettings.other.binsCount,e}const JL=40,ise=JL/2-2,ose=3;function lse(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??pi,colorsList:Ui[a??ov].colors,maxRadius:ise*(t.chartScale/100),minRadius:ose},e.size={cellSize:JL*(t.chartScale/100)},Object.assign(e,n5(t.axesSettings,t.chartType)),e.NAValueAs=r.NAValueAs,r.normalizationDirection&&(e.normalization={method:r.normalizationMethod,direction:r.normalizationDirection}),e}function sse(e,t=0){return{width:(t>0?Fle:FL)*(e/100),height:(t>0?Qle:QL)*(e/100)}}function use(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 o=[];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];o.push((v==null?void 0:v.labels[h])??String(h))}}),{name:o.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function cse(e,t,n,r,a){var i;if(!e.ready||r===null)return null;try{const o=ww(n.chartType),s=await KL(n.optionsState,r,a),c=await o.createDataForPlot(r,s);let f=c.settings;return f.title=use(n.chartType,n.optionsState,t,n.axesSettings),f.size=sse(n.chartScale,((i=n.optionsState.components)==null?void 0:i.facetBy.selectorStates.length)||0),n.chartType==="discrete"&&(f=Xle(f,n,t,e)),n.chartType==="scatterplot"&&(f=Kle(f,c.dataByColumns,n,e,t)),n.chartType==="scatterplot-umap"&&(f=qle(f,c.dataByColumns,n,e,t)),n.chartType==="heatmap"&&(f=ese(f,n)),n.chartType==="dendro"&&(f=await nse(r,c.dataByColumns,f,n,t,n.chartScale)),n.chartType==="histogram"&&(f=ase(f,n,t)),n.chartType==="bubble"&&(f=lse(f,n)),{settings:f,dataByColumns:c.dataByColumns}}catch(o){return console.warn("Cant build chart data"),console.warn(o.message),null}}function qL(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function eR(e){return e.length<2?[]:e.length>2?Fw.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):Fw}function OE(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=eR(t),i=qL(t),o=r.overall.data.testMethod,s=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,o),r.referenceGroup.validity.referenceGroup=n(i,s)}}function fse(e){e.dispatchEvent(new MouseEvent("click"))}function dse(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(){fse(r)},0)}function uy(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return t5(a)&&a.type===n})}function tR(e,t,n,r,a,i){var c,f,A;const o={};let s=[];if(e==="discrete"){s=["primaryGrouping","secondaryGrouping"];const h=UL(e5[t],n,r,a,i);s.forEach(v=>{var C,b;const g=(b=(C=a.components[v])==null?void 0:C.selectorStates[0])==null?void 0:b.selectedSource;g&&(o[g]={fill:uy(h,"fillColor",v)||uy(h,"dotFill",v),stroke:uy(h,"lineColor",v),dotShape:uy(h,"dotShape",v),lineType:uy(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=>{o[g]={fill:g===h[0],stroke:!1,dotShape:g===v[0],lineType:!1,size:!1}})}if(e==="scatterplot-umap"&&(s=a.components.grouping.selectorStates.map(h=>h.selectedSource),s.forEach(h=>{o[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=>{o[v]={fill:t5(n.dendro.dotFill)&&n.dendro.dotFill.value===v,stroke:t5(n.dendro.lineColor)&&n.dendro.lineColor.value===v,dotShape:t5(n.dendro.dotShape)&&n.dendro.dotShape.value===v,lineType:!1,size:!1}})),e==="histogram"){const h=a.components.grouping.selectorStates.map(v=>v.selectedSource);h.forEach(v=>{o[v]={fill:v===h[0],stroke:!1,dotShape:!1,lineType:!1,size:!1}})}return o}var Ase=Object.defineProperty,hse=(e,t,n)=>t in e?Ase(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FE=(e,t,n)=>hse(e,typeof t!="symbol"?t+"":t,n);function pse(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function vse(e,t){if(e===void 0)throw Error(t??"Undefined value");return e}function mse(e=void 0){return e}function gse(e){return e}function yse(e){return[...new Set(e)]}function wse(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value")}function bse(e,t){if(e===void 0)throw Error(t??"Undefined value")}function Cse(e,t,n){const r=Math.min(t,n),a=Math.max(t,n);return e>=r&&e<=a}function Sse(e){return e.map(t=>({text:String(t),value:t}))}function xse(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 Ese{constructor(){FE(this,"promise"),FE(this,"resolve",()=>{}),FE(this,"reject",()=>{}),this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}function QE(e){return new Promise(t=>setTimeout(t,e))}function Bse(){return new Promise(e=>queueMicrotask(e))}function _se(){const e=new Date().getTime();return function(){return new Date().getTime()-e}}function Tse(){const e=performance.now();return function(){return performance.now()-e}}function kse(e){return e()}function Mse(e,t,n){return t>e?t:e>n?n:e}function Pse(e,t){return t(e)}function Hse(e,t){if(e!=null)return t(e)}function Dse(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e}function*nR(e,t,n=1){for(let r=e;r<t;r+=n)yield r}function rR(e){const t=[];for(const n of e)t.push(n);return t}function $se(e,t){return rR(nR(0,e)).map(t)}let Ise=class{constructor(t){this._delay=t}async*generate(){let t=0;for(;;)await QE(this._delay),yield t++}async*[Symbol.asyncIterator](){let t=0;for(;;)await QE(this._delay),yield t++}};function Lse(e,t){return Array.from({length:e},(n,r)=>t(r))}function Rse(e,t){throw Error(t)}function Vse(e){return t=>e[t]()}function Nse(e){if(e&&e.ok)return e.value}function zse(e){if(e&&!e.ok)return e.error}function Ose(e){if(e.ok)return e.value;throw Error(e.error)}function Fse(e){return Array.isArray(e)?e:[e]}async function Qse(e){return Object.fromEntries(await Promise.all(Object.entries(e).map(async([t,n])=>[t,await n])))}function jse(e,t){return Object.keys(t).every(n=>e[n]===t[n])}const Use=e=>e;function Gse(e){return e}function Yse(e){return Object.entries(e).map(([t,n])=>({key:t,value:n}))}const cy=Object.freeze(Object.defineProperty({__proto__:null,Deferred:Ese,Interval:Ise,alike:jse,arrayFrom:Lse,asConst:Gse,async:xse,between:Cse,bool:gse,call:kse,checkIfDefined:bse,checkIfNotEmpty:wse,clamp:Mse,delay:QE,errorOptional:zse,exhaustive:Rse,flatValue:Fse,identity:Use,listToOptions:Sse,match:Vse,notEmpty:pse,notUndef:vse,okOptional:Nse,performanceTimer:Tse,randomInt:Dse,range:nR,resolveAwaited:Qse,tap:Pse,tapIf:Hse,tear:Bse,timer:_se,times:$se,toList:rR,undef:mse,unionize:Yse,uniqueValues:yse,unwrap:Ose},Symbol.toStringTag,{value:"Module"})),fy=Array.isArray;function Qw(e){return e!==null&&typeof e=="object"}function r5(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 Wse(e,t){return Object.keys(e).map(n=>t(e[n],n))}function aR(e){return Object.values(e).reduce((t,n)=>n!==void 0?t+1:t,0)}function jw(e,t){if(!(Qw(e)&&Qw(t)))return e===t;if(fy(e)&&fy(t))return e.length!==t.length?!1:[...e.keys()].every(n=>jw(e[n],t[n]));if(r5(e)&&r5(t))return aR(e)!==aR(t)?!1:Object.keys(e).every(n=>jw(e[n],t[n]));throw Error(`Cannot compare a ${String(e)} and b ${String(t)}`)}const Xse=jw;function Uw(e){if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=Uw(e[n]);return t}else if(r5(e)){const t={};return Object.keys(e).forEach(n=>{t[n]=Uw(e[n])}),t}else return e}function Kse(e){return Array.isArray(e)?Object.assign([],e):Qw(e)?Object.assign({},e):e}function Zse(e,t){const n={};for(const r in t)t[r]!==e[r]&&(n[r]=e[r]);return n}function Jse(e){return Object.entries(e).forEach(([t,n])=>{n instanceof Function&&(e[t]=n.bind(e))}),e}function qse(e,t,n){return e[t]=n,e}function eue(e,t){return e[t]}function tue(e,t){e={...e};const n=e[t];return delete e[t],[n,e]}function nue(e,...t){return Object.assign({},...t.map(n=>({[n]:e[n]})))}function rue(e,...t){return t.map(n=>e[n])}function aue(e,...t){const n=Object.assign({},e);return t.forEach(r=>delete n[r]),n}function iR(e,t){return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{const r=e[n],a=t[n];r5(r)&&r5(a)||fy(r)&&fy(a)&&r.length===a.length?iR(r,a):e[n]=a}),e}const iue=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Jse,deepClone:Uw,deepEqual:Xse,deepPatch:iR,getProp:eue,isArray:fy,isJsonEqual:jw,isNonPrimitive:Qw,isPlainObject:r5,map:Wse,omit:aue,pick:nue,pickValues:rue,setProp:qse,shallowClone:Kse,shallowDiff:Zse,shiftProp:tue},Symbol.toStringTag,{value:"Module"}));function oue(e,t){const n=R0(mI(e));if((t==null?void 0:t.type)!==e)return n;const r=R0(t);return{...n,...r,components:{...n.components,...r.components}}}function jE(e,t){return d.reactive({chartType:t,optionsState:oue(t,e.optionsState),dataStateKey:Uw(e.dataStateKey),template:$le(e.template,t),statisticsSettings:Rle(t,e.statisticsSettings),layersSettings:Nle(e.layersSettings),axesSettings:Ole(t,e.axesSettings),dataBindAes:R0(e.dataBindAes??{}),chartScale:e.zoomState??100,lassoMode:!1,currentTab:e.currentTab===void 0?"dataMapping":e.currentTab,dendroInfoByClick:null,dendroSelectedNodeId:null,showTooltipHint:!1})}function lue(e,t,n,r,a,i,o){return{reactive:e,loading:d.reactive({initialInputGuide:!0,initialCharts:!0,initialDefaults:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:d.computed(()=>jL(e.optionsState,i.value,"primaryGrouping")),secondaryGroups:d.computed(()=>jL(e.optionsState,i.value,"secondaryGrouping")),usedAesInMapping:d.computed(()=>tR(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState,n.value)),dendroTableData:a},controller:ww(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r,uniqueValuesData:i,readonlyInputs:o}}function sue(e,t,n,r,a,i,o){const s=jE(e,n),c=ww(s.chartType),f=d.ref(ww(s.chartType).getEmptyInputGuide(s.optionsState)),A=d.ref(null),h=d.ref({}),v=d.ref(null),g=d.computed(()=>lue(s,d.toRaw(t.value),f,A,v,h,o));d.watch([()=>t.value,()=>r.value],async([B,E])=>{if(!E||!B||!g.value.loading.initialDefaults)return;g.value.loading.initialDefaults=!1,g.value.loading.initialInputGuide=!0;const k=R0(s.optionsState.components),P=E.filter($=>{var z;return((z=s.optionsState.components[$.inputName])==null?void 0:z.selectorStates.length)===0||(o==null?void 0:o.includes($.inputName))});if(P.length===0)return;P.forEach($=>{k[$.inputName].selectorStates=[]});const I=await zE(B,P);for(const{inputName:$,selectedSource:z,filterType:F,selectedFilterValue:Z,selectedFilterRange:ee,fixedAxes:le}of I)k[$].selectorStates.push({selectedSource:z,type:F,selectedFilterValue:Z,selectedFilterRange:ee,fixedAxes:le});s.optionsState.components={...s.optionsState.components,...k}},{immediate:!0});const C=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>a.value],async([B,E,k])=>{C.value++;const P=C.value;g.value.loading.inputGuide=!0;const I=E&&k?(await zE(E,k,!1)).map(ee=>ee.selectedSource):[],$=E?await c.calculateOptions(d.toRaw(E),B,I,i):c.getEmptyInputGuide(B),z=["primaryGrouping","secondaryGrouping","grouping","shape","nodeColor","nodeShape","lineColor","filters","highlight","tabBy"],F=[];z.forEach(ee=>{const le=s.optionsState.components[ee];if(le)for(const{selectedSource:Q}of le.selectorStates)F.push(Q)}),[...$.freeOptionsSet].forEach(ee=>{var Q,j,U;const le=$.getSourceInfo(ee);le.kind==="axis"&&((Q=le.annotations)!=null&&Q[Ow])&&((j=le.annotations)==null?void 0:j[Ow])!=="homogeneous"&&((U=le.annotations)==null?void 0:U[Ow])!=="homogenous"&&F.push(ee)}),[...$.axesToBeFixedSet].forEach(ee=>{F.push(ee)});const Z={};for(const ee of F)if(E&&!h.value[ee]){const le=await c.getUniqueSourceValuesWithLabels(E,$,ee);if(!le.length)continue;le.sort((Q,j)=>Q.label.localeCompare(j.label,"en",{numeric:!0})),Z[ee]={list:le.map(Q=>Q.value),options:le,labels:le.reduce((Q,j)=>(Q[j.value]=j.label,Q),{})}}h.value={...h.value,...Z},P===C.value&&(f.value=$,g.value.loading.inputGuide=!1,g.value.loading.initialInputGuide=!1)},{immediate:!0,deep:!0});const b=d.ref(0);if(d.watch([()=>f.value,()=>s.template,()=>s.layersSettings,()=>s.axesSettings,()=>s.statisticsSettings,()=>s.dataBindAes,()=>s.chartScale,()=>s.lassoMode],async([B])=>{b.value++;const E=b.value;g.value.loading.chartData=!0;const k=await cse(B,h.value,s,d.toRaw(t.value),a.value);E===b.value&&(A.value=k,B.ready&&(g.value.loading.initialCharts=!1),g.value.loading.chartData=!1)},{immediate:!0,deep:!0}),s.chartType==="dendro"){const B=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>f.value.readyData,()=>a.value],async([E,k,P,I])=>{if(P&&k){B.value++;const $=B.value;g.value.loading.dendroTableData=!0;const z=await KL(E,k,I),F=await c.createTableData(k,z);B.value===$&&(v.value=F),g.value.loading.dendroTableData=!1}},{immediate:!0})}return d.provide(G$,g),g}function Tr(){return hte(d.inject(G$),"Empty store")}const uue={class:"template-list"},cue=["onClick"],fue=["onClick"],due=["onClick"],Aue=["onClick"],hue=d.defineComponent({__name:"TemplateForm",setup(e){const t=Tr(),n=Object.entries(e5).map(([A,h])=>({id:A,text:h.map(v=>LA[v]).join(" + "),icon:_f[A]})),r=Object.entries(rm).map(([A,h])=>({id:A,text:h.map(v=>LA[v]).join(" + "),icon:_f[A]})),a=Object.entries(VL).map(([A,h])=>({id:A,text:h.map(v=>LA[v]).join(" + "),icon:_f[A]})),i=[{id:"heatmap",text:"Heatmap",icon:_f.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:_f.heatmapClustered}],o=[{id:"dendro",text:"Dendrogram",icon:_f.dendro}],s=[{id:"bins",text:"Histogram",icon:_f.bar}],c=[{id:"bubble",text:"Bubble plot",icon:_f.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",uue,[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:C})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[1]||(h[1]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,cue))),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:C})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[2]||(h[2]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,fue))),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:C})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[3]||(h[3]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,due))),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:C})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[4]||(h[4]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Aue)),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="dendro"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},d.renderList(o,({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 oR(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 o=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 C,b;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:B}of Object.values(e.value.components)){for(const E of B){const k=(b=(C=E.fixedAxes)==null?void 0:C.find(P=>P.axisSource===h&&P.axisValue!==void 0))==null?void 0:b.axisValue;if(k){g=k;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,o)}})}function lR(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 o=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 C,b;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:B}of Object.values(e.value.components)){for(const E of B){const k=(b=(C=E.fixedAxes)==null?void 0:C.find(P=>P.axisSource===h&&P.axisValue!==void 0))==null?void 0:b.axisValue;if(k){g=k;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,o)}})}function sR(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 pue(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 o=t(i),s=e.stateConsistency[i]===!1;r.unshift({text:s?"Inconsistent value":o.label,value:i})}),r.sort((i,o)=>i.text>o.text?1:-1)}function uR(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=pue(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function UE(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 vue(e,t){return UE(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function mue(e,t){return UE(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function cR(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function a5(e,t){return cR(e,t)?" ":""}function gue(e){var n;const t=(n=e==null?void 0:e[Ow])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function fR(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"&&gue(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 GE=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
27
|
+
}`;var Wr=OS(function(){return na(Te,xn+"return "+Dt).apply(n,Ve)});if(Wr.source=Dt,Ch(Wr))throw Wr;return Wr}function LP(w){return xi(w).toLowerCase()}function o6(w){return xi(w).toUpperCase()}function RP(w,_,N){if(w=xi(w),w&&(N||_===n))return $t(w);if(!w||!(_=Jo(_)))return w;var re=ci(w),ve=ci(_),Te=_a(re,ve),Ve=ul(re,ve)+1;return Su(re,Te,Ve).join("")}function l6(w,_,N){if(w=xi(w),w&&(N||_===n))return w.slice(0,r0(w)+1);if(!w||!(_=Jo(_)))return w;var re=ci(w),ve=ul(re,ci(_))+1;return Su(re,0,ve).join("")}function zS(w,_,N){if(w=xi(w),w&&(N||_===n))return w.replace(ta,"");if(!w||!(_=Jo(_)))return w;var re=ci(w),ve=_a(re,ci(_));return Su(re,ve).join("")}function VP(w,_){var N=le,re=Q;if(nl(_)){var ve="separator"in _?_.separator:ve;N="length"in _?Nr(_.length):N,re="omission"in _?Jo(_.omission):re}w=xi(w);var Te=w.length;if(Id(w)){var Ve=ci(w);Te=Ve.length}if(N>=Te)return w;var Fe=N-ef(re);if(Fe<1)return re;var Je=Ve?Su(Ve,0,Fe).join(""):w.slice(0,Fe);if(ve===n)return Je+re;if(Ve&&(Fe+=Je.length-Fe),K3(ve)){if(w.slice(Fe).search(ve)){var _t,Et=Je;for(ve.global||(ve=os(ve.source,xi(On.exec(ve))+"g")),ve.lastIndex=0;_t=ve.exec(Et);)var Dt=_t.index;Je=Je.slice(0,Dt===n?Fe:Dt)}}else if(w.indexOf(Jo(ve),Fe)!=Fe){var Kt=Je.lastIndexOf(ve);Kt>-1&&(Je=Je.slice(0,Kt))}return Je+re}function NP(w){return w=xi(w),w&&lo.test(w)?w.replace(Er,aA):w}var zP=G(function(w,_,N){return w+(N?" ":"")+_.toUpperCase()}),s6=V("toUpperCase");function u6(w,_,N){return w=xi(w),_=N?n:_,_===n?pp(w)?sh(w):Zc(w):w.match(_)||[]}var OS=Sr(function(w,_){try{return Jn(w,n,_)}catch(N){return Ch(N)?N:new Qn(N)}}),OP=Gd(function(w,_){return gr(_,function(N){N=Tu(N),Ol(w,N,Rt(w[N],w))}),w});function FP(w){var _=w==null?0:w.length,N=Kn();return w=_?Fr(w,function(re){if(typeof re[1]!="function")throw new Ms(o);return[N(re[0]),re[1]]}):[],Sr(function(re){for(var ve=-1;++ve<_;){var Te=w[ve];if(Jn(Te[0],this,re))return Jn(Te[1],this,re)}})}function QP(w){return u0(Ko(w,h))}function c6(w){return function(){return w}}function jP(w,_){return w==null||w!==w?_:w}var UP=Le(),f6=Le(!0);function wf(w){return w}function d6(w){return lf(typeof w=="function"?w:Ko(w,h))}function GP(w){return au(Ko(w,h))}function YP(w,_){return qa(w,Ko(_,h))}var WP=Sr(function(w,_){return function(N){return Al(N,w,_)}}),XP=Sr(function(w,_){return function(N){return Al(w,N,_)}});function A6(w,_,N){var re=lu(_),ve=dl(_,re);N==null&&!(nl(_)&&(ve.length||!re.length))&&(N=_,_=w,w=this,ve=dl(_,lu(_)));var Te=!(nl(N)&&"chain"in N)||!!N.chain,Ve=b0(w);return gr(ve,function(Fe){var Je=_[Fe];w[Fe]=Je,Ve&&(w.prototype[Fe]=function(){var _t=this.__chain__;if(Te||_t){var Et=w(this.__wrapped__),Dt=Et.__actions__=yo(this.__actions__);return Dt.push({func:Je,args:arguments,thisArg:w}),Et.__chain__=_t,Et}return Je.apply(w,sl([this.value()],arguments))})}),w}function KP(){return va._===this&&(va._=v1),this}function h6(){}function FS(w){return w=Nr(w),Sr(function(_){return sf(_,w)})}var p6=Wt(Fr),ZP=Wt(_s),JP=Wt(Kc);function vg(w){return sn(w)?q(Tu(w)):bn(w)}function mg(w){return function(_){return w==null?n:po(w,_)}}var qP=wo(),eH=wo(!0);function v6(){return[]}function m6(){return!1}function tH(){return{}}function nH(){return""}function rH(){return!0}function QS(w,_){if(w=Nr(w),w<1||w>ae)return[];var N=fe,re=Ki(w,fe);_=Kn(_),w-=fe;for(var ve=et(re,_);++N<w;)_(N);return ve}function aH(w){return Qr(w)?Fr(w,Tu):Ha(w)?[w]:yo(r2(xi(w)))}function iH(w){var _=++yc;return xi(w)+_}var oH=Mt(function(w,_){return w+_},0),lH=Pa("ceil"),sH=Mt(function(w,_){return w/_},1),uH=Pa("floor");function cH(w){return w&&w.length?Hs(w,wf,Js):n}function fH(w,_){return w&&w.length?Hs(w,Kn(_,2),Js):n}function dH(w){return A1(w,wf)}function AH(w,_){return A1(w,Kn(_,2))}function hH(w){return w&&w.length?Hs(w,wf,Tl):n}function pH(w,_){return w&&w.length?Hs(w,Kn(_,2),Tl):n}var vH=Mt(function(w,_){return w*_},1),mH=Pa("round"),gH=Mt(function(w,_){return w-_},0);function yH(w){return w&&w.length?at(w,wf):0}function x2(w,_){return w&&w.length?at(w,Kn(_,2)):0}return xe.after=Qe,xe.ary=dt,xe.assign=gf,xe.assignIn=b2,xe.assignInWith=Ip,xe.assignWith=Eh,xe.at=kS,xe.before=Lt,xe.bind=Rt,xe.bindAll=OP,xe.bindKey=It,xe.castArray=bS,xe.chain=d2,xe.chunk=dA,xe.compact=a2,xe.concat=hf,xe.cond=FP,xe.conforms=QP,xe.constant=c6,xe.countBy=tg,xe.create=Lp,xe.curry=rn,xe.curryRight=wn,xe.debounce=Sn,xe.defaults=Rp,xe.defaultsDeep=q3,xe.defer=vl,xe.delay=it,xe.difference=ca,xe.differenceBy=tl,xe.differenceWith=no,xe.drop=Gl,xe.dropRight=ac,xe.dropRightWhile=vh,xe.dropWhile=Yl,xe.fill=Sp,xe.filter=v2,xe.flatMap=rg,xe.flatMapDeep=F9,xe.flatMapDepth=ag,xe.flatten=i2,xe.flattenDeep=v0,xe.flattenDepth=ou,xe.flip=Ue,xe.flow=UP,xe.flowRight=f6,xe.fromPairs=o2,xe.functions=HS,xe.functionsIn=hP,xe.groupBy=y0,xe.initial=l2,xe.intersection=Xm,xe.intersectionBy=pf,xe.intersectionWith=mh,xe.invert=DS,xe.invertBy=pP,xe.invokeMap=Y3,xe.iteratee=d6,xe.keyBy=Q9,xe.keys=lu,xe.keysIn=yf,xe.map=gA,xe.mapKeys=vP,xe.mapValues=mP,xe.matches=GP,xe.matchesProperty=YP,xe.memoize=lt,xe.merge=gP,xe.mergeWith=$S,xe.method=WP,xe.methodOf=XP,xe.mixin=A6,xe.negate=Ft,xe.nthArg=FS,xe.omit=yP,xe.omitBy=wP,xe.once=Hn,xe.orderBy=j9,xe.over=p6,xe.overArgs=er,xe.overEvery=ZP,xe.overSome=JP,xe.partial=hn,xe.partialRight=tr,xe.partition=Pp,xe.pick=bP,xe.pickBy=IS,xe.property=vg,xe.propertyOf=mg,xe.pull=Ep,xe.pullAll=m0,xe.pullAllBy=gs,xe.pullAllWith=k1,xe.pullAt=No,xe.range=qP,xe.rangeRight=eH,xe.rearg=Xl,xe.reject=p,xe.remove=Wl,xe.rest=ei,xe.reverse=gh,xe.sampleSize=T,xe.set=t6,xe.setWith=n6,xe.shuffle=L,xe.slice=pA,xe.sortBy=we,xe.sortedUniq=u2,xe.sortedUniqBy=vA,xe.split=DP,xe.spread=M1,xe.tail=R3,xe.take=V3,xe.takeRight=Bp,xe.takeRightWhile=c2,xe.takeWhile=L9,xe.tap=O9,xe.throttle=U9,xe.thru=dd,xe.toArray=w2,xe.toPairs=a4,xe.toPairsIn=LS,xe.toPath=aH,xe.toPlainObject=Z9,xe.transform=cg,xe.unary=qM,xe.union=R9,xe.unionBy=N3,xe.unionWith=z3,xe.uniq=g0,xe.uniqBy=V9,xe.uniqWith=wh,xe.unset=fg,xe.unzip=f2,xe.unzipWith=zo,xe.update=CP,xe.updateWith=RS,xe.values=S2,xe.valuesIn=SP,xe.without=N9,xe.words=u6,xe.wrap=eP,xe.xor=O3,xe.xorBy=qm,xe.xorWith=z9,xe.zip=F3,xe.zipObject=Q3,xe.zipObjectDeep=j3,xe.zipWith=mf,xe.entries=a4,xe.entriesIn=LS,xe.extend=b2,xe.extendWith=Ip,A6(xe,xe),xe.add=oH,xe.attempt=OS,xe.camelCase=NS,xe.capitalize=dg,xe.ceil=lH,xe.clamp=VS,xe.clone=CS,xe.cloneDeep=nP,xe.cloneDeepWith=SS,xe.cloneWith=tP,xe.conformsTo=G9,xe.deburr=Ag,xe.defaultTo=jP,xe.divide=sH,xe.endsWith=i4,xe.eq=P1,xe.escape=hg,xe.escapeRegExp=pg,xe.every=ng,xe.find=kp,xe.findIndex=p0,xe.findKey=J9,xe.findLast=G3,xe.findLastIndex=AA,xe.findLastKey=e4,xe.floor=uH,xe.forEach=Mp,xe.forEachRight=bh,xe.forIn=ug,xe.forInRight=MS,xe.forOwn=t4,xe.forOwnRight=PS,xe.get=q9,xe.gt=rP,xe.gte=aP,xe.has=n4,xe.hasIn=C2,xe.head=hA,xe.identity=wf,xe.includes=m2,xe.indexOf=T1,xe.inRange=xP,xe.invoke=r4,xe.isArguments=Hp,xe.isArray=Qr,xe.isArrayBuffer=iP,xe.isArrayLike=Is,xe.isArrayLikeObject=ml,xe.isBoolean=ig,xe.isBuffer=w0,xe.isDate=oP,xe.isElement=lP,xe.isEmpty=xS,xe.isEqual=sP,xe.isEqualWith=X3,xe.isError=Ch,xe.isFinite=Y9,xe.isFunction=b0,xe.isInteger=og,xe.isLength=lg,xe.isMap=W9,xe.isMatch=ES,xe.isMatchWith=BS,xe.isNaN=Sh,xe.isNative=uP,xe.isNil=fP,xe.isNull=cP,xe.isNumber=y2,xe.isObject=nl,xe.isObjectLike=gl,xe.isPlainObject=Dp,xe.isRegExp=K3,xe.isSafeInteger=dP,xe.isSet=X9,xe.isString=Z3,xe.isSymbol=Ha,xe.isTypedArray=xh,xe.isUndefined=J3,xe.isWeakMap=sg,xe.isWeakSet=_S,xe.join=vf,xe.kebabCase=BP,xe.last=ku,xe.lastIndexOf=xp,xe.lowerCase=r6,xe.lowerFirst=a6,xe.lt=TS,xe.lte=K9,xe.max=cH,xe.maxBy=fH,xe.mean=dH,xe.meanBy=AH,xe.min=hH,xe.minBy=pH,xe.stubArray=v6,xe.stubFalse=m6,xe.stubObject=tH,xe.stubString=nH,xe.stubTrue=rH,xe.multiply=vH,xe.nth=s2,xe.noConflict=KP,xe.noop=h6,xe.now=Ie,xe.pad=_P,xe.padEnd=TP,xe.padStart=rJ,xe.parseInt=kP,xe.random=EP,xe.reduce=W3,xe.reduceRight=g2,xe.repeat=MP,xe.replace=PP,xe.result=e6,xe.round=mH,xe.runInContext=Ye,xe.sample=m,xe.size=W,xe.snakeCase=HP,xe.some=ne,xe.sortedIndex=Km,xe.sortedIndexBy=Zm,xe.sortedIndexOf=Kd,xe.sortedLastIndex=yh,xe.sortedLastIndexBy=Jm,xe.sortedLastIndexOf=Zd,xe.startCase=$P,xe.startsWith=i6,xe.subtract=gH,xe.sum=yH,xe.sumBy=x2,xe.template=IP,xe.times=QS,xe.toFinite=yA,xe.toInteger=Nr,xe.toLength=$p,xe.toLower=LP,xe.toNumber=Jd,xe.toSafeInteger=AP,xe.toString=xi,xe.toUpper=o6,xe.trim=RP,xe.trimEnd=l6,xe.trimStart=zS,xe.truncate=VP,xe.unescape=NP,xe.uniqueId=iH,xe.upperCase=zP,xe.upperFirst=s6,xe.each=Mp,xe.eachRight=bh,xe.first=hA,A6(xe,function(){var w={};return Ma(xe,function(_,N){la.call(xe.prototype,N)||(w[N]=_)}),w}(),{chain:!1}),xe.VERSION=r,gr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){xe[w].placeholder=xe}),gr(["drop","take"],function(w,_){cr.prototype[w]=function(N){N=N===n?1:ii(Nr(N),0);var re=this.__filtered__&&!_?new cr(this):this.clone();return re.__filtered__?re.__takeCount__=Ki(N,re.__takeCount__):re.__views__.push({size:Ki(N,fe),type:w+(re.__dir__<0?"Right":"")}),re},cr.prototype[w+"Right"]=function(N){return this.reverse()[w](N).reverse()}}),gr(["filter","map","takeWhile"],function(w,_){var N=_+1,re=N==Y||N==te;cr.prototype[w]=function(ve){var Te=this.clone();return Te.__iteratees__.push({iteratee:Kn(ve,3),type:N}),Te.__filtered__=Te.__filtered__||re,Te}}),gr(["head","last"],function(w,_){var N="take"+(_?"Right":"");cr.prototype[w]=function(){return this[N](1).value()[0]}}),gr(["initial","tail"],function(w,_){var N="drop"+(_?"":"Right");cr.prototype[w]=function(){return this.__filtered__?new cr(this):this[N](1)}}),cr.prototype.compact=function(){return this.filter(wf)},cr.prototype.find=function(w){return this.filter(w).head()},cr.prototype.findLast=function(w){return this.reverse().find(w)},cr.prototype.invokeMap=Sr(function(w,_){return typeof w=="function"?new cr(this):this.map(function(N){return Al(N,w,_)})}),cr.prototype.reject=function(w){return this.filter(Ft(Kn(w)))},cr.prototype.slice=function(w,_){w=Nr(w);var N=this;return N.__filtered__&&(w>0||_<0)?new cr(N):(w<0?N=N.takeRight(-w):w&&(N=N.drop(w)),_!==n&&(_=Nr(_),N=_<0?N.dropRight(-_):N.take(_-w)),N)},cr.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},cr.prototype.toArray=function(){return this.take(fe)},Ma(cr.prototype,function(w,_){var N=/^(?:filter|find|map|reject)|While$/.test(_),re=/^(?:head|last)$/.test(_),ve=xe[re?"take"+(_=="last"?"Right":""):_],Te=re||/^find/.test(_);ve&&(xe.prototype[_]=function(){var Ve=this.__wrapped__,Fe=re?[1]:arguments,Je=Ve instanceof cr,_t=Fe[0],Et=Je||Qr(Ve),Dt=function(ya){var Oa=ve.apply(xe,sl([ya],Fe));return re&&Kt?Oa[0]:Oa};Et&&N&&typeof _t=="function"&&_t.length!=1&&(Je=Et=!1);var Kt=this.__chain__,xn=!!this.__actions__.length,ir=Te&&!Kt,Wr=Je&&!xn;if(!Te&&Et){Ve=Wr?Ve:new cr(this);var hr=w.apply(Ve,Fe);return hr.__actions__.push({func:dd,args:[Dt],thisArg:n}),new fo(hr,Kt)}return ir&&Wr?w.apply(this,Fe):(hr=this.thru(Dt),ir?re?hr.value()[0]:hr.value():hr)})}),gr(["pop","push","shift","sort","splice","unshift"],function(w){var _=ls[w],N=/^(?: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 _.apply(Qr(Te)?Te:[],ve)}return this[N](function(Ve){return _.apply(Qr(Ve)?Ve:[],ve)})}}),Ma(cr.prototype,function(w,_){var N=xe[_];if(N){var re=N.name+"";la.call(Xf,re)||(Xf[re]=[]),Xf[re].push({name:_,func:N})}}),Xf[Ze(n,E).name]=[{name:"wrapper",func:n}],cr.prototype.clone=Bn,cr.prototype.reverse=Ys,cr.prototype.value=Ja,xe.prototype.at=A2,xe.prototype.chain=mA,xe.prototype.commit=h2,xe.prototype.next=p2,xe.prototype.plant=Tp,xe.prototype.reverse=eg,xe.prototype.toJSON=xe.prototype.valueOf=xe.prototype.value=U3,xe.prototype.first=xe.prototype.head,Rl&&(xe.prototype[Rl]=_p),xe},mc=a0();Re?((Re.exports=mc)._=mc,he._=mc):va._=mc}).call(M4)}(hw,hw.exports);var sI=hw.exports;const Zn=Xp(sI);var Ene="pl7.app/axisNature",uI="pl7.app/label",Bne="pl7.app/columnAsAxis/name",_ne="pl7.app/columnAsAxis/domain",F2="pl7.app/isSubset",Ng="pl7.app/isDiscreteFilter",Tne="pl7.app/discreteValues",kne="pl7.app/graph/axis/highCardinality",Mne="pl7.app/graph/isVirtual",cI="pl7.app/isLinkerColumn",Lr=class rw{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return I1(this)}static fromAxisSpec(t){return new rw({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>rw.fromAxisSpec(n))}copy(){return new rw({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 rw(t)}},Q2=class ste{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return I1(this)}static fromPojo(t){return new ste(t)}};function kn(e){return e!==null&&e.kind==="column"}function pw(e){return e!==null&&e.kind==="axis"}function en(e){const t=JSON.parse(e);if(t.kind==="column")return Q2.fromPojo(t);if(t.kind==="axis")return Lr.fromPojo(t);throw Error("wrong column or axis object")}async function Pne(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((o,s,c)=>(o[String(s)]=String(i[c]),o),{})}return null}async function Hne(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 Dne(e,t,n,r,a,i,o=!0){var s,c,f,A;const h=en(t);if(kn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);if(!v)return;const g=v.axesSpec.map(E=>Lr.fromAxisSpec(E).toCanonicalString()),C=[],b={};o&&g.forEach((E,k)=>{!a.has(E)&&!i.has(E)&&(C.push(E),b[E]=k)});const B={kind:"column",name:v.name,label:n??await Kr(e,t,[]),type:v.valueType,spec:v,annotations:v.annotations,isSubsetFilter:((s=v.annotations)==null?void 0:s[F2])==="true",isDiscreteFilter:v.valueType==="String"||((c=v.annotations)==null?void 0:c[Ng])==="true",axesToBeFixed:C,axesToBeFixedIndexes:b};r.set(h.toCanonicalString(),B);for(const E of v.axesSpec){const P=Lr.fromAxisSpec(E).toCanonicalString();if(r.has(P))continue;const I=hI(E),$={kind:"axis",name:E.name,label:await Kr(e,P,[t]),type:E.type,mustBeConsumed:I,dividable:!1,spec:E,annotations:E.annotations,isSubsetFilter:((f=E.annotations)==null?void 0:f[F2])==="true",isDiscreteFilter:E.type==="String"||((A=E.annotations)==null?void 0:A[Ng])==="true",parentSources:[t]};r.set(P,$)}}}function fI(e){const t=en(e),{name:n,type:r}=t;return kn(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 vw(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function $ne(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 o=[];return(r==null?void 0:r.max)!==void 0&&o.push({type:"bySingleColumnV2",column:pw(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&&o.push({type:"bySingleColumnV2",column:pw(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}),o}else if(n==="subset")return[{type:"bySingleColumnV2",column:pw(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}];return typeof a>"u"?[]:[{type:"bySingleColumnV2",column:pw(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function tv(e){const t=[];for(const n of e)t.push(...$ne(n));return t}function dI(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[Bne],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[_ne];return I1({name:s,domain:c})}const i=e.name,o=e.domain;return I1({name:i,domain:o})}async function AI(e,t,n){var r;for(const a of n){const i=en(a);if(kn(i)){const o=await e.pFrameProvider.getColumnSpecById(i),s=((r=o==null?void 0:o.axesSpec)!=null?r:[]).find(c=>Lr.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}var Ine="pl7.app/label";async function wa(e,t,n){const r=en(t);if(kn(r))return;async function a(c){const f=await AI(e,c,n);return f?dI(f):null}const i=await e.pFrameProvider.getColumnsFull([],!1,void 0,[Ine]),o=await a(r),s=i.find(({spec:c})=>c&&c.axesSpec.length===1&&dI(c.axesSpec[0])===o);return s?new Q2({name:s.columnId,type:s.spec.valueType}):void 0}async function Kr(e,t,n){var r,a;const i=en(t),o=await wa(e,t,n);let s;if(kn(i)?s=await e.pFrameProvider.getColumnSpecById(o??i):s=o?await e.pFrameProvider.getColumnSpecById(o):await AI(e,i,n),!s)return"";const c=(a=(r=s.annotations)==null?void 0:r[uI])!=null?a:s.name;return e.labelsModifier(s.name,c)}function hI(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[Ene])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function nv(e){var t,n;return((t=e.annotations)==null?void 0:t[F2])==="true"||((n=e.annotations)==null?void 0:n[Ng])==="true",!0}function Lne(e){var t,n;return!e.name.includes("metadata")&&((t=e.annotations)==null?void 0:t[Mne])!=="true"&&((n=e.annotations)==null?void 0:n[F2])!=="true"}async function rv(e){var t;const n=await e.pFrameProvider.getColumns([],!1,void 0,void 0,{[cI]:"true"}),r={};for(const a of n){const i=await e.pFrameProvider.getColumnSpecById(a),o=(t=i==null?void 0:i.axesSpec)!=null?t:[];if(i&&o.length){const[s,c]=o,f=Lr.fromAxisSpec(s).toCanonicalString(),A=Lr.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 j2(e,t){const n=new Set;for(const r of t){const a=en(r);if(kn(a)){const i=await e.pFrameProvider.getColumnSpecById(a);if(!i)continue;i.axesSpec.forEach(o=>{n.add(Lr.fromAxisSpec(o).toCanonicalString())})}}return n}function Rne(e,t,n){const r={},a=new Set([t]);let i=[t];for(;i.length;){const o=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)||(o.add(f),a.add(f))}i=[...o]}return null}function Vne(e,t,n){const r=[...t].map(i=>Rne(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 jc(e,t,n,r,a){const i=en(r);if(!kn(i))return[];const o=await e.pFrameProvider.getColumnSpecById(i);if(!o)return[];const s=o.axesSpec.map(f=>Lr.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 U2=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)),o=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let s=vw(n);return i.forEach(c=>{s=this.deleteSelected(e,t,s,c)}),o.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 vw(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,o=new Set;for(const f of this.dataInputs)for(const A of t.components[f].selectorStates){const h=en(A.selectedSource);if(kn(h)){const v=await e.pFrameProvider.getColumnSpecById(h);v&&v.axesSpec.forEach(g=>o.add(Lr.fromAxisSpec(g).toCanonicalString()))}}const s=new Set;let c=[...o];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)&&!o.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 Dne(e,g,n[g],i,o,s,v)}return i}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>fI(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 o=t.components[a].selectorStates.map(s=>en(s.selectedSource));return r.concat(o)},[]),!1);return Sne(n,r=>r.spec).reduce((r,a)=>{const i=new Q2({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[],r=Lne){var a,i;const o=this.createEmptyComponentsGuide(t),s=this.getConsumedOptionsSet(t),c=new Set(this.ignoredOptionIdNames),f=new Set(n),A=await rv(e),h=await this.getLabelsMap(e,t),v=await this.getSelectedSourcesInfo(e,t,h,A),g=new Map,C={...this.simpleComponentControllers,...this.filterComponentControllers},b=new Set;for(const[$,z]of Object.entries(C)){const F=await z.getOptions(e,t,h,s,A,r,c,f);this.dataInputs.includes($)||F.options.forEach(Z=>{b.add(Z.value)});for(const[Z,ee]of F.optionsInfo)g.set(Z,ee);o[$]=F}const B=$=>{const z=g.get($);z&&z.kind==="axis"&&(z.mustBeConsumed=!0);const F=v.get($);F&&F.kind==="axis"&&(F.mustBeConsumed=!0)},E=await this.getMustBeConsumedAxes(e,t);for(const $ of E)B($);if(this.dontAllowUnfilteredHighCardinality){const $=F=>{var Z;return((Z=F==null?void 0:F.annotations)==null?void 0:Z[kne])==="true"},z=(i=(a=t.components.filters)==null?void 0:a.selectorStates.reduce((F,Z)=>{const ee=v.get(Z.selectedSource);return(ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter($).forEach(Q=>F.add(Lr.fromAxisSpec(Q).toCanonicalString())),(ee==null?void 0:ee.kind)==="axis"&&$(ee.spec)&&F.add(Lr.fromAxisSpec(ee.spec).toCanonicalString()),F},new Set))!=null?i:new Set;this.dataInputs.forEach(F=>{for(const{selectedSource:Z}of t.components[F].selectorStates){const ee=v.get(Z);if((ee==null?void 0:ee.kind)==="column"&&ee.spec.axesSpec.filter($).forEach(Q=>{const j=Lr.fromAxisSpec(Q).toCanonicalString();!b.has(j)&&!z.has(j)&&b.add(j),z.has(j)||B(j)}),(ee==null?void 0:ee.kind)==="axis"&&$(ee.spec)){const le=Lr.fromAxisSpec(ee.spec).toCanonicalString();b.has(le)||b.add(le),z.has(le)||B(le)}}})}const k=new Set;for(const{selectorStates:$}of Object.values(t.components))for(const{selectedSource:z}of $){const F=v.get(z);F&&F.kind==="column"&&F.axesToBeFixed.forEach(Z=>{k.add(Z)})}const P=await this.isConsistent(e,t,A),I=$=>{var z,F,Z;const ee=(z=en($).toCanonicalString())!=null?z:$;return(Z=(F=g.get(ee))!=null?F:v.get(ee))!=null?Z:fI($)};return{components:o,getSourceInfo:I,freeOptionsSet:b,axesToBeFixedSet:k,readyData:this.readyDataInputs(t),ready:this.readyForPlotBuilding(e,t,P,b,I),consistent:P}}async getUniqueSourceValuesWithLabels(e,t,n){var r;const a=t.getSourceInfo(n),i=(r=a.annotations)==null?void 0:r[Tne],o=i?JSON.parse(i).map(s=>String(s)):null;if(a.kind==="axis"){const s=en(n),c=a.parentSources.map(en),f=await wa(e,n,a.parentSources),A=o??await e.pFrameProvider.getAxisUniqueValues(s,c),h=await Hne(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 wa(e,n,[]),f=await e.pFrameProvider.getColumnUniqueValues(s),A=await Pne(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 o=!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})){o=!0;break}}if(o)break}return this.requiredComponents.every(s=>t.components[s].selectorStates.length>0)&&!i&&!o}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},pI=class ute{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:o=[],annotations:s={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...ute.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...o],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=vw(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=vw(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 o(c){const f=Lr.fromAxisSpec(c);return i.has(f.toCanonicalString())}const s=await Promise.all(a.selectorStates.map(async({selectedSource:c})=>{const f=en(c);if(kn(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=>o(v)):this.settings.columnsWithExtraAxesAllowed&&!this.settings.isDataComponent?A.axesSpec.some(v=>o(v)):i.size===0||A.axesSpec.some(v=>o(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=>kn(c)),o=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{o.add(Lr.fromAxisSpec(f).toCanonicalString())})}),o}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const o=n.components[i].selectorStates.map(s=>en(s.selectedSource));return a.push(...o),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const o of a)if(kn(o)){const s=await t.pFrameProvider.getColumnSpecById(o);(r=s==null?void 0:s.axesSpec)==null||r.forEach(c=>{const f=Lr.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n,r){var a,i,o,s,c,f,A;const h=this.getParentSelectedSources(t,n),v=new Set,g=new Set,C=new Set,b=new Map;for(const E of h)if(kn(E)){const k=await t.pFrameProvider.getColumnSpecById(E);for(const P of(a=k==null?void 0:k.axesSpec)!=null?a:[]){const $=Lr.fromAxisSpec(P).toCanonicalString();if(v.has($))continue;v.add($),g.add($);const z=hI(P);b.set($,{kind:"axis",name:P.name,label:await Kr(t,$,[E.toCanonicalString()]),type:P.type,mustBeConsumed:z,dividable:!1,spec:P,annotations:P.annotations,isSubsetFilter:((i=P.annotations)==null?void 0:i[F2])==="true",isDiscreteFilter:P.type==="String"||((o=P.annotations)==null?void 0:o[Ng])==="true",parentSources:[E.toCanonicalString()]})}}let B=[...v];for(;B.length;){const E=[];for(const k of B)if(r[k]){const P=Object.keys(r[k]);for(const I of P)if(!v.has(I)){E.push(I),v.add(I),C.add(I);const{spec:$,id:z}=r[k][I];for(const F of $.axesSpec){const Z=Lr.fromAxisSpec(F).toCanonicalString();b.has(Z)||b.set(Z,{kind:"axis",name:F.name,label:(c=(s=F.annotations)==null?void 0:s[uI])!=null?c:"",type:F.type,mustBeConsumed:!1,dividable:!1,spec:F,annotations:F.annotations,isSubsetFilter:((f=F.annotations)==null?void 0:f[F2])==="true",isDiscreteFilter:F.type==="String"||((A=F.annotations)==null?void 0:A[Ng])==="true",parentSources:[z.toCanonicalString()]})}}}B=E}return{allowedAxes:v,parentAxes:g,linkerAxes:C,optionsInfo:b}}async getOptions(t,n,r,a,i,o,s=new Set,c=new Set){var f,A,h,v,g,C,b,B;const E=this.settings.multipleSelectors,k=this.settings.required,P=await this.checkStateConsistency(t,n,i);if(this.dependsOn.length&&this.dependsOn.some(j=>n.components[j].selectorStates.length===0))return{multipleSelectors:E,required:k,stateConsistency:P,options:[],optionsInfo:new Map};if(this.strictlyDependsOnParents&&!this.settings.isDataComponent&&this.parentComponents.some(j=>n.components[j].selectorStates.length===0))return{multipleSelectors:E,required:k,stateConsistency:P,options:[],optionsInfo:new Map};const I=this.getParentSelectedSources(t,n),$=(await t.pFrameProvider.getColumns([],!1,this.allowedTypes,void 0,this.annotations)).filter(j=>!a.has(j.toCanonicalString())),{allowedAxes:z,parentAxes:F,linkerAxes:Z,optionsInfo:ee}=await this.getAllowedAxes(t,n,i),le=n.components[this.componentName],Q=[];if(this.settings.axesAllowed)for(const j of F){const U=en(j),Y=ee.get(U.toCanonicalString()),X=this.allowedTypes.includes(Y.spec.type),te=Object.entries(this.annotations).every(([Ce,De])=>{var ke;return((ke=Y.spec.annotations)==null?void 0:ke[Ce])===De}),pe=this.checkSourceBySpec?this.checkSourceBySpec(Y.spec,n):!0,ae=!this.settings.homogeneous||!(Y!=null&&Y.mustBeConsumed),ge=!a.has(j),me=s.has(U.name)||c.has(U.toCanonicalString()),fe=le.selectorStates.some(Ce=>Ce.selectedSource===j);X&&te&&pe&&ae&&ge&&!me&&!fe&&Q.push({value:j})}if(this.settings.columnsAllowed){const j=!this.settings.columnsWithExtraAxesAllowed&&this.strictlyDependsOnParents;for(const U of $){const Y=U.toCanonicalString(),X=en(Y),te=await t.pFrameProvider.getColumnSpecById(X),pe=((f=te==null?void 0:te.annotations)==null?void 0:f[cI])==="true";if(!te||xne(te)||pe||this.checkSourceBySpec&&!this.checkSourceBySpec(te,n)||this.settings.isDataComponent&&!o(te)||j&&((A=te.axesSpec)!=null&&A.some(De=>!z.has(Lr.fromAxisSpec(De).toCanonicalString())))||I.length&&!((h=te.axesSpec)!=null&&h.some(De=>z.has(Lr.fromAxisSpec(De).toCanonicalString()))))continue;const ae=(g=(v=te==null?void 0:te.axesSpec)==null?void 0:v.map(De=>Lr.fromAxisSpec(De).toCanonicalString()))!=null?g:[],ge=[],me={};if(this.settings.columnsWithExtraAxesAllowed&&ae.forEach((De,ke)=>{z.has(De)||(ge.push(De),me[De]=ke)}),te){const De=(C=r[Y])!=null?C:await Kr(t,U.toCanonicalString(),[]),ke={kind:"column",name:te.name,label:De,type:te.valueType,spec:te,annotations:te.annotations,isSubsetFilter:((b=te.annotations)==null?void 0:b[F2])==="true",isDiscreteFilter:te.valueType==="String"||((B=te.annotations)==null?void 0:B[Ng])==="true",axesToBeFixed:ge,axesToBeFixedIndexes:me};ee.set(X.toCanonicalString(),ke)}const fe=s.has(X.name)||c.has(X.toCanonicalString()),Ce=n.components[this.componentName].selectorStates.some(De=>De.selectedSource===Y);!fe&&!Ce&&Q.push({value:Y})}}return{multipleSelectors:E,required:k,stateConsistency:P,options:Q,optionsInfo:ee}}};pI.DefaultSettings={isDataComponent:!1,multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,columnsWithExtraAxesAllowed:!0,dimensionConsumer:!1};var En=pI,Nne={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 mw(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 o=n.map(s=>{const c=s.toCanonicalString();return kn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var zne=class extends U2{constructor(){super({valueSize:new En({componentName:"valueSize",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueColor"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),valueColor:new En({componentName:"valueColor",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["valueSize"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new En({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),y:new En({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tooltipContent:new En({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["valueSize","valueColor"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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=>Lr.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,o=(r=t.components.valueSize.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("Value column is not valid");const s=en(i),c=en(o);if(!s||!c||!kn(s)&&!kn(c))throw Error("Value column is not valid");const f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=await rv(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=tv(h),g=h.map(U=>en(U.selectedSource)).filter(kn),C=[s,c].filter(kn),b=C.map(U=>U.toCanonicalString()),B=await j2(e,b),E=[t.components.facetBy,t.components.x,t.components.y,t.components.tooltipContent],k=[],P=C.map(()=>[]),I=[],$=[];for(const{selectedSource:U,fixedAxes:Y}of h)$.push(...await jc(e,A,B,U,Y)),P.push((Y??[]).map(({axisIdx:X,axisValue:te})=>({idx:X,value:te})));for(const U of E)for(const{selectedSource:Y,fixedAxes:X}of U.selectorStates){k.push(en(Y)),I.push((X??[]).map(({axisIdx:pe,axisValue:ae})=>({idx:pe,value:ae}))),$.push(...await jc(e,A,B,Y,X));const te=await wa(e,Y,b);te&&k.push(te)}const z=await e.pFrameProvider.getTableOuterJoin([...C,...$,...g],k,v,!0,P,I);k.forEach(U=>{const Y=U.toCanonicalString();f.values[Y]=kn(U)?z.columnsData[Y]:z.axesData[Y]}),f.values[i]=kn(s)?z.columnsData[i]:z.axesData[i],f.values[o]=kn(c)?z.columnsData[o]:z.axesData[o];const F=t.components.x.selectorStates.map(U=>U.selectedSource),Z=F.join(", "),ee=await Promise.all(F.map(async U=>{var Y,X;return(X=(Y=await wa(e,U,b))==null?void 0:Y.toCanonicalString())!=null?X:U}));f.values[Z]=mw(z,F),f.values.xLabels=mw(z,ee);const le=t.components.y.selectorStates.map(U=>U.selectedSource),Q=le.join(", "),j=await Promise.all(le.map(async U=>{var Y,X;return(X=(Y=await wa(e,U,b))==null?void 0:Y.toCanonicalString())!=null?X:U}));return f.values[Q]=mw(z,le),f.values.yLabels=mw(z,j),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 o=en(a),s=en(i);if(!kn(o)&&!kn(s))throw Error("Value column is not valid");const c=[o,s].filter(kn).map(P=>P.toCanonicalString()),f={type:"column",value:a,label:await Kr(e,a,[])},A={type:"column",value:i,label:await Kr(e,i,[])},v=t.components.x.selectorStates.map(({selectedSource:P})=>P).join(", "),C=t.components.y.selectorStates.map(({selectedSource:P})=>P).join(", "),b=await Promise.all(t.components.facetBy.selectorStates.map(async P=>{var I,$;return{type:"column",value:($=(I=await wa(e,P.selectedSource,c))==null?void 0:I.toCanonicalString())!=null?$:P.selectedSource}})),B=(await Promise.all(t.components.x.selectorStates.map(P=>Kr(e,P.selectedSource,c)))).join(", "),E=(await Promise.all(t.components.y.selectorStates.map(P=>Kr(e,P.selectedSource,c)))).join(", "),k=await Promise.all(t.components.tooltipContent.selectorStates.map(async P=>{var I,$;const z=P.selectedSource;return{type:"column",label:await Kr(e,z,c)||z,value:z,valueLabels:($=(I=await wa(e,z,c))==null?void 0:I.toCanonicalString())!=null?$:z}}));return{type:"bubble",valueColor:f,valueSize:A,xColumn:{type:"column",value:v,label:B,valueLabels:"xLabels"},yColumn:{type:"column",value:C,label:E,valueLabels:"yLabels"},facetBy:b,tooltips:{show:!0,content:k}}}},One={type:"histogram",components:{value:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]}},dividedAxes:{}},Fne=class extends U2{constructor(){super({value:new En({componentName:"value",allowedTypes:["Int","Long","Double","Float"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),grouping:new En({componentName:"grouping",allowedTypes:["String","Int","Long"],parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,multipleSelectors:!1}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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(!kn(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=I1(t.components))!=null?r:"",values:{}},s=await rv(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=tv(c),A=c.map(P=>en(P.selectedSource)).filter(kn),h=[a],v=await j2(e,h),g=[t.components.facetBy,t.components.grouping],C=[],b=[[]],B=[],E=[];for(const{selectedSource:P,fixedAxes:I}of c)E.push(...await jc(e,s,v,P,I)),E.push(...await jc(e,s,v,P,I)),b.push((I??[]).map(({axisIdx:$,axisValue:z})=>({idx:$,value:z})));for(const P of g)for(const{selectedSource:I,fixedAxes:$}of P.selectorStates){C.push(en(I)),B.push(($??[]).map(({axisIdx:F,axisValue:Z})=>({idx:F,value:Z}))),E.push(...await jc(e,s,v,I,$));const z=await wa(e,I,h);z&&C.push(z)}const k=await e.pFrameProvider.getTableOuterJoin([i,...E,...A],C,f,!0,b,B);return C.forEach(P=>{const I=P.toCanonicalString();o.values[I]=kn(P)?k.columnsData[I]:k.axesData[I]}),o.values[i.toCanonicalString()]=k.columnsData[i.toCanonicalString()],o}async createChartSettings(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(!kn(i))throw Error("Value column is not valid");const o=[a],s={type:"column",value:a,label:await Kr(e,a,[])},c=await Promise.all(t.components.facetBy.selectorStates.map(async A=>{var h,v;return{type:"column",value:(v=(h=await wa(e,A.selectedSource,o))==null?void 0:h.toCanonicalString())!=null?v:A.selectedSource}}));let f;if(t.components.grouping.selectorStates.length){const{selectedSource:A}=t.components.grouping.selectorStates[0];f={type:"column",value:A,label:await Kr(e,A,o),valueLabels:(r=await wa(e,A,o))==null?void 0:r.toCanonicalString()}}return{type:"histogram",valueColumn:s,facetBy:c,grouping:f}}},Qne={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:{}},jne=class extends U2{constructor(){super({y:new En({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{isDataComponent:!0}}),primaryGrouping:new En({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new En({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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||!kn(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=I1(t.components))!=null?n:"",values:{}},o=await rv(e),s=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],c=tv(s),f=s.map(k=>en(k.selectedSource)).filter(kn),A=[r],h=await j2(e,A),v=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],g=[],C=[[]],b=[],B=[];for(const{selectedSource:k,fixedAxes:P}of s)B.push(...await jc(e,o,h,k,P)),C.push((P??[]).map(({axisIdx:I,axisValue:$})=>({idx:I,value:$})));for(const k of v)for(const{selectedSource:P,fixedAxes:I}of k.selectorStates){g.push(en(P)),b.push((I??[]).map(({axisIdx:z,axisValue:F})=>({idx:z,value:F}))),B.push(...await jc(e,o,h,P,I));const $=await wa(e,P,A);$&&g.push($)}const E=await e.pFrameProvider.getTableOuterJoin([a,...B,...f],g,c,!0,C,b);return g.forEach(k=>{const P=k.toCanonicalString();i.values[P]=kn(k)?E.columnsData[P]:E.axesData[P]}),i.values[a.toCanonicalString()]=E.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=en(a);if(!a||!kn(i))throw Error("Y column is not valid");const o={type:"column",value:a,label:await Kr(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 Kr(e,h,s),valueLabels:(n=await wa(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 Kr(e,h,s),valueLabels:(r=await wa(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 wa(e,h.selectedSource,s))==null?void 0:v.toCanonicalString())!=null?g:h.selectedSource,label:await Kr(e,h.selectedSource,s)}}));return{type:"discrete",y:o,primaryGrouping:c,secondaryGrouping:f,facetBy:A}}},Une={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 sE(e){return e?"kind"in e&&e.kind==="PColumn"?e.valueType==="String":e.type==="String":!0}function gw(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 o=n.map(s=>{const c=s.toCanonicalString();return kn(s)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(o)}return a}var Gne=class extends U2{constructor(){super({value:new En({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new En({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),y:new En({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!0}}),yGroupBy:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):!0}}),tooltipContent:new En({componentName:"tooltipContent",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotationsX:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Lr.fromAxisSpec(e).toCanonicalString())}}),annotationsY:new En({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"?Lr.fromAxesSpec(e.axesSpec).every(r=>n.has(r.toCanonicalString())):n.has(Lr.fromAxisSpec(e).toCanonicalString())}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({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=>Lr.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(!kn(i))throw Error("Value column is not valid");const o={type:"columns",id:(r=I1(t.components))!=null?r:"",values:{}},s=await rv(e),c=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],f=tv(c),A=c.map(Q=>en(Q.selectedSource)).filter(kn),h=[a],v=await j2(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],C=[],b=[[]],B=[],E=[];for(const{selectedSource:Q,fixedAxes:j}of c)E.push(...await jc(e,s,v,Q,j)),b.push((j??[]).map(({axisIdx:U,axisValue:Y})=>({idx:U,value:Y})));for(const Q of g)for(const{selectedSource:j,fixedAxes:U}of Q.selectorStates){C.push(en(j)),B.push((U??[]).map(({axisIdx:X,axisValue:te})=>({idx:X,value:te}))),E.push(...await jc(e,s,v,j,U));const Y=await wa(e,j,h);Y&&C.push(Y)}const k=await e.pFrameProvider.getTableOuterJoin([i,...E,...A],C,f,!0,b,B);C.forEach(Q=>{const j=Q.toCanonicalString();o.values[j]=kn(Q)?k.columnsData[j]:k.axesData[j]}),o.values[i.toCanonicalString()]=k.columnsData[i.toCanonicalString()];const P=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(Q=>Q.selectedSource),I=P.join(", ");o.values[I]=gw(k,P);const $=t.components.x.selectorStates.map(Q=>Q.selectedSource),z=await Promise.all($.map(async Q=>{var j,U;return(U=(j=await wa(e,Q,h))==null?void 0:j.toCanonicalString())!=null?U:Q}));o.values.xLabelsKey=gw(k,z);const F=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(Q=>Q.selectedSource),Z=F.join(", ");o.values[Z]=gw(k,F);const ee=t.components.y.selectorStates.map(Q=>Q.selectedSource),le=await Promise.all(ee.map(async Q=>{var j,U;return(U=(j=await wa(e,Q,h))==null?void 0:j.toCanonicalString())!=null?U:Q}));return o.values.yLabelsKey=gw(k,le),o}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(!kn(a))throw Error("Value column is not valid");const i=[r],o={type:"column",value:r,label:await Kr(e,r,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:I})=>en(I)).map(I=>I.toCanonicalString()).join(", "),A=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:I})=>en(I)).map(I=>I.toCanonicalString()).join(", "),h=await Promise.all(t.components.facetBy.selectorStates.map(async I=>{var $,z;return{type:"column",value:(z=($=await wa(e,I.selectedSource,i))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),v=await Promise.all(t.components.xGroupBy.selectorStates.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I.selectedSource,i),value:I.selectedSource,valueLabels:(z=($=await wa(e,I.selectedSource,i))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),g=await Promise.all(t.components.yGroupBy.selectorStates.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I.selectedSource,i),value:I.selectedSource,valueLabels:(z=($=await wa(e,I.selectedSource,i))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),C=await e.pFrameProvider.getColumnSpecById(a),b=await Promise.all(t.components.annotationsX.selectorStates.map(async I=>{var $,z;const F=I.selectedSource,Z=en(F),ee=kn(Z)?await e.pFrameProvider.getColumnSpecById(Z):(z=($=C==null?void 0:C.axesSpec)==null?void 0:$.find(le=>Lr.fromAxisSpec(le).toCanonicalString()===F))!=null?z:null;return{axis:"x",valueColumn:{type:"column",value:F,label:await Kr(e,F,i)},type:sE(ee)?"discrete":"continuous"}})),B=await Promise.all(t.components.annotationsY.selectorStates.map(async I=>{var $,z;const F=I.selectedSource,Z=en(F),ee=kn(Z)?await e.pFrameProvider.getColumnSpecById(Z):(z=($=C==null?void 0:C.axesSpec)==null?void 0:$.find(le=>Lr.fromAxisSpec(le).toCanonicalString()===F))!=null?z:null;return{axis:"y",valueColumn:{type:"column",value:F,label:await Kr(e,F,i)},type:sE(ee)?"discrete":"continuous"}})),E=(await Promise.all(t.components.x.selectorStates.map(I=>Kr(e,I.selectedSource,i)))).join(", "),k=(await Promise.all(t.components.y.selectorStates.map(I=>Kr(e,I.selectedSource,i)))).join(", "),P=await Promise.all(t.components.tooltipContent.selectorStates.map(async I=>{var $,z;const F=I.selectedSource;return{type:"column",label:await Kr(e,F,i)||F,value:F,valueLabels:(z=($=await wa(e,F,i))==null?void 0:$.toCanonicalString())!=null?z:F}}));return{type:"heatmap",valueColumn:o,valueType:sE(C)?"discrete":"continuous",xColumn:{type:"column",value:c,label:E,valueLabels:"xLabelsKey"},yColumn:{type:"column",value:A,label:k,valueLabels:"yLabelsKey"},facetBy:h,xGroupBy:v,yGroupBy:g,annotations:[...b,...B],tooltips:{show:!0,content:P}}}},Yne={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:{}},Wne=class extends U2{constructor(){super({x:new En({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new En({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new En({componentName:"grouping",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),shape:new En({componentName:"shape",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),size:new En({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}}),tooltipContent:new En({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 En({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new En({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:nv}),tabBy:new En({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new En({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:nv})}),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 o=a.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.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,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=en(i),c=en(o),f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=await rv(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=tv(h),g=h.map(Z=>en(Z.selectedSource)).filter(kn),C=[s,c].filter(kn).map(Z=>Z.toCanonicalString());if(C.length===0)throw Error("One of X and Y should be a column");const b=await j2(e,C),B=[s,c,...g],E=[],k=[[],[]],P=[],I=[];for(const{selectedSource:Z,fixedAxes:ee}of h)I.push(...await jc(e,A,b,Z,ee)),k.push((ee??[]).map(({axisIdx:le,axisValue:Q})=>({idx:le,value:Q})));const $=[t.components.grouping,t.components.size,t.components.shape,t.components.tooltipContent,t.components.facetBy,t.components.label,t.components.highlight];for(const Z of $)for(const{selectedSource:ee,fixedAxes:le}of Z.selectorStates){E.push(en(ee)),P.push((le??[]).map(({axisIdx:j,axisValue:U})=>({idx:j,value:U}))),I.push(...await jc(e,A,b,ee,le));const Q=await wa(e,ee,C);Q&&E.push(Q)}const z=await e.pFrameProvider.getTableOuterJoin([s,c,...I,...g],E,v,!1,k,P);[...B,...E].forEach(Z=>{const ee=Z.toCanonicalString();f.values[ee]=kn(Z)?z.columnsData[ee]:z.axesData[ee]}),f.values.key=f.values[Object.keys(f.values)[0]].map((Z,ee)=>ee);const F=t.components.highlight.selectorStates.map(({selectedSource:Z})=>en(Z));return F.length&&(f.values.highlight=f.values.key.map((Z,ee)=>{let le=!1;for(let Q=0;Q<F.length;Q++){const{selectedSource:j,selectedFilterValue:U,selectedFilterRange:Y,type:X}=t.components.highlight.selectorStates[Q],te=(kn(F[Q])?z.columnsData[j]:z.axesData[j])[ee];if(U!==void 0&&(le=le||te===U),Y!==void 0&&(Y.min!==void 0||Y.max!==void 0)&&typeof te=="number"){let pe=!0;Y.min!==void 0&&(pe=pe&&te>=Y.min),Y.max!==void 0&&(pe=pe&&te<=Y.max),le=le||pe}X==="subset"&&(le=le||te!=null)}return le?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?en(o):null,f=s?en(s):null;if(!o||!s||!c||!f||!kn(c)&&!kn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(kn).map(I=>I.toCanonicalString()),h={type:"column",value:o,label:await Kr(e,o,A)},v={type:"column",value:s,label:await Kr(e,s,A)},g={type:"column",value:"key"},C=await Promise.all(t.components.facetBy.selectorStates.map(async I=>{var $,z;return{type:"column",value:(z=($=await wa(e,I.selectedSource,A))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),b=Zn.uniq([...t.components.grouping.selectorStates.map(I=>I.selectedSource),...t.components.size.selectorStates.map(I=>I.selectedSource),...t.components.shape.selectorStates.map(I=>I.selectedSource)]),B=await Promise.all(b.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I,A)||I,value:I,valueLabels:(z=($=await wa(e,I,A))==null?void 0:$.toCanonicalString())!=null?z:I}})),E=await Promise.all(t.components.tooltipContent.selectorStates.map(async I=>{var $,z;const F=I.selectedSource;return{type:"column",label:await Kr(e,F,A)||F,value:F,valueLabels:(z=($=await wa(e,F,A))==null?void 0:$.toCanonicalString())!=null?z:F}}));let k;if(t.components.label.selectorStates.length){const I=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:I,label:await Kr(e,I,A),valueLabels:(i=(a=await wa(e,I,A))==null?void 0:a.toCanonicalString())!=null?i:I}}let P;return t.components.highlight.selectorStates.length&&(P={type:"column",value:"highlight"}),{type:"scatterplot",x:h,y:v,keyColumn:g,facetBy:C,grouping:B,label:k,highlight:P,tooltips:{show:!0,content:E}}}},Xne={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:[]},size:{type:"simple",selectorStates:[]}},dividedAxes:{}},Kne=class extends U2{constructor(){super({x:new En({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new En({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new En({componentName:"grouping",allowedTypes:["String","Int","Long","Float","Double"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new En({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 En({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}}),size:new En({componentName:"size",allowedTypes:["Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:nv}),tabBy:new En({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}}),highlight:new En({componentName:"highlight",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!0},checkSourceBySpec:nv})}),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 o=a.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),s=i.axesSpec.map(A=>Lr.fromAxisSpec(A).toCanonicalString()),c=o.filter(A=>!s.some(h=>h===A)),f=s.filter(A=>!o.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,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!o)throw Error("X or Y column is not valid");const s=en(i),c=en(o);if(!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=await rv(e),h=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],v=tv(h),g=h.map(ee=>en(ee.selectedSource)).filter(kn),C=[s,c].filter(kn).map(ee=>ee.toCanonicalString());if(C.length===0)throw Error("One of X and Y should be a column");const b=await j2(e,C),B=[s,c,...g],E=[],k=[[],[]],P=[],I=[];for(const{selectedSource:ee,fixedAxes:le}of h)I.push(...await jc(e,A,b,ee,le)),I.push(...await jc(e,A,b,ee,le)),k.push((le??[]).map(({axisIdx:Q,axisValue:j})=>({idx:Q,value:j})));const $=[t.components.grouping,t.components.facetBy,t.components.tooltipContent,t.components.label,t.components.highlight,t.components.size];for(const ee of $)for(const{selectedSource:le,fixedAxes:Q}of ee.selectorStates){E.push(en(le)),P.push((Q??[]).map(({axisIdx:U,axisValue:Y})=>({idx:U,value:Y}))),I.push(...await jc(e,A,b,le,Q));const j=await wa(e,le,C);j&&E.push(j)}const z=await e.pFrameProvider.getTableOuterJoin([s,c,...I,...g],E,v,!1,k,P);[...B,...E].forEach(ee=>{const le=ee.toCanonicalString();f.values[le]=kn(ee)?z.columnsData[le]:z.axesData[le]});const F=Object.keys(z.axesData);f.values.key=f.values[Object.keys(f.values)[0]].map((ee,le)=>JSON.stringify(F.reduce((Q,j)=>(Q[j]=z.axesData[j][le],Q),{})));const Z=t.components.highlight.selectorStates.map(({selectedSource:ee})=>en(ee));return Z.length&&(f.values.highlight=f.values.key.map((ee,le)=>{let Q=!1;for(let j=0;j<Z.length;j++){const{selectedSource:U,selectedFilterValue:Y,selectedFilterRange:X,type:te}=t.components.highlight.selectorStates[j],pe=(kn(Z[j])?z.columnsData[U]:z.axesData[U])[le];if(Y!==void 0&&(Q=Q||pe===Y),X!==void 0&&(X.min!==void 0||X.max!==void 0)&&typeof pe=="number"){let ae=!0;X.min!==void 0&&(ae=ae&&pe>=X.min),X.max!==void 0&&(ae=ae&&pe<=X.max),Q=Q||ae}te==="subset"&&(Q=Q||pe!=null)}return Q?1:0})),f}async createChartSettings(e,t){var n,r,a,i;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=o?en(o):null,f=s?en(s):null;if(!o||!s||!c||!f||!kn(c)&&!kn(f))throw Error("Empty or invalid required data");const A=[c,f].filter(kn).map(I=>I.toCanonicalString()),h={type:"column",value:o,label:await Kr(e,o,A)},v={type:"column",value:s,label:await Kr(e,s,A)},g={type:"column",value:"key"},C=await Promise.all(t.components.facetBy.selectorStates.map(async I=>{var $,z;return{type:"column",value:(z=($=await wa(e,I.selectedSource,A))==null?void 0:$.toCanonicalString())!=null?z:I.selectedSource}})),b=Zn.uniq([...t.components.grouping.selectorStates.map(I=>I.selectedSource),...t.components.size.selectorStates.map(I=>I.selectedSource)]),B=await Promise.all(b.map(async I=>{var $,z;return{type:"column",label:await Kr(e,I,A)||I,value:I,valueLabels:(z=($=await wa(e,I,A))==null?void 0:$.toCanonicalString())!=null?z:I}})),E=await Promise.all(t.components.tooltipContent.selectorStates.map(async I=>{var $,z;const F=I.selectedSource;return{type:"column",label:await Kr(e,F,A)||F,value:F,valueLabels:(z=($=await wa(e,F,A))==null?void 0:$.toCanonicalString())!=null?z:F}}));let k;if(t.components.label.selectorStates.length){const I=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:I,label:await Kr(e,I,A),valueLabels:(i=(a=await wa(e,I,A))==null?void 0:a.toCanonicalString())!=null?i:I}}let P;return t.components.highlight.selectorStates.length&&(P={type:"column",value:"highlight"}),{type:"scatterplot-umap",x:h,y:v,keyColumn:g,facetBy:C,grouping:B,label:k,highlight:P,tooltips:{show:!0,content:E}}}},uE="pl7.app/dendrogram/nodeId",cE="id",Zne={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:{}},Jne=class extends U2{constructor(){super({value:new En({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{isDataComponent:!0,columnsAllowed:!0,required:!0,dimensionConsumer:!0,columnsWithExtraAxesAllowed:!1}}),height:new En({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 En({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tableContent:new En({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0,columnsWithExtraAxesAllowed:!1}}),nodeShape:new En({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeSize:new En({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),nodeColor:new En({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),lineColor:new En({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapForSequence:new En({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,columnsWithExtraAxesAllowed:!1}}),heatmapAnnotation:new En({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{isDataComponent:!0,columnsAllowed:!0,axesAllowed:!1,columnsWithExtraAxesAllowed:!1}}),facetBy:new En({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapAxis:new En({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),heatmapGroup:new En({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})},{filters:new En({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}}),tabBy:new En({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1,columnsWithExtraAxesAllowed:!1}})}),this.ignoredOptionIdNames=[uE]}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||!kn(i))throw Error("Value column is not valid");const o=await rv(e),s=tv([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),c=[...t.components.filters.selectorStates.map(P=>en(P.selectedSource)),...t.components.tabBy.selectorStates.map(P=>en(P.selectedSource))].filter(kn),f=[a],A=await j2(e,f),h=[],v=[],g=[],C=[t.components.value],b=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],B={};for(const P of C)for(const{selectedSource:I,fixedAxes:$}of P.selectorStates){g.push(...await jc(e,o,A,I,$));const z=await wa(e,I,f),F=z??en(I);B[F.toCanonicalString()]=I,h.push(F)}for(const P of b)for(const{selectedSource:I,fixedAxes:$}of P.selectorStates){g.push(...await jc(e,o,A,I,$));const z=await wa(e,I,f),F=z??en(I);B[I]=F.toCanonicalString(),v.push(F)}const E=await e.pFrameProvider.getTableOuterJoin([...h,...c,...g],v,s,!1);for(const P of[...h,...v]){const I=P.toCanonicalString(),$=B[P.toCanonicalString()];r[$]={data:kn(P)?E.columnsData[I]:E.axesData[I],spec:kn(P)?E.columnSpecs[I]:E.axesSpecs[I],label:await Kr(e,$,f)}}const k=Object.keys(E.axesData).find(P=>{var I;return((I=en(P))==null?void 0:I.name)===uE});return k?r[cE]={data:E.axesData[k],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,o=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,s=en(i),c=o?en(o):null;if(!i||!kn(s))throw Error("Value column is not valid");const f={type:"columns",id:(a=I1(t.components))!=null?a:"",values:{}},A=[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates],h=tv(A),v=A.map(z=>en(z.selectedSource)).filter(kn),g=[s,c].filter(kn).map(z=>z.toCanonicalString()),C=[],b=[],B=[],E=[],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],P=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const z of k)for(const{selectedSource:F,fixedAxes:Z}of z.selectorStates){C.push(en(F)),B.push((Z??[]).map(({axisIdx:le,axisValue:Q})=>({idx:le,value:Q})));const ee=await wa(e,F,g);ee&&C.push(ee)}A.forEach(({fixedAxes:z})=>{B.push((z??[]).map(({axisIdx:F,axisValue:Z})=>({idx:F,value:Z})))});for(const z of P)for(const{selectedSource:F,fixedAxes:Z}of z.selectorStates){b.push(en(F)),E.push((Z??[]).map(({axisIdx:le,axisValue:Q})=>({idx:le,value:Q})));const ee=await wa(e,F,g);ee&&b.push(ee)}const I=await e.pFrameProvider.getTableOuterJoin([...C,...v],b,h,!1,B,E);[...C,...b].forEach(z=>{const F=z.toCanonicalString(),Z=kn(z)?I.columnsData[F]:I.axesData[F];f.values[F]=[],f.values[F]=Z});const $=Object.keys(I.axesData).find(z=>{var F;return((F=en(z))==null?void 0:F.name)===uE});return $?f.values[cE]=I.axesData[$]: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,o=en(i);if(!i||!kn(o))throw Error("Data column is not valid");const s=[i],c={type:"column",value:cE},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 B=t.components.nodeColor.selectorStates[0].selectedSource;v.nodeColor={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}if(t.components.nodeShape.selectorStates.length){const B=t.components.nodeShape.selectorStates[0].selectedSource;v.nodeShape={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}if(t.components.nodeSize.selectorStates.length){const B=t.components.nodeSize.selectorStates[0].selectedSource;v.nodeSize={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}if(t.components.lineColor.selectorStates.length){const B=t.components.lineColor.selectorStates[0].selectedSource;v.lineColor={columnName:{type:"column",value:B,label:await Kr(e,B,s)}}}let g,C,b;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const B=t.components.heatmapAnnotation.selectorStates[0].selectedSource;g={type:"column",value:B,label:await Kr(e,B,[]),valueLabels:(r=await wa(e,B,[]))==null?void 0:r.toCanonicalString()};const E=t.components.heatmapAxis.selectorStates[0].selectedSource;C={type:"column",value:E,label:await Kr(e,E,[B]),valueLabels:(a=await wa(e,E,[B]))==null?void 0:a.toCanonicalString()},b=await Promise.all(t.components.heatmapGroup.selectorStates.map(async k=>{var P;return{type:"column",value:k.selectedSource,label:await Kr(e,k.selectedSource,[B]),valueLabels:(P=await wa(e,k.selectedSource,[B]))==null?void 0:P.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const B=t.components.heatmapForSequence.selectorStates[0].selectedSource;g={type:"column",value:B,label:await Kr(e,B,[])}}return{type:"dendro",id:c,parentId:f,height:A,labels:h,aes:v,heatmapAnnotation:g,heatmapAxis:C,heatmapGroup:b}}},yw=1e6;function zg(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 av=!1,Akt=100,qne=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(o=>o.spec.type==="axis"),i=r.filter(o=>o.spec.type==="column");return{axesData:a.reduce((o,s)=>{const c=Lr.fromAxisSpec(s.spec.spec);return o[c.toCanonicalString()]=zg(c.type,s.data),o},{}),data:i.length?zg(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:yw};try{const a=Date.now(),i=await this.pframeDriver.getUniqueValues(this.pframeHandle,r);return i.overflow&&console.warn(`More than ${yw} values for ${e.name} column`),zg(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(kn),a=await Promise.all(r.map(s=>this.getColumnSpecById(s))),i=e.toCanonicalString(),o=r.filter((s,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(A=>Lr.fromAxisSpec(A).toCanonicalString()===i)});if(o.length===0)return[];try{const s=Date.now(),c=await Promise.all(o.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:yw})));return c.forEach((f,A)=>{f.overflow&&console.warn(`More than ${yw} values for ${o[A].name} column`)}),Zn.uniq(Zn.flatten(c.map(f=>zg(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 o=e.filter(kn),s=t.filter(kn),c={src:{type:"outer",primary:{type:r?"inner":"full",entries:o.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,C)=>{const b=Lr.fromAxisSpec(C.spec.spec);return g[b.toCanonicalString()]=zg(b.type,C.data),g},{}),columnsData:v.reduce((g,C)=>{const b=C.spec.spec,B=new Q2({name:C.spec.id,type:b.valueType});return g[B.toCanonicalString()]=zg(B.type,C.data),g},{}),columnSpecs:v.reduce((g,C)=>{const b=C.spec.spec,B=new Q2({name:C.spec.id,type:b.valueType});return g[B.toCanonicalString()]=b,g},{}),axesSpecs:h.reduce((g,C)=>{const b=C.spec.spec,B=Lr.fromAxisSpec(b);return g[B.toCanonicalString()]=b,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=>Lr.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(kn(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(o=>Lr.fromAxisSpec(o).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},o=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 Q2({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(),o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:c,spec:f})=>{s.push(new Q2({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}}},ere=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new qne(e,t)}},vI={controllers:{discrete:new jne,scatterplot:new Wne,"scatterplot-umap":new Kne,heatmap:new Gne,dendro:new Jne,histogram:new Fne,bubble:new zne},initialStates:{discrete:Qne,scatterplot:Yne,"scatterplot-umap":Xne,heatmap:Une,dendro:Zne,histogram:One,bubble:Nne}};function ww(e){return vI.controllers[e]}function mI(e){return vI.initialStates[e]}const mr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},tre={},nre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rre(e,t){return d.openBlock(),d.createElementBlock("svg",nre,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 are=mr(tre,[["render",rre]]),ire={},ore={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",ore,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 sre=mr(ire,[["render",lre]]),ure={},cre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fre(e,t){return d.openBlock(),d.createElementBlock("svg",cre,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 dre=mr(ure,[["render",fre]]),Are={},hre={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",hre,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 vre=mr(Are,[["render",pre]]),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="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 wre=mr(mre,[["render",yre]]),bre={},Cre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sre(e,t){return d.openBlock(),d.createElementBlock("svg",Cre,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 xre=mr(bre,[["render",Sre]]),Ere={},Bre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _re(e,t){return d.openBlock(),d.createElementBlock("svg",Bre,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 Tre=mr(Ere,[["render",_re]]),kre={},Mre={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",Mre,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 Hre=mr(kre,[["render",Pre]]),Dre={},$re={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",$re,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 gI=mr(Dre,[["render",Ire]]),Lre={},Rre={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",Rre,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 yI=mr(Lre,[["render",Vre]]),Nre={},zre={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",zre,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 Fre=mr(Nre,[["render",Ore]]),Qre={},jre={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",jre,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 Gre=mr(Qre,[["render",Ure]]),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="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 wI=mr(Yre,[["render",Xre]]),Kre={},Zre={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};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:"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 qre=mr(Kre,[["render",Jre]]),eae={},tae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nae(e,t){return d.openBlock(),d.createElementBlock("svg",tae,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 bI=mr(eae,[["render",nae]]),rae={},aae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iae(e,t){return d.openBlock(),d.createElementBlock("svg",aae,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 oae=mr(rae,[["render",iae]]),lae={},sae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uae(e,t){return d.openBlock(),d.createElementBlock("svg",sae,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 cae=mr(lae,[["render",uae]]),fae={},dae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aae(e,t){return d.openBlock(),d.createElementBlock("svg",dae,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 hae=mr(fae,[["render",Aae]]),pae={},vae={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mae(e,t){return d.openBlock(),d.createElementBlock("svg",vae,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 CI=mr(pae,[["render",mae]]),gae={},yae={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function wae(e,t){return d.openBlock(),d.createElementBlock("svg",yae,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 bae=mr(gae,[["render",wae]]),Og=[{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"}],iv="#FFFFFF",pi="#110529";Og.reduce((e,t)=>(e[t.color]=t,e),{});const W4=Og.slice(0,-3).map(e=>e.color),Cae=W4.filter((e,t)=>t%3===0),Sae=W4.filter((e,t)=>t%3===1),xae=W4.filter((e,t)=>t%3===2),Eae=W4.filter((e,t)=>t%3!==2),Bae=W4,_ae=["#FFF680","#53D788","#36739D","#4A005C"],Tae=["#FFF680","#F77E5B","#902B83","#2B125C"],kae=["#DFFADC","#74CFD1","#635AC1","#611347"],Mae=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],Pae=["#FFEA80","#F07A76","#7535A4","#003752"],Hae=["#FFF780","#6CEA90","#6C90F0","#942AAE"],Dae=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],$ae=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],Iae=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],Lae=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],Rae=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],SI=["light","bright","dark","paired","triadic"],Vae=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],Nae=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function fE(e){return SI.includes(e)}const Ui={...{light:{title:"Light",colors:Cae},bright:{title:"Bright",colors:Sae},dark:{title:"Dark",colors:xae},paired:{title:"Paired",colors:Eae},triadic:{title:"Triadic",colors:Bae}},...{viridis:{title:"Viridis",colors:_ae},magma:{title:"Magma",colors:Tae},density:{title:"Density",colors:kae},salinity:{title:"Salinity",colors:Mae},sunset:{title:"Sunset",colors:Pae},perceptual_rainbow:{title:"Rainbow",colors:Hae}},...{spectrum:{title:"Spectrum",colors:Dae},teal_red:{title:"Teal-Red",colors:$ae},blue_red:{title:"Blue-Red",colors:Iae},lime_rose:{title:"Lime-Rose",colors:Lae},viridis_magma:{title:"Vir-Mag",colors:Rae}}},xI="light",ov="salinity",zae="salinity",X4=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],bw="#F0F0F0",DA="21",Fg=["solid","dashed","dotted","dotdash","longdash","twodash"],Cw="solid",Oae={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}},Fae={A:"#cc0100",C:"#0000cc",G:"#ffb300",T:"#027f00",U:"#027f00"},Qae={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 Qg(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dE(e){let t,n,r;e.length!==2?(t=Qg,n=(s,c)=>Qg(e(s),c),r=(s,c)=>e(s)-c):(t=e===Qg||e===jae?e:Uae,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 o(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:o,right:i}}function Uae(){return 0}function EI(e){return e===null?NaN:+e}function*Gae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const BI=dE(Qg).right;dE(EI).center;function Yae(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Wae(e,t){let n=0,r,a=0,i=0;for(let o of e)o!=null&&(o=+o)>=o&&(r=o-a,a+=r/++n,i+=r*(o-a));if(n>1)return i/(n-1)}function _I(e,t){const n=Wae(e);return n&&Math.sqrt(n)}function H0(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 TI extends Map{constructor(t,n=Zae){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(kI(this,t))}has(t){return super.has(kI(this,t))}set(t,n){return super.set(Xae(this,t),n)}delete(t){return super.delete(Kae(this,t))}}function kI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Xae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Kae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Zae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Jae(e){return e}function qae(e=Qg){if(e===Qg)return MI;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 MI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var eie=Array.prototype,tie=eie.slice;function AE(e){return()=>e}const nie=Math.sqrt(50),rie=Math.sqrt(10),aie=Math.sqrt(2);function Sw(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=nie?10:i>=rie?5:i>=aie?2:1;let s,c,f;return a<0?(f=Math.pow(10,-a)/o,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)*o,s=Math.round(e/f),c=Math.round(t/f),s*f<e&&++s,c*f>t&&--c),c<s&&.5<=n&&n<2?Sw(e,t,n*2):[s,c,f]}function xw(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?Sw(t,e,n):Sw(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(o<0)for(let f=0;f<s;++f)c[f]=(i-f)/-o;else for(let f=0;f<s;++f)c[f]=(i-f)*o;else if(o<0)for(let f=0;f<s;++f)c[f]=(a+f)/-o;else for(let f=0;f<s;++f)c[f]=(a+f)*o;return c}function jg(e,t,n){return t=+t,e=+e,n=+n,Sw(e,t,n)[2]}function hE(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?jg(t,e,n):jg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function iie(e,t,n){let r;for(;;){const a=jg(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 oie(e){return Math.max(1,Math.ceil(Math.log(Yae(e))/Math.LN2)+1)}function PI(){var e=Jae,t=H0,n=oie;function r(a){Array.isArray(a)||(a=Array.from(a));var i,o=a.length,s,c,f=new Array(o);for(i=0;i<o;++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 P=v,I=+g;if(t===H0&&([h,v]=iie(h,v,I)),g=xw(h,v,I),g[0]<=h&&(c=jg(h,v,I)),g[g.length-1]>=v)if(P>=v&&t===H0){const $=jg(h,v,I);isFinite($)&&($>0?v=(Math.floor(v/$)+1)*$:$<0&&(v=(Math.ceil(v*-$)+1)/-$))}else g.pop()}for(var C=g.length,b=0,B=C;g[b]<=h;)++b;for(;g[B-1]>v;)--B;(b||B<C)&&(g=g.slice(b,B),C=B-b);var E=new Array(C+1),k;for(i=0;i<=C;++i)k=E[i]=[],k.x0=i>0?g[i-1]:h,k.x1=i<C?g[i]:v;if(isFinite(c)){if(c>0)for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=v&&E[Math.min(C,Math.floor((s-h)/c))].push(a[i]);else if(c<0){for(i=0;i<o;++i)if((s=f[i])!=null&&h<=s&&s<=v){const P=Math.floor((h-s)*c);E[Math.min(C,P+(g[P]<=s))].push(a[i])}}}else for(i=0;i<o;++i)(s=f[i])!=null&&h<=s&&s<=v&&E[BI(g,s,0,C)].push(a[i]);return E}return r.value=function(a){return arguments.length?(e=typeof a=="function"?a:AE(a),r):e},r.domain=function(a){return arguments.length?(t=typeof a=="function"?a:AE([a[0],a[1]]),r):t},r.thresholds=function(a){return arguments.length?(n=typeof a=="function"?a:AE(Array.isArray(a)?tie.call(a):a),r):n},r}function Vh(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 Ew(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 HI(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?MI:qae(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)),C=Math.min(r,Math.floor(t+(c-f)*h/c+v));HI(e,t,g,C,a)}const i=e[t];let o=n,s=r;for(K4(e,n,t),a(e[r],i)>0&&K4(e,n,r);o<s;){for(K4(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?K4(e,n,s):(++s,K4(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function K4(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function DI(e,t,n){if(e=Float64Array.from(Gae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Ew(e);if(t>=1)return Vh(e);var r,a=(r-1)*t,i=Math.floor(a),o=Vh(HI(e,i).subarray(0,i+1)),s=Ew(e.subarray(i+1));return o+(s-o)*(a-i)}}function D0(e,t,n=EI){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),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function Vs(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 lie(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 lc(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 G2(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const $I=Symbol("implicit");function Qo(){var e=new TI,t=[],n=[],r=$I;function a(i){let o=e.get(i);if(o===void 0){if(r!==$I)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new TI;for(const o of i)e.has(o)||e.set(o,t.push(o)-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 Qo(t,n).unknown(r)},G2.apply(a,arguments),a}function Z4(){var e=Qo().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,c=0,f=0,A=.5;delete e.unknown;function h(){var v=t().length,g=a<r,C=g?a:r,b=g?r:a;i=(b-C)/Math.max(1,v-c+f*2),s&&(i=Math.floor(i)),C+=(b-C-i*(v-c))*A,o=i*(1-c),s&&(C=Math.round(C),o=Math.round(o));var B=lie(v).map(function(E){return C+i*E});return n(g?B.reverse():B)}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 o},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 Z4(t(),[r,a]).round(s).paddingInner(c).paddingOuter(f).align(A)},G2.apply(h(),arguments)}function pE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function II(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function J4(){}var q4=.7,Bw=1/q4,Ug="\\s*([+-]?\\d+)\\s*",ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sie=/^#([0-9a-f]{3,8})$/,uie=new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`),cie=new RegExp(`^rgb\\(${$A},${$A},${$A}\\)$`),fie=new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${ey}\\)$`),die=new RegExp(`^rgba\\(${$A},${$A},${$A},${ey}\\)$`),Aie=new RegExp(`^hsl\\(${ey},${$A},${$A}\\)$`),hie=new RegExp(`^hsla\\(${ey},${$A},${$A},${ey}\\)$`),LI={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};pE(J4,lv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:RI,formatHex:RI,formatHex8:pie,formatHsl:vie,formatRgb:VI,toString:VI});function RI(){return this.rgb().formatHex()}function pie(){return this.rgb().formatHex8()}function vie(){return QI(this).formatHsl()}function VI(){return this.rgb().formatRgb()}function lv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?NI(t):n===3?new gd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_w(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_w(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=uie.exec(e))?new gd(t[1],t[2],t[3],1):(t=cie.exec(e))?new gd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fie.exec(e))?_w(t[1],t[2],t[3],t[4]):(t=die.exec(e))?_w(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Aie.exec(e))?FI(t[1],t[2]/100,t[3]/100,1):(t=hie.exec(e))?FI(t[1],t[2]/100,t[3]/100,t[4]):LI.hasOwnProperty(e)?NI(LI[e]):e==="transparent"?new gd(NaN,NaN,NaN,0):null}function NI(e){return new gd(e>>16&255,e>>8&255,e&255,1)}function _w(e,t,n,r){return r<=0&&(e=t=n=NaN),new gd(e,t,n,r)}function mie(e){return e instanceof J4||(e=lv(e)),e?(e=e.rgb(),new gd(e.r,e.g,e.b,e.opacity)):new gd}function Gg(e,t,n,r){return arguments.length===1?mie(e):new gd(e,t,n,r??1)}function gd(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pE(gd,Gg,II(J4,{brighter(e){return e=e==null?Bw:Math.pow(Bw,e),new gd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?q4:Math.pow(q4,e),new gd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gd(Y2(this.r),Y2(this.g),Y2(this.b),Tw(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:zI,formatHex:zI,formatHex8:gie,formatRgb:OI,toString:OI}));function zI(){return`#${W2(this.r)}${W2(this.g)}${W2(this.b)}`}function gie(){return`#${W2(this.r)}${W2(this.g)}${W2(this.b)}${W2((isNaN(this.opacity)?1:this.opacity)*255)}`}function OI(){const e=Tw(this.opacity);return`${e===1?"rgb(":"rgba("}${Y2(this.r)}, ${Y2(this.g)}, ${Y2(this.b)}${e===1?")":`, ${e})`}`}function Tw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Y2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function W2(e){return e=Y2(e),(e<16?"0":"")+e.toString(16)}function FI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $0(e,t,n,r)}function QI(e){if(e instanceof $0)return new $0(e.h,e.s,e.l,e.opacity);if(e instanceof J4||(e=lv(e)),!e)return new $0;if(e instanceof $0)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),o=NaN,s=i-a,c=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?i+a:2-i-a,o*=60):s=c>0&&c<1?0:o,new $0(o,s,c,e.opacity)}function yie(e,t,n,r){return arguments.length===1?QI(e):new $0(e,t,n,r??1)}function $0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pE($0,yie,II(J4,{brighter(e){return e=e==null?Bw:Math.pow(Bw,e),new $0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?q4:Math.pow(q4,e),new $0(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 gd(vE(e>=240?e-240:e+120,a,r),vE(e,a,r),vE(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new $0(jI(this.h),kw(this.s),kw(this.l),Tw(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=Tw(this.opacity);return`${e===1?"hsl(":"hsla("}${jI(this.h)}, ${kw(this.s)*100}%, ${kw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jI(e){return e=(e||0)%360,e<0?e+360:e}function kw(e){return Math.max(0,Math.min(1,e||0))}function vE(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 mE=e=>()=>e;function wie(e,t){return function(n){return e+n*t}}function bie(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 Cie(e){return(e=+e)==1?UI:function(t,n){return n-t?bie(t,n,e):mE(isNaN(t)?n:t)}}function UI(e,t){var n=t-e;return n?wie(e,n):mE(isNaN(e)?t:e)}const Mw=function e(t){var n=Cie(t);function r(a,i){var o=n((a=Gg(a)).r,(i=Gg(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),f=UI(a.opacity,i.opacity);return function(A){return a.r=o(A),a.g=s(A),a.b=c(A),a.opacity=f(A),a+""}}return r.gamma=e,r}(1);function Sie(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 xie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Eie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=wE(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function Bie(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function I0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _ie(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]=wE(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var gE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yE=new RegExp(gE.source,"g");function Tie(e){return function(){return e}}function kie(e){return function(t){return e(t)+""}}function GI(e,t){var n=gE.lastIndex=yE.lastIndex=0,r,a,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=gE.exec(e))&&(a=yE.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,c.push({i:o,x:I0(r,a)})),n=yE.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?kie(c[0].x):Tie(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 wE(e,t){var n=typeof t,r;return t==null||n==="boolean"?mE(t):(n==="number"?I0:n==="string"?(r=lv(t))?(t=r,Mw):GI:t instanceof lv?Mw:t instanceof Date?Bie:xie(t)?Sie:Array.isArray(t)?Eie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_ie:I0)(e,t)}function Mie(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var YI=180/Math.PI,bE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function WI(e,t,n,r,a,i){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(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,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*YI,skewX:Math.atan(c)*YI,scaleX:o,scaleY:s}}var Pw;function Pie(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?bE:WI(t.a,t.b,t.c,t.d,t.e,t.f)}function Hie(e){return e==null||(Pw||(Pw=document.createElementNS("http://www.w3.org/2000/svg","g")),Pw.setAttribute("transform",e),!(e=Pw.transform.baseVal.consolidate()))?bE:(e=e.matrix,WI(e.a,e.b,e.c,e.d,e.e,e.f))}function XI(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,A,h,v,g,C){if(f!==h||A!==v){var b=g.push("translate(",null,t,null,n);C.push({i:b-4,x:I0(f,h)},{i:b-2,x:I0(A,v)})}else(h||v)&&g.push("translate("+h+t+v+n)}function o(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:I0(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:I0(f,A)}):A&&h.push(a(h)+"skewX("+A+r)}function c(f,A,h,v,g,C){if(f!==h||A!==v){var b=g.push(a(g)+"scale(",null,",",null,")");C.push({i:b-4,x:I0(f,h)},{i:b-2,x:I0(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),o(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 C=-1,b=v.length,B;++C<b;)h[(B=v[C]).i]=B.x(g);return h.join("")}}}var Die=XI(Pie,"px, ","px)","deg)"),$ie=XI(Hie,", ",")",")"),Iie=1e-12;function KI(e){return((e=Math.exp(e))+1/e)/2}function Lie(e){return((e=Math.exp(e))-1/e)/2}function Rie(e){return((e=Math.exp(2*e))-1)/(e+1)}const Vie=function e(t,n,r){function a(i,o){var s=i[0],c=i[1],f=i[2],A=o[0],h=o[1],v=o[2],g=A-s,C=h-c,b=g*g+C*C,B,E;if(b<Iie)E=Math.log(v/f)/t,B=function(F){return[s+F*g,c+F*C,f*Math.exp(t*F*E)]};else{var k=Math.sqrt(b),P=(v*v-f*f+r*b)/(2*f*n*k),I=(v*v-f*f-r*b)/(2*v*n*k),$=Math.log(Math.sqrt(P*P+1)-P),z=Math.log(Math.sqrt(I*I+1)-I);E=(z-$)/t,B=function(F){var Z=F*E,ee=KI($),le=f/(n*k)*(ee*Rie(t*Z+$)-Lie($));return[s+le*g,c+le*C,f*ee/KI(t*Z+$)]}}return B.duration=E*1e3*t/Math.SQRT2,B}return a.rho=function(i){var o=Math.max(.001,+i),s=o*o,c=s*s;return e(o,s,c)},a}(Math.SQRT2,2,4);function Nie(e){return function(){return e}}function CE(e){return+e}var ZI=[0,1];function IA(e){return e}function SE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Nie(isNaN(t)?NaN:.5)}function zie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Oie(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=SE(a,r),i=n(o,i)):(r=SE(r,a),i=n(i,o)),function(s){return i(r(s))}}function Fie(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=SE(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var c=BI(e,s,1,r)-1;return i[c](a[c](s))}}function ty(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Hw(){var e=ZI,t=ZI,n=wE,r,a,i,o=IA,s,c,f;function A(){var v=Math.min(e.length,t.length);return o!==IA&&(o=zie(e[0],e[v-1])),s=v>2?Fie:Oie,c=f=null,h}function h(v){return v==null||isNaN(v=+v)?i:(c||(c=s(e.map(r),t,n)))(r(o(v)))}return h.invert=function(v){return o(a((f||(f=s(t,e.map(r),I0)))(v)))},h.domain=function(v){return arguments.length?(e=Array.from(v,CE),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=Mie,A()},h.clamp=function(v){return arguments.length?(o=v?!0:IA,A()):o!==IA},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 JI(){return Hw()(IA,IA)}function Qie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Dw(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 Yg(e){return e=Dw(Math.abs(e)),e?e[1]:NaN}function jie(e,t){return function(n,r){for(var a=n.length,i=[],o=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[o=(o+1)%e.length];return i.reverse().join(t)}}function Uie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Gie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ny(e){if(!(t=Gie.exec(e)))throw new Error("invalid format: "+e);var t;return new xE({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]})}ny.prototype=xE.prototype;function xE(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+""}xE.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 Yie(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 qI;function Wie(e,t){var n=Dw(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(qI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Dw(e,Math.max(0,t+i-1))[0]}function eL(e,t){var n=Dw(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 tL={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Qie,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)=>eL(e*100,t),r:eL,s:Wie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function nL(e){return e}var rL=Array.prototype.map,aL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xie(e){var t=e.grouping===void 0||e.thousands===void 0?nL:jie(rL.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?nL:Uie(rL.call(e.numerals,String)),o=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=ny(h);var v=h.fill,g=h.align,C=h.sign,b=h.symbol,B=h.zero,E=h.width,k=h.comma,P=h.precision,I=h.trim,$=h.type;$==="n"?(k=!0,$="g"):tL[$]||(P===void 0&&(P=12),I=!0,$="g"),(B||v==="0"&&g==="=")&&(B=!0,v="0",g="=");var z=b==="$"?n:b==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",F=b==="$"?r:/[%p]/.test($)?o:"",Z=tL[$],ee=/[defgprs%]/.test($);P=P===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function le(Q){var j=z,U=F,Y,X,te;if($==="c")U=Z(Q)+U,Q="";else{Q=+Q;var pe=Q<0||1/Q<0;if(Q=isNaN(Q)?c:Z(Math.abs(Q),P),I&&(Q=Yie(Q)),pe&&+Q==0&&C!=="+"&&(pe=!1),j=(pe?C==="("?C:s:C==="-"||C==="("?"":C)+j,U=($==="s"?aL[8+qI/3]:"")+U+(pe&&C==="("?")":""),ee){for(Y=-1,X=Q.length;++Y<X;)if(te=Q.charCodeAt(Y),48>te||te>57){U=(te===46?a+Q.slice(Y+1):Q.slice(Y))+U,Q=Q.slice(0,Y);break}}}k&&!B&&(Q=t(Q,1/0));var ae=j.length+Q.length+U.length,ge=ae<E?new Array(E-ae+1).join(v):"";switch(k&&B&&(Q=t(ge+Q,ge.length?E-U.length:1/0),ge=""),g){case"<":Q=j+Q+U+ge;break;case"=":Q=j+ge+Q+U;break;case"^":Q=ge.slice(0,ae=ge.length>>1)+j+Q+U+ge.slice(ae);break;default:Q=ge+j+Q+U;break}return i(Q)}return le.toString=function(){return h+""},le}function A(h,v){var g=f((h=ny(h),h.type="f",h)),C=Math.max(-8,Math.min(8,Math.floor(Yg(v)/3)))*3,b=Math.pow(10,-C),B=aL[8+C/3];return function(E){return g(b*E)+B}}return{format:f,formatPrefix:A}}var $w,ry,iL;Kie({thousands:",",grouping:[3],currency:["$",""]});function Kie(e){return $w=Xie(e),ry=$w.format,iL=$w.formatPrefix,$w}function Zie(e){return Math.max(0,-Yg(Math.abs(e)))}function Jie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yg(t)/3)))*3-Yg(Math.abs(e)))}function qie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yg(t)-Yg(e))+1}function eoe(e,t,n,r){var a=hE(e,t,n),i;switch(r=ny(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Jie(a,o))&&(r.precision=i),iL(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=qie(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Zie(a))&&(r.precision=i-(r.type==="%")*2);break}}return ry(r)}function Iw(e){var t=e.domain;return e.ticks=function(n){var r=t();return xw(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return eoe(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,o=r[a],s=r[i],c,f,A=10;for(s<o&&(f=o,o=s,s=f,f=a,a=i,i=f);A-- >0;){if(f=jg(o,s,n),f===c)return r[a]=o,r[i]=s,t(r);if(f>0)o=Math.floor(o/f)*f,s=Math.ceil(s/f)*f;else if(f<0)o=Math.ceil(o*f)/f,s=Math.floor(s*f)/f;else break;c=f}return e},e}function Zr(){var e=JI();return e.copy=function(){return ty(e,Zr())},G2.apply(e,arguments),Iw(e)}function sv(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,CE),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return sv(e).unknown(t)},e=arguments.length?Array.from(e,CE):[0,1],Iw(n)}function oL(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function lL(e){return Math.log(e)}function sL(e){return Math.exp(e)}function toe(e){return-Math.log(-e)}function noe(e){return-Math.exp(-e)}function roe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function aoe(e){return e===10?roe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ioe(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 uL(e){return(t,n)=>-e(-t,n)}function ooe(e){const t=e(lL,sL),n=t.domain;let r=10,a,i;function o(){return a=ioe(r),i=aoe(r),n()[0]<0?(a=uL(a),i=uL(i),e(toe,noe)):e(lL,sL),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):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),C,b;const B=s==null?10:+s;let E=[];if(!(r%1)&&g-v<B){if(v=Math.floor(v),g=Math.ceil(g),f>0){for(;v<=g;++v)for(C=1;C<r;++C)if(b=v<0?C/i(-v):C*i(v),!(b<f)){if(b>A)break;E.push(b)}}else for(;v<=g;++v)for(C=r-1;C>=1;--C)if(b=v>0?C/i(-v):C*i(v),!(b<f)){if(b>A)break;E.push(b)}E.length*2<B&&(E=xw(f,A,B))}else E=xw(v,g,Math.min(g-v,B)).map(i);return h?E.reverse():E},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=ny(c)).precision==null&&(c.trim=!0),c=ry(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(oL(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function X2(){const e=ooe(Hw()).domain([1,10]);return e.copy=()=>ty(e,X2()).base(e.base()),G2.apply(e,arguments),e}function cL(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fL(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function loe(e){var t=1,n=e(cL(t),fL(t));return n.constant=function(r){return arguments.length?e(cL(t=+r),fL(t)):t},Iw(n)}function uv(){var e=loe(Hw());return e.copy=function(){return ty(e,uv()).constant(e.constant())},G2.apply(e,arguments)}function dL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function soe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function uoe(e){return e<0?-e*e:e*e}function coe(e){var t=e(IA,IA),n=1;function r(){return n===1?e(IA,IA):n===.5?e(soe,uoe):e(dL(n),dL(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Iw(t)}function EE(){var e=coe(Hw());return e.copy=function(){return ty(e,EE()).exponent(e.exponent())},G2.apply(e,arguments),e}function cv(){return EE.apply(null,arguments).exponent(.5)}const BE=new Date,_E=new Date;function uu(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 o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let f;do c.push(f=new Date(+i)),t(i,s),e(i);while(f<i&&i<o);return c},a.filter=i=>uu(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(BE.setTime(+i),_E.setTime(+o),e(BE),e(_E),Math.floor(n(BE,_E))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lw=uu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lw.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?uu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lw),Lw.range;const Nh=1e3,L1=Nh*60,zh=L1*60,Oh=zh*24,TE=Oh*7,AL=Oh*30,kE=Oh*365,Wg=uu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nh)},(e,t)=>(t-e)/Nh,e=>e.getUTCSeconds());Wg.range;const ME=uu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nh)},(e,t)=>{e.setTime(+e+t*L1)},(e,t)=>(t-e)/L1,e=>e.getMinutes());ME.range,uu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*L1)},(e,t)=>(t-e)/L1,e=>e.getUTCMinutes()).range;const PE=uu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nh-e.getMinutes()*L1)},(e,t)=>{e.setTime(+e+t*zh)},(e,t)=>(t-e)/zh,e=>e.getHours());PE.range,uu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*zh)},(e,t)=>(t-e)/zh,e=>e.getUTCHours()).range;const ay=uu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*L1)/Oh,e=>e.getDate()-1);ay.range;const HE=uu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oh,e=>e.getUTCDate()-1);HE.range,uu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Oh,e=>Math.floor(e/Oh)).range;function K2(e){return uu(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())*L1)/TE)}const Rw=K2(0),Vw=K2(1),foe=K2(2),doe=K2(3),Xg=K2(4),Aoe=K2(5),hoe=K2(6);Rw.range,Vw.range,foe.range,doe.range,Xg.range,Aoe.range,hoe.range;function Z2(e){return uu(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)/TE)}const hL=Z2(0),Nw=Z2(1),poe=Z2(2),voe=Z2(3),Kg=Z2(4),moe=Z2(5),goe=Z2(6);hL.range,Nw.range,poe.range,voe.range,Kg.range,moe.range,goe.range;const DE=uu(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());DE.range,uu(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 Fh=uu(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());Fh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:uu(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)}),Fh.range;const J2=uu(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());J2.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:uu(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)}),J2.range;function yoe(e,t,n,r,a,i){const o=[[Wg,1,Nh],[Wg,5,5*Nh],[Wg,15,15*Nh],[Wg,30,30*Nh],[i,1,L1],[i,5,5*L1],[i,15,15*L1],[i,30,30*L1],[a,1,zh],[a,3,3*zh],[a,6,6*zh],[a,12,12*zh],[r,1,Oh],[r,2,2*Oh],[n,1,TE],[t,1,AL],[t,3,3*AL],[e,1,kE]];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),C=g?g.range(f,+A+1):[];return v?C.reverse():C}function c(f,A,h){const v=Math.abs(A-f)/h,g=dE(([,,B])=>B).right(o,v);if(g===o.length)return e.every(hE(f/kE,A/kE,h));if(g===0)return Lw.every(Math.max(hE(f,A,h),1));const[C,b]=o[v/o[g-1][2]<o[g][2]/v?g-1:g];return C.every(b)}return[s,c]}const[woe,boe]=yoe(Fh,DE,Rw,ay,PE,ME);function $E(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 IE(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 iy(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Coe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,f=oy(a),A=ly(a),h=oy(i),v=ly(i),g=oy(o),C=ly(o),b=oy(s),B=ly(s),E=oy(c),k=ly(c),P={a:pe,A:ae,b:ge,B:me,c:null,d:wL,e:wL,f:Uoe,g:tle,G:rle,H:Foe,I:Qoe,j:joe,L:bL,m:Goe,M:Yoe,p:fe,q:Ce,Q:_L,s:TL,S:Woe,u:Xoe,U:Koe,V:Zoe,w:Joe,W:qoe,x:null,X:null,y:ele,Y:nle,Z:ale,"%":BL},I={a:De,A:ke,b:$e,B:je,c:null,d:SL,e:SL,f:sle,g:gle,G:wle,H:ile,I:ole,j:lle,L:xL,m:ule,M:cle,p:Oe,q:ft,Q:_L,s:TL,S:fle,u:dle,U:Ale,V:hle,w:ple,W:vle,x:null,X:null,y:mle,Y:yle,Z:ble,"%":BL},$={a:le,A:Q,b:j,B:U,c:Y,d:gL,e:gL,f:Voe,g:mL,G:vL,H:yL,I:yL,j:$oe,L:Roe,m:Doe,M:Ioe,p:ee,q:Hoe,Q:zoe,s:Ooe,S:Loe,u:_oe,U:Toe,V:koe,w:Boe,W:Moe,x:X,X:te,y:mL,Y:vL,Z:Poe,"%":Noe};P.x=z(n,P),P.X=z(r,P),P.c=z(t,P),I.x=z(n,I),I.X=z(r,I),I.c=z(t,I);function z(ze,Xe){return function(tt){var qe=[],gt=-1,wt=0,Xt=ze.length,rr,sr,ra;for(tt instanceof Date||(tt=new Date(+tt));++gt<Xt;)ze.charCodeAt(gt)===37&&(qe.push(ze.slice(wt,gt)),(sr=pL[rr=ze.charAt(++gt)])!=null?rr=ze.charAt(++gt):sr=rr==="e"?" ":"0",(ra=Xe[rr])&&(rr=ra(tt,sr)),qe.push(rr),wt=gt+1);return qe.push(ze.slice(wt,gt)),qe.join("")}}function F(ze,Xe){return function(tt){var qe=iy(1900,void 0,1),gt=Z(qe,ze,tt+="",0),wt,Xt;if(gt!=tt.length)return null;if("Q"in qe)return new Date(qe.Q);if("s"in qe)return new Date(qe.s*1e3+("L"in qe?qe.L:0));if(Xe&&!("Z"in qe)&&(qe.Z=0),"p"in qe&&(qe.H=qe.H%12+qe.p*12),qe.m===void 0&&(qe.m="q"in qe?qe.q:0),"V"in qe){if(qe.V<1||qe.V>53)return null;"w"in qe||(qe.w=1),"Z"in qe?(wt=IE(iy(qe.y,0,1)),Xt=wt.getUTCDay(),wt=Xt>4||Xt===0?Nw.ceil(wt):Nw(wt),wt=HE.offset(wt,(qe.V-1)*7),qe.y=wt.getUTCFullYear(),qe.m=wt.getUTCMonth(),qe.d=wt.getUTCDate()+(qe.w+6)%7):(wt=$E(iy(qe.y,0,1)),Xt=wt.getDay(),wt=Xt>4||Xt===0?Vw.ceil(wt):Vw(wt),wt=ay.offset(wt,(qe.V-1)*7),qe.y=wt.getFullYear(),qe.m=wt.getMonth(),qe.d=wt.getDate()+(qe.w+6)%7)}else("W"in qe||"U"in qe)&&("w"in qe||(qe.w="u"in qe?qe.u%7:"W"in qe?1:0),Xt="Z"in qe?IE(iy(qe.y,0,1)).getUTCDay():$E(iy(qe.y,0,1)).getDay(),qe.m=0,qe.d="W"in qe?(qe.w+6)%7+qe.W*7-(Xt+5)%7:qe.w+qe.U*7-(Xt+6)%7);return"Z"in qe?(qe.H+=qe.Z/100|0,qe.M+=qe.Z%100,IE(qe)):$E(qe)}}function Z(ze,Xe,tt,qe){for(var gt=0,wt=Xe.length,Xt=tt.length,rr,sr;gt<wt;){if(qe>=Xt)return-1;if(rr=Xe.charCodeAt(gt++),rr===37){if(rr=Xe.charAt(gt++),sr=$[rr in pL?Xe.charAt(gt++):rr],!sr||(qe=sr(ze,tt,qe))<0)return-1}else if(rr!=tt.charCodeAt(qe++))return-1}return qe}function ee(ze,Xe,tt){var qe=f.exec(Xe.slice(tt));return qe?(ze.p=A.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function le(ze,Xe,tt){var qe=g.exec(Xe.slice(tt));return qe?(ze.w=C.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function Q(ze,Xe,tt){var qe=h.exec(Xe.slice(tt));return qe?(ze.w=v.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function j(ze,Xe,tt){var qe=E.exec(Xe.slice(tt));return qe?(ze.m=k.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function U(ze,Xe,tt){var qe=b.exec(Xe.slice(tt));return qe?(ze.m=B.get(qe[0].toLowerCase()),tt+qe[0].length):-1}function Y(ze,Xe,tt){return Z(ze,t,Xe,tt)}function X(ze,Xe,tt){return Z(ze,n,Xe,tt)}function te(ze,Xe,tt){return Z(ze,r,Xe,tt)}function pe(ze){return o[ze.getDay()]}function ae(ze){return i[ze.getDay()]}function ge(ze){return c[ze.getMonth()]}function me(ze){return s[ze.getMonth()]}function fe(ze){return a[+(ze.getHours()>=12)]}function Ce(ze){return 1+~~(ze.getMonth()/3)}function De(ze){return o[ze.getUTCDay()]}function ke(ze){return i[ze.getUTCDay()]}function $e(ze){return c[ze.getUTCMonth()]}function je(ze){return s[ze.getUTCMonth()]}function Oe(ze){return a[+(ze.getUTCHours()>=12)]}function ft(ze){return 1+~~(ze.getUTCMonth()/3)}return{format:function(ze){var Xe=z(ze+="",P);return Xe.toString=function(){return ze},Xe},parse:function(ze){var Xe=F(ze+="",!1);return Xe.toString=function(){return ze},Xe},utcFormat:function(ze){var Xe=z(ze+="",I);return Xe.toString=function(){return ze},Xe},utcParse:function(ze){var Xe=F(ze+="",!0);return Xe.toString=function(){return ze},Xe}}}var pL={"-":"",_:" ",0:"0"},Nu=/^\s*\d+/,Soe=/^%/,xoe=/[\\^$*+?|[\]().{}]/g;function yi(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 Eoe(e){return e.replace(xoe,"\\$&")}function oy(e){return new RegExp("^(?:"+e.map(Eoe).join("|")+")","i")}function ly(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Boe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _oe(e,t,n){var r=Nu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Toe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function koe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Moe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vL(e,t,n){var r=Nu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mL(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 Poe(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 Hoe(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 Doe(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 gL(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $oe(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 yL(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ioe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Loe(e,t,n){var r=Nu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Roe(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 Noe(e,t,n){var r=Soe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function zoe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ooe(e,t,n){var r=Nu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wL(e,t){return yi(e.getDate(),t,2)}function Foe(e,t){return yi(e.getHours(),t,2)}function Qoe(e,t){return yi(e.getHours()%12||12,t,2)}function joe(e,t){return yi(1+ay.count(Fh(e),e),t,3)}function bL(e,t){return yi(e.getMilliseconds(),t,3)}function Uoe(e,t){return bL(e,t)+"000"}function Goe(e,t){return yi(e.getMonth()+1,t,2)}function Yoe(e,t){return yi(e.getMinutes(),t,2)}function Woe(e,t){return yi(e.getSeconds(),t,2)}function Xoe(e){var t=e.getDay();return t===0?7:t}function Koe(e,t){return yi(Rw.count(Fh(e)-1,e),t,2)}function CL(e){var t=e.getDay();return t>=4||t===0?Xg(e):Xg.ceil(e)}function Zoe(e,t){return e=CL(e),yi(Xg.count(Fh(e),e)+(Fh(e).getDay()===4),t,2)}function Joe(e){return e.getDay()}function qoe(e,t){return yi(Vw.count(Fh(e)-1,e),t,2)}function ele(e,t){return yi(e.getFullYear()%100,t,2)}function tle(e,t){return e=CL(e),yi(e.getFullYear()%100,t,2)}function nle(e,t){return yi(e.getFullYear()%1e4,t,4)}function rle(e,t){var n=e.getDay();return e=n>=4||n===0?Xg(e):Xg.ceil(e),yi(e.getFullYear()%1e4,t,4)}function ale(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yi(t/60|0,"0",2)+yi(t%60,"0",2)}function SL(e,t){return yi(e.getUTCDate(),t,2)}function ile(e,t){return yi(e.getUTCHours(),t,2)}function ole(e,t){return yi(e.getUTCHours()%12||12,t,2)}function lle(e,t){return yi(1+HE.count(J2(e),e),t,3)}function xL(e,t){return yi(e.getUTCMilliseconds(),t,3)}function sle(e,t){return xL(e,t)+"000"}function ule(e,t){return yi(e.getUTCMonth()+1,t,2)}function cle(e,t){return yi(e.getUTCMinutes(),t,2)}function fle(e,t){return yi(e.getUTCSeconds(),t,2)}function dle(e){var t=e.getUTCDay();return t===0?7:t}function Ale(e,t){return yi(hL.count(J2(e)-1,e),t,2)}function EL(e){var t=e.getUTCDay();return t>=4||t===0?Kg(e):Kg.ceil(e)}function hle(e,t){return e=EL(e),yi(Kg.count(J2(e),e)+(J2(e).getUTCDay()===4),t,2)}function ple(e){return e.getUTCDay()}function vle(e,t){return yi(Nw.count(J2(e)-1,e),t,2)}function mle(e,t){return yi(e.getUTCFullYear()%100,t,2)}function gle(e,t){return e=EL(e),yi(e.getUTCFullYear()%100,t,2)}function yle(e,t){return yi(e.getUTCFullYear()%1e4,t,4)}function wle(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Kg(e):Kg.ceil(e),yi(e.getUTCFullYear()%1e4,t,4)}function ble(){return"+0000"}function BL(){return"%"}function _L(e){return+e}function TL(e){return Math.floor(+e/1e3)}var Zg,kL;Cle({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 Cle(e){return Zg=Coe(e),kL=Zg.format,Zg.parse,Zg.utcFormat,Zg.utcParse,Zg}function Sle(e){return new Date(e)}function xle(e){return e instanceof Date?+e:+new Date(+e)}function ML(e,t,n,r,a,i,o,s,c,f){var A=JI(),h=A.invert,v=A.domain,g=f(".%L"),C=f(":%S"),b=f("%I:%M"),B=f("%I %p"),E=f("%a %d"),k=f("%b %d"),P=f("%B"),I=f("%Y");function $(z){return(c(z)<z?g:s(z)<z?C:o(z)<z?b:i(z)<z?B:r(z)<z?a(z)<z?E:k:n(z)<z?P:I)(z)}return A.invert=function(z){return new Date(h(z))},A.domain=function(z){return arguments.length?v(Array.from(z,xle)):v().map(Sle)},A.ticks=function(z){var F=v();return e(F[0],F[F.length-1],z??10)},A.tickFormat=function(z,F){return F==null?$:f(F)},A.nice=function(z){var F=v();return(!z||typeof z.range!="function")&&(z=t(F[0],F[F.length-1],z??10)),z?v(oL(F,z)):A},A.copy=function(){return ty(A,ML(e,t,n,r,a,i,o,s,c,f))},A}function Ele(){return G2.apply(ML(woe,boe,Fh,DE,Rw,ay,PE,ME,Wg,kL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PL(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="continuous"}function LE(e){return e!==null&&typeof e=="object"&&"palette"in e&&"type"in e&&e.type==="categorical"}function HL(e){return LE(e)||PL(e)}const Jg="#110529",Ble="solid",sy=1,q2="21",L0=3,RE=2,em={min:3,max:10},DL={color:"#ccc",lineShape:Ble,dotShape:q2},_le="light";function Tle(e){const t=1/(e.length-1);return Zr().domain(e.map((n,r)=>r*t)).range(e)}function $L(e,t){const n=Ui[e].colors,r=t.length>1?1/(t.length-1):0,a=Tle(n),i=fE(e),o=t.reduce((s,c,f)=>(s[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:Fg[f%Fg.length],dotShape:X4[f%X4.length]}},s),{});return{type:"categorical",palette:e,naAes:DL,order:t,mapping:o}}function tm(e){return{type:"continuous",palette:e,naAes:DL,range:null,midPoint:null,log:!1}}function nm(e){return $L(_le,e)}function IL(e,t,n,r){var i;if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??nm(n?((i=e[n])==null?void 0:i.list)??[]:[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={},r.fill&&(o[s].fillColor=c.color,o[s].dotFill=c.color),r.stroke&&(o[s].lineColor=c.color),r.dotShape&&(o[s].dotShape=c.dotShape),r.lineType&&(o[s].lineShape=c.lineShape),o},{})}}function LL(e,t,n){var i;const r=n[e];if(r&&!LE(r))return{};const a=r??nm(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={fillColor:c.color,lineColor:c.color,dotFill:c.color,dotShape:c.dotShape,dotSize:L0,lineWidth:sy},o},{})}function kle(e,t,n){var i;const r=n[e];if(r&&!LE(r))return{};const a=r??nm(((i=t[e])==null?void 0:i.list)??[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]={fillColor:c.color,lineColor:pi,dotFill:pi,dotShape:q2,dotSize:L0,lineWidth:sy},o},{})}}function VE(e,t,n,r){var i;const a=n[e]??nm(((i=t[e])==null?void 0:i.list)??[]);return a.order.reduce((o,s)=>{const c=a.mapping[s].aes;return o[s]=c[r],o},{})}const Mle={},Ple={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Hle(e,t){return d.openBlock(),d.createElementBlock("svg",Ple,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 RL=mr(Mle,[["render",Hle]]),zw="pl7.app/graph/thresholds",fv="pl7.app/graph/axis/lowerLimit",dv="pl7.app/graph/axis/upperLimit",Av="pl7.app/graph/axis/symmetricRange",qg="pl7.app/graph/palette",Ow="pl7.app/axisNature",Dle="pl7.app/isSubset";function $le(e,t){return t==="discrete"?e&&e5[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&rm[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const e5={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"]},rm={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},VL={dots:["dots"],curve_dots:["curve","dots"]},Ile={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},Lle={bins:["bins"]},LA={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 Rle(e,t){var r,a,i,o,s,c,f,A,h,v,g,C,b,B,E,k,P,I,$,z,F,Z,ee,le,Q,j,U,Y,X,te,pe;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:((o=(i=ae==null?void 0:ae.overall)==null?void 0:i.validity)==null?void 0:o.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:((C=(g=ae==null?void 0:ae.referenceGroup)==null?void 0:g.data)==null?void 0:C.format)??"significance",ns:((B=(b=ae==null?void 0:ae.referenceGroup)==null?void 0:b.data)==null?void 0:B.ns)??!1},validity:{testMethod:((k=(E=ae==null?void 0:ae.referenceGroup)==null?void 0:E.validity)==null?void 0:k.testMethod)??!0,referenceGroup:((I=(P=ae==null?void 0:ae.referenceGroup)==null?void 0:P.validity)==null?void 0:I.referenceGroup)??!0}},pairwise:{data:{testMethod:((z=($=ae==null?void 0:ae.pairwise)==null?void 0:$.data)==null?void 0:z.testMethod)??null,correctionMethod:((Z=(F=ae==null?void 0:ae.pairwise)==null?void 0:F.data)==null?void 0:Z.correctionMethod)??"Bonferroni",format:((le=(ee=ae==null?void 0:ae.pairwise)==null?void 0:ee.data)==null?void 0:le.format)??"significance",ns:((j=(Q=ae==null?void 0:ae.pairwise)==null?void 0:Q.data)==null?void 0:j.ns)??!1},validity:{testMethod:((Y=(U=ae==null?void 0:ae.pairwise)==null?void 0:U.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:((te=n==null?void 0:n.trend)==null?void 0:te.trim)??!1,showLegend:((pe=n==null?void 0:n.trend)==null?void 0:pe.showLegend)??!0}}}function NE(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function t5(e){return typeof e=="object"&&e!==null&&"type"in e}function Qh(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e}const Vle=()=>({bubble:{NAValueAs:0,strokeColor:null,minRadius:3,maxRadius:38,normalizationDirection:"row",normalizationMethod:"standardScaling"},bins:{fillColor:null,opacity:1},dendro:{dotFill:pi,dotShape:DA,dotSize:L0,lineColor:pi,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:null},curve:{lineColor:pi,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:Jg,dotShape:DA,lineType:Cw,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:Jg,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:DA,lineColor:Jg,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:Jg,lineType:Cw,opacity:1,trim:!1,showQuartiles:!1,quartilesLineStyle:"dashed",medianLineStyle:"solid"},bar:{fillColor:null,lineColor:Jg,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:Jg,opacity:1,normalize:!1},line:{pointsValues:"mean",lineColor:null,dotShape:DA,lineType:Cw,dotFill:null,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:DA,dotFill:null,opacity:1},sina:{dotFill:null,dotShape:DA,opacity:1,showOutliers:!0},logo:{normalize:!1,opacity:1}});function Nle(e){const t=Vle();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const zle=()=>({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",allowNullPrimaryGroups:!1,allowNullSecondaryGroups:!1},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,groupingDirection:"straight",groupingStack:"vertical"}});function NL(e){return e==="full"||e==="none"}function Ole(e,t){var a;const n=zle();if(!t)return n;function r(i){return!i||e==="heatmap"&&!NL(i)?"full":e!=="heatmap"&&NL(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 _f={box:are,box_binnedDots:sre,box_jitteredDots:dre,binnedDots:vre,jitteredDots:wre,violin:xre,violin_binnedDots:Tre,violin_jitteredDots:Hre,bar:gI,bar_line:yI,bar_errorbar:Fre,stackedBar:Gre,line:wI,line_binnedDots:qre,line_jitteredDots:bI,line_errorbar:oae,errorbar:yI,sina:cae,logo:bae,dots:hae,curve:wI,curve_dots:bI,heatmap:CI,heatmapClustered:RL,dendro:RL,bins:gI,bubble:CI},Fw=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],zL=[{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"}],OL=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}],FL=600,QL=350,Fle=400,Qle=250;function jL(e,t,n){var a,i,o,s,c,f;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((s=(o=e.components)==null?void 0:o[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 jle(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 UL(e,t,n,r,a){const i=[],o=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function c(f,A=!1){return f===null?s?{type:"secondaryGrouping"}:o&&!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?Qae:Fae}})}}),o&&!s&&i.push(...jle(n)),i}function Ule(e,t,n,r){if(e){const a=Qh(t)?t:{column:e.value,range:em},i=[1/0,-1/0];return n.values[e.value].forEach(o=>{const s=Number(o);s<i[0]&&(i[0]=s),s>i[1]&&(i[1]=s)}),{columnName:e,domain:i,range:[a.range.min,a.range.max]}}return Qh(t)?r:t??r}function GL(e,t,n,r){const a=n.find(o=>o.value===e);let i=[1/0,-1/0];if(a){const{range:o,palette:s,midPoint:c,log:f}=t,A=(o==null?void 0:o.minValue)===null||(o==null?void 0:o.minValue)===void 0,h=(o==null?void 0:o.maxValue)===null||(o==null?void 0:o.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]=o==null?void 0:o.minValue),h||(i[1]=o==null?void 0:o.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:Ui[s].colors,type:f?"log":"linear"}}return pi}function YL(e,t,n,r,a,i,o=[],s=L0){var C,b;const c=[];function f(B,E,k,P=!1){var I;if(E.length){const $=E.length?(I=i.getSourceInfo(E[0]))==null?void 0:I.type:void 0,z=$==="String"||!P?{type:"grouping",value:E[0]}:GL(E[0],tm(ov),o,n),F=a[E[0]];return B===null||$==="String"||!P||!PL(F)?z:GL(E[0],F,o,n)}return typeof B=="object"?k:B}const A=r.components.grouping.selectorStates.map(B=>B.selectedSource),h=((C=r.components.shape)==null?void 0:C.selectorStates.map(B=>B.selectedSource))??[],v=(b=r.components.size)==null?void 0:b.selectorStates.map(B=>B.selectedSource)[0],g=v?o.find(B=>B.value===v):void 0;return e.forEach(B=>{if(B==="dots"){const E=t[B];c.push({type:"dots",aes:{dotFill:f(E.dotFill,A,pi,!0),dotShape:f(E.dotShape,h,DA),dotSize:Ule(g,E.dotSize,n,s)}})}if(B==="curve"){const E=t[B];c.push({type:"curve",smoothing:E.smoothing,aes:{lineColor:f(E.lineColor,A,pi,!0)}})}}),c}const Gle=6,Yle=5;function WL(e,t=[]){return e!==null?e:t.length>Gle&&t.some(({label:n})=>n.length>Yle)?"45deg":"center"}function n5(e,t,n=[]){let r={},a={};t==="discrete"&&(r.labelsPosition=WL(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)),t==="histogram"&&(i.groupingDirection=e.other.groupingDirection,i.groupingStack=e.other.groupingStack),i}function R0(e){return JSON.parse(JSON.stringify(e))}function Wle(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 XL(e,t,n,r){return(t==null?void 0:t[Dle])==="true"?"subset":r!==void 0?"range":n!==void 0||e==="Int"||e==="String"?"equals":"range"}async function zE(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")),o=[];for(const{inputName:s,filterType:c,selectedSource:f,selectedFilterValue:A,selectedFilterRange:h,fixedAxes:v}of a){const{name:g,valueType:C,annotations:b,domain:B}=f,E=await e.pFrameProvider.findColumnBy(g,C,d.toRaw(b),d.toRaw(B)),k=s==="filters"||s==="tabBy"||s==="highlight";if(E){const P=await e.pFrameProvider.getColumnSpecById(E),I=P&&v?v.map($=>({axisIdx:$.axisIdx,axisValue:$.axisValue,axisSource:Lr.fromAxisSpec(P==null?void 0:P.axesSpec[$.axisIdx]).toCanonicalString()})):[];if(!k)r.push({inputName:s,selectedSource:E.toCanonicalString(),fixedAxes:I});else{const $=c??XL(C,P==null?void 0:P.annotations,A,h),z=$==="equals"&&typeof A>"u"?(await e.pFrameProvider.getColumnUniqueValues(E))[0]:A,F={min:void 0,max:void 0,...h};r.push({inputName:s,filterType:$,selectedSource:E.toCanonicalString(),selectedFilterValue:z,selectedFilterRange:F,fixedAxes:I})}o.push(...(P==null?void 0:P.axesSpec.map($=>({spec:$,parentColumn:E})))??[])}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=Lr.fromAxisSpec(c),g=v.toCanonicalString(),C=s==="filters"||s==="tabBy"||s==="highlight",b=C?f??XL(v.type,c==null?void 0:c.annotations):void 0,B=o.find(P=>Lr.fromAxisSpec(P.spec).toCanonicalString()===g),E=C&&b==="equals"&&typeof A>"u"&&(B!=null&&B.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(v,[B==null?void 0:B.parentColumn]))[0]:A,k={min:void 0,max:void 0,...h};if(n||r.push({inputName:s,filterType:b,selectedSource:g,selectedFilterValue:E,selectedFilterRange:k,fixedAxes:[]}),B)r.push({inputName:s,filterType:b,selectedSource:g,selectedFilterValue:E,selectedFilterRange:k,fixedAxes:[]});else{const{spec:P,parentColumn:I}=o.find($=>v.name===$.spec.name&&v.type===$.spec.type&&Wle(v.domain,$.spec.domain))??{};if(P){const $=(s==="filters"||s==="tabBy")&&typeof A>"u"?(await e.pFrameProvider.getAxisUniqueValues(Lr.fromAxisSpec(P),[I]))[0]:A;r.push({inputName:s,filterType:b,selectedSource:Lr.fromAxisSpec(P).toCanonicalString(),selectedFilterValue:$,selectedFilterRange:k,fixedAxes:[]})}}}return r}async function KL(e,t,n){if(!n||n.length===0)return e;const r=await zE(t,n,!1),a=R0(e);return r.forEach(({inputName:i,selectedSource:o,selectedFilterValue:s})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:o,type:"equals",selectedFilterValue:s})}),a}const ZL={fillColor:iv,lineColor:pi,dotFill:iv,dotShape:q2,dotSize:L0,lineWidth:sy};function Xle(e,t,n,r){var c;const a=UL(e5[t.template],t.layersSettings,t.statisticsSettings,t.optionsState,r),i=tR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,r);e.layers=a;const o=t.optionsState.components;if(o.primaryGrouping.selectorStates.length&&e.primaryGrouping){const f=o.primaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.primaryGrouping,IL(n,t.dataBindAes[f],f,A)),t.axesSettings.axisX.allowNullPrimaryGroups&&(e.primaryGrouping.allowNullGroup=!0,e.primaryGrouping.order&&(e.primaryGrouping.order=[...e.primaryGrouping.order,"null"]),e.primaryGrouping.inheritedAes&&(e.primaryGrouping.inheritedAes.null=ZL))}if(o.secondaryGrouping.selectorStates&&e.secondaryGrouping){const f=o.secondaryGrouping.selectorStates[0].selectedSource,A=i[f];Object.assign(e.secondaryGrouping,IL(n,t.dataBindAes[f],f,A)),t.axesSettings.axisX.allowNullSecondaryGroups&&(e.secondaryGrouping.allowNullGroup=!0,e.secondaryGrouping.order&&(e.secondaryGrouping.order=[...e.secondaryGrouping.order,"null"]),e.secondaryGrouping.inheritedAes&&(e.secondaryGrouping.inheritedAes.null=ZL))}const s=e.primaryGrouping?(c=n[e.primaryGrouping.columnName.value])==null?void 0:c.options:[];return Object.assign(e,n5(t.axesSettings,t.chartType,s)),e}function Kle(e,t,n,r,a){var C,b,B,E,k;e.layers=YL(rm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping);const i=n.optionsState.components.grouping,o=n.optionsState.components.shape;if(i.selectorStates.length||o.selectorStates.length){const P=[...i.selectorStates,...o.selectorStates],I={};P.forEach(({selectedSource:$})=>{I[$]=LL($,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:I})}const s=n.statisticsSettings,c=e.layers.find(P=>P.type==="dots");s.trend.on&&c&&(e.trend={color:(C=c.aes)==null?void 0:C.dotFill,bounded:!1}),Object.assign(e,n5(n.axesSettings,n.chartType));const f=(b=i.selectorStates[0])==null?void 0:b.selectedSource,A=(B=n.optionsState.components.x.selectorStates[0])==null?void 0:B.selectedSource,h=(E=n.optionsState.components.y.selectorStates[0])==null?void 0:E.selectedSource,v=r.getSourceInfo(A),g=r.getSourceInfo(h);if(i.selectorStates.length){const P=r.getSourceInfo(f).annotations;if(P!=null&&P[zw]&&(JSON.parse(P[zw])??[]).forEach($=>{const{columnId:z,value:F}=$;z&&v.kind==="column"&&v.type===z.valueType&&v.name===z.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(F))),z&&g.kind==="column"&&g.type===z.valueType&&g.name===z.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(F)))}),P!=null&&P[qg]){const I=JSON.parse(P[qg]),{mapping:$={},name:z=""}=I;e.layers.forEach(ee=>{ee.type==="dots"&&(ee.aes||(ee.aes={}),ee.aes.dotFill={type:"grouping",value:f})});const F=[...Object.entries($),["null",bw]],Z=((k=Ui[z])==null?void 0:k.colors)??[];e.inheritedAes[f]=F.reduce((ee,[le,Q])=>{const j=Z[Number(Q)]??pi;return ee[le]={fillColor:j,lineColor:j,dotFill:j,dotShape:q2,dotSize:L0,lineWidth:sy},ee},{})}}return v.annotations&&(v.annotations[dv]&&(e.xAxis.upperValue=Number(v.annotations[dv])),v.annotations[fv]&&(e.xAxis.lowerValue=Number(v.annotations[fv])),v.annotations[Av]&&(e.xAxis.symmetricRange=Number(v.annotations[Av]))),g.annotations&&(g.annotations[dv]&&(e.yAxis.upperValue=Number(g.annotations[dv])),g.annotations[fv]&&(e.yAxis.lowerValue=Number(g.annotations[fv])),g.annotations[Av]&&(e.yAxis.symmetricRange=Number(g.annotations[Av]))),e}const Zle=750,Jle=450;function qle(e,t,n,r,a){var h,v,g,C;e.layers=YL(rm[n.template],n.layersSettings,t,n.optionsState,n.dataBindAes,r,e==null?void 0:e.grouping,RE);const i=n.optionsState.components.grouping;if(i.selectorStates.length){const b=[...i.selectorStates],B={};b.forEach(({selectedSource:E})=>{B[E]=LL(E,a,n.dataBindAes)}),Object.assign(e,{inheritedAes:B})}Object.assign(e,n5(n.axesSettings,n.chartType));const o=(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 b=r.getSourceInfo(o).annotations;if(b!=null&&b[zw]&&(JSON.parse(b[zw])??[]).forEach(E=>{const{columnId:k,value:P}=E;k&&f.kind==="column"&&f.type===k.valueType&&f.name===k.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(P))),k&&A.kind==="column"&&A.type===k.valueType&&A.name===k.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(P)))}),b!=null&&b[qg]){const B=JSON.parse(b[qg]),{mapping:E={},name:k=""}=B;e.layers.forEach($=>{$.type==="dots"&&($.aes||($.aes={}),$.aes.dotFill={type:"grouping",value:o})});const P=[...Object.entries(E),["null",bw]],I=((C=Ui[k])==null?void 0:C.colors)??[];e.inheritedAes[o]=P.reduce(($,[z,F])=>{const Z=I[Number(F)]??pi;return $[z]={fillColor:Z,lineColor:Z,dotFill:Z,dotShape:q2,dotSize:L0,lineWidth:sy},$},{})}}return f.annotations&&(f.annotations[dv]&&(e.xAxis.upperValue=Number(f.annotations[dv])),f.annotations[fv]&&(e.xAxis.lowerValue=Number(f.annotations[fv])),f.annotations[Av]&&(e.xAxis.symmetricRange=Number(f.annotations[Av]))),A.annotations&&(A.annotations[dv]&&(e.yAxis.upperValue=Number(A.annotations[dv])),A.annotations[fv]&&(e.yAxis.lowerValue=Number(A.annotations[fv])),A.annotations[Av]&&(e.yAxis.symmetricRange=Number(A.annotations[Av]))),e.size={width:Zle,height:Jle},e.lassoMode=n.lassoMode,e}function ese(e,t){var o,s;const n={},r=(o=t.dataBindAes[e.valueColumn.value])==null?void 0:o.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=Ui[r??zae].colors}else n.colorsList=Ui[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"?xI:ov;c.colors=Ui[A??h].colors}),Object.assign(e,n5(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 tse=280;async function nse(e,t,n,r,a,i){var f,A,h,v;n.rootPosition="left",n.size={width:FL,height:QL};const o=r.optionsState.components,s=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const g=(f=o.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,C=VE(g,a,r.dataBindAes,"dotShape");Object.keys(C).length?c.nodeShape.valuesMap=C:c.nodeShape=q2}else typeof s.dotShape=="string"&&(c.nodeShape=s.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const g=(A=o.nodeColor.selectorStates[0])==null?void 0:A.selectedSource,C=VE(g,a,r.dataBindAes,"color");Object.keys(C).length?c.nodeColor.valuesMap=C:c.nodeColor=pi}else typeof s.dotFill=="string"&&(c.nodeColor=s.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const g=(h=o.nodeSize.selectorStates[0])==null?void 0:h.selectedSource;let[C,b]=[1/0,-1/0];t.values[g].forEach(B=>{const E=Number(B);E<C&&(C=E),E>b&&(b=E)}),c.nodeSize.domain=[C,b],c.nodeSize.range=NE(s.dotSize)?[s.dotSize.min,s.dotSize.max]:[em.min,em.max]}else typeof s.dotSize=="number"&&(c.nodeSize=s.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const g=(v=o.lineColor.selectorStates[0])==null?void 0:v.selectedSource;c.lineColor.valuesMap=VE(g,a,r.dataBindAes,"color")}else typeof s.lineColor=="string"&&(c.lineColor=s.lineColor);if(o.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Ui.bright.colors}},n.size.maxCellWidth=8),o.heatmapAnnotation.selectorStates.length>0){const g=en(o.heatmapAnnotation.selectorStates[0].selectedSource),C=await e.pFrameProvider.getColumnSpecById(g),b=(C==null?void 0:C.valueType)==="Double"||(C==null?void 0:C.valueType)==="Float"||(C==null?void 0:C.valueType)==="Int"||(C==null?void 0:C.valueType)==="Long"?"continuous":"discrete",B=Ui.bright.colors;let E;b==="discrete"&&(E=(await e.pFrameProvider.getColumnUniqueValues(g)).filter(Boolean).reduce((P,I,$)=>(P[I]=B[$%B.length],P),{})),n.heatmapSettings={valueType:b,aes:{colorsList:Ui.viridis.colors,colorsMap:E}}}return n.mode=s.mode,n.leavesMode=s.leavesMode,n.showNodesLabels=o.labels.selectorStates.length>0,n.showLeavesLabels=o.labels.selectorStates.length>0,s.showTable&&o.heatmapAnnotation.selectorStates.length===0&&o.heatmapForSequence.selectorStates.length===0&&(n.size.width=tse),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}function rse(e,t,n){return t.length?{type:"grouping",value:t[0]}:typeof e=="object"?n:e}function ase(e,t,n){const r=t.optionsState.components.grouping;if(r.selectorStates.length){const o=r.selectorStates[0].selectedSource,{inheritedAes:s,order:c}=kle(o,n,t.dataBindAes);Object.assign(e,{inheritedAes:{[o]:s},groupingOrder:c})}const a=Lle[t.template],i=[];return a.forEach(o=>{if(o==="bins"){const s=t.layersSettings[o];i.push({type:"bins",aes:{opacity:s.opacity,fillColor:rse(s.fillColor,r.selectorStates.map(c=>c.selectedSource),"white")}})}}),e.layers=i,Object.assign(e,n5(t.axesSettings,t.chartType)),e.binsCount=t.axesSettings.other.binsCount,e}const JL=40,ise=JL/2-2,ose=3;function lse(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??pi,colorsList:Ui[a??ov].colors,maxRadius:ise*(t.chartScale/100),minRadius:ose},e.size={cellSize:JL*(t.chartScale/100)},Object.assign(e,n5(t.axesSettings,t.chartType)),e.NAValueAs=r.NAValueAs,r.normalizationDirection&&(e.normalization={method:r.normalizationMethod,direction:r.normalizationDirection}),e}function sse(e,t=0){return{width:(t>0?Fle:FL)*(e/100),height:(t>0?Qle:QL)*(e/100)}}function use(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 o=[];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];o.push((v==null?void 0:v.labels[h])??String(h))}}),{name:o.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function cse(e,t,n,r,a){var i;if(!e.ready||r===null)return null;try{const o=ww(n.chartType),s=await KL(n.optionsState,r,a),c=await o.createDataForPlot(r,s);let f=c.settings;return f.title=use(n.chartType,n.optionsState,t,n.axesSettings),f.size=sse(n.chartScale,((i=n.optionsState.components)==null?void 0:i.facetBy.selectorStates.length)||0),n.chartType==="discrete"&&(f=Xle(f,n,t,e)),n.chartType==="scatterplot"&&(f=Kle(f,c.dataByColumns,n,e,t)),n.chartType==="scatterplot-umap"&&(f=qle(f,c.dataByColumns,n,e,t)),n.chartType==="heatmap"&&(f=ese(f,n)),n.chartType==="dendro"&&(f=await nse(r,c.dataByColumns,f,n,t,n.chartScale)),n.chartType==="histogram"&&(f=ase(f,n,t)),n.chartType==="bubble"&&(f=lse(f,n)),{settings:f,dataByColumns:c.dataByColumns}}catch(o){return console.warn("Cant build chart data"),console.warn(o.message),null}}function qL(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function eR(e){return e.length<2?[]:e.length>2?Fw.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):Fw}function OE(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=eR(t),i=qL(t),o=r.overall.data.testMethod,s=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,o),r.referenceGroup.validity.referenceGroup=n(i,s)}}function fse(e){e.dispatchEvent(new MouseEvent("click"))}function dse(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(){fse(r)},0)}function uy(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return t5(a)&&a.type===n})}function tR(e,t,n,r,a,i){var c,f,A;const o={};let s=[];if(e==="discrete"){s=["primaryGrouping","secondaryGrouping"];const h=UL(e5[t],n,r,a,i);s.forEach(v=>{var C,b;const g=(b=(C=a.components[v])==null?void 0:C.selectorStates[0])==null?void 0:b.selectedSource;g&&(o[g]={fill:uy(h,"fillColor",v)||uy(h,"dotFill",v),stroke:uy(h,"lineColor",v),dotShape:uy(h,"dotShape",v),lineType:uy(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=>{o[g]={fill:g===h[0],stroke:!1,dotShape:g===v[0],lineType:!1,size:!1}})}if(e==="scatterplot-umap"&&(s=a.components.grouping.selectorStates.map(h=>h.selectedSource),s.forEach(h=>{o[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=>{o[v]={fill:t5(n.dendro.dotFill)&&n.dendro.dotFill.value===v,stroke:t5(n.dendro.lineColor)&&n.dendro.lineColor.value===v,dotShape:t5(n.dendro.dotShape)&&n.dendro.dotShape.value===v,lineType:!1,size:!1}})),e==="histogram"){const h=a.components.grouping.selectorStates.map(v=>v.selectedSource);h.forEach(v=>{o[v]={fill:v===h[0],stroke:!1,dotShape:!1,lineType:!1,size:!1}})}return o}var Ase=Object.defineProperty,hse=(e,t,n)=>t in e?Ase(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FE=(e,t,n)=>hse(e,typeof t!="symbol"?t+"":t,n);function pse(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function vse(e,t){if(e===void 0)throw Error(t??"Undefined value");return e}function mse(e=void 0){return e}function gse(e){return e}function yse(e){return[...new Set(e)]}function wse(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value")}function bse(e,t){if(e===void 0)throw Error(t??"Undefined value")}function Cse(e,t,n){const r=Math.min(t,n),a=Math.max(t,n);return e>=r&&e<=a}function Sse(e){return e.map(t=>({text:String(t),value:t}))}function xse(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 Ese{constructor(){FE(this,"promise"),FE(this,"resolve",()=>{}),FE(this,"reject",()=>{}),this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}function QE(e){return new Promise(t=>setTimeout(t,e))}function Bse(){return new Promise(e=>queueMicrotask(e))}function _se(){const e=new Date().getTime();return function(){return new Date().getTime()-e}}function Tse(){const e=performance.now();return function(){return performance.now()-e}}function kse(e){return e()}function Mse(e,t,n){return t>e?t:e>n?n:e}function Pse(e,t){return t(e)}function Hse(e,t){if(e!=null)return t(e)}function Dse(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e}function*nR(e,t,n=1){for(let r=e;r<t;r+=n)yield r}function rR(e){const t=[];for(const n of e)t.push(n);return t}function $se(e,t){return rR(nR(0,e)).map(t)}let Ise=class{constructor(t){this._delay=t}async*generate(){let t=0;for(;;)await QE(this._delay),yield t++}async*[Symbol.asyncIterator](){let t=0;for(;;)await QE(this._delay),yield t++}};function Lse(e,t){return Array.from({length:e},(n,r)=>t(r))}function Rse(e,t){throw Error(t)}function Vse(e){return t=>e[t]()}function Nse(e){if(e&&e.ok)return e.value}function zse(e){if(e&&!e.ok)return e.error}function Ose(e){if(e.ok)return e.value;throw Error(e.error)}function Fse(e){return Array.isArray(e)?e:[e]}async function Qse(e){return Object.fromEntries(await Promise.all(Object.entries(e).map(async([t,n])=>[t,await n])))}function jse(e,t){return Object.keys(t).every(n=>e[n]===t[n])}const Use=e=>e;function Gse(e){return e}function Yse(e){return Object.entries(e).map(([t,n])=>({key:t,value:n}))}const cy=Object.freeze(Object.defineProperty({__proto__:null,Deferred:Ese,Interval:Ise,alike:jse,arrayFrom:Lse,asConst:Gse,async:xse,between:Cse,bool:gse,call:kse,checkIfDefined:bse,checkIfNotEmpty:wse,clamp:Mse,delay:QE,errorOptional:zse,exhaustive:Rse,flatValue:Fse,identity:Use,listToOptions:Sse,match:Vse,notEmpty:pse,notUndef:vse,okOptional:Nse,performanceTimer:Tse,randomInt:Dse,range:nR,resolveAwaited:Qse,tap:Pse,tapIf:Hse,tear:Bse,timer:_se,times:$se,toList:rR,undef:mse,unionize:Yse,uniqueValues:yse,unwrap:Ose},Symbol.toStringTag,{value:"Module"})),fy=Array.isArray;function Qw(e){return e!==null&&typeof e=="object"}function r5(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 Wse(e,t){return Object.keys(e).map(n=>t(e[n],n))}function aR(e){return Object.values(e).reduce((t,n)=>n!==void 0?t+1:t,0)}function jw(e,t){if(!(Qw(e)&&Qw(t)))return e===t;if(fy(e)&&fy(t))return e.length!==t.length?!1:[...e.keys()].every(n=>jw(e[n],t[n]));if(r5(e)&&r5(t))return aR(e)!==aR(t)?!1:Object.keys(e).every(n=>jw(e[n],t[n]));throw Error(`Cannot compare a ${String(e)} and b ${String(t)}`)}const Xse=jw;function Uw(e){if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=Uw(e[n]);return t}else if(r5(e)){const t={};return Object.keys(e).forEach(n=>{t[n]=Uw(e[n])}),t}else return e}function Kse(e){return Array.isArray(e)?Object.assign([],e):Qw(e)?Object.assign({},e):e}function Zse(e,t){const n={};for(const r in t)t[r]!==e[r]&&(n[r]=e[r]);return n}function Jse(e){return Object.entries(e).forEach(([t,n])=>{n instanceof Function&&(e[t]=n.bind(e))}),e}function qse(e,t,n){return e[t]=n,e}function eue(e,t){return e[t]}function tue(e,t){e={...e};const n=e[t];return delete e[t],[n,e]}function nue(e,...t){return Object.assign({},...t.map(n=>({[n]:e[n]})))}function rue(e,...t){return t.map(n=>e[n])}function aue(e,...t){const n=Object.assign({},e);return t.forEach(r=>delete n[r]),n}function iR(e,t){return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{const r=e[n],a=t[n];r5(r)&&r5(a)||fy(r)&&fy(a)&&r.length===a.length?iR(r,a):e[n]=a}),e}const iue=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Jse,deepClone:Uw,deepEqual:Xse,deepPatch:iR,getProp:eue,isArray:fy,isJsonEqual:jw,isNonPrimitive:Qw,isPlainObject:r5,map:Wse,omit:aue,pick:nue,pickValues:rue,setProp:qse,shallowClone:Kse,shallowDiff:Zse,shiftProp:tue},Symbol.toStringTag,{value:"Module"}));function oue(e,t){const n=R0(mI(e));if((t==null?void 0:t.type)!==e)return n;const r=R0(t);return{...n,...r,components:{...n.components,...r.components}}}function jE(e,t){return d.reactive({chartType:t,optionsState:oue(t,e.optionsState),dataStateKey:Uw(e.dataStateKey),template:$le(e.template,t),statisticsSettings:Rle(t,e.statisticsSettings),layersSettings:Nle(e.layersSettings),axesSettings:Ole(t,e.axesSettings),dataBindAes:R0(e.dataBindAes??{}),chartScale:e.zoomState??100,lassoMode:!1,currentTab:e.currentTab===void 0?"dataMapping":e.currentTab,dendroInfoByClick:null,dendroSelectedNodeId:null,showTooltipHint:!1})}function lue(e,t,n,r,a,i,o){return{reactive:e,loading:d.reactive({initialInputGuide:!0,initialCharts:!0,initialDefaults:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:d.computed(()=>jL(e.optionsState,i.value,"primaryGrouping")),secondaryGroups:d.computed(()=>jL(e.optionsState,i.value,"secondaryGrouping")),usedAesInMapping:d.computed(()=>tR(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState,n.value)),dendroTableData:a},controller:ww(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r,uniqueValuesData:i,readonlyInputs:o}}function sue(e,t,n,r,a,i,o){const s=jE(e,n),c=ww(s.chartType),f=d.ref(ww(s.chartType).getEmptyInputGuide(s.optionsState)),A=d.ref(null),h=d.ref({}),v=d.ref(null),g=d.computed(()=>lue(s,d.toRaw(t.value),f,A,v,h,o));d.watch([()=>t.value,()=>r.value],async([B,E])=>{if(!E||!B||!g.value.loading.initialDefaults)return;g.value.loading.initialDefaults=!1,g.value.loading.initialInputGuide=!0;const k=R0(s.optionsState.components),P=E.filter($=>{var z;return((z=s.optionsState.components[$.inputName])==null?void 0:z.selectorStates.length)===0||(o==null?void 0:o.includes($.inputName))});if(P.length===0)return;P.forEach($=>{k[$.inputName].selectorStates=[]});const I=await zE(B,P);for(const{inputName:$,selectedSource:z,filterType:F,selectedFilterValue:Z,selectedFilterRange:ee,fixedAxes:le}of I)k[$].selectorStates.push({selectedSource:z,type:F,selectedFilterValue:Z,selectedFilterRange:ee,fixedAxes:le});s.optionsState.components={...s.optionsState.components,...k}},{immediate:!0});const C=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>a.value],async([B,E,k])=>{C.value++;const P=C.value;g.value.loading.inputGuide=!0;const I=E&&k?(await zE(E,k,!1)).map(ee=>ee.selectedSource):[],$=E?await c.calculateOptions(d.toRaw(E),B,I,i):c.getEmptyInputGuide(B),z=["primaryGrouping","secondaryGrouping","grouping","shape","nodeColor","nodeShape","lineColor","filters","highlight","tabBy"],F=[];z.forEach(ee=>{const le=s.optionsState.components[ee];if(le)for(const{selectedSource:Q}of le.selectorStates)F.push(Q)}),[...$.freeOptionsSet].forEach(ee=>{var Q,j,U;const le=$.getSourceInfo(ee);le.kind==="axis"&&((Q=le.annotations)!=null&&Q[Ow])&&((j=le.annotations)==null?void 0:j[Ow])!=="homogeneous"&&((U=le.annotations)==null?void 0:U[Ow])!=="homogenous"&&F.push(ee)}),[...$.axesToBeFixedSet].forEach(ee=>{F.push(ee)});const Z={};for(const ee of F)if(E&&!h.value[ee]){const le=await c.getUniqueSourceValuesWithLabels(E,$,ee);if(!le.length)continue;le.sort((Q,j)=>Q.label.localeCompare(j.label,"en",{numeric:!0})),Z[ee]={list:le.map(Q=>Q.value),options:le,labels:le.reduce((Q,j)=>(Q[j.value]=j.label,Q),{})}}h.value={...h.value,...Z},P===C.value&&(f.value=$,g.value.loading.inputGuide=!1,g.value.loading.initialInputGuide=!1)},{immediate:!0,deep:!0});const b=d.ref(0);if(d.watch([()=>f.value,()=>s.template,()=>s.layersSettings,()=>s.axesSettings,()=>s.statisticsSettings,()=>s.dataBindAes,()=>s.chartScale,()=>s.lassoMode],async([B])=>{b.value++;const E=b.value;g.value.loading.chartData=!0;const k=await cse(B,h.value,s,d.toRaw(t.value),a.value);E===b.value&&(A.value=k,B.ready&&(g.value.loading.initialCharts=!1),g.value.loading.chartData=!1)},{immediate:!0,deep:!0}),s.chartType==="dendro"){const B=d.ref(0);d.watch([()=>s.optionsState,()=>t.value,()=>f.value.readyData,()=>a.value],async([E,k,P,I])=>{if(P&&k){B.value++;const $=B.value;g.value.loading.dendroTableData=!0;const z=await KL(E,k,I),F=await c.createTableData(k,z);B.value===$&&(v.value=F),g.value.loading.dendroTableData=!1}},{immediate:!0})}return d.provide(G$,g),g}function Tr(){return hte(d.inject(G$),"Empty store")}const uue={class:"template-list"},cue=["onClick"],fue=["onClick"],due=["onClick"],Aue=["onClick"],hue=d.defineComponent({__name:"TemplateForm",setup(e){const t=Tr(),n=Object.entries(e5).map(([A,h])=>({id:A,text:h.map(v=>LA[v]).join(" + "),icon:_f[A]})),r=Object.entries(rm).map(([A,h])=>({id:A,text:h.map(v=>LA[v]).join(" + "),icon:_f[A]})),a=Object.entries(VL).map(([A,h])=>({id:A,text:h.map(v=>LA[v]).join(" + "),icon:_f[A]})),i=[{id:"heatmap",text:"Heatmap",icon:_f.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:_f.heatmapClustered}],o=[{id:"dendro",text:"Dendrogram",icon:_f.dendro}],s=[{id:"bins",text:"Histogram",icon:_f.bar}],c=[{id:"bubble",text:"Bubble plot",icon:_f.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",uue,[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:C})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[1]||(h[1]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,cue))),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:C})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[2]||(h[2]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,fue))),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:C})=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[3]||(h[3]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,due))),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:C})=>d.createElementVNode("div",{class:d.normalizeClass(["template-item",{selected:d.unref(t).reactive.template===v}]),onClick:b=>f(v)},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(C))),d.createTextVNode(" "+d.toDisplayString(g)+" ",1),h[4]||(h[4]=d.createElementVNode("div",{class:"checkmark"},null,-1))],10,Aue)),64)):d.createCommentVNode("",!0),d.unref(t).reactive.chartType==="dendro"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:4},d.renderList(o,({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 oR(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 o=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 C,b;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:B}of Object.values(e.value.components)){for(const E of B){const k=(b=(C=E.fixedAxes)==null?void 0:C.find(P=>P.axisSource===h&&P.axisValue!==void 0))==null?void 0:b.axisValue;if(k){g=k;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,o)}})}function lR(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 o=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 C,b;const v=a.value.axesToBeFixedSet.has(h);let g;if(v)for(const{selectorStates:B}of Object.values(e.value.components)){for(const E of B){const k=(b=(C=E.fixedAxes)==null?void 0:C.find(P=>P.axisSource===h&&P.axisValue!==void 0))==null?void 0:b.axisValue;if(k){g=k;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,o)}})}function sR(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 pue(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 o=t(i),s=e.stateConsistency[i]===!1;r.unshift({text:s?"Inconsistent value":o.label,value:i})}),r.sort((i,o)=>i.text>o.text?1:-1)}function uR(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=pue(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function UE(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 vue(e,t){return UE(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function mue(e,t){return UE(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function cR(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function a5(e,t){return cR(e,t)?" ":""}function gue(e){var n;const t=(n=e==null?void 0:e[Ow])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function fR(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"&&gue(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 GE=`<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 dR(e,t){if(e==null)throw Error(t??"Empty (null | undefined) value");return e}function yue(e,t){if(e!=null)return t(e)}function wue(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e}function bue(e){let t="";for(let n=0;n<e;n++)t+=String.fromCharCode(wue(65,91));return t}function Cue(e=42){return bue(e)}function Sue(e){return typeof e=="object"&&e!==null}function xue(e,t,n){let r;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(this,a)},t)}}function Eue(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}}}function Bue(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function _ue(e){return e instanceof Error?!0:Sue(e)&&"message"in e&&typeof e.message=="string"}const i5=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};function Gw(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*Tue(e,t){for(const n of e)yield t(n)}function kue(e){const t=[];for(const n of e)t.push(n);return t}const YE=new Map;function Mue(e){return YE.has(e)||YE.set(e,d.ref(localStorage.getItem(e))),dR(YE.get(e),"...")}function Pue(e,t){t==null?localStorage.removeItem(e):localStorage.setItem(e,t)}function Hue(e){const t=Mue(e);return d.watch(t,n=>Pue(e,n)),t}const Due=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{kue(Tue(Due.values(),t=>t(e.matches?"dark":"light")))});const $ue=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.ref($ue),Hue("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"/>
|