@platforma-sdk/ui-vue 1.8.0 → 1.8.2
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 +15 -0
- package/dist/lib.js +10 -7
- package/dist/lib.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/BlockLayout.vue +1 -1
- package/src/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue +2 -2
package/dist/lib.umd.cjs
CHANGED
|
@@ -14,7 +14,7 @@ ${e}}
|
|
|
14
14
|
${t}}
|
|
15
15
|
`,{css:l,id:"variables"}},dm=a=>Array.from(new Set(Object.values(a.getParams()).flat().map(e=>e==null?void 0:e.googleFont).filter(e=>typeof e=="string"))).sort(),Bl=async({root:a,part:e,scope:t,css:i})=>{let l=`:scope > style[data-ag-part="${e}"]`;t&&(l+=`[data-ag-scope="${t}"]`);let s=a.querySelector(l);if(!s){s=document.createElement("style"),s.dataset.agPart=e,t&&(s.dataset.agScope=t);const d=a.querySelectorAll(":scope > style[data-ag-part]"),u=d[d.length-1];u?u.insertAdjacentElement("afterend",s):a.firstElementChild?a.firstElementChild.insertAdjacentElement("beforebegin",s):a.appendChild(s)}if(s._agTextContent!==i)return s.textContent=i,s._agTextContent=i,gm(s)},md=(a,e)=>{for(const t of Array.from(e.querySelectorAll(`:scope > style[data-ag-scope="${a}"]`)))t.remove()},yd=new Set,um=async a=>{if(yd.has(a))return;yd.add(a);const e=`@import url('https://${bd}/css2?family=${encodeURIComponent(a)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
16
16
|
`;return Bl({css:e,part:`googleFont:${a}`,root:document.head})},bd="fonts.googleapis.com",gm=a=>new Promise(e=>{const t=()=>{a.removeEventListener("load",t),e()};a.addEventListener("load",t)}),pm=a=>a==null?String(a):`${typeof a} ${a}`,fm='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);& input{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;opacity:0;width:100%}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&.ag-checked{background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:active,&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&.ag-checked:after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&.ag-indeterminate{background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&.ag-checked:after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',hm=Ua("checkboxStyle","default").withAdditionalParams({checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxCheckedBackgroundColor:{ref:"accentColor"},checkboxCheckedBorderColor:{ref:"accentColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxIndeterminateBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:{ref:"backgroundColor"},radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}}).withCSS(fm),mm=Ua("colorScheme","light"),ym='.ag-icon:before{background-color:currentColor;content:"";display:block;height:var(--ag-icon-size);-webkit-mask-image:linear-gradient(#0000,#0000);mask-image:linear-gradient(#0000,#0000);-webkit-mask-size:contain;mask-size:contain;width:var(--ag-icon-size)}',vd={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-down":'<path d="m6 9 6 6 6-6"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',"small-up":'<path d="m18 15-6-6-6 6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},bm=(a={})=>{let e=ym;for(const t of Object.keys(vd)){const i=vm(t,a.strokeWidth||1.5);e+=`.ag-icon-${t}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }
|
|
17
|
-
`}return e},vm=(a,e)=>{const t=vd[a];if(!t)throw new Error(`Missing icon data for ${a}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon ag-icon-${a}" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${e}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+t+"</svg>"},wm=(a={})=>Ua("iconSet","quartz").withCSS(()=>bm(a)),xm=":where(input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)){-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}:where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}&.ag-ltr :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-left:var(--ag-input-padding-start)}&.ag-rtl :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-right:var(--ag-input-padding-start)}",_m=Ua("inputStyle","base").withAdditionalParams({inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"}}).withCSS(xm),km=ld(_m,"bordered").withParams({inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:{ref:"accentColor"}},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:{ref:"foregroundColor",mix:.06,onto:"backgroundColor"},inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),Cm='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex;.ag-tabs-header{flex:1}}.ag-tabs-close-button-wrapper{border:0;padding:var(--ag-spacing)}&.ag-ltr .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}&.ag-rtl .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}&.ag-ltr .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-left-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-right-color:var(--ag-tab-selected-border-color)}}}&.ag-rtl .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-right-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-left-color:var(--ag-tab-selected-border-color)}}}',Sm=Ua("tabStyle","base").withAdditionalParams({tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:"0",tabSelectedUnderlineTransitionDuration:"0",tabBarBorder:!1}).withCSS(Cm),Tm=ld(Sm,"quartz").withParams({tabBarBorder:!0,tabBarBackgroundColor:{ref:"foregroundColor",mix:.05},tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),Em=a=>om(a).withPart(hm),Nm=Em("quartz").withPart(mm).withPart(wm).withPart(Tm).withPart(()=>km).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function wd(){Jt.ModuleRegistry.registerModules([Ro.ClientSideRowModelModule,xf.InfiniteRowModelModule,Fc.ServerSideRowModelModule,_f.CsvExportModule,$c.ClipboardModule,Zc.RangeSelectionModule,kf.RichSelectModule,Cf.MenuModule,Sf.ExcelExportModule]);const a=Uh("AGGRID_LICENSE");a?(Qe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const xd=Nm.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#110529",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}),_d=Symbol("sdk-vue");function Vl(){return r.inject(_d)}function Bm(a,e){let t;wd();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=If(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([h,m])=>{const _=typeof m=="function"?m():m;return[h,r.markRaw(_)]}));t=Object.assign(d,{...u,getRoute(h){return p[h]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=r.reactive({loaded:!1,error:void 0,useApp(){return Ef(t,"App is not loaded")},install(s){s.provide(_d,this),i()}});return l}var Vm=Object.defineProperty,Mm=(a,e,t)=>e in a?Vm(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,zm=(a,e,t)=>Mm(a,e+"",t);function kd(a,e){if(a==null)throw Error("Empty (null | undefined) value");return a}function Am(a,e,t){const i=Math.min(e,t),l=Math.max(e,t);return a>=i&&a<=l}function Om(a){return new Promise(e=>setTimeout(e,a))}function Lm(a){return a()}function Ko(a,e,t){return e>a?e:a>t?t:a}function Cd(a,e){return e(a)}function Cn(a,e){if(a!=null)return e(a)}function Dm(a){if(a&&a.ok)return a.value}async function Im(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,t])=>[e,await t])))}const Sd=a=>a;function Rm(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function Pm(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Rm(65,91));return e}function jm(){return Pm(42)}function Wa(a){return a!==null&&typeof a=="object"}function Fm(a,e){return Object.keys(a).map(t=>e(a[t],t))}function Ml(a,e){return Wa(a)&&Wa(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>Ml(a[t],e[t])):a===e}function Ha(a){if(Array.isArray(a)){const e=[];for(let t=0;t<a.length;t++)e[t]=Ha(a[t]);return e}else if(Wa(a)){const e={};return Object.keys(a).forEach(t=>{e[t]=Ha(a[t])}),e}else return a}function $m(a){return Array.isArray(a)?Object.assign([],a):Wa(a)?Object.assign({},a):a}function Zm(a,e){const t={};for(const i in e)e[i]!==a[i]&&(t[i]=a[i]);return t}function Um(a,e,t){return Object.assign({},a,{[e]:t})}function Wm(a){return Object.entries(a).forEach(([e,t])=>{t instanceof Function&&(a[e]=t.bind(a))}),a}function Hm(a,e,t){return a[e]=t,a}function qm(a,e){return a[e]}function Gm(a,e){a={...a};const t=a[e];return delete a[e],[t,a]}function Ym(a,...e){return Object.assign({},...e.map(t=>({[t]:a[t]})))}function Km(a,...e){return e.map(t=>a[t])}function Jm(a,...e){const t=Object.assign({},a);return e.forEach(i=>delete t[i]),t}const zl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Wm,deepClone:Ha,deepEqual:Ml,getProp:qm,iSet:Um,isObject:Wa,map:Fm,omit:Jm,pick:Ym,pickValues:Km,setProp:Hm,shallowClone:$m,shallowDiff:Zm,shiftProp:Gm},Symbol.toStringTag,{value:"Module"}));function Qm(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}function Td(a,e,t){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const Xm=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ey=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ty=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ry=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Ed=(a,e)=>{let t=String(a);return typeof e=="string"||Array.isArray(e)?t=a.toLocaleString(e):e===!0&&(t=a.toLocaleString(void 0)),t};function Al(a,e){if(a=typeof a=="bigint"?Number(a):a,!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);Object.assign(e,{bits:!1,binary:!1});const t=e.bits?e.binary?ry:ty:e.binary?ey:Xm;if(e.signed&&a===0)return` 0 ${t[0]}`;const i=a<0,l=i?"-":e.signed?"+":"";if(i&&(a=-a),a<1){const p=Ed(a,e.locale);return l+p+" "+t[0]}const s=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),t.length-1);a/=(e.binary?1024:1e3)**s,a=Number(a.toPrecision(3));const d=Ed(Number(a),e.locale),u=t[s];return l+d+" "+u}const ny={class:"context-menu"},ay=["onClick"],oy=r.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(a,{emit:e}){const t=e,i=l=>{l.cb(),t("close")};return(l,s)=>(r.openBlock(),r.createElementBlock("div",ny,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.options,(d,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,onClick:r.withModifiers(p=>i(d),["stop"])},[r.createElementVNode("span",null,r.toDisplayString(d.text),1)],8,ay))),128))]))}}),Yr=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},iy=Yr(oy,[["__scopeId","data-v-12530966"]]);function Ol(a,e){a.preventDefault();const t=()=>{r.render(null,document.body)},i=r.h(iy,{options:e,onClose:()=>{t()}});r.render(i,document.body);const l=i.el;return l.style.top=a.clientY+"px",l.style.left=a.clientX+"px",document.addEventListener("click",s=>{l.contains(s.target)||t()}),t}const Nd=Symbol(),Jo=()=>r.inject(Nd),ly=["value"],sy={key:1},cy=r.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const t=e,i=a,l=r.reactive({edit:!1}),s=r.computed(()=>i.valueType),d=h=>{var m;let _=(m=h.target)==null?void 0:m.value;const C=r.unref(s),T=Lm(()=>C==="integer"?parseInt(_,10):C==="float"?Number(_):_);t("update:modelValue",T),l.edit=!1},u=r.ref(),p=h=>{!h.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(h,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"baseRef",ref:u,class:r.normalizeClass(["base-cell",{"base-cell__edit":l.edit}]),onClick:p},[l.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:h.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,ly)):(r.openBlock(),r.createElementBlock("div",sy,r.toDisplayString(h.modelValue),1))],2))}}),dy=["^data-row-index"],uy={key:0,class:"control-cell"},gy=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,t=Jo(),i=r.computed(()=>e.cell.column.valueType),l=h=>{Cn(t.settings.value.onUpdatedRow,m=>{const _=e.cell.row,C={..._.dataRow,[e.cell.id]:h};m({..._,dataRow:C})})},s=h=>{h.metaKey&&t.selectRow(e.cell.row.primaryKey)},d=(h,m)=>{if(h.type==="contextmenu")h.preventDefault();else return;const _=t.settings??{},C=[],{onSelectedRows:T,onSelectedColumns:L}=_.value,S=t.data.selectedRows.has(m.primaryKey);T&&T.length&&(S?C.push({text:"Deselect row",cb(){t.data.selectedRows.delete(e.cell.row.primaryKey)}}):C.push({text:"Select row",cb(){t.selectRow(e.cell.row.primaryKey)}})),L&&L.length&&(C.push({text:"Select column",cb(){t.selectColumn(e.cell.column.id)}}),C.push({text:"Unselect column",cb(){t.unselectColumn(e.cell.column.id)}})),C.length&&Ol(h,C)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(h,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[h.cell.class]:!0}]),"^data-row-index":h.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,h.cell.row))},[h.cell.control?(r.openBlock(),r.createElementBlock("div",uy,r.toDisplayString(h.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":h.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(r.openBlock(),r.createBlock(cy,{key:2,"model-value":h.cell.value,"value-type":i.value,editable:h.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,dy))}}),py={},fy={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(a,e){return r.openBlock(),r.createElementBlock("svg",fy,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const my=Yr(py,[["render",hy]]),yy={class:"tr-head"},by=r.defineComponent({__name:"TrHead",setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",yy,[r.renderSlot(e.$slots,"default")]))}});function vy(a,e){const t=e.indexOf(a)+1;return e[t>=e.length?0:t]}function wy(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}const xy=["^data-col-id"],_y=r.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const t=e;function i(s){s.preventDefault();const d=[];d.length&&Ol(s,d)}function l(s){var d;const u=((d=s.sort)==null?void 0:d.direction)??"DESC";t("change:sort",{colId:s.id,direction:vy(u,["DESC","ASC"])})}return(s,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":s.col.justify,frozen:s.col.frozen}]),"^data-col-id":s.col.id,onContextmenu:i},[s.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(s.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(s.col.label)+" ",1),s.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",s.col.sort.direction]),onClick:d[0]||(d[0]=r.withModifiers(()=>l(s.col),["stop"]))},null,2)):r.createCommentVNode("",!0)],42,xy))}}),ky=r.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=r.ref(),t=()=>{r.nextTick().then(()=>{Cn(e.value,i=>i.scrollLeft=0)})};return(i,l)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"trRef",ref:e,class:r.normalizeClass(["tr-body",{selected:i.row.selected}]),scroll:"no",style:r.normalizeStyle(i.row.style),onScroll:t},[r.renderSlot(i.$slots,"default")],38))}}),Cy=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=Jo(),t=a,i=r.computed(()=>e.data.selectedColumns.has(t.column.id));return(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column-caret",{selected:i.value,frozen:l.column.frozen}])},null,2))}});function Xe(a,e,t,i=!1){r.onMounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.addEventListener(e,t,i)}),r.onUnmounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.removeEventListener(e,t,i)})}function Sy(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function Ty(a){let e=!1;return function(...t){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Ey(a,e){let t;function i(s){t={...s}}Sy(()=>{t=void 0,e()});const l=Ty(a);return Xe(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}const Jn=1,Ny=10,By=30,Bd=60;function Vd(){const a=r.reactive({x:0,y:0});function e(t){a.x=t.pageX,a.y=t.pageY}return r.onMounted(()=>window.addEventListener("mousemove",e)),r.onUnmounted(()=>window.removeEventListener("mousemove",e)),a}function Md(a,e={}){const{delayEnter:t=0,delayLeave:i=0}=e,l=r.ref(!1);let s;const d=u=>{const p=u?t:i;s&&(clearTimeout(s),s=void 0),p?s=setTimeout(()=>l.value=u,p):l.value=u};return window&&(Xe(a,"mouseenter",()=>d(!0)),Xe(a,"mouseleave",()=>d(!1))),l}function Vy(a){var e;const t=Cn((e=r.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return t.map(i=>{const{width:l,x:s}=i.getBoundingClientRect(),d=i.getAttribute("data-col-id");return Sd({colId:d,width:l,x:s,right:s+l})}).slice(0,t.length-1)}function My(a,e){const t=Vd(),i=Md(e,{}),{data:l}=a,s=Ey(u=>{Cn(l.resizeTh,p=>{const h=l.columns.find(m=>m.id===p.colId);h&&(h.width=Ko(u.width+u.diff,By,1e4),a.adjustWidth())})},()=>{l.resize=!1,l.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{l.resizeTh&&(l.resize=!0,s.start({x:u.x,width:l.resizeTh.width}))};return r.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(l.resize)return;const u=Vy(e).find(p=>Math.abs(t.x-p.right)<Ny);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const zy={key:0,class:"command-menu"},Ay={key:0},Oy=["onClick"],Ly=r.defineComponent({__name:"RowsCommandMenu",setup(a){const e=Jo(),t=r.computed(()=>e.getSelectedRows()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",zy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Ay,r.toDisplayString(t.value.length)+" rows selected",1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Oy))),128))])):r.createCommentVNode("",!0)}}),Dy={key:0,class:"command-menu"},Iy={key:0},Ry=["onClick"],Py=r.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=Jo(),t=r.computed(()=>e.getSelectedColumns()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedColumns.clear()}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",Dy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Iy,"selected columns "+r.toDisplayString(t.value.length),1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Ry))),128))])):r.createCommentVNode("",!0)}});function Kr(a,e){const t={el:void 0,x:0,y:0},i=l=>({x:l.x,y:l.y,dx:l.x-t.x,dy:l.y-t.y});Xe(document,"mousedown",l=>{l.target===r.unref(a)&&(l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),t.el=r.unref(a),t.x=l.x,t.y=l.y)}),Xe(document,"mouseup",l=>{t.el&&(t.el=void 0,e({...i(l),stop:!0},t))}),Xe(document,"mousemove",l=>{t.el&&e(i(l),t)})}const jy=r.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.windowSize-12),d=r.computed(()=>i.windowSize<i.dataSize),u=r.computed(()=>Math.ceil(i.offset*(s.value/i.dataSize))),p=r.computed(()=>Math.ceil(s.value*s.value/i.dataSize)),h=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return Kr(l,(m,_)=>{const C=(u.value+m.dy)*i.dataSize/s.value;t("change:offset",C),_.x=m.x,_.y=m.y}),(m,_)=>(r.openBlock(),r.createElementBlock("div",{class:"t-scroll",style:r.normalizeStyle({height:`${m.windowSize}px`})},[r.createElementVNode("div",null,[d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"handleRef",ref:l,class:"t-scroll__handle",style:r.normalizeStyle(h.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function Fy(a){return r.computed(()=>{const{data:e,settings:t}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=jm();t.value.controlColumn&&s.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=s.map(m=>{const _={...m,offset:u};return u+=m.width+Jn,_}),h=p.filter(m=>m.frozen);return Qm(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(h).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function $y(a,e){const t=r.computed(()=>e.value.reduce((i,l)=>(i[l.id]=l.justify?"justify-"+l.justify:"",i),{}));return r.computed(()=>a.rows.map(i=>{const l=t.value,{primaryKey:s,offset:d,dataRow:u,height:p}=i,h=e.value.map(m=>({id:m.id,column:m,row:i,value:u[m.id],class:l[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return Sd({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:h,selected:a.selectedRows.has(s)})}))}const Zy=async(a,e)=>{const{scrollTop:t,bodyHeight:i}=a;return await Om(0),Im({rows:e.getRows(t,i),dataWindow:a})};function Uy(a){const e=r.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:a.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});r.watch(()=>a.settings,m=>{e.columns=Ha(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,h.updateBodyHeight()}).catch(_=>e.error=_)},{immediate:!0});const t=r.computed(()=>a.settings),i=r.computed(()=>e.columns.reduce((m,_)=>m+_.width+Jn,0)),l=r.computed(()=>Cd(h.data.dataHeight-h.data.bodyHeight,m=>m>0?m:0)),s=r.computed(()=>Cd(i.value-h.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=Fy({data:e,settings:t}),p=$y(e,u),h={data:e,settings:t,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((C,T)=>C+T.width+Jn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const C=e.columns[e.columns.length-1];C.width=C.width+(_-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=Ko(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=Ko(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,C=m>_?_:m;e.bodyHeight=C},updateDimensions(m){this.updateBodyHeight(),h.data.bodyWidth=m.width,h.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,_)=>{const C=m.current;(!C||m.scrollTop<C.scrollTop||m.scrollTop+m.bodyHeight>C.bodyHeight+C.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-Bd,bodyHeight:m.bodyHeight+Bd*2},Zy(Ha(e.currentWindow),t.value.dataSource).then(({rows:T,dataWindow:L})=>{Ml(e.currentWindow,L)&&(e.rows=T)}))},{deep:!0,immediate:!0}),r.provide(Nd,h),h}const Wy={class:"command-menu__container"},Hy={key:0,class:"table-body__no-data"},qy={class:"carets"},Ll=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const t=e,i=a,l=Uy(i),s=r.computed(()=>l.data.rows.length===0),d=r.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));r.watch(l.data,S=>t("update:data",S),{deep:!0}),r.watch(i,()=>m);const u=r.ref(),p=r.ref(),h=r.ref(),m=()=>{Cn(h.value,S=>{l.updateDimensions(S.getBoundingClientRect())})},_=l.tableColumns,C=l.tableRows,{mouseDown:T}=My(l,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(i.settings),r.nextTick(m)}),Xe(window,"resize",()=>r.nextTick(m));const L=S=>{S.preventDefault(),l.updateOffsets(S)};return(S,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:B[2]||(B[2]=(...v)=>r.unref(T)&&r.unref(T)(...v))},[r.createElementVNode("div",Wy,[r.createVNode(Ly),B[3]||(B[3]=r.createTextVNode()),r.createVNode(Py)]),B[7]||(B[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(by,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(_y,{key:A,col:v,style:r.normalizeStyle(v.style),"onChange:sort":B[0]||(B[0]=D=>S.$emit("change:sort",D))},null,8,["col","style"]))),128))]),_:1})],512),B[8]||(B[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:h,class:"table-body",style:r.normalizeStyle(d.value),onWheel:L},[s.value?(r.openBlock(),r.createElementBlock("div",Hy,[r.createElementVNode("div",null,[r.createVNode(my),B[4]||(B[4]=r.createTextVNode()),B[5]||(B[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),B[6]||(B[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(C),(v,A)=>(r.openBlock(),r.createBlock(ky,{key:A,row:v},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.cells,D=>(r.openBlock(),r.createBlock(gy,{key:D.column.id+":"+A,cell:D,style:r.normalizeStyle(D.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),B[9]||(B[9]=r.createTextVNode()),r.createElementVNode("div",qy,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(Cy,{key:A,column:v,style:r.normalizeStyle(v.style),"onChange:sort":B[1]||(B[1]=D=>S.$emit("change:sort",D))},null,8,["column","style"]))),128))]),B[10]||(B[10]=r.createTextVNode()),r.createVNode(jy,{offset:r.unref(l).data.scrollTop,"window-size":r.unref(l).data.bodyHeight,"data-size":r.unref(l).data.dataHeight,"onChange:offset":r.unref(l).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),zd=new WeakMap;class Gy{constructor(e,t,i){zm(this,"dataHeight"),this.datum=e,this.resolveHeight=t,this.resolvePrimaryKey=i;const l=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+Jn,d),{total:0,indices:new Map});this.dataHeight=l.total;const s=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:kd(l.indices.get(u)),height:this.resolveHeight(d,u)}));zd.set(this,s)}get rows(){return zd.get(this)}async getHeight(){return this.dataHeight}async getRows(e,t){return wy(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<t+e})}}class Yy{constructor(e,t,i){this.api=e,this.rowHeight=t,this.resolvePrimaryKey=i}get height(){return this.rowHeight+Jn}async getHeight(){return await this.api.count()*this.height}async getRows(e,t){const i=Ko(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),l=Math.ceil(t+40/this.height);return(await this.api.query({offset:i,limit:l})).map((s,d)=>({dataRow:s,index:i+d,primaryKey:this.resolvePrimaryKey(s,i+d),offset:(i+d)*(this.rowHeight+Jn),height:this.rowHeight}))}}function Ky(a){return Object.freeze(a)}function Jy(a){return r.h(Ll,{settings:Object.freeze(a)})}function Dl(a,e){const t=new Gy(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:t}}function Qy(a,e){return r.computed(()=>{const t=r.unref(a);return Dl(t,r.unref(e))})}function Xy(a,e){const t=r.computed(()=>{const l=r.unref(a);return Dl(l,r.unref(e))}),i=r.reactive({settings:t});return r.computed(()=>r.h(Ll,i))}const eb=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:Yy,Component:Ll,factory:Jy,rawDataSettings:Dl,settings:Ky,useRawData:Qy,useRawDataComponent:Xy},Symbol.toStringTag,{value:"Module"}));function*tb(a,e){for(const t of a)yield e(t)}function rb(a){const e=[];for(const t of a)e.push(t);return e}function Ad(a){return a()}function Il(a,e){if(a==null)throw Error(e);return a}function Rl(a){let e=!1;return function(...t){e||(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Od(a){return new Promise(e=>setTimeout(e,a))}function Ld(a,e){const t=setTimeout(a,e);return()=>{clearTimeout(t)}}function Dd(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function nb(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Dd(65,91));return e}function Id(a){return function(e){return 1-a(1-e)}}function ab(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Rd(a){const{duration:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=(u-l)/e;(p>1||s)&&(p=1);const h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function ob(a){const{getFraction:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=e(u-l);if(s)return;p>1&&(p=1);const h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Pd(a,e){let t=-1;return(...i)=>{t!==-1&&(clearTimeout(t),t=-1),t=window.setTimeout(()=>a(...i),e)}}function jd(a,e,t=!0){let i=0,l;return function(...s){l=()=>{a.apply(this,s),i=new Date().getTime()+e,l=null,t&&setTimeout(()=>{l&&l()},e)},new Date().getTime()>i&&l()}}function ib(a){return a.map(e=>({text:String(e),value:e}))}function Qn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Pl=new Map;function lb(a){return Pl.has(a)||Pl.set(a,r.ref(localStorage.getItem(a))),Il(Pl.get(a),"...")}function sb(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function Fd(a){const e=lb(a);return r.watch(e,t=>sb(a,t)),e}const jl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{rb(tb(jl.values(),e=>e(a.matches?"dark":"light")))});const cb=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",$d=r.ref(cb),Fl=Fd("theme");function Zd(a){const e=r.computed(()=>Fl.value?Fl.value:$d.value),t=l=>{$d.value=l,a&&a(l)};function i(){Fl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,l=>{a&&a(r.unref(l))}),r.onMounted(()=>{jl.add(t)}),r.onUnmounted(()=>{jl.delete(t)}),[e,i]}const db=r.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,t]=Zd();return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-theme-switcher",r.unref(e)]),onClick:l[0]||(l[0]=(...s)=>r.unref(t)&&r.unref(t)(...s))},l[1]||(l[1]=[r.createElementVNode("div",null,null,-1)]),2))}}),ub={class:"pl-layout-component pl-block-page"},gb={key:0,class:"pl-block-page__title"},pb={class:"pl-block-page__title__append"},fb={key:1},hb={class:"pl-block-page__body"},mb={name:"PlBlockPage"},yb=r.defineComponent({...mb,setup(a){const e=r.useSlots();return(t,i)=>(r.openBlock(),r.createElementBlock("div",ub,[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",gb,[r.createElementVNode("h1",null,[r.renderSlot(t.$slots,"title")]),i[0]||(i[0]=r.createTextVNode()),r.createElementVNode("div",pb,[r.renderSlot(t.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",fb)),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",hb,[r.renderSlot(t.$slots,"default")])]))}}),bb={name:"PlContainer"},vb=r.defineComponent({...bb,props:{width:{}},setup(a){const e=a,t=r.computed(()=>({width:e.width}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-container pl-layout-component",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),wb={name:"PlRow"},xb=r.defineComponent({...wb,props:{wrap:{type:Boolean},alignCenter:{type:Boolean}},setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[r.renderSlot(e.$slots,"default")],2))}}),_b={class:"pl-layout-component",style:{"flex-grow":"1"}},kb={name:"PlSpacer"},Ud=r.defineComponent({...kb,setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",_b))}}),Cb={name:"PlGrid"},Sb=r.defineComponent({...Cb,props:{columns:{}},setup(a){const e=a,t=r.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-layout-component pl-grid",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),Tb={key:0,class:"pl-alert__icon"},Eb={class:"pl-alert__main"},Nb={key:0},Bb={class:"pl-alert__main__text"},Vb={name:"PlAlert"},Mb=r.defineComponent({...Vb,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(a){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(t,i)=>t.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["pl-alert",[{monospace:t.monospace,whiteSpacePre:t.whiteSpacePre},t.type?`pl-alert__${t.type}`:""]]),style:r.normalizeStyle({maxHeight:t.maxHeight})},[t.icon&&t.type?(r.openBlock(),r.createElementBlock("div",Tb,[r.createElementVNode("div",{class:r.normalizeClass(`icon-24 icon-${e[t.type]}`)},null,2)])):r.createCommentVNode("",!0),i[2]||(i[2]=r.createTextVNode()),r.createElementVNode("div",Eb,[t.label?(r.openBlock(),r.createElementBlock("label",Nb,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Bb,[r.renderSlot(t.$slots,"default")])]),i[3]||(i[3]=r.createTextVNode()),t.closeable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:i[0]||(i[0]=l=>t.$emit("update:modelValue",!1))})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)}}),qa=r.defineComponent({__name:"PlMaskIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--mask-size: 24px":""),i=r.computed(()=>`mask-16 mask-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass(i.value)},null,6))}});function Wd(a){function e(t){const i=t.currentTarget,l=document.createElement("span"),s=Math.max(i.clientWidth,i.clientHeight),d=s/2;l.style.width=l.style.height=`${s}px`,l.style.left=`${t.clientX-i.offsetLeft-d}px`,l.style.top=`${t.clientY-i.offsetTop-d}px`,l.classList.add("ripple");const u=i.getElementsByClassName("ripple")[0];u&&u.remove(),i.appendChild(l)}r.onMounted(()=>{var t;(t=a.value)==null||t.addEventListener("click",e)})}const zb={key:0},Ab={inheritAttrs:!1},Qo=r.defineComponent({...Ab,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a,t=r.ref(),i=r.computed(()=>e.small||e.size==="small"),l=r.computed(()=>e.large||e.size==="large");return Wd(t),(s,d)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btn",ref:t,tabindex:"0",class:{loading:s.loading,small:i.value,large:l.value,round:s.round,reverse:s.reverse,justifyCenter:s.justifyCenter,[s.$attrs.class+""]:!0}},{...s.$attrs,disabled:!!s.$attrs.disabled||s.loading}),[s.round?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",zb,[r.renderSlot(s.$slots,"default")])),d[0]||(d[0]=r.createTextVNode()),s.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(r.openBlock(),r.createBlock(r.unref(qa),{key:2,name:s.icon,size:s.size},null,8,["name","size"])):r.createCommentVNode("",!0)],16))}}),Ob={name:"PlBtnPrimary"},$l=r.defineComponent({...Ob,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps({class:"pl-btn-primary"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Lb={name:"PlBtnAccent"},Db=r.defineComponent({...Lb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps({class:"pl-btn-accent"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Ib={name:"PlBtnDanger"},Rb=r.defineComponent({...Ib,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps({class:"pl-btn-danger"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Pb={name:"PlBtnSecondary"},Zl=r.defineComponent({...Pb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps(e,{class:"pl-btn-secondary"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),jb={key:0},Fb={name:"PlBtnGhost"},Ul=r.defineComponent({...Fb,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(a){const e=a,t=r.computed(()=>e.size==="small"),i=r.computed(()=>e.size==="large"),l=r.ref(),s=r.useSlots();return Wd(l),(d,u)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["pl-btn-ghost",{loading:d.loading,small:t.value,large:i.value,round:d.round,reverse:d.reverse,justifyCenter:d.justifyCenter,[d.$attrs.class+""]:!0}]},{...d.$attrs,disabled:!!d.$attrs.disabled||d.loading}),[r.unref(s).default&&!d.round?(r.openBlock(),r.createElementBlock("span",jb,[r.renderSlot(d.$slots,"default")])):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),d.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(r.openBlock(),r.createBlock(r.unref(qa),{key:2,name:d.icon,size:d.size},null,8,["name","size"])):r.createCommentVNode("",!0),u[1]||(u[1]=r.createTextVNode()),r.renderSlot(d.$slots,"append")],16))}}),$b=r.defineComponent({__name:"PlBtnLink",props:{loading:{type:Boolean},size:{},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean},disabled:{type:Boolean}},setup(a){const e=a,t=r.ref(!1);return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-link",{disabled:i.disabled,loading:i.loading,hover:t.value}]),onMouseover:l[0]||(l[0]=s=>t.value=!0),onMouseleave:l[1]||(l[1]=s=>t.value=!1)},[r.createVNode(Zl,r.mergeProps({round:"",hover:t.value},e),null,16,["hover"]),l[2]||(l[2]=r.createTextVNode()),r.renderSlot(i.$slots,"default")],34))}});function Hd(a,e){const t=Rl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,h=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+h.y,offsetX:l+h.x,top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.width,height:h.height,x:h.x,y:h.y})}});r.onMounted(t),Xe(window,"scroll",t,!0),Xe(window,"resize",t,!0),Xe(window,"adjust",t,!0)}function Zb(a,e){const t=r.ref();return Hd(a,i=>{t.value=i}),r.computed(()=>{const i=r.unref(t),l=r.unref(e),s=l.position??"top",d=l.gap??8;if(!i)return"";const u=i.offsetY+Math.floor(i.height/2),p=i.offsetX+Math.floor(i.width/2);return s==="top-left"?`left: ${i.offsetX}px; top: ${i.offsetY-d}px;`:s==="top"?`left: ${p}px; top: ${i.offsetY-d}px;`:s==="right"?`left: ${i.offsetX+i.width+d}px; top: ${u}px;`:s==="left"?`right: ${i.scrollWidth-i.x+d}px; top: ${u}px;`:""})}function Xo(a,e){return e(a)}function it(a,e){if(a!=null)return e(a)}function Ub(a){return Array.isArray(a)?a:[a]}function Wb(a,e,...t){t.forEach(i=>{a[i]=e[i]})}function ei(a,e){Xe(document,"click",t=>{document.contains(t.target)&&(Ub(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(t.target))||e())})}const Hb={},qb={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gb(a,e){return r.openBlock(),r.createElementBlock("svg",qb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const Yb=Yr(Hb,[["render",Gb]]),Wl=new Map,Kb={name:"PlTooltip"},$t=r.defineComponent({...Kb,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"}},emits:["tooltip:close"],setup(a,{emit:e}){const t=e,i=Symbol(),l=a,s=r.reactive({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});Wl.set(i,()=>h()),r.watch(()=>s.open,S=>{requestAnimationFrame(()=>{s.tooltipOpen=S})});let d=()=>{};const u=jd(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[S,B]of Wl.entries())S!==i&&B()},h=()=>{s.open=!1,t("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await Od(100),s.over&&p())},_=()=>{s.over=!1,d=Ld(()=>{s.over||h()},l.closeDelay)};r.watch(()=>l.hide,S=>{S&&h()});const C=r.ref(),T=r.ref(),L=Zb(C,r.toRef(l));return ei([C,T],()=>h()),r.onUnmounted(()=>{Wl.delete(i)}),(S,B)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.element),r.mergeProps(S.$attrs,{ref_key:"rootRef",ref:C,onClick:m,onMouseover:m,onMouseleave:_}),{default:r.withCtx(()=>[r.renderSlot(S.$slots,"default"),B[1]||(B[1]=r.createTextVNode()),S.$slots.tooltip&&s.open?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:"body"},[r.createVNode(r.Transition,{name:"tooltip-transition"},{default:r.withCtx(()=>[s.tooltipOpen?(r.openBlock(),r.createElementBlock("div",{key:0,class:"pl-tooltip__container",style:r.normalizeStyle(r.unref(L))},[r.createElementVNode("div",{ref_key:"tooltip",ref:T,class:r.normalizeClass(["pl-tooltip",S.position]),onMouseover:m,onMouseleave:_},[r.createElementVNode("div",null,[r.renderSlot(S.$slots,"tooltip")]),B[0]||(B[0]=r.createTextVNode()),r.createVNode(Yb)],34)],4)):r.createCommentVNode("",!0)]),_:3})])):r.createCommentVNode("",!0)]),_:3},16))}}),Jb={},Qb={class:"inner-border"};function Xb(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",Qb,[r.renderSlot(a.$slots,"default")])}const e0=Yr(Jb,[["render",Xb]]),t0={key:0},r0=["tabindex","onKeydown","onClick"],n0={key:1,class:"ui-btn-group__helper"},a0={key:2,class:"ui-btn-group__error"},o0={name:"PlBtnGroup"},i0=r.defineComponent({...o0,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=u=>i("update:modelValue",u),s=a,d=r.computed(()=>s.options.map(u=>({label:"label"in u?u.label:u.text,value:u.value})));return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-group",{disabled:u.disabled}])},[u.label?(r.openBlock(),r.createElementBlock("label",t0,[r.createElementVNode("span",null,r.toDisplayString(u.label),1),p[0]||(p[0]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(u.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),p[1]||(p[1]=r.createTextVNode()),r.createVNode(e0,{class:"ui-btn-group__container"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(h,m)=>(r.openBlock(),r.createElementBlock("div",{key:m,class:r.normalizeClass(["ui-btn-group__option",{active:u.modelValue===h.value}]),tabindex:u.modelValue===h.value||u.disabled?void 0:0,onKeydown:r.withKeys(_=>l(h.value),["enter"]),onClick:_=>l(h.value)},r.toDisplayString(h.label),43,r0))),128))]),_:1}),p[2]||(p[2]=r.createTextVNode()),u.helper?(r.openBlock(),r.createElementBlock("div",n0,r.toDisplayString(u.helper),1)):u.error?(r.openBlock(),r.createElementBlock("div",a0,r.toDisplayString(u.error),1)):r.createCommentVNode("",!0)],2))}}),l0={inheritAttrs:!1},s0={class:"double-contour"};function c0(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",s0,[r.createElementVNode("div",r.normalizeProps(r.guardReactiveProps(a.$attrs)),[r.renderSlot(a.$slots,"default")],16)])}const Sn=Yr(l0,[["render",c0]]);function qd(a){r.onMounted(a),r.onUpdated(a)}const Hl=new WeakMap,ql=new ResizeObserver(a=>{for(const e of a)it(Hl.get(e.target),t=>t(e))});function Gd(a,e){Hl.set(a,e),ql.unobserve(a),ql.observe(a)}function Yd(a){ql.unobserve(a),Hl.delete(a)}const d0=8,Kd=4;function Jr(a,e="label"){const t=new Set;qd(()=>{it(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(t.add(l),Gd(l,()=>{const s=Ad(()=>l.getBoundingClientRect().width+Xo(d0,d=>Number.isNaN(d)?Kd:d+Kd));i.style.getPropertyValue("--label-offset-right-x")!==`${s}px`&&i.style.setProperty("--label-offset-right-x",`${s}px`)}))})}),r.onBeforeUnmount(()=>{Array.from(t.values()).map(i=>Yd(i))})}function u0(a,e){const t=[];return e&&e.length>0&&e.forEach(i=>{const l=i(a);typeof l=="string"&&t.push(l)}),{isValid:t.length===0,errors:t}}function Jd(a,e){return r.computed(()=>u0(a.value,e))}const g0=r.defineComponent({__name:"PlIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--icon-size: 24px":""),i=r.computed(()=>`icon-16 icon-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass([i.value,l.$style.icon])},null,6))}}),p0="_icon_1ugxm_2",f0={icon:p0},h0={$style:f0},Qd=Yr(g0,[["__cssModules",h0]]),m0=r.defineComponent({__name:"PlIcon24",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>`icon-24 icon-${e.name}`);return(i,l)=>(r.openBlock(),r.createElementBlock("i",{class:r.normalizeClass([t.value,i.$style.icon])},null,2))}}),y0="_icon_1ugxm_2",b0={icon:y0},v0={$style:b0},Xd=Yr(m0,[["__cssModules",v0]]),w0={class:"pl-text-field__envelope"},x0={key:0,ref:"label"},_0={key:0,class:"required-icon"},k0={key:1,class:"pl-text-field__prefix"},C0=["disabled","placeholder","type"],S0={class:"pl-text-field__append"},T0={key:0,class:"pl-text-field__error"},E0={key:1,class:"pl-text-field__helper"},N0={name:"PlTextField"},eu=r.defineComponent({...N0,props:{modelValue:{},label:{},clearable:{type:[Boolean,Function]},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(void 0),d=r.ref(),u=r.ref(!1),p=r.computed({get(){return l.modelValue??""},set(D){i("update:modelValue",D)}}),h=r.computed(()=>l.type&&l.type==="password"?u.value?"text":l.type:"text"),m=r.computed(()=>u.value?"view-on":"view-off"),_=()=>{l.clearable&&i("update:modelValue",l.clearable===!0?"":l.clearable())},C=Jd(p,l.rules||[]),T=r.computed(()=>l.clearable?l.clearable===!0?l.modelValue==="":l.modelValue===l.clearable():l.modelValue===""),L=r.computed(()=>!T.value),S=r.computed(()=>{const D=[];return l.error&&D.push(l.error),C.value.isValid||D.push(...C.value.errors),D}),B=r.computed(()=>S.value.length>0),v=r.computed(()=>l.clearable&&L.value&&l.type!=="password");Jr(s);function A(){u.value=!u.value}return(D,Z)=>(r.openBlock(),r.createElementBlock("div",w0,[r.createElementVNode("div",{ref_key:"rootRef",ref:s,class:r.normalizeClass(["pl-text-field",{error:B.value,disabled:D.disabled,dashed:D.dashed,nonEmpty:L.value}])},[D.label?(r.openBlock(),r.createElementBlock("label",x0,[D.required?(r.openBlock(),r.createElementBlock("i",_0)):r.createCommentVNode("",!0),Z[1]||(Z[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(D.label),1),Z[2]||(Z[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(D.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),Z[5]||(Z[5]=r.createTextVNode()),D.prefix?(r.openBlock(),r.createElementBlock("div",k0,r.toDisplayString(D.prefix),1)):r.createCommentVNode("",!0),Z[6]||(Z[6]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":Z[0]||(Z[0]=G=>p.value=G),disabled:D.disabled,placeholder:D.placeholder||"...",type:h.value,spellcheck:"false"},null,8,C0),[[r.vModelDynamic,p.value]]),Z[7]||(Z[7]=r.createTextVNode()),r.createElementVNode("div",S0,[v.value?(r.openBlock(),r.createBlock(r.unref(Qd),{key:0,name:"delete-clear",onClick:_})):r.createCommentVNode("",!0),Z[3]||(Z[3]=r.createTextVNode()),D.type==="password"?(r.openBlock(),r.createBlock(r.unref(Xd),{key:1,name:m.value,style:{cursor:"pointer"},onClick:A},null,8,["name"])):r.createCommentVNode("",!0),Z[4]||(Z[4]=r.createTextVNode()),r.renderSlot(D.$slots,"append")]),Z[8]||(Z[8]=r.createTextVNode()),r.createVNode(Sn,{class:"pl-text-field__contour"})],2),Z[9]||(Z[9]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",T0,r.toDisplayString(S.value.join(" ")),1)):D.helper?(r.openBlock(),r.createElementBlock("div",E0,r.toDisplayString(D.helper),1)):r.createCommentVNode("",!0)]))}}),B0={class:"ui-text-area__envelope"},V0={key:0,ref:"label"},M0={key:0,class:"required-icon"},z0=["readonly","rows","disabled","placeholder"],A0={class:"ui-text-area__append"},O0={key:0,class:"ui-text-area__error"},L0={key:1,class:"ui-text-area__helper"},D0={name:"PlTextArea"},I0=r.defineComponent({...D0,props:{modelValue:{},label:{},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},dashed:{type:Boolean},rows:{},autogrow:{type:Boolean},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(),d=r.ref(),u=r.computed({get(){return l.modelValue??""},set(T){i("update:modelValue",T)}}),p=r.computed(()=>!!l.modelValue),h=Jd(u,l.rules||[]);Jr(s);const m=r.computed(()=>{const T=[];return l.error&&T.push(l.error),T.push(...h.value.errors),T}),_=r.computed(()=>m.value.length>0),C=()=>{if(!l.autogrow)return;const T=d.value;T&&(T.style.height="auto",T.style.height=`${T.scrollHeight}px`)};return r.onMounted(()=>{C()}),(T,L)=>(r.openBlock(),r.createElementBlock("div",B0,[r.createElementVNode("div",{ref_key:"root",ref:s,class:r.normalizeClass(["ui-text-area",{error:_.value,disabled:T.disabled,dashed:T.dashed,nonEmpty:p.value}])},[T.label?(r.openBlock(),r.createElementBlock("label",V0,[T.required?(r.openBlock(),r.createElementBlock("i",M0)):r.createCommentVNode("",!0),L[1]||(L[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(T.label),1),L[2]||(L[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(T.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),L[3]||(L[3]=r.createTextVNode()),r.withDirectives(r.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":L[0]||(L[0]=S=>u.value=S),readonly:T.readonly,rows:T.rows,disabled:T.disabled,placeholder:T.placeholder??"...",spellcheck:"false",onInput:C},null,40,z0),[[r.vModelText,u.value]]),L[4]||(L[4]=r.createTextVNode()),r.createElementVNode("div",A0,[r.renderSlot(T.$slots,"append")]),L[5]||(L[5]=r.createTextVNode()),r.createVNode(Sn,{class:"ui-text-area__contour"})],2),L[6]||(L[6]=r.createTextVNode()),_.value?(r.openBlock(),r.createElementBlock("div",O0,r.toDisplayString(m.value.join(" ")),1)):T.helper?(r.openBlock(),r.createElementBlock("div",L0,r.toDisplayString(T.helper),1)):r.createCommentVNode("",!0)]))}});function tu(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t&&l>t}function ru(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t?"ceil":l>t?"floor":"visible"}function ti(a,e,t={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=ru(a,e);if(u==="visible")return;const p=h=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+h*(m-i)};tu(a,e)||Rd({duration:t.duration||100,timing:Id(h=>h),draw:p})}function Gl(a,e,t,i){return a.addEventListener(e,t,i),function(){a.removeEventListener(e,t)}}function R0(a,e){const t=e.getBoundingClientRect();return a.x<t.x||a.x>t.x+t.width||a.y<t.y||a.y>t.y+t.height}function nu(a){return a!==null&&typeof a=="object"}function tr(a,e){return nu(a)&&nu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>tr(a[t],e[t])):a===e}function Yl(a,e){return a.some(t=>tr(t,e))}const P0=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
`}return e},vm=(a,e)=>{const t=vd[a];if(!t)throw new Error(`Missing icon data for ${a}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon ag-icon-${a}" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${e}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+t+"</svg>"},wm=(a={})=>Ua("iconSet","quartz").withCSS(()=>bm(a)),xm=":where(input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)){-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}:where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}&.ag-ltr :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-left:var(--ag-input-padding-start)}&.ag-rtl :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-right:var(--ag-input-padding-start)}",_m=Ua("inputStyle","base").withAdditionalParams({inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"}}).withCSS(xm),km=ld(_m,"bordered").withParams({inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:{ref:"accentColor"}},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:{ref:"foregroundColor",mix:.06,onto:"backgroundColor"},inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),Cm='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex;.ag-tabs-header{flex:1}}.ag-tabs-close-button-wrapper{border:0;padding:var(--ag-spacing)}&.ag-ltr .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}&.ag-rtl .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}&.ag-ltr .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-left-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-right-color:var(--ag-tab-selected-border-color)}}}&.ag-rtl .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-right-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-left-color:var(--ag-tab-selected-border-color)}}}',Sm=Ua("tabStyle","base").withAdditionalParams({tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:"0",tabSelectedUnderlineTransitionDuration:"0",tabBarBorder:!1}).withCSS(Cm),Tm=ld(Sm,"quartz").withParams({tabBarBorder:!0,tabBarBackgroundColor:{ref:"foregroundColor",mix:.05},tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),Em=a=>om(a).withPart(hm),Nm=Em("quartz").withPart(mm).withPart(wm).withPart(Tm).withPart(()=>km).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function wd(){Jt.ModuleRegistry.registerModules([Ro.ClientSideRowModelModule,xf.InfiniteRowModelModule,Fc.ServerSideRowModelModule,_f.CsvExportModule,$c.ClipboardModule,Zc.RangeSelectionModule,kf.RichSelectModule,Cf.MenuModule,Sf.ExcelExportModule]);const a=Uh("AGGRID_LICENSE");a?(Qe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const xd=Nm.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#110529",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}),_d=Symbol("sdk-vue");function Vl(){return r.inject(_d)}function Bm(a,e){let t;wd();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=If(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([h,m])=>{const _=typeof m=="function"?m():m;return[h,r.markRaw(_)]}));t=Object.assign(d,{...u,getRoute(h){return p[h]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=r.reactive({loaded:!1,error:void 0,useApp(){return Ef(t,"App is not loaded")},install(s){s.provide(_d,this),i()}});return l}var Vm=Object.defineProperty,Mm=(a,e,t)=>e in a?Vm(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,zm=(a,e,t)=>Mm(a,e+"",t);function kd(a,e){if(a==null)throw Error("Empty (null | undefined) value");return a}function Am(a,e,t){const i=Math.min(e,t),l=Math.max(e,t);return a>=i&&a<=l}function Om(a){return new Promise(e=>setTimeout(e,a))}function Lm(a){return a()}function Ko(a,e,t){return e>a?e:a>t?t:a}function Cd(a,e){return e(a)}function Cn(a,e){if(a!=null)return e(a)}function Dm(a){if(a&&a.ok)return a.value}async function Im(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,t])=>[e,await t])))}const Sd=a=>a;function Rm(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function Pm(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Rm(65,91));return e}function jm(){return Pm(42)}function Wa(a){return a!==null&&typeof a=="object"}function Fm(a,e){return Object.keys(a).map(t=>e(a[t],t))}function Ml(a,e){return Wa(a)&&Wa(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>Ml(a[t],e[t])):a===e}function Ha(a){if(Array.isArray(a)){const e=[];for(let t=0;t<a.length;t++)e[t]=Ha(a[t]);return e}else if(Wa(a)){const e={};return Object.keys(a).forEach(t=>{e[t]=Ha(a[t])}),e}else return a}function $m(a){return Array.isArray(a)?Object.assign([],a):Wa(a)?Object.assign({},a):a}function Zm(a,e){const t={};for(const i in e)e[i]!==a[i]&&(t[i]=a[i]);return t}function Um(a,e,t){return Object.assign({},a,{[e]:t})}function Wm(a){return Object.entries(a).forEach(([e,t])=>{t instanceof Function&&(a[e]=t.bind(a))}),a}function Hm(a,e,t){return a[e]=t,a}function qm(a,e){return a[e]}function Gm(a,e){a={...a};const t=a[e];return delete a[e],[t,a]}function Ym(a,...e){return Object.assign({},...e.map(t=>({[t]:a[t]})))}function Km(a,...e){return e.map(t=>a[t])}function Jm(a,...e){const t=Object.assign({},a);return e.forEach(i=>delete t[i]),t}const zl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Wm,deepClone:Ha,deepEqual:Ml,getProp:qm,iSet:Um,isObject:Wa,map:Fm,omit:Jm,pick:Ym,pickValues:Km,setProp:Hm,shallowClone:$m,shallowDiff:Zm,shiftProp:Gm},Symbol.toStringTag,{value:"Module"}));function Qm(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}function Td(a,e,t){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const Xm=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ey=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ty=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ry=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Ed=(a,e)=>{let t=String(a);return typeof e=="string"||Array.isArray(e)?t=a.toLocaleString(e):e===!0&&(t=a.toLocaleString(void 0)),t};function Al(a,e){if(a=typeof a=="bigint"?Number(a):a,!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);Object.assign(e,{bits:!1,binary:!1});const t=e.bits?e.binary?ry:ty:e.binary?ey:Xm;if(e.signed&&a===0)return` 0 ${t[0]}`;const i=a<0,l=i?"-":e.signed?"+":"";if(i&&(a=-a),a<1){const p=Ed(a,e.locale);return l+p+" "+t[0]}const s=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),t.length-1);a/=(e.binary?1024:1e3)**s,a=Number(a.toPrecision(3));const d=Ed(Number(a),e.locale),u=t[s];return l+d+" "+u}const ny={class:"context-menu"},ay=["onClick"],oy=r.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(a,{emit:e}){const t=e,i=l=>{l.cb(),t("close")};return(l,s)=>(r.openBlock(),r.createElementBlock("div",ny,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.options,(d,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,onClick:r.withModifiers(p=>i(d),["stop"])},[r.createElementVNode("span",null,r.toDisplayString(d.text),1)],8,ay))),128))]))}}),Yr=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},iy=Yr(oy,[["__scopeId","data-v-12530966"]]);function Ol(a,e){a.preventDefault();const t=()=>{r.render(null,document.body)},i=r.h(iy,{options:e,onClose:()=>{t()}});r.render(i,document.body);const l=i.el;return l.style.top=a.clientY+"px",l.style.left=a.clientX+"px",document.addEventListener("click",s=>{l.contains(s.target)||t()}),t}const Nd=Symbol(),Jo=()=>r.inject(Nd),ly=["value"],sy={key:1},cy=r.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const t=e,i=a,l=r.reactive({edit:!1}),s=r.computed(()=>i.valueType),d=h=>{var m;let _=(m=h.target)==null?void 0:m.value;const C=r.unref(s),T=Lm(()=>C==="integer"?parseInt(_,10):C==="float"?Number(_):_);t("update:modelValue",T),l.edit=!1},u=r.ref(),p=h=>{!h.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(h,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"baseRef",ref:u,class:r.normalizeClass(["base-cell",{"base-cell__edit":l.edit}]),onClick:p},[l.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:h.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,ly)):(r.openBlock(),r.createElementBlock("div",sy,r.toDisplayString(h.modelValue),1))],2))}}),dy=["^data-row-index"],uy={key:0,class:"control-cell"},gy=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,t=Jo(),i=r.computed(()=>e.cell.column.valueType),l=h=>{Cn(t.settings.value.onUpdatedRow,m=>{const _=e.cell.row,C={..._.dataRow,[e.cell.id]:h};m({..._,dataRow:C})})},s=h=>{h.metaKey&&t.selectRow(e.cell.row.primaryKey)},d=(h,m)=>{if(h.type==="contextmenu")h.preventDefault();else return;const _=t.settings??{},C=[],{onSelectedRows:T,onSelectedColumns:L}=_.value,S=t.data.selectedRows.has(m.primaryKey);T&&T.length&&(S?C.push({text:"Deselect row",cb(){t.data.selectedRows.delete(e.cell.row.primaryKey)}}):C.push({text:"Select row",cb(){t.selectRow(e.cell.row.primaryKey)}})),L&&L.length&&(C.push({text:"Select column",cb(){t.selectColumn(e.cell.column.id)}}),C.push({text:"Unselect column",cb(){t.unselectColumn(e.cell.column.id)}})),C.length&&Ol(h,C)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(h,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[h.cell.class]:!0}]),"^data-row-index":h.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,h.cell.row))},[h.cell.control?(r.openBlock(),r.createElementBlock("div",uy,r.toDisplayString(h.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":h.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(r.openBlock(),r.createBlock(cy,{key:2,"model-value":h.cell.value,"value-type":i.value,editable:h.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,dy))}}),py={},fy={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(a,e){return r.openBlock(),r.createElementBlock("svg",fy,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const my=Yr(py,[["render",hy]]),yy={class:"tr-head"},by=r.defineComponent({__name:"TrHead",setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",yy,[r.renderSlot(e.$slots,"default")]))}});function vy(a,e){const t=e.indexOf(a)+1;return e[t>=e.length?0:t]}function wy(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}const xy=["^data-col-id"],_y=r.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const t=e;function i(s){s.preventDefault();const d=[];d.length&&Ol(s,d)}function l(s){var d;const u=((d=s.sort)==null?void 0:d.direction)??"DESC";t("change:sort",{colId:s.id,direction:vy(u,["DESC","ASC"])})}return(s,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":s.col.justify,frozen:s.col.frozen}]),"^data-col-id":s.col.id,onContextmenu:i},[s.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(s.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(s.col.label)+" ",1),s.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",s.col.sort.direction]),onClick:d[0]||(d[0]=r.withModifiers(()=>l(s.col),["stop"]))},null,2)):r.createCommentVNode("",!0)],42,xy))}}),ky=r.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=r.ref(),t=()=>{r.nextTick().then(()=>{Cn(e.value,i=>i.scrollLeft=0)})};return(i,l)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"trRef",ref:e,class:r.normalizeClass(["tr-body",{selected:i.row.selected}]),scroll:"no",style:r.normalizeStyle(i.row.style),onScroll:t},[r.renderSlot(i.$slots,"default")],38))}}),Cy=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=Jo(),t=a,i=r.computed(()=>e.data.selectedColumns.has(t.column.id));return(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column-caret",{selected:i.value,frozen:l.column.frozen}])},null,2))}});function Xe(a,e,t,i=!1){r.onMounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.addEventListener(e,t,i)}),r.onUnmounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.removeEventListener(e,t,i)})}function Sy(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function Ty(a){let e=!1;return function(...t){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Ey(a,e){let t;function i(s){t={...s}}Sy(()=>{t=void 0,e()});const l=Ty(a);return Xe(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}const Jn=1,Ny=10,By=30,Bd=60;function Vd(){const a=r.reactive({x:0,y:0});function e(t){a.x=t.pageX,a.y=t.pageY}return r.onMounted(()=>window.addEventListener("mousemove",e)),r.onUnmounted(()=>window.removeEventListener("mousemove",e)),a}function Md(a,e={}){const{delayEnter:t=0,delayLeave:i=0}=e,l=r.ref(!1);let s;const d=u=>{const p=u?t:i;s&&(clearTimeout(s),s=void 0),p?s=setTimeout(()=>l.value=u,p):l.value=u};return window&&(Xe(a,"mouseenter",()=>d(!0)),Xe(a,"mouseleave",()=>d(!1))),l}function Vy(a){var e;const t=Cn((e=r.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return t.map(i=>{const{width:l,x:s}=i.getBoundingClientRect(),d=i.getAttribute("data-col-id");return Sd({colId:d,width:l,x:s,right:s+l})}).slice(0,t.length-1)}function My(a,e){const t=Vd(),i=Md(e,{}),{data:l}=a,s=Ey(u=>{Cn(l.resizeTh,p=>{const h=l.columns.find(m=>m.id===p.colId);h&&(h.width=Ko(u.width+u.diff,By,1e4),a.adjustWidth())})},()=>{l.resize=!1,l.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{l.resizeTh&&(l.resize=!0,s.start({x:u.x,width:l.resizeTh.width}))};return r.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(l.resize)return;const u=Vy(e).find(p=>Math.abs(t.x-p.right)<Ny);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const zy={key:0,class:"command-menu"},Ay={key:0},Oy=["onClick"],Ly=r.defineComponent({__name:"RowsCommandMenu",setup(a){const e=Jo(),t=r.computed(()=>e.getSelectedRows()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",zy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Ay,r.toDisplayString(t.value.length)+" rows selected",1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Oy))),128))])):r.createCommentVNode("",!0)}}),Dy={key:0,class:"command-menu"},Iy={key:0},Ry=["onClick"],Py=r.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=Jo(),t=r.computed(()=>e.getSelectedColumns()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedColumns.clear()}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",Dy,[t.value.length?(r.openBlock(),r.createElementBlock("span",Iy,"selected columns "+r.toDisplayString(t.value.length),1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,h)=>(r.openBlock(),r.createElementBlock("span",{key:h,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,Ry))),128))])):r.createCommentVNode("",!0)}});function Kr(a,e){const t={el:void 0,x:0,y:0},i=l=>({x:l.x,y:l.y,dx:l.x-t.x,dy:l.y-t.y});Xe(document,"mousedown",l=>{l.target===r.unref(a)&&(l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),t.el=r.unref(a),t.x=l.x,t.y=l.y)}),Xe(document,"mouseup",l=>{t.el&&(t.el=void 0,e({...i(l),stop:!0},t))}),Xe(document,"mousemove",l=>{t.el&&e(i(l),t)})}const jy=r.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.windowSize-12),d=r.computed(()=>i.windowSize<i.dataSize),u=r.computed(()=>Math.ceil(i.offset*(s.value/i.dataSize))),p=r.computed(()=>Math.ceil(s.value*s.value/i.dataSize)),h=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return Kr(l,(m,_)=>{const C=(u.value+m.dy)*i.dataSize/s.value;t("change:offset",C),_.x=m.x,_.y=m.y}),(m,_)=>(r.openBlock(),r.createElementBlock("div",{class:"t-scroll",style:r.normalizeStyle({height:`${m.windowSize}px`})},[r.createElementVNode("div",null,[d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"handleRef",ref:l,class:"t-scroll__handle",style:r.normalizeStyle(h.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function Fy(a){return r.computed(()=>{const{data:e,settings:t}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=jm();t.value.controlColumn&&s.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=s.map(m=>{const _={...m,offset:u};return u+=m.width+Jn,_}),h=p.filter(m=>m.frozen);return Qm(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(h).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function $y(a,e){const t=r.computed(()=>e.value.reduce((i,l)=>(i[l.id]=l.justify?"justify-"+l.justify:"",i),{}));return r.computed(()=>a.rows.map(i=>{const l=t.value,{primaryKey:s,offset:d,dataRow:u,height:p}=i,h=e.value.map(m=>({id:m.id,column:m,row:i,value:u[m.id],class:l[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return Sd({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:h,selected:a.selectedRows.has(s)})}))}const Zy=async(a,e)=>{const{scrollTop:t,bodyHeight:i}=a;return await Om(0),Im({rows:e.getRows(t,i),dataWindow:a})};function Uy(a){const e=r.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:a.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});r.watch(()=>a.settings,m=>{e.columns=Ha(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,h.updateBodyHeight()}).catch(_=>e.error=_)},{immediate:!0});const t=r.computed(()=>a.settings),i=r.computed(()=>e.columns.reduce((m,_)=>m+_.width+Jn,0)),l=r.computed(()=>Cd(h.data.dataHeight-h.data.bodyHeight,m=>m>0?m:0)),s=r.computed(()=>Cd(i.value-h.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=Fy({data:e,settings:t}),p=$y(e,u),h={data:e,settings:t,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((C,T)=>C+T.width+Jn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const C=e.columns[e.columns.length-1];C.width=C.width+(_-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=Ko(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=Ko(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,C=m>_?_:m;e.bodyHeight=C},updateDimensions(m){this.updateBodyHeight(),h.data.bodyWidth=m.width,h.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,_)=>{const C=m.current;(!C||m.scrollTop<C.scrollTop||m.scrollTop+m.bodyHeight>C.bodyHeight+C.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-Bd,bodyHeight:m.bodyHeight+Bd*2},Zy(Ha(e.currentWindow),t.value.dataSource).then(({rows:T,dataWindow:L})=>{Ml(e.currentWindow,L)&&(e.rows=T)}))},{deep:!0,immediate:!0}),r.provide(Nd,h),h}const Wy={class:"command-menu__container"},Hy={key:0,class:"table-body__no-data"},qy={class:"carets"},Ll=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const t=e,i=a,l=Uy(i),s=r.computed(()=>l.data.rows.length===0),d=r.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));r.watch(l.data,S=>t("update:data",S),{deep:!0}),r.watch(i,()=>m);const u=r.ref(),p=r.ref(),h=r.ref(),m=()=>{Cn(h.value,S=>{l.updateDimensions(S.getBoundingClientRect())})},_=l.tableColumns,C=l.tableRows,{mouseDown:T}=My(l,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(i.settings),r.nextTick(m)}),Xe(window,"resize",()=>r.nextTick(m));const L=S=>{S.preventDefault(),l.updateOffsets(S)};return(S,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:B[2]||(B[2]=(...v)=>r.unref(T)&&r.unref(T)(...v))},[r.createElementVNode("div",Wy,[r.createVNode(Ly),B[3]||(B[3]=r.createTextVNode()),r.createVNode(Py)]),B[7]||(B[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(by,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(_y,{key:A,col:v,style:r.normalizeStyle(v.style),"onChange:sort":B[0]||(B[0]=D=>S.$emit("change:sort",D))},null,8,["col","style"]))),128))]),_:1})],512),B[8]||(B[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:h,class:"table-body",style:r.normalizeStyle(d.value),onWheel:L},[s.value?(r.openBlock(),r.createElementBlock("div",Hy,[r.createElementVNode("div",null,[r.createVNode(my),B[4]||(B[4]=r.createTextVNode()),B[5]||(B[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),B[6]||(B[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(C),(v,A)=>(r.openBlock(),r.createBlock(ky,{key:A,row:v},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.cells,D=>(r.openBlock(),r.createBlock(gy,{key:D.column.id+":"+A,cell:D,style:r.normalizeStyle(D.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),B[9]||(B[9]=r.createTextVNode()),r.createElementVNode("div",qy,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,A)=>(r.openBlock(),r.createBlock(Cy,{key:A,column:v,style:r.normalizeStyle(v.style),"onChange:sort":B[1]||(B[1]=D=>S.$emit("change:sort",D))},null,8,["column","style"]))),128))]),B[10]||(B[10]=r.createTextVNode()),r.createVNode(jy,{offset:r.unref(l).data.scrollTop,"window-size":r.unref(l).data.bodyHeight,"data-size":r.unref(l).data.dataHeight,"onChange:offset":r.unref(l).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),zd=new WeakMap;class Gy{constructor(e,t,i){zm(this,"dataHeight"),this.datum=e,this.resolveHeight=t,this.resolvePrimaryKey=i;const l=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+Jn,d),{total:0,indices:new Map});this.dataHeight=l.total;const s=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:kd(l.indices.get(u)),height:this.resolveHeight(d,u)}));zd.set(this,s)}get rows(){return zd.get(this)}async getHeight(){return this.dataHeight}async getRows(e,t){return wy(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<t+e})}}class Yy{constructor(e,t,i){this.api=e,this.rowHeight=t,this.resolvePrimaryKey=i}get height(){return this.rowHeight+Jn}async getHeight(){return await this.api.count()*this.height}async getRows(e,t){const i=Ko(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),l=Math.ceil(t+40/this.height);return(await this.api.query({offset:i,limit:l})).map((s,d)=>({dataRow:s,index:i+d,primaryKey:this.resolvePrimaryKey(s,i+d),offset:(i+d)*(this.rowHeight+Jn),height:this.rowHeight}))}}function Ky(a){return Object.freeze(a)}function Jy(a){return r.h(Ll,{settings:Object.freeze(a)})}function Dl(a,e){const t=new Gy(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:t}}function Qy(a,e){return r.computed(()=>{const t=r.unref(a);return Dl(t,r.unref(e))})}function Xy(a,e){const t=r.computed(()=>{const l=r.unref(a);return Dl(l,r.unref(e))}),i=r.reactive({settings:t});return r.computed(()=>r.h(Ll,i))}const eb=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:Yy,Component:Ll,factory:Jy,rawDataSettings:Dl,settings:Ky,useRawData:Qy,useRawDataComponent:Xy},Symbol.toStringTag,{value:"Module"}));function*tb(a,e){for(const t of a)yield e(t)}function rb(a){const e=[];for(const t of a)e.push(t);return e}function Ad(a){return a()}function Il(a,e){if(a==null)throw Error(e);return a}function Rl(a){let e=!1;return function(...t){e||(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Od(a){return new Promise(e=>setTimeout(e,a))}function Ld(a,e){const t=setTimeout(a,e);return()=>{clearTimeout(t)}}function Dd(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function nb(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Dd(65,91));return e}function Id(a){return function(e){return 1-a(1-e)}}function ab(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Rd(a){const{duration:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=(u-l)/e;(p>1||s)&&(p=1);const h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function ob(a){const{getFraction:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=e(u-l);if(s)return;p>1&&(p=1);const h=i(p);t(h),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Pd(a,e){let t=-1;return(...i)=>{t!==-1&&(clearTimeout(t),t=-1),t=window.setTimeout(()=>a(...i),e)}}function jd(a,e,t=!0){let i=0,l;return function(...s){l=()=>{a.apply(this,s),i=new Date().getTime()+e,l=null,t&&setTimeout(()=>{l&&l()},e)},new Date().getTime()>i&&l()}}function ib(a){return a.map(e=>({text:String(e),value:e}))}function Qn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Pl=new Map;function lb(a){return Pl.has(a)||Pl.set(a,r.ref(localStorage.getItem(a))),Il(Pl.get(a),"...")}function sb(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function Fd(a){const e=lb(a);return r.watch(e,t=>sb(a,t)),e}const jl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{rb(tb(jl.values(),e=>e(a.matches?"dark":"light")))});const cb=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",$d=r.ref(cb),Fl=Fd("theme");function Zd(a){const e=r.computed(()=>Fl.value?Fl.value:$d.value),t=l=>{$d.value=l,a&&a(l)};function i(){Fl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,l=>{a&&a(r.unref(l))}),r.onMounted(()=>{jl.add(t)}),r.onUnmounted(()=>{jl.delete(t)}),[e,i]}const db=r.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,t]=Zd();return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-theme-switcher",r.unref(e)]),onClick:l[0]||(l[0]=(...s)=>r.unref(t)&&r.unref(t)(...s))},l[1]||(l[1]=[r.createElementVNode("div",null,null,-1)]),2))}}),ub={class:"pl-layout-component pl-block-page"},gb={key:0,class:"pl-block-page__title"},pb={class:"pl-block-page__title__append"},fb={key:1},hb={class:"pl-block-page__body"},mb={name:"PlBlockPage"},yb=r.defineComponent({...mb,setup(a){const e=r.useSlots();return(t,i)=>(r.openBlock(),r.createElementBlock("div",ub,[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",gb,[r.createElementVNode("h1",null,[r.renderSlot(t.$slots,"title")]),i[0]||(i[0]=r.createTextVNode()),r.createElementVNode("div",pb,[r.renderSlot(t.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",fb)),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",hb,[r.renderSlot(t.$slots,"default")])]))}}),bb={name:"PlContainer"},vb=r.defineComponent({...bb,props:{width:{}},setup(a){const e=a,t=r.computed(()=>({width:e.width}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-container pl-layout-component",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),wb={name:"PlRow"},xb=r.defineComponent({...wb,props:{wrap:{type:Boolean},alignCenter:{type:Boolean}},setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[r.renderSlot(e.$slots,"default")],2))}}),_b={class:"pl-layout-component",style:{"flex-grow":"1"}},kb={name:"PlSpacer"},Ud=r.defineComponent({...kb,setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",_b))}}),Cb={name:"PlGrid"},Sb=r.defineComponent({...Cb,props:{columns:{}},setup(a){const e=a,t=r.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-layout-component pl-grid",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),Tb={key:0,class:"pl-alert__icon"},Eb={class:"pl-alert__main"},Nb={key:0},Bb={class:"pl-alert__main__text"},Vb={name:"PlAlert"},Mb=r.defineComponent({...Vb,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(a){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(t,i)=>t.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["pl-alert",[{monospace:t.monospace,whiteSpacePre:t.whiteSpacePre},t.type?`pl-alert__${t.type}`:""]]),style:r.normalizeStyle({maxHeight:t.maxHeight})},[t.icon&&t.type?(r.openBlock(),r.createElementBlock("div",Tb,[r.createElementVNode("div",{class:r.normalizeClass(`icon-24 icon-${e[t.type]}`)},null,2)])):r.createCommentVNode("",!0),i[2]||(i[2]=r.createTextVNode()),r.createElementVNode("div",Eb,[t.label?(r.openBlock(),r.createElementBlock("label",Nb,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Bb,[r.renderSlot(t.$slots,"default")])]),i[3]||(i[3]=r.createTextVNode()),t.closeable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:i[0]||(i[0]=l=>t.$emit("update:modelValue",!1))})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)}}),qa=r.defineComponent({__name:"PlMaskIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--mask-size: 24px":""),i=r.computed(()=>`mask-16 mask-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass(i.value)},null,6))}});function Wd(a){function e(t){const i=t.currentTarget,l=document.createElement("span"),s=Math.max(i.clientWidth,i.clientHeight),d=s/2;l.style.width=l.style.height=`${s}px`,l.style.left=`${t.clientX-i.offsetLeft-d}px`,l.style.top=`${t.clientY-i.offsetTop-d}px`,l.classList.add("ripple");const u=i.getElementsByClassName("ripple")[0];u&&u.remove(),i.appendChild(l)}r.onMounted(()=>{var t;(t=a.value)==null||t.addEventListener("click",e)})}const zb={key:0},Ab={inheritAttrs:!1},Qo=r.defineComponent({...Ab,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a,t=r.ref(),i=r.computed(()=>e.small||e.size==="small"),l=r.computed(()=>e.large||e.size==="large");return Wd(t),(s,d)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btn",ref:t,tabindex:"0",class:{loading:s.loading,small:i.value,large:l.value,round:s.round,reverse:s.reverse,justifyCenter:s.justifyCenter,[s.$attrs.class+""]:!0}},{...s.$attrs,disabled:!!s.$attrs.disabled||s.loading}),[s.round?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",zb,[r.renderSlot(s.$slots,"default")])),d[0]||(d[0]=r.createTextVNode()),s.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(r.openBlock(),r.createBlock(r.unref(qa),{key:2,name:s.icon,size:s.size},null,8,["name","size"])):r.createCommentVNode("",!0)],16))}}),Ob={name:"PlBtnPrimary"},$l=r.defineComponent({...Ob,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps({class:"pl-btn-primary"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Lb={name:"PlBtnAccent"},Db=r.defineComponent({...Lb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps({class:"pl-btn-accent"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Ib={name:"PlBtnDanger"},Rb=r.defineComponent({...Ib,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps({class:"pl-btn-danger"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Pb={name:"PlBtnSecondary"},Zl=r.defineComponent({...Pb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(Qo,r.mergeProps(e,{class:"pl-btn-secondary"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),jb={key:0},Fb={name:"PlBtnGhost"},Ul=r.defineComponent({...Fb,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(a){const e=a,t=r.computed(()=>e.size==="small"),i=r.computed(()=>e.size==="large"),l=r.ref(),s=r.useSlots();return Wd(l),(d,u)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["pl-btn-ghost",{loading:d.loading,small:t.value,large:i.value,round:d.round,reverse:d.reverse,justifyCenter:d.justifyCenter,[d.$attrs.class+""]:!0}]},{...d.$attrs,disabled:!!d.$attrs.disabled||d.loading}),[r.unref(s).default&&!d.round?(r.openBlock(),r.createElementBlock("span",jb,[r.renderSlot(d.$slots,"default")])):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),d.loading?(r.openBlock(),r.createBlock(r.unref(qa),{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(r.openBlock(),r.createBlock(r.unref(qa),{key:2,name:d.icon,size:d.size},null,8,["name","size"])):r.createCommentVNode("",!0),u[1]||(u[1]=r.createTextVNode()),r.renderSlot(d.$slots,"append")],16))}}),$b=r.defineComponent({__name:"PlBtnLink",props:{loading:{type:Boolean},size:{},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean},disabled:{type:Boolean}},setup(a){const e=a,t=r.ref(!1);return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-link",{disabled:i.disabled,loading:i.loading,hover:t.value}]),onMouseover:l[0]||(l[0]=s=>t.value=!0),onMouseleave:l[1]||(l[1]=s=>t.value=!1)},[r.createVNode(Zl,r.mergeProps({round:"",hover:t.value},e),null,16,["hover"]),l[2]||(l[2]=r.createTextVNode()),r.renderSlot(i.$slots,"default")],34))}});function Hd(a,e){const t=Rl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,h=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+h.y,offsetX:l+h.x,top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.width,height:h.height,x:h.x,y:h.y})}});r.onMounted(t),Xe(window,"scroll",t,!0),Xe(window,"resize",t,!0),Xe(window,"adjust",t,!0)}function Zb(a,e){const t=r.ref();return Hd(a,i=>{t.value=i}),r.computed(()=>{const i=r.unref(t),l=r.unref(e),s=l.position??"top",d=l.gap??8;if(!i)return"";const u=i.offsetY+Math.floor(i.height/2),p=i.offsetX+Math.floor(i.width/2);return s==="top-left"?`left: ${i.offsetX}px; top: ${i.offsetY-d}px;`:s==="top"?`left: ${p}px; top: ${i.offsetY-d}px;`:s==="right"?`left: ${i.offsetX+i.width+d}px; top: ${u}px;`:s==="left"?`right: ${i.scrollWidth-i.x+d}px; top: ${u}px;`:""})}function Xo(a,e){return e(a)}function it(a,e){if(a!=null)return e(a)}function Ub(a){return Array.isArray(a)?a:[a]}function Wb(a,e,...t){t.forEach(i=>{a[i]=e[i]})}function ei(a,e){Xe(document,"click",t=>{document.contains(t.target)&&(Ub(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(t.target))||e())})}const Hb={},qb={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gb(a,e){return r.openBlock(),r.createElementBlock("svg",qb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const Yb=Yr(Hb,[["render",Gb]]),Wl=new Map,Kb={name:"PlTooltip"},$t=r.defineComponent({...Kb,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"}},emits:["tooltip:close"],setup(a,{emit:e}){const t=e,i=Symbol(),l=a,s=r.reactive({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});Wl.set(i,()=>h()),r.watch(()=>s.open,S=>{requestAnimationFrame(()=>{s.tooltipOpen=S})});let d=()=>{};const u=jd(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[S,B]of Wl.entries())S!==i&&B()},h=()=>{s.open=!1,t("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await Od(100),s.over&&p())},_=()=>{s.over=!1,d=Ld(()=>{s.over||h()},l.closeDelay)};r.watch(()=>l.hide,S=>{S&&h()});const C=r.ref(),T=r.ref(),L=Zb(C,r.toRef(l));return ei([C,T],()=>h()),r.onUnmounted(()=>{Wl.delete(i)}),(S,B)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.element),r.mergeProps(S.$attrs,{ref_key:"rootRef",ref:C,onClick:m,onMouseover:m,onMouseleave:_}),{default:r.withCtx(()=>[r.renderSlot(S.$slots,"default"),B[1]||(B[1]=r.createTextVNode()),S.$slots.tooltip&&s.open?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:"body"},[r.createVNode(r.Transition,{name:"tooltip-transition"},{default:r.withCtx(()=>[s.tooltipOpen?(r.openBlock(),r.createElementBlock("div",{key:0,class:"pl-tooltip__container",style:r.normalizeStyle(r.unref(L))},[r.createElementVNode("div",{ref_key:"tooltip",ref:T,class:r.normalizeClass(["pl-tooltip",S.position]),onMouseover:m,onMouseleave:_},[r.createElementVNode("div",null,[r.renderSlot(S.$slots,"tooltip")]),B[0]||(B[0]=r.createTextVNode()),r.createVNode(Yb)],34)],4)):r.createCommentVNode("",!0)]),_:3})])):r.createCommentVNode("",!0)]),_:3},16))}}),Jb={},Qb={class:"inner-border"};function Xb(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",Qb,[r.renderSlot(a.$slots,"default")])}const e0=Yr(Jb,[["render",Xb]]),t0={key:0},r0=["tabindex","onKeydown","onClick"],n0={key:1,class:"ui-btn-group__helper"},a0={key:2,class:"ui-btn-group__error"},o0={name:"PlBtnGroup"},i0=r.defineComponent({...o0,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=u=>i("update:modelValue",u),s=a,d=r.computed(()=>s.options.map(u=>({label:"label"in u?u.label:u.text,value:u.value})));return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-group",{disabled:u.disabled}])},[u.label?(r.openBlock(),r.createElementBlock("label",t0,[r.createElementVNode("span",null,r.toDisplayString(u.label),1),p[0]||(p[0]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(u.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),p[1]||(p[1]=r.createTextVNode()),r.createVNode(e0,{class:"ui-btn-group__container"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(h,m)=>(r.openBlock(),r.createElementBlock("div",{key:m,class:r.normalizeClass(["ui-btn-group__option text-s",{active:u.modelValue===h.value}]),tabindex:u.modelValue===h.value||u.disabled?void 0:0,onKeydown:r.withKeys(_=>l(h.value),["enter"]),onClick:_=>l(h.value)},r.toDisplayString(h.label),43,r0))),128))]),_:1}),p[2]||(p[2]=r.createTextVNode()),u.helper?(r.openBlock(),r.createElementBlock("div",n0,r.toDisplayString(u.helper),1)):u.error?(r.openBlock(),r.createElementBlock("div",a0,r.toDisplayString(u.error),1)):r.createCommentVNode("",!0)],2))}}),l0={inheritAttrs:!1},s0={class:"double-contour"};function c0(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",s0,[r.createElementVNode("div",r.normalizeProps(r.guardReactiveProps(a.$attrs)),[r.renderSlot(a.$slots,"default")],16)])}const Sn=Yr(l0,[["render",c0]]);function qd(a){r.onMounted(a),r.onUpdated(a)}const Hl=new WeakMap,ql=new ResizeObserver(a=>{for(const e of a)it(Hl.get(e.target),t=>t(e))});function Gd(a,e){Hl.set(a,e),ql.unobserve(a),ql.observe(a)}function Yd(a){ql.unobserve(a),Hl.delete(a)}const d0=8,Kd=4;function Jr(a,e="label"){const t=new Set;qd(()=>{it(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(t.add(l),Gd(l,()=>{const s=Ad(()=>l.getBoundingClientRect().width+Xo(d0,d=>Number.isNaN(d)?Kd:d+Kd));i.style.getPropertyValue("--label-offset-right-x")!==`${s}px`&&i.style.setProperty("--label-offset-right-x",`${s}px`)}))})}),r.onBeforeUnmount(()=>{Array.from(t.values()).map(i=>Yd(i))})}function u0(a,e){const t=[];return e&&e.length>0&&e.forEach(i=>{const l=i(a);typeof l=="string"&&t.push(l)}),{isValid:t.length===0,errors:t}}function Jd(a,e){return r.computed(()=>u0(a.value,e))}const g0=r.defineComponent({__name:"PlIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--icon-size: 24px":""),i=r.computed(()=>`icon-16 icon-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass([i.value,l.$style.icon])},null,6))}}),p0="_icon_1ugxm_2",f0={icon:p0},h0={$style:f0},Qd=Yr(g0,[["__cssModules",h0]]),m0=r.defineComponent({__name:"PlIcon24",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>`icon-24 icon-${e.name}`);return(i,l)=>(r.openBlock(),r.createElementBlock("i",{class:r.normalizeClass([t.value,i.$style.icon])},null,2))}}),y0="_icon_1ugxm_2",b0={icon:y0},v0={$style:b0},Xd=Yr(m0,[["__cssModules",v0]]),w0={class:"pl-text-field__envelope"},x0={key:0,ref:"label"},_0={key:0,class:"required-icon"},k0={key:1,class:"pl-text-field__prefix"},C0=["disabled","placeholder","type"],S0={class:"pl-text-field__append"},T0={key:0,class:"pl-text-field__error"},E0={key:1,class:"pl-text-field__helper"},N0={name:"PlTextField"},eu=r.defineComponent({...N0,props:{modelValue:{},label:{},clearable:{type:[Boolean,Function]},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(void 0),d=r.ref(),u=r.ref(!1),p=r.computed({get(){return l.modelValue??""},set(D){i("update:modelValue",D)}}),h=r.computed(()=>l.type&&l.type==="password"?u.value?"text":l.type:"text"),m=r.computed(()=>u.value?"view-on":"view-off"),_=()=>{l.clearable&&i("update:modelValue",l.clearable===!0?"":l.clearable())},C=Jd(p,l.rules||[]),T=r.computed(()=>l.clearable?l.clearable===!0?l.modelValue==="":l.modelValue===l.clearable():l.modelValue===""),L=r.computed(()=>!T.value),S=r.computed(()=>{const D=[];return l.error&&D.push(l.error),C.value.isValid||D.push(...C.value.errors),D}),B=r.computed(()=>S.value.length>0),v=r.computed(()=>l.clearable&&L.value&&l.type!=="password");Jr(s);function A(){u.value=!u.value}return(D,Z)=>(r.openBlock(),r.createElementBlock("div",w0,[r.createElementVNode("div",{ref_key:"rootRef",ref:s,class:r.normalizeClass(["pl-text-field",{error:B.value,disabled:D.disabled,dashed:D.dashed,nonEmpty:L.value}])},[D.label?(r.openBlock(),r.createElementBlock("label",x0,[D.required?(r.openBlock(),r.createElementBlock("i",_0)):r.createCommentVNode("",!0),Z[1]||(Z[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(D.label),1),Z[2]||(Z[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(D.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),Z[5]||(Z[5]=r.createTextVNode()),D.prefix?(r.openBlock(),r.createElementBlock("div",k0,r.toDisplayString(D.prefix),1)):r.createCommentVNode("",!0),Z[6]||(Z[6]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":Z[0]||(Z[0]=G=>p.value=G),disabled:D.disabled,placeholder:D.placeholder||"...",type:h.value,spellcheck:"false"},null,8,C0),[[r.vModelDynamic,p.value]]),Z[7]||(Z[7]=r.createTextVNode()),r.createElementVNode("div",S0,[v.value?(r.openBlock(),r.createBlock(r.unref(Qd),{key:0,name:"delete-clear",onClick:_})):r.createCommentVNode("",!0),Z[3]||(Z[3]=r.createTextVNode()),D.type==="password"?(r.openBlock(),r.createBlock(r.unref(Xd),{key:1,name:m.value,style:{cursor:"pointer"},onClick:A},null,8,["name"])):r.createCommentVNode("",!0),Z[4]||(Z[4]=r.createTextVNode()),r.renderSlot(D.$slots,"append")]),Z[8]||(Z[8]=r.createTextVNode()),r.createVNode(Sn,{class:"pl-text-field__contour"})],2),Z[9]||(Z[9]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",T0,r.toDisplayString(S.value.join(" ")),1)):D.helper?(r.openBlock(),r.createElementBlock("div",E0,r.toDisplayString(D.helper),1)):r.createCommentVNode("",!0)]))}}),B0={class:"ui-text-area__envelope"},V0={key:0,ref:"label"},M0={key:0,class:"required-icon"},z0=["readonly","rows","disabled","placeholder"],A0={class:"ui-text-area__append"},O0={key:0,class:"ui-text-area__error"},L0={key:1,class:"ui-text-area__helper"},D0={name:"PlTextArea"},I0=r.defineComponent({...D0,props:{modelValue:{},label:{},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},dashed:{type:Boolean},rows:{},autogrow:{type:Boolean},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(),d=r.ref(),u=r.computed({get(){return l.modelValue??""},set(T){i("update:modelValue",T)}}),p=r.computed(()=>!!l.modelValue),h=Jd(u,l.rules||[]);Jr(s);const m=r.computed(()=>{const T=[];return l.error&&T.push(l.error),T.push(...h.value.errors),T}),_=r.computed(()=>m.value.length>0),C=()=>{if(!l.autogrow)return;const T=d.value;T&&(T.style.height="auto",T.style.height=`${T.scrollHeight}px`)};return r.onMounted(()=>{C()}),(T,L)=>(r.openBlock(),r.createElementBlock("div",B0,[r.createElementVNode("div",{ref_key:"root",ref:s,class:r.normalizeClass(["ui-text-area",{error:_.value,disabled:T.disabled,dashed:T.dashed,nonEmpty:p.value}])},[T.label?(r.openBlock(),r.createElementBlock("label",V0,[T.required?(r.openBlock(),r.createElementBlock("i",M0)):r.createCommentVNode("",!0),L[1]||(L[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(T.label),1),L[2]||(L[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(T.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),L[3]||(L[3]=r.createTextVNode()),r.withDirectives(r.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":L[0]||(L[0]=S=>u.value=S),readonly:T.readonly,rows:T.rows,disabled:T.disabled,placeholder:T.placeholder??"...",spellcheck:"false",onInput:C},null,40,z0),[[r.vModelText,u.value]]),L[4]||(L[4]=r.createTextVNode()),r.createElementVNode("div",A0,[r.renderSlot(T.$slots,"append")]),L[5]||(L[5]=r.createTextVNode()),r.createVNode(Sn,{class:"ui-text-area__contour"})],2),L[6]||(L[6]=r.createTextVNode()),_.value?(r.openBlock(),r.createElementBlock("div",O0,r.toDisplayString(m.value.join(" ")),1)):T.helper?(r.openBlock(),r.createElementBlock("div",L0,r.toDisplayString(T.helper),1)):r.createCommentVNode("",!0)]))}});function tu(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t&&l>t}function ru(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t?"ceil":l>t?"floor":"visible"}function ti(a,e,t={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=ru(a,e);if(u==="visible")return;const p=h=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+h*(m-i)};tu(a,e)||Rd({duration:t.duration||100,timing:Id(h=>h),draw:p})}function Gl(a,e,t,i){return a.addEventListener(e,t,i),function(){a.removeEventListener(e,t)}}function R0(a,e){const t=e.getBoundingClientRect();return a.x<t.x||a.x>t.x+t.width||a.y<t.y||a.y>t.y+t.height}function nu(a){return a!==null&&typeof a=="object"}function tr(a,e){return nu(a)&&nu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>tr(a[t],e[t])):a===e}function Yl(a,e){return a.some(t=>tr(t,e))}const P0=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
18
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 4.5H4.5L4.5 19.5H19.5V4.5ZM4.5 3C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3H4.5Z" fill="#110529"/>
|
|
19
19
|
</svg>
|
|
20
20
|
`,j0=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -34,7 +34,7 @@ ${t}}
|
|
|
34
34
|
black ${C}px,
|
|
35
35
|
black ${T}px,
|
|
36
36
|
transparent 100%
|
|
37
|
-
)`}function s(){const u=a.value;if(!u)return;const p=[i(u),l(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=Rl(s);r.onMounted(s),Xe(window,"scroll",d,!0),Xe(window,"resize",d,!0)}function Su(a,e){qd(()=>{it(r.unref(a),t=>{Gd(t,()=>e(t))})}),r.onUnmounted(()=>{it(r.unref(a),t=>{Yd(t)})})}const an={item:"sortable__item",animate:"sortable__animate"},go=a=>a.getBoundingClientRect().y,Tu=a=>{const{y:e,height:t}=a.getBoundingClientRect();return e+Math.ceil(t/2)},h1=a=>{const{y:e,height:t}=a.getBoundingClientRect();return e+t};function m1(a,e){const t={item:void 0,options(){var T;return[...((T=a.value)==null?void 0:T.children)??[]]}},i=r.computed(()=>t.options()),l=e.shakeBuffer??10,s=e.reorderDelay??100;function d(T){const L=e.handle?this.querySelector(e.handle):null;L&&!L.contains(T.target)||(this.classList.remove(an.animate),this.classList.add(an.item),t.item={el:this,y:T.y,dy:0,orderChanged:!1})}function u(T){const L=t.options();return L.slice(0,L.indexOf(T))}function p(T){const L=t.options();return L.slice(L.indexOf(T)+1)}function h(T,L){const S=t.options().filter(v=>v!==L),B=S.indexOf(T);return S.splice(B,0,L),S}function m(T,L){const S=t.options().filter(v=>v!==L),B=S.indexOf(T);return S.splice(B+1,0,L),S}function _(T,L){T.dy=L-T.y,T.el.style.setProperty("transform",`translateY(${T.dy}px)`)}function C(T){var L;if(!t.item)return;const{el:S}=t.item;if(!S.isConnected){t.item=void 0;return}const B=T.map(U=>go(U)),v=go(S);(L=a.value)==null||L.replaceChildren(...T);const A=go(S),D=T.map(U=>go(U)),Z=[];for(let U=0;U<D.length;U++){const M=T[U];if(M===t.item.el)continue;const z=D[U],R=B[U]-z;M.style.transform=`translateY(${R}px)`,Z.push(M)}const G=A-v;t.item.y=t.item.y+G,t.item.dy=t.item.dy-G,t.item.orderChanged=!0,t.item.el.style.setProperty("transform",`translateY(${t.item.dy}px)`),Z.forEach(U=>U.classList.remove(an.animate)),requestAnimationFrame(function(){Z.forEach(U=>{U.classList.add(an.animate),U.style.transform="",U.addEventListener("transitionend",()=>{U.classList.remove(an.animate)})})})}Xe(window,"mousemove",T=>{if(!t.item)return;const{el:L}=t.item;_(t.item,T.y);const S=go(t.item.el),B=h1(t.item.el),v=u(L),A=p(L);v.forEach(D=>{const Z=Tu(D);S+l<Z&&C(h(D,L))}),A.forEach(D=>{const Z=Tu(D);B-l>Z&&C(m(D,L))})}),Xe(window,"mouseup",()=>{if(!t.item)return;const{el:T,orderChanged:L}=t.item;T.classList.add(an.animate),T.style.removeProperty("transform"),T.addEventListener("transitionend",()=>{T.classList.remove(an.animate,an.item)}),setTimeout(()=>{if(!L)return;const S=t.options().map(v=>Number(v.getAttribute("data-index"))),B=a.value;if(B){for(const v of t.options())B.removeChild(v);i.value.forEach(v=>{B.appendChild(v)})}e.onChange(S)},s),t.item=void 0}),r.watchEffect(()=>{i.value.forEach((T,L)=>{T.removeEventListener("mousedown",d),T.addEventListener("mousedown",d),T.setAttribute("data-index",String(L))})})}function y1(a,e){let t;r.onMounted(()=>{t=setInterval(a,e)}),r.onUnmounted(()=>clearInterval(t))}function b1(a,e,t){const i=r.reactive({data:zl.deepClone(e(a.value)),changed:!1});return r.watch(()=>i.data,l=>{i.changed?t(zl.deepClone(l)):i.changed=!0},{deep:!0}),r.watch(a,l=>{Object.assign(i,{data:zl.deepClone(e(l)),changed:!1})},{deep:!0,immediate:!0}),i}function v1(a){const e=r.reactive({isLoading:!1,result:void 0,error:void 0,async run(...t){this.isLoading=!0,this.error=void 0;try{this.result=await a(...t)}catch(i){this.error=i}finally{this.isLoading=!1}},debounce(t,i=1e3){return Td(()=>{const l=t();this.run(...l).catch(console.error)},i)}});return e.run=e.run.bind(e),e}function w1(a,e){function t(d,u){const p=r.unref(a);if(!p)return;const h=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",h),e(u)}function i(d){const u=p=>t(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=r.unref(a);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 l(){var d;(d=r.unref(a))==null||d.addEventListener("mousedown",i)}function s(){var d;(d=r.unref(a))==null||d.removeEventListener("mousedown",i)}r.onMounted(l),r.onUnmounted(s)}const x1={class:"ui-slider__wrapper"},_1={class:"ui-slider__label-section"},k1={key:0,class:"text-s"},C1={class:"ui-slider__base"},S1={class:"ui-slider__container"},T1={class:"ui-slider__container ui-slider__container-thumb"},E1=["data-percent"],N1=["data-percent"],B1=["data-percent"],V1={key:0,class:"ui-slider__error"},M1=r.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(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=r.ref(),u=r.ref(),p=r.ref(),h=r.ref(),m=r.computed(()=>l.max-l.min),_=r.computed(()=>l),C=is(_),T=r.computed(()=>ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),L=r.computed(()=>ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),S=r.computed(()=>ft((l.modelValue[2]??0)+s.deltaValue3,l.min,l.max)),B=r.computed(()=>{const ce=l.modelValue;if(!(Array.isArray(ce)&&ce.length===3&&ce.every(Ce=>Number.isFinite(Ce))))return"Expected model [number, number, number]";const Q=[];return[...l.modelValue].forEach(Ce=>{Ce>l.max&&Q.push(`Max model value must be lower than max props ${l.max}.`),Ce<l.min&&Q.push("Min model value must be greater than max props.")}),Q.length>0?Q.join(" "):l.error}),v=r.computed(()=>(T.value-l.min)/m.value),A=r.computed(()=>(L.value-l.min)/m.value),D=r.computed(()=>(S.value-l.min)/m.value),Z=r.computed(()=>W()),G=r.computed(()=>({right:Z.value[0]+"%",left:100-Z.value[2]+"%"})),U=r.computed(()=>({right:Math.ceil((1-v.value)*100)+"%"})),M=r.computed(()=>({right:Math.ceil((1-A.value)*100)+"%"})),z=r.computed(()=>({right:Math.ceil((1-D.value)*100)+"%"}));Kr(u,ce=>{var Q;it((Q=r.unref(d))==null?void 0:Q.getBoundingClientRect(),Ce=>{const{dx:Ve}=ce;s.deltaValue1=Ve/Ce.width*m.value,u.value&&R(u.value,l.modelValue[0],s.deltaValue1),ce.stop&&(Y([F(T.value),F(L.value),F(S.value)]),s.deltaValue1=0)})}),Kr(p,ce=>{var Q;it((Q=r.unref(d))==null?void 0:Q.getBoundingClientRect(),Ce=>{const{dx:Ve}=ce;s.deltaValue2=Ve/Ce.width*m.value,p.value&&R(p.value,l.modelValue[1],s.deltaValue2),ce.stop&&(Y([F(T.value),F(L.value),F(S.value)]),s.deltaValue2=0)})}),Kr(h,ce=>{var Q;it((Q=r.unref(d))==null?void 0:Q.getBoundingClientRect(),Ce=>{const{dx:Ve}=ce;s.deltaValue3=Ve/Ce.width*m.value,h.value&&R(h.value,l.modelValue[2],s.deltaValue3),ce.stop&&(Y([F(T.value),F(L.value),F(S.value)]),s.deltaValue3=0)})});function R(ce,Q,Ce){const Ve=F(ft((Q??0)+Ce,l.min,l.max));ce.dataset.percent=`${Ve}${l.measure}`,ie()}function W(){const ce=Math.ceil((1-v.value)*100),Q=Math.ceil((1-A.value)*100),Ce=Math.ceil((1-D.value)*100);return[ce,Q,Ce].sort((Ve,On)=>Ve-On)}function F(ce){const Q=ft(ce,l.min,l.max);return Math.round((Q+Number.EPSILON)*(1/l.step))/(1/l.step)}function Y(ce){i("update:modelValue",ce)}function ie(){const ce=Number(U.value.right.substring(0,U.value.right.length-1)),Q=Number(M.value.right.substring(0,M.value.right.length-1)),Ce=Number(z.value.right.substring(0,z.value.right.length-1)),Ve=[{r:ce,th:u},{r:Q,th:p},{r:Ce,th:h}].sort((On,sn)=>On.r-sn.r);Ve[0].th.value&&(Ve[0].th.value.dataset.hint="high"),Ve[1].th.value&&(Ve[1].th.value.dataset.hint="mid"),Ve[2].th.value&&(Ve[2].th.value.dataset.hint="low")}function de(ce,Q){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(ce.code)&&ce.preventDefault();const Ce=ce.code==="ArrowUp"||ce.code==="ArrowRight"?l.step*1:ce.code==="ArrowDown"||ce.code==="ArrowLeft"?l.step*-1:0,Ve=[...l.modelValue];Ve[Q]=ft(Ve[Q]+Ce,l.min,l.max),Y(Ve),ie()}return r.onMounted(()=>{ie()}),(ce,Q)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[r.createElementVNode("div",x1,[r.createElementVNode("div",_1,[ce.label?(r.openBlock(),r.createElementBlock("label",k1,[r.createElementVNode("span",null,r.toDisplayString(ce.label),1),Q[3]||(Q[3]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(ce.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),Q[11]||(Q[11]=r.createTextVNode()),r.createElementVNode("div",C1,[r.createElementVNode("div",S1,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(G.value)},null,4)],512)]),Q[10]||(Q[10]=r.createTextVNode()),r.createElementVNode("div",T1,[l.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(C),(Ce,Ve)=>(r.openBlock(),r.createElementBlock("div",{key:Ve,style:r.normalizeStyle({right:`${Ce}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),Q[7]||(Q[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(U.value),"data-percent":l.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:Q[0]||(Q[0]=Ce=>de(Ce,0))},Q[4]||(Q[4]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,E1),Q[8]||(Q[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(M.value),"data-percent":l.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:Q[1]||(Q[1]=Ce=>de(Ce,1))},Q[5]||(Q[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,N1),Q[9]||(Q[9]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef3",ref:h,style:r.normalizeStyle(z.value),"data-percent":l.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:Q[2]||(Q[2]=Ce=>de(Ce,2))},Q[6]||(Q[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,B1)])])]),Q[12]||(Q[12]=r.createTextVNode()),Q[13]||(Q[13]=r.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),Q[14]||(Q[14]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",V1,r.toDisplayString(B.value),1)):r.createCommentVNode("",!0)],2))}}),z1={class:"ui-input-range__separator"},A1=r.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(a,{emit:e}){const t=a,i=e,l=r.reactive({left:t.modelValue[0],right:t.modelValue[1]}),s=r.ref(!1),d=r.computed(()=>(s.value,"ui-input-range-focused")),u=r.computed({get(){return{left:Math.min(...t.modelValue),right:Math.max(...t.modelValue)}},set(){}});r.watch(()=>u.value,m=>(l.left=m.left)&&(l.right=m.right));function p(){i("update:modelValue",[+l.left,+l.right]),i("change",[+l.left,+l.right])}function h(m,_){const C=_.target.value;/^[0-9]{0,2}$/.test(C)?m?l.left=+C:l.right=+C:m?l.left=+C.slice(0,C.length-1):l.right=+C.slice(0,C.length-1)}return(m,_)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({class:[d.value,"ui-input-range"]},m.$attrs),[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=C=>u.value.left=C),class:"text-s",type:"text",onChange:p,onFocus:_[1]||(_[1]=C=>s.value=!0),onFocusout:_[2]||(_[2]=C=>s.value=!1),onInput:_[3]||(_[3]=C=>h(!0,C))},null,544),[[r.vModelText,u.value.left]]),_[8]||(_[8]=r.createTextVNode()),r.createElementVNode("div",z1,r.toDisplayString(t.separator),1),_[9]||(_[9]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=C=>u.value.right=C),class:"text-s",type:"text",onChange:p,onFocus:_[5]||(_[5]=C=>s.value=!0),onFocusout:_[6]||(_[6]=C=>s.value=!1),onInput:_[7]||(_[7]=C=>h(!1,C))},null,544),[[r.vModelText,u.value.right]])],16))}}),O1={class:"ui-slider__wrapper"},L1={class:"ui-slider__label-section"},D1={key:0,class:"text-s"},I1={key:1,class:"ui-slider__value-static text-s"},R1={class:"ui-slider__base"},P1={class:"ui-slider__container"},j1={class:"ui-slider__container ui-slider__container-thumb"},F1={class:"ui-slider__input-wrapper d-flex"},$1={key:0,class:"ui-slider__error"},Z1=r.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(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.reactive({deltaValue1:0,deltaValue2:0}),d=r.ref(),u=r.ref(),p=r.ref(),h=r.ref(l.modelValue),m=r.ref(l.modelValue[0]),_=r.ref(l.modelValue[1]),C=r.computed(()=>l),T=is(C),L=r.computed(()=>[m.value,_.value].sort((ie,de)=>ie-de).join("-")),S=r.computed(()=>l.max-l.min),B=r.computed(()=>ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),v=r.computed(()=>ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),A=r.computed(()=>{const ie=l.modelValue;return Array.isArray(ie)&&ie.length===2&&ie.every(de=>Number.isFinite(de))?l.error:"Expected model [number, number]"}),D=r.computed(()=>(B.value-l.min)/S.value),Z=r.computed(()=>(v.value-l.min)/S.value),G=r.computed(()=>R()),U=r.computed(()=>({right:G.value[0]+"%",left:100-G.value[1]+"%"})),M=r.computed(()=>({right:Math.ceil((1-D.value)*100)+"%"})),z=r.computed(()=>({right:Math.ceil((1-Z.value)*100)+"%"}));r.watch(()=>l.modelValue,ie=>{h.value=ie,m.value=+ie[0],_.value=+ie[1]},{immediate:!0}),Kr(u,ie=>{var de;it((de=r.unref(d))==null?void 0:de.getBoundingClientRect(),ce=>{const{dx:Q}=ie;s.deltaValue1=Q/ce.width*S.value,m.value=W(ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),h.value=[m.value,_.value].sort((Ce,Ve)=>Ce-Ve),ie.stop&&(F([W(B.value),W(v.value)]),s.deltaValue1=0)})}),Kr(p,ie=>{var de;it((de=r.unref(d))==null?void 0:de.getBoundingClientRect(),ce=>{const{dx:Q}=ie;s.deltaValue2=Q/ce.width*S.value,_.value=W(ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),h.value=[m.value,_.value].sort((Ce,Ve)=>Ce-Ve),ie.stop&&(F([W(B.value),W(v.value)]),s.deltaValue2=0)})});function R(){const ie=Math.ceil((1-D.value)*100),de=Math.ceil((1-Z.value)*100);return[ie,de].sort((ce,Q)=>ce-Q)}function W(ie){const de=ft(ie,l.min,l.max);return Math.round((de+Number.EPSILON)*(1/l.step))/(1/l.step)}function F(ie){i("update:modelValue",ie)}function Y(ie,de){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(ie.code)&&ie.preventDefault();const ce=ie.code==="ArrowUp"||ie.code==="ArrowRight"?l.step*1:ie.code==="ArrowDown"||ie.code==="ArrowLeft"?l.step*-1:0,Q=[...l.modelValue];Q[de]=ft(Q[de]+ce,l.min,l.max),F(Q)}return(ie,de)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[r.createElementVNode("div",O1,[r.createElementVNode("div",L1,[ie.label?(r.openBlock(),r.createElementBlock("label",D1,[r.createElementVNode("span",null,r.toDisplayString(ie.label),1),de[3]||(de[3]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(ie.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),de[4]||(de[4]=r.createTextVNode()),l.mode==="text"?(r.openBlock(),r.createElementBlock("div",I1,r.toDisplayString(L.value),1)):r.createCommentVNode("",!0)]),de[10]||(de[10]=r.createTextVNode()),r.createElementVNode("div",R1,[r.createElementVNode("div",P1,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(U.value)},null,4)],512)]),de[9]||(de[9]=r.createTextVNode()),r.createElementVNode("div",j1,[l.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(T),(ce,Q)=>(r.openBlock(),r.createElementBlock("div",{key:Q,style:r.normalizeStyle({right:`${ce}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),de[7]||(de[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(M.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[0]||(de[0]=ce=>Y(ce,0))},de[5]||(de[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),de[8]||(de[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(z.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[1]||(de[1]=ce=>Y(ce,1))},de[6]||(de[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),de[11]||(de[11]=r.createTextVNode()),r.createElementVNode("div",F1,[l.mode==="input"?(r.openBlock(),r.createBlock(A1,{key:0,modelValue:h.value,"onUpdate:modelValue":de[2]||(de[2]=ce=>h.value=ce),class:"ui-focused-border",onChange:F},null,8,["modelValue"])):r.createCommentVNode("",!0)])],2),de[12]||(de[12]=r.createTextVNode()),A.value?(r.openBlock(),r.createElementBlock("div",$1,r.toDisplayString(A.value),1)):r.createCommentVNode("",!0)],2))}}),U1=r.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.clientHeight/(i.scrollHeight||1)),d=r.computed(()=>s.value<1),u=r.computed(()=>{const p=r.unref(s);return{top:i.scrollTop*p+"px",height:Math.floor(i.clientHeight*p)+"px"}});return Xe(l,"pointerdown",p=>{const h={clientY:p.clientY},m=Gl(document,"mousemove",_=>{const C=(_.clientY-h.clientY)/s.value;t("update:scrollTop",i.scrollTop+C),h.clientY=_.clientY});["mouseup","pointercancel"].forEach(_=>{document.addEventListener(_,m,{once:!0})})}),(p,h)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:l,class:"v-scroll"},[r.createElementVNode("div",{class:"v-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),W1=r.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.clientWidth/(i.scrollWidth||1)),d=r.computed(()=>s.value<1),u=r.computed(()=>{const p=r.unref(s);return{left:i.scrollLeft*p+"px",width:Math.floor(i.clientWidth*p)+"px"}});return Xe(l,"pointerdown",p=>{const h={clientX:p.clientX},m=Gl(document,"mousemove",_=>{const C=(_.clientX-h.clientX)/s.value;t("update:scrollLeft",i.scrollLeft+C),h.clientX=_.clientX});["mouseup","pointercancel"].forEach(_=>{document.addEventListener(_,m,{once:!0})})}),(p,h)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:l,class:"h-scroll"},[r.createElementVNode("div",{class:"h-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),H1={class:"ui-scrollable"},q1=r.defineComponent({__name:"Scrollable",setup(a){const e=r.ref(),t=r.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function i(u){Wb(t,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const l=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,i(p)};function s(u){it(r.unref(e),p=>{p.scrollTop=u,i(p)})}function d(u){it(r.unref(e),p=>{p.scrollLeft=u,i(p)})}return Su(e,u=>{it(u,p=>i(p))}),r.onMounted(()=>{it(r.unref(e),u=>{i(u),u.addEventListener("wheel",l)})}),r.onUnmounted(()=>{it(r.unref(e),u=>u.removeEventListener("wheel",l))}),(u,p)=>(r.openBlock(),r.createElementBlock("div",H1,[r.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:l},[r.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=r.createTextVNode()),r.createVNode(U1,{"scroll-top":t.scrollTop,"client-height":t.clientHeight,"scroll-height":t.scrollHeight,onWheel:p[0]||(p[0]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":s},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=r.createTextVNode()),r.createVNode(W1,{"scroll-left":t.scrollLeft,"client-width":t.clientWidth,"scroll-width":t.scrollWidth,onWheel:p[1]||(p[1]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),G1="add.svg",Y1="box.svg",K1="checkmark.svg",J1="clear.svg",Q1="clipboard.svg",X1="close.svg",e_="comp.svg",t_="compare.svg",r_="copy.svg",n_="duplicate.svg",a_="edit.svg",o_="error.svg",i_="filter.svg",l_="help.svg",s_="info.svg",c_="link.svg",d_="loading.svg",u_="lock.svg",g_="maximize.svg",p_="minimize.svg",f_="minus.svg",h_="more.svg",m_="open.svg",y_="pause.svg",b_="play.svg",v_="required.svg",w_="restart.svg",x_="reverse.svg",__="settings.svg",k_="sort.svg",C_="sorter.svg",S_="stop.svg",T_="success.svg",E_="tune.svg",N_="warning.svg",B_="zip.svg",V_={add:G1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",box:Y1,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:K1,"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:J1,"clipboard-copied":"clipboard-copied.svg",clipboard:Q1,close:X1,comp:e_,compare:t_,copy:r_,"data-dimentions":"data-dimentions.svg","delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",delete:"delete.svg","drag-dots":"drag-dots.svg",duplicate:n_,edit:a_,error:o_,export:"export.svg","filter-2":"filter-2.svg","filter-on":"filter-on.svg",filter:i_,"help-outline":"help-outline.svg",help:l_,import:"import.svg","info-outline":"info-outline.svg",info:s_,"jump-link":"jump-link.svg","link-arrow":"link-arrow.svg",link:c_,loading:d_,lock:u_,maximize:g_,minimize:p_,minus:f_,"more-horizontal":"more-horizontal.svg",more:h_,open:m_,pause:y_,play:b_,required:v_,restart:w_,reverse:x_,"settings-2":"settings-2.svg",settings:__,sort:k_,sorter:C_,stop:S_,success:T_,tune:E_,warning:N_,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:B_},M_="add.svg",z_="annotate.svg",A_="annotation.svg",O_="area.svg",L_="axes.svg",D_="bar.svg",I_="bindot.svg",R_="box.svg",P_="boxplot.svg",j_="bubble.svg",F_="canvas.svg",$_="checkbox.svg",Z_="checkmark.svg",U_="clipboard.svg",W_="close.svg",H_="cluster.svg",q_="code.svg",G_="color.svg",Y_="columns.svg",K_="cookie.svg",J_="copy.svg",Q_="cpu.svg",X_="debug.svg",ek="dna.svg",tk="duplicate.svg",rk="edit.svg",nk="error.svg",ak="filter.svg",ok="generate.svg",ik="graph.svg",lk="heatmap.svg",sk="help.svg",ck="hide.svg",dk="info.svg",uk="jitter.svg",gk="lasso.svg",pk="layers.svg",fk="learn.svg",hk="legend.svg",mk="line.svg",yk="linetype.svg",bk="link.svg",vk="loading.svg",wk="local.svg",xk="lock.svg",_k="logout.svg",kk="maximize.svg",Ck="menu.svg",Sk="minimize.svg",Tk="minus.svg",Ek="more.svg",Nk="pause.svg",Bk="pin.svg",Vk="play.svg",Mk="position.svg",zk="progress.svg",Ak="publications.svg",Ok="restart.svg",Lk="reverse.svg",Dk="rotation.svg",Ik="save.svg",Rk="search.svg",Pk="server.svg",jk="settings.svg",Fk="show.svg",$k="sina.svg",Zk="skatterplot.svg",Uk="slice.svg",Wk="sort.svg",Hk="statistics.svg",qk="stop.svg",Gk="stroke.svg",Yk="success.svg",Kk="table.svg",Jk="template.svg",Qk="terminal.svg",Xk="tune.svg",eC="venn.svg",tC="violin.svg",rC="warning.svg",nC="wetlab.svg",aC="zip.svg",oC={"add-layer":"add-layer.svg",add:M_,"align-center":"align-center.svg","align-left":"align-left.svg","align-right":"align-right.svg",annotate:z_,annotation:A_,area:O_,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:L_,"bar-cross":"bar-cross.svg","bar-error":"bar-error.svg","bar-stacked":"bar-stacked.svg","bar-trend":"bar-trend.svg",bar:D_,bindot:I_,"box-dot":"box-dot.svg",box:R_,"boxplot-1":"boxplot-1.svg","boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:P_,bubble:j_,canvas:F_,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg","checkbox-checked":"checkbox-checked.svg","checkbox-intermediate":"checkbox-intermediate.svg",checkbox:$_,checkmark:Z_,"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-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:U_,close:W_,"cloud-down":"cloud-down.svg","cloud-download":"cloud-download.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-up":"cloud-up.svg","cloud-upload":"cloud-upload.svg",cluster:H_,"code-2":"code-2.svg",code:q_,"color-fill":"color-fill.svg","color-none":"color-none.svg","color-stroke":"color-stroke.svg",color:G_,columns:Y_,"connected-points":"connected-points.svg",cookie:K_,copy:J_,cpu:Q_,"cross-bars":"cross-bars.svg","dark-mode":"dark-mode.svg","data-dimentions":"data-dimentions.svg",debug:X_,"delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",delete:"delete.svg","dendrogram-X-1":"dendrogram-X-1.svg","dendrogram-X-line":"dendrogram-X-line.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-1":"dendrogram-Y-1.svg","dendrogram-Y-line":"dendrogram-Y-line.svg","dendrogram-Y":"dendrogram-Y.svg",dna:ek,"download-files":"download-files.svg","drag-dots":"drag-dots.svg","drag-horizontal":"drag-horizontal.svg","drag-vertical":"drag-vertical.svg",duplicate:tk,edit:rk,"error-bar":"error-bar.svg",error:nk,"expand-left":"expand-left.svg","expand-right":"expand-right.svg","export-2":"export-2.svg",export:"export.svg","external-link":"external-link.svg","files-export":"files-export.svg","files-import":"files-import.svg","fill-color":"fill-color.svg","filter-on":"filter-on.svg",filter:ak,"filters-gate":"filters-gate.svg","fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type--left":"frame-type--left.svg","frame-type-all":"frame-type-all.svg","frame-type-bottom":"frame-type-bottom.svg","frame-type-left-bottom":"frame-type-left-bottom.svg","frame-type-none":"frame-type-none.svg","frame-type":"frame-type.svg",generate:ok,graph:ik,heatmap:lk,"help-outline":"help-outline.svg",help:sk,hide:ck,"import-2":"import-2.svg","import-download":"import-download.svg",import:"import.svg","info-circle-outline":"info-circle-outline.svg","info-outline":"info-outline.svg",info:dk,jitter:uk,"jump-link":"jump-link.svg",lasso:gk,layers:pk,learn:fk,"legend-box-dot":"legend-box-dot.svg","legend-box":"legend-box.svg",legend:hk,"light-mode":"light-mode.svg","line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:mk,"linetype-dashed":"linetype-dashed.svg","linetype-dotdash":"linetype-dotdash.svg","linetype-dotted":"linetype-dotted.svg","linetype-longdash":"linetype-longdash.svg","linetype-solid":"linetype-solid.svg","linetype-twodash":"linetype-twodash.svg",linetype:yk,"link-disabled":"link-disabled.svg",link:bk,loading:vk,local:wk,lock:xk,logout:_k,maximize:kk,menu:Ck,minimize:Sk,minus:Tk,"mode-dark":"mode-dark.svg","mode-light":"mode-light.svg","more-horizontal":"more-horizontal.svg",more:Ek,"outlier-shape":"outlier-shape.svg","paper-clip":"paper-clip.svg",pause:Nk,pin:Bk,play:Vk,"position-bottom-annotation":"position-bottom-annotation.svg","position-bottom":"position-bottom.svg","position-left-annotation":"position-left-annotation.svg","position-left":"position-left.svg","position-right-annotation":"position-right-annotation.svg","position-right":"position-right.svg","position-top-annotation":"position-top-annotation.svg","position-top":"position-top.svg",position:Mk,"progress-2":"progress-2.svg",progress:zk,publications:Ak,"radio-btn":"radio-btn.svg","radio-button-checked":"radio-button-checked.svg","radio-button":"radio-button.svg",restart:Ok,reverse:Lk,"rotation-0":"rotation-0.svg","rotation-45":"rotation-45.svg","rotation-90":"rotation-90.svg",rotation:Dk,save:Ik,search:Rk,"server-2":"server-2.svg","server-on":"server-on.svg",server:Pk,"settings-2":"settings-2.svg",settings:jk,show:Fk,sina:$k,skatterplot:Zk,slice:Uk,"social-github":"social-github.svg","social-linkedin":"social-linkedin.svg","social-media":"social-media.svg","social-twitter-X":"social-twitter-X.svg","social-twitter-bird":"social-twitter-bird.svg","social-youtube":"social-youtube.svg","sort-list-down":"sort-list-down.svg","sort-list-up":"sort-list-up.svg",sort:Wk,"stacked-bar":"stacked-bar.svg",statistics:Hk,stop:qk,"strip-plot":"strip-plot.svg","stroke-non":"stroke-non.svg",stroke:Gk,success:Yk,"table-upload":"table-upload.svg",table:Kk,template:Jk,terminal:Qk,"text-align-center":"text-align-center.svg","text-align-left":"text-align-left.svg","text-align-right":"text-align-right.svg","title-position":"title-position.svg",tune:Xk,"upload-files":"upload-files.svg",venn:eC,"view-off":"view-off.svg","view-on":"view-on.svg","violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:tC,warning:rC,wetlab:nC,"windows-collapse":"windows-collapse.svg","windows-expand":"windows-expand.svg","x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:aC,"zoom-in":"zoom-in.svg","zoom-out":"zoom-out.svg"};function iC(){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 lC=["add","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","box","cell-type-num","cell-type-txt","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","clear","clipboard-copied","clipboard","close","comp","compare","copy","data-dimentions","delete-bin","delete-circle","delete-clear","delete","drag-dots","duplicate","edit","error","export","filter-2","filter-on","filter","help-outline","help","import","info-outline","info","jump-link","link-arrow","link","loading","lock","maximize","minimize","minus","more-horizontal","more","open","pause","play","required","restart","reverse","settings-2","settings","sort","sorter","stop","success","tune","warning","x-axis","y-axis","zip"],sC=["add-layer","add","align-center","align-left","align-right","annotate","annotation","area","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","axes","bar-cross","bar-error","bar-stacked","bar-trend","bar","bindot","box-dot","box","boxplot-1","boxplot-binned","boxplot-jitter","boxplot-notched","boxplot","bubble","canvas","cell-type-num","cell-type-txt","checkbox-checked","checkbox-intermediate","checkbox","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-sort","chevron-up","clipboard-copied","clipboard","close","cloud-down","cloud-download","cloud-offline","cloud-online","cloud-up","cloud-upload","cluster","code-2","code","color-fill","color-none","color-stroke","color","columns","connected-points","cookie","copy","cpu","cross-bars","dark-mode","data-dimentions","debug","delete-bin","delete-circle","delete-clear","delete","dendrogram-X-1","dendrogram-X-line","dendrogram-X","dendrogram-Y-1","dendrogram-Y-line","dendrogram-Y","dna","download-files","drag-dots","drag-horizontal","drag-vertical","duplicate","edit","error-bar","error","expand-left","expand-right","export-2","export","external-link","files-export","files-import","fill-color","filter-on","filter","filters-gate","fire-tips","folder-parent","frame-type--left","frame-type-all","frame-type-bottom","frame-type-left-bottom","frame-type-none","frame-type","generate","graph","heatmap","help-outline","help","hide","import-2","import-download","import","info-circle-outline","info-outline","info","jitter","jump-link","lasso","layers","learn","legend-box-dot","legend-box","legend","light-mode","line-binned","line-error","line-jitter","line","linetype-dashed","linetype-dotdash","linetype-dotted","linetype-longdash","linetype-solid","linetype-twodash","linetype","link-disabled","link","loading","local","lock","logout","maximize","menu","minimize","minus","mode-dark","mode-light","more-horizontal","more","outlier-shape","paper-clip","pause","pin","play","position-bottom-annotation","position-bottom","position-left-annotation","position-left","position-right-annotation","position-right","position-top-annotation","position-top","position","progress-2","progress","publications","radio-btn","radio-button-checked","radio-button","restart","reverse","rotation-0","rotation-45","rotation-90","rotation","save","search","server-2","server-on","server","settings-2","settings","show","sina","skatterplot","slice","social-github","social-linkedin","social-media","social-twitter-X","social-twitter-bird","social-youtube","sort-list-down","sort-list-up","sort","stacked-bar","statistics","stop","strip-plot","stroke-non","stroke","success","table-upload","table","template","terminal","text-align-center","text-align-left","text-align-right","title-position","tune","upload-files","venn","view-off","view-on","violin-binned","violin-jitter","violin","warning","wetlab","windows-collapse","windows-expand","x-axis","y-axis","zip","zoom-in","zoom-out"],cC={allCssVariables:iC(),icons16:V_,icons24:oC},dC={class:"block__not-found"},uC=r.defineComponent({__name:"NotFound",setup(a){const t=Vl().useApp(),i=()=>{t.updateNavigationState(l=>{l.href="/"})};return(l,s)=>(r.openBlock(),r.createElementBlock("div",dC,[r.createElementVNode("h1",null,"Not found route: "+r.toDisplayString(r.unref(t).snapshot.navigationState.href),1),r.createVNode(r.unref(Zl),{onClick:r.withModifiers(i,["stop"])},{default:r.withCtx(()=>s[0]||(s[0]=[r.createTextVNode("Return to main page")])),_:1})]))}}),ls=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},gC={},pC={class:"block__loader-page"};function fC(a,e){return r.openBlock(),r.createElementBlock("div",pC,e[0]||(e[0]=[r.createElementVNode("div",{class:"loader-container"},[r.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const hC=ls(gC,[["render",fC]]),mC={class:"pl-app-notification-alert"},yC={class:"pl-app-notification-alert__content"},bC={class:"pl-app-notification-alert__title"},vC={class:"pl-app-notification-alert__error-description"},wC=r.defineComponent({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(a){const e=a,t=r.ref(!1),i=r.ref(!0);function l(){t.value=!0}function s(d){navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(d))}return r.watch(()=>e.errors,d=>{i.value=Object.values(d).some(u=>!!u)},{immediate:!0,deep:!0}),(d,u)=>(r.openBlock(),r.createElementBlock("div",mC,[r.createVNode(r.unref(Xl),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=p=>t.value=p),width:"50%",style:{"max-height":"100vh"}},{title:r.withCtx(()=>u[2]||(u[2]=[r.createTextVNode(" Errors ")])),default:r.withCtx(()=>[r.createElementVNode("div",yC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.errors,(p,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"pl-app-notification-alert__item"},[r.createElementVNode("div",bC,r.toDisplayString(h),1),r.createElementVNode("div",vC,[r.createElementVNode("code",null,r.toDisplayString(p==null?void 0:p.message),1),r.createVNode(r.unref(Cu),{class:"pl-app-notification-alert__copy-icon",onCopyData:m=>s(p)},null,8,["onCopyData"])])]))),128))])]),_:1},8,["modelValue"]),r.createVNode(r.unref(ku),{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=p=>i.value=p),type:"error",closable:""},{actions:r.withCtx(()=>[r.createVNode(r.unref(Ud)),r.createVNode(r.unref($l),{onClick:l},{default:r.withCtx(()=>u[3]||(u[3]=[r.createTextVNode("Show errors")])),_:1})]),default:r.withCtx(()=>[u[4]||(u[4]=r.createTextVNode(" Output failed. Review block logic and retry "))]),_:1},8,["modelValue"])]))}}),xC={class:"block block__layout"},_C={key:0},kC=r.defineComponent({__name:"BlockLayout",setup(a){const e=Vl(),t=p=>{try{return new URL(p,"http://dummy").pathname}catch{console.error("Invalid href",p);return}},i=r.computed(()=>e.loaded?e.useApp().href:void 0),l=r.computed(()=>{if(e.loaded){const p=e.useApp(),h=t(p.snapshot.navigationState.href);return h?p.getRoute(h):void 0}}),s=r.computed(()=>e.loaded?e.useApp():void 0),d=r.computed(()=>s.value?s.value.model.outputErrors:{}),u=r.computed(()=>{var p;return(p=s.value)==null?void 0:p.showErrorsNotification});return(p,h)=>(r.openBlock(),r.createElementBlock("div",xC,[r.unref(e).error?(r.openBlock(),r.createElementBlock("div",_C,r.toDisplayString(r.unref(e).error),1)):r.unref(e).loaded?l.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value),{key:i.value})):(r.openBlock(),r.createBlock(uC,{key:3})):(r.openBlock(),r.createBlock(hC,{key:1},{default:r.withCtx(()=>h[0]||(h[0]=[r.createTextVNode("Loading...")])),_:1})),r.unref(e).loaded&&u.value?(r.openBlock(),r.createBlock(r.unref(wC),{key:4,errors:d.value},null,8,["errors"])):r.createCommentVNode("",!0)]))}});var pi={exports:{}};/**
|
|
37
|
+
)`}function s(){const u=a.value;if(!u)return;const p=[i(u),l(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=Rl(s);r.onMounted(s),Xe(window,"scroll",d,!0),Xe(window,"resize",d,!0)}function Su(a,e){qd(()=>{it(r.unref(a),t=>{Gd(t,()=>e(t))})}),r.onUnmounted(()=>{it(r.unref(a),t=>{Yd(t)})})}const an={item:"sortable__item",animate:"sortable__animate"},go=a=>a.getBoundingClientRect().y,Tu=a=>{const{y:e,height:t}=a.getBoundingClientRect();return e+Math.ceil(t/2)},h1=a=>{const{y:e,height:t}=a.getBoundingClientRect();return e+t};function m1(a,e){const t={item:void 0,options(){var T;return[...((T=a.value)==null?void 0:T.children)??[]]}},i=r.computed(()=>t.options()),l=e.shakeBuffer??10,s=e.reorderDelay??100;function d(T){const L=e.handle?this.querySelector(e.handle):null;L&&!L.contains(T.target)||(this.classList.remove(an.animate),this.classList.add(an.item),t.item={el:this,y:T.y,dy:0,orderChanged:!1})}function u(T){const L=t.options();return L.slice(0,L.indexOf(T))}function p(T){const L=t.options();return L.slice(L.indexOf(T)+1)}function h(T,L){const S=t.options().filter(v=>v!==L),B=S.indexOf(T);return S.splice(B,0,L),S}function m(T,L){const S=t.options().filter(v=>v!==L),B=S.indexOf(T);return S.splice(B+1,0,L),S}function _(T,L){T.dy=L-T.y,T.el.style.setProperty("transform",`translateY(${T.dy}px)`)}function C(T){var L;if(!t.item)return;const{el:S}=t.item;if(!S.isConnected){t.item=void 0;return}const B=T.map(U=>go(U)),v=go(S);(L=a.value)==null||L.replaceChildren(...T);const A=go(S),D=T.map(U=>go(U)),Z=[];for(let U=0;U<D.length;U++){const M=T[U];if(M===t.item.el)continue;const z=D[U],R=B[U]-z;M.style.transform=`translateY(${R}px)`,Z.push(M)}const G=A-v;t.item.y=t.item.y+G,t.item.dy=t.item.dy-G,t.item.orderChanged=!0,t.item.el.style.setProperty("transform",`translateY(${t.item.dy}px)`),Z.forEach(U=>U.classList.remove(an.animate)),requestAnimationFrame(function(){Z.forEach(U=>{U.classList.add(an.animate),U.style.transform="",U.addEventListener("transitionend",()=>{U.classList.remove(an.animate)})})})}Xe(window,"mousemove",T=>{if(!t.item)return;const{el:L}=t.item;_(t.item,T.y);const S=go(t.item.el),B=h1(t.item.el),v=u(L),A=p(L);v.forEach(D=>{const Z=Tu(D);S+l<Z&&C(h(D,L))}),A.forEach(D=>{const Z=Tu(D);B-l>Z&&C(m(D,L))})}),Xe(window,"mouseup",()=>{if(!t.item)return;const{el:T,orderChanged:L}=t.item;T.classList.add(an.animate),T.style.removeProperty("transform"),T.addEventListener("transitionend",()=>{T.classList.remove(an.animate,an.item)}),setTimeout(()=>{if(!L)return;const S=t.options().map(v=>Number(v.getAttribute("data-index"))),B=a.value;if(B){for(const v of t.options())B.removeChild(v);i.value.forEach(v=>{B.appendChild(v)})}e.onChange(S)},s),t.item=void 0}),r.watchEffect(()=>{i.value.forEach((T,L)=>{T.removeEventListener("mousedown",d),T.addEventListener("mousedown",d),T.setAttribute("data-index",String(L))})})}function y1(a,e){let t;r.onMounted(()=>{t=setInterval(a,e)}),r.onUnmounted(()=>clearInterval(t))}function b1(a,e,t){const i=r.reactive({data:zl.deepClone(e(a.value)),changed:!1});return r.watch(()=>i.data,l=>{i.changed?t(zl.deepClone(l)):i.changed=!0},{deep:!0}),r.watch(a,l=>{Object.assign(i,{data:zl.deepClone(e(l)),changed:!1})},{deep:!0,immediate:!0}),i}function v1(a){const e=r.reactive({isLoading:!1,result:void 0,error:void 0,async run(...t){this.isLoading=!0,this.error=void 0;try{this.result=await a(...t)}catch(i){this.error=i}finally{this.isLoading=!1}},debounce(t,i=1e3){return Td(()=>{const l=t();this.run(...l).catch(console.error)},i)}});return e.run=e.run.bind(e),e}function w1(a,e){function t(d,u){const p=r.unref(a);if(!p)return;const h=`translate(${u.x-d.x}px, ${u.y-d.y}px)`;p.style.setProperty("transform",h),e(u)}function i(d){const u=p=>t(d,p);document.addEventListener("mousemove",u),document.addEventListener("mouseup",()=>{const p=r.unref(a);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 l(){var d;(d=r.unref(a))==null||d.addEventListener("mousedown",i)}function s(){var d;(d=r.unref(a))==null||d.removeEventListener("mousedown",i)}r.onMounted(l),r.onUnmounted(s)}const x1={class:"ui-slider__wrapper"},_1={class:"ui-slider__label-section"},k1={key:0,class:"text-s"},C1={class:"ui-slider__base"},S1={class:"ui-slider__container"},T1={class:"ui-slider__container ui-slider__container-thumb"},E1=["data-percent"],N1=["data-percent"],B1=["data-percent"],V1={key:0,class:"ui-slider__error"},M1=r.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(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.reactive({deltaValue1:0,deltaValue2:0,deltaValue3:0}),d=r.ref(),u=r.ref(),p=r.ref(),h=r.ref(),m=r.computed(()=>l.max-l.min),_=r.computed(()=>l),C=is(_),T=r.computed(()=>ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),L=r.computed(()=>ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),S=r.computed(()=>ft((l.modelValue[2]??0)+s.deltaValue3,l.min,l.max)),B=r.computed(()=>{const ce=l.modelValue;if(!(Array.isArray(ce)&&ce.length===3&&ce.every(Ce=>Number.isFinite(Ce))))return"Expected model [number, number, number]";const Q=[];return[...l.modelValue].forEach(Ce=>{Ce>l.max&&Q.push(`Max model value must be lower than max props ${l.max}.`),Ce<l.min&&Q.push("Min model value must be greater than max props.")}),Q.length>0?Q.join(" "):l.error}),v=r.computed(()=>(T.value-l.min)/m.value),A=r.computed(()=>(L.value-l.min)/m.value),D=r.computed(()=>(S.value-l.min)/m.value),Z=r.computed(()=>W()),G=r.computed(()=>({right:Z.value[0]+"%",left:100-Z.value[2]+"%"})),U=r.computed(()=>({right:Math.ceil((1-v.value)*100)+"%"})),M=r.computed(()=>({right:Math.ceil((1-A.value)*100)+"%"})),z=r.computed(()=>({right:Math.ceil((1-D.value)*100)+"%"}));Kr(u,ce=>{var Q;it((Q=r.unref(d))==null?void 0:Q.getBoundingClientRect(),Ce=>{const{dx:Ve}=ce;s.deltaValue1=Ve/Ce.width*m.value,u.value&&R(u.value,l.modelValue[0],s.deltaValue1),ce.stop&&(Y([F(T.value),F(L.value),F(S.value)]),s.deltaValue1=0)})}),Kr(p,ce=>{var Q;it((Q=r.unref(d))==null?void 0:Q.getBoundingClientRect(),Ce=>{const{dx:Ve}=ce;s.deltaValue2=Ve/Ce.width*m.value,p.value&&R(p.value,l.modelValue[1],s.deltaValue2),ce.stop&&(Y([F(T.value),F(L.value),F(S.value)]),s.deltaValue2=0)})}),Kr(h,ce=>{var Q;it((Q=r.unref(d))==null?void 0:Q.getBoundingClientRect(),Ce=>{const{dx:Ve}=ce;s.deltaValue3=Ve/Ce.width*m.value,h.value&&R(h.value,l.modelValue[2],s.deltaValue3),ce.stop&&(Y([F(T.value),F(L.value),F(S.value)]),s.deltaValue3=0)})});function R(ce,Q,Ce){const Ve=F(ft((Q??0)+Ce,l.min,l.max));ce.dataset.percent=`${Ve}${l.measure}`,ie()}function W(){const ce=Math.ceil((1-v.value)*100),Q=Math.ceil((1-A.value)*100),Ce=Math.ceil((1-D.value)*100);return[ce,Q,Ce].sort((Ve,On)=>Ve-On)}function F(ce){const Q=ft(ce,l.min,l.max);return Math.round((Q+Number.EPSILON)*(1/l.step))/(1/l.step)}function Y(ce){i("update:modelValue",ce)}function ie(){const ce=Number(U.value.right.substring(0,U.value.right.length-1)),Q=Number(M.value.right.substring(0,M.value.right.length-1)),Ce=Number(z.value.right.substring(0,z.value.right.length-1)),Ve=[{r:ce,th:u},{r:Q,th:p},{r:Ce,th:h}].sort((On,sn)=>On.r-sn.r);Ve[0].th.value&&(Ve[0].th.value.dataset.hint="high"),Ve[1].th.value&&(Ve[1].th.value.dataset.hint="mid"),Ve[2].th.value&&(Ve[2].th.value.dataset.hint="low")}function de(ce,Q){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(ce.code)&&ce.preventDefault();const Ce=ce.code==="ArrowUp"||ce.code==="ArrowRight"?l.step*1:ce.code==="ArrowDown"||ce.code==="ArrowLeft"?l.step*-1:0,Ve=[...l.modelValue];Ve[Q]=ft(Ve[Q]+Ce,l.min,l.max),Y(Ve),ie()}return r.onMounted(()=>{ie()}),(ce,Q)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope ui-slider__triple"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[r.createElementVNode("div",x1,[r.createElementVNode("div",_1,[ce.label?(r.openBlock(),r.createElementBlock("label",k1,[r.createElementVNode("span",null,r.toDisplayString(ce.label),1),Q[3]||(Q[3]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(ce.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),Q[11]||(Q[11]=r.createTextVNode()),r.createElementVNode("div",C1,[r.createElementVNode("div",S1,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(G.value)},null,4)],512)]),Q[10]||(Q[10]=r.createTextVNode()),r.createElementVNode("div",T1,[l.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(C),(Ce,Ve)=>(r.openBlock(),r.createElementBlock("div",{key:Ve,style:r.normalizeStyle({right:`${Ce}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),Q[7]||(Q[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(U.value),"data-percent":l.modelValue[0]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r1:"",tabindex:"0",onKeydown:Q[0]||(Q[0]=Ce=>de(Ce,0))},Q[4]||(Q[4]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,E1),Q[8]||(Q[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(M.value),"data-percent":l.modelValue[1]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r2:"",tabindex:"0",onKeydown:Q[1]||(Q[1]=Ce=>de(Ce,1))},Q[5]||(Q[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,N1),Q[9]||(Q[9]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef3",ref:h,style:r.normalizeStyle(z.value),"data-percent":l.modelValue[2]+"%",class:"ui-slider__thumb ui-slider__triple-thumb",r3:"",tabindex:"0",onKeydown:Q[2]||(Q[2]=Ce=>de(Ce,2))},Q[6]||(Q[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),44,B1)])])]),Q[12]||(Q[12]=r.createTextVNode()),Q[13]||(Q[13]=r.createElementVNode("div",{class:"ui-slider__input-wrapper d-flex"},null,-1))],2),Q[14]||(Q[14]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",V1,r.toDisplayString(B.value),1)):r.createCommentVNode("",!0)],2))}}),z1={class:"ui-input-range__separator"},A1=r.defineComponent({__name:"InputRange",props:{modelValue:{},separator:{default:"-"}},emits:["update:modelValue","change"],setup(a,{emit:e}){const t=a,i=e,l=r.reactive({left:t.modelValue[0],right:t.modelValue[1]}),s=r.ref(!1),d=r.computed(()=>(s.value,"ui-input-range-focused")),u=r.computed({get(){return{left:Math.min(...t.modelValue),right:Math.max(...t.modelValue)}},set(){}});r.watch(()=>u.value,m=>(l.left=m.left)&&(l.right=m.right));function p(){i("update:modelValue",[+l.left,+l.right]),i("change",[+l.left,+l.right])}function h(m,_){const C=_.target.value;/^[0-9]{0,2}$/.test(C)?m?l.left=+C:l.right=+C:m?l.left=+C.slice(0,C.length-1):l.right=+C.slice(0,C.length-1)}return(m,_)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({class:[d.value,"ui-input-range"]},m.$attrs),[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=C=>u.value.left=C),class:"text-s",type:"text",onChange:p,onFocus:_[1]||(_[1]=C=>s.value=!0),onFocusout:_[2]||(_[2]=C=>s.value=!1),onInput:_[3]||(_[3]=C=>h(!0,C))},null,544),[[r.vModelText,u.value.left]]),_[8]||(_[8]=r.createTextVNode()),r.createElementVNode("div",z1,r.toDisplayString(t.separator),1),_[9]||(_[9]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=C=>u.value.right=C),class:"text-s",type:"text",onChange:p,onFocus:_[5]||(_[5]=C=>s.value=!0),onFocusout:_[6]||(_[6]=C=>s.value=!1),onInput:_[7]||(_[7]=C=>h(!1,C))},null,544),[[r.vModelText,u.value.right]])],16))}}),O1={class:"ui-slider__wrapper"},L1={class:"ui-slider__label-section"},D1={key:0,class:"text-s"},I1={key:1,class:"ui-slider__value-static text-s"},R1={class:"ui-slider__base"},P1={class:"ui-slider__container"},j1={class:"ui-slider__container ui-slider__container-thumb"},F1={class:"ui-slider__input-wrapper d-flex"},$1={key:0,class:"ui-slider__error"},Z1=r.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(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.reactive({deltaValue1:0,deltaValue2:0}),d=r.ref(),u=r.ref(),p=r.ref(),h=r.ref(l.modelValue),m=r.ref(l.modelValue[0]),_=r.ref(l.modelValue[1]),C=r.computed(()=>l),T=is(C),L=r.computed(()=>[m.value,_.value].sort((ie,de)=>ie-de).join("-")),S=r.computed(()=>l.max-l.min),B=r.computed(()=>ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),v=r.computed(()=>ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),A=r.computed(()=>{const ie=l.modelValue;return Array.isArray(ie)&&ie.length===2&&ie.every(de=>Number.isFinite(de))?l.error:"Expected model [number, number]"}),D=r.computed(()=>(B.value-l.min)/S.value),Z=r.computed(()=>(v.value-l.min)/S.value),G=r.computed(()=>R()),U=r.computed(()=>({right:G.value[0]+"%",left:100-G.value[1]+"%"})),M=r.computed(()=>({right:Math.ceil((1-D.value)*100)+"%"})),z=r.computed(()=>({right:Math.ceil((1-Z.value)*100)+"%"}));r.watch(()=>l.modelValue,ie=>{h.value=ie,m.value=+ie[0],_.value=+ie[1]},{immediate:!0}),Kr(u,ie=>{var de;it((de=r.unref(d))==null?void 0:de.getBoundingClientRect(),ce=>{const{dx:Q}=ie;s.deltaValue1=Q/ce.width*S.value,m.value=W(ft((l.modelValue[0]??0)+s.deltaValue1,l.min,l.max)),h.value=[m.value,_.value].sort((Ce,Ve)=>Ce-Ve),ie.stop&&(F([W(B.value),W(v.value)]),s.deltaValue1=0)})}),Kr(p,ie=>{var de;it((de=r.unref(d))==null?void 0:de.getBoundingClientRect(),ce=>{const{dx:Q}=ie;s.deltaValue2=Q/ce.width*S.value,_.value=W(ft((l.modelValue[1]??0)+s.deltaValue2,l.min,l.max)),h.value=[m.value,_.value].sort((Ce,Ve)=>Ce-Ve),ie.stop&&(F([W(B.value),W(v.value)]),s.deltaValue2=0)})});function R(){const ie=Math.ceil((1-D.value)*100),de=Math.ceil((1-Z.value)*100);return[ie,de].sort((ce,Q)=>ce-Q)}function W(ie){const de=ft(ie,l.min,l.max);return Math.round((de+Number.EPSILON)*(1/l.step))/(1/l.step)}function F(ie){i("update:modelValue",ie)}function Y(ie,de){["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(ie.code)&&ie.preventDefault();const ce=ie.code==="ArrowUp"||ie.code==="ArrowRight"?l.step*1:ie.code==="ArrowDown"||ie.code==="ArrowLeft"?l.step*-1:0,Q=[...l.modelValue];Q[de]=ft(Q[de]+ce,l.min,l.max),F(Q)}return(ie,de)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([l.disabled?"ui-slider__disabled":void 0,"ui-slider__envelope"])},[r.createElementVNode("div",{class:r.normalizeClass([`ui-slider__mode-${l.mode}`,"ui-slider"])},[r.createElementVNode("div",O1,[r.createElementVNode("div",L1,[ie.label?(r.openBlock(),r.createElementBlock("label",D1,[r.createElementVNode("span",null,r.toDisplayString(ie.label),1),de[3]||(de[3]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(ie.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),de[4]||(de[4]=r.createTextVNode()),l.mode==="text"?(r.openBlock(),r.createElementBlock("div",I1,r.toDisplayString(L.value),1)):r.createCommentVNode("",!0)]),de[10]||(de[10]=r.createTextVNode()),r.createElementVNode("div",R1,[r.createElementVNode("div",P1,[r.createElementVNode("div",{ref_key:"barRef",ref:d,class:"ui-slider__bar"},[r.createElementVNode("div",{class:"ui-slider__progress",style:r.normalizeStyle(U.value)},null,4)],512)]),de[9]||(de[9]=r.createTextVNode()),r.createElementVNode("div",j1,[l.breakpoints?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(T),(ce,Q)=>(r.openBlock(),r.createElementBlock("div",{key:Q,style:r.normalizeStyle({right:`${ce}%`}),class:"ui-slider__thumb-step"},null,4))),128)):r.createCommentVNode("",!0),de[7]||(de[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef1",ref:u,style:r.normalizeStyle(M.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[0]||(de[0]=ce=>Y(ce,0))},de[5]||(de[5]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36),de[8]||(de[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"thumbRef2",ref:p,style:r.normalizeStyle(z.value),class:"ui-slider__thumb",tabindex:"0",onKeydown:de[1]||(de[1]=ce=>Y(ce,1))},de[6]||(de[6]=[r.createElementVNode("div",{class:"ui-slider__thumb-focused-contour"},null,-1)]),36)])])]),de[11]||(de[11]=r.createTextVNode()),r.createElementVNode("div",F1,[l.mode==="input"?(r.openBlock(),r.createBlock(A1,{key:0,modelValue:h.value,"onUpdate:modelValue":de[2]||(de[2]=ce=>h.value=ce),class:"ui-focused-border",onChange:F},null,8,["modelValue"])):r.createCommentVNode("",!0)])],2),de[12]||(de[12]=r.createTextVNode()),A.value?(r.openBlock(),r.createElementBlock("div",$1,r.toDisplayString(A.value),1)):r.createCommentVNode("",!0)],2))}}),U1=r.defineComponent({__name:"VScroll",props:{scrollTop:{},clientHeight:{},scrollHeight:{}},emits:["update:scrollTop"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.clientHeight/(i.scrollHeight||1)),d=r.computed(()=>s.value<1),u=r.computed(()=>{const p=r.unref(s);return{top:i.scrollTop*p+"px",height:Math.floor(i.clientHeight*p)+"px"}});return Xe(l,"pointerdown",p=>{const h={clientY:p.clientY},m=Gl(document,"mousemove",_=>{const C=(_.clientY-h.clientY)/s.value;t("update:scrollTop",i.scrollTop+C),h.clientY=_.clientY});["mouseup","pointercancel"].forEach(_=>{document.addEventListener(_,m,{once:!0})})}),(p,h)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:l,class:"v-scroll"},[r.createElementVNode("div",{class:"v-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),W1=r.defineComponent({__name:"HScroll",props:{scrollLeft:{},clientWidth:{},scrollWidth:{}},emits:["update:scrollLeft"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.clientWidth/(i.scrollWidth||1)),d=r.computed(()=>s.value<1),u=r.computed(()=>{const p=r.unref(s);return{left:i.scrollLeft*p+"px",width:Math.floor(i.clientWidth*p)+"px"}});return Xe(l,"pointerdown",p=>{const h={clientX:p.clientX},m=Gl(document,"mousemove",_=>{const C=(_.clientX-h.clientX)/s.value;t("update:scrollLeft",i.scrollLeft+C),h.clientX=_.clientX});["mouseup","pointercancel"].forEach(_=>{document.addEventListener(_,m,{once:!0})})}),(p,h)=>d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"scrollRef",ref:l,class:"h-scroll"},[r.createElementVNode("div",{class:"h-scroll__scrollbar",style:r.normalizeStyle(u.value)},null,4)],512)):r.createCommentVNode("",!0)}}),H1={class:"ui-scrollable"},q1=r.defineComponent({__name:"Scrollable",setup(a){const e=r.ref(),t=r.reactive({scrollTop:0,scrollLeft:0,clientHeight:0,clientWidth:0,scrollHeight:0,scrollWidth:0});function i(u){Wb(t,u,"scrollTop","scrollLeft","clientHeight","clientWidth","scrollHeight","scrollWidth")}const l=u=>{u.preventDefault();const p=u.currentTarget;p.scrollTop+=u.deltaY,p.scrollLeft+=u.deltaX,i(p)};function s(u){it(r.unref(e),p=>{p.scrollTop=u,i(p)})}function d(u){it(r.unref(e),p=>{p.scrollLeft=u,i(p)})}return Su(e,u=>{it(u,p=>i(p))}),r.onMounted(()=>{it(r.unref(e),u=>{i(u),u.addEventListener("wheel",l)})}),r.onUnmounted(()=>{it(r.unref(e),u=>u.removeEventListener("wheel",l))}),(u,p)=>(r.openBlock(),r.createElementBlock("div",H1,[r.createElementVNode("div",{ref_key:"containerRef",ref:e,class:"ui-scrollable__container",onWheel:l},[r.renderSlot(u.$slots,"default")],544),p[2]||(p[2]=r.createTextVNode()),r.createVNode(U1,{"scroll-top":t.scrollTop,"client-height":t.clientHeight,"scroll-height":t.scrollHeight,onWheel:p[0]||(p[0]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollTop":s},null,8,["scroll-top","client-height","scroll-height"]),p[3]||(p[3]=r.createTextVNode()),r.createVNode(W1,{"scroll-left":t.scrollLeft,"client-width":t.clientWidth,"scroll-width":t.scrollWidth,onWheel:p[1]||(p[1]=r.withModifiers(()=>{},["stop"])),"onUpdate:scrollLeft":d},null,8,["scroll-left","client-width","scroll-width"])]))}}),G1="add.svg",Y1="box.svg",K1="checkmark.svg",J1="clear.svg",Q1="clipboard.svg",X1="close.svg",e_="comp.svg",t_="compare.svg",r_="copy.svg",n_="duplicate.svg",a_="edit.svg",o_="error.svg",i_="filter.svg",l_="help.svg",s_="info.svg",c_="link.svg",d_="loading.svg",u_="lock.svg",g_="maximize.svg",p_="minimize.svg",f_="minus.svg",h_="more.svg",m_="open.svg",y_="pause.svg",b_="play.svg",v_="required.svg",w_="restart.svg",x_="reverse.svg",__="settings.svg",k_="sort.svg",C_="sorter.svg",S_="stop.svg",T_="success.svg",E_="tune.svg",N_="warning.svg",B_="zip.svg",V_={add:G1,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",box:Y1,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg",checkmark:K1,"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:J1,"clipboard-copied":"clipboard-copied.svg",clipboard:Q1,close:X1,comp:e_,compare:t_,copy:r_,"data-dimentions":"data-dimentions.svg","delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",delete:"delete.svg","drag-dots":"drag-dots.svg",duplicate:n_,edit:a_,error:o_,export:"export.svg","filter-2":"filter-2.svg","filter-on":"filter-on.svg",filter:i_,"help-outline":"help-outline.svg",help:l_,import:"import.svg","info-outline":"info-outline.svg",info:s_,"jump-link":"jump-link.svg","link-arrow":"link-arrow.svg",link:c_,loading:d_,lock:u_,maximize:g_,minimize:p_,minus:f_,"more-horizontal":"more-horizontal.svg",more:h_,open:m_,pause:y_,play:b_,required:v_,restart:w_,reverse:x_,"settings-2":"settings-2.svg",settings:__,sort:k_,sorter:C_,stop:S_,success:T_,tune:E_,warning:N_,"x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:B_},M_="add.svg",z_="annotate.svg",A_="annotation.svg",O_="area.svg",L_="axes.svg",D_="bar.svg",I_="bindot.svg",R_="box.svg",P_="boxplot.svg",j_="bubble.svg",F_="canvas.svg",$_="checkbox.svg",Z_="checkmark.svg",U_="clipboard.svg",W_="close.svg",H_="cluster.svg",q_="code.svg",G_="color.svg",Y_="columns.svg",K_="cookie.svg",J_="copy.svg",Q_="cpu.svg",X_="debug.svg",ek="dna.svg",tk="duplicate.svg",rk="edit.svg",nk="error.svg",ak="filter.svg",ok="generate.svg",ik="graph.svg",lk="heatmap.svg",sk="help.svg",ck="hide.svg",dk="info.svg",uk="jitter.svg",gk="lasso.svg",pk="layers.svg",fk="learn.svg",hk="legend.svg",mk="line.svg",yk="linetype.svg",bk="link.svg",vk="loading.svg",wk="local.svg",xk="lock.svg",_k="logout.svg",kk="maximize.svg",Ck="menu.svg",Sk="minimize.svg",Tk="minus.svg",Ek="more.svg",Nk="pause.svg",Bk="pin.svg",Vk="play.svg",Mk="position.svg",zk="progress.svg",Ak="publications.svg",Ok="restart.svg",Lk="reverse.svg",Dk="rotation.svg",Ik="save.svg",Rk="search.svg",Pk="server.svg",jk="settings.svg",Fk="show.svg",$k="sina.svg",Zk="skatterplot.svg",Uk="slice.svg",Wk="sort.svg",Hk="statistics.svg",qk="stop.svg",Gk="stroke.svg",Yk="success.svg",Kk="table.svg",Jk="template.svg",Qk="terminal.svg",Xk="tune.svg",eC="venn.svg",tC="violin.svg",rC="warning.svg",nC="wetlab.svg",aC="zip.svg",oC={"add-layer":"add-layer.svg",add:M_,"align-center":"align-center.svg","align-left":"align-left.svg","align-right":"align-right.svg",annotate:z_,annotation:A_,area:O_,"arrow-down":"arrow-down.svg","arrow-left":"arrow-left.svg","arrow-link":"arrow-link.svg","arrow-right":"arrow-right.svg","arrow-up":"arrow-up.svg",axes:L_,"bar-cross":"bar-cross.svg","bar-error":"bar-error.svg","bar-stacked":"bar-stacked.svg","bar-trend":"bar-trend.svg",bar:D_,bindot:I_,"box-dot":"box-dot.svg",box:R_,"boxplot-1":"boxplot-1.svg","boxplot-binned":"boxplot-binned.svg","boxplot-jitter":"boxplot-jitter.svg","boxplot-notched":"boxplot-notched.svg",boxplot:P_,bubble:j_,canvas:F_,"cell-type-num":"cell-type-num.svg","cell-type-txt":"cell-type-txt.svg","checkbox-checked":"checkbox-checked.svg","checkbox-intermediate":"checkbox-intermediate.svg",checkbox:$_,checkmark:Z_,"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-sort":"chevron-sort.svg","chevron-up":"chevron-up.svg","clipboard-copied":"clipboard-copied.svg",clipboard:U_,close:W_,"cloud-down":"cloud-down.svg","cloud-download":"cloud-download.svg","cloud-offline":"cloud-offline.svg","cloud-online":"cloud-online.svg","cloud-up":"cloud-up.svg","cloud-upload":"cloud-upload.svg",cluster:H_,"code-2":"code-2.svg",code:q_,"color-fill":"color-fill.svg","color-none":"color-none.svg","color-stroke":"color-stroke.svg",color:G_,columns:Y_,"connected-points":"connected-points.svg",cookie:K_,copy:J_,cpu:Q_,"cross-bars":"cross-bars.svg","dark-mode":"dark-mode.svg","data-dimentions":"data-dimentions.svg",debug:X_,"delete-bin":"delete-bin.svg","delete-circle":"delete-circle.svg","delete-clear":"delete-clear.svg",delete:"delete.svg","dendrogram-X-1":"dendrogram-X-1.svg","dendrogram-X-line":"dendrogram-X-line.svg","dendrogram-X":"dendrogram-X.svg","dendrogram-Y-1":"dendrogram-Y-1.svg","dendrogram-Y-line":"dendrogram-Y-line.svg","dendrogram-Y":"dendrogram-Y.svg",dna:ek,"download-files":"download-files.svg","drag-dots":"drag-dots.svg","drag-horizontal":"drag-horizontal.svg","drag-vertical":"drag-vertical.svg",duplicate:tk,edit:rk,"error-bar":"error-bar.svg",error:nk,"expand-left":"expand-left.svg","expand-right":"expand-right.svg","export-2":"export-2.svg",export:"export.svg","external-link":"external-link.svg","files-export":"files-export.svg","files-import":"files-import.svg","fill-color":"fill-color.svg","filter-on":"filter-on.svg",filter:ak,"filters-gate":"filters-gate.svg","fire-tips":"fire-tips.svg","folder-parent":"folder-parent.svg","frame-type--left":"frame-type--left.svg","frame-type-all":"frame-type-all.svg","frame-type-bottom":"frame-type-bottom.svg","frame-type-left-bottom":"frame-type-left-bottom.svg","frame-type-none":"frame-type-none.svg","frame-type":"frame-type.svg",generate:ok,graph:ik,heatmap:lk,"help-outline":"help-outline.svg",help:sk,hide:ck,"import-2":"import-2.svg","import-download":"import-download.svg",import:"import.svg","info-circle-outline":"info-circle-outline.svg","info-outline":"info-outline.svg",info:dk,jitter:uk,"jump-link":"jump-link.svg",lasso:gk,layers:pk,learn:fk,"legend-box-dot":"legend-box-dot.svg","legend-box":"legend-box.svg",legend:hk,"light-mode":"light-mode.svg","line-binned":"line-binned.svg","line-error":"line-error.svg","line-jitter":"line-jitter.svg",line:mk,"linetype-dashed":"linetype-dashed.svg","linetype-dotdash":"linetype-dotdash.svg","linetype-dotted":"linetype-dotted.svg","linetype-longdash":"linetype-longdash.svg","linetype-solid":"linetype-solid.svg","linetype-twodash":"linetype-twodash.svg",linetype:yk,"link-disabled":"link-disabled.svg",link:bk,loading:vk,local:wk,lock:xk,logout:_k,maximize:kk,menu:Ck,minimize:Sk,minus:Tk,"mode-dark":"mode-dark.svg","mode-light":"mode-light.svg","more-horizontal":"more-horizontal.svg",more:Ek,"outlier-shape":"outlier-shape.svg","paper-clip":"paper-clip.svg",pause:Nk,pin:Bk,play:Vk,"position-bottom-annotation":"position-bottom-annotation.svg","position-bottom":"position-bottom.svg","position-left-annotation":"position-left-annotation.svg","position-left":"position-left.svg","position-right-annotation":"position-right-annotation.svg","position-right":"position-right.svg","position-top-annotation":"position-top-annotation.svg","position-top":"position-top.svg",position:Mk,"progress-2":"progress-2.svg",progress:zk,publications:Ak,"radio-btn":"radio-btn.svg","radio-button-checked":"radio-button-checked.svg","radio-button":"radio-button.svg",restart:Ok,reverse:Lk,"rotation-0":"rotation-0.svg","rotation-45":"rotation-45.svg","rotation-90":"rotation-90.svg",rotation:Dk,save:Ik,search:Rk,"server-2":"server-2.svg","server-on":"server-on.svg",server:Pk,"settings-2":"settings-2.svg",settings:jk,show:Fk,sina:$k,skatterplot:Zk,slice:Uk,"social-github":"social-github.svg","social-linkedin":"social-linkedin.svg","social-media":"social-media.svg","social-twitter-X":"social-twitter-X.svg","social-twitter-bird":"social-twitter-bird.svg","social-youtube":"social-youtube.svg","sort-list-down":"sort-list-down.svg","sort-list-up":"sort-list-up.svg",sort:Wk,"stacked-bar":"stacked-bar.svg",statistics:Hk,stop:qk,"strip-plot":"strip-plot.svg","stroke-non":"stroke-non.svg",stroke:Gk,success:Yk,"table-upload":"table-upload.svg",table:Kk,template:Jk,terminal:Qk,"text-align-center":"text-align-center.svg","text-align-left":"text-align-left.svg","text-align-right":"text-align-right.svg","title-position":"title-position.svg",tune:Xk,"upload-files":"upload-files.svg",venn:eC,"view-off":"view-off.svg","view-on":"view-on.svg","violin-binned":"violin-binned.svg","violin-jitter":"violin-jitter.svg",violin:tC,warning:rC,wetlab:nC,"windows-collapse":"windows-collapse.svg","windows-expand":"windows-expand.svg","x-axis":"x-axis.svg","y-axis":"y-axis.svg",zip:aC,"zoom-in":"zoom-in.svg","zoom-out":"zoom-out.svg"};function iC(){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 lC=["add","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","box","cell-type-num","cell-type-txt","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","clear","clipboard-copied","clipboard","close","comp","compare","copy","data-dimentions","delete-bin","delete-circle","delete-clear","delete","drag-dots","duplicate","edit","error","export","filter-2","filter-on","filter","help-outline","help","import","info-outline","info","jump-link","link-arrow","link","loading","lock","maximize","minimize","minus","more-horizontal","more","open","pause","play","required","restart","reverse","settings-2","settings","sort","sorter","stop","success","tune","warning","x-axis","y-axis","zip"],sC=["add-layer","add","align-center","align-left","align-right","annotate","annotation","area","arrow-down","arrow-left","arrow-link","arrow-right","arrow-up","axes","bar-cross","bar-error","bar-stacked","bar-trend","bar","bindot","box-dot","box","boxplot-1","boxplot-binned","boxplot-jitter","boxplot-notched","boxplot","bubble","canvas","cell-type-num","cell-type-txt","checkbox-checked","checkbox-intermediate","checkbox","checkmark","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-sort","chevron-up","clipboard-copied","clipboard","close","cloud-down","cloud-download","cloud-offline","cloud-online","cloud-up","cloud-upload","cluster","code-2","code","color-fill","color-none","color-stroke","color","columns","connected-points","cookie","copy","cpu","cross-bars","dark-mode","data-dimentions","debug","delete-bin","delete-circle","delete-clear","delete","dendrogram-X-1","dendrogram-X-line","dendrogram-X","dendrogram-Y-1","dendrogram-Y-line","dendrogram-Y","dna","download-files","drag-dots","drag-horizontal","drag-vertical","duplicate","edit","error-bar","error","expand-left","expand-right","export-2","export","external-link","files-export","files-import","fill-color","filter-on","filter","filters-gate","fire-tips","folder-parent","frame-type--left","frame-type-all","frame-type-bottom","frame-type-left-bottom","frame-type-none","frame-type","generate","graph","heatmap","help-outline","help","hide","import-2","import-download","import","info-circle-outline","info-outline","info","jitter","jump-link","lasso","layers","learn","legend-box-dot","legend-box","legend","light-mode","line-binned","line-error","line-jitter","line","linetype-dashed","linetype-dotdash","linetype-dotted","linetype-longdash","linetype-solid","linetype-twodash","linetype","link-disabled","link","loading","local","lock","logout","maximize","menu","minimize","minus","mode-dark","mode-light","more-horizontal","more","outlier-shape","paper-clip","pause","pin","play","position-bottom-annotation","position-bottom","position-left-annotation","position-left","position-right-annotation","position-right","position-top-annotation","position-top","position","progress-2","progress","publications","radio-btn","radio-button-checked","radio-button","restart","reverse","rotation-0","rotation-45","rotation-90","rotation","save","search","server-2","server-on","server","settings-2","settings","show","sina","skatterplot","slice","social-github","social-linkedin","social-media","social-twitter-X","social-twitter-bird","social-youtube","sort-list-down","sort-list-up","sort","stacked-bar","statistics","stop","strip-plot","stroke-non","stroke","success","table-upload","table","template","terminal","text-align-center","text-align-left","text-align-right","title-position","tune","upload-files","venn","view-off","view-on","violin-binned","violin-jitter","violin","warning","wetlab","windows-collapse","windows-expand","x-axis","y-axis","zip","zoom-in","zoom-out"],cC={allCssVariables:iC(),icons16:V_,icons24:oC},dC={class:"block__not-found"},uC=r.defineComponent({__name:"NotFound",setup(a){const t=Vl().useApp(),i=()=>{t.updateNavigationState(l=>{l.href="/"})};return(l,s)=>(r.openBlock(),r.createElementBlock("div",dC,[r.createElementVNode("h1",null,"Not found route: "+r.toDisplayString(r.unref(t).snapshot.navigationState.href),1),r.createVNode(r.unref(Zl),{onClick:r.withModifiers(i,["stop"])},{default:r.withCtx(()=>s[0]||(s[0]=[r.createTextVNode("Return to main page")])),_:1})]))}}),ls=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},gC={},pC={class:"block__loader-page"};function fC(a,e){return r.openBlock(),r.createElementBlock("div",pC,e[0]||(e[0]=[r.createElementVNode("div",{class:"loader-container"},[r.createElementVNode("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const hC=ls(gC,[["render",fC]]),mC={class:"pl-app-notification-alert"},yC={class:"pl-app-notification-alert__content"},bC={class:"pl-app-notification-alert__title"},vC={class:"pl-app-notification-alert__error-description"},wC=r.defineComponent({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(a){const e=a,t=r.ref(!1),i=r.ref(!0);function l(){t.value=!0}function s(d){navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(d))}return r.watch(()=>e.errors,d=>{i.value=Object.values(d).some(u=>!!u)},{immediate:!0,deep:!0}),(d,u)=>(r.openBlock(),r.createElementBlock("div",mC,[r.createVNode(r.unref(Xl),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=p=>t.value=p),width:"50%",style:{"max-height":"100vh"}},{title:r.withCtx(()=>u[2]||(u[2]=[r.createTextVNode(" Errors ")])),default:r.withCtx(()=>[r.createElementVNode("div",yC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.errors,(p,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"pl-app-notification-alert__item"},[r.createElementVNode("div",bC,r.toDisplayString(h),1),r.createElementVNode("div",vC,[r.createElementVNode("code",null,r.toDisplayString(p==null?void 0:p.message),1),r.createVNode(r.unref(Cu),{class:"pl-app-notification-alert__copy-icon",onCopyData:m=>s(p)},null,8,["onCopyData"])])]))),128))])]),_:1},8,["modelValue"]),r.createVNode(r.unref(ku),{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=p=>i.value=p),type:"error",closable:""},{actions:r.withCtx(()=>[r.createVNode(r.unref($l),{icon:"arrow-right",onClick:l},{default:r.withCtx(()=>u[3]||(u[3]=[r.createTextVNode("See errors")])),_:1}),r.createVNode(r.unref(Ud))]),default:r.withCtx(()=>[u[4]||(u[4]=r.createTextVNode(" Some outputs have errors. "))]),_:1},8,["modelValue"])]))}}),xC={class:"block block__layout"},_C={key:0},kC=r.defineComponent({__name:"BlockLayout",setup(a){const e=Vl(),t=p=>{try{return new URL(p,"http://dummy").pathname}catch{console.error("Invalid href",p);return}},i=r.computed(()=>e.loaded?e.useApp().href:void 0),l=r.computed(()=>{if(e.loaded){const p=e.useApp(),h=t(p.snapshot.navigationState.href);return h?p.getRoute(h):void 0}}),s=r.computed(()=>e.loaded?e.useApp():void 0),d=r.computed(()=>s.value?s.value.model.outputErrors:{}),u=r.computed(()=>{var p;return((p=s.value)==null?void 0:p.showErrorsNotification)??!0});return(p,h)=>(r.openBlock(),r.createElementBlock("div",xC,[r.unref(e).error?(r.openBlock(),r.createElementBlock("div",_C,r.toDisplayString(r.unref(e).error),1)):r.unref(e).loaded?l.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value),{key:i.value})):(r.openBlock(),r.createBlock(uC,{key:3})):(r.openBlock(),r.createBlock(hC,{key:1},{default:r.withCtx(()=>h[0]||(h[0]=[r.createTextVNode("Loading...")])),_:1})),r.unref(e).loaded&&u.value?(r.openBlock(),r.createBlock(r.unref(wC),{key:4,errors:d.value},null,8,["errors"])):r.createCommentVNode("",!0)]))}});var pi={exports:{}};/**
|
|
38
38
|
* @license
|
|
39
39
|
* Lodash <https://lodash.com/>
|
|
40
40
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|