@platforma-sdk/ui-vue 1.10.2 → 1.10.4
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/CHANGELOG.md
CHANGED
package/dist/lib.js
CHANGED
|
@@ -21480,11 +21480,11 @@ const aO = { class: "ap-ag-data-table-container" }, lO = {
|
|
|
21480
21480
|
"isNotNA",
|
|
21481
21481
|
"isNA",
|
|
21482
21482
|
"string_equals",
|
|
21483
|
-
|
|
21483
|
+
"string_notEquals",
|
|
21484
21484
|
"string_contains",
|
|
21485
|
-
|
|
21485
|
+
"string_doesNotContain",
|
|
21486
21486
|
"string_matches",
|
|
21487
|
-
|
|
21487
|
+
"string_doesNotMatch",
|
|
21488
21488
|
"string_containsFuzzyMatch"
|
|
21489
21489
|
], F = P(() => {
|
|
21490
21490
|
const A = c.value, x = {};
|
|
@@ -21784,7 +21784,7 @@ const aO = { class: "ap-ag-data-table-container" }, lO = {
|
|
|
21784
21784
|
]);
|
|
21785
21785
|
}), 128));
|
|
21786
21786
|
}
|
|
21787
|
-
}), kG = /* @__PURE__ */ gl(cO, [["__scopeId", "data-v-
|
|
21787
|
+
}), kG = /* @__PURE__ */ gl(cO, [["__scopeId", "data-v-e5f3b00f"]]), hO = {
|
|
21788
21788
|
key: 1,
|
|
21789
21789
|
class: "alert-error"
|
|
21790
21790
|
}, pO = { key: 2 }, TG = /* @__PURE__ */ le({
|
package/dist/lib.umd.cjs
CHANGED
|
@@ -86,4 +86,4 @@ __p += '`),Fe&&(K+=`' +
|
|
|
86
86
|
function print() { __p += __j.call(arguments, '') }
|
|
87
87
|
`:`;
|
|
88
88
|
`)+K+`return __p
|
|
89
|
-
}`;var Ae=Uf(function(){return ze(_,ce+"return "+K).apply(n,x)});if(Ae.source=K,$c(Ae))throw Ae;return Ae}function ZD(o){return Ue(o).toLowerCase()}function UD(o){return Ue(o).toUpperCase()}function $D(o,a,d){if(o=Ue(o),o&&(d||a===n))return Jp(o);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Cn(a),_=Xp(h,g),x=Qp(h,g)+1;return Er(h,_,x).join("")}function WD(o,a,d){if(o=Ue(o),o&&(d||a===n))return o.slice(0,th(o)+1);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Qp(h,Cn(a))+1;return Er(h,0,g).join("")}function HD(o,a,d){if(o=Ue(o),o&&(d||a===n))return o.replace($l,"");if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Xp(h,Cn(a));return Er(h,g).join("")}function jD(o,a){var d=A,h=q;if(Qe(a)){var g="separator"in a?a.separator:g;d="length"in a?Te(a.length):d,h="omission"in a?Wt(a.omission):h}o=Ue(o);var _=o.length;if(wi(o)){var x=Cn(o);_=x.length}if(d>=_)return o;var B=d-bi(h);if(B<1)return h;var D=x?Er(x,0,B).join(""):o.slice(0,B);if(g===n)return D+h;if(x&&(B+=D.length-B),Wc(g)){if(o.slice(B).search(g)){var H,j=D;for(g.global||(g=ac(g.source,Ue(_p.exec(g))+"g")),g.lastIndex=0;H=g.exec(j);)var K=H.index;D=D.slice(0,K===n?B:K)}}else if(o.indexOf(Wt(g),B)!=B){var te=D.lastIndexOf(g);te>-1&&(D=D.slice(0,te))}return D+h}function qD(o){return o=Ue(o),o&&oT.test(o)?o.replace(gp,xB):o}var KD=Vi(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),qc=Uh("toUpperCase");function Zf(o,a,d){return o=Ue(o),a=d?n:a,a===n?vB(o)?EB(o):cB(o):o.match(a)||[]}var Uf=Ne(function(o,a){try{return Ut(o,n,a)}catch(d){return $c(d)?d:new xe(d)}}),YD=jn(function(o,a){return Yt(a,function(d){d=Dn(d),Wn(o,d,Zc(o[d],o))}),o});function JD(o){var a=o==null?0:o.length,d=he();return o=a?Ye(o,function(h){if(typeof h[1]!="function")throw new Jt(c);return[d(h[0]),h[1]]}):[],Ne(function(h){for(var g=-1;++g<a;){var _=o[g];if(Ut(_[0],this,h))return Ut(_[1],this,h)}})}function XD(o){return xV(Qt(o,y))}function Kc(o){return function(){return o}}function QD(o,a){return o==null||o!==o?a:o}var eF=Wh(),tF=Wh(!0);function Mt(o){return o}function Yc(o){return wh(typeof o=="function"?o:Qt(o,y))}function nF(o){return xh(Qt(o,y))}function rF(o,a){return kh(o,Qt(a,y))}var iF=Ne(function(o,a){return function(d){return Uo(d,o,a)}}),oF=Ne(function(o,a){return function(d){return Uo(o,d,a)}});function Jc(o,a,d){var h=pt(a),g=ia(a,h);d==null&&!(Qe(a)&&(g.length||!h.length))&&(d=a,a=o,o=this,g=ia(a,pt(a)));var _=!(Qe(d)&&"chain"in d)||!!d.chain,x=Kn(o);return Yt(g,function(B){var D=a[B];o[B]=D,x&&(o.prototype[B]=function(){var H=this.__chain__;if(_||H){var j=o(this.__wrapped__),K=j.__actions__=Dt(this.__actions__);return K.push({func:D,args:arguments,thisArg:o}),j.__chain__=H,j}return D.apply(o,Cr([this.value()],arguments))})}),o}function sF(){return ft._===this&&(ft._=PB),this}function Xc(){}function aF(o){return o=Te(o),Ne(function(a){return Sh(a,o)})}var lF=Vc(Ye),cF=Vc(Hp),dF=Vc(ec);function $f(o){return Mc(o)?tc(Dn(o)):GV(o)}function uF(o){return function(a){return o==null?n:qr(o,a)}}var pF=jh(),hF=jh(!0);function Qc(){return[]}function ed(){return!1}function fF(){return{}}function mF(){return""}function gF(){return!0}function yF(o,a){if(o=Te(o),o<1||o>we)return[];var d=ht,h=wt(o,ht);a=he(a),o-=ht;for(var g=ic(h,a);++d<o;)a(d);return g}function vF(o){return ke(o)?Ye(o,Dn):Ht(o)?[o]:Dt(df(Ue(o)))}function _F(o){var a=++AB;return Ue(o)+a}var CF=da(function(o,a){return o+a},0),wF=Ac("ceil"),bF=da(function(o,a){return o/a},1),xF=Ac("floor");function kF(o){return o&&o.length?ra(o,Mt,mc):n}function SF(o,a){return o&&o.length?ra(o,he(a,2),mc):n}function EF(o){return Kp(o,Mt)}function TF(o,a){return Kp(o,he(a,2))}function BF(o){return o&&o.length?ra(o,Mt,_c):n}function VF(o,a){return o&&o.length?ra(o,he(a,2),_c):n}var AF=da(function(o,a){return o*a},1),NF=Ac("round"),PF=da(function(o,a){return o-a},0);function DF(o){return o&&o.length?rc(o,Mt):0}function FF(o,a){return o&&o.length?rc(o,he(a,2)):0}return v.after=nP,v.ary=wf,v.assign=UP,v.assignIn=Rf,v.assignInWith=xa,v.assignWith=$P,v.at=WP,v.before=bf,v.bind=Zc,v.bindAll=YD,v.bindKey=xf,v.castArray=fP,v.chain=vf,v.chunk=xA,v.compact=kA,v.concat=SA,v.cond=JD,v.conforms=XD,v.constant=Kc,v.countBy=DN,v.create=HP,v.curry=kf,v.curryRight=Sf,v.debounce=Ef,v.defaults=jP,v.defaultsDeep=qP,v.defer=rP,v.delay=iP,v.difference=EA,v.differenceBy=TA,v.differenceWith=BA,v.drop=VA,v.dropRight=AA,v.dropRightWhile=NA,v.dropWhile=PA,v.fill=DA,v.filter=RN,v.flatMap=LN,v.flatMapDeep=ON,v.flatMapDepth=GN,v.flatten=ff,v.flattenDeep=FA,v.flattenDepth=RA,v.flip=oP,v.flow=eF,v.flowRight=tF,v.fromPairs=MA,v.functions=tD,v.functionsIn=nD,v.groupBy=zN,v.initial=LA,v.intersection=OA,v.intersectionBy=GA,v.intersectionWith=zA,v.invert=iD,v.invertBy=oD,v.invokeMap=UN,v.iteratee=Yc,v.keyBy=$N,v.keys=pt,v.keysIn=Rt,v.map=ya,v.mapKeys=aD,v.mapValues=lD,v.matches=nF,v.matchesProperty=rF,v.memoize=_a,v.merge=cD,v.mergeWith=Mf,v.method=iF,v.methodOf=oF,v.mixin=Jc,v.negate=Ca,v.nthArg=aF,v.omit=dD,v.omitBy=uD,v.once=sP,v.orderBy=WN,v.over=lF,v.overArgs=aP,v.overEvery=cF,v.overSome=dF,v.partial=Uc,v.partialRight=Tf,v.partition=HN,v.pick=pD,v.pickBy=If,v.property=$f,v.propertyOf=uF,v.pull=WA,v.pullAll=gf,v.pullAllBy=HA,v.pullAllWith=jA,v.pullAt=qA,v.range=pF,v.rangeRight=hF,v.rearg=lP,v.reject=KN,v.remove=KA,v.rest=cP,v.reverse=Gc,v.sampleSize=JN,v.set=fD,v.setWith=mD,v.shuffle=XN,v.slice=YA,v.sortBy=tP,v.sortedUniq=rN,v.sortedUniqBy=iN,v.split=LD,v.spread=dP,v.tail=oN,v.take=sN,v.takeRight=aN,v.takeRightWhile=lN,v.takeWhile=cN,v.tap=kN,v.throttle=uP,v.thru=ga,v.toArray=Pf,v.toPairs=Lf,v.toPairsIn=Of,v.toPath=vF,v.toPlainObject=Ff,v.transform=gD,v.unary=pP,v.union=dN,v.unionBy=uN,v.unionWith=pN,v.uniq=hN,v.uniqBy=fN,v.uniqWith=mN,v.unset=yD,v.unzip=zc,v.unzipWith=yf,v.update=vD,v.updateWith=_D,v.values=Pi,v.valuesIn=CD,v.without=gN,v.words=Zf,v.wrap=hP,v.xor=yN,v.xorBy=vN,v.xorWith=_N,v.zip=CN,v.zipObject=wN,v.zipObjectDeep=bN,v.zipWith=xN,v.entries=Lf,v.entriesIn=Of,v.extend=Rf,v.extendWith=xa,Jc(v,v),v.add=CF,v.attempt=Uf,v.camelCase=kD,v.capitalize=Gf,v.ceil=wF,v.clamp=wD,v.clone=mP,v.cloneDeep=yP,v.cloneDeepWith=vP,v.cloneWith=gP,v.conformsTo=_P,v.deburr=zf,v.defaultTo=QD,v.divide=bF,v.endsWith=SD,v.eq=bn,v.escape=ED,v.escapeRegExp=TD,v.every=FN,v.find=MN,v.findIndex=pf,v.findKey=KP,v.findLast=IN,v.findLastIndex=hf,v.findLastKey=YP,v.floor=xF,v.forEach=_f,v.forEachRight=Cf,v.forIn=JP,v.forInRight=XP,v.forOwn=QP,v.forOwnRight=eD,v.get=Hc,v.gt=CP,v.gte=wP,v.has=rD,v.hasIn=jc,v.head=mf,v.identity=Mt,v.includes=ZN,v.indexOf=IA,v.inRange=bD,v.invoke=sD,v.isArguments=Jr,v.isArray=ke,v.isArrayBuffer=bP,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=xP,v.isBuffer=Tr,v.isDate=kP,v.isElement=SP,v.isEmpty=EP,v.isEqual=TP,v.isEqualWith=BP,v.isError=$c,v.isFinite=VP,v.isFunction=Kn,v.isInteger=Bf,v.isLength=wa,v.isMap=Vf,v.isMatch=AP,v.isMatchWith=NP,v.isNaN=PP,v.isNative=DP,v.isNil=RP,v.isNull=FP,v.isNumber=Af,v.isObject=Qe,v.isObjectLike=et,v.isPlainObject=Ko,v.isRegExp=Wc,v.isSafeInteger=MP,v.isSet=Nf,v.isString=ba,v.isSymbol=Ht,v.isTypedArray=Ni,v.isUndefined=IP,v.isWeakMap=LP,v.isWeakSet=OP,v.join=ZA,v.kebabCase=BD,v.last=tn,v.lastIndexOf=UA,v.lowerCase=VD,v.lowerFirst=AD,v.lt=GP,v.lte=zP,v.max=kF,v.maxBy=SF,v.mean=EF,v.meanBy=TF,v.min=BF,v.minBy=VF,v.stubArray=Qc,v.stubFalse=ed,v.stubObject=fF,v.stubString=mF,v.stubTrue=gF,v.multiply=AF,v.nth=$A,v.noConflict=sF,v.noop=Xc,v.now=va,v.pad=ND,v.padEnd=PD,v.padStart=DD,v.parseInt=FD,v.random=xD,v.reduce=jN,v.reduceRight=qN,v.repeat=RD,v.replace=MD,v.result=hD,v.round=NF,v.runInContext=P,v.sample=YN,v.size=QN,v.snakeCase=ID,v.some=eP,v.sortedIndex=JA,v.sortedIndexBy=XA,v.sortedIndexOf=QA,v.sortedLastIndex=eN,v.sortedLastIndexBy=tN,v.sortedLastIndexOf=nN,v.startCase=OD,v.startsWith=GD,v.subtract=PF,v.sum=DF,v.sumBy=FF,v.template=zD,v.times=yF,v.toFinite=Yn,v.toInteger=Te,v.toLength=Df,v.toLower=ZD,v.toNumber=nn,v.toSafeInteger=ZP,v.toString=Ue,v.toUpper=UD,v.trim=$D,v.trimEnd=WD,v.trimStart=HD,v.truncate=jD,v.unescape=qD,v.uniqueId=_F,v.upperCase=KD,v.upperFirst=qc,v.each=_f,v.eachRight=Cf,v.first=mf,Jc(v,function(){var o={};return Nn(v,function(a,d){$e.call(v.prototype,d)||(o[d]=a)}),o}(),{chain:!1}),v.VERSION=i,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){v[o].placeholder=v}),Yt(["drop","take"],function(o,a){De.prototype[o]=function(d){d=d===n?1:lt(Te(d),0);var h=this.__filtered__&&!a?new De(this):this.clone();return h.__filtered__?h.__takeCount__=wt(d,h.__takeCount__):h.__views__.push({size:wt(d,ht),type:o+(h.__dir__<0?"Right":"")}),h},De.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,a){var d=a+1,h=d==N||d==Y;De.prototype[o]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:he(g,3),type:d}),_.__filtered__=_.__filtered__||h,_}}),Yt(["head","last"],function(o,a){var d="take"+(a?"Right":"");De.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");De.prototype[o]=function(){return this.__filtered__?new De(this):this[d](1)}}),De.prototype.compact=function(){return this.filter(Mt)},De.prototype.find=function(o){return this.filter(o).head()},De.prototype.findLast=function(o){return this.reverse().find(o)},De.prototype.invokeMap=Ne(function(o,a){return typeof o=="function"?new De(this):this.map(function(d){return Uo(d,o,a)})}),De.prototype.reject=function(o){return this.filter(Ca(he(o)))},De.prototype.slice=function(o,a){o=Te(o);var d=this;return d.__filtered__&&(o>0||a<0)?new De(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==n&&(a=Te(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},De.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},De.prototype.toArray=function(){return this.take(ht)},Nn(De.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);g&&(v.prototype[a]=function(){var x=this.__wrapped__,B=h?[1]:arguments,D=x instanceof De,H=B[0],j=D||ke(x),K=function(Pe){var Fe=g.apply(v,Cr([Pe],B));return h&&te?Fe[0]:Fe};j&&d&&typeof H=="function"&&H.length!=1&&(D=j=!1);var te=this.__chain__,ce=!!this.__actions__.length,me=_&&!te,Ae=D&&!ce;if(!_&&j){x=Ae?x:new De(this);var ge=o.apply(x,B);return ge.__actions__.push({func:ga,args:[K],thisArg:n}),new Xt(ge,te)}return me&&Ae?o.apply(this,B):(ge=this.thru(K),me?h?ge.value()[0]:ge.value():ge)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var a=Zs[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",h=/^(?:pop|shift)$/.test(o);v.prototype[o]=function(){var g=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(ke(_)?_:[],g)}return this[d](function(x){return a.apply(ke(x)?x:[],g)})}}),Nn(De.prototype,function(o,a){var d=v[a];if(d){var h=d.name+"";$e.call(Ei,h)||(Ei[h]=[]),Ei[h].push({name:a,func:d})}}),Ei[ca(n,C).name]=[{name:"wrapper",func:n}],De.prototype.clone=qB,De.prototype.reverse=KB,De.prototype.value=YB,v.prototype.at=SN,v.prototype.chain=EN,v.prototype.commit=TN,v.prototype.next=BN,v.prototype.plant=AN,v.prototype.reverse=NN,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=PN,v.prototype.first=v.prototype.head,Mo&&(v.prototype[Mo]=VN),v},xi=TB();Ur?((Ur.exports=xi)._=xi,Yl._=xi):ft._=xi}).call(Di)}(Bs,Bs.exports);var Oe=Bs.exports;const vE={class:"grid-overlay-container"},Qu=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",vE,[e.params.notReady?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n[0]||(n[0]=r.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),n[1]||(n[1]=r.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n[2]||(n[2]=r.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),n[3]||(n[3]=r.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),_E={},CE={class:"grid-overlay-container"};function wE(t,e){return r.openBlock(),r.createElementBlock("div",CE,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const ep=Ts(_E,[["render",wE]]);async function bE(t,e){throw Error("not implemented")}function xE(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function kE(t,e){const n=[];for(const i of e)if(t[i].type==="column"){const s=xE(t[i].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const c=Sd(l),u=t.findIndex(p=>Oe.isEqual(p.id,c));if(u===-1)throw console.error("axis not found",i,c,t),Error("axis not found");n.push({columnIdx:i,axisIdx:u})}}return n}const tp=(t,e)=>(t+e).toString();function SE(t,e,n,i,s,l){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const c=t[0];let u=-1,p=-1;for(let y=0;y<l.length;++y)l[y]===c.axisIdx&&(u=y),l[y]===c.columnIdx&&(p=y);const f=(()=>{const S=i[u].data.filter(E=>E!==null);return Array.from(new Set(S))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=EE(s,i,u,p,f,e.rows);for(let y=0;y<f.length;++y){const S=f[y],E=S+"@"+y;n.push({colId:E,field:tp(i.length,y),headerName:S,valueFormatter:rp})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function EE(t,e,n,i,s,l){const c=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let V=0;V<e.length;++V){if(V===n||V===i)continue;const F=t[V].toString();m[F]=e[V].data[f]}let y;const S=Xr(Object.values(m))??"";c.has(S)?y=c.get(S):(c.set(S,m),y=m,y.id=u.toString(),u++);const E=s.indexOf(e[n].data[f]);if(E===-1)throw Error("index not found");const M=tp(e.length,E);y[M]=e[i].data[f]}return Array.from(c.values())}function TE(t){return Xr(t)}function np(t){return JSON.parse(t)}const rp=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function BE(t,e,n){var s,l,c;const i=TE(e);return{colId:i,field:t.toString(),headerName:((l=(s=e.spec.annotations)==null?void 0:s["pl7.app/label"])==null?void 0:l.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(n==null?void 0:n.includes(i))??((c=e.spec.annotations)==null?void 0:c["pl7.app/table/visibility"])==="optional",valueFormatter:rp,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function ip(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function op(t){const e=[];return as(t,n=>(e.push(n),n)),e}async function VE(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Oe.uniqWith(n.map(s=>Za(s.spec.axesSpec).map(Oe.cloneDeep)).flat(),Oe.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function AE(t,e,n){const i=op(n),l=(await VE(t,e,i)).filter(c=>!Oe.find(i,u=>c.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(c=>({type:"column",column:c}))}}async function NE(t,e,n,i){const s=n.filter(m=>m.type!=="Bytes"),l=op(i),c=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=Za(l[m].spec.axesSpec);for(let S=0;S<y.length;++S){const E=Oe.findIndex(s,M=>Oe.isEqual(M,y[S]));E===-1||u[E]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(c[E]=[[m,S]],u[E]=l[m].columnId):c[E].push([m,S]))}}for(let m=s.length-1;m>=0;--m)c[m].length||(u.splice(m,1),c.splice(m,1),s.splice(m,1));const p=100,f=s.map(m=>new Set);e:for(let m=s.length-1;m>=0;--m){for(const[y,S]of c[m]){const E=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Oe.cloneDeep(s[m])},filters:[],limit:p});if(E.overflow){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}const M=E.values.type;for(const V of E.values.data)if(!(kd(V,M)||V===null)&&(f[m].add(ip(V,M)),f[m].size===p)){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}return s.map((m,y)=>{const S=[...f[y]].map(M=>({value:M,text:M.toString()})),E=S[0].value;return{axis:Oe.cloneDeep(m),...u[y]&&{column:u[y]},options:S,defaultValue:E}})}function PE(t,e,n,i){const s=t.length,l=[];for(let c=0;c<e[0].data.length;++c){const u=[],p=(i++).toString();for(const m of n)u.push(e[m].data[c]);const f={key:u,id:p};for(let m=0;m<s;++m){const y=t[m].toString(),S=e[m].data[c],E=e[m].type;gg(e[m].absent,c)?f[y]=void 0:kd(S,E)||S===null?f[y]=null:f[y]=ip(S,E)}l.push(f)}return l}const DE=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function FE(t,e,n,i){const s=await t.getSpec(e);let l=s.findIndex(C=>C.type==="column");l===-1&&(l=s.length);const c=[...s.keys()].filter(C=>!Oe.find(n,G=>Oe.isEqual(G.axis,s[C].id)||Oe.isEqual(G.column,s[C].id))).sort((C,G)=>{var L,U;if(s[C].type!==s[G].type)return s[C].type==="axis"?-1:1;const Q=(L=s[C].spec.annotations)==null?void 0:L["pl7.app/table/orderPriority"],I=(U=s[G].spec.annotations)==null?void 0:U["pl7.app/table/orderPriority"];return Q===void 0?I===void 0?0:1:I===void 0?-1:Number(I)-Number(Q)}),u=Oe.cloneDeep(c),p=kE(s,c);for(let C=c.length-1;C>=0;--C){const G=c[C];if(!DE(s[G]))continue;const Q=Za(s[G].spec.axesSpec)[0],I=Oe.findIndex(c,L=>Oe.isEqual(s[L].id,Q));if(I!==-1){c[I]=G;for(const L of p)L.axisIdx===G&&(L.axisIdx=I);c.splice(C,1),u.splice(C,1)}}const f=await t.getShape(e),m=f.rows,y=u.map(C=>BE(C,s[C],i));if(p.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",p.length," transposition will not be applied."),p.length===1)return SE(p,f,y,await t.getData(e,c),u,c);const S=[...c],E=new Map;for(let C=0;C<l;++C)E.set(C,-1);for(let C=0;C<S.length;++C){const G=S[C];E.has(G)&&E.set(G,C)}for(const[C,G]of E)G===-1&&(E.set(C,S.length),S.push(C));const M=[];for(let C=0;C<l;++C){const G=E.get(C);if(G===void 0||G===-1)throw new Error("assertion exception");M.push(G)}let V;return{rowModelType:"serverSide",columnDefs:y,serverSideDatasource:{getRows:async C=>{try{if(m==0){C.success({rowData:[],rowCount:m}),C.api.showNoRowsOverlay(),C.api.setGridOption("loading",!1);return}if(V&&!Oe.isEqual(V.request.sortModel,C.request.sortModel)){V=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}V=C;let G=0,Q=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(G=Math.min(m,C.request.endRow)-C.request.startRow,G>0)){const I=await t.getData(e,S,{offset:C.request.startRow,length:G});Q=PE(u,I,M,C.request.startRow)}C.success({rowData:Q,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(G){C.api.setGridOption("loading",!0),C.fail(),console.trace(G)}}}}}const RE={class:"ap-ag-data-table-container"},ME={key:0,class:"ap-ag-data-table-sheets"},IE=Ts(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{emit:e}){b.ModuleRegistry.registerModules([Jo.ClientSideRowModelModule,ad.ClipboardModule,sd.ServerSideRowModelModule,ld.RangeSelectionModule,Ha,jd]);const n=r.useModel(t,"modelValue"),i=t,{settings:s}=r.toRefs(i),l=e;r.watch(()=>s.value,async(I,L)=>{if(I.sourceType!=="pframe"||!I.pFrame||!I.join||L&&L.sourceType==="pframe"&&Oe.isEqual(I.pFrame,L.pFrame)&&Oe.isEqual(I.join,L.join))return;const U=window.platforma;if(!U)throw Error("platforma not set");const T=U.pFrameDriver;if(!T)throw Error("platforma.pFrameDriver not set");const k=await AE(T,I.pFrame,I.join),O=n.value;O.pTableParams||(O.pTableParams={sorting:[],filters:[]}),O.pTableParams.join=k,n.value=O});const c=sp(()=>s.value.sourceType,async I=>{var U;const L=s.value.sourceType;switch(L){case"pframe":{const T=window.platforma;if(!T)throw Error("platforma not set");const k=T.pFrameDriver;if(!k)throw Error("platforma.pFrameDriver not set");if(!s.value.pFrame)return[];const O=s.value.pFrame,A=(U=n.value.pTableParams)==null?void 0:U.join;return A?await NE(k,O,s.value.sheetAxes,A):[]}case"ptable":return s.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${L}`)}});function u(I){if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return(I==null?void 0:I.sortModel.map(L=>{const{spec:U,...T}=np(L.colId);return{column:T,ascending:L.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const p=r.computed({get:()=>{const I=n.value;return{columnOrder:I.gridState.columnOrder,sort:I.gridState.sort,columnVisibility:I.gridState.columnVisibility}},set:I=>{const L=n.value,U=E.value.rowModelType==="clientSide"?void 0:u(I.sort);L.gridState={...L.gridState,...I},(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(L.pTableParams||(L.pTableParams={sorting:[],filters:[]}),L.pTableParams.sorting=U),n.value=L}}),f=I=>Xr(I);function m(I){var L;if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return((L=c.value)==null?void 0:L.map(U=>({type:"bySingleColumn",column:U.column?{type:"column",id:U.column}:{type:"axis",id:U.axis},predicate:{operator:"Equal",reference:I[f(U.axis)]}})))??[]}const y=r.computed({get:()=>n.value.gridState.sheets??{},set:I=>{const L=m(I),U=n.value;U.gridState.sheets=I,(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(U.pTableParams||(U.pTableParams={sorting:[],filters:[]}),U.pTableParams.filters=L),n.value=U}});r.watch(()=>[s.value,c.value],(I,L)=>{const[U,T]=I;if(!T)return;if(L){const[O,A]=L;if((U.sourceType==="ptable"||U.sourceType==="pframe")&&U.sourceType===(O==null?void 0:O.sourceType)&&Oe.isEqual(T,A))return}if(U.sourceType!=="ptable"&&U.sourceType!=="pframe"){y.value={};return}const k=y.value;for(const O of T){const A=f(O.axis);k[A]||(k[A]=O.defaultValue??O.options[0].value)}y.value=k},{immediate:!0});const S=r.shallowRef(),E=r.ref({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:p.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:I=>{I.api.autoSizeAllColumns()},onRowDoubleClicked:I=>{I.data&&l("onRowDoubleClicked",I.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:I=>I.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:Qu,noRowsOverlayComponent:ep,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"}}),M=I=>{const L=I.api;S.value=new Proxy(L,{get(U,T,k){switch(T){case"setGridOption":return(O,A)=>{const q=E.value;q[O]=A,E.value=q,L.updateGridOptions(q)};case"updateGridOptions":return O=>{E.value={...E.value,...O},L.updateGridOptions(O)};default:return Reflect.get(U,T,k)}}})},V=I=>({columnOrder:I.columnOrder,sort:I.sort,columnVisibility:I.columnVisibility??(I.columnOrder?{hiddenColIds:[]}:void 0)}),F=I=>{E.value.initialState=p.value=V(I.state),I.api.autoSizeAllColumns()},C=()=>{E.value.initialState=p.value=V(S.value.getState()),S.value=void 0},G=r.ref(0);r.watch(()=>[S.value,p.value],(I,L)=>{if(Oe.isEqual(I,L))return;const[U,T]=I;if(!U)return;const k=V(U.getState());Oe.isEqual(T,k)||(E.value.initialState=T,++G.value)}),r.watch(()=>E.value,(I,L)=>{var U;if(L&&(I.rowModelType!=L.rowModelType&&++G.value,!Oe.isEqual(I.columnDefs,L.columnDefs)&&I.columnDefs)){const T=A=>!("children"in A),k=(U=I.columnDefs)==null?void 0:U.filter(T),O=k==null?void 0:k.map(A=>A.colId).filter(A=>A!==void 0).map(A=>np(A));l("columnsChanged",O??[])}});const Q=(I,L)=>{var T;const U=y.value;U[I]!==L&&(U[I]=L,y.value=U,(T=S.value)==null||T.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))};return r.watch(()=>[S.value,s.value,c.value],async(I,L)=>{var q,se;if(Oe.isEqual(I,L))return;const[U,T,k]=I;if(!U)return;const O=window.platforma;if(!O)throw Error("platforma not set");const A=T.sourceType;switch(A){case"pframe":case"ptable":{const $=O.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const N=T.pTable;if(!N||!k)return U.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=(se=(q=p.value)==null?void 0:q.columnVisibility)==null?void 0:se.hiddenColIds,Y=await FE($,N,k,Z);return U.updateGridOptions({loading:Y.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...Y})}case"xsv":{const $=O.blobDriver;if(!$)throw Error("platforma.blobDriver not set");const N=T.xsvFile;if(!(N!=null&&N.ok)||!N.value)return U.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=await bE($,N.value);return U.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...Z})}default:throw Error(`unsupported source type: ${A}`)}}),(I,L)=>(r.openBlock(),r.createElementBlock("div",RE,[r.createVNode(r.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:r.withCtx(()=>[r.unref(c).value&&r.unref(c).value.length>0?(r.openBlock(),r.createElementBlock("div",ME,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).value,(U,T)=>(r.openBlock(),r.createBlock(r.unref(Vu),{key:T,"model-value":y.value[f(U.axis)],options:U.options,"onUpdate:modelValue":k=>Q(f(U.axis),k)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)]),_:1}),(r.openBlock(),r.createBlock(r.unref(tm.AgGridVue),{key:G.value,theme:r.unref(Kd),class:"ap-ag-data-table-grid","grid-options":E.value,onGridReady:M,onStateUpdated:F,onGridPreDestroyed:C},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-278d42fe"]]),LE={key:0,class:"d-flex gap-10 flex-column"},OE=Ts(r.defineComponent({__name:"PlTableFilters",props:r.mergeModels({columns:{},restrictions:{},defaults:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t,{columns:i,restrictions:s,defaults:l}=r.toRefs(n),c=T=>Xr(T.id),u=r.computed(()=>i.value.filter(T=>{const k=T.type;switch(k){case"axis":return T.spec.type!=="Bytes";case"column":return T.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${k}`)}}).map(T=>({column:T,id:c(T)}))),p=r.computed(()=>{const T=s.value??[],k={};for(const{column:O,id:A}of u.value){const q=Oe.find(T,se=>Oe.isEqual(se.column.id,O.id));q!==void 0&&(k[A]=q.allowedFilterTypes)}return k}),f=r.computed(()=>{const T=l.value??[],k={};for(const{column:O,id:A}of u.value){const q=Oe.find(T,se=>Oe.isEqual(se.column.id,O.id));q!==void 0&&(k[A]=q.default)}return k}),m=T=>T!==void 0?T:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,T=>{Oe.isEqual(y.state,T.state)||(y.state=m(T.state))}),r.watch(()=>u.value,T=>{const k=y.state??{},O={};for(const{id:A}of T)k[A]!==void 0&&(O[A]=k[A]);y.state=O},{immediate:!0});const S=T=>{switch(T){case"isNotNA":return"Is not NA";case"isNA":return"Is NA";case"number_equals":case"string_equals":return"Equals";case"number_notEquals":case"string_notEquals":return"Not equals";case"number_greaterThen":return"Greater then";case"number_greaterThenOrEqualTo":return"Greater then or equal to";case"number_lessThen":return"Less then";case"number_lessThenOrEqualTo":return"Less then or equal to";case"number_between":return"Between";case"string_contains":return"Contains";case"string_doesNotContain":return"Does not contain";case"string_matches":return"Matches";case"string_doesNotMatch":return"Does not match";case"string_containsFuzzyMatch":return"Contains fuzzy match";default:throw Error(`unsupported filter type: ${T}`)}},E=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThen","number_greaterThenOrEqualTo","number_lessThen","number_lessThenOrEqualTo","number_between"],M=["isNotNA","isNA","string_equals","string_contains","string_matches","string_containsFuzzyMatch"],V=r.computed(()=>{const T=p.value,k={};for(const{column:O,id:A}of u.value){let se=(O.type==="column"?O.spec.valueType:O.spec.type)==="String"?M:E;const $=T[A];$!==void 0&&(se=se.filter(N=>$.includes(N))),k[A]=se.map(N=>({value:N,text:S(N)}))}return k}),F=T=>{const k=T.type;switch(k){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThen":case"number_greaterThenOrEqualTo":case"number_lessThen":case"number_lessThenOrEqualTo":return T.reference;case"number_between":return T.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return T.reference;default:throw Error(`unsupported filter type: ${k}`)}},C=(T,k)=>{switch(T){case"isNotNA":case"isNA":return{type:T};case"number_equals":case"number_notEquals":case"number_greaterThen":case"number_greaterThenOrEqualTo":case"number_lessThen":case"number_lessThenOrEqualTo":return{type:T,reference:typeof k=="number"?k:0};case"number_between":return{type:T,lowerBound:typeof k=="number"?k:0,includeLowerBound:!0,upperBound:100,includeUpperBound:!1};case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":return{type:T,reference:typeof k=="string"?k:""};case"string_containsFuzzyMatch":return{type:T,reference:typeof k=="string"?k:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${T}`)}},G=(T,k)=>{const O=y.state[T];y.state[T]=C(k,F(O))},Q=(T,k)=>{k?y.state[T]=f.value[T]??C(V.value[T][0].value):delete y.state[T]},I=T=>{const k=Oe.uniq(T);return k.sort(),k.map(O=>({value:O,text:O}))},L=T=>{const k=T.type;switch(k){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:T.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:T.reference}};case"number_greaterThen":return{operator:"Greater",reference:T.reference};case"number_greaterThenOrEqualTo":return{operator:"GreaterOrEqual",reference:T.reference};case"number_lessThen":return{operator:"Less",reference:T.reference};case"number_lessThenOrEqualTo":return{operator:"LessOrEqual",reference:T.reference};case"number_between":return{operator:"And",operands:[{operator:T.includeLowerBound?"GreaterOrEqual":"Greater",reference:T.lowerBound},{operator:T.includeUpperBound?"LessOrEqual":"Less",reference:T.upperBound}]};case"string_contains":return{operator:"StringContains",substring:T.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:T.reference}};case"string_matches":return{operator:"Matches",regex:T.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:T.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:T.reference,maxEdits:T.maxEdits,substitutionsOnly:T.substitutionsOnly,wildcard:T.wildcard};default:throw Error(`unsupported filter type: ${k}`)}},U=T=>u.value.map(({column:k,id:O})=>{if(!(O in T))return;const A=L(T[O]),{spec:q,...se}=k;return{type:"bySingleColumn",column:se,predicate:A}}).filter(k=>k!==void 0);return r.watch(()=>y,T=>{Oe.isEqual(T.state,e.value.state)||(e.value={state:Oe.cloneDeep(T.state),filters:U(T.state)})},{immediate:!0,deep:!0}),(T,k)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:O,id:A},q)=>{var se,$,N,Z,Y,pe,we,Ct,Tt,ht,yr,An,vr,zn;return r.openBlock(),r.createElementBlock("div",{key:A},[V.value[A].length>0?(r.openBlock(),r.createElementBlock("form",LE,[r.createVNode(r.unref(Au),{"model-value":!!y.state[A],"onUpdate:modelValue":Ge=>Q(A,Ge)},{default:r.withCtx(()=>{var Ge,Ps;return[r.createTextVNode(r.toDisplayString(((Ps=(Ge=O.spec.annotations)==null?void 0:Ge["pl7.app/label"])==null?void 0:Ps.trim())??"Unlabeled "+O.type+" "+q.toString()),1)]}),_:2},1032,["model-value","onUpdate:modelValue"]),r.createElementVNode("div",{class:r.normalizeClass(["controls d-flex gap-10 flex-column",{open:!!y.state[A]}])},[y.state[A]?(r.openBlock(),r.createBlock(r.unref(so),{key:0,"model-value":y.state[A].type,options:V.value[A],label:"Predicate","onUpdate:modelValue":Ge=>G(A,Ge)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((se=y.state[A])==null?void 0:se.type)==="number_equals"||(($=y.state[A])==null?void 0:$.type)==="number_notEquals"||((N=y.state[A])==null?void 0:N.type)==="number_lessThen"||((Z=y.state[A])==null?void 0:Z.type)==="number_lessThenOrEqualTo"||((Y=y.state[A])==null?void 0:Y.type)==="number_greaterThen"||((pe=y.state[A])==null?void 0:pe.type)==="number_greaterThenOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(ms),{key:1,modelValue:y.state[A].reference,"onUpdate:modelValue":Ge=>y.state[A].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((we=y.state[A])==null?void 0:we.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(ms),{modelValue:y.state[A].lowerBound,"onUpdate:modelValue":Ge=>y.state[A].lowerBound=Ge,label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[A].includeLowerBound,"onUpdate:modelValue":Ge=>y.state[A].includeLowerBound=Ge,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(ms),{modelValue:y.state[A].upperBound,"onUpdate:modelValue":Ge=>y.state[A].upperBound=Ge,label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[A].includeUpperBound,"onUpdate:modelValue":Ge=>y.state[A].includeUpperBound=Ge,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((Ct=y.state[A])==null?void 0:Ct.type)==="string_equals"||((Tt=y.state[A])==null?void 0:Tt.type)==="string_notEquals"||((ht=y.state[A])==null?void 0:ht.type)==="string_contains"||((yr=y.state[A])==null?void 0:yr.type)==="string_doesNotContain"||((An=y.state[A])==null?void 0:An.type)==="string_matches"||((vr=y.state[A])==null?void 0:vr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(fs),{key:3,modelValue:y.state[A].reference,"onUpdate:modelValue":Ge=>y.state[A].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((zn=y.state[A])==null?void 0:zn.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[r.createVNode(r.unref(fs),{modelValue:y.state[A].reference,"onUpdate:modelValue":Ge=>y.state[A].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Yu),{modelValue:y.state[A].maxEdits,"onUpdate:modelValue":Ge=>y.state[A].maxEdits=Ge,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[A].substitutionsOnly,"onUpdate:modelValue":Ge=>y.state[A].substitutionsOnly=Ge,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(so),{modelValue:y.state[A].wildcard,"onUpdate:modelValue":Ge=>y.state[A].wildcard=Ge,options:I(y.state[A].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128))}}),[["__scopeId","data-v-d44c6092"]]),GE={key:1,class:"alert-error"},zE={key:2},ZE=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),i=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&i.value===void 0);return(l,c)=>(r.openBlock(),r.createElementBlock("div",null,[n.value!==void 0?r.renderSlot(l.$slots,"default",r.normalizeProps(r.mergeProps({key:0},{value:n.value}))):r.createCommentVNode("",!0),i.value?(r.openBlock(),r.createElementBlock("div",GE,r.toDisplayString(i.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",zE,"Unresolved")):r.createCommentVNode("",!0)]))}}),UE={style:{height:"100%"}},$E=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),i=r.computed(()=>e.params.value);function s(c){e.params.setValue(c)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(i.value):void 0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",UE,[r.createVNode(r.unref(ju),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${n.value?n.value[0]:""}`,extensions:n.value,"model-value":i.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),Vs=new Map;function WE(t,e){const n=r.getCurrentScope()??r.effectScope(),i=n.run(()=>(r.onScopeDispose(()=>{Vs.delete(t)}),r.reactive(e())));return i[Symbol.dispose]=()=>{n.stop()},i}function HE(t){const e=Symbol();return()=>(Vs.has(e)||Vs.set(e,WE(e,t)),Vs.get(e))}function jE(t){return r.computed(()=>{try{return dd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function sp(t,e,n){const i=r.ref(0),s=r.reactive({loading:r.computed(()=>i.value>0),loadingRef:i,value:void 0,error:void 0}),l=im(e);return r.watch(t,async c=>{s.error=void 0,i.value++,l(c).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{i.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const hi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ap=new Set,Vl=typeof process=="object"&&process?process:{},lp=(t,e,n,i)=>{typeof Vl.emitWarning=="function"?Vl.emitWarning(t,e,n,i):console.error(`[${n}] ${e}: ${t}`)};let As=globalThis.AbortController,cp=globalThis.AbortSignal;if(typeof As>"u"){cp=class{constructor(){Ze(this,"onabort");Ze(this,"_onabort",[]);Ze(this,"reason");Ze(this,"aborted",!1)}addEventListener(i,s){this._onabort.push(s)}},As=class{constructor(){Ze(this,"signal",new cp);e()}abort(i){var s,l;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(const c of this.signal._onabort)c(i);(l=(s=this.signal).onabort)==null||l.call(s,i)}}};let t=((up=Vl.env)==null?void 0:up.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,lp("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const qE=t=>!ap.has(t),mr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),dp=t=>mr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ns:null:null;class Ns extends Array{constructor(e){super(e),this.fill(0)}}const Or=class Or{constructor(e,n){Ze(this,"heap");Ze(this,"length");if(!w(Or,fi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=dp(e);if(!n)return[];fe(Or,fi,!0);const i=new Or(e,n);return fe(Or,fi,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};fi=new WeakMap,Le(Or,fi,!1);let Al=Or;const Dl=class Dl{constructor(e){Le(this,ee);Le(this,dn);Le(this,Ot);Le(this,un);Le(this,pn);Le(this,mi);Le(this,gi);Ze(this,"ttl");Ze(this,"ttlResolution");Ze(this,"ttlAutopurge");Ze(this,"updateAgeOnGet");Ze(this,"updateAgeOnHas");Ze(this,"allowStale");Ze(this,"noDisposeOnSet");Ze(this,"noUpdateTTL");Ze(this,"maxEntrySize");Ze(this,"sizeCalculation");Ze(this,"noDeleteOnFetchRejection");Ze(this,"noDeleteOnStaleGet");Ze(this,"allowStaleOnFetchAbort");Ze(this,"allowStaleOnFetchRejection");Ze(this,"ignoreFetchAbort");Le(this,st);Le(this,hn);Le(this,it);Le(this,je);Le(this,be);Le(this,St);Le(this,Gt);Le(this,_t);Le(this,dt);Le(this,fn);Le(this,ut);Le(this,mn);Le(this,gn);Le(this,zt);Le(this,yn);Le(this,gr);Le(this,Et);Le(this,Gr,()=>{});Le(this,Gn,()=>{});Le(this,Eo,()=>{});Le(this,Zt,()=>!1);Le(this,zr,e=>{});Le(this,yi,(e,n,i)=>{});Le(this,To,(e,n,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ze(this,pp,"LRUCache");const{max:n=0,ttl:i,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:S,maxSize:E=0,maxEntrySize:M=0,sizeCalculation:V,fetchMethod:F,memoMethod:C,noDeleteOnFetchRejection:G,noDeleteOnStaleGet:Q,allowStaleOnFetchRejection:I,allowStaleOnFetchAbort:L,ignoreFetchAbort:U}=e;if(n!==0&&!mr(n))throw new TypeError("max option must be a nonnegative integer");const T=n?dp(n):Array;if(!T)throw new Error("invalid max value: "+n);if(fe(this,dn,n),fe(this,Ot,E),this.maxEntrySize=M||w(this,Ot),this.sizeCalculation=V,this.sizeCalculation){if(!w(this,Ot)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(fe(this,gi,C),F!==void 0&&typeof F!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,mi,F),fe(this,gr,!!F),fe(this,it,new Map),fe(this,je,new Array(n).fill(void 0)),fe(this,be,new Array(n).fill(void 0)),fe(this,St,new T(n)),fe(this,Gt,new T(n)),fe(this,_t,0),fe(this,dt,0),fe(this,fn,Al.create(n)),fe(this,st,0),fe(this,hn,0),typeof f=="function"&&fe(this,un,f),typeof m=="function"?(fe(this,pn,m),fe(this,ut,[])):(fe(this,pn,void 0),fe(this,ut,void 0)),fe(this,yn,!!w(this,un)),fe(this,Et,!!w(this,pn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!G,this.allowStaleOnFetchRejection=!!I,this.allowStaleOnFetchAbort=!!L,this.ignoreFetchAbort=!!U,this.maxEntrySize!==0){if(w(this,Ot)!==0&&!mr(w(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!mr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");le(this,ee,qf).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!Q,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=mr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=i||0,this.ttl){if(!mr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");le(this,ee,nd).call(this)}if(w(this,dn)===0&&this.ttl===0&&w(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,dn)&&!w(this,Ot)){const k="LRU_CACHE_UNBOUNDED";qE(k)&&(ap.add(k),lp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",k,Dl))}}static unsafeExposeInternals(e){return{starts:w(e,gn),ttls:w(e,zt),sizes:w(e,mn),keyMap:w(e,it),keyList:w(e,je),valList:w(e,be),next:w(e,St),prev:w(e,Gt),get head(){return w(e,_t)},get tail(){return w(e,dt)},free:w(e,fn),isBackgroundFetch:n=>{var i;return le(i=e,ee,Ke).call(i,n)},backgroundFetch:(n,i,s,l)=>{var c;return le(c=e,ee,Ea).call(c,n,i,s,l)},moveToTail:n=>{var i;return le(i=e,ee,Yo).call(i,n)},indexes:n=>{var i;return le(i=e,ee,Br).call(i,n)},rindexes:n=>{var i;return le(i=e,ee,Vr).call(i,n)},isStale:n=>{var i;return w(i=e,Zt).call(i,n)}}}get max(){return w(this,dn)}get maxSize(){return w(this,Ot)}get calculatedSize(){return w(this,hn)}get size(){return w(this,st)}get fetchMethod(){return w(this,mi)}get memoMethod(){return w(this,gi)}get dispose(){return w(this,un)}get disposeAfter(){return w(this,pn)}getRemainingTTL(e){return w(this,it).has(e)?1/0:0}*entries(){for(const e of le(this,ee,Br).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*rentries(){for(const e of le(this,ee,Vr).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*keys(){for(const e of le(this,ee,Br).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield n)}}*rkeys(){for(const e of le(this,ee,Vr).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield n)}}*values(){for(const e of le(this,ee,Br).call(this))w(this,be)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}*rvalues(){for(const e of le(this,ee,Vr).call(this))w(this,be)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}[(hp=Symbol.iterator,pp=Symbol.toStringTag,hp)](){return this.entries()}find(e,n={}){for(const i of le(this,ee,Br).call(this)){const s=w(this,be)[i],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,w(this,je)[i],this))return this.get(w(this,je)[i],n)}}forEach(e,n=this){for(const i of le(this,ee,Br).call(this)){const s=w(this,be)[i],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}rforEach(e,n=this){for(const i of le(this,ee,Vr).call(this)){const s=w(this,be)[i],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}purgeStale(){let e=!1;for(const n of le(this,ee,Vr).call(this,{allowStale:!0}))w(this,Zt).call(this,n)&&(le(this,ee,Ar).call(this,w(this,je)[n],"expire"),e=!0);return e}info(e){const n=w(this,it).get(e);if(n===void 0)return;const i=w(this,be)[n],s=le(this,ee,Ke).call(this,i)?i.__staleWhileFetching:i;if(s===void 0)return;const l={value:s};if(w(this,zt)&&w(this,gn)){const c=w(this,zt)[n],u=w(this,gn)[n];if(c&&u){const p=c-(hi.now()-u);l.ttl=p,l.start=Date.now()}}return w(this,mn)&&(l.size=w(this,mn)[n]),l}dump(){const e=[];for(const n of le(this,ee,Br).call(this,{allowStale:!0})){const i=w(this,je)[n],s=w(this,be)[n],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||i===void 0)continue;const c={value:l};if(w(this,zt)&&w(this,gn)){c.ttl=w(this,zt)[n];const u=hi.now()-w(this,gn)[n];c.start=Math.floor(Date.now()-u)}w(this,mn)&&(c.size=w(this,mn)[n]),e.unshift([i,c])}return e}load(e){this.clear();for(const[n,i]of e){if(i.start){const s=Date.now()-i.start;i.start=hi.now()-s}this.set(n,i.value,i)}}set(e,n,i={}){var S,E,M,V,F;if(n===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:l,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=i;let{noUpdateTTL:f=this.noUpdateTTL}=i;const m=w(this,To).call(this,e,n,i.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),le(this,ee,Ar).call(this,e,"set"),this;let y=w(this,st)===0?void 0:w(this,it).get(e);if(y===void 0)y=w(this,st)===0?w(this,dt):w(this,fn).length!==0?w(this,fn).pop():w(this,st)===w(this,dn)?le(this,ee,Sa).call(this,!1):w(this,st),w(this,je)[y]=e,w(this,be)[y]=n,w(this,it).set(e,y),w(this,St)[w(this,dt)]=y,w(this,Gt)[y]=w(this,dt),fe(this,dt,y),ka(this,st)._++,w(this,yi).call(this,y,m,p),p&&(p.set="add"),f=!1;else{le(this,ee,Yo).call(this,y);const C=w(this,be)[y];if(n!==C){if(w(this,gr)&&le(this,ee,Ke).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:G}=C;G!==void 0&&!c&&(w(this,yn)&&((S=w(this,un))==null||S.call(this,G,e,"set")),w(this,Et)&&((E=w(this,ut))==null||E.push([G,e,"set"])))}else c||(w(this,yn)&&((M=w(this,un))==null||M.call(this,C,e,"set")),w(this,Et)&&((V=w(this,ut))==null||V.push([C,e,"set"])));if(w(this,zr).call(this,y),w(this,yi).call(this,y,m,p),w(this,be)[y]=n,p){p.set="replace";const G=C&&le(this,ee,Ke).call(this,C)?C.__staleWhileFetching:C;G!==void 0&&(p.oldValue=G)}}else p&&(p.set="update")}if(s!==0&&!w(this,zt)&&le(this,ee,nd).call(this),w(this,zt)&&(f||w(this,Eo).call(this,y,s,l),p&&w(this,Gn).call(this,p,y)),!c&&w(this,Et)&&w(this,ut)){const C=w(this,ut);let G;for(;G=C==null?void 0:C.shift();)(F=w(this,pn))==null||F.call(this,...G)}return this}pop(){var e;try{for(;w(this,st);){const n=w(this,be)[w(this,_t)];if(le(this,ee,Sa).call(this,!0),le(this,ee,Ke).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,Et)&&w(this,ut)){const n=w(this,ut);let i;for(;i=n==null?void 0:n.shift();)(e=w(this,pn))==null||e.call(this,...i)}}}has(e,n={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=n,l=w(this,it).get(e);if(l!==void 0){const c=w(this,be)[l];if(le(this,ee,Ke).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(w(this,Zt).call(this,l))s&&(s.has="stale",w(this,Gn).call(this,s,l));else return i&&w(this,Gr).call(this,l),s&&(s.has="hit",w(this,Gn).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:i=this.allowStale}=n,s=w(this,it).get(e);if(s===void 0||!i&&w(this,Zt).call(this,s))return;const l=w(this,be)[s];return le(this,ee,Ke).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:E=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:V,forceRefresh:F=!1,status:C,signal:G}=n;if(!w(this,gr))return C&&(C.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const Q={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:M,ignoreFetchAbort:E,status:C,signal:G};let I=w(this,it).get(e);if(I===void 0){C&&(C.fetch="miss");const L=le(this,ee,Ea).call(this,e,I,Q,V);return L.__returned=L}else{const L=w(this,be)[I];if(le(this,ee,Ke).call(this,L)){const A=i&&L.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",A&&(C.returnedStale=!0)),A?L.__staleWhileFetching:L.__returned=L}const U=w(this,Zt).call(this,I);if(!F&&!U)return C&&(C.fetch="hit"),le(this,ee,Yo).call(this,I),s&&w(this,Gr).call(this,I),C&&w(this,Gn).call(this,C,I),L;const T=le(this,ee,Ea).call(this,e,I,Q,V),O=T.__staleWhileFetching!==void 0&&i;return C&&(C.fetch=U?"stale":"refresh",O&&U&&(C.returnedStale=!0)),O?T.__staleWhileFetching:T.__returned=T}}async forceFetch(e,n={}){const i=await this.fetch(e,n);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,n={}){const i=w(this,gi);if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:l,...c}=n,u=this.get(e,c);if(!l&&u!==void 0)return u;const p=i(e,u,{options:c,context:s});return this.set(e,p,c),p}get(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=n,u=w(this,it).get(e);if(u!==void 0){const p=w(this,be)[u],f=le(this,ee,Ke).call(this,p);return c&&w(this,Gn).call(this,c,u),w(this,Zt).call(this,u)?(c&&(c.get="stale"),f?(c&&i&&p.__staleWhileFetching!==void 0&&(c.returnedStale=!0),i?p.__staleWhileFetching:void 0):(l||le(this,ee,Ar).call(this,e,"expire"),c&&i&&(c.returnedStale=!0),i?p:void 0)):(c&&(c.get="hit"),f?p.__staleWhileFetching:(le(this,ee,Yo).call(this,u),s&&w(this,Gr).call(this,u),p))}else c&&(c.get="miss")}delete(e){return le(this,ee,Ar).call(this,e,"delete")}clear(){return le(this,ee,od).call(this,"delete")}};dn=new WeakMap,Ot=new WeakMap,un=new WeakMap,pn=new WeakMap,mi=new WeakMap,gi=new WeakMap,st=new WeakMap,hn=new WeakMap,it=new WeakMap,je=new WeakMap,be=new WeakMap,St=new WeakMap,Gt=new WeakMap,_t=new WeakMap,dt=new WeakMap,fn=new WeakMap,ut=new WeakMap,mn=new WeakMap,gn=new WeakMap,zt=new WeakMap,yn=new WeakMap,gr=new WeakMap,Et=new WeakMap,ee=new WeakSet,nd=function(){const e=new Ns(w(this,dn)),n=new Ns(w(this,dn));fe(this,zt,e),fe(this,gn,n),fe(this,Eo,(l,c,u=hi.now())=>{if(n[l]=c!==0?u:0,e[l]=c,c!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,Zt).call(this,l)&&le(this,ee,Ar).call(this,w(this,je)[l],"expire")},c+1);p.unref&&p.unref()}}),fe(this,Gr,l=>{n[l]=e[l]!==0?hi.now():0}),fe(this,Gn,(l,c)=>{if(e[c]){const u=e[c],p=n[c];if(!u||!p)return;l.ttl=u,l.start=p,l.now=i||s();const f=l.now-p;l.remainingTTL=u-f}});let i=0;const s=()=>{const l=hi.now();if(this.ttlResolution>0){i=l;const c=setTimeout(()=>i=0,this.ttlResolution);c.unref&&c.unref()}return l};this.getRemainingTTL=l=>{const c=w(this,it).get(l);if(c===void 0)return 0;const u=e[c],p=n[c];if(!u||!p)return 1/0;const f=(i||s())-p;return u-f},fe(this,Zt,l=>{const c=n[l],u=e[l];return!!u&&!!c&&(i||s())-c>u})},Gr=new WeakMap,Gn=new WeakMap,Eo=new WeakMap,Zt=new WeakMap,qf=function(){const e=new Ns(w(this,dn));fe(this,hn,0),fe(this,mn,e),fe(this,zr,n=>{fe(this,hn,w(this,hn)-e[n]),e[n]=0}),fe(this,To,(n,i,s,l)=>{if(le(this,ee,Ke).call(this,i))return 0;if(!mr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(i,n),!mr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),fe(this,yi,(n,i,s)=>{if(e[n]=i,w(this,Ot)){const l=w(this,Ot)-e[n];for(;w(this,hn)>l;)le(this,ee,Sa).call(this,!0)}fe(this,hn,w(this,hn)+e[n]),s&&(s.entrySize=i,s.totalCalculatedSize=w(this,hn))})},zr=new WeakMap,yi=new WeakMap,To=new WeakMap,Br=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,dt);!(!le(this,ee,rd).call(this,n)||((e||!w(this,Zt).call(this,n))&&(yield n),n===w(this,_t)));)n=w(this,Gt)[n]},Vr=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,_t);!(!le(this,ee,rd).call(this,n)||((e||!w(this,Zt).call(this,n))&&(yield n),n===w(this,dt)));)n=w(this,St)[n]},rd=function(e){return e!==void 0&&w(this,it).get(w(this,je)[e])===e},Sa=function(e){var l,c;const n=w(this,_t),i=w(this,je)[n],s=w(this,be)[n];return w(this,gr)&&le(this,ee,Ke).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((l=w(this,un))==null||l.call(this,s,i,"evict")),w(this,Et)&&((c=w(this,ut))==null||c.push([s,i,"evict"]))),w(this,zr).call(this,n),e&&(w(this,je)[n]=void 0,w(this,be)[n]=void 0,w(this,fn).push(n)),w(this,st)===1?(fe(this,_t,fe(this,dt,0)),w(this,fn).length=0):fe(this,_t,w(this,St)[n]),w(this,it).delete(i),ka(this,st)._--,n},Ea=function(e,n,i,s){const l=n===void 0?void 0:w(this,be)[n];if(le(this,ee,Ke).call(this,l))return l;const c=new As,{signal:u}=i;u==null||u.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});const p={signal:c.signal,options:i,context:s},f=(V,F=!1)=>{const{aborted:C}=c.signal,G=i.ignoreFetchAbort&&V!==void 0;if(i.status&&(C&&!F?(i.status.fetchAborted=!0,i.status.fetchError=c.signal.reason,G&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),C&&!G&&!F)return y(c.signal.reason);const Q=E;return w(this,be)[n]===E&&(V===void 0?Q.__staleWhileFetching?w(this,be)[n]=Q.__staleWhileFetching:le(this,ee,Ar).call(this,e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,V,p.options))),V},m=V=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=V),y(V)),y=V=>{const{aborted:F}=c.signal,C=F&&i.allowStaleOnFetchAbort,G=C||i.allowStaleOnFetchRejection,Q=G||i.noDeleteOnFetchRejection,I=E;if(w(this,be)[n]===E&&(!Q||I.__staleWhileFetching===void 0?le(this,ee,Ar).call(this,e,"fetch"):C||(w(this,be)[n]=I.__staleWhileFetching)),G)return i.status&&I.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),I.__staleWhileFetching;if(I.__returned===I)throw V},S=(V,F)=>{var G;const C=(G=w(this,mi))==null?void 0:G.call(this,e,l,p);C&&C instanceof Promise&&C.then(Q=>V(Q===void 0?void 0:Q),F),c.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(V(void 0),i.allowStaleOnFetchAbort&&(V=Q=>f(Q,!0)))})};i.status&&(i.status.fetchDispatched=!0);const E=new Promise(S).then(f,m),M=Object.assign(E,{__abortController:c,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,M,{...p.options,status:void 0}),n=w(this,it).get(e)):w(this,be)[n]=M,M},Ke=function(e){if(!w(this,gr))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof As},id=function(e,n){w(this,Gt)[n]=e,w(this,St)[e]=n},Yo=function(e){e!==w(this,dt)&&(e===w(this,_t)?fe(this,_t,w(this,St)[e]):le(this,ee,id).call(this,w(this,Gt)[e],w(this,St)[e]),le(this,ee,id).call(this,w(this,dt),e),fe(this,dt,e))},Ar=function(e,n){var s,l,c,u;let i=!1;if(w(this,st)!==0){const p=w(this,it).get(e);if(p!==void 0)if(i=!0,w(this,st)===1)le(this,ee,od).call(this,n);else{w(this,zr).call(this,p);const f=w(this,be)[p];if(le(this,ee,Ke).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((s=w(this,un))==null||s.call(this,f,e,n)),w(this,Et)&&((l=w(this,ut))==null||l.push([f,e,n]))),w(this,it).delete(e),w(this,je)[p]=void 0,w(this,be)[p]=void 0,p===w(this,dt))fe(this,dt,w(this,Gt)[p]);else if(p===w(this,_t))fe(this,_t,w(this,St)[p]);else{const m=w(this,Gt)[p];w(this,St)[m]=w(this,St)[p];const y=w(this,St)[p];w(this,Gt)[y]=w(this,Gt)[p]}ka(this,st)._--,w(this,fn).push(p)}}if(w(this,Et)&&((c=w(this,ut))!=null&&c.length)){const p=w(this,ut);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,pn))==null||u.call(this,...f)}return i},od=function(e){var n,i,s;for(const l of le(this,ee,Vr).call(this,{allowStale:!0})){const c=w(this,be)[l];if(le(this,ee,Ke).call(this,c))c.__abortController.abort(new Error("deleted"));else{const u=w(this,je)[l];w(this,yn)&&((n=w(this,un))==null||n.call(this,c,u,e)),w(this,Et)&&((i=w(this,ut))==null||i.push([c,u,e]))}}if(w(this,it).clear(),w(this,be).fill(void 0),w(this,je).fill(void 0),w(this,zt)&&w(this,gn)&&(w(this,zt).fill(0),w(this,gn).fill(0)),w(this,mn)&&w(this,mn).fill(0),fe(this,_t,0),fe(this,dt,0),w(this,fn).length=0,fe(this,hn,0),fe(this,st,0),w(this,Et)&&w(this,ut)){const l=w(this,ut);let c;for(;c=l==null?void 0:l.shift();)(s=w(this,pn))==null||s.call(this,...c)}};let Nl=Dl;const KE={cacheSize:15e6};class YE{constructor(e){Ze(this,"_str");Ze(this,"_rawJson");Ze(this,"_zodSchema");Ze(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const Zr=class Zr{constructor(e){Ze(this,"fileDataCache");Ze(this,"fileDataRefs",new Map);const n={...KE,...e??{}};this.fileDataCache=new Nl({maxSize:n.cacheSize,fetchMethod:async i=>new YE(await _g().blobDriver.getContent(i)),sizeCalculation:i=>i.bytes.length,dispose:(i,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const i=r.shallowRef();return this.fileDataRefs.set(e,i),(async()=>{try{const s=await this.fileDataCache.fetch(e);i.value=s}catch(s){console.error(s)}})(),i}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n.value)==null?void 0:i.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n==null?void 0:n.value)==null?void 0:i.str})}getContentJson(e,n){if(e===void 0)return;const i=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=i==null?void 0:i.value)==null?void 0:s.rawJson:(l=i==null?void 0:i.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return Zr.globalInstance.getContentBytes(e)}static getContentString(e){return Zr.globalInstance.getContentString(e)}static getContentJson(e,n){return Zr.globalInstance.getContentJson(e,n)}};Ze(Zr,"globalInstance",new Zr);let Pl=Zr;R.AgGridTheme=Kd,R.BlockLayout=yE,R.ContextProvider=nk,R.DataTable=F_,R.DemoData=rE,R.DropdownListItem=oo,R.LongText=vl,R.MultiError=Va,R.PlAgCellFile=$E,R.PlAgDataTable=IE,R.PlAgOverlayLoading=Qu,R.PlAgOverlayNoRows=ep,R.PlAlert=uC,R.PlBlockPage=J_,R.PlBtnAccent=gC,R.PlBtnDanger=vC,R.PlBtnGhost=pl,R.PlBtnGroup=GC,R.PlBtnLink=bC,R.PlBtnPrimary=dl,R.PlBtnSecondary=ul,R.PlCheckbox=Au,R.PlCheckboxGroup=Z0,R.PlChip=_l,R.PlContainer=Q_,R.PlCopyData=Ku,R.PlDialogModal=wl,R.PlDropdown=so,R.PlDropdownLegacy=u0,R.PlDropdownLine=Vu,R.PlDropdownMulti=I0,R.PlDropdownRef=Gw,R.PlFileDialog=Pu,R.PlFileInput=ju,R.PlGrid=oC,R.PlIcon16=hs,R.PlIcon24=Su,R.PlLogView=gb,R.PlMaskIcon16=to,R.PlMaskIcon24=Ln,R.PlNotificationAlert=qu,R.PlNumberField=ms,R.PlProgressBar=g0,R.PlRow=tC,R.PlSlideModal=nb,R.PlSpacer=vu,R.PlTableFilters=OE,R.PlTabs=kb,R.PlTextArea=yw,R.PlTextField=fs,R.PlToggleSwitch=gs,R.PlTooltip=Nt,R.ReactiveFileContent=Pl,R.Scrollable=Hk,R.Slider=Yu,R.SliderRange=Zk,R.SliderRangeTriple=Ak,R.ThemeSwitcher=$_,R.UnresolvedError=Ba,R.ValueOrErrorsComponent=ZE,R.activateAgGrid=qd,R.animate=pu,R.animateInfinite=O_,R.call=au,R.computedResult=jE,R.createModel=Ra,R.debounce=hu,R.defineApp=cv,R.defineStore=HE,R.delay=lu,R.detectOutside=vw,R.ensureError=Pa,R.eventListener=gl,R.formatZodError=Fa,R.getElementScrollPosition=Tu,R.identity=Na,R.isDefined=cm,R.isElementVisible=Eu,R.isJsonEqual=Aa,R.isZodError=Da,R.listToOptions=G_,R.makeEaseInOut=L_,R.makeEaseOut=uu,R.maskIcons16=tE,R.maskIcons24=nE,R.normalizeListOptions=Rr,R.notEmpty=ol,R.randomInt=du,R.randomString=I_,R.requestTick=sl,R.scrollIntoView=io,R.showContextMenu=nl,R.throttle=fu,R.timeout=cu,R.unwrapOptionalResult=lm,R.unwrapValueOrErrors=cd,R.useClickOutside=ps,R.useDraggable=_k,R.useEventListener=tt,R.useFormState=yk,R.useHover=ou,R.useInterval=gk,R.useLabelNotch=In,R.useLocalStorage=mu,R.useMouse=iu,R.useMouseCapture=sr,R.usePosition=no,R.useQuery=vk,R.useResizeObserver=Ju,R.useScroll=hk,R.useSdkPlugin=Xa,R.useSortable=mk,R.useTheme=yu,R.useWatchFetch=sp,R.wrapOptionalResult=dd,R.wrapValueOrErrors=am,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
89
|
+
}`;var Ae=Uf(function(){return ze(_,ce+"return "+K).apply(n,x)});if(Ae.source=K,$c(Ae))throw Ae;return Ae}function ZD(o){return Ue(o).toLowerCase()}function UD(o){return Ue(o).toUpperCase()}function $D(o,a,d){if(o=Ue(o),o&&(d||a===n))return Jp(o);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Cn(a),_=Xp(h,g),x=Qp(h,g)+1;return Er(h,_,x).join("")}function WD(o,a,d){if(o=Ue(o),o&&(d||a===n))return o.slice(0,th(o)+1);if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Qp(h,Cn(a))+1;return Er(h,0,g).join("")}function HD(o,a,d){if(o=Ue(o),o&&(d||a===n))return o.replace($l,"");if(!o||!(a=Wt(a)))return o;var h=Cn(o),g=Xp(h,Cn(a));return Er(h,g).join("")}function jD(o,a){var d=A,h=q;if(Qe(a)){var g="separator"in a?a.separator:g;d="length"in a?Te(a.length):d,h="omission"in a?Wt(a.omission):h}o=Ue(o);var _=o.length;if(wi(o)){var x=Cn(o);_=x.length}if(d>=_)return o;var B=d-bi(h);if(B<1)return h;var D=x?Er(x,0,B).join(""):o.slice(0,B);if(g===n)return D+h;if(x&&(B+=D.length-B),Wc(g)){if(o.slice(B).search(g)){var H,j=D;for(g.global||(g=ac(g.source,Ue(_p.exec(g))+"g")),g.lastIndex=0;H=g.exec(j);)var K=H.index;D=D.slice(0,K===n?B:K)}}else if(o.indexOf(Wt(g),B)!=B){var te=D.lastIndexOf(g);te>-1&&(D=D.slice(0,te))}return D+h}function qD(o){return o=Ue(o),o&&oT.test(o)?o.replace(gp,xB):o}var KD=Vi(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),qc=Uh("toUpperCase");function Zf(o,a,d){return o=Ue(o),a=d?n:a,a===n?vB(o)?EB(o):cB(o):o.match(a)||[]}var Uf=Ne(function(o,a){try{return Ut(o,n,a)}catch(d){return $c(d)?d:new xe(d)}}),YD=jn(function(o,a){return Yt(a,function(d){d=Dn(d),Wn(o,d,Zc(o[d],o))}),o});function JD(o){var a=o==null?0:o.length,d=he();return o=a?Ye(o,function(h){if(typeof h[1]!="function")throw new Jt(c);return[d(h[0]),h[1]]}):[],Ne(function(h){for(var g=-1;++g<a;){var _=o[g];if(Ut(_[0],this,h))return Ut(_[1],this,h)}})}function XD(o){return xV(Qt(o,y))}function Kc(o){return function(){return o}}function QD(o,a){return o==null||o!==o?a:o}var eF=Wh(),tF=Wh(!0);function Mt(o){return o}function Yc(o){return wh(typeof o=="function"?o:Qt(o,y))}function nF(o){return xh(Qt(o,y))}function rF(o,a){return kh(o,Qt(a,y))}var iF=Ne(function(o,a){return function(d){return Uo(d,o,a)}}),oF=Ne(function(o,a){return function(d){return Uo(o,d,a)}});function Jc(o,a,d){var h=pt(a),g=ia(a,h);d==null&&!(Qe(a)&&(g.length||!h.length))&&(d=a,a=o,o=this,g=ia(a,pt(a)));var _=!(Qe(d)&&"chain"in d)||!!d.chain,x=Kn(o);return Yt(g,function(B){var D=a[B];o[B]=D,x&&(o.prototype[B]=function(){var H=this.__chain__;if(_||H){var j=o(this.__wrapped__),K=j.__actions__=Dt(this.__actions__);return K.push({func:D,args:arguments,thisArg:o}),j.__chain__=H,j}return D.apply(o,Cr([this.value()],arguments))})}),o}function sF(){return ft._===this&&(ft._=PB),this}function Xc(){}function aF(o){return o=Te(o),Ne(function(a){return Sh(a,o)})}var lF=Vc(Ye),cF=Vc(Hp),dF=Vc(ec);function $f(o){return Mc(o)?tc(Dn(o)):GV(o)}function uF(o){return function(a){return o==null?n:qr(o,a)}}var pF=jh(),hF=jh(!0);function Qc(){return[]}function ed(){return!1}function fF(){return{}}function mF(){return""}function gF(){return!0}function yF(o,a){if(o=Te(o),o<1||o>we)return[];var d=ht,h=wt(o,ht);a=he(a),o-=ht;for(var g=ic(h,a);++d<o;)a(d);return g}function vF(o){return ke(o)?Ye(o,Dn):Ht(o)?[o]:Dt(df(Ue(o)))}function _F(o){var a=++AB;return Ue(o)+a}var CF=da(function(o,a){return o+a},0),wF=Ac("ceil"),bF=da(function(o,a){return o/a},1),xF=Ac("floor");function kF(o){return o&&o.length?ra(o,Mt,mc):n}function SF(o,a){return o&&o.length?ra(o,he(a,2),mc):n}function EF(o){return Kp(o,Mt)}function TF(o,a){return Kp(o,he(a,2))}function BF(o){return o&&o.length?ra(o,Mt,_c):n}function VF(o,a){return o&&o.length?ra(o,he(a,2),_c):n}var AF=da(function(o,a){return o*a},1),NF=Ac("round"),PF=da(function(o,a){return o-a},0);function DF(o){return o&&o.length?rc(o,Mt):0}function FF(o,a){return o&&o.length?rc(o,he(a,2)):0}return v.after=nP,v.ary=wf,v.assign=UP,v.assignIn=Rf,v.assignInWith=xa,v.assignWith=$P,v.at=WP,v.before=bf,v.bind=Zc,v.bindAll=YD,v.bindKey=xf,v.castArray=fP,v.chain=vf,v.chunk=xA,v.compact=kA,v.concat=SA,v.cond=JD,v.conforms=XD,v.constant=Kc,v.countBy=DN,v.create=HP,v.curry=kf,v.curryRight=Sf,v.debounce=Ef,v.defaults=jP,v.defaultsDeep=qP,v.defer=rP,v.delay=iP,v.difference=EA,v.differenceBy=TA,v.differenceWith=BA,v.drop=VA,v.dropRight=AA,v.dropRightWhile=NA,v.dropWhile=PA,v.fill=DA,v.filter=RN,v.flatMap=LN,v.flatMapDeep=ON,v.flatMapDepth=GN,v.flatten=ff,v.flattenDeep=FA,v.flattenDepth=RA,v.flip=oP,v.flow=eF,v.flowRight=tF,v.fromPairs=MA,v.functions=tD,v.functionsIn=nD,v.groupBy=zN,v.initial=LA,v.intersection=OA,v.intersectionBy=GA,v.intersectionWith=zA,v.invert=iD,v.invertBy=oD,v.invokeMap=UN,v.iteratee=Yc,v.keyBy=$N,v.keys=pt,v.keysIn=Rt,v.map=ya,v.mapKeys=aD,v.mapValues=lD,v.matches=nF,v.matchesProperty=rF,v.memoize=_a,v.merge=cD,v.mergeWith=Mf,v.method=iF,v.methodOf=oF,v.mixin=Jc,v.negate=Ca,v.nthArg=aF,v.omit=dD,v.omitBy=uD,v.once=sP,v.orderBy=WN,v.over=lF,v.overArgs=aP,v.overEvery=cF,v.overSome=dF,v.partial=Uc,v.partialRight=Tf,v.partition=HN,v.pick=pD,v.pickBy=If,v.property=$f,v.propertyOf=uF,v.pull=WA,v.pullAll=gf,v.pullAllBy=HA,v.pullAllWith=jA,v.pullAt=qA,v.range=pF,v.rangeRight=hF,v.rearg=lP,v.reject=KN,v.remove=KA,v.rest=cP,v.reverse=Gc,v.sampleSize=JN,v.set=fD,v.setWith=mD,v.shuffle=XN,v.slice=YA,v.sortBy=tP,v.sortedUniq=rN,v.sortedUniqBy=iN,v.split=LD,v.spread=dP,v.tail=oN,v.take=sN,v.takeRight=aN,v.takeRightWhile=lN,v.takeWhile=cN,v.tap=kN,v.throttle=uP,v.thru=ga,v.toArray=Pf,v.toPairs=Lf,v.toPairsIn=Of,v.toPath=vF,v.toPlainObject=Ff,v.transform=gD,v.unary=pP,v.union=dN,v.unionBy=uN,v.unionWith=pN,v.uniq=hN,v.uniqBy=fN,v.uniqWith=mN,v.unset=yD,v.unzip=zc,v.unzipWith=yf,v.update=vD,v.updateWith=_D,v.values=Pi,v.valuesIn=CD,v.without=gN,v.words=Zf,v.wrap=hP,v.xor=yN,v.xorBy=vN,v.xorWith=_N,v.zip=CN,v.zipObject=wN,v.zipObjectDeep=bN,v.zipWith=xN,v.entries=Lf,v.entriesIn=Of,v.extend=Rf,v.extendWith=xa,Jc(v,v),v.add=CF,v.attempt=Uf,v.camelCase=kD,v.capitalize=Gf,v.ceil=wF,v.clamp=wD,v.clone=mP,v.cloneDeep=yP,v.cloneDeepWith=vP,v.cloneWith=gP,v.conformsTo=_P,v.deburr=zf,v.defaultTo=QD,v.divide=bF,v.endsWith=SD,v.eq=bn,v.escape=ED,v.escapeRegExp=TD,v.every=FN,v.find=MN,v.findIndex=pf,v.findKey=KP,v.findLast=IN,v.findLastIndex=hf,v.findLastKey=YP,v.floor=xF,v.forEach=_f,v.forEachRight=Cf,v.forIn=JP,v.forInRight=XP,v.forOwn=QP,v.forOwnRight=eD,v.get=Hc,v.gt=CP,v.gte=wP,v.has=rD,v.hasIn=jc,v.head=mf,v.identity=Mt,v.includes=ZN,v.indexOf=IA,v.inRange=bD,v.invoke=sD,v.isArguments=Jr,v.isArray=ke,v.isArrayBuffer=bP,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=xP,v.isBuffer=Tr,v.isDate=kP,v.isElement=SP,v.isEmpty=EP,v.isEqual=TP,v.isEqualWith=BP,v.isError=$c,v.isFinite=VP,v.isFunction=Kn,v.isInteger=Bf,v.isLength=wa,v.isMap=Vf,v.isMatch=AP,v.isMatchWith=NP,v.isNaN=PP,v.isNative=DP,v.isNil=RP,v.isNull=FP,v.isNumber=Af,v.isObject=Qe,v.isObjectLike=et,v.isPlainObject=Ko,v.isRegExp=Wc,v.isSafeInteger=MP,v.isSet=Nf,v.isString=ba,v.isSymbol=Ht,v.isTypedArray=Ni,v.isUndefined=IP,v.isWeakMap=LP,v.isWeakSet=OP,v.join=ZA,v.kebabCase=BD,v.last=tn,v.lastIndexOf=UA,v.lowerCase=VD,v.lowerFirst=AD,v.lt=GP,v.lte=zP,v.max=kF,v.maxBy=SF,v.mean=EF,v.meanBy=TF,v.min=BF,v.minBy=VF,v.stubArray=Qc,v.stubFalse=ed,v.stubObject=fF,v.stubString=mF,v.stubTrue=gF,v.multiply=AF,v.nth=$A,v.noConflict=sF,v.noop=Xc,v.now=va,v.pad=ND,v.padEnd=PD,v.padStart=DD,v.parseInt=FD,v.random=xD,v.reduce=jN,v.reduceRight=qN,v.repeat=RD,v.replace=MD,v.result=hD,v.round=NF,v.runInContext=P,v.sample=YN,v.size=QN,v.snakeCase=ID,v.some=eP,v.sortedIndex=JA,v.sortedIndexBy=XA,v.sortedIndexOf=QA,v.sortedLastIndex=eN,v.sortedLastIndexBy=tN,v.sortedLastIndexOf=nN,v.startCase=OD,v.startsWith=GD,v.subtract=PF,v.sum=DF,v.sumBy=FF,v.template=zD,v.times=yF,v.toFinite=Yn,v.toInteger=Te,v.toLength=Df,v.toLower=ZD,v.toNumber=nn,v.toSafeInteger=ZP,v.toString=Ue,v.toUpper=UD,v.trim=$D,v.trimEnd=WD,v.trimStart=HD,v.truncate=jD,v.unescape=qD,v.uniqueId=_F,v.upperCase=KD,v.upperFirst=qc,v.each=_f,v.eachRight=Cf,v.first=mf,Jc(v,function(){var o={};return Nn(v,function(a,d){$e.call(v.prototype,d)||(o[d]=a)}),o}(),{chain:!1}),v.VERSION=i,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){v[o].placeholder=v}),Yt(["drop","take"],function(o,a){De.prototype[o]=function(d){d=d===n?1:lt(Te(d),0);var h=this.__filtered__&&!a?new De(this):this.clone();return h.__filtered__?h.__takeCount__=wt(d,h.__takeCount__):h.__views__.push({size:wt(d,ht),type:o+(h.__dir__<0?"Right":"")}),h},De.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,a){var d=a+1,h=d==N||d==Y;De.prototype[o]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:he(g,3),type:d}),_.__filtered__=_.__filtered__||h,_}}),Yt(["head","last"],function(o,a){var d="take"+(a?"Right":"");De.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");De.prototype[o]=function(){return this.__filtered__?new De(this):this[d](1)}}),De.prototype.compact=function(){return this.filter(Mt)},De.prototype.find=function(o){return this.filter(o).head()},De.prototype.findLast=function(o){return this.reverse().find(o)},De.prototype.invokeMap=Ne(function(o,a){return typeof o=="function"?new De(this):this.map(function(d){return Uo(d,o,a)})}),De.prototype.reject=function(o){return this.filter(Ca(he(o)))},De.prototype.slice=function(o,a){o=Te(o);var d=this;return d.__filtered__&&(o>0||a<0)?new De(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==n&&(a=Te(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},De.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},De.prototype.toArray=function(){return this.take(ht)},Nn(De.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),g=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);g&&(v.prototype[a]=function(){var x=this.__wrapped__,B=h?[1]:arguments,D=x instanceof De,H=B[0],j=D||ke(x),K=function(Pe){var Fe=g.apply(v,Cr([Pe],B));return h&&te?Fe[0]:Fe};j&&d&&typeof H=="function"&&H.length!=1&&(D=j=!1);var te=this.__chain__,ce=!!this.__actions__.length,me=_&&!te,Ae=D&&!ce;if(!_&&j){x=Ae?x:new De(this);var ge=o.apply(x,B);return ge.__actions__.push({func:ga,args:[K],thisArg:n}),new Xt(ge,te)}return me&&Ae?o.apply(this,B):(ge=this.thru(K),me?h?ge.value()[0]:ge.value():ge)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var a=Zs[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",h=/^(?:pop|shift)$/.test(o);v.prototype[o]=function(){var g=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(ke(_)?_:[],g)}return this[d](function(x){return a.apply(ke(x)?x:[],g)})}}),Nn(De.prototype,function(o,a){var d=v[a];if(d){var h=d.name+"";$e.call(Ei,h)||(Ei[h]=[]),Ei[h].push({name:a,func:d})}}),Ei[ca(n,C).name]=[{name:"wrapper",func:n}],De.prototype.clone=qB,De.prototype.reverse=KB,De.prototype.value=YB,v.prototype.at=SN,v.prototype.chain=EN,v.prototype.commit=TN,v.prototype.next=BN,v.prototype.plant=AN,v.prototype.reverse=NN,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=PN,v.prototype.first=v.prototype.head,Mo&&(v.prototype[Mo]=VN),v},xi=TB();Ur?((Ur.exports=xi)._=xi,Yl._=xi):ft._=xi}).call(Di)}(Bs,Bs.exports);var Oe=Bs.exports;const vE={class:"grid-overlay-container"},Qu=r.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",vE,[e.params.notReady?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n[0]||(n[0]=r.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),n[1]||(n[1]=r.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n[2]||(n[2]=r.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),n[3]||(n[3]=r.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),_E={},CE={class:"grid-overlay-container"};function wE(t,e){return r.openBlock(),r.createElementBlock("div",CE,e[0]||(e[0]=[r.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),r.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const ep=Ts(_E,[["render",wE]]);async function bE(t,e){throw Error("not implemented")}function xE(t){return t.axesSpec.filter(e=>{var n;return((n=e.annotations)==null?void 0:n["pl7.app/axisNature"])==="heterogeneous"})}function kE(t,e){const n=[];for(const i of e)if(t[i].type==="column"){const s=xE(t[i].spec);for(const l of s){if(l.type!=="String"){console.warn("heterogeneous axis with string type expected, got",l,"skipping");continue}const c=Sd(l),u=t.findIndex(p=>Oe.isEqual(p.id,c));if(u===-1)throw console.error("axis not found",i,c,t),Error("axis not found");n.push({columnIdx:i,axisIdx:u})}}return n}const tp=(t,e)=>(t+e).toString();function SE(t,e,n,i,s,l){if(t.length>1)throw Error("hColumns.length > 1 is not supported");const c=t[0];let u=-1,p=-1;for(let y=0;y<l.length;++y)l[y]===c.axisIdx&&(u=y),l[y]===c.columnIdx&&(p=y);const f=(()=>{const S=i[u].data.filter(E=>E!==null);return Array.from(new Set(S))})();f.sort(),p>u?(n.splice(p,1),n.splice(u,1)):(n.splice(u,1),n.splice(p,1));const m=EE(s,i,u,p,f,e.rows);for(let y=0;y<f.length;++y){const S=f[y],E=S+"@"+y;n.push({colId:E,field:tp(i.length,y),headerName:S,valueFormatter:rp})}return{rowModelType:"clientSide",columnDefs:n,rowData:m}}function EE(t,e,n,i,s,l){const c=new Map;let u=0;for(let f=0;f<l;f++){const m={};for(let V=0;V<e.length;++V){if(V===n||V===i)continue;const F=t[V].toString();m[F]=e[V].data[f]}let y;const S=Xr(Object.values(m))??"";c.has(S)?y=c.get(S):(c.set(S,m),y=m,y.id=u.toString(),u++);const E=s.indexOf(e[n].data[f]);if(E===-1)throw Error("index not found");const M=tp(e.length,E);y[M]=e[i].data[f]}return Array.from(c.values())}function TE(t){return Xr(t)}function np(t){return JSON.parse(t)}const rp=t=>t?t.value===void 0?"NULL":t.value===null?"NA":t.value.toString():"ERROR";function BE(t,e,n){var s,l,c;const i=TE(e);return{colId:i,field:t.toString(),headerName:((l=(s=e.spec.annotations)==null?void 0:s["pl7.app/label"])==null?void 0:l.trim())??"Unlabeled "+e.type+" "+t.toString(),lockPosition:e.type==="axis",hide:(n==null?void 0:n.includes(i))??((c=e.spec.annotations)==null?void 0:c["pl7.app/table/visibility"])==="optional",valueFormatter:rp,cellDataType:(u=>{switch(u){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${u}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function ip(t,e){switch(e){case"Int":return t;case"Long":return typeof t=="bigint"?Number(t):t;case"Float":return t;case"Double":return t;case"String":return t;case"Bytes":return Buffer.from(t).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function op(t){const e=[];return as(t,n=>(e.push(n),n)),e}async function VE(t,e,n){return n.length?(await t.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Oe.uniqWith(n.map(s=>Za(s.spec.axesSpec).map(Oe.cloneDeep)).flat(),Oe.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function AE(t,e,n){const i=op(n),l=(await VE(t,e,i)).filter(c=>!Oe.find(i,u=>c.columnId===u.columnId));return l.length===0?n:{type:"outer",primary:n,secondary:l.map(c=>({type:"column",column:c}))}}async function NE(t,e,n,i){const s=n.filter(m=>m.type!=="Bytes"),l=op(i),c=s.map(m=>[]),u=s.map(m=>null);for(let m=0;m<l.length;++m){const y=Za(l[m].spec.axesSpec);for(let S=0;S<y.length;++S){const E=Oe.findIndex(s,M=>Oe.isEqual(M,y[S]));E===-1||u[E]||(y.length===1&&l[m].spec.name==="pl7.app/label"?(c[E]=[[m,S]],u[E]=l[m].columnId):c[E].push([m,S]))}}for(let m=s.length-1;m>=0;--m)c[m].length||(u.splice(m,1),c.splice(m,1),s.splice(m,1));const p=100,f=s.map(m=>new Set);e:for(let m=s.length-1;m>=0;--m){for(const[y,S]of c[m]){const E=await t.getUniqueValues(e,{columnId:l[y].columnId,...!u[m]&&{axis:Oe.cloneDeep(s[m])},filters:[],limit:p});if(E.overflow){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}const M=E.values.type;for(const V of E.values.data)if(!(kd(V,M)||V===null)&&(f[m].add(ip(V,M)),f[m].size===p)){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}if(!f[m].size){u.splice(m,1),c.splice(m,1),s.splice(m,1);continue e}}return s.map((m,y)=>{const S=[...f[y]].map(M=>({value:M,text:M.toString()})),E=S[0].value;return{axis:Oe.cloneDeep(m),...u[y]&&{column:u[y]},options:S,defaultValue:E}})}function PE(t,e,n,i){const s=t.length,l=[];for(let c=0;c<e[0].data.length;++c){const u=[],p=(i++).toString();for(const m of n)u.push(e[m].data[c]);const f={key:u,id:p};for(let m=0;m<s;++m){const y=t[m].toString(),S=e[m].data[c],E=e[m].type;gg(e[m].absent,c)?f[y]=void 0:kd(S,E)||S===null?f[y]=null:f[y]=ip(S,E)}l.push(f)}return l}const DE=t=>t.type==="column"&&t.spec.axesSpec.length===1&&t.spec.name==="pl7.app/label";async function FE(t,e,n,i){const s=await t.getSpec(e);let l=s.findIndex(C=>C.type==="column");l===-1&&(l=s.length);const c=[...s.keys()].filter(C=>!Oe.find(n,G=>Oe.isEqual(G.axis,s[C].id)||Oe.isEqual(G.column,s[C].id))).sort((C,G)=>{var L,U;if(s[C].type!==s[G].type)return s[C].type==="axis"?-1:1;const Q=(L=s[C].spec.annotations)==null?void 0:L["pl7.app/table/orderPriority"],I=(U=s[G].spec.annotations)==null?void 0:U["pl7.app/table/orderPriority"];return Q===void 0?I===void 0?0:1:I===void 0?-1:Number(I)-Number(Q)}),u=Oe.cloneDeep(c),p=kE(s,c);for(let C=c.length-1;C>=0;--C){const G=c[C];if(!DE(s[G]))continue;const Q=Za(s[G].spec.axesSpec)[0],I=Oe.findIndex(c,L=>Oe.isEqual(s[L].id,Q));if(I!==-1){c[I]=G;for(const L of p)L.axisIdx===G&&(L.axisIdx=I);c.splice(C,1),u.splice(C,1)}}const f=await t.getShape(e),m=f.rows,y=u.map(C=>BE(C,s[C],i));if(p.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",p.length," transposition will not be applied."),p.length===1)return SE(p,f,y,await t.getData(e,c),u,c);const S=[...c],E=new Map;for(let C=0;C<l;++C)E.set(C,-1);for(let C=0;C<S.length;++C){const G=S[C];E.has(G)&&E.set(G,C)}for(const[C,G]of E)G===-1&&(E.set(C,S.length),S.push(C));const M=[];for(let C=0;C<l;++C){const G=E.get(C);if(G===void 0||G===-1)throw new Error("assertion exception");M.push(G)}let V;return{rowModelType:"serverSide",columnDefs:y,serverSideDatasource:{getRows:async C=>{try{if(m==0){C.success({rowData:[],rowCount:m}),C.api.showNoRowsOverlay(),C.api.setGridOption("loading",!1);return}if(V&&!Oe.isEqual(V.request.sortModel,C.request.sortModel)){V=void 0,C.api.setGridOption("loading",!0),C.success({rowData:[],rowCount:0});return}V=C;let G=0,Q=[];if(m>0&&C.request.startRow!==void 0&&C.request.endRow!==void 0&&(G=Math.min(m,C.request.endRow)-C.request.startRow,G>0)){const I=await t.getData(e,S,{offset:C.request.startRow,length:G});Q=PE(u,I,M,C.request.startRow)}C.success({rowData:Q,rowCount:m}),C.api.autoSizeAllColumns(),C.api.setGridOption("loading",!1)}catch(G){C.api.setGridOption("loading",!0),C.fail(),console.trace(G)}}}}}const RE={class:"ap-ag-data-table-container"},ME={key:0,class:"ap-ag-data-table-sheets"},IE=Ts(r.defineComponent({__name:"PlAgDataTable",props:r.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:r.mergeModels(["onRowDoubleClicked","columnsChanged"],["update:modelValue"]),setup(t,{emit:e}){b.ModuleRegistry.registerModules([Jo.ClientSideRowModelModule,ad.ClipboardModule,sd.ServerSideRowModelModule,ld.RangeSelectionModule,Ha,jd]);const n=r.useModel(t,"modelValue"),i=t,{settings:s}=r.toRefs(i),l=e;r.watch(()=>s.value,async(I,L)=>{if(I.sourceType!=="pframe"||!I.pFrame||!I.join||L&&L.sourceType==="pframe"&&Oe.isEqual(I.pFrame,L.pFrame)&&Oe.isEqual(I.join,L.join))return;const U=window.platforma;if(!U)throw Error("platforma not set");const T=U.pFrameDriver;if(!T)throw Error("platforma.pFrameDriver not set");const k=await AE(T,I.pFrame,I.join),O=n.value;O.pTableParams||(O.pTableParams={sorting:[],filters:[]}),O.pTableParams.join=k,n.value=O});const c=sp(()=>s.value.sourceType,async I=>{var U;const L=s.value.sourceType;switch(L){case"pframe":{const T=window.platforma;if(!T)throw Error("platforma not set");const k=T.pFrameDriver;if(!k)throw Error("platforma.pFrameDriver not set");if(!s.value.pFrame)return[];const O=s.value.pFrame,A=(U=n.value.pTableParams)==null?void 0:U.join;return A?await NE(k,O,s.value.sheetAxes,A):[]}case"ptable":return s.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${L}`)}});function u(I){if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return(I==null?void 0:I.sortModel.map(L=>{const{spec:U,...T}=np(L.colId);return{column:T,ascending:L.sort==="asc",naAndAbsentAreLeastValues:!0}}))??[]}const p=r.computed({get:()=>{const I=n.value;return{columnOrder:I.gridState.columnOrder,sort:I.gridState.sort,columnVisibility:I.gridState.columnVisibility}},set:I=>{const L=n.value,U=E.value.rowModelType==="clientSide"?void 0:u(I.sort);L.gridState={...L.gridState,...I},(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(L.pTableParams||(L.pTableParams={sorting:[],filters:[]}),L.pTableParams.sorting=U),n.value=L}}),f=I=>Xr(I);function m(I){var L;if(!(s.value.sourceType!=="ptable"&&s.value.sourceType!=="pframe"))return((L=c.value)==null?void 0:L.map(U=>({type:"bySingleColumn",column:U.column?{type:"column",id:U.column}:{type:"axis",id:U.axis},predicate:{operator:"Equal",reference:I[f(U.axis)]}})))??[]}const y=r.computed({get:()=>n.value.gridState.sheets??{},set:I=>{const L=m(I),U=n.value;U.gridState.sheets=I,(s.value.sourceType==="ptable"||s.value.sourceType==="pframe")&&(U.pTableParams||(U.pTableParams={sorting:[],filters:[]}),U.pTableParams.filters=L),n.value=U}});r.watch(()=>[s.value,c.value],(I,L)=>{const[U,T]=I;if(!T)return;if(L){const[O,A]=L;if((U.sourceType==="ptable"||U.sourceType==="pframe")&&U.sourceType===(O==null?void 0:O.sourceType)&&Oe.isEqual(T,A))return}if(U.sourceType!=="ptable"&&U.sourceType!=="pframe"){y.value={};return}const k=y.value;for(const O of T){const A=f(O.axis);k[A]||(k[A]=O.defaultValue??O.options[0].value)}y.value=k},{immediate:!0});const S=r.shallowRef(),E=r.ref({animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:p.value,autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:I=>{I.api.autoSizeAllColumns()},onRowDoubleClicked:I=>{I.data&&l("onRowDoubleClicked",I.data.key)},defaultColDef:{suppressHeaderMenuButton:!0},maintainColumnOrder:!0,localeText:{loadingError:"..."},rowModelType:"clientSide",maxBlocksInCache:1e3,cacheBlockSize:100,blockLoadDebounceMillis:500,serverSideSortAllLevels:!0,suppressServerSideFullWidthLoadingRow:!0,getRowId:I=>I.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:Qu,noRowsOverlayComponent:ep,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressPivotMode:!0,suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:"columns"}}),M=I=>{const L=I.api;S.value=new Proxy(L,{get(U,T,k){switch(T){case"setGridOption":return(O,A)=>{const q=E.value;q[O]=A,E.value=q,L.updateGridOptions(q)};case"updateGridOptions":return O=>{E.value={...E.value,...O},L.updateGridOptions(O)};default:return Reflect.get(U,T,k)}}})},V=I=>({columnOrder:I.columnOrder,sort:I.sort,columnVisibility:I.columnVisibility??(I.columnOrder?{hiddenColIds:[]}:void 0)}),F=I=>{E.value.initialState=p.value=V(I.state),I.api.autoSizeAllColumns()},C=()=>{E.value.initialState=p.value=V(S.value.getState()),S.value=void 0},G=r.ref(0);r.watch(()=>[S.value,p.value],(I,L)=>{if(Oe.isEqual(I,L))return;const[U,T]=I;if(!U)return;const k=V(U.getState());Oe.isEqual(T,k)||(E.value.initialState=T,++G.value)}),r.watch(()=>E.value,(I,L)=>{var U;if(L&&(I.rowModelType!=L.rowModelType&&++G.value,!Oe.isEqual(I.columnDefs,L.columnDefs)&&I.columnDefs)){const T=A=>!("children"in A),k=(U=I.columnDefs)==null?void 0:U.filter(T),O=k==null?void 0:k.map(A=>A.colId).filter(A=>A!==void 0).map(A=>np(A));l("columnsChanged",O??[])}});const Q=(I,L)=>{var T;const U=y.value;U[I]!==L&&(U[I]=L,y.value=U,(T=S.value)==null||T.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1}}))};return r.watch(()=>[S.value,s.value,c.value],async(I,L)=>{var q,se;if(Oe.isEqual(I,L))return;const[U,T,k]=I;if(!U)return;const O=window.platforma;if(!O)throw Error("platforma not set");const A=T.sourceType;switch(A){case"pframe":case"ptable":{const $=O.pFrameDriver;if(!$)throw Error("platforma.pFrameDriver not set");const N=T.pTable;if(!N||!k)return U.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=(se=(q=p.value)==null?void 0:q.columnVisibility)==null?void 0:se.hiddenColIds,Y=await FE($,N,k,Z);return U.updateGridOptions({loading:Y.rowModelType!=="clientSide",loadingOverlayComponentParams:{notReady:!1},...Y})}case"xsv":{const $=O.blobDriver;if(!$)throw Error("platforma.blobDriver not set");const N=T.xsvFile;if(!(N!=null&&N.ok)||!N.value)return U.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[]});const Z=await bE($,N.value);return U.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...Z})}default:throw Error(`unsupported source type: ${A}`)}}),(I,L)=>(r.openBlock(),r.createElementBlock("div",RE,[r.createVNode(r.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:r.withCtx(()=>[r.unref(c).value&&r.unref(c).value.length>0?(r.openBlock(),r.createElementBlock("div",ME,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).value,(U,T)=>(r.openBlock(),r.createBlock(r.unref(Vu),{key:T,"model-value":y.value[f(U.axis)],options:U.options,"onUpdate:modelValue":k=>Q(f(U.axis),k)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)]),_:1}),(r.openBlock(),r.createBlock(r.unref(tm.AgGridVue),{key:G.value,theme:r.unref(Kd),class:"ap-ag-data-table-grid","grid-options":E.value,onGridReady:M,onStateUpdated:F,onGridPreDestroyed:C},null,8,["theme","grid-options"]))]))}}),[["__scopeId","data-v-278d42fe"]]),LE={key:0,class:"d-flex gap-10 flex-column"},OE=Ts(r.defineComponent({__name:"PlTableFilters",props:r.mergeModels({columns:{},restrictions:{},defaults:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t,{columns:i,restrictions:s,defaults:l}=r.toRefs(n),c=T=>Xr(T.id),u=r.computed(()=>i.value.filter(T=>{const k=T.type;switch(k){case"axis":return T.spec.type!=="Bytes";case"column":return T.spec.valueType!=="Bytes";default:throw Error(`unsupported data type: ${k}`)}}).map(T=>({column:T,id:c(T)}))),p=r.computed(()=>{const T=s.value??[],k={};for(const{column:O,id:A}of u.value){const q=Oe.find(T,se=>Oe.isEqual(se.column.id,O.id));q!==void 0&&(k[A]=q.allowedFilterTypes)}return k}),f=r.computed(()=>{const T=l.value??[],k={};for(const{column:O,id:A}of u.value){const q=Oe.find(T,se=>Oe.isEqual(se.column.id,O.id));q!==void 0&&(k[A]=q.default)}return k}),m=T=>T!==void 0?T:f.value,y=r.reactive({state:m(e.value.state)});r.watch(()=>e.value,T=>{Oe.isEqual(y.state,T.state)||(y.state=m(T.state))}),r.watch(()=>u.value,T=>{const k=y.state??{},O={};for(const{id:A}of T)k[A]!==void 0&&(O[A]=k[A]);y.state=O},{immediate:!0});const S=T=>{switch(T){case"isNotNA":return"Is not NA";case"isNA":return"Is NA";case"number_equals":case"string_equals":return"Equals";case"number_notEquals":case"string_notEquals":return"Not equals";case"number_greaterThen":return"Greater then";case"number_greaterThenOrEqualTo":return"Greater then or equal to";case"number_lessThen":return"Less then";case"number_lessThenOrEqualTo":return"Less then or equal to";case"number_between":return"Between";case"string_contains":return"Contains";case"string_doesNotContain":return"Does not contain";case"string_matches":return"Matches";case"string_doesNotMatch":return"Does not match";case"string_containsFuzzyMatch":return"Contains fuzzy match";default:throw Error(`unsupported filter type: ${T}`)}},E=["isNotNA","isNA","number_equals","number_notEquals","number_greaterThen","number_greaterThenOrEqualTo","number_lessThen","number_lessThenOrEqualTo","number_between"],M=["isNotNA","isNA","string_equals","string_notEquals","string_contains","string_doesNotContain","string_matches","string_doesNotMatch","string_containsFuzzyMatch"],V=r.computed(()=>{const T=p.value,k={};for(const{column:O,id:A}of u.value){let se=(O.type==="column"?O.spec.valueType:O.spec.type)==="String"?M:E;const $=T[A];$!==void 0&&(se=se.filter(N=>$.includes(N))),k[A]=se.map(N=>({value:N,text:S(N)}))}return k}),F=T=>{const k=T.type;switch(k){case"isNotNA":case"isNA":return;case"number_equals":case"number_notEquals":case"number_greaterThen":case"number_greaterThenOrEqualTo":case"number_lessThen":case"number_lessThenOrEqualTo":return T.reference;case"number_between":return T.lowerBound;case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":case"string_containsFuzzyMatch":return T.reference;default:throw Error(`unsupported filter type: ${k}`)}},C=(T,k)=>{switch(T){case"isNotNA":case"isNA":return{type:T};case"number_equals":case"number_notEquals":case"number_greaterThen":case"number_greaterThenOrEqualTo":case"number_lessThen":case"number_lessThenOrEqualTo":return{type:T,reference:typeof k=="number"?k:0};case"number_between":return{type:T,lowerBound:typeof k=="number"?k:0,includeLowerBound:!0,upperBound:100,includeUpperBound:!1};case"string_equals":case"string_notEquals":case"string_contains":case"string_doesNotContain":case"string_matches":case"string_doesNotMatch":return{type:T,reference:typeof k=="string"?k:""};case"string_containsFuzzyMatch":return{type:T,reference:typeof k=="string"?k:"",maxEdits:2,substitutionsOnly:!1,wildcard:void 0};default:throw Error(`unsupported filter type: ${T}`)}},G=(T,k)=>{const O=y.state[T];y.state[T]=C(k,F(O))},Q=(T,k)=>{k?y.state[T]=f.value[T]??C(V.value[T][0].value):delete y.state[T]},I=T=>{const k=Oe.uniq(T);return k.sort(),k.map(O=>({value:O,text:O}))},L=T=>{const k=T.type;switch(k){case"isNotNA":return{operator:"Not",operand:{operator:"IsNA"}};case"isNA":return{operator:"IsNA"};case"number_equals":case"string_equals":return{operator:"Equal",reference:T.reference};case"number_notEquals":case"string_notEquals":return{operator:"Not",operand:{operator:"Equal",reference:T.reference}};case"number_greaterThen":return{operator:"Greater",reference:T.reference};case"number_greaterThenOrEqualTo":return{operator:"GreaterOrEqual",reference:T.reference};case"number_lessThen":return{operator:"Less",reference:T.reference};case"number_lessThenOrEqualTo":return{operator:"LessOrEqual",reference:T.reference};case"number_between":return{operator:"And",operands:[{operator:T.includeLowerBound?"GreaterOrEqual":"Greater",reference:T.lowerBound},{operator:T.includeUpperBound?"LessOrEqual":"Less",reference:T.upperBound}]};case"string_contains":return{operator:"StringContains",substring:T.reference};case"string_doesNotContain":return{operator:"Not",operand:{operator:"StringContains",substring:T.reference}};case"string_matches":return{operator:"Matches",regex:T.reference};case"string_doesNotMatch":return{operator:"Not",operand:{operator:"Matches",regex:T.reference}};case"string_containsFuzzyMatch":return{operator:"StringContainsFuzzy",reference:T.reference,maxEdits:T.maxEdits,substitutionsOnly:T.substitutionsOnly,wildcard:T.wildcard};default:throw Error(`unsupported filter type: ${k}`)}},U=T=>u.value.map(({column:k,id:O})=>{if(!(O in T))return;const A=L(T[O]),{spec:q,...se}=k;return{type:"bySingleColumn",column:se,predicate:A}}).filter(k=>k!==void 0);return r.watch(()=>y,T=>{Oe.isEqual(T.state,e.value.state)||(e.value={state:Oe.cloneDeep(T.state),filters:U(T.state)})},{immediate:!0,deep:!0}),(T,k)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({column:O,id:A},q)=>{var se,$,N,Z,Y,pe,we,Ct,Tt,ht,yr,An,vr,zn;return r.openBlock(),r.createElementBlock("div",{key:A},[V.value[A].length>0?(r.openBlock(),r.createElementBlock("form",LE,[r.createVNode(r.unref(Au),{"model-value":!!y.state[A],"onUpdate:modelValue":Ge=>Q(A,Ge)},{default:r.withCtx(()=>{var Ge,Ps;return[r.createTextVNode(r.toDisplayString(((Ps=(Ge=O.spec.annotations)==null?void 0:Ge["pl7.app/label"])==null?void 0:Ps.trim())??"Unlabeled "+O.type+" "+q.toString()),1)]}),_:2},1032,["model-value","onUpdate:modelValue"]),r.createElementVNode("div",{class:r.normalizeClass(["controls d-flex gap-10 flex-column",{open:!!y.state[A]}])},[y.state[A]?(r.openBlock(),r.createBlock(r.unref(so),{key:0,"model-value":y.state[A].type,options:V.value[A],label:"Predicate","onUpdate:modelValue":Ge=>G(A,Ge)},null,8,["model-value","options","onUpdate:modelValue"])):r.createCommentVNode("",!0),((se=y.state[A])==null?void 0:se.type)==="number_equals"||(($=y.state[A])==null?void 0:$.type)==="number_notEquals"||((N=y.state[A])==null?void 0:N.type)==="number_lessThen"||((Z=y.state[A])==null?void 0:Z.type)==="number_lessThenOrEqualTo"||((Y=y.state[A])==null?void 0:Y.type)==="number_greaterThen"||((pe=y.state[A])==null?void 0:pe.type)==="number_greaterThenOrEqualTo"?(r.openBlock(),r.createBlock(r.unref(ms),{key:1,modelValue:y.state[A].reference,"onUpdate:modelValue":Ge=>y.state[A].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((we=y.state[A])==null?void 0:we.type)==="number_between"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(r.unref(ms),{modelValue:y.state[A].lowerBound,"onUpdate:modelValue":Ge=>y.state[A].lowerBound=Ge,label:"Lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[A].includeLowerBound,"onUpdate:modelValue":Ge=>y.state[A].includeLowerBound=Ge,label:"Include lower bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(ms),{modelValue:y.state[A].upperBound,"onUpdate:modelValue":Ge=>y.state[A].upperBound=Ge,label:"Upper bound"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[A].includeUpperBound,"onUpdate:modelValue":Ge=>y.state[A].includeUpperBound=Ge,label:"Include upper bound"},null,8,["modelValue","onUpdate:modelValue"])],64)):r.createCommentVNode("",!0),((Ct=y.state[A])==null?void 0:Ct.type)==="string_equals"||((Tt=y.state[A])==null?void 0:Tt.type)==="string_notEquals"||((ht=y.state[A])==null?void 0:ht.type)==="string_contains"||((yr=y.state[A])==null?void 0:yr.type)==="string_doesNotContain"||((An=y.state[A])==null?void 0:An.type)==="string_matches"||((vr=y.state[A])==null?void 0:vr.type)==="string_doesNotMatch"?(r.openBlock(),r.createBlock(r.unref(fs),{key:3,modelValue:y.state[A].reference,"onUpdate:modelValue":Ge=>y.state[A].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"])):r.createCommentVNode("",!0),((zn=y.state[A])==null?void 0:zn.type)==="string_containsFuzzyMatch"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[r.createVNode(r.unref(fs),{modelValue:y.state[A].reference,"onUpdate:modelValue":Ge=>y.state[A].reference=Ge,label:"Reference value"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(Yu),{modelValue:y.state[A].maxEdits,"onUpdate:modelValue":Ge=>y.state[A].maxEdits=Ge,max:5,breakpoints:"",label:"Maximum nuber of substitutions and indels"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(gs),{modelValue:y.state[A].substitutionsOnly,"onUpdate:modelValue":Ge=>y.state[A].substitutionsOnly=Ge,label:"Substitutions only"},null,8,["modelValue","onUpdate:modelValue"]),r.createVNode(r.unref(so),{modelValue:y.state[A].wildcard,"onUpdate:modelValue":Ge=>y.state[A].wildcard=Ge,options:I(y.state[A].reference),clearable:"",label:"Wildcard symbol"},null,8,["modelValue","onUpdate:modelValue","options"])],64)):r.createCommentVNode("",!0)],2)])):r.createCommentVNode("",!0)])}),128))}}),[["__scopeId","data-v-e5f3b00f"]]),GE={key:1,class:"alert-error"},zE={key:2},ZE=r.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(t){const e=t,n=r.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),i=r.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=r.computed(()=>n.value===void 0&&i.value===void 0);return(l,c)=>(r.openBlock(),r.createElementBlock("div",null,[n.value!==void 0?r.renderSlot(l.$slots,"default",r.normalizeProps(r.mergeProps({key:0},{value:n.value}))):r.createCommentVNode("",!0),i.value?(r.openBlock(),r.createElementBlock("div",GE,r.toDisplayString(i.value),1)):r.createCommentVNode("",!0),s.value?(r.openBlock(),r.createElementBlock("div",zE,"Unresolved")):r.createCommentVNode("",!0)]))}}),UE={style:{height:"100%"}},$E=r.defineComponent({__name:"PlAgCellFile",props:{params:{}},setup(t){const e=t,n=r.computed(()=>e.params.extensions),i=r.computed(()=>e.params.value);function s(c){e.params.setValue(c)}const l=r.computed(()=>e.params.resolveProgress?e.params.resolveProgress(i.value):void 0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",UE,[r.createVNode(r.unref(ju),{"show-filename-only":"",clearable:"","cell-style":"","file-dialog-title":"Select any file",placeholder:`Choose file ${n.value?n.value[0]:""}`,extensions:n.value,"model-value":i.value,progress:l.value,"onUpdate:modelValue":s},null,8,["placeholder","extensions","model-value","progress"])]))}}),Vs=new Map;function WE(t,e){const n=r.getCurrentScope()??r.effectScope(),i=n.run(()=>(r.onScopeDispose(()=>{Vs.delete(t)}),r.reactive(e())));return i[Symbol.dispose]=()=>{n.stop()},i}function HE(t){const e=Symbol();return()=>(Vs.has(e)||Vs.set(e,WE(e,t)),Vs.get(e))}function jE(t){return r.computed(()=>{try{return dd(t())}catch(e){return{errors:[String(e)],value:void 0}}})}function sp(t,e,n){const i=r.ref(0),s=r.reactive({loading:r.computed(()=>i.value>0),loadingRef:i,value:void 0,error:void 0}),l=im(e);return r.watch(t,async c=>{s.error=void 0,i.value++,l(c).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{i.value--})},Object.assign({immediate:!0,deep:!0},n??{})),s}const hi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ap=new Set,Vl=typeof process=="object"&&process?process:{},lp=(t,e,n,i)=>{typeof Vl.emitWarning=="function"?Vl.emitWarning(t,e,n,i):console.error(`[${n}] ${e}: ${t}`)};let As=globalThis.AbortController,cp=globalThis.AbortSignal;if(typeof As>"u"){cp=class{constructor(){Ze(this,"onabort");Ze(this,"_onabort",[]);Ze(this,"reason");Ze(this,"aborted",!1)}addEventListener(i,s){this._onabort.push(s)}},As=class{constructor(){Ze(this,"signal",new cp);e()}abort(i){var s,l;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(const c of this.signal._onabort)c(i);(l=(s=this.signal).onabort)==null||l.call(s,i)}}};let t=((up=Vl.env)==null?void 0:up.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,lp("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const qE=t=>!ap.has(t),mr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),dp=t=>mr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ns:null:null;class Ns extends Array{constructor(e){super(e),this.fill(0)}}const Or=class Or{constructor(e,n){Ze(this,"heap");Ze(this,"length");if(!w(Or,fi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=dp(e);if(!n)return[];fe(Or,fi,!0);const i=new Or(e,n);return fe(Or,fi,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};fi=new WeakMap,Le(Or,fi,!1);let Al=Or;const Dl=class Dl{constructor(e){Le(this,ee);Le(this,dn);Le(this,Ot);Le(this,un);Le(this,pn);Le(this,mi);Le(this,gi);Ze(this,"ttl");Ze(this,"ttlResolution");Ze(this,"ttlAutopurge");Ze(this,"updateAgeOnGet");Ze(this,"updateAgeOnHas");Ze(this,"allowStale");Ze(this,"noDisposeOnSet");Ze(this,"noUpdateTTL");Ze(this,"maxEntrySize");Ze(this,"sizeCalculation");Ze(this,"noDeleteOnFetchRejection");Ze(this,"noDeleteOnStaleGet");Ze(this,"allowStaleOnFetchAbort");Ze(this,"allowStaleOnFetchRejection");Ze(this,"ignoreFetchAbort");Le(this,st);Le(this,hn);Le(this,it);Le(this,je);Le(this,be);Le(this,St);Le(this,Gt);Le(this,_t);Le(this,dt);Le(this,fn);Le(this,ut);Le(this,mn);Le(this,gn);Le(this,zt);Le(this,yn);Le(this,gr);Le(this,Et);Le(this,Gr,()=>{});Le(this,Gn,()=>{});Le(this,Eo,()=>{});Le(this,Zt,()=>!1);Le(this,zr,e=>{});Le(this,yi,(e,n,i)=>{});Le(this,To,(e,n,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ze(this,pp,"LRUCache");const{max:n=0,ttl:i,ttlResolution:s=1,ttlAutopurge:l,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:y,noUpdateTTL:S,maxSize:E=0,maxEntrySize:M=0,sizeCalculation:V,fetchMethod:F,memoMethod:C,noDeleteOnFetchRejection:G,noDeleteOnStaleGet:Q,allowStaleOnFetchRejection:I,allowStaleOnFetchAbort:L,ignoreFetchAbort:U}=e;if(n!==0&&!mr(n))throw new TypeError("max option must be a nonnegative integer");const T=n?dp(n):Array;if(!T)throw new Error("invalid max value: "+n);if(fe(this,dn,n),fe(this,Ot,E),this.maxEntrySize=M||w(this,Ot),this.sizeCalculation=V,this.sizeCalculation){if(!w(this,Ot)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(fe(this,gi,C),F!==void 0&&typeof F!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,mi,F),fe(this,gr,!!F),fe(this,it,new Map),fe(this,je,new Array(n).fill(void 0)),fe(this,be,new Array(n).fill(void 0)),fe(this,St,new T(n)),fe(this,Gt,new T(n)),fe(this,_t,0),fe(this,dt,0),fe(this,fn,Al.create(n)),fe(this,st,0),fe(this,hn,0),typeof f=="function"&&fe(this,un,f),typeof m=="function"?(fe(this,pn,m),fe(this,ut,[])):(fe(this,pn,void 0),fe(this,ut,void 0)),fe(this,yn,!!w(this,un)),fe(this,Et,!!w(this,pn)),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!G,this.allowStaleOnFetchRejection=!!I,this.allowStaleOnFetchAbort=!!L,this.ignoreFetchAbort=!!U,this.maxEntrySize!==0){if(w(this,Ot)!==0&&!mr(w(this,Ot)))throw new TypeError("maxSize must be a positive integer if specified");if(!mr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");le(this,ee,qf).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!Q,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=mr(s)||s===0?s:1,this.ttlAutopurge=!!l,this.ttl=i||0,this.ttl){if(!mr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");le(this,ee,nd).call(this)}if(w(this,dn)===0&&this.ttl===0&&w(this,Ot)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,dn)&&!w(this,Ot)){const k="LRU_CACHE_UNBOUNDED";qE(k)&&(ap.add(k),lp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",k,Dl))}}static unsafeExposeInternals(e){return{starts:w(e,gn),ttls:w(e,zt),sizes:w(e,mn),keyMap:w(e,it),keyList:w(e,je),valList:w(e,be),next:w(e,St),prev:w(e,Gt),get head(){return w(e,_t)},get tail(){return w(e,dt)},free:w(e,fn),isBackgroundFetch:n=>{var i;return le(i=e,ee,Ke).call(i,n)},backgroundFetch:(n,i,s,l)=>{var c;return le(c=e,ee,Ea).call(c,n,i,s,l)},moveToTail:n=>{var i;return le(i=e,ee,Yo).call(i,n)},indexes:n=>{var i;return le(i=e,ee,Br).call(i,n)},rindexes:n=>{var i;return le(i=e,ee,Vr).call(i,n)},isStale:n=>{var i;return w(i=e,Zt).call(i,n)}}}get max(){return w(this,dn)}get maxSize(){return w(this,Ot)}get calculatedSize(){return w(this,hn)}get size(){return w(this,st)}get fetchMethod(){return w(this,mi)}get memoMethod(){return w(this,gi)}get dispose(){return w(this,un)}get disposeAfter(){return w(this,pn)}getRemainingTTL(e){return w(this,it).has(e)?1/0:0}*entries(){for(const e of le(this,ee,Br).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*rentries(){for(const e of le(this,ee,Vr).call(this))w(this,be)[e]!==void 0&&w(this,je)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield[w(this,je)[e],w(this,be)[e]])}*keys(){for(const e of le(this,ee,Br).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield n)}}*rkeys(){for(const e of le(this,ee,Vr).call(this)){const n=w(this,je)[e];n!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield n)}}*values(){for(const e of le(this,ee,Br).call(this))w(this,be)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}*rvalues(){for(const e of le(this,ee,Vr).call(this))w(this,be)[e]!==void 0&&!le(this,ee,Ke).call(this,w(this,be)[e])&&(yield w(this,be)[e])}[(hp=Symbol.iterator,pp=Symbol.toStringTag,hp)](){return this.entries()}find(e,n={}){for(const i of le(this,ee,Br).call(this)){const s=w(this,be)[i],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;if(l!==void 0&&e(l,w(this,je)[i],this))return this.get(w(this,je)[i],n)}}forEach(e,n=this){for(const i of le(this,ee,Br).call(this)){const s=w(this,be)[i],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}rforEach(e,n=this){for(const i of le(this,ee,Vr).call(this)){const s=w(this,be)[i],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;l!==void 0&&e.call(n,l,w(this,je)[i],this)}}purgeStale(){let e=!1;for(const n of le(this,ee,Vr).call(this,{allowStale:!0}))w(this,Zt).call(this,n)&&(le(this,ee,Ar).call(this,w(this,je)[n],"expire"),e=!0);return e}info(e){const n=w(this,it).get(e);if(n===void 0)return;const i=w(this,be)[n],s=le(this,ee,Ke).call(this,i)?i.__staleWhileFetching:i;if(s===void 0)return;const l={value:s};if(w(this,zt)&&w(this,gn)){const c=w(this,zt)[n],u=w(this,gn)[n];if(c&&u){const p=c-(hi.now()-u);l.ttl=p,l.start=Date.now()}}return w(this,mn)&&(l.size=w(this,mn)[n]),l}dump(){const e=[];for(const n of le(this,ee,Br).call(this,{allowStale:!0})){const i=w(this,je)[n],s=w(this,be)[n],l=le(this,ee,Ke).call(this,s)?s.__staleWhileFetching:s;if(l===void 0||i===void 0)continue;const c={value:l};if(w(this,zt)&&w(this,gn)){c.ttl=w(this,zt)[n];const u=hi.now()-w(this,gn)[n];c.start=Math.floor(Date.now()-u)}w(this,mn)&&(c.size=w(this,mn)[n]),e.unshift([i,c])}return e}load(e){this.clear();for(const[n,i]of e){if(i.start){const s=Date.now()-i.start;i.start=hi.now()-s}this.set(n,i.value,i)}}set(e,n,i={}){var S,E,M,V,F;if(n===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:l,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=i;let{noUpdateTTL:f=this.noUpdateTTL}=i;const m=w(this,To).call(this,e,n,i.size||0,u);if(this.maxEntrySize&&m>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),le(this,ee,Ar).call(this,e,"set"),this;let y=w(this,st)===0?void 0:w(this,it).get(e);if(y===void 0)y=w(this,st)===0?w(this,dt):w(this,fn).length!==0?w(this,fn).pop():w(this,st)===w(this,dn)?le(this,ee,Sa).call(this,!1):w(this,st),w(this,je)[y]=e,w(this,be)[y]=n,w(this,it).set(e,y),w(this,St)[w(this,dt)]=y,w(this,Gt)[y]=w(this,dt),fe(this,dt,y),ka(this,st)._++,w(this,yi).call(this,y,m,p),p&&(p.set="add"),f=!1;else{le(this,ee,Yo).call(this,y);const C=w(this,be)[y];if(n!==C){if(w(this,gr)&&le(this,ee,Ke).call(this,C)){C.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:G}=C;G!==void 0&&!c&&(w(this,yn)&&((S=w(this,un))==null||S.call(this,G,e,"set")),w(this,Et)&&((E=w(this,ut))==null||E.push([G,e,"set"])))}else c||(w(this,yn)&&((M=w(this,un))==null||M.call(this,C,e,"set")),w(this,Et)&&((V=w(this,ut))==null||V.push([C,e,"set"])));if(w(this,zr).call(this,y),w(this,yi).call(this,y,m,p),w(this,be)[y]=n,p){p.set="replace";const G=C&&le(this,ee,Ke).call(this,C)?C.__staleWhileFetching:C;G!==void 0&&(p.oldValue=G)}}else p&&(p.set="update")}if(s!==0&&!w(this,zt)&&le(this,ee,nd).call(this),w(this,zt)&&(f||w(this,Eo).call(this,y,s,l),p&&w(this,Gn).call(this,p,y)),!c&&w(this,Et)&&w(this,ut)){const C=w(this,ut);let G;for(;G=C==null?void 0:C.shift();)(F=w(this,pn))==null||F.call(this,...G)}return this}pop(){var e;try{for(;w(this,st);){const n=w(this,be)[w(this,_t)];if(le(this,ee,Sa).call(this,!0),le(this,ee,Ke).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,Et)&&w(this,ut)){const n=w(this,ut);let i;for(;i=n==null?void 0:n.shift();)(e=w(this,pn))==null||e.call(this,...i)}}}has(e,n={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=n,l=w(this,it).get(e);if(l!==void 0){const c=w(this,be)[l];if(le(this,ee,Ke).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if(w(this,Zt).call(this,l))s&&(s.has="stale",w(this,Gn).call(this,s,l));else return i&&w(this,Gr).call(this,l),s&&(s.has="hit",w(this,Gn).call(this,s,l)),!0}else s&&(s.has="miss");return!1}peek(e,n={}){const{allowStale:i=this.allowStale}=n,s=w(this,it).get(e);if(s===void 0||!i&&w(this,Zt).call(this,s))return;const l=w(this,be)[s];return le(this,ee,Ke).call(this,l)?l.__staleWhileFetching:l}async fetch(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:y=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:E=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:V,forceRefresh:F=!1,status:C,signal:G}=n;if(!w(this,gr))return C&&(C.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:C});const Q={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:u,size:p,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:y,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:M,ignoreFetchAbort:E,status:C,signal:G};let I=w(this,it).get(e);if(I===void 0){C&&(C.fetch="miss");const L=le(this,ee,Ea).call(this,e,I,Q,V);return L.__returned=L}else{const L=w(this,be)[I];if(le(this,ee,Ke).call(this,L)){const A=i&&L.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",A&&(C.returnedStale=!0)),A?L.__staleWhileFetching:L.__returned=L}const U=w(this,Zt).call(this,I);if(!F&&!U)return C&&(C.fetch="hit"),le(this,ee,Yo).call(this,I),s&&w(this,Gr).call(this,I),C&&w(this,Gn).call(this,C,I),L;const T=le(this,ee,Ea).call(this,e,I,Q,V),O=T.__staleWhileFetching!==void 0&&i;return C&&(C.fetch=U?"stale":"refresh",O&&U&&(C.returnedStale=!0)),O?T.__staleWhileFetching:T.__returned=T}}async forceFetch(e,n={}){const i=await this.fetch(e,n);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,n={}){const i=w(this,gi);if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:l,...c}=n,u=this.get(e,c);if(!l&&u!==void 0)return u;const p=i(e,u,{options:c,context:s});return this.set(e,p,c),p}get(e,n={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=n,u=w(this,it).get(e);if(u!==void 0){const p=w(this,be)[u],f=le(this,ee,Ke).call(this,p);return c&&w(this,Gn).call(this,c,u),w(this,Zt).call(this,u)?(c&&(c.get="stale"),f?(c&&i&&p.__staleWhileFetching!==void 0&&(c.returnedStale=!0),i?p.__staleWhileFetching:void 0):(l||le(this,ee,Ar).call(this,e,"expire"),c&&i&&(c.returnedStale=!0),i?p:void 0)):(c&&(c.get="hit"),f?p.__staleWhileFetching:(le(this,ee,Yo).call(this,u),s&&w(this,Gr).call(this,u),p))}else c&&(c.get="miss")}delete(e){return le(this,ee,Ar).call(this,e,"delete")}clear(){return le(this,ee,od).call(this,"delete")}};dn=new WeakMap,Ot=new WeakMap,un=new WeakMap,pn=new WeakMap,mi=new WeakMap,gi=new WeakMap,st=new WeakMap,hn=new WeakMap,it=new WeakMap,je=new WeakMap,be=new WeakMap,St=new WeakMap,Gt=new WeakMap,_t=new WeakMap,dt=new WeakMap,fn=new WeakMap,ut=new WeakMap,mn=new WeakMap,gn=new WeakMap,zt=new WeakMap,yn=new WeakMap,gr=new WeakMap,Et=new WeakMap,ee=new WeakSet,nd=function(){const e=new Ns(w(this,dn)),n=new Ns(w(this,dn));fe(this,zt,e),fe(this,gn,n),fe(this,Eo,(l,c,u=hi.now())=>{if(n[l]=c!==0?u:0,e[l]=c,c!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,Zt).call(this,l)&&le(this,ee,Ar).call(this,w(this,je)[l],"expire")},c+1);p.unref&&p.unref()}}),fe(this,Gr,l=>{n[l]=e[l]!==0?hi.now():0}),fe(this,Gn,(l,c)=>{if(e[c]){const u=e[c],p=n[c];if(!u||!p)return;l.ttl=u,l.start=p,l.now=i||s();const f=l.now-p;l.remainingTTL=u-f}});let i=0;const s=()=>{const l=hi.now();if(this.ttlResolution>0){i=l;const c=setTimeout(()=>i=0,this.ttlResolution);c.unref&&c.unref()}return l};this.getRemainingTTL=l=>{const c=w(this,it).get(l);if(c===void 0)return 0;const u=e[c],p=n[c];if(!u||!p)return 1/0;const f=(i||s())-p;return u-f},fe(this,Zt,l=>{const c=n[l],u=e[l];return!!u&&!!c&&(i||s())-c>u})},Gr=new WeakMap,Gn=new WeakMap,Eo=new WeakMap,Zt=new WeakMap,qf=function(){const e=new Ns(w(this,dn));fe(this,hn,0),fe(this,mn,e),fe(this,zr,n=>{fe(this,hn,w(this,hn)-e[n]),e[n]=0}),fe(this,To,(n,i,s,l)=>{if(le(this,ee,Ke).call(this,i))return 0;if(!mr(s))if(l){if(typeof l!="function")throw new TypeError("sizeCalculation must be a function");if(s=l(i,n),!mr(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),fe(this,yi,(n,i,s)=>{if(e[n]=i,w(this,Ot)){const l=w(this,Ot)-e[n];for(;w(this,hn)>l;)le(this,ee,Sa).call(this,!0)}fe(this,hn,w(this,hn)+e[n]),s&&(s.entrySize=i,s.totalCalculatedSize=w(this,hn))})},zr=new WeakMap,yi=new WeakMap,To=new WeakMap,Br=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,dt);!(!le(this,ee,rd).call(this,n)||((e||!w(this,Zt).call(this,n))&&(yield n),n===w(this,_t)));)n=w(this,Gt)[n]},Vr=function*({allowStale:e=this.allowStale}={}){if(w(this,st))for(let n=w(this,_t);!(!le(this,ee,rd).call(this,n)||((e||!w(this,Zt).call(this,n))&&(yield n),n===w(this,dt)));)n=w(this,St)[n]},rd=function(e){return e!==void 0&&w(this,it).get(w(this,je)[e])===e},Sa=function(e){var l,c;const n=w(this,_t),i=w(this,je)[n],s=w(this,be)[n];return w(this,gr)&&le(this,ee,Ke).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((l=w(this,un))==null||l.call(this,s,i,"evict")),w(this,Et)&&((c=w(this,ut))==null||c.push([s,i,"evict"]))),w(this,zr).call(this,n),e&&(w(this,je)[n]=void 0,w(this,be)[n]=void 0,w(this,fn).push(n)),w(this,st)===1?(fe(this,_t,fe(this,dt,0)),w(this,fn).length=0):fe(this,_t,w(this,St)[n]),w(this,it).delete(i),ka(this,st)._--,n},Ea=function(e,n,i,s){const l=n===void 0?void 0:w(this,be)[n];if(le(this,ee,Ke).call(this,l))return l;const c=new As,{signal:u}=i;u==null||u.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});const p={signal:c.signal,options:i,context:s},f=(V,F=!1)=>{const{aborted:C}=c.signal,G=i.ignoreFetchAbort&&V!==void 0;if(i.status&&(C&&!F?(i.status.fetchAborted=!0,i.status.fetchError=c.signal.reason,G&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),C&&!G&&!F)return y(c.signal.reason);const Q=E;return w(this,be)[n]===E&&(V===void 0?Q.__staleWhileFetching?w(this,be)[n]=Q.__staleWhileFetching:le(this,ee,Ar).call(this,e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,V,p.options))),V},m=V=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=V),y(V)),y=V=>{const{aborted:F}=c.signal,C=F&&i.allowStaleOnFetchAbort,G=C||i.allowStaleOnFetchRejection,Q=G||i.noDeleteOnFetchRejection,I=E;if(w(this,be)[n]===E&&(!Q||I.__staleWhileFetching===void 0?le(this,ee,Ar).call(this,e,"fetch"):C||(w(this,be)[n]=I.__staleWhileFetching)),G)return i.status&&I.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),I.__staleWhileFetching;if(I.__returned===I)throw V},S=(V,F)=>{var G;const C=(G=w(this,mi))==null?void 0:G.call(this,e,l,p);C&&C instanceof Promise&&C.then(Q=>V(Q===void 0?void 0:Q),F),c.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(V(void 0),i.allowStaleOnFetchAbort&&(V=Q=>f(Q,!0)))})};i.status&&(i.status.fetchDispatched=!0);const E=new Promise(S).then(f,m),M=Object.assign(E,{__abortController:c,__staleWhileFetching:l,__returned:void 0});return n===void 0?(this.set(e,M,{...p.options,status:void 0}),n=w(this,it).get(e)):w(this,be)[n]=M,M},Ke=function(e){if(!w(this,gr))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof As},id=function(e,n){w(this,Gt)[n]=e,w(this,St)[e]=n},Yo=function(e){e!==w(this,dt)&&(e===w(this,_t)?fe(this,_t,w(this,St)[e]):le(this,ee,id).call(this,w(this,Gt)[e],w(this,St)[e]),le(this,ee,id).call(this,w(this,dt),e),fe(this,dt,e))},Ar=function(e,n){var s,l,c,u;let i=!1;if(w(this,st)!==0){const p=w(this,it).get(e);if(p!==void 0)if(i=!0,w(this,st)===1)le(this,ee,od).call(this,n);else{w(this,zr).call(this,p);const f=w(this,be)[p];if(le(this,ee,Ke).call(this,f)?f.__abortController.abort(new Error("deleted")):(w(this,yn)||w(this,Et))&&(w(this,yn)&&((s=w(this,un))==null||s.call(this,f,e,n)),w(this,Et)&&((l=w(this,ut))==null||l.push([f,e,n]))),w(this,it).delete(e),w(this,je)[p]=void 0,w(this,be)[p]=void 0,p===w(this,dt))fe(this,dt,w(this,Gt)[p]);else if(p===w(this,_t))fe(this,_t,w(this,St)[p]);else{const m=w(this,Gt)[p];w(this,St)[m]=w(this,St)[p];const y=w(this,St)[p];w(this,Gt)[y]=w(this,Gt)[p]}ka(this,st)._--,w(this,fn).push(p)}}if(w(this,Et)&&((c=w(this,ut))!=null&&c.length)){const p=w(this,ut);let f;for(;f=p==null?void 0:p.shift();)(u=w(this,pn))==null||u.call(this,...f)}return i},od=function(e){var n,i,s;for(const l of le(this,ee,Vr).call(this,{allowStale:!0})){const c=w(this,be)[l];if(le(this,ee,Ke).call(this,c))c.__abortController.abort(new Error("deleted"));else{const u=w(this,je)[l];w(this,yn)&&((n=w(this,un))==null||n.call(this,c,u,e)),w(this,Et)&&((i=w(this,ut))==null||i.push([c,u,e]))}}if(w(this,it).clear(),w(this,be).fill(void 0),w(this,je).fill(void 0),w(this,zt)&&w(this,gn)&&(w(this,zt).fill(0),w(this,gn).fill(0)),w(this,mn)&&w(this,mn).fill(0),fe(this,_t,0),fe(this,dt,0),w(this,fn).length=0,fe(this,hn,0),fe(this,st,0),w(this,Et)&&w(this,ut)){const l=w(this,ut);let c;for(;c=l==null?void 0:l.shift();)(s=w(this,pn))==null||s.call(this,...c)}};let Nl=Dl;const KE={cacheSize:15e6};class YE{constructor(e){Ze(this,"_str");Ze(this,"_rawJson");Ze(this,"_zodSchema");Ze(this,"_validatedJson");this.bytes=e}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(e){return this._zodSchema!==e&&(this._validatedJson=e.parse(this.rawJson),this._zodSchema=e),this._validatedJson}}const Zr=class Zr{constructor(e){Ze(this,"fileDataCache");Ze(this,"fileDataRefs",new Map);const n={...KE,...e??{}};this.fileDataCache=new Nl({maxSize:n.cacheSize,fetchMethod:async i=>new YE(await _g().blobDriver.getContent(i)),sizeCalculation:i=>i.bytes.length,dispose:(i,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const n=this.fileDataRefs.get(e);if(n!==void 0)return n;const i=r.shallowRef();return this.fileDataRefs.set(e,i),(async()=>{try{const s=await this.fileDataCache.fetch(e);i.value=s}catch(s){console.error(s)}})(),i}getContentBytes(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n.value)==null?void 0:i.bytes})}getContentString(e){if(e===void 0)return;const n=this.getDataRef(e);return r.computed(()=>{var i;return(i=n==null?void 0:n.value)==null?void 0:i.str})}getContentJson(e,n){if(e===void 0)return;const i=this.getDataRef(e);return r.computed(()=>{var s,l;return n===void 0?(s=i==null?void 0:i.value)==null?void 0:s.rawJson:(l=i==null?void 0:i.value)==null?void 0:l.validatedJson(n)})}static getContentBytes(e){return Zr.globalInstance.getContentBytes(e)}static getContentString(e){return Zr.globalInstance.getContentString(e)}static getContentJson(e,n){return Zr.globalInstance.getContentJson(e,n)}};Ze(Zr,"globalInstance",new Zr);let Pl=Zr;R.AgGridTheme=Kd,R.BlockLayout=yE,R.ContextProvider=nk,R.DataTable=F_,R.DemoData=rE,R.DropdownListItem=oo,R.LongText=vl,R.MultiError=Va,R.PlAgCellFile=$E,R.PlAgDataTable=IE,R.PlAgOverlayLoading=Qu,R.PlAgOverlayNoRows=ep,R.PlAlert=uC,R.PlBlockPage=J_,R.PlBtnAccent=gC,R.PlBtnDanger=vC,R.PlBtnGhost=pl,R.PlBtnGroup=GC,R.PlBtnLink=bC,R.PlBtnPrimary=dl,R.PlBtnSecondary=ul,R.PlCheckbox=Au,R.PlCheckboxGroup=Z0,R.PlChip=_l,R.PlContainer=Q_,R.PlCopyData=Ku,R.PlDialogModal=wl,R.PlDropdown=so,R.PlDropdownLegacy=u0,R.PlDropdownLine=Vu,R.PlDropdownMulti=I0,R.PlDropdownRef=Gw,R.PlFileDialog=Pu,R.PlFileInput=ju,R.PlGrid=oC,R.PlIcon16=hs,R.PlIcon24=Su,R.PlLogView=gb,R.PlMaskIcon16=to,R.PlMaskIcon24=Ln,R.PlNotificationAlert=qu,R.PlNumberField=ms,R.PlProgressBar=g0,R.PlRow=tC,R.PlSlideModal=nb,R.PlSpacer=vu,R.PlTableFilters=OE,R.PlTabs=kb,R.PlTextArea=yw,R.PlTextField=fs,R.PlToggleSwitch=gs,R.PlTooltip=Nt,R.ReactiveFileContent=Pl,R.Scrollable=Hk,R.Slider=Yu,R.SliderRange=Zk,R.SliderRangeTriple=Ak,R.ThemeSwitcher=$_,R.UnresolvedError=Ba,R.ValueOrErrorsComponent=ZE,R.activateAgGrid=qd,R.animate=pu,R.animateInfinite=O_,R.call=au,R.computedResult=jE,R.createModel=Ra,R.debounce=hu,R.defineApp=cv,R.defineStore=HE,R.delay=lu,R.detectOutside=vw,R.ensureError=Pa,R.eventListener=gl,R.formatZodError=Fa,R.getElementScrollPosition=Tu,R.identity=Na,R.isDefined=cm,R.isElementVisible=Eu,R.isJsonEqual=Aa,R.isZodError=Da,R.listToOptions=G_,R.makeEaseInOut=L_,R.makeEaseOut=uu,R.maskIcons16=tE,R.maskIcons24=nE,R.normalizeListOptions=Rr,R.notEmpty=ol,R.randomInt=du,R.randomString=I_,R.requestTick=sl,R.scrollIntoView=io,R.showContextMenu=nl,R.throttle=fu,R.timeout=cu,R.unwrapOptionalResult=lm,R.unwrapValueOrErrors=cd,R.useClickOutside=ps,R.useDraggable=_k,R.useEventListener=tt,R.useFormState=yk,R.useHover=ou,R.useInterval=gk,R.useLabelNotch=In,R.useLocalStorage=mu,R.useMouse=iu,R.useMouseCapture=sr,R.usePosition=no,R.useQuery=vk,R.useResizeObserver=Ju,R.useScroll=hk,R.useSdkPlugin=Xa,R.useSortable=mk,R.useTheme=yu,R.useWatchFetch=sp,R.wrapOptionalResult=dd,R.wrapValueOrErrors=am,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|