@platforma-sdk/ui-vue 1.7.12 → 1.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/lib.js +3 -3
- package/dist/lib.umd.cjs +2 -2
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts +1 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +18 -18
- package/src/components/BlockLayout.vue +1 -1
- package/src/components/NotFound.vue +1 -1
- package/src/components/PlAgDataTable/PlAgDataTable.vue +1 -1
- package/src/components/PlAgDataTable/ag-theme.css +2 -5
package/CHANGELOG.md
CHANGED
package/dist/lib.js
CHANGED
|
@@ -12227,7 +12227,7 @@ const o3 = [
|
|
|
12227
12227
|
});
|
|
12228
12228
|
};
|
|
12229
12229
|
return (a, l) => (y(), E("div", wR, [
|
|
12230
|
-
L("h1", null, "Not found route: " + ae(B(t).navigationState.href), 1),
|
|
12230
|
+
L("h1", null, "Not found route: " + ae(B(t).snapshot.navigationState.href), 1),
|
|
12231
12231
|
He(B(Yh), {
|
|
12232
12232
|
onClick: Je(s, ["stop"])
|
|
12233
12233
|
}, {
|
|
@@ -12263,7 +12263,7 @@ const TR = /* @__PURE__ */ Ju(kR, [["render", CR]]), ER = { class: "block block_
|
|
|
12263
12263
|
}
|
|
12264
12264
|
}, s = R(() => e.loaded ? e.useApp().href : void 0), a = R(() => {
|
|
12265
12265
|
if (e.loaded) {
|
|
12266
|
-
const l = e.useApp(), u = t(l.navigationState.href);
|
|
12266
|
+
const l = e.useApp(), u = t(l.snapshot.navigationState.href);
|
|
12267
12267
|
return u ? l.routes[u] : void 0;
|
|
12268
12268
|
}
|
|
12269
12269
|
});
|
|
@@ -16486,7 +16486,7 @@ const KR = { class: "ap-ag-data-table-container" }, YR = {
|
|
|
16486
16486
|
})
|
|
16487
16487
|
]));
|
|
16488
16488
|
}
|
|
16489
|
-
}), d3 = /* @__PURE__ */ Ju(JR, [["__scopeId", "data-v-
|
|
16489
|
+
}), d3 = /* @__PURE__ */ Ju(JR, [["__scopeId", "data-v-c7982bee"]]), XR = {
|
|
16490
16490
|
key: 1,
|
|
16491
16491
|
class: "alert-error"
|
|
16492
16492
|
}, QR = { key: 2 }, f3 = /* @__PURE__ */ ce({
|
package/dist/lib.umd.cjs
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
black ${R}px,
|
|
19
19
|
black ${T}px,
|
|
20
20
|
transparent 100%
|
|
21
|
-
)`}function c(){const u=i.value;if(!u)return;const p=[a(u),s(u)].filter(h=>h!==null);u.style.setProperty("-webkit-mask-image",p.join(",")),u.style.setProperty("mask-image",p.join(",")),p.length>1&&(u.style.setProperty("-webkit-mask-composite","source-in"),u.style.setProperty("mask-composite","source-in"))}const d=Ms(c);n.onMounted(c),Ge(window,"scroll",d,!0),Ge(window,"resize",d,!0)}function fu(i,e){Fd(()=>{at(n.unref(i),t=>{$d(t,()=>e(t))})}),n.onUnmounted(()=>{at(n.unref(i),t=>{zd(t)})})}const nr={item:"sortable__item",animate:"sortable__animate"},co=i=>i.getBoundingClientRect().y,pu=i=>{const{y:e,height:t}=i.getBoundingClientRect();return e+Math.ceil(t/2)},qk=i=>{const{y:e,height:t}=i.getBoundingClientRect();return e+t};function Gk(i,e){const t={item:void 0,options(){var T;return[...((T=i.value)==null?void 0:T.children)??[]]}},a=n.computed(()=>t.options()),s=e.shakeBuffer??10,c=e.reorderDelay??100;function d(T){const C=e.handle?this.querySelector(e.handle):null;C&&!C.contains(T.target)||(this.classList.remove(nr.animate),this.classList.add(nr.item),t.item={el:this,y:T.y,dy:0,orderChanged:!1})}function u(T){const C=t.options();return C.slice(0,C.indexOf(T))}function p(T){const C=t.options();return C.slice(C.indexOf(T)+1)}function h(T,C){const k=t.options().filter(v=>v!==C),S=k.indexOf(T);return k.splice(S,0,C),k}function g(T,C){const k=t.options().filter(v=>v!==C),S=k.indexOf(T);return k.splice(S+1,0,C),k}function x(T,C){T.dy=C-T.y,T.el.style.setProperty("transform",`translateY(${T.dy}px)`)}function R(T){var C;if(!t.item)return;const{el:k}=t.item;if(!k.isConnected){t.item=void 0;return}const S=T.map(W=>co(W)),v=co(k);(C=i.value)==null||C.replaceChildren(...T);const I=co(k),K=T.map(W=>co(W)),j=[];for(let W=0;W<K.length;W++){const O=T[W];if(O===t.item.el)continue;const B=K[W],P=S[W]-B;O.style.transform=`translateY(${P}px)`,j.push(O)}const z=I-v;t.item.y=t.item.y+z,t.item.dy=t.item.dy-z,t.item.orderChanged=!0,t.item.el.style.setProperty("transform",`translateY(${t.item.dy}px)`),j.forEach(W=>W.classList.remove(nr.animate)),requestAnimationFrame(function(){j.forEach(W=>{W.classList.add(nr.animate),W.style.transform="",W.addEventListener("transitionend",()=>{W.classList.remove(nr.animate)})})})}Ge(window,"mousemove",T=>{if(!t.item)return;const{el:C}=t.item;x(t.item,T.y);const k=co(t.item.el),S=qk(t.item.el),v=u(C),I=p(C);v.forEach(K=>{const j=pu(K);k+s<j&&R(h(K,C))}),I.forEach(K=>{const j=pu(K);S-s>j&&R(g(K,C))})}),Ge(window,"mouseup",()=>{if(!t.item)return;const{el:T,orderChanged:C}=t.item;T.classList.add(nr.animate),T.style.removeProperty("transform"),T.addEventListener("transitionend",()=>{T.classList.remove(nr.animate,nr.item)}),setTimeout(()=>{if(!C)return;const k=t.options().map(v=>Number(v.getAttribute("data-index"))),S=i.value;if(S){for(const v of t.options())S.removeChild(v);a.value.forEach(v=>{S.appendChild(v)})}e.onChange(k)},c),t.item=void 0}),n.watchEffect(()=>{a.value.forEach((T,C)=>{T.removeEventListener("mousedown",d),T.addEventListener("mousedown",d),T.setAttribute("data-index",String(C))})})}function Kk(i,e){let t;n.onMounted(()=>{t=setInterval(i,e)}),n.onUnmounted(()=>clearInterval(t))}function Yk(i,e,t){const a=n.reactive({data:Os.deepClone(e(i.value)),changed:!1});return n.watch(()=>a.data,s=>{a.changed?t(Os.deepClone(s)):a.changed=!0},{deep:!0}),n.watch(i,s=>{Object.assign(a,{data:Os.deepClone(e(s)),changed:!1})},{deep:!0,immediate:!0}),a}function Jk(i){const e=n.reactive({isLoading:!1,result:void 0,error:void 0,async run(...t){this.isLoading=!0,this.error=void 0;try{this.result=await i(...t)}catch(a){this.error=a}finally{this.isLoading=!1}},debounce(t,a=1e3){return wd(()=>{const s=t();this.run(...s).catch(console.error)},a)}});return e.run=e.run.bind(e),e}function Xk(i,e){function t(d,u){const p=n.unref(i);if(!p)return;const h=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",h),e(u)}function a(d){const u=p=>t(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=n.unref(i);document.removeEventListener("mousemove",u),p&&(p.style.setProperty("transition","all .3s ease-in-out"),p.style.removeProperty("transform"),p.addEventListener("transitionend",()=>{p.style.removeProperty("transition")}))},{once:!0})}function s(){var d;(d=n.unref(i))==null||d.addEventListener("mousedown",a)}function c(){var d;(d=n.unref(i))==null||d.removeEventListener("mousedown",a)}n.onMounted(s),n.onUnmounted(c)}const Qk={class:"ui-slider__wrapper"},e1={class:"ui-slider__label-section"},t1={key:0,class:"text-s"},n1={class:"ui-slider__base"},r1={class:"ui-slider__container"},i1={class:"ui-slider__container ui-slider__container-thumb"},o1=["data-percent"],a1=["data-percent"],s1=["data-percent"],l1={key:0,class:"ui-slider__error"},c1=n.defineComponent({__name:"SliderRangeTriple",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:"%"},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=n.useSlots(),a=e,s=i,c=n.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=n.ref(),u=n.ref(),p=n.ref(),h=n.ref(),g=n.computed(()=>s.max-s.min),x=n.computed(()=>s),R=sl(x),T=n.computed(()=>ht((s.modelValue[0]??0)+c.deltaValue1,s.min,s.max)),C=n.computed(()=>ht((s.modelValue[1]??0)+c.deltaValue2,s.min,s.max)),k=n.computed(()=>ht((s.modelValue[2]??0)+c.deltaValue3,s.min,s.max)),S=n.computed(()=>{const ae=s.modelValue;if(!(Array.isArray(ae)&&ae.length===3&&ae.every(Ce=>Number.isFinite(Ce))))return"Expected model [number, number, number]";const J=[];return[...s.modelValue].forEach(Ce=>{Ce>s.max&&J.push(`Max model value must be lower than max props ${s.max}.`),Ce<s.min&&J.push("Min model value must be greater than max props.")}),J.length>0?J.join(" "):s.error}),v=n.computed(()=>(T.value-s.min)/g.value),I=n.computed(()=>(C.value-s.min)/g.value),K=n.computed(()=>(k.value-s.min)/g.value),j=n.computed(()=>Z()),z=n.computed(()=>({right:j.value[0]+"%",left:100-j.value[2]+"%"})),W=n.computed(()=>({right:Math.ceil((1-v.value)*100)+"%"})),O=n.computed(()=>({right:Math.ceil((1-I.value)*100)+"%"})),B=n.computed(()=>({right:Math.ceil((1-K.value)*100)+"%"}));Kn(u,ae=>{var J;at((J=n.unref(d))==null?void 0:J.getBoundingClientRect(),Ce=>{const{dx:Be}=ae;c.deltaValue1=Be/Ce.width*g.value,u.value&&P(u.value,s.modelValue[0],c.deltaValue1),ae.stop&&(H([L(T.value),L(C.value),L(k.value)]),c.deltaValue1=0)})}),Kn(p,ae=>{var J;at((J=n.unref(d))==null?void 0:J.getBoundingClientRect(),Ce=>{const{dx:Be}=ae;c.deltaValue2=Be/Ce.width*g.value,p.value&&P(p.value,s.modelValue[1],c.deltaValue2),ae.stop&&(H([L(T.value),L(C.value),L(k.value)]),c.deltaValue2=0)})}),Kn(h,ae=>{var J;at((J=n.unref(d))==null?void 0:J.getBoundingClientRect(),Ce=>{const{dx:Be}=ae;c.deltaValue3=Be/Ce.width*g.value,h.value&&P(h.value,s.modelValue[2],c.deltaValue3),ae.stop&&(H([L(T.value),L(C.value),L(k.value)]),c.deltaValue3=0)})});function P(ae,J,Ce){const Be=L(ht((J??0)+Ce,s.min,s.max));ae.dataset.percent=`${Be}${s.measure}`,oe()}function Z(){const ae=Math.ceil((1-v.value)*100),J=Math.ceil((1-I.value)*100),Ce=Math.ceil((1-K.value)*100);return[ae,J,Ce].sort((Be,Ar)=>Be-Ar)}function L(ae){const J=ht(ae,s.min,s.max);return Math.round((J+Number.EPSILON)*(1/s.step))/(1/s.step)}function H(ae){a("update:modelValue",ae)}function oe(){const ae=Number(W.value.right.substring(0,W.value.right.length-1)),J=Number(O.value.right.substring(0,O.value.right.length-1)),Ce=Number(B.value.right.substring(0,B.value.right.length-1)),Be=[{r:ae,th:u},{r:J,th:p},{r:Ce,th:h}].sort((Ar,or)=>Ar.r-or.r);Be[0].th.value&&(Be[0].th.value.dataset.hint="high"),Be[1].th.value&&(Be[1].th.value.dataset.hint="mid"),Be[2].th.value&&(Be[2].th.value.dataset.hint="low")}function de(ae,J){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(ae.code)&&ae.preventDefault();const Ce=ae.code==="ArrowUp"||ae.code==="ArrowRight"?s.step*1:ae.code==="ArrowDown"||ae.code==="ArrowLeft"?s.step*-1:0,Be=[...s.modelValue];Be[J]=ht(Be[J]+Ce,s.min,s.max),H(Be),oe()}return n.onMounted(()=>{oe()}),(ae,J)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[n.createElementVNode("div",Qk,[n.createElementVNode("div",e1,[ae.label?(n.openBlock(),n.createElementBlock("label",t1,[n.createElementVNode("span",null,n.toDisplayString(ae.label),1),J[3]||(J[3]=n.createTextVNode()),n.unref(t).tooltip?(n.openBlock(),n.createBlock(n.unref(Zt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(ae.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),J[11]||(J[11]=n.createTextVNode()),n.createElementVNode("div",n1,[n.createElementVNode("div",r1,[n.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(z.value)},null,4)],512)]),J[10]||(J[10]=n.createTextVNode()),n.createElementVNode("div",i1,[s.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(R),(Ce,Be)=>(n.openBlock(),n.createElementBlock("div",{key:Be,style:n.normalizeStyle({right:`${Ce}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),J[7]||(J[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:n.normalizeStyle(W.value),"data-percent":s.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:J[0]||(J[0]=Ce=>de(Ce,0))},J[4]||(J[4]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,o1),J[8]||(J[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:n.normalizeStyle(O.value),"data-percent":s.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:J[1]||(J[1]=Ce=>de(Ce,1))},J[5]||(J[5]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,a1),J[9]||(J[9]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef3",ref:h,style:n.normalizeStyle(B.value),"data-percent":s.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:J[2]||(J[2]=Ce=>de(Ce,2))},J[6]||(J[6]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,s1)])])]),J[12]||(J[12]=n.createTextVNode()),J[13]||(J[13]=n.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),J[14]||(J[14]=n.createTextVNode()),S.value?(n.openBlock(),n.createElementBlock("div",l1,n.toDisplayString(S.value),1)):n.createCommentVNode("",!0)],2))}}),d1={class:"ui-input-range__separator"},u1=n.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(i,{emit:e}){const t=i,a=e,s=n.reactive({left:t.modelValue[0],right:t.modelValue[1]}),c=n.ref(!1),d=n.computed(()=>(c.value,"ui-input-range-focused")),u=n.computed({get(){return{left:Math.min(...t.modelValue),right:Math.max(...t.modelValue)}},set(){}});n.watch(()=>u.value,g=>(s.left=g.left)&&(s.right=g.right));function p(){a("update:modelValue",[+s.left,+s.right]),a("change",[+s.left,+s.right])}function h(g,x){const R=x.target.value;/^[0-9]{0,2}$/.test(R)?g?s.left=+R:s.right=+R:g?s.left=+R.slice(0,R.length-1):s.right=+R.slice(0,R.length-1)}return(g,x)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({class:[d.value,"ui-input-range"]},g.$attrs),[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=R=>u.value.left=R),class:"text-s",type:"text",onChange:p,onFocus:x[1]||(x[1]=R=>c.value=!0),onFocusout:x[2]||(x[2]=R=>c.value=!1),onInput:x[3]||(x[3]=R=>h(!0,R))},null,544),[[n.vModelText,u.value.left]]),x[8]||(x[8]=n.createTextVNode()),n.createElementVNode("div",d1,n.toDisplayString(t.separator),1),x[9]||(x[9]=n.createTextVNode()),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":x[4]||(x[4]=R=>u.value.right=R),class:"text-s",type:"text",onChange:p,onFocus:x[5]||(x[5]=R=>c.value=!0),onFocusout:x[6]||(x[6]=R=>c.value=!1),onInput:x[7]||(x[7]=R=>h(!1,R))},null,544),[[n.vModelText,u.value.right]])],16))}}),f1={class:"ui-slider__wrapper"},p1={class:"ui-slider__label-section"},h1={key:0,class:"text-s"},m1={key:1,class:"ui-slider__value-static text-s"},g1={class:"ui-slider__base"},y1={class:"ui-slider__container"},_1={class:"ui-slider__container ui-slider__container-thumb"},w1={class:"ui-slider__input-wrapper d-flex"},b1={key:0,class:"ui-slider__error"},k1=n.defineComponent({__name:"SliderRange",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=n.useSlots(),a=e,s=i,c=n.reactive({deltaValue1:0,deltaValue2:0}),d=n.ref(),u=n.ref(),p=n.ref(),h=n.ref(s.modelValue),g=n.ref(s.modelValue[0]),x=n.ref(s.modelValue[1]),R=n.computed(()=>s),T=sl(R),C=n.computed(()=>[g.value,x.value].sort((oe,de)=>oe-de).join("-")),k=n.computed(()=>s.max-s.min),S=n.computed(()=>ht((s.modelValue[0]??0)+c.deltaValue1,s.min,s.max)),v=n.computed(()=>ht((s.modelValue[1]??0)+c.deltaValue2,s.min,s.max)),I=n.computed(()=>{const oe=s.modelValue;return Array.isArray(oe)&&oe.length===2&&oe.every(de=>Number.isFinite(de))?s.error:"Expected model [number, number]"}),K=n.computed(()=>(S.value-s.min)/k.value),j=n.computed(()=>(v.value-s.min)/k.value),z=n.computed(()=>P()),W=n.computed(()=>({right:z.value[0]+"%",left:100-z.value[1]+"%"})),O=n.computed(()=>({right:Math.ceil((1-K.value)*100)+"%"})),B=n.computed(()=>({right:Math.ceil((1-j.value)*100)+"%"}));n.watch(()=>s.modelValue,oe=>{h.value=oe,g.value=+oe[0],x.value=+oe[1]},{immediate:!0}),Kn(u,oe=>{var de;at((de=n.unref(d))==null?void 0:de.getBoundingClientRect(),ae=>{const{dx:J}=oe;c.deltaValue1=J/ae.width*k.value,g.value=Z(ht((s.modelValue[0]??0)+c.deltaValue1,s.min,s.max)),h.value=[g.value,x.value].sort((Ce,Be)=>Ce-Be),oe.stop&&(L([Z(S.value),Z(v.value)]),c.deltaValue1=0)})}),Kn(p,oe=>{var de;at((de=n.unref(d))==null?void 0:de.getBoundingClientRect(),ae=>{const{dx:J}=oe;c.deltaValue2=J/ae.width*k.value,x.value=Z(ht((s.modelValue[1]??0)+c.deltaValue2,s.min,s.max)),h.value=[g.value,x.value].sort((Ce,Be)=>Ce-Be),oe.stop&&(L([Z(S.value),Z(v.value)]),c.deltaValue2=0)})});function P(){const oe=Math.ceil((1-K.value)*100),de=Math.ceil((1-j.value)*100);return[oe,de].sort((ae,J)=>ae-J)}function Z(oe){const de=ht(oe,s.min,s.max);return Math.round((de+Number.EPSILON)*(1/s.step))/(1/s.step)}function L(oe){a("update:modelValue",oe)}function H(oe,de){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(oe.code)&&oe.preventDefault();const ae=oe.code==="ArrowUp"||oe.code==="ArrowRight"?s.step*1:oe.code==="ArrowDown"||oe.code==="ArrowLeft"?s.step*-1:0,J=[...s.modelValue];J[de]=ht(J[de]+ae,s.min,s.max),L(J)}return(oe,de)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[n.createElementVNode("div",f1,[n.createElementVNode("div",p1,[oe.label?(n.openBlock(),n.createElementBlock("label",h1,[n.createElementVNode("span",null,n.toDisplayString(oe.label),1),de[3]||(de[3]=n.createTextVNode()),n.unref(t).tooltip?(n.openBlock(),n.createBlock(n.unref(Zt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(oe.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),de[4]||(de[4]=n.createTextVNode()),s.mode==="text"?(n.openBlock(),n.createElementBlock("div",m1,n.toDisplayString(C.value),1)):n.createCommentVNode("",!0)]),de[10]||(de[10]=n.createTextVNode()),n.createElementVNode("div",g1,[n.createElementVNode("div",y1,[n.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(W.value)},null,4)],512)]),de[9]||(de[9]=n.createTextVNode()),n.createElementVNode("div",_1,[s.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(T),(ae,J)=>(n.openBlock(),n.createElementBlock("div",{key:J,style:n.normalizeStyle({right:`${ae}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),de[7]||(de[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:n.normalizeStyle(O.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[0]||(de[0]=ae=>H(ae,0))},de[5]||(de[5]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),de[8]||(de[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:n.normalizeStyle(B.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[1]||(de[1]=ae=>H(ae,1))},de[6]||(de[6]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),de[11]||(de[11]=n.createTextVNode()),n.createElementVNode("div",w1,[s.mode==="input"?(n.openBlock(),n.createBlock(u1,{key:0,modelValue:h.value,"onUpdate:modelValue":de[2]||(de[2]=ae=>h.value=ae),class:"ui-focused-border",onChange:L},null,8,["modelValue"])):n.createCommentVNode("",!0)])],2),de[12]||(de[12]=n.createTextVNode()),I.value?(n.openBlock(),n.createElementBlock("div",b1,n.toDisplayString(I.value),1)):n.createCommentVNode("",!0)],2))}}),x1=n.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(i,{emit:e}){const t=e,a=i,s=n.ref(),c=n.computed(()=>a.clientHeight/(a.scrollHeight||1)),d=n.computed(()=>c.value<1),u=n.computed(()=>{const p=n.unref(c);return{top:a.scrollTop*p+"px",height:Math.floor(a.clientHeight*p)+"px"}});return Ge(s,"pointerdown",p=>{const h={clientY:p.clientY},g=Ys(document,"mousemove",x=>{const R=(x.clientY-h.clientY)/c.value;t("update:scrollTop",a.scrollTop+R),h.clientY=x.clientY});["mouseup","pointercancel"].forEach(x=>{document.addEventListener(x,g,{once:!0})})}),(p,h)=>d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"v-scroll"},[n.createElementVNode("div",{class:"v-scroll__scrollbar",style:n.normalizeStyle(u.value)},null,4)],512)):n.createCommentVNode("",!0)}}),v1=n.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(i,{emit:e}){const t=e,a=i,s=n.ref(),c=n.computed(()=>a.clientWidth/(a.scrollWidth||1)),d=n.computed(()=>c.value<1),u=n.computed(()=>{const p=n.unref(c);return{left:a.scrollLeft*p+"px",width:Math.floor(a.clientWidth*p)+"px"}});return Ge(s,"pointerdown",p=>{const h={clientX:p.clientX},g=Ys(document,"mousemove",x=>{const R=(x.clientX-h.clientX)/c.value;t("update:scrollLeft",a.scrollLeft+R),h.clientX=x.clientX});["mouseup","pointercancel"].forEach(x=>{document.addEventListener(x,g,{once:!0})})}),(p,h)=>d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"h-scroll"},[n.createElementVNode("div",{class:"h-scroll__scrollbar",style:n.normalizeStyle(u.value)},null,4)],512)):n.createCommentVNode("",!0)}}),C1={class:"ui-scrollable"},E1=n.defineComponent({__name:"Scrollable",setup(i){const e=n.ref(),t=n.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function a(u){G_(t,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const s=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,a(p)};function c(u){at(n.unref(e),p=>{p.scrollTop=u,a(p)})}function d(u){at(n.unref(e),p=>{p.scrollLeft=u,a(p)})}return fu(e,u=>{at(u,p=>a(p))}),n.onMounted(()=>{at(n.unref(e),u=>{a(u),u.addEventListener("wheel",s)})}),n.onUnmounted(()=>{at(n.unref(e),u=>u.removeEventListener("wheel",s))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",C1,[n.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:s},[n.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=n.createTextVNode()),n.createVNode(x1,{"scroll-top":t.scrollTop,"client-height":t.clientHeight,"scroll-height":t.scrollHeight,onWheel:p[0]||(p[0]=n.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":c},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=n.createTextVNode()),n.createVNode(v1,{"scroll-left":t.scrollLeft,"client-width":t.clientWidth,"scroll-width":t.scrollWidth,onWheel:p[1]||(p[1]=n.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),S1="add.svg",T1="checkmark.svg",V1="clear.svg",N1="clipboard.svg",B1="close.svg",O1="comp.svg",A1="compare.svg",R1="copy.svg",D1="edit.svg",I1="error.svg",M1="filter.svg",P1="help.svg",L1="info.svg",F1="link.svg",$1="loading.svg",z1="lock.svg",Z1="maximize.svg",U1="minimize.svg",j1="minus.svg",W1="open.svg",H1="pause.svg",q1="play.svg",G1="required.svg",K1="restart.svg",Y1="sort.svg",J1="sorter.svg",X1="stop.svg",Q1="success.svg",ex="warning.svg",tx="zip.svg",nx={add:S1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg","cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:T1,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-up":"chevron-up.svg",clear:V1,"clipboard-copied":"clipboard-copied.svg",clipboard:N1,close:B1,comp:O1,compare:A1,copy:R1,"data-dimentions":"data-dimentions.svg",delete:"delete.svg","drag-dots":"drag-dots.svg",edit:D1,error:I1,export:"export.svg","filter-2":"filter-2.svg",filter:M1,help:P1,import:"import.svg",info:L1,"link-arrow":"link-arrow.svg",link:F1,loading:$1,lock:z1,maximize:Z1,minimize:U1,minus:j1,"more-horizontal":"more-horizontal.svg",open:W1,pause:H1,play:q1,required:G1,restart:K1,"settings-2":"settings-2.svg",sort:Y1,sorter:J1,stop:X1,success:Q1,warning:ex,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:tx},rx="add.svg",ix="annotate.svg",ox="annotation.svg",ax="area.svg",sx="axes.svg",lx="bar.svg",cx="bindot.svg",dx="boxplot.svg",ux="bubble.svg",fx="canvas.svg",px="checkbox.svg",hx="checkmark.svg",mx="clipboard.svg",gx="close.svg",yx="code.svg",_x="color.svg",wx="columns.svg",bx="copy.svg",kx="cpu.svg",xx="dna.svg",vx="duplicate.svg",Cx="edit.svg",Ex="error.svg",Sx="filter.svg",Tx="generate.svg",Vx="graph.svg",Nx="heatmap.svg",Bx="help.svg",Ox="hide.svg",Ax="jitter.svg",Rx="layers.svg",Dx="learn.svg",Ix="legend.svg",Mx="line.svg",Px="linetype.svg",Lx="link.svg",Fx="loading.svg",$x="local.svg",zx="logout.svg",Zx="menu.svg",Ux="minus.svg",jx="pin.svg",Wx="position.svg",Hx="progress.svg",qx="publications.svg",Gx="restart.svg",Kx="reverse.svg",Yx="rotation.svg",Jx="save.svg",Xx="search.svg",Qx="show.svg",ev="sina.svg",tv="skatterplot.svg",nv="sort.svg",rv="statistics.svg",iv="stroke.svg",ov="success.svg",av="table.svg",sv="template.svg",lv="venn.svg",cv="violin.svg",dv="warning.svg",uv="wetlab.svg",fv={"add-layer":"add-layer.svg",add:rx,annotate:ix,annotation:ox,area:ax,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:sx,"bar-error":"bar-error.svg","bar-trend":"bar-trend.svg",bar:lx,bindot:cx,"box-dot":"box-dot.svg","boxplot-1":"boxplot-1.svg","boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:dx,bubble:ux,canvas:fx,checkbox:px,checkmark:hx,"chevron-down":"chevron-down.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:mx,close:gx,"cloud-down":"cloud-down.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-up":"cloud-up.svg","code-2":"code-2.svg",code:yx,color:_x,columns:wx,"connected-points":"connected-points.svg",copy:bx,cpu:kx,"cross-bars":"cross-bars.svg","dark-mode":"dark-mode.svg",delete:"delete.svg","dendrogram-X-1":"dendrogram-X-1.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-1":"dendrogram-Y-1.svg","dendrogram-Y":"dendrogram-Y.svg",dna:xx,"download-files":"download-files.svg",duplicate:vx,edit:Cx,"error-bar":"error-bar.svg",error:Ex,"expand-left":"expand-left.svg","expand-right":"expand-right.svg","export-2":"export-2.svg",export:"export.svg","external-link":"external-link.svg","fill-color":"fill-color.svg","filter-on":"filter-on.svg",filter:Sx,"filters-gate":"filters-gate.svg","fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type":"frame-type.svg",generate:Tx,graph:Vx,heatmap:Nx,help:Bx,hide:Ox,"import-2":"import-2.svg","import-download":"import-download.svg","info-circle-outline":"info-circle-outline.svg",jitter:Ax,layers:Rx,learn:Dx,legend:Ix,"light-mode":"light-mode.svg","line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:Mx,linetype:Px,"link-disabled":"link-disabled.svg",link:Lx,loading:Fx,local:$x,logout:zx,menu:Zx,minus:Ux,"more-horizontal":"more-horizontal.svg","outlier-shape":"outlier-shape.svg","paper-clip":"paper-clip.svg",pin:jx,position:Wx,"progress-2":"progress-2.svg",progress:Hx,publications:qx,"radio-btn":"radio-btn.svg",restart:Gx,reverse:Kx,rotation:Yx,save:Jx,search:Xx,"server-2":"server-2.svg","settings-2":"settings-2.svg",show:Qx,sina:ev,skatterplot:tv,"social-media":"social-media.svg",sort:nv,"stacked-bar":"stacked-bar.svg",statistics:rv,"strip-plot":"strip-plot.svg","stroke-non":"stroke-non.svg",stroke:iv,success:ov,"table-upload":"table-upload.svg",table:av,template:sv,"title-position":"title-position.svg","upload-files":"upload-files.svg",venn:lv,"violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:cv,warning:dv,wetlab:uv,"zoom-in":"zoom-in.svg"};function pv(){return{txtSec:{title:"Text",data:{"--txt-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Text on the colored elements"},"--txt-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary text layer"},"--txt-02":{light:[!0,!1],value:["#231842","#ADAEB8"],description:"Secondary text layer - large arrays of text"},"--txt-03":{light:[!0,!0],value:["#9D9EAE","#60616B"],description:"Tetritary text layer - hints and descriptions"},"--txt-mask":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Text mask in inputs, icons, etc."},"--txt-focus":{light:[!0,!0],value:["#07AD3E","#87E087"],description:"Colored text in active/focus elements"},"--txt-error":{light:[!0,!0],value:["#F1222F","#FF5C5C"],description:"Colored text in error elements"},"--txt-link":{light:[!0,!0],value:["#5F31CC","#9470FF"],description:"Colored text in links"}}},iconSec:{title:"Icon",data:{"--ic-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Icons on colored elements"},"--ic-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary elements"},"--ic-02":{light:[!1,!0],value:["#CFD1DB","#60616B"],description:"Secondary & tetritary elements"},"--ic-accent":{light:[!0,!1],value:["#07AD3E","#87E087"],description:"Focus/active elements"}}},borderSec:{title:"Border",data:{"--border-color-default":{light:[!0,!0],value:["#110529","#60616B"],description:"Main border for components"},"--border-color-hover":{light:[!0,!0],value:["#231842","#ADAEB8"],description:"Hover on main border"},"--border-color-focus":{light:[!1,!1],value:["#49CC49","#49CC49"],description:"Active border for components"},"--border-color-error":{light:[!1,!1],value:["#FF5C5C","#FF5C5C"],description:"Error border for components"},"--border-color-div-grey":{light:[!1,!0],value:["#E1E3EB","#232329"],description:"Divider lines low contrast"},"--border-color-div-bw":{light:[!1,!0],value:["#FFFFFF","#000000"],description:"Divider lines hight contrast"}}},btnSec:{title:"Button",data:{"--btn-accent-default":{light:[!0,!0],value:["#845CFF"," #5F31CC"],description:"Accent coloured button"},"--btn-accent-hover":{light:[!0,!0],value:["#9470FF"," #5F31CC"],description:"Hover on accent coloured button"},"--btn-accent-press":{light:[!0,!0],value:["#6F4DD6","#5F31CC"],description:"Pressed on accent coloured button"},"--btn-primary-default":{light:[!0,!0],value:["#110529","#5F31CC"],description:"Primary button"},"--btn-primary-hover":{light:[!0,!0],value:["#231842","#6D3DDB"],description:"Hover on primary button"},"--btn-primary-press":{light:[!0,!0],value:["#080214","#5328B8"],description:"Hover on primary button"},"--btn-sec-hover-white":{light:[!1,!0],value:["rgba(255, 255, 255, 0.50)","rgba(131, 131, 163, 0.16)"],description:"Hover background on transparent button"},"--btn-sec-hover-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.16)","rgba(131, 131, 163, 0.16)"],description:"Hover background on ghost button & icons"},"--btn-sec-press-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.24)","rgba(131, 131, 163, 0.24)"],description:"Hover background on ghost button & icons"},"--btn-active-select":{light:[!1,!0],value:["rgba(99, 224, 36, 0.24)","rgba(99, 224, 36, 0.24)"],description:"Fill on selected elements"},"--btn-switcher":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","#5E5E70"],description:"Gradient on active controll/switcher element"}}},disSec:{title:"Disable",data:{"--dis-00":{light:[!1,!0],value:["#FFFFFF","#65656B"],description:"Elements on dis-01, labels, texts, icons"},"--dis-01":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Buttons, borders, labels, texts, icons"}}},bgSec:{title:"Background",data:{"--bg-base-dark":{light:[!0,!0],value:["#110529","#0D0D0F"],description:"Default dark block background"},"--bg-base-light":{light:[!1,!0],value:["#F7F8FA","#0D0D0F"],description:"Default light block background"},"--bg-elevated-01":{light:[!1,!0],value:["#FFFFFF","#1B1B1F"],description:"Default block background"},"--bg-elevated-02":{light:[!1,!0],value:["#E1E3EB","#2D2D33"],description:"Secondary block background"}}},filledSec:{title:"Filled",data:{"--filled-V-BG":{light:[!1,!0],value:["#D0F0C0","rgba(66, 184, 66, 0.40)"],description:"Text background selection on V-read"},"--filled-D-BG":{light:[!1,!0],value:["#FFCECC","rgba(229, 83, 229, 0.40)"],description:"Text background selection on D-read"},"--filled-N-BG":{light:[!1,!0],value:["#FAF5AA","rgba(83, 82, 102, 0.40)"],description:"Text background selection on C/N-read"},"--filled-J-BG":{light:[!1,!0],value:["#DEDBFF","rgba(132, 92, 255, 0.40)"],description:"Text background selection on J-read"}}},notificationSec:{title:"Notification",data:{"--notification-neutral":{light:[!1,!0],value:["linear-gradient(90deg, #D6D9FF 0%, #FFF 100%)","linear-gradient(90deg, #4D4D8F 0%, #292933 100%)"],description:"Background on neutral blocks"},"--notification-success":{light:[!1,!0],value:["linear-gradient(90deg, #C9F0B6 0%, #FFF 100%)","linear-gradient(90deg, #305C3E 0%, #292933 100%)"],description:"Background on success blocks"},"--notification-warning":{light:[!1,!0],value:["linear-gradient(90deg, #FEE0A3 0%, #FFF 100%)","linear-gradient(90deg, #754F2D 0%, #292933 100%)"],description:"Background on warning blocks"},"--notification-error":{light:[!1,!0],value:["linear-gradient(90deg, #FFB8B8 0%, #FFF 100%)","linear-gradient(90deg, #8F3343 0%, #292933 100%)"],description:"Background on error blocks"}}},gradientSec:{title:"Gradient",data:{"--gradient-blue-green":{light:[!0,!0],value:["linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand dark gradient"},"--gradient-green-lime":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-violet":{light:[!1,!0],value:["linear-gradient(180deg, #ADB8FF 0%, #D6E9FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-clear":{light:[!1,!0],value:["linear-gradient(180deg, #85BEFF 0%, #CEF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-orange":{light:[!1,!0],value:["linear-gradient(180deg, #FFB766 0%, #FFEAA3 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-mint":{light:[!1,!0],value:["linear-gradient(180deg, #7DD1D1 0%, #C8FAE9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-lime":{light:[!1,!0],value:["linear-gradient(180deg, #BFE062 0%, #E4FFAD 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-rose":{light:[!1,!0],value:["linear-gradient(0deg, #FFDDD6 0%, #FF99C9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-red":{light:[!1,!0],value:["linear-gradient(0deg, #FFD5CC 0%, #FF9494 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-violet":{light:[!1,!0],value:["linear-gradient(180deg, #BCA3FF 0%, #E5E5FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"}}}}}const hv=["checkmark","import","clear","chevron-right","add","play","loading","arrow-right","clipboard","link","comp","close","restart","stop","settings-2"],mv=["paper-clip","cloud-up","success","restart","close","clipboard"],gv={allCssVariables:pv(),icons16:nx,icons24:fv},yv={class:"block__not-found"},_v=n.defineComponent({__name:"NotFound",setup(i){const t=Es().useApp(),a=()=>{t.updateNavigationState(s=>{s.href="/"})};return(s,c)=>(n.openBlock(),n.createElementBlock("div",yv,[n.createElementVNode("h1",null,"Not found route: "+n.toDisplayString(n.unref(t).navigationState.href),1),n.createVNode(n.unref(Hs),{onClick:n.withModifiers(a,["stop"])},{default:n.withCtx(()=>c[0]||(c[0]=[n.createTextVNode("Return to main page")])),_:1})]))}}),ll=(i,e)=>{const t=i.__vccOpts||i;for(const[a,s]of e)t[a]=s;return t},wv={},bv={class:"block__loader-page"};function kv(i,e){return n.openBlock(),n.createElementBlock("div",bv,e[0]||(e[0]=[n.createElementVNode("div",{class:"loader-container"},[n.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const xv=ll(wv,[["render",kv]]),vv={class:"block block__layout"},Cv={key:0},Ev=n.defineComponent({__name:"BlockLayout",setup(i){const e=Es(),t=c=>{try{return new URL(c,"http://dummy").pathname}catch{console.error("Invalid href",c);return}},a=n.computed(()=>e.loaded?e.useApp().href:void 0),s=n.computed(()=>{if(e.loaded){const c=e.useApp(),d=t(c.navigationState.href);return d?c.routes[d]:void 0}});return(c,d)=>(n.openBlock(),n.createElementBlock("div",vv,[n.unref(e).error?(n.openBlock(),n.createElementBlock("div",Cv,n.toDisplayString(n.unref(e).error),1)):n.unref(e).loaded?s.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.value),{key:a.value})):(n.openBlock(),n.createBlock(_v,{key:3})):(n.openBlock(),n.createBlock(xv,{key:1},{default:n.withCtx(()=>d[0]||(d[0]=[n.createTextVNode("Loading...")])),_:1}))]))}});var da={exports:{}};/**
|
|
21
|
+
)`}function c(){const u=i.value;if(!u)return;const p=[a(u),s(u)].filter(h=>h!==null);u.style.setProperty("-webkit-mask-image",p.join(",")),u.style.setProperty("mask-image",p.join(",")),p.length>1&&(u.style.setProperty("-webkit-mask-composite","source-in"),u.style.setProperty("mask-composite","source-in"))}const d=Ms(c);n.onMounted(c),Ge(window,"scroll",d,!0),Ge(window,"resize",d,!0)}function fu(i,e){Fd(()=>{at(n.unref(i),t=>{$d(t,()=>e(t))})}),n.onUnmounted(()=>{at(n.unref(i),t=>{zd(t)})})}const nr={item:"sortable__item",animate:"sortable__animate"},co=i=>i.getBoundingClientRect().y,pu=i=>{const{y:e,height:t}=i.getBoundingClientRect();return e+Math.ceil(t/2)},qk=i=>{const{y:e,height:t}=i.getBoundingClientRect();return e+t};function Gk(i,e){const t={item:void 0,options(){var T;return[...((T=i.value)==null?void 0:T.children)??[]]}},a=n.computed(()=>t.options()),s=e.shakeBuffer??10,c=e.reorderDelay??100;function d(T){const C=e.handle?this.querySelector(e.handle):null;C&&!C.contains(T.target)||(this.classList.remove(nr.animate),this.classList.add(nr.item),t.item={el:this,y:T.y,dy:0,orderChanged:!1})}function u(T){const C=t.options();return C.slice(0,C.indexOf(T))}function p(T){const C=t.options();return C.slice(C.indexOf(T)+1)}function h(T,C){const k=t.options().filter(v=>v!==C),S=k.indexOf(T);return k.splice(S,0,C),k}function g(T,C){const k=t.options().filter(v=>v!==C),S=k.indexOf(T);return k.splice(S+1,0,C),k}function x(T,C){T.dy=C-T.y,T.el.style.setProperty("transform",`translateY(${T.dy}px)`)}function R(T){var C;if(!t.item)return;const{el:k}=t.item;if(!k.isConnected){t.item=void 0;return}const S=T.map(W=>co(W)),v=co(k);(C=i.value)==null||C.replaceChildren(...T);const I=co(k),K=T.map(W=>co(W)),j=[];for(let W=0;W<K.length;W++){const O=T[W];if(O===t.item.el)continue;const B=K[W],P=S[W]-B;O.style.transform=`translateY(${P}px)`,j.push(O)}const z=I-v;t.item.y=t.item.y+z,t.item.dy=t.item.dy-z,t.item.orderChanged=!0,t.item.el.style.setProperty("transform",`translateY(${t.item.dy}px)`),j.forEach(W=>W.classList.remove(nr.animate)),requestAnimationFrame(function(){j.forEach(W=>{W.classList.add(nr.animate),W.style.transform="",W.addEventListener("transitionend",()=>{W.classList.remove(nr.animate)})})})}Ge(window,"mousemove",T=>{if(!t.item)return;const{el:C}=t.item;x(t.item,T.y);const k=co(t.item.el),S=qk(t.item.el),v=u(C),I=p(C);v.forEach(K=>{const j=pu(K);k+s<j&&R(h(K,C))}),I.forEach(K=>{const j=pu(K);S-s>j&&R(g(K,C))})}),Ge(window,"mouseup",()=>{if(!t.item)return;const{el:T,orderChanged:C}=t.item;T.classList.add(nr.animate),T.style.removeProperty("transform"),T.addEventListener("transitionend",()=>{T.classList.remove(nr.animate,nr.item)}),setTimeout(()=>{if(!C)return;const k=t.options().map(v=>Number(v.getAttribute("data-index"))),S=i.value;if(S){for(const v of t.options())S.removeChild(v);a.value.forEach(v=>{S.appendChild(v)})}e.onChange(k)},c),t.item=void 0}),n.watchEffect(()=>{a.value.forEach((T,C)=>{T.removeEventListener("mousedown",d),T.addEventListener("mousedown",d),T.setAttribute("data-index",String(C))})})}function Kk(i,e){let t;n.onMounted(()=>{t=setInterval(i,e)}),n.onUnmounted(()=>clearInterval(t))}function Yk(i,e,t){const a=n.reactive({data:Os.deepClone(e(i.value)),changed:!1});return n.watch(()=>a.data,s=>{a.changed?t(Os.deepClone(s)):a.changed=!0},{deep:!0}),n.watch(i,s=>{Object.assign(a,{data:Os.deepClone(e(s)),changed:!1})},{deep:!0,immediate:!0}),a}function Jk(i){const e=n.reactive({isLoading:!1,result:void 0,error:void 0,async run(...t){this.isLoading=!0,this.error=void 0;try{this.result=await i(...t)}catch(a){this.error=a}finally{this.isLoading=!1}},debounce(t,a=1e3){return wd(()=>{const s=t();this.run(...s).catch(console.error)},a)}});return e.run=e.run.bind(e),e}function Xk(i,e){function t(d,u){const p=n.unref(i);if(!p)return;const h=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",h),e(u)}function a(d){const u=p=>t(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=n.unref(i);document.removeEventListener("mousemove",u),p&&(p.style.setProperty("transition","all .3s ease-in-out"),p.style.removeProperty("transform"),p.addEventListener("transitionend",()=>{p.style.removeProperty("transition")}))},{once:!0})}function s(){var d;(d=n.unref(i))==null||d.addEventListener("mousedown",a)}function c(){var d;(d=n.unref(i))==null||d.removeEventListener("mousedown",a)}n.onMounted(s),n.onUnmounted(c)}const Qk={class:"ui-slider__wrapper"},e1={class:"ui-slider__label-section"},t1={key:0,class:"text-s"},n1={class:"ui-slider__base"},r1={class:"ui-slider__container"},i1={class:"ui-slider__container ui-slider__container-thumb"},o1=["data-percent"],a1=["data-percent"],s1=["data-percent"],l1={key:0,class:"ui-slider__error"},c1=n.defineComponent({__name:"SliderRangeTriple",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:"%"},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=n.useSlots(),a=e,s=i,c=n.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=n.ref(),u=n.ref(),p=n.ref(),h=n.ref(),g=n.computed(()=>s.max-s.min),x=n.computed(()=>s),R=sl(x),T=n.computed(()=>ht((s.modelValue[0]??0)+c.deltaValue1,s.min,s.max)),C=n.computed(()=>ht((s.modelValue[1]??0)+c.deltaValue2,s.min,s.max)),k=n.computed(()=>ht((s.modelValue[2]??0)+c.deltaValue3,s.min,s.max)),S=n.computed(()=>{const ae=s.modelValue;if(!(Array.isArray(ae)&&ae.length===3&&ae.every(Ce=>Number.isFinite(Ce))))return"Expected model [number, number, number]";const J=[];return[...s.modelValue].forEach(Ce=>{Ce>s.max&&J.push(`Max model value must be lower than max props ${s.max}.`),Ce<s.min&&J.push("Min model value must be greater than max props.")}),J.length>0?J.join(" "):s.error}),v=n.computed(()=>(T.value-s.min)/g.value),I=n.computed(()=>(C.value-s.min)/g.value),K=n.computed(()=>(k.value-s.min)/g.value),j=n.computed(()=>Z()),z=n.computed(()=>({right:j.value[0]+"%",left:100-j.value[2]+"%"})),W=n.computed(()=>({right:Math.ceil((1-v.value)*100)+"%"})),O=n.computed(()=>({right:Math.ceil((1-I.value)*100)+"%"})),B=n.computed(()=>({right:Math.ceil((1-K.value)*100)+"%"}));Kn(u,ae=>{var J;at((J=n.unref(d))==null?void 0:J.getBoundingClientRect(),Ce=>{const{dx:Be}=ae;c.deltaValue1=Be/Ce.width*g.value,u.value&&P(u.value,s.modelValue[0],c.deltaValue1),ae.stop&&(H([L(T.value),L(C.value),L(k.value)]),c.deltaValue1=0)})}),Kn(p,ae=>{var J;at((J=n.unref(d))==null?void 0:J.getBoundingClientRect(),Ce=>{const{dx:Be}=ae;c.deltaValue2=Be/Ce.width*g.value,p.value&&P(p.value,s.modelValue[1],c.deltaValue2),ae.stop&&(H([L(T.value),L(C.value),L(k.value)]),c.deltaValue2=0)})}),Kn(h,ae=>{var J;at((J=n.unref(d))==null?void 0:J.getBoundingClientRect(),Ce=>{const{dx:Be}=ae;c.deltaValue3=Be/Ce.width*g.value,h.value&&P(h.value,s.modelValue[2],c.deltaValue3),ae.stop&&(H([L(T.value),L(C.value),L(k.value)]),c.deltaValue3=0)})});function P(ae,J,Ce){const Be=L(ht((J??0)+Ce,s.min,s.max));ae.dataset.percent=`${Be}${s.measure}`,oe()}function Z(){const ae=Math.ceil((1-v.value)*100),J=Math.ceil((1-I.value)*100),Ce=Math.ceil((1-K.value)*100);return[ae,J,Ce].sort((Be,Ar)=>Be-Ar)}function L(ae){const J=ht(ae,s.min,s.max);return Math.round((J+Number.EPSILON)*(1/s.step))/(1/s.step)}function H(ae){a("update:modelValue",ae)}function oe(){const ae=Number(W.value.right.substring(0,W.value.right.length-1)),J=Number(O.value.right.substring(0,O.value.right.length-1)),Ce=Number(B.value.right.substring(0,B.value.right.length-1)),Be=[{r:ae,th:u},{r:J,th:p},{r:Ce,th:h}].sort((Ar,or)=>Ar.r-or.r);Be[0].th.value&&(Be[0].th.value.dataset.hint="high"),Be[1].th.value&&(Be[1].th.value.dataset.hint="mid"),Be[2].th.value&&(Be[2].th.value.dataset.hint="low")}function de(ae,J){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(ae.code)&&ae.preventDefault();const Ce=ae.code==="ArrowUp"||ae.code==="ArrowRight"?s.step*1:ae.code==="ArrowDown"||ae.code==="ArrowLeft"?s.step*-1:0,Be=[...s.modelValue];Be[J]=ht(Be[J]+Ce,s.min,s.max),H(Be),oe()}return n.onMounted(()=>{oe()}),(ae,J)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[n.createElementVNode("div",Qk,[n.createElementVNode("div",e1,[ae.label?(n.openBlock(),n.createElementBlock("label",t1,[n.createElementVNode("span",null,n.toDisplayString(ae.label),1),J[3]||(J[3]=n.createTextVNode()),n.unref(t).tooltip?(n.openBlock(),n.createBlock(n.unref(Zt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(ae.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),J[11]||(J[11]=n.createTextVNode()),n.createElementVNode("div",n1,[n.createElementVNode("div",r1,[n.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(z.value)},null,4)],512)]),J[10]||(J[10]=n.createTextVNode()),n.createElementVNode("div",i1,[s.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(R),(Ce,Be)=>(n.openBlock(),n.createElementBlock("div",{key:Be,style:n.normalizeStyle({right:`${Ce}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),J[7]||(J[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:n.normalizeStyle(W.value),"data-percent":s.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:J[0]||(J[0]=Ce=>de(Ce,0))},J[4]||(J[4]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,o1),J[8]||(J[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:n.normalizeStyle(O.value),"data-percent":s.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:J[1]||(J[1]=Ce=>de(Ce,1))},J[5]||(J[5]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,a1),J[9]||(J[9]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef3",ref:h,style:n.normalizeStyle(B.value),"data-percent":s.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:J[2]||(J[2]=Ce=>de(Ce,2))},J[6]||(J[6]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,s1)])])]),J[12]||(J[12]=n.createTextVNode()),J[13]||(J[13]=n.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),J[14]||(J[14]=n.createTextVNode()),S.value?(n.openBlock(),n.createElementBlock("div",l1,n.toDisplayString(S.value),1)):n.createCommentVNode("",!0)],2))}}),d1={class:"ui-input-range__separator"},u1=n.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(i,{emit:e}){const t=i,a=e,s=n.reactive({left:t.modelValue[0],right:t.modelValue[1]}),c=n.ref(!1),d=n.computed(()=>(c.value,"ui-input-range-focused")),u=n.computed({get(){return{left:Math.min(...t.modelValue),right:Math.max(...t.modelValue)}},set(){}});n.watch(()=>u.value,g=>(s.left=g.left)&&(s.right=g.right));function p(){a("update:modelValue",[+s.left,+s.right]),a("change",[+s.left,+s.right])}function h(g,x){const R=x.target.value;/^[0-9]{0,2}$/.test(R)?g?s.left=+R:s.right=+R:g?s.left=+R.slice(0,R.length-1):s.right=+R.slice(0,R.length-1)}return(g,x)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({class:[d.value,"ui-input-range"]},g.$attrs),[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=R=>u.value.left=R),class:"text-s",type:"text",onChange:p,onFocus:x[1]||(x[1]=R=>c.value=!0),onFocusout:x[2]||(x[2]=R=>c.value=!1),onInput:x[3]||(x[3]=R=>h(!0,R))},null,544),[[n.vModelText,u.value.left]]),x[8]||(x[8]=n.createTextVNode()),n.createElementVNode("div",d1,n.toDisplayString(t.separator),1),x[9]||(x[9]=n.createTextVNode()),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":x[4]||(x[4]=R=>u.value.right=R),class:"text-s",type:"text",onChange:p,onFocus:x[5]||(x[5]=R=>c.value=!0),onFocusout:x[6]||(x[6]=R=>c.value=!1),onInput:x[7]||(x[7]=R=>h(!1,R))},null,544),[[n.vModelText,u.value.right]])],16))}}),f1={class:"ui-slider__wrapper"},p1={class:"ui-slider__label-section"},h1={key:0,class:"text-s"},m1={key:1,class:"ui-slider__value-static text-s"},g1={class:"ui-slider__base"},y1={class:"ui-slider__container"},_1={class:"ui-slider__container ui-slider__container-thumb"},w1={class:"ui-slider__input-wrapper d-flex"},b1={key:0,class:"ui-slider__error"},k1=n.defineComponent({__name:"SliderRange",props:{modelValue:{},min:{default:0},max:{},step:{default:1},label:{default:void 0},helper:{default:void 0},error:{default:void 0},mode:{default:"text"},measure:{default:""},breakpoints:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=n.useSlots(),a=e,s=i,c=n.reactive({deltaValue1:0,deltaValue2:0}),d=n.ref(),u=n.ref(),p=n.ref(),h=n.ref(s.modelValue),g=n.ref(s.modelValue[0]),x=n.ref(s.modelValue[1]),R=n.computed(()=>s),T=sl(R),C=n.computed(()=>[g.value,x.value].sort((oe,de)=>oe-de).join("-")),k=n.computed(()=>s.max-s.min),S=n.computed(()=>ht((s.modelValue[0]??0)+c.deltaValue1,s.min,s.max)),v=n.computed(()=>ht((s.modelValue[1]??0)+c.deltaValue2,s.min,s.max)),I=n.computed(()=>{const oe=s.modelValue;return Array.isArray(oe)&&oe.length===2&&oe.every(de=>Number.isFinite(de))?s.error:"Expected model [number, number]"}),K=n.computed(()=>(S.value-s.min)/k.value),j=n.computed(()=>(v.value-s.min)/k.value),z=n.computed(()=>P()),W=n.computed(()=>({right:z.value[0]+"%",left:100-z.value[1]+"%"})),O=n.computed(()=>({right:Math.ceil((1-K.value)*100)+"%"})),B=n.computed(()=>({right:Math.ceil((1-j.value)*100)+"%"}));n.watch(()=>s.modelValue,oe=>{h.value=oe,g.value=+oe[0],x.value=+oe[1]},{immediate:!0}),Kn(u,oe=>{var de;at((de=n.unref(d))==null?void 0:de.getBoundingClientRect(),ae=>{const{dx:J}=oe;c.deltaValue1=J/ae.width*k.value,g.value=Z(ht((s.modelValue[0]??0)+c.deltaValue1,s.min,s.max)),h.value=[g.value,x.value].sort((Ce,Be)=>Ce-Be),oe.stop&&(L([Z(S.value),Z(v.value)]),c.deltaValue1=0)})}),Kn(p,oe=>{var de;at((de=n.unref(d))==null?void 0:de.getBoundingClientRect(),ae=>{const{dx:J}=oe;c.deltaValue2=J/ae.width*k.value,x.value=Z(ht((s.modelValue[1]??0)+c.deltaValue2,s.min,s.max)),h.value=[g.value,x.value].sort((Ce,Be)=>Ce-Be),oe.stop&&(L([Z(S.value),Z(v.value)]),c.deltaValue2=0)})});function P(){const oe=Math.ceil((1-K.value)*100),de=Math.ceil((1-j.value)*100);return[oe,de].sort((ae,J)=>ae-J)}function Z(oe){const de=ht(oe,s.min,s.max);return Math.round((de+Number.EPSILON)*(1/s.step))/(1/s.step)}function L(oe){a("update:modelValue",oe)}function H(oe,de){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(oe.code)&&oe.preventDefault();const ae=oe.code==="ArrowUp"||oe.code==="ArrowRight"?s.step*1:oe.code==="ArrowDown"||oe.code==="ArrowLeft"?s.step*-1:0,J=[...s.modelValue];J[de]=ht(J[de]+ae,s.min,s.max),L(J)}return(oe,de)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([s.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[n.createElementVNode("div",{class:n.normalizeClass([`ui-slider__mode-${s.mode}`,"ui-slider"])},[n.createElementVNode("div",f1,[n.createElementVNode("div",p1,[oe.label?(n.openBlock(),n.createElementBlock("label",h1,[n.createElementVNode("span",null,n.toDisplayString(oe.label),1),de[3]||(de[3]=n.createTextVNode()),n.unref(t).tooltip?(n.openBlock(),n.createBlock(n.unref(Zt),{key:0,class:"info",position:"top"},{tooltip:n.withCtx(()=>[n.renderSlot(oe.$slots,"tooltip")]),_:3})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),de[4]||(de[4]=n.createTextVNode()),s.mode==="text"?(n.openBlock(),n.createElementBlock("div",m1,n.toDisplayString(C.value),1)):n.createCommentVNode("",!0)]),de[10]||(de[10]=n.createTextVNode()),n.createElementVNode("div",g1,[n.createElementVNode("div",y1,[n.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[n.createElementVNode("div",{class:"ui-slider__progress",style:n.normalizeStyle(W.value)},null,4)],512)]),de[9]||(de[9]=n.createTextVNode()),n.createElementVNode("div",_1,[s.breakpoints?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(T),(ae,J)=>(n.openBlock(),n.createElementBlock("div",{key:J,style:n.normalizeStyle({right:`${ae}%`}),class:"ui-slider__thumb-step"},null,4))),128)):n.createCommentVNode("",!0),de[7]||(de[7]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:n.normalizeStyle(O.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[0]||(de[0]=ae=>H(ae,0))},de[5]||(de[5]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),de[8]||(de[8]=n.createTextVNode()),n.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:n.normalizeStyle(B.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[1]||(de[1]=ae=>H(ae,1))},de[6]||(de[6]=[n.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),de[11]||(de[11]=n.createTextVNode()),n.createElementVNode("div",w1,[s.mode==="input"?(n.openBlock(),n.createBlock(u1,{key:0,modelValue:h.value,"onUpdate:modelValue":de[2]||(de[2]=ae=>h.value=ae),class:"ui-focused-border",onChange:L},null,8,["modelValue"])):n.createCommentVNode("",!0)])],2),de[12]||(de[12]=n.createTextVNode()),I.value?(n.openBlock(),n.createElementBlock("div",b1,n.toDisplayString(I.value),1)):n.createCommentVNode("",!0)],2))}}),x1=n.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(i,{emit:e}){const t=e,a=i,s=n.ref(),c=n.computed(()=>a.clientHeight/(a.scrollHeight||1)),d=n.computed(()=>c.value<1),u=n.computed(()=>{const p=n.unref(c);return{top:a.scrollTop*p+"px",height:Math.floor(a.clientHeight*p)+"px"}});return Ge(s,"pointerdown",p=>{const h={clientY:p.clientY},g=Ys(document,"mousemove",x=>{const R=(x.clientY-h.clientY)/c.value;t("update:scrollTop",a.scrollTop+R),h.clientY=x.clientY});["mouseup","pointercancel"].forEach(x=>{document.addEventListener(x,g,{once:!0})})}),(p,h)=>d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"v-scroll"},[n.createElementVNode("div",{class:"v-scroll__scrollbar",style:n.normalizeStyle(u.value)},null,4)],512)):n.createCommentVNode("",!0)}}),v1=n.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(i,{emit:e}){const t=e,a=i,s=n.ref(),c=n.computed(()=>a.clientWidth/(a.scrollWidth||1)),d=n.computed(()=>c.value<1),u=n.computed(()=>{const p=n.unref(c);return{left:a.scrollLeft*p+"px",width:Math.floor(a.clientWidth*p)+"px"}});return Ge(s,"pointerdown",p=>{const h={clientX:p.clientX},g=Ys(document,"mousemove",x=>{const R=(x.clientX-h.clientX)/c.value;t("update:scrollLeft",a.scrollLeft+R),h.clientX=x.clientX});["mouseup","pointercancel"].forEach(x=>{document.addEventListener(x,g,{once:!0})})}),(p,h)=>d.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:s,class:"h-scroll"},[n.createElementVNode("div",{class:"h-scroll__scrollbar",style:n.normalizeStyle(u.value)},null,4)],512)):n.createCommentVNode("",!0)}}),C1={class:"ui-scrollable"},E1=n.defineComponent({__name:"Scrollable",setup(i){const e=n.ref(),t=n.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function a(u){G_(t,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const s=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,a(p)};function c(u){at(n.unref(e),p=>{p.scrollTop=u,a(p)})}function d(u){at(n.unref(e),p=>{p.scrollLeft=u,a(p)})}return fu(e,u=>{at(u,p=>a(p))}),n.onMounted(()=>{at(n.unref(e),u=>{a(u),u.addEventListener("wheel",s)})}),n.onUnmounted(()=>{at(n.unref(e),u=>u.removeEventListener("wheel",s))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",C1,[n.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:s},[n.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=n.createTextVNode()),n.createVNode(x1,{"scroll-top":t.scrollTop,"client-height":t.clientHeight,"scroll-height":t.scrollHeight,onWheel:p[0]||(p[0]=n.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":c},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=n.createTextVNode()),n.createVNode(v1,{"scroll-left":t.scrollLeft,"client-width":t.clientWidth,"scroll-width":t.scrollWidth,onWheel:p[1]||(p[1]=n.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),S1="add.svg",T1="checkmark.svg",V1="clear.svg",N1="clipboard.svg",B1="close.svg",O1="comp.svg",A1="compare.svg",R1="copy.svg",D1="edit.svg",I1="error.svg",M1="filter.svg",P1="help.svg",L1="info.svg",F1="link.svg",$1="loading.svg",z1="lock.svg",Z1="maximize.svg",U1="minimize.svg",j1="minus.svg",W1="open.svg",H1="pause.svg",q1="play.svg",G1="required.svg",K1="restart.svg",Y1="sort.svg",J1="sorter.svg",X1="stop.svg",Q1="success.svg",ex="warning.svg",tx="zip.svg",nx={add:S1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg","cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:T1,"chevron-down":"chevron-down.svg","chevron-first":"chevron-first.svg","chevron-last":"chevron-last.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-up":"chevron-up.svg",clear:V1,"clipboard-copied":"clipboard-copied.svg",clipboard:N1,close:B1,comp:O1,compare:A1,copy:R1,"data-dimentions":"data-dimentions.svg",delete:"delete.svg","drag-dots":"drag-dots.svg",edit:D1,error:I1,export:"export.svg","filter-2":"filter-2.svg",filter:M1,help:P1,import:"import.svg",info:L1,"link-arrow":"link-arrow.svg",link:F1,loading:$1,lock:z1,maximize:Z1,minimize:U1,minus:j1,"more-horizontal":"more-horizontal.svg",open:W1,pause:H1,play:q1,required:G1,restart:K1,"settings-2":"settings-2.svg",sort:Y1,sorter:J1,stop:X1,success:Q1,warning:ex,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:tx},rx="add.svg",ix="annotate.svg",ox="annotation.svg",ax="area.svg",sx="axes.svg",lx="bar.svg",cx="bindot.svg",dx="boxplot.svg",ux="bubble.svg",fx="canvas.svg",px="checkbox.svg",hx="checkmark.svg",mx="clipboard.svg",gx="close.svg",yx="code.svg",_x="color.svg",wx="columns.svg",bx="copy.svg",kx="cpu.svg",xx="dna.svg",vx="duplicate.svg",Cx="edit.svg",Ex="error.svg",Sx="filter.svg",Tx="generate.svg",Vx="graph.svg",Nx="heatmap.svg",Bx="help.svg",Ox="hide.svg",Ax="jitter.svg",Rx="layers.svg",Dx="learn.svg",Ix="legend.svg",Mx="line.svg",Px="linetype.svg",Lx="link.svg",Fx="loading.svg",$x="local.svg",zx="logout.svg",Zx="menu.svg",Ux="minus.svg",jx="pin.svg",Wx="position.svg",Hx="progress.svg",qx="publications.svg",Gx="restart.svg",Kx="reverse.svg",Yx="rotation.svg",Jx="save.svg",Xx="search.svg",Qx="show.svg",ev="sina.svg",tv="skatterplot.svg",nv="sort.svg",rv="statistics.svg",iv="stroke.svg",ov="success.svg",av="table.svg",sv="template.svg",lv="venn.svg",cv="violin.svg",dv="warning.svg",uv="wetlab.svg",fv={"add-layer":"add-layer.svg",add:rx,annotate:ix,annotation:ox,area:ax,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:sx,"bar-error":"bar-error.svg","bar-trend":"bar-trend.svg",bar:lx,bindot:cx,"box-dot":"box-dot.svg","boxplot-1":"boxplot-1.svg","boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:dx,bubble:ux,canvas:fx,checkbox:px,checkmark:hx,"chevron-down":"chevron-down.svg","chevron-left":"chevron-left.svg","chevron-right":"chevron-right.svg","chevron-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:mx,close:gx,"cloud-down":"cloud-down.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-up":"cloud-up.svg","code-2":"code-2.svg",code:yx,color:_x,columns:wx,"connected-points":"connected-points.svg",copy:bx,cpu:kx,"cross-bars":"cross-bars.svg","dark-mode":"dark-mode.svg",delete:"delete.svg","dendrogram-X-1":"dendrogram-X-1.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-1":"dendrogram-Y-1.svg","dendrogram-Y":"dendrogram-Y.svg",dna:xx,"download-files":"download-files.svg",duplicate:vx,edit:Cx,"error-bar":"error-bar.svg",error:Ex,"expand-left":"expand-left.svg","expand-right":"expand-right.svg","export-2":"export-2.svg",export:"export.svg","external-link":"external-link.svg","fill-color":"fill-color.svg","filter-on":"filter-on.svg",filter:Sx,"filters-gate":"filters-gate.svg","fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type":"frame-type.svg",generate:Tx,graph:Vx,heatmap:Nx,help:Bx,hide:Ox,"import-2":"import-2.svg","import-download":"import-download.svg","info-circle-outline":"info-circle-outline.svg",jitter:Ax,layers:Rx,learn:Dx,legend:Ix,"light-mode":"light-mode.svg","line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:Mx,linetype:Px,"link-disabled":"link-disabled.svg",link:Lx,loading:Fx,local:$x,logout:zx,menu:Zx,minus:Ux,"more-horizontal":"more-horizontal.svg","outlier-shape":"outlier-shape.svg","paper-clip":"paper-clip.svg",pin:jx,position:Wx,"progress-2":"progress-2.svg",progress:Hx,publications:qx,"radio-btn":"radio-btn.svg",restart:Gx,reverse:Kx,rotation:Yx,save:Jx,search:Xx,"server-2":"server-2.svg","settings-2":"settings-2.svg",show:Qx,sina:ev,skatterplot:tv,"social-media":"social-media.svg",sort:nv,"stacked-bar":"stacked-bar.svg",statistics:rv,"strip-plot":"strip-plot.svg","stroke-non":"stroke-non.svg",stroke:iv,success:ov,"table-upload":"table-upload.svg",table:av,template:sv,"title-position":"title-position.svg","upload-files":"upload-files.svg",venn:lv,"violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:cv,warning:dv,wetlab:uv,"zoom-in":"zoom-in.svg"};function pv(){return{txtSec:{title:"Text",data:{"--txt-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Text on the colored elements"},"--txt-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary text layer"},"--txt-02":{light:[!0,!1],value:["#231842","#ADAEB8"],description:"Secondary text layer - large arrays of text"},"--txt-03":{light:[!0,!0],value:["#9D9EAE","#60616B"],description:"Tetritary text layer - hints and descriptions"},"--txt-mask":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Text mask in inputs, icons, etc."},"--txt-focus":{light:[!0,!0],value:["#07AD3E","#87E087"],description:"Colored text in active/focus elements"},"--txt-error":{light:[!0,!0],value:["#F1222F","#FF5C5C"],description:"Colored text in error elements"},"--txt-link":{light:[!0,!0],value:["#5F31CC","#9470FF"],description:"Colored text in links"}}},iconSec:{title:"Icon",data:{"--ic-00":{light:[!1,!1],value:["#FFFFFF","#FFFFFF"],description:"Icons on colored elements"},"--ic-01":{light:[!0,!1],value:["#110529","#FFFFFF"],description:"Primary elements"},"--ic-02":{light:[!1,!0],value:["#CFD1DB","#60616B"],description:"Secondary & tetritary elements"},"--ic-accent":{light:[!0,!1],value:["#07AD3E","#87E087"],description:"Focus/active elements"}}},borderSec:{title:"Border",data:{"--border-color-default":{light:[!0,!0],value:["#110529","#60616B"],description:"Main border for components"},"--border-color-hover":{light:[!0,!0],value:["#231842","#ADAEB8"],description:"Hover on main border"},"--border-color-focus":{light:[!1,!1],value:["#49CC49","#49CC49"],description:"Active border for components"},"--border-color-error":{light:[!1,!1],value:["#FF5C5C","#FF5C5C"],description:"Error border for components"},"--border-color-div-grey":{light:[!1,!0],value:["#E1E3EB","#232329"],description:"Divider lines low contrast"},"--border-color-div-bw":{light:[!1,!0],value:["#FFFFFF","#000000"],description:"Divider lines hight contrast"}}},btnSec:{title:"Button",data:{"--btn-accent-default":{light:[!0,!0],value:["#845CFF"," #5F31CC"],description:"Accent coloured button"},"--btn-accent-hover":{light:[!0,!0],value:["#9470FF"," #5F31CC"],description:"Hover on accent coloured button"},"--btn-accent-press":{light:[!0,!0],value:["#6F4DD6","#5F31CC"],description:"Pressed on accent coloured button"},"--btn-primary-default":{light:[!0,!0],value:["#110529","#5F31CC"],description:"Primary button"},"--btn-primary-hover":{light:[!0,!0],value:["#231842","#6D3DDB"],description:"Hover on primary button"},"--btn-primary-press":{light:[!0,!0],value:["#080214","#5328B8"],description:"Hover on primary button"},"--btn-sec-hover-white":{light:[!1,!0],value:["rgba(255, 255, 255, 0.50)","rgba(131, 131, 163, 0.16)"],description:"Hover background on transparent button"},"--btn-sec-hover-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.16)","rgba(131, 131, 163, 0.16)"],description:"Hover background on ghost button & icons"},"--btn-sec-press-grey":{light:[!1,!0],value:["rgba(155, 171, 204, 0.24)","rgba(131, 131, 163, 0.24)"],description:"Hover background on ghost button & icons"},"--btn-active-select":{light:[!1,!0],value:["rgba(99, 224, 36, 0.24)","rgba(99, 224, 36, 0.24)"],description:"Fill on selected elements"},"--btn-switcher":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","#5E5E70"],description:"Gradient on active controll/switcher element"}}},disSec:{title:"Disable",data:{"--dis-00":{light:[!1,!0],value:["#FFFFFF","#65656B"],description:"Elements on dis-01, labels, texts, icons"},"--dis-01":{light:[!1,!0],value:["#CFD1DB","#3D3D42"],description:"Buttons, borders, labels, texts, icons"}}},bgSec:{title:"Background",data:{"--bg-base-dark":{light:[!0,!0],value:["#110529","#0D0D0F"],description:"Default dark block background"},"--bg-base-light":{light:[!1,!0],value:["#F7F8FA","#0D0D0F"],description:"Default light block background"},"--bg-elevated-01":{light:[!1,!0],value:["#FFFFFF","#1B1B1F"],description:"Default block background"},"--bg-elevated-02":{light:[!1,!0],value:["#E1E3EB","#2D2D33"],description:"Secondary block background"}}},filledSec:{title:"Filled",data:{"--filled-V-BG":{light:[!1,!0],value:["#D0F0C0","rgba(66, 184, 66, 0.40)"],description:"Text background selection on V-read"},"--filled-D-BG":{light:[!1,!0],value:["#FFCECC","rgba(229, 83, 229, 0.40)"],description:"Text background selection on D-read"},"--filled-N-BG":{light:[!1,!0],value:["#FAF5AA","rgba(83, 82, 102, 0.40)"],description:"Text background selection on C/N-read"},"--filled-J-BG":{light:[!1,!0],value:["#DEDBFF","rgba(132, 92, 255, 0.40)"],description:"Text background selection on J-read"}}},notificationSec:{title:"Notification",data:{"--notification-neutral":{light:[!1,!0],value:["linear-gradient(90deg, #D6D9FF 0%, #FFF 100%)","linear-gradient(90deg, #4D4D8F 0%, #292933 100%)"],description:"Background on neutral blocks"},"--notification-success":{light:[!1,!0],value:["linear-gradient(90deg, #C9F0B6 0%, #FFF 100%)","linear-gradient(90deg, #305C3E 0%, #292933 100%)"],description:"Background on success blocks"},"--notification-warning":{light:[!1,!0],value:["linear-gradient(90deg, #FEE0A3 0%, #FFF 100%)","linear-gradient(90deg, #754F2D 0%, #292933 100%)"],description:"Background on warning blocks"},"--notification-error":{light:[!1,!0],value:["linear-gradient(90deg, #FFB8B8 0%, #FFF 100%)","linear-gradient(90deg, #8F3343 0%, #292933 100%)"],description:"Background on error blocks"}}},gradientSec:{title:"Gradient",data:{"--gradient-blue-green":{light:[!0,!0],value:["linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand dark gradient"},"--gradient-green-lime":{light:[!1,!0],value:["linear-gradient(180deg, #A1E59C 0%, #D0F5B0 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-violet":{light:[!1,!0],value:["linear-gradient(180deg, #ADB8FF 0%, #D6E9FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Main brand light gradient"},"--gradient-blue-clear":{light:[!1,!0],value:["linear-gradient(180deg, #85BEFF 0%, #CEF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-orange":{light:[!1,!0],value:["linear-gradient(180deg, #FFB766 0%, #FFEAA3 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-mint":{light:[!1,!0],value:["linear-gradient(180deg, #7DD1D1 0%, #C8FAE9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-lime":{light:[!1,!0],value:["linear-gradient(180deg, #BFE062 0%, #E4FFAD 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-rose":{light:[!1,!0],value:["linear-gradient(0deg, #FFDDD6 0%, #FF99C9 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-red":{light:[!1,!0],value:["linear-gradient(0deg, #FFD5CC 0%, #FF9494 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"},"--gradient-violet":{light:[!1,!0],value:["linear-gradient(180deg, #BCA3FF 0%, #E5E5FF 100%)","linear-gradient(0deg, #478063 0%, #2E4652 45.93%, #24223D 91.63%)"],description:"Additional brand gradient"}}}}}const hv=["checkmark","import","clear","chevron-right","add","play","loading","arrow-right","clipboard","link","comp","close","restart","stop","settings-2"],mv=["paper-clip","cloud-up","success","restart","close","clipboard"],gv={allCssVariables:pv(),icons16:nx,icons24:fv},yv={class:"block__not-found"},_v=n.defineComponent({__name:"NotFound",setup(i){const t=Es().useApp(),a=()=>{t.updateNavigationState(s=>{s.href="/"})};return(s,c)=>(n.openBlock(),n.createElementBlock("div",yv,[n.createElementVNode("h1",null,"Not found route: "+n.toDisplayString(n.unref(t).snapshot.navigationState.href),1),n.createVNode(n.unref(Hs),{onClick:n.withModifiers(a,["stop"])},{default:n.withCtx(()=>c[0]||(c[0]=[n.createTextVNode("Return to main page")])),_:1})]))}}),ll=(i,e)=>{const t=i.__vccOpts||i;for(const[a,s]of e)t[a]=s;return t},wv={},bv={class:"block__loader-page"};function kv(i,e){return n.openBlock(),n.createElementBlock("div",bv,e[0]||(e[0]=[n.createElementVNode("div",{class:"loader-container"},[n.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const xv=ll(wv,[["render",kv]]),vv={class:"block block__layout"},Cv={key:0},Ev=n.defineComponent({__name:"BlockLayout",setup(i){const e=Es(),t=c=>{try{return new URL(c,"http://dummy").pathname}catch{console.error("Invalid href",c);return}},a=n.computed(()=>e.loaded?e.useApp().href:void 0),s=n.computed(()=>{if(e.loaded){const c=e.useApp(),d=t(c.snapshot.navigationState.href);return d?c.routes[d]:void 0}});return(c,d)=>(n.openBlock(),n.createElementBlock("div",vv,[n.unref(e).error?(n.openBlock(),n.createElementBlock("div",Cv,n.toDisplayString(n.unref(e).error),1)):n.unref(e).loaded?s.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.value),{key:a.value})):(n.openBlock(),n.createBlock(_v,{key:3})):(n.openBlock(),n.createBlock(xv,{key:1},{default:n.withCtx(()=>d[0]||(d[0]=[n.createTextVNode("Loading...")])),_:1}))]))}});var da={exports:{}};/**
|
|
22
22
|
* @license
|
|
23
23
|
* Lodash <https://lodash.com/>
|
|
24
24
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -44,4 +44,4 @@ __p += '`),Re&&(U+=`' +
|
|
|
44
44
|
function print() { __p += __j.call(arguments, '') }
|
|
45
45
|
`:`;
|
|
46
46
|
`)+U+`return __p
|
|
47
|
-
}`;var Ve=rh(function(){return Pe(_,se+"return "+U).apply(t,b)});if(Ve.source=U,Cc(Ve))throw Ve;return Ve}function JB(r){return Fe(r).toLowerCase()}function XB(r){return Fe(r).toUpperCase()}function QB(r,o,l){if(r=Fe(r),r&&(l||o===t))return ff(r);if(!r||!(o=Lt(o)))return r;var f=mn(r),m=mn(o),_=pf(f,m),b=hf(f,m)+1;return pr(f,_,b).join("")}function e2(r,o,l){if(r=Fe(r),r&&(l||o===t))return r.slice(0,gf(r)+1);if(!r||!(o=Lt(o)))return r;var f=mn(r),m=hf(f,mn(o))+1;return pr(f,0,m).join("")}function t2(r,o,l){if(r=Fe(r),r&&(l||o===t))return r.replace(Cl,"");if(!r||!(o=Lt(o)))return r;var f=mn(r),m=pf(f,mn(o));return pr(f,m).join("")}function n2(r,o){var l=Z,f=L;if(Je(o)){var m="separator"in o?o.separator:m;l="length"in o?Ee(o.length):l,f="omission"in o?Lt(o.omission):f}r=Fe(r);var _=r.length;if(ui(r)){var b=mn(r);_=b.length}if(l>=_)return r;var E=l-fi(f);if(E<1)return f;var N=b?pr(b,0,E).join(""):r.slice(0,E);if(m===t)return N+f;if(b&&(E+=N.length-E),Ec(m)){if(r.slice(E).search(m)){var F,$=N;for(m.global||(m=zl(m.source,Fe(Ru.exec(m))+"g")),m.lastIndex=0;F=m.exec($);)var U=F.index;N=N.slice(0,U===t?E:U)}}else if(r.indexOf(Lt(m),E)!=E){var X=N.lastIndexOf(m);X>-1&&(N=N.slice(0,X))}return N+f}function r2(r){return r=Fe(r),r&&hC.test(r)?r.replace(Bu,AE):r}var i2=wi(function(r,o,l){return r+(l?" ":"")+o.toUpperCase()}),Vc=ip("toUpperCase");function nh(r,o,l){return r=Fe(r),o=l?t:o,o===t?TE(r)?IE(r):_E(r):r.match(o)||[]}var rh=Ne(function(r,o){try{return Mt(r,t,o)}catch(l){return Cc(l)?l:new be(l)}}),o2=Ln(function(r,o){return jt(o,function(l){l=Tn(l),Mn(r,l,xc(r[l],r))}),r});function a2(r){var o=r==null?0:r.length,l=ue();return r=o?He(r,function(f){if(typeof f[1]!="function")throw new Wt(d);return[l(f[0]),f[1]]}):[],Ne(function(f){for(var m=-1;++m<o;){var _=r[m];if(Mt(_[0],this,f))return Mt(_[1],this,f)}})}function s2(r){return AS(qt(r,x))}function Nc(r){return function(){return r}}function l2(r,o){return r==null||r!==r?o:r}var c2=ap(),d2=ap(!0);function Nt(r){return r}function Bc(r){return Mf(typeof r=="function"?r:qt(r,x))}function u2(r){return Lf(qt(r,x))}function f2(r,o){return Ff(r,qt(o,x))}var p2=Ne(function(r,o){return function(l){return Vo(l,r,o)}}),h2=Ne(function(r,o){return function(l){return Vo(r,l,o)}});function Oc(r,o,l){var f=ct(o),m=$a(o,f);l==null&&!(Je(o)&&(m.length||!f.length))&&(l=o,o=r,r=this,m=$a(o,ct(o)));var _=!(Je(l)&&"chain"in l)||!!l.chain,b=$n(r);return jt(m,function(E){var N=o[E];r[E]=N,b&&(r.prototype[E]=function(){var F=this.__chain__;if(_||F){var $=r(this.__wrapped__),U=$.__actions__=St(this.__actions__);return U.push({func:N,args:arguments,thisArg:r}),$.__chain__=F,$}return N.apply(r,sr([this.value()],arguments))})}),r}function m2(){return dt._===this&&(dt._=zE),this}function Ac(){}function g2(r){return r=Ee(r),Ne(function(o){return $f(o,r)})}var y2=cc(He),_2=cc(sf),w2=cc(Dl);function ih(r){return gc(r)?Il(Tn(r)):KS(r)}function b2(r){return function(o){return r==null?t:Lr(r,o)}}var k2=lp(),x2=lp(!0);function Rc(){return[]}function Dc(){return!1}function v2(){return{}}function C2(){return""}function E2(){return!0}function S2(r,o){if(r=Ee(r),r<1||r>Be)return[];var l=Et,f=gt(r,Et);o=ue(o),r-=Et;for(var m=Ll(f,o);++l<r;)o(l);return m}function T2(r){return ke(r)?He(r,Tn):Ft(r)?[r]:St(Cp(Fe(r)))}function V2(r){var o=++FE;return Fe(r)+o}var N2=Ha(function(r,o){return r+o},0),B2=dc("ceil"),O2=Ha(function(r,o){return r/o},1),A2=dc("floor");function R2(r){return r&&r.length?Fa(r,Nt,Kl):t}function D2(r,o){return r&&r.length?Fa(r,ue(o,2),Kl):t}function I2(r){return df(r,Nt)}function M2(r,o){return df(r,ue(o,2))}function P2(r){return r&&r.length?Fa(r,Nt,Ql):t}function L2(r,o){return r&&r.length?Fa(r,ue(o,2),Ql):t}var F2=Ha(function(r,o){return r*o},1),$2=dc("round"),z2=Ha(function(r,o){return r-o},0);function Z2(r){return r&&r.length?Pl(r,Nt):0}function U2(r,o){return r&&r.length?Pl(r,ue(o,2)):0}return y.after=uN,y.ary=Ip,y.assign=XN,y.assignIn=Kp,y.assignInWith=os,y.assignWith=QN,y.at=eB,y.before=Mp,y.bind=xc,y.bindAll=o2,y.bindKey=Pp,y.castArray=vN,y.chain=Ap,y.chunk=AT,y.compact=RT,y.concat=DT,y.cond=a2,y.conforms=s2,y.constant=Nc,y.countBy=ZV,y.create=tB,y.curry=Lp,y.curryRight=Fp,y.debounce=$p,y.defaults=nB,y.defaultsDeep=rB,y.defer=fN,y.delay=pN,y.difference=IT,y.differenceBy=MT,y.differenceWith=PT,y.drop=LT,y.dropRight=FT,y.dropRightWhile=$T,y.dropWhile=zT,y.fill=ZT,y.filter=jV,y.flatMap=qV,y.flatMapDeep=GV,y.flatMapDepth=KV,y.flatten=Vp,y.flattenDeep=UT,y.flattenDepth=jT,y.flip=hN,y.flow=c2,y.flowRight=d2,y.fromPairs=WT,y.functions=dB,y.functionsIn=uB,y.groupBy=YV,y.initial=qT,y.intersection=GT,y.intersectionBy=KT,y.intersectionWith=YT,y.invert=pB,y.invertBy=hB,y.invokeMap=XV,y.iteratee=Bc,y.keyBy=QV,y.keys=ct,y.keysIn=Vt,y.map=Qa,y.mapKeys=gB,y.mapValues=yB,y.matches=u2,y.matchesProperty=f2,y.memoize=ts,y.merge=_B,y.mergeWith=Yp,y.method=p2,y.methodOf=h2,y.mixin=Oc,y.negate=ns,y.nthArg=g2,y.omit=wB,y.omitBy=bB,y.once=mN,y.orderBy=eN,y.over=y2,y.overArgs=gN,y.overEvery=_2,y.overSome=w2,y.partial=vc,y.partialRight=zp,y.partition=tN,y.pick=kB,y.pickBy=Jp,y.property=ih,y.propertyOf=b2,y.pull=eV,y.pullAll=Bp,y.pullAllBy=tV,y.pullAllWith=nV,y.pullAt=rV,y.range=k2,y.rangeRight=x2,y.rearg=yN,y.reject=iN,y.remove=iV,y.rest=_N,y.reverse=bc,y.sampleSize=aN,y.set=vB,y.setWith=CB,y.shuffle=sN,y.slice=oV,y.sortBy=dN,y.sortedUniq=fV,y.sortedUniqBy=pV,y.split=qB,y.spread=wN,y.tail=hV,y.take=mV,y.takeRight=gV,y.takeRightWhile=yV,y.takeWhile=_V,y.tap=RV,y.throttle=bN,y.thru=Xa,y.toArray=Hp,y.toPairs=Xp,y.toPairsIn=Qp,y.toPath=T2,y.toPlainObject=Gp,y.transform=EB,y.unary=kN,y.union=wV,y.unionBy=bV,y.unionWith=kV,y.uniq=xV,y.uniqBy=vV,y.uniqWith=CV,y.unset=SB,y.unzip=kc,y.unzipWith=Op,y.update=TB,y.updateWith=VB,y.values=xi,y.valuesIn=NB,y.without=EV,y.words=nh,y.wrap=xN,y.xor=SV,y.xorBy=TV,y.xorWith=VV,y.zip=NV,y.zipObject=BV,y.zipObjectDeep=OV,y.zipWith=AV,y.entries=Xp,y.entriesIn=Qp,y.extend=Kp,y.extendWith=os,Oc(y,y),y.add=N2,y.attempt=rh,y.camelCase=RB,y.capitalize=eh,y.ceil=B2,y.clamp=BB,y.clone=CN,y.cloneDeep=SN,y.cloneDeepWith=TN,y.cloneWith=EN,y.conformsTo=VN,y.deburr=th,y.defaultTo=l2,y.divide=O2,y.endsWith=DB,y.eq=yn,y.escape=IB,y.escapeRegExp=MB,y.every=UV,y.find=WV,y.findIndex=Sp,y.findKey=iB,y.findLast=HV,y.findLastIndex=Tp,y.findLastKey=oB,y.floor=A2,y.forEach=Rp,y.forEachRight=Dp,y.forIn=aB,y.forInRight=sB,y.forOwn=lB,y.forOwnRight=cB,y.get=Sc,y.gt=NN,y.gte=BN,y.has=fB,y.hasIn=Tc,y.head=Np,y.identity=Nt,y.includes=JV,y.indexOf=HT,y.inRange=OB,y.invoke=mB,y.isArguments=zr,y.isArray=ke,y.isArrayBuffer=ON,y.isArrayLike=Tt,y.isArrayLikeObject=et,y.isBoolean=AN,y.isBuffer=hr,y.isDate=RN,y.isElement=DN,y.isEmpty=IN,y.isEqual=MN,y.isEqualWith=PN,y.isError=Cc,y.isFinite=LN,y.isFunction=$n,y.isInteger=Zp,y.isLength=rs,y.isMap=Up,y.isMatch=FN,y.isMatchWith=$N,y.isNaN=zN,y.isNative=ZN,y.isNil=jN,y.isNull=UN,y.isNumber=jp,y.isObject=Je,y.isObjectLike=Xe,y.isPlainObject=Do,y.isRegExp=Ec,y.isSafeInteger=WN,y.isSet=Wp,y.isString=is,y.isSymbol=Ft,y.isTypedArray=ki,y.isUndefined=HN,y.isWeakMap=qN,y.isWeakSet=GN,y.join=JT,y.kebabCase=PB,y.last=Kt,y.lastIndexOf=XT,y.lowerCase=LB,y.lowerFirst=FB,y.lt=KN,y.lte=YN,y.max=R2,y.maxBy=D2,y.mean=I2,y.meanBy=M2,y.min=P2,y.minBy=L2,y.stubArray=Rc,y.stubFalse=Dc,y.stubObject=v2,y.stubString=C2,y.stubTrue=E2,y.multiply=F2,y.nth=QT,y.noConflict=m2,y.noop=Ac,y.now=es,y.pad=$B,y.padEnd=zB,y.padStart=ZB,y.parseInt=UB,y.random=AB,y.reduce=nN,y.reduceRight=rN,y.repeat=jB,y.replace=WB,y.result=xB,y.round=$2,y.runInContext=V,y.sample=oN,y.size=lN,y.snakeCase=HB,y.some=cN,y.sortedIndex=aV,y.sortedIndexBy=sV,y.sortedIndexOf=lV,y.sortedLastIndex=cV,y.sortedLastIndexBy=dV,y.sortedLastIndexOf=uV,y.startCase=GB,y.startsWith=KB,y.subtract=z2,y.sum=Z2,y.sumBy=U2,y.template=YB,y.times=S2,y.toFinite=zn,y.toInteger=Ee,y.toLength=qp,y.toLower=JB,y.toNumber=Yt,y.toSafeInteger=JN,y.toString=Fe,y.toUpper=XB,y.trim=QB,y.trimEnd=e2,y.trimStart=t2,y.truncate=n2,y.unescape=r2,y.uniqueId=V2,y.upperCase=i2,y.upperFirst=Vc,y.each=Rp,y.eachRight=Dp,y.first=Np,Oc(y,function(){var r={};return En(y,function(o,l){$e.call(y.prototype,l)||(r[l]=o)}),r}(),{chain:!1}),y.VERSION=a,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),jt(["drop","take"],function(r,o){Ae.prototype[r]=function(l){l=l===t?1:ot(Ee(l),0);var f=this.__filtered__&&!o?new Ae(this):this.clone();return f.__filtered__?f.__takeCount__=gt(l,f.__takeCount__):f.__views__.push({size:gt(l,Et),type:r+(f.__dir__<0?"Right":"")}),f},Ae.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),jt(["filter","map","takeWhile"],function(r,o){var l=o+1,f=l==de||l==J;Ae.prototype[r]=function(m){var _=this.clone();return _.__iteratees__.push({iteratee:ue(m,3),type:l}),_.__filtered__=_.__filtered__||f,_}}),jt(["head","last"],function(r,o){var l="take"+(o?"Right":"");Ae.prototype[r]=function(){return this[l](1).value()[0]}}),jt(["initial","tail"],function(r,o){var l="drop"+(o?"":"Right");Ae.prototype[r]=function(){return this.__filtered__?new Ae(this):this[l](1)}}),Ae.prototype.compact=function(){return this.filter(Nt)},Ae.prototype.find=function(r){return this.filter(r).head()},Ae.prototype.findLast=function(r){return this.reverse().find(r)},Ae.prototype.invokeMap=Ne(function(r,o){return typeof r=="function"?new Ae(this):this.map(function(l){return Vo(l,r,o)})}),Ae.prototype.reject=function(r){return this.filter(ns(ue(r)))},Ae.prototype.slice=function(r,o){r=Ee(r);var l=this;return l.__filtered__&&(r>0||o<0)?new Ae(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),o!==t&&(o=Ee(o),l=o<0?l.dropRight(-o):l.take(o-r)),l)},Ae.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Ae.prototype.toArray=function(){return this.take(Et)},En(Ae.prototype,function(r,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),m=y[f?"take"+(o=="last"?"Right":""):o],_=f||/^find/.test(o);m&&(y.prototype[o]=function(){var b=this.__wrapped__,E=f?[1]:arguments,N=b instanceof Ae,F=E[0],$=N||ke(b),U=function(Oe){var Re=m.apply(y,sr([Oe],E));return f&&X?Re[0]:Re};$&&l&&typeof F=="function"&&F.length!=1&&(N=$=!1);var X=this.__chain__,se=!!this.__actions__.length,pe=_&&!X,Ve=N&&!se;if(!_&&$){b=Ve?b:new Ae(this);var he=r.apply(b,E);return he.__actions__.push({func:Xa,args:[U],thisArg:t}),new Ht(he,X)}return pe&&Ve?r.apply(this,E):(he=this.thru(U),pe?f?he.value()[0]:he.value():he)})}),jt(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ca[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var m=arguments;if(f&&!this.__chain__){var _=this.value();return o.apply(ke(_)?_:[],m)}return this[l](function(b){return o.apply(ke(b)?b:[],m)})}}),En(Ae.prototype,function(r,o){var l=y[o];if(l){var f=l.name+"";$e.call(gi,f)||(gi[f]=[]),gi[f].push({name:o,func:l})}}),gi[Wa(t,v).name]=[{name:"wrapper",func:t}],Ae.prototype.clone=rS,Ae.prototype.reverse=iS,Ae.prototype.value=oS,y.prototype.at=DV,y.prototype.chain=IV,y.prototype.commit=MV,y.prototype.next=PV,y.prototype.plant=FV,y.prototype.reverse=$V,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=zV,y.prototype.first=y.prototype.head,ko&&(y.prototype[ko]=LV),y},pi=ME();Rr?((Rr.exports=pi)._=pi,Bl._=pi):dt._=pi}).call(vi)}(da,da.exports);var Ye=da.exports;const Sv={class:"grid-overlay-container"},hu=n.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(i){return(e,t)=>(n.openBlock(),n.createElementBlock("div",Sv,[e.params.notReady?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[0]||(t[0]=n.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),t[1]||(t[1]=n.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[2]||(t[2]=n.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),t[3]||(t[3]=n.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),Tv={},Vv={class:"grid-overlay-container"};function Nv(i,e){return n.openBlock(),n.createElementBlock("div",Vv,e[0]||(e[0]=[n.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),n.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const mu=ll(Tv,[["render",Nv]]);async function Bv(i,e,t){throw Error("not implemented")}function Ov(i){return i.axesSpec.filter(e=>{var t;return((t=e.annotations)==null?void 0:t["pl7.app/axisNature"])==="heterogeneous"})}function Av(i,e){const t=[];for(const a of e)if(i[a].type==="column"){const s=Ov(i[a].spec);for(const c of s){if(c.type!=="String"){console.warn("heterogeneous axis with string type expected, got",c,"skipping");continue}const d=od(c),u=i.findIndex(p=>Ye.isEqual(p.id,d));if(u===-1)throw console.error("axis not found",a,d,i),Error("axis not found");t.push({columnIdx:a,axisIdx:u})}}return t}const gu=(i,e)=>(i+e).toString();function Rv(i,e,t,a,s,c){if(i.length>1)throw Error("hColumns.length > 1 is not supported");const d=i[0];let u=-1,p=-1;for(let x=0;x<c.length;++x)c[x]===d.axisIdx&&(u=x),c[x]===d.columnIdx&&(p=x);const h=(()=>{const R=a[u].data.filter(T=>T!==null);return Array.from(new Set(R))})();h.sort(),p>u?(t.splice(p,1),t.splice(u,1)):(t.splice(u,1),t.splice(p,1));const g=Dv(s,a,u,p,h,e.rows);for(let x=0;x<h.length;++x){const R=h[x],T=R+"@"+x;t.push({colId:T,field:gu(a.length,x),headerName:R,valueFormatter:yu})}return{rowModelType:"clientSide",columnDefs:t,rowData:g}}function Dv(i,e,t,a,s,c){const d=new Map;let u=0;for(let h=0;h<c;h++){const g={};for(let k=0;k<e.length;++k){if(k===t||k===a)continue;const S=i[k].toString();g[S]=e[k].data[h]}let x;const R=Ci(Object.values(g))??"";d.has(R)?x=d.get(R):(d.set(R,g),x=g,x.id=u.toString(),u++);const T=s.indexOf(e[t].data[h]);if(T===-1)throw Error("index not found");const C=gu(e.length,T);x[C]=e[a].data[h]}return Array.from(d.values())}function Iv(i){return Ci({type:i.type,id:i.id})}function Mv(i){return JSON.parse(i)}const yu=i=>i?i.value===void 0?"NULL":i.value===null?"NA":i.value.toString():"ERROR";function Pv(i,e){var t,a;return{colId:Iv(e),field:i.toString(),headerName:((a=(t=e.spec.annotations)==null?void 0:t["pl7.app/label"])==null?void 0:a.trim())??"Unlabeled "+e.type+" "+i.toString(),lockPosition:e.type==="axis",valueFormatter:yu,cellDataType:(s=>{switch(s){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${s}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function _u(i,e){switch(e){case"Int":return i;case"Long":return typeof i=="bigint"?Number(i):i;case"Float":return i;case"Double":return i;case"String":return i;case"Bytes":return Buffer.from(i).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function wu(i){const e=[];return Ho(i,t=>(e.push(t),t)),e}async function Lv(i,e,t){return t.length?(await i.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ye.uniqWith(t.map(s=>Cs(s.spec.axesSpec).map(Ye.cloneDeep)).flat(),Ye.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function Fv(i,e,t){const a=wu(t),c=(await Lv(i,e,a)).filter(d=>!Ye.find(a,u=>d.columnId===u.columnId));return c.length===0?t:{type:"outer",primary:t,secondary:c.map(d=>({type:"column",column:d}))}}async function $v(i,e,t,a){const s=t.filter(g=>g.type!=="Bytes"),c=wu(a),d=s.map(g=>[]),u=s.map(g=>null);for(let g=0;g<c.length;++g){const x=Cs(c[g].spec.axesSpec);for(let R=0;R<x.length;++R){const T=Ye.findIndex(s,C=>Ye.isEqual(C,x[R]));T===-1||u[T]||(x.length===1&&c[g].spec.name==="pl7.app/label"?(d[T]=[[g,R]],u[T]=c[g].columnId):d[T].push([g,R]))}}for(let g=s.length-1;g>=0;--g)d[g].length||(u.splice(g,1),d.splice(g,1),s.splice(g,1));const p=100,h=s.map(g=>new Set);e:for(let g=s.length-1;g>=0;--g){for(const[x,R]of d[g]){const T=await i.getUniqueValues(e,{columnId:c[x].columnId,...!u[g]&&{axis:Ye.cloneDeep(s[g])},filters:[],limit:p});if(T.overflow){u.splice(g,1),d.splice(g,1),s.splice(g,1);continue e}const C=T.values.type;for(const k of T.values.data)if(!(id(k,C)||k===null)&&(h[g].add(_u(k,C)),h[g].size===p)){u.splice(g,1),d.splice(g,1),s.splice(g,1);continue e}}if(!h[g].size){u.splice(g,1),d.splice(g,1),s.splice(g,1);continue e}}return s.map((g,x)=>{const R=[...h[x]].map(C=>({value:C,text:C.toString()})),T=R[0].value;return{axis:Ye.cloneDeep(g),...u[x]&&{column:u[x]},options:R,defaultValue:T}})}function zv(i,e){const t=e.length,a=[];for(let s=0;s<e[0].data.length;++s){const c={};for(let d=0;d<t;++d){const u=i[d].toString(),p=e[d].data[s],h=e[d].type;Tm(e[d].absent,s)?c[u]=void 0:id(p,h)||p===null?c[u]=null:c[u]=_u(p,h)}c.id=s.toString(),a.push(c)}return a}const Zv=i=>i.type==="column"&&i.spec.axesSpec.length===1&&i.spec.name==="pl7.app/label";async function Uv(i,e,t,a){const s=await e.getSpec(t),c=[...s.keys()].filter(T=>!Ye.find(a,C=>Ye.isEqual(C.axis,s[T].id)||Ye.isEqual(C.column,s[T].id))),d=Ye.cloneDeep(c),u=Av(s,c);for(let T=c.length-1;T>=0;--T){const C=c[T];if(!Zv(s[C]))continue;const k=Cs(s[C].spec.axesSpec)[0],S=Ye.findIndex(c,v=>Ye.isEqual(s[v].id,k));if(S!==-1){c[S]=C;for(const v of u)v.axisIdx===C&&(v.axisIdx=S);c.splice(T,1),d.splice(T,1)}}const p=await e.getShape(t),h=p.rows,g=d.map(T=>Pv(T,s[T]));if(u.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",u.length," transposition will not be applied."),u.length===1)return Rv(u,p,g,await e.getData(t,c),d,c);let x;return{rowModelType:"infinite",columnDefs:g,datasource:{rowCount:h,getRows:async T=>{i.setGridOption("loading",!0);try{if(h==0){T.successCallback([],h),i.setGridOption("loading",!1),i.showNoRowsOverlay();return}if(x&&!Ye.isEqual(x.sortModel,T.sortModel)){x=void 0,T.failCallback();return}x=T;const C=T.endRow-T.startRow;let k=[];if(C>0){const S=await e.getData(t,c,{offset:T.startRow,length:C});k=zv(d,S)}T.successCallback(k,p.rows),i.setGridOption("loading",!1),i.autoSizeAllColumns()}catch{T.failCallback()}}}}}const jv={class:"ap-ag-data-table-container"},Wv={key:0,class:"ap-ag-data-table-sheets"},Hv=ll(n.defineComponent({__name:"PlAgDataTable",props:n.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:["update:modelValue"],setup(i){_r.ModuleRegistry.registerModules([Mo.ClientSideRowModelModule,zc.ClipboardModule,$c.InfiniteRowModelModule,Zc.RangeSelectionModule]);const e=n.useModel(i,"modelValue"),t=i,{settings:a}=n.toRefs(t);n.watch(()=>a.value,async(C,k)=>{if(C.sourceType!=="pframe"||!C.pFrame||!C.join||k&&k.sourceType==="pframe"&&Ye.isEqual(C.pFrame,k.pFrame)&&Ye.isEqual(C.join,k.join))return;const S=window.platforma;if(!S)throw Error("platforma not set");const v=S.pFrameDriver;if(!v)throw Error("platforma.pFrameDriver not set");const I=await Fv(v,C.pFrame,C.join),K=e.value;K.pTableParams||(K.pTableParams={sorting:[],filters:[]}),K.pTableParams.join=I,e.value=K});const s=bu(()=>a.value.sourceType,async C=>{var S;const k=a.value.sourceType;switch(k){case"pframe":{const v=window.platforma;if(!v)throw Error("platforma not set");const I=v.pFrameDriver;if(!I)throw Error("platforma.pFrameDriver not set");if(!a.value.pFrame)return[];const K=a.value.pFrame,j=(S=e.value.pTableParams)==null?void 0:S.join;return j?await $v(I,K,a.value.sheetAxes,j):[]}case"ptable":return a.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${k}`)}});function c(C){if(!(a.value.sourceType!=="ptable"&&a.value.sourceType!=="pframe"))return(C==null?void 0:C.sortModel.map(k=>({column:Mv(k.colId),ascending:k.sort==="asc",naAndAbsentAreLeastValues:!0})))??[]}const d=n.computed({get:()=>{const C=e.value;return{columnOrder:C.gridState.columnOrder,sort:C.gridState.sort}},set:C=>{const k=e.value,S=x.rowModelType==="clientSide"?void 0:c(C.sort);k.gridState.columnOrder=C.columnOrder,k.gridState.sort=C.sort,(a.value.sourceType==="ptable"||a.value.sourceType==="pframe")&&(k.pTableParams||(k.pTableParams={sorting:[],filters:[]}),k.pTableParams.sorting=S),e.value=k}}),u=C=>Ci(C);function p(C){var k;if(!(a.value.sourceType!=="ptable"&&a.value.sourceType!=="pframe"))return((k=s.value)==null?void 0:k.map(S=>({type:"bySingleColumn",column:S.column?{type:"column",id:S.column}:{type:"axis",id:S.axis},predicate:{operator:"Equal",reference:C[u(S.axis)]}})))??[]}const h=n.computed({get:()=>e.value.gridState.sheets??{},set:C=>{const k=p(C),S=e.value;S.gridState.sheets=C,(a.value.sourceType==="ptable"||a.value.sourceType==="pframe")&&(S.pTableParams||(S.pTableParams={sorting:[],filters:[]}),S.pTableParams.filters=k),e.value=S}});n.watch(()=>[a.value,s.value],(C,k)=>{const[S,v]=C;if(!v)return;if(k){const[K,j]=k;if((S.sourceType==="ptable"||S.sourceType==="pframe")&&S.sourceType===(K==null?void 0:K.sourceType)&&Ye.isEqual(v,j))return}if(S.sourceType!=="ptable"&&S.sourceType!=="pframe"){h.value={};return}const I=h.value;for(const K of v){const j=u(K.axis);I[j]||(I[j]=K.defaultValue??K.options[0].value)}h.value=I},{immediate:!0});const g=n.shallowRef(),x={animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:e.value.gridState,onGridReady:C=>{g.value=C.api},onStateUpdated:C=>{d.value={columnOrder:C.state.columnOrder,sort:C.state.sort}},autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:C=>{C.api.autoSizeAllColumns()},maxBlocksInCache:1e4,cacheBlockSize:100,getRowId:C=>C.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:hu,noRowsOverlayComponent:mu},R=n.ref(0);n.watch(()=>[g.value,d.value],(C,k)=>{if(Ye.isEqual(C,k))return;const[S,v]=C;if(!S)return;const I=S.getState();Ye.isEqual(v.columnOrder,I.columnOrder)&&Ye.isEqual(v.sort,I.sort)||(x.initialState=v,++R.value)});const T=(C,k)=>{const S=h.value;S[C]!==k&&(S[C]=k,h.value=S)};return n.watch(()=>[g.value,a.value,s.value],async(C,k)=>{if(Ye.isEqual(C,k))return;const[S,v,I]=C;if(!S)return;const K=window.platforma;if(!K)throw Error("platforma not set");const j=v.sourceType;switch(j){case"pframe":case"ptable":{const z=K.pFrameDriver;if(!z)throw Error("platforma.pFrameDriver not set");const W=v.pTable;if(!W||!I)return S.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[],rowData:[]});const O=await Uv(S,z,W,I);return S.updateGridOptions({loading:O.rowModelType==="infinite",loadingOverlayComponentParams:{notReady:!1},...O})}case"xsv":{const z=K.blobDriver;if(!z)throw Error("platforma.blobDriver not set");const W=v.xsvFile;if(!(W!=null&&W.ok)||!W.value)return S.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[],rowData:[]});const O=await Bv(S,z,W.value);return S.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...O})}default:throw Error(`unsupported source type: ${j}`)}}),(C,k)=>(n.openBlock(),n.createElementBlock("div",jv,[n.createVNode(n.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:n.withCtx(()=>[n.unref(s).value&&n.unref(s).value.length>0?(n.openBlock(),n.createElementBlock("div",Wv,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s).value,(S,v)=>(n.openBlock(),n.createBlock(n.unref(Kd),{key:v,"model-value":h.value[u(S.axis)],options:S.options,"onUpdate:modelValue":I=>T(u(S.axis),I)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):n.createCommentVNode("",!0)]),_:1}),n.createVNode(n.unref(fh.AgGridVue),{class:"ap-ag-data-table-grid","grid-options":x})]))}}),[["__scopeId","data-v-690a491e"]]),qv={key:1,class:"alert-error"},Gv={key:2},Kv=n.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(i){const e=i,t=n.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),a=n.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=n.computed(()=>t.value===void 0&&a.value===void 0);return(c,d)=>(n.openBlock(),n.createElementBlock("div",null,[t.value!==void 0?n.renderSlot(c.$slots,"default",n.normalizeProps(n.mergeProps({key:0},{value:t.value}))):n.createCommentVNode("",!0),a.value?(n.openBlock(),n.createElementBlock("div",qv,n.toDisplayString(a.value),1)):n.createCommentVNode("",!0),s.value?(n.openBlock(),n.createElementBlock("div",Gv,"Unresolved")):n.createCommentVNode("",!0)]))}}),ua=new Map;function Yv(i,e){const t=n.getCurrentScope()??n.effectScope(),a=t.run(()=>(n.onScopeDispose(()=>{ua.delete(i)}),n.reactive(e())));return a[Symbol.dispose]=()=>{t.stop()},a}function Jv(i){const e=Symbol();return()=>(ua.has(e)||ua.set(e,Yv(e,i)),ua.get(e))}function Xv(i){return n.computed(()=>{try{return jc(i())}catch(e){return{errors:[String(e)],value:void 0}}})}function bu(i,e,t){const a=n.ref(0),s=n.reactive({loading:n.computed(()=>a.value>0),loadingRef:a,value:void 0,error:void 0}),c=mh(e);return n.watch(i,async d=>{s.error=void 0,a.value++,c(d).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{a.value--})},Object.assign({immediate:!0,deep:!0},t??{})),s}const ni=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ku=new Set,cl=typeof process=="object"&&process?process:{},xu=(i,e,t,a)=>{typeof cl.emitWarning=="function"?cl.emitWarning(i,e,t,a):console.error(`[${t}] ${e}: ${i}`)};let fa=globalThis.AbortController,vu=globalThis.AbortSignal;if(typeof fa>"u"){vu=class{constructor(){Le(this,"onabort");Le(this,"_onabort",[]);Le(this,"reason");Le(this,"aborted",!1)}addEventListener(a,s){this._onabort.push(s)}},fa=class{constructor(){Le(this,"signal",new vu);e()}abort(a){var s,c;if(!this.signal.aborted){this.signal.reason=a,this.signal.aborted=!0;for(const d of this.signal._onabort)d(a);(c=(s=this.signal).onabort)==null||c.call(s,a)}}};let i=((Eu=cl.env)==null?void 0:Eu.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{i&&(i=!1,xu("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 Qv=i=>!ku.has(i),rr=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),Cu=i=>rr(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?pa:null:null;class pa extends Array{constructor(e){super(e),this.fill(0)}}const Vr=class Vr{constructor(e,t){Le(this,"heap");Le(this,"length");if(!w(Vr,ri))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){const t=Cu(e);if(!t)return[];fe(Vr,ri,!0);const a=new Vr(e,t);return fe(Vr,ri,!1),a}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};ri=new WeakMap,Me(Vr,ri,!1);let dl=Vr;const pl=class pl{constructor(e){Me(this,Y);Me(this,on);Me(this,At);Me(this,an);Me(this,sn);Me(this,ii);Me(this,oi);Le(this,"ttl");Le(this,"ttlResolution");Le(this,"ttlAutopurge");Le(this,"updateAgeOnGet");Le(this,"updateAgeOnHas");Le(this,"allowStale");Le(this,"noDisposeOnSet");Le(this,"noUpdateTTL");Le(this,"maxEntrySize");Le(this,"sizeCalculation");Le(this,"noDeleteOnFetchRejection");Le(this,"noDeleteOnStaleGet");Le(this,"allowStaleOnFetchAbort");Le(this,"allowStaleOnFetchRejection");Le(this,"ignoreFetchAbort");Me(this,rt);Me(this,ln);Me(this,nt);Me(this,Ue);Me(this,we);Me(this,bt);Me(this,Rt);Me(this,mt);Me(this,st);Me(this,cn);Me(this,lt);Me(this,dn);Me(this,un);Me(this,Dt);Me(this,fn);Me(this,ir);Me(this,kt);Me(this,Nr,()=>{});Me(this,An,()=>{});Me(this,uo,()=>{});Me(this,It,()=>!1);Me(this,Br,e=>{});Me(this,ai,(e,t,a)=>{});Me(this,fo,(e,t,a,s)=>{if(a||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Le(this,Su,"LRUCache");const{max:t=0,ttl:a,ttlResolution:s=1,ttlAutopurge:c,updateAgeOnGet:d,updateAgeOnHas:u,allowStale:p,dispose:h,disposeAfter:g,noDisposeOnSet:x,noUpdateTTL:R,maxSize:T=0,maxEntrySize:C=0,sizeCalculation:k,fetchMethod:S,memoMethod:v,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:K,allowStaleOnFetchRejection:j,allowStaleOnFetchAbort:z,ignoreFetchAbort:W}=e;if(t!==0&&!rr(t))throw new TypeError("max option must be a nonnegative integer");const O=t?Cu(t):Array;if(!O)throw new Error("invalid max value: "+t);if(fe(this,on,t),fe(this,At,T),this.maxEntrySize=C||w(this,At),this.sizeCalculation=k,this.sizeCalculation){if(!w(this,At)&&!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(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(fe(this,oi,v),S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,ii,S),fe(this,ir,!!S),fe(this,nt,new Map),fe(this,Ue,new Array(t).fill(void 0)),fe(this,we,new Array(t).fill(void 0)),fe(this,bt,new O(t)),fe(this,Rt,new O(t)),fe(this,mt,0),fe(this,st,0),fe(this,cn,dl.create(t)),fe(this,rt,0),fe(this,ln,0),typeof h=="function"&&fe(this,an,h),typeof g=="function"?(fe(this,sn,g),fe(this,lt,[])):(fe(this,sn,void 0),fe(this,lt,void 0)),fe(this,fn,!!w(this,an)),fe(this,kt,!!w(this,sn)),this.noDisposeOnSet=!!x,this.noUpdateTTL=!!R,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!j,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(w(this,At)!==0&&!rr(w(this,At)))throw new TypeError("maxSize must be a positive integer if specified");if(!rr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ie(this,Y,sh).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!K,this.updateAgeOnGet=!!d,this.updateAgeOnHas=!!u,this.ttlResolution=rr(s)||s===0?s:1,this.ttlAutopurge=!!c,this.ttl=a||0,this.ttl){if(!rr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ie(this,Y,Mc).call(this)}if(w(this,on)===0&&this.ttl===0&&w(this,At)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,on)&&!w(this,At)){const B="LRU_CACHE_UNBOUNDED";Qv(B)&&(ku.add(B),xu("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,pl))}}static unsafeExposeInternals(e){return{starts:w(e,un),ttls:w(e,Dt),sizes:w(e,dn),keyMap:w(e,nt),keyList:w(e,Ue),valList:w(e,we),next:w(e,bt),prev:w(e,Rt),get head(){return w(e,mt)},get tail(){return w(e,st)},free:w(e,cn),isBackgroundFetch:t=>{var a;return ie(a=e,Y,We).call(a,t)},backgroundFetch:(t,a,s,c)=>{var d;return ie(d=e,Y,ls).call(d,t,a,s,c)},moveToTail:t=>{var a;return ie(a=e,Y,Io).call(a,t)},indexes:t=>{var a;return ie(a=e,Y,mr).call(a,t)},rindexes:t=>{var a;return ie(a=e,Y,gr).call(a,t)},isStale:t=>{var a;return w(a=e,It).call(a,t)}}}get max(){return w(this,on)}get maxSize(){return w(this,At)}get calculatedSize(){return w(this,ln)}get size(){return w(this,rt)}get fetchMethod(){return w(this,ii)}get memoMethod(){return w(this,oi)}get dispose(){return w(this,an)}get disposeAfter(){return w(this,sn)}getRemainingTTL(e){return w(this,nt).has(e)?1/0:0}*entries(){for(const e of ie(this,Y,mr).call(this))w(this,we)[e]!==void 0&&w(this,Ue)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield[w(this,Ue)[e],w(this,we)[e]])}*rentries(){for(const e of ie(this,Y,gr).call(this))w(this,we)[e]!==void 0&&w(this,Ue)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield[w(this,Ue)[e],w(this,we)[e]])}*keys(){for(const e of ie(this,Y,mr).call(this)){const t=w(this,Ue)[e];t!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield t)}}*rkeys(){for(const e of ie(this,Y,gr).call(this)){const t=w(this,Ue)[e];t!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield t)}}*values(){for(const e of ie(this,Y,mr).call(this))w(this,we)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield w(this,we)[e])}*rvalues(){for(const e of ie(this,Y,gr).call(this))w(this,we)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield w(this,we)[e])}[(Tu=Symbol.iterator,Su=Symbol.toStringTag,Tu)](){return this.entries()}find(e,t={}){for(const a of ie(this,Y,mr).call(this)){const s=w(this,we)[a],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;if(c!==void 0&&e(c,w(this,Ue)[a],this))return this.get(w(this,Ue)[a],t)}}forEach(e,t=this){for(const a of ie(this,Y,mr).call(this)){const s=w(this,we)[a],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;c!==void 0&&e.call(t,c,w(this,Ue)[a],this)}}rforEach(e,t=this){for(const a of ie(this,Y,gr).call(this)){const s=w(this,we)[a],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;c!==void 0&&e.call(t,c,w(this,Ue)[a],this)}}purgeStale(){let e=!1;for(const t of ie(this,Y,gr).call(this,{allowStale:!0}))w(this,It).call(this,t)&&(ie(this,Y,yr).call(this,w(this,Ue)[t],"expire"),e=!0);return e}info(e){const t=w(this,nt).get(e);if(t===void 0)return;const a=w(this,we)[t],s=ie(this,Y,We).call(this,a)?a.__staleWhileFetching:a;if(s===void 0)return;const c={value:s};if(w(this,Dt)&&w(this,un)){const d=w(this,Dt)[t],u=w(this,un)[t];if(d&&u){const p=d-(ni.now()-u);c.ttl=p,c.start=Date.now()}}return w(this,dn)&&(c.size=w(this,dn)[t]),c}dump(){const e=[];for(const t of ie(this,Y,mr).call(this,{allowStale:!0})){const a=w(this,Ue)[t],s=w(this,we)[t],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;if(c===void 0||a===void 0)continue;const d={value:c};if(w(this,Dt)&&w(this,un)){d.ttl=w(this,Dt)[t];const u=ni.now()-w(this,un)[t];d.start=Math.floor(Date.now()-u)}w(this,dn)&&(d.size=w(this,dn)[t]),e.unshift([a,d])}return e}load(e){this.clear();for(const[t,a]of e){if(a.start){const s=Date.now()-a.start;a.start=ni.now()-s}this.set(t,a.value,a)}}set(e,t,a={}){var R,T,C,k,S;if(t===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:c,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=a;let{noUpdateTTL:h=this.noUpdateTTL}=a;const g=w(this,fo).call(this,e,t,a.size||0,u);if(this.maxEntrySize&&g>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),ie(this,Y,yr).call(this,e,"set"),this;let x=w(this,rt)===0?void 0:w(this,nt).get(e);if(x===void 0)x=w(this,rt)===0?w(this,st):w(this,cn).length!==0?w(this,cn).pop():w(this,rt)===w(this,on)?ie(this,Y,ss).call(this,!1):w(this,rt),w(this,Ue)[x]=e,w(this,we)[x]=t,w(this,nt).set(e,x),w(this,bt)[w(this,st)]=x,w(this,Rt)[x]=w(this,st),fe(this,st,x),as(this,rt)._++,w(this,ai).call(this,x,g,p),p&&(p.set="add"),h=!1;else{ie(this,Y,Io).call(this,x);const v=w(this,we)[x];if(t!==v){if(w(this,ir)&&ie(this,Y,We).call(this,v)){v.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:I}=v;I!==void 0&&!d&&(w(this,fn)&&((R=w(this,an))==null||R.call(this,I,e,"set")),w(this,kt)&&((T=w(this,lt))==null||T.push([I,e,"set"])))}else d||(w(this,fn)&&((C=w(this,an))==null||C.call(this,v,e,"set")),w(this,kt)&&((k=w(this,lt))==null||k.push([v,e,"set"])));if(w(this,Br).call(this,x),w(this,ai).call(this,x,g,p),w(this,we)[x]=t,p){p.set="replace";const I=v&&ie(this,Y,We).call(this,v)?v.__staleWhileFetching:v;I!==void 0&&(p.oldValue=I)}}else p&&(p.set="update")}if(s!==0&&!w(this,Dt)&&ie(this,Y,Mc).call(this),w(this,Dt)&&(h||w(this,uo).call(this,x,s,c),p&&w(this,An).call(this,p,x)),!d&&w(this,kt)&&w(this,lt)){const v=w(this,lt);let I;for(;I=v==null?void 0:v.shift();)(S=w(this,sn))==null||S.call(this,...I)}return this}pop(){var e;try{for(;w(this,rt);){const t=w(this,we)[w(this,mt)];if(ie(this,Y,ss).call(this,!0),ie(this,Y,We).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(w(this,kt)&&w(this,lt)){const t=w(this,lt);let a;for(;a=t==null?void 0:t.shift();)(e=w(this,sn))==null||e.call(this,...a)}}}has(e,t={}){const{updateAgeOnHas:a=this.updateAgeOnHas,status:s}=t,c=w(this,nt).get(e);if(c!==void 0){const d=w(this,we)[c];if(ie(this,Y,We).call(this,d)&&d.__staleWhileFetching===void 0)return!1;if(w(this,It).call(this,c))s&&(s.has="stale",w(this,An).call(this,s,c));else return a&&w(this,Nr).call(this,c),s&&(s.has="hit",w(this,An).call(this,s,c)),!0}else s&&(s.has="miss");return!1}peek(e,t={}){const{allowStale:a=this.allowStale}=t,s=w(this,nt).get(e);if(s===void 0||!a&&w(this,It).call(this,s))return;const c=w(this,we)[s];return ie(this,Y,We).call(this,c)?c.__staleWhileFetching:c}async fetch(e,t={}){const{allowStale:a=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:c=this.noDeleteOnStaleGet,ttl:d=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:x=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:k,forceRefresh:S=!1,status:v,signal:I}=t;if(!w(this,ir))return v&&(v.fetch="get"),this.get(e,{allowStale:a,updateAgeOnGet:s,noDeleteOnStaleGet:c,status:v});const K={allowStale:a,updateAgeOnGet:s,noDeleteOnStaleGet:c,ttl:d,noDisposeOnSet:u,size:p,sizeCalculation:h,noUpdateTTL:g,noDeleteOnFetchRejection:x,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:C,ignoreFetchAbort:T,status:v,signal:I};let j=w(this,nt).get(e);if(j===void 0){v&&(v.fetch="miss");const z=ie(this,Y,ls).call(this,e,j,K,k);return z.__returned=z}else{const z=w(this,we)[j];if(ie(this,Y,We).call(this,z)){const Z=a&&z.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",Z&&(v.returnedStale=!0)),Z?z.__staleWhileFetching:z.__returned=z}const W=w(this,It).call(this,j);if(!S&&!W)return v&&(v.fetch="hit"),ie(this,Y,Io).call(this,j),s&&w(this,Nr).call(this,j),v&&w(this,An).call(this,v,j),z;const O=ie(this,Y,ls).call(this,e,j,K,k),P=O.__staleWhileFetching!==void 0&&a;return v&&(v.fetch=W?"stale":"refresh",P&&W&&(v.returnedStale=!0)),P?O.__staleWhileFetching:O.__returned=O}}async forceFetch(e,t={}){const a=await this.fetch(e,t);if(a===void 0)throw new Error("fetch() returned undefined");return a}memo(e,t={}){const a=w(this,oi);if(!a)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:c,...d}=t,u=this.get(e,d);if(!c&&u!==void 0)return u;const p=a(e,u,{options:d,context:s});return this.set(e,p,d),p}get(e,t={}){const{allowStale:a=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:c=this.noDeleteOnStaleGet,status:d}=t,u=w(this,nt).get(e);if(u!==void 0){const p=w(this,we)[u],h=ie(this,Y,We).call(this,p);return d&&w(this,An).call(this,d,u),w(this,It).call(this,u)?(d&&(d.get="stale"),h?(d&&a&&p.__staleWhileFetching!==void 0&&(d.returnedStale=!0),a?p.__staleWhileFetching:void 0):(c||ie(this,Y,yr).call(this,e,"expire"),d&&a&&(d.returnedStale=!0),a?p:void 0)):(d&&(d.get="hit"),h?p.__staleWhileFetching:(ie(this,Y,Io).call(this,u),s&&w(this,Nr).call(this,u),p))}else d&&(d.get="miss")}delete(e){return ie(this,Y,yr).call(this,e,"delete")}clear(){return ie(this,Y,Fc).call(this,"delete")}};on=new WeakMap,At=new WeakMap,an=new WeakMap,sn=new WeakMap,ii=new WeakMap,oi=new WeakMap,rt=new WeakMap,ln=new WeakMap,nt=new WeakMap,Ue=new WeakMap,we=new WeakMap,bt=new WeakMap,Rt=new WeakMap,mt=new WeakMap,st=new WeakMap,cn=new WeakMap,lt=new WeakMap,dn=new WeakMap,un=new WeakMap,Dt=new WeakMap,fn=new WeakMap,ir=new WeakMap,kt=new WeakMap,Y=new WeakSet,Mc=function(){const e=new pa(w(this,on)),t=new pa(w(this,on));fe(this,Dt,e),fe(this,un,t),fe(this,uo,(c,d,u=ni.now())=>{if(t[c]=d!==0?u:0,e[c]=d,d!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,It).call(this,c)&&ie(this,Y,yr).call(this,w(this,Ue)[c],"expire")},d+1);p.unref&&p.unref()}}),fe(this,Nr,c=>{t[c]=e[c]!==0?ni.now():0}),fe(this,An,(c,d)=>{if(e[d]){const u=e[d],p=t[d];if(!u||!p)return;c.ttl=u,c.start=p,c.now=a||s();const h=c.now-p;c.remainingTTL=u-h}});let a=0;const s=()=>{const c=ni.now();if(this.ttlResolution>0){a=c;const d=setTimeout(()=>a=0,this.ttlResolution);d.unref&&d.unref()}return c};this.getRemainingTTL=c=>{const d=w(this,nt).get(c);if(d===void 0)return 0;const u=e[d],p=t[d];if(!u||!p)return 1/0;const h=(a||s())-p;return u-h},fe(this,It,c=>{const d=t[c],u=e[c];return!!u&&!!d&&(a||s())-d>u})},Nr=new WeakMap,An=new WeakMap,uo=new WeakMap,It=new WeakMap,sh=function(){const e=new pa(w(this,on));fe(this,ln,0),fe(this,dn,e),fe(this,Br,t=>{fe(this,ln,w(this,ln)-e[t]),e[t]=0}),fe(this,fo,(t,a,s,c)=>{if(ie(this,Y,We).call(this,a))return 0;if(!rr(s))if(c){if(typeof c!="function")throw new TypeError("sizeCalculation must be a function");if(s=c(a,t),!rr(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,ai,(t,a,s)=>{if(e[t]=a,w(this,At)){const c=w(this,At)-e[t];for(;w(this,ln)>c;)ie(this,Y,ss).call(this,!0)}fe(this,ln,w(this,ln)+e[t]),s&&(s.entrySize=a,s.totalCalculatedSize=w(this,ln))})},Br=new WeakMap,ai=new WeakMap,fo=new WeakMap,mr=function*({allowStale:e=this.allowStale}={}){if(w(this,rt))for(let t=w(this,st);!(!ie(this,Y,Pc).call(this,t)||((e||!w(this,It).call(this,t))&&(yield t),t===w(this,mt)));)t=w(this,Rt)[t]},gr=function*({allowStale:e=this.allowStale}={}){if(w(this,rt))for(let t=w(this,mt);!(!ie(this,Y,Pc).call(this,t)||((e||!w(this,It).call(this,t))&&(yield t),t===w(this,st)));)t=w(this,bt)[t]},Pc=function(e){return e!==void 0&&w(this,nt).get(w(this,Ue)[e])===e},ss=function(e){var c,d;const t=w(this,mt),a=w(this,Ue)[t],s=w(this,we)[t];return w(this,ir)&&ie(this,Y,We).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,fn)||w(this,kt))&&(w(this,fn)&&((c=w(this,an))==null||c.call(this,s,a,"evict")),w(this,kt)&&((d=w(this,lt))==null||d.push([s,a,"evict"]))),w(this,Br).call(this,t),e&&(w(this,Ue)[t]=void 0,w(this,we)[t]=void 0,w(this,cn).push(t)),w(this,rt)===1?(fe(this,mt,fe(this,st,0)),w(this,cn).length=0):fe(this,mt,w(this,bt)[t]),w(this,nt).delete(a),as(this,rt)._--,t},ls=function(e,t,a,s){const c=t===void 0?void 0:w(this,we)[t];if(ie(this,Y,We).call(this,c))return c;const d=new fa,{signal:u}=a;u==null||u.addEventListener("abort",()=>d.abort(u.reason),{signal:d.signal});const p={signal:d.signal,options:a,context:s},h=(k,S=!1)=>{const{aborted:v}=d.signal,I=a.ignoreFetchAbort&&k!==void 0;if(a.status&&(v&&!S?(a.status.fetchAborted=!0,a.status.fetchError=d.signal.reason,I&&(a.status.fetchAbortIgnored=!0)):a.status.fetchResolved=!0),v&&!I&&!S)return x(d.signal.reason);const K=T;return w(this,we)[t]===T&&(k===void 0?K.__staleWhileFetching?w(this,we)[t]=K.__staleWhileFetching:ie(this,Y,yr).call(this,e,"fetch"):(a.status&&(a.status.fetchUpdated=!0),this.set(e,k,p.options))),k},g=k=>(a.status&&(a.status.fetchRejected=!0,a.status.fetchError=k),x(k)),x=k=>{const{aborted:S}=d.signal,v=S&&a.allowStaleOnFetchAbort,I=v||a.allowStaleOnFetchRejection,K=I||a.noDeleteOnFetchRejection,j=T;if(w(this,we)[t]===T&&(!K||j.__staleWhileFetching===void 0?ie(this,Y,yr).call(this,e,"fetch"):v||(w(this,we)[t]=j.__staleWhileFetching)),I)return a.status&&j.__staleWhileFetching!==void 0&&(a.status.returnedStale=!0),j.__staleWhileFetching;if(j.__returned===j)throw k},R=(k,S)=>{var I;const v=(I=w(this,ii))==null?void 0:I.call(this,e,c,p);v&&v instanceof Promise&&v.then(K=>k(K===void 0?void 0:K),S),d.signal.addEventListener("abort",()=>{(!a.ignoreFetchAbort||a.allowStaleOnFetchAbort)&&(k(void 0),a.allowStaleOnFetchAbort&&(k=K=>h(K,!0)))})};a.status&&(a.status.fetchDispatched=!0);const T=new Promise(R).then(h,g),C=Object.assign(T,{__abortController:d,__staleWhileFetching:c,__returned:void 0});return t===void 0?(this.set(e,C,{...p.options,status:void 0}),t=w(this,nt).get(e)):w(this,we)[t]=C,C},We=function(e){if(!w(this,ir))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof fa},Lc=function(e,t){w(this,Rt)[t]=e,w(this,bt)[e]=t},Io=function(e){e!==w(this,st)&&(e===w(this,mt)?fe(this,mt,w(this,bt)[e]):ie(this,Y,Lc).call(this,w(this,Rt)[e],w(this,bt)[e]),ie(this,Y,Lc).call(this,w(this,st),e),fe(this,st,e))},yr=function(e,t){var s,c,d,u;let a=!1;if(w(this,rt)!==0){const p=w(this,nt).get(e);if(p!==void 0)if(a=!0,w(this,rt)===1)ie(this,Y,Fc).call(this,t);else{w(this,Br).call(this,p);const h=w(this,we)[p];if(ie(this,Y,We).call(this,h)?h.__abortController.abort(new Error("deleted")):(w(this,fn)||w(this,kt))&&(w(this,fn)&&((s=w(this,an))==null||s.call(this,h,e,t)),w(this,kt)&&((c=w(this,lt))==null||c.push([h,e,t]))),w(this,nt).delete(e),w(this,Ue)[p]=void 0,w(this,we)[p]=void 0,p===w(this,st))fe(this,st,w(this,Rt)[p]);else if(p===w(this,mt))fe(this,mt,w(this,bt)[p]);else{const g=w(this,Rt)[p];w(this,bt)[g]=w(this,bt)[p];const x=w(this,bt)[p];w(this,Rt)[x]=w(this,Rt)[p]}as(this,rt)._--,w(this,cn).push(p)}}if(w(this,kt)&&((d=w(this,lt))!=null&&d.length)){const p=w(this,lt);let h;for(;h=p==null?void 0:p.shift();)(u=w(this,sn))==null||u.call(this,...h)}return a},Fc=function(e){var t,a,s;for(const c of ie(this,Y,gr).call(this,{allowStale:!0})){const d=w(this,we)[c];if(ie(this,Y,We).call(this,d))d.__abortController.abort(new Error("deleted"));else{const u=w(this,Ue)[c];w(this,fn)&&((t=w(this,an))==null||t.call(this,d,u,e)),w(this,kt)&&((a=w(this,lt))==null||a.push([d,u,e]))}}if(w(this,nt).clear(),w(this,we).fill(void 0),w(this,Ue).fill(void 0),w(this,Dt)&&w(this,un)&&(w(this,Dt).fill(0),w(this,un).fill(0)),w(this,dn)&&w(this,dn).fill(0),fe(this,mt,0),fe(this,st,0),w(this,cn).length=0,fe(this,ln,0),fe(this,rt,0),w(this,kt)&&w(this,lt)){const c=w(this,lt);let d;for(;d=c==null?void 0:c.shift();)(s=w(this,sn))==null||s.call(this,...d)}};let ul=pl;const eC={cacheSize:15e6};class tC{constructor(e){Le(this,"_str");Le(this,"_rawJson");Le(this,"_zodSchema");Le(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 Or=class Or{constructor(e){Le(this,"fileDataCache");Le(this,"fileDataRefs",new Map);const t={...eC,...e??{}};this.fileDataCache=new ul({maxSize:t.cacheSize,fetchMethod:async a=>new tC(await Nm().blobDriver.getContent(a)),sizeCalculation:a=>a.bytes.length,dispose:(a,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const t=this.fileDataRefs.get(e);if(t!==void 0)return t;const a=n.shallowRef();return this.fileDataRefs.set(e,a),(async()=>{try{const s=await this.fileDataCache.fetch(e);a.value=s}catch(s){console.error(s)}})(),a}getContentBytes(e){if(e===void 0)return;const t=this.getDataRef(e);return n.computed(()=>{var a;return(a=t.value)==null?void 0:a.bytes})}getContentString(e){if(e===void 0)return;const t=this.getDataRef(e);return n.computed(()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.str})}getContentJson(e,t){if(e===void 0)return;const a=this.getDataRef(e);return n.computed(()=>{var s,c;return t===void 0?(s=a==null?void 0:a.value)==null?void 0:s.rawJson:(c=a==null?void 0:a.value)==null?void 0:c.validatedJson(t)})}static getContentBytes(e){return Or.globalInstance.getContentBytes(e)}static getContentString(e){return Or.globalInstance.getContentString(e)}static getContentJson(e,t){return Or.globalInstance.getContentJson(e,t)}};Le(Or,"globalInstance",new Or);let fl=Or;A.BlockLayout=Ev,A.ContextProvider=Dk,A.DataTable=l_,A.DemoData=gv,A.DropdownListItem=Qo,A.GridTable=uy,A.LongText=Gd,A.MaskIcon16=Wi,A.MaskIcon24=Cr,A.MultiError=us,A.PlAgDataTable=Hv,A.PlAgOverlayLoading=hu,A.PlAgOverlayNoRows=mu,A.PlAlert=M_,A.PlBlockPage=k_,A.PlBtnAccent=z_,A.PlBtnGhost=Pd,A.PlBtnGroup=c0,A.PlBtnLink=W_,A.PlBtnPrimary=Md,A.PlBtnSecondary=Hs,A.PlCheckbox=$w,A.PlCheckboxGroup=jw,A.PlChip=Qs,A.PlContainer=v_,A.PlDialogModal=Yd,A.PlDropdown=Xs,A.PlDropdownLine=Kd,A.PlDropdownMulti=Lw,A.PlDropdownRef=ew,A.PlFileDialog=Jd,A.PlFileInput=Rk,A.PlGrid=B_,A.PlLogView=ib,A.PlNumberField=vw,A.PlProgressBar=gw,A.PlRow=E_,A.PlSlideModal=Xw,A.PlSpacer=V_,A.PlTextArea=A0,A.PlTextField=jd,A.PlToggleSwitch=tb,A.PlTooltip=Zt,A.ReactiveFileContent=fl,A.Scrollable=E1,A.Slider=Wk,A.SliderRange=k1,A.SliderRangeTriple=c1,A.ThemeSwitcher=h_,A.UnresolvedError=ds,A.ValueOrErrorsComponent=Kv,A.activateAgGrid=ad,A.animate=Td,A.animateInfinite=cy,A.call=xd,A.computedResult=Xv,A.createModel=ys,A.debounce=Vd,A.defineApp=Om,A.defineStore=Jv,A.delay=vd,A.detectOutside=R0,A.ensureError=hs,A.eventListener=Ys,A.formatZodError=gs,A.getElementScrollPosition=Hd,A.identity=ps,A.isDefined=bh,A.isElementVisible=Wd,A.isJsonEqual=fs,A.isZodError=ms,A.listToOptions=dy,A.makeEaseInOut=ly,A.makeEaseOut=Sd,A.maskIcons16=hv,A.maskIcons24=mv,A.normalizeListOptions=Gr,A.notEmpty=Is,A.randomInt=Ed,A.randomString=sy,A.requestTick=Ms,A.scrollIntoView=Xo,A.showContextMenu=Fs,A.throttle=Ps,A.timeout=Cd,A.unwrapOptionalResult=wh,A.unwrapValueOrErrors=Uc,A.useClickOutside=Jo,A.useDraggable=Xk,A.useEventListener=Ge,A.useFormState=Yk,A.useHover=Ds,A.useInterval=Kk,A.useLabelNotch=vr,A.useLocalStorage=Ad,A.useMouse=Rs,A.useMouseCapture=Kn,A.usePosition=Ld,A.useQuery=Jk,A.useResizeObserver=fu,A.useScroll=Hk,A.useSdkPlugin=Es,A.useSortable=Gk,A.useTheme=Dd,A.useWatchFetch=bu,A.wrapOptionalResult=jc,A.wrapValueOrErrors=_h,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
47
|
+
}`;var Ve=rh(function(){return Pe(_,se+"return "+U).apply(t,b)});if(Ve.source=U,Cc(Ve))throw Ve;return Ve}function JB(r){return Fe(r).toLowerCase()}function XB(r){return Fe(r).toUpperCase()}function QB(r,o,l){if(r=Fe(r),r&&(l||o===t))return ff(r);if(!r||!(o=Lt(o)))return r;var f=mn(r),m=mn(o),_=pf(f,m),b=hf(f,m)+1;return pr(f,_,b).join("")}function e2(r,o,l){if(r=Fe(r),r&&(l||o===t))return r.slice(0,gf(r)+1);if(!r||!(o=Lt(o)))return r;var f=mn(r),m=hf(f,mn(o))+1;return pr(f,0,m).join("")}function t2(r,o,l){if(r=Fe(r),r&&(l||o===t))return r.replace(Cl,"");if(!r||!(o=Lt(o)))return r;var f=mn(r),m=pf(f,mn(o));return pr(f,m).join("")}function n2(r,o){var l=Z,f=L;if(Je(o)){var m="separator"in o?o.separator:m;l="length"in o?Ee(o.length):l,f="omission"in o?Lt(o.omission):f}r=Fe(r);var _=r.length;if(ui(r)){var b=mn(r);_=b.length}if(l>=_)return r;var E=l-fi(f);if(E<1)return f;var N=b?pr(b,0,E).join(""):r.slice(0,E);if(m===t)return N+f;if(b&&(E+=N.length-E),Ec(m)){if(r.slice(E).search(m)){var F,$=N;for(m.global||(m=zl(m.source,Fe(Ru.exec(m))+"g")),m.lastIndex=0;F=m.exec($);)var U=F.index;N=N.slice(0,U===t?E:U)}}else if(r.indexOf(Lt(m),E)!=E){var X=N.lastIndexOf(m);X>-1&&(N=N.slice(0,X))}return N+f}function r2(r){return r=Fe(r),r&&hC.test(r)?r.replace(Bu,AE):r}var i2=wi(function(r,o,l){return r+(l?" ":"")+o.toUpperCase()}),Vc=ip("toUpperCase");function nh(r,o,l){return r=Fe(r),o=l?t:o,o===t?TE(r)?IE(r):_E(r):r.match(o)||[]}var rh=Ne(function(r,o){try{return Mt(r,t,o)}catch(l){return Cc(l)?l:new be(l)}}),o2=Ln(function(r,o){return jt(o,function(l){l=Tn(l),Mn(r,l,xc(r[l],r))}),r});function a2(r){var o=r==null?0:r.length,l=ue();return r=o?He(r,function(f){if(typeof f[1]!="function")throw new Wt(d);return[l(f[0]),f[1]]}):[],Ne(function(f){for(var m=-1;++m<o;){var _=r[m];if(Mt(_[0],this,f))return Mt(_[1],this,f)}})}function s2(r){return AS(qt(r,x))}function Nc(r){return function(){return r}}function l2(r,o){return r==null||r!==r?o:r}var c2=ap(),d2=ap(!0);function Nt(r){return r}function Bc(r){return Mf(typeof r=="function"?r:qt(r,x))}function u2(r){return Lf(qt(r,x))}function f2(r,o){return Ff(r,qt(o,x))}var p2=Ne(function(r,o){return function(l){return Vo(l,r,o)}}),h2=Ne(function(r,o){return function(l){return Vo(r,l,o)}});function Oc(r,o,l){var f=ct(o),m=$a(o,f);l==null&&!(Je(o)&&(m.length||!f.length))&&(l=o,o=r,r=this,m=$a(o,ct(o)));var _=!(Je(l)&&"chain"in l)||!!l.chain,b=$n(r);return jt(m,function(E){var N=o[E];r[E]=N,b&&(r.prototype[E]=function(){var F=this.__chain__;if(_||F){var $=r(this.__wrapped__),U=$.__actions__=St(this.__actions__);return U.push({func:N,args:arguments,thisArg:r}),$.__chain__=F,$}return N.apply(r,sr([this.value()],arguments))})}),r}function m2(){return dt._===this&&(dt._=zE),this}function Ac(){}function g2(r){return r=Ee(r),Ne(function(o){return $f(o,r)})}var y2=cc(He),_2=cc(sf),w2=cc(Dl);function ih(r){return gc(r)?Il(Tn(r)):KS(r)}function b2(r){return function(o){return r==null?t:Lr(r,o)}}var k2=lp(),x2=lp(!0);function Rc(){return[]}function Dc(){return!1}function v2(){return{}}function C2(){return""}function E2(){return!0}function S2(r,o){if(r=Ee(r),r<1||r>Be)return[];var l=Et,f=gt(r,Et);o=ue(o),r-=Et;for(var m=Ll(f,o);++l<r;)o(l);return m}function T2(r){return ke(r)?He(r,Tn):Ft(r)?[r]:St(Cp(Fe(r)))}function V2(r){var o=++FE;return Fe(r)+o}var N2=Ha(function(r,o){return r+o},0),B2=dc("ceil"),O2=Ha(function(r,o){return r/o},1),A2=dc("floor");function R2(r){return r&&r.length?Fa(r,Nt,Kl):t}function D2(r,o){return r&&r.length?Fa(r,ue(o,2),Kl):t}function I2(r){return df(r,Nt)}function M2(r,o){return df(r,ue(o,2))}function P2(r){return r&&r.length?Fa(r,Nt,Ql):t}function L2(r,o){return r&&r.length?Fa(r,ue(o,2),Ql):t}var F2=Ha(function(r,o){return r*o},1),$2=dc("round"),z2=Ha(function(r,o){return r-o},0);function Z2(r){return r&&r.length?Pl(r,Nt):0}function U2(r,o){return r&&r.length?Pl(r,ue(o,2)):0}return y.after=uN,y.ary=Ip,y.assign=XN,y.assignIn=Kp,y.assignInWith=os,y.assignWith=QN,y.at=eB,y.before=Mp,y.bind=xc,y.bindAll=o2,y.bindKey=Pp,y.castArray=vN,y.chain=Ap,y.chunk=AT,y.compact=RT,y.concat=DT,y.cond=a2,y.conforms=s2,y.constant=Nc,y.countBy=ZV,y.create=tB,y.curry=Lp,y.curryRight=Fp,y.debounce=$p,y.defaults=nB,y.defaultsDeep=rB,y.defer=fN,y.delay=pN,y.difference=IT,y.differenceBy=MT,y.differenceWith=PT,y.drop=LT,y.dropRight=FT,y.dropRightWhile=$T,y.dropWhile=zT,y.fill=ZT,y.filter=jV,y.flatMap=qV,y.flatMapDeep=GV,y.flatMapDepth=KV,y.flatten=Vp,y.flattenDeep=UT,y.flattenDepth=jT,y.flip=hN,y.flow=c2,y.flowRight=d2,y.fromPairs=WT,y.functions=dB,y.functionsIn=uB,y.groupBy=YV,y.initial=qT,y.intersection=GT,y.intersectionBy=KT,y.intersectionWith=YT,y.invert=pB,y.invertBy=hB,y.invokeMap=XV,y.iteratee=Bc,y.keyBy=QV,y.keys=ct,y.keysIn=Vt,y.map=Qa,y.mapKeys=gB,y.mapValues=yB,y.matches=u2,y.matchesProperty=f2,y.memoize=ts,y.merge=_B,y.mergeWith=Yp,y.method=p2,y.methodOf=h2,y.mixin=Oc,y.negate=ns,y.nthArg=g2,y.omit=wB,y.omitBy=bB,y.once=mN,y.orderBy=eN,y.over=y2,y.overArgs=gN,y.overEvery=_2,y.overSome=w2,y.partial=vc,y.partialRight=zp,y.partition=tN,y.pick=kB,y.pickBy=Jp,y.property=ih,y.propertyOf=b2,y.pull=eV,y.pullAll=Bp,y.pullAllBy=tV,y.pullAllWith=nV,y.pullAt=rV,y.range=k2,y.rangeRight=x2,y.rearg=yN,y.reject=iN,y.remove=iV,y.rest=_N,y.reverse=bc,y.sampleSize=aN,y.set=vB,y.setWith=CB,y.shuffle=sN,y.slice=oV,y.sortBy=dN,y.sortedUniq=fV,y.sortedUniqBy=pV,y.split=qB,y.spread=wN,y.tail=hV,y.take=mV,y.takeRight=gV,y.takeRightWhile=yV,y.takeWhile=_V,y.tap=RV,y.throttle=bN,y.thru=Xa,y.toArray=Hp,y.toPairs=Xp,y.toPairsIn=Qp,y.toPath=T2,y.toPlainObject=Gp,y.transform=EB,y.unary=kN,y.union=wV,y.unionBy=bV,y.unionWith=kV,y.uniq=xV,y.uniqBy=vV,y.uniqWith=CV,y.unset=SB,y.unzip=kc,y.unzipWith=Op,y.update=TB,y.updateWith=VB,y.values=xi,y.valuesIn=NB,y.without=EV,y.words=nh,y.wrap=xN,y.xor=SV,y.xorBy=TV,y.xorWith=VV,y.zip=NV,y.zipObject=BV,y.zipObjectDeep=OV,y.zipWith=AV,y.entries=Xp,y.entriesIn=Qp,y.extend=Kp,y.extendWith=os,Oc(y,y),y.add=N2,y.attempt=rh,y.camelCase=RB,y.capitalize=eh,y.ceil=B2,y.clamp=BB,y.clone=CN,y.cloneDeep=SN,y.cloneDeepWith=TN,y.cloneWith=EN,y.conformsTo=VN,y.deburr=th,y.defaultTo=l2,y.divide=O2,y.endsWith=DB,y.eq=yn,y.escape=IB,y.escapeRegExp=MB,y.every=UV,y.find=WV,y.findIndex=Sp,y.findKey=iB,y.findLast=HV,y.findLastIndex=Tp,y.findLastKey=oB,y.floor=A2,y.forEach=Rp,y.forEachRight=Dp,y.forIn=aB,y.forInRight=sB,y.forOwn=lB,y.forOwnRight=cB,y.get=Sc,y.gt=NN,y.gte=BN,y.has=fB,y.hasIn=Tc,y.head=Np,y.identity=Nt,y.includes=JV,y.indexOf=HT,y.inRange=OB,y.invoke=mB,y.isArguments=zr,y.isArray=ke,y.isArrayBuffer=ON,y.isArrayLike=Tt,y.isArrayLikeObject=et,y.isBoolean=AN,y.isBuffer=hr,y.isDate=RN,y.isElement=DN,y.isEmpty=IN,y.isEqual=MN,y.isEqualWith=PN,y.isError=Cc,y.isFinite=LN,y.isFunction=$n,y.isInteger=Zp,y.isLength=rs,y.isMap=Up,y.isMatch=FN,y.isMatchWith=$N,y.isNaN=zN,y.isNative=ZN,y.isNil=jN,y.isNull=UN,y.isNumber=jp,y.isObject=Je,y.isObjectLike=Xe,y.isPlainObject=Do,y.isRegExp=Ec,y.isSafeInteger=WN,y.isSet=Wp,y.isString=is,y.isSymbol=Ft,y.isTypedArray=ki,y.isUndefined=HN,y.isWeakMap=qN,y.isWeakSet=GN,y.join=JT,y.kebabCase=PB,y.last=Kt,y.lastIndexOf=XT,y.lowerCase=LB,y.lowerFirst=FB,y.lt=KN,y.lte=YN,y.max=R2,y.maxBy=D2,y.mean=I2,y.meanBy=M2,y.min=P2,y.minBy=L2,y.stubArray=Rc,y.stubFalse=Dc,y.stubObject=v2,y.stubString=C2,y.stubTrue=E2,y.multiply=F2,y.nth=QT,y.noConflict=m2,y.noop=Ac,y.now=es,y.pad=$B,y.padEnd=zB,y.padStart=ZB,y.parseInt=UB,y.random=AB,y.reduce=nN,y.reduceRight=rN,y.repeat=jB,y.replace=WB,y.result=xB,y.round=$2,y.runInContext=V,y.sample=oN,y.size=lN,y.snakeCase=HB,y.some=cN,y.sortedIndex=aV,y.sortedIndexBy=sV,y.sortedIndexOf=lV,y.sortedLastIndex=cV,y.sortedLastIndexBy=dV,y.sortedLastIndexOf=uV,y.startCase=GB,y.startsWith=KB,y.subtract=z2,y.sum=Z2,y.sumBy=U2,y.template=YB,y.times=S2,y.toFinite=zn,y.toInteger=Ee,y.toLength=qp,y.toLower=JB,y.toNumber=Yt,y.toSafeInteger=JN,y.toString=Fe,y.toUpper=XB,y.trim=QB,y.trimEnd=e2,y.trimStart=t2,y.truncate=n2,y.unescape=r2,y.uniqueId=V2,y.upperCase=i2,y.upperFirst=Vc,y.each=Rp,y.eachRight=Dp,y.first=Np,Oc(y,function(){var r={};return En(y,function(o,l){$e.call(y.prototype,l)||(r[l]=o)}),r}(),{chain:!1}),y.VERSION=a,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),jt(["drop","take"],function(r,o){Ae.prototype[r]=function(l){l=l===t?1:ot(Ee(l),0);var f=this.__filtered__&&!o?new Ae(this):this.clone();return f.__filtered__?f.__takeCount__=gt(l,f.__takeCount__):f.__views__.push({size:gt(l,Et),type:r+(f.__dir__<0?"Right":"")}),f},Ae.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),jt(["filter","map","takeWhile"],function(r,o){var l=o+1,f=l==de||l==J;Ae.prototype[r]=function(m){var _=this.clone();return _.__iteratees__.push({iteratee:ue(m,3),type:l}),_.__filtered__=_.__filtered__||f,_}}),jt(["head","last"],function(r,o){var l="take"+(o?"Right":"");Ae.prototype[r]=function(){return this[l](1).value()[0]}}),jt(["initial","tail"],function(r,o){var l="drop"+(o?"":"Right");Ae.prototype[r]=function(){return this.__filtered__?new Ae(this):this[l](1)}}),Ae.prototype.compact=function(){return this.filter(Nt)},Ae.prototype.find=function(r){return this.filter(r).head()},Ae.prototype.findLast=function(r){return this.reverse().find(r)},Ae.prototype.invokeMap=Ne(function(r,o){return typeof r=="function"?new Ae(this):this.map(function(l){return Vo(l,r,o)})}),Ae.prototype.reject=function(r){return this.filter(ns(ue(r)))},Ae.prototype.slice=function(r,o){r=Ee(r);var l=this;return l.__filtered__&&(r>0||o<0)?new Ae(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),o!==t&&(o=Ee(o),l=o<0?l.dropRight(-o):l.take(o-r)),l)},Ae.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Ae.prototype.toArray=function(){return this.take(Et)},En(Ae.prototype,function(r,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),m=y[f?"take"+(o=="last"?"Right":""):o],_=f||/^find/.test(o);m&&(y.prototype[o]=function(){var b=this.__wrapped__,E=f?[1]:arguments,N=b instanceof Ae,F=E[0],$=N||ke(b),U=function(Oe){var Re=m.apply(y,sr([Oe],E));return f&&X?Re[0]:Re};$&&l&&typeof F=="function"&&F.length!=1&&(N=$=!1);var X=this.__chain__,se=!!this.__actions__.length,pe=_&&!X,Ve=N&&!se;if(!_&&$){b=Ve?b:new Ae(this);var he=r.apply(b,E);return he.__actions__.push({func:Xa,args:[U],thisArg:t}),new Ht(he,X)}return pe&&Ve?r.apply(this,E):(he=this.thru(U),pe?f?he.value()[0]:he.value():he)})}),jt(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ca[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var m=arguments;if(f&&!this.__chain__){var _=this.value();return o.apply(ke(_)?_:[],m)}return this[l](function(b){return o.apply(ke(b)?b:[],m)})}}),En(Ae.prototype,function(r,o){var l=y[o];if(l){var f=l.name+"";$e.call(gi,f)||(gi[f]=[]),gi[f].push({name:o,func:l})}}),gi[Wa(t,v).name]=[{name:"wrapper",func:t}],Ae.prototype.clone=rS,Ae.prototype.reverse=iS,Ae.prototype.value=oS,y.prototype.at=DV,y.prototype.chain=IV,y.prototype.commit=MV,y.prototype.next=PV,y.prototype.plant=FV,y.prototype.reverse=$V,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=zV,y.prototype.first=y.prototype.head,ko&&(y.prototype[ko]=LV),y},pi=ME();Rr?((Rr.exports=pi)._=pi,Bl._=pi):dt._=pi}).call(vi)}(da,da.exports);var Ye=da.exports;const Sv={class:"grid-overlay-container"},hu=n.defineComponent({__name:"PlAgOverlayLoading",props:{params:{}},setup(i){return(e,t)=>(n.openBlock(),n.createElementBlock("div",Sv,[e.params.notReady?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[0]||(t[0]=n.createElementVNode("div",{class:"grid-icon-cat-in-bag"},null,-1)),t[1]||(t[1]=n.createElementVNode("span",{class:"text-subtitle-m"},"Not calculated",-1))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[2]||(t[2]=n.createElementVNode("div",{class:"mask-24 mask-loading grid-mask-loading"},null,-1)),t[3]||(t[3]=n.createElementVNode("span",{class:"text-subtitle-m"},"Loading",-1))],64))]))}}),Tv={},Vv={class:"grid-overlay-container"};function Nv(i,e){return n.openBlock(),n.createElementBlock("div",Vv,e[0]||(e[0]=[n.createElementVNode("div",{class:"grid-icon-sad-cat"},null,-1),n.createElementVNode("span",{class:"text-subtitle-m"},"Empty",-1)]))}const mu=ll(Tv,[["render",Nv]]);async function Bv(i,e,t){throw Error("not implemented")}function Ov(i){return i.axesSpec.filter(e=>{var t;return((t=e.annotations)==null?void 0:t["pl7.app/axisNature"])==="heterogeneous"})}function Av(i,e){const t=[];for(const a of e)if(i[a].type==="column"){const s=Ov(i[a].spec);for(const c of s){if(c.type!=="String"){console.warn("heterogeneous axis with string type expected, got",c,"skipping");continue}const d=od(c),u=i.findIndex(p=>Ye.isEqual(p.id,d));if(u===-1)throw console.error("axis not found",a,d,i),Error("axis not found");t.push({columnIdx:a,axisIdx:u})}}return t}const gu=(i,e)=>(i+e).toString();function Rv(i,e,t,a,s,c){if(i.length>1)throw Error("hColumns.length > 1 is not supported");const d=i[0];let u=-1,p=-1;for(let x=0;x<c.length;++x)c[x]===d.axisIdx&&(u=x),c[x]===d.columnIdx&&(p=x);const h=(()=>{const R=a[u].data.filter(T=>T!==null);return Array.from(new Set(R))})();h.sort(),p>u?(t.splice(p,1),t.splice(u,1)):(t.splice(u,1),t.splice(p,1));const g=Dv(s,a,u,p,h,e.rows);for(let x=0;x<h.length;++x){const R=h[x],T=R+"@"+x;t.push({colId:T,field:gu(a.length,x),headerName:R,valueFormatter:yu})}return{rowModelType:"clientSide",columnDefs:t,rowData:g}}function Dv(i,e,t,a,s,c){const d=new Map;let u=0;for(let h=0;h<c;h++){const g={};for(let k=0;k<e.length;++k){if(k===t||k===a)continue;const S=i[k].toString();g[S]=e[k].data[h]}let x;const R=Ci(Object.values(g))??"";d.has(R)?x=d.get(R):(d.set(R,g),x=g,x.id=u.toString(),u++);const T=s.indexOf(e[t].data[h]);if(T===-1)throw Error("index not found");const C=gu(e.length,T);x[C]=e[a].data[h]}return Array.from(d.values())}function Iv(i){return Ci({type:i.type,id:i.id})}function Mv(i){return JSON.parse(i)}const yu=i=>i?i.value===void 0?"NULL":i.value===null?"NA":i.value.toString():"ERROR";function Pv(i,e){var t,a;return{colId:Iv(e),field:i.toString(),headerName:((a=(t=e.spec.annotations)==null?void 0:t["pl7.app/label"])==null?void 0:a.trim())??"Unlabeled "+e.type+" "+i.toString(),lockPosition:e.type==="axis",valueFormatter:yu,cellDataType:(s=>{switch(s){case"Int":case"Long":case"Float":case"Double":return"number";case"String":case"Bytes":return"text";default:throw Error(`unsupported data type: ${s}`)}})(e.type==="axis"?e.spec.type:e.spec.valueType)}}function _u(i,e){switch(e){case"Int":return i;case"Long":return typeof i=="bigint"?Number(i):i;case"Float":return i;case"Double":return i;case"String":return i;case"Bytes":return Buffer.from(i).toString("hex");default:throw Error(`unsupported data type: ${e}`)}}function wu(i){const e=[];return Ho(i,t=>(e.push(t),t)),e}async function Lv(i,e,t){return t.length?(await i.findColumns(e,{columnFilter:{name:["pl7.app/label"]},compatibleWith:Ye.uniqWith(t.map(s=>Cs(s.spec.axesSpec).map(Ye.cloneDeep)).flat(),Ye.isEqual),strictlyCompatible:!0})).hits.filter(s=>s.spec.axesSpec.length===1):[]}async function Fv(i,e,t){const a=wu(t),c=(await Lv(i,e,a)).filter(d=>!Ye.find(a,u=>d.columnId===u.columnId));return c.length===0?t:{type:"outer",primary:t,secondary:c.map(d=>({type:"column",column:d}))}}async function $v(i,e,t,a){const s=t.filter(g=>g.type!=="Bytes"),c=wu(a),d=s.map(g=>[]),u=s.map(g=>null);for(let g=0;g<c.length;++g){const x=Cs(c[g].spec.axesSpec);for(let R=0;R<x.length;++R){const T=Ye.findIndex(s,C=>Ye.isEqual(C,x[R]));T===-1||u[T]||(x.length===1&&c[g].spec.name==="pl7.app/label"?(d[T]=[[g,R]],u[T]=c[g].columnId):d[T].push([g,R]))}}for(let g=s.length-1;g>=0;--g)d[g].length||(u.splice(g,1),d.splice(g,1),s.splice(g,1));const p=100,h=s.map(g=>new Set);e:for(let g=s.length-1;g>=0;--g){for(const[x,R]of d[g]){const T=await i.getUniqueValues(e,{columnId:c[x].columnId,...!u[g]&&{axis:Ye.cloneDeep(s[g])},filters:[],limit:p});if(T.overflow){u.splice(g,1),d.splice(g,1),s.splice(g,1);continue e}const C=T.values.type;for(const k of T.values.data)if(!(id(k,C)||k===null)&&(h[g].add(_u(k,C)),h[g].size===p)){u.splice(g,1),d.splice(g,1),s.splice(g,1);continue e}}if(!h[g].size){u.splice(g,1),d.splice(g,1),s.splice(g,1);continue e}}return s.map((g,x)=>{const R=[...h[x]].map(C=>({value:C,text:C.toString()})),T=R[0].value;return{axis:Ye.cloneDeep(g),...u[x]&&{column:u[x]},options:R,defaultValue:T}})}function zv(i,e){const t=e.length,a=[];for(let s=0;s<e[0].data.length;++s){const c={};for(let d=0;d<t;++d){const u=i[d].toString(),p=e[d].data[s],h=e[d].type;Tm(e[d].absent,s)?c[u]=void 0:id(p,h)||p===null?c[u]=null:c[u]=_u(p,h)}c.id=s.toString(),a.push(c)}return a}const Zv=i=>i.type==="column"&&i.spec.axesSpec.length===1&&i.spec.name==="pl7.app/label";async function Uv(i,e,t,a){const s=await e.getSpec(t),c=[...s.keys()].filter(T=>!Ye.find(a,C=>Ye.isEqual(C.axis,s[T].id)||Ye.isEqual(C.column,s[T].id))),d=Ye.cloneDeep(c),u=Av(s,c);for(let T=c.length-1;T>=0;--T){const C=c[T];if(!Zv(s[C]))continue;const k=Cs(s[C].spec.axesSpec)[0],S=Ye.findIndex(c,v=>Ye.isEqual(s[v].id,k));if(S!==-1){c[S]=C;for(const v of u)v.axisIdx===C&&(v.axisIdx=S);c.splice(T,1),d.splice(T,1)}}const p=await e.getShape(t),h=p.rows,g=d.map(T=>Pv(T,s[T]));if(u.length>1&&console.warn("Currently, only one heterogeneous axis is supported in the table, got",u.length," transposition will not be applied."),u.length===1)return Rv(u,p,g,await e.getData(t,c),d,c);let x;return{rowModelType:"infinite",columnDefs:g,datasource:{rowCount:h,getRows:async T=>{i.setGridOption("loading",!0);try{if(h==0){T.successCallback([],h),i.setGridOption("loading",!1),i.showNoRowsOverlay();return}if(x&&!Ye.isEqual(x.sortModel,T.sortModel)){x=void 0,T.failCallback();return}x=T;const C=T.endRow-T.startRow;let k=[];if(C>0){const S=await e.getData(t,c,{offset:T.startRow,length:C});k=zv(d,S)}T.successCallback(k,p.rows),i.setGridOption("loading",!1),i.autoSizeAllColumns()}catch{T.failCallback()}}}}}const jv={class:"ap-ag-data-table-container"},Wv={key:0,class:"ap-ag-data-table-sheets"},Hv=ll(n.defineComponent({__name:"PlAgDataTable",props:n.mergeModels({settings:{}},{modelValue:{default:{gridState:{}}},modelModifiers:{}}),emits:["update:modelValue"],setup(i){_r.ModuleRegistry.registerModules([Mo.ClientSideRowModelModule,zc.ClipboardModule,$c.InfiniteRowModelModule,Zc.RangeSelectionModule]);const e=n.useModel(i,"modelValue"),t=i,{settings:a}=n.toRefs(t);n.watch(()=>a.value,async(C,k)=>{if(C.sourceType!=="pframe"||!C.pFrame||!C.join||k&&k.sourceType==="pframe"&&Ye.isEqual(C.pFrame,k.pFrame)&&Ye.isEqual(C.join,k.join))return;const S=window.platforma;if(!S)throw Error("platforma not set");const v=S.pFrameDriver;if(!v)throw Error("platforma.pFrameDriver not set");const I=await Fv(v,C.pFrame,C.join),K=e.value;K.pTableParams||(K.pTableParams={sorting:[],filters:[]}),K.pTableParams.join=I,e.value=K});const s=bu(()=>a.value.sourceType,async C=>{var S;const k=a.value.sourceType;switch(k){case"pframe":{const v=window.platforma;if(!v)throw Error("platforma not set");const I=v.pFrameDriver;if(!I)throw Error("platforma.pFrameDriver not set");if(!a.value.pFrame)return[];const K=a.value.pFrame,j=(S=e.value.pTableParams)==null?void 0:S.join;return j?await $v(I,K,a.value.sheetAxes,j):[]}case"ptable":return a.value.sheets??[];case"xsv":return[];default:throw Error(`unsupported source type: ${k}`)}});function c(C){if(!(a.value.sourceType!=="ptable"&&a.value.sourceType!=="pframe"))return(C==null?void 0:C.sortModel.map(k=>({column:Mv(k.colId),ascending:k.sort==="asc",naAndAbsentAreLeastValues:!0})))??[]}const d=n.computed({get:()=>{const C=e.value;return{columnOrder:C.gridState.columnOrder,sort:C.gridState.sort}},set:C=>{const k=e.value,S=x.rowModelType==="clientSide"?void 0:c(C.sort);k.gridState.columnOrder=C.columnOrder,k.gridState.sort=C.sort,(a.value.sourceType==="ptable"||a.value.sourceType==="pframe")&&(k.pTableParams||(k.pTableParams={sorting:[],filters:[]}),k.pTableParams.sorting=S),e.value=k}}),u=C=>Ci(C);function p(C){var k;if(!(a.value.sourceType!=="ptable"&&a.value.sourceType!=="pframe"))return((k=s.value)==null?void 0:k.map(S=>({type:"bySingleColumn",column:S.column?{type:"column",id:S.column}:{type:"axis",id:S.axis},predicate:{operator:"Equal",reference:C[u(S.axis)]}})))??[]}const h=n.computed({get:()=>e.value.gridState.sheets??{},set:C=>{const k=p(C),S=e.value;S.gridState.sheets=C,(a.value.sourceType==="ptable"||a.value.sourceType==="pframe")&&(S.pTableParams||(S.pTableParams={sorting:[],filters:[]}),S.pTableParams.filters=k),e.value=S}});n.watch(()=>[a.value,s.value],(C,k)=>{const[S,v]=C;if(!v)return;if(k){const[K,j]=k;if((S.sourceType==="ptable"||S.sourceType==="pframe")&&S.sourceType===(K==null?void 0:K.sourceType)&&Ye.isEqual(v,j))return}if(S.sourceType!=="ptable"&&S.sourceType!=="pframe"){h.value={};return}const I=h.value;for(const K of v){const j=u(K.axis);I[j]||(I[j]=K.defaultValue??K.options[0].value)}h.value=I},{immediate:!0});const g=n.shallowRef(),x={animateRows:!1,suppressColumnMoveAnimation:!0,cellSelection:!0,initialState:e.value.gridState,onGridReady:C=>{g.value=C.api},onStateUpdated:C=>{d.value={columnOrder:C.state.columnOrder,sort:C.state.sort}},autoSizeStrategy:{type:"fitCellContents"},onRowDataUpdated:C=>{C.api.autoSizeAllColumns()},maxBlocksInCache:1e4,cacheBlockSize:100,getRowId:C=>C.data.id,loading:!0,loadingOverlayComponentParams:{notReady:!0},loadingOverlayComponent:hu,noRowsOverlayComponent:mu},R=n.ref(0);n.watch(()=>[g.value,d.value],(C,k)=>{if(Ye.isEqual(C,k))return;const[S,v]=C;if(!S)return;const I=S.getState();Ye.isEqual(v.columnOrder,I.columnOrder)&&Ye.isEqual(v.sort,I.sort)||(x.initialState=v,++R.value)});const T=(C,k)=>{const S=h.value;S[C]!==k&&(S[C]=k,h.value=S)};return n.watch(()=>[g.value,a.value,s.value],async(C,k)=>{if(Ye.isEqual(C,k))return;const[S,v,I]=C;if(!S)return;const K=window.platforma;if(!K)throw Error("platforma not set");const j=v.sourceType;switch(j){case"pframe":case"ptable":{const z=K.pFrameDriver;if(!z)throw Error("platforma.pFrameDriver not set");const W=v.pTable;if(!W||!I)return S.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[],rowData:[]});const O=await Uv(S,z,W,I);return S.updateGridOptions({loading:O.rowModelType==="infinite",loadingOverlayComponentParams:{notReady:!1},...O})}case"xsv":{const z=K.blobDriver;if(!z)throw Error("platforma.blobDriver not set");const W=v.xsvFile;if(!(W!=null&&W.ok)||!W.value)return S.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!0},columnDefs:[],rowData:[]});const O=await Bv(S,z,W.value);return S.updateGridOptions({loading:!0,loadingOverlayComponentParams:{notReady:!1},...O})}default:throw Error(`unsupported source type: ${j}`)}}),(C,k)=>(n.openBlock(),n.createElementBlock("div",jv,[n.createVNode(n.Transition,{name:"ap-ag-data-table-sheets-transition"},{default:n.withCtx(()=>[n.unref(s).value&&n.unref(s).value.length>0?(n.openBlock(),n.createElementBlock("div",Wv,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s).value,(S,v)=>(n.openBlock(),n.createBlock(n.unref(Kd),{key:v,"model-value":h.value[u(S.axis)],options:S.options,"onUpdate:modelValue":I=>T(u(S.axis),I)},null,8,["model-value","options","onUpdate:modelValue"]))),128))])):n.createCommentVNode("",!0)]),_:1}),n.createVNode(n.unref(fh.AgGridVue),{class:"ap-ag-data-table-grid","grid-options":x})]))}}),[["__scopeId","data-v-c7982bee"]]),qv={key:1,class:"alert-error"},Gv={key:2},Kv=n.defineComponent({__name:"ValueOrErrorsComponent",props:{valueOrError:{}},setup(i){const e=i,t=n.computed(()=>e.valueOrError&&e.valueOrError.ok?e.valueOrError.value:void 0),a=n.computed(()=>e.valueOrError&&!e.valueOrError.ok?e.valueOrError.errors:void 0),s=n.computed(()=>t.value===void 0&&a.value===void 0);return(c,d)=>(n.openBlock(),n.createElementBlock("div",null,[t.value!==void 0?n.renderSlot(c.$slots,"default",n.normalizeProps(n.mergeProps({key:0},{value:t.value}))):n.createCommentVNode("",!0),a.value?(n.openBlock(),n.createElementBlock("div",qv,n.toDisplayString(a.value),1)):n.createCommentVNode("",!0),s.value?(n.openBlock(),n.createElementBlock("div",Gv,"Unresolved")):n.createCommentVNode("",!0)]))}}),ua=new Map;function Yv(i,e){const t=n.getCurrentScope()??n.effectScope(),a=t.run(()=>(n.onScopeDispose(()=>{ua.delete(i)}),n.reactive(e())));return a[Symbol.dispose]=()=>{t.stop()},a}function Jv(i){const e=Symbol();return()=>(ua.has(e)||ua.set(e,Yv(e,i)),ua.get(e))}function Xv(i){return n.computed(()=>{try{return jc(i())}catch(e){return{errors:[String(e)],value:void 0}}})}function bu(i,e,t){const a=n.ref(0),s=n.reactive({loading:n.computed(()=>a.value>0),loadingRef:a,value:void 0,error:void 0}),c=mh(e);return n.watch(i,async d=>{s.error=void 0,a.value++,c(d).then(u=>{u.ok&&(s.value=u.value)}).catch(u=>{s.value=void 0,s.error=u}).finally(()=>{a.value--})},Object.assign({immediate:!0,deep:!0},t??{})),s}const ni=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ku=new Set,cl=typeof process=="object"&&process?process:{},xu=(i,e,t,a)=>{typeof cl.emitWarning=="function"?cl.emitWarning(i,e,t,a):console.error(`[${t}] ${e}: ${i}`)};let fa=globalThis.AbortController,vu=globalThis.AbortSignal;if(typeof fa>"u"){vu=class{constructor(){Le(this,"onabort");Le(this,"_onabort",[]);Le(this,"reason");Le(this,"aborted",!1)}addEventListener(a,s){this._onabort.push(s)}},fa=class{constructor(){Le(this,"signal",new vu);e()}abort(a){var s,c;if(!this.signal.aborted){this.signal.reason=a,this.signal.aborted=!0;for(const d of this.signal._onabort)d(a);(c=(s=this.signal).onabort)==null||c.call(s,a)}}};let i=((Eu=cl.env)==null?void 0:Eu.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{i&&(i=!1,xu("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 Qv=i=>!ku.has(i),rr=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),Cu=i=>rr(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?pa:null:null;class pa extends Array{constructor(e){super(e),this.fill(0)}}const Vr=class Vr{constructor(e,t){Le(this,"heap");Le(this,"length");if(!w(Vr,ri))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){const t=Cu(e);if(!t)return[];fe(Vr,ri,!0);const a=new Vr(e,t);return fe(Vr,ri,!1),a}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};ri=new WeakMap,Me(Vr,ri,!1);let dl=Vr;const pl=class pl{constructor(e){Me(this,Y);Me(this,on);Me(this,At);Me(this,an);Me(this,sn);Me(this,ii);Me(this,oi);Le(this,"ttl");Le(this,"ttlResolution");Le(this,"ttlAutopurge");Le(this,"updateAgeOnGet");Le(this,"updateAgeOnHas");Le(this,"allowStale");Le(this,"noDisposeOnSet");Le(this,"noUpdateTTL");Le(this,"maxEntrySize");Le(this,"sizeCalculation");Le(this,"noDeleteOnFetchRejection");Le(this,"noDeleteOnStaleGet");Le(this,"allowStaleOnFetchAbort");Le(this,"allowStaleOnFetchRejection");Le(this,"ignoreFetchAbort");Me(this,rt);Me(this,ln);Me(this,nt);Me(this,Ue);Me(this,we);Me(this,bt);Me(this,Rt);Me(this,mt);Me(this,st);Me(this,cn);Me(this,lt);Me(this,dn);Me(this,un);Me(this,Dt);Me(this,fn);Me(this,ir);Me(this,kt);Me(this,Nr,()=>{});Me(this,An,()=>{});Me(this,uo,()=>{});Me(this,It,()=>!1);Me(this,Br,e=>{});Me(this,ai,(e,t,a)=>{});Me(this,fo,(e,t,a,s)=>{if(a||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Le(this,Su,"LRUCache");const{max:t=0,ttl:a,ttlResolution:s=1,ttlAutopurge:c,updateAgeOnGet:d,updateAgeOnHas:u,allowStale:p,dispose:h,disposeAfter:g,noDisposeOnSet:x,noUpdateTTL:R,maxSize:T=0,maxEntrySize:C=0,sizeCalculation:k,fetchMethod:S,memoMethod:v,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:K,allowStaleOnFetchRejection:j,allowStaleOnFetchAbort:z,ignoreFetchAbort:W}=e;if(t!==0&&!rr(t))throw new TypeError("max option must be a nonnegative integer");const O=t?Cu(t):Array;if(!O)throw new Error("invalid max value: "+t);if(fe(this,on,t),fe(this,At,T),this.maxEntrySize=C||w(this,At),this.sizeCalculation=k,this.sizeCalculation){if(!w(this,At)&&!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(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(fe(this,oi,v),S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,ii,S),fe(this,ir,!!S),fe(this,nt,new Map),fe(this,Ue,new Array(t).fill(void 0)),fe(this,we,new Array(t).fill(void 0)),fe(this,bt,new O(t)),fe(this,Rt,new O(t)),fe(this,mt,0),fe(this,st,0),fe(this,cn,dl.create(t)),fe(this,rt,0),fe(this,ln,0),typeof h=="function"&&fe(this,an,h),typeof g=="function"?(fe(this,sn,g),fe(this,lt,[])):(fe(this,sn,void 0),fe(this,lt,void 0)),fe(this,fn,!!w(this,an)),fe(this,kt,!!w(this,sn)),this.noDisposeOnSet=!!x,this.noUpdateTTL=!!R,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!j,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(w(this,At)!==0&&!rr(w(this,At)))throw new TypeError("maxSize must be a positive integer if specified");if(!rr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ie(this,Y,sh).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!K,this.updateAgeOnGet=!!d,this.updateAgeOnHas=!!u,this.ttlResolution=rr(s)||s===0?s:1,this.ttlAutopurge=!!c,this.ttl=a||0,this.ttl){if(!rr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ie(this,Y,Mc).call(this)}if(w(this,on)===0&&this.ttl===0&&w(this,At)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,on)&&!w(this,At)){const B="LRU_CACHE_UNBOUNDED";Qv(B)&&(ku.add(B),xu("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,pl))}}static unsafeExposeInternals(e){return{starts:w(e,un),ttls:w(e,Dt),sizes:w(e,dn),keyMap:w(e,nt),keyList:w(e,Ue),valList:w(e,we),next:w(e,bt),prev:w(e,Rt),get head(){return w(e,mt)},get tail(){return w(e,st)},free:w(e,cn),isBackgroundFetch:t=>{var a;return ie(a=e,Y,We).call(a,t)},backgroundFetch:(t,a,s,c)=>{var d;return ie(d=e,Y,ls).call(d,t,a,s,c)},moveToTail:t=>{var a;return ie(a=e,Y,Io).call(a,t)},indexes:t=>{var a;return ie(a=e,Y,mr).call(a,t)},rindexes:t=>{var a;return ie(a=e,Y,gr).call(a,t)},isStale:t=>{var a;return w(a=e,It).call(a,t)}}}get max(){return w(this,on)}get maxSize(){return w(this,At)}get calculatedSize(){return w(this,ln)}get size(){return w(this,rt)}get fetchMethod(){return w(this,ii)}get memoMethod(){return w(this,oi)}get dispose(){return w(this,an)}get disposeAfter(){return w(this,sn)}getRemainingTTL(e){return w(this,nt).has(e)?1/0:0}*entries(){for(const e of ie(this,Y,mr).call(this))w(this,we)[e]!==void 0&&w(this,Ue)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield[w(this,Ue)[e],w(this,we)[e]])}*rentries(){for(const e of ie(this,Y,gr).call(this))w(this,we)[e]!==void 0&&w(this,Ue)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield[w(this,Ue)[e],w(this,we)[e]])}*keys(){for(const e of ie(this,Y,mr).call(this)){const t=w(this,Ue)[e];t!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield t)}}*rkeys(){for(const e of ie(this,Y,gr).call(this)){const t=w(this,Ue)[e];t!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield t)}}*values(){for(const e of ie(this,Y,mr).call(this))w(this,we)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield w(this,we)[e])}*rvalues(){for(const e of ie(this,Y,gr).call(this))w(this,we)[e]!==void 0&&!ie(this,Y,We).call(this,w(this,we)[e])&&(yield w(this,we)[e])}[(Tu=Symbol.iterator,Su=Symbol.toStringTag,Tu)](){return this.entries()}find(e,t={}){for(const a of ie(this,Y,mr).call(this)){const s=w(this,we)[a],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;if(c!==void 0&&e(c,w(this,Ue)[a],this))return this.get(w(this,Ue)[a],t)}}forEach(e,t=this){for(const a of ie(this,Y,mr).call(this)){const s=w(this,we)[a],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;c!==void 0&&e.call(t,c,w(this,Ue)[a],this)}}rforEach(e,t=this){for(const a of ie(this,Y,gr).call(this)){const s=w(this,we)[a],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;c!==void 0&&e.call(t,c,w(this,Ue)[a],this)}}purgeStale(){let e=!1;for(const t of ie(this,Y,gr).call(this,{allowStale:!0}))w(this,It).call(this,t)&&(ie(this,Y,yr).call(this,w(this,Ue)[t],"expire"),e=!0);return e}info(e){const t=w(this,nt).get(e);if(t===void 0)return;const a=w(this,we)[t],s=ie(this,Y,We).call(this,a)?a.__staleWhileFetching:a;if(s===void 0)return;const c={value:s};if(w(this,Dt)&&w(this,un)){const d=w(this,Dt)[t],u=w(this,un)[t];if(d&&u){const p=d-(ni.now()-u);c.ttl=p,c.start=Date.now()}}return w(this,dn)&&(c.size=w(this,dn)[t]),c}dump(){const e=[];for(const t of ie(this,Y,mr).call(this,{allowStale:!0})){const a=w(this,Ue)[t],s=w(this,we)[t],c=ie(this,Y,We).call(this,s)?s.__staleWhileFetching:s;if(c===void 0||a===void 0)continue;const d={value:c};if(w(this,Dt)&&w(this,un)){d.ttl=w(this,Dt)[t];const u=ni.now()-w(this,un)[t];d.start=Math.floor(Date.now()-u)}w(this,dn)&&(d.size=w(this,dn)[t]),e.unshift([a,d])}return e}load(e){this.clear();for(const[t,a]of e){if(a.start){const s=Date.now()-a.start;a.start=ni.now()-s}this.set(t,a.value,a)}}set(e,t,a={}){var R,T,C,k,S;if(t===void 0)return this.delete(e),this;const{ttl:s=this.ttl,start:c,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:p}=a;let{noUpdateTTL:h=this.noUpdateTTL}=a;const g=w(this,fo).call(this,e,t,a.size||0,u);if(this.maxEntrySize&&g>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),ie(this,Y,yr).call(this,e,"set"),this;let x=w(this,rt)===0?void 0:w(this,nt).get(e);if(x===void 0)x=w(this,rt)===0?w(this,st):w(this,cn).length!==0?w(this,cn).pop():w(this,rt)===w(this,on)?ie(this,Y,ss).call(this,!1):w(this,rt),w(this,Ue)[x]=e,w(this,we)[x]=t,w(this,nt).set(e,x),w(this,bt)[w(this,st)]=x,w(this,Rt)[x]=w(this,st),fe(this,st,x),as(this,rt)._++,w(this,ai).call(this,x,g,p),p&&(p.set="add"),h=!1;else{ie(this,Y,Io).call(this,x);const v=w(this,we)[x];if(t!==v){if(w(this,ir)&&ie(this,Y,We).call(this,v)){v.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:I}=v;I!==void 0&&!d&&(w(this,fn)&&((R=w(this,an))==null||R.call(this,I,e,"set")),w(this,kt)&&((T=w(this,lt))==null||T.push([I,e,"set"])))}else d||(w(this,fn)&&((C=w(this,an))==null||C.call(this,v,e,"set")),w(this,kt)&&((k=w(this,lt))==null||k.push([v,e,"set"])));if(w(this,Br).call(this,x),w(this,ai).call(this,x,g,p),w(this,we)[x]=t,p){p.set="replace";const I=v&&ie(this,Y,We).call(this,v)?v.__staleWhileFetching:v;I!==void 0&&(p.oldValue=I)}}else p&&(p.set="update")}if(s!==0&&!w(this,Dt)&&ie(this,Y,Mc).call(this),w(this,Dt)&&(h||w(this,uo).call(this,x,s,c),p&&w(this,An).call(this,p,x)),!d&&w(this,kt)&&w(this,lt)){const v=w(this,lt);let I;for(;I=v==null?void 0:v.shift();)(S=w(this,sn))==null||S.call(this,...I)}return this}pop(){var e;try{for(;w(this,rt);){const t=w(this,we)[w(this,mt)];if(ie(this,Y,ss).call(this,!0),ie(this,Y,We).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(w(this,kt)&&w(this,lt)){const t=w(this,lt);let a;for(;a=t==null?void 0:t.shift();)(e=w(this,sn))==null||e.call(this,...a)}}}has(e,t={}){const{updateAgeOnHas:a=this.updateAgeOnHas,status:s}=t,c=w(this,nt).get(e);if(c!==void 0){const d=w(this,we)[c];if(ie(this,Y,We).call(this,d)&&d.__staleWhileFetching===void 0)return!1;if(w(this,It).call(this,c))s&&(s.has="stale",w(this,An).call(this,s,c));else return a&&w(this,Nr).call(this,c),s&&(s.has="hit",w(this,An).call(this,s,c)),!0}else s&&(s.has="miss");return!1}peek(e,t={}){const{allowStale:a=this.allowStale}=t,s=w(this,nt).get(e);if(s===void 0||!a&&w(this,It).call(this,s))return;const c=w(this,we)[s];return ie(this,Y,We).call(this,c)?c.__staleWhileFetching:c}async fetch(e,t={}){const{allowStale:a=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:c=this.noDeleteOnStaleGet,ttl:d=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:p=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:x=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:R=this.allowStaleOnFetchRejection,ignoreFetchAbort:T=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:k,forceRefresh:S=!1,status:v,signal:I}=t;if(!w(this,ir))return v&&(v.fetch="get"),this.get(e,{allowStale:a,updateAgeOnGet:s,noDeleteOnStaleGet:c,status:v});const K={allowStale:a,updateAgeOnGet:s,noDeleteOnStaleGet:c,ttl:d,noDisposeOnSet:u,size:p,sizeCalculation:h,noUpdateTTL:g,noDeleteOnFetchRejection:x,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:C,ignoreFetchAbort:T,status:v,signal:I};let j=w(this,nt).get(e);if(j===void 0){v&&(v.fetch="miss");const z=ie(this,Y,ls).call(this,e,j,K,k);return z.__returned=z}else{const z=w(this,we)[j];if(ie(this,Y,We).call(this,z)){const Z=a&&z.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",Z&&(v.returnedStale=!0)),Z?z.__staleWhileFetching:z.__returned=z}const W=w(this,It).call(this,j);if(!S&&!W)return v&&(v.fetch="hit"),ie(this,Y,Io).call(this,j),s&&w(this,Nr).call(this,j),v&&w(this,An).call(this,v,j),z;const O=ie(this,Y,ls).call(this,e,j,K,k),P=O.__staleWhileFetching!==void 0&&a;return v&&(v.fetch=W?"stale":"refresh",P&&W&&(v.returnedStale=!0)),P?O.__staleWhileFetching:O.__returned=O}}async forceFetch(e,t={}){const a=await this.fetch(e,t);if(a===void 0)throw new Error("fetch() returned undefined");return a}memo(e,t={}){const a=w(this,oi);if(!a)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:c,...d}=t,u=this.get(e,d);if(!c&&u!==void 0)return u;const p=a(e,u,{options:d,context:s});return this.set(e,p,d),p}get(e,t={}){const{allowStale:a=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:c=this.noDeleteOnStaleGet,status:d}=t,u=w(this,nt).get(e);if(u!==void 0){const p=w(this,we)[u],h=ie(this,Y,We).call(this,p);return d&&w(this,An).call(this,d,u),w(this,It).call(this,u)?(d&&(d.get="stale"),h?(d&&a&&p.__staleWhileFetching!==void 0&&(d.returnedStale=!0),a?p.__staleWhileFetching:void 0):(c||ie(this,Y,yr).call(this,e,"expire"),d&&a&&(d.returnedStale=!0),a?p:void 0)):(d&&(d.get="hit"),h?p.__staleWhileFetching:(ie(this,Y,Io).call(this,u),s&&w(this,Nr).call(this,u),p))}else d&&(d.get="miss")}delete(e){return ie(this,Y,yr).call(this,e,"delete")}clear(){return ie(this,Y,Fc).call(this,"delete")}};on=new WeakMap,At=new WeakMap,an=new WeakMap,sn=new WeakMap,ii=new WeakMap,oi=new WeakMap,rt=new WeakMap,ln=new WeakMap,nt=new WeakMap,Ue=new WeakMap,we=new WeakMap,bt=new WeakMap,Rt=new WeakMap,mt=new WeakMap,st=new WeakMap,cn=new WeakMap,lt=new WeakMap,dn=new WeakMap,un=new WeakMap,Dt=new WeakMap,fn=new WeakMap,ir=new WeakMap,kt=new WeakMap,Y=new WeakSet,Mc=function(){const e=new pa(w(this,on)),t=new pa(w(this,on));fe(this,Dt,e),fe(this,un,t),fe(this,uo,(c,d,u=ni.now())=>{if(t[c]=d!==0?u:0,e[c]=d,d!==0&&this.ttlAutopurge){const p=setTimeout(()=>{w(this,It).call(this,c)&&ie(this,Y,yr).call(this,w(this,Ue)[c],"expire")},d+1);p.unref&&p.unref()}}),fe(this,Nr,c=>{t[c]=e[c]!==0?ni.now():0}),fe(this,An,(c,d)=>{if(e[d]){const u=e[d],p=t[d];if(!u||!p)return;c.ttl=u,c.start=p,c.now=a||s();const h=c.now-p;c.remainingTTL=u-h}});let a=0;const s=()=>{const c=ni.now();if(this.ttlResolution>0){a=c;const d=setTimeout(()=>a=0,this.ttlResolution);d.unref&&d.unref()}return c};this.getRemainingTTL=c=>{const d=w(this,nt).get(c);if(d===void 0)return 0;const u=e[d],p=t[d];if(!u||!p)return 1/0;const h=(a||s())-p;return u-h},fe(this,It,c=>{const d=t[c],u=e[c];return!!u&&!!d&&(a||s())-d>u})},Nr=new WeakMap,An=new WeakMap,uo=new WeakMap,It=new WeakMap,sh=function(){const e=new pa(w(this,on));fe(this,ln,0),fe(this,dn,e),fe(this,Br,t=>{fe(this,ln,w(this,ln)-e[t]),e[t]=0}),fe(this,fo,(t,a,s,c)=>{if(ie(this,Y,We).call(this,a))return 0;if(!rr(s))if(c){if(typeof c!="function")throw new TypeError("sizeCalculation must be a function");if(s=c(a,t),!rr(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,ai,(t,a,s)=>{if(e[t]=a,w(this,At)){const c=w(this,At)-e[t];for(;w(this,ln)>c;)ie(this,Y,ss).call(this,!0)}fe(this,ln,w(this,ln)+e[t]),s&&(s.entrySize=a,s.totalCalculatedSize=w(this,ln))})},Br=new WeakMap,ai=new WeakMap,fo=new WeakMap,mr=function*({allowStale:e=this.allowStale}={}){if(w(this,rt))for(let t=w(this,st);!(!ie(this,Y,Pc).call(this,t)||((e||!w(this,It).call(this,t))&&(yield t),t===w(this,mt)));)t=w(this,Rt)[t]},gr=function*({allowStale:e=this.allowStale}={}){if(w(this,rt))for(let t=w(this,mt);!(!ie(this,Y,Pc).call(this,t)||((e||!w(this,It).call(this,t))&&(yield t),t===w(this,st)));)t=w(this,bt)[t]},Pc=function(e){return e!==void 0&&w(this,nt).get(w(this,Ue)[e])===e},ss=function(e){var c,d;const t=w(this,mt),a=w(this,Ue)[t],s=w(this,we)[t];return w(this,ir)&&ie(this,Y,We).call(this,s)?s.__abortController.abort(new Error("evicted")):(w(this,fn)||w(this,kt))&&(w(this,fn)&&((c=w(this,an))==null||c.call(this,s,a,"evict")),w(this,kt)&&((d=w(this,lt))==null||d.push([s,a,"evict"]))),w(this,Br).call(this,t),e&&(w(this,Ue)[t]=void 0,w(this,we)[t]=void 0,w(this,cn).push(t)),w(this,rt)===1?(fe(this,mt,fe(this,st,0)),w(this,cn).length=0):fe(this,mt,w(this,bt)[t]),w(this,nt).delete(a),as(this,rt)._--,t},ls=function(e,t,a,s){const c=t===void 0?void 0:w(this,we)[t];if(ie(this,Y,We).call(this,c))return c;const d=new fa,{signal:u}=a;u==null||u.addEventListener("abort",()=>d.abort(u.reason),{signal:d.signal});const p={signal:d.signal,options:a,context:s},h=(k,S=!1)=>{const{aborted:v}=d.signal,I=a.ignoreFetchAbort&&k!==void 0;if(a.status&&(v&&!S?(a.status.fetchAborted=!0,a.status.fetchError=d.signal.reason,I&&(a.status.fetchAbortIgnored=!0)):a.status.fetchResolved=!0),v&&!I&&!S)return x(d.signal.reason);const K=T;return w(this,we)[t]===T&&(k===void 0?K.__staleWhileFetching?w(this,we)[t]=K.__staleWhileFetching:ie(this,Y,yr).call(this,e,"fetch"):(a.status&&(a.status.fetchUpdated=!0),this.set(e,k,p.options))),k},g=k=>(a.status&&(a.status.fetchRejected=!0,a.status.fetchError=k),x(k)),x=k=>{const{aborted:S}=d.signal,v=S&&a.allowStaleOnFetchAbort,I=v||a.allowStaleOnFetchRejection,K=I||a.noDeleteOnFetchRejection,j=T;if(w(this,we)[t]===T&&(!K||j.__staleWhileFetching===void 0?ie(this,Y,yr).call(this,e,"fetch"):v||(w(this,we)[t]=j.__staleWhileFetching)),I)return a.status&&j.__staleWhileFetching!==void 0&&(a.status.returnedStale=!0),j.__staleWhileFetching;if(j.__returned===j)throw k},R=(k,S)=>{var I;const v=(I=w(this,ii))==null?void 0:I.call(this,e,c,p);v&&v instanceof Promise&&v.then(K=>k(K===void 0?void 0:K),S),d.signal.addEventListener("abort",()=>{(!a.ignoreFetchAbort||a.allowStaleOnFetchAbort)&&(k(void 0),a.allowStaleOnFetchAbort&&(k=K=>h(K,!0)))})};a.status&&(a.status.fetchDispatched=!0);const T=new Promise(R).then(h,g),C=Object.assign(T,{__abortController:d,__staleWhileFetching:c,__returned:void 0});return t===void 0?(this.set(e,C,{...p.options,status:void 0}),t=w(this,nt).get(e)):w(this,we)[t]=C,C},We=function(e){if(!w(this,ir))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof fa},Lc=function(e,t){w(this,Rt)[t]=e,w(this,bt)[e]=t},Io=function(e){e!==w(this,st)&&(e===w(this,mt)?fe(this,mt,w(this,bt)[e]):ie(this,Y,Lc).call(this,w(this,Rt)[e],w(this,bt)[e]),ie(this,Y,Lc).call(this,w(this,st),e),fe(this,st,e))},yr=function(e,t){var s,c,d,u;let a=!1;if(w(this,rt)!==0){const p=w(this,nt).get(e);if(p!==void 0)if(a=!0,w(this,rt)===1)ie(this,Y,Fc).call(this,t);else{w(this,Br).call(this,p);const h=w(this,we)[p];if(ie(this,Y,We).call(this,h)?h.__abortController.abort(new Error("deleted")):(w(this,fn)||w(this,kt))&&(w(this,fn)&&((s=w(this,an))==null||s.call(this,h,e,t)),w(this,kt)&&((c=w(this,lt))==null||c.push([h,e,t]))),w(this,nt).delete(e),w(this,Ue)[p]=void 0,w(this,we)[p]=void 0,p===w(this,st))fe(this,st,w(this,Rt)[p]);else if(p===w(this,mt))fe(this,mt,w(this,bt)[p]);else{const g=w(this,Rt)[p];w(this,bt)[g]=w(this,bt)[p];const x=w(this,bt)[p];w(this,Rt)[x]=w(this,Rt)[p]}as(this,rt)._--,w(this,cn).push(p)}}if(w(this,kt)&&((d=w(this,lt))!=null&&d.length)){const p=w(this,lt);let h;for(;h=p==null?void 0:p.shift();)(u=w(this,sn))==null||u.call(this,...h)}return a},Fc=function(e){var t,a,s;for(const c of ie(this,Y,gr).call(this,{allowStale:!0})){const d=w(this,we)[c];if(ie(this,Y,We).call(this,d))d.__abortController.abort(new Error("deleted"));else{const u=w(this,Ue)[c];w(this,fn)&&((t=w(this,an))==null||t.call(this,d,u,e)),w(this,kt)&&((a=w(this,lt))==null||a.push([d,u,e]))}}if(w(this,nt).clear(),w(this,we).fill(void 0),w(this,Ue).fill(void 0),w(this,Dt)&&w(this,un)&&(w(this,Dt).fill(0),w(this,un).fill(0)),w(this,dn)&&w(this,dn).fill(0),fe(this,mt,0),fe(this,st,0),w(this,cn).length=0,fe(this,ln,0),fe(this,rt,0),w(this,kt)&&w(this,lt)){const c=w(this,lt);let d;for(;d=c==null?void 0:c.shift();)(s=w(this,sn))==null||s.call(this,...d)}};let ul=pl;const eC={cacheSize:15e6};class tC{constructor(e){Le(this,"_str");Le(this,"_rawJson");Le(this,"_zodSchema");Le(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 Or=class Or{constructor(e){Le(this,"fileDataCache");Le(this,"fileDataRefs",new Map);const t={...eC,...e??{}};this.fileDataCache=new ul({maxSize:t.cacheSize,fetchMethod:async a=>new tC(await Nm().blobDriver.getContent(a)),sizeCalculation:a=>a.bytes.length,dispose:(a,s)=>{this.fileDataRefs.delete(s)}})}getDataRef(e){const t=this.fileDataRefs.get(e);if(t!==void 0)return t;const a=n.shallowRef();return this.fileDataRefs.set(e,a),(async()=>{try{const s=await this.fileDataCache.fetch(e);a.value=s}catch(s){console.error(s)}})(),a}getContentBytes(e){if(e===void 0)return;const t=this.getDataRef(e);return n.computed(()=>{var a;return(a=t.value)==null?void 0:a.bytes})}getContentString(e){if(e===void 0)return;const t=this.getDataRef(e);return n.computed(()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.str})}getContentJson(e,t){if(e===void 0)return;const a=this.getDataRef(e);return n.computed(()=>{var s,c;return t===void 0?(s=a==null?void 0:a.value)==null?void 0:s.rawJson:(c=a==null?void 0:a.value)==null?void 0:c.validatedJson(t)})}static getContentBytes(e){return Or.globalInstance.getContentBytes(e)}static getContentString(e){return Or.globalInstance.getContentString(e)}static getContentJson(e,t){return Or.globalInstance.getContentJson(e,t)}};Le(Or,"globalInstance",new Or);let fl=Or;A.BlockLayout=Ev,A.ContextProvider=Dk,A.DataTable=l_,A.DemoData=gv,A.DropdownListItem=Qo,A.GridTable=uy,A.LongText=Gd,A.MaskIcon16=Wi,A.MaskIcon24=Cr,A.MultiError=us,A.PlAgDataTable=Hv,A.PlAgOverlayLoading=hu,A.PlAgOverlayNoRows=mu,A.PlAlert=M_,A.PlBlockPage=k_,A.PlBtnAccent=z_,A.PlBtnGhost=Pd,A.PlBtnGroup=c0,A.PlBtnLink=W_,A.PlBtnPrimary=Md,A.PlBtnSecondary=Hs,A.PlCheckbox=$w,A.PlCheckboxGroup=jw,A.PlChip=Qs,A.PlContainer=v_,A.PlDialogModal=Yd,A.PlDropdown=Xs,A.PlDropdownLine=Kd,A.PlDropdownMulti=Lw,A.PlDropdownRef=ew,A.PlFileDialog=Jd,A.PlFileInput=Rk,A.PlGrid=B_,A.PlLogView=ib,A.PlNumberField=vw,A.PlProgressBar=gw,A.PlRow=E_,A.PlSlideModal=Xw,A.PlSpacer=V_,A.PlTextArea=A0,A.PlTextField=jd,A.PlToggleSwitch=tb,A.PlTooltip=Zt,A.ReactiveFileContent=fl,A.Scrollable=E1,A.Slider=Wk,A.SliderRange=k1,A.SliderRangeTriple=c1,A.ThemeSwitcher=h_,A.UnresolvedError=ds,A.ValueOrErrorsComponent=Kv,A.activateAgGrid=ad,A.animate=Td,A.animateInfinite=cy,A.call=xd,A.computedResult=Xv,A.createModel=ys,A.debounce=Vd,A.defineApp=Om,A.defineStore=Jv,A.delay=vd,A.detectOutside=R0,A.ensureError=hs,A.eventListener=Ys,A.formatZodError=gs,A.getElementScrollPosition=Hd,A.identity=ps,A.isDefined=bh,A.isElementVisible=Wd,A.isJsonEqual=fs,A.isZodError=ms,A.listToOptions=dy,A.makeEaseInOut=ly,A.makeEaseOut=Sd,A.maskIcons16=hv,A.maskIcons24=mv,A.normalizeListOptions=Gr,A.notEmpty=Is,A.randomInt=Ed,A.randomString=sy,A.requestTick=Ms,A.scrollIntoView=Xo,A.showContextMenu=Fs,A.throttle=Ps,A.timeout=Cd,A.unwrapOptionalResult=wh,A.unwrapValueOrErrors=Uc,A.useClickOutside=Jo,A.useDraggable=Xk,A.useEventListener=Ge,A.useFormState=Yk,A.useHover=Ds,A.useInterval=Kk,A.useLabelNotch=vr,A.useLocalStorage=Ad,A.useMouse=Rs,A.useMouseCapture=Kn,A.usePosition=Ld,A.useQuery=Jk,A.useResizeObserver=fu,A.useScroll=Hk,A.useSdkPlugin=Es,A.useSortable=Gk,A.useTheme=Dd,A.useWatchFetch=bu,A.wrapOptionalResult=jc,A.wrapValueOrErrors=_h,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlDataTableState } from '@platforma-sdk/model';
|
|
2
1
|
import './ag-theme.css';
|
|
2
|
+
import type { PlDataTableState } from '@platforma-sdk/model';
|
|
3
3
|
import type { PlDataTableSettings } from './types';
|
|
4
4
|
declare let __VLS_typeProps: {
|
|
5
5
|
settings: Readonly<PlDataTableSettings>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlAgDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTable.vue"],"names":[],"mappings":"AAAA,OAqYO,gBAAgB,CAAC;AASxB,OAAO,KAAK,EAAU,gBAAgB,EAAqC,MAAM,sBAAsB,CAAC;AASxG,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,SAAS,CAAC;AAOrE,QAAA,IAAI,eAAe,EAAG;IACpB,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CACzC,CAAC;AAiUF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC7B,GAAG,OAAO,eAAe,CAAC;;;;;;AAgH3B,wBAOG"}
|