@milaboratories/graph-maker 1.1.31 → 1.1.32

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.
@@ -7584,7 +7584,7 @@ var Uie = class extends j4 {
7584
7584
  {
7585
7585
  filters: new Jr({
7586
7586
  componentName: "filters",
7587
- allowedTypes: ["String", "Int", "Long"],
7587
+ allowedTypes: ["String", "Int", "Long", "Double", "Long"],
7588
7588
  strictlyDependsOnParents: !0,
7589
7589
  parentComponents: ["value"],
7590
7590
  dependsOn: ["value"],
@@ -8053,7 +8053,7 @@ var Uie = class extends j4 {
8053
8053
  {
8054
8054
  filters: new Jr({
8055
8055
  componentName: "filters",
8056
- allowedTypes: ["String", "Int", "Long"],
8056
+ allowedTypes: ["String", "Int", "Long", "Double", "Long"],
8057
8057
  strictlyDependsOnParents: !0,
8058
8058
  parentComponents: ["x", "y"],
8059
8059
  dependsOn: ["x", "y"],
@@ -24,7 +24,7 @@ __p += '`),Ra&&(Dt+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+Dt+`return __p
27
- }`;var jr=Fb(function(){return Zr(xe,bn+"return "+Dt).apply(n,Ie)});if(jr.source=Dt,ih(jr))throw jr;return jr}function RP(y){return hi(y).toLowerCase()}function ow(y){return hi(y).toUpperCase()}function NP(y,B,N){if(y=hi(y),y&&(N||B===n))return It(y);if(!y||!(B=Yo(B)))return y;var te=ni(y),he=ni(B),xe=wa(te,he),Ie=al(te,he)+1;return mu(te,xe,Ie).join("")}function lw(y,B,N){if(y=hi(y),y&&(N||B===n))return y.slice(0,Od(y)+1);if(!y||!(B=Yo(B)))return y;var te=ni(y),he=al(te,ni(B))+1;return mu(te,0,he).join("")}function Lb(y,B,N){if(y=hi(y),y&&(N||B===n))return y.replace(Kr,"");if(!y||!(B=Yo(B)))return y;var te=ni(y),he=wa(te,ni(B));return mu(te,he).join("")}function $P(y,B){var N=W,te=J;if(Zo(B)){var he="separator"in B?B.separator:he;N="length"in B?Ir(B.length):N,te="omission"in B?Yo(B.omission):te}y=hi(y);var xe=y.length;if(CA(y)){var Ie=ni(y);xe=Ie.length}if(N>=xe)return y;var Le=N-zc(te);if(Le<1)return te;var Ze=Ie?mu(Ie,0,Le).join(""):y.slice(0,Le);if(he===n)return Ze+te;if(Ie&&(Le+=Ze.length-Le),Wy(he)){if(y.slice(Le).search(he)){var xt,St=Ze;for(he.global||(he=ts(he.source,hi(Ln.exec(he))+"g")),he.lastIndex=0;xt=he.exec(St);)var Dt=xt.index;Ze=Ze.slice(0,Dt===n?Le:Dt)}}else if(y.indexOf(Yo(he),Le)!=Le){var Wt=Ze.lastIndexOf(he);Wt>-1&&(Ze=Ze.slice(0,Wt))}return Ze+te}function LP(y){return y=hi(y),y&&ro.test(y)?y.replace(wr,Q0):y}var FP=U(function(y,B,N){return y+(N?" ":"")+B.toUpperCase()}),sw=R("toUpperCase");function uw(y,B,N){return y=hi(y),B=N?n:B,B===n?n1(y)?Gp(y):Oc(y):y.match(B)||[]}var Fb=gr(function(y,B){try{return Yn(y,n,B)}catch(N){return ih(N)?N:new Qn(N)}}),QP=DA(function(y,B){return Ar(B,function(N){N=bu(N),Il(y,N,$t(y[N],y))}),y});function OP(y){var B=y==null?0:y.length,N=jn();return y=B?Lr(y,function(te){if(typeof te[1]!="function")throw new Bs(l);return[N(te[0]),te[1]]}):[],gr(function(te){for(var he=-1;++he<B;){var xe=y[he];if(Yn(xe[0],this,te))return Yn(xe[1],this,te)}})}function VP(y){return Yd(Go(y,p))}function cw(y){return function(){return y}}function UP(y,B){return y==null||y!==y?B:y}var zP=De(),fw=De(!0);function cf(y){return y}function Aw(y){return Kc(typeof y=="function"?y:Go(y,p))}function GP(y){return qs(Go(y,p))}function jP(y,B){return ja(y,Go(B,p))}var YP=gr(function(y,B){return function(N){return sl(N,y,B)}}),WP=gr(function(y,B){return function(N){return sl(y,N,B)}});function dw(y,B,N){var te=nu(B),he=ll(B,te);N==null&&!(Zo(B)&&(he.length||!te.length))&&(N=B,B=y,y=this,he=ll(B,nu(B)));var xe=!(Zo(N)&&"chain"in N)||!!N.chain,Ie=i0(y);return Ar(he,function(Le){var Ze=B[Le];y[Le]=Ze,Ie&&(y.prototype[Le]=function(){var xt=this.__chain__;if(xe||xt){var St=y(this.__wrapped__),Dt=St.__actions__=ho(this.__actions__);return Dt.push({func:Ze,args:arguments,thisArg:y}),St.__chain__=xt,St}return Ze.apply(y,rl([this.value()],arguments))})}),y}function XP(){return ca._===this&&(ca._=td),this}function pw(){}function Qb(y){return y=Ir(y),gr(function(B){return Zc(B,y)})}var hw=Yt(Lr),KP=Yt(bs),ZP=Yt(Qc);function Dg(y){return on(y)?Z(bu(y)):yn(y)}function Mg(y){return function(B){return y==null?n:co(y,B)}}var JP=vo(),qP=vo(!0);function vw(){return[]}function mw(){return!1}function eH(){return{}}function tH(){return""}function nH(){return!0}function Ob(y,B){if(y=Ir(y),y<1||y>de)return[];var N=pe,te=Gi(y,pe);B=jn(B),y-=pe;for(var he=Je(te,B);++N<y;)B(N);return he}function rH(y){return Fr(y)?Lr(y,bu):Ba(y)?[y]:ho(_v(hi(y)))}function aH(y){var B=++cc;return hi(y)+B}var iH=_t(function(y,B){return y+B},0),oH=Sa("ceil"),lH=_t(function(y,B){return y/B},1),sH=Sa("floor");function uH(y){return y&&y.length?Ts(y,cf,Ys):n}function cH(y,B){return y&&y.length?Ts(y,jn(B,2),Ys):n}function fH(y){return JA(y,cf)}function AH(y,B){return JA(y,jn(B,2))}function dH(y){return y&&y.length?Ts(y,cf,El):n}function pH(y,B){return y&&y.length?Ts(y,jn(B,2),El):n}var hH=_t(function(y,B){return y*B},1),vH=Sa("round"),mH=_t(function(y,B){return y-B},0);function gH(y){return y&&y.length?nt(y,cf):0}function Kv(y,B){return y&&y.length?nt(y,jn(B,2)):0}return Ce.after=Fe,Ce.ary=ft,Ce.assign=sf,Ce.assignIn=Yv,Ce.assignInWith=b1,Ce.assignWith=sh,Ce.at=Tb,Ce.before=Nt,Ce.bind=$t,Ce.bindAll=QP,Ce.bindKey=Rt,Ce.castArray=yb,Ce.chain=Lv,Ce.chunk=W0,Ce.compact=Pv,Ce.concat=rf,Ce.cond=OP,Ce.conforms=VP,Ce.constant=cw,Ce.countBy=mg,Ce.create=E1,Ce.curry=en,Ce.curryRight=gn,Ce.debounce=Cn,Ce.defaults=S1,Ce.defaultsDeep=Zy,Ce.defer=fl,Ce.delay=rt,Ce.difference=aa,Ce.differenceBy=Ko,Ce.differenceWith=Zi,Ce.drop=Fl,Ce.dropRight=Ju,Ce.dropRightWhile=qp,Ce.dropWhile=Ql,Ce.fill=c1,Ce.filter=Vv,Ce.flatMap=yg,Ce.flatMapDeep=V9,Ce.flatMapDepth=wg,Ce.flatten=Hv,Ce.flattenDeep=e0,Ce.flattenDepth=tu,Ce.flip=ze,Ce.flow=zP,Ce.flowRight=fw,Ce.fromPairs=Dv,Ce.functions=Pb,Ce.functionsIn=dP,Ce.groupBy=r0,Ce.initial=Mv,Ce.intersection=fg,Ce.intersectionBy=af,Ce.intersectionWith=eh,Ce.invert=Hb,Ce.invertBy=pP,Ce.invokeMap=Gy,Ce.iteratee=Aw,Ce.keyBy=U9,Ce.keys=nu,Ce.keysIn=uf,Ce.map=ep,Ce.mapKeys=hP,Ce.mapValues=vP,Ce.matches=GP,Ce.matchesProperty=jP,Ce.memoize=it,Ce.merge=mP,Ce.mergeWith=Db,Ce.method=YP,Ce.methodOf=WP,Ce.mixin=dw,Ce.negate=Ot,Ce.nthArg=Qb,Ce.omit=gP,Ce.omitBy=yP,Ce.once=kn,Ce.orderBy=z9,Ce.over=hw,Ce.overArgs=Xn,Ce.overEvery=KP,Ce.overSome=ZP,Ce.partial=An,Ce.partialRight=Kn,Ce.partition=g1,Ce.pick=wP,Ce.pickBy=Mb,Ce.property=Dg,Ce.propertyOf=Mg,Ce.pull=A1,Ce.pullAll=t0,Ce.pullAllBy=ds,Ce.pullAllWith=pd,Ce.pullAt=Ro,Ce.range=JP,Ce.rangeRight=qP,Ce.rearg=Vl,Ce.reject=A,Ce.remove=Ol,Ce.rest=Ya,Ce.reverse=th,Ce.sampleSize=x,Ce.set=tw,Ce.setWith=nw,Ce.shuffle=M,Ce.slice=Z0,Ce.sortBy=me,Ce.sortedUniq=Rv,Ce.sortedUniqBy=J0,Ce.split=DP,Ce.spread=hd,Ce.tail=Ry,Ce.take=Ny,Ce.takeRight=d1,Ce.takeRightWhile=Nv,Ce.takeWhile=N9,Ce.tap=O9,Ce.throttle=G9,Ce.thru=Kf,Ce.toArray=jv,Ce.toPairs=n2,Ce.toPairsIn=Ib,Ce.toPath=rH,Ce.toPlainObject=Z9,Ce.transform=xg,Ce.unary=J_,Ce.union=$9,Ce.unionBy=$y,Ce.unionWith=Ly,Ce.uniq=n0,Ce.uniqBy=L9,Ce.uniqWith=rh,Ce.unset=Tg,Ce.unzip=$v,Ce.unzipWith=No,Ce.update=CP,Ce.updateWith=Rb,Ce.values=Xv,Ce.valuesIn=bP,Ce.without=F9,Ce.words=uw,Ce.wrap=q_,Ce.xor=Fy,Ce.xorBy=hg,Ce.xorWith=Q9,Ce.zip=Qy,Ce.zipObject=Oy,Ce.zipObjectDeep=Vy,Ce.zipWith=lf,Ce.entries=n2,Ce.entriesIn=Ib,Ce.extend=Yv,Ce.extendWith=b1,dw(Ce,Ce),Ce.add=iH,Ce.attempt=Fb,Ce.camelCase=$b,Ce.capitalize=kg,Ce.ceil=oH,Ce.clamp=Nb,Ce.clone=wb,Ce.cloneDeep=tP,Ce.cloneDeepWith=Cb,Ce.cloneWith=eP,Ce.conformsTo=j9,Ce.deburr=_g,Ce.defaultTo=UP,Ce.divide=lH,Ce.endsWith=r2,Ce.eq=vd,Ce.escape=Pg,Ce.escapeRegExp=Hg,Ce.every=gg,Ce.find=v1,Ce.findIndex=qd,Ce.findKey=J9,Ce.findLast=zy,Ce.findLastIndex=X0,Ce.findLastKey=Jy,Ce.floor=sH,Ce.forEach=m1,Ce.forEachRight=ah,Ce.forIn=Bg,Ce.forInRight=kb,Ce.forOwn=qy,Ce.forOwnRight=_b,Ce.get=q9,Ce.gt=nP,Ce.gte=rP,Ce.has=e2,Ce.hasIn=Wv,Ce.head=K0,Ce.identity=cf,Ce.includes=Uv,Ce.indexOf=dd,Ce.inRange=EP,Ce.invoke=t2,Ce.isArguments=y1,Ce.isArray=Fr,Ce.isArrayBuffer=aP,Ce.isArrayLike=Ps,Ce.isArrayLikeObject=Al,Ce.isBoolean=Cg,Ce.isBuffer=a0,Ce.isDate=iP,Ce.isElement=oP,Ce.isEmpty=bb,Ce.isEqual=lP,Ce.isEqualWith=Yy,Ce.isError=ih,Ce.isFinite=Y9,Ce.isFunction=i0,Ce.isInteger=bg,Ce.isLength=Eg,Ce.isMap=W9,Ce.isMatch=Eb,Ce.isMatchWith=Sb,Ce.isNaN=oh,Ce.isNative=sP,Ce.isNil=cP,Ce.isNull=uP,Ce.isNumber=Gv,Ce.isObject=Zo,Ce.isObjectLike=dl,Ce.isPlainObject=w1,Ce.isRegExp=Wy,Ce.isSafeInteger=fP,Ce.isSet=X9,Ce.isString=Xy,Ce.isSymbol=Ba,Ce.isTypedArray=lh,Ce.isUndefined=Ky,Ce.isWeakMap=Sg,Ce.isWeakSet=Bb,Ce.join=of,Ce.kebabCase=BP,Ce.last=Eu,Ce.lastIndexOf=f1,Ce.lowerCase=rw,Ce.lowerFirst=aw,Ce.lt=xb,Ce.lte=K9,Ce.max=uH,Ce.maxBy=cH,Ce.mean=fH,Ce.meanBy=AH,Ce.min=dH,Ce.minBy=pH,Ce.stubArray=vw,Ce.stubFalse=mw,Ce.stubObject=eH,Ce.stubString=tH,Ce.stubTrue=nH,Ce.multiply=hH,Ce.nth=Iv,Ce.noConflict=XP,Ce.noop=pw,Ce.now=He,Ce.pad=xP,Ce.padEnd=TP,Ce.padStart=iK,Ce.parseInt=kP,Ce.random=SP,Ce.reduce=jy,Ce.reduceRight=zv,Ce.repeat=_P,Ce.replace=PP,Ce.result=ew,Ce.round=vH,Ce.runInContext=je,Ce.sample=h,Ce.size=z,Ce.snakeCase=HP,Ce.some=ee,Ce.sortedIndex=Ag,Ce.sortedIndexBy=dg,Ce.sortedIndexOf=NA,Ce.sortedLastIndex=nh,Ce.sortedLastIndexBy=pg,Ce.sortedLastIndexOf=$A,Ce.startCase=MP,Ce.startsWith=iw,Ce.subtract=mH,Ce.sum=gH,Ce.sumBy=Kv,Ce.template=IP,Ce.times=Ob,Ce.toFinite=tp,Ce.toInteger=Ir,Ce.toLength=C1,Ce.toLower=RP,Ce.toNumber=LA,Ce.toSafeInteger=AP,Ce.toString=hi,Ce.toUpper=ow,Ce.trim=NP,Ce.trimEnd=lw,Ce.trimStart=Lb,Ce.truncate=$P,Ce.unescape=LP,Ce.uniqueId=aH,Ce.upperCase=FP,Ce.upperFirst=sw,Ce.each=m1,Ce.eachRight=ah,Ce.first=K0,dw(Ce,function(){var y={};return Ea(Ce,function(B,N){ta.call(Ce.prototype,N)||(y[N]=B)}),y}(),{chain:!1}),Ce.VERSION=r,Ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(y){Ce[y].placeholder=Ce}),Ar(["drop","take"],function(y,B){rr.prototype[y]=function(N){N=N===n?1:Za(Ir(N),0);var te=this.__filtered__&&!B?new rr(this):this.clone();return te.__filtered__?te.__takeCount__=Gi(N,te.__takeCount__):te.__views__.push({size:Gi(N,pe),type:y+(te.__dir__<0?"Right":"")}),te},rr.prototype[y+"Right"]=function(N){return this.reverse()[y](N).reverse()}}),Ar(["filter","map","takeWhile"],function(y,B){var N=B+1,te=N==re||N==ie;rr.prototype[y]=function(he){var xe=this.clone();return xe.__iteratees__.push({iteratee:jn(he,3),type:N}),xe.__filtered__=xe.__filtered__||te,xe}}),Ar(["head","last"],function(y,B){var N="take"+(B?"Right":"");rr.prototype[y]=function(){return this[N](1).value()[0]}}),Ar(["initial","tail"],function(y,B){var N="drop"+(B?"":"Right");rr.prototype[y]=function(){return this.__filtered__?new rr(this):this[N](1)}}),rr.prototype.compact=function(){return this.filter(cf)},rr.prototype.find=function(y){return this.filter(y).head()},rr.prototype.findLast=function(y){return this.reverse().find(y)},rr.prototype.invokeMap=gr(function(y,B){return typeof y=="function"?new rr(this):this.map(function(N){return sl(N,y,B)})}),rr.prototype.reject=function(y){return this.filter(Ot(jn(y)))},rr.prototype.slice=function(y,B){y=Ir(y);var N=this;return N.__filtered__&&(y>0||B<0)?new rr(N):(y<0?N=N.takeRight(-y):y&&(N=N.drop(y)),B!==n&&(B=Ir(B),N=B<0?N.dropRight(-B):N.take(B-y)),N)},rr.prototype.takeRightWhile=function(y){return this.reverse().takeWhile(y).reverse()},rr.prototype.toArray=function(){return this.take(pe)},Ea(rr.prototype,function(y,B){var N=/^(?:filter|find|map|reject)|While$/.test(B),te=/^(?:head|last)$/.test(B),he=Ce[te?"take"+(B=="last"?"Right":""):B],xe=te||/^find/.test(B);he&&(Ce.prototype[B]=function(){var Ie=this.__wrapped__,Le=te?[1]:arguments,Ze=Ie instanceof rr,xt=Le[0],St=Ze||Fr(Ie),Dt=function(da){var Ra=he.apply(Ce,rl([da],Le));return te&&Wt?Ra[0]:Ra};St&&N&&typeof xt=="function"&&xt.length!=1&&(Ze=St=!1);var Wt=this.__chain__,bn=!!this.__actions__.length,qn=xe&&!Wt,jr=Ze&&!bn;if(!xe&&St){Ie=jr?Ie:new rr(this);var lr=y.apply(Ie,Le);return lr.__actions__.push({func:Kf,args:[Dt],thisArg:n}),new lo(lr,Wt)}return qn&&jr?y.apply(this,Le):(lr=this.thru(Dt),qn?te?lr.value()[0]:lr.value():lr)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(y){var B=ns[y],N=/^(?:push|sort|unshift)$/.test(y)?"tap":"thru",te=/^(?:pop|shift)$/.test(y);Ce.prototype[y]=function(){var he=arguments;if(te&&!this.__chain__){var xe=this.value();return B.apply(Fr(xe)?xe:[],he)}return this[N](function(Ie){return B.apply(Fr(Ie)?Ie:[],he)})}}),Ea(rr.prototype,function(y,B){var N=Ce[B];if(N){var te=N.name+"";ta.call(Mf,te)||(Mf[te]=[]),Mf[te].push({name:B,func:N})}}),Mf[Ke(n,k).name]=[{name:"wrapper",func:n}],rr.prototype.clone=En,rr.prototype.reverse=Vs,rr.prototype.value=Ga,Ce.prototype.at=Fv,Ce.prototype.chain=q0,Ce.prototype.commit=Qv,Ce.prototype.next=Ov,Ce.prototype.plant=h1,Ce.prototype.reverse=vg,Ce.prototype.toJSON=Ce.prototype.valueOf=Ce.prototype.value=Uy,Ce.prototype.first=Ce.prototype.head,Pl&&(Ce.prototype[Pl]=p1),Ce},sc=Vd();Me?((Me.exports=sc)._=sc,fe._=sc):ca._=sc}).call(k2)}(A4,A4.exports);var Cee=A4.exports;const pr=N1(Cee);var zl=class r4{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return yh(this)}static fromAxisSpec(t){return new r4({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>r4.fromAxisSpec(n))}copy(){return new r4({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 r4(t)}},t3=class cq{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return yh(this)}static fromPojo(t){return new cq(t)}};function Er(e){return e!==null&&e.kind==="column"}function n3(e){return e!==null&&e.kind==="axis"}function Pn(e){const t=JSON.parse(e);if(t.kind==="column")return t3.fromPojo(t);if(t.kind==="axis")return zl.fromPojo(t);throw Error("wrong column or axis object")}var bee="pl7.app/axisNature",Eee="pl7.app/label",lI="pl7.app/isLabel",See="pl7.app/columnAsAxis/name",Bee="pl7.app/columnAsAxis/domain",j2="pl7.app/isSubset",xee="pl7.app/min",Tee="pl7.app/max";async function sI(e,t,n){if(n){const r=await e.pFrameProvider.getTableOuterJoin([t,n],[]),a=r.columnsData[t.toCanonicalString()],i=r.columnsData[n.toCanonicalString()];return a.reduce((l,u,c)=>(l[String(u)]=String(i[c]),l),{})}return null}async function uI(e,t,n,r){if(r){const{data:a,axesData:i}=await e.pFrameProvider.getSingleColumnData(r);return i[t.toCanonicalString()].reduce((u,c,f)=>(u[String(c)]=String(a[f]),u),{})}return null}function pm(e){return e==="String"||e==="Int"}async function kee(e,t,n,r){var a,i;const l=Pn(t);if(Er(l)){const u=await e.pFrameProvider.getColumnSpecById(l);if(!u)return;const c=await Ji(e,t,[]),f={kind:"column",name:u.name,label:n??await mi(e,t,[]),valueLabels:await sI(e,l,c),uniqueValues:pm(u.valueType)?await e.pFrameProvider.getColumnUniqueValues(l):[],type:u.valueType,annotations:u.annotations,isSubsetFilter:((a=u.annotations)==null?void 0:a[j2])==="true"};r.set(l.toCanonicalString(),f);for(const d of u.axesSpec){const p=zl.fromAxisSpec(d),g=p.toCanonicalString(),C=await Ji(e,g,[t]),E={kind:"axis",name:d.name,label:n??await mi(e,g,[t]),valueLabels:await uI(e,p,l,C),uniqueValues:pm(d.type)?await e.pFrameProvider.getAxisUniqueValues(p,[l]):[],type:d.type,mustBeConsumed:AI(d),dividable:!1,spec:d,annotations:d.annotations,isSubsetFilter:((i=d.annotations)==null?void 0:i[j2])==="true"};r.set(g,E)}}}function cI(e){const t=Pn(e),{name:n,type:r}=t;return Er(t)?{kind:"column",name:"",label:" ",uniqueValues:[],valueLabels:null,type:t.type,annotations:void 0,isSubsetFilter:!1}:{kind:"axis",name:"",label:" ",uniqueValues:[],valueLabels:null,type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1,annotations:void 0,isSubsetFilter:!1}}function d4(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function _ee(e){const{selectedSource:t,type:n,selectedFilterRange:r,selectedFilterValue:a}=e,i=Pn(t);if(!i)throw Error("Empty source selected");return n==="range"?[{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"LessOrEqual",reference:r==null?void 0:r.max}},{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}]:n==="subset"?[{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}]:[{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function r3(e){const t=[];for(const n of e)t.push(..._ee(n));return t}function iS(e){var t,n,r,a;if("kind"in e&&e.kind==="PColumn"){const u=(n=e.name)!=null?n:(t=e.annotations)==null?void 0:t[See],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[Bee];return yh({name:u,domain:c})}const i=e.name,l=e.domain;return yh({name:i,domain:l})}async function fI(e,t,n){var r;for(const a of n){const i=Pn(a);if(Er(i)){const l=await e.pFrameProvider.getColumnSpecById(i),u=(r=l==null?void 0:l.axesSpec)==null?void 0:r.find(c=>zl.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(u)return u}}return null}async function Ji(e,t,n){const r=Pn(t);async function a(f){const d=await fI(e,f,n);return d?iS(d):null}async function i(f){const d=await e.pFrameProvider.getColumnSpecById(f);return d?iS(d):null}const l=await e.pFrameProvider.getColumns([],["String"],{[lI]:"true"},!1),u=Er(r)?await i(r):await a(r),c=await Promise.all(l.map(async f=>{const d=await e.pFrameProvider.getColumnSpecById(f);return d&&d.axesSpec.length===1&&iS(d.axesSpec[0])===u})).then(f=>f.findIndex(d=>d===!0));if(c!==-1)return l[c]}async function mi(e,t,n){var r,a;const i=Pn(t),l=await Ji(e,t,n);let u;if(Er(i)?u=await e.pFrameProvider.getColumnSpecById(l??i):u=l?await e.pFrameProvider.getColumnSpecById(l):await fI(e,i,n),!u)return"";const c=(a=(r=u.annotations)==null?void 0:r[Eee])!=null?a:u.name;return e.labelsModifier(u.name,c)}function AI(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[bee])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function p4(e){var t,n,r;const a="kind"in e&&e.kind==="PColumn"?e.valueType:e.type;return((t=e.annotations)==null?void 0:t[j2])==="true"?!0:a==="Float"||a==="Double"||a==="Long"?!!((n=e.annotations)!=null&&n[xee])&&!!((r=e.annotations)!=null&&r[Tee]):!0}var Y2=class{constructor(e,t){this.simpleComponentControllers=e,this.filterComponentControllers=t,this.ignoredOptionIdNames=[],this.dataInputs=[]}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}get producingMustBeConsumedAxesComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].producingMustBeConsumedAxes&&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,f)=>!r.find(d=>d.selectedSource===c.selectedSource)),l=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let u=d4(n);return i.forEach(c=>{u=this.deleteSelected(e,t,u,c)}),l.forEach(c=>{u=this.addSelected(e,u,c)}),n.components[e].selectorStates=r.map(c=>n.components[e].selectorStates.find(f=>f.selectedSource===c.selectedSource)).filter(Boolean),u}switchDividableAxis(e,t){return d4(e)}async getMustBeConsumedAxes(e,t){return Promise.resolve(new Set)}createEmptyComponentsGuide(e){return Object.fromEntries(Object.entries(e.components).map(([t,n])=>n.type!=="filter"?[t,{options:[],optionsInfo:new Map,stateConsistency:{},required:!1,multipleSelectors:!1}]:[t,{options:[],optionsInfo:new Map,multipleSelectors:!1,required:!1,stateConsistency:{},filterValueOptions:{}}]))}async getSelectedSourcesInfo(e,t,n){const r=new Map;for(const{selectorStates:a}of Object.values(t.components))for(const{selectedSource:i}of a)await kee(e,i,n[i],r);return r}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>cI(t),freeOptionsSet:new Set,readyData:!1,ready:!1}}async getLabelsMap(e,t){const n=await e.pFrameProvider.getColumnsFull(this.dataInputs.reduce((r,a)=>{const l=t.components[a].selectorStates.map(u=>Pn(u.selectedSource));return r.concat(l)},[]),[],{},!1);return wee(n,r=>r.spec).reduce((r,a)=>{const i=new t3({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[]){const r=this.createEmptyComponentsGuide(t),a=new Set;for(const g of this.dimensionsConsumerComponents)for(const{selectedSource:C}of t.components[g].selectorStates)a.add(C);const i=new Set(this.ignoredOptionIdNames),l=new Set(n),u=new Set,c=await this.getLabelsMap(e,t),f=await this.getSelectedSourcesInfo(e,t,c),d=new Map;for(const g of Object.keys(this.simpleComponentControllers)){const C=await this.simpleComponentControllers[g].getOptions(e,t,c,a,i,l);this.dataInputs.includes(g)||C.options.forEach(E=>{u.add(E.value)});for(const[E,S]of C.optionsInfo)d.set(E,S);r[g]=C}for(const g of Object.keys(this.filterComponentControllers)){const C=await this.filterComponentControllers[g].getOptionsFilter(e,t,c,a,i,l);this.dataInputs.includes(g)||C.options.forEach(E=>{u.add(E.value)});for(const[E,S]of C.optionsInfo)d.set(E,S);r[g]=C}const p=await this.getMustBeConsumedAxes(e,t);for(const g of p){const C=d.get(g);C&&C.kind==="axis"&&(C.mustBeConsumed=!0);const E=f.get(g);E&&E.kind==="axis"&&(E.mustBeConsumed=!0)}return{components:r,getSourceInfo:g=>{var C,E,S;const _=(C=Pn(g).toCanonicalString())!=null?C:g;return(S=(E=d.get(_))!=null?E:f.get(_))!=null?S:cI(g)},freeOptionsSet:u,readyData:this.readyDataInputs(t),ready:await this.readyForPlotBuilding(e,t,u,d)}}async checkStateConsistency(e,t){const n=new Map;for(const r of Object.keys(this.simpleComponentControllers))n.set(r,await this.simpleComponentControllers[r].checkStateConsistency(e,t));for(const r of Object.keys(this.filterComponentControllers))n.set(r,await this.filterComponentControllers[r].checkStateConsistency(e,t));return n}async isConsistent(e,t){const n=await this.checkStateConsistency(e,t);for(const r of n.values())if(Object.values(r).some(a=>!a))return!1;return!0}readyDataInputs(e){return this.dataInputs.every(t=>e.components[t].selectorStates.length>0)}async readyForPlotBuilding(e,t,n,r){if(!await this.isConsistent(e,t)||!this.readyDataInputs(t))return!1;let a=!1;for(const i of n){const l=r.get(i);if(l&&l.kind==="axis"&&l.mustBeConsumed){a=!0;break}}return this.requiredComponents.every(i=>t.components[i].selectorStates.length>0)&&!a}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},dI=class fq{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:l=[],annotations:u={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...fq.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...l],this.strictlyDependsOnParents=a??!0,this.annotations={...u},c&&(this.checkSourceBySpec=c)}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}get producingMustBeConsumedAxes(){return this.settings.hasMustForConsumingAxes}addSelected(t,n){const r=d4(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=d4(t);return r.components[this.componentName].selectorStates=r.components[this.componentName].selectorStates.filter(a=>a.selectedSource!==n),r}async checkStateConsistency(t,n){const r=n.components[this.componentName],a=await this.getParentAxes(t,n);function i(u){const c=zl.fromAxisSpec(u);return a.has(c.toCanonicalString())}const l=await Promise.all(r.selectorStates.map(async({selectedSource:u})=>{const c=Pn(u);if(Er(c)){const f=await t.pFrameProvider.getColumnSpecById(c);return f?this.parentComponents.length===0?!0:this.strictlyDependsOnParents?f.axesSpec.every(p=>i(p)):a.size===0||f.axesSpec.some(p=>i(p)):!1}return a.has(u)}));return r.selectorStates.reduce((u,c,f)=>(u[c.selectedSource]=l[f],u),{})}async getProducingAxes(t,n){const i=n.components[this.componentName].selectorStates.map(c=>Pn(c.selectedSource)).filter(c=>Er(c)),l=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{l.add(zl.fromAxisSpec(f).toCanonicalString())})}),l}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const l=n.components[i].selectorStates.map(u=>Pn(u.selectedSource));return a.push(...l),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const l of a)if(Er(l)){const u=await t.pFrameProvider.getColumnSpecById(l);(r=u==null?void 0:u.axesSpec)==null||r.forEach(c=>{const f=zl.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n){var r,a;const i=this.getParentSelectedSources(t,n),l=new Set,u=new Map;for(const c of i)if(Er(c)){const f=await t.pFrameProvider.getColumnSpecById(c);for(const d of(r=f==null?void 0:f.axesSpec)!=null?r:[]){const p=zl.fromAxisSpec(d),g=this.allowedTypes.includes(d.type),C=Object.entries(this.annotations).every(([E,S])=>{var _;return((_=d.annotations)==null?void 0:_[E])===S});if(this.checkSourceBySpec?this.checkSourceBySpec(d):g&&C){l.add(p.toCanonicalString());const E=await Ji(t,p.toCanonicalString(),[c.toCanonicalString()]);u.set(p.toCanonicalString(),{kind:"axis",name:d.name,label:await mi(t,p.toCanonicalString(),[c.toCanonicalString()]),valueLabels:pm(d.type)?await uI(t,p,c,E):null,uniqueValues:pm(d.type)?await t.pFrameProvider.getAxisUniqueValues(p,[c]):[],type:d.type,mustBeConsumed:AI(d),dividable:!1,spec:d,annotations:d.annotations,isSubsetFilter:((a=d.annotations)==null?void 0:a[j2])==="true"})}}}return{axes:l,optionsInfo:u}}async getOptions(t,n,r,a,i=new Set,l=new Set){var u,c,f;const d=this.settings.multipleSelectors,p=this.settings.required,g=await this.checkStateConsistency(t,n);if(this.strictlyDependsOnParents&&this.parentComponents.some(D=>n.components[D].selectorStates.length===0))return{multipleSelectors:d,required:p,stateConsistency:g,options:[],optionsInfo:new Map};const C=this.getParentSelectedSources(t,n),E=(await t.pFrameProvider.getColumns(C,this.allowedTypes,this.annotations,this.strictlyDependsOnParents)).filter(D=>!a.has(D.toCanonicalString())),{axes:S,optionsInfo:_}=await this.getAllowedAxes(t,n);if(this.dependsOn.length&&this.dependsOn.some(D=>n.components[D].selectorStates.length===0))return{multipleSelectors:d,required:p,stateConsistency:g,options:[],optionsInfo:new Map};const k=n.components[this.componentName],H=[];if(this.settings.axesAllowed)for(const D of S){const V=Pn(D),F=_.get(V.toCanonicalString()),O=!this.settings.homogeneous||!(F!=null&&F.mustBeConsumed),L=!a.has(D),j=i.has(V.name)||l.has(V.toCanonicalString()),G=k.selectorStates.some(W=>W.selectedSource===D);O&&L&&!j&&!G&&H.push({value:D})}if(this.settings.columnsAllowed)for(const D of E){const V=D.toCanonicalString(),F=Pn(V),O=await t.pFrameProvider.getColumnSpecById(F);if(((u=O==null?void 0:O.annotations)==null?void 0:u[lI])==="true"||this.checkSourceBySpec&&O&&!this.checkSourceBySpec(O))continue;if(O){const W=await Ji(t,D.toCanonicalString(),[]),J=pm(O.valueType)?await t.pFrameProvider.getColumnUniqueValues(D):[],X=(c=r[V])!=null?c:await mi(t,D.toCanonicalString(),[]),q=pm(O.valueType)?await sI(t,D,W):null,re={kind:"column",name:O.name,label:X,valueLabels:q,uniqueValues:J,type:O.valueType,annotations:O.annotations,isSubsetFilter:((f=O.annotations)==null?void 0:f[j2])==="true"};_.set(F.toCanonicalString(),re)}const j=i.has(F.name)||l.has(F.toCanonicalString()),G=n.components[this.componentName].selectorStates.some(W=>W.selectedSource===V);!j&&!G&&H.push({value:V})}return{multipleSelectors:d,required:p,stateConsistency:g,options:H,optionsInfo:_}}async getOptionsFilter(t,n,r,a,i=new Set,l=new Set){const u=n.components[this.componentName];if(u.type!=="filter")throw Error("Trying to take filter options for simple component");const c=await this.getOptions(t,n,r,a,i,l),d=this.getParentSelectedSources(t,n).filter(Er);function p(E){const S=Pn(E);return pm(S.type)?Er(S)?t.pFrameProvider.getColumnUniqueValues(S):t.pFrameProvider.getAxisUniqueValues(S,d):Promise.resolve([])}const g=await Promise.all(c.options.map(E=>p(E.value))),C=await Promise.all(u.selectorStates.map(E=>p(E.selectedSource)));return{...c,filterValueOptions:{...c.options.reduce((E,{value:S},_)=>(E[S]=g[_],E),{}),...u.selectorStates.reduce((E,S,_)=>(E[S.selectedSource]=C[_],E),{})}}}};dI.DefaultSettings={multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,dimensionConsumer:!1,hasMustForConsumingAxes:!1};var Qr=dI,Pee={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:{}},Hee=class extends Y2{constructor(){super({y:new Qr({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{}}),primaryGrouping:new Qr({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new Qr({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["y"]}async createDataByColumns(e,t){var n;const r=t.components.y.selectorStates[0].selectedSource,a=Pn(r);if(!r||!Er(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=yh({data:r,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?n:"",values:{}},l=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),u=[...t.components.filters.selectorStates.map(g=>Pn(g.selectedSource)),...t.components.tabBy.selectorStates.map(g=>Pn(g.selectedSource))].filter(Er),c=[r],f=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],d=[];for(const g of f)for(const{selectedSource:C}of g.selectorStates){d.push(Pn(C));const E=await Ji(e,C,c);E&&d.push(E)}const p=await e.pFrameProvider.getTableOuterJoin([a,...u],d,l);return d.forEach(g=>{const C=g.toCanonicalString();i.values[C]=Er(g)?p.columnsData[C]:p.axesData[C]}),i.values[a.toCanonicalString()]=p.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=Pn(a);if(!a||!Er(i))throw Error("Y column is not valid");const l={type:"column",value:a,label:await mi(e,a,[])},u=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:p}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:p,label:await mi(e,p,u),valueLabels:(n=await Ji(e,p,u))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:p}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:p,label:await mi(e,p,u),valueLabels:(r=await Ji(e,p,u))==null?void 0:r.toCanonicalString()}}}const d=await Promise.all(t.components.facetBy.selectorStates.map(async p=>{var g,C;return{type:"column",value:(C=(g=await Ji(e,p.selectedSource,u))==null?void 0:g.toCanonicalString())!=null?C:p.selectedSource,label:await mi(e,p.selectedSource,u)}}));return{type:"discrete",y:l,primaryGrouping:c,secondaryGrouping:f,facetBy:d}}},Dee={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:[]},annotations:{type:"simple",selectorStates:[]}},dividedAxes:{}};function h4(e,t){if(!t.length)return[];const n=t.map(i=>Pn(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const l=n.map(u=>{const c=u.toCanonicalString();return Er(u)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(l)}return a}var Mee=class extends Y2{constructor(){super({value:new Qr({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new Qr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new Qr({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["x"]}),y:new Qr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),yGroupBy:new Qr({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"]}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotations:new Qr({componentName:"annotations",allowedTypes:["String","Int"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["x","y"]})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}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(Pn(n));return r?new Set(r.axesSpec.map(a=>zl.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=Pn(a);if(!Er(i))throw Error("Value column is not valid");const l={type:"columns",id:(r=yh({data:a,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?r:"",values:{}},u=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),c=[...t.components.filters.selectorStates.map(L=>Pn(L.selectedSource)),...t.components.tabBy.selectorStates.map(L=>Pn(L.selectedSource))].filter(Er),f=[a],d=[t.components.facetBy,t.components.annotations,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy],p=[];for(const L of d)for(const{selectedSource:j}of L.selectorStates){p.push(Pn(j));const G=await Ji(e,j,f);G&&p.push(G)}const g=await e.pFrameProvider.getTableOuterJoin([i,...c],p,u);p.forEach(L=>{const j=L.toCanonicalString();l.values[j]=Er(L)?g.columnsData[j]:g.axesData[j]}),l.values[i.toCanonicalString()]=g.columnsData[i.toCanonicalString()];const C=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(L=>L.selectedSource),E=C.join(", ");l.values[E]=h4(g,C);const S=t.components.x.selectorStates.map(L=>L.selectedSource),_=await Promise.all(S.map(async L=>{var j,G;return(G=(j=await Ji(e,L,f))==null?void 0:j.toCanonicalString())!=null?G:L})),k=S.join(", ");l.values[k]=h4(g,_);const H=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(L=>L.selectedSource),D=H.join(", ");l.values[D]=h4(g,H);const V=t.components.y.selectorStates.map(L=>L.selectedSource),F=V.join(", "),O=await Promise.all(V.map(async L=>{var j,G;return(G=(j=await Ji(e,L,f))==null?void 0:j.toCanonicalString())!=null?G:L}));return l.values[F]=h4(g,O),l}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=Pn(a);if(!Er(i))throw Error("Value column is not valid");const l=[a],u={type:"column",value:a,label:await mi(e,a,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:V})=>Pn(V)).filter(V=>n3(V)).map(V=>V.toCanonicalString()),f=c.join(", "),d=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:V})=>Pn(V)).filter(V=>n3(V)).map(V=>V.toCanonicalString()),p=d.join(", "),g=await Promise.all(t.components.facetBy.selectorStates.map(async V=>{var F,O;return{type:"column",value:(O=(F=await Ji(e,V.selectedSource,l))==null?void 0:F.toCanonicalString())!=null?O:V.selectedSource}})),C=await Promise.all(t.components.xGroupBy.selectorStates.map(async V=>({type:"column",label:await mi(e,V.selectedSource,l),value:V.selectedSource}))),E=await Promise.all(t.components.yGroupBy.selectorStates.map(async V=>({type:"column",label:await mi(e,V.selectedSource,l),value:V.selectedSource}))),S=await Promise.all(t.components.annotations.selectorStates.map(async V=>{var F,O;const L=V.selectedSource,j=Pn(L),G=Er(j)?(F=(await e.pFrameProvider.getColumnAxesIds(j)).map(J=>J.toCanonicalString()))!=null?F:[]:[L];let W="";if(G.every(J=>c.findIndex(X=>X===J)!==-1))W="x";else if(G.every(J=>d.findIndex(X=>X===J)!==-1))W="y";else throw Error("Invalid annotation axes");return{axis:W,valueColumn:{type:"column",value:L,label:await mi(e,L,l)},type:Er(j)&&((O=await e.pFrameProvider.getColumnSpecById(j))==null?void 0:O.valueType)==="Double"?"continuous":"discrete"}})),_=t.components.x.selectorStates.map(({selectedSource:V})=>V).join(", "),k=t.components.y.selectorStates.map(({selectedSource:V})=>V).join(", "),H=(await Promise.all(t.components.x.selectorStates.map(V=>mi(e,V.selectedSource,l)))).join(", "),D=(await Promise.all(t.components.y.selectorStates.map(V=>mi(e,V.selectedSource,l)))).join(", ");return{type:"heatmap",valueColumn:u,valueType:((r=await e.pFrameProvider.getColumnSpecById(i))==null?void 0:r.valueType)==="String"?"discrete":"continuous",xColumn:{type:"column",value:f,label:H,valueLabels:_},yColumn:{type:"column",value:p,label:D,valueLabels:k},facetBy:g,xGroupBy:C,yGroupBy:E,annotations:S}}},Iee={type:"scatterplot",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Ree=class extends Y2{constructor(){super({x:new Qr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Qr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Qr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new Qr({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 Qr({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new Qr({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:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),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(Pn(n)),i=await e.pFrameProvider.getColumnSpecById(Pn(r));if(!a||!i)return new Set;const l=a.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),u=i.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),c=l.filter(d=>!u.some(p=>p===d)),f=u.filter(d=>!l.some(p=>p===d));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const u=Pn(i),c=Pn(l),f={type:"columns",id:(a=yh({data:[i,l],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),p=[...t.components.filters.selectorStates.map(k=>Pn(k.selectedSource)),...t.components.tabBy.selectorStates.map(k=>Pn(k.selectedSource))].filter(Er),g=[u,c].filter(Er).map(k=>k.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const C=[u,c,...p],E=[],S=[t.components.grouping,t.components.tooltipContent,t.components.facetBy,t.components.label];for(const k of S)for(const{selectedSource:H}of k.selectorStates){E.push(Pn(H));const D=await Ji(e,H,g);D&&E.push(D)}const _=await e.pFrameProvider.getTableOuterJoin(C,E,d,!1);return[...C,...E].forEach(k=>{const H=k.toCanonicalString();f.values[H]=Er(k)?_.columnsData[H]:_.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((k,H)=>H),f}async createChartSettings(e,t){var n,r,a,i;const l=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,u=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=l?Pn(l):null,f=u?Pn(u):null;if(!l||!u||!c||!f||!Er(c)&&!Er(f))throw Error("Empty or invalid required data");const d=[c,f].filter(Er).map(H=>H.toCanonicalString()),p={type:"column",value:l,label:await mi(e,l,d)},g={type:"column",value:u,label:await mi(e,u,d)},C={type:"column",value:"key"},E=await Promise.all(t.components.facetBy.selectorStates.map(async H=>{var D,V;return{type:"column",value:(V=(D=await Ji(e,H.selectedSource,d))==null?void 0:D.toCanonicalString())!=null?V:H.selectedSource}})),S=await Promise.all(t.components.grouping.selectorStates.map(async H=>{var D,V;const F=H.selectedSource;return{type:"column",label:await mi(e,F,d)||F,value:F,valueLabels:(V=(D=await Ji(e,F,d))==null?void 0:D.toCanonicalString())!=null?V:F}})),_=await Promise.all(t.components.tooltipContent.selectorStates.map(async H=>{var D,V;const F=H.selectedSource;return{type:"column",label:await mi(e,F,d)||F,value:F,valueLabels:(V=(D=await Ji(e,F,d))==null?void 0:D.toCanonicalString())!=null?V:F}}));let k;if(t.components.label.selectorStates.length){const H=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:H,label:await mi(e,H,d),valueLabels:(i=(a=await Ji(e,H,d))==null?void 0:a.toCanonicalString())!=null?i:H}}return{type:"scatterplot",x:p,y:g,keyColumn:C,facetBy:E,grouping:S,label:k,tooltips:{show:!0,content:_}}}},Nee={type:"scatterplot-umap",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]}},dividedAxes:{}},$ee=class extends Y2{constructor(){super({x:new Qr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Qr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Qr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),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(Pn(n)),i=await e.pFrameProvider.getColumnSpecById(Pn(r));if(!a||!i)return new Set;const l=a.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),u=i.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),c=l.filter(d=>!u.some(p=>p===d)),f=u.filter(d=>!l.some(p=>p===d));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const u=Pn(i),c=Pn(l);if(!u||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=yh({data:[i,l],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),p=[...t.components.filters.selectorStates.map(k=>Pn(k.selectedSource)),...t.components.tabBy.selectorStates.map(k=>Pn(k.selectedSource))].filter(Er),g=[u,c].filter(Er).map(k=>k.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const C=[u,c,...p],E=[],S=[t.components.grouping,t.components.facetBy];for(const k of S)for(const{selectedSource:H}of k.selectorStates){E.push(Pn(H));const D=await Ji(e,H,g);D&&E.push(D)}const _=await e.pFrameProvider.getTableOuterJoin(C,E,d,!1);return[...C,...E].forEach(k=>{const H=k.toCanonicalString();f.values[H]=Er(k)?_.columnsData[H]:_.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((k,H)=>H),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,i=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,l=a?Pn(a):null,u=i?Pn(i):null;if(!a||!i||!l||!u||!Er(l)&&!Er(u))throw Error("Empty or invalid required data");const c=[l,u].filter(Er).map(E=>E.toCanonicalString()),f={type:"column",value:a,label:await mi(e,a,c)},d={type:"column",value:i,label:await mi(e,i,c)},p={type:"column",value:"key"},g=await Promise.all(t.components.facetBy.selectorStates.map(async E=>{var S,_;return{type:"column",value:(_=(S=await Ji(e,E.selectedSource,c))==null?void 0:S.toCanonicalString())!=null?_:E.selectedSource}})),C=await Promise.all(t.components.grouping.selectorStates.map(async E=>{var S,_;const k=E.selectedSource;return{type:"column",label:await mi(e,k,c)||k,value:k,valueLabels:(_=(S=await Ji(e,k,c))==null?void 0:S.toCanonicalString())!=null?_:k}}));return{type:"scatterplot-umap",x:f,y:d,keyColumn:p,facetBy:g,grouping:C}}},oS="pl7.app/dendrogram/nodeId",lS="id",Lee={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:{}},Fee=class extends Y2{constructor(){super({value:new Qr({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{columnsAllowed:!0,required:!0,dimensionConsumer:!0}}),height:new Qr({componentName:"height",allowedTypes:["Int","Long","Double","Float"],annotations:{"pl7.app/dendrogram/isDistance":"true"},parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1,dimensionConsumer:!0}}),labels:new Qr({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1}}),tableContent:new Qr({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),nodeShape:new Qr({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeSize:new Qr({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeColor:new Qr({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),lineColor:new Qr({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1}}),heatmapForSequence:new Qr({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0}}),heatmapAnnotation:new Qr({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,hasMustForConsumingAxes:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapAxis:new Qr({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapGroup:new Qr({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}})}),this.ignoredOptionIdNames=[oS]}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=Pn(a);if(!a||!Er(i))throw Error("Value column is not valid");const l=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),u=[...t.components.filters.selectorStates.map(_=>Pn(_.selectedSource)),...t.components.tabBy.selectorStates.map(_=>Pn(_.selectedSource))].filter(Er),c=[a],f=[],d=[],p=[t.components.value],g=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],C={};for(const _ of p)for(const{selectedSource:k}of _.selectorStates){const H=await Ji(e,k,c),D=H??Pn(k);C[D.toCanonicalString()]=k,f.push(D)}for(const _ of g)for(const{selectedSource:k}of _.selectorStates){const H=await Ji(e,k,c),D=H??Pn(k);C[k]=D.toCanonicalString(),d.push(D)}const E=await e.pFrameProvider.getTableOuterJoin([...f,...u],d,l,!1);for(const _ of[...f,...d]){const k=_.toCanonicalString(),H=C[_.toCanonicalString()];r[H]={data:Er(_)?E.columnsData[k]:E.axesData[k],spec:Er(_)?E.columnSpecs[k]:E.axesSpecs[k],label:await mi(e,H,c)}}const S=Object.keys(E.axesData).find(_=>{var k;return((k=Pn(_))==null?void 0:k.name)===oS});return S?r[lS]={data:E.axesData[S],spec:{kind:"PColumn",valueType:"Int",name:"Node id"},label:"Node id"}:console.warn("Missed node id axis in data column"),r}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,u=Pn(i),c=l?Pn(l):null;if(!i||!Er(u))throw Error("Value column is not valid");const f={type:"columns",id:(a=yh({data:i,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),p=[...t.components.filters.selectorStates.map(D=>Pn(D.selectedSource)),...t.components.tabBy.selectorStates.map(D=>Pn(D.selectedSource))].filter(Er),g=[u,c].filter(Er).map(D=>D.toCanonicalString()),C=[],E=[],S=[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],_=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const D of S)for(const{selectedSource:V}of D.selectorStates){C.push(Pn(V));const F=await Ji(e,V,g);F&&C.push(F)}for(const D of _)for(const{selectedSource:V}of D.selectorStates){E.push(Pn(V));const F=await Ji(e,V,g);F&&E.push(F)}const k=await e.pFrameProvider.getTableOuterJoin([...C,...p],E,d,!1);[...C,...E].forEach(D=>{const V=D.toCanonicalString(),F=Er(D)?k.columnsData[V]:k.axesData[V];f.values[V]=[],f.values[V]=F});const H=Object.keys(k.axesData).find(D=>{var V;return((V=Pn(D))==null?void 0:V.name)===oS});return H?f.values[lS]=k.axesData[H]:console.warn("Missed node id axis in data column"),f}async createChartSettings(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=Pn(i);if(!i||!Er(l))throw Error("Data column is not valid");const u=[i],c={type:"column",value:lS},f={type:"column",value:i},d=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,p=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,g={};if(t.components.nodeColor.selectorStates.length){const _=t.components.nodeColor.selectorStates[0].selectedSource;g.nodeColor={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}if(t.components.nodeShape.selectorStates.length){const _=t.components.nodeShape.selectorStates[0].selectedSource;g.nodeShape={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}if(t.components.nodeSize.selectorStates.length){const _=t.components.nodeSize.selectorStates[0].selectedSource;g.nodeSize={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}if(t.components.lineColor.selectorStates.length){const _=t.components.lineColor.selectorStates[0].selectedSource;g.lineColor={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}let C,E,S;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const _=t.components.heatmapAnnotation.selectorStates[0].selectedSource;C={type:"column",value:_,label:await mi(e,_,[]),valueLabels:(r=await Ji(e,_,[]))==null?void 0:r.toCanonicalString()};const k=t.components.heatmapAxis.selectorStates[0].selectedSource;E={type:"column",value:k,label:await mi(e,k,[_]),valueLabels:(a=await Ji(e,k,[_]))==null?void 0:a.toCanonicalString()},S=await Promise.all(t.components.heatmapGroup.selectorStates.map(async H=>{var D;return{type:"column",value:H.selectedSource,label:await mi(e,H.selectedSource,[_]),valueLabels:(D=await Ji(e,H.selectedSource,[_]))==null?void 0:D.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const _=t.components.heatmapForSequence.selectorStates[0].selectedSource;C={type:"column",value:_,label:await mi(e,_,[])}}return{type:"dendro",id:c,parentId:f,height:d,labels:p,aes:g,heatmapAnnotation:C,heatmapAxis:E,heatmapGroup:S}}};function a3(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 V1=!1,H9t=100,Qee=class{constructor(e,t){this.pframeHandle=e,this.pframeDriver=t}async isColumnExisted(e){return!!await this.getColumnSpecById(e)}async getSingleColumnData(e,t=[]){if(!await this.isColumnExisted(e))return{axesData:[],data:[]};try{const n=Date.now(),r=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),a=r.filter(l=>l.spec.type==="axis"),i=r.filter(l=>l.spec.type==="column");return{axesData:a.reduce((l,u)=>{const c=zl.fromAxisSpec(u.spec.spec);return l[c.toCanonicalString()]=a3(c.type,u.data),l},{}),data:i.length?a3(e.type,i[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[]){if(!await this.isColumnExisted(e))return[];if(e.type==="Double"||e.type==="Long")debugger;const n={columnId:e.name,filters:t,limit:1e3};try{const r=Date.now(),a=await this.pframeDriver.getUniqueValues(this.pframeHandle,n);return a3(e.type,a.values).map(String)}catch(r){throw console.error("PFrame: getUniqueValues for column error"),r}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(Er),a=await Promise.all(r.map(u=>this.getColumnSpecById(u))),i=e.toCanonicalString(),l=r.filter((u,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(d=>zl.fromAxisSpec(d).toCanonicalString()===i)});if(l.length===0)return[];try{const u=Date.now(),c=await Promise.all(l.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:1e3})));return pr.uniq(pr.flatten(c.map(f=>a3(e.type,f.values).map(String))))}catch(u){throw console.error("PFrame: getUniqueValues for axis error",u),u}}async getTableOuterJoin(e,t,n=[],r=!0){const a=e.filter(Er),i=t.filter(Er),l={src:{type:"outer",primary:{type:r?"inner":"full",entries:a.map(u=>({type:"column",column:u.name}))},secondary:i.map(u=>({type:"column",column:u.name}))},filters:n,sorting:[]};try{const u=Date.now(),c=await this.pframeDriver.calculateTableData(this.pframeHandle,l),f=c.filter(p=>p.spec.type==="axis"),d=c.filter(p=>p.spec.type==="column");return{axesData:f.reduce((p,g)=>{const C=zl.fromAxisSpec(g.spec.spec);return p[C.toCanonicalString()]=a3(C.type,g.data),p},{}),columnsData:d.reduce((p,g)=>{const C=g.spec.spec,E=new t3({name:g.spec.id,type:C.valueType});return p[E.toCanonicalString()]=a3(E.type,g.data),p},{}),columnSpecs:d.reduce((p,g)=>{const C=g.spec.spec,E=new t3({name:g.spec.id,type:C.valueType});return p[E.toCanonicalString()]=C,p},{}),axesSpecs:f.reduce((p,g)=>{const C=g.spec.spec,E=zl.fromAxisSpec(C);return p[E.toCanonicalString()]=C,p},{})}}catch(u){throw console.error("PFrame: table outer join error"),console.info("error with request: ",l),u}}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=>zl.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(Er(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(l=>zl.fromAxisSpec(l).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumnsFull(e,t,n,r){try{const a={columnFilter:{type:t,annotationValue:n},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:r},i=Date.now(),l=await this.pframeDriver.findColumns(this.pframeHandle,a),u=[];return l.hits.forEach(c=>{u.push(c)}),u}catch(a){throw console.error("PFrame: findColumns error"),a}}async getColumns(e,t,n,r){return(await this.getColumnsFull(e,t,n,r)).map(a=>new t3({name:a.columnId,type:a.spec.valueType}))}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},i=Date.now(),l=await this.pframeDriver.findColumns(this.pframeHandle,a),u=[];return l.hits.forEach(({columnId:c,spec:f})=>{u.push(new t3({name:c,type:f.valueType}))}),u.length>1&&console.warn(`More than 1 column found for ${e}}`),u.length===0?(console.warn(`No columns found for ${e}}`),null):u[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},Oee=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new Qee(e,t)}},pI={controllers:{discrete:new Hee,scatterplot:new Ree,"scatterplot-umap":new $ee,heatmap:new Mee,dendro:new Fee},initialStates:{discrete:Pee,scatterplot:Iee,"scatterplot-umap":Nee,heatmap:Dee,dendro:Lee}};function v4(e){return pI.controllers[e]}function hI(e){return pI.initialStates[e]}const Sr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Vee={},Uee={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zee(e,t){return v.openBlock(),v.createElementBlock("svg",Uee,t[0]||(t[0]=[v.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),v.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 Gee=Sr(Vee,[["render",zee]]),jee={},Yee={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wee(e,t){return v.openBlock(),v.createElementBlock("svg",Yee,t[0]||(t[0]=[v.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),v.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 Xee=Sr(jee,[["render",Wee]]),Kee={},Zee={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jee(e,t){return v.openBlock(),v.createElementBlock("svg",Zee,t[0]||(t[0]=[v.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),v.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 qee=Sr(Kee,[["render",Jee]]),ete={},tte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nte(e,t){return v.openBlock(),v.createElementBlock("svg",tte,t[0]||(t[0]=[v.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 rte=Sr(ete,[["render",nte]]),ate={},ite={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ote(e,t){return v.openBlock(),v.createElementBlock("svg",ite,t[0]||(t[0]=[v.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 lte=Sr(ate,[["render",ote]]),ste={},ute={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cte(e,t){return v.openBlock(),v.createElementBlock("svg",ute,t[0]||(t[0]=[v.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),v.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),v.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const fte=Sr(ste,[["render",cte]]),Ate={},dte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pte(e,t){return v.openBlock(),v.createElementBlock("svg",dte,t[0]||(t[0]=[v.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),v.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 hte=Sr(Ate,[["render",pte]]),vte={},mte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gte(e,t){return v.openBlock(),v.createElementBlock("svg",mte,t[0]||(t[0]=[v.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),v.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),v.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const yte=Sr(vte,[["render",gte]]),wte={},Cte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bte(e,t){return v.openBlock(),v.createElementBlock("svg",Cte,t[0]||(t[0]=[v.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 Ete=Sr(wte,[["render",bte]]),Ste={},Bte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xte(e,t){return v.openBlock(),v.createElementBlock("svg",Bte,t[0]||(t[0]=[v.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 vI=Sr(Ste,[["render",xte]]),Tte={},kte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _te(e,t){return v.openBlock(),v.createElementBlock("svg",kte,t[0]||(t[0]=[v.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 Pte=Sr(Tte,[["render",_te]]),Hte={},Dte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mte(e,t){return v.openBlock(),v.createElementBlock("svg",Dte,t[0]||(t[0]=[v.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 Ite=Sr(Hte,[["render",Mte]]),Rte={},Nte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $te(e,t){return v.openBlock(),v.createElementBlock("svg",Nte,t[0]||(t[0]=[v.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 mI=Sr(Rte,[["render",$te]]),Lte={},Fte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qte(e,t){return v.openBlock(),v.createElementBlock("svg",Fte,t[0]||(t[0]=[v.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),v.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 Ote=Sr(Lte,[["render",Qte]]),Vte={},Ute={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zte(e,t){return v.openBlock(),v.createElementBlock("svg",Ute,t[0]||(t[0]=[v.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 gI=Sr(Vte,[["render",zte]]),Gte={},jte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yte(e,t){return v.openBlock(),v.createElementBlock("svg",jte,t[0]||(t[0]=[v.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),v.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),v.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),v.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 Wte=Sr(Gte,[["render",Yte]]),Xte={},Kte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zte(e,t){return v.openBlock(),v.createElementBlock("svg",Kte,t[0]||(t[0]=[v.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 Jte=Sr(Xte,[["render",Zte]]),qte={},ene={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tne(e,t){return v.openBlock(),v.createElementBlock("svg",ene,t[0]||(t[0]=[v.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 nne=Sr(qte,[["render",tne]]),rne={},ane={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ine(e,t){return v.openBlock(),v.createElementBlock("svg",ane,t[0]||(t[0]=[v.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 one=Sr(rne,[["render",ine]]),i3=[{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"}],W2="#FFFFFF",Gl="#110529";i3.reduce((e,t)=>(e[t.color]=t,e),{});const X2=i3.slice(0,-3).map(e=>e.color),lne=X2.filter((e,t)=>t%3===0),sne=X2.filter((e,t)=>t%3===1),une=X2.filter((e,t)=>t%3===2),cne=X2.filter((e,t)=>t%3!==2),fne=X2,Ane=["#FFF680","#53D788","#36739D","#4A005C"],dne=["#FFF680","#F77E5B","#902B83","#2B125C"],pne=["#DFFADC","#74CFD1","#635AC1","#611347"],hne=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],vne=["#FFEA80","#F07A76","#7535A4","#003752"],mne=["#FFF780","#6CEA90","#6C90F0","#942AAE"],gne=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],yne=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],wne=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],Cne=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],bne=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],yI=["light","bright","dark","paired","triadic"],Ene=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],Sne=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function sS(e){return yI.includes(e)}const Ms={...{light:{title:"Light",colors:lne},bright:{title:"Bright",colors:sne},dark:{title:"Dark",colors:une},paired:{title:"Paired",colors:cne},triadic:{title:"Triadic",colors:fne}},...{viridis:{title:"Viridis",colors:Ane},magma:{title:"Magma",colors:dne},density:{title:"Density",colors:pne},salinity:{title:"Salinity",colors:hne},sunset:{title:"Sunset",colors:vne},perceptual_rainbow:{title:"Rainbow",colors:mne}},...{spectrum:{title:"Spectrum",colors:gne},teal_red:{title:"Teal-Red",colors:yne},blue_red:{title:"Blue-Red",colors:wne},lime_rose:{title:"Lime-Rose",colors:Cne},viridis_magma:{title:"Vir-Mag",colors:bne}}},Bne="salinity",K2=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],uS="#F0F0F0",bh="21",o3=["solid","dashed","dotted","dotdash","longdash","twodash"],m4="solid",xne={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}};function l3(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Tne(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cS(e){let t,n,r;e.length!==2?(t=l3,n=(u,c)=>l3(e(u),c),r=(u,c)=>e(u)-c):(t=e===l3||e===Tne?e:kne,n=e,r=e);function a(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const p=f+d>>>1;n(u[p],c)<0?f=p+1:d=p}while(f<d)}return f}function i(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const p=f+d>>>1;n(u[p],c)<=0?f=p+1:d=p}while(f<d)}return f}function l(u,c,f=0,d=u.length){const p=a(u,c,f,d-1);return p>f&&r(u[p-1],c)>-r(u[p],c)?p-1:p}return{left:a,center:l,right:i}}function kne(){return 0}function wI(e){return e===null?NaN:+e}function*_ne(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Pne=cS(l3).right;cS(wI).center;function Z2(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 CI extends Map{constructor(t,n=Mne){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(bI(this,t))}has(t){return super.has(bI(this,t))}set(t,n){return super.set(Hne(this,t),n)}delete(t){return super.delete(Dne(this,t))}}function bI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Hne({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dne({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Mne(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ine(e=l3){if(e===l3)return EI;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 EI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Rne=Math.sqrt(50),Nne=Math.sqrt(10),$ne=Math.sqrt(2);function g4(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=Rne?10:i>=Nne?5:i>=$ne?2:1;let u,c,f;return a<0?(f=Math.pow(10,-a)/l,u=Math.round(e*f),c=Math.round(t*f),u/f<e&&++u,c/f>t&&--c,f=-f):(f=Math.pow(10,a)*l,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=n&&n<2?g4(e,t,n*2):[u,c,f]}function fS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,l]=r?g4(t,e,n):g4(e,t,n);if(!(i>=a))return[];const u=i-a+1,c=new Array(u);if(r)if(l<0)for(let f=0;f<u;++f)c[f]=(i-f)/-l;else for(let f=0;f<u;++f)c[f]=(i-f)*l;else if(l<0)for(let f=0;f<u;++f)c[f]=(a+f)/-l;else for(let f=0;f<u;++f)c[f]=(a+f)*l;return c}function AS(e,t,n){return t=+t,e=+e,n=+n,g4(e,t,n)[2]}function dS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?AS(t,e,n):AS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function hm(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 y4(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 SI(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?EI:Ine(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,d=Math.log(c),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(c-p)/c)*(f-c/2<0?-1:1),C=Math.max(n,Math.floor(t-f*p/c+g)),E=Math.min(r,Math.floor(t+(c-f)*p/c+g));SI(e,t,C,E,a)}const i=e[t];let l=n,u=r;for(J2(e,n,t),a(e[r],i)>0&&J2(e,n,r);l<u;){for(J2(e,l,u),++l,--u;a(e[l],i)<0;)++l;for(;a(e[u],i)>0;)--u}a(e[n],i)===0?J2(e,n,u):(++u,J2(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function J2(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function BI(e,t,n){if(e=Float64Array.from(_ne(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return y4(e);if(t>=1)return hm(e);var r,a=(r-1)*t,i=Math.floor(a),l=hm(SI(e,i).subarray(0,i+1)),u=y4(e.subarray(i+1));return l+(u-l)*(a-i)}}function vp(e,t,n=wI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),l=+n(e[i],i,e),u=+n(e[i+1],i+1,e);return l+(u-l)*(a-i)}}function Rc(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 Lne(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 Nc(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 s3(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const xI=Symbol("implicit");function hs(){var e=new CI,t=[],n=[],r=xI;function a(i){let l=e.get(i);if(l===void 0){if(r!==xI)return r;e.set(i,l=t.push(i)-1)}return n[l%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new CI;for(const l of i)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return hs(t,n).unknown(r)},s3.apply(a,arguments),a}function q2(){var e=hs().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,u=!1,c=0,f=0,d=.5;delete e.unknown;function p(){var g=t().length,C=a<r,E=C?a:r,S=C?r:a;i=(S-E)/Math.max(1,g-c+f*2),u&&(i=Math.floor(i)),E+=(S-E-i*(g-c))*d,l=i*(1-c),u&&(E=Math.round(E),l=Math.round(l));var _=Lne(g).map(function(k){return E+i*k});return n(C?_.reverse():_)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,u=!0,p()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(g){return arguments.length?(u=!!g,p()):u},e.padding=function(g){return arguments.length?(c=Math.min(1,f=+g),p()):c},e.paddingInner=function(g){return arguments.length?(c=Math.min(1,g),p()):c},e.paddingOuter=function(g){return arguments.length?(f=+g,p()):f},e.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),p()):d},e.copy=function(){return q2(t(),[r,a]).round(u).paddingInner(c).paddingOuter(f).align(d)},s3.apply(p(),arguments)}function pS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function TI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function e7(){}var t7=.7,w4=1/t7,u3="\\s*([+-]?\\d+)\\s*",n7="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fne=/^#([0-9a-f]{3,8})$/,Qne=new RegExp(`^rgb\\(${u3},${u3},${u3}\\)$`),One=new RegExp(`^rgb\\(${mp},${mp},${mp}\\)$`),Vne=new RegExp(`^rgba\\(${u3},${u3},${u3},${n7}\\)$`),Une=new RegExp(`^rgba\\(${mp},${mp},${mp},${n7}\\)$`),zne=new RegExp(`^hsl\\(${n7},${mp},${mp}\\)$`),Gne=new RegExp(`^hsla\\(${n7},${mp},${mp},${n7}\\)$`),kI={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};pS(e7,vm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_I,formatHex:_I,formatHex8:jne,formatHsl:Yne,formatRgb:PI,toString:PI});function _I(){return this.rgb().formatHex()}function jne(){return this.rgb().formatHex8()}function Yne(){return RI(this).formatHsl()}function PI(){return this.rgb().formatRgb()}function vm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?HI(t):n===3?new nA(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?C4(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?C4(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=Qne.exec(e))?new nA(t[1],t[2],t[3],1):(t=One.exec(e))?new nA(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Vne.exec(e))?C4(t[1],t[2],t[3],t[4]):(t=Une.exec(e))?C4(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zne.exec(e))?II(t[1],t[2]/100,t[3]/100,1):(t=Gne.exec(e))?II(t[1],t[2]/100,t[3]/100,t[4]):kI.hasOwnProperty(e)?HI(kI[e]):e==="transparent"?new nA(NaN,NaN,NaN,0):null}function HI(e){return new nA(e>>16&255,e>>8&255,e&255,1)}function C4(e,t,n,r){return r<=0&&(e=t=n=NaN),new nA(e,t,n,r)}function Wne(e){return e instanceof e7||(e=vm(e)),e?(e=e.rgb(),new nA(e.r,e.g,e.b,e.opacity)):new nA}function r7(e,t,n,r){return arguments.length===1?Wne(e):new nA(e,t,n,r??1)}function nA(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pS(nA,r7,TI(e7,{brighter(e){return e=e==null?w4:Math.pow(w4,e),new nA(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?t7:Math.pow(t7,e),new nA(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nA(mm(this.r),mm(this.g),mm(this.b),b4(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:DI,formatHex:DI,formatHex8:Xne,formatRgb:MI,toString:MI}));function DI(){return`#${gm(this.r)}${gm(this.g)}${gm(this.b)}`}function Xne(){return`#${gm(this.r)}${gm(this.g)}${gm(this.b)}${gm((isNaN(this.opacity)?1:this.opacity)*255)}`}function MI(){const e=b4(this.opacity);return`${e===1?"rgb(":"rgba("}${mm(this.r)}, ${mm(this.g)}, ${mm(this.b)}${e===1?")":`, ${e})`}`}function b4(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gm(e){return e=mm(e),(e<16?"0":"")+e.toString(16)}function II(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new v0(e,t,n,r)}function RI(e){if(e instanceof v0)return new v0(e.h,e.s,e.l,e.opacity);if(e instanceof e7||(e=vm(e)),!e)return new v0;if(e instanceof v0)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,u=i-a,c=(i+a)/2;return u?(t===i?l=(n-r)/u+(n<r)*6:n===i?l=(r-t)/u+2:l=(t-n)/u+4,u/=c<.5?i+a:2-i-a,l*=60):u=c>0&&c<1?0:l,new v0(l,u,c,e.opacity)}function Kne(e,t,n,r){return arguments.length===1?RI(e):new v0(e,t,n,r??1)}function v0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pS(v0,Kne,TI(e7,{brighter(e){return e=e==null?w4:Math.pow(w4,e),new v0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?t7:Math.pow(t7,e),new v0(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 nA(hS(e>=240?e-240:e+120,a,r),hS(e,a,r),hS(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new v0(NI(this.h),E4(this.s),E4(this.l),b4(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=b4(this.opacity);return`${e===1?"hsl(":"hsla("}${NI(this.h)}, ${E4(this.s)*100}%, ${E4(this.l)*100}%${e===1?")":`, ${e})`}`}}));function NI(e){return e=(e||0)%360,e<0?e+360:e}function E4(e){return Math.max(0,Math.min(1,e||0))}function hS(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 vS=e=>()=>e;function Zne(e,t){return function(n){return e+n*t}}function Jne(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 qne(e){return(e=+e)==1?$I:function(t,n){return n-t?Jne(t,n,e):vS(isNaN(t)?n:t)}}function $I(e,t){var n=t-e;return n?Zne(e,n):vS(isNaN(e)?t:e)}const S4=function e(t){var n=qne(t);function r(a,i){var l=n((a=r7(a)).r,(i=r7(i)).r),u=n(a.g,i.g),c=n(a.b,i.b),f=$I(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=u(d),a.b=c(d),a.opacity=f(d),a+""}}return r.gamma=e,r}(1);function ere(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 tre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nre(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),l;for(l=0;l<r;++l)a[l]=yS(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(u){for(l=0;l<r;++l)i[l]=a[l](u);return i}}function rre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function m0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function are(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]=yS(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var mS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gS=new RegExp(mS.source,"g");function ire(e){return function(){return e}}function ore(e){return function(t){return e(t)+""}}function LI(e,t){var n=mS.lastIndex=gS.lastIndex=0,r,a,i,l=-1,u=[],c=[];for(e=e+"",t=t+"";(r=mS.exec(e))&&(a=gS.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),u[l]?u[l]+=i:u[++l]=i),(r=r[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,c.push({i:l,x:m0(r,a)})),n=gS.lastIndex;return n<t.length&&(i=t.slice(n),u[l]?u[l]+=i:u[++l]=i),u.length<2?c[0]?ore(c[0].x):ire(t):(t=c.length,function(f){for(var d=0,p;d<t;++d)u[(p=c[d]).i]=p.x(f);return u.join("")})}function yS(e,t){var n=typeof t,r;return t==null||n==="boolean"?vS(t):(n==="number"?m0:n==="string"?(r=vm(t))?(t=r,S4):LI:t instanceof vm?S4:t instanceof Date?rre:tre(t)?ere:Array.isArray(t)?nre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?are:m0)(e,t)}function lre(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var FI=180/Math.PI,wS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function QI(e,t,n,r,a,i){var l,u,c;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),e*r<t*n&&(e=-e,t=-t,c=-c,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*FI,skewX:Math.atan(c)*FI,scaleX:l,scaleY:u}}var B4;function sre(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?wS:QI(t.a,t.b,t.c,t.d,t.e,t.f)}function ure(e){return e==null||(B4||(B4=document.createElementNS("http://www.w3.org/2000/svg","g")),B4.setAttribute("transform",e),!(e=B4.transform.baseVal.consolidate()))?wS:(e=e.matrix,QI(e.a,e.b,e.c,e.d,e.e,e.f))}function OI(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,d,p,g,C,E){if(f!==p||d!==g){var S=C.push("translate(",null,t,null,n);E.push({i:S-4,x:m0(f,p)},{i:S-2,x:m0(d,g)})}else(p||g)&&C.push("translate("+p+t+g+n)}function l(f,d,p,g){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),g.push({i:p.push(a(p)+"rotate(",null,r)-2,x:m0(f,d)})):d&&p.push(a(p)+"rotate("+d+r)}function u(f,d,p,g){f!==d?g.push({i:p.push(a(p)+"skewX(",null,r)-2,x:m0(f,d)}):d&&p.push(a(p)+"skewX("+d+r)}function c(f,d,p,g,C,E){if(f!==p||d!==g){var S=C.push(a(C)+"scale(",null,",",null,")");E.push({i:S-4,x:m0(f,p)},{i:S-2,x:m0(d,g)})}else(p!==1||g!==1)&&C.push(a(C)+"scale("+p+","+g+")")}return function(f,d){var p=[],g=[];return f=e(f),d=e(d),i(f.translateX,f.translateY,d.translateX,d.translateY,p,g),l(f.rotate,d.rotate,p,g),u(f.skewX,d.skewX,p,g),c(f.scaleX,f.scaleY,d.scaleX,d.scaleY,p,g),f=d=null,function(C){for(var E=-1,S=g.length,_;++E<S;)p[(_=g[E]).i]=_.x(C);return p.join("")}}}var cre=OI(sre,"px, ","px)","deg)"),fre=OI(ure,", ",")",")"),Are=1e-12;function VI(e){return((e=Math.exp(e))+1/e)/2}function dre(e){return((e=Math.exp(e))-1/e)/2}function pre(e){return((e=Math.exp(2*e))-1)/(e+1)}const hre=function e(t,n,r){function a(i,l){var u=i[0],c=i[1],f=i[2],d=l[0],p=l[1],g=l[2],C=d-u,E=p-c,S=C*C+E*E,_,k;if(S<Are)k=Math.log(g/f)/t,_=function(L){return[u+L*C,c+L*E,f*Math.exp(t*L*k)]};else{var H=Math.sqrt(S),D=(g*g-f*f+r*S)/(2*f*n*H),V=(g*g-f*f-r*S)/(2*g*n*H),F=Math.log(Math.sqrt(D*D+1)-D),O=Math.log(Math.sqrt(V*V+1)-V);k=(O-F)/t,_=function(L){var j=L*k,G=VI(F),W=f/(n*H)*(G*pre(t*j+F)-dre(F));return[u+W*C,c+W*E,f*G/VI(t*j+F)]}}return _.duration=k*1e3*t/Math.SQRT2,_}return a.rho=function(i){var l=Math.max(.001,+i),u=l*l,c=u*u;return e(l,u,c)},a}(Math.SQRT2,2,4);function vre(e){return function(){return e}}function CS(e){return+e}var UI=[0,1];function gp(e){return e}function bS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:vre(isNaN(t)?NaN:.5)}function mre(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function gre(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=bS(a,r),i=n(l,i)):(r=bS(r,a),i=n(i,l)),function(u){return i(r(u))}}function yre(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=bS(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(u){var c=Pne(e,u,1,r)-1;return i[c](a[c](u))}}function x4(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ES(){var e=UI,t=UI,n=yS,r,a,i,l=gp,u,c,f;function d(){var g=Math.min(e.length,t.length);return l!==gp&&(l=mre(e[0],e[g-1])),u=g>2?yre:gre,c=f=null,p}function p(g){return g==null||isNaN(g=+g)?i:(c||(c=u(e.map(r),t,n)))(r(l(g)))}return p.invert=function(g){return l(a((f||(f=u(t,e.map(r),m0)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,CS),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=lre,d()},p.clamp=function(g){return arguments.length?(l=g?!0:gp,d()):l!==gp},p.interpolate=function(g){return arguments.length?(n=g,d()):n},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,C){return r=g,a=C,d()}}function zI(){return ES()(gp,gp)}function wre(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function T4(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 c3(e){return e=T4(Math.abs(e)),e?e[1]:NaN}function Cre(e,t){return function(n,r){for(var a=n.length,i=[],l=0,u=e[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=e[l=(l+1)%e.length];return i.reverse().join(t)}}function bre(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Ere=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a7(e){if(!(t=Ere.exec(e)))throw new Error("invalid format: "+e);var t;return new SS({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]})}a7.prototype=SS.prototype;function SS(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+""}SS.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 Sre(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 GI;function Bre(e,t){var n=T4(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(GI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+T4(e,Math.max(0,t+i-1))[0]}function jI(e,t){var n=T4(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 YI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:wre,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)=>jI(e*100,t),r:jI,s:Bre,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function WI(e){return e}var XI=Array.prototype.map,KI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xre(e){var t=e.grouping===void 0||e.thousands===void 0?WI:Cre(XI.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?WI:bre(XI.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(p){p=a7(p);var g=p.fill,C=p.align,E=p.sign,S=p.symbol,_=p.zero,k=p.width,H=p.comma,D=p.precision,V=p.trim,F=p.type;F==="n"?(H=!0,F="g"):YI[F]||(D===void 0&&(D=12),V=!0,F="g"),(_||g==="0"&&C==="=")&&(_=!0,g="0",C="=");var O=S==="$"?n:S==="#"&&/[boxX]/.test(F)?"0"+F.toLowerCase():"",L=S==="$"?r:/[%p]/.test(F)?l:"",j=YI[F],G=/[defgprs%]/.test(F);D=D===void 0?6:/[gprs]/.test(F)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function W(J){var X=O,q=L,re,le,ie;if(F==="c")q=j(J)+q,J="";else{J=+J;var ke=J<0||1/J<0;if(J=isNaN(J)?c:j(Math.abs(J),D),V&&(J=Sre(J)),ke&&+J==0&&E!=="+"&&(ke=!1),X=(ke?E==="("?E:u:E==="-"||E==="("?"":E)+X,q=(F==="s"?KI[8+GI/3]:"")+q+(ke&&E==="("?")":""),G){for(re=-1,le=J.length;++re<le;)if(ie=J.charCodeAt(re),48>ie||ie>57){q=(ie===46?a+J.slice(re+1):J.slice(re))+q,J=J.slice(0,re);break}}}H&&!_&&(J=t(J,1/0));var de=X.length+J.length+q.length,Ee=de<k?new Array(k-de+1).join(g):"";switch(H&&_&&(J=t(Ee+J,Ee.length?k-q.length:1/0),Ee=""),C){case"<":J=X+J+q+Ee;break;case"=":J=X+Ee+J+q;break;case"^":J=Ee.slice(0,de=Ee.length>>1)+X+J+q+Ee.slice(de);break;default:J=Ee+X+J+q;break}return i(J)}return W.toString=function(){return p+""},W}function d(p,g){var C=f((p=a7(p),p.type="f",p)),E=Math.max(-8,Math.min(8,Math.floor(c3(g)/3)))*3,S=Math.pow(10,-E),_=KI[8+E/3];return function(k){return C(S*k)+_}}return{format:f,formatPrefix:d}}var k4,i7,ZI;Tre({thousands:",",grouping:[3],currency:["$",""]});function Tre(e){return k4=xre(e),i7=k4.format,ZI=k4.formatPrefix,k4}function kre(e){return Math.max(0,-c3(Math.abs(e)))}function _re(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(c3(t)/3)))*3-c3(Math.abs(e)))}function Pre(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,c3(t)-c3(e))+1}function Hre(e,t,n,r){var a=dS(e,t,n),i;switch(r=a7(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=_re(a,l))&&(r.precision=i),ZI(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Pre(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=kre(a))&&(r.precision=i-(r.type==="%")*2);break}}return i7(r)}function BS(e){var t=e.domain;return e.ticks=function(n){var r=t();return fS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Hre(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,l=r[a],u=r[i],c,f,d=10;for(u<l&&(f=l,l=u,u=f,f=a,a=i,i=f);d-- >0;){if(f=AS(l,u,n),f===c)return r[a]=l,r[i]=u,t(r);if(f>0)l=Math.floor(l/f)*f,u=Math.ceil(u/f)*f;else if(f<0)l=Math.ceil(l*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function gi(){var e=zI();return e.copy=function(){return x4(e,gi())},s3.apply(e,arguments),BS(e)}function U1(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,CS),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return U1(e).unknown(t)},e=arguments.length?Array.from(e,CS):[0,1],BS(n)}function JI(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return i<a&&(l=n,n=r,r=l,l=a,a=i,i=l),e[n]=t.floor(a),e[r]=t.ceil(i),e}function qI(e){return Math.log(e)}function eR(e){return Math.exp(e)}function Dre(e){return-Math.log(-e)}function Mre(e){return-Math.exp(-e)}function Ire(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Rre(e){return e===10?Ire:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Nre(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 tR(e){return(t,n)=>-e(-t,n)}function $re(e){const t=e(qI,eR),n=t.domain;let r=10,a,i;function l(){return a=Nre(r),i=Rre(r),n()[0]<0?(a=tR(a),i=tR(i),e(Dre,Mre)):e(qI,eR),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const c=n();let f=c[0],d=c[c.length-1];const p=d<f;p&&([f,d]=[d,f]);let g=a(f),C=a(d),E,S;const _=u==null?10:+u;let k=[];if(!(r%1)&&C-g<_){if(g=Math.floor(g),C=Math.ceil(C),f>0){for(;g<=C;++g)for(E=1;E<r;++E)if(S=g<0?E/i(-g):E*i(g),!(S<f)){if(S>d)break;k.push(S)}}else for(;g<=C;++g)for(E=r-1;E>=1;--E)if(S=g>0?E/i(-g):E*i(g),!(S<f)){if(S>d)break;k.push(S)}k.length*2<_&&(k=fS(f,d,_))}else k=fS(g,C,Math.min(C-g,_)).map(i);return p?k.reverse():k},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=a7(c)).precision==null&&(c.trim=!0),c=i7(c)),u===1/0)return c;const f=Math.max(1,r*u/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*r<r-.5&&(p*=r),p<=f?c(d):""}},t.nice=()=>n(JI(n(),{floor:u=>i(Math.floor(a(u))),ceil:u=>i(Math.ceil(a(u)))})),t}function ym(){const e=$re(ES()).domain([1,10]);return e.copy=()=>x4(e,ym()).base(e.base()),s3.apply(e,arguments),e}function nR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Lre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fre(e){return e<0?-e*e:e*e}function Qre(e){var t=e(gp,gp),n=1;function r(){return n===1?e(gp,gp):n===.5?e(Lre,Fre):e(nR(n),nR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},BS(t)}function xS(){var e=Qre(ES());return e.copy=function(){return x4(e,xS()).exponent(e.exponent())},s3.apply(e,arguments),e}function _4(){return xS.apply(null,arguments).exponent(.5)}const TS=new Date,kS=new Date;function au(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const l=a(i),u=a.ceil(i);return i-l<u-i?l:u},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,u)=>{const c=[];if(i=a.ceil(i),u=u==null?1:Math.floor(u),!(i<l)||!(u>0))return c;let f;do c.push(f=new Date(+i)),t(i,u),e(i);while(f<i&&i<l);return c},a.filter=i=>au(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!i(l););else for(;--u>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(TS.setTime(+i),kS.setTime(+l),e(TS),e(kS),Math.floor(n(TS,kS))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const P4=au(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);P4.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?au(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):P4),P4.range;const Eh=1e3,wd=Eh*60,Sh=wd*60,Bh=Sh*24,_S=Bh*7,rR=Bh*30,PS=Bh*365,f3=au(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Eh)},(e,t)=>(t-e)/Eh,e=>e.getUTCSeconds());f3.range;const HS=au(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eh)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getMinutes());HS.range,au(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getUTCMinutes()).range;const DS=au(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eh-e.getMinutes()*wd)},(e,t)=>{e.setTime(+e+t*Sh)},(e,t)=>(t-e)/Sh,e=>e.getHours());DS.range,au(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Sh)},(e,t)=>(t-e)/Sh,e=>e.getUTCHours()).range;const o7=au(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wd)/Bh,e=>e.getDate()-1);o7.range;const MS=au(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bh,e=>e.getUTCDate()-1);MS.range,au(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bh,e=>Math.floor(e/Bh)).range;function wm(e){return au(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())*wd)/_S)}const H4=wm(0),D4=wm(1),Ore=wm(2),Vre=wm(3),A3=wm(4),Ure=wm(5),zre=wm(6);H4.range,D4.range,Ore.range,Vre.range,A3.range,Ure.range,zre.range;function Cm(e){return au(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)/_S)}const aR=Cm(0),M4=Cm(1),Gre=Cm(2),jre=Cm(3),d3=Cm(4),Yre=Cm(5),Wre=Cm(6);aR.range,M4.range,Gre.range,jre.range,d3.range,Yre.range,Wre.range;const IS=au(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());IS.range,au(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 xh=au(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());xh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:au(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)}),xh.range;const bm=au(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());bm.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:au(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)}),bm.range;function Xre(e,t,n,r,a,i){const l=[[f3,1,Eh],[f3,5,5*Eh],[f3,15,15*Eh],[f3,30,30*Eh],[i,1,wd],[i,5,5*wd],[i,15,15*wd],[i,30,30*wd],[a,1,Sh],[a,3,3*Sh],[a,6,6*Sh],[a,12,12*Sh],[r,1,Bh],[r,2,2*Bh],[n,1,_S],[t,1,rR],[t,3,3*rR],[e,1,PS]];function u(f,d,p){const g=d<f;g&&([f,d]=[d,f]);const C=p&&typeof p.range=="function"?p:c(f,d,p),E=C?C.range(f,+d+1):[];return g?E.reverse():E}function c(f,d,p){const g=Math.abs(d-f)/p,C=cS(([,,_])=>_).right(l,g);if(C===l.length)return e.every(dS(f/PS,d/PS,p));if(C===0)return P4.every(Math.max(dS(f,d,p),1));const[E,S]=l[g/l[C-1][2]<l[C][2]/g?C-1:C];return E.every(S)}return[u,c]}const[Kre,Zre]=Xre(xh,IS,H4,o7,DS,HS);function RS(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 NS(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 l7(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Jre(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,u=e.months,c=e.shortMonths,f=s7(a),d=u7(a),p=s7(i),g=u7(i),C=s7(l),E=u7(l),S=s7(u),_=u7(u),k=s7(c),H=u7(c),D={a:ke,A:de,b:Ee,B:we,c:null,d:cR,e:cR,f:Cae,g:Hae,G:Mae,H:gae,I:yae,j:wae,L:fR,m:bae,M:Eae,p:pe,q:Be,Q:mR,s:gR,S:Sae,u:Bae,U:xae,V:Tae,w:kae,W:_ae,x:null,X:null,y:Pae,Y:Dae,Z:Iae,"%":vR},V={a:We,A:$e,b:Qe,B:Oe,c:null,d:dR,e:dR,f:Lae,g:Wae,G:Kae,H:Rae,I:Nae,j:$ae,L:pR,m:Fae,M:Qae,p:Ue,q:ct,Q:mR,s:gR,S:Oae,u:Vae,U:Uae,V:zae,w:Gae,W:jae,x:null,X:null,y:Yae,Y:Xae,Z:Zae,"%":vR},F={a:W,A:J,b:X,B:q,c:re,d:sR,e:sR,f:pae,g:lR,G:oR,H:uR,I:uR,j:cae,L:dae,m:uae,M:fae,p:G,q:sae,Q:vae,s:mae,S:Aae,u:rae,U:aae,V:iae,w:nae,W:oae,x:le,X:ie,y:lR,Y:oR,Z:lae,"%":hae};D.x=O(n,D),D.X=O(r,D),D.c=O(t,D),V.x=O(n,V),V.X=O(r,V),V.c=O(t,V);function O(Ve,qe){return function(st){var et=[],gt=-1,yt=0,Xt=Ve.length,cr,fr,ka;for(st instanceof Date||(st=new Date(+st));++gt<Xt;)Ve.charCodeAt(gt)===37&&(et.push(Ve.slice(yt,gt)),(fr=iR[cr=Ve.charAt(++gt)])!=null?cr=Ve.charAt(++gt):fr=cr==="e"?" ":"0",(ka=qe[cr])&&(cr=ka(st,fr)),et.push(cr),yt=gt+1);return et.push(Ve.slice(yt,gt)),et.join("")}}function L(Ve,qe){return function(st){var et=l7(1900,void 0,1),gt=j(et,Ve,st+="",0),yt,Xt;if(gt!=st.length)return null;if("Q"in et)return new Date(et.Q);if("s"in et)return new Date(et.s*1e3+("L"in et?et.L:0));if(qe&&!("Z"in et)&&(et.Z=0),"p"in et&&(et.H=et.H%12+et.p*12),et.m===void 0&&(et.m="q"in et?et.q:0),"V"in et){if(et.V<1||et.V>53)return null;"w"in et||(et.w=1),"Z"in et?(yt=NS(l7(et.y,0,1)),Xt=yt.getUTCDay(),yt=Xt>4||Xt===0?M4.ceil(yt):M4(yt),yt=MS.offset(yt,(et.V-1)*7),et.y=yt.getUTCFullYear(),et.m=yt.getUTCMonth(),et.d=yt.getUTCDate()+(et.w+6)%7):(yt=RS(l7(et.y,0,1)),Xt=yt.getDay(),yt=Xt>4||Xt===0?D4.ceil(yt):D4(yt),yt=o7.offset(yt,(et.V-1)*7),et.y=yt.getFullYear(),et.m=yt.getMonth(),et.d=yt.getDate()+(et.w+6)%7)}else("W"in et||"U"in et)&&("w"in et||(et.w="u"in et?et.u%7:"W"in et?1:0),Xt="Z"in et?NS(l7(et.y,0,1)).getUTCDay():RS(l7(et.y,0,1)).getDay(),et.m=0,et.d="W"in et?(et.w+6)%7+et.W*7-(Xt+5)%7:et.w+et.U*7-(Xt+6)%7);return"Z"in et?(et.H+=et.Z/100|0,et.M+=et.Z%100,NS(et)):RS(et)}}function j(Ve,qe,st,et){for(var gt=0,yt=qe.length,Xt=st.length,cr,fr;gt<yt;){if(et>=Xt)return-1;if(cr=qe.charCodeAt(gt++),cr===37){if(cr=qe.charAt(gt++),fr=F[cr in iR?qe.charAt(gt++):cr],!fr||(et=fr(Ve,st,et))<0)return-1}else if(cr!=st.charCodeAt(et++))return-1}return et}function G(Ve,qe,st){var et=f.exec(qe.slice(st));return et?(Ve.p=d.get(et[0].toLowerCase()),st+et[0].length):-1}function W(Ve,qe,st){var et=C.exec(qe.slice(st));return et?(Ve.w=E.get(et[0].toLowerCase()),st+et[0].length):-1}function J(Ve,qe,st){var et=p.exec(qe.slice(st));return et?(Ve.w=g.get(et[0].toLowerCase()),st+et[0].length):-1}function X(Ve,qe,st){var et=k.exec(qe.slice(st));return et?(Ve.m=H.get(et[0].toLowerCase()),st+et[0].length):-1}function q(Ve,qe,st){var et=S.exec(qe.slice(st));return et?(Ve.m=_.get(et[0].toLowerCase()),st+et[0].length):-1}function re(Ve,qe,st){return j(Ve,t,qe,st)}function le(Ve,qe,st){return j(Ve,n,qe,st)}function ie(Ve,qe,st){return j(Ve,r,qe,st)}function ke(Ve){return l[Ve.getDay()]}function de(Ve){return i[Ve.getDay()]}function Ee(Ve){return c[Ve.getMonth()]}function we(Ve){return u[Ve.getMonth()]}function pe(Ve){return a[+(Ve.getHours()>=12)]}function Be(Ve){return 1+~~(Ve.getMonth()/3)}function We(Ve){return l[Ve.getUTCDay()]}function $e(Ve){return i[Ve.getUTCDay()]}function Qe(Ve){return c[Ve.getUTCMonth()]}function Oe(Ve){return u[Ve.getUTCMonth()]}function Ue(Ve){return a[+(Ve.getUTCHours()>=12)]}function ct(Ve){return 1+~~(Ve.getUTCMonth()/3)}return{format:function(Ve){var qe=O(Ve+="",D);return qe.toString=function(){return Ve},qe},parse:function(Ve){var qe=L(Ve+="",!1);return qe.toString=function(){return Ve},qe},utcFormat:function(Ve){var qe=O(Ve+="",V);return qe.toString=function(){return Ve},qe},utcParse:function(Ve){var qe=L(Ve+="",!0);return qe.toString=function(){return Ve},qe}}}var iR={"-":"",_:" ",0:"0"},Mu=/^\s*\d+/,qre=/^%/,eae=/[\\^$*+?|[\]().{}]/g;function ui(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 tae(e){return e.replace(eae,"\\$&")}function s7(e){return new RegExp("^(?:"+e.map(tae).join("|")+")","i")}function u7(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function nae(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rae(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function aae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function iae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function oae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function oR(e,t,n){var r=Mu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lR(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lae(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 sae(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function uae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function sR(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function cae(e,t,n){var r=Mu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uR(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dae(e,t,n){var r=Mu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pae(e,t,n){var r=Mu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hae(e,t,n){var r=qre.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vae(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mae(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function cR(e,t){return ui(e.getDate(),t,2)}function gae(e,t){return ui(e.getHours(),t,2)}function yae(e,t){return ui(e.getHours()%12||12,t,2)}function wae(e,t){return ui(1+o7.count(xh(e),e),t,3)}function fR(e,t){return ui(e.getMilliseconds(),t,3)}function Cae(e,t){return fR(e,t)+"000"}function bae(e,t){return ui(e.getMonth()+1,t,2)}function Eae(e,t){return ui(e.getMinutes(),t,2)}function Sae(e,t){return ui(e.getSeconds(),t,2)}function Bae(e){var t=e.getDay();return t===0?7:t}function xae(e,t){return ui(H4.count(xh(e)-1,e),t,2)}function AR(e){var t=e.getDay();return t>=4||t===0?A3(e):A3.ceil(e)}function Tae(e,t){return e=AR(e),ui(A3.count(xh(e),e)+(xh(e).getDay()===4),t,2)}function kae(e){return e.getDay()}function _ae(e,t){return ui(D4.count(xh(e)-1,e),t,2)}function Pae(e,t){return ui(e.getFullYear()%100,t,2)}function Hae(e,t){return e=AR(e),ui(e.getFullYear()%100,t,2)}function Dae(e,t){return ui(e.getFullYear()%1e4,t,4)}function Mae(e,t){var n=e.getDay();return e=n>=4||n===0?A3(e):A3.ceil(e),ui(e.getFullYear()%1e4,t,4)}function Iae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ui(t/60|0,"0",2)+ui(t%60,"0",2)}function dR(e,t){return ui(e.getUTCDate(),t,2)}function Rae(e,t){return ui(e.getUTCHours(),t,2)}function Nae(e,t){return ui(e.getUTCHours()%12||12,t,2)}function $ae(e,t){return ui(1+MS.count(bm(e),e),t,3)}function pR(e,t){return ui(e.getUTCMilliseconds(),t,3)}function Lae(e,t){return pR(e,t)+"000"}function Fae(e,t){return ui(e.getUTCMonth()+1,t,2)}function Qae(e,t){return ui(e.getUTCMinutes(),t,2)}function Oae(e,t){return ui(e.getUTCSeconds(),t,2)}function Vae(e){var t=e.getUTCDay();return t===0?7:t}function Uae(e,t){return ui(aR.count(bm(e)-1,e),t,2)}function hR(e){var t=e.getUTCDay();return t>=4||t===0?d3(e):d3.ceil(e)}function zae(e,t){return e=hR(e),ui(d3.count(bm(e),e)+(bm(e).getUTCDay()===4),t,2)}function Gae(e){return e.getUTCDay()}function jae(e,t){return ui(M4.count(bm(e)-1,e),t,2)}function Yae(e,t){return ui(e.getUTCFullYear()%100,t,2)}function Wae(e,t){return e=hR(e),ui(e.getUTCFullYear()%100,t,2)}function Xae(e,t){return ui(e.getUTCFullYear()%1e4,t,4)}function Kae(e,t){var n=e.getUTCDay();return e=n>=4||n===0?d3(e):d3.ceil(e),ui(e.getUTCFullYear()%1e4,t,4)}function Zae(){return"+0000"}function vR(){return"%"}function mR(e){return+e}function gR(e){return Math.floor(+e/1e3)}var p3,yR;Jae({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 Jae(e){return p3=Jre(e),yR=p3.format,p3.parse,p3.utcFormat,p3.utcParse,p3}function qae(e){return new Date(e)}function eie(e){return e instanceof Date?+e:+new Date(+e)}function wR(e,t,n,r,a,i,l,u,c,f){var d=zI(),p=d.invert,g=d.domain,C=f(".%L"),E=f(":%S"),S=f("%I:%M"),_=f("%I %p"),k=f("%a %d"),H=f("%b %d"),D=f("%B"),V=f("%Y");function F(O){return(c(O)<O?C:u(O)<O?E:l(O)<O?S:i(O)<O?_:r(O)<O?a(O)<O?k:H:n(O)<O?D:V)(O)}return d.invert=function(O){return new Date(p(O))},d.domain=function(O){return arguments.length?g(Array.from(O,eie)):g().map(qae)},d.ticks=function(O){var L=g();return e(L[0],L[L.length-1],O??10)},d.tickFormat=function(O,L){return L==null?F:f(L)},d.nice=function(O){var L=g();return(!O||typeof O.range!="function")&&(O=t(L[0],L[L.length-1],O??10)),O?g(JI(L,O)):d},d.copy=function(){return x4(d,wR(e,t,n,r,a,i,l,u,c,f))},d}function tie(){return s3.apply(wR(Kre,Zre,xh,IS,H4,o7,DS,HS,f3,yR).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}const h3="#110529",nie="solid",CR=1,I4="21",Th=3,R4={min:3,max:10},rie={color:"#ccc",lineShape:nie,dotShape:I4},aie="light";function iie(e){const t=1/(e.length-1);return gi().domain(e.map((n,r)=>r*t)).range(e)}function bR(e,t){const n=Ms[e].colors,r=t.length>1?1/(t.length-1):0,a=iie(n),i=sS(e),l=t.reduce((u,c,f)=>(u[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:o3[f%o3.length],dotShape:K2[f%K2.length]}},u),{});return{type:"categorical",palette:e,naAes:rie,order:t,mapping:l}}function v3(e){return bR(aie,e)}function ER(e,t,n,r){if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??v3(n?e.getSourceInfo(n).uniqueValues:[]);return{order:a.order,inheritedAes:a.order.reduce((i,l)=>{const u=a.mapping[l].aes;return i[l]={},r.fill&&(i[l].fillColor=u.color,i[l].dotFill=u.color),r.stroke&&(i[l].lineColor=u.color),r.dotShape&&(i[l].dotShape=u.dotShape),r.lineType&&(i[l].lineShape=u.lineShape),i},{})}}function oie(e,t,n){const r=n[e]??v3(t.getSourceInfo(e).uniqueValues);return r.order.reduce((a,i)=>{const l=r.mapping[i].aes;return a[i]={fillColor:l.color,lineColor:l.color,dotFill:l.color,dotShape:l.dotShape,dotSize:Th,lineWidth:CR},a},{})}function $S(e,t,n,r){const a=n[e]??v3(t.getSourceInfo(e).uniqueValues);return a.order.reduce((i,l)=>{const u=a.mapping[l].aes;return i[l]=u[r],i},{})}const lie={},sie={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function uie(e,t){return v.openBlock(),v.createElementBlock("svg",sie,t[0]||(t[0]=[v.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),v.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 SR=Sr(lie,[["render",uie]]),BR="pl7.app/graph/thresholds",N4="pl7.app/graph/axis/lowerLimit",$4="pl7.app/graph/axis/upperLimit",L4="pl7.app/graph/axis/symmetricRange",LS="pl7.app/graph/palette",cie="pl7.app/axisNature",fie="pl7.app/min",Aie="pl7.app/max",die="pl7.app/isSubset";function pie(e,t){return t==="discrete"?e&&c7[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&m3[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const c7={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"]},m3={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},hie={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},g3={box:"Boxplot",binnedDots:"Binned Dots",jitteredDots:"Jittered Dots",violin:"Violins",bar:"Bar",stackedBar:"Stacked Bar",line:"Line",errorbar:"Error Bar",sina:"Sina",dots:"Scatter Plot",curve:"Curve",heatmap:"Heatmap",heatmapClustered:"Heatmap + Dendro",dendro:"Dendrogram"};function vie(e){var t,n,r,a,i,l,u,c,f,d,p,g,C,E,S,_,k,H,D,V,F,O,L,j,G,W,J,X;return{overall:{data:{testMethod:((n=(t=e==null?void 0:e.overall)==null?void 0:t.data)==null?void 0:n.testMethod)??null},validity:{testMethod:((a=(r=e==null?void 0:e.overall)==null?void 0:r.validity)==null?void 0:a.testMethod)??!0}},referenceGroup:{data:{testMethod:((l=(i=e==null?void 0:e.referenceGroup)==null?void 0:i.data)==null?void 0:l.testMethod)??null,referenceGroup:((c=(u=e==null?void 0:e.referenceGroup)==null?void 0:u.data)==null?void 0:c.referenceGroup)??null,correctionMethod:((d=(f=e==null?void 0:e.referenceGroup)==null?void 0:f.data)==null?void 0:d.correctionMethod)??"Bonferroni",format:((g=(p=e==null?void 0:e.referenceGroup)==null?void 0:p.data)==null?void 0:g.format)??"significance",ns:((E=(C=e==null?void 0:e.referenceGroup)==null?void 0:C.data)==null?void 0:E.ns)??!1},validity:{testMethod:((_=(S=e==null?void 0:e.referenceGroup)==null?void 0:S.validity)==null?void 0:_.testMethod)??!0,referenceGroup:((H=(k=e==null?void 0:e.referenceGroup)==null?void 0:k.validity)==null?void 0:H.referenceGroup)??!0}},pairwise:{data:{testMethod:((V=(D=e==null?void 0:e.pairwise)==null?void 0:D.data)==null?void 0:V.testMethod)??null,correctionMethod:((O=(F=e==null?void 0:e.pairwise)==null?void 0:F.data)==null?void 0:O.correctionMethod)??"Bonferroni",format:((j=(L=e==null?void 0:e.pairwise)==null?void 0:L.data)==null?void 0:j.format)??"significance",ns:((W=(G=e==null?void 0:e.pairwise)==null?void 0:G.data)==null?void 0:W.ns)??!1},validity:{testMethod:((X=(J=e==null?void 0:e.pairwise)==null?void 0:J.validity)==null?void 0:X.testMethod)??!0}}}}function F4(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function Em(e){return typeof e=="object"&&e!==null&&"type"in e}function Q4(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e&&F4(e.range)}const mie=()=>({dendro:{dotFill:Gl,dotShape:bh,dotSize:Th,lineColor:Gl,mode:"normal",leavesMode:"normal",showTable:!1,showLegend:!0},heatmap:{},heatmapClustered:{dendrogramX:!0,dendrogramY:!0},dots:{dotFill:null,dotShape:null,dotSize:Th},curve:{lineColor:Gl,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:h3,dotShape:bh,lineType:m4,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:h3,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:bh,lineColor:h3,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:h3,lineType:m4,opacity:1,trim:!1},bar:{fillColor:null,lineColor:h3,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:h3,opacity:1},line:{pointsValues:"mean",lineColor:null,dotShape:bh,lineType:m4,dotFill:Gl,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:bh,dotFill:Gl,opacity:1},sina:{dotFill:null,dotShape:bh,opacity:1,showOutliers:!0}});function gie(e){const t=mie();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const yie=()=>({title:{value:"Graph 1",position:"center",mode:"auto",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:"center",axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3}});function xR(e){return e==="full"||e==="none"}function wie(e,t){var a;const n=yie();if(!t)return n;function r(i){return!i||e==="heatmap"&&!xR(i)?"full":e!=="heatmap"&&xR(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 kh={box:Gee,box_binnedDots:Xee,box_jitteredDots:qee,binnedDots:rte,jitteredDots:lte,violin:fte,violin_binnedDots:hte,violin_jitteredDots:yte,bar:Ete,bar_line:vI,bar_errorbar:Pte,stackedBar:Ite,line:mI,line_binnedDots:Ote,line_jitteredDots:gI,line_errorbar:Wte,errorbar:vI,sina:Jte,dots:nne,curve:mI,curve_dots:gI,heatmap:one,heatmapClustered:SR,dendro:SR},O4=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],TR=[{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"}],kR=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}];function _R(e,t,n){var a,i,l,u,c;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((u=(l=e.components)==null?void 0:l[n])!=null&&u.selectorStates.length))return["single common group"];const r=(c=e.components)==null?void 0:c[n].selectorStates[0].selectedSource;return t.getSourceInfo(r).uniqueValues}function Cie(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 bie(e,t,n,r){const a=[],i=r.components.primaryGrouping.selectorStates.length>0,l=r.components.secondaryGrouping.selectorStates.length>0;function u(c,f=!1){return c===null?l?{type:"secondaryGrouping"}:i&&!f?{type:"primaryGrouping"}:{type:"secondaryGrouping"}:c}return e.forEach(c=>{if(c==="box"){const f=t[c];a.push({type:"box",aes:{showOutliers:f.showOutliers,dotShape:f.dotShape,fillColor:u(f.fillColor),lineColor:u(f.lineColor),lineShape:f.lineType,opacity:f.opacity}})}if(c==="binnedDots"){const f=t[c];a.push({type:"binnedDots",aes:{showOutliers:f.showOutliers,fillColor:u(f.fillColor),lineColor:u(f.lineColor),opacity:f.opacity}})}if(c==="jitteredDots"){const f=t[c];a.push({type:"dot",aes:{showOutliers:f.showOutliers,dotFill:u(f.dotFill),dotShape:f.dotShape,lineColor:f.lineColor,opacity:f.opacity}})}if(c==="violin"){const f=t[c];a.push({type:"violin",stat:{trim:f.trim},aes:{fillColor:u(f.fillColor),lineColor:u(f.lineColor),lineShape:f.lineType,opacity:f.opacity}})}if(c==="bar"){const f=t[c];a.push({type:"bar",height:f.height,aes:{fillColor:u(f.fillColor),lineColor:u(f.lineColor),opacity:f.opacity}})}if(c==="stackedBar"){const f=t[c];a.push({type:"stackedBar",aes:{fillColor:u(f.fillColor),lineColor:u(f.lineColor),opacity:f.opacity}})}if(c==="line"){const f=t[c];a.push({type:"line",pointsValues:f.pointsValues,aes:{lineColor:u(f.lineColor,!0),fillColor:f.dotFill,lineShape:f.lineType,dotShape:f.dotShape,opacity:f.opacity}})}if(c==="errorbar"){const f=t[c];a.push({type:"errorbar",pointsValues:f.pointsValues,interval:f.interval,aes:{lineColor:u(f.lineColor,!0),fillColor:f.dotFill,dotShape:f.dotShape,opacity:f.opacity}})}if(c==="sina"){const f=t[c];a.push({type:"sina",aes:{showOutliers:f.showOutliers,dotFill:u(f.dotFill),dotShape:f.dotShape}})}}),i&&!l&&a.push(...Cie(n)),a}function Eie(e,t,n){if(Q4(t)){const r=e.find(i=>i.value===t.column);if(!r)return Th;const a=[1/0,-1/0];return n.values[r.value].forEach(i=>{const l=Number(i);l<a[0]&&(a[0]=l),l>a[1]&&(a[1]=l)}),{columnName:r,domain:a,range:[t.range.min,t.range.max]}}return t===null?Th:t}function PR(e,t,n,r){const a=[];return e.forEach(i=>{if(i==="dots"){const l=t[i];a.push({type:"dots",aes:{dotFill:l.dotFill??Gl,dotShape:l.dotShape??bh,dotSize:Eie(r,l.dotSize,n)}})}if(i==="curve"){const l=t[i];a.push({type:"curve",smoothing:l.smoothing,aes:{lineColor:l.lineColor??Gl}})}}),a}function HR(e,t,n,r,a,i,l){if(e==="discrete"){const u=c7[t];return bie(u,n,r,a)}if(e==="scatterplot"||e==="scatterplot-umap"){const u=m3[t];return PR(u,n,l,i==null?void 0:i.grouping)}return[]}function f7(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return Em(a)&&a.type===n})}function V4(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return Em(a)&&a.value===n})}function DR(e,t,n,r,a){var c,f,d;const i=HR(e,t,n,r,a,{},{type:"columns",id:"",values:{}}),l={};let u=[];return e==="discrete"&&(u=["primaryGrouping","secondaryGrouping"],u.forEach(p=>{var C,E;const g=(E=(C=a.components[p])==null?void 0:C.selectorStates[0])==null?void 0:E.selectedSource;g&&(l[g]={fill:f7(i,"fillColor",p)||f7(i,"dotFill",p),stroke:f7(i,"lineColor",p),dotShape:f7(i,"dotShape",p),lineType:f7(i,"lineShape",p),size:!1})})),e==="scatterplot"&&(u=a.components.grouping.selectorStates.map(p=>p.selectedSource),u.forEach(p=>{l[p]={fill:V4(i,"dotFill",p),stroke:V4(i,"lineColor",p),dotShape:V4(i,"dotShape",p),lineType:!1,size:!1}})),e==="scatterplot-umap"&&(u=a.components.grouping.selectorStates.map(p=>p.selectedSource),u.forEach(p=>{l[p]={fill:V4(i,"dotFill",p),stroke:!1,dotShape:!1,lineType:!1,size:!1}})),e==="dendro"&&(u=[((c=a.components.nodeColor.selectorStates[0])==null?void 0:c.selectedSource)??null,((f=a.components.nodeShape.selectorStates[0])==null?void 0:f.selectedSource)??null,((d=a.components.lineColor.selectorStates[0])==null?void 0:d.selectedSource)??null].filter(g=>g!==null),u.forEach(g=>{l[g]={fill:Em(n.dendro.dotFill)&&n.dendro.dotFill.value===g,stroke:Em(n.dendro.lineColor)&&n.dendro.lineColor.value===g,dotShape:Em(n.dendro.dotShape)&&n.dendro.dotShape.value===g,lineType:!1,size:!1}})),l}function FS(e,t){let n={},r={};t==="discrete"&&(n.labelsPosition=e.axisX.labelsRotation,n.linesBetweenCategories=e.axisX.linesBetweenCategories,r.scale=e.axisY.scale),(t==="discrete"||t==="scatterplot")&&(n.showGrid=e.axisX.gridlines,n.showTicks=e.axisX.ticks,r.showGrid=e.axisY.gridlines,r.showTicks=e.axisY.ticks),t==="scatterplot"&&(n.scale=e.axisX.scale,r.scale=e.axisY.scale,n.significantLinesStyle=e.axisX.significantLinesStyle,r.significantLinesStyle=e.axisY.significantLinesStyle),t==="heatmap"&&(n.axisLabelsAngle=e.axisX.axisLabelsAngle,r.axisLabelsAngle=e.axisY.axisLabelsAngle),e.axisY.titleMode!=="auto"&&(r.title=e.axisY.titleMode==="custom"?e.axisY.customTitle:""),e.axisX.titleMode!=="auto"&&(n.title=e.axisX.titleMode==="custom"?e.axisX.customTitle:"");const a={xAxis:n,yAxis:r,frame:{type:e.other.frame},facetSettings:{nCols:e.other.facetColumns}};return(t==="discrete"||t==="scatterplot"||t==="heatmap")&&(a.orientation=e.other.reverse?"horizontal":"vertical",a.facetSettings.sharedX=["x","xy"].includes(e.other.facetSharedBy),a.facetSettings.sharedY=["y","xy"].includes(e.other.facetSharedBy)),a}function _h(e){return JSON.parse(JSON.stringify(e))}function Sie(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 MR(e,t){return(t==null?void 0:t[die])==="true"?"subset":e==="Int"||e==="String"?"equals":"range"}async function QS(e,t,n=!0){const r=[],a=t.filter(({selectedSource:u})=>"kind"in u&&u.kind==="PColumn"),i=t.filter(({selectedSource:u})=>!("kind"in u&&u.kind==="PColumn")),l=[];for(const{inputName:u,filterType:c,selectedSource:f,selectedFilterValue:d,selectedFilterRange:p}of a){const{name:g,valueType:C,annotations:E,domain:S}=f,_=await e.pFrameProvider.findColumnBy(g,C,v.toRaw(E),v.toRaw(S)),k=u==="filters"||u==="tabBy";if(_){const H=await e.pFrameProvider.getColumnSpecById(_);if(!k)r.push({inputName:u,selectedSource:_.toCanonicalString()});else{const D=c??MR(C,H==null?void 0:H.annotations),V=D==="equals"&&typeof d>"u"?(await e.pFrameProvider.getColumnUniqueValues(_))[0]:d,F=D==="range"&&typeof p>"u"?{min:0,max:0}:p;r.push({inputName:u,filterType:D,selectedSource:_.toCanonicalString(),selectedFilterValue:V,selectedFilterRange:F})}l.push(...(H==null?void 0:H.axesSpec.map(D=>({spec:D,parentColumn:_})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:u,selectedSource:f})}`)}for(const{inputName:u,selectedSource:c,filterType:f,selectedFilterValue:d,selectedFilterRange:p}of i){const g=zl.fromAxisSpec(c),C=g.toCanonicalString(),E=u==="filters"||u==="tabBy",S=E?f??MR(g.type,c==null?void 0:c.annotations):void 0,_=l.find(D=>zl.fromAxisSpec(D.spec).toCanonicalString()===C),k=E&&S==="equals"&&typeof d>"u"&&(_!=null&&_.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(g,[_==null?void 0:_.parentColumn]))[0]:d,H=E&&S==="range"&&typeof p>"u"?{min:0,max:0}:p;if(n||r.push({inputName:u,filterType:S,selectedSource:C,selectedFilterValue:k,selectedFilterRange:H}),_)r.push({inputName:u,filterType:S,selectedSource:C,selectedFilterValue:k,selectedFilterRange:H});else{const{spec:D,parentColumn:V}=l.find(F=>g.name===F.spec.name&&g.type===F.spec.type&&Sie(g.domain,F.spec.domain))??{};if(D){const F=(u==="filters"||u==="tabBy")&&typeof d>"u"?(await e.pFrameProvider.getAxisUniqueValues(zl.fromAxisSpec(D),[V]))[0]:d;r.push({inputName:u,filterType:S,selectedSource:zl.fromAxisSpec(D).toCanonicalString(),selectedFilterValue:F,selectedFilterRange:H})}}}return r}async function IR(e,t,n){if(!n||n.length===0)return e;const r=await QS(t,n,!1),a=_h(e);return r.forEach(({inputName:i,selectedSource:l,selectedFilterValue:u})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:l,type:"equals",selectedFilterValue:u})}),a}function Bie(e,t,n,r){const a=HR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,e,r),i=DR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState);e.layers=a;const l=t.optionsState.components;if(l.primaryGrouping.selectorStates.length&&e.primaryGrouping){const u=l.primaryGrouping.selectorStates[0].selectedSource,c=i[u];Object.assign(e.primaryGrouping,ER(n,t.dataBindAes[u],u,c))}if(l.secondaryGrouping.selectorStates&&e.secondaryGrouping){const u=l.secondaryGrouping.selectorStates[0].selectedSource,c=i[u];Object.assign(e.secondaryGrouping,ER(n,t.dataBindAes[u],u,c))}return Object.assign(e,FS(t.axesSettings,t.chartType)),e}function xie(e,t,n,r){var d,p,g,C;e.layers=PR(m3[n.template],n.layersSettings,t,e==null?void 0:e.grouping);const a=n.optionsState.components.grouping;if(a.selectorStates.length){const E={};a.selectorStates.forEach(({selectedSource:S})=>{E[S]=oie(S,r,n.dataBindAes)}),Object.assign(e,{inheritedAes:E})}Object.assign(e,FS(n.axesSettings,n.chartType));const i=(d=a.selectorStates[0])==null?void 0:d.selectedSource,l=(p=n.optionsState.components.x.selectorStates[0])==null?void 0:p.selectedSource,u=(g=n.optionsState.components.y.selectorStates[0])==null?void 0:g.selectedSource,c=r.getSourceInfo(l),f=r.getSourceInfo(u);if(a.selectorStates.length){const E=r.getSourceInfo(i).annotations;if(E!=null&&E[BR]&&(JSON.parse(E[BR])??[]).forEach(_=>{const{columnId:k,value:H}=_;k&&c.kind==="column"&&c.type===k.valueType&&c.name===k.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(H))),k&&f.kind==="column"&&f.type===k.valueType&&f.name===k.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(H)))}),E!=null&&E[LS]){const S=JSON.parse(E[LS]),{mapping:_={},name:k=""}=S;e.layers.forEach(V=>{V.type==="dots"&&(V.aes||(V.aes={}),V.aes.dotFill={type:"grouping",value:i})});const H=[...Object.entries(_),["null",uS]],D=((C=Ms[k])==null?void 0:C.colors)??[];e.inheritedAes[i]=H.reduce((V,[F,O])=>{const L=D[Number(O)]??Gl;return V[F]={fillColor:L,lineColor:L,dotFill:L,dotShape:I4,dotSize:Th,lineWidth:CR},V},{})}}return c.annotations&&(c.annotations[$4]&&(e.xAxis.upperValue=Number(c.annotations[$4])),c.annotations[N4]&&(e.xAxis.lowerValue=Number(c.annotations[N4])),c.annotations[L4]&&(e.xAxis.symmetricRange=Number(c.annotations[L4]))),f.annotations&&(f.annotations[$4]&&(e.yAxis.upperValue=Number(f.annotations[$4])),f.annotations[N4]&&(e.yAxis.lowerValue=Number(f.annotations[N4])),f.annotations[L4]&&(e.yAxis.symmetricRange=Number(f.annotations[L4]))),e}function Tie(e,t){const n={};return(e==null?void 0:e.valueType)!=="discrete"?(t.template==="heatmapClustered"&&(e.dendrogramX={fillNA:0,showNodes:!1,hidden:!t.layersSettings.heatmapClustered.dendrogramX},e.dendrogramY={fillNA:0,position:"right",showNodes:!1,hidden:!t.layersSettings.heatmapClustered.dendrogramY}),n.colorsList=Ms[Bne].colors):n.colorsList=Ms.bright.colors,e.aes=n,Object.assign(e,FS(t.axesSettings,t.chartType)),t.template==="heatmapClustered"&&(e==null?void 0:e.valueType)!=="discrete"&&(e.facetSettings.sharedX=!1,e.facetSettings.sharedY=!1),e}const kie=280;async function _ie(e,t,n,r,a,i){var f,d,p,g;n.rootPosition="left",n.size=RR(100);const l=r.optionsState.components,u=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const C=(f=l.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,E=$S(C,a,r.dataBindAes,"dotShape");Object.keys(E).length?c.nodeShape.valuesMap=E:c.nodeShape=I4}else typeof u.dotShape=="string"&&(c.nodeShape=u.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const C=(d=l.nodeColor.selectorStates[0])==null?void 0:d.selectedSource,E=$S(C,a,r.dataBindAes,"color");Object.keys(E).length?c.nodeColor.valuesMap=E:c.nodeColor=Gl}else typeof u.dotFill=="string"&&(c.nodeColor=u.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const C=(p=l.nodeSize.selectorStates[0])==null?void 0:p.selectedSource;let[E,S]=[1/0,-1/0];t.values[C].forEach(_=>{const k=Number(_);k<E&&(E=k),k>S&&(S=k)}),c.nodeSize.domain=[E,S],c.nodeSize.range=F4(u.dotSize)?[u.dotSize.min,u.dotSize.max]:[R4.min,R4.max]}else typeof u.dotSize=="number"&&(c.nodeSize=u.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const C=(g=l.lineColor.selectorStates[0])==null?void 0:g.selectedSource;c.lineColor.valuesMap=$S(C,a,r.dataBindAes,"color")}else typeof u.lineColor=="string"&&(c.lineColor=u.lineColor);if(l.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Ms.bright.colors}},n.size.maxCellWidth=8),l.heatmapAnnotation.selectorStates.length>0){const C=Pn(l.heatmapAnnotation.selectorStates[0].selectedSource),E=await e.pFrameProvider.getColumnSpecById(C),S=(E==null?void 0:E.valueType)==="Double"||(E==null?void 0:E.valueType)==="Float"||(E==null?void 0:E.valueType)==="Int"||(E==null?void 0:E.valueType)==="Long"?"continuous":"discrete",_=Ms.bright.colors;let k;S==="discrete"&&(k=(await e.pFrameProvider.getColumnUniqueValues(C)).filter(Boolean).reduce((D,V,F)=>(D[V]=_[F%_.length],D),{})),n.heatmapSettings={valueType:S,aes:{colorsList:Ms.viridis.colors,colorsMap:k}}}return n.mode=u.mode,n.leavesMode=u.leavesMode,n.showNodesLabels=l.labels.selectorStates.length>0,n.showLeavesLabels=l.labels.selectorStates.length>0,u.showTable&&l.heatmapAnnotation.selectorStates.length===0&&l.heatmapForSequence.selectorStates.length===0&&(n.size.width=kie),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}const Pie=600,Hie=350,Die=400,Mie=250;function RR(e,t=0){return{width:(t>0?Die:Pie)*(e/100),height:(t>0?Mie:Hie)*(e/100)}}function Iie(e,t,n,r){var a,i;if(e!=="scatterplot"&&e!=="discrete"&&e!=="heatmap")return{name:"",show:!1};if(r.title.mode==="hidden")return{name:"",show:!1};if(r.title.mode==="custom")return{name:r.title.value,show:!0,position:r.title.position};if(r.title.mode==="auto"){const l=[];return[...((a=t.components)==null?void 0:a.filters.selectorStates)??[],...((i=t.components)==null?void 0:i.tabBy.selectorStates)??[]].forEach(({type:f,selectedSource:d,selectedFilterValue:p})=>{var g;if((!f||f==="equals")&&p){const C=n.getSourceInfo(d);l.push(((g=C.valueLabels)==null?void 0:g[p])??String(p))}}),{name:l.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function Rie(e,t,n,r){var a;if(!e.ready||n===null)return null;try{const i=v4(t.chartType),l=await IR(t.optionsState,n,r),u=await i.createDataForPlot(n,l);let c=u.settings;return c.title=Iie(t.chartType,t.optionsState,e,t.axesSettings),c.size=RR(t.chartScale,((a=t.optionsState.components)==null?void 0:a.facetBy.selectorStates.length)||0),t.chartType==="discrete"&&(c=Bie(c,t,e,u.dataByColumns)),(t.chartType==="scatterplot"||t.chartType==="scatterplot-umap")&&(c=xie(c,u.dataByColumns,t,e)),t.chartType==="heatmap"&&(c=Tie(c,t)),t.chartType==="dendro"&&(c=await _ie(n,u.dataByColumns,c,t,e,t.chartScale)),{settings:c,dataByColumns:u.dataByColumns}}catch(i){return console.warn("Cant build chart data"),console.warn(i.message),null}}function NR(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function $R(e){return e.length<2?[]:e.length>2?O4.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):O4}function OS(e){return async()=>{const t=e.value.commonHelpersData.primaryGroups.value;function n(c,f){return f===null||!!c.find(d=>d.value===f)}const r=e.value.reactive.statisticsSettings,a=$R(t),i=NR(t),l=r.overall.data.testMethod,u=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,l),r.referenceGroup.validity.referenceGroup=n(i,u)}}function Nie(e){e.dispatchEvent(new MouseEvent("click"))}function $ie(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(){Nie(r)},0)}function Lie(e,t){const n=_h(hI(e));if((t==null?void 0:t.type)!==e)return n;const r=_h(t);return{...n,...r,components:{...n.components,...r.components}}}function Fie(e,t){return v.reactive({chartType:t,optionsState:Lie(t,e.optionsState),template:pie(e.template,t),statisticsSettings:vie(e.statisticsSettings),layersSettings:gie(e.layersSettings),axesSettings:wie(t,e.axesSettings),dataBindAes:_h(e.dataBindAes??{}),chartScale:100,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Qie(e,t,n,r,a){return{reactive:e,loading:v.reactive({initialInputGuide:!0,initialCharts:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:v.computed(()=>_R(e.optionsState,n.value,"primaryGrouping")),secondaryGroups:v.computed(()=>_R(e.optionsState,n.value,"secondaryGrouping")),usedAesInMapping:v.computed(()=>DR(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState)),dendroTableData:a},controller:v4(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r}}function Oie(e,t,n,r,a){const i=Fie(e,n),l=v4(i.chartType),u=v.ref(v4(i.chartType).getEmptyInputGuide(i.optionsState)),c=v.ref(null),f=v.ref(null),d=v.computed(()=>Qie(i,v.toRaw(t.value),u,c,f));if(r&&!e.optionsState){let p=!1;v.watch(()=>t.value,async g=>{if(g&&r&&!p){p=!0,d.value.loading.initialInputGuide=!0;const C=_h(hI(n)).components,E=await QS(g,r);for(const{inputName:S,selectedSource:_,filterType:k,selectedFilterValue:H,selectedFilterRange:D}of E)C[S].selectorStates.push({selectedSource:_,type:k,selectedFilterValue:H,selectedFilterRange:D});i.optionsState.components={...i.optionsState.components,...C}}},{immediate:!0})}return v.watch([()=>i.optionsState,()=>t.value,()=>a.value],async([p,g,C])=>{d.value.loading.inputGuide=!0;const E=g&&C?(await QS(g,C,!1)).map(S=>S.selectedSource):[];u.value=g?await l.calculateOptions(v.toRaw(g),p,E):l.getEmptyInputGuide(p),d.value.loading.inputGuide=!1,d.value.loading.initialInputGuide=!1},{immediate:!0,deep:!0}),v.watch([()=>u.value,()=>i.template,()=>i.layersSettings,()=>i.axesSettings,()=>i.statisticsSettings,()=>i.dataBindAes,()=>i.chartScale],async([p])=>{d.value.loading.chartData=!0,c.value=await Rie(p,i,v.toRaw(t.value),a.value),p.ready&&(d.value.loading.initialCharts=!1),d.value.loading.chartData=!1},{immediate:!0,deep:!0}),i.chartType==="dendro"&&v.watch([()=>i.optionsState,()=>t.value,()=>u.value.readyData,()=>a.value],async([p,g,C,E])=>{if(C&&g){d.value.loading.dendroTableData=!0;const S=await IR(p,g,E);f.value=await l.createTableData(g,S),d.value.loading.dendroTableData=!1}},{immediate:!0}),v.provide(jM,d),d}function ci(){return vq(v.inject(jM),"Empty store")}const Vie={class:"template-list"},Uie=["onClick"],zie=["onClick"],Gie=["onClick"],jie=v.defineComponent({__name:"TemplateForm",setup(e){const t=ci(),n=Object.entries(c7).map(([u,c])=>({id:u,text:c.map(f=>g3[f]).join(" + "),icon:kh[u]})),r=Object.entries(m3).map(([u,c])=>({id:u,text:c.map(f=>g3[f]).join(" + "),icon:kh[u]})),a=[{id:"heatmap",text:"Heatmap",icon:kh.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:kh.heatmapClustered}],i=[{id:"dendro",text:"Dendrogram",icon:kh.dendro}];function l(u){t.value.reactive.template=u}return(u,c)=>(v.openBlock(),v.createElementBlock("div",{class:"template-form",onClick:c[0]||(c[0]=f=>f.stopPropagation())},[c[5]||(c[5]=v.createElementVNode("div",{class:"template-title"},[v.createElementVNode("h3",null," Template ")],-1)),v.createElementVNode("div",Vie,[v.unref(t).reactive.chartType==="discrete"?(v.openBlock(!0),v.createElementBlock(v.Fragment,{key:0},v.renderList(v.unref(n),({id:f,text:d,icon:p})=>(v.openBlock(),v.createElementBlock("div",{class:v.normalizeClass(["template-item",{selected:v.unref(t).reactive.template===f}]),onClick:g=>l(f)},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(p))),v.createTextVNode(" "+v.toDisplayString(d)+" ",1),c[1]||(c[1]=v.createElementVNode("div",{class:"checkmark"},null,-1))],10,Uie))),256)):v.createCommentVNode("",!0),v.unref(t).reactive.chartType==="scatterplot"?(v.openBlock(!0),v.createElementBlock(v.Fragment,{key:1},v.renderList(v.unref(r),({id:f,text:d,icon:p})=>(v.openBlock(),v.createElementBlock("div",{class:v.normalizeClass(["template-item",{selected:v.unref(t).reactive.template===f}]),onClick:g=>l(f)},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(p))),v.createTextVNode(" "+v.toDisplayString(d)+" ",1),c[2]||(c[2]=v.createElementVNode("div",{class:"checkmark"},null,-1))],10,zie))),256)):v.createCommentVNode("",!0),v.unref(t).reactive.chartType==="heatmap"?(v.openBlock(),v.createElementBlock(v.Fragment,{key:2},v.renderList(a,({id:f,text:d,icon:p})=>v.createElementVNode("div",{class:v.normalizeClass(["template-item",{selected:v.unref(t).reactive.template===f}]),onClick:g=>l(f)},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(p))),v.createTextVNode(" "+v.toDisplayString(d)+" ",1),c[3]||(c[3]=v.createElementVNode("div",{class:"checkmark"},null,-1))],10,Gie)),64)):v.createCommentVNode("",!0),v.unref(t).reactive.chartType==="dendro"?(v.openBlock(),v.createElementBlock(v.Fragment,{key:3},v.renderList(i,({text:f,icon:d})=>v.createElementVNode("div",{class:v.normalizeClass(["template-item",{selected:!0}])},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(d))),v.createTextVNode(" "+v.toDisplayString(f)+" ",1),c[4]||(c[4]=v.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):v.createCommentVNode("",!0)])]))}}),Yie={class:"inputs-block"},Wie={class:"separator"},Xie={class:"arrow-circle"},Kie={class:"inputs-block"},U4=v.defineComponent({__name:"FormLayout",setup(e){return(t,n)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createElementVNode("div",{class:"left-block",onClick:n[0]||(n[0]=r=>r.stopPropagation())},[n[2]||(n[2]=v.createElementVNode("h3",null," Data Mapping ",-1)),v.createElementVNode("div",Yie,[v.renderSlot(t.$slots,"dataVar")])]),v.createElementVNode("div",Wie,[v.createElementVNode("div",Xie,[v.createVNode(v.unref(Mt.PlIcon16),{name:"arrow-right"})])]),v.createElementVNode("div",{class:"right-block",onClick:n[1]||(n[1]=r=>r.stopPropagation())},[n[3]||(n[3]=v.createElementVNode("h3",null," Chart variables ",-1)),v.createElementVNode("div",Kie,[v.renderSlot(t.$slots,"chartVar")])])],64))}});function z4(e,t,n,r,a,i){return v.computed({get(){return e.value.components[t].selectorStates.map(l=>l.selectedSource)},set(l){if(!r)return;const u=l.map(c=>{const f=e.value.components[t].selectorStates.find(d=>d.selectedSource===c);if(f)return f;{const d=i(c),p=FR(d.annotations);return d.isSubsetFilter?{selectedSource:c,type:"subset"}:p!==null?{selectedSource:c,type:"range",selectedFilterRange:p}:{selectedSource:c,type:"equals",selectedFilterValue:a.value[c][0]}}});e.value=n.changeSelected(t,r,e.value,u)}})}function G4(e,t,n,r){return v.computed({get(){return e.value.components[t].selectorStates.map(a=>a.selectedSource)},set(a){r&&(e.value=n.changeSelected(t,r,e.value,a.map(i=>({selectedSource:i}))))}})}function j4(e,t,n,r){return v.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 Zie(e,t,n){const r=e.options.map(i=>({text:t(i.value).label,value:i.value}));return n.selectorStates.map(i=>i.selectedSource).forEach(i=>{const l=t(i),u=e.stateConsistency[i]===!1;r.unshift({text:u?"Inconsistent value":l.label,value:i})}),r.sort((i,l)=>i.text>l.text?1:-1)}function Y4(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Zie(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function VS(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 US(e,t){return VS(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function zS(e,t){return VS(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function LR(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function GS(e,t){return LR(e,t)?" ":""}function FR(e){if(!e)return null;const t=e==null?void 0:e[fie],n=e==null?void 0:e[Aie];return typeof t<"u"&&typeof n<"u"?{min:Number(t),max:Number(n)}:null}function Jie(e){var n;const t=(n=e==null?void 0:e[cie])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function W4(e,t){return t.reduce((n,r)=>{const a=e.getSourceInfo(r),l=[...Object.keys(e.components).filter(d=>e.components[d].options.find(p=>p.value===r))],u=Object.values(e.components).some(({stateConsistency:d})=>d[r]===!1),c=a.valueLabels,f=(e.components.filters.filterValueOptions[r]??[]).sort((d,p)=>((c==null?void 0:c[d])??d)>((c==null?void 0:c[p])??p)?1:-1);return n[r]={id:r,title:u?"Inconsistent value":a.label,type:a.type,nonHomogenous:a.kind==="axis"&&Jie(a.annotations),isSubsetFilter:a.isSubsetFilter,availableBasketIds:new Set(l),uniqueValues:f,range:FR(a.annotations),valueLabels:c},n},{})}const jS=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
27
+ }`;var jr=Fb(function(){return Zr(xe,bn+"return "+Dt).apply(n,Ie)});if(jr.source=Dt,ih(jr))throw jr;return jr}function RP(y){return hi(y).toLowerCase()}function ow(y){return hi(y).toUpperCase()}function NP(y,B,N){if(y=hi(y),y&&(N||B===n))return It(y);if(!y||!(B=Yo(B)))return y;var te=ni(y),he=ni(B),xe=wa(te,he),Ie=al(te,he)+1;return mu(te,xe,Ie).join("")}function lw(y,B,N){if(y=hi(y),y&&(N||B===n))return y.slice(0,Od(y)+1);if(!y||!(B=Yo(B)))return y;var te=ni(y),he=al(te,ni(B))+1;return mu(te,0,he).join("")}function Lb(y,B,N){if(y=hi(y),y&&(N||B===n))return y.replace(Kr,"");if(!y||!(B=Yo(B)))return y;var te=ni(y),he=wa(te,ni(B));return mu(te,he).join("")}function $P(y,B){var N=W,te=J;if(Zo(B)){var he="separator"in B?B.separator:he;N="length"in B?Ir(B.length):N,te="omission"in B?Yo(B.omission):te}y=hi(y);var xe=y.length;if(CA(y)){var Ie=ni(y);xe=Ie.length}if(N>=xe)return y;var Le=N-zc(te);if(Le<1)return te;var Ze=Ie?mu(Ie,0,Le).join(""):y.slice(0,Le);if(he===n)return Ze+te;if(Ie&&(Le+=Ze.length-Le),Wy(he)){if(y.slice(Le).search(he)){var xt,St=Ze;for(he.global||(he=ts(he.source,hi(Ln.exec(he))+"g")),he.lastIndex=0;xt=he.exec(St);)var Dt=xt.index;Ze=Ze.slice(0,Dt===n?Le:Dt)}}else if(y.indexOf(Yo(he),Le)!=Le){var Wt=Ze.lastIndexOf(he);Wt>-1&&(Ze=Ze.slice(0,Wt))}return Ze+te}function LP(y){return y=hi(y),y&&ro.test(y)?y.replace(wr,Q0):y}var FP=U(function(y,B,N){return y+(N?" ":"")+B.toUpperCase()}),sw=R("toUpperCase");function uw(y,B,N){return y=hi(y),B=N?n:B,B===n?n1(y)?Gp(y):Oc(y):y.match(B)||[]}var Fb=gr(function(y,B){try{return Yn(y,n,B)}catch(N){return ih(N)?N:new Qn(N)}}),QP=DA(function(y,B){return Ar(B,function(N){N=bu(N),Il(y,N,$t(y[N],y))}),y});function OP(y){var B=y==null?0:y.length,N=jn();return y=B?Lr(y,function(te){if(typeof te[1]!="function")throw new Bs(l);return[N(te[0]),te[1]]}):[],gr(function(te){for(var he=-1;++he<B;){var xe=y[he];if(Yn(xe[0],this,te))return Yn(xe[1],this,te)}})}function VP(y){return Yd(Go(y,p))}function cw(y){return function(){return y}}function UP(y,B){return y==null||y!==y?B:y}var zP=De(),fw=De(!0);function cf(y){return y}function Aw(y){return Kc(typeof y=="function"?y:Go(y,p))}function GP(y){return qs(Go(y,p))}function jP(y,B){return ja(y,Go(B,p))}var YP=gr(function(y,B){return function(N){return sl(N,y,B)}}),WP=gr(function(y,B){return function(N){return sl(y,N,B)}});function dw(y,B,N){var te=nu(B),he=ll(B,te);N==null&&!(Zo(B)&&(he.length||!te.length))&&(N=B,B=y,y=this,he=ll(B,nu(B)));var xe=!(Zo(N)&&"chain"in N)||!!N.chain,Ie=i0(y);return Ar(he,function(Le){var Ze=B[Le];y[Le]=Ze,Ie&&(y.prototype[Le]=function(){var xt=this.__chain__;if(xe||xt){var St=y(this.__wrapped__),Dt=St.__actions__=ho(this.__actions__);return Dt.push({func:Ze,args:arguments,thisArg:y}),St.__chain__=xt,St}return Ze.apply(y,rl([this.value()],arguments))})}),y}function XP(){return ca._===this&&(ca._=td),this}function pw(){}function Qb(y){return y=Ir(y),gr(function(B){return Zc(B,y)})}var hw=Yt(Lr),KP=Yt(bs),ZP=Yt(Qc);function Dg(y){return on(y)?Z(bu(y)):yn(y)}function Mg(y){return function(B){return y==null?n:co(y,B)}}var JP=vo(),qP=vo(!0);function vw(){return[]}function mw(){return!1}function eH(){return{}}function tH(){return""}function nH(){return!0}function Ob(y,B){if(y=Ir(y),y<1||y>de)return[];var N=pe,te=Gi(y,pe);B=jn(B),y-=pe;for(var he=Je(te,B);++N<y;)B(N);return he}function rH(y){return Fr(y)?Lr(y,bu):Ba(y)?[y]:ho(_v(hi(y)))}function aH(y){var B=++cc;return hi(y)+B}var iH=_t(function(y,B){return y+B},0),oH=Sa("ceil"),lH=_t(function(y,B){return y/B},1),sH=Sa("floor");function uH(y){return y&&y.length?Ts(y,cf,Ys):n}function cH(y,B){return y&&y.length?Ts(y,jn(B,2),Ys):n}function fH(y){return JA(y,cf)}function AH(y,B){return JA(y,jn(B,2))}function dH(y){return y&&y.length?Ts(y,cf,El):n}function pH(y,B){return y&&y.length?Ts(y,jn(B,2),El):n}var hH=_t(function(y,B){return y*B},1),vH=Sa("round"),mH=_t(function(y,B){return y-B},0);function gH(y){return y&&y.length?nt(y,cf):0}function Kv(y,B){return y&&y.length?nt(y,jn(B,2)):0}return Ce.after=Fe,Ce.ary=ft,Ce.assign=sf,Ce.assignIn=Yv,Ce.assignInWith=b1,Ce.assignWith=sh,Ce.at=Tb,Ce.before=Nt,Ce.bind=$t,Ce.bindAll=QP,Ce.bindKey=Rt,Ce.castArray=yb,Ce.chain=Lv,Ce.chunk=W0,Ce.compact=Pv,Ce.concat=rf,Ce.cond=OP,Ce.conforms=VP,Ce.constant=cw,Ce.countBy=mg,Ce.create=E1,Ce.curry=en,Ce.curryRight=gn,Ce.debounce=Cn,Ce.defaults=S1,Ce.defaultsDeep=Zy,Ce.defer=fl,Ce.delay=rt,Ce.difference=aa,Ce.differenceBy=Ko,Ce.differenceWith=Zi,Ce.drop=Fl,Ce.dropRight=Ju,Ce.dropRightWhile=qp,Ce.dropWhile=Ql,Ce.fill=c1,Ce.filter=Vv,Ce.flatMap=yg,Ce.flatMapDeep=V9,Ce.flatMapDepth=wg,Ce.flatten=Hv,Ce.flattenDeep=e0,Ce.flattenDepth=tu,Ce.flip=ze,Ce.flow=zP,Ce.flowRight=fw,Ce.fromPairs=Dv,Ce.functions=Pb,Ce.functionsIn=dP,Ce.groupBy=r0,Ce.initial=Mv,Ce.intersection=fg,Ce.intersectionBy=af,Ce.intersectionWith=eh,Ce.invert=Hb,Ce.invertBy=pP,Ce.invokeMap=Gy,Ce.iteratee=Aw,Ce.keyBy=U9,Ce.keys=nu,Ce.keysIn=uf,Ce.map=ep,Ce.mapKeys=hP,Ce.mapValues=vP,Ce.matches=GP,Ce.matchesProperty=jP,Ce.memoize=it,Ce.merge=mP,Ce.mergeWith=Db,Ce.method=YP,Ce.methodOf=WP,Ce.mixin=dw,Ce.negate=Ot,Ce.nthArg=Qb,Ce.omit=gP,Ce.omitBy=yP,Ce.once=kn,Ce.orderBy=z9,Ce.over=hw,Ce.overArgs=Xn,Ce.overEvery=KP,Ce.overSome=ZP,Ce.partial=An,Ce.partialRight=Kn,Ce.partition=g1,Ce.pick=wP,Ce.pickBy=Mb,Ce.property=Dg,Ce.propertyOf=Mg,Ce.pull=A1,Ce.pullAll=t0,Ce.pullAllBy=ds,Ce.pullAllWith=pd,Ce.pullAt=Ro,Ce.range=JP,Ce.rangeRight=qP,Ce.rearg=Vl,Ce.reject=A,Ce.remove=Ol,Ce.rest=Ya,Ce.reverse=th,Ce.sampleSize=x,Ce.set=tw,Ce.setWith=nw,Ce.shuffle=M,Ce.slice=Z0,Ce.sortBy=me,Ce.sortedUniq=Rv,Ce.sortedUniqBy=J0,Ce.split=DP,Ce.spread=hd,Ce.tail=Ry,Ce.take=Ny,Ce.takeRight=d1,Ce.takeRightWhile=Nv,Ce.takeWhile=N9,Ce.tap=O9,Ce.throttle=G9,Ce.thru=Kf,Ce.toArray=jv,Ce.toPairs=n2,Ce.toPairsIn=Ib,Ce.toPath=rH,Ce.toPlainObject=Z9,Ce.transform=xg,Ce.unary=J_,Ce.union=$9,Ce.unionBy=$y,Ce.unionWith=Ly,Ce.uniq=n0,Ce.uniqBy=L9,Ce.uniqWith=rh,Ce.unset=Tg,Ce.unzip=$v,Ce.unzipWith=No,Ce.update=CP,Ce.updateWith=Rb,Ce.values=Xv,Ce.valuesIn=bP,Ce.without=F9,Ce.words=uw,Ce.wrap=q_,Ce.xor=Fy,Ce.xorBy=hg,Ce.xorWith=Q9,Ce.zip=Qy,Ce.zipObject=Oy,Ce.zipObjectDeep=Vy,Ce.zipWith=lf,Ce.entries=n2,Ce.entriesIn=Ib,Ce.extend=Yv,Ce.extendWith=b1,dw(Ce,Ce),Ce.add=iH,Ce.attempt=Fb,Ce.camelCase=$b,Ce.capitalize=kg,Ce.ceil=oH,Ce.clamp=Nb,Ce.clone=wb,Ce.cloneDeep=tP,Ce.cloneDeepWith=Cb,Ce.cloneWith=eP,Ce.conformsTo=j9,Ce.deburr=_g,Ce.defaultTo=UP,Ce.divide=lH,Ce.endsWith=r2,Ce.eq=vd,Ce.escape=Pg,Ce.escapeRegExp=Hg,Ce.every=gg,Ce.find=v1,Ce.findIndex=qd,Ce.findKey=J9,Ce.findLast=zy,Ce.findLastIndex=X0,Ce.findLastKey=Jy,Ce.floor=sH,Ce.forEach=m1,Ce.forEachRight=ah,Ce.forIn=Bg,Ce.forInRight=kb,Ce.forOwn=qy,Ce.forOwnRight=_b,Ce.get=q9,Ce.gt=nP,Ce.gte=rP,Ce.has=e2,Ce.hasIn=Wv,Ce.head=K0,Ce.identity=cf,Ce.includes=Uv,Ce.indexOf=dd,Ce.inRange=EP,Ce.invoke=t2,Ce.isArguments=y1,Ce.isArray=Fr,Ce.isArrayBuffer=aP,Ce.isArrayLike=Ps,Ce.isArrayLikeObject=Al,Ce.isBoolean=Cg,Ce.isBuffer=a0,Ce.isDate=iP,Ce.isElement=oP,Ce.isEmpty=bb,Ce.isEqual=lP,Ce.isEqualWith=Yy,Ce.isError=ih,Ce.isFinite=Y9,Ce.isFunction=i0,Ce.isInteger=bg,Ce.isLength=Eg,Ce.isMap=W9,Ce.isMatch=Eb,Ce.isMatchWith=Sb,Ce.isNaN=oh,Ce.isNative=sP,Ce.isNil=cP,Ce.isNull=uP,Ce.isNumber=Gv,Ce.isObject=Zo,Ce.isObjectLike=dl,Ce.isPlainObject=w1,Ce.isRegExp=Wy,Ce.isSafeInteger=fP,Ce.isSet=X9,Ce.isString=Xy,Ce.isSymbol=Ba,Ce.isTypedArray=lh,Ce.isUndefined=Ky,Ce.isWeakMap=Sg,Ce.isWeakSet=Bb,Ce.join=of,Ce.kebabCase=BP,Ce.last=Eu,Ce.lastIndexOf=f1,Ce.lowerCase=rw,Ce.lowerFirst=aw,Ce.lt=xb,Ce.lte=K9,Ce.max=uH,Ce.maxBy=cH,Ce.mean=fH,Ce.meanBy=AH,Ce.min=dH,Ce.minBy=pH,Ce.stubArray=vw,Ce.stubFalse=mw,Ce.stubObject=eH,Ce.stubString=tH,Ce.stubTrue=nH,Ce.multiply=hH,Ce.nth=Iv,Ce.noConflict=XP,Ce.noop=pw,Ce.now=He,Ce.pad=xP,Ce.padEnd=TP,Ce.padStart=iK,Ce.parseInt=kP,Ce.random=SP,Ce.reduce=jy,Ce.reduceRight=zv,Ce.repeat=_P,Ce.replace=PP,Ce.result=ew,Ce.round=vH,Ce.runInContext=je,Ce.sample=h,Ce.size=z,Ce.snakeCase=HP,Ce.some=ee,Ce.sortedIndex=Ag,Ce.sortedIndexBy=dg,Ce.sortedIndexOf=NA,Ce.sortedLastIndex=nh,Ce.sortedLastIndexBy=pg,Ce.sortedLastIndexOf=$A,Ce.startCase=MP,Ce.startsWith=iw,Ce.subtract=mH,Ce.sum=gH,Ce.sumBy=Kv,Ce.template=IP,Ce.times=Ob,Ce.toFinite=tp,Ce.toInteger=Ir,Ce.toLength=C1,Ce.toLower=RP,Ce.toNumber=LA,Ce.toSafeInteger=AP,Ce.toString=hi,Ce.toUpper=ow,Ce.trim=NP,Ce.trimEnd=lw,Ce.trimStart=Lb,Ce.truncate=$P,Ce.unescape=LP,Ce.uniqueId=aH,Ce.upperCase=FP,Ce.upperFirst=sw,Ce.each=m1,Ce.eachRight=ah,Ce.first=K0,dw(Ce,function(){var y={};return Ea(Ce,function(B,N){ta.call(Ce.prototype,N)||(y[N]=B)}),y}(),{chain:!1}),Ce.VERSION=r,Ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(y){Ce[y].placeholder=Ce}),Ar(["drop","take"],function(y,B){rr.prototype[y]=function(N){N=N===n?1:Za(Ir(N),0);var te=this.__filtered__&&!B?new rr(this):this.clone();return te.__filtered__?te.__takeCount__=Gi(N,te.__takeCount__):te.__views__.push({size:Gi(N,pe),type:y+(te.__dir__<0?"Right":"")}),te},rr.prototype[y+"Right"]=function(N){return this.reverse()[y](N).reverse()}}),Ar(["filter","map","takeWhile"],function(y,B){var N=B+1,te=N==re||N==ie;rr.prototype[y]=function(he){var xe=this.clone();return xe.__iteratees__.push({iteratee:jn(he,3),type:N}),xe.__filtered__=xe.__filtered__||te,xe}}),Ar(["head","last"],function(y,B){var N="take"+(B?"Right":"");rr.prototype[y]=function(){return this[N](1).value()[0]}}),Ar(["initial","tail"],function(y,B){var N="drop"+(B?"":"Right");rr.prototype[y]=function(){return this.__filtered__?new rr(this):this[N](1)}}),rr.prototype.compact=function(){return this.filter(cf)},rr.prototype.find=function(y){return this.filter(y).head()},rr.prototype.findLast=function(y){return this.reverse().find(y)},rr.prototype.invokeMap=gr(function(y,B){return typeof y=="function"?new rr(this):this.map(function(N){return sl(N,y,B)})}),rr.prototype.reject=function(y){return this.filter(Ot(jn(y)))},rr.prototype.slice=function(y,B){y=Ir(y);var N=this;return N.__filtered__&&(y>0||B<0)?new rr(N):(y<0?N=N.takeRight(-y):y&&(N=N.drop(y)),B!==n&&(B=Ir(B),N=B<0?N.dropRight(-B):N.take(B-y)),N)},rr.prototype.takeRightWhile=function(y){return this.reverse().takeWhile(y).reverse()},rr.prototype.toArray=function(){return this.take(pe)},Ea(rr.prototype,function(y,B){var N=/^(?:filter|find|map|reject)|While$/.test(B),te=/^(?:head|last)$/.test(B),he=Ce[te?"take"+(B=="last"?"Right":""):B],xe=te||/^find/.test(B);he&&(Ce.prototype[B]=function(){var Ie=this.__wrapped__,Le=te?[1]:arguments,Ze=Ie instanceof rr,xt=Le[0],St=Ze||Fr(Ie),Dt=function(da){var Ra=he.apply(Ce,rl([da],Le));return te&&Wt?Ra[0]:Ra};St&&N&&typeof xt=="function"&&xt.length!=1&&(Ze=St=!1);var Wt=this.__chain__,bn=!!this.__actions__.length,qn=xe&&!Wt,jr=Ze&&!bn;if(!xe&&St){Ie=jr?Ie:new rr(this);var lr=y.apply(Ie,Le);return lr.__actions__.push({func:Kf,args:[Dt],thisArg:n}),new lo(lr,Wt)}return qn&&jr?y.apply(this,Le):(lr=this.thru(Dt),qn?te?lr.value()[0]:lr.value():lr)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(y){var B=ns[y],N=/^(?:push|sort|unshift)$/.test(y)?"tap":"thru",te=/^(?:pop|shift)$/.test(y);Ce.prototype[y]=function(){var he=arguments;if(te&&!this.__chain__){var xe=this.value();return B.apply(Fr(xe)?xe:[],he)}return this[N](function(Ie){return B.apply(Fr(Ie)?Ie:[],he)})}}),Ea(rr.prototype,function(y,B){var N=Ce[B];if(N){var te=N.name+"";ta.call(Mf,te)||(Mf[te]=[]),Mf[te].push({name:B,func:N})}}),Mf[Ke(n,k).name]=[{name:"wrapper",func:n}],rr.prototype.clone=En,rr.prototype.reverse=Vs,rr.prototype.value=Ga,Ce.prototype.at=Fv,Ce.prototype.chain=q0,Ce.prototype.commit=Qv,Ce.prototype.next=Ov,Ce.prototype.plant=h1,Ce.prototype.reverse=vg,Ce.prototype.toJSON=Ce.prototype.valueOf=Ce.prototype.value=Uy,Ce.prototype.first=Ce.prototype.head,Pl&&(Ce.prototype[Pl]=p1),Ce},sc=Vd();Me?((Me.exports=sc)._=sc,fe._=sc):ca._=sc}).call(k2)}(A4,A4.exports);var Cee=A4.exports;const pr=N1(Cee);var zl=class r4{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return yh(this)}static fromAxisSpec(t){return new r4({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>r4.fromAxisSpec(n))}copy(){return new r4({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 r4(t)}},t3=class cq{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return yh(this)}static fromPojo(t){return new cq(t)}};function Er(e){return e!==null&&e.kind==="column"}function n3(e){return e!==null&&e.kind==="axis"}function Pn(e){const t=JSON.parse(e);if(t.kind==="column")return t3.fromPojo(t);if(t.kind==="axis")return zl.fromPojo(t);throw Error("wrong column or axis object")}var bee="pl7.app/axisNature",Eee="pl7.app/label",lI="pl7.app/isLabel",See="pl7.app/columnAsAxis/name",Bee="pl7.app/columnAsAxis/domain",j2="pl7.app/isSubset",xee="pl7.app/min",Tee="pl7.app/max";async function sI(e,t,n){if(n){const r=await e.pFrameProvider.getTableOuterJoin([t,n],[]),a=r.columnsData[t.toCanonicalString()],i=r.columnsData[n.toCanonicalString()];return a.reduce((l,u,c)=>(l[String(u)]=String(i[c]),l),{})}return null}async function uI(e,t,n,r){if(r){const{data:a,axesData:i}=await e.pFrameProvider.getSingleColumnData(r);return i[t.toCanonicalString()].reduce((u,c,f)=>(u[String(c)]=String(a[f]),u),{})}return null}function pm(e){return e==="String"||e==="Int"}async function kee(e,t,n,r){var a,i;const l=Pn(t);if(Er(l)){const u=await e.pFrameProvider.getColumnSpecById(l);if(!u)return;const c=await Ji(e,t,[]),f={kind:"column",name:u.name,label:n??await mi(e,t,[]),valueLabels:await sI(e,l,c),uniqueValues:pm(u.valueType)?await e.pFrameProvider.getColumnUniqueValues(l):[],type:u.valueType,annotations:u.annotations,isSubsetFilter:((a=u.annotations)==null?void 0:a[j2])==="true"};r.set(l.toCanonicalString(),f);for(const d of u.axesSpec){const p=zl.fromAxisSpec(d),g=p.toCanonicalString(),C=await Ji(e,g,[t]),E={kind:"axis",name:d.name,label:n??await mi(e,g,[t]),valueLabels:await uI(e,p,l,C),uniqueValues:pm(d.type)?await e.pFrameProvider.getAxisUniqueValues(p,[l]):[],type:d.type,mustBeConsumed:AI(d),dividable:!1,spec:d,annotations:d.annotations,isSubsetFilter:((i=d.annotations)==null?void 0:i[j2])==="true"};r.set(g,E)}}}function cI(e){const t=Pn(e),{name:n,type:r}=t;return Er(t)?{kind:"column",name:"",label:" ",uniqueValues:[],valueLabels:null,type:t.type,annotations:void 0,isSubsetFilter:!1}:{kind:"axis",name:"",label:" ",uniqueValues:[],valueLabels:null,type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1,annotations:void 0,isSubsetFilter:!1}}function d4(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function _ee(e){const{selectedSource:t,type:n,selectedFilterRange:r,selectedFilterValue:a}=e,i=Pn(t);if(!i)throw Error("Empty source selected");return n==="range"?[{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"LessOrEqual",reference:r==null?void 0:r.max}},{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"GreaterOrEqual",reference:r==null?void 0:r.min}}]:n==="subset"?[{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Not",operand:{operator:"IsNA"}}}]:[{type:"bySingleColumnV2",column:n3(i)?{type:"axis",id:i.toPFrameId()}:{type:"column",id:i.name},predicate:{operator:"Equal",reference:i.type==="String"?String(a):Number(a)}}]}function r3(e){const t=[];for(const n of e)t.push(..._ee(n));return t}function iS(e){var t,n,r,a;if("kind"in e&&e.kind==="PColumn"){const u=(n=e.name)!=null?n:(t=e.annotations)==null?void 0:t[See],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[Bee];return yh({name:u,domain:c})}const i=e.name,l=e.domain;return yh({name:i,domain:l})}async function fI(e,t,n){var r;for(const a of n){const i=Pn(a);if(Er(i)){const l=await e.pFrameProvider.getColumnSpecById(i),u=(r=l==null?void 0:l.axesSpec)==null?void 0:r.find(c=>zl.fromAxisSpec(c).toCanonicalString()===t.toCanonicalString());if(u)return u}}return null}async function Ji(e,t,n){const r=Pn(t);async function a(f){const d=await fI(e,f,n);return d?iS(d):null}async function i(f){const d=await e.pFrameProvider.getColumnSpecById(f);return d?iS(d):null}const l=await e.pFrameProvider.getColumns([],["String"],{[lI]:"true"},!1),u=Er(r)?await i(r):await a(r),c=await Promise.all(l.map(async f=>{const d=await e.pFrameProvider.getColumnSpecById(f);return d&&d.axesSpec.length===1&&iS(d.axesSpec[0])===u})).then(f=>f.findIndex(d=>d===!0));if(c!==-1)return l[c]}async function mi(e,t,n){var r,a;const i=Pn(t),l=await Ji(e,t,n);let u;if(Er(i)?u=await e.pFrameProvider.getColumnSpecById(l??i):u=l?await e.pFrameProvider.getColumnSpecById(l):await fI(e,i,n),!u)return"";const c=(a=(r=u.annotations)==null?void 0:r[Eee])!=null?a:u.name;return e.labelsModifier(u.name,c)}function AI(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[bee])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}function p4(e){var t,n,r;const a="kind"in e&&e.kind==="PColumn"?e.valueType:e.type;return((t=e.annotations)==null?void 0:t[j2])==="true"?!0:a==="Float"||a==="Double"||a==="Long"?!!((n=e.annotations)!=null&&n[xee])&&!!((r=e.annotations)!=null&&r[Tee]):!0}var Y2=class{constructor(e,t){this.simpleComponentControllers=e,this.filterComponentControllers=t,this.ignoredOptionIdNames=[],this.dataInputs=[]}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}get producingMustBeConsumedAxesComponents(){const e=[];for(const t of Object.keys(this.simpleComponentControllers))this.simpleComponentControllers[t].producingMustBeConsumedAxes&&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,f)=>!r.find(d=>d.selectedSource===c.selectedSource)),l=r.filter(c=>!a.find(f=>f.selectedSource===c.selectedSource));let u=d4(n);return i.forEach(c=>{u=this.deleteSelected(e,t,u,c)}),l.forEach(c=>{u=this.addSelected(e,u,c)}),n.components[e].selectorStates=r.map(c=>n.components[e].selectorStates.find(f=>f.selectedSource===c.selectedSource)).filter(Boolean),u}switchDividableAxis(e,t){return d4(e)}async getMustBeConsumedAxes(e,t){return Promise.resolve(new Set)}createEmptyComponentsGuide(e){return Object.fromEntries(Object.entries(e.components).map(([t,n])=>n.type!=="filter"?[t,{options:[],optionsInfo:new Map,stateConsistency:{},required:!1,multipleSelectors:!1}]:[t,{options:[],optionsInfo:new Map,multipleSelectors:!1,required:!1,stateConsistency:{},filterValueOptions:{}}]))}async getSelectedSourcesInfo(e,t,n){const r=new Map;for(const{selectorStates:a}of Object.values(t.components))for(const{selectedSource:i}of a)await kee(e,i,n[i],r);return r}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>cI(t),freeOptionsSet:new Set,readyData:!1,ready:!1}}async getLabelsMap(e,t){const n=await e.pFrameProvider.getColumnsFull(this.dataInputs.reduce((r,a)=>{const l=t.components[a].selectorStates.map(u=>Pn(u.selectedSource));return r.concat(l)},[]),[],{},!1);return wee(n,r=>r.spec).reduce((r,a)=>{const i=new t3({name:a.value.columnId,type:a.value.spec.valueType}).toCanonicalString();return r[i]=a.label,r},{})}async calculateOptions(e,t,n=[]){const r=this.createEmptyComponentsGuide(t),a=new Set;for(const g of this.dimensionsConsumerComponents)for(const{selectedSource:C}of t.components[g].selectorStates)a.add(C);const i=new Set(this.ignoredOptionIdNames),l=new Set(n),u=new Set,c=await this.getLabelsMap(e,t),f=await this.getSelectedSourcesInfo(e,t,c),d=new Map;for(const g of Object.keys(this.simpleComponentControllers)){const C=await this.simpleComponentControllers[g].getOptions(e,t,c,a,i,l);this.dataInputs.includes(g)||C.options.forEach(E=>{u.add(E.value)});for(const[E,S]of C.optionsInfo)d.set(E,S);r[g]=C}for(const g of Object.keys(this.filterComponentControllers)){const C=await this.filterComponentControllers[g].getOptionsFilter(e,t,c,a,i,l);this.dataInputs.includes(g)||C.options.forEach(E=>{u.add(E.value)});for(const[E,S]of C.optionsInfo)d.set(E,S);r[g]=C}const p=await this.getMustBeConsumedAxes(e,t);for(const g of p){const C=d.get(g);C&&C.kind==="axis"&&(C.mustBeConsumed=!0);const E=f.get(g);E&&E.kind==="axis"&&(E.mustBeConsumed=!0)}return{components:r,getSourceInfo:g=>{var C,E,S;const _=(C=Pn(g).toCanonicalString())!=null?C:g;return(S=(E=d.get(_))!=null?E:f.get(_))!=null?S:cI(g)},freeOptionsSet:u,readyData:this.readyDataInputs(t),ready:await this.readyForPlotBuilding(e,t,u,d)}}async checkStateConsistency(e,t){const n=new Map;for(const r of Object.keys(this.simpleComponentControllers))n.set(r,await this.simpleComponentControllers[r].checkStateConsistency(e,t));for(const r of Object.keys(this.filterComponentControllers))n.set(r,await this.filterComponentControllers[r].checkStateConsistency(e,t));return n}async isConsistent(e,t){const n=await this.checkStateConsistency(e,t);for(const r of n.values())if(Object.values(r).some(a=>!a))return!1;return!0}readyDataInputs(e){return this.dataInputs.every(t=>e.components[t].selectorStates.length>0)}async readyForPlotBuilding(e,t,n,r){if(!await this.isConsistent(e,t)||!this.readyDataInputs(t))return!1;let a=!1;for(const i of n){const l=r.get(i);if(l&&l.kind==="axis"&&l.mustBeConsumed){a=!0;break}}return this.requiredComponents.every(i=>t.components[i].selectorStates.length>0)&&!a}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},dI=class fq{constructor({componentName:t,allowedTypes:n,settings:r,strictlyDependsOnParents:a,dependsOn:i=[],parentComponents:l=[],annotations:u={},checkSourceBySpec:c}){this.componentName=t,this.allowedTypes=[...n],this.settings={...fq.DefaultSettings,...r},this.dependsOn=[...i],this.parentComponents=[...l],this.strictlyDependsOnParents=a??!0,this.annotations={...u},c&&(this.checkSourceBySpec=c)}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}get producingMustBeConsumedAxes(){return this.settings.hasMustForConsumingAxes}addSelected(t,n){const r=d4(t);return r.components[this.componentName].selectorStates.push(n),r}deleteSelected(t,n){const r=d4(t);return r.components[this.componentName].selectorStates=r.components[this.componentName].selectorStates.filter(a=>a.selectedSource!==n),r}async checkStateConsistency(t,n){const r=n.components[this.componentName],a=await this.getParentAxes(t,n);function i(u){const c=zl.fromAxisSpec(u);return a.has(c.toCanonicalString())}const l=await Promise.all(r.selectorStates.map(async({selectedSource:u})=>{const c=Pn(u);if(Er(c)){const f=await t.pFrameProvider.getColumnSpecById(c);return f?this.parentComponents.length===0?!0:this.strictlyDependsOnParents?f.axesSpec.every(p=>i(p)):a.size===0||f.axesSpec.some(p=>i(p)):!1}return a.has(u)}));return r.selectorStates.reduce((u,c,f)=>(u[c.selectedSource]=l[f],u),{})}async getProducingAxes(t,n){const i=n.components[this.componentName].selectorStates.map(c=>Pn(c.selectedSource)).filter(c=>Er(c)),l=new Set;return(await Promise.all(i.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{l.add(zl.fromAxisSpec(f).toCanonicalString())})}),l}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,i)=>{const l=n.components[i].selectorStates.map(u=>Pn(u.selectedSource));return a.push(...l),a},[])}async getParentAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),i=new Set;for(const l of a)if(Er(l)){const u=await t.pFrameProvider.getColumnSpecById(l);(r=u==null?void 0:u.axesSpec)==null||r.forEach(c=>{const f=zl.fromAxisSpec(c);i.add(f.toCanonicalString())})}return i}async getAllowedAxes(t,n){var r,a;const i=this.getParentSelectedSources(t,n),l=new Set,u=new Map;for(const c of i)if(Er(c)){const f=await t.pFrameProvider.getColumnSpecById(c);for(const d of(r=f==null?void 0:f.axesSpec)!=null?r:[]){const p=zl.fromAxisSpec(d),g=this.allowedTypes.includes(d.type),C=Object.entries(this.annotations).every(([E,S])=>{var _;return((_=d.annotations)==null?void 0:_[E])===S});if(this.checkSourceBySpec?this.checkSourceBySpec(d):g&&C){l.add(p.toCanonicalString());const E=await Ji(t,p.toCanonicalString(),[c.toCanonicalString()]);u.set(p.toCanonicalString(),{kind:"axis",name:d.name,label:await mi(t,p.toCanonicalString(),[c.toCanonicalString()]),valueLabels:pm(d.type)?await uI(t,p,c,E):null,uniqueValues:pm(d.type)?await t.pFrameProvider.getAxisUniqueValues(p,[c]):[],type:d.type,mustBeConsumed:AI(d),dividable:!1,spec:d,annotations:d.annotations,isSubsetFilter:((a=d.annotations)==null?void 0:a[j2])==="true"})}}}return{axes:l,optionsInfo:u}}async getOptions(t,n,r,a,i=new Set,l=new Set){var u,c,f;const d=this.settings.multipleSelectors,p=this.settings.required,g=await this.checkStateConsistency(t,n);if(this.strictlyDependsOnParents&&this.parentComponents.some(D=>n.components[D].selectorStates.length===0))return{multipleSelectors:d,required:p,stateConsistency:g,options:[],optionsInfo:new Map};const C=this.getParentSelectedSources(t,n),E=(await t.pFrameProvider.getColumns(C,this.allowedTypes,this.annotations,this.strictlyDependsOnParents)).filter(D=>!a.has(D.toCanonicalString())),{axes:S,optionsInfo:_}=await this.getAllowedAxes(t,n);if(this.dependsOn.length&&this.dependsOn.some(D=>n.components[D].selectorStates.length===0))return{multipleSelectors:d,required:p,stateConsistency:g,options:[],optionsInfo:new Map};const k=n.components[this.componentName],H=[];if(this.settings.axesAllowed)for(const D of S){const V=Pn(D),F=_.get(V.toCanonicalString()),O=!this.settings.homogeneous||!(F!=null&&F.mustBeConsumed),L=!a.has(D),j=i.has(V.name)||l.has(V.toCanonicalString()),G=k.selectorStates.some(W=>W.selectedSource===D);O&&L&&!j&&!G&&H.push({value:D})}if(this.settings.columnsAllowed)for(const D of E){const V=D.toCanonicalString(),F=Pn(V),O=await t.pFrameProvider.getColumnSpecById(F);if(((u=O==null?void 0:O.annotations)==null?void 0:u[lI])==="true"||this.checkSourceBySpec&&O&&!this.checkSourceBySpec(O))continue;if(O){const W=await Ji(t,D.toCanonicalString(),[]),J=pm(O.valueType)?await t.pFrameProvider.getColumnUniqueValues(D):[],X=(c=r[V])!=null?c:await mi(t,D.toCanonicalString(),[]),q=pm(O.valueType)?await sI(t,D,W):null,re={kind:"column",name:O.name,label:X,valueLabels:q,uniqueValues:J,type:O.valueType,annotations:O.annotations,isSubsetFilter:((f=O.annotations)==null?void 0:f[j2])==="true"};_.set(F.toCanonicalString(),re)}const j=i.has(F.name)||l.has(F.toCanonicalString()),G=n.components[this.componentName].selectorStates.some(W=>W.selectedSource===V);!j&&!G&&H.push({value:V})}return{multipleSelectors:d,required:p,stateConsistency:g,options:H,optionsInfo:_}}async getOptionsFilter(t,n,r,a,i=new Set,l=new Set){const u=n.components[this.componentName];if(u.type!=="filter")throw Error("Trying to take filter options for simple component");const c=await this.getOptions(t,n,r,a,i,l),d=this.getParentSelectedSources(t,n).filter(Er);function p(E){const S=Pn(E);return pm(S.type)?Er(S)?t.pFrameProvider.getColumnUniqueValues(S):t.pFrameProvider.getAxisUniqueValues(S,d):Promise.resolve([])}const g=await Promise.all(c.options.map(E=>p(E.value))),C=await Promise.all(u.selectorStates.map(E=>p(E.selectedSource)));return{...c,filterValueOptions:{...c.options.reduce((E,{value:S},_)=>(E[S]=g[_],E),{}),...u.selectorStates.reduce((E,S,_)=>(E[S.selectedSource]=C[_],E),{})}}}};dI.DefaultSettings={multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,dimensionConsumer:!1,hasMustForConsumingAxes:!1};var Qr=dI,Pee={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:{}},Hee=class extends Y2{constructor(){super({y:new Qr({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{}}),primaryGrouping:new Qr({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new Qr({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Float"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["y"]}async createDataByColumns(e,t){var n;const r=t.components.y.selectorStates[0].selectedSource,a=Pn(r);if(!r||!Er(a))throw Error("Y column is not valid");const i={type:"columns",id:(n=yh({data:r,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?n:"",values:{}},l=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),u=[...t.components.filters.selectorStates.map(g=>Pn(g.selectedSource)),...t.components.tabBy.selectorStates.map(g=>Pn(g.selectedSource))].filter(Er),c=[r],f=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],d=[];for(const g of f)for(const{selectedSource:C}of g.selectorStates){d.push(Pn(C));const E=await Ji(e,C,c);E&&d.push(E)}const p=await e.pFrameProvider.getTableOuterJoin([a,...u],d,l);return d.forEach(g=>{const C=g.toCanonicalString();i.values[C]=Er(g)?p.columnsData[C]:p.axesData[C]}),i.values[a.toCanonicalString()]=p.columnsData[a.toCanonicalString()],i}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,i=Pn(a);if(!a||!Er(i))throw Error("Y column is not valid");const l={type:"column",value:a,label:await mi(e,a,[])},u=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:p}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:p,label:await mi(e,p,u),valueLabels:(n=await Ji(e,p,u))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:p}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:p,label:await mi(e,p,u),valueLabels:(r=await Ji(e,p,u))==null?void 0:r.toCanonicalString()}}}const d=await Promise.all(t.components.facetBy.selectorStates.map(async p=>{var g,C;return{type:"column",value:(C=(g=await Ji(e,p.selectedSource,u))==null?void 0:g.toCanonicalString())!=null?C:p.selectedSource,label:await mi(e,p.selectedSource,u)}}));return{type:"discrete",y:l,primaryGrouping:c,secondaryGrouping:f,facetBy:d}}},Dee={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:[]},annotations:{type:"simple",selectorStates:[]}},dividedAxes:{}};function h4(e,t){if(!t.length)return[];const n=t.map(i=>Pn(i)),r=Object.values(e.columnsData)[0].length,a=[];for(let i=0;i<r;i++){const l=n.map(u=>{const c=u.toCanonicalString();return Er(u)?e.columnsData[c][i]:e.axesData[c][i]}).join(", ");a.push(l)}return a}var Mee=class extends Y2{constructor(){super({value:new Qr({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new Qr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new Qr({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["x"]}),y:new Qr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),yGroupBy:new Qr({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"]}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotations:new Qr({componentName:"annotations",allowedTypes:["String","Int"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["x","y"]})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}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(Pn(n));return r?new Set(r.axesSpec.map(a=>zl.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=Pn(a);if(!Er(i))throw Error("Value column is not valid");const l={type:"columns",id:(r=yh({data:a,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?r:"",values:{}},u=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),c=[...t.components.filters.selectorStates.map(L=>Pn(L.selectedSource)),...t.components.tabBy.selectorStates.map(L=>Pn(L.selectedSource))].filter(Er),f=[a],d=[t.components.facetBy,t.components.annotations,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy],p=[];for(const L of d)for(const{selectedSource:j}of L.selectorStates){p.push(Pn(j));const G=await Ji(e,j,f);G&&p.push(G)}const g=await e.pFrameProvider.getTableOuterJoin([i,...c],p,u);p.forEach(L=>{const j=L.toCanonicalString();l.values[j]=Er(L)?g.columnsData[j]:g.axesData[j]}),l.values[i.toCanonicalString()]=g.columnsData[i.toCanonicalString()];const C=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(L=>L.selectedSource),E=C.join(", ");l.values[E]=h4(g,C);const S=t.components.x.selectorStates.map(L=>L.selectedSource),_=await Promise.all(S.map(async L=>{var j,G;return(G=(j=await Ji(e,L,f))==null?void 0:j.toCanonicalString())!=null?G:L})),k=S.join(", ");l.values[k]=h4(g,_);const H=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(L=>L.selectedSource),D=H.join(", ");l.values[D]=h4(g,H);const V=t.components.y.selectorStates.map(L=>L.selectedSource),F=V.join(", "),O=await Promise.all(V.map(async L=>{var j,G;return(G=(j=await Ji(e,L,f))==null?void 0:j.toCanonicalString())!=null?G:L}));return l.values[F]=h4(g,O),l}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=Pn(a);if(!Er(i))throw Error("Value column is not valid");const l=[a],u={type:"column",value:a,label:await mi(e,a,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:V})=>Pn(V)).filter(V=>n3(V)).map(V=>V.toCanonicalString()),f=c.join(", "),d=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:V})=>Pn(V)).filter(V=>n3(V)).map(V=>V.toCanonicalString()),p=d.join(", "),g=await Promise.all(t.components.facetBy.selectorStates.map(async V=>{var F,O;return{type:"column",value:(O=(F=await Ji(e,V.selectedSource,l))==null?void 0:F.toCanonicalString())!=null?O:V.selectedSource}})),C=await Promise.all(t.components.xGroupBy.selectorStates.map(async V=>({type:"column",label:await mi(e,V.selectedSource,l),value:V.selectedSource}))),E=await Promise.all(t.components.yGroupBy.selectorStates.map(async V=>({type:"column",label:await mi(e,V.selectedSource,l),value:V.selectedSource}))),S=await Promise.all(t.components.annotations.selectorStates.map(async V=>{var F,O;const L=V.selectedSource,j=Pn(L),G=Er(j)?(F=(await e.pFrameProvider.getColumnAxesIds(j)).map(J=>J.toCanonicalString()))!=null?F:[]:[L];let W="";if(G.every(J=>c.findIndex(X=>X===J)!==-1))W="x";else if(G.every(J=>d.findIndex(X=>X===J)!==-1))W="y";else throw Error("Invalid annotation axes");return{axis:W,valueColumn:{type:"column",value:L,label:await mi(e,L,l)},type:Er(j)&&((O=await e.pFrameProvider.getColumnSpecById(j))==null?void 0:O.valueType)==="Double"?"continuous":"discrete"}})),_=t.components.x.selectorStates.map(({selectedSource:V})=>V).join(", "),k=t.components.y.selectorStates.map(({selectedSource:V})=>V).join(", "),H=(await Promise.all(t.components.x.selectorStates.map(V=>mi(e,V.selectedSource,l)))).join(", "),D=(await Promise.all(t.components.y.selectorStates.map(V=>mi(e,V.selectedSource,l)))).join(", ");return{type:"heatmap",valueColumn:u,valueType:((r=await e.pFrameProvider.getColumnSpecById(i))==null?void 0:r.valueType)==="String"?"discrete":"continuous",xColumn:{type:"column",value:f,label:H,valueLabels:_},yColumn:{type:"column",value:p,label:D,valueLabels:k},facetBy:g,xGroupBy:C,yGroupBy:E,annotations:S}}},Iee={type:"scatterplot",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]},label:{type:"simple",selectorStates:[]},tooltipContent:{type:"simple",selectorStates:[]}},dividedAxes:{}},Ree=class extends Y2{constructor(){super({x:new Qr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Qr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Qr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}}),tooltipContent:new Qr({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 Qr({componentName:"label",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,columnsAllowed:!0,multipleSelectors:!1}})},{filters:new Qr({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:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),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(Pn(n)),i=await e.pFrameProvider.getColumnSpecById(Pn(r));if(!a||!i)return new Set;const l=a.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),u=i.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),c=l.filter(d=>!u.some(p=>p===d)),f=u.filter(d=>!l.some(p=>p===d));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const u=Pn(i),c=Pn(l),f={type:"columns",id:(a=yh({data:[i,l],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),p=[...t.components.filters.selectorStates.map(k=>Pn(k.selectedSource)),...t.components.tabBy.selectorStates.map(k=>Pn(k.selectedSource))].filter(Er),g=[u,c].filter(Er).map(k=>k.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const C=[u,c,...p],E=[],S=[t.components.grouping,t.components.tooltipContent,t.components.facetBy,t.components.label];for(const k of S)for(const{selectedSource:H}of k.selectorStates){E.push(Pn(H));const D=await Ji(e,H,g);D&&E.push(D)}const _=await e.pFrameProvider.getTableOuterJoin(C,E,d,!1);return[...C,...E].forEach(k=>{const H=k.toCanonicalString();f.values[H]=Er(k)?_.columnsData[H]:_.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((k,H)=>H),f}async createChartSettings(e,t){var n,r,a,i;const l=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,u=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,c=l?Pn(l):null,f=u?Pn(u):null;if(!l||!u||!c||!f||!Er(c)&&!Er(f))throw Error("Empty or invalid required data");const d=[c,f].filter(Er).map(H=>H.toCanonicalString()),p={type:"column",value:l,label:await mi(e,l,d)},g={type:"column",value:u,label:await mi(e,u,d)},C={type:"column",value:"key"},E=await Promise.all(t.components.facetBy.selectorStates.map(async H=>{var D,V;return{type:"column",value:(V=(D=await Ji(e,H.selectedSource,d))==null?void 0:D.toCanonicalString())!=null?V:H.selectedSource}})),S=await Promise.all(t.components.grouping.selectorStates.map(async H=>{var D,V;const F=H.selectedSource;return{type:"column",label:await mi(e,F,d)||F,value:F,valueLabels:(V=(D=await Ji(e,F,d))==null?void 0:D.toCanonicalString())!=null?V:F}})),_=await Promise.all(t.components.tooltipContent.selectorStates.map(async H=>{var D,V;const F=H.selectedSource;return{type:"column",label:await mi(e,F,d)||F,value:F,valueLabels:(V=(D=await Ji(e,F,d))==null?void 0:D.toCanonicalString())!=null?V:F}}));let k;if(t.components.label.selectorStates.length){const H=t.components.label.selectorStates[0].selectedSource;k={type:"column",value:H,label:await mi(e,H,d),valueLabels:(i=(a=await Ji(e,H,d))==null?void 0:a.toCanonicalString())!=null?i:H}}return{type:"scatterplot",x:p,y:g,keyColumn:C,facetBy:E,grouping:S,label:k,tooltips:{show:!0,content:_}}}},Nee={type:"scatterplot-umap",components:{x:{type:"simple",selectorStates:[]},y:{type:"simple",selectorStates:[]},filters:{type:"filter",selectorStates:[]},tabBy:{type:"filter",selectorStates:[]},facetBy:{type:"simple",selectorStates:[]},grouping:{type:"simple",selectorStates:[]}},dividedAxes:{}},$ee=class extends Y2{constructor(){super({x:new Qr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Qr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Qr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long","Double","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},checkSourceBySpec:p4}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),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(Pn(n)),i=await e.pFrameProvider.getColumnSpecById(Pn(r));if(!a||!i)return new Set;const l=a.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),u=i.axesSpec.map(d=>zl.fromAxisSpec(d).toCanonicalString()),c=l.filter(d=>!u.some(p=>p===d)),f=u.filter(d=>!l.some(p=>p===d));return new Set([...c,...f])}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource;if(!i||!l)throw Error("X or Y column is not valid");const u=Pn(i),c=Pn(l);if(!u||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=yh({data:[i,l],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),p=[...t.components.filters.selectorStates.map(k=>Pn(k.selectedSource)),...t.components.tabBy.selectorStates.map(k=>Pn(k.selectedSource))].filter(Er),g=[u,c].filter(Er).map(k=>k.toCanonicalString());if(g.length===0)throw Error("One of X and Y should be a column");const C=[u,c,...p],E=[],S=[t.components.grouping,t.components.facetBy];for(const k of S)for(const{selectedSource:H}of k.selectorStates){E.push(Pn(H));const D=await Ji(e,H,g);D&&E.push(D)}const _=await e.pFrameProvider.getTableOuterJoin(C,E,d,!1);return[...C,...E].forEach(k=>{const H=k.toCanonicalString();f.values[H]=Er(k)?_.columnsData[H]:_.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((k,H)=>H),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,i=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,l=a?Pn(a):null,u=i?Pn(i):null;if(!a||!i||!l||!u||!Er(l)&&!Er(u))throw Error("Empty or invalid required data");const c=[l,u].filter(Er).map(E=>E.toCanonicalString()),f={type:"column",value:a,label:await mi(e,a,c)},d={type:"column",value:i,label:await mi(e,i,c)},p={type:"column",value:"key"},g=await Promise.all(t.components.facetBy.selectorStates.map(async E=>{var S,_;return{type:"column",value:(_=(S=await Ji(e,E.selectedSource,c))==null?void 0:S.toCanonicalString())!=null?_:E.selectedSource}})),C=await Promise.all(t.components.grouping.selectorStates.map(async E=>{var S,_;const k=E.selectedSource;return{type:"column",label:await mi(e,k,c)||k,value:k,valueLabels:(_=(S=await Ji(e,k,c))==null?void 0:S.toCanonicalString())!=null?_:k}}));return{type:"scatterplot-umap",x:f,y:d,keyColumn:p,facetBy:g,grouping:C}}},oS="pl7.app/dendrogram/nodeId",lS="id",Lee={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:{}},Fee=class extends Y2{constructor(){super({value:new Qr({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{columnsAllowed:!0,required:!0,dimensionConsumer:!0}}),height:new Qr({componentName:"height",allowedTypes:["Int","Long","Double","Float"],annotations:{"pl7.app/dendrogram/isDistance":"true"},parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1,dimensionConsumer:!0}}),labels:new Qr({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1}}),tableContent:new Qr({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),nodeShape:new Qr({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeSize:new Qr({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeColor:new Qr({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),lineColor:new Qr({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1}}),heatmapForSequence:new Qr({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0}}),heatmapAnnotation:new Qr({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,hasMustForConsumingAxes:!0}}),facetBy:new Qr({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapAxis:new Qr({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapGroup:new Qr({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}})},{filters:new Qr({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tabBy:new Qr({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}})}),this.ignoredOptionIdNames=[oS]}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=Pn(a);if(!a||!Er(i))throw Error("Value column is not valid");const l=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),u=[...t.components.filters.selectorStates.map(_=>Pn(_.selectedSource)),...t.components.tabBy.selectorStates.map(_=>Pn(_.selectedSource))].filter(Er),c=[a],f=[],d=[],p=[t.components.value],g=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],C={};for(const _ of p)for(const{selectedSource:k}of _.selectorStates){const H=await Ji(e,k,c),D=H??Pn(k);C[D.toCanonicalString()]=k,f.push(D)}for(const _ of g)for(const{selectedSource:k}of _.selectorStates){const H=await Ji(e,k,c),D=H??Pn(k);C[k]=D.toCanonicalString(),d.push(D)}const E=await e.pFrameProvider.getTableOuterJoin([...f,...u],d,l,!1);for(const _ of[...f,...d]){const k=_.toCanonicalString(),H=C[_.toCanonicalString()];r[H]={data:Er(_)?E.columnsData[k]:E.axesData[k],spec:Er(_)?E.columnSpecs[k]:E.axesSpecs[k],label:await mi(e,H,c)}}const S=Object.keys(E.axesData).find(_=>{var k;return((k=Pn(_))==null?void 0:k.name)===oS});return S?r[lS]={data:E.axesData[S],spec:{kind:"PColumn",valueType:"Int",name:"Node id"},label:"Node id"}:console.warn("Missed node id axis in data column"),r}async createDataByColumns(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,u=Pn(i),c=l?Pn(l):null;if(!i||!Er(u))throw Error("Value column is not valid");const f={type:"columns",id:(a=yh({data:i,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=r3([...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]),p=[...t.components.filters.selectorStates.map(D=>Pn(D.selectedSource)),...t.components.tabBy.selectorStates.map(D=>Pn(D.selectedSource))].filter(Er),g=[u,c].filter(Er).map(D=>D.toCanonicalString()),C=[],E=[],S=[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],_=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const D of S)for(const{selectedSource:V}of D.selectorStates){C.push(Pn(V));const F=await Ji(e,V,g);F&&C.push(F)}for(const D of _)for(const{selectedSource:V}of D.selectorStates){E.push(Pn(V));const F=await Ji(e,V,g);F&&E.push(F)}const k=await e.pFrameProvider.getTableOuterJoin([...C,...p],E,d,!1);[...C,...E].forEach(D=>{const V=D.toCanonicalString(),F=Er(D)?k.columnsData[V]:k.axesData[V];f.values[V]=[],f.values[V]=F});const H=Object.keys(k.axesData).find(D=>{var V;return((V=Pn(D))==null?void 0:V.name)===oS});return H?f.values[lS]=k.axesData[H]:console.warn("Missed node id axis in data column"),f}async createChartSettings(e,t){var n,r,a;const i=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,l=Pn(i);if(!i||!Er(l))throw Error("Data column is not valid");const u=[i],c={type:"column",value:lS},f={type:"column",value:i},d=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,p=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,g={};if(t.components.nodeColor.selectorStates.length){const _=t.components.nodeColor.selectorStates[0].selectedSource;g.nodeColor={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}if(t.components.nodeShape.selectorStates.length){const _=t.components.nodeShape.selectorStates[0].selectedSource;g.nodeShape={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}if(t.components.nodeSize.selectorStates.length){const _=t.components.nodeSize.selectorStates[0].selectedSource;g.nodeSize={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}if(t.components.lineColor.selectorStates.length){const _=t.components.lineColor.selectorStates[0].selectedSource;g.lineColor={columnName:{type:"column",value:_,label:await mi(e,_,u)}}}let C,E,S;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const _=t.components.heatmapAnnotation.selectorStates[0].selectedSource;C={type:"column",value:_,label:await mi(e,_,[]),valueLabels:(r=await Ji(e,_,[]))==null?void 0:r.toCanonicalString()};const k=t.components.heatmapAxis.selectorStates[0].selectedSource;E={type:"column",value:k,label:await mi(e,k,[_]),valueLabels:(a=await Ji(e,k,[_]))==null?void 0:a.toCanonicalString()},S=await Promise.all(t.components.heatmapGroup.selectorStates.map(async H=>{var D;return{type:"column",value:H.selectedSource,label:await mi(e,H.selectedSource,[_]),valueLabels:(D=await Ji(e,H.selectedSource,[_]))==null?void 0:D.toCanonicalString()}}))}else if(t.components.heatmapForSequence.selectorStates.length){const _=t.components.heatmapForSequence.selectorStates[0].selectedSource;C={type:"column",value:_,label:await mi(e,_,[])}}return{type:"dendro",id:c,parentId:f,height:d,labels:p,aes:g,heatmapAnnotation:C,heatmapAxis:E,heatmapGroup:S}}};function a3(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 V1=!1,H9t=100,Qee=class{constructor(e,t){this.pframeHandle=e,this.pframeDriver=t}async isColumnExisted(e){return!!await this.getColumnSpecById(e)}async getSingleColumnData(e,t=[]){if(!await this.isColumnExisted(e))return{axesData:[],data:[]};try{const n=Date.now(),r=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),a=r.filter(l=>l.spec.type==="axis"),i=r.filter(l=>l.spec.type==="column");return{axesData:a.reduce((l,u)=>{const c=zl.fromAxisSpec(u.spec.spec);return l[c.toCanonicalString()]=a3(c.type,u.data),l},{}),data:i.length?a3(e.type,i[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[]){if(!await this.isColumnExisted(e))return[];if(e.type==="Double"||e.type==="Long")debugger;const n={columnId:e.name,filters:t,limit:1e3};try{const r=Date.now(),a=await this.pframeDriver.getUniqueValues(this.pframeHandle,n);return a3(e.type,a.values).map(String)}catch(r){throw console.error("PFrame: getUniqueValues for column error"),r}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(Er),a=await Promise.all(r.map(u=>this.getColumnSpecById(u))),i=e.toCanonicalString(),l=r.filter((u,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(d=>zl.fromAxisSpec(d).toCanonicalString()===i)});if(l.length===0)return[];try{const u=Date.now(),c=await Promise.all(l.map(f=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:f.name,axis:e.toPFrameId(),filters:n,limit:1e3})));return pr.uniq(pr.flatten(c.map(f=>a3(e.type,f.values).map(String))))}catch(u){throw console.error("PFrame: getUniqueValues for axis error",u),u}}async getTableOuterJoin(e,t,n=[],r=!0){const a=e.filter(Er),i=t.filter(Er),l={src:{type:"outer",primary:{type:r?"inner":"full",entries:a.map(u=>({type:"column",column:u.name}))},secondary:i.map(u=>({type:"column",column:u.name}))},filters:n,sorting:[]};try{const u=Date.now(),c=await this.pframeDriver.calculateTableData(this.pframeHandle,l),f=c.filter(p=>p.spec.type==="axis"),d=c.filter(p=>p.spec.type==="column");return{axesData:f.reduce((p,g)=>{const C=zl.fromAxisSpec(g.spec.spec);return p[C.toCanonicalString()]=a3(C.type,g.data),p},{}),columnsData:d.reduce((p,g)=>{const C=g.spec.spec,E=new t3({name:g.spec.id,type:C.valueType});return p[E.toCanonicalString()]=a3(E.type,g.data),p},{}),columnSpecs:d.reduce((p,g)=>{const C=g.spec.spec,E=new t3({name:g.spec.id,type:C.valueType});return p[E.toCanonicalString()]=C,p},{}),axesSpecs:f.reduce((p,g)=>{const C=g.spec.spec,E=zl.fromAxisSpec(C);return p[E.toCanonicalString()]=C,p},{})}}catch(u){throw console.error("PFrame: table outer join error"),console.info("error with request: ",l),u}}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=>zl.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(Er(a)){const i=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...i.map(l=>zl.fromAxisSpec(l).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumnsFull(e,t,n,r){try{const a={columnFilter:{type:t,annotationValue:n},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:r},i=Date.now(),l=await this.pframeDriver.findColumns(this.pframeHandle,a),u=[];return l.hits.forEach(c=>{u.push(c)}),u}catch(a){throw console.error("PFrame: findColumns error"),a}}async getColumns(e,t,n,r){return(await this.getColumnsFull(e,t,n,r)).map(a=>new t3({name:a.columnId,type:a.spec.valueType}))}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},i=Date.now(),l=await this.pframeDriver.findColumns(this.pframeHandle,a),u=[];return l.hits.forEach(({columnId:c,spec:f})=>{u.push(new t3({name:c,type:f.valueType}))}),u.length>1&&console.warn(`More than 1 column found for ${e}}`),u.length===0?(console.warn(`No columns found for ${e}}`),null):u[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},Oee=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new Qee(e,t)}},pI={controllers:{discrete:new Hee,scatterplot:new Ree,"scatterplot-umap":new $ee,heatmap:new Mee,dendro:new Fee},initialStates:{discrete:Pee,scatterplot:Iee,"scatterplot-umap":Nee,heatmap:Dee,dendro:Lee}};function v4(e){return pI.controllers[e]}function hI(e){return pI.initialStates[e]}const Sr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Vee={},Uee={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zee(e,t){return v.openBlock(),v.createElementBlock("svg",Uee,t[0]||(t[0]=[v.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),v.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 Gee=Sr(Vee,[["render",zee]]),jee={},Yee={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wee(e,t){return v.openBlock(),v.createElementBlock("svg",Yee,t[0]||(t[0]=[v.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),v.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 Xee=Sr(jee,[["render",Wee]]),Kee={},Zee={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jee(e,t){return v.openBlock(),v.createElementBlock("svg",Zee,t[0]||(t[0]=[v.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),v.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 qee=Sr(Kee,[["render",Jee]]),ete={},tte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nte(e,t){return v.openBlock(),v.createElementBlock("svg",tte,t[0]||(t[0]=[v.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 rte=Sr(ete,[["render",nte]]),ate={},ite={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ote(e,t){return v.openBlock(),v.createElementBlock("svg",ite,t[0]||(t[0]=[v.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 lte=Sr(ate,[["render",ote]]),ste={},ute={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cte(e,t){return v.openBlock(),v.createElementBlock("svg",ute,t[0]||(t[0]=[v.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),v.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),v.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const fte=Sr(ste,[["render",cte]]),Ate={},dte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pte(e,t){return v.openBlock(),v.createElementBlock("svg",dte,t[0]||(t[0]=[v.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),v.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 hte=Sr(Ate,[["render",pte]]),vte={},mte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gte(e,t){return v.openBlock(),v.createElementBlock("svg",mte,t[0]||(t[0]=[v.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),v.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),v.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const yte=Sr(vte,[["render",gte]]),wte={},Cte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bte(e,t){return v.openBlock(),v.createElementBlock("svg",Cte,t[0]||(t[0]=[v.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 Ete=Sr(wte,[["render",bte]]),Ste={},Bte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xte(e,t){return v.openBlock(),v.createElementBlock("svg",Bte,t[0]||(t[0]=[v.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 vI=Sr(Ste,[["render",xte]]),Tte={},kte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _te(e,t){return v.openBlock(),v.createElementBlock("svg",kte,t[0]||(t[0]=[v.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 Pte=Sr(Tte,[["render",_te]]),Hte={},Dte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mte(e,t){return v.openBlock(),v.createElementBlock("svg",Dte,t[0]||(t[0]=[v.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 Ite=Sr(Hte,[["render",Mte]]),Rte={},Nte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $te(e,t){return v.openBlock(),v.createElementBlock("svg",Nte,t[0]||(t[0]=[v.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 mI=Sr(Rte,[["render",$te]]),Lte={},Fte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qte(e,t){return v.openBlock(),v.createElementBlock("svg",Fte,t[0]||(t[0]=[v.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),v.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 Ote=Sr(Lte,[["render",Qte]]),Vte={},Ute={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zte(e,t){return v.openBlock(),v.createElementBlock("svg",Ute,t[0]||(t[0]=[v.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 gI=Sr(Vte,[["render",zte]]),Gte={},jte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yte(e,t){return v.openBlock(),v.createElementBlock("svg",jte,t[0]||(t[0]=[v.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),v.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),v.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),v.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 Wte=Sr(Gte,[["render",Yte]]),Xte={},Kte={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zte(e,t){return v.openBlock(),v.createElementBlock("svg",Kte,t[0]||(t[0]=[v.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 Jte=Sr(Xte,[["render",Zte]]),qte={},ene={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tne(e,t){return v.openBlock(),v.createElementBlock("svg",ene,t[0]||(t[0]=[v.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 nne=Sr(qte,[["render",tne]]),rne={},ane={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ine(e,t){return v.openBlock(),v.createElementBlock("svg",ane,t[0]||(t[0]=[v.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 one=Sr(rne,[["render",ine]]),i3=[{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"}],W2="#FFFFFF",Gl="#110529";i3.reduce((e,t)=>(e[t.color]=t,e),{});const X2=i3.slice(0,-3).map(e=>e.color),lne=X2.filter((e,t)=>t%3===0),sne=X2.filter((e,t)=>t%3===1),une=X2.filter((e,t)=>t%3===2),cne=X2.filter((e,t)=>t%3!==2),fne=X2,Ane=["#FFF680","#53D788","#36739D","#4A005C"],dne=["#FFF680","#F77E5B","#902B83","#2B125C"],pne=["#DFFADC","#74CFD1","#635AC1","#611347"],hne=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],vne=["#FFEA80","#F07A76","#7535A4","#003752"],mne=["#FFF780","#6CEA90","#6C90F0","#942AAE"],gne=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],yne=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],wne=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],Cne=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],bne=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],yI=["light","bright","dark","paired","triadic"],Ene=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],Sne=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function sS(e){return yI.includes(e)}const Ms={...{light:{title:"Light",colors:lne},bright:{title:"Bright",colors:sne},dark:{title:"Dark",colors:une},paired:{title:"Paired",colors:cne},triadic:{title:"Triadic",colors:fne}},...{viridis:{title:"Viridis",colors:Ane},magma:{title:"Magma",colors:dne},density:{title:"Density",colors:pne},salinity:{title:"Salinity",colors:hne},sunset:{title:"Sunset",colors:vne},perceptual_rainbow:{title:"Rainbow",colors:mne}},...{spectrum:{title:"Spectrum",colors:gne},teal_red:{title:"Teal-Red",colors:yne},blue_red:{title:"Blue-Red",colors:wne},lime_rose:{title:"Lime-Rose",colors:Cne},viridis_magma:{title:"Vir-Mag",colors:bne}}},Bne="salinity",K2=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],uS="#F0F0F0",bh="21",o3=["solid","dashed","dotted","dotdash","longdash","twodash"],m4="solid",xne={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}};function l3(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Tne(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cS(e){let t,n,r;e.length!==2?(t=l3,n=(u,c)=>l3(e(u),c),r=(u,c)=>e(u)-c):(t=e===l3||e===Tne?e:kne,n=e,r=e);function a(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const p=f+d>>>1;n(u[p],c)<0?f=p+1:d=p}while(f<d)}return f}function i(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const p=f+d>>>1;n(u[p],c)<=0?f=p+1:d=p}while(f<d)}return f}function l(u,c,f=0,d=u.length){const p=a(u,c,f,d-1);return p>f&&r(u[p-1],c)>-r(u[p],c)?p-1:p}return{left:a,center:l,right:i}}function kne(){return 0}function wI(e){return e===null?NaN:+e}function*_ne(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Pne=cS(l3).right;cS(wI).center;function Z2(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 CI extends Map{constructor(t,n=Mne){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(bI(this,t))}has(t){return super.has(bI(this,t))}set(t,n){return super.set(Hne(this,t),n)}delete(t){return super.delete(Dne(this,t))}}function bI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Hne({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dne({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Mne(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ine(e=l3){if(e===l3)return EI;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 EI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Rne=Math.sqrt(50),Nne=Math.sqrt(10),$ne=Math.sqrt(2);function g4(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=Rne?10:i>=Nne?5:i>=$ne?2:1;let u,c,f;return a<0?(f=Math.pow(10,-a)/l,u=Math.round(e*f),c=Math.round(t*f),u/f<e&&++u,c/f>t&&--c,f=-f):(f=Math.pow(10,a)*l,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=n&&n<2?g4(e,t,n*2):[u,c,f]}function fS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,l]=r?g4(t,e,n):g4(e,t,n);if(!(i>=a))return[];const u=i-a+1,c=new Array(u);if(r)if(l<0)for(let f=0;f<u;++f)c[f]=(i-f)/-l;else for(let f=0;f<u;++f)c[f]=(i-f)*l;else if(l<0)for(let f=0;f<u;++f)c[f]=(a+f)/-l;else for(let f=0;f<u;++f)c[f]=(a+f)*l;return c}function AS(e,t,n){return t=+t,e=+e,n=+n,g4(e,t,n)[2]}function dS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?AS(t,e,n):AS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function hm(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 y4(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 SI(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?EI:Ine(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,d=Math.log(c),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(c-p)/c)*(f-c/2<0?-1:1),C=Math.max(n,Math.floor(t-f*p/c+g)),E=Math.min(r,Math.floor(t+(c-f)*p/c+g));SI(e,t,C,E,a)}const i=e[t];let l=n,u=r;for(J2(e,n,t),a(e[r],i)>0&&J2(e,n,r);l<u;){for(J2(e,l,u),++l,--u;a(e[l],i)<0;)++l;for(;a(e[u],i)>0;)--u}a(e[n],i)===0?J2(e,n,u):(++u,J2(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function J2(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function BI(e,t,n){if(e=Float64Array.from(_ne(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return y4(e);if(t>=1)return hm(e);var r,a=(r-1)*t,i=Math.floor(a),l=hm(SI(e,i).subarray(0,i+1)),u=y4(e.subarray(i+1));return l+(u-l)*(a-i)}}function vp(e,t,n=wI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),l=+n(e[i],i,e),u=+n(e[i+1],i+1,e);return l+(u-l)*(a-i)}}function Rc(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 Lne(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 Nc(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 s3(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const xI=Symbol("implicit");function hs(){var e=new CI,t=[],n=[],r=xI;function a(i){let l=e.get(i);if(l===void 0){if(r!==xI)return r;e.set(i,l=t.push(i)-1)}return n[l%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new CI;for(const l of i)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return hs(t,n).unknown(r)},s3.apply(a,arguments),a}function q2(){var e=hs().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,u=!1,c=0,f=0,d=.5;delete e.unknown;function p(){var g=t().length,C=a<r,E=C?a:r,S=C?r:a;i=(S-E)/Math.max(1,g-c+f*2),u&&(i=Math.floor(i)),E+=(S-E-i*(g-c))*d,l=i*(1-c),u&&(E=Math.round(E),l=Math.round(l));var _=Lne(g).map(function(k){return E+i*k});return n(C?_.reverse():_)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,u=!0,p()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(g){return arguments.length?(u=!!g,p()):u},e.padding=function(g){return arguments.length?(c=Math.min(1,f=+g),p()):c},e.paddingInner=function(g){return arguments.length?(c=Math.min(1,g),p()):c},e.paddingOuter=function(g){return arguments.length?(f=+g,p()):f},e.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),p()):d},e.copy=function(){return q2(t(),[r,a]).round(u).paddingInner(c).paddingOuter(f).align(d)},s3.apply(p(),arguments)}function pS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function TI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function e7(){}var t7=.7,w4=1/t7,u3="\\s*([+-]?\\d+)\\s*",n7="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fne=/^#([0-9a-f]{3,8})$/,Qne=new RegExp(`^rgb\\(${u3},${u3},${u3}\\)$`),One=new RegExp(`^rgb\\(${mp},${mp},${mp}\\)$`),Vne=new RegExp(`^rgba\\(${u3},${u3},${u3},${n7}\\)$`),Une=new RegExp(`^rgba\\(${mp},${mp},${mp},${n7}\\)$`),zne=new RegExp(`^hsl\\(${n7},${mp},${mp}\\)$`),Gne=new RegExp(`^hsla\\(${n7},${mp},${mp},${n7}\\)$`),kI={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};pS(e7,vm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_I,formatHex:_I,formatHex8:jne,formatHsl:Yne,formatRgb:PI,toString:PI});function _I(){return this.rgb().formatHex()}function jne(){return this.rgb().formatHex8()}function Yne(){return RI(this).formatHsl()}function PI(){return this.rgb().formatRgb()}function vm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?HI(t):n===3?new nA(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?C4(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?C4(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=Qne.exec(e))?new nA(t[1],t[2],t[3],1):(t=One.exec(e))?new nA(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Vne.exec(e))?C4(t[1],t[2],t[3],t[4]):(t=Une.exec(e))?C4(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zne.exec(e))?II(t[1],t[2]/100,t[3]/100,1):(t=Gne.exec(e))?II(t[1],t[2]/100,t[3]/100,t[4]):kI.hasOwnProperty(e)?HI(kI[e]):e==="transparent"?new nA(NaN,NaN,NaN,0):null}function HI(e){return new nA(e>>16&255,e>>8&255,e&255,1)}function C4(e,t,n,r){return r<=0&&(e=t=n=NaN),new nA(e,t,n,r)}function Wne(e){return e instanceof e7||(e=vm(e)),e?(e=e.rgb(),new nA(e.r,e.g,e.b,e.opacity)):new nA}function r7(e,t,n,r){return arguments.length===1?Wne(e):new nA(e,t,n,r??1)}function nA(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pS(nA,r7,TI(e7,{brighter(e){return e=e==null?w4:Math.pow(w4,e),new nA(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?t7:Math.pow(t7,e),new nA(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nA(mm(this.r),mm(this.g),mm(this.b),b4(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:DI,formatHex:DI,formatHex8:Xne,formatRgb:MI,toString:MI}));function DI(){return`#${gm(this.r)}${gm(this.g)}${gm(this.b)}`}function Xne(){return`#${gm(this.r)}${gm(this.g)}${gm(this.b)}${gm((isNaN(this.opacity)?1:this.opacity)*255)}`}function MI(){const e=b4(this.opacity);return`${e===1?"rgb(":"rgba("}${mm(this.r)}, ${mm(this.g)}, ${mm(this.b)}${e===1?")":`, ${e})`}`}function b4(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gm(e){return e=mm(e),(e<16?"0":"")+e.toString(16)}function II(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new v0(e,t,n,r)}function RI(e){if(e instanceof v0)return new v0(e.h,e.s,e.l,e.opacity);if(e instanceof e7||(e=vm(e)),!e)return new v0;if(e instanceof v0)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,u=i-a,c=(i+a)/2;return u?(t===i?l=(n-r)/u+(n<r)*6:n===i?l=(r-t)/u+2:l=(t-n)/u+4,u/=c<.5?i+a:2-i-a,l*=60):u=c>0&&c<1?0:l,new v0(l,u,c,e.opacity)}function Kne(e,t,n,r){return arguments.length===1?RI(e):new v0(e,t,n,r??1)}function v0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pS(v0,Kne,TI(e7,{brighter(e){return e=e==null?w4:Math.pow(w4,e),new v0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?t7:Math.pow(t7,e),new v0(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 nA(hS(e>=240?e-240:e+120,a,r),hS(e,a,r),hS(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new v0(NI(this.h),E4(this.s),E4(this.l),b4(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=b4(this.opacity);return`${e===1?"hsl(":"hsla("}${NI(this.h)}, ${E4(this.s)*100}%, ${E4(this.l)*100}%${e===1?")":`, ${e})`}`}}));function NI(e){return e=(e||0)%360,e<0?e+360:e}function E4(e){return Math.max(0,Math.min(1,e||0))}function hS(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 vS=e=>()=>e;function Zne(e,t){return function(n){return e+n*t}}function Jne(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 qne(e){return(e=+e)==1?$I:function(t,n){return n-t?Jne(t,n,e):vS(isNaN(t)?n:t)}}function $I(e,t){var n=t-e;return n?Zne(e,n):vS(isNaN(e)?t:e)}const S4=function e(t){var n=qne(t);function r(a,i){var l=n((a=r7(a)).r,(i=r7(i)).r),u=n(a.g,i.g),c=n(a.b,i.b),f=$I(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=u(d),a.b=c(d),a.opacity=f(d),a+""}}return r.gamma=e,r}(1);function ere(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 tre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nre(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),l;for(l=0;l<r;++l)a[l]=yS(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(u){for(l=0;l<r;++l)i[l]=a[l](u);return i}}function rre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function m0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function are(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]=yS(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var mS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gS=new RegExp(mS.source,"g");function ire(e){return function(){return e}}function ore(e){return function(t){return e(t)+""}}function LI(e,t){var n=mS.lastIndex=gS.lastIndex=0,r,a,i,l=-1,u=[],c=[];for(e=e+"",t=t+"";(r=mS.exec(e))&&(a=gS.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),u[l]?u[l]+=i:u[++l]=i),(r=r[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,c.push({i:l,x:m0(r,a)})),n=gS.lastIndex;return n<t.length&&(i=t.slice(n),u[l]?u[l]+=i:u[++l]=i),u.length<2?c[0]?ore(c[0].x):ire(t):(t=c.length,function(f){for(var d=0,p;d<t;++d)u[(p=c[d]).i]=p.x(f);return u.join("")})}function yS(e,t){var n=typeof t,r;return t==null||n==="boolean"?vS(t):(n==="number"?m0:n==="string"?(r=vm(t))?(t=r,S4):LI:t instanceof vm?S4:t instanceof Date?rre:tre(t)?ere:Array.isArray(t)?nre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?are:m0)(e,t)}function lre(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var FI=180/Math.PI,wS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function QI(e,t,n,r,a,i){var l,u,c;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),e*r<t*n&&(e=-e,t=-t,c=-c,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*FI,skewX:Math.atan(c)*FI,scaleX:l,scaleY:u}}var B4;function sre(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?wS:QI(t.a,t.b,t.c,t.d,t.e,t.f)}function ure(e){return e==null||(B4||(B4=document.createElementNS("http://www.w3.org/2000/svg","g")),B4.setAttribute("transform",e),!(e=B4.transform.baseVal.consolidate()))?wS:(e=e.matrix,QI(e.a,e.b,e.c,e.d,e.e,e.f))}function OI(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function i(f,d,p,g,C,E){if(f!==p||d!==g){var S=C.push("translate(",null,t,null,n);E.push({i:S-4,x:m0(f,p)},{i:S-2,x:m0(d,g)})}else(p||g)&&C.push("translate("+p+t+g+n)}function l(f,d,p,g){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),g.push({i:p.push(a(p)+"rotate(",null,r)-2,x:m0(f,d)})):d&&p.push(a(p)+"rotate("+d+r)}function u(f,d,p,g){f!==d?g.push({i:p.push(a(p)+"skewX(",null,r)-2,x:m0(f,d)}):d&&p.push(a(p)+"skewX("+d+r)}function c(f,d,p,g,C,E){if(f!==p||d!==g){var S=C.push(a(C)+"scale(",null,",",null,")");E.push({i:S-4,x:m0(f,p)},{i:S-2,x:m0(d,g)})}else(p!==1||g!==1)&&C.push(a(C)+"scale("+p+","+g+")")}return function(f,d){var p=[],g=[];return f=e(f),d=e(d),i(f.translateX,f.translateY,d.translateX,d.translateY,p,g),l(f.rotate,d.rotate,p,g),u(f.skewX,d.skewX,p,g),c(f.scaleX,f.scaleY,d.scaleX,d.scaleY,p,g),f=d=null,function(C){for(var E=-1,S=g.length,_;++E<S;)p[(_=g[E]).i]=_.x(C);return p.join("")}}}var cre=OI(sre,"px, ","px)","deg)"),fre=OI(ure,", ",")",")"),Are=1e-12;function VI(e){return((e=Math.exp(e))+1/e)/2}function dre(e){return((e=Math.exp(e))-1/e)/2}function pre(e){return((e=Math.exp(2*e))-1)/(e+1)}const hre=function e(t,n,r){function a(i,l){var u=i[0],c=i[1],f=i[2],d=l[0],p=l[1],g=l[2],C=d-u,E=p-c,S=C*C+E*E,_,k;if(S<Are)k=Math.log(g/f)/t,_=function(L){return[u+L*C,c+L*E,f*Math.exp(t*L*k)]};else{var H=Math.sqrt(S),D=(g*g-f*f+r*S)/(2*f*n*H),V=(g*g-f*f-r*S)/(2*g*n*H),F=Math.log(Math.sqrt(D*D+1)-D),O=Math.log(Math.sqrt(V*V+1)-V);k=(O-F)/t,_=function(L){var j=L*k,G=VI(F),W=f/(n*H)*(G*pre(t*j+F)-dre(F));return[u+W*C,c+W*E,f*G/VI(t*j+F)]}}return _.duration=k*1e3*t/Math.SQRT2,_}return a.rho=function(i){var l=Math.max(.001,+i),u=l*l,c=u*u;return e(l,u,c)},a}(Math.SQRT2,2,4);function vre(e){return function(){return e}}function CS(e){return+e}var UI=[0,1];function gp(e){return e}function bS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:vre(isNaN(t)?NaN:.5)}function mre(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function gre(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=bS(a,r),i=n(l,i)):(r=bS(r,a),i=n(i,l)),function(u){return i(r(u))}}function yre(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=bS(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(u){var c=Pne(e,u,1,r)-1;return i[c](a[c](u))}}function x4(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ES(){var e=UI,t=UI,n=yS,r,a,i,l=gp,u,c,f;function d(){var g=Math.min(e.length,t.length);return l!==gp&&(l=mre(e[0],e[g-1])),u=g>2?yre:gre,c=f=null,p}function p(g){return g==null||isNaN(g=+g)?i:(c||(c=u(e.map(r),t,n)))(r(l(g)))}return p.invert=function(g){return l(a((f||(f=u(t,e.map(r),m0)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,CS),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=lre,d()},p.clamp=function(g){return arguments.length?(l=g?!0:gp,d()):l!==gp},p.interpolate=function(g){return arguments.length?(n=g,d()):n},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,C){return r=g,a=C,d()}}function zI(){return ES()(gp,gp)}function wre(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function T4(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 c3(e){return e=T4(Math.abs(e)),e?e[1]:NaN}function Cre(e,t){return function(n,r){for(var a=n.length,i=[],l=0,u=e[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=e[l=(l+1)%e.length];return i.reverse().join(t)}}function bre(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Ere=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a7(e){if(!(t=Ere.exec(e)))throw new Error("invalid format: "+e);var t;return new SS({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]})}a7.prototype=SS.prototype;function SS(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+""}SS.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 Sre(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 GI;function Bre(e,t){var n=T4(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(GI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+T4(e,Math.max(0,t+i-1))[0]}function jI(e,t){var n=T4(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 YI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:wre,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)=>jI(e*100,t),r:jI,s:Bre,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function WI(e){return e}var XI=Array.prototype.map,KI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xre(e){var t=e.grouping===void 0||e.thousands===void 0?WI:Cre(XI.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?WI:bre(XI.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(p){p=a7(p);var g=p.fill,C=p.align,E=p.sign,S=p.symbol,_=p.zero,k=p.width,H=p.comma,D=p.precision,V=p.trim,F=p.type;F==="n"?(H=!0,F="g"):YI[F]||(D===void 0&&(D=12),V=!0,F="g"),(_||g==="0"&&C==="=")&&(_=!0,g="0",C="=");var O=S==="$"?n:S==="#"&&/[boxX]/.test(F)?"0"+F.toLowerCase():"",L=S==="$"?r:/[%p]/.test(F)?l:"",j=YI[F],G=/[defgprs%]/.test(F);D=D===void 0?6:/[gprs]/.test(F)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function W(J){var X=O,q=L,re,le,ie;if(F==="c")q=j(J)+q,J="";else{J=+J;var ke=J<0||1/J<0;if(J=isNaN(J)?c:j(Math.abs(J),D),V&&(J=Sre(J)),ke&&+J==0&&E!=="+"&&(ke=!1),X=(ke?E==="("?E:u:E==="-"||E==="("?"":E)+X,q=(F==="s"?KI[8+GI/3]:"")+q+(ke&&E==="("?")":""),G){for(re=-1,le=J.length;++re<le;)if(ie=J.charCodeAt(re),48>ie||ie>57){q=(ie===46?a+J.slice(re+1):J.slice(re))+q,J=J.slice(0,re);break}}}H&&!_&&(J=t(J,1/0));var de=X.length+J.length+q.length,Ee=de<k?new Array(k-de+1).join(g):"";switch(H&&_&&(J=t(Ee+J,Ee.length?k-q.length:1/0),Ee=""),C){case"<":J=X+J+q+Ee;break;case"=":J=X+Ee+J+q;break;case"^":J=Ee.slice(0,de=Ee.length>>1)+X+J+q+Ee.slice(de);break;default:J=Ee+X+J+q;break}return i(J)}return W.toString=function(){return p+""},W}function d(p,g){var C=f((p=a7(p),p.type="f",p)),E=Math.max(-8,Math.min(8,Math.floor(c3(g)/3)))*3,S=Math.pow(10,-E),_=KI[8+E/3];return function(k){return C(S*k)+_}}return{format:f,formatPrefix:d}}var k4,i7,ZI;Tre({thousands:",",grouping:[3],currency:["$",""]});function Tre(e){return k4=xre(e),i7=k4.format,ZI=k4.formatPrefix,k4}function kre(e){return Math.max(0,-c3(Math.abs(e)))}function _re(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(c3(t)/3)))*3-c3(Math.abs(e)))}function Pre(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,c3(t)-c3(e))+1}function Hre(e,t,n,r){var a=dS(e,t,n),i;switch(r=a7(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=_re(a,l))&&(r.precision=i),ZI(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Pre(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=kre(a))&&(r.precision=i-(r.type==="%")*2);break}}return i7(r)}function BS(e){var t=e.domain;return e.ticks=function(n){var r=t();return fS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Hre(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,l=r[a],u=r[i],c,f,d=10;for(u<l&&(f=l,l=u,u=f,f=a,a=i,i=f);d-- >0;){if(f=AS(l,u,n),f===c)return r[a]=l,r[i]=u,t(r);if(f>0)l=Math.floor(l/f)*f,u=Math.ceil(u/f)*f;else if(f<0)l=Math.ceil(l*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function gi(){var e=zI();return e.copy=function(){return x4(e,gi())},s3.apply(e,arguments),BS(e)}function U1(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,CS),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return U1(e).unknown(t)},e=arguments.length?Array.from(e,CS):[0,1],BS(n)}function JI(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return i<a&&(l=n,n=r,r=l,l=a,a=i,i=l),e[n]=t.floor(a),e[r]=t.ceil(i),e}function qI(e){return Math.log(e)}function eR(e){return Math.exp(e)}function Dre(e){return-Math.log(-e)}function Mre(e){return-Math.exp(-e)}function Ire(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Rre(e){return e===10?Ire:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Nre(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 tR(e){return(t,n)=>-e(-t,n)}function $re(e){const t=e(qI,eR),n=t.domain;let r=10,a,i;function l(){return a=Nre(r),i=Rre(r),n()[0]<0?(a=tR(a),i=tR(i),e(Dre,Mre)):e(qI,eR),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const c=n();let f=c[0],d=c[c.length-1];const p=d<f;p&&([f,d]=[d,f]);let g=a(f),C=a(d),E,S;const _=u==null?10:+u;let k=[];if(!(r%1)&&C-g<_){if(g=Math.floor(g),C=Math.ceil(C),f>0){for(;g<=C;++g)for(E=1;E<r;++E)if(S=g<0?E/i(-g):E*i(g),!(S<f)){if(S>d)break;k.push(S)}}else for(;g<=C;++g)for(E=r-1;E>=1;--E)if(S=g>0?E/i(-g):E*i(g),!(S<f)){if(S>d)break;k.push(S)}k.length*2<_&&(k=fS(f,d,_))}else k=fS(g,C,Math.min(C-g,_)).map(i);return p?k.reverse():k},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=a7(c)).precision==null&&(c.trim=!0),c=i7(c)),u===1/0)return c;const f=Math.max(1,r*u/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*r<r-.5&&(p*=r),p<=f?c(d):""}},t.nice=()=>n(JI(n(),{floor:u=>i(Math.floor(a(u))),ceil:u=>i(Math.ceil(a(u)))})),t}function ym(){const e=$re(ES()).domain([1,10]);return e.copy=()=>x4(e,ym()).base(e.base()),s3.apply(e,arguments),e}function nR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Lre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fre(e){return e<0?-e*e:e*e}function Qre(e){var t=e(gp,gp),n=1;function r(){return n===1?e(gp,gp):n===.5?e(Lre,Fre):e(nR(n),nR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},BS(t)}function xS(){var e=Qre(ES());return e.copy=function(){return x4(e,xS()).exponent(e.exponent())},s3.apply(e,arguments),e}function _4(){return xS.apply(null,arguments).exponent(.5)}const TS=new Date,kS=new Date;function au(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const l=a(i),u=a.ceil(i);return i-l<u-i?l:u},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,u)=>{const c=[];if(i=a.ceil(i),u=u==null?1:Math.floor(u),!(i<l)||!(u>0))return c;let f;do c.push(f=new Date(+i)),t(i,u),e(i);while(f<i&&i<l);return c},a.filter=i=>au(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!i(l););else for(;--u>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(TS.setTime(+i),kS.setTime(+l),e(TS),e(kS),Math.floor(n(TS,kS))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const P4=au(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);P4.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?au(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):P4),P4.range;const Eh=1e3,wd=Eh*60,Sh=wd*60,Bh=Sh*24,_S=Bh*7,rR=Bh*30,PS=Bh*365,f3=au(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Eh)},(e,t)=>(t-e)/Eh,e=>e.getUTCSeconds());f3.range;const HS=au(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eh)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getMinutes());HS.range,au(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getUTCMinutes()).range;const DS=au(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eh-e.getMinutes()*wd)},(e,t)=>{e.setTime(+e+t*Sh)},(e,t)=>(t-e)/Sh,e=>e.getHours());DS.range,au(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Sh)},(e,t)=>(t-e)/Sh,e=>e.getUTCHours()).range;const o7=au(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wd)/Bh,e=>e.getDate()-1);o7.range;const MS=au(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bh,e=>e.getUTCDate()-1);MS.range,au(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bh,e=>Math.floor(e/Bh)).range;function wm(e){return au(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())*wd)/_S)}const H4=wm(0),D4=wm(1),Ore=wm(2),Vre=wm(3),A3=wm(4),Ure=wm(5),zre=wm(6);H4.range,D4.range,Ore.range,Vre.range,A3.range,Ure.range,zre.range;function Cm(e){return au(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)/_S)}const aR=Cm(0),M4=Cm(1),Gre=Cm(2),jre=Cm(3),d3=Cm(4),Yre=Cm(5),Wre=Cm(6);aR.range,M4.range,Gre.range,jre.range,d3.range,Yre.range,Wre.range;const IS=au(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());IS.range,au(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 xh=au(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());xh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:au(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)}),xh.range;const bm=au(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());bm.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:au(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)}),bm.range;function Xre(e,t,n,r,a,i){const l=[[f3,1,Eh],[f3,5,5*Eh],[f3,15,15*Eh],[f3,30,30*Eh],[i,1,wd],[i,5,5*wd],[i,15,15*wd],[i,30,30*wd],[a,1,Sh],[a,3,3*Sh],[a,6,6*Sh],[a,12,12*Sh],[r,1,Bh],[r,2,2*Bh],[n,1,_S],[t,1,rR],[t,3,3*rR],[e,1,PS]];function u(f,d,p){const g=d<f;g&&([f,d]=[d,f]);const C=p&&typeof p.range=="function"?p:c(f,d,p),E=C?C.range(f,+d+1):[];return g?E.reverse():E}function c(f,d,p){const g=Math.abs(d-f)/p,C=cS(([,,_])=>_).right(l,g);if(C===l.length)return e.every(dS(f/PS,d/PS,p));if(C===0)return P4.every(Math.max(dS(f,d,p),1));const[E,S]=l[g/l[C-1][2]<l[C][2]/g?C-1:C];return E.every(S)}return[u,c]}const[Kre,Zre]=Xre(xh,IS,H4,o7,DS,HS);function RS(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 NS(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 l7(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Jre(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,u=e.months,c=e.shortMonths,f=s7(a),d=u7(a),p=s7(i),g=u7(i),C=s7(l),E=u7(l),S=s7(u),_=u7(u),k=s7(c),H=u7(c),D={a:ke,A:de,b:Ee,B:we,c:null,d:cR,e:cR,f:Cae,g:Hae,G:Mae,H:gae,I:yae,j:wae,L:fR,m:bae,M:Eae,p:pe,q:Be,Q:mR,s:gR,S:Sae,u:Bae,U:xae,V:Tae,w:kae,W:_ae,x:null,X:null,y:Pae,Y:Dae,Z:Iae,"%":vR},V={a:We,A:$e,b:Qe,B:Oe,c:null,d:dR,e:dR,f:Lae,g:Wae,G:Kae,H:Rae,I:Nae,j:$ae,L:pR,m:Fae,M:Qae,p:Ue,q:ct,Q:mR,s:gR,S:Oae,u:Vae,U:Uae,V:zae,w:Gae,W:jae,x:null,X:null,y:Yae,Y:Xae,Z:Zae,"%":vR},F={a:W,A:J,b:X,B:q,c:re,d:sR,e:sR,f:pae,g:lR,G:oR,H:uR,I:uR,j:cae,L:dae,m:uae,M:fae,p:G,q:sae,Q:vae,s:mae,S:Aae,u:rae,U:aae,V:iae,w:nae,W:oae,x:le,X:ie,y:lR,Y:oR,Z:lae,"%":hae};D.x=O(n,D),D.X=O(r,D),D.c=O(t,D),V.x=O(n,V),V.X=O(r,V),V.c=O(t,V);function O(Ve,qe){return function(st){var et=[],gt=-1,yt=0,Xt=Ve.length,cr,fr,ka;for(st instanceof Date||(st=new Date(+st));++gt<Xt;)Ve.charCodeAt(gt)===37&&(et.push(Ve.slice(yt,gt)),(fr=iR[cr=Ve.charAt(++gt)])!=null?cr=Ve.charAt(++gt):fr=cr==="e"?" ":"0",(ka=qe[cr])&&(cr=ka(st,fr)),et.push(cr),yt=gt+1);return et.push(Ve.slice(yt,gt)),et.join("")}}function L(Ve,qe){return function(st){var et=l7(1900,void 0,1),gt=j(et,Ve,st+="",0),yt,Xt;if(gt!=st.length)return null;if("Q"in et)return new Date(et.Q);if("s"in et)return new Date(et.s*1e3+("L"in et?et.L:0));if(qe&&!("Z"in et)&&(et.Z=0),"p"in et&&(et.H=et.H%12+et.p*12),et.m===void 0&&(et.m="q"in et?et.q:0),"V"in et){if(et.V<1||et.V>53)return null;"w"in et||(et.w=1),"Z"in et?(yt=NS(l7(et.y,0,1)),Xt=yt.getUTCDay(),yt=Xt>4||Xt===0?M4.ceil(yt):M4(yt),yt=MS.offset(yt,(et.V-1)*7),et.y=yt.getUTCFullYear(),et.m=yt.getUTCMonth(),et.d=yt.getUTCDate()+(et.w+6)%7):(yt=RS(l7(et.y,0,1)),Xt=yt.getDay(),yt=Xt>4||Xt===0?D4.ceil(yt):D4(yt),yt=o7.offset(yt,(et.V-1)*7),et.y=yt.getFullYear(),et.m=yt.getMonth(),et.d=yt.getDate()+(et.w+6)%7)}else("W"in et||"U"in et)&&("w"in et||(et.w="u"in et?et.u%7:"W"in et?1:0),Xt="Z"in et?NS(l7(et.y,0,1)).getUTCDay():RS(l7(et.y,0,1)).getDay(),et.m=0,et.d="W"in et?(et.w+6)%7+et.W*7-(Xt+5)%7:et.w+et.U*7-(Xt+6)%7);return"Z"in et?(et.H+=et.Z/100|0,et.M+=et.Z%100,NS(et)):RS(et)}}function j(Ve,qe,st,et){for(var gt=0,yt=qe.length,Xt=st.length,cr,fr;gt<yt;){if(et>=Xt)return-1;if(cr=qe.charCodeAt(gt++),cr===37){if(cr=qe.charAt(gt++),fr=F[cr in iR?qe.charAt(gt++):cr],!fr||(et=fr(Ve,st,et))<0)return-1}else if(cr!=st.charCodeAt(et++))return-1}return et}function G(Ve,qe,st){var et=f.exec(qe.slice(st));return et?(Ve.p=d.get(et[0].toLowerCase()),st+et[0].length):-1}function W(Ve,qe,st){var et=C.exec(qe.slice(st));return et?(Ve.w=E.get(et[0].toLowerCase()),st+et[0].length):-1}function J(Ve,qe,st){var et=p.exec(qe.slice(st));return et?(Ve.w=g.get(et[0].toLowerCase()),st+et[0].length):-1}function X(Ve,qe,st){var et=k.exec(qe.slice(st));return et?(Ve.m=H.get(et[0].toLowerCase()),st+et[0].length):-1}function q(Ve,qe,st){var et=S.exec(qe.slice(st));return et?(Ve.m=_.get(et[0].toLowerCase()),st+et[0].length):-1}function re(Ve,qe,st){return j(Ve,t,qe,st)}function le(Ve,qe,st){return j(Ve,n,qe,st)}function ie(Ve,qe,st){return j(Ve,r,qe,st)}function ke(Ve){return l[Ve.getDay()]}function de(Ve){return i[Ve.getDay()]}function Ee(Ve){return c[Ve.getMonth()]}function we(Ve){return u[Ve.getMonth()]}function pe(Ve){return a[+(Ve.getHours()>=12)]}function Be(Ve){return 1+~~(Ve.getMonth()/3)}function We(Ve){return l[Ve.getUTCDay()]}function $e(Ve){return i[Ve.getUTCDay()]}function Qe(Ve){return c[Ve.getUTCMonth()]}function Oe(Ve){return u[Ve.getUTCMonth()]}function Ue(Ve){return a[+(Ve.getUTCHours()>=12)]}function ct(Ve){return 1+~~(Ve.getUTCMonth()/3)}return{format:function(Ve){var qe=O(Ve+="",D);return qe.toString=function(){return Ve},qe},parse:function(Ve){var qe=L(Ve+="",!1);return qe.toString=function(){return Ve},qe},utcFormat:function(Ve){var qe=O(Ve+="",V);return qe.toString=function(){return Ve},qe},utcParse:function(Ve){var qe=L(Ve+="",!0);return qe.toString=function(){return Ve},qe}}}var iR={"-":"",_:" ",0:"0"},Mu=/^\s*\d+/,qre=/^%/,eae=/[\\^$*+?|[\]().{}]/g;function ui(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 tae(e){return e.replace(eae,"\\$&")}function s7(e){return new RegExp("^(?:"+e.map(tae).join("|")+")","i")}function u7(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function nae(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rae(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function aae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function iae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function oae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function oR(e,t,n){var r=Mu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lR(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lae(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 sae(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function uae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function sR(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function cae(e,t,n){var r=Mu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uR(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dae(e,t,n){var r=Mu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pae(e,t,n){var r=Mu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hae(e,t,n){var r=qre.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vae(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mae(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function cR(e,t){return ui(e.getDate(),t,2)}function gae(e,t){return ui(e.getHours(),t,2)}function yae(e,t){return ui(e.getHours()%12||12,t,2)}function wae(e,t){return ui(1+o7.count(xh(e),e),t,3)}function fR(e,t){return ui(e.getMilliseconds(),t,3)}function Cae(e,t){return fR(e,t)+"000"}function bae(e,t){return ui(e.getMonth()+1,t,2)}function Eae(e,t){return ui(e.getMinutes(),t,2)}function Sae(e,t){return ui(e.getSeconds(),t,2)}function Bae(e){var t=e.getDay();return t===0?7:t}function xae(e,t){return ui(H4.count(xh(e)-1,e),t,2)}function AR(e){var t=e.getDay();return t>=4||t===0?A3(e):A3.ceil(e)}function Tae(e,t){return e=AR(e),ui(A3.count(xh(e),e)+(xh(e).getDay()===4),t,2)}function kae(e){return e.getDay()}function _ae(e,t){return ui(D4.count(xh(e)-1,e),t,2)}function Pae(e,t){return ui(e.getFullYear()%100,t,2)}function Hae(e,t){return e=AR(e),ui(e.getFullYear()%100,t,2)}function Dae(e,t){return ui(e.getFullYear()%1e4,t,4)}function Mae(e,t){var n=e.getDay();return e=n>=4||n===0?A3(e):A3.ceil(e),ui(e.getFullYear()%1e4,t,4)}function Iae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ui(t/60|0,"0",2)+ui(t%60,"0",2)}function dR(e,t){return ui(e.getUTCDate(),t,2)}function Rae(e,t){return ui(e.getUTCHours(),t,2)}function Nae(e,t){return ui(e.getUTCHours()%12||12,t,2)}function $ae(e,t){return ui(1+MS.count(bm(e),e),t,3)}function pR(e,t){return ui(e.getUTCMilliseconds(),t,3)}function Lae(e,t){return pR(e,t)+"000"}function Fae(e,t){return ui(e.getUTCMonth()+1,t,2)}function Qae(e,t){return ui(e.getUTCMinutes(),t,2)}function Oae(e,t){return ui(e.getUTCSeconds(),t,2)}function Vae(e){var t=e.getUTCDay();return t===0?7:t}function Uae(e,t){return ui(aR.count(bm(e)-1,e),t,2)}function hR(e){var t=e.getUTCDay();return t>=4||t===0?d3(e):d3.ceil(e)}function zae(e,t){return e=hR(e),ui(d3.count(bm(e),e)+(bm(e).getUTCDay()===4),t,2)}function Gae(e){return e.getUTCDay()}function jae(e,t){return ui(M4.count(bm(e)-1,e),t,2)}function Yae(e,t){return ui(e.getUTCFullYear()%100,t,2)}function Wae(e,t){return e=hR(e),ui(e.getUTCFullYear()%100,t,2)}function Xae(e,t){return ui(e.getUTCFullYear()%1e4,t,4)}function Kae(e,t){var n=e.getUTCDay();return e=n>=4||n===0?d3(e):d3.ceil(e),ui(e.getUTCFullYear()%1e4,t,4)}function Zae(){return"+0000"}function vR(){return"%"}function mR(e){return+e}function gR(e){return Math.floor(+e/1e3)}var p3,yR;Jae({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 Jae(e){return p3=Jre(e),yR=p3.format,p3.parse,p3.utcFormat,p3.utcParse,p3}function qae(e){return new Date(e)}function eie(e){return e instanceof Date?+e:+new Date(+e)}function wR(e,t,n,r,a,i,l,u,c,f){var d=zI(),p=d.invert,g=d.domain,C=f(".%L"),E=f(":%S"),S=f("%I:%M"),_=f("%I %p"),k=f("%a %d"),H=f("%b %d"),D=f("%B"),V=f("%Y");function F(O){return(c(O)<O?C:u(O)<O?E:l(O)<O?S:i(O)<O?_:r(O)<O?a(O)<O?k:H:n(O)<O?D:V)(O)}return d.invert=function(O){return new Date(p(O))},d.domain=function(O){return arguments.length?g(Array.from(O,eie)):g().map(qae)},d.ticks=function(O){var L=g();return e(L[0],L[L.length-1],O??10)},d.tickFormat=function(O,L){return L==null?F:f(L)},d.nice=function(O){var L=g();return(!O||typeof O.range!="function")&&(O=t(L[0],L[L.length-1],O??10)),O?g(JI(L,O)):d},d.copy=function(){return x4(d,wR(e,t,n,r,a,i,l,u,c,f))},d}function tie(){return s3.apply(wR(Kre,Zre,xh,IS,H4,o7,DS,HS,f3,yR).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}const h3="#110529",nie="solid",CR=1,I4="21",Th=3,R4={min:3,max:10},rie={color:"#ccc",lineShape:nie,dotShape:I4},aie="light";function iie(e){const t=1/(e.length-1);return gi().domain(e.map((n,r)=>r*t)).range(e)}function bR(e,t){const n=Ms[e].colors,r=t.length>1?1/(t.length-1):0,a=iie(n),i=sS(e),l=t.reduce((u,c,f)=>(u[c]={colorIdx:i?f:f*r,aes:{color:i?n[f%n.length]:a(f*r),lineShape:o3[f%o3.length],dotShape:K2[f%K2.length]}},u),{});return{type:"categorical",palette:e,naAes:rie,order:t,mapping:l}}function v3(e){return bR(aie,e)}function ER(e,t,n,r){if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??v3(n?e.getSourceInfo(n).uniqueValues:[]);return{order:a.order,inheritedAes:a.order.reduce((i,l)=>{const u=a.mapping[l].aes;return i[l]={},r.fill&&(i[l].fillColor=u.color,i[l].dotFill=u.color),r.stroke&&(i[l].lineColor=u.color),r.dotShape&&(i[l].dotShape=u.dotShape),r.lineType&&(i[l].lineShape=u.lineShape),i},{})}}function oie(e,t,n){const r=n[e]??v3(t.getSourceInfo(e).uniqueValues);return r.order.reduce((a,i)=>{const l=r.mapping[i].aes;return a[i]={fillColor:l.color,lineColor:l.color,dotFill:l.color,dotShape:l.dotShape,dotSize:Th,lineWidth:CR},a},{})}function $S(e,t,n,r){const a=n[e]??v3(t.getSourceInfo(e).uniqueValues);return a.order.reduce((i,l)=>{const u=a.mapping[l].aes;return i[l]=u[r],i},{})}const lie={},sie={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function uie(e,t){return v.openBlock(),v.createElementBlock("svg",sie,t[0]||(t[0]=[v.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),v.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 SR=Sr(lie,[["render",uie]]),BR="pl7.app/graph/thresholds",N4="pl7.app/graph/axis/lowerLimit",$4="pl7.app/graph/axis/upperLimit",L4="pl7.app/graph/axis/symmetricRange",LS="pl7.app/graph/palette",cie="pl7.app/axisNature",fie="pl7.app/min",Aie="pl7.app/max",die="pl7.app/isSubset";function pie(e,t){return t==="discrete"?e&&c7[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&m3[e]?e:"dots":t==="dendro"?"dendro":e??"heatmap"}const c7={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"]},m3={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},hie={heatmap:["heatmap"],heatmapClustered:["heatmapClustered"]},g3={box:"Boxplot",binnedDots:"Binned Dots",jitteredDots:"Jittered Dots",violin:"Violins",bar:"Bar",stackedBar:"Stacked Bar",line:"Line",errorbar:"Error Bar",sina:"Sina",dots:"Scatter Plot",curve:"Curve",heatmap:"Heatmap",heatmapClustered:"Heatmap + Dendro",dendro:"Dendrogram"};function vie(e){var t,n,r,a,i,l,u,c,f,d,p,g,C,E,S,_,k,H,D,V,F,O,L,j,G,W,J,X;return{overall:{data:{testMethod:((n=(t=e==null?void 0:e.overall)==null?void 0:t.data)==null?void 0:n.testMethod)??null},validity:{testMethod:((a=(r=e==null?void 0:e.overall)==null?void 0:r.validity)==null?void 0:a.testMethod)??!0}},referenceGroup:{data:{testMethod:((l=(i=e==null?void 0:e.referenceGroup)==null?void 0:i.data)==null?void 0:l.testMethod)??null,referenceGroup:((c=(u=e==null?void 0:e.referenceGroup)==null?void 0:u.data)==null?void 0:c.referenceGroup)??null,correctionMethod:((d=(f=e==null?void 0:e.referenceGroup)==null?void 0:f.data)==null?void 0:d.correctionMethod)??"Bonferroni",format:((g=(p=e==null?void 0:e.referenceGroup)==null?void 0:p.data)==null?void 0:g.format)??"significance",ns:((E=(C=e==null?void 0:e.referenceGroup)==null?void 0:C.data)==null?void 0:E.ns)??!1},validity:{testMethod:((_=(S=e==null?void 0:e.referenceGroup)==null?void 0:S.validity)==null?void 0:_.testMethod)??!0,referenceGroup:((H=(k=e==null?void 0:e.referenceGroup)==null?void 0:k.validity)==null?void 0:H.referenceGroup)??!0}},pairwise:{data:{testMethod:((V=(D=e==null?void 0:e.pairwise)==null?void 0:D.data)==null?void 0:V.testMethod)??null,correctionMethod:((O=(F=e==null?void 0:e.pairwise)==null?void 0:F.data)==null?void 0:O.correctionMethod)??"Bonferroni",format:((j=(L=e==null?void 0:e.pairwise)==null?void 0:L.data)==null?void 0:j.format)??"significance",ns:((W=(G=e==null?void 0:e.pairwise)==null?void 0:G.data)==null?void 0:W.ns)??!1},validity:{testMethod:((X=(J=e==null?void 0:e.pairwise)==null?void 0:J.validity)==null?void 0:X.testMethod)??!0}}}}function F4(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"min"in e&&"max"in e}function Em(e){return typeof e=="object"&&e!==null&&"type"in e}function Q4(e){return typeof e<"u"&&e!==null&&typeof e=="object"&&"range"in e&&F4(e.range)}const mie=()=>({dendro:{dotFill:Gl,dotShape:bh,dotSize:Th,lineColor:Gl,mode:"normal",leavesMode:"normal",showTable:!1,showLegend:!0},heatmap:{},heatmapClustered:{dendrogramX:!0,dendrogramY:!0},dots:{dotFill:null,dotShape:null,dotSize:Th},curve:{lineColor:Gl,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:h3,dotShape:bh,lineType:m4,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:h3,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:bh,lineColor:h3,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:h3,lineType:m4,opacity:1,trim:!1},bar:{fillColor:null,lineColor:h3,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:h3,opacity:1},line:{pointsValues:"mean",lineColor:null,dotShape:bh,lineType:m4,dotFill:Gl,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:bh,dotFill:Gl,opacity:1},sina:{dotFill:null,dotShape:bh,opacity:1,showOutliers:!0}});function gie(e){const t=mie();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const yie=()=>({title:{value:"Graph 1",position:"center",mode:"auto",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:"center",axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear",significantLinesStyle:"dashed"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3}});function xR(e){return e==="full"||e==="none"}function wie(e,t){var a;const n=yie();if(!t)return n;function r(i){return!i||e==="heatmap"&&!xR(i)?"full":e!=="heatmap"&&xR(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 kh={box:Gee,box_binnedDots:Xee,box_jitteredDots:qee,binnedDots:rte,jitteredDots:lte,violin:fte,violin_binnedDots:hte,violin_jitteredDots:yte,bar:Ete,bar_line:vI,bar_errorbar:Pte,stackedBar:Ite,line:mI,line_binnedDots:Ote,line_jitteredDots:gI,line_errorbar:Wte,errorbar:vI,sina:Jte,dots:nne,curve:mI,curve_dots:gI,heatmap:one,heatmapClustered:SR,dendro:SR},O4=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],TR=[{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"}],kR=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}];function _R(e,t,n){var a,i,l,u,c;if(((i=(a=e.components)==null?void 0:a.y)==null?void 0:i.selectorStates.length)===0)return[];if(!((u=(l=e.components)==null?void 0:l[n])!=null&&u.selectorStates.length))return["single common group"];const r=(c=e.components)==null?void 0:c[n].selectorStates[0].selectedSource;return t.getSourceInfo(r).uniqueValues}function Cie(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 bie(e,t,n,r){const a=[],i=r.components.primaryGrouping.selectorStates.length>0,l=r.components.secondaryGrouping.selectorStates.length>0;function u(c,f=!1){return c===null?l?{type:"secondaryGrouping"}:i&&!f?{type:"primaryGrouping"}:{type:"secondaryGrouping"}:c}return e.forEach(c=>{if(c==="box"){const f=t[c];a.push({type:"box",aes:{showOutliers:f.showOutliers,dotShape:f.dotShape,fillColor:u(f.fillColor),lineColor:u(f.lineColor),lineShape:f.lineType,opacity:f.opacity}})}if(c==="binnedDots"){const f=t[c];a.push({type:"binnedDots",aes:{showOutliers:f.showOutliers,fillColor:u(f.fillColor),lineColor:u(f.lineColor),opacity:f.opacity}})}if(c==="jitteredDots"){const f=t[c];a.push({type:"dot",aes:{showOutliers:f.showOutliers,dotFill:u(f.dotFill),dotShape:f.dotShape,lineColor:f.lineColor,opacity:f.opacity}})}if(c==="violin"){const f=t[c];a.push({type:"violin",stat:{trim:f.trim},aes:{fillColor:u(f.fillColor),lineColor:u(f.lineColor),lineShape:f.lineType,opacity:f.opacity}})}if(c==="bar"){const f=t[c];a.push({type:"bar",height:f.height,aes:{fillColor:u(f.fillColor),lineColor:u(f.lineColor),opacity:f.opacity}})}if(c==="stackedBar"){const f=t[c];a.push({type:"stackedBar",aes:{fillColor:u(f.fillColor),lineColor:u(f.lineColor),opacity:f.opacity}})}if(c==="line"){const f=t[c];a.push({type:"line",pointsValues:f.pointsValues,aes:{lineColor:u(f.lineColor,!0),fillColor:f.dotFill,lineShape:f.lineType,dotShape:f.dotShape,opacity:f.opacity}})}if(c==="errorbar"){const f=t[c];a.push({type:"errorbar",pointsValues:f.pointsValues,interval:f.interval,aes:{lineColor:u(f.lineColor,!0),fillColor:f.dotFill,dotShape:f.dotShape,opacity:f.opacity}})}if(c==="sina"){const f=t[c];a.push({type:"sina",aes:{showOutliers:f.showOutliers,dotFill:u(f.dotFill),dotShape:f.dotShape}})}}),i&&!l&&a.push(...Cie(n)),a}function Eie(e,t,n){if(Q4(t)){const r=e.find(i=>i.value===t.column);if(!r)return Th;const a=[1/0,-1/0];return n.values[r.value].forEach(i=>{const l=Number(i);l<a[0]&&(a[0]=l),l>a[1]&&(a[1]=l)}),{columnName:r,domain:a,range:[t.range.min,t.range.max]}}return t===null?Th:t}function PR(e,t,n,r){const a=[];return e.forEach(i=>{if(i==="dots"){const l=t[i];a.push({type:"dots",aes:{dotFill:l.dotFill??Gl,dotShape:l.dotShape??bh,dotSize:Eie(r,l.dotSize,n)}})}if(i==="curve"){const l=t[i];a.push({type:"curve",smoothing:l.smoothing,aes:{lineColor:l.lineColor??Gl}})}}),a}function HR(e,t,n,r,a,i,l){if(e==="discrete"){const u=c7[t];return bie(u,n,r,a)}if(e==="scatterplot"||e==="scatterplot-umap"){const u=m3[t];return PR(u,n,l,i==null?void 0:i.grouping)}return[]}function f7(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return Em(a)&&a.type===n})}function V4(e,t,n){return e.some(r=>{var i;const a=(i=r==null?void 0:r.aes)==null?void 0:i[t];return Em(a)&&a.value===n})}function DR(e,t,n,r,a){var c,f,d;const i=HR(e,t,n,r,a,{},{type:"columns",id:"",values:{}}),l={};let u=[];return e==="discrete"&&(u=["primaryGrouping","secondaryGrouping"],u.forEach(p=>{var C,E;const g=(E=(C=a.components[p])==null?void 0:C.selectorStates[0])==null?void 0:E.selectedSource;g&&(l[g]={fill:f7(i,"fillColor",p)||f7(i,"dotFill",p),stroke:f7(i,"lineColor",p),dotShape:f7(i,"dotShape",p),lineType:f7(i,"lineShape",p),size:!1})})),e==="scatterplot"&&(u=a.components.grouping.selectorStates.map(p=>p.selectedSource),u.forEach(p=>{l[p]={fill:V4(i,"dotFill",p),stroke:V4(i,"lineColor",p),dotShape:V4(i,"dotShape",p),lineType:!1,size:!1}})),e==="scatterplot-umap"&&(u=a.components.grouping.selectorStates.map(p=>p.selectedSource),u.forEach(p=>{l[p]={fill:V4(i,"dotFill",p),stroke:!1,dotShape:!1,lineType:!1,size:!1}})),e==="dendro"&&(u=[((c=a.components.nodeColor.selectorStates[0])==null?void 0:c.selectedSource)??null,((f=a.components.nodeShape.selectorStates[0])==null?void 0:f.selectedSource)??null,((d=a.components.lineColor.selectorStates[0])==null?void 0:d.selectedSource)??null].filter(g=>g!==null),u.forEach(g=>{l[g]={fill:Em(n.dendro.dotFill)&&n.dendro.dotFill.value===g,stroke:Em(n.dendro.lineColor)&&n.dendro.lineColor.value===g,dotShape:Em(n.dendro.dotShape)&&n.dendro.dotShape.value===g,lineType:!1,size:!1}})),l}function FS(e,t){let n={},r={};t==="discrete"&&(n.labelsPosition=e.axisX.labelsRotation,n.linesBetweenCategories=e.axisX.linesBetweenCategories,r.scale=e.axisY.scale),(t==="discrete"||t==="scatterplot")&&(n.showGrid=e.axisX.gridlines,n.showTicks=e.axisX.ticks,r.showGrid=e.axisY.gridlines,r.showTicks=e.axisY.ticks),t==="scatterplot"&&(n.scale=e.axisX.scale,r.scale=e.axisY.scale,n.significantLinesStyle=e.axisX.significantLinesStyle,r.significantLinesStyle=e.axisY.significantLinesStyle),t==="heatmap"&&(n.axisLabelsAngle=e.axisX.axisLabelsAngle,r.axisLabelsAngle=e.axisY.axisLabelsAngle),e.axisY.titleMode!=="auto"&&(r.title=e.axisY.titleMode==="custom"?e.axisY.customTitle:""),e.axisX.titleMode!=="auto"&&(n.title=e.axisX.titleMode==="custom"?e.axisX.customTitle:"");const a={xAxis:n,yAxis:r,frame:{type:e.other.frame},facetSettings:{nCols:e.other.facetColumns}};return(t==="discrete"||t==="scatterplot"||t==="heatmap")&&(a.orientation=e.other.reverse?"horizontal":"vertical",a.facetSettings.sharedX=["x","xy"].includes(e.other.facetSharedBy),a.facetSettings.sharedY=["y","xy"].includes(e.other.facetSharedBy)),a}function _h(e){return JSON.parse(JSON.stringify(e))}function Sie(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 MR(e,t){return(t==null?void 0:t[die])==="true"?"subset":e==="Int"||e==="String"?"equals":"range"}async function QS(e,t,n=!0){const r=[],a=t.filter(({selectedSource:u})=>"kind"in u&&u.kind==="PColumn"),i=t.filter(({selectedSource:u})=>!("kind"in u&&u.kind==="PColumn")),l=[];for(const{inputName:u,filterType:c,selectedSource:f,selectedFilterValue:d,selectedFilterRange:p}of a){const{name:g,valueType:C,annotations:E,domain:S}=f,_=await e.pFrameProvider.findColumnBy(g,C,v.toRaw(E),v.toRaw(S)),k=u==="filters"||u==="tabBy";if(_){const H=await e.pFrameProvider.getColumnSpecById(_);if(!k)r.push({inputName:u,selectedSource:_.toCanonicalString()});else{const D=c??MR(C,H==null?void 0:H.annotations),V=D==="equals"&&typeof d>"u"?(await e.pFrameProvider.getColumnUniqueValues(_))[0]:d,F=D==="range"&&typeof p>"u"?{min:0,max:0}:p;r.push({inputName:u,filterType:D,selectedSource:_.toCanonicalString(),selectedFilterValue:V,selectedFilterRange:F})}l.push(...(H==null?void 0:H.axesSpec.map(D=>({spec:D,parentColumn:_})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:u,selectedSource:f})}`)}for(const{inputName:u,selectedSource:c,filterType:f,selectedFilterValue:d,selectedFilterRange:p}of i){const g=zl.fromAxisSpec(c),C=g.toCanonicalString(),E=u==="filters"||u==="tabBy",S=E?f??MR(g.type,c==null?void 0:c.annotations):void 0,_=l.find(D=>zl.fromAxisSpec(D.spec).toCanonicalString()===C),k=E&&S==="equals"&&typeof d>"u"&&(_!=null&&_.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(g,[_==null?void 0:_.parentColumn]))[0]:d,H=E&&S==="range"&&typeof p>"u"?{min:0,max:0}:p;if(n||r.push({inputName:u,filterType:S,selectedSource:C,selectedFilterValue:k,selectedFilterRange:H}),_)r.push({inputName:u,filterType:S,selectedSource:C,selectedFilterValue:k,selectedFilterRange:H});else{const{spec:D,parentColumn:V}=l.find(F=>g.name===F.spec.name&&g.type===F.spec.type&&Sie(g.domain,F.spec.domain))??{};if(D){const F=(u==="filters"||u==="tabBy")&&typeof d>"u"?(await e.pFrameProvider.getAxisUniqueValues(zl.fromAxisSpec(D),[V]))[0]:d;r.push({inputName:u,filterType:S,selectedSource:zl.fromAxisSpec(D).toCanonicalString(),selectedFilterValue:F,selectedFilterRange:H})}}}return r}async function IR(e,t,n){if(!n||n.length===0)return e;const r=await QS(t,n,!1),a=_h(e);return r.forEach(({inputName:i,selectedSource:l,selectedFilterValue:u})=>{e.components[i]&&a.components[i].selectorStates.push({selectedSource:l,type:"equals",selectedFilterValue:u})}),a}function Bie(e,t,n,r){const a=HR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState,e,r),i=DR(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState);e.layers=a;const l=t.optionsState.components;if(l.primaryGrouping.selectorStates.length&&e.primaryGrouping){const u=l.primaryGrouping.selectorStates[0].selectedSource,c=i[u];Object.assign(e.primaryGrouping,ER(n,t.dataBindAes[u],u,c))}if(l.secondaryGrouping.selectorStates&&e.secondaryGrouping){const u=l.secondaryGrouping.selectorStates[0].selectedSource,c=i[u];Object.assign(e.secondaryGrouping,ER(n,t.dataBindAes[u],u,c))}return Object.assign(e,FS(t.axesSettings,t.chartType)),e}function xie(e,t,n,r){var d,p,g,C;e.layers=PR(m3[n.template],n.layersSettings,t,e==null?void 0:e.grouping);const a=n.optionsState.components.grouping;if(a.selectorStates.length){const E={};a.selectorStates.forEach(({selectedSource:S})=>{E[S]=oie(S,r,n.dataBindAes)}),Object.assign(e,{inheritedAes:E})}Object.assign(e,FS(n.axesSettings,n.chartType));const i=(d=a.selectorStates[0])==null?void 0:d.selectedSource,l=(p=n.optionsState.components.x.selectorStates[0])==null?void 0:p.selectedSource,u=(g=n.optionsState.components.y.selectorStates[0])==null?void 0:g.selectedSource,c=r.getSourceInfo(l),f=r.getSourceInfo(u);if(a.selectorStates.length){const E=r.getSourceInfo(i).annotations;if(E!=null&&E[BR]&&(JSON.parse(E[BR])??[]).forEach(_=>{const{columnId:k,value:H}=_;k&&c.kind==="column"&&c.type===k.valueType&&c.name===k.name&&(e.xAxis.significantLines||(e.xAxis.significantLines=[]),e.xAxis.significantLines.push(Number(H))),k&&f.kind==="column"&&f.type===k.valueType&&f.name===k.name&&(e.yAxis.significantLines||(e.yAxis.significantLines=[]),e.yAxis.significantLines.push(Number(H)))}),E!=null&&E[LS]){const S=JSON.parse(E[LS]),{mapping:_={},name:k=""}=S;e.layers.forEach(V=>{V.type==="dots"&&(V.aes||(V.aes={}),V.aes.dotFill={type:"grouping",value:i})});const H=[...Object.entries(_),["null",uS]],D=((C=Ms[k])==null?void 0:C.colors)??[];e.inheritedAes[i]=H.reduce((V,[F,O])=>{const L=D[Number(O)]??Gl;return V[F]={fillColor:L,lineColor:L,dotFill:L,dotShape:I4,dotSize:Th,lineWidth:CR},V},{})}}return c.annotations&&(c.annotations[$4]&&(e.xAxis.upperValue=Number(c.annotations[$4])),c.annotations[N4]&&(e.xAxis.lowerValue=Number(c.annotations[N4])),c.annotations[L4]&&(e.xAxis.symmetricRange=Number(c.annotations[L4]))),f.annotations&&(f.annotations[$4]&&(e.yAxis.upperValue=Number(f.annotations[$4])),f.annotations[N4]&&(e.yAxis.lowerValue=Number(f.annotations[N4])),f.annotations[L4]&&(e.yAxis.symmetricRange=Number(f.annotations[L4]))),e}function Tie(e,t){const n={};return(e==null?void 0:e.valueType)!=="discrete"?(t.template==="heatmapClustered"&&(e.dendrogramX={fillNA:0,showNodes:!1,hidden:!t.layersSettings.heatmapClustered.dendrogramX},e.dendrogramY={fillNA:0,position:"right",showNodes:!1,hidden:!t.layersSettings.heatmapClustered.dendrogramY}),n.colorsList=Ms[Bne].colors):n.colorsList=Ms.bright.colors,e.aes=n,Object.assign(e,FS(t.axesSettings,t.chartType)),t.template==="heatmapClustered"&&(e==null?void 0:e.valueType)!=="discrete"&&(e.facetSettings.sharedX=!1,e.facetSettings.sharedY=!1),e}const kie=280;async function _ie(e,t,n,r,a,i){var f,d,p,g;n.rootPosition="left",n.size=RR(100);const l=r.optionsState.components,u=r.layersSettings.dendro,c=n==null?void 0:n.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const C=(f=l.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,E=$S(C,a,r.dataBindAes,"dotShape");Object.keys(E).length?c.nodeShape.valuesMap=E:c.nodeShape=I4}else typeof u.dotShape=="string"&&(c.nodeShape=u.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const C=(d=l.nodeColor.selectorStates[0])==null?void 0:d.selectedSource,E=$S(C,a,r.dataBindAes,"color");Object.keys(E).length?c.nodeColor.valuesMap=E:c.nodeColor=Gl}else typeof u.dotFill=="string"&&(c.nodeColor=u.dotFill);if(c.nodeSize&&typeof c.nodeSize=="object"){const C=(p=l.nodeSize.selectorStates[0])==null?void 0:p.selectedSource;let[E,S]=[1/0,-1/0];t.values[C].forEach(_=>{const k=Number(_);k<E&&(E=k),k>S&&(S=k)}),c.nodeSize.domain=[E,S],c.nodeSize.range=F4(u.dotSize)?[u.dotSize.min,u.dotSize.max]:[R4.min,R4.max]}else typeof u.dotSize=="number"&&(c.nodeSize=u.dotSize);if(c.lineColor&&typeof c.lineColor=="object"){const C=(g=l.lineColor.selectorStates[0])==null?void 0:g.selectedSource;c.lineColor.valuesMap=$S(C,a,r.dataBindAes,"color")}else typeof u.lineColor=="string"&&(c.lineColor=u.lineColor);if(l.heatmapForSequence.selectorStates.length>0&&(n.heatmapSettings={valueType:"stringSource",aes:{colorsList:Ms.bright.colors}},n.size.maxCellWidth=8),l.heatmapAnnotation.selectorStates.length>0){const C=Pn(l.heatmapAnnotation.selectorStates[0].selectedSource),E=await e.pFrameProvider.getColumnSpecById(C),S=(E==null?void 0:E.valueType)==="Double"||(E==null?void 0:E.valueType)==="Float"||(E==null?void 0:E.valueType)==="Int"||(E==null?void 0:E.valueType)==="Long"?"continuous":"discrete",_=Ms.bright.colors;let k;S==="discrete"&&(k=(await e.pFrameProvider.getColumnUniqueValues(C)).filter(Boolean).reduce((D,V,F)=>(D[V]=_[F%_.length],D),{})),n.heatmapSettings={valueType:S,aes:{colorsList:Ms.viridis.colors,colorsMap:k}}}return n.mode=u.mode,n.leavesMode=u.leavesMode,n.showNodesLabels=l.labels.selectorStates.length>0,n.showLeavesLabels=l.labels.selectorStates.length>0,u.showTable&&l.heatmapAnnotation.selectorStates.length===0&&l.heatmapForSequence.selectorStates.length===0&&(n.size.width=kie),n.size.scale=i/100,n.legend={show:r.layersSettings.dendro.showLegend??!0},n}const Pie=600,Hie=350,Die=400,Mie=250;function RR(e,t=0){return{width:(t>0?Die:Pie)*(e/100),height:(t>0?Mie:Hie)*(e/100)}}function Iie(e,t,n,r){var a,i;if(e!=="scatterplot"&&e!=="discrete"&&e!=="heatmap")return{name:"",show:!1};if(r.title.mode==="hidden")return{name:"",show:!1};if(r.title.mode==="custom")return{name:r.title.value,show:!0,position:r.title.position};if(r.title.mode==="auto"){const l=[];return[...((a=t.components)==null?void 0:a.filters.selectorStates)??[],...((i=t.components)==null?void 0:i.tabBy.selectorStates)??[]].forEach(({type:f,selectedSource:d,selectedFilterValue:p})=>{var g;if((!f||f==="equals")&&p){const C=n.getSourceInfo(d);l.push(((g=C.valueLabels)==null?void 0:g[p])??String(p))}}),{name:l.join(", "),show:!0,position:r.title.position}}return{name:"",show:!1}}async function Rie(e,t,n,r){var a;if(!e.ready||n===null)return null;try{const i=v4(t.chartType),l=await IR(t.optionsState,n,r),u=await i.createDataForPlot(n,l);let c=u.settings;return c.title=Iie(t.chartType,t.optionsState,e,t.axesSettings),c.size=RR(t.chartScale,((a=t.optionsState.components)==null?void 0:a.facetBy.selectorStates.length)||0),t.chartType==="discrete"&&(c=Bie(c,t,e,u.dataByColumns)),(t.chartType==="scatterplot"||t.chartType==="scatterplot-umap")&&(c=xie(c,u.dataByColumns,t,e)),t.chartType==="heatmap"&&(c=Tie(c,t)),t.chartType==="dendro"&&(c=await _ie(n,u.dataByColumns,c,t,e,t.chartScale)),{settings:c,dataByColumns:u.dataByColumns}}catch(i){return console.warn("Cant build chart data"),console.warn(i.message),null}}function NR(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function $R(e){return e.length<2?[]:e.length>2?O4.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):O4}function OS(e){return async()=>{const t=e.value.commonHelpersData.primaryGroups.value;function n(c,f){return f===null||!!c.find(d=>d.value===f)}const r=e.value.reactive.statisticsSettings,a=$R(t),i=NR(t),l=r.overall.data.testMethod,u=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,l),r.referenceGroup.validity.referenceGroup=n(i,u)}}function Nie(e){e.dispatchEvent(new MouseEvent("click"))}function $ie(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(){Nie(r)},0)}function Lie(e,t){const n=_h(hI(e));if((t==null?void 0:t.type)!==e)return n;const r=_h(t);return{...n,...r,components:{...n.components,...r.components}}}function Fie(e,t){return v.reactive({chartType:t,optionsState:Lie(t,e.optionsState),template:pie(e.template,t),statisticsSettings:vie(e.statisticsSettings),layersSettings:gie(e.layersSettings),axesSettings:wie(t,e.axesSettings),dataBindAes:_h(e.dataBindAes??{}),chartScale:100,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Qie(e,t,n,r,a){return{reactive:e,loading:v.reactive({initialInputGuide:!0,initialCharts:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:v.computed(()=>_R(e.optionsState,n.value,"primaryGrouping")),secondaryGroups:v.computed(()=>_R(e.optionsState,n.value,"secondaryGrouping")),usedAesInMapping:v.computed(()=>DR(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState)),dendroTableData:a},controller:v4(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r}}function Oie(e,t,n,r,a){const i=Fie(e,n),l=v4(i.chartType),u=v.ref(v4(i.chartType).getEmptyInputGuide(i.optionsState)),c=v.ref(null),f=v.ref(null),d=v.computed(()=>Qie(i,v.toRaw(t.value),u,c,f));if(r&&!e.optionsState){let p=!1;v.watch(()=>t.value,async g=>{if(g&&r&&!p){p=!0,d.value.loading.initialInputGuide=!0;const C=_h(hI(n)).components,E=await QS(g,r);for(const{inputName:S,selectedSource:_,filterType:k,selectedFilterValue:H,selectedFilterRange:D}of E)C[S].selectorStates.push({selectedSource:_,type:k,selectedFilterValue:H,selectedFilterRange:D});i.optionsState.components={...i.optionsState.components,...C}}},{immediate:!0})}return v.watch([()=>i.optionsState,()=>t.value,()=>a.value],async([p,g,C])=>{d.value.loading.inputGuide=!0;const E=g&&C?(await QS(g,C,!1)).map(S=>S.selectedSource):[];u.value=g?await l.calculateOptions(v.toRaw(g),p,E):l.getEmptyInputGuide(p),d.value.loading.inputGuide=!1,d.value.loading.initialInputGuide=!1},{immediate:!0,deep:!0}),v.watch([()=>u.value,()=>i.template,()=>i.layersSettings,()=>i.axesSettings,()=>i.statisticsSettings,()=>i.dataBindAes,()=>i.chartScale],async([p])=>{d.value.loading.chartData=!0,c.value=await Rie(p,i,v.toRaw(t.value),a.value),p.ready&&(d.value.loading.initialCharts=!1),d.value.loading.chartData=!1},{immediate:!0,deep:!0}),i.chartType==="dendro"&&v.watch([()=>i.optionsState,()=>t.value,()=>u.value.readyData,()=>a.value],async([p,g,C,E])=>{if(C&&g){d.value.loading.dendroTableData=!0;const S=await IR(p,g,E);f.value=await l.createTableData(g,S),d.value.loading.dendroTableData=!1}},{immediate:!0}),v.provide(jM,d),d}function ci(){return vq(v.inject(jM),"Empty store")}const Vie={class:"template-list"},Uie=["onClick"],zie=["onClick"],Gie=["onClick"],jie=v.defineComponent({__name:"TemplateForm",setup(e){const t=ci(),n=Object.entries(c7).map(([u,c])=>({id:u,text:c.map(f=>g3[f]).join(" + "),icon:kh[u]})),r=Object.entries(m3).map(([u,c])=>({id:u,text:c.map(f=>g3[f]).join(" + "),icon:kh[u]})),a=[{id:"heatmap",text:"Heatmap",icon:kh.heatmap},{id:"heatmapClustered",text:"Heatmap + Dendro",icon:kh.heatmapClustered}],i=[{id:"dendro",text:"Dendrogram",icon:kh.dendro}];function l(u){t.value.reactive.template=u}return(u,c)=>(v.openBlock(),v.createElementBlock("div",{class:"template-form",onClick:c[0]||(c[0]=f=>f.stopPropagation())},[c[5]||(c[5]=v.createElementVNode("div",{class:"template-title"},[v.createElementVNode("h3",null," Template ")],-1)),v.createElementVNode("div",Vie,[v.unref(t).reactive.chartType==="discrete"?(v.openBlock(!0),v.createElementBlock(v.Fragment,{key:0},v.renderList(v.unref(n),({id:f,text:d,icon:p})=>(v.openBlock(),v.createElementBlock("div",{class:v.normalizeClass(["template-item",{selected:v.unref(t).reactive.template===f}]),onClick:g=>l(f)},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(p))),v.createTextVNode(" "+v.toDisplayString(d)+" ",1),c[1]||(c[1]=v.createElementVNode("div",{class:"checkmark"},null,-1))],10,Uie))),256)):v.createCommentVNode("",!0),v.unref(t).reactive.chartType==="scatterplot"?(v.openBlock(!0),v.createElementBlock(v.Fragment,{key:1},v.renderList(v.unref(r),({id:f,text:d,icon:p})=>(v.openBlock(),v.createElementBlock("div",{class:v.normalizeClass(["template-item",{selected:v.unref(t).reactive.template===f}]),onClick:g=>l(f)},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(p))),v.createTextVNode(" "+v.toDisplayString(d)+" ",1),c[2]||(c[2]=v.createElementVNode("div",{class:"checkmark"},null,-1))],10,zie))),256)):v.createCommentVNode("",!0),v.unref(t).reactive.chartType==="heatmap"?(v.openBlock(),v.createElementBlock(v.Fragment,{key:2},v.renderList(a,({id:f,text:d,icon:p})=>v.createElementVNode("div",{class:v.normalizeClass(["template-item",{selected:v.unref(t).reactive.template===f}]),onClick:g=>l(f)},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(p))),v.createTextVNode(" "+v.toDisplayString(d)+" ",1),c[3]||(c[3]=v.createElementVNode("div",{class:"checkmark"},null,-1))],10,Gie)),64)):v.createCommentVNode("",!0),v.unref(t).reactive.chartType==="dendro"?(v.openBlock(),v.createElementBlock(v.Fragment,{key:3},v.renderList(i,({text:f,icon:d})=>v.createElementVNode("div",{class:v.normalizeClass(["template-item",{selected:!0}])},[(v.openBlock(),v.createBlock(v.resolveDynamicComponent(d))),v.createTextVNode(" "+v.toDisplayString(f)+" ",1),c[4]||(c[4]=v.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):v.createCommentVNode("",!0)])]))}}),Yie={class:"inputs-block"},Wie={class:"separator"},Xie={class:"arrow-circle"},Kie={class:"inputs-block"},U4=v.defineComponent({__name:"FormLayout",setup(e){return(t,n)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createElementVNode("div",{class:"left-block",onClick:n[0]||(n[0]=r=>r.stopPropagation())},[n[2]||(n[2]=v.createElementVNode("h3",null," Data Mapping ",-1)),v.createElementVNode("div",Yie,[v.renderSlot(t.$slots,"dataVar")])]),v.createElementVNode("div",Wie,[v.createElementVNode("div",Xie,[v.createVNode(v.unref(Mt.PlIcon16),{name:"arrow-right"})])]),v.createElementVNode("div",{class:"right-block",onClick:n[1]||(n[1]=r=>r.stopPropagation())},[n[3]||(n[3]=v.createElementVNode("h3",null," Chart variables ",-1)),v.createElementVNode("div",Kie,[v.renderSlot(t.$slots,"chartVar")])])],64))}});function z4(e,t,n,r,a,i){return v.computed({get(){return e.value.components[t].selectorStates.map(l=>l.selectedSource)},set(l){if(!r)return;const u=l.map(c=>{const f=e.value.components[t].selectorStates.find(d=>d.selectedSource===c);if(f)return f;{const d=i(c),p=FR(d.annotations);return d.isSubsetFilter?{selectedSource:c,type:"subset"}:p!==null?{selectedSource:c,type:"range",selectedFilterRange:p}:{selectedSource:c,type:"equals",selectedFilterValue:a.value[c][0]}}});e.value=n.changeSelected(t,r,e.value,u)}})}function G4(e,t,n,r){return v.computed({get(){return e.value.components[t].selectorStates.map(a=>a.selectedSource)},set(a){r&&(e.value=n.changeSelected(t,r,e.value,a.map(i=>({selectedSource:i}))))}})}function j4(e,t,n,r){return v.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 Zie(e,t,n){const r=e.options.map(i=>({text:t(i.value).label,value:i.value}));return n.selectorStates.map(i=>i.selectedSource).forEach(i=>{const l=t(i),u=e.stateConsistency[i]===!1;r.unshift({text:u?"Inconsistent value":l.label,value:i})}),r.sort((i,l)=>i.text>l.text?1:-1)}function Y4(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Zie(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function VS(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 US(e,t){return VS(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function zS(e,t){return VS(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function LR(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function GS(e,t){return LR(e,t)?" ":""}function FR(e){if(!e)return null;const t=e==null?void 0:e[fie],n=e==null?void 0:e[Aie];return typeof t<"u"&&typeof n<"u"?{min:Number(t),max:Number(n)}:null}function Jie(e){var n;const t=(n=e==null?void 0:e[cie])==null?void 0:n.toLowerCase();return!!t&&t!=="homogenous"&&t!=="homogeneous"}function W4(e,t){return t.reduce((n,r)=>{const a=e.getSourceInfo(r),l=[...Object.keys(e.components).filter(d=>e.components[d].options.find(p=>p.value===r))],u=Object.values(e.components).some(({stateConsistency:d})=>d[r]===!1),c=a.valueLabels,f=(e.components.filters.filterValueOptions[r]??[]).sort((d,p)=>((c==null?void 0:c[d])??d)>((c==null?void 0:c[p])??p)?1:-1);return n[r]={id:r,title:u?"Inconsistent value":a.label,type:a.type,nonHomogenous:a.kind==="axis"&&Jie(a.annotations),isSubsetFilter:a.isSubsetFilter,availableBasketIds:new Set(l),uniqueValues:f,range:FR(a.annotations),valueLabels:c},n},{})}const jS=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
28
28
  <path d="M0.0371094 12.9999H1.55611L2.29111 10.7249H6.42811L7.17711 12.9999H8.69611L5.42011 2.91992H3.31311L0.0371094 12.9999ZM2.73911 9.35292L4.34911 4.38292L5.98011 9.35292H2.73911Z" fill="#07AD3E"/>
29
29
  <path d="M11.387 13.2099C12.612 13.2099 13.487 12.7899 14.11 11.9009V12.9999H15.405V8.34492C15.405 7.71492 15.377 7.16892 15.139 6.67192C14.67 5.67792 13.62 5.22992 12.269 5.22992C10.519 5.22992 9.46895 6.05592 9.10495 7.35092L10.47 7.77092C10.729 6.93092 11.457 6.58092 12.255 6.58092C13.438 6.58092 13.914 7.07092 13.963 8.11392C12.738 8.28192 11.492 8.44292 10.617 8.70192C9.44795 9.07292 8.83195 9.80092 8.83195 10.9419C8.83195 12.1739 9.71395 13.2099 11.387 13.2099ZM10.281 10.9279C10.281 10.3329 10.722 10.0109 11.324 9.80792C11.961 9.61892 12.808 9.49992 13.949 9.33192C13.942 9.68192 13.914 10.1649 13.795 10.5149C13.627 11.2499 12.892 12.0129 11.646 12.0129C10.708 12.0129 10.281 11.5159 10.281 10.9279Z" fill="#07AD3E"/>
30
30
  </svg>`,X4=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/graph-maker",
3
- "version": "1.1.31",
3
+ "version": "1.1.32",
4
4
  "type": "module",
5
5
  "main": "dist/graph-maker.umd.cjs",
6
6
  "module": "dist/graph-maker.js",
@@ -34,7 +34,7 @@
34
34
  "@ag-grid-community/core": "^32.3.3",
35
35
  "@milaboratories/helpers": "^1.6.11",
36
36
  "@milaboratories/miplots4": "^1.0.59",
37
- "@milaboratories/pf-plots": "^1.0.72",
37
+ "@milaboratories/pf-plots": "^1.0.73",
38
38
  "@platforma-sdk/model": "^1.22.2",
39
39
  "@platforma-sdk/ui-vue": "^1.22.2",
40
40
  "@types/d3-hierarchy": "^3.1.7",