@milaboratories/graph-maker 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graph-maker.js +1 -1
- package/dist/graph-maker.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/graph-maker.js
CHANGED
|
@@ -8961,7 +8961,7 @@ async function Doe(e, t, n, r, a, o) {
|
|
|
8961
8961
|
aes: {
|
|
8962
8962
|
colorsMap: C.reduce((S, _, k) => (S[_] = B[k % B.length], S), {})
|
|
8963
8963
|
}
|
|
8964
|
-
};
|
|
8964
|
+
}, t.size.maxCellWidth = 8;
|
|
8965
8965
|
}
|
|
8966
8966
|
if (l.heatmapAnnotation.selectorStates.length > 0) {
|
|
8967
8967
|
const m = Ln(l.heatmapAnnotation.selectorStates[0].selectedSource), C = await e.pFrameProvider.getColumnSpecById(m), B = (C == null ? void 0 : C.valueType) === "Double" || (C == null ? void 0 : C.valueType) === "Float" || (C == null ? void 0 : C.valueType) === "Int" || (C == null ? void 0 : C.valueType) === "Long" ? "continuous" : "discrete", S = Uu.bright.colors;
|
package/dist/graph-maker.umd.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __p += '`),Ra&&(Dt+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+Dt+`return __p
|
|
27
|
-
}`;var Ur=C8(function(){return Xr(xe,En+"return "+Dt).apply(n,Ie)});if(Ur.source=Dt,Xp(Ur))throw Ur;return Ur}function Gk(m){return pi(m).toLowerCase()}function C9(m){return pi(m).toUpperCase()}function jk(m,b,L){if(m=pi(m),m&&(L||b===n))return Mt(m);if(!m||!(b=Yo(b)))return m;var q=ni(m),pe=ni(b),xe=wa(q,pe),Ie=al(q,pe)+1;return hu(q,xe,Ie).join("")}function E9(m,b,L){if(m=pi(m),m&&(L||b===n))return m.slice(0,Od(m)+1);if(!m||!(b=Yo(b)))return m;var q=ni(m),pe=al(q,ni(b))+1;return hu(q,0,pe).join("")}function w8(m,b,L){if(m=pi(m),m&&(L||b===n))return m.replace(Kr,"");if(!m||!(b=Yo(b)))return m;var q=ni(m),pe=wa(q,ni(b));return hu(q,pe).join("")}function Yk(m,b){var L=W,q=ne;if(Zo(b)){var pe="separator"in b?b.separator:pe;L="length"in b?Mr(b.length):L,q="omission"in b?Yo(b.omission):q}m=pi(m);var xe=m.length;if(yA(m)){var Ie=ni(m);xe=Ie.length}if(L>=xe)return m;var Ne=L-Oc(q);if(Ne<1)return q;var Ze=Ie?hu(Ie,0,Ne).join(""):m.slice(0,Ne);if(pe===n)return Ze+q;if(Ie&&(Ne+=Ze.length-Ne),S2(pe)){if(m.slice(Ne).search(pe)){var xt,St=Ze;for(pe.global||(pe=ql(pe.source,pi(Fn.exec(pe))+"g")),pe.lastIndex=0;xt=pe.exec(St);)var Dt=xt.index;Ze=Ze.slice(0,Dt===n?Ne:Dt)}}else if(m.indexOf(Yo(pe),Ne)!=Ne){var Wt=Ze.lastIndexOf(pe);Wt>-1&&(Ze=Ze.slice(0,Wt))}return Ze+q}function Wk(m){return m=pi(m),m&&no.test(m)?m.replace(Cr,M0):m}var Kk=O(function(m,b,L){return m+(L?" ":"")+b.toUpperCase()}),b9=R("toUpperCase");function S9(m,b,L){return m=pi(m),b=L?n:b,b===n?$h(m)?Lp(m):Fc(m):m.match(b)||[]}var C8=yr(function(m,b){try{return Yn(m,n,b)}catch(L){return Xp(L)?L:new Qn(L)}}),Xk=PA(function(m,b){return dr(b,function(L){L=wu(L),Il(m,L,Lt(m[L],m))}),m});function Zk(m){var b=m==null?0:m.length,L=jn();return m=b?Lr(m,function(q){if(typeof q[1]!="function")throw new bs(s);return[L(q[0]),q[1]]}):[],yr(function(q){for(var pe=-1;++pe<b;){var xe=m[pe];if(Yn(xe[0],this,q))return Yn(xe[1],this,q)}})}function Jk(m){return Yd(Go(m,h))}function B9(m){return function(){return m}}function qk(m,b){return m==null||m!==m?b:m}var e_=De(),x9=De(!0);function lf(m){return m}function T9(m){return Yc(typeof m=="function"?m:Go(m,h))}function t_(m){return Xs(Go(m,h))}function n_(m,b){return ja(m,Go(b,h))}var r_=yr(function(m,b){return function(L){return sl(L,m,b)}}),a_=yr(function(m,b){return function(L){return sl(m,L,b)}});function k9(m,b,L){var q=qs(b),pe=ll(b,q);L==null&&!(Zo(b)&&(pe.length||!q.length))&&(L=b,b=m,m=this,pe=ll(b,qs(b)));var xe=!(Zo(L)&&"chain"in L)||!!L.chain,Ie=i0(m);return dr(pe,function(Ne){var Ze=b[Ne];m[Ne]=Ze,Ie&&(m.prototype[Ne]=function(){var xt=this.__chain__;if(xe||xt){var St=m(this.__wrapped__),Dt=St.__actions__=po(this.__actions__);return Dt.push({func:Ze,args:arguments,thisArg:m}),St.__chain__=xt,St}return Ze.apply(m,rl([this.value()],arguments))})}),m}function i_(){return ua._===this&&(ua._=ed),this}function _9(){}function E8(m){return m=Mr(m),yr(function(b){return Wc(b,m)})}var P9=Yt(Lr),o_=Yt(ws),l_=Yt(Nc);function hg(m){return an(m)?X(wu(m)):yn(m)}function vg(m){return function(b){return m==null?n:uo(m,b)}}var s_=ho(),u_=ho(!0);function H9(){return[]}function D9(){return!1}function c_(){return{}}function f_(){return""}function A_(){return!0}function b8(m,b){if(m=Mr(m),m<1||m>Ae)return[];var L=de,q=zi(m,de);b=jn(b),m-=de;for(var pe=Je(q,b);++L<m;)b(L);return pe}function d_(m){return Nr(m)?Lr(m,wu):Ba(m)?[m]:po(hv(pi(m)))}function p_(m){var b=++uc;return pi(m)+b}var h_=_t(function(m,b){return m+b},0),v_=Sa("ceil"),m_=_t(function(m,b){return m/b},1),g_=Sa("floor");function y_(m){return m&&m.length?Bs(m,lf,zs):n}function w_(m,b){return m&&m.length?Bs(m,jn(b,2),zs):n}function C_(m){return ZA(m,lf)}function E_(m,b){return ZA(m,jn(b,2))}function b_(m){return m&&m.length?Bs(m,lf,bl):n}function S_(m,b){return m&&m.length?Bs(m,jn(b,2),bl):n}var B_=_t(function(m,b){return m*b},1),x_=Sa("round"),T_=_t(function(m,b){return m-b},0);function k_(m){return m&&m.length?et(m,lf):0}function Lv(m,b){return m&&m.length?et(m,jn(b,2)):0}return Ce.after=Fe,Ce.ary=ct,Ce.assign=af,Ce.assignIn=Mv,Ce.assignInWith=i1,Ce.assignWith=qp,Ce.at=u8,Ce.before=Rt,Ce.bind=Lt,Ce.bindAll=Xk,Ce.bindKey=It,Ce.castArray=t8,Ce.chain=Sv,Ce.chunk=O0,Ce.compact=vv,Ce.concat=ef,Ce.cond=Zk,Ce.conforms=Jk,Ce.constant=B9,Ce.countBy=eg,Ce.create=o1,Ce.curry=en,Ce.curryRight=gn,Ce.debounce=Cn,Ce.defaults=l1,Ce.defaultsDeep=T2,Ce.defer=fl,Ce.delay=tt,Ce.difference=ra,Ce.differenceBy=Xo,Ce.differenceWith=Xi,Ce.drop=$l,Ce.dropRight=Zu,Ce.dropRightWhile=zp,Ce.dropWhile=Ql,Ce.fill=Yh,Ce.filter=kv,Ce.flatMap=ng,Ce.flatMapDeep=r9,Ce.flatMapDepth=rg,Ce.flatten=mv,Ce.flattenDeep=e0,Ce.flattenDepth=Js,Ce.flip=Ve,Ce.flow=e_,Ce.flowRight=x9,Ce.fromPairs=gv,Ce.functions=A8,Ce.functionsIn=bk,Ce.groupBy=r0,Ce.initial=yv,Ce.intersection=Wm,Ce.intersectionBy=tf,Ce.intersectionWith=Gp,Ce.invert=d8,Ce.invertBy=Sk,Ce.invokeMap=C2,Ce.iteratee=T9,Ce.keyBy=a9,Ce.keys=qs,Ce.keysIn=of,Ce.map=Y0,Ce.mapKeys=Bk,Ce.mapValues=xk,Ce.matches=t_,Ce.matchesProperty=n_,Ce.memoize=it,Ce.merge=Tk,Ce.mergeWith=p8,Ce.method=r_,Ce.methodOf=a_,Ce.mixin=k9,Ce.negate=Qt,Ce.nthArg=E8,Ce.omit=kk,Ce.omitBy=_k,Ce.once=kn,Ce.orderBy=i9,Ce.over=P9,Ce.overArgs=Kn,Ce.overEvery=o_,Ce.overSome=l_,Ce.partial=fn,Ce.partialRight=Xn,Ce.partition=t1,Ce.pick=Pk,Ce.pickBy=h8,Ce.property=hg,Ce.propertyOf=vg,Ce.pull=Kh,Ce.pullAll=t0,Ce.pullAllBy=fs,Ce.pullAllWith=dd,Ce.pullAt=Io,Ce.range=s_,Ce.rangeRight=u_,Ce.rearg=Vl,Ce.reject=A,Ce.remove=Ol,Ce.rest=Ya,Ce.reverse=jp,Ce.sampleSize=S,Ce.set=v9,Ce.setWith=m9,Ce.shuffle=M,Ce.slice=z0,Ce.sortBy=ve,Ce.sortedUniq=Cv,Ce.sortedUniqBy=G0,Ce.split=Vk,Ce.spread=pd,Ce.tail=f2,Ce.take=A2,Ce.takeRight=Xh,Ce.takeRightWhile=Ev,Ce.takeWhile=Z5,Ce.tap=n9,Ce.throttle=o9,Ce.thru=Yf,Ce.toArray=Dv,Ce.toPairs=D2,Ce.toPairsIn=v8,Ce.toPath=d_,Ce.toPlainObject=A9,Ce.transform=ug,Ce.unary=sk,Ce.union=J5,Ce.unionBy=d2,Ce.unionWith=p2,Ce.uniq=n0,Ce.uniqBy=q5,Ce.uniqWith=Wp,Ce.unset=cg,Ce.unzip=bv,Ce.unzipWith=Ro,Ce.update=Hk,Ce.updateWith=m8,Ce.values=Rv,Ce.valuesIn=Dk,Ce.without=e9,Ce.words=S9,Ce.wrap=uk,Ce.xor=h2,Ce.xorBy=Jm,Ce.xorWith=t9,Ce.zip=v2,Ce.zipObject=m2,Ce.zipObjectDeep=g2,Ce.zipWith=rf,Ce.entries=D2,Ce.entriesIn=v8,Ce.extend=Mv,Ce.extendWith=i1,k9(Ce,Ce),Ce.add=h_,Ce.attempt=C8,Ce.camelCase=y8,Ce.capitalize=fg,Ce.ceil=v_,Ce.clamp=g8,Ce.clone=n8,Ce.cloneDeep=fk,Ce.cloneDeepWith=r8,Ce.cloneWith=ck,Ce.conformsTo=l9,Ce.deburr=Ag,Ce.defaultTo=qk,Ce.divide=m_,Ce.endsWith=M2,Ce.eq=hd,Ce.escape=dg,Ce.escapeRegExp=pg,Ce.every=tg,Ce.find=qh,Ce.findIndex=qd,Ce.findKey=d9,Ce.findLast=w2,Ce.findLastIndex=V0,Ce.findLastKey=k2,Ce.floor=g_,Ce.forEach=e1,Ce.forEachRight=Kp,Ce.forIn=sg,Ce.forInRight=c8,Ce.forOwn=_2,Ce.forOwnRight=f8,Ce.get=p9,Ce.gt=Ak,Ce.gte=dk,Ce.has=P2,Ce.hasIn=Iv,Ce.head=U0,Ce.identity=lf,Ce.includes=_v,Ce.indexOf=Ad,Ce.inRange=Mk,Ce.invoke=H2,Ce.isArguments=n1,Ce.isArray=Nr,Ce.isArrayBuffer=pk,Ce.isArrayLike=ks,Ce.isArrayLikeObject=Al,Ce.isBoolean=ag,Ce.isBuffer=a0,Ce.isDate=hk,Ce.isElement=vk,Ce.isEmpty=a8,Ce.isEqual=mk,Ce.isEqualWith=b2,Ce.isError=Xp,Ce.isFinite=s9,Ce.isFunction=i0,Ce.isInteger=ig,Ce.isLength=og,Ce.isMap=u9,Ce.isMatch=i8,Ce.isMatchWith=o8,Ce.isNaN=Zp,Ce.isNative=gk,Ce.isNil=wk,Ce.isNull=yk,Ce.isNumber=Hv,Ce.isObject=Zo,Ce.isObjectLike=dl,Ce.isPlainObject=r1,Ce.isRegExp=S2,Ce.isSafeInteger=Ck,Ce.isSet=c9,Ce.isString=B2,Ce.isSymbol=Ba,Ce.isTypedArray=Jp,Ce.isUndefined=x2,Ce.isWeakMap=lg,Ce.isWeakSet=l8,Ce.join=nf,Ce.kebabCase=Rk,Ce.last=Cu,Ce.lastIndexOf=Wh,Ce.lowerCase=g9,Ce.lowerFirst=y9,Ce.lt=s8,Ce.lte=f9,Ce.max=y_,Ce.maxBy=w_,Ce.mean=C_,Ce.meanBy=E_,Ce.min=b_,Ce.minBy=S_,Ce.stubArray=H9,Ce.stubFalse=D9,Ce.stubObject=c_,Ce.stubString=f_,Ce.stubTrue=A_,Ce.multiply=B_,Ce.nth=wv,Ce.noConflict=i_,Ce.noop=_9,Ce.now=He,Ce.pad=Lk,Ce.padEnd=Nk,Ce.padStart=lY,Ce.parseInt=Fk,Ce.random=Ik,Ce.reduce=E2,Ce.reduceRight=Pv,Ce.repeat=$k,Ce.replace=Qk,Ce.result=h9,Ce.round=x_,Ce.runInContext=ze,Ce.sample=p,Ce.size=V,Ce.snakeCase=Ok,Ce.some=J,Ce.sortedIndex=Km,Ce.sortedIndexBy=Xm,Ce.sortedIndexOf=IA,Ce.sortedLastIndex=Yp,Ce.sortedLastIndexBy=Zm,Ce.sortedLastIndexOf=RA,Ce.startCase=Uk,Ce.startsWith=w9,Ce.subtract=T_,Ce.sum=k_,Ce.sumBy=Lv,Ce.template=zk,Ce.times=b8,Ce.toFinite=W0,Ce.toInteger=Mr,Ce.toLength=a1,Ce.toLower=Gk,Ce.toNumber=LA,Ce.toSafeInteger=Ek,Ce.toString=pi,Ce.toUpper=C9,Ce.trim=jk,Ce.trimEnd=E9,Ce.trimStart=w8,Ce.truncate=Yk,Ce.unescape=Wk,Ce.uniqueId=p_,Ce.upperCase=Kk,Ce.upperFirst=b9,Ce.each=e1,Ce.eachRight=Kp,Ce.first=U0,k9(Ce,function(){var m={};return ba(Ce,function(b,L){ea.call(Ce.prototype,L)||(m[L]=b)}),m}(),{chain:!1}),Ce.VERSION=r,dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){Ce[m].placeholder=Ce}),dr(["drop","take"],function(m,b){rr.prototype[m]=function(L){L=L===n?1:Za(Mr(L),0);var q=this.__filtered__&&!b?new rr(this):this.clone();return q.__filtered__?q.__takeCount__=zi(L,q.__takeCount__):q.__views__.push({size:zi(L,de),type:m+(q.__dir__<0?"Right":"")}),q},rr.prototype[m+"Right"]=function(L){return this.reverse()[m](L).reverse()}}),dr(["filter","map","takeWhile"],function(m,b){var L=b+1,q=L==ae||L==le;rr.prototype[m]=function(pe){var xe=this.clone();return xe.__iteratees__.push({iteratee:jn(pe,3),type:L}),xe.__filtered__=xe.__filtered__||q,xe}}),dr(["head","last"],function(m,b){var L="take"+(b?"Right":"");rr.prototype[m]=function(){return this[L](1).value()[0]}}),dr(["initial","tail"],function(m,b){var L="drop"+(b?"":"Right");rr.prototype[m]=function(){return this.__filtered__?new rr(this):this[L](1)}}),rr.prototype.compact=function(){return this.filter(lf)},rr.prototype.find=function(m){return this.filter(m).head()},rr.prototype.findLast=function(m){return this.reverse().find(m)},rr.prototype.invokeMap=yr(function(m,b){return typeof m=="function"?new rr(this):this.map(function(L){return sl(L,m,b)})}),rr.prototype.reject=function(m){return this.filter(Qt(jn(m)))},rr.prototype.slice=function(m,b){m=Mr(m);var L=this;return L.__filtered__&&(m>0||b<0)?new rr(L):(m<0?L=L.takeRight(-m):m&&(L=L.drop(m)),b!==n&&(b=Mr(b),L=b<0?L.dropRight(-b):L.take(b-m)),L)},rr.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},rr.prototype.toArray=function(){return this.take(de)},ba(rr.prototype,function(m,b){var L=/^(?:filter|find|map|reject)|While$/.test(b),q=/^(?:head|last)$/.test(b),pe=Ce[q?"take"+(b=="last"?"Right":""):b],xe=q||/^find/.test(b);pe&&(Ce.prototype[b]=function(){var Ie=this.__wrapped__,Ne=q?[1]:arguments,Ze=Ie instanceof rr,xt=Ne[0],St=Ze||Nr(Ie),Dt=function(Aa){var Ra=pe.apply(Ce,rl([Aa],Ne));return q&&Wt?Ra[0]:Ra};St&&L&&typeof xt=="function"&&xt.length!=1&&(Ze=St=!1);var Wt=this.__chain__,En=!!this.__actions__.length,qn=xe&&!Wt,Ur=Ze&&!En;if(!xe&&St){Ie=Ur?Ie:new rr(this);var sr=m.apply(Ie,Ne);return sr.__actions__.push({func:Yf,args:[Dt],thisArg:n}),new oo(sr,Wt)}return qn&&Ur?m.apply(this,Ne):(sr=this.thru(Dt),qn?q?sr.value()[0]:sr.value():sr)})}),dr(["pop","push","shift","sort","splice","unshift"],function(m){var b=es[m],L=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",q=/^(?:pop|shift)$/.test(m);Ce.prototype[m]=function(){var pe=arguments;if(q&&!this.__chain__){var xe=this.value();return b.apply(Nr(xe)?xe:[],pe)}return this[L](function(Ie){return b.apply(Nr(Ie)?Ie:[],pe)})}}),ba(rr.prototype,function(m,b){var L=Ce[b];if(L){var q=L.name+"";ea.call(Pf,q)||(Pf[q]=[]),Pf[q].push({name:b,func:L})}}),Pf[Xe(n,_).name]=[{name:"wrapper",func:n}],rr.prototype.clone=bn,rr.prototype.reverse=$s,rr.prototype.value=Ga,Ce.prototype.at=Bv,Ce.prototype.chain=j0,Ce.prototype.commit=xv,Ce.prototype.next=Tv,Ce.prototype.plant=Jh,Ce.prototype.reverse=qm,Ce.prototype.toJSON=Ce.prototype.valueOf=Ce.prototype.value=y2,Ce.prototype.first=Ce.prototype.head,Pl&&(Ce.prototype[Pl]=Zh),Ce},lc=Vd();Me?((Me.exports=lc)._=lc,fe._=lc):ua._=lc}).call(ay)}(w4,w4.exports);var wX=w4.exports;const pr=y1(wX);var Hu=class g4{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return ch(this)}static fromAxisSpec(t){return new g4({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>g4.fromAxisSpec(n))}copy(){return new g4({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 g4(t)}},Dg=class AX{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return ch(this)}static fromPojo(t){return new AX(t)}};function ar(e){return e!==null&&e.kind==="column"}function LE(e){return e!==null&&e.kind==="axis"}function _n(e){const t=JSON.parse(e);if(t.kind==="column")return Dg.fromPojo(t);if(t.kind==="axis")return Hu.fromPojo(t);throw Error("wrong column or axis object")}var CX="pl7.app/axisNature",EX="pl7.app/label",tD="pl7.app/isLabel",bX="pl7.app/columnAsAxis/name",SX="pl7.app/columnAsAxis/domain";async function nD(e,t,n){let r;if(n){const a=await e.pFrameProvider.getTableOuterJoin([t,n],[]),o=a.columnsData[t.toCanonicalString()],s=a.columnsData[n.toCanonicalString()];r=o.reduce((u,c,f)=>(u[String(c)]=String(s[f]),u),{})}else r=(await e.pFrameProvider.getColumnUniqueValues(t)).reduce((o,s)=>{const u=String(s);return o[u]=u,o},{});return r}async function rD(e,t,n,r){let a;if(r){const{data:o,axesData:s}=await e.pFrameProvider.getSingleColumnData(r);a=s[t.toCanonicalString()].reduce((c,f,d)=>(c[String(f)]=String(o[d]),c),{})}else a=(await e.pFrameProvider.getAxisUniqueValues(t,[n])).reduce((s,u)=>{const c=String(u);return s[c]=c,s},{});return a}async function BX(e,t,n){const r=_n(t);if(ar(r)){const a=await e.pFrameProvider.getColumnSpecById(r);if(!a)return;const o=await Fo(e,t,[]),s={kind:"column",label:await Zi(e,t,[]),valueLabels:await nD(e,r,o),uniqueValues:a.valueType!=="Double"?await e.pFrameProvider.getColumnUniqueValues(r):[],type:a.valueType};n.set(r.toCanonicalString(),s);for(const u of a.axesSpec){const c=Hu.fromAxisSpec(u),f=c.toCanonicalString(),d=await Fo(e,f,[t]),h={kind:"axis",label:await Zi(e,f,[t]),valueLabels:await rD(e,c,r,d),uniqueValues:u.type?await e.pFrameProvider.getAxisUniqueValues(c,[r]):[],type:u.type,mustBeConsumed:oD(u),dividable:!1,spec:u};n.set(f,h)}}}function aD(e){const t=_n(e),{name:n,type:r}=t;return ar(t)?{kind:"column",label:" ",uniqueValues:[],valueLabels:{},type:t.type}:{kind:"axis",label:" ",uniqueValues:[],valueLabels:{},type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1}}function C4(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function yd(e){const{selectedSource:t,selectedFilterValue:n}=e,r=_n(t);if(!r)throw Error("Empty source selected");return LE(r)?{type:"bySingleColumnV2",column:{type:"axis",id:r.toPFrameId()},predicate:{operator:"Equal",reference:r.type==="String"?String(n):Number(n)}}:{type:"bySingleColumnV2",column:{type:"column",id:r.name},predicate:{operator:"Equal",reference:r.type==="String"?String(n):Number(n)}}}function NE(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[bX],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[SX];return ch({name:u,domain:c})}const o=e.name,s=e.domain;return ch({name:o,domain:s})}async function iD(e,t,n){for(const r of n){const a=_n(r);if(ar(a)){const o=await e.pFrameProvider.getColumnSpecById(a),s=o==null?void 0:o.axesSpec.find(u=>Hu.fromAxisSpec(u).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}async function Fo(e,t,n){const r=_n(t);async function a(f){const d=await iD(e,f,n);return d?NE(d):null}async function o(f){const d=await e.pFrameProvider.getColumnSpecById(f);return d?NE(d):null}const s=await e.pFrameProvider.getColumns([],["String"],{[tD]:"true"},!1),u=ar(r)?await o(r):await a(r),c=await Promise.all(s.map(async f=>{const d=await e.pFrameProvider.getColumnSpecById(f);return d&&d.axesSpec.length===1&&NE(d.axesSpec[0])===u})).then(f=>f.findIndex(d=>d===!0));if(c!==-1)return s[c]}async function Zi(e,t,n){var r,a;const o=_n(t),s=await Fo(e,t,n);let u;if(ar(o)?u=await e.pFrameProvider.getColumnSpecById(s??o):u=s?await e.pFrameProvider.getColumnSpecById(s):await iD(e,o,n),!u)return"";const c=(a=(r=u.annotations)==null?void 0:r[EX])!=null?a:u.name;return e.labelsModifier(u.name,c)}function oD(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[CX])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}var iy=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,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].addSelected(t,n);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].addSelected(t,n,!0,r);throw Error(`Unknown input name: ${String(e)}`)}deleteSelected(e,t,n,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].deleteSelected(n,r);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].deleteSelected(n,r);throw Error(`Unknown input name: ${String(e)}`)}changeSelected(e,t,n,r,a){const o=n.components[e].selectorStates.map(d=>[d.selectedSource,"selectedFilterValue"in d?d.selectedFilterValue:void 0]),s=r.map((d,h)=>[d,a==null?void 0:a[h]]),u=o.filter(([d])=>!s.find(h=>h[0]===d)),c=s.filter(([d])=>!o.find(h=>h[0]===d));let f=C4(n);return u.forEach(([d])=>{f=this.deleteSelected(e,t,f,d)}),c.forEach(([d,h])=>{f=this.addSelected(e,f,d,h)}),n.components[e].selectorStates=r.map(d=>n.components[e].selectorStates.find(h=>h.selectedSource===d)).filter(Boolean),f}switchDividableAxis(e,t){return C4(e)}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 getSelectedSetAndInfo(e,t,n=[]){const r=new Set,a=new Set,o=new Map;for(const{selectorStates:s}of Object.values(t.components))for(const{selectedSource:u}of s){await BX(e,u,o);const c=_n(u);if(c instanceof Dg){const f=await e.pFrameProvider.getColumnSpecById(c);f==null||f.axesSpec.forEach(d=>{const h=Hu.fromAxisSpec(d).toCanonicalString();r.add(h),a.add(u)})}}return{selectedAxesSet:r,selectedSourcesSet:a,selectedColumnsOrAxesInfo:o}}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>aD(t),freeOptionsSet:new Set,readyData:!1,ready:!1}}async calculateOptions(e,t,n=[]){const r=this.createEmptyComponentsGuide(t),a=new Set;for(const d of this.dimensionsConsumerComponents)for(const{selectedSource:h}of t.components[d].selectorStates)a.add(h);const o=new Set(this.ignoredOptionIdNames),s=new Set(n),u=new Set,{selectedColumnsOrAxesInfo:c}=await this.getSelectedSetAndInfo(e,t,n),f=new Map;for(const d of Object.keys(this.simpleComponentControllers)){const h=await this.simpleComponentControllers[d].getOptions(e,t,a,o,s);h.options.forEach(y=>{u.add(y.value)});for(const[y,E]of h.optionsInfo)f.set(y,E);r[d]=h}for(const d of Object.keys(this.filterComponentControllers)){const h=await this.filterComponentControllers[d].getOptionsFilter(e,t,a,o,s);h.options.forEach(y=>{u.add(y.value)});for(const[y,E]of h.optionsInfo)f.set(y,E);r[d]=h}return{components:r,getSourceInfo:d=>{var h,y,E;const x=(h=_n(d).toCanonicalString())!=null?h:d;return(E=(y=f.get(x))!=null?y:c.get(x))!=null?E:aD(d)},freeOptionsSet:u,readyData:this.readyDataInputs(t),ready:await this.readyForPlotBuilding(e,t,u,f)}}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;const a=[];for(const o of n){const s=_n(o),u=s?r.get(s.toCanonicalString()):null;u&&u.kind==="axis"&&u.mustBeConsumed&&a.push(o)}return this.requiredComponents.every(o=>t.components[o].selectorStates.length>0)&&a.length===0}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},lD=class dX{constructor({componentName:t,allowedTypes:n,settings:r,dependsOn:a=[],parentComponents:o=[],annotations:s={},strictlyDependsOnParents:u=!0}){this.componentName=t,this.allowedTypes=[...n],this.settings={...dX.DefaultSettings,...r},this.dependsOn=[...a],this.parentComponents=[...o],this.strictlyDependsOnParents=u,this.annotations={...s}}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}get producingMustBeConsumedAxes(){return this.settings.hasMustForConsumingAxes}addSelected(t,n,r=!1,a){const o=C4(t),s={selectedSource:n};return r&&(s.selectedFilterValue=a),o.components[this.componentName].selectorStates.push(s),o}deleteSelected(t,n){const r=C4(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 o(u){const c=Hu.fromAxisSpec(u);return a.has(c.toCanonicalString())}const s=await Promise.all(r.selectorStates.map(async({selectedSource:u})=>{const c=_n(u);if(ar(c)){const f=await t.pFrameProvider.getColumnSpecById(c);return f?this.parentComponents.length===0?!0:this.strictlyDependsOnParents?f.axesSpec.every(h=>o(h)):a.size===0||f.axesSpec.some(h=>o(h)):!1}return a.has(u)}));return r.selectorStates.reduce((u,c,f)=>(u[c.selectedSource]=s[f],u),{})}async getProducingAxes(t,n){const o=n.components[this.componentName].selectorStates.map(c=>_n(c.selectedSource)).filter(c=>ar(c)),s=new Set;return(await Promise.all(o.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{s.add(Hu.fromAxisSpec(f).toCanonicalString())})}),s}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,o)=>{const s=n.components[o].selectorStates.map(u=>_n(u.selectedSource));return a.push(...s),a},[])}async getParentAxes(t,n){const r=this.getParentSelectedSources(t,n),a=new Set;for(const o of r)if(ar(o)){const s=await t.pFrameProvider.getColumnSpecById(o);s==null||s.axesSpec.forEach(u=>{const c=Hu.fromAxisSpec(u);a.add(c.toCanonicalString())})}return a}async getAllowedAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),o=new Set,s=new Map;for(const u of a)if(ar(u)){const c=await t.pFrameProvider.getColumnSpecById(u);for(const f of(r=c==null?void 0:c.axesSpec)!=null?r:[]){const d=Hu.fromAxisSpec(f),h=this.allowedTypes.includes(f.type),y=Object.entries(this.annotations).every(([E,x])=>{var B;return((B=f.annotations)==null?void 0:B[E])===x});if(h&&y){o.add(d.toCanonicalString());const E=await Fo(t,d.toCanonicalString(),[u.toCanonicalString()]),x=await t.pFrameProvider.getAxisUniqueValues(d,[u]);s.set(d.toCanonicalString(),{kind:"axis",label:await Zi(t,d.toCanonicalString(),[u.toCanonicalString()]),valueLabels:await rD(t,d,u,E),uniqueValues:x,type:f.type,mustBeConsumed:oD(f),dividable:!1,spec:f})}}}return{axes:o,optionsInfo:s}}async getOptions(t,n,r,a=new Set,o=new Set){var s;const u=this.settings.multipleSelectors,c=this.settings.required,f=await this.checkStateConsistency(t,n);if(this.strictlyDependsOnParents&&this.parentComponents.some(P=>n.components[P].selectorStates.length===0))return{multipleSelectors:u,required:c,stateConsistency:f,options:[],optionsInfo:new Map};const d=this.getParentSelectedSources(t,n),h=(await t.pFrameProvider.getColumns(d,this.allowedTypes,this.annotations,this.strictlyDependsOnParents)).filter(P=>!r.has(P.toCanonicalString())),{axes:y,optionsInfo:E}=await this.getAllowedAxes(t,n);if(this.dependsOn.length&&this.dependsOn.some(P=>n.components[P].selectorStates.length===0))return{multipleSelectors:u,required:c,stateConsistency:f,options:[],optionsInfo:new Map};const x=n.components[this.componentName],B=[];if(this.settings.axesAllowed)for(const P of y){const _=_n(P),H=E.get(_.toCanonicalString()),D=!this.settings.homogeneous||!(H!=null&&H.mustBeConsumed),G=!r.has(P),z=a.has(_.name)||o.has(_.toCanonicalString()),$=x.selectorStates.some(F=>F.selectedSource===P);D&&G&&!z&&!$&&B.push({value:P})}if(this.settings.columnsAllowed)for(const P of h){const _=P.toCanonicalString(),H=_n(_),D=await t.pFrameProvider.getColumnSpecById(H);if(((s=D==null?void 0:D.annotations)==null?void 0:s[tD])==="true")continue;if(D){const F=await Fo(t,P.toCanonicalString(),[]),U=await t.pFrameProvider.getColumnUniqueValues(P),K=await Zi(t,P.toCanonicalString(),[]),W=await nD(t,P,F),ne={kind:"column",label:K,valueLabels:W,uniqueValues:U,type:D.valueType};E.set(H.toCanonicalString(),ne)}const z=a.has(H.name)||o.has(H.toCanonicalString()),$=n.components[this.componentName].selectorStates.some(F=>F.selectedSource===_);!z&&!$&&B.push({value:_})}return{multipleSelectors:u,required:c,stateConsistency:f,options:B,optionsInfo:E}}async getOptionsFilter(t,n,r,a=new Set,o=new Set){const s=n.components[this.componentName];if(s.type!=="filter")throw Error("Trying to take filter options for simple component");const u=await this.getOptions(t,n,r,a,o),f=this.getParentSelectedSources(t,n).filter(ar);function d(E){const x=_n(E);return ar(x)?t.pFrameProvider.getColumnUniqueValues(x):t.pFrameProvider.getAxisUniqueValues(x,f)}const h=await Promise.all(u.options.map(E=>d(E.value))),y=await Promise.all(s.selectorStates.map(E=>d(E.selectedSource)));return{...u,filterValueOptions:{...u.options.reduce((E,{value:x},B)=>(E[x]=h[B],E),{}),...s.selectorStates.reduce((E,x,B)=>(E[x.selectedSource]=y[B],E),{})}}}};lD.DefaultSettings={multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,dimensionConsumer:!1,hasMustForConsumingAxes:!1};var Gr=lD,xX={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:{}},TX=class extends iy{constructor(){super({y:new Gr({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{}}),primaryGrouping:new Gr({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new Gr({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],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=_n(r);if(!r||!ar(a))throw Error("Y column is not valid");const o={type:"columns",id:(n=ch({data:r,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?n:"",values:{}},s=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],u=[...t.components.filters.selectorStates.map(y=>_n(y.selectedSource)),...t.components.tabBy.selectorStates.map(y=>_n(y.selectedSource))].filter(ar),c=[r],f=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],d=[];for(const y of f)for(const{selectedSource:E}of y.selectorStates){d.push(_n(E));const x=await Fo(e,E,c);x&&d.push(x)}const h=await e.pFrameProvider.getTableOuterJoin([a,...u],d,s);return d.forEach(y=>{const E=y.toCanonicalString();o.values[E]=ar(y)?h.columnsData[E]:h.axesData[E]}),o.values[a.toCanonicalString()]=h.columnsData[a.toCanonicalString()],o}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,o=_n(a);if(!a||!ar(o))throw Error("Y column is not valid");const s={type:"column",value:a,label:await Zi(e,a,[])},u=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:h,label:await Zi(e,h,u),valueLabels:(n=await Fo(e,h,u))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:h,label:await Zi(e,h,u),valueLabels:(r=await Fo(e,h,u))==null?void 0:r.toCanonicalString()}}}const d=await Promise.all(t.components.facetBy.selectorStates.map(async h=>{var y,E;return{type:"column",value:(E=(y=await Fo(e,h.selectedSource,u))==null?void 0:y.toCanonicalString())!=null?E:h.selectedSource,label:await Zi(e,h.selectedSource,u)}}));return{type:"discrete",y:s,primaryGrouping:c,secondaryGrouping:f,facetBy:d}}},kX={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 E4(e,t){if(!t.length)return[];const n=t.map(o=>_n(o)),r=Object.values(e.columnsData)[0].length,a=[];for(let o=0;o<r;o++){const s=n.map(u=>{const c=u.toCanonicalString();return ar(u)?e.columnsData[c][o]:e.axesData[c][o]}).join(", ");a.push(s)}return a}var _X=class extends iy{constructor(){super({value:new Gr({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new Gr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new Gr({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["x"]}),y:new Gr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),yGroupBy:new Gr({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"]}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotations:new Gr({componentName:"annotations",allowedTypes:["String","Int"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["x","y"]})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}async readyForPlotBuilding(e,t,n,r){const{axes:a}=await this.simpleComponentControllers.x.getAllowedAxes(e,t),o=[...a],s=this.dimensionsConsumerComponents;return await super.readyForPlotBuilding(e,t,n,r)&&o.every(u=>s.some(c=>t.components[c].selectorStates.some(f=>f.selectedSource===u)))}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=_n(a);if(!a||!ar(o))throw Error("Value column is not valid");const s={type:"columns",id:(r=ch({data:a,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?r:"",values:{}},u=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],c=[...t.components.filters.selectorStates.map(F=>_n(F.selectedSource)),...t.components.tabBy.selectorStates.map(F=>_n(F.selectedSource))].filter(ar),f=[a],d=[t.components.facetBy,t.components.annotations,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy],h=[];for(const F of d)for(const{selectedSource:U}of F.selectorStates){h.push(_n(U));const K=await Fo(e,U,f);K&&h.push(K)}const y=await e.pFrameProvider.getTableOuterJoin([o,...c],h,u);h.forEach(F=>{const U=F.toCanonicalString();s.values[U]=ar(F)?y.columnsData[U]:y.axesData[U]}),s.values[o.toCanonicalString()]=y.columnsData[o.toCanonicalString()];const E=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(F=>F.selectedSource),x=E.join(", ");s.values[x]=E4(y,E);const B=t.components.x.selectorStates.map(F=>F.selectedSource),P=await Promise.all(B.map(async F=>{var U,K;return(K=(U=await Fo(e,F,f))==null?void 0:U.toCanonicalString())!=null?K:F})),_=B.join(", ");s.values[_]=E4(y,P);const H=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(F=>F.selectedSource),D=H.join(", ");s.values[D]=E4(y,H);const G=t.components.y.selectorStates.map(F=>F.selectedSource),z=G.join(", "),$=await Promise.all(G.map(async F=>{var U,K;return(K=(U=await Fo(e,F,f))==null?void 0:U.toCanonicalString())!=null?K:F}));return s.values[z]=E4(y,$),s}async createChartSettings(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=_n(a);if(!a||!ar(o))throw Error("Value column is not valid");const s=[a],u={type:"column",value:a,label:await Zi(e,a,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:G})=>_n(G)).filter(G=>LE(G)).map(G=>G.toCanonicalString()),f=c.join(", "),d=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:G})=>_n(G)).filter(G=>LE(G)).map(G=>G.toCanonicalString()),h=d.join(", "),y=await Promise.all(t.components.facetBy.selectorStates.map(async G=>{var z,$;return{type:"column",value:($=(z=await Fo(e,G.selectedSource,s))==null?void 0:z.toCanonicalString())!=null?$:G.selectedSource}})),E=await Promise.all(t.components.xGroupBy.selectorStates.map(async G=>({type:"column",label:await Zi(e,G.selectedSource,s),value:G.selectedSource}))),x=await Promise.all(t.components.yGroupBy.selectorStates.map(async G=>({type:"column",label:await Zi(e,G.selectedSource,s),value:G.selectedSource}))),B=await Promise.all(t.components.annotations.selectorStates.map(async G=>{var z,$;const F=G.selectedSource,U=_n(F),K=ar(U)?(z=(await e.pFrameProvider.getColumnAxesIds(U)).map(ne=>ne.toCanonicalString()))!=null?z:[]:[F];let W="";if(K.every(ne=>c.findIndex(Z=>Z===ne)!==-1))W="x";else if(K.every(ne=>d.findIndex(Z=>Z===ne)!==-1))W="y";else throw Error("Invalid annotation axes");return{axis:W,valueColumn:{type:"column",value:F,label:await Zi(e,F,s)},type:ar(U)&&(($=await e.pFrameProvider.getColumnSpecById(U))==null?void 0:$.valueType)==="Double"?"continuous":"discrete"}})),P=t.components.x.selectorStates.map(({selectedSource:G})=>G).join(", "),_=t.components.y.selectorStates.map(({selectedSource:G})=>G).join(", "),H=(await Promise.all(t.components.x.selectorStates.map(G=>Zi(e,G.selectedSource,s)))).join(", "),D=(await Promise.all(t.components.y.selectorStates.map(G=>Zi(e,G.selectedSource,s)))).join(", ");return{type:"heatmap",valueColumn:u,valueType:((r=await e.pFrameProvider.getColumnSpecById(o))==null?void 0:r.valueType)==="String"?"discrete":"continuous",xColumn:{type:"column",value:f,label:H,valueLabels:P},yColumn:{type:"column",value:h,label:D,valueLabels:_},facetBy:y,xGroupBy:E,yGroupBy:x,annotations:B}}},PX={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:[]}},dividedAxes:{}},HX=class extends iy{constructor(){super({x:new Gr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Gr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Gr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async readyForPlotBuilding(e,t,n,r){var a,o;if(!super.readyForPlotBuilding(e,t,n,r))return!1;const s=(a=t.components.x.selectorStates[0])==null?void 0:a.selectedSource,u=(o=t.components.y.selectorStates[0])==null?void 0:o.selectedSource;if(!this.isConsistent(e,t)||!s||!u)return!1;const{axes:c}=await this.simpleComponentControllers.y.getAllowedAxes(e,t),{axes:f}=await this.simpleComponentControllers.x.getAllowedAxes(e,t),d=_n(s),h=_n(u),y=ar(d)?[...c]:[s],E=ar(h)?[...f]:[u],x=y.filter(_=>!E.some(H=>H===_)),B=E.filter(_=>!y.some(H=>H===_));if(x.length===0&&B.length===0)return!0;const P=this.dimensionsConsumerComponents;return x.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))&&B.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))}async createDataByColumns(e,t){var n,r,a;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,u=_n(o),c=_n(s);if(!o||!u||!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=ch({data:[o,s],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],h=[...t.components.filters.selectorStates.map(_=>_n(_.selectedSource)),...t.components.tabBy.selectorStates.map(_=>_n(_.selectedSource))].filter(ar),y=[u,c].filter(ar).map(_=>_.toCanonicalString());if(y.length===0)throw Error("One of X and Y should be a column");const E=[u,c,...h],x=[],B=[t.components.grouping,t.components.facetBy];for(const _ of B)for(const{selectedSource:H}of _.selectorStates){x.push(_n(H));const D=await Fo(e,H,y);D&&x.push(D)}const P=await e.pFrameProvider.getTableOuterJoin(E,x,d);return[...E,...x].forEach(_=>{const H=_.toCanonicalString();f.values[H]=ar(_)?P.columnsData[H]:P.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((_,H)=>H),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,s=a?_n(a):null,u=o?_n(o):null;if(!a||!o||!s||!u||!ar(s)&&!ar(u))throw Error("Empty or invalid required data");const c=[s,u].filter(ar).map(x=>x.toCanonicalString()),f={type:"column",value:a,label:await Zi(e,a,c)},d={type:"column",value:o,label:await Zi(e,o,c)},h={type:"column",value:"key"},y=await Promise.all(t.components.facetBy.selectorStates.map(async x=>{var B,P;return{type:"column",value:(P=(B=await Fo(e,x.selectedSource,c))==null?void 0:B.toCanonicalString())!=null?P:x.selectedSource}})),E=await Promise.all(t.components.grouping.selectorStates.map(async x=>{var B,P;const _=x.selectedSource;return{type:"column",label:await Zi(e,_,c)||_,value:_,valueLabels:(P=(B=await Fo(e,_,c))==null?void 0:B.toCanonicalString())!=null?P:_}}));return{type:"scatterplot",x:f,y:d,keyColumn:h,facetBy:y,grouping:E}}},DX={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:{}},MX=class extends iy{constructor(){super({x:new Gr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Gr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Gr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async readyForPlotBuilding(e,t,n,r){var a,o;if(!super.readyForPlotBuilding(e,t,n,r))return!1;const s=(a=t.components.x.selectorStates[0])==null?void 0:a.selectedSource,u=(o=t.components.y.selectorStates[0])==null?void 0:o.selectedSource;if(!this.isConsistent(e,t)||!s||!u)return!1;const{axes:c}=await this.simpleComponentControllers.y.getAllowedAxes(e,t),{axes:f}=await this.simpleComponentControllers.x.getAllowedAxes(e,t),d=_n(s),h=_n(u),y=ar(d)?[...c]:[s],E=ar(h)?[...f]:[u],x=y.filter(_=>!E.some(H=>H===_)),B=E.filter(_=>!y.some(H=>H===_));if(x.length===0&&B.length===0)return!0;const P=this.dimensionsConsumerComponents;return x.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))&&B.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))}async createDataByColumns(e,t){var n,r,a;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,u=_n(o),c=_n(s);if(!o||!u||!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=ch({data:[o,s],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],h=[...t.components.filters.selectorStates.map(_=>_n(_.selectedSource)),...t.components.tabBy.selectorStates.map(_=>_n(_.selectedSource))].filter(ar),y=[u,c].filter(ar).map(_=>_.toCanonicalString());if(y.length===0)throw Error("One of X and Y should be a column");const E=[u,c,...h],x=[],B=[t.components.grouping,t.components.facetBy];for(const _ of B)for(const{selectedSource:H}of _.selectorStates){x.push(_n(H));const D=await Fo(e,H,y);D&&x.push(D)}const P=await e.pFrameProvider.getTableOuterJoin(E,x,d);return[...E,...x].forEach(_=>{const H=_.toCanonicalString();f.values[H]=ar(_)?P.columnsData[H]:P.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((_,H)=>H),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,s=a?_n(a):null,u=o?_n(o):null;if(!a||!o||!s||!u||!ar(s)&&!ar(u))throw Error("Empty or invalid required data");const c=[s,u].filter(ar).map(x=>x.toCanonicalString()),f={type:"column",value:a,label:await Zi(e,a,c)},d={type:"column",value:o,label:await Zi(e,o,c)},h={type:"column",value:"key"},y=await Promise.all(t.components.facetBy.selectorStates.map(async x=>{var B,P;return{type:"column",value:(P=(B=await Fo(e,x.selectedSource,c))==null?void 0:B.toCanonicalString())!=null?P:x.selectedSource}})),E=await Promise.all(t.components.grouping.selectorStates.map(async x=>{var B,P;const _=x.selectedSource;return{type:"column",label:await Zi(e,_,c)||_,value:_,valueLabels:(P=(B=await Fo(e,_,c))==null?void 0:B.toCanonicalString())!=null?P:_}}));return{type:"scatterplot-umap",x:f,y:d,keyColumn:h,facetBy:y,grouping:E}}},FE="pl7.app/dendrogram/nodeId",b4="sequenceOrder",S4="sequenceValue",Mg="id",IX={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:{}},RX=class extends iy{constructor(){super({value:new Gr({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{columnsAllowed:!0,required:!0,dimensionConsumer:!0}}),height:new Gr({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 Gr({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1}}),tableContent:new Gr({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),nodeShape:new Gr({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeSize:new Gr({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeColor:new Gr({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),lineColor:new Gr({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1}}),heatmapForSequence:new Gr({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0}}),heatmapAnnotation:new Gr({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,hasMustForConsumingAxes:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapAxis:new Gr({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapGroup:new Gr({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}})}),this.ignoredOptionIdNames=[FE]}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,o=_n(a);if(!a||!ar(o))throw Error("Value column is not valid");const s=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],u=[...t.components.filters.selectorStates.map(P=>_n(P.selectedSource)),...t.components.tabBy.selectorStates.map(P=>_n(P.selectedSource))].filter(ar),c=[a],f=[],d=[],h=[t.components.value],y=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],E={};for(const P of h)for(const{selectedSource:_}of P.selectorStates){const H=await Fo(e,_,c),D=H??_n(_);E[D.toCanonicalString()]=_,f.push(D)}for(const P of y)for(const{selectedSource:_}of P.selectorStates){const H=await Fo(e,_,c),D=H??_n(_);E[_]=D.toCanonicalString(),d.push(D)}const x=await e.pFrameProvider.getTableOuterJoin([...f,...u],d,s,!1);for(const P of[...f,...d]){const _=P.toCanonicalString(),H=E[P.toCanonicalString()];r[H]={data:ar(P)?x.columnsData[_]:x.axesData[_],spec:ar(P)?x.columnSpecs[_]:x.axesSpecs[_],label:await Zi(e,H,c)}}const B=Object.keys(x.axesData).find(P=>{var _;return((_=_n(P))==null?void 0:_.name)===FE});return B?r[Mg]={data:x.axesData[B],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,o,s;const u=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,c=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,f=_n(u),d=c?_n(c):null;if(!u||!ar(f))throw Error("Value column is not valid");const h={type:"columns",id:(a=ch({data:u,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},y=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],E=[...t.components.filters.selectorStates.map(K=>_n(K.selectedSource)),...t.components.tabBy.selectorStates.map(K=>_n(K.selectedSource))].filter(ar),x=[f,d].filter(ar).map(K=>K.toCanonicalString()),B=[],P=[],_=[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],H=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const K of _)for(const{selectedSource:W}of K.selectorStates){B.push(_n(W));const ne=await Fo(e,W,x);ne&&B.push(ne)}for(const K of H)for(const{selectedSource:W}of K.selectorStates){P.push(_n(W));const ne=await Fo(e,W,x);ne&&P.push(ne)}const D=await e.pFrameProvider.getTableOuterJoin([...B,...E],P,y,!1),G=t.components.heatmapForSequence.selectorStates.length>0?t.components.heatmapForSequence.selectorStates[0].selectedSource:null;let z=[],$=[];if(G){$=ar(_n(G))?D.columnsData[G]:D.axesData[G];const K=$.find(W=>W!==null);K&&(z=String(K).split("").map((W,ne)=>ne),h.values[b4]=[],h.values[S4]=[])}const F=(s=(o=Object.values(D.columnsData)[0])==null?void 0:o.length)!=null?s:0;[...B,...P].forEach(K=>{const W=K.toCanonicalString(),ne=ar(K)?D.columnsData[W]:D.axesData[W];h.values[W]=[],G?z.forEach(()=>{h.values[W]=h.values[W].concat(ne)}):h.values[W]=ne}),G&&z.forEach(K=>{h.values[b4]=h.values[b4].concat(new Array(F).fill(K)),h.values[S4]=h.values[S4].concat($.map(W=>W?String(W)[K]:null))});const U=Object.keys(D.axesData).find(K=>{var W;return((W=_n(K))==null?void 0:W.name)===FE});return U?G?(h.values[Mg]=[],z.forEach(()=>{h.values[Mg]=h.values[Mg].concat(D.axesData[U])})):h.values[Mg]=D.axesData[U]:console.warn("Missed node id axis in data column"),h}async createChartSettings(e,t){var n,r,a;const o=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,s=_n(o);if(!o||!ar(s))throw Error("Data column is not valid");const u=[o],c={type:"column",value:Mg},f={type:"column",value:o},d=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,h=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,y={};if(t.components.nodeColor.selectorStates.length){const P=t.components.nodeColor.selectorStates[0].selectedSource;y.nodeColor={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}if(t.components.nodeShape.selectorStates.length){const P=t.components.nodeShape.selectorStates[0].selectedSource;y.nodeShape={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}if(t.components.nodeSize.selectorStates.length){const P=t.components.nodeSize.selectorStates[0].selectedSource;y.nodeSize={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}if(t.components.lineColor.selectorStates.length){const P=t.components.lineColor.selectorStates[0].selectedSource;y.lineColor={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}let E,x,B;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const P=t.components.heatmapAnnotation.selectorStates[0].selectedSource;E={type:"column",value:P,label:await Zi(e,P,[]),valueLabels:(r=await Fo(e,P,[]))==null?void 0:r.toCanonicalString()};const _=t.components.heatmapAxis.selectorStates[0].selectedSource;x={type:"column",value:_,label:await Zi(e,_,[P]),valueLabels:(a=await Fo(e,_,[P]))==null?void 0:a.toCanonicalString()},B=await Promise.all(t.components.heatmapGroup.selectorStates.map(async H=>{var D;return{type:"column",value:H.selectedSource,label:await Zi(e,H.selectedSource,[P]),valueLabels:(D=await Fo(e,H.selectedSource,[P]))==null?void 0:D.toCanonicalString()}}))}else t.components.heatmapForSequence.selectorStates.length&&(E={type:"column",value:S4},x={type:"column",value:b4});return{type:"dendro",id:c,parentId:f,height:d,labels:h,aes:y,heatmapAnnotation:E,heatmapAxis:x,heatmapGroup:B}}};function B4(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 LX=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=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),r=n.filter(o=>o.spec.type==="axis"),a=n.filter(o=>o.spec.type==="column");return{axesData:r.reduce((o,s)=>{const u=Hu.fromAxisSpec(s.spec.spec);return o[u.toCanonicalString()]=B4(u.type,s.data),o},{}),data:a.length?B4(e.type,a[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[]){if(!await this.isColumnExisted(e))return[];const n={columnId:e.name,filters:t,limit:1e3};try{const r=await this.pframeDriver.getUniqueValues(this.pframeHandle,n);return Array.from(r.values.data).map(String)}catch(r){throw console.error("PFrame: getUniqueValues for column error"),r}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(ar),a=await Promise.all(r.map(u=>this.getColumnSpecById(u))),o=e.toCanonicalString(),s=r.filter((u,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(d=>Hu.fromAxisSpec(d).toCanonicalString()===o)});if(s.length===0)return[];try{const u=await Promise.all(s.map(c=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:c.name,axis:e.toPFrameId(),filters:n,limit:1e3})));return pr.uniq(pr.flatten(u.map(c=>Array.from(c.values.data).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(ar),o=t.filter(ar),s={src:{type:"outer",primary:{type:r?"inner":"full",entries:a.map(u=>({type:"column",column:u.name}))},secondary:o.map(u=>({type:"column",column:u.name}))},filters:n,sorting:[]};try{const u=await this.pframeDriver.calculateTableData(this.pframeHandle,s),c=u.filter(d=>d.spec.type==="axis"),f=u.filter(d=>d.spec.type==="column");return{axesData:c.reduce((d,h)=>{const y=Hu.fromAxisSpec(h.spec.spec);return d[y.toCanonicalString()]=B4(y.type,h.data),d},{}),columnsData:f.reduce((d,h)=>{const y=h.spec.spec,E=new Dg({name:h.spec.id,type:y.valueType});return d[E.toCanonicalString()]=B4(E.type,h.data),d},{}),columnSpecs:f.reduce((d,h)=>{const y=h.spec.spec,E=new Dg({name:h.spec.id,type:y.valueType});return d[E.toCanonicalString()]=y,d},{}),axesSpecs:c.reduce((d,h)=>{const y=h.spec.spec,E=Hu.fromAxisSpec(y);return d[E.toCanonicalString()]=y,d},{})}}catch(u){throw console.error("PFrame: table outer join error"),console.info("error with request: ",s),u}}async getColumnSpecById(e){try{const t=await this.pframeDriver.getColumnSpec(this.pframeHandle,e.name);return t??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=>Hu.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(ar(a)){const o=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...o.map(s=>Hu.fromAxisSpec(s).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumns(e,t,n,r){try{const a={columnFilter:{type:t,annotationValue:n},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:r},o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:u,spec:c})=>{s.push(new Dg({name:u,type:c.valueType}))}),s}catch(a){throw console.error("PFrame: findColumns error"),a}}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:u,spec:c})=>{s.push(new Dg({name:u,type:c.valueType}))}),s.length>1&&console.warn(`More than 1 column found for ${e}}`),s.length===0?(console.warn(`No columns found for ${e}}`),null):s[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},NX=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new LX(e,t)}},sD={controllers:{discrete:new TX,scatterplot:new HX,"scatterplot-umap":new MX,heatmap:new _X,dendro:new RX},initialStates:{discrete:xX,scatterplot:PX,"scatterplot-umap":DX,heatmap:kX,dendro:IX}};function x4(e){return sD.controllers[e]}function uD(e){return sD.initialStates[e]}const Fr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},FX={},$X={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QX(e,t){return g.openBlock(),g.createElementBlock("svg",$X,t[0]||(t[0]=[g.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),g.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 OX=Fr(FX,[["render",QX]]),VX={},UX={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zX(e,t){return g.openBlock(),g.createElementBlock("svg",UX,t[0]||(t[0]=[g.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),g.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 GX=Fr(VX,[["render",zX]]),jX={},YX={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function WX(e,t){return g.openBlock(),g.createElementBlock("svg",YX,t[0]||(t[0]=[g.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),g.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 KX=Fr(jX,[["render",WX]]),XX={},ZX={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JX(e,t){return g.openBlock(),g.createElementBlock("svg",ZX,t[0]||(t[0]=[g.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 qX=Fr(XX,[["render",JX]]),eZ={},tZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nZ(e,t){return g.openBlock(),g.createElementBlock("svg",tZ,t[0]||(t[0]=[g.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 rZ=Fr(eZ,[["render",nZ]]),aZ={},iZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oZ(e,t){return g.openBlock(),g.createElementBlock("svg",iZ,t[0]||(t[0]=[g.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),g.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),g.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const lZ=Fr(aZ,[["render",oZ]]),sZ={},uZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cZ(e,t){return g.openBlock(),g.createElementBlock("svg",uZ,t[0]||(t[0]=[g.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),g.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 fZ=Fr(sZ,[["render",cZ]]),AZ={},dZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pZ(e,t){return g.openBlock(),g.createElementBlock("svg",dZ,t[0]||(t[0]=[g.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),g.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),g.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const hZ=Fr(AZ,[["render",pZ]]),vZ={},mZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gZ(e,t){return g.openBlock(),g.createElementBlock("svg",mZ,t[0]||(t[0]=[g.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 yZ=Fr(vZ,[["render",gZ]]),wZ={},CZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function EZ(e,t){return g.openBlock(),g.createElementBlock("svg",CZ,t[0]||(t[0]=[g.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 cD=Fr(wZ,[["render",EZ]]),bZ={},SZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function BZ(e,t){return g.openBlock(),g.createElementBlock("svg",SZ,t[0]||(t[0]=[g.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 xZ=Fr(bZ,[["render",BZ]]),TZ={},kZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _Z(e,t){return g.openBlock(),g.createElementBlock("svg",kZ,t[0]||(t[0]=[g.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 PZ=Fr(TZ,[["render",_Z]]),HZ={},DZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MZ(e,t){return g.openBlock(),g.createElementBlock("svg",DZ,t[0]||(t[0]=[g.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 fD=Fr(HZ,[["render",MZ]]),IZ={},RZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function LZ(e,t){return g.openBlock(),g.createElementBlock("svg",RZ,t[0]||(t[0]=[g.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),g.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 NZ=Fr(IZ,[["render",LZ]]),FZ={},$Z={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QZ(e,t){return g.openBlock(),g.createElementBlock("svg",$Z,t[0]||(t[0]=[g.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 AD=Fr(FZ,[["render",QZ]]),OZ={},VZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function UZ(e,t){return g.openBlock(),g.createElementBlock("svg",VZ,t[0]||(t[0]=[g.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),g.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),g.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),g.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 zZ=Fr(OZ,[["render",UZ]]),GZ={},jZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YZ(e,t){return g.openBlock(),g.createElementBlock("svg",jZ,t[0]||(t[0]=[g.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 WZ=Fr(GZ,[["render",YZ]]),KZ={},XZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ZZ(e,t){return g.openBlock(),g.createElementBlock("svg",XZ,t[0]||(t[0]=[g.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 JZ=Fr(KZ,[["render",ZZ]]),qZ={},eJ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tJ(e,t){return g.openBlock(),g.createElementBlock("svg",eJ,t[0]||(t[0]=[g.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 nJ=Fr(qZ,[["render",tJ]]),Ig=[{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"}],oy="#FFFFFF",ds="#110529";Ig.reduce((e,t)=>(e[t.color]=t,e),{});const ly=Ig.slice(0,-3).map(e=>e.color),rJ=ly.filter((e,t)=>t%3===0),aJ=ly.filter((e,t)=>t%3===1),iJ=ly.filter((e,t)=>t%3===2),oJ=ly.filter((e,t)=>t%3!==2),lJ=ly,sJ=["#FFF680","#53D788","#36739D","#4A005C"],uJ=["#FFF680","#F77E5B","#902B83","#2B125C"],cJ=["#DFFADC","#74CFD1","#635AC1","#611347"],fJ=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],AJ=["#FFEA80","#F07A76","#7535A4","#003752"],dJ=["#FFF780","#6CEA90","#6C90F0","#942AAE"],pJ=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],hJ=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],vJ=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],mJ=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],gJ=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],dD=["light","bright","dark","paired","triadic"],yJ=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],wJ=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function $E(e){return dD.includes(e)}const tu={...{light:{title:"Light",colors:rJ},bright:{title:"Bright",colors:aJ},dark:{title:"Dark",colors:iJ},paired:{title:"Paired",colors:oJ},triadic:{title:"Triadic",colors:lJ}},...{viridis:{title:"Viridis",colors:sJ},magma:{title:"Magma",colors:uJ},density:{title:"Density",colors:cJ},salinity:{title:"Salinity",colors:fJ},sunset:{title:"Sunset",colors:AJ},perceptual_rainbow:{title:"Rainbow",colors:dJ}},...{spectrum:{title:"Spectrum",colors:pJ},teal_red:{title:"Teal-Red",colors:hJ},blue_red:{title:"Blue-Red",colors:vJ},lime_rose:{title:"Lime-Rose",colors:mJ},viridis_magma:{title:"Vir-Mag",colors:gJ}}},CJ="salinity",sy=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],pD="#F0F0F0",fh="21",uy=["solid","dashed","dotted","dotdash","longdash","twodash"],T4="solid",EJ={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}};function Rg(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function QE(e){let t,n,r;e.length!==2?(t=Rg,n=(u,c)=>Rg(e(u),c),r=(u,c)=>e(u)-c):(t=e===Rg||e===bJ?e:SJ,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 h=f+d>>>1;n(u[h],c)<0?f=h+1:d=h}while(f<d)}return f}function o(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const h=f+d>>>1;n(u[h],c)<=0?f=h+1:d=h}while(f<d)}return f}function s(u,c,f=0,d=u.length){const h=a(u,c,f,d-1);return h>f&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:a,center:s,right:o}}function SJ(){return 0}function hD(e){return e===null?NaN:+e}function*BJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const xJ=QE(Rg).right;QE(hD).center;function cy(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 o of e)(o=t(o,++a,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class vD extends Map{constructor(t,n=_J){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(mD(this,t))}has(t){return super.has(mD(this,t))}set(t,n){return super.set(TJ(this,t),n)}delete(t){return super.delete(kJ(this,t))}}function mD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function TJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function kJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _J(e){return e!==null&&typeof e=="object"?e.valueOf():e}function PJ(e=Rg){if(e===Rg)return gD;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 gD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HJ=Math.sqrt(50),DJ=Math.sqrt(10),MJ=Math.sqrt(2);function k4(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),s=o>=HJ?10:o>=DJ?5:o>=MJ?2:1;let u,c,f;return a<0?(f=Math.pow(10,-a)/s,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)*s,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=n&&n<2?k4(e,t,n*2):[u,c,f]}function OE(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,s]=r?k4(t,e,n):k4(e,t,n);if(!(o>=a))return[];const u=o-a+1,c=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)c[f]=(o-f)/-s;else for(let f=0;f<u;++f)c[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)c[f]=(a+f)/-s;else for(let f=0;f<u;++f)c[f]=(a+f)*s;return c}function VE(e,t,n){return t=+t,e=+e,n=+n,k4(e,t,n)[2]}function UE(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?VE(t,e,n):VE(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Zv(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 _4(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 yD(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?gD:PJ(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,d=Math.log(c),h=.5*Math.exp(2*d/3),y=.5*Math.sqrt(d*h*(c-h)/c)*(f-c/2<0?-1:1),E=Math.max(n,Math.floor(t-f*h/c+y)),x=Math.min(r,Math.floor(t+(c-f)*h/c+y));yD(e,t,E,x,a)}const o=e[t];let s=n,u=r;for(fy(e,n,t),a(e[r],o)>0&&fy(e,n,r);s<u;){for(fy(e,s,u),++s,--u;a(e[s],o)<0;)++s;for(;a(e[u],o)>0;)--u}a(e[n],o)===0?fy(e,n,u):(++u,fy(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function fy(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wD(e,t,n){if(e=Float64Array.from(BJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return _4(e);if(t>=1)return Zv(e);var r,a=(r-1)*t,o=Math.floor(a),s=Zv(yD(e,o).subarray(0,o+1)),u=_4(e.subarray(o+1));return s+(u-s)*(a-o)}}function op(e,t,n=hD){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,o=Math.floor(a),s=+n(e[o],o,e),u=+n(e[o+1],o+1,e);return s+(u-s)*(a-o)}}function Mc(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 o of e)(o=t(o,++a,e))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function IJ(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,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function Ic(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Lg(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const CD=Symbol("implicit");function Du(){var e=new vD,t=[],n=[],r=CD;function a(o){let s=e.get(o);if(s===void 0){if(r!==CD)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new vD;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Du(t,n).unknown(r)},Lg.apply(a,arguments),a}function Ay(){var e=Du().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,s,u=!1,c=0,f=0,d=.5;delete e.unknown;function h(){var y=t().length,E=a<r,x=E?a:r,B=E?r:a;o=(B-x)/Math.max(1,y-c+f*2),u&&(o=Math.floor(o)),x+=(B-x-o*(y-c))*d,s=o*(1-c),u&&(x=Math.round(x),s=Math.round(s));var P=IJ(y).map(function(_){return x+o*_});return n(E?P.reverse():P)}return e.domain=function(y){return arguments.length?(t(y),h()):t()},e.range=function(y){return arguments.length?([r,a]=y,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(y){return[r,a]=y,r=+r,a=+a,u=!0,h()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(y){return arguments.length?(u=!!y,h()):u},e.padding=function(y){return arguments.length?(c=Math.min(1,f=+y),h()):c},e.paddingInner=function(y){return arguments.length?(c=Math.min(1,y),h()):c},e.paddingOuter=function(y){return arguments.length?(f=+y,h()):f},e.align=function(y){return arguments.length?(d=Math.max(0,Math.min(1,y)),h()):d},e.copy=function(){return Ay(t(),[r,a]).round(u).paddingInner(c).paddingOuter(f).align(d)},Lg.apply(h(),arguments)}function zE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ED(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dy(){}var py=.7,P4=1/py,Ng="\\s*([+-]?\\d+)\\s*",hy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RJ=/^#([0-9a-f]{3,8})$/,LJ=new RegExp(`^rgb\\(${Ng},${Ng},${Ng}\\)$`),NJ=new RegExp(`^rgb\\(${lp},${lp},${lp}\\)$`),FJ=new RegExp(`^rgba\\(${Ng},${Ng},${Ng},${hy}\\)$`),$J=new RegExp(`^rgba\\(${lp},${lp},${lp},${hy}\\)$`),QJ=new RegExp(`^hsl\\(${hy},${lp},${lp}\\)$`),OJ=new RegExp(`^hsla\\(${hy},${lp},${lp},${hy}\\)$`),bD={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};zE(dy,Jv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SD,formatHex:SD,formatHex8:VJ,formatHsl:UJ,formatRgb:BD,toString:BD});function SD(){return this.rgb().formatHex()}function VJ(){return this.rgb().formatHex8()}function UJ(){return PD(this).formatHsl()}function BD(){return this.rgb().formatRgb()}function Jv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?xD(t):n===3?new qf(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?H4(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?H4(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=LJ.exec(e))?new qf(t[1],t[2],t[3],1):(t=NJ.exec(e))?new qf(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FJ.exec(e))?H4(t[1],t[2],t[3],t[4]):(t=$J.exec(e))?H4(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=QJ.exec(e))?_D(t[1],t[2]/100,t[3]/100,1):(t=OJ.exec(e))?_D(t[1],t[2]/100,t[3]/100,t[4]):bD.hasOwnProperty(e)?xD(bD[e]):e==="transparent"?new qf(NaN,NaN,NaN,0):null}function xD(e){return new qf(e>>16&255,e>>8&255,e&255,1)}function H4(e,t,n,r){return r<=0&&(e=t=n=NaN),new qf(e,t,n,r)}function zJ(e){return e instanceof dy||(e=Jv(e)),e?(e=e.rgb(),new qf(e.r,e.g,e.b,e.opacity)):new qf}function vy(e,t,n,r){return arguments.length===1?zJ(e):new qf(e,t,n,r??1)}function qf(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}zE(qf,vy,ED(dy,{brighter(e){return e=e==null?P4:Math.pow(P4,e),new qf(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?py:Math.pow(py,e),new qf(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qf(qv(this.r),qv(this.g),qv(this.b),D4(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:TD,formatHex:TD,formatHex8:GJ,formatRgb:kD,toString:kD}));function TD(){return`#${em(this.r)}${em(this.g)}${em(this.b)}`}function GJ(){return`#${em(this.r)}${em(this.g)}${em(this.b)}${em((isNaN(this.opacity)?1:this.opacity)*255)}`}function kD(){const e=D4(this.opacity);return`${e===1?"rgb(":"rgba("}${qv(this.r)}, ${qv(this.g)}, ${qv(this.b)}${e===1?")":`, ${e})`}`}function D4(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function em(e){return e=qv(e),(e<16?"0":"")+e.toString(16)}function _D(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new d0(e,t,n,r)}function PD(e){if(e instanceof d0)return new d0(e.h,e.s,e.l,e.opacity);if(e instanceof dy||(e=Jv(e)),!e)return new d0;if(e instanceof d0)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,u=o-a,c=(o+a)/2;return u?(t===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-t)/u+2:s=(t-n)/u+4,u/=c<.5?o+a:2-o-a,s*=60):u=c>0&&c<1?0:s,new d0(s,u,c,e.opacity)}function jJ(e,t,n,r){return arguments.length===1?PD(e):new d0(e,t,n,r??1)}function d0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}zE(d0,jJ,ED(dy,{brighter(e){return e=e==null?P4:Math.pow(P4,e),new d0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?py:Math.pow(py,e),new d0(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 qf(GE(e>=240?e-240:e+120,a,r),GE(e,a,r),GE(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new d0(HD(this.h),M4(this.s),M4(this.l),D4(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=D4(this.opacity);return`${e===1?"hsl(":"hsla("}${HD(this.h)}, ${M4(this.s)*100}%, ${M4(this.l)*100}%${e===1?")":`, ${e})`}`}}));function HD(e){return e=(e||0)%360,e<0?e+360:e}function M4(e){return Math.max(0,Math.min(1,e||0))}function GE(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 jE=e=>()=>e;function YJ(e,t){return function(n){return e+n*t}}function WJ(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 KJ(e){return(e=+e)==1?DD:function(t,n){return n-t?WJ(t,n,e):jE(isNaN(t)?n:t)}}function DD(e,t){var n=t-e;return n?YJ(e,n):jE(isNaN(e)?t:e)}const I4=function e(t){var n=KJ(t);function r(a,o){var s=n((a=vy(a)).r,(o=vy(o)).r),u=n(a.g,o.g),c=n(a.b,o.b),f=DD(a.opacity,o.opacity);return function(d){return a.r=s(d),a.g=u(d),a.b=c(d),a.opacity=f(d),a+""}}return r.gamma=e,r}(1);function XJ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function ZJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function JJ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)a[s]=KE(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(u){for(s=0;s<r;++s)o[s]=a[s](u);return o}}function qJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function p0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function eq(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]=KE(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var YE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,WE=new RegExp(YE.source,"g");function tq(e){return function(){return e}}function nq(e){return function(t){return e(t)+""}}function MD(e,t){var n=YE.lastIndex=WE.lastIndex=0,r,a,o,s=-1,u=[],c=[];for(e=e+"",t=t+"";(r=YE.exec(e))&&(a=WE.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(a=a[0])?u[s]?u[s]+=a:u[++s]=a:(u[++s]=null,c.push({i:s,x:p0(r,a)})),n=WE.lastIndex;return n<t.length&&(o=t.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?c[0]?nq(c[0].x):tq(t):(t=c.length,function(f){for(var d=0,h;d<t;++d)u[(h=c[d]).i]=h.x(f);return u.join("")})}function KE(e,t){var n=typeof t,r;return t==null||n==="boolean"?jE(t):(n==="number"?p0:n==="string"?(r=Jv(t))?(t=r,I4):MD:t instanceof Jv?I4:t instanceof Date?qJ:ZJ(t)?XJ:Array.isArray(t)?JJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eq:p0)(e,t)}function rq(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var ID=180/Math.PI,XE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function RD(e,t,n,r,a,o){var s,u,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(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,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*ID,skewX:Math.atan(c)*ID,scaleX:s,scaleY:u}}var R4;function aq(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?XE:RD(t.a,t.b,t.c,t.d,t.e,t.f)}function iq(e){return e==null||(R4||(R4=document.createElementNS("http://www.w3.org/2000/svg","g")),R4.setAttribute("transform",e),!(e=R4.transform.baseVal.consolidate()))?XE:(e=e.matrix,RD(e.a,e.b,e.c,e.d,e.e,e.f))}function LD(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function o(f,d,h,y,E,x){if(f!==h||d!==y){var B=E.push("translate(",null,t,null,n);x.push({i:B-4,x:p0(f,h)},{i:B-2,x:p0(d,y)})}else(h||y)&&E.push("translate("+h+t+y+n)}function s(f,d,h,y){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),y.push({i:h.push(a(h)+"rotate(",null,r)-2,x:p0(f,d)})):d&&h.push(a(h)+"rotate("+d+r)}function u(f,d,h,y){f!==d?y.push({i:h.push(a(h)+"skewX(",null,r)-2,x:p0(f,d)}):d&&h.push(a(h)+"skewX("+d+r)}function c(f,d,h,y,E,x){if(f!==h||d!==y){var B=E.push(a(E)+"scale(",null,",",null,")");x.push({i:B-4,x:p0(f,h)},{i:B-2,x:p0(d,y)})}else(h!==1||y!==1)&&E.push(a(E)+"scale("+h+","+y+")")}return function(f,d){var h=[],y=[];return f=e(f),d=e(d),o(f.translateX,f.translateY,d.translateX,d.translateY,h,y),s(f.rotate,d.rotate,h,y),u(f.skewX,d.skewX,h,y),c(f.scaleX,f.scaleY,d.scaleX,d.scaleY,h,y),f=d=null,function(E){for(var x=-1,B=y.length,P;++x<B;)h[(P=y[x]).i]=P.x(E);return h.join("")}}}var oq=LD(aq,"px, ","px)","deg)"),lq=LD(iq,", ",")",")"),sq=1e-12;function ND(e){return((e=Math.exp(e))+1/e)/2}function uq(e){return((e=Math.exp(e))-1/e)/2}function cq(e){return((e=Math.exp(2*e))-1)/(e+1)}const fq=function e(t,n,r){function a(o,s){var u=o[0],c=o[1],f=o[2],d=s[0],h=s[1],y=s[2],E=d-u,x=h-c,B=E*E+x*x,P,_;if(B<sq)_=Math.log(y/f)/t,P=function(F){return[u+F*E,c+F*x,f*Math.exp(t*F*_)]};else{var H=Math.sqrt(B),D=(y*y-f*f+r*B)/(2*f*n*H),G=(y*y-f*f-r*B)/(2*y*n*H),z=Math.log(Math.sqrt(D*D+1)-D),$=Math.log(Math.sqrt(G*G+1)-G);_=($-z)/t,P=function(F){var U=F*_,K=ND(z),W=f/(n*H)*(K*cq(t*U+z)-uq(z));return[u+W*E,c+W*x,f*K/ND(t*U+z)]}}return P.duration=_*1e3*t/Math.SQRT2,P}return a.rho=function(o){var s=Math.max(.001,+o),u=s*s,c=u*u;return e(s,u,c)},a}(Math.SQRT2,2,4);function Aq(e){return function(){return e}}function ZE(e){return+e}var FD=[0,1];function sp(e){return e}function JE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Aq(isNaN(t)?NaN:.5)}function dq(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function pq(e,t,n){var r=e[0],a=e[1],o=t[0],s=t[1];return a<r?(r=JE(a,r),o=n(s,o)):(r=JE(r,a),o=n(o,s)),function(u){return o(r(u))}}function hq(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=JE(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(u){var c=xJ(e,u,1,r)-1;return o[c](a[c](u))}}function L4(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qE(){var e=FD,t=FD,n=KE,r,a,o,s=sp,u,c,f;function d(){var y=Math.min(e.length,t.length);return s!==sp&&(s=dq(e[0],e[y-1])),u=y>2?hq:pq,c=f=null,h}function h(y){return y==null||isNaN(y=+y)?o:(c||(c=u(e.map(r),t,n)))(r(s(y)))}return h.invert=function(y){return s(a((f||(f=u(t,e.map(r),p0)))(y)))},h.domain=function(y){return arguments.length?(e=Array.from(y,ZE),d()):e.slice()},h.range=function(y){return arguments.length?(t=Array.from(y),d()):t.slice()},h.rangeRound=function(y){return t=Array.from(y),n=rq,d()},h.clamp=function(y){return arguments.length?(s=y?!0:sp,d()):s!==sp},h.interpolate=function(y){return arguments.length?(n=y,d()):n},h.unknown=function(y){return arguments.length?(o=y,h):o},function(y,E){return r=y,a=E,d()}}function $D(){return qE()(sp,sp)}function vq(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function N4(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 Fg(e){return e=N4(Math.abs(e)),e?e[1]:NaN}function mq(e,t){return function(n,r){for(var a=n.length,o=[],s=0,u=e[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=e[s=(s+1)%e.length];return o.reverse().join(t)}}function gq(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var yq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function my(e){if(!(t=yq.exec(e)))throw new Error("invalid format: "+e);var t;return new eb({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]})}my.prototype=eb.prototype;function eb(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+""}eb.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 wq(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 QD;function Cq(e,t){var n=N4(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(QD=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+N4(e,Math.max(0,t+o-1))[0]}function OD(e,t){var n=N4(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 VD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:vq,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)=>OD(e*100,t),r:OD,s:Cq,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function UD(e){return e}var zD=Array.prototype.map,GD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Eq(e){var t=e.grouping===void 0||e.thousands===void 0?UD:mq(zD.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+"",o=e.numerals===void 0?UD:gq(zD.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=my(h);var y=h.fill,E=h.align,x=h.sign,B=h.symbol,P=h.zero,_=h.width,H=h.comma,D=h.precision,G=h.trim,z=h.type;z==="n"?(H=!0,z="g"):VD[z]||(D===void 0&&(D=12),G=!0,z="g"),(P||y==="0"&&E==="=")&&(P=!0,y="0",E="=");var $=B==="$"?n:B==="#"&&/[boxX]/.test(z)?"0"+z.toLowerCase():"",F=B==="$"?r:/[%p]/.test(z)?s:"",U=VD[z],K=/[defgprs%]/.test(z);D=D===void 0?6:/[gprs]/.test(z)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function W(ne){var Z=$,te=F,ae,se,le;if(z==="c")te=U(ne)+te,ne="";else{ne=+ne;var Pe=ne<0||1/ne<0;if(ne=isNaN(ne)?c:U(Math.abs(ne),D),G&&(ne=wq(ne)),Pe&&+ne==0&&x!=="+"&&(Pe=!1),Z=(Pe?x==="("?x:u:x==="-"||x==="("?"":x)+Z,te=(z==="s"?GD[8+QD/3]:"")+te+(Pe&&x==="("?")":""),K){for(ae=-1,se=ne.length;++ae<se;)if(le=ne.charCodeAt(ae),48>le||le>57){te=(le===46?a+ne.slice(ae+1):ne.slice(ae))+te,ne=ne.slice(0,ae);break}}}H&&!P&&(ne=t(ne,1/0));var Ae=Z.length+ne.length+te.length,be=Ae<_?new Array(_-Ae+1).join(y):"";switch(H&&P&&(ne=t(be+ne,be.length?_-te.length:1/0),be=""),E){case"<":ne=Z+ne+te+be;break;case"=":ne=Z+be+ne+te;break;case"^":ne=be.slice(0,Ae=be.length>>1)+Z+ne+te+be.slice(Ae);break;default:ne=be+Z+ne+te;break}return o(ne)}return W.toString=function(){return h+""},W}function d(h,y){var E=f((h=my(h),h.type="f",h)),x=Math.max(-8,Math.min(8,Math.floor(Fg(y)/3)))*3,B=Math.pow(10,-x),P=GD[8+x/3];return function(_){return E(B*_)+P}}return{format:f,formatPrefix:d}}var F4,gy,jD;bq({thousands:",",grouping:[3],currency:["$",""]});function bq(e){return F4=Eq(e),gy=F4.format,jD=F4.formatPrefix,F4}function Sq(e){return Math.max(0,-Fg(Math.abs(e)))}function Bq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fg(t)/3)))*3-Fg(Math.abs(e)))}function xq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fg(t)-Fg(e))+1}function Tq(e,t,n,r){var a=UE(e,t,n),o;switch(r=my(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Bq(a,s))&&(r.precision=o),jD(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=xq(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Sq(a))&&(r.precision=o-(r.type==="%")*2);break}}return gy(r)}function tb(e){var t=e.domain;return e.ticks=function(n){var r=t();return OE(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Tq(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,s=r[a],u=r[o],c,f,d=10;for(u<s&&(f=s,s=u,u=f,f=a,a=o,o=f);d-- >0;){if(f=VE(s,u,n),f===c)return r[a]=s,r[o]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function vi(){var e=$D();return e.copy=function(){return L4(e,vi())},Lg.apply(e,arguments),tb(e)}function w1(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,ZE),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return w1(e).unknown(t)},e=arguments.length?Array.from(e,ZE):[0,1],tb(n)}function YD(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],s;return o<a&&(s=n,n=r,r=s,s=a,a=o,o=s),e[n]=t.floor(a),e[r]=t.ceil(o),e}function WD(e){return Math.log(e)}function KD(e){return Math.exp(e)}function kq(e){return-Math.log(-e)}function _q(e){return-Math.exp(-e)}function Pq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Hq(e){return e===10?Pq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Dq(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 XD(e){return(t,n)=>-e(-t,n)}function Mq(e){const t=e(WD,KD),n=t.domain;let r=10,a,o;function s(){return a=Dq(r),o=Hq(r),n()[0]<0?(a=XD(a),o=XD(o),e(kq,_q)):e(WD,KD),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const c=n();let f=c[0],d=c[c.length-1];const h=d<f;h&&([f,d]=[d,f]);let y=a(f),E=a(d),x,B;const P=u==null?10:+u;let _=[];if(!(r%1)&&E-y<P){if(y=Math.floor(y),E=Math.ceil(E),f>0){for(;y<=E;++y)for(x=1;x<r;++x)if(B=y<0?x/o(-y):x*o(y),!(B<f)){if(B>d)break;_.push(B)}}else for(;y<=E;++y)for(x=r-1;x>=1;--x)if(B=y>0?x/o(-y):x*o(y),!(B<f)){if(B>d)break;_.push(B)}_.length*2<P&&(_=OE(f,d,P))}else _=OE(y,E,Math.min(E-y,P)).map(o);return h?_.reverse():_},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=my(c)).precision==null&&(c.trim=!0),c=gy(c)),u===1/0)return c;const f=Math.max(1,r*u/t.ticks().length);return d=>{let h=d/o(Math.round(a(d)));return h*r<r-.5&&(h*=r),h<=f?c(d):""}},t.nice=()=>n(YD(n(),{floor:u=>o(Math.floor(a(u))),ceil:u=>o(Math.ceil(a(u)))})),t}function tm(){const e=Mq(qE()).domain([1,10]);return e.copy=()=>L4(e,tm()).base(e.base()),Lg.apply(e,arguments),e}function ZD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Iq(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Rq(e){return e<0?-e*e:e*e}function Lq(e){var t=e(sp,sp),n=1;function r(){return n===1?e(sp,sp):n===.5?e(Iq,Rq):e(ZD(n),ZD(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},tb(t)}function JD(){var e=Lq(qE());return e.copy=function(){return L4(e,JD()).exponent(e.exponent())},Lg.apply(e,arguments),e}const nb=new Date,rb=new Date;function nu(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const s=a(o),u=a.ceil(o);return o-s<u-o?s:u},a.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),a.range=(o,s,u)=>{const c=[];if(o=a.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return c;let f;do c.push(f=new Date(+o)),t(o,u),e(o);while(f<o&&o<s);return c},a.filter=o=>nu(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!o(s););else for(;--u>=0;)for(;t(s,1),!o(s););}),n&&(a.count=(o,s)=>(nb.setTime(+o),rb.setTime(+s),e(nb),e(rb),Math.floor(n(nb,rb))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?s=>r(s)%o===0:s=>a.count(0,s)%o===0):a)),a}const $4=nu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$4.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?nu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):$4),$4.range;const Ah=1e3,wd=Ah*60,dh=wd*60,ph=dh*24,ab=ph*7,qD=ph*30,ib=ph*365,$g=nu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ah)},(e,t)=>(t-e)/Ah,e=>e.getUTCSeconds());$g.range;const ob=nu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ah)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getMinutes());ob.range,nu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getUTCMinutes()).range;const lb=nu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ah-e.getMinutes()*wd)},(e,t)=>{e.setTime(+e+t*dh)},(e,t)=>(t-e)/dh,e=>e.getHours());lb.range,nu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*dh)},(e,t)=>(t-e)/dh,e=>e.getUTCHours()).range;const yy=nu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wd)/ph,e=>e.getDate()-1);yy.range;const sb=nu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ph,e=>e.getUTCDate()-1);sb.range,nu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ph,e=>Math.floor(e/ph)).range;function nm(e){return nu(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)/ab)}const Q4=nm(0),O4=nm(1),Nq=nm(2),Fq=nm(3),Qg=nm(4),$q=nm(5),Qq=nm(6);Q4.range,O4.range,Nq.range,Fq.range,Qg.range,$q.range,Qq.range;function rm(e){return nu(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)/ab)}const eM=rm(0),V4=rm(1),Oq=rm(2),Vq=rm(3),Og=rm(4),Uq=rm(5),zq=rm(6);eM.range,V4.range,Oq.range,Vq.range,Og.range,Uq.range,zq.range;const ub=nu(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());ub.range,nu(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 hh=nu(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());hh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nu(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)}),hh.range;const am=nu(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());am.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nu(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)}),am.range;function Gq(e,t,n,r,a,o){const s=[[$g,1,Ah],[$g,5,5*Ah],[$g,15,15*Ah],[$g,30,30*Ah],[o,1,wd],[o,5,5*wd],[o,15,15*wd],[o,30,30*wd],[a,1,dh],[a,3,3*dh],[a,6,6*dh],[a,12,12*dh],[r,1,ph],[r,2,2*ph],[n,1,ab],[t,1,qD],[t,3,3*qD],[e,1,ib]];function u(f,d,h){const y=d<f;y&&([f,d]=[d,f]);const E=h&&typeof h.range=="function"?h:c(f,d,h),x=E?E.range(f,+d+1):[];return y?x.reverse():x}function c(f,d,h){const y=Math.abs(d-f)/h,E=QE(([,,P])=>P).right(s,y);if(E===s.length)return e.every(UE(f/ib,d/ib,h));if(E===0)return $4.every(Math.max(UE(f,d,h),1));const[x,B]=s[y/s[E-1][2]<s[E][2]/y?E-1:E];return x.every(B)}return[u,c]}const[jq,Yq]=Gq(hh,ub,Q4,yy,lb,ob);function cb(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 fb(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 wy(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Wq(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,s=e.shortDays,u=e.months,c=e.shortMonths,f=Cy(a),d=Ey(a),h=Cy(o),y=Ey(o),E=Cy(s),x=Ey(s),B=Cy(u),P=Ey(u),_=Cy(c),H=Ey(c),D={a:Pe,A:Ae,b:be,B:ge,c:null,d:oM,e:oM,f:mee,g:Tee,G:_ee,H:pee,I:hee,j:vee,L:lM,m:gee,M:yee,p:de,q:Be,Q:dM,s:pM,S:wee,u:Cee,U:Eee,V:bee,w:See,W:Bee,x:null,X:null,y:xee,Y:kee,Z:Pee,"%":AM},G={a:je,A:Qe,b:$e,B:Ye,c:null,d:uM,e:uM,f:Iee,g:zee,G:jee,H:Hee,I:Dee,j:Mee,L:cM,m:Ree,M:Lee,p:We,q:dt,Q:dM,s:pM,S:Nee,u:Fee,U:$ee,V:Qee,w:Oee,W:Vee,x:null,X:null,y:Uee,Y:Gee,Z:Yee,"%":AM},z={a:W,A:ne,b:Z,B:te,c:ae,d:aM,e:aM,f:cee,g:rM,G:nM,H:iM,I:iM,j:oee,L:uee,m:iee,M:lee,p:K,q:aee,Q:Aee,s:dee,S:see,u:qq,U:eee,V:tee,w:Jq,W:nee,x:se,X:le,y:rM,Y:nM,Z:ree,"%":fee};D.x=$(n,D),D.X=$(r,D),D.c=$(t,D),G.x=$(n,G),G.X=$(r,G),G.c=$(t,G);function $(Oe,nt){return function(ut){var rt=[],gt=-1,yt=0,Xt=Oe.length,fr,Ar,ka;for(ut instanceof Date||(ut=new Date(+ut));++gt<Xt;)Oe.charCodeAt(gt)===37&&(rt.push(Oe.slice(yt,gt)),(Ar=tM[fr=Oe.charAt(++gt)])!=null?fr=Oe.charAt(++gt):Ar=fr==="e"?" ":"0",(ka=nt[fr])&&(fr=ka(ut,Ar)),rt.push(fr),yt=gt+1);return rt.push(Oe.slice(yt,gt)),rt.join("")}}function F(Oe,nt){return function(ut){var rt=wy(1900,void 0,1),gt=U(rt,Oe,ut+="",0),yt,Xt;if(gt!=ut.length)return null;if("Q"in rt)return new Date(rt.Q);if("s"in rt)return new Date(rt.s*1e3+("L"in rt?rt.L:0));if(nt&&!("Z"in rt)&&(rt.Z=0),"p"in rt&&(rt.H=rt.H%12+rt.p*12),rt.m===void 0&&(rt.m="q"in rt?rt.q:0),"V"in rt){if(rt.V<1||rt.V>53)return null;"w"in rt||(rt.w=1),"Z"in rt?(yt=fb(wy(rt.y,0,1)),Xt=yt.getUTCDay(),yt=Xt>4||Xt===0?V4.ceil(yt):V4(yt),yt=sb.offset(yt,(rt.V-1)*7),rt.y=yt.getUTCFullYear(),rt.m=yt.getUTCMonth(),rt.d=yt.getUTCDate()+(rt.w+6)%7):(yt=cb(wy(rt.y,0,1)),Xt=yt.getDay(),yt=Xt>4||Xt===0?O4.ceil(yt):O4(yt),yt=yy.offset(yt,(rt.V-1)*7),rt.y=yt.getFullYear(),rt.m=yt.getMonth(),rt.d=yt.getDate()+(rt.w+6)%7)}else("W"in rt||"U"in rt)&&("w"in rt||(rt.w="u"in rt?rt.u%7:"W"in rt?1:0),Xt="Z"in rt?fb(wy(rt.y,0,1)).getUTCDay():cb(wy(rt.y,0,1)).getDay(),rt.m=0,rt.d="W"in rt?(rt.w+6)%7+rt.W*7-(Xt+5)%7:rt.w+rt.U*7-(Xt+6)%7);return"Z"in rt?(rt.H+=rt.Z/100|0,rt.M+=rt.Z%100,fb(rt)):cb(rt)}}function U(Oe,nt,ut,rt){for(var gt=0,yt=nt.length,Xt=ut.length,fr,Ar;gt<yt;){if(rt>=Xt)return-1;if(fr=nt.charCodeAt(gt++),fr===37){if(fr=nt.charAt(gt++),Ar=z[fr in tM?nt.charAt(gt++):fr],!Ar||(rt=Ar(Oe,ut,rt))<0)return-1}else if(fr!=ut.charCodeAt(rt++))return-1}return rt}function K(Oe,nt,ut){var rt=f.exec(nt.slice(ut));return rt?(Oe.p=d.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function W(Oe,nt,ut){var rt=E.exec(nt.slice(ut));return rt?(Oe.w=x.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function ne(Oe,nt,ut){var rt=h.exec(nt.slice(ut));return rt?(Oe.w=y.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function Z(Oe,nt,ut){var rt=_.exec(nt.slice(ut));return rt?(Oe.m=H.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function te(Oe,nt,ut){var rt=B.exec(nt.slice(ut));return rt?(Oe.m=P.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function ae(Oe,nt,ut){return U(Oe,t,nt,ut)}function se(Oe,nt,ut){return U(Oe,n,nt,ut)}function le(Oe,nt,ut){return U(Oe,r,nt,ut)}function Pe(Oe){return s[Oe.getDay()]}function Ae(Oe){return o[Oe.getDay()]}function be(Oe){return c[Oe.getMonth()]}function ge(Oe){return u[Oe.getMonth()]}function de(Oe){return a[+(Oe.getHours()>=12)]}function Be(Oe){return 1+~~(Oe.getMonth()/3)}function je(Oe){return s[Oe.getUTCDay()]}function Qe(Oe){return o[Oe.getUTCDay()]}function $e(Oe){return c[Oe.getUTCMonth()]}function Ye(Oe){return u[Oe.getUTCMonth()]}function We(Oe){return a[+(Oe.getUTCHours()>=12)]}function dt(Oe){return 1+~~(Oe.getUTCMonth()/3)}return{format:function(Oe){var nt=$(Oe+="",D);return nt.toString=function(){return Oe},nt},parse:function(Oe){var nt=F(Oe+="",!1);return nt.toString=function(){return Oe},nt},utcFormat:function(Oe){var nt=$(Oe+="",G);return nt.toString=function(){return Oe},nt},utcParse:function(Oe){var nt=F(Oe+="",!0);return nt.toString=function(){return Oe},nt}}}var tM={"-":"",_:" ",0:"0"},Mu=/^\s*\d+/,Kq=/^%/,Xq=/[\\^$*+?|[\]().{}]/g;function ui(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function Zq(e){return e.replace(Xq,"\\$&")}function Cy(e){return new RegExp("^(?:"+e.map(Zq).join("|")+")","i")}function Ey(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Jq(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qq(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function nM(e,t,n){var r=Mu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rM(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 ree(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 aee(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 iee(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 aM(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oee(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 iM(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function see(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function uee(e,t,n){var r=Mu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cee(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 fee(e,t,n){var r=Kq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Aee(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dee(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oM(e,t){return ui(e.getDate(),t,2)}function pee(e,t){return ui(e.getHours(),t,2)}function hee(e,t){return ui(e.getHours()%12||12,t,2)}function vee(e,t){return ui(1+yy.count(hh(e),e),t,3)}function lM(e,t){return ui(e.getMilliseconds(),t,3)}function mee(e,t){return lM(e,t)+"000"}function gee(e,t){return ui(e.getMonth()+1,t,2)}function yee(e,t){return ui(e.getMinutes(),t,2)}function wee(e,t){return ui(e.getSeconds(),t,2)}function Cee(e){var t=e.getDay();return t===0?7:t}function Eee(e,t){return ui(Q4.count(hh(e)-1,e),t,2)}function sM(e){var t=e.getDay();return t>=4||t===0?Qg(e):Qg.ceil(e)}function bee(e,t){return e=sM(e),ui(Qg.count(hh(e),e)+(hh(e).getDay()===4),t,2)}function See(e){return e.getDay()}function Bee(e,t){return ui(O4.count(hh(e)-1,e),t,2)}function xee(e,t){return ui(e.getFullYear()%100,t,2)}function Tee(e,t){return e=sM(e),ui(e.getFullYear()%100,t,2)}function kee(e,t){return ui(e.getFullYear()%1e4,t,4)}function _ee(e,t){var n=e.getDay();return e=n>=4||n===0?Qg(e):Qg.ceil(e),ui(e.getFullYear()%1e4,t,4)}function Pee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ui(t/60|0,"0",2)+ui(t%60,"0",2)}function uM(e,t){return ui(e.getUTCDate(),t,2)}function Hee(e,t){return ui(e.getUTCHours(),t,2)}function Dee(e,t){return ui(e.getUTCHours()%12||12,t,2)}function Mee(e,t){return ui(1+sb.count(am(e),e),t,3)}function cM(e,t){return ui(e.getUTCMilliseconds(),t,3)}function Iee(e,t){return cM(e,t)+"000"}function Ree(e,t){return ui(e.getUTCMonth()+1,t,2)}function Lee(e,t){return ui(e.getUTCMinutes(),t,2)}function Nee(e,t){return ui(e.getUTCSeconds(),t,2)}function Fee(e){var t=e.getUTCDay();return t===0?7:t}function $ee(e,t){return ui(eM.count(am(e)-1,e),t,2)}function fM(e){var t=e.getUTCDay();return t>=4||t===0?Og(e):Og.ceil(e)}function Qee(e,t){return e=fM(e),ui(Og.count(am(e),e)+(am(e).getUTCDay()===4),t,2)}function Oee(e){return e.getUTCDay()}function Vee(e,t){return ui(V4.count(am(e)-1,e),t,2)}function Uee(e,t){return ui(e.getUTCFullYear()%100,t,2)}function zee(e,t){return e=fM(e),ui(e.getUTCFullYear()%100,t,2)}function Gee(e,t){return ui(e.getUTCFullYear()%1e4,t,4)}function jee(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Og(e):Og.ceil(e),ui(e.getUTCFullYear()%1e4,t,4)}function Yee(){return"+0000"}function AM(){return"%"}function dM(e){return+e}function pM(e){return Math.floor(+e/1e3)}var Vg,hM;Wee({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 Wee(e){return Vg=Wq(e),hM=Vg.format,Vg.parse,Vg.utcFormat,Vg.utcParse,Vg}function Kee(e){return new Date(e)}function Xee(e){return e instanceof Date?+e:+new Date(+e)}function vM(e,t,n,r,a,o,s,u,c,f){var d=$D(),h=d.invert,y=d.domain,E=f(".%L"),x=f(":%S"),B=f("%I:%M"),P=f("%I %p"),_=f("%a %d"),H=f("%b %d"),D=f("%B"),G=f("%Y");function z($){return(c($)<$?E:u($)<$?x:s($)<$?B:o($)<$?P:r($)<$?a($)<$?_:H:n($)<$?D:G)($)}return d.invert=function($){return new Date(h($))},d.domain=function($){return arguments.length?y(Array.from($,Xee)):y().map(Kee)},d.ticks=function($){var F=y();return e(F[0],F[F.length-1],$??10)},d.tickFormat=function($,F){return F==null?z:f(F)},d.nice=function($){var F=y();return(!$||typeof $.range!="function")&&($=t(F[0],F[F.length-1],$??10)),$?y(YD(F,$)):d},d.copy=function(){return L4(d,vM(e,t,n,r,a,o,s,u,c,f))},d}function Zee(){return Lg.apply(vM(jq,Yq,hh,ub,Q4,yy,lb,ob,$g,hM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}const Ug="#110529",Jee="solid",qee=1,Ab="21",ete=3,tte={color:"#ccc",lineShape:Jee,dotShape:Ab},nte="light";function rte(e){const t=1/(e.length-1);return vi().domain(e.map((n,r)=>r*t)).range(e)}function mM(e,t){const n=tu[e].colors,r=t.length>1?1/(t.length-1):0,a=rte(n),o=$E(e),s=t.reduce((u,c,f)=>(u[c]={colorIdx:o?f:f*r,aes:{color:o?n[f%n.length]:a(f*r),lineShape:uy[f%uy.length],dotShape:sy[f%sy.length]}},u),{});return{type:"categorical",palette:e,naAes:tte,order:t,mapping:s}}function zg(e){return mM(nte,e)}function gM(e,t,n,r){if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??zg(n?e.getSourceInfo(n).uniqueValues:[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const u=a.mapping[s].aes;return o[s]={},r.fill&&(o[s].fillColor=u.color,o[s].dotFill=u.color),r.stroke&&(o[s].lineColor=u.color),r.dotShape&&(o[s].dotShape=u.dotShape),r.lineType&&(o[s].lineShape=u.lineShape),o},{})}}function ate(e,t,n){const r=n[e]??zg(t.getSourceInfo(e).uniqueValues);return r.order.reduce((a,o)=>{const s=r.mapping[o].aes;return a[o]={fillColor:s.color,lineColor:s.color,dotFill:s.color,dotShape:s.dotShape,dotSize:ete,lineWidth:qee},a},{})}function db(e,t,n,r){const a=n[e]??zg(t.getSourceInfo(e).uniqueValues);return a.order.reduce((o,s)=>{const u=a.mapping[s].aes;return o[s]=u[r],o},{})}const ite={},ote={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function lte(e,t){return g.openBlock(),g.createElementBlock("svg",ote,t[0]||(t[0]=[g.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),g.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 ste=Fr(ite,[["render",lte]]);function ute(e,t){return t==="discrete"?e&&by[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&Sy[e]?e:"dots":t==="dendro"?"dendro":"heatmap"}const by={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"]},Sy={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},Gg={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",dendro:"Dendrogram"};function cte(e){return{overall:{data:{testMethod:(e==null?void 0:e.overall.data.testMethod)??null},validity:{testMethod:(e==null?void 0:e.overall.validity.testMethod)??!0}},referenceGroup:{data:{testMethod:(e==null?void 0:e.referenceGroup.data.testMethod)??null,referenceGroup:(e==null?void 0:e.referenceGroup.data.referenceGroup)??null,correctionMethod:(e==null?void 0:e.referenceGroup.data.correctionMethod)??"Bonferroni",format:(e==null?void 0:e.referenceGroup.data.format)??"significance",ns:(e==null?void 0:e.referenceGroup.data.ns)??!1},validity:{testMethod:(e==null?void 0:e.referenceGroup.validity.testMethod)??!0,referenceGroup:(e==null?void 0:e.referenceGroup.validity.referenceGroup)??!0}},pairwise:{data:{testMethod:(e==null?void 0:e.pairwise.data.testMethod)??null,correctionMethod:(e==null?void 0:e.pairwise.data.correctionMethod)??"Bonferroni",format:(e==null?void 0:e.pairwise.data.format)??"significance",ns:(e==null?void 0:e.pairwise.data.ns)??!1},validity:{testMethod:(e==null?void 0:e.pairwise.validity.testMethod)??!0}}}}function im(e){return typeof e=="object"&&e!==null&&"type"in e}const fte=()=>({dendro:{dotFill:ds,dotShape:fh,lineColor:ds,mode:"normal",leavesMode:"normal",showTable:!1},heatmap:{dendrogramX:!1,dendrogramY:!1},dots:{dotFill:null,dotShape:null},curve:{lineColor:ds,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:Ug,dotShape:fh,lineType:T4,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:Ug,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:fh,lineColor:Ug,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:Ug,lineType:T4,opacity:1,trim:!1},bar:{fillColor:null,lineColor:Ug,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:Ug,opacity:1},line:{pointsValues:"mean",lineColor:null,dotShape:fh,lineType:T4,dotFill:ds,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:fh,dotFill:ds,opacity:1},sina:{dotFill:null,dotShape:fh,opacity:1,showOutliers:!0}});function Ate(e){const t=fte();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const dte=()=>({title:{value:"Graph 1",position:"left",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:"center",axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3}});function yM(e){return e==="full"||e==="none"}function pte(e,t){if(!t)return dte();function n(r){return e==="heatmap"&&!yM(r)?"full":e!=="heatmap"&&yM(r)&&r==="none"?"empty":r}return{title:{...t.title},axisX:{...t.axisX},axisY:{...t.axisY},legend:{...t.legend},other:{...t.other,frame:n(t.other.frame)}}}const C1={box:OX,box_binnedDots:GX,box_jitteredDots:KX,binnedDots:qX,jitteredDots:rZ,violin:lZ,violin_binnedDots:fZ,violin_jitteredDots:hZ,bar:yZ,bar_line:cD,bar_errorbar:xZ,stackedBar:PZ,line:fD,line_binnedDots:NZ,line_jitteredDots:AD,line_errorbar:zZ,errorbar:cD,sina:WZ,dots:JZ,curve:fD,curve_dots:AD,heatmap:nJ,dendro:ste},U4=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],wM=[{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"}],CM=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}];function EM(e,t,n){var a,o,s,u,c;if(((o=(a=e.components)==null?void 0:a.y)==null?void 0:o.selectorStates.length)===0)return[];if(!((u=(s=e.components)==null?void 0:s[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 hte(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 vte(e,t,n,r){const a=[],o=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function u(c,f=!1){return c===null?s?{type:"secondaryGrouping"}:o&&!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}})}}),o&&!s&&a.push(...hte(n)),a}function mte(e,t){const n=[];return e.forEach(r=>{if(r==="dots"){const a=t[r];n.push({type:"dots",aes:{dotFill:a.dotFill??ds,dotShape:a.dotShape??fh}})}if(r==="curve"){const a=t[r];n.push({type:"curve",smoothing:a.smoothing,aes:{lineColor:a.lineColor??ds}})}}),n}function pb(e,t,n,r,a){if(e==="discrete"){const o=by[t];return vte(o,n,r,a)}if(e==="scatterplot"||e==="scatterplot-umap"){const o=Sy[t];return mte(o,n)}return[]}function By(e,t,n){return e.some(r=>{var o;const a=(o=r==null?void 0:r.aes)==null?void 0:o[t];return im(a)&&a.type===n})}function z4(e,t,n){return e.some(r=>{var o;const a=(o=r==null?void 0:r.aes)==null?void 0:o[t];return im(a)&&a.value===n})}function bM(e,t,n,r,a){var c,f,d;const o=pb(e,t,n,r,a),s={};let u=[];return e==="discrete"&&(u=["primaryGrouping","secondaryGrouping"],u.forEach(h=>{var E,x;const y=(x=(E=a.components[h])==null?void 0:E.selectorStates[0])==null?void 0:x.selectedSource;y&&(s[y]={fill:By(o,"fillColor",h)||By(o,"dotFill",h),stroke:By(o,"lineColor",h),dotShape:By(o,"dotShape",h),lineType:By(o,"lineShape",h),size:!1})})),e==="scatterplot"&&(u=a.components.grouping.selectorStates.map(h=>h.selectedSource),u.forEach(h=>{s[h]={fill:z4(o,"dotFill",h),stroke:z4(o,"lineColor",h),dotShape:z4(o,"dotShape",h),lineType:!1,size:!1}})),e==="scatterplot-umap"&&(u=a.components.grouping.selectorStates.map(h=>h.selectedSource),u.forEach(h=>{s[h]={fill:z4(o,"dotFill",h),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(y=>y!==null),u.forEach(y=>{s[y]={fill:im(n.dendro.dotFill)&&n.dendro.dotFill.value===y,stroke:im(n.dendro.lineColor)&&n.dendro.lineColor.value===y,dotShape:im(n.dendro.dotShape)&&n.dendro.dotShape.value===y,lineType:!1,size:!1}})),s}function hb(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),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 vh(e){return JSON.parse(JSON.stringify(e))}function gte(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])}async function vb(e,t,n=!0){const r=[],a=t.filter(({selectedSource:u})=>"kind"in u&&u.kind==="PColumn"),o=t.filter(({selectedSource:u})=>!("kind"in u&&u.kind==="PColumn")),s=[];for(const{inputName:u,selectedSource:c,selectedFilterValue:f}of a){const{name:d,valueType:h,annotations:y,domain:E}=c,x=await e.pFrameProvider.findColumnBy(d,h,g.toRaw(y),g.toRaw(E));if(x){const B=await e.pFrameProvider.getColumnSpecById(x),P=(u==="filters"||u==="tabBy")&&typeof f>"u"?(await e.pFrameProvider.getColumnUniqueValues(x))[0]:f;r.push({inputName:u,selectedSource:x.toCanonicalString(),selectedFilterValue:P}),s.push(...(B==null?void 0:B.axesSpec.map(_=>({spec:_,parentColumn:x})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:u,selectedSource:c})}`)}for(const{inputName:u,selectedSource:c,selectedFilterValue:f}of o){const d=Hu.fromAxisSpec(c),h=d.toCanonicalString(),y=s.find(x=>Hu.fromAxisSpec(x.spec).toCanonicalString()===h),E=(u==="filters"||u==="tabBy")&&typeof f>"u"&&(y!=null&&y.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(d,[y==null?void 0:y.parentColumn]))[0]:f;if(n||r.push({inputName:u,selectedSource:h,selectedFilterValue:E}),y)r.push({inputName:u,selectedSource:h,selectedFilterValue:E});else{const{spec:x,parentColumn:B}=s.find(P=>d.name===P.spec.name&&d.type===P.spec.type&>e(d.domain,P.spec.domain))??{};if(x){const P=(u==="filters"||u==="tabBy")&&typeof f>"u"?(await e.pFrameProvider.getAxisUniqueValues(Hu.fromAxisSpec(x),[B]))[0]:f;r.push({inputName:u,selectedSource:Hu.fromAxisSpec(x).toCanonicalString(),selectedFilterValue:P})}}}return r}async function SM(e,t,n){if(!n||n.length===0)return e;const r=await vb(t,n,!1),a=vh(e);return r.forEach(({inputName:o,selectedSource:s,selectedFilterValue:u})=>{e.components[o]&&a.components[o].selectorStates.push({selectedSource:s,selectedFilterValue:u})}),a}function yte(e,t,n){const r=pb(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState),a=bM(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState);e.layers=r;const o=t.optionsState.components;if(o.primaryGrouping.selectorStates.length&&e.primaryGrouping){const s=o.primaryGrouping.selectorStates[0].selectedSource,u=a[s];Object.assign(e.primaryGrouping,gM(n,t.dataBindAes[s],s,u))}if(o.secondaryGrouping.selectorStates&&e.secondaryGrouping){const s=o.secondaryGrouping.selectorStates[0].selectedSource,u=a[s];Object.assign(e.secondaryGrouping,gM(n,t.dataBindAes[s],s,u))}return Object.assign(e,hb(t.axesSettings,t.chartType)),e}function wte(e,t,n){e.layers=pb(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState);const r=t.optionsState.components;if(r.grouping.selectorStates.length){const a={};r.grouping.selectorStates.forEach(({selectedSource:o})=>{a[o]=ate(o,n,t.dataBindAes)}),Object.assign(e,{inheritedAes:a})}return Object.assign(e,hb(t.axesSettings,t.chartType)),e}function Cte(e,t){const n={};return(e==null?void 0:e.valueType)!=="discrete"?(t.layersSettings.heatmap.dendrogramX&&(e.dendrogramX={fillNA:0,showNodes:!1}),t.layersSettings.heatmap.dendrogramY&&(e.dendrogramY={fillNA:0,position:"right",showNodes:!1}),n.colorsList=tu[CJ].colors):n.colorsList=tu.bright.colors,e.aes=n,Object.assign(e,hb(t.axesSettings,t.chartType)),e}const Ete=280;async function bte(e,t,n,r,a,o){var f,d,h;t.rootPosition="left";const s=r.optionsState.components,u=r.layersSettings.dendro,c=t==null?void 0:t.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const y=(f=s.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,E=db(y,a,r.dataBindAes,"dotShape");Object.keys(E).length?c.nodeShape.valuesMap=E:c.nodeShape=Ab}else typeof u.dotShape=="string"&&(c.nodeShape=u.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const y=(d=s.nodeColor.selectorStates[0])==null?void 0:d.selectedSource,E=db(y,a,r.dataBindAes,"color");Object.keys(E).length?c.nodeColor.valuesMap=E:c.nodeColor=ds}else typeof u.dotFill=="string"&&(c.nodeColor=u.dotFill);if(c.lineColor&&typeof c.lineColor=="object"){const y=(h=s.lineColor.selectorStates[0])==null?void 0:h.selectedSource;c.lineColor.valuesMap=db(y,a,r.dataBindAes,"color")}else typeof u.lineColor=="string"&&(c.lineColor=u.lineColor);if(s.heatmapForSequence.selectorStates.length>0){const y=n.values.sequenceValue,E=[...new Set(y)].filter(Boolean),x=tu.bright.colors;t.heatmapSettings={valueType:"discrete",aes:{colorsMap:E.reduce((B,P,_)=>(B[P]=x[_%x.length],B),{})}}}if(s.heatmapAnnotation.selectorStates.length>0){const y=_n(s.heatmapAnnotation.selectorStates[0].selectedSource),E=await e.pFrameProvider.getColumnSpecById(y),x=(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",B=tu.bright.colors;let P;x==="discrete"&&(P=(await e.pFrameProvider.getColumnUniqueValues(y)).filter(Boolean).reduce((H,D,G)=>(H[D]=B[G%B.length],H),{})),t.heatmapSettings={valueType:x,aes:{colorsList:tu.viridis.colors,colorsMap:P}}}return t.mode=u.mode,t.leavesMode=u.leavesMode,t.showNodesLabels=!1,t.showLeavesLabels=!1,(u.showTable||s.heatmapAnnotation.selectorStates.length>0||s.heatmapForSequence.selectorStates.length>0)&&(t.legend={show:!1}),u.showTable&&s.heatmapAnnotation.selectorStates.length===0&&s.heatmapForSequence.selectorStates.length===0&&(t.size={...t.size,width:Ete*(o/100)}),t.legend={show:!0},t}const Ste=600,Bte=350,xte=400,Tte=250;function kte(e,t=0){return{width:(t>0?xte:Ste)*(e/100),height:(t>0?Tte:Bte)*(e/100)}}async function _te(e,t,n,r){var a;if(!e.ready||n===null)return null;try{const o=x4(t.chartType),s=await SM(t.optionsState,n,r),u=await o.createDataForPlot(n,s);let c=u.settings;return c.title={name:"",show:!1},c.size=kte(t.chartScale,((a=t.optionsState.components)==null?void 0:a.facetBy.selectorStates.length)||0),t.chartType==="discrete"&&(c=yte(c,t,e)),(t.chartType==="scatterplot"||t.chartType==="scatterplot-umap")&&(c=wte(c,t,e)),t.chartType==="heatmap"&&(c=Cte(c,t)),t.chartType==="dendro"&&(c=await bte(n,c,u.dataByColumns,t,e,t.chartScale)),{settings:c,dataByColumns:u.dataByColumns}}catch(o){return console.warn("Cant build chart data"),console.warn(o.message),null}}function BM(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function xM(e){return e.length<2?[]:e.length>2?U4.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):U4}function mb(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=xM(t),o=BM(t),s=r.overall.data.testMethod,u=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,s),r.referenceGroup.validity.referenceGroup=n(o,u)}}function Pte(e){e.dispatchEvent(new MouseEvent("click"))}function Hte(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(){Pte(r)},0)}function Dte(e,t){var n;return g.reactive({chartType:t,optionsState:((n=e.optionsState)==null?void 0:n.type)===t?vh(e.optionsState):vh(uD(t)),template:ute(e.template,t),statisticsSettings:cte(e.statisticsSettings),layersSettings:Ate(e.layersSettings),axesSettings:pte(t,e.axesSettings),dataBindAes:vh(e.dataBindAes??{}),chartScale:100,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Mte(e,t,n,r,a){return{reactive:e,loading:g.reactive({initialInputGuide:!0,initialCharts:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:g.computed(()=>EM(e.optionsState,n.value,"primaryGrouping")),secondaryGroups:g.computed(()=>EM(e.optionsState,n.value,"secondaryGrouping")),usedAesInMapping:g.computed(()=>bM(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState)),dendroTableData:a},controller:x4(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r}}function Ite(e,t,n,r,a){const o=Dte(e,n),s=x4(o.chartType),u=g.ref(x4(o.chartType).getEmptyInputGuide(o.optionsState)),c=g.ref(null),f=g.ref(null),d=g.computed(()=>Mte(o,g.toRaw(t.value),u,c,f));if(r&&!e.optionsState){let h=!1;g.watch(()=>t.value,async y=>{if(y&&r&&!h){h=!0,d.value.loading.initialInputGuide=!0;const E=vh(uD(n)).components,x=await vb(y,r);for(const{inputName:B,selectedSource:P,selectedFilterValue:_}of x)E[B].selectorStates.push({selectedSource:P,selectedFilterValue:_});o.optionsState.components={...o.optionsState.components,...E}}},{immediate:!0})}return g.watch([()=>o.optionsState,()=>t.value,()=>a.value],async([h,y,E])=>{d.value.loading.inputGuide=!0;const x=y&&E?(await vb(y,E,!1)).map(B=>B.selectedSource):[];u.value=y?await s.calculateOptions(g.toRaw(y),h,x):s.getEmptyInputGuide(h),d.value.loading.inputGuide=!1,d.value.loading.initialInputGuide=!1},{immediate:!0,deep:!0}),g.watch([()=>u.value,()=>o],async([h,y])=>{d.value.loading.chartData=!0,c.value=await _te(h,y,g.toRaw(t.value),a.value),h.ready&&(d.value.loading.initialCharts=!1),d.value.loading.chartData=!1},{immediate:!0,deep:!0}),o.chartType==="dendro"&&g.watch([()=>o.optionsState,()=>t.value,()=>u.value.readyData,()=>a.value],async([h,y,E,x])=>{if(E&&y){d.value.loading.dendroTableData=!0;const B=await SM(h,y,x);f.value=await s.createTableData(y,B),d.value.loading.dendroTableData=!1}},{immediate:!0}),g.provide(eD,d),d}function Ti(){return gX(g.inject(eD),"Empty store")}const Rte={class:"template-list"},Lte=["onClick"],Nte=["onClick"],Fte=g.defineComponent({__name:"TemplateForm",setup(e){const t=Ti(),n=Object.entries(by).map(([u,c])=>({id:u,text:c.map(f=>Gg[f]).join(" + "),icon:C1[u]})),r=Object.entries(Sy).map(([u,c])=>({id:u,text:c.map(f=>Gg[f]).join(" + "),icon:C1[u]})),a=[{id:"heatmap",text:"Heatmap",icon:C1.heatmap}],o=[{id:"dendro",text:"Dendrogram",icon:C1.dendro}];function s(u){t.value.reactive.template=u}return(u,c)=>(g.openBlock(),g.createElementBlock("div",{class:"template-form",onClick:c[0]||(c[0]=f=>f.stopPropagation())},[c[5]||(c[5]=g.createElementVNode("div",{class:"template-title"},[g.createElementVNode("h3",null," Template ")],-1)),g.createElementVNode("div",Rte,[g.unref(t).reactive.chartType==="discrete"?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:0},g.renderList(g.unref(n),({id:f,text:d,icon:h})=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["template-item",{selected:g.unref(t).reactive.template===f}]),onClick:y=>s(f)},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(h))),g.createTextVNode(" "+g.toDisplayString(d)+" ",1),c[1]||(c[1]=g.createElementVNode("div",{class:"checkmark"},null,-1))],10,Lte))),256)):g.createCommentVNode("",!0),g.unref(t).reactive.chartType==="scatterplot"?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:1},g.renderList(g.unref(r),({id:f,text:d,icon:h})=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["template-item",{selected:g.unref(t).reactive.template===f}]),onClick:y=>s(f)},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(h))),g.createTextVNode(" "+g.toDisplayString(d)+" ",1),c[2]||(c[2]=g.createElementVNode("div",{class:"checkmark"},null,-1))],10,Nte))),256)):g.createCommentVNode("",!0),g.unref(t).reactive.chartType==="heatmap"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},g.renderList(a,({text:f,icon:d})=>g.createElementVNode("div",{class:g.normalizeClass(["template-item",{selected:!0}])},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(d))),g.createTextVNode(" "+g.toDisplayString(f)+" ",1),c[3]||(c[3]=g.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):g.createCommentVNode("",!0),g.unref(t).reactive.chartType==="dendro"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:3},g.renderList(o,({text:f,icon:d})=>g.createElementVNode("div",{class:g.normalizeClass(["template-item",{selected:!0}])},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(d))),g.createTextVNode(" "+g.toDisplayString(f)+" ",1),c[4]||(c[4]=g.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):g.createCommentVNode("",!0)])]))}}),$te={class:"inputs-block"},Qte={class:"separator"},Ote={class:"arrow-circle"},Vte={class:"inputs-block"},G4=g.defineComponent({__name:"FormLayout",setup(e){return(t,n)=>(g.openBlock(),g.createElementBlock(g.Fragment,null,[g.createElementVNode("div",{class:"left-block",onClick:n[0]||(n[0]=r=>r.stopPropagation())},[n[2]||(n[2]=g.createElementVNode("h3",null," Data Mapping ",-1)),g.createElementVNode("div",$te,[g.renderSlot(t.$slots,"dataVar")])]),g.createElementVNode("div",Qte,[g.createElementVNode("div",Ote,[g.createVNode(g.unref(Ot.PlIcon16),{name:"arrow-right"})])]),g.createElementVNode("div",{class:"right-block",onClick:n[1]||(n[1]=r=>r.stopPropagation())},[n[3]||(n[3]=g.createElementVNode("h3",null," Chart variables ",-1)),g.createElementVNode("div",Vte,[g.renderSlot(t.$slots,"chartVar")])])],64))}});function j4(e,t,n,r,a){return g.computed({get(){return e.value.components[t].selectorStates.map(o=>o.selectedSource)},set(o){if(!r)return;const s=o.map(u=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===u);return c?c.selectedFilterValue:a.value[u][0]});e.value=n.changeSelected(t,r,e.value,o,s)}})}function Y4(e,t,n,r){return g.computed({get(){return e.value.components[t].selectorStates.map(a=>a.selectedSource)},set(a){r&&(e.value=n.changeSelected(t,r,e.value,a))}})}function W4(e,t,n,r){return g.computed({get(){var a;return((a=e.value.components[t].selectorStates.map(o=>o.selectedSource))==null?void 0:a[0])??void 0},set(a){r&&(e.value=n.changeSelected(t,r,e.value,typeof a>"u"?[]:[a]))}})}function Ute(e,t,n){const r=e.options.map(o=>({text:t(o.value).label,value:o.value}));return n.selectorStates.map(o=>o.selectedSource).forEach(o=>{const s=t(o),u=e.stateConsistency[o]===!1;r.unshift({text:u?"Inconsistent value":s.label,value:o})}),r.sort((o,s)=>o.text>s.text?1:-1)}function K4(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Ute(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function X4(e,t){if(!e.value.readyData)return[];const n=new Set;return t.forEach(r=>{e.value.components[r].options.forEach(({value:o})=>{n.add(o)})}),[...n].map(r=>({id:r,info:e.value.getSourceInfo(r)}))}function TM(e,t){return X4(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function kM(e,t){return X4(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function _M(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function gb(e,t){return _M(e,t)?" ":""}function Z4(e,t){return t.reduce((n,r)=>{const a=e.getSourceInfo(r),s=[...Object.keys(e.components).filter(d=>e.components[d].options.find(h=>h.value===r))],u=Object.values(e.components).some(({stateConsistency:d})=>d[r]===!1),c=a.valueLabels,f=(e.components.filters.filterValueOptions[r]??[]).sort((d,h)=>(c[d]??d)>(c[h]??h)?1:-1);return n[r]={id:r,title:u?"Inconsistent value":a.label,type:a.type==="String"?"string":"number",nonHomogenous:a.kind==="axis"&&a.mustBeConsumed,availableBasketIds:new Set(s),uniqueValues:f,valueLabels:c},n},{})}const yb=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
27
|
+
}`;var Ur=C8(function(){return Xr(xe,En+"return "+Dt).apply(n,Ie)});if(Ur.source=Dt,Xp(Ur))throw Ur;return Ur}function Gk(m){return pi(m).toLowerCase()}function C9(m){return pi(m).toUpperCase()}function jk(m,b,L){if(m=pi(m),m&&(L||b===n))return Mt(m);if(!m||!(b=Yo(b)))return m;var q=ni(m),pe=ni(b),xe=wa(q,pe),Ie=al(q,pe)+1;return hu(q,xe,Ie).join("")}function E9(m,b,L){if(m=pi(m),m&&(L||b===n))return m.slice(0,Od(m)+1);if(!m||!(b=Yo(b)))return m;var q=ni(m),pe=al(q,ni(b))+1;return hu(q,0,pe).join("")}function w8(m,b,L){if(m=pi(m),m&&(L||b===n))return m.replace(Kr,"");if(!m||!(b=Yo(b)))return m;var q=ni(m),pe=wa(q,ni(b));return hu(q,pe).join("")}function Yk(m,b){var L=W,q=ne;if(Zo(b)){var pe="separator"in b?b.separator:pe;L="length"in b?Mr(b.length):L,q="omission"in b?Yo(b.omission):q}m=pi(m);var xe=m.length;if(yA(m)){var Ie=ni(m);xe=Ie.length}if(L>=xe)return m;var Ne=L-Oc(q);if(Ne<1)return q;var Ze=Ie?hu(Ie,0,Ne).join(""):m.slice(0,Ne);if(pe===n)return Ze+q;if(Ie&&(Ne+=Ze.length-Ne),S2(pe)){if(m.slice(Ne).search(pe)){var xt,St=Ze;for(pe.global||(pe=ql(pe.source,pi(Fn.exec(pe))+"g")),pe.lastIndex=0;xt=pe.exec(St);)var Dt=xt.index;Ze=Ze.slice(0,Dt===n?Ne:Dt)}}else if(m.indexOf(Yo(pe),Ne)!=Ne){var Wt=Ze.lastIndexOf(pe);Wt>-1&&(Ze=Ze.slice(0,Wt))}return Ze+q}function Wk(m){return m=pi(m),m&&no.test(m)?m.replace(Cr,M0):m}var Kk=O(function(m,b,L){return m+(L?" ":"")+b.toUpperCase()}),b9=R("toUpperCase");function S9(m,b,L){return m=pi(m),b=L?n:b,b===n?$h(m)?Lp(m):Fc(m):m.match(b)||[]}var C8=yr(function(m,b){try{return Yn(m,n,b)}catch(L){return Xp(L)?L:new Qn(L)}}),Xk=PA(function(m,b){return dr(b,function(L){L=wu(L),Il(m,L,Lt(m[L],m))}),m});function Zk(m){var b=m==null?0:m.length,L=jn();return m=b?Lr(m,function(q){if(typeof q[1]!="function")throw new bs(s);return[L(q[0]),q[1]]}):[],yr(function(q){for(var pe=-1;++pe<b;){var xe=m[pe];if(Yn(xe[0],this,q))return Yn(xe[1],this,q)}})}function Jk(m){return Yd(Go(m,h))}function B9(m){return function(){return m}}function qk(m,b){return m==null||m!==m?b:m}var e_=De(),x9=De(!0);function lf(m){return m}function T9(m){return Yc(typeof m=="function"?m:Go(m,h))}function t_(m){return Xs(Go(m,h))}function n_(m,b){return ja(m,Go(b,h))}var r_=yr(function(m,b){return function(L){return sl(L,m,b)}}),a_=yr(function(m,b){return function(L){return sl(m,L,b)}});function k9(m,b,L){var q=qs(b),pe=ll(b,q);L==null&&!(Zo(b)&&(pe.length||!q.length))&&(L=b,b=m,m=this,pe=ll(b,qs(b)));var xe=!(Zo(L)&&"chain"in L)||!!L.chain,Ie=i0(m);return dr(pe,function(Ne){var Ze=b[Ne];m[Ne]=Ze,Ie&&(m.prototype[Ne]=function(){var xt=this.__chain__;if(xe||xt){var St=m(this.__wrapped__),Dt=St.__actions__=po(this.__actions__);return Dt.push({func:Ze,args:arguments,thisArg:m}),St.__chain__=xt,St}return Ze.apply(m,rl([this.value()],arguments))})}),m}function i_(){return ua._===this&&(ua._=ed),this}function _9(){}function E8(m){return m=Mr(m),yr(function(b){return Wc(b,m)})}var P9=Yt(Lr),o_=Yt(ws),l_=Yt(Nc);function hg(m){return an(m)?X(wu(m)):yn(m)}function vg(m){return function(b){return m==null?n:uo(m,b)}}var s_=ho(),u_=ho(!0);function H9(){return[]}function D9(){return!1}function c_(){return{}}function f_(){return""}function A_(){return!0}function b8(m,b){if(m=Mr(m),m<1||m>Ae)return[];var L=de,q=zi(m,de);b=jn(b),m-=de;for(var pe=Je(q,b);++L<m;)b(L);return pe}function d_(m){return Nr(m)?Lr(m,wu):Ba(m)?[m]:po(hv(pi(m)))}function p_(m){var b=++uc;return pi(m)+b}var h_=_t(function(m,b){return m+b},0),v_=Sa("ceil"),m_=_t(function(m,b){return m/b},1),g_=Sa("floor");function y_(m){return m&&m.length?Bs(m,lf,zs):n}function w_(m,b){return m&&m.length?Bs(m,jn(b,2),zs):n}function C_(m){return ZA(m,lf)}function E_(m,b){return ZA(m,jn(b,2))}function b_(m){return m&&m.length?Bs(m,lf,bl):n}function S_(m,b){return m&&m.length?Bs(m,jn(b,2),bl):n}var B_=_t(function(m,b){return m*b},1),x_=Sa("round"),T_=_t(function(m,b){return m-b},0);function k_(m){return m&&m.length?et(m,lf):0}function Lv(m,b){return m&&m.length?et(m,jn(b,2)):0}return Ce.after=Fe,Ce.ary=ct,Ce.assign=af,Ce.assignIn=Mv,Ce.assignInWith=i1,Ce.assignWith=qp,Ce.at=u8,Ce.before=Rt,Ce.bind=Lt,Ce.bindAll=Xk,Ce.bindKey=It,Ce.castArray=t8,Ce.chain=Sv,Ce.chunk=O0,Ce.compact=vv,Ce.concat=ef,Ce.cond=Zk,Ce.conforms=Jk,Ce.constant=B9,Ce.countBy=eg,Ce.create=o1,Ce.curry=en,Ce.curryRight=gn,Ce.debounce=Cn,Ce.defaults=l1,Ce.defaultsDeep=T2,Ce.defer=fl,Ce.delay=tt,Ce.difference=ra,Ce.differenceBy=Xo,Ce.differenceWith=Xi,Ce.drop=$l,Ce.dropRight=Zu,Ce.dropRightWhile=zp,Ce.dropWhile=Ql,Ce.fill=Yh,Ce.filter=kv,Ce.flatMap=ng,Ce.flatMapDeep=r9,Ce.flatMapDepth=rg,Ce.flatten=mv,Ce.flattenDeep=e0,Ce.flattenDepth=Js,Ce.flip=Ve,Ce.flow=e_,Ce.flowRight=x9,Ce.fromPairs=gv,Ce.functions=A8,Ce.functionsIn=bk,Ce.groupBy=r0,Ce.initial=yv,Ce.intersection=Wm,Ce.intersectionBy=tf,Ce.intersectionWith=Gp,Ce.invert=d8,Ce.invertBy=Sk,Ce.invokeMap=C2,Ce.iteratee=T9,Ce.keyBy=a9,Ce.keys=qs,Ce.keysIn=of,Ce.map=Y0,Ce.mapKeys=Bk,Ce.mapValues=xk,Ce.matches=t_,Ce.matchesProperty=n_,Ce.memoize=it,Ce.merge=Tk,Ce.mergeWith=p8,Ce.method=r_,Ce.methodOf=a_,Ce.mixin=k9,Ce.negate=Qt,Ce.nthArg=E8,Ce.omit=kk,Ce.omitBy=_k,Ce.once=kn,Ce.orderBy=i9,Ce.over=P9,Ce.overArgs=Kn,Ce.overEvery=o_,Ce.overSome=l_,Ce.partial=fn,Ce.partialRight=Xn,Ce.partition=t1,Ce.pick=Pk,Ce.pickBy=h8,Ce.property=hg,Ce.propertyOf=vg,Ce.pull=Kh,Ce.pullAll=t0,Ce.pullAllBy=fs,Ce.pullAllWith=dd,Ce.pullAt=Io,Ce.range=s_,Ce.rangeRight=u_,Ce.rearg=Vl,Ce.reject=A,Ce.remove=Ol,Ce.rest=Ya,Ce.reverse=jp,Ce.sampleSize=S,Ce.set=v9,Ce.setWith=m9,Ce.shuffle=M,Ce.slice=z0,Ce.sortBy=ve,Ce.sortedUniq=Cv,Ce.sortedUniqBy=G0,Ce.split=Vk,Ce.spread=pd,Ce.tail=f2,Ce.take=A2,Ce.takeRight=Xh,Ce.takeRightWhile=Ev,Ce.takeWhile=Z5,Ce.tap=n9,Ce.throttle=o9,Ce.thru=Yf,Ce.toArray=Dv,Ce.toPairs=D2,Ce.toPairsIn=v8,Ce.toPath=d_,Ce.toPlainObject=A9,Ce.transform=ug,Ce.unary=sk,Ce.union=J5,Ce.unionBy=d2,Ce.unionWith=p2,Ce.uniq=n0,Ce.uniqBy=q5,Ce.uniqWith=Wp,Ce.unset=cg,Ce.unzip=bv,Ce.unzipWith=Ro,Ce.update=Hk,Ce.updateWith=m8,Ce.values=Rv,Ce.valuesIn=Dk,Ce.without=e9,Ce.words=S9,Ce.wrap=uk,Ce.xor=h2,Ce.xorBy=Jm,Ce.xorWith=t9,Ce.zip=v2,Ce.zipObject=m2,Ce.zipObjectDeep=g2,Ce.zipWith=rf,Ce.entries=D2,Ce.entriesIn=v8,Ce.extend=Mv,Ce.extendWith=i1,k9(Ce,Ce),Ce.add=h_,Ce.attempt=C8,Ce.camelCase=y8,Ce.capitalize=fg,Ce.ceil=v_,Ce.clamp=g8,Ce.clone=n8,Ce.cloneDeep=fk,Ce.cloneDeepWith=r8,Ce.cloneWith=ck,Ce.conformsTo=l9,Ce.deburr=Ag,Ce.defaultTo=qk,Ce.divide=m_,Ce.endsWith=M2,Ce.eq=hd,Ce.escape=dg,Ce.escapeRegExp=pg,Ce.every=tg,Ce.find=qh,Ce.findIndex=qd,Ce.findKey=d9,Ce.findLast=w2,Ce.findLastIndex=V0,Ce.findLastKey=k2,Ce.floor=g_,Ce.forEach=e1,Ce.forEachRight=Kp,Ce.forIn=sg,Ce.forInRight=c8,Ce.forOwn=_2,Ce.forOwnRight=f8,Ce.get=p9,Ce.gt=Ak,Ce.gte=dk,Ce.has=P2,Ce.hasIn=Iv,Ce.head=U0,Ce.identity=lf,Ce.includes=_v,Ce.indexOf=Ad,Ce.inRange=Mk,Ce.invoke=H2,Ce.isArguments=n1,Ce.isArray=Nr,Ce.isArrayBuffer=pk,Ce.isArrayLike=ks,Ce.isArrayLikeObject=Al,Ce.isBoolean=ag,Ce.isBuffer=a0,Ce.isDate=hk,Ce.isElement=vk,Ce.isEmpty=a8,Ce.isEqual=mk,Ce.isEqualWith=b2,Ce.isError=Xp,Ce.isFinite=s9,Ce.isFunction=i0,Ce.isInteger=ig,Ce.isLength=og,Ce.isMap=u9,Ce.isMatch=i8,Ce.isMatchWith=o8,Ce.isNaN=Zp,Ce.isNative=gk,Ce.isNil=wk,Ce.isNull=yk,Ce.isNumber=Hv,Ce.isObject=Zo,Ce.isObjectLike=dl,Ce.isPlainObject=r1,Ce.isRegExp=S2,Ce.isSafeInteger=Ck,Ce.isSet=c9,Ce.isString=B2,Ce.isSymbol=Ba,Ce.isTypedArray=Jp,Ce.isUndefined=x2,Ce.isWeakMap=lg,Ce.isWeakSet=l8,Ce.join=nf,Ce.kebabCase=Rk,Ce.last=Cu,Ce.lastIndexOf=Wh,Ce.lowerCase=g9,Ce.lowerFirst=y9,Ce.lt=s8,Ce.lte=f9,Ce.max=y_,Ce.maxBy=w_,Ce.mean=C_,Ce.meanBy=E_,Ce.min=b_,Ce.minBy=S_,Ce.stubArray=H9,Ce.stubFalse=D9,Ce.stubObject=c_,Ce.stubString=f_,Ce.stubTrue=A_,Ce.multiply=B_,Ce.nth=wv,Ce.noConflict=i_,Ce.noop=_9,Ce.now=He,Ce.pad=Lk,Ce.padEnd=Nk,Ce.padStart=lY,Ce.parseInt=Fk,Ce.random=Ik,Ce.reduce=E2,Ce.reduceRight=Pv,Ce.repeat=$k,Ce.replace=Qk,Ce.result=h9,Ce.round=x_,Ce.runInContext=ze,Ce.sample=p,Ce.size=V,Ce.snakeCase=Ok,Ce.some=J,Ce.sortedIndex=Km,Ce.sortedIndexBy=Xm,Ce.sortedIndexOf=IA,Ce.sortedLastIndex=Yp,Ce.sortedLastIndexBy=Zm,Ce.sortedLastIndexOf=RA,Ce.startCase=Uk,Ce.startsWith=w9,Ce.subtract=T_,Ce.sum=k_,Ce.sumBy=Lv,Ce.template=zk,Ce.times=b8,Ce.toFinite=W0,Ce.toInteger=Mr,Ce.toLength=a1,Ce.toLower=Gk,Ce.toNumber=LA,Ce.toSafeInteger=Ek,Ce.toString=pi,Ce.toUpper=C9,Ce.trim=jk,Ce.trimEnd=E9,Ce.trimStart=w8,Ce.truncate=Yk,Ce.unescape=Wk,Ce.uniqueId=p_,Ce.upperCase=Kk,Ce.upperFirst=b9,Ce.each=e1,Ce.eachRight=Kp,Ce.first=U0,k9(Ce,function(){var m={};return ba(Ce,function(b,L){ea.call(Ce.prototype,L)||(m[L]=b)}),m}(),{chain:!1}),Ce.VERSION=r,dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){Ce[m].placeholder=Ce}),dr(["drop","take"],function(m,b){rr.prototype[m]=function(L){L=L===n?1:Za(Mr(L),0);var q=this.__filtered__&&!b?new rr(this):this.clone();return q.__filtered__?q.__takeCount__=zi(L,q.__takeCount__):q.__views__.push({size:zi(L,de),type:m+(q.__dir__<0?"Right":"")}),q},rr.prototype[m+"Right"]=function(L){return this.reverse()[m](L).reverse()}}),dr(["filter","map","takeWhile"],function(m,b){var L=b+1,q=L==ae||L==le;rr.prototype[m]=function(pe){var xe=this.clone();return xe.__iteratees__.push({iteratee:jn(pe,3),type:L}),xe.__filtered__=xe.__filtered__||q,xe}}),dr(["head","last"],function(m,b){var L="take"+(b?"Right":"");rr.prototype[m]=function(){return this[L](1).value()[0]}}),dr(["initial","tail"],function(m,b){var L="drop"+(b?"":"Right");rr.prototype[m]=function(){return this.__filtered__?new rr(this):this[L](1)}}),rr.prototype.compact=function(){return this.filter(lf)},rr.prototype.find=function(m){return this.filter(m).head()},rr.prototype.findLast=function(m){return this.reverse().find(m)},rr.prototype.invokeMap=yr(function(m,b){return typeof m=="function"?new rr(this):this.map(function(L){return sl(L,m,b)})}),rr.prototype.reject=function(m){return this.filter(Qt(jn(m)))},rr.prototype.slice=function(m,b){m=Mr(m);var L=this;return L.__filtered__&&(m>0||b<0)?new rr(L):(m<0?L=L.takeRight(-m):m&&(L=L.drop(m)),b!==n&&(b=Mr(b),L=b<0?L.dropRight(-b):L.take(b-m)),L)},rr.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},rr.prototype.toArray=function(){return this.take(de)},ba(rr.prototype,function(m,b){var L=/^(?:filter|find|map|reject)|While$/.test(b),q=/^(?:head|last)$/.test(b),pe=Ce[q?"take"+(b=="last"?"Right":""):b],xe=q||/^find/.test(b);pe&&(Ce.prototype[b]=function(){var Ie=this.__wrapped__,Ne=q?[1]:arguments,Ze=Ie instanceof rr,xt=Ne[0],St=Ze||Nr(Ie),Dt=function(Aa){var Ra=pe.apply(Ce,rl([Aa],Ne));return q&&Wt?Ra[0]:Ra};St&&L&&typeof xt=="function"&&xt.length!=1&&(Ze=St=!1);var Wt=this.__chain__,En=!!this.__actions__.length,qn=xe&&!Wt,Ur=Ze&&!En;if(!xe&&St){Ie=Ur?Ie:new rr(this);var sr=m.apply(Ie,Ne);return sr.__actions__.push({func:Yf,args:[Dt],thisArg:n}),new oo(sr,Wt)}return qn&&Ur?m.apply(this,Ne):(sr=this.thru(Dt),qn?q?sr.value()[0]:sr.value():sr)})}),dr(["pop","push","shift","sort","splice","unshift"],function(m){var b=es[m],L=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",q=/^(?:pop|shift)$/.test(m);Ce.prototype[m]=function(){var pe=arguments;if(q&&!this.__chain__){var xe=this.value();return b.apply(Nr(xe)?xe:[],pe)}return this[L](function(Ie){return b.apply(Nr(Ie)?Ie:[],pe)})}}),ba(rr.prototype,function(m,b){var L=Ce[b];if(L){var q=L.name+"";ea.call(Pf,q)||(Pf[q]=[]),Pf[q].push({name:b,func:L})}}),Pf[Xe(n,_).name]=[{name:"wrapper",func:n}],rr.prototype.clone=bn,rr.prototype.reverse=$s,rr.prototype.value=Ga,Ce.prototype.at=Bv,Ce.prototype.chain=j0,Ce.prototype.commit=xv,Ce.prototype.next=Tv,Ce.prototype.plant=Jh,Ce.prototype.reverse=qm,Ce.prototype.toJSON=Ce.prototype.valueOf=Ce.prototype.value=y2,Ce.prototype.first=Ce.prototype.head,Pl&&(Ce.prototype[Pl]=Zh),Ce},lc=Vd();Me?((Me.exports=lc)._=lc,fe._=lc):ua._=lc}).call(ay)}(w4,w4.exports);var wX=w4.exports;const pr=y1(wX);var Hu=class g4{constructor({type:t,name:n,domain:r}){this.kind="axis",this.type=t,this.name=n,this.domain={...r}}toCanonicalString(){return ch(this)}static fromAxisSpec(t){return new g4({name:t.name,type:t.type,domain:t.domain})}static fromAxesSpec(t){return t.map(n=>g4.fromAxisSpec(n))}copy(){return new g4({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 g4(t)}},Dg=class AX{constructor({name:t,type:n}){this.kind="column",this.name=t,this.type=n}toCanonicalString(){return ch(this)}static fromPojo(t){return new AX(t)}};function ar(e){return e!==null&&e.kind==="column"}function LE(e){return e!==null&&e.kind==="axis"}function _n(e){const t=JSON.parse(e);if(t.kind==="column")return Dg.fromPojo(t);if(t.kind==="axis")return Hu.fromPojo(t);throw Error("wrong column or axis object")}var CX="pl7.app/axisNature",EX="pl7.app/label",tD="pl7.app/isLabel",bX="pl7.app/columnAsAxis/name",SX="pl7.app/columnAsAxis/domain";async function nD(e,t,n){let r;if(n){const a=await e.pFrameProvider.getTableOuterJoin([t,n],[]),o=a.columnsData[t.toCanonicalString()],s=a.columnsData[n.toCanonicalString()];r=o.reduce((u,c,f)=>(u[String(c)]=String(s[f]),u),{})}else r=(await e.pFrameProvider.getColumnUniqueValues(t)).reduce((o,s)=>{const u=String(s);return o[u]=u,o},{});return r}async function rD(e,t,n,r){let a;if(r){const{data:o,axesData:s}=await e.pFrameProvider.getSingleColumnData(r);a=s[t.toCanonicalString()].reduce((c,f,d)=>(c[String(f)]=String(o[d]),c),{})}else a=(await e.pFrameProvider.getAxisUniqueValues(t,[n])).reduce((s,u)=>{const c=String(u);return s[c]=c,s},{});return a}async function BX(e,t,n){const r=_n(t);if(ar(r)){const a=await e.pFrameProvider.getColumnSpecById(r);if(!a)return;const o=await Fo(e,t,[]),s={kind:"column",label:await Zi(e,t,[]),valueLabels:await nD(e,r,o),uniqueValues:a.valueType!=="Double"?await e.pFrameProvider.getColumnUniqueValues(r):[],type:a.valueType};n.set(r.toCanonicalString(),s);for(const u of a.axesSpec){const c=Hu.fromAxisSpec(u),f=c.toCanonicalString(),d=await Fo(e,f,[t]),h={kind:"axis",label:await Zi(e,f,[t]),valueLabels:await rD(e,c,r,d),uniqueValues:u.type?await e.pFrameProvider.getAxisUniqueValues(c,[r]):[],type:u.type,mustBeConsumed:oD(u),dividable:!1,spec:u};n.set(f,h)}}}function aD(e){const t=_n(e),{name:n,type:r}=t;return ar(t)?{kind:"column",label:" ",uniqueValues:[],valueLabels:{},type:t.type}:{kind:"axis",label:" ",uniqueValues:[],valueLabels:{},type:r,spec:{type:r,name:n},mustBeConsumed:!1,dividable:!1}}function C4(e){return{type:e.type,components:{...e.components},dividedAxes:{...e.dividedAxes}}}function yd(e){const{selectedSource:t,selectedFilterValue:n}=e,r=_n(t);if(!r)throw Error("Empty source selected");return LE(r)?{type:"bySingleColumnV2",column:{type:"axis",id:r.toPFrameId()},predicate:{operator:"Equal",reference:r.type==="String"?String(n):Number(n)}}:{type:"bySingleColumnV2",column:{type:"column",id:r.name},predicate:{operator:"Equal",reference:r.type==="String"?String(n):Number(n)}}}function NE(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[bX],c=(a=e.domain)!=null?a:(r=e.annotations)==null?void 0:r[SX];return ch({name:u,domain:c})}const o=e.name,s=e.domain;return ch({name:o,domain:s})}async function iD(e,t,n){for(const r of n){const a=_n(r);if(ar(a)){const o=await e.pFrameProvider.getColumnSpecById(a),s=o==null?void 0:o.axesSpec.find(u=>Hu.fromAxisSpec(u).toCanonicalString()===t.toCanonicalString());if(s)return s}}return null}async function Fo(e,t,n){const r=_n(t);async function a(f){const d=await iD(e,f,n);return d?NE(d):null}async function o(f){const d=await e.pFrameProvider.getColumnSpecById(f);return d?NE(d):null}const s=await e.pFrameProvider.getColumns([],["String"],{[tD]:"true"},!1),u=ar(r)?await o(r):await a(r),c=await Promise.all(s.map(async f=>{const d=await e.pFrameProvider.getColumnSpecById(f);return d&&d.axesSpec.length===1&&NE(d.axesSpec[0])===u})).then(f=>f.findIndex(d=>d===!0));if(c!==-1)return s[c]}async function Zi(e,t,n){var r,a;const o=_n(t),s=await Fo(e,t,n);let u;if(ar(o)?u=await e.pFrameProvider.getColumnSpecById(s??o):u=s?await e.pFrameProvider.getColumnSpecById(s):await iD(e,o,n),!u)return"";const c=(a=(r=u.annotations)==null?void 0:r[EX])!=null?a:u.name;return e.labelsModifier(u.name,c)}function oD(e){var t,n;const r=(n=(t=e.annotations)==null?void 0:t[CX])==null?void 0:n.toLowerCase();return!!r&&r!=="homogenous"&&r!=="homogeneous"}var iy=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,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].addSelected(t,n);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].addSelected(t,n,!0,r);throw Error(`Unknown input name: ${String(e)}`)}deleteSelected(e,t,n,r){if(e in this.simpleComponentControllers)return this.simpleComponentControllers[e].deleteSelected(n,r);if(e in this.filterComponentControllers)return this.filterComponentControllers[e].deleteSelected(n,r);throw Error(`Unknown input name: ${String(e)}`)}changeSelected(e,t,n,r,a){const o=n.components[e].selectorStates.map(d=>[d.selectedSource,"selectedFilterValue"in d?d.selectedFilterValue:void 0]),s=r.map((d,h)=>[d,a==null?void 0:a[h]]),u=o.filter(([d])=>!s.find(h=>h[0]===d)),c=s.filter(([d])=>!o.find(h=>h[0]===d));let f=C4(n);return u.forEach(([d])=>{f=this.deleteSelected(e,t,f,d)}),c.forEach(([d,h])=>{f=this.addSelected(e,f,d,h)}),n.components[e].selectorStates=r.map(d=>n.components[e].selectorStates.find(h=>h.selectedSource===d)).filter(Boolean),f}switchDividableAxis(e,t){return C4(e)}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 getSelectedSetAndInfo(e,t,n=[]){const r=new Set,a=new Set,o=new Map;for(const{selectorStates:s}of Object.values(t.components))for(const{selectedSource:u}of s){await BX(e,u,o);const c=_n(u);if(c instanceof Dg){const f=await e.pFrameProvider.getColumnSpecById(c);f==null||f.axesSpec.forEach(d=>{const h=Hu.fromAxisSpec(d).toCanonicalString();r.add(h),a.add(u)})}}return{selectedAxesSet:r,selectedSourcesSet:a,selectedColumnsOrAxesInfo:o}}getEmptyInputGuide(e){return{components:this.createEmptyComponentsGuide(e),getSourceInfo:t=>aD(t),freeOptionsSet:new Set,readyData:!1,ready:!1}}async calculateOptions(e,t,n=[]){const r=this.createEmptyComponentsGuide(t),a=new Set;for(const d of this.dimensionsConsumerComponents)for(const{selectedSource:h}of t.components[d].selectorStates)a.add(h);const o=new Set(this.ignoredOptionIdNames),s=new Set(n),u=new Set,{selectedColumnsOrAxesInfo:c}=await this.getSelectedSetAndInfo(e,t,n),f=new Map;for(const d of Object.keys(this.simpleComponentControllers)){const h=await this.simpleComponentControllers[d].getOptions(e,t,a,o,s);h.options.forEach(y=>{u.add(y.value)});for(const[y,E]of h.optionsInfo)f.set(y,E);r[d]=h}for(const d of Object.keys(this.filterComponentControllers)){const h=await this.filterComponentControllers[d].getOptionsFilter(e,t,a,o,s);h.options.forEach(y=>{u.add(y.value)});for(const[y,E]of h.optionsInfo)f.set(y,E);r[d]=h}return{components:r,getSourceInfo:d=>{var h,y,E;const x=(h=_n(d).toCanonicalString())!=null?h:d;return(E=(y=f.get(x))!=null?y:c.get(x))!=null?E:aD(d)},freeOptionsSet:u,readyData:this.readyDataInputs(t),ready:await this.readyForPlotBuilding(e,t,u,f)}}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;const a=[];for(const o of n){const s=_n(o),u=s?r.get(s.toCanonicalString()):null;u&&u.kind==="axis"&&u.mustBeConsumed&&a.push(o)}return this.requiredComponents.every(o=>t.components[o].selectorStates.length>0)&&a.length===0}async createDataForPlot(e,t){return{dataByColumns:await this.createDataByColumns(e,t),settings:await this.createChartSettings(e,t)}}},lD=class dX{constructor({componentName:t,allowedTypes:n,settings:r,dependsOn:a=[],parentComponents:o=[],annotations:s={},strictlyDependsOnParents:u=!0}){this.componentName=t,this.allowedTypes=[...n],this.settings={...dX.DefaultSettings,...r},this.dependsOn=[...a],this.parentComponents=[...o],this.strictlyDependsOnParents=u,this.annotations={...s}}get isRequired(){return this.settings.required}get isDimensionsConsumer(){return this.settings.dimensionConsumer}get producingMustBeConsumedAxes(){return this.settings.hasMustForConsumingAxes}addSelected(t,n,r=!1,a){const o=C4(t),s={selectedSource:n};return r&&(s.selectedFilterValue=a),o.components[this.componentName].selectorStates.push(s),o}deleteSelected(t,n){const r=C4(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 o(u){const c=Hu.fromAxisSpec(u);return a.has(c.toCanonicalString())}const s=await Promise.all(r.selectorStates.map(async({selectedSource:u})=>{const c=_n(u);if(ar(c)){const f=await t.pFrameProvider.getColumnSpecById(c);return f?this.parentComponents.length===0?!0:this.strictlyDependsOnParents?f.axesSpec.every(h=>o(h)):a.size===0||f.axesSpec.some(h=>o(h)):!1}return a.has(u)}));return r.selectorStates.reduce((u,c,f)=>(u[c.selectedSource]=s[f],u),{})}async getProducingAxes(t,n){const o=n.components[this.componentName].selectorStates.map(c=>_n(c.selectedSource)).filter(c=>ar(c)),s=new Set;return(await Promise.all(o.map(c=>t.pFrameProvider.getColumnSpecById(c)))).forEach(c=>{c&&c.axesSpec.forEach(f=>{s.add(Hu.fromAxisSpec(f).toCanonicalString())})}),s}getParentSelectedSources(t,n){return this.parentComponents.reduce((a,o)=>{const s=n.components[o].selectorStates.map(u=>_n(u.selectedSource));return a.push(...s),a},[])}async getParentAxes(t,n){const r=this.getParentSelectedSources(t,n),a=new Set;for(const o of r)if(ar(o)){const s=await t.pFrameProvider.getColumnSpecById(o);s==null||s.axesSpec.forEach(u=>{const c=Hu.fromAxisSpec(u);a.add(c.toCanonicalString())})}return a}async getAllowedAxes(t,n){var r;const a=this.getParentSelectedSources(t,n),o=new Set,s=new Map;for(const u of a)if(ar(u)){const c=await t.pFrameProvider.getColumnSpecById(u);for(const f of(r=c==null?void 0:c.axesSpec)!=null?r:[]){const d=Hu.fromAxisSpec(f),h=this.allowedTypes.includes(f.type),y=Object.entries(this.annotations).every(([E,x])=>{var B;return((B=f.annotations)==null?void 0:B[E])===x});if(h&&y){o.add(d.toCanonicalString());const E=await Fo(t,d.toCanonicalString(),[u.toCanonicalString()]),x=await t.pFrameProvider.getAxisUniqueValues(d,[u]);s.set(d.toCanonicalString(),{kind:"axis",label:await Zi(t,d.toCanonicalString(),[u.toCanonicalString()]),valueLabels:await rD(t,d,u,E),uniqueValues:x,type:f.type,mustBeConsumed:oD(f),dividable:!1,spec:f})}}}return{axes:o,optionsInfo:s}}async getOptions(t,n,r,a=new Set,o=new Set){var s;const u=this.settings.multipleSelectors,c=this.settings.required,f=await this.checkStateConsistency(t,n);if(this.strictlyDependsOnParents&&this.parentComponents.some(P=>n.components[P].selectorStates.length===0))return{multipleSelectors:u,required:c,stateConsistency:f,options:[],optionsInfo:new Map};const d=this.getParentSelectedSources(t,n),h=(await t.pFrameProvider.getColumns(d,this.allowedTypes,this.annotations,this.strictlyDependsOnParents)).filter(P=>!r.has(P.toCanonicalString())),{axes:y,optionsInfo:E}=await this.getAllowedAxes(t,n);if(this.dependsOn.length&&this.dependsOn.some(P=>n.components[P].selectorStates.length===0))return{multipleSelectors:u,required:c,stateConsistency:f,options:[],optionsInfo:new Map};const x=n.components[this.componentName],B=[];if(this.settings.axesAllowed)for(const P of y){const _=_n(P),H=E.get(_.toCanonicalString()),D=!this.settings.homogeneous||!(H!=null&&H.mustBeConsumed),G=!r.has(P),z=a.has(_.name)||o.has(_.toCanonicalString()),$=x.selectorStates.some(F=>F.selectedSource===P);D&&G&&!z&&!$&&B.push({value:P})}if(this.settings.columnsAllowed)for(const P of h){const _=P.toCanonicalString(),H=_n(_),D=await t.pFrameProvider.getColumnSpecById(H);if(((s=D==null?void 0:D.annotations)==null?void 0:s[tD])==="true")continue;if(D){const F=await Fo(t,P.toCanonicalString(),[]),U=await t.pFrameProvider.getColumnUniqueValues(P),K=await Zi(t,P.toCanonicalString(),[]),W=await nD(t,P,F),ne={kind:"column",label:K,valueLabels:W,uniqueValues:U,type:D.valueType};E.set(H.toCanonicalString(),ne)}const z=a.has(H.name)||o.has(H.toCanonicalString()),$=n.components[this.componentName].selectorStates.some(F=>F.selectedSource===_);!z&&!$&&B.push({value:_})}return{multipleSelectors:u,required:c,stateConsistency:f,options:B,optionsInfo:E}}async getOptionsFilter(t,n,r,a=new Set,o=new Set){const s=n.components[this.componentName];if(s.type!=="filter")throw Error("Trying to take filter options for simple component");const u=await this.getOptions(t,n,r,a,o),f=this.getParentSelectedSources(t,n).filter(ar);function d(E){const x=_n(E);return ar(x)?t.pFrameProvider.getColumnUniqueValues(x):t.pFrameProvider.getAxisUniqueValues(x,f)}const h=await Promise.all(u.options.map(E=>d(E.value))),y=await Promise.all(s.selectorStates.map(E=>d(E.selectedSource)));return{...u,filterValueOptions:{...u.options.reduce((E,{value:x},B)=>(E[x]=h[B],E),{}),...s.selectorStates.reduce((E,x,B)=>(E[x.selectedSource]=y[B],E),{})}}}};lD.DefaultSettings={multipleSelectors:!1,required:!1,homogeneous:!1,axesAllowed:!1,columnsAllowed:!0,dimensionConsumer:!1,hasMustForConsumingAxes:!1};var Gr=lD,xX={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:{}},TX=class extends iy{constructor(){super({y:new Gr({componentName:"y",allowedTypes:["Int","Double","Long","Float"],settings:{}}),primaryGrouping:new Gr({componentName:"primaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,homogeneous:!0}}),secondaryGrouping:new Gr({componentName:"secondaryGrouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["primaryGrouping"],settings:{axesAllowed:!0,homogeneous:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["y"],dependsOn:["y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],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=_n(r);if(!r||!ar(a))throw Error("Y column is not valid");const o={type:"columns",id:(n=ch({data:r,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?n:"",values:{}},s=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],u=[...t.components.filters.selectorStates.map(y=>_n(y.selectedSource)),...t.components.tabBy.selectorStates.map(y=>_n(y.selectedSource))].filter(ar),c=[r],f=[t.components.primaryGrouping,t.components.secondaryGrouping,t.components.facetBy],d=[];for(const y of f)for(const{selectedSource:E}of y.selectorStates){d.push(_n(E));const x=await Fo(e,E,c);x&&d.push(x)}const h=await e.pFrameProvider.getTableOuterJoin([a,...u],d,s);return d.forEach(y=>{const E=y.toCanonicalString();o.values[E]=ar(y)?h.columnsData[E]:h.axesData[E]}),o.values[a.toCanonicalString()]=h.columnsData[a.toCanonicalString()],o}async createChartSettings(e,t){var n,r;const a=t.components.y.selectorStates[0].selectedSource,o=_n(a);if(!a||!ar(o))throw Error("Y column is not valid");const s={type:"column",value:a,label:await Zi(e,a,[])},u=[a];let c;if(t.components.primaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.primaryGrouping.selectorStates[0];c={columnName:{type:"column",value:h,label:await Zi(e,h,u),valueLabels:(n=await Fo(e,h,u))==null?void 0:n.toCanonicalString()}}}let f;if(t.components.secondaryGrouping.selectorStates.length){const{selectedSource:h}=t.components.secondaryGrouping.selectorStates[0];f={columnName:{type:"column",value:h,label:await Zi(e,h,u),valueLabels:(r=await Fo(e,h,u))==null?void 0:r.toCanonicalString()}}}const d=await Promise.all(t.components.facetBy.selectorStates.map(async h=>{var y,E;return{type:"column",value:(E=(y=await Fo(e,h.selectedSource,u))==null?void 0:y.toCanonicalString())!=null?E:h.selectedSource,label:await Zi(e,h.selectedSource,u)}}));return{type:"discrete",y:s,primaryGrouping:c,secondaryGrouping:f,facetBy:d}}},kX={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 E4(e,t){if(!t.length)return[];const n=t.map(o=>_n(o)),r=Object.values(e.columnsData)[0].length,a=[];for(let o=0;o<r;o++){const s=n.map(u=>{const c=u.toCanonicalString();return ar(u)?e.columnsData[c][o]:e.axesData[c][o]}).join(", ");a.push(s)}return a}var _X=class extends iy{constructor(){super({value:new Gr({componentName:"value",allowedTypes:["Int","Long","Double","Float","String"],settings:{columnsAllowed:!0,axesAllowed:!1,required:!0}}),x:new Gr({componentName:"x",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),xGroupBy:new Gr({componentName:"xGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["x"]}),y:new Gr({componentName:"y",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{required:!0,dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),yGroupBy:new Gr({componentName:"yGroupBy",allowedTypes:["Int","String","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1},dependsOn:["y"]}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),annotations:new Gr({componentName:"annotations",allowedTypes:["String","Int"],parentComponents:["value"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0},dependsOn:["x","y"]})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["value"],dependsOn:["value"],settings:{columnsAllowed:!0,axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["value"]}async readyForPlotBuilding(e,t,n,r){const{axes:a}=await this.simpleComponentControllers.x.getAllowedAxes(e,t),o=[...a],s=this.dimensionsConsumerComponents;return await super.readyForPlotBuilding(e,t,n,r)&&o.every(u=>s.some(c=>t.components[c].selectorStates.some(f=>f.selectedSource===u)))}async createDataByColumns(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=_n(a);if(!a||!ar(o))throw Error("Value column is not valid");const s={type:"columns",id:(r=ch({data:a,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?r:"",values:{}},u=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],c=[...t.components.filters.selectorStates.map(F=>_n(F.selectedSource)),...t.components.tabBy.selectorStates.map(F=>_n(F.selectedSource))].filter(ar),f=[a],d=[t.components.facetBy,t.components.annotations,t.components.x,t.components.y,t.components.xGroupBy,t.components.yGroupBy],h=[];for(const F of d)for(const{selectedSource:U}of F.selectorStates){h.push(_n(U));const K=await Fo(e,U,f);K&&h.push(K)}const y=await e.pFrameProvider.getTableOuterJoin([o,...c],h,u);h.forEach(F=>{const U=F.toCanonicalString();s.values[U]=ar(F)?y.columnsData[U]:y.axesData[U]}),s.values[o.toCanonicalString()]=y.columnsData[o.toCanonicalString()];const E=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(F=>F.selectedSource),x=E.join(", ");s.values[x]=E4(y,E);const B=t.components.x.selectorStates.map(F=>F.selectedSource),P=await Promise.all(B.map(async F=>{var U,K;return(K=(U=await Fo(e,F,f))==null?void 0:U.toCanonicalString())!=null?K:F})),_=B.join(", ");s.values[_]=E4(y,P);const H=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(F=>F.selectedSource),D=H.join(", ");s.values[D]=E4(y,H);const G=t.components.y.selectorStates.map(F=>F.selectedSource),z=G.join(", "),$=await Promise.all(G.map(async F=>{var U,K;return(K=(U=await Fo(e,F,f))==null?void 0:U.toCanonicalString())!=null?K:F}));return s.values[z]=E4(y,$),s}async createChartSettings(e,t){var n,r;const a=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,o=_n(a);if(!a||!ar(o))throw Error("Value column is not valid");const s=[a],u={type:"column",value:a,label:await Zi(e,a,[])},c=t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({selectedSource:G})=>_n(G)).filter(G=>LE(G)).map(G=>G.toCanonicalString()),f=c.join(", "),d=t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({selectedSource:G})=>_n(G)).filter(G=>LE(G)).map(G=>G.toCanonicalString()),h=d.join(", "),y=await Promise.all(t.components.facetBy.selectorStates.map(async G=>{var z,$;return{type:"column",value:($=(z=await Fo(e,G.selectedSource,s))==null?void 0:z.toCanonicalString())!=null?$:G.selectedSource}})),E=await Promise.all(t.components.xGroupBy.selectorStates.map(async G=>({type:"column",label:await Zi(e,G.selectedSource,s),value:G.selectedSource}))),x=await Promise.all(t.components.yGroupBy.selectorStates.map(async G=>({type:"column",label:await Zi(e,G.selectedSource,s),value:G.selectedSource}))),B=await Promise.all(t.components.annotations.selectorStates.map(async G=>{var z,$;const F=G.selectedSource,U=_n(F),K=ar(U)?(z=(await e.pFrameProvider.getColumnAxesIds(U)).map(ne=>ne.toCanonicalString()))!=null?z:[]:[F];let W="";if(K.every(ne=>c.findIndex(Z=>Z===ne)!==-1))W="x";else if(K.every(ne=>d.findIndex(Z=>Z===ne)!==-1))W="y";else throw Error("Invalid annotation axes");return{axis:W,valueColumn:{type:"column",value:F,label:await Zi(e,F,s)},type:ar(U)&&(($=await e.pFrameProvider.getColumnSpecById(U))==null?void 0:$.valueType)==="Double"?"continuous":"discrete"}})),P=t.components.x.selectorStates.map(({selectedSource:G})=>G).join(", "),_=t.components.y.selectorStates.map(({selectedSource:G})=>G).join(", "),H=(await Promise.all(t.components.x.selectorStates.map(G=>Zi(e,G.selectedSource,s)))).join(", "),D=(await Promise.all(t.components.y.selectorStates.map(G=>Zi(e,G.selectedSource,s)))).join(", ");return{type:"heatmap",valueColumn:u,valueType:((r=await e.pFrameProvider.getColumnSpecById(o))==null?void 0:r.valueType)==="String"?"discrete":"continuous",xColumn:{type:"column",value:f,label:H,valueLabels:P},yColumn:{type:"column",value:h,label:D,valueLabels:_},facetBy:y,xGroupBy:E,yGroupBy:x,annotations:B}}},PX={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:[]}},dividedAxes:{}},HX=class extends iy{constructor(){super({x:new Gr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Gr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Gr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async readyForPlotBuilding(e,t,n,r){var a,o;if(!super.readyForPlotBuilding(e,t,n,r))return!1;const s=(a=t.components.x.selectorStates[0])==null?void 0:a.selectedSource,u=(o=t.components.y.selectorStates[0])==null?void 0:o.selectedSource;if(!this.isConsistent(e,t)||!s||!u)return!1;const{axes:c}=await this.simpleComponentControllers.y.getAllowedAxes(e,t),{axes:f}=await this.simpleComponentControllers.x.getAllowedAxes(e,t),d=_n(s),h=_n(u),y=ar(d)?[...c]:[s],E=ar(h)?[...f]:[u],x=y.filter(_=>!E.some(H=>H===_)),B=E.filter(_=>!y.some(H=>H===_));if(x.length===0&&B.length===0)return!0;const P=this.dimensionsConsumerComponents;return x.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))&&B.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))}async createDataByColumns(e,t){var n,r,a;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,u=_n(o),c=_n(s);if(!o||!u||!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=ch({data:[o,s],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],h=[...t.components.filters.selectorStates.map(_=>_n(_.selectedSource)),...t.components.tabBy.selectorStates.map(_=>_n(_.selectedSource))].filter(ar),y=[u,c].filter(ar).map(_=>_.toCanonicalString());if(y.length===0)throw Error("One of X and Y should be a column");const E=[u,c,...h],x=[],B=[t.components.grouping,t.components.facetBy];for(const _ of B)for(const{selectedSource:H}of _.selectorStates){x.push(_n(H));const D=await Fo(e,H,y);D&&x.push(D)}const P=await e.pFrameProvider.getTableOuterJoin(E,x,d);return[...E,...x].forEach(_=>{const H=_.toCanonicalString();f.values[H]=ar(_)?P.columnsData[H]:P.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((_,H)=>H),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,s=a?_n(a):null,u=o?_n(o):null;if(!a||!o||!s||!u||!ar(s)&&!ar(u))throw Error("Empty or invalid required data");const c=[s,u].filter(ar).map(x=>x.toCanonicalString()),f={type:"column",value:a,label:await Zi(e,a,c)},d={type:"column",value:o,label:await Zi(e,o,c)},h={type:"column",value:"key"},y=await Promise.all(t.components.facetBy.selectorStates.map(async x=>{var B,P;return{type:"column",value:(P=(B=await Fo(e,x.selectedSource,c))==null?void 0:B.toCanonicalString())!=null?P:x.selectedSource}})),E=await Promise.all(t.components.grouping.selectorStates.map(async x=>{var B,P;const _=x.selectedSource;return{type:"column",label:await Zi(e,_,c)||_,value:_,valueLabels:(P=(B=await Fo(e,_,c))==null?void 0:B.toCanonicalString())!=null?P:_}}));return{type:"scatterplot",x:f,y:d,keyColumn:h,facetBy:y,grouping:E}}},DX={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:{}},MX=class extends iy{constructor(){super({x:new Gr({componentName:"x",allowedTypes:["Int","Long","Double","Float"],parentComponents:["y"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),y:new Gr({componentName:"y",allowedTypes:["Int","Long","Double","Float"],parentComponents:["x"],strictlyDependsOnParents:!1,settings:{required:!0,axesAllowed:!0,columnsAllowed:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),grouping:new Gr({componentName:"grouping",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,multipleSelectors:!0}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0,multipleSelectors:!0}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],strictlyDependsOnParents:!0,parentComponents:["x","y"],dependsOn:["x","y"],settings:{axesAllowed:!0,dimensionConsumer:!0}})}),this.dataInputs=["x","y"]}async readyForPlotBuilding(e,t,n,r){var a,o;if(!super.readyForPlotBuilding(e,t,n,r))return!1;const s=(a=t.components.x.selectorStates[0])==null?void 0:a.selectedSource,u=(o=t.components.y.selectorStates[0])==null?void 0:o.selectedSource;if(!this.isConsistent(e,t)||!s||!u)return!1;const{axes:c}=await this.simpleComponentControllers.y.getAllowedAxes(e,t),{axes:f}=await this.simpleComponentControllers.x.getAllowedAxes(e,t),d=_n(s),h=_n(u),y=ar(d)?[...c]:[s],E=ar(h)?[...f]:[u],x=y.filter(_=>!E.some(H=>H===_)),B=E.filter(_=>!y.some(H=>H===_));if(x.length===0&&B.length===0)return!0;const P=this.dimensionsConsumerComponents;return x.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))&&B.every(_=>P.some(H=>t.components[H].selectorStates.some(D=>D.selectedSource===_)))}async createDataByColumns(e,t){var n,r,a;const o=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,s=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,u=_n(o),c=_n(s);if(!o||!u||!s||!c)throw Error("X or Y column is not valid");const f={type:"columns",id:(a=ch({data:[o,s],filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},d=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],h=[...t.components.filters.selectorStates.map(_=>_n(_.selectedSource)),...t.components.tabBy.selectorStates.map(_=>_n(_.selectedSource))].filter(ar),y=[u,c].filter(ar).map(_=>_.toCanonicalString());if(y.length===0)throw Error("One of X and Y should be a column");const E=[u,c,...h],x=[],B=[t.components.grouping,t.components.facetBy];for(const _ of B)for(const{selectedSource:H}of _.selectorStates){x.push(_n(H));const D=await Fo(e,H,y);D&&x.push(D)}const P=await e.pFrameProvider.getTableOuterJoin(E,x,d);return[...E,...x].forEach(_=>{const H=_.toCanonicalString();f.values[H]=ar(_)?P.columnsData[H]:P.axesData[H]}),f.values.key=f.values[Object.keys(f.values)[0]].map((_,H)=>H),f}async createChartSettings(e,t){var n,r;const a=(n=t.components.x.selectorStates[0])==null?void 0:n.selectedSource,o=(r=t.components.y.selectorStates[0])==null?void 0:r.selectedSource,s=a?_n(a):null,u=o?_n(o):null;if(!a||!o||!s||!u||!ar(s)&&!ar(u))throw Error("Empty or invalid required data");const c=[s,u].filter(ar).map(x=>x.toCanonicalString()),f={type:"column",value:a,label:await Zi(e,a,c)},d={type:"column",value:o,label:await Zi(e,o,c)},h={type:"column",value:"key"},y=await Promise.all(t.components.facetBy.selectorStates.map(async x=>{var B,P;return{type:"column",value:(P=(B=await Fo(e,x.selectedSource,c))==null?void 0:B.toCanonicalString())!=null?P:x.selectedSource}})),E=await Promise.all(t.components.grouping.selectorStates.map(async x=>{var B,P;const _=x.selectedSource;return{type:"column",label:await Zi(e,_,c)||_,value:_,valueLabels:(P=(B=await Fo(e,_,c))==null?void 0:B.toCanonicalString())!=null?P:_}}));return{type:"scatterplot-umap",x:f,y:d,keyColumn:h,facetBy:y,grouping:E}}},FE="pl7.app/dendrogram/nodeId",b4="sequenceOrder",S4="sequenceValue",Mg="id",IX={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:{}},RX=class extends iy{constructor(){super({value:new Gr({componentName:"value",allowedTypes:["Int","Long"],annotations:{"pl7.app/dendrogram/isTopology":"true"},settings:{columnsAllowed:!0,required:!0,dimensionConsumer:!0}}),height:new Gr({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 Gr({componentName:"labels",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1}}),tableContent:new Gr({componentName:"tableContent",allowedTypes:["Int","String","Long","Double","Float"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0,multipleSelectors:!0}}),nodeShape:new Gr({componentName:"nodeShape",allowedTypes:["Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeSize:new Gr({componentName:"nodeSize",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),nodeColor:new Gr({componentName:"nodeColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!0}}),lineColor:new Gr({componentName:"lineColor",allowedTypes:["Double","Int","String","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{columnsAllowed:!0,axesAllowed:!1}}),heatmapForSequence:new Gr({componentName:"heatmapForSequence",allowedTypes:["String"],annotations:{"pl7.app/type":"sequence"},parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!0}}),heatmapAnnotation:new Gr({componentName:"heatmapAnnotation",allowedTypes:["Double","Int","Long","Float","String"],parentComponents:["value"],strictlyDependsOnParents:!1,settings:{columnsAllowed:!0,axesAllowed:!1,hasMustForConsumingAxes:!0}}),facetBy:new Gr({componentName:"facetBy",allowedTypes:["String","Int","Long"],parentComponents:["value"],strictlyDependsOnParents:!0,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapAxis:new Gr({componentName:"heatmapAxis",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}}),heatmapGroup:new Gr({componentName:"heatmapGroup",allowedTypes:["String","Int","Long"],parentComponents:["heatmapAnnotation"],settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}})},{filters:new Gr({componentName:"filters",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,multipleSelectors:!0,axesAllowed:!0,columnsAllowed:!1}}),tabBy:new Gr({componentName:"tabBy",allowedTypes:["String","Int","Long"],parentComponents:["value","heatmapAnnotation"],strictlyDependsOnParents:!1,settings:{dimensionConsumer:!0,axesAllowed:!0,columnsAllowed:!1}})}),this.ignoredOptionIdNames=[FE]}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,o=_n(a);if(!a||!ar(o))throw Error("Value column is not valid");const s=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],u=[...t.components.filters.selectorStates.map(P=>_n(P.selectedSource)),...t.components.tabBy.selectorStates.map(P=>_n(P.selectedSource))].filter(ar),c=[a],f=[],d=[],h=[t.components.value],y=[t.components.tableContent,t.components.labels,t.components.nodeColor,t.components.nodeSize,t.components.nodeShape,t.components.lineColor],E={};for(const P of h)for(const{selectedSource:_}of P.selectorStates){const H=await Fo(e,_,c),D=H??_n(_);E[D.toCanonicalString()]=_,f.push(D)}for(const P of y)for(const{selectedSource:_}of P.selectorStates){const H=await Fo(e,_,c),D=H??_n(_);E[_]=D.toCanonicalString(),d.push(D)}const x=await e.pFrameProvider.getTableOuterJoin([...f,...u],d,s,!1);for(const P of[...f,...d]){const _=P.toCanonicalString(),H=E[P.toCanonicalString()];r[H]={data:ar(P)?x.columnsData[_]:x.axesData[_],spec:ar(P)?x.columnSpecs[_]:x.axesSpecs[_],label:await Zi(e,H,c)}}const B=Object.keys(x.axesData).find(P=>{var _;return((_=_n(P))==null?void 0:_.name)===FE});return B?r[Mg]={data:x.axesData[B],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,o,s;const u=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,c=(r=t.components.heatmapAnnotation.selectorStates[0])==null?void 0:r.selectedSource,f=_n(u),d=c?_n(c):null;if(!u||!ar(f))throw Error("Value column is not valid");const h={type:"columns",id:(a=ch({data:u,filters:[...t.components.filters.selectorStates,...t.components.tabBy.selectorStates]}))!=null?a:"",values:{}},y=[...t.components.filters.selectorStates.map(yd),...t.components.tabBy.selectorStates.map(yd)],E=[...t.components.filters.selectorStates.map(K=>_n(K.selectedSource)),...t.components.tabBy.selectorStates.map(K=>_n(K.selectedSource))].filter(ar),x=[f,d].filter(ar).map(K=>K.toCanonicalString()),B=[],P=[],_=[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],H=[t.components.facetBy,t.components.heatmapAxis,t.components.heatmapGroup,t.components.tableContent];for(const K of _)for(const{selectedSource:W}of K.selectorStates){B.push(_n(W));const ne=await Fo(e,W,x);ne&&B.push(ne)}for(const K of H)for(const{selectedSource:W}of K.selectorStates){P.push(_n(W));const ne=await Fo(e,W,x);ne&&P.push(ne)}const D=await e.pFrameProvider.getTableOuterJoin([...B,...E],P,y,!1),G=t.components.heatmapForSequence.selectorStates.length>0?t.components.heatmapForSequence.selectorStates[0].selectedSource:null;let z=[],$=[];if(G){$=ar(_n(G))?D.columnsData[G]:D.axesData[G];const K=$.find(W=>W!==null);K&&(z=String(K).split("").map((W,ne)=>ne),h.values[b4]=[],h.values[S4]=[])}const F=(s=(o=Object.values(D.columnsData)[0])==null?void 0:o.length)!=null?s:0;[...B,...P].forEach(K=>{const W=K.toCanonicalString(),ne=ar(K)?D.columnsData[W]:D.axesData[W];h.values[W]=[],G?z.forEach(()=>{h.values[W]=h.values[W].concat(ne)}):h.values[W]=ne}),G&&z.forEach(K=>{h.values[b4]=h.values[b4].concat(new Array(F).fill(K)),h.values[S4]=h.values[S4].concat($.map(W=>W?String(W)[K]:null))});const U=Object.keys(D.axesData).find(K=>{var W;return((W=_n(K))==null?void 0:W.name)===FE});return U?G?(h.values[Mg]=[],z.forEach(()=>{h.values[Mg]=h.values[Mg].concat(D.axesData[U])})):h.values[Mg]=D.axesData[U]:console.warn("Missed node id axis in data column"),h}async createChartSettings(e,t){var n,r,a;const o=(n=t.components.value.selectorStates[0])==null?void 0:n.selectedSource,s=_n(o);if(!o||!ar(s))throw Error("Data column is not valid");const u=[o],c={type:"column",value:Mg},f={type:"column",value:o},d=t.components.height.selectorStates.length?{type:"column",value:t.components.height.selectorStates[0].selectedSource}:void 0,h=t.components.labels.selectorStates.length?{type:"column",value:t.components.labels.selectorStates[0].selectedSource}:void 0,y={};if(t.components.nodeColor.selectorStates.length){const P=t.components.nodeColor.selectorStates[0].selectedSource;y.nodeColor={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}if(t.components.nodeShape.selectorStates.length){const P=t.components.nodeShape.selectorStates[0].selectedSource;y.nodeShape={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}if(t.components.nodeSize.selectorStates.length){const P=t.components.nodeSize.selectorStates[0].selectedSource;y.nodeSize={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}if(t.components.lineColor.selectorStates.length){const P=t.components.lineColor.selectorStates[0].selectedSource;y.lineColor={columnName:{type:"column",value:P,label:await Zi(e,P,u)}}}let E,x,B;if(t.components.heatmapAnnotation.selectorStates.length&&t.components.heatmapAxis.selectorStates.length){const P=t.components.heatmapAnnotation.selectorStates[0].selectedSource;E={type:"column",value:P,label:await Zi(e,P,[]),valueLabels:(r=await Fo(e,P,[]))==null?void 0:r.toCanonicalString()};const _=t.components.heatmapAxis.selectorStates[0].selectedSource;x={type:"column",value:_,label:await Zi(e,_,[P]),valueLabels:(a=await Fo(e,_,[P]))==null?void 0:a.toCanonicalString()},B=await Promise.all(t.components.heatmapGroup.selectorStates.map(async H=>{var D;return{type:"column",value:H.selectedSource,label:await Zi(e,H.selectedSource,[P]),valueLabels:(D=await Fo(e,H.selectedSource,[P]))==null?void 0:D.toCanonicalString()}}))}else t.components.heatmapForSequence.selectorStates.length&&(E={type:"column",value:S4},x={type:"column",value:b4});return{type:"dendro",id:c,parentId:f,height:d,labels:h,aes:y,heatmapAnnotation:E,heatmapAxis:x,heatmapGroup:B}}};function B4(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 LX=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=await this.pframeDriver.calculateTableData(this.pframeHandle,{src:{type:"column",column:e.name},filters:t,sorting:[]}),r=n.filter(o=>o.spec.type==="axis"),a=n.filter(o=>o.spec.type==="column");return{axesData:r.reduce((o,s)=>{const u=Hu.fromAxisSpec(s.spec.spec);return o[u.toCanonicalString()]=B4(u.type,s.data),o},{}),data:a.length?B4(e.type,a[0].data):[]}}catch(n){throw console.error("PFrame: calculateTableData error"),n}}async getColumnUniqueValues(e,t=[]){if(!await this.isColumnExisted(e))return[];const n={columnId:e.name,filters:t,limit:1e3};try{const r=await this.pframeDriver.getUniqueValues(this.pframeHandle,n);return Array.from(r.values.data).map(String)}catch(r){throw console.error("PFrame: getUniqueValues for column error"),r}}async getAxisUniqueValues(e,t,n=[]){const r=t.filter(ar),a=await Promise.all(r.map(u=>this.getColumnSpecById(u))),o=e.toCanonicalString(),s=r.filter((u,c)=>{const f=a[c];return f!==null&&f.axesSpec.some(d=>Hu.fromAxisSpec(d).toCanonicalString()===o)});if(s.length===0)return[];try{const u=await Promise.all(s.map(c=>this.pframeDriver.getUniqueValues(this.pframeHandle,{columnId:c.name,axis:e.toPFrameId(),filters:n,limit:1e3})));return pr.uniq(pr.flatten(u.map(c=>Array.from(c.values.data).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(ar),o=t.filter(ar),s={src:{type:"outer",primary:{type:r?"inner":"full",entries:a.map(u=>({type:"column",column:u.name}))},secondary:o.map(u=>({type:"column",column:u.name}))},filters:n,sorting:[]};try{const u=await this.pframeDriver.calculateTableData(this.pframeHandle,s),c=u.filter(d=>d.spec.type==="axis"),f=u.filter(d=>d.spec.type==="column");return{axesData:c.reduce((d,h)=>{const y=Hu.fromAxisSpec(h.spec.spec);return d[y.toCanonicalString()]=B4(y.type,h.data),d},{}),columnsData:f.reduce((d,h)=>{const y=h.spec.spec,E=new Dg({name:h.spec.id,type:y.valueType});return d[E.toCanonicalString()]=B4(E.type,h.data),d},{}),columnSpecs:f.reduce((d,h)=>{const y=h.spec.spec,E=new Dg({name:h.spec.id,type:y.valueType});return d[E.toCanonicalString()]=y,d},{}),axesSpecs:c.reduce((d,h)=>{const y=h.spec.spec,E=Hu.fromAxisSpec(y);return d[E.toCanonicalString()]=y,d},{})}}catch(u){throw console.error("PFrame: table outer join error"),console.info("error with request: ",s),u}}async getColumnSpecById(e){try{const t=await this.pframeDriver.getColumnSpec(this.pframeHandle,e.name);return t??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=>Hu.fromAxisSpec(r)))!=null?n:[]}async getRequestColumnsFromSelectedSources(e){var t,n;const r=[];for(const a of e)if(ar(a)){const o=(n=(t=await this.getColumnSpecById(a))==null?void 0:t.axesSpec)!=null?n:[];r.push(...o.map(s=>Hu.fromAxisSpec(s).toPFrameId()))}return r}async getColumnsList(){return this.pframeDriver.listColumns(this.pframeHandle)}async getColumns(e,t,n,r){try{const a={columnFilter:{type:t,annotationValue:n},compatibleWith:await this.getRequestColumnsFromSelectedSources(e),strictlyCompatible:r},o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:u,spec:c})=>{s.push(new Dg({name:u,type:c.valueType}))}),s}catch(a){throw console.error("PFrame: findColumns error"),a}}async findColumnBy(e,t,n,r){try{const a={columnFilter:{name:[e],...t?{type:[t]}:{},...n?{annotationValue:n}:{},...r?{domainValue:r}:{}},compatibleWith:[],strictlyCompatible:!1},o=await this.pframeDriver.findColumns(this.pframeHandle,a),s=[];return o.hits.forEach(({columnId:u,spec:c})=>{s.push(new Dg({name:u,type:c.valueType}))}),s.length>1&&console.warn(`More than 1 column found for ${e}}`),s.length===0?(console.warn(`No columns found for ${e}}`),null):s[0]}catch(a){throw console.error("PFrame: findColumns error"),a}}},NX=class{constructor(e,t,n=(r,a)=>a??r){this.labelsModifier=n,this.pFrameProvider=new LX(e,t)}},sD={controllers:{discrete:new TX,scatterplot:new HX,"scatterplot-umap":new MX,heatmap:new _X,dendro:new RX},initialStates:{discrete:xX,scatterplot:PX,"scatterplot-umap":DX,heatmap:kX,dendro:IX}};function x4(e){return sD.controllers[e]}function uD(e){return sD.initialStates[e]}const Fr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},FX={},$X={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QX(e,t){return g.openBlock(),g.createElementBlock("svg",$X,t[0]||(t[0]=[g.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),g.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 OX=Fr(FX,[["render",QX]]),VX={},UX={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zX(e,t){return g.openBlock(),g.createElementBlock("svg",UX,t[0]||(t[0]=[g.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),g.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 GX=Fr(VX,[["render",zX]]),jX={},YX={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function WX(e,t){return g.openBlock(),g.createElementBlock("svg",YX,t[0]||(t[0]=[g.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),g.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 KX=Fr(jX,[["render",WX]]),XX={},ZX={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JX(e,t){return g.openBlock(),g.createElementBlock("svg",ZX,t[0]||(t[0]=[g.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 qX=Fr(XX,[["render",JX]]),eZ={},tZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nZ(e,t){return g.openBlock(),g.createElementBlock("svg",tZ,t[0]||(t[0]=[g.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 rZ=Fr(eZ,[["render",nZ]]),aZ={},iZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oZ(e,t){return g.openBlock(),g.createElementBlock("svg",iZ,t[0]||(t[0]=[g.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),g.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),g.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const lZ=Fr(aZ,[["render",oZ]]),sZ={},uZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cZ(e,t){return g.openBlock(),g.createElementBlock("svg",uZ,t[0]||(t[0]=[g.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),g.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 fZ=Fr(sZ,[["render",cZ]]),AZ={},dZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pZ(e,t){return g.openBlock(),g.createElementBlock("svg",dZ,t[0]||(t[0]=[g.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),g.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),g.createElementVNode("circle",{cx:"17.5",cy:"18",r:"0.5",stroke:"#07AD3E"},null,-1)]))}const hZ=Fr(AZ,[["render",pZ]]),vZ={},mZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gZ(e,t){return g.openBlock(),g.createElementBlock("svg",mZ,t[0]||(t[0]=[g.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 yZ=Fr(vZ,[["render",gZ]]),wZ={},CZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function EZ(e,t){return g.openBlock(),g.createElementBlock("svg",CZ,t[0]||(t[0]=[g.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 cD=Fr(wZ,[["render",EZ]]),bZ={},SZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function BZ(e,t){return g.openBlock(),g.createElementBlock("svg",SZ,t[0]||(t[0]=[g.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 xZ=Fr(bZ,[["render",BZ]]),TZ={},kZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _Z(e,t){return g.openBlock(),g.createElementBlock("svg",kZ,t[0]||(t[0]=[g.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 PZ=Fr(TZ,[["render",_Z]]),HZ={},DZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MZ(e,t){return g.openBlock(),g.createElementBlock("svg",DZ,t[0]||(t[0]=[g.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 fD=Fr(HZ,[["render",MZ]]),IZ={},RZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function LZ(e,t){return g.openBlock(),g.createElementBlock("svg",RZ,t[0]||(t[0]=[g.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),g.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 NZ=Fr(IZ,[["render",LZ]]),FZ={},$Z={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QZ(e,t){return g.openBlock(),g.createElementBlock("svg",$Z,t[0]||(t[0]=[g.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 AD=Fr(FZ,[["render",QZ]]),OZ={},VZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function UZ(e,t){return g.openBlock(),g.createElementBlock("svg",VZ,t[0]||(t[0]=[g.createElementVNode("path",{d:"M5 16.5C13.5556 16.5 10.4444 7.5 19 7.5",stroke:"#07AD3E","stroke-width":"1.5"},null,-1),g.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),g.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),g.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 zZ=Fr(OZ,[["render",UZ]]),GZ={},jZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YZ(e,t){return g.openBlock(),g.createElementBlock("svg",jZ,t[0]||(t[0]=[g.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 WZ=Fr(GZ,[["render",YZ]]),KZ={},XZ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ZZ(e,t){return g.openBlock(),g.createElementBlock("svg",XZ,t[0]||(t[0]=[g.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 JZ=Fr(KZ,[["render",ZZ]]),qZ={},eJ={class:"inline-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tJ(e,t){return g.openBlock(),g.createElementBlock("svg",eJ,t[0]||(t[0]=[g.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 nJ=Fr(qZ,[["render",tJ]]),Ig=[{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"}],oy="#FFFFFF",ds="#110529";Ig.reduce((e,t)=>(e[t.color]=t,e),{});const ly=Ig.slice(0,-3).map(e=>e.color),rJ=ly.filter((e,t)=>t%3===0),aJ=ly.filter((e,t)=>t%3===1),iJ=ly.filter((e,t)=>t%3===2),oJ=ly.filter((e,t)=>t%3!==2),lJ=ly,sJ=["#FFF680","#53D788","#36739D","#4A005C"],uJ=["#FFF680","#F77E5B","#902B83","#2B125C"],cJ=["#DFFADC","#74CFD1","#635AC1","#611347"],fJ=["#FAFAB4","#8DDA7F","#337E90","#1C0F5C"],AJ=["#FFEA80","#F07A76","#7535A4","#003752"],dJ=["#FFF780","#6CEA90","#6C90F0","#942AAE"],pJ=["#43317B","#7ACFAC","#F5F5B7","#F07B75","#5C1243"],hJ=["#122B5C","#41B5A8","#F0F0F0","#F07C80","#5C1243"],vJ=["#0E0E8F","#7E93FB","#F0F0F0","#ED7883","#5C1243"],mJ=["#2E5C00","#9ED26A","#F0F0F0","#EB8BDB","#701260"],gJ=["#4A005C","#36749D","#56D688","#FFF680","#F77E5E","#902B82","#2B125C"],dD=["light","bright","dark","paired","triadic"],yJ=["viridis","magma","density","salinity","sunset","perceptual_rainbow"],wJ=["spectrum","teal_red","blue_red","lime_rose","viridis_magma"];function $E(e){return dD.includes(e)}const tu={...{light:{title:"Light",colors:rJ},bright:{title:"Bright",colors:aJ},dark:{title:"Dark",colors:iJ},paired:{title:"Paired",colors:oJ},triadic:{title:"Triadic",colors:lJ}},...{viridis:{title:"Viridis",colors:sJ},magma:{title:"Magma",colors:uJ},density:{title:"Density",colors:cJ},salinity:{title:"Salinity",colors:fJ},sunset:{title:"Sunset",colors:AJ},perceptual_rainbow:{title:"Rainbow",colors:dJ}},...{spectrum:{title:"Spectrum",colors:pJ},teal_red:{title:"Teal-Red",colors:hJ},blue_red:{title:"Blue-Red",colors:vJ},lime_rose:{title:"Lime-Rose",colors:mJ},viridis_magma:{title:"Vir-Mag",colors:gJ}}},CJ="salinity",sy=["0","5","1","2","6","7","9","3","4","8","12","10","13","14","11","22","23","21","24","25"],pD="#F0F0F0",fh="21",uy=["solid","dashed","dotted","dotdash","longdash","twodash"],T4="solid",EJ={solid:{title:"Solid"},dashed:{title:"Dashed"},dotted:{title:"Dotted"},dotdash:{title:"Dotdash"},longdash:{title:"Longdash"},twodash:{title:"Twodash"}};function Rg(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function QE(e){let t,n,r;e.length!==2?(t=Rg,n=(u,c)=>Rg(e(u),c),r=(u,c)=>e(u)-c):(t=e===Rg||e===bJ?e:SJ,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 h=f+d>>>1;n(u[h],c)<0?f=h+1:d=h}while(f<d)}return f}function o(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const h=f+d>>>1;n(u[h],c)<=0?f=h+1:d=h}while(f<d)}return f}function s(u,c,f=0,d=u.length){const h=a(u,c,f,d-1);return h>f&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:a,center:s,right:o}}function SJ(){return 0}function hD(e){return e===null?NaN:+e}function*BJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const xJ=QE(Rg).right;QE(hD).center;function cy(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 o of e)(o=t(o,++a,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class vD extends Map{constructor(t,n=_J){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(mD(this,t))}has(t){return super.has(mD(this,t))}set(t,n){return super.set(TJ(this,t),n)}delete(t){return super.delete(kJ(this,t))}}function mD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function TJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function kJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _J(e){return e!==null&&typeof e=="object"?e.valueOf():e}function PJ(e=Rg){if(e===Rg)return gD;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 gD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HJ=Math.sqrt(50),DJ=Math.sqrt(10),MJ=Math.sqrt(2);function k4(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),s=o>=HJ?10:o>=DJ?5:o>=MJ?2:1;let u,c,f;return a<0?(f=Math.pow(10,-a)/s,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)*s,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=n&&n<2?k4(e,t,n*2):[u,c,f]}function OE(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,s]=r?k4(t,e,n):k4(e,t,n);if(!(o>=a))return[];const u=o-a+1,c=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)c[f]=(o-f)/-s;else for(let f=0;f<u;++f)c[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)c[f]=(a+f)/-s;else for(let f=0;f<u;++f)c[f]=(a+f)*s;return c}function VE(e,t,n){return t=+t,e=+e,n=+n,k4(e,t,n)[2]}function UE(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?VE(t,e,n):VE(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Zv(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 _4(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 yD(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?gD:PJ(a);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,d=Math.log(c),h=.5*Math.exp(2*d/3),y=.5*Math.sqrt(d*h*(c-h)/c)*(f-c/2<0?-1:1),E=Math.max(n,Math.floor(t-f*h/c+y)),x=Math.min(r,Math.floor(t+(c-f)*h/c+y));yD(e,t,E,x,a)}const o=e[t];let s=n,u=r;for(fy(e,n,t),a(e[r],o)>0&&fy(e,n,r);s<u;){for(fy(e,s,u),++s,--u;a(e[s],o)<0;)++s;for(;a(e[u],o)>0;)--u}a(e[n],o)===0?fy(e,n,u):(++u,fy(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function fy(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wD(e,t,n){if(e=Float64Array.from(BJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return _4(e);if(t>=1)return Zv(e);var r,a=(r-1)*t,o=Math.floor(a),s=Zv(yD(e,o).subarray(0,o+1)),u=_4(e.subarray(o+1));return s+(u-s)*(a-o)}}function op(e,t,n=hD){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,o=Math.floor(a),s=+n(e[o],o,e),u=+n(e[o+1],o+1,e);return s+(u-s)*(a-o)}}function Mc(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 o of e)(o=t(o,++a,e))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function IJ(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,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function Ic(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Lg(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const CD=Symbol("implicit");function Du(){var e=new vD,t=[],n=[],r=CD;function a(o){let s=e.get(o);if(s===void 0){if(r!==CD)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new vD;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Du(t,n).unknown(r)},Lg.apply(a,arguments),a}function Ay(){var e=Du().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,s,u=!1,c=0,f=0,d=.5;delete e.unknown;function h(){var y=t().length,E=a<r,x=E?a:r,B=E?r:a;o=(B-x)/Math.max(1,y-c+f*2),u&&(o=Math.floor(o)),x+=(B-x-o*(y-c))*d,s=o*(1-c),u&&(x=Math.round(x),s=Math.round(s));var P=IJ(y).map(function(_){return x+o*_});return n(E?P.reverse():P)}return e.domain=function(y){return arguments.length?(t(y),h()):t()},e.range=function(y){return arguments.length?([r,a]=y,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(y){return[r,a]=y,r=+r,a=+a,u=!0,h()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(y){return arguments.length?(u=!!y,h()):u},e.padding=function(y){return arguments.length?(c=Math.min(1,f=+y),h()):c},e.paddingInner=function(y){return arguments.length?(c=Math.min(1,y),h()):c},e.paddingOuter=function(y){return arguments.length?(f=+y,h()):f},e.align=function(y){return arguments.length?(d=Math.max(0,Math.min(1,y)),h()):d},e.copy=function(){return Ay(t(),[r,a]).round(u).paddingInner(c).paddingOuter(f).align(d)},Lg.apply(h(),arguments)}function zE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ED(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dy(){}var py=.7,P4=1/py,Ng="\\s*([+-]?\\d+)\\s*",hy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RJ=/^#([0-9a-f]{3,8})$/,LJ=new RegExp(`^rgb\\(${Ng},${Ng},${Ng}\\)$`),NJ=new RegExp(`^rgb\\(${lp},${lp},${lp}\\)$`),FJ=new RegExp(`^rgba\\(${Ng},${Ng},${Ng},${hy}\\)$`),$J=new RegExp(`^rgba\\(${lp},${lp},${lp},${hy}\\)$`),QJ=new RegExp(`^hsl\\(${hy},${lp},${lp}\\)$`),OJ=new RegExp(`^hsla\\(${hy},${lp},${lp},${hy}\\)$`),bD={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};zE(dy,Jv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SD,formatHex:SD,formatHex8:VJ,formatHsl:UJ,formatRgb:BD,toString:BD});function SD(){return this.rgb().formatHex()}function VJ(){return this.rgb().formatHex8()}function UJ(){return PD(this).formatHsl()}function BD(){return this.rgb().formatRgb()}function Jv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?xD(t):n===3?new qf(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?H4(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?H4(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=LJ.exec(e))?new qf(t[1],t[2],t[3],1):(t=NJ.exec(e))?new qf(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FJ.exec(e))?H4(t[1],t[2],t[3],t[4]):(t=$J.exec(e))?H4(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=QJ.exec(e))?_D(t[1],t[2]/100,t[3]/100,1):(t=OJ.exec(e))?_D(t[1],t[2]/100,t[3]/100,t[4]):bD.hasOwnProperty(e)?xD(bD[e]):e==="transparent"?new qf(NaN,NaN,NaN,0):null}function xD(e){return new qf(e>>16&255,e>>8&255,e&255,1)}function H4(e,t,n,r){return r<=0&&(e=t=n=NaN),new qf(e,t,n,r)}function zJ(e){return e instanceof dy||(e=Jv(e)),e?(e=e.rgb(),new qf(e.r,e.g,e.b,e.opacity)):new qf}function vy(e,t,n,r){return arguments.length===1?zJ(e):new qf(e,t,n,r??1)}function qf(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}zE(qf,vy,ED(dy,{brighter(e){return e=e==null?P4:Math.pow(P4,e),new qf(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?py:Math.pow(py,e),new qf(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qf(qv(this.r),qv(this.g),qv(this.b),D4(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:TD,formatHex:TD,formatHex8:GJ,formatRgb:kD,toString:kD}));function TD(){return`#${em(this.r)}${em(this.g)}${em(this.b)}`}function GJ(){return`#${em(this.r)}${em(this.g)}${em(this.b)}${em((isNaN(this.opacity)?1:this.opacity)*255)}`}function kD(){const e=D4(this.opacity);return`${e===1?"rgb(":"rgba("}${qv(this.r)}, ${qv(this.g)}, ${qv(this.b)}${e===1?")":`, ${e})`}`}function D4(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function em(e){return e=qv(e),(e<16?"0":"")+e.toString(16)}function _D(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new d0(e,t,n,r)}function PD(e){if(e instanceof d0)return new d0(e.h,e.s,e.l,e.opacity);if(e instanceof dy||(e=Jv(e)),!e)return new d0;if(e instanceof d0)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,u=o-a,c=(o+a)/2;return u?(t===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-t)/u+2:s=(t-n)/u+4,u/=c<.5?o+a:2-o-a,s*=60):u=c>0&&c<1?0:s,new d0(s,u,c,e.opacity)}function jJ(e,t,n,r){return arguments.length===1?PD(e):new d0(e,t,n,r??1)}function d0(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}zE(d0,jJ,ED(dy,{brighter(e){return e=e==null?P4:Math.pow(P4,e),new d0(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?py:Math.pow(py,e),new d0(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 qf(GE(e>=240?e-240:e+120,a,r),GE(e,a,r),GE(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new d0(HD(this.h),M4(this.s),M4(this.l),D4(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=D4(this.opacity);return`${e===1?"hsl(":"hsla("}${HD(this.h)}, ${M4(this.s)*100}%, ${M4(this.l)*100}%${e===1?")":`, ${e})`}`}}));function HD(e){return e=(e||0)%360,e<0?e+360:e}function M4(e){return Math.max(0,Math.min(1,e||0))}function GE(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 jE=e=>()=>e;function YJ(e,t){return function(n){return e+n*t}}function WJ(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 KJ(e){return(e=+e)==1?DD:function(t,n){return n-t?WJ(t,n,e):jE(isNaN(t)?n:t)}}function DD(e,t){var n=t-e;return n?YJ(e,n):jE(isNaN(e)?t:e)}const I4=function e(t){var n=KJ(t);function r(a,o){var s=n((a=vy(a)).r,(o=vy(o)).r),u=n(a.g,o.g),c=n(a.b,o.b),f=DD(a.opacity,o.opacity);return function(d){return a.r=s(d),a.g=u(d),a.b=c(d),a.opacity=f(d),a+""}}return r.gamma=e,r}(1);function XJ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function ZJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function JJ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)a[s]=KE(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(u){for(s=0;s<r;++s)o[s]=a[s](u);return o}}function qJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function p0(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function eq(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]=KE(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var YE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,WE=new RegExp(YE.source,"g");function tq(e){return function(){return e}}function nq(e){return function(t){return e(t)+""}}function MD(e,t){var n=YE.lastIndex=WE.lastIndex=0,r,a,o,s=-1,u=[],c=[];for(e=e+"",t=t+"";(r=YE.exec(e))&&(a=WE.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(a=a[0])?u[s]?u[s]+=a:u[++s]=a:(u[++s]=null,c.push({i:s,x:p0(r,a)})),n=WE.lastIndex;return n<t.length&&(o=t.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?c[0]?nq(c[0].x):tq(t):(t=c.length,function(f){for(var d=0,h;d<t;++d)u[(h=c[d]).i]=h.x(f);return u.join("")})}function KE(e,t){var n=typeof t,r;return t==null||n==="boolean"?jE(t):(n==="number"?p0:n==="string"?(r=Jv(t))?(t=r,I4):MD:t instanceof Jv?I4:t instanceof Date?qJ:ZJ(t)?XJ:Array.isArray(t)?JJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eq:p0)(e,t)}function rq(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var ID=180/Math.PI,XE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function RD(e,t,n,r,a,o){var s,u,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(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,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*ID,skewX:Math.atan(c)*ID,scaleX:s,scaleY:u}}var R4;function aq(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?XE:RD(t.a,t.b,t.c,t.d,t.e,t.f)}function iq(e){return e==null||(R4||(R4=document.createElementNS("http://www.w3.org/2000/svg","g")),R4.setAttribute("transform",e),!(e=R4.transform.baseVal.consolidate()))?XE:(e=e.matrix,RD(e.a,e.b,e.c,e.d,e.e,e.f))}function LD(e,t,n,r){function a(f){return f.length?f.pop()+" ":""}function o(f,d,h,y,E,x){if(f!==h||d!==y){var B=E.push("translate(",null,t,null,n);x.push({i:B-4,x:p0(f,h)},{i:B-2,x:p0(d,y)})}else(h||y)&&E.push("translate("+h+t+y+n)}function s(f,d,h,y){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),y.push({i:h.push(a(h)+"rotate(",null,r)-2,x:p0(f,d)})):d&&h.push(a(h)+"rotate("+d+r)}function u(f,d,h,y){f!==d?y.push({i:h.push(a(h)+"skewX(",null,r)-2,x:p0(f,d)}):d&&h.push(a(h)+"skewX("+d+r)}function c(f,d,h,y,E,x){if(f!==h||d!==y){var B=E.push(a(E)+"scale(",null,",",null,")");x.push({i:B-4,x:p0(f,h)},{i:B-2,x:p0(d,y)})}else(h!==1||y!==1)&&E.push(a(E)+"scale("+h+","+y+")")}return function(f,d){var h=[],y=[];return f=e(f),d=e(d),o(f.translateX,f.translateY,d.translateX,d.translateY,h,y),s(f.rotate,d.rotate,h,y),u(f.skewX,d.skewX,h,y),c(f.scaleX,f.scaleY,d.scaleX,d.scaleY,h,y),f=d=null,function(E){for(var x=-1,B=y.length,P;++x<B;)h[(P=y[x]).i]=P.x(E);return h.join("")}}}var oq=LD(aq,"px, ","px)","deg)"),lq=LD(iq,", ",")",")"),sq=1e-12;function ND(e){return((e=Math.exp(e))+1/e)/2}function uq(e){return((e=Math.exp(e))-1/e)/2}function cq(e){return((e=Math.exp(2*e))-1)/(e+1)}const fq=function e(t,n,r){function a(o,s){var u=o[0],c=o[1],f=o[2],d=s[0],h=s[1],y=s[2],E=d-u,x=h-c,B=E*E+x*x,P,_;if(B<sq)_=Math.log(y/f)/t,P=function(F){return[u+F*E,c+F*x,f*Math.exp(t*F*_)]};else{var H=Math.sqrt(B),D=(y*y-f*f+r*B)/(2*f*n*H),G=(y*y-f*f-r*B)/(2*y*n*H),z=Math.log(Math.sqrt(D*D+1)-D),$=Math.log(Math.sqrt(G*G+1)-G);_=($-z)/t,P=function(F){var U=F*_,K=ND(z),W=f/(n*H)*(K*cq(t*U+z)-uq(z));return[u+W*E,c+W*x,f*K/ND(t*U+z)]}}return P.duration=_*1e3*t/Math.SQRT2,P}return a.rho=function(o){var s=Math.max(.001,+o),u=s*s,c=u*u;return e(s,u,c)},a}(Math.SQRT2,2,4);function Aq(e){return function(){return e}}function ZE(e){return+e}var FD=[0,1];function sp(e){return e}function JE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Aq(isNaN(t)?NaN:.5)}function dq(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function pq(e,t,n){var r=e[0],a=e[1],o=t[0],s=t[1];return a<r?(r=JE(a,r),o=n(s,o)):(r=JE(r,a),o=n(o,s)),function(u){return o(r(u))}}function hq(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=JE(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(u){var c=xJ(e,u,1,r)-1;return o[c](a[c](u))}}function L4(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qE(){var e=FD,t=FD,n=KE,r,a,o,s=sp,u,c,f;function d(){var y=Math.min(e.length,t.length);return s!==sp&&(s=dq(e[0],e[y-1])),u=y>2?hq:pq,c=f=null,h}function h(y){return y==null||isNaN(y=+y)?o:(c||(c=u(e.map(r),t,n)))(r(s(y)))}return h.invert=function(y){return s(a((f||(f=u(t,e.map(r),p0)))(y)))},h.domain=function(y){return arguments.length?(e=Array.from(y,ZE),d()):e.slice()},h.range=function(y){return arguments.length?(t=Array.from(y),d()):t.slice()},h.rangeRound=function(y){return t=Array.from(y),n=rq,d()},h.clamp=function(y){return arguments.length?(s=y?!0:sp,d()):s!==sp},h.interpolate=function(y){return arguments.length?(n=y,d()):n},h.unknown=function(y){return arguments.length?(o=y,h):o},function(y,E){return r=y,a=E,d()}}function $D(){return qE()(sp,sp)}function vq(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function N4(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 Fg(e){return e=N4(Math.abs(e)),e?e[1]:NaN}function mq(e,t){return function(n,r){for(var a=n.length,o=[],s=0,u=e[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=e[s=(s+1)%e.length];return o.reverse().join(t)}}function gq(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var yq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function my(e){if(!(t=yq.exec(e)))throw new Error("invalid format: "+e);var t;return new eb({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]})}my.prototype=eb.prototype;function eb(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+""}eb.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 wq(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 QD;function Cq(e,t){var n=N4(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(QD=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+N4(e,Math.max(0,t+o-1))[0]}function OD(e,t){var n=N4(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 VD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:vq,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)=>OD(e*100,t),r:OD,s:Cq,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function UD(e){return e}var zD=Array.prototype.map,GD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Eq(e){var t=e.grouping===void 0||e.thousands===void 0?UD:mq(zD.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+"",o=e.numerals===void 0?UD:gq(zD.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=my(h);var y=h.fill,E=h.align,x=h.sign,B=h.symbol,P=h.zero,_=h.width,H=h.comma,D=h.precision,G=h.trim,z=h.type;z==="n"?(H=!0,z="g"):VD[z]||(D===void 0&&(D=12),G=!0,z="g"),(P||y==="0"&&E==="=")&&(P=!0,y="0",E="=");var $=B==="$"?n:B==="#"&&/[boxX]/.test(z)?"0"+z.toLowerCase():"",F=B==="$"?r:/[%p]/.test(z)?s:"",U=VD[z],K=/[defgprs%]/.test(z);D=D===void 0?6:/[gprs]/.test(z)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function W(ne){var Z=$,te=F,ae,se,le;if(z==="c")te=U(ne)+te,ne="";else{ne=+ne;var Pe=ne<0||1/ne<0;if(ne=isNaN(ne)?c:U(Math.abs(ne),D),G&&(ne=wq(ne)),Pe&&+ne==0&&x!=="+"&&(Pe=!1),Z=(Pe?x==="("?x:u:x==="-"||x==="("?"":x)+Z,te=(z==="s"?GD[8+QD/3]:"")+te+(Pe&&x==="("?")":""),K){for(ae=-1,se=ne.length;++ae<se;)if(le=ne.charCodeAt(ae),48>le||le>57){te=(le===46?a+ne.slice(ae+1):ne.slice(ae))+te,ne=ne.slice(0,ae);break}}}H&&!P&&(ne=t(ne,1/0));var Ae=Z.length+ne.length+te.length,be=Ae<_?new Array(_-Ae+1).join(y):"";switch(H&&P&&(ne=t(be+ne,be.length?_-te.length:1/0),be=""),E){case"<":ne=Z+ne+te+be;break;case"=":ne=Z+be+ne+te;break;case"^":ne=be.slice(0,Ae=be.length>>1)+Z+ne+te+be.slice(Ae);break;default:ne=be+Z+ne+te;break}return o(ne)}return W.toString=function(){return h+""},W}function d(h,y){var E=f((h=my(h),h.type="f",h)),x=Math.max(-8,Math.min(8,Math.floor(Fg(y)/3)))*3,B=Math.pow(10,-x),P=GD[8+x/3];return function(_){return E(B*_)+P}}return{format:f,formatPrefix:d}}var F4,gy,jD;bq({thousands:",",grouping:[3],currency:["$",""]});function bq(e){return F4=Eq(e),gy=F4.format,jD=F4.formatPrefix,F4}function Sq(e){return Math.max(0,-Fg(Math.abs(e)))}function Bq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fg(t)/3)))*3-Fg(Math.abs(e)))}function xq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fg(t)-Fg(e))+1}function Tq(e,t,n,r){var a=UE(e,t,n),o;switch(r=my(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Bq(a,s))&&(r.precision=o),jD(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=xq(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Sq(a))&&(r.precision=o-(r.type==="%")*2);break}}return gy(r)}function tb(e){var t=e.domain;return e.ticks=function(n){var r=t();return OE(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Tq(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,s=r[a],u=r[o],c,f,d=10;for(u<s&&(f=s,s=u,u=f,f=a,a=o,o=f);d-- >0;){if(f=VE(s,u,n),f===c)return r[a]=s,r[o]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function vi(){var e=$D();return e.copy=function(){return L4(e,vi())},Lg.apply(e,arguments),tb(e)}function w1(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,ZE),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return w1(e).unknown(t)},e=arguments.length?Array.from(e,ZE):[0,1],tb(n)}function YD(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],s;return o<a&&(s=n,n=r,r=s,s=a,a=o,o=s),e[n]=t.floor(a),e[r]=t.ceil(o),e}function WD(e){return Math.log(e)}function KD(e){return Math.exp(e)}function kq(e){return-Math.log(-e)}function _q(e){return-Math.exp(-e)}function Pq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Hq(e){return e===10?Pq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Dq(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 XD(e){return(t,n)=>-e(-t,n)}function Mq(e){const t=e(WD,KD),n=t.domain;let r=10,a,o;function s(){return a=Dq(r),o=Hq(r),n()[0]<0?(a=XD(a),o=XD(o),e(kq,_q)):e(WD,KD),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const c=n();let f=c[0],d=c[c.length-1];const h=d<f;h&&([f,d]=[d,f]);let y=a(f),E=a(d),x,B;const P=u==null?10:+u;let _=[];if(!(r%1)&&E-y<P){if(y=Math.floor(y),E=Math.ceil(E),f>0){for(;y<=E;++y)for(x=1;x<r;++x)if(B=y<0?x/o(-y):x*o(y),!(B<f)){if(B>d)break;_.push(B)}}else for(;y<=E;++y)for(x=r-1;x>=1;--x)if(B=y>0?x/o(-y):x*o(y),!(B<f)){if(B>d)break;_.push(B)}_.length*2<P&&(_=OE(f,d,P))}else _=OE(y,E,Math.min(E-y,P)).map(o);return h?_.reverse():_},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=my(c)).precision==null&&(c.trim=!0),c=gy(c)),u===1/0)return c;const f=Math.max(1,r*u/t.ticks().length);return d=>{let h=d/o(Math.round(a(d)));return h*r<r-.5&&(h*=r),h<=f?c(d):""}},t.nice=()=>n(YD(n(),{floor:u=>o(Math.floor(a(u))),ceil:u=>o(Math.ceil(a(u)))})),t}function tm(){const e=Mq(qE()).domain([1,10]);return e.copy=()=>L4(e,tm()).base(e.base()),Lg.apply(e,arguments),e}function ZD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Iq(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Rq(e){return e<0?-e*e:e*e}function Lq(e){var t=e(sp,sp),n=1;function r(){return n===1?e(sp,sp):n===.5?e(Iq,Rq):e(ZD(n),ZD(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},tb(t)}function JD(){var e=Lq(qE());return e.copy=function(){return L4(e,JD()).exponent(e.exponent())},Lg.apply(e,arguments),e}const nb=new Date,rb=new Date;function nu(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const s=a(o),u=a.ceil(o);return o-s<u-o?s:u},a.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),a.range=(o,s,u)=>{const c=[];if(o=a.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return c;let f;do c.push(f=new Date(+o)),t(o,u),e(o);while(f<o&&o<s);return c},a.filter=o=>nu(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!o(s););else for(;--u>=0;)for(;t(s,1),!o(s););}),n&&(a.count=(o,s)=>(nb.setTime(+o),rb.setTime(+s),e(nb),e(rb),Math.floor(n(nb,rb))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?s=>r(s)%o===0:s=>a.count(0,s)%o===0):a)),a}const $4=nu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$4.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?nu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):$4),$4.range;const Ah=1e3,wd=Ah*60,dh=wd*60,ph=dh*24,ab=ph*7,qD=ph*30,ib=ph*365,$g=nu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ah)},(e,t)=>(t-e)/Ah,e=>e.getUTCSeconds());$g.range;const ob=nu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ah)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getMinutes());ob.range,nu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*wd)},(e,t)=>(t-e)/wd,e=>e.getUTCMinutes()).range;const lb=nu(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ah-e.getMinutes()*wd)},(e,t)=>{e.setTime(+e+t*dh)},(e,t)=>(t-e)/dh,e=>e.getHours());lb.range,nu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*dh)},(e,t)=>(t-e)/dh,e=>e.getUTCHours()).range;const yy=nu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wd)/ph,e=>e.getDate()-1);yy.range;const sb=nu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ph,e=>e.getUTCDate()-1);sb.range,nu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ph,e=>Math.floor(e/ph)).range;function nm(e){return nu(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)/ab)}const Q4=nm(0),O4=nm(1),Nq=nm(2),Fq=nm(3),Qg=nm(4),$q=nm(5),Qq=nm(6);Q4.range,O4.range,Nq.range,Fq.range,Qg.range,$q.range,Qq.range;function rm(e){return nu(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)/ab)}const eM=rm(0),V4=rm(1),Oq=rm(2),Vq=rm(3),Og=rm(4),Uq=rm(5),zq=rm(6);eM.range,V4.range,Oq.range,Vq.range,Og.range,Uq.range,zq.range;const ub=nu(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());ub.range,nu(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 hh=nu(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());hh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nu(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)}),hh.range;const am=nu(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());am.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nu(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)}),am.range;function Gq(e,t,n,r,a,o){const s=[[$g,1,Ah],[$g,5,5*Ah],[$g,15,15*Ah],[$g,30,30*Ah],[o,1,wd],[o,5,5*wd],[o,15,15*wd],[o,30,30*wd],[a,1,dh],[a,3,3*dh],[a,6,6*dh],[a,12,12*dh],[r,1,ph],[r,2,2*ph],[n,1,ab],[t,1,qD],[t,3,3*qD],[e,1,ib]];function u(f,d,h){const y=d<f;y&&([f,d]=[d,f]);const E=h&&typeof h.range=="function"?h:c(f,d,h),x=E?E.range(f,+d+1):[];return y?x.reverse():x}function c(f,d,h){const y=Math.abs(d-f)/h,E=QE(([,,P])=>P).right(s,y);if(E===s.length)return e.every(UE(f/ib,d/ib,h));if(E===0)return $4.every(Math.max(UE(f,d,h),1));const[x,B]=s[y/s[E-1][2]<s[E][2]/y?E-1:E];return x.every(B)}return[u,c]}const[jq,Yq]=Gq(hh,ub,Q4,yy,lb,ob);function cb(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 fb(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 wy(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Wq(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,s=e.shortDays,u=e.months,c=e.shortMonths,f=Cy(a),d=Ey(a),h=Cy(o),y=Ey(o),E=Cy(s),x=Ey(s),B=Cy(u),P=Ey(u),_=Cy(c),H=Ey(c),D={a:Pe,A:Ae,b:be,B:ge,c:null,d:oM,e:oM,f:mee,g:Tee,G:_ee,H:pee,I:hee,j:vee,L:lM,m:gee,M:yee,p:de,q:Be,Q:dM,s:pM,S:wee,u:Cee,U:Eee,V:bee,w:See,W:Bee,x:null,X:null,y:xee,Y:kee,Z:Pee,"%":AM},G={a:je,A:Qe,b:$e,B:Ye,c:null,d:uM,e:uM,f:Iee,g:zee,G:jee,H:Hee,I:Dee,j:Mee,L:cM,m:Ree,M:Lee,p:We,q:dt,Q:dM,s:pM,S:Nee,u:Fee,U:$ee,V:Qee,w:Oee,W:Vee,x:null,X:null,y:Uee,Y:Gee,Z:Yee,"%":AM},z={a:W,A:ne,b:Z,B:te,c:ae,d:aM,e:aM,f:cee,g:rM,G:nM,H:iM,I:iM,j:oee,L:uee,m:iee,M:lee,p:K,q:aee,Q:Aee,s:dee,S:see,u:qq,U:eee,V:tee,w:Jq,W:nee,x:se,X:le,y:rM,Y:nM,Z:ree,"%":fee};D.x=$(n,D),D.X=$(r,D),D.c=$(t,D),G.x=$(n,G),G.X=$(r,G),G.c=$(t,G);function $(Oe,nt){return function(ut){var rt=[],gt=-1,yt=0,Xt=Oe.length,fr,Ar,ka;for(ut instanceof Date||(ut=new Date(+ut));++gt<Xt;)Oe.charCodeAt(gt)===37&&(rt.push(Oe.slice(yt,gt)),(Ar=tM[fr=Oe.charAt(++gt)])!=null?fr=Oe.charAt(++gt):Ar=fr==="e"?" ":"0",(ka=nt[fr])&&(fr=ka(ut,Ar)),rt.push(fr),yt=gt+1);return rt.push(Oe.slice(yt,gt)),rt.join("")}}function F(Oe,nt){return function(ut){var rt=wy(1900,void 0,1),gt=U(rt,Oe,ut+="",0),yt,Xt;if(gt!=ut.length)return null;if("Q"in rt)return new Date(rt.Q);if("s"in rt)return new Date(rt.s*1e3+("L"in rt?rt.L:0));if(nt&&!("Z"in rt)&&(rt.Z=0),"p"in rt&&(rt.H=rt.H%12+rt.p*12),rt.m===void 0&&(rt.m="q"in rt?rt.q:0),"V"in rt){if(rt.V<1||rt.V>53)return null;"w"in rt||(rt.w=1),"Z"in rt?(yt=fb(wy(rt.y,0,1)),Xt=yt.getUTCDay(),yt=Xt>4||Xt===0?V4.ceil(yt):V4(yt),yt=sb.offset(yt,(rt.V-1)*7),rt.y=yt.getUTCFullYear(),rt.m=yt.getUTCMonth(),rt.d=yt.getUTCDate()+(rt.w+6)%7):(yt=cb(wy(rt.y,0,1)),Xt=yt.getDay(),yt=Xt>4||Xt===0?O4.ceil(yt):O4(yt),yt=yy.offset(yt,(rt.V-1)*7),rt.y=yt.getFullYear(),rt.m=yt.getMonth(),rt.d=yt.getDate()+(rt.w+6)%7)}else("W"in rt||"U"in rt)&&("w"in rt||(rt.w="u"in rt?rt.u%7:"W"in rt?1:0),Xt="Z"in rt?fb(wy(rt.y,0,1)).getUTCDay():cb(wy(rt.y,0,1)).getDay(),rt.m=0,rt.d="W"in rt?(rt.w+6)%7+rt.W*7-(Xt+5)%7:rt.w+rt.U*7-(Xt+6)%7);return"Z"in rt?(rt.H+=rt.Z/100|0,rt.M+=rt.Z%100,fb(rt)):cb(rt)}}function U(Oe,nt,ut,rt){for(var gt=0,yt=nt.length,Xt=ut.length,fr,Ar;gt<yt;){if(rt>=Xt)return-1;if(fr=nt.charCodeAt(gt++),fr===37){if(fr=nt.charAt(gt++),Ar=z[fr in tM?nt.charAt(gt++):fr],!Ar||(rt=Ar(Oe,ut,rt))<0)return-1}else if(fr!=ut.charCodeAt(rt++))return-1}return rt}function K(Oe,nt,ut){var rt=f.exec(nt.slice(ut));return rt?(Oe.p=d.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function W(Oe,nt,ut){var rt=E.exec(nt.slice(ut));return rt?(Oe.w=x.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function ne(Oe,nt,ut){var rt=h.exec(nt.slice(ut));return rt?(Oe.w=y.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function Z(Oe,nt,ut){var rt=_.exec(nt.slice(ut));return rt?(Oe.m=H.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function te(Oe,nt,ut){var rt=B.exec(nt.slice(ut));return rt?(Oe.m=P.get(rt[0].toLowerCase()),ut+rt[0].length):-1}function ae(Oe,nt,ut){return U(Oe,t,nt,ut)}function se(Oe,nt,ut){return U(Oe,n,nt,ut)}function le(Oe,nt,ut){return U(Oe,r,nt,ut)}function Pe(Oe){return s[Oe.getDay()]}function Ae(Oe){return o[Oe.getDay()]}function be(Oe){return c[Oe.getMonth()]}function ge(Oe){return u[Oe.getMonth()]}function de(Oe){return a[+(Oe.getHours()>=12)]}function Be(Oe){return 1+~~(Oe.getMonth()/3)}function je(Oe){return s[Oe.getUTCDay()]}function Qe(Oe){return o[Oe.getUTCDay()]}function $e(Oe){return c[Oe.getUTCMonth()]}function Ye(Oe){return u[Oe.getUTCMonth()]}function We(Oe){return a[+(Oe.getUTCHours()>=12)]}function dt(Oe){return 1+~~(Oe.getUTCMonth()/3)}return{format:function(Oe){var nt=$(Oe+="",D);return nt.toString=function(){return Oe},nt},parse:function(Oe){var nt=F(Oe+="",!1);return nt.toString=function(){return Oe},nt},utcFormat:function(Oe){var nt=$(Oe+="",G);return nt.toString=function(){return Oe},nt},utcParse:function(Oe){var nt=F(Oe+="",!0);return nt.toString=function(){return Oe},nt}}}var tM={"-":"",_:" ",0:"0"},Mu=/^\s*\d+/,Kq=/^%/,Xq=/[\\^$*+?|[\]().{}]/g;function ui(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function Zq(e){return e.replace(Xq,"\\$&")}function Cy(e){return new RegExp("^(?:"+e.map(Zq).join("|")+")","i")}function Ey(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Jq(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qq(e,t,n){var r=Mu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function nM(e,t,n){var r=Mu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rM(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 ree(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 aee(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 iee(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 aM(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oee(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 iM(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lee(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function see(e,t,n){var r=Mu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function uee(e,t,n){var r=Mu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cee(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 fee(e,t,n){var r=Kq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Aee(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dee(e,t,n){var r=Mu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oM(e,t){return ui(e.getDate(),t,2)}function pee(e,t){return ui(e.getHours(),t,2)}function hee(e,t){return ui(e.getHours()%12||12,t,2)}function vee(e,t){return ui(1+yy.count(hh(e),e),t,3)}function lM(e,t){return ui(e.getMilliseconds(),t,3)}function mee(e,t){return lM(e,t)+"000"}function gee(e,t){return ui(e.getMonth()+1,t,2)}function yee(e,t){return ui(e.getMinutes(),t,2)}function wee(e,t){return ui(e.getSeconds(),t,2)}function Cee(e){var t=e.getDay();return t===0?7:t}function Eee(e,t){return ui(Q4.count(hh(e)-1,e),t,2)}function sM(e){var t=e.getDay();return t>=4||t===0?Qg(e):Qg.ceil(e)}function bee(e,t){return e=sM(e),ui(Qg.count(hh(e),e)+(hh(e).getDay()===4),t,2)}function See(e){return e.getDay()}function Bee(e,t){return ui(O4.count(hh(e)-1,e),t,2)}function xee(e,t){return ui(e.getFullYear()%100,t,2)}function Tee(e,t){return e=sM(e),ui(e.getFullYear()%100,t,2)}function kee(e,t){return ui(e.getFullYear()%1e4,t,4)}function _ee(e,t){var n=e.getDay();return e=n>=4||n===0?Qg(e):Qg.ceil(e),ui(e.getFullYear()%1e4,t,4)}function Pee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ui(t/60|0,"0",2)+ui(t%60,"0",2)}function uM(e,t){return ui(e.getUTCDate(),t,2)}function Hee(e,t){return ui(e.getUTCHours(),t,2)}function Dee(e,t){return ui(e.getUTCHours()%12||12,t,2)}function Mee(e,t){return ui(1+sb.count(am(e),e),t,3)}function cM(e,t){return ui(e.getUTCMilliseconds(),t,3)}function Iee(e,t){return cM(e,t)+"000"}function Ree(e,t){return ui(e.getUTCMonth()+1,t,2)}function Lee(e,t){return ui(e.getUTCMinutes(),t,2)}function Nee(e,t){return ui(e.getUTCSeconds(),t,2)}function Fee(e){var t=e.getUTCDay();return t===0?7:t}function $ee(e,t){return ui(eM.count(am(e)-1,e),t,2)}function fM(e){var t=e.getUTCDay();return t>=4||t===0?Og(e):Og.ceil(e)}function Qee(e,t){return e=fM(e),ui(Og.count(am(e),e)+(am(e).getUTCDay()===4),t,2)}function Oee(e){return e.getUTCDay()}function Vee(e,t){return ui(V4.count(am(e)-1,e),t,2)}function Uee(e,t){return ui(e.getUTCFullYear()%100,t,2)}function zee(e,t){return e=fM(e),ui(e.getUTCFullYear()%100,t,2)}function Gee(e,t){return ui(e.getUTCFullYear()%1e4,t,4)}function jee(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Og(e):Og.ceil(e),ui(e.getUTCFullYear()%1e4,t,4)}function Yee(){return"+0000"}function AM(){return"%"}function dM(e){return+e}function pM(e){return Math.floor(+e/1e3)}var Vg,hM;Wee({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 Wee(e){return Vg=Wq(e),hM=Vg.format,Vg.parse,Vg.utcFormat,Vg.utcParse,Vg}function Kee(e){return new Date(e)}function Xee(e){return e instanceof Date?+e:+new Date(+e)}function vM(e,t,n,r,a,o,s,u,c,f){var d=$D(),h=d.invert,y=d.domain,E=f(".%L"),x=f(":%S"),B=f("%I:%M"),P=f("%I %p"),_=f("%a %d"),H=f("%b %d"),D=f("%B"),G=f("%Y");function z($){return(c($)<$?E:u($)<$?x:s($)<$?B:o($)<$?P:r($)<$?a($)<$?_:H:n($)<$?D:G)($)}return d.invert=function($){return new Date(h($))},d.domain=function($){return arguments.length?y(Array.from($,Xee)):y().map(Kee)},d.ticks=function($){var F=y();return e(F[0],F[F.length-1],$??10)},d.tickFormat=function($,F){return F==null?z:f(F)},d.nice=function($){var F=y();return(!$||typeof $.range!="function")&&($=t(F[0],F[F.length-1],$??10)),$?y(YD(F,$)):d},d.copy=function(){return L4(d,vM(e,t,n,r,a,o,s,u,c,f))},d}function Zee(){return Lg.apply(vM(jq,Yq,hh,ub,Q4,yy,lb,ob,$g,hM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}const Ug="#110529",Jee="solid",qee=1,Ab="21",ete=3,tte={color:"#ccc",lineShape:Jee,dotShape:Ab},nte="light";function rte(e){const t=1/(e.length-1);return vi().domain(e.map((n,r)=>r*t)).range(e)}function mM(e,t){const n=tu[e].colors,r=t.length>1?1/(t.length-1):0,a=rte(n),o=$E(e),s=t.reduce((u,c,f)=>(u[c]={colorIdx:o?f:f*r,aes:{color:o?n[f%n.length]:a(f*r),lineShape:uy[f%uy.length],dotShape:sy[f%sy.length]}},u),{});return{type:"categorical",palette:e,naAes:tte,order:t,mapping:s}}function zg(e){return mM(nte,e)}function gM(e,t,n,r){if((t==null?void 0:t.type)==="continuous")return{inheritedAes:{}};const a=t??zg(n?e.getSourceInfo(n).uniqueValues:[]);return{order:a.order,inheritedAes:a.order.reduce((o,s)=>{const u=a.mapping[s].aes;return o[s]={},r.fill&&(o[s].fillColor=u.color,o[s].dotFill=u.color),r.stroke&&(o[s].lineColor=u.color),r.dotShape&&(o[s].dotShape=u.dotShape),r.lineType&&(o[s].lineShape=u.lineShape),o},{})}}function ate(e,t,n){const r=n[e]??zg(t.getSourceInfo(e).uniqueValues);return r.order.reduce((a,o)=>{const s=r.mapping[o].aes;return a[o]={fillColor:s.color,lineColor:s.color,dotFill:s.color,dotShape:s.dotShape,dotSize:ete,lineWidth:qee},a},{})}function db(e,t,n,r){const a=n[e]??zg(t.getSourceInfo(e).uniqueValues);return a.order.reduce((o,s)=>{const u=a.mapping[s].aes;return o[s]=u[r],o},{})}const ite={},ote={class:"inline-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function lte(e,t){return g.openBlock(),g.createElementBlock("svg",ote,t[0]||(t[0]=[g.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),g.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 ste=Fr(ite,[["render",lte]]);function ute(e,t){return t==="discrete"?e&&by[e]?e:"box":t==="scatterplot"||t==="scatterplot-umap"?e&&Sy[e]?e:"dots":t==="dendro"?"dendro":"heatmap"}const by={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"]},Sy={dots:["dots"],curve:["curve"],curve_dots:["curve","dots"]},Gg={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",dendro:"Dendrogram"};function cte(e){return{overall:{data:{testMethod:(e==null?void 0:e.overall.data.testMethod)??null},validity:{testMethod:(e==null?void 0:e.overall.validity.testMethod)??!0}},referenceGroup:{data:{testMethod:(e==null?void 0:e.referenceGroup.data.testMethod)??null,referenceGroup:(e==null?void 0:e.referenceGroup.data.referenceGroup)??null,correctionMethod:(e==null?void 0:e.referenceGroup.data.correctionMethod)??"Bonferroni",format:(e==null?void 0:e.referenceGroup.data.format)??"significance",ns:(e==null?void 0:e.referenceGroup.data.ns)??!1},validity:{testMethod:(e==null?void 0:e.referenceGroup.validity.testMethod)??!0,referenceGroup:(e==null?void 0:e.referenceGroup.validity.referenceGroup)??!0}},pairwise:{data:{testMethod:(e==null?void 0:e.pairwise.data.testMethod)??null,correctionMethod:(e==null?void 0:e.pairwise.data.correctionMethod)??"Bonferroni",format:(e==null?void 0:e.pairwise.data.format)??"significance",ns:(e==null?void 0:e.pairwise.data.ns)??!1},validity:{testMethod:(e==null?void 0:e.pairwise.validity.testMethod)??!0}}}}function im(e){return typeof e=="object"&&e!==null&&"type"in e}const fte=()=>({dendro:{dotFill:ds,dotShape:fh,lineColor:ds,mode:"normal",leavesMode:"normal",showTable:!1},heatmap:{dendrogramX:!1,dendrogramY:!1},dots:{dotFill:null,dotShape:null},curve:{lineColor:ds,smoothing:!0},box:{showOutliers:!0,fillColor:null,lineColor:Ug,dotShape:fh,lineType:T4,gapWidth:.2,opacity:1,stat:{low:.25,middle:.5,upper:.75,k:1.5}},binnedDots:{fillColor:null,lineColor:Ug,opacity:1,showOutliers:!0},jitteredDots:{dotFill:null,dotShape:fh,lineColor:Ug,opacity:1,showOutliers:!0},violin:{fillColor:null,lineColor:Ug,lineType:T4,opacity:1,trim:!1},bar:{fillColor:null,lineColor:Ug,opacity:1,height:"max"},stackedBar:{fillColor:null,lineColor:Ug,opacity:1},line:{pointsValues:"mean",lineColor:null,dotShape:fh,lineType:T4,dotFill:ds,opacity:1},errorbar:{pointsValues:"mean",interval:"sd",lineColor:null,dotShape:fh,dotFill:ds,opacity:1},sina:{dotFill:null,dotShape:fh,opacity:1,showOutliers:!0}});function Ate(e){const t=fte();return Object.keys(t).reduce((r,a)=>(Object.assign(r[a],(e==null?void 0:e[a])??{}),r),t)}const dte=()=>({title:{value:"Graph 1",position:"left",facetTitleFrame:"full"},axisX:{labelsPosition:"bottom",labelsRotation:"center",axisLabelsAngle:90,titleMode:"auto",customTitle:"",gridlines:!0,linesBetweenCategories:!0,ticks:!0,scale:"linear"},axisY:{titleMode:"auto",customTitle:"",axisLabelsAngle:90,gridlines:!0,ticks:!0,scale:"linear"},legend:{},other:{frame:"full",reverse:!1,facetSharedBy:"xy",facetColumns:3}});function yM(e){return e==="full"||e==="none"}function pte(e,t){if(!t)return dte();function n(r){return e==="heatmap"&&!yM(r)?"full":e!=="heatmap"&&yM(r)&&r==="none"?"empty":r}return{title:{...t.title},axisX:{...t.axisX},axisY:{...t.axisY},legend:{...t.legend},other:{...t.other,frame:n(t.other.frame)}}}const C1={box:OX,box_binnedDots:GX,box_jitteredDots:KX,binnedDots:qX,jitteredDots:rZ,violin:lZ,violin_binnedDots:fZ,violin_jitteredDots:hZ,bar:yZ,bar_line:cD,bar_errorbar:xZ,stackedBar:PZ,line:fD,line_binnedDots:NZ,line_jitteredDots:AD,line_errorbar:zZ,errorbar:cD,sina:WZ,dots:JZ,curve:fD,curve_dots:AD,heatmap:nJ,dendro:ste},U4=[{value:"ttest",text:"TTest"},{value:"anova",text:"ANOVA"},{value:"wilcoxon",text:"Wilcoxon"},{value:"kruskalWallis",text:"Kruskal-Wallis"}],wM=[{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"}],CM=[{value:"pValue",text:"p-value"},{value:"significance",text:"significance"}];function EM(e,t,n){var a,o,s,u,c;if(((o=(a=e.components)==null?void 0:a.y)==null?void 0:o.selectorStates.length)===0)return[];if(!((u=(s=e.components)==null?void 0:s[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 hte(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 vte(e,t,n,r){const a=[],o=r.components.primaryGrouping.selectorStates.length>0,s=r.components.secondaryGrouping.selectorStates.length>0;function u(c,f=!1){return c===null?s?{type:"secondaryGrouping"}:o&&!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}})}}),o&&!s&&a.push(...hte(n)),a}function mte(e,t){const n=[];return e.forEach(r=>{if(r==="dots"){const a=t[r];n.push({type:"dots",aes:{dotFill:a.dotFill??ds,dotShape:a.dotShape??fh}})}if(r==="curve"){const a=t[r];n.push({type:"curve",smoothing:a.smoothing,aes:{lineColor:a.lineColor??ds}})}}),n}function pb(e,t,n,r,a){if(e==="discrete"){const o=by[t];return vte(o,n,r,a)}if(e==="scatterplot"||e==="scatterplot-umap"){const o=Sy[t];return mte(o,n)}return[]}function By(e,t,n){return e.some(r=>{var o;const a=(o=r==null?void 0:r.aes)==null?void 0:o[t];return im(a)&&a.type===n})}function z4(e,t,n){return e.some(r=>{var o;const a=(o=r==null?void 0:r.aes)==null?void 0:o[t];return im(a)&&a.value===n})}function bM(e,t,n,r,a){var c,f,d;const o=pb(e,t,n,r,a),s={};let u=[];return e==="discrete"&&(u=["primaryGrouping","secondaryGrouping"],u.forEach(h=>{var E,x;const y=(x=(E=a.components[h])==null?void 0:E.selectorStates[0])==null?void 0:x.selectedSource;y&&(s[y]={fill:By(o,"fillColor",h)||By(o,"dotFill",h),stroke:By(o,"lineColor",h),dotShape:By(o,"dotShape",h),lineType:By(o,"lineShape",h),size:!1})})),e==="scatterplot"&&(u=a.components.grouping.selectorStates.map(h=>h.selectedSource),u.forEach(h=>{s[h]={fill:z4(o,"dotFill",h),stroke:z4(o,"lineColor",h),dotShape:z4(o,"dotShape",h),lineType:!1,size:!1}})),e==="scatterplot-umap"&&(u=a.components.grouping.selectorStates.map(h=>h.selectedSource),u.forEach(h=>{s[h]={fill:z4(o,"dotFill",h),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(y=>y!==null),u.forEach(y=>{s[y]={fill:im(n.dendro.dotFill)&&n.dendro.dotFill.value===y,stroke:im(n.dendro.lineColor)&&n.dendro.lineColor.value===y,dotShape:im(n.dendro.dotShape)&&n.dendro.dotShape.value===y,lineType:!1,size:!1}})),s}function hb(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),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 vh(e){return JSON.parse(JSON.stringify(e))}function gte(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])}async function vb(e,t,n=!0){const r=[],a=t.filter(({selectedSource:u})=>"kind"in u&&u.kind==="PColumn"),o=t.filter(({selectedSource:u})=>!("kind"in u&&u.kind==="PColumn")),s=[];for(const{inputName:u,selectedSource:c,selectedFilterValue:f}of a){const{name:d,valueType:h,annotations:y,domain:E}=c,x=await e.pFrameProvider.findColumnBy(d,h,g.toRaw(y),g.toRaw(E));if(x){const B=await e.pFrameProvider.getColumnSpecById(x),P=(u==="filters"||u==="tabBy")&&typeof f>"u"?(await e.pFrameProvider.getColumnUniqueValues(x))[0]:f;r.push({inputName:u,selectedSource:x.toCanonicalString(),selectedFilterValue:P}),s.push(...(B==null?void 0:B.axesSpec.map(_=>({spec:_,parentColumn:x})))??[])}else console.warn(`Not found column for default option: ${JSON.stringify({inputName:u,selectedSource:c})}`)}for(const{inputName:u,selectedSource:c,selectedFilterValue:f}of o){const d=Hu.fromAxisSpec(c),h=d.toCanonicalString(),y=s.find(x=>Hu.fromAxisSpec(x.spec).toCanonicalString()===h),E=(u==="filters"||u==="tabBy")&&typeof f>"u"&&(y!=null&&y.parentColumn)?(await e.pFrameProvider.getAxisUniqueValues(d,[y==null?void 0:y.parentColumn]))[0]:f;if(n||r.push({inputName:u,selectedSource:h,selectedFilterValue:E}),y)r.push({inputName:u,selectedSource:h,selectedFilterValue:E});else{const{spec:x,parentColumn:B}=s.find(P=>d.name===P.spec.name&&d.type===P.spec.type&>e(d.domain,P.spec.domain))??{};if(x){const P=(u==="filters"||u==="tabBy")&&typeof f>"u"?(await e.pFrameProvider.getAxisUniqueValues(Hu.fromAxisSpec(x),[B]))[0]:f;r.push({inputName:u,selectedSource:Hu.fromAxisSpec(x).toCanonicalString(),selectedFilterValue:P})}}}return r}async function SM(e,t,n){if(!n||n.length===0)return e;const r=await vb(t,n,!1),a=vh(e);return r.forEach(({inputName:o,selectedSource:s,selectedFilterValue:u})=>{e.components[o]&&a.components[o].selectorStates.push({selectedSource:s,selectedFilterValue:u})}),a}function yte(e,t,n){const r=pb(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState),a=bM(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState);e.layers=r;const o=t.optionsState.components;if(o.primaryGrouping.selectorStates.length&&e.primaryGrouping){const s=o.primaryGrouping.selectorStates[0].selectedSource,u=a[s];Object.assign(e.primaryGrouping,gM(n,t.dataBindAes[s],s,u))}if(o.secondaryGrouping.selectorStates&&e.secondaryGrouping){const s=o.secondaryGrouping.selectorStates[0].selectedSource,u=a[s];Object.assign(e.secondaryGrouping,gM(n,t.dataBindAes[s],s,u))}return Object.assign(e,hb(t.axesSettings,t.chartType)),e}function wte(e,t,n){e.layers=pb(t.chartType,t.template,t.layersSettings,t.statisticsSettings,t.optionsState);const r=t.optionsState.components;if(r.grouping.selectorStates.length){const a={};r.grouping.selectorStates.forEach(({selectedSource:o})=>{a[o]=ate(o,n,t.dataBindAes)}),Object.assign(e,{inheritedAes:a})}return Object.assign(e,hb(t.axesSettings,t.chartType)),e}function Cte(e,t){const n={};return(e==null?void 0:e.valueType)!=="discrete"?(t.layersSettings.heatmap.dendrogramX&&(e.dendrogramX={fillNA:0,showNodes:!1}),t.layersSettings.heatmap.dendrogramY&&(e.dendrogramY={fillNA:0,position:"right",showNodes:!1}),n.colorsList=tu[CJ].colors):n.colorsList=tu.bright.colors,e.aes=n,Object.assign(e,hb(t.axesSettings,t.chartType)),e}const Ete=280;async function bte(e,t,n,r,a,o){var f,d,h;t.rootPosition="left";const s=r.optionsState.components,u=r.layersSettings.dendro,c=t==null?void 0:t.aes;if(c.nodeShape&&typeof c.nodeShape=="object"){const y=(f=s.nodeShape.selectorStates[0])==null?void 0:f.selectedSource,E=db(y,a,r.dataBindAes,"dotShape");Object.keys(E).length?c.nodeShape.valuesMap=E:c.nodeShape=Ab}else typeof u.dotShape=="string"&&(c.nodeShape=u.dotShape);if(c.nodeColor&&typeof c.nodeColor=="object"){const y=(d=s.nodeColor.selectorStates[0])==null?void 0:d.selectedSource,E=db(y,a,r.dataBindAes,"color");Object.keys(E).length?c.nodeColor.valuesMap=E:c.nodeColor=ds}else typeof u.dotFill=="string"&&(c.nodeColor=u.dotFill);if(c.lineColor&&typeof c.lineColor=="object"){const y=(h=s.lineColor.selectorStates[0])==null?void 0:h.selectedSource;c.lineColor.valuesMap=db(y,a,r.dataBindAes,"color")}else typeof u.lineColor=="string"&&(c.lineColor=u.lineColor);if(s.heatmapForSequence.selectorStates.length>0){const y=n.values.sequenceValue,E=[...new Set(y)].filter(Boolean),x=tu.bright.colors;t.heatmapSettings={valueType:"discrete",aes:{colorsMap:E.reduce((B,P,_)=>(B[P]=x[_%x.length],B),{})}},t.size.maxCellWidth=8}if(s.heatmapAnnotation.selectorStates.length>0){const y=_n(s.heatmapAnnotation.selectorStates[0].selectedSource),E=await e.pFrameProvider.getColumnSpecById(y),x=(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",B=tu.bright.colors;let P;x==="discrete"&&(P=(await e.pFrameProvider.getColumnUniqueValues(y)).filter(Boolean).reduce((H,D,G)=>(H[D]=B[G%B.length],H),{})),t.heatmapSettings={valueType:x,aes:{colorsList:tu.viridis.colors,colorsMap:P}}}return t.mode=u.mode,t.leavesMode=u.leavesMode,t.showNodesLabels=!1,t.showLeavesLabels=!1,(u.showTable||s.heatmapAnnotation.selectorStates.length>0||s.heatmapForSequence.selectorStates.length>0)&&(t.legend={show:!1}),u.showTable&&s.heatmapAnnotation.selectorStates.length===0&&s.heatmapForSequence.selectorStates.length===0&&(t.size={...t.size,width:Ete*(o/100)}),t.legend={show:!0},t}const Ste=600,Bte=350,xte=400,Tte=250;function kte(e,t=0){return{width:(t>0?xte:Ste)*(e/100),height:(t>0?Tte:Bte)*(e/100)}}async function _te(e,t,n,r){var a;if(!e.ready||n===null)return null;try{const o=x4(t.chartType),s=await SM(t.optionsState,n,r),u=await o.createDataForPlot(n,s);let c=u.settings;return c.title={name:"",show:!1},c.size=kte(t.chartScale,((a=t.optionsState.components)==null?void 0:a.facetBy.selectorStates.length)||0),t.chartType==="discrete"&&(c=yte(c,t,e)),(t.chartType==="scatterplot"||t.chartType==="scatterplot-umap")&&(c=wte(c,t,e)),t.chartType==="heatmap"&&(c=Cte(c,t)),t.chartType==="dendro"&&(c=await bte(n,c,u.dataByColumns,t,e,t.chartScale)),{settings:c,dataByColumns:u.dataByColumns}}catch(o){return console.warn("Cant build chart data"),console.warn(o.message),null}}function BM(e){return e.length<2?[]:e.map(t=>({value:String(t),text:String(t)}))}function xM(e){return e.length<2?[]:e.length>2?U4.filter(t=>t.value!=="ttest"&&t.value!=="wilcoxon"):U4}function mb(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=xM(t),o=BM(t),s=r.overall.data.testMethod,u=r.referenceGroup.data.referenceGroup;r.overall.validity.testMethod=n(a,s),r.referenceGroup.validity.referenceGroup=n(o,u)}}function Pte(e){e.dispatchEvent(new MouseEvent("click"))}function Hte(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(){Pte(r)},0)}function Dte(e,t){var n;return g.reactive({chartType:t,optionsState:((n=e.optionsState)==null?void 0:n.type)===t?vh(e.optionsState):vh(uD(t)),template:ute(e.template,t),statisticsSettings:cte(e.statisticsSettings),layersSettings:Ate(e.layersSettings),axesSettings:pte(t,e.axesSettings),dataBindAes:vh(e.dataBindAes??{}),chartScale:100,dendroInfoByClick:null,dendroSelectedNodeId:null})}function Mte(e,t,n,r,a){return{reactive:e,loading:g.reactive({initialInputGuide:!0,initialCharts:!0,inputGuide:!1,chartData:!1,dendroTableData:!1}),commonHelpersData:{primaryGroups:g.computed(()=>EM(e.optionsState,n.value,"primaryGrouping")),secondaryGroups:g.computed(()=>EM(e.optionsState,n.value,"secondaryGrouping")),usedAesInMapping:g.computed(()=>bM(e.chartType,e.template,e.layersSettings,e.statisticsSettings,e.optionsState)),dendroTableData:a},controller:x4(e.chartType),columnsDataStore:t,inputGuide:n,chartData:r}}function Ite(e,t,n,r,a){const o=Dte(e,n),s=x4(o.chartType),u=g.ref(x4(o.chartType).getEmptyInputGuide(o.optionsState)),c=g.ref(null),f=g.ref(null),d=g.computed(()=>Mte(o,g.toRaw(t.value),u,c,f));if(r&&!e.optionsState){let h=!1;g.watch(()=>t.value,async y=>{if(y&&r&&!h){h=!0,d.value.loading.initialInputGuide=!0;const E=vh(uD(n)).components,x=await vb(y,r);for(const{inputName:B,selectedSource:P,selectedFilterValue:_}of x)E[B].selectorStates.push({selectedSource:P,selectedFilterValue:_});o.optionsState.components={...o.optionsState.components,...E}}},{immediate:!0})}return g.watch([()=>o.optionsState,()=>t.value,()=>a.value],async([h,y,E])=>{d.value.loading.inputGuide=!0;const x=y&&E?(await vb(y,E,!1)).map(B=>B.selectedSource):[];u.value=y?await s.calculateOptions(g.toRaw(y),h,x):s.getEmptyInputGuide(h),d.value.loading.inputGuide=!1,d.value.loading.initialInputGuide=!1},{immediate:!0,deep:!0}),g.watch([()=>u.value,()=>o],async([h,y])=>{d.value.loading.chartData=!0,c.value=await _te(h,y,g.toRaw(t.value),a.value),h.ready&&(d.value.loading.initialCharts=!1),d.value.loading.chartData=!1},{immediate:!0,deep:!0}),o.chartType==="dendro"&&g.watch([()=>o.optionsState,()=>t.value,()=>u.value.readyData,()=>a.value],async([h,y,E,x])=>{if(E&&y){d.value.loading.dendroTableData=!0;const B=await SM(h,y,x);f.value=await s.createTableData(y,B),d.value.loading.dendroTableData=!1}},{immediate:!0}),g.provide(eD,d),d}function Ti(){return gX(g.inject(eD),"Empty store")}const Rte={class:"template-list"},Lte=["onClick"],Nte=["onClick"],Fte=g.defineComponent({__name:"TemplateForm",setup(e){const t=Ti(),n=Object.entries(by).map(([u,c])=>({id:u,text:c.map(f=>Gg[f]).join(" + "),icon:C1[u]})),r=Object.entries(Sy).map(([u,c])=>({id:u,text:c.map(f=>Gg[f]).join(" + "),icon:C1[u]})),a=[{id:"heatmap",text:"Heatmap",icon:C1.heatmap}],o=[{id:"dendro",text:"Dendrogram",icon:C1.dendro}];function s(u){t.value.reactive.template=u}return(u,c)=>(g.openBlock(),g.createElementBlock("div",{class:"template-form",onClick:c[0]||(c[0]=f=>f.stopPropagation())},[c[5]||(c[5]=g.createElementVNode("div",{class:"template-title"},[g.createElementVNode("h3",null," Template ")],-1)),g.createElementVNode("div",Rte,[g.unref(t).reactive.chartType==="discrete"?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:0},g.renderList(g.unref(n),({id:f,text:d,icon:h})=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["template-item",{selected:g.unref(t).reactive.template===f}]),onClick:y=>s(f)},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(h))),g.createTextVNode(" "+g.toDisplayString(d)+" ",1),c[1]||(c[1]=g.createElementVNode("div",{class:"checkmark"},null,-1))],10,Lte))),256)):g.createCommentVNode("",!0),g.unref(t).reactive.chartType==="scatterplot"?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:1},g.renderList(g.unref(r),({id:f,text:d,icon:h})=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["template-item",{selected:g.unref(t).reactive.template===f}]),onClick:y=>s(f)},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(h))),g.createTextVNode(" "+g.toDisplayString(d)+" ",1),c[2]||(c[2]=g.createElementVNode("div",{class:"checkmark"},null,-1))],10,Nte))),256)):g.createCommentVNode("",!0),g.unref(t).reactive.chartType==="heatmap"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},g.renderList(a,({text:f,icon:d})=>g.createElementVNode("div",{class:g.normalizeClass(["template-item",{selected:!0}])},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(d))),g.createTextVNode(" "+g.toDisplayString(f)+" ",1),c[3]||(c[3]=g.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):g.createCommentVNode("",!0),g.unref(t).reactive.chartType==="dendro"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:3},g.renderList(o,({text:f,icon:d})=>g.createElementVNode("div",{class:g.normalizeClass(["template-item",{selected:!0}])},[(g.openBlock(),g.createBlock(g.resolveDynamicComponent(d))),g.createTextVNode(" "+g.toDisplayString(f)+" ",1),c[4]||(c[4]=g.createElementVNode("div",{class:"checkmark"},null,-1))])),64)):g.createCommentVNode("",!0)])]))}}),$te={class:"inputs-block"},Qte={class:"separator"},Ote={class:"arrow-circle"},Vte={class:"inputs-block"},G4=g.defineComponent({__name:"FormLayout",setup(e){return(t,n)=>(g.openBlock(),g.createElementBlock(g.Fragment,null,[g.createElementVNode("div",{class:"left-block",onClick:n[0]||(n[0]=r=>r.stopPropagation())},[n[2]||(n[2]=g.createElementVNode("h3",null," Data Mapping ",-1)),g.createElementVNode("div",$te,[g.renderSlot(t.$slots,"dataVar")])]),g.createElementVNode("div",Qte,[g.createElementVNode("div",Ote,[g.createVNode(g.unref(Ot.PlIcon16),{name:"arrow-right"})])]),g.createElementVNode("div",{class:"right-block",onClick:n[1]||(n[1]=r=>r.stopPropagation())},[n[3]||(n[3]=g.createElementVNode("h3",null," Chart variables ",-1)),g.createElementVNode("div",Vte,[g.renderSlot(t.$slots,"chartVar")])])],64))}});function j4(e,t,n,r,a){return g.computed({get(){return e.value.components[t].selectorStates.map(o=>o.selectedSource)},set(o){if(!r)return;const s=o.map(u=>{const c=e.value.components[t].selectorStates.find(f=>f.selectedSource===u);return c?c.selectedFilterValue:a.value[u][0]});e.value=n.changeSelected(t,r,e.value,o,s)}})}function Y4(e,t,n,r){return g.computed({get(){return e.value.components[t].selectorStates.map(a=>a.selectedSource)},set(a){r&&(e.value=n.changeSelected(t,r,e.value,a))}})}function W4(e,t,n,r){return g.computed({get(){var a;return((a=e.value.components[t].selectorStates.map(o=>o.selectedSource))==null?void 0:a[0])??void 0},set(a){r&&(e.value=n.changeSelected(t,r,e.value,typeof a>"u"?[]:[a]))}})}function Ute(e,t,n){const r=e.options.map(o=>({text:t(o.value).label,value:o.value}));return n.selectorStates.map(o=>o.selectedSource).forEach(o=>{const s=t(o),u=e.stateConsistency[o]===!1;r.unshift({text:u?"Inconsistent value":s.label,value:o})}),r.sort((o,s)=>o.text>s.text?1:-1)}function K4(e,t){return Object.keys(e.components).reduce((n,r)=>(n[r]=Ute(t.value.components[r],t.value.getSourceInfo,e.components[r]),n),{})}function X4(e,t){if(!e.value.readyData)return[];const n=new Set;return t.forEach(r=>{e.value.components[r].options.forEach(({value:o})=>{n.add(o)})}),[...n].map(r=>({id:r,info:e.value.getSourceInfo(r)}))}function TM(e,t){return X4(e,t).filter(({info:n})=>n.kind!=="axis"||!n.mustBeConsumed)}function kM(e,t){return X4(e,t).filter(({info:n})=>n.kind==="axis"&&n.mustBeConsumed)}function _M(e,t){return Object.values(t.components[e].stateConsistency).some(n=>!n)}function gb(e,t){return _M(e,t)?" ":""}function Z4(e,t){return t.reduce((n,r)=>{const a=e.getSourceInfo(r),s=[...Object.keys(e.components).filter(d=>e.components[d].options.find(h=>h.value===r))],u=Object.values(e.components).some(({stateConsistency:d})=>d[r]===!1),c=a.valueLabels,f=(e.components.filters.filterValueOptions[r]??[]).sort((d,h)=>(c[d]??d)>(c[h]??h)?1:-1);return n[r]={id:r,title:u?"Inconsistent value":a.label,type:a.type==="String"?"string":"number",nonHomogenous:a.kind==="axis"&&a.mustBeConsumed,availableBasketIds:new Set(s),uniqueValues:f,valueLabels:c},n},{})}const yb=`<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>`,wb=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|