@stonecrop/desktop 0.3.1 → 0.3.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.
@@ -47,7 +47,7 @@ ${JSON.stringify(S,null,2)}
47
47
  state: () => new MyClass()
48
48
  Found in store "${w.$id}".`),m&&a&&n.hydrate&&n.hydrate(w.$state,m),u=!0,f=!0,w}/*! #__NO_SIDE_EFFECTS__ */function ji(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(c,l){const u=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Be&&Be._testing?null:c)||(u?r.inject(Ii,null):null),c&&rt(c),process.env.NODE_ENV!=="production"&&!Be)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
49
49
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
50
- This will fail in production.`);c=Be,c._s.has(o)||(a?Ht(o,t,s,c):Uo(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const f=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+o,p=a?Ht(d,t,s,c,!0):Uo(d,Q({},s),c,!0);l._hotUpdate(p),delete c.state.value[d],c._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Me){const d=r.getCurrentInstance();if(d&&d.proxy&&!l){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[o]=f}}return f}return i.$id=o,i}function Fo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function zt(e){return typeof e=="function"?e():r.unref(e)}const Bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Li=e=>e!=null,Mi=Object.prototype.toString,Wi=e=>Mi.call(e)==="[object Object]",Ui=()=>{},We=Bi?window:void 0;function Ue(e){var t;const n=zt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Fe(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=We):[t,n,o,s]=e,!t)return Ui;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},c=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),l=r.watch(()=>[Ue(t),zt(s)],([f,d])=>{if(i(),!f)return;const p=Wi(d)?{...d}:d;a.push(...n.flatMap(h=>o.map(m=>c(f,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return Fo(u),u}function Fi(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Hi(e){const t=Fi();return r.computed(()=>(t.value,!!e()))}function zi(e,t,n={}){const{window:o=We,...s}=n;let a;const i=Hi(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const p=zt(e),h=(Array.isArray(p)?p:[p]).map(Ue).filter(Li);return new Set(h)}),u=r.watch(()=>l.value,p=>{c(),i.value&&p.size&&(a=new MutationObserver(t),p.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),d=()=>{u(),c()};return Fo(d),{isSupported:i,stop:d,takeRecords:f}}function qi(e={}){var t;const{window:n=We,deep:o=!0,triggerOnRemoval:s=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var u;let f=a==null?void 0:a.activeElement;if(o)for(;f!=null&&f.shadowRoot;)f=(u=f==null?void 0:f.shadowRoot)==null?void 0:u.activeElement;return f},c=r.ref(),l=()=>{c.value=i()};return n&&(Fe(n,"blur",u=>{u.relatedTarget===null&&l()},!0),Fe(n,"focus",l,!0)),s&&zi(a,u=>{u.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}const Gi="focusin",Ji="focusout";function Ki(e,t={}){const{window:n=We}=t,o=r.computed(()=>Ue(e)),s=r.ref(!1),a=r.computed(()=>s.value),i=qi(t);return!n||!i.value?{focused:a}:(Fe(o,Gi,()=>s.value=!0),Fe(o,Ji,()=>s.value=!1),{focused:a})}function Yi(e,{window:t=We,scrollTarget:n}={}){const o=r.ref(!1),s=()=>{if(!t)return;const a=t.document,i=Ue(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||a.documentElement.clientHeight)&&c.left<=(t.innerWidth||a.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Ue(e),()=>s(),{immediate:!0,flush:"post"}),t&&Fe(n||t,"scroll",s,{capture:!1,passive:!0}),o}const ie=e=>{let t=Yi(e).value;return t=t&&e.offsetHeight>0,t},ce=e=>e.tabIndex>=0,Ho=e=>{const t=e.target;return qt(t)},qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!ce(n)||!ie(n))?qt(n):n},Qi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.firstElementChild;a&&(o=a)}}return o&&(!ce(o)||!ie(o))?Gt(o):o},zo=e=>{const t=e.target;return Gt(t)},Gt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!ce(n)||!ie(n))?Gt(n):n},Xi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.lastElementChild;a&&(o=a)}}return o&&(!ce(o)||!ie(o))?qt(o):o},qo=e=>{const t=e.target;return Jt(t)},Jt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!ce(n)||!ie(n))?Jt(n):n},Go=e=>{const t=e.target;return Kt(t)},Kt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!ce(n)||!ie(n))?Kt(n):n},Jo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!ce(t)||!ie(t))?Kt(t):t},Ko=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!ce(t)||!ie(t))?Jt(t):t},st=["alt","control","shift","meta"],Zi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Yt={"keydown.up":e=>{const t=Ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=zo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=qo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Qi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Xi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=zo(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ho(e);t&&t.focus()}},"keydown.home":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=qo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Yo(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let l=[];if(typeof i.selectors=="string")l=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const u of i.selectors)u instanceof HTMLElement?l.push(u):l.push(u.$el);else if(i.selectors instanceof HTMLElement)l.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const u of i.selectors.value)u instanceof HTMLElement?l.push(u):l.push(u.$el);else l.push(i.selectors.value);return l},o=i=>{const c=t(i);let l=[];return i.selectors?l=n(i):c&&(l=Array.from(c.children).filter(u=>ce(u)&&ie(u))),l},s=i=>c=>{const l=Zi[c.key]||c.key.toLowerCase();if(st.includes(l))return;const u=i.handlers||Yt;for(const f of Object.keys(u)){const[d,...p]=f.split(".");if(d==="keydown"&&p.includes(l)){const h=u[f],m=p.filter(N=>st.includes(N)),b=st.some(N=>{const _=N.charAt(0).toUpperCase()+N.slice(1);return c.getModifierState(_)});if(m.length>0){if(b){for(const N of st)if(p.includes(N)){const _=N.charAt(0).toUpperCase()+N.slice(1);c.getModifierState(_)&&h(c)}}}else b||h(c)}}},a=[];r.onMounted(()=>{for(const i of e){const c=t(i),l=o(i),u=s(i),f=c?[c]:l;for(const d of f){const{focused:p}=Ki(r.ref(d)),h=r.watch(p,m=>{m?d.addEventListener("keydown",u):d.removeEventListener("keydown",u)});a.push(h)}}}),r.onBeforeUnmount(()=>{for(const i of a)i()})}function He(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function X(e){return typeof e=="function"?e():r.unref(e)}const Qt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ec=e=>e!=null,tc=Object.prototype.toString,Qo=e=>tc.call(e)==="[object Object]",Oe=()=>{},Xt=nc();function nc(){var e,t;return Qt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function oc(e){return r.getCurrentInstance()}function rc(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Oe}))):r.ref(t)}function sc(e,t=!0,n){oc()?r.onMounted(e,n):t?e():r.nextTick(e)}const Zt=Qt?window:void 0;function Se(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Xo(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=Zt):[t,n,o,s]=e,!t)return Oe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},c=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),l=r.watch(()=>[Se(t),X(s)],([f,d])=>{if(i(),!f)return;const p=Qo(d)?{...d}:d;a.push(...n.flatMap(h=>o.map(m=>c(f,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return He(u),u}function ac(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Zo(e){const t=ac();return r.computed(()=>(t.value,!!e()))}function er(e,t,n={}){const{window:o=Zt,...s}=n;let a;const i=Zo(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const p=X(e),h=(Array.isArray(p)?p:[p]).map(Se).filter(ec);return new Set(h)}),u=r.watch(()=>l.value,p=>{c(),i.value&&p.size&&(a=new MutationObserver(t),p.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),d=()=>{u(),c()};return He(d),{isSupported:i,stop:d,takeRecords:f}}function ic(e,t,n={}){const{window:o=Zt,...s}=n;let a;const i=Zo(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const d=X(e);return Array.isArray(d)?d.map(p=>Se(p)):[Se(d)]}),u=r.watch(l,d=>{if(c(),i.value&&o){a=new ResizeObserver(t);for(const p of d)p&&a.observe(p,s)}},{immediate:!0,flush:"post"}),f=()=>{c(),u()};return He(f),{isSupported:i,stop:f}}function cc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:a=!0,updateTiming:i="sync"}=t,c=r.ref(0),l=r.ref(0),u=r.ref(0),f=r.ref(0),d=r.ref(0),p=r.ref(0),h=r.ref(0),m=r.ref(0);function b(){const _=Se(e);if(!_){n&&(c.value=0,l.value=0,u.value=0,f.value=0,d.value=0,p.value=0,h.value=0,m.value=0);return}const x=_.getBoundingClientRect();c.value=x.height,l.value=x.bottom,u.value=x.left,f.value=x.right,d.value=x.top,p.value=x.width,h.value=x.x,m.value=x.y}function N(){i==="sync"?b():i==="next-frame"&&requestAnimationFrame(()=>b())}return ic(e,N),r.watch(()=>Se(e),_=>!_&&N()),er(e,N,{attributeFilter:["style","class"]}),s&&Xo("scroll",N,{capture:!0,passive:!0}),o&&Xo("resize",N,{passive:!0}),sc(()=>{a&&N()}),{height:c,bottom:l,left:u,right:f,top:d,width:p,x:h,y:m,update:N}}const lc=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},uc=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],dc=["innerHTML"],pc={key:2},fc=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.useTemplateRef("cell"),{bottom:n,left:o}=cc(t),s=e.store.getCellData(e.colIndex,e.rowIndex),a=e.store.getCellDisplayValue(e.colIndex,e.rowIndex),i=r.ref(""),c=r.ref(!1),l=e.store.columns[e.colIndex],u=e.store.rows[e.rowIndex],f=l.align||"center",d=l.width||"40ch",p=r.computed(()=>typeof a=="string"?lc(a):!1),h=r.computed(()=>{var _;return{textAlign:f,width:d,backgroundColor:c.value?"var(--sc-cell-changed-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:e.store.getIndent(e.colIndex,(_=e.store.display[e.rowIndex])==null?void 0:_.indent)}}),m=()=>{l.mask,l.modalComponent&&e.store.$patch(_=>{_.modal.visible=!0,_.modal.colIndex=e.colIndex,_.modal.rowIndex=e.rowIndex,_.modal.parent=t.value,_.modal.top=n.value,_.modal.left=o.value,_.modal.width=d,typeof l.modalComponent=="function"?_.modal.component=l.modalComponent({table:_.table,row:u,column:l}):_.modal.component=l.modalComponent,_.modal.componentProps=l.modalComponentExtraProps})};if(e.addNavigation){let _={...Yt,"keydown.f2":m,"keydown.alt.up":m,"keydown.alt.down":m,"keydown.alt.left":m,"keydown.alt.right":m};typeof e.addNavigation=="object"&&(_={..._,...e.addNavigation}),Yo([{selectors:t,handlers:_}])}const b=()=>{t.value&&(i.value=t.value.textContent)},N=()=>{t.value&&(l.format?c.value=t.value.textContent!==e.store.getFormattedValue(e.colIndex,e.rowIndex,s):c.value=t.value.textContent!==s,t.value.textContent!==i.value&&(i.value=t.value.textContent,t.value.dispatchEvent(new Event("change")),l.format||e.store.setCellData(e.colIndex,e.rowIndex,i.value)))};return(_,x)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":_.colIndex,"data-rowindex":_.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:_.tabIndex,spellcheck:!1,style:r.normalizeStyle(h.value),onFocus:b,onPaste:N,onBlur:N,onInput:N,onClick:m,class:r.normalizeClass(["atable-cell",_.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:r.unref(a)},r.unref(l).cellComponentProps),null,16,["value"])):p.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:r.unref(a)},null,8,dc)):(r.openBlock(),r.createElementBlock("span",pc,r.toDisplayString(r.unref(a)),1))],46,uc))}}),hc=["tabindex"],mc=r.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.useTemplateRef("rowEl"),n=e.store.isRowVisible(e.rowIndex),o=e.store.getRowExpandSymbol(e.rowIndex);if(e.addNavigation){let s=Yt;typeof e.addNavigation=="object"&&(s={...s,...e.addNavigation}),Yo([{selectors:t,handlers:s}])}return(s,a)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"table-row"},[s.store.config.view!=="uncounted"?r.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},r.toDisplayString(s.rowIndex+1),3)):s.store.config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>s.store.toggleRowExpand(s.rowIndex))},r.toDisplayString(r.unref(o)),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"default")],8,hc)),[[r.vShow,r.unref(n)]])}}),tr=Qt?window:void 0;function ze(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}function at(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=tr):[t,n,o,s]=e,!t)return Oe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},c=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),l=r.watch(()=>[ze(t),X(s)],([f,d])=>{if(i(),!f)return;const p=Qo(d)?{...d}:d;a.push(...n.flatMap(h=>o.map(m=>c(f,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return He(u),u}let nr=!1;function or(e,t,n={}){const{window:o=tr,ignore:s=[],capture:a=!0,detectIframe:i=!1}=n;if(!o)return Oe;Xt&&!nr&&(nr=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",Oe)),o.document.documentElement.addEventListener("click",Oe));let c=!0;const l=m=>X(s).some(b=>{if(typeof b=="string")return Array.from(o.document.querySelectorAll(b)).some(N=>N===m.target||m.composedPath().includes(N));{const N=ze(b);return N&&(m.target===N||m.composedPath().includes(N))}});function u(m){const b=X(m);return b&&b.$.subTree.shapeFlag===16}function f(m,b){const N=X(m),_=N.$.subTree&&N.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(x=>x.el===b.target||b.composedPath().includes(x.el))}const d=m=>{const b=ze(e);if(m.target!=null&&!(!(b instanceof Element)&&u(e)&&f(e,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if(m.detail===0&&(c=!l(m)),!c){c=!0;return}t(m)}};let p=!1;const h=[at(o,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(m))},{passive:!0,capture:a}),at(o,"pointerdown",m=>{const b=ze(e);c=!l(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),i&&at(o,"blur",m=>{setTimeout(()=>{var b;const N=ze(e);((b=o.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(N!=null&&N.contains(o.document.activeElement))&&t(m)},0)})].filter(Boolean);return()=>h.forEach(m=>m())}const gc={mounted(e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=or(e,t.value,{capture:n});else{const[o,s]=t.value;e.__onClickOutside_stop=or(e,o,Object.assign({capture:n},s))}},unmounted(e){e.__onClickOutside_stop()}};function en(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function rr(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:rr(n)}}function yc(e){const t=e||window.event,n=t.target;return rr(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const tn=new WeakMap;function wc(e,t=!1){const n=r.ref(t);let o=null,s="";r.watch(rc(e),c=>{const l=en(X(c));if(l){const u=l;if(tn.get(u)||tn.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const a=()=>{const c=en(X(e));!c||n.value||(Xt&&(o=at(c,"touchmove",l=>{yc(l)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=en(X(e));!c||!n.value||(Xt&&(o==null||o()),c.style.overflow=s,tn.delete(c),n.value=!1)};return He(i),r.computed({get(){return n.value},set(c){c?a():i()}})}function bc(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const s=wc(n,o.value);r.watch(t,a=>s.value=a)}}bc();const vc={key:0,id:"resizable"},Ec={class:"atable-header-row",tabindex:"-1"},_c=r.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){return(t,n)=>t.columns.length?(r.openBlock(),r.createElementBlock("thead",vc,[r.createElementVNode("tr",Ec,[t.store.zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.config.view==="tree"?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,(o,s)=>(r.openBlock(),r.createElementBlock("th",{key:o.name,tabindex:"-1",style:r.normalizeStyle(t.store.getHeaderCellStyle(o)),class:r.normalizeClass(o.pinned?"sticky-column":"")},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.label||String.fromCharCode(s+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),kc=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},store:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),Nc=e=>{const t=e.id||crypto.randomUUID();return ji(`table-${t}`,()=>{const n=()=>{const O={};for(const[C,w]of s.value.entries())for(const[j,E]of a.value.entries())O[`${C}:${j}`]=E[w.name];return O},o=O=>{const C=[Object.assign({},{rowModified:!1})];if(O&&"0:0"in O)return O;const w=new Set;for(let j=a.value.length-1;j>=0;j--){const E=a.value[j];E.parent&&w.add(E.parent),C[j]={childrenOpen:!1,expanded:!1,indent:E.indent||null,isParent:w.has(j),isRoot:E.parent===null||E.parent===void 0,rowModified:!1,open:E.parent===null||E.parent===void 0,parent:E.parent}}return C},s=r.ref(e.columns),a=r.ref(e.rows),i=r.ref(e.config||{}),c=r.ref(e.table||n()),l=r.ref(o(e.display)),u=r.ref(e.modal||{visible:!1}),f=r.computed(()=>s.value.some(O=>O.pinned)),d=r.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),p=r.computed(()=>["list","tree","list-expansion"].includes(i.value.view)),h=(O,C)=>c.value[`${O}:${C}`],m=(O,C,w)=>{const j=`${O}:${C}`,E=s.value[O];c.value[j]!==w&&(l.value[C].rowModified=!0),c.value[j]=w,a.value[C][E.name]=w},b=O=>({minWidth:O.width||"40ch",textAlign:O.align||"center",width:i.value.fullWidth?"auto":null}),N=O=>i.value.view!=="tree"||l.value[O].isRoot||l.value[O].open,_=O=>i.value.view!=="tree"?"":l.value[O].isRoot||l.value[O].isParent?l.value[O].childrenOpen?"-":"+":"",x=O=>{if(i.value.view==="tree"){l.value[O].childrenOpen=!l.value[O].childrenOpen;for(let C=a.value.length-1;C>=0;C--)l.value[C].parent===O&&(l.value[C].open=!l.value[C].open,l.value[C].childrenOpen&&x(C))}else i.value.view==="list-expansion"&&(l.value[O].expanded=!l.value[O].expanded)},I=(O,C)=>{const w=h(O,C);return B(O,C,w)},B=(O,C,w)=>{const j=s.value[O],E=a.value[C],g=j.format;return g?typeof g=="function"?g(w,{table:c.value,row:E,column:j}):typeof g=="string"?Function(`"use strict";return (${g})`)()(w,{table:c.value,row:E,column:j}):w:w};return{columns:s,rows:a,config:i,table:c,display:l,modal:u,hasPinnedColumns:f,numberedRowWidth:d,zeroColumn:p,closeModal:O=>{var C;O.target instanceof Node&&(C=u.value.parent)!=null&&C.contains(O.target)||u.value.visible&&(u.value.visible=!1)},getCellData:h,getCellDisplayValue:I,getFormattedValue:B,getHeaderCellStyle:b,getIndent:(O,C)=>C&&O===0&&C>0?`${C}ch`:"inherit",getRowExpandSymbol:_,isRowVisible:N,setCellData:m,toggleRowExpand:x}})()},$c=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate"],setup(e,{expose:t,emit:n}){const o=n,s=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,i=Nc({columns:e.columns,rows:a,id:e.id,config:e.config});i.$onAction(({name:l,store:u,args:f})=>{if(l==="setCellData"){const[d,p,h]=f,m=u.getCellData(d,p);o("cellUpdate",[d,p,h,m])}}),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&er(s,c,{childList:!0,subtree:!0}))});const c=()=>{const l=s.value,u=l.rows[0],f=l.rows[1],d=u?Array.from(u.cells):[];for(const[p,h]of d.entries()){const m=f==null?void 0:f.cells[p];m&&(h.style.width=`${m.offsetWidth}px`)}for(const p of l.rows){let h=0;const m=[];for(const b of p.cells)(b.classList.contains("sticky-column")||b.classList.contains("sticky-index"))&&(b.style.left=`${h}px`,h+=b.offsetWidth,m.push(b));m.length>0&&m[m.length-1].classList.add("sticky-column-edge")}};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const u=i.modal.parent;u&&r.nextTick().then(()=>{u.focus()})}}),t({store:i}),(l,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(_c,{columns:r.unref(i).columns,store:r.unref(i)},null,8,["columns","store"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(f,d)=>(r.openBlock(),r.createBlock(mc,{key:f.id,row:f,rowIndex:d,store:r.unref(i)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(p,h)=>(r.openBlock(),r.createBlock(fc,{key:p.name,store:r.unref(i),col:p,spellcheck:"false",pinned:p.pinned,rowIndex:d,colIndex:h,component:p.cellComponent,style:r.normalizeStyle({textAlign:(p==null?void 0:p.align)||"center",minWidth:(p==null?void 0:p.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["store","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(kc,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i),style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i)},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["colIndex","rowIndex","store","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4)),[[r.unref(gc),r.unref(i).closeModal]])}}),Oc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Sc=Oc($c,[["__scopeId","data-v-a7848db7"]]),sr=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=xn(),o={view:"list"};return(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Sc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),xc={class:"tabs"},Cc={tabindex:"0"},Pc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},Vc={tabindex:"0"},Dc={style:{width:"11pt"}},ar=ut(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),s=r.useTemplateRef("searchinput"),a=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{s.value.focus()})},l=d=>{d.preventDefault(),d.stopPropagation()},u=async d=>{d.preventDefault(),d.stopPropagation(),await c()},f=()=>{};return(d,p)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",xc,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",Cc,[r.createElementVNode("div",{class:r.normalizeClass(a.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:f,onKeydown:r.withKeys(f,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",Pc,p[5]||(p[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
50
+ This will fail in production.`);c=Be,c._s.has(o)||(a?Ht(o,t,s,c):Uo(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const f=c._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+o,p=a?Ht(d,t,s,c,!0):Uo(d,Q({},s),c,!0);l._hotUpdate(p),delete c.state.value[d],c._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Me){const d=r.getCurrentInstance();if(d&&d.proxy&&!l){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[o]=f}}return f}return i.$id=o,i}function Fo(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function zt(e){return typeof e=="function"?e():r.unref(e)}const Bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Li=e=>e!=null,Mi=Object.prototype.toString,Wi=e=>Mi.call(e)==="[object Object]",Ui=()=>{},We=Bi?window:void 0;function Ue(e){var t;const n=zt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Fe(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=We):[t,n,o,s]=e,!t)return Ui;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},c=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),l=r.watch(()=>[Ue(t),zt(s)],([f,d])=>{if(i(),!f)return;const p=Wi(d)?{...d}:d;a.push(...n.flatMap(h=>o.map(m=>c(f,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return Fo(u),u}function Fi(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Hi(e){const t=Fi();return r.computed(()=>(t.value,!!e()))}function zi(e,t,n={}){const{window:o=We,...s}=n;let a;const i=Hi(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const p=zt(e),h=(Array.isArray(p)?p:[p]).map(Ue).filter(Li);return new Set(h)}),u=r.watch(()=>l.value,p=>{c(),i.value&&p.size&&(a=new MutationObserver(t),p.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),d=()=>{u(),c()};return Fo(d),{isSupported:i,stop:d,takeRecords:f}}function qi(e={}){var t;const{window:n=We,deep:o=!0,triggerOnRemoval:s=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var u;let f=a==null?void 0:a.activeElement;if(o)for(;f!=null&&f.shadowRoot;)f=(u=f==null?void 0:f.shadowRoot)==null?void 0:u.activeElement;return f},c=r.ref(),l=()=>{c.value=i()};return n&&(Fe(n,"blur",u=>{u.relatedTarget===null&&l()},!0),Fe(n,"focus",l,!0)),s&&zi(a,u=>{u.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}const Gi="focusin",Ji="focusout";function Ki(e,t={}){const{window:n=We}=t,o=r.computed(()=>Ue(e)),s=r.ref(!1),a=r.computed(()=>s.value),i=qi(t);return!n||!i.value?{focused:a}:(Fe(o,Gi,()=>s.value=!0),Fe(o,Ji,()=>s.value=!1),{focused:a})}function Yi(e,{window:t=We,scrollTarget:n}={}){const o=r.ref(!1),s=()=>{if(!t)return;const a=t.document,i=Ue(e);if(!i)o.value=!1;else{const c=i.getBoundingClientRect();o.value=c.top<=(t.innerHeight||a.documentElement.clientHeight)&&c.left<=(t.innerWidth||a.documentElement.clientWidth)&&c.bottom>=0&&c.right>=0}};return r.watch(()=>Ue(e),()=>s(),{immediate:!0,flush:"post"}),t&&Fe(n||t,"scroll",s,{capture:!1,passive:!0}),o}const ie=e=>{let t=Yi(e).value;return t=t&&e.offsetHeight>0,t},ce=e=>e.tabIndex>=0,Ho=e=>{const t=e.target;return qt(t)},qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!ce(n)||!ie(n))?qt(n):n},Qi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.firstElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.firstElementChild;a&&(o=a)}}return o&&(!ce(o)||!ie(o))?Gt(o):o},zo=e=>{const t=e.target;return Gt(t)},Gt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const s=Array.from(o.children)[e.cellIndex];s&&(n=s)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!ce(n)||!ie(n))?Gt(n):n},Xi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const s=(t=n.parentElement)==null?void 0:t.parentElement;if(s){const a=s.lastElementChild.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const a=s.lastElementChild;a&&(o=a)}}return o&&(!ce(o)||!ie(o))?qt(o):o},qo=e=>{const t=e.target;return Jt(t)},Jt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!ce(n)||!ie(n))?Jt(n):n},Go=e=>{const t=e.target;return Kt(t)},Kt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!ce(n)||!ie(n))?Kt(n):n},Jo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!ce(t)||!ie(t))?Kt(t):t},Ko=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!ce(t)||!ie(t))?Jt(t):t},st=["alt","control","shift","meta"],Zi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Yt={"keydown.up":e=>{const t=Ho(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=zo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=qo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Go(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Qi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Xi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=zo(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ho(e);t&&t.focus()}},"keydown.home":e=>{const t=Jo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Go(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=qo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Yo(e){const t=i=>{let c=null;return i.parent&&(typeof i.parent=="string"?c=document.querySelector(i.parent):i.parent instanceof HTMLElement?c=i.parent:c=i.parent.value),c},n=i=>{const c=t(i);let l=[];if(typeof i.selectors=="string")l=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const u of i.selectors)u instanceof HTMLElement?l.push(u):l.push(u.$el);else if(i.selectors instanceof HTMLElement)l.push(i.selectors);else if(Array.isArray(i.selectors.value))for(const u of i.selectors.value)u instanceof HTMLElement?l.push(u):l.push(u.$el);else l.push(i.selectors.value);return l},o=i=>{const c=t(i);let l=[];return i.selectors?l=n(i):c&&(l=Array.from(c.children).filter(u=>ce(u)&&ie(u))),l},s=i=>c=>{const l=Zi[c.key]||c.key.toLowerCase();if(st.includes(l))return;const u=i.handlers||Yt;for(const f of Object.keys(u)){const[d,...p]=f.split(".");if(d==="keydown"&&p.includes(l)){const h=u[f],m=p.filter(N=>st.includes(N)),b=st.some(N=>{const _=N.charAt(0).toUpperCase()+N.slice(1);return c.getModifierState(_)});if(m.length>0){if(b){for(const N of st)if(p.includes(N)){const _=N.charAt(0).toUpperCase()+N.slice(1);c.getModifierState(_)&&h(c)}}}else b||h(c)}}},a=[];r.onMounted(()=>{for(const i of e){const c=t(i),l=o(i),u=s(i),f=c?[c]:l;for(const d of f){const{focused:p}=Ki(r.ref(d)),h=r.watch(p,m=>{m?d.addEventListener("keydown",u):d.removeEventListener("keydown",u)});a.push(h)}}}),r.onBeforeUnmount(()=>{for(const i of a)i()})}function He(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function X(e){return typeof e=="function"?e():r.unref(e)}const Qt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ec=e=>e!=null,tc=Object.prototype.toString,Qo=e=>tc.call(e)==="[object Object]",Oe=()=>{},Xt=nc();function nc(){var e,t;return Qt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function oc(e){return r.getCurrentInstance()}function rc(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Oe}))):r.ref(t)}function sc(e,t=!0,n){oc()?r.onMounted(e,n):t?e():r.nextTick(e)}const Zt=Qt?window:void 0;function Se(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Xo(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=Zt):[t,n,o,s]=e,!t)return Oe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},c=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),l=r.watch(()=>[Se(t),X(s)],([f,d])=>{if(i(),!f)return;const p=Qo(d)?{...d}:d;a.push(...n.flatMap(h=>o.map(m=>c(f,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return He(u),u}function ac(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Zo(e){const t=ac();return r.computed(()=>(t.value,!!e()))}function er(e,t,n={}){const{window:o=Zt,...s}=n;let a;const i=Zo(()=>o&&"MutationObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const p=X(e),h=(Array.isArray(p)?p:[p]).map(Se).filter(ec);return new Set(h)}),u=r.watch(()=>l.value,p=>{c(),i.value&&p.size&&(a=new MutationObserver(t),p.forEach(h=>a.observe(h,s)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),d=()=>{u(),c()};return He(d),{isSupported:i,stop:d,takeRecords:f}}function ic(e,t,n={}){const{window:o=Zt,...s}=n;let a;const i=Zo(()=>o&&"ResizeObserver"in o),c=()=>{a&&(a.disconnect(),a=void 0)},l=r.computed(()=>{const d=X(e);return Array.isArray(d)?d.map(p=>Se(p)):[Se(d)]}),u=r.watch(l,d=>{if(c(),i.value&&o){a=new ResizeObserver(t);for(const p of d)p&&a.observe(p,s)}},{immediate:!0,flush:"post"}),f=()=>{c(),u()};return He(f),{isSupported:i,stop:f}}function cc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:a=!0,updateTiming:i="sync"}=t,c=r.ref(0),l=r.ref(0),u=r.ref(0),f=r.ref(0),d=r.ref(0),p=r.ref(0),h=r.ref(0),m=r.ref(0);function b(){const _=Se(e);if(!_){n&&(c.value=0,l.value=0,u.value=0,f.value=0,d.value=0,p.value=0,h.value=0,m.value=0);return}const x=_.getBoundingClientRect();c.value=x.height,l.value=x.bottom,u.value=x.left,f.value=x.right,d.value=x.top,p.value=x.width,h.value=x.x,m.value=x.y}function N(){i==="sync"?b():i==="next-frame"&&requestAnimationFrame(()=>b())}return ic(e,N),r.watch(()=>Se(e),_=>!_&&N()),er(e,N,{attributeFilter:["style","class"]}),s&&Xo("scroll",N,{capture:!0,passive:!0}),o&&Xo("resize",N,{passive:!0}),sc(()=>{a&&N()}),{height:c,bottom:l,left:u,right:f,top:d,width:p,x:h,y:m,update:N}}const lc=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},uc=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],dc=["innerHTML"],pc={key:2},fc=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){const t=r.useTemplateRef("cell"),{bottom:n,left:o}=cc(t),s=e.store.getCellData(e.colIndex,e.rowIndex),a=r.ref(e.store.getCellDisplayValue(e.colIndex,e.rowIndex)),i=r.ref(""),c=r.ref(!1),l=e.store.columns[e.colIndex],u=e.store.rows[e.rowIndex],f=l.align||"center",d=l.width||"40ch";r.watch(()=>e.store.getCellData(e.colIndex,e.rowIndex),_=>{a.value=e.store.getFormattedValue(e.colIndex,e.rowIndex,_)});const p=r.computed(()=>typeof a.value=="string"?lc(a.value):!1),h=r.computed(()=>{var _;return{textAlign:f,width:d,backgroundColor:c.value?"var(--sc-cell-changed-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:e.store.getIndent(e.colIndex,(_=e.store.display[e.rowIndex])==null?void 0:_.indent)}}),m=()=>{l.mask,l.modalComponent&&e.store.$patch(_=>{_.modal.visible=!0,_.modal.colIndex=e.colIndex,_.modal.rowIndex=e.rowIndex,_.modal.parent=t.value,_.modal.top=n.value,_.modal.left=o.value,_.modal.width=d,typeof l.modalComponent=="function"?_.modal.component=l.modalComponent({table:_.table,row:u,column:l}):_.modal.component=l.modalComponent,_.modal.componentProps=l.modalComponentExtraProps})};if(e.addNavigation){let _={...Yt,"keydown.f2":m,"keydown.alt.up":m,"keydown.alt.down":m,"keydown.alt.left":m,"keydown.alt.right":m};typeof e.addNavigation=="object"&&(_={..._,...e.addNavigation}),Yo([{selectors:t,handlers:_}])}const b=()=>{t.value&&(i.value=t.value.textContent)},N=()=>{t.value&&(l.format?c.value=t.value.textContent!==e.store.getFormattedValue(e.colIndex,e.rowIndex,s):c.value=t.value.textContent!==s,t.value.textContent!==i.value&&(i.value=t.value.textContent,t.value.dispatchEvent(new Event("change")),l.format||e.store.setCellData(e.colIndex,e.rowIndex,i.value)))};return(_,x)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":_.colIndex,"data-rowindex":_.rowIndex,"data-editable":r.unref(l).edit,contenteditable:r.unref(l).edit,tabindex:_.tabIndex,spellcheck:!1,style:r.normalizeStyle(h.value),onFocus:b,onPaste:N,onBlur:N,onInput:N,onClick:m,class:r.normalizeClass(["atable-cell",_.pinned?"sticky-column":""])},[r.unref(l).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(l).cellComponent),r.mergeProps({key:0,value:a.value},r.unref(l).cellComponentProps),null,16,["value"])):p.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:a.value},null,8,dc)):(r.openBlock(),r.createElementBlock("span",pc,r.toDisplayString(a.value),1))],46,uc))}}),hc=["tabindex"],mc=r.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.useTemplateRef("rowEl"),n=e.store.isRowVisible(e.rowIndex),o=e.store.getRowExpandSymbol(e.rowIndex);if(e.addNavigation){let s=Yt;typeof e.addNavigation=="object"&&(s={...s,...e.addNavigation}),Yo([{selectors:t,handlers:s}])}return(s,a)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"table-row"},[s.store.config.view!=="uncounted"?r.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},r.toDisplayString(s.rowIndex+1),3)):s.store.config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=i=>s.store.toggleRowExpand(s.rowIndex))},r.toDisplayString(r.unref(o)),3)):r.createCommentVNode("",!0)]):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"default")],8,hc)),[[r.vShow,r.unref(n)]])}}),tr=Qt?window:void 0;function ze(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}function at(...e){let t,n,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,s]=e,t=tr):[t,n,o,s]=e,!t)return Oe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(f=>f()),a.length=0},c=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),l=r.watch(()=>[ze(t),X(s)],([f,d])=>{if(i(),!f)return;const p=Qo(d)?{...d}:d;a.push(...n.flatMap(h=>o.map(m=>c(f,h,m,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return He(u),u}let nr=!1;function or(e,t,n={}){const{window:o=tr,ignore:s=[],capture:a=!0,detectIframe:i=!1}=n;if(!o)return Oe;Xt&&!nr&&(nr=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",Oe)),o.document.documentElement.addEventListener("click",Oe));let c=!0;const l=m=>X(s).some(b=>{if(typeof b=="string")return Array.from(o.document.querySelectorAll(b)).some(N=>N===m.target||m.composedPath().includes(N));{const N=ze(b);return N&&(m.target===N||m.composedPath().includes(N))}});function u(m){const b=X(m);return b&&b.$.subTree.shapeFlag===16}function f(m,b){const N=X(m),_=N.$.subTree&&N.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(x=>x.el===b.target||b.composedPath().includes(x.el))}const d=m=>{const b=ze(e);if(m.target!=null&&!(!(b instanceof Element)&&u(e)&&f(e,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if(m.detail===0&&(c=!l(m)),!c){c=!0;return}t(m)}};let p=!1;const h=[at(o,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(m))},{passive:!0,capture:a}),at(o,"pointerdown",m=>{const b=ze(e);c=!l(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),i&&at(o,"blur",m=>{setTimeout(()=>{var b;const N=ze(e);((b=o.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(N!=null&&N.contains(o.document.activeElement))&&t(m)},0)})].filter(Boolean);return()=>h.forEach(m=>m())}const gc={mounted(e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=or(e,t.value,{capture:n});else{const[o,s]=t.value;e.__onClickOutside_stop=or(e,o,Object.assign({capture:n},s))}},unmounted(e){e.__onClickOutside_stop()}};function en(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function rr(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:rr(n)}}function yc(e){const t=e||window.event,n=t.target;return rr(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const tn=new WeakMap;function wc(e,t=!1){const n=r.ref(t);let o=null,s="";r.watch(rc(e),c=>{const l=en(X(c));if(l){const u=l;if(tn.get(u)||tn.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const a=()=>{const c=en(X(e));!c||n.value||(Xt&&(o=at(c,"touchmove",l=>{yc(l)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},i=()=>{const c=en(X(e));!c||!n.value||(Xt&&(o==null||o()),c.style.overflow=s,tn.delete(c),n.value=!1)};return He(i),r.computed({get(){return n.value},set(c){c?a():i()}})}function bc(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const s=wc(n,o.value);r.watch(t,a=>s.value=a)}}bc();const vc={key:0,id:"resizable"},Ec={class:"atable-header-row",tabindex:"-1"},_c=r.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){return(t,n)=>t.columns.length?(r.openBlock(),r.createElementBlock("thead",vc,[r.createElementVNode("tr",Ec,[t.store.zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.config.view==="tree"?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,(o,s)=>(r.openBlock(),r.createElementBlock("th",{key:o.name,tabindex:"-1",style:r.normalizeStyle(t.store.getHeaderCellStyle(o)),class:r.normalizeClass(o.pinned?"sticky-column":"")},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.label||String.fromCharCode(s+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),kc=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},store:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),Nc=e=>{const t=e.id||crypto.randomUUID();return ji(`table-${t}`,()=>{const n=()=>{const O={};for(const[C,w]of s.value.entries())for(const[j,E]of a.value.entries())O[`${C}:${j}`]=E[w.name];return O},o=O=>{const C=[Object.assign({},{rowModified:!1})];if(O&&"0:0"in O)return O;const w=new Set;for(let j=a.value.length-1;j>=0;j--){const E=a.value[j];E.parent&&w.add(E.parent),C[j]={childrenOpen:!1,expanded:!1,indent:E.indent||null,isParent:w.has(j),isRoot:E.parent===null||E.parent===void 0,rowModified:!1,open:E.parent===null||E.parent===void 0,parent:E.parent}}return C},s=r.ref(e.columns),a=r.ref(e.rows),i=r.ref(e.config||{}),c=r.ref(e.table||n()),l=r.ref(o(e.display)),u=r.ref(e.modal||{visible:!1}),f=r.computed(()=>s.value.some(O=>O.pinned)),d=r.computed(()=>`${Math.ceil(a.value.length/100+1)}ch`),p=r.computed(()=>["list","tree","list-expansion"].includes(i.value.view)),h=(O,C)=>c.value[`${O}:${C}`],m=(O,C,w)=>{const j=`${O}:${C}`,E=s.value[O];c.value[j]!==w&&(l.value[C].rowModified=!0),c.value[j]=w,a.value[C][E.name]=w},b=O=>({minWidth:O.width||"40ch",textAlign:O.align||"center",width:i.value.fullWidth?"auto":null}),N=O=>i.value.view!=="tree"||l.value[O].isRoot||l.value[O].open,_=O=>i.value.view!=="tree"?"":l.value[O].isRoot||l.value[O].isParent?l.value[O].childrenOpen?"-":"+":"",x=O=>{if(i.value.view==="tree"){l.value[O].childrenOpen=!l.value[O].childrenOpen;for(let C=a.value.length-1;C>=0;C--)l.value[C].parent===O&&(l.value[C].open=!l.value[C].open,l.value[C].childrenOpen&&x(C))}else i.value.view==="list-expansion"&&(l.value[O].expanded=!l.value[O].expanded)},I=(O,C)=>{const w=h(O,C);return B(O,C,w)},B=(O,C,w)=>{const j=s.value[O],E=a.value[C],g=j.format;return g?typeof g=="function"?g(w,{table:c.value,row:E,column:j}):typeof g=="string"?Function(`"use strict";return (${g})`)()(w,{table:c.value,row:E,column:j}):w:w};return{columns:s,rows:a,config:i,table:c,display:l,modal:u,hasPinnedColumns:f,numberedRowWidth:d,zeroColumn:p,closeModal:O=>{var C;O.target instanceof Node&&(C=u.value.parent)!=null&&C.contains(O.target)||u.value.visible&&(u.value.visible=!1)},getCellData:h,getCellDisplayValue:I,getFormattedValue:B,getHeaderCellStyle:b,getIndent:(O,C)=>C&&O===0&&C>0?`${C}ch`:"inherit",getRowExpandSymbol:_,isRowVisible:N,setCellData:m,toggleRowExpand:x}})()},$c=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue","cellUpdate"],setup(e,{expose:t,emit:n}){const o=n,s=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,i=Nc({columns:e.columns,rows:a,id:e.id,config:e.config});i.$onAction(({name:l,store:u,args:f})=>{if(l==="setCellData"){const[d,p,h]=f,m=u.getCellData(d,p);o("cellUpdate",[d,p,h,m])}}),r.watch(()=>i.rows,l=>{o("update:modelValue",l)},{deep:!0}),r.onMounted(()=>{e.columns.some(l=>l.pinned)&&(c(),i.config.view==="tree"&&er(s,c,{childList:!0,subtree:!0}))});const c=()=>{const l=s.value,u=l.rows[0],f=l.rows[1],d=u?Array.from(u.cells):[];for(const[p,h]of d.entries()){const m=f==null?void 0:f.cells[p];m&&(h.style.width=`${m.offsetWidth}px`)}for(const p of l.rows){let h=0;const m=[];for(const b of p.cells)(b.classList.contains("sticky-column")||b.classList.contains("sticky-index"))&&(b.style.left=`${h}px`,h+=b.offsetWidth,m.push(b));m.length>0&&m[m.length-1].classList.add("sticky-column-edge")}};return window.addEventListener("keydown",l=>{if(l.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const u=i.modal.parent;u&&r.nextTick().then(()=>{u.focus()})}}),t({store:i}),(l,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(i).config.fullWidth?"100%":"auto"})},[r.renderSlot(l.$slots,"header",{data:r.unref(i)},()=>[r.createVNode(_c,{columns:r.unref(i).columns,store:r.unref(i)},null,8,["columns","store"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(l.$slots,"body",{data:r.unref(i)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).rows,(f,d)=>(r.openBlock(),r.createBlock(mc,{key:f.id,row:f,rowIndex:d,store:r.unref(i)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i).columns,(p,h)=>(r.openBlock(),r.createBlock(fc,{key:p.name,store:r.unref(i),col:p,spellcheck:"false",pinned:p.pinned,rowIndex:d,colIndex:h,component:p.cellComponent,style:r.normalizeStyle({textAlign:(p==null?void 0:p.align)||"center",minWidth:(p==null?void 0:p.width)||"40ch",width:r.unref(i).config.fullWidth?"auto":null})},null,8,["store","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),r.renderSlot(l.$slots,"footer",{data:r.unref(i)},void 0,!0),r.renderSlot(l.$slots,"modal",{data:r.unref(i)},()=>[r.withDirectives(r.createVNode(kc,{colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i),style:r.normalizeStyle({left:r.unref(i).modal.left+"px",top:r.unref(i).modal.top+"px",maxWidth:r.unref(i).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(i).modal.component),r.mergeProps({key:`${r.unref(i).modal.rowIndex}:${r.unref(i).modal.colIndex}`,colIndex:r.unref(i).modal.colIndex,rowIndex:r.unref(i).modal.rowIndex,store:r.unref(i)},r.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["colIndex","rowIndex","store","style"]),[[r.vShow,r.unref(i).modal.visible]])],!0)],4)),[[r.unref(gc),r.unref(i).closeModal]])}}),Oc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Sc=Oc($c,[["__scopeId","data-v-a7848db7"]]),sr=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=xn(),o={view:"list"};return(s,a)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(Sc),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),xc={class:"tabs"},Cc={tabindex:"0"},Pc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},Vc={tabindex:"0"},Dc={style:{width:"11pt"}},ar=ut(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),s=r.useTemplateRef("searchinput"),a=r.computed(()=>t.value?"unrotated":"rotated"),i=()=>{t.value=!t.value},c=async()=>{n.value=!n.value,await r.nextTick(()=>{s.value.focus()})},l=d=>{d.preventDefault(),d.stopPropagation()},u=async d=>{d.preventDefault(),d.stopPropagation(),await c()},f=()=>{};return(d,p)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",xc,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:r.withKeys(i,["enter"])},[r.createElementVNode("a",Cc,[r.createElementVNode("div",{class:r.normalizeClass(a.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:f,onKeydown:r.withKeys(f,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",Pc,p[5]||(p[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
51
51
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
52
52
  c2.414,0.39,4.511,1.845,5.731,3.942l47.43,47.43V58.499c0-4.487,3.633-8.129,8.129-8.129h47.755c4.495,0,8.129,3.642,8.129,8.129
53
53
  v79.156l91.39,91.398c2.325,2.325,3.024,5.828,1.764,8.868c-1.26,3.032-4.227,5.007-7.511,5.007c-0.008,0-0.008,0-0.016,0