1||!a[c+1])&&t>c+1){const y=h||t-c,b=r.slice(c,c+y).reduce((q,C)=>q+C,0);if(b{const{columns:o,sizes:a,_skin:s}=this.getState(),c=this.copyColumns(o),u=c.reduce((h,w)=>Math.max(w.header.length,h),0),f=c.reduce((h,w)=>Math.max(w.footer.length,h),0);c.forEach(this.setCollapsibleColumns);const d=this.normalizeSizes(c,a,u,f,s);c.forEach((h,w)=>{this.normalizeColumns(c,w,"header",u,d),this.normalizeColumns(c,w,"footer",f,d)}),this.setState({_columns:c,_sizes:d},r)}},{in:["data","tree"],out:["flatData"],exec:r=>{const{data:o,tree:a}=this.getState();this.setState({flatData:a?this.flattenRows(o):o},r)}}],{data:r=>this._branches?this.normalizeTreeRows(r):this.normalizeRows(r),sizes:r=>({...l,...r})});const i=this.in=new u1;i.on("close-editor",({ignore:r})=>{const{editor:o}=this.getState();o&&(r||i.exec("update-cell",o),this.setState({editor:null}))}),i.on("open-editor",({id:r,column:o})=>{let a=this.getState().editor;a&&i.exec("close-editor",{});const s=o?this.getColumn(o):this.getNextEditor();if(s!=null&&s.editor){const c=this.getRow(r);a={column:s.id,id:r,value:cs(c,s),renderedValue:Qe(c,s)},typeof s.editor!="string"&&s.editor.config&&(a.config=s.editor.config),s.options&&(a.options=s.options),this.setState({editor:a})}}),i.on("editor",({value:r})=>{const o=this.getState().editor;o&&(o.value=r,this.setState({editor:o}))}),i.on("add-row",r=>{let{data:o}=this.getState();const{row:a,before:s,after:c}=r;if(r.id=a.id=r.id||a.id||ql(),s||c){const u=s||c,f=o.findIndex(d=>d.id===u);o.splice(f+(c?1:0),0,r.row),o=[...o]}else o=[...o,r.row];this.setState({data:o}),i.exec("select-row",{id:a.id})}),i.on("delete-row",r=>{const{data:o,selected:a,selectedRows:s}=this.getState(),{id:c}=r,u={data:o.filter(f=>f.id!==c)};this.isSelected(c)&&(u.selectedRows=s.filter(f=>f!==c),a==c&&(u.selected=u.selectedRows[u.selectedRows.length-1]||null)),this.setState(u)}),i.on("update-cell",r=>{let{data:o}=this.getState();o=[...o];const{tree:a}=this.getState(),{id:s,column:c,value:u}=r,f=this.getColumn(c);if(a){const d={...this._branches[s]};kr(d,f,u),this._branches[s]=d;const h=this._branches[d.$parent],w=h.data.findIndex(p=>p.id==s);d.$parent===0&&(o=h.data),h.data=[...h.data],h.data[w]=d}else{const d=o.findIndex(w=>w.id==s),h={...o[d]};kr(h,f,u),o[d]=h}this.setState({data:o})}),i.on("update-row",r=>{let{data:o}=this.getState();const{id:a,row:s}=r,c=o.findIndex(u=>u.id==a);o=[...o],o[c]={...o[c],...s},this.setState({data:o})}),i.on("select-row",({id:r,toggle:o,range:a,mode:s,show:c,column:u})=>{let{selected:f,selectedRows:d}=this.getState();if(a){const{data:h}=this.getState();f||(f=r);let w=h.findIndex(m=>m.id==f),p=h.findIndex(m=>m.id==r);w>p&&([w,p]=[p,w]),h.slice(w,p+1).forEach(m=>{d.indexOf(m.id)===-1&&d.push(m.id)}),f=r}else if(o&&this.isSelected(r)){if(s===!0)return;d=d.filter(h=>h!==r),f=d[d.length-1]||null}else if(f=r,o){if(s===!1)return;d.push(r)}else d=[r];this.setState({selected:f,selectedRows:d}),c&&this.in.exec("scroll",{row:r,column:u})}),i.on("resize-column",r=>{const{id:o,auto:a,maxRows:s}=r;let c=r.width||0;const u=[...this.getState().columns],f=u.find(d=>d.id==o);if(a){if(a=="data"||a===!0){const{flatData:d,_skin:h}=this.getState();let w=d.length;s&&(w=Math.min(s,w));const p=d.slice(0,w);c=_1(f,p,h)}if(a=="header"||a===!0){const{_skin:d}=this.getState();c=Math.max(k1(f,d),c)}}f.width=Math.max(17,c),delete f.flexgrow,this.setState({columns:u})}),i.on("hide-column",({id:r,mode:o})=>{const a=[...this.getState().columns],s=a.find(u=>u.id==r),c=a.reduce((u,f)=>u+(f.hidden?0:1),0);(!o||c>1)&&(s.hidden=!s.hidden,this.setState({columns:a}))}),i.on("sort-rows",r=>{const o={key:r.key,order:r.order||"asc"};let a=this.getState().sort;const{columns:s,data:c,tree:u}=this.getState();let f=a.length;a.forEach((h,w)=>{h.key===o.key&&(o.order=h.order==="asc"?"desc":"asc",f=w)}),s.forEach(h=>{h.$sort=null}),r.add?(a=[...a],a[f]=o):a=[o],this.setState({sort:a}),a.forEach((h,w)=>{h.index=a.length===1?0:w+1,s.find(p=>p.id==h.key).$sort=h}),this.setState({columns:s});const d=b1(a);if(d){const h=[...c];u?this.sortTree(h,d):h.sort(d),this.setState({data:h})}}),i.on("filter-rows",r=>{this.setState({filter:r.handler})}),i.on("collapse-column",r=>{const{id:o,row:a,mode:s}=r,c=[...this.getState().columns],u=this.getColumn(o).header,f=Array.isArray(u)?u[a]:u;typeof f=="object"&&(f.collapsed=s??!f.collapsed,this.setState({columns:c}))}),i.on("open-row",r=>{const{id:o,nested:a}=r,{data:s}=this.getState();this.toggleBranch(o,!0,a),this.setState({data:s})}),i.on("close-row",r=>{const{id:o,nested:a}=r,{data:s}=this.getState();this.toggleBranch(o,!1,a),this.setState({data:s})}),i.on("export",r=>new Promise((o,a)=>{const s=r.options||{},c=`${s.fileName||"data"}.${s.format}`;if(s.format=="csv"){const u=h1(this.getState(),s);s.download!==!1?yr(new Blob(["\uFEFF"+u],{type:"text/csv"}),c):r.result=u,o(!0)}else if(s.format=="xlsx"){const{cells:u,merged:f,rowSizes:d,colSizes:h}=w1(this.getState(),s),w=s.cdn||"https://cdn.dhtmlx.com/libs/json2excel/next/worker.js",p=this.getXlsxWorker(w),m=s.styles||g1();p.then(y=>{y.onmessage=b=>{if(b.data.type=="ready"){const q=b.data.blob;s.download!==!1?yr(q,c):r.result=q,o(!0)}},y.postMessage({type:"convert",data:{data:[{name:s.sheetName||"data",cells:u,cols:h,rows:d,merged:f}],styles:[{id:"header",...m.header},{id:"lastHeaderCell",...m.lastHeaderCell||m.header},{id:"cell",...m.cell},{id:"firstFooterCell",...m.firstFooterCell||m.footer},{id:"footer",...m.footer}]}})})}else a()})),i.on("hotkey",({key:r,event:o})=>{var a,s,c,u;switch(r){case"arrowup":{const{selected:f,editor:d,flatData:h}=this.getState();if(!d){o.preventDefault();const w=f?(a=this.getPrevRow(f))==null?void 0:a.id:(s=h[h.length-1])==null?void 0:s.id;w&&this.in.exec("select-row",{id:w,show:!0})}break}case"arrowdown":{const{selected:f,editor:d,flatData:h}=this.getState();if(!d){o.preventDefault();const w=f?(c=this.getNextRow(f))==null?void 0:c.id:(u=h[0])==null?void 0:u.id;w&&this.in.exec("select-row",{id:w,show:!0})}break}case"tab":{const{editor:f}=this.getState();if(f){o.preventDefault();const d=f.column;let h=f.id,w=this.getNextEditor(d);if(w)this.in.exec("select-row",{id:h,show:!0,column:w.id});else{const p=this.getNextRow(h);p&&(h=p.id,w=this.getNextEditor(),this.in.exec("select-row",{id:h,show:!0,column:w.id}))}w&&this.in.exec("open-editor",{id:h,column:w.id})}break}case"shift+tab":{const{editor:f}=this.getState();if(f){o.preventDefault();const d=f.column;let h=f.id,w=this.getPrevEditor(d);if(w)this.in.exec("select-row",{id:h,show:!0,column:w.id});else{const p=this.getPrevRow(h);p&&(h=p.id,w=this.getPrevEditor(),this.in.exec("select-row",{id:h,show:!0,column:w.id}))}w&&this.in.exec("open-editor",{id:h,column:w.id})}break}case"escape":{const{editor:f}=this.getState();f&&this.in.exec("close-editor",{ignore:!0});break}case"f2":{const{editor:f,selected:d}=this.getState();!f&&d&&this.in.exec("open-editor",{id:d});break}}}),i.on("scroll",r=>{const{_columns:o,split:a,_sizes:s,data:c}=this.getState();let u=-1,f=-1,d=0;if(r.column){u=0;const h=o.findIndex(w=>w.id===r.column);d=o[h].width;for(let w=a.left;wh.id===r.row)),this.setState({scroll:{top:f,left:u,width:d,height:s.rowHeight}})})}getXlsxWorker(t){if(!this._xlsxWorker){const l=window.URL.createObjectURL(new Blob([`importScripts('${t}');`],{type:"text/javascript"}));this._xlsxWorker=new Promise(i=>{const r=new Worker(l);r.addEventListener("message",o=>{o.data.type==="init"&&i(r)})})}return this._xlsxWorker}init(t){t.hasOwnProperty("_skin")&&!t._skin&&(t._skin=x1()),t.columns&&t.columns.forEach(l=>{l.options&&(l.optionsMap=new Map(l.options.map(i=>[i.id,i.name])))}),t.tree&&(this._branches={0:{data:t.data}}),this._router.init({sort:[],filter:null,scroll:null,...t})}setState(t,l){return this._router.setState(t,l)}getRow(t){const{tree:l}=this.getState();return l?this._branches[t]:this.getState().data.find(i=>i.id==t)}getNextRow(t){const l=this.getState().flatData,i=l.findIndex(r=>r.id==t);return l[i+1]}getPrevRow(t){const l=this.getState().flatData,i=l.findIndex(r=>r.id==t);return l[i-1]}getColumn(t){return this.getState().columns.find(l=>l.id==t)}getNextEditor(t){let l=this.getState().columns;if(t){const i=l.findIndex(r=>r.id==t);l=l.slice(i+1)}return l.find(i=>i.editor&&!i.hidden)}getPrevEditor(t){let l=this.getState().columns;if(t){const i=l.findLastIndex(r=>r.id==t);l=l.slice(0,i)}return l.findLast(i=>i.editor&&!i.hidden)}toggleBranch(t,l,i){var o;const r=this._branches[t];t!==0&&(r.open=l),i&&((o=r.data)!=null&&o.length)&&r.data.forEach(a=>{this.toggleKids(a,l,i)})}toggleKids(t,l,i){var r;t.open=l,i&&((r=t.data)!=null&&r.length)&&t.data.forEach(o=>{this.toggleKids(o,l,i)})}isSelected(t){return this.getState().selectedRows.indexOf(t)!==-1}copyColumns(t){const l=[];return t.forEach(i=>{const r={...i};this.copyHeaderFooter(r,"header"),this.copyHeaderFooter(r,"footer"),l.push(r)}),l}copyHeaderFooter(t,l){let i=t[l];i=Array.isArray(i)?[...i]:[i],i.forEach((r,o)=>{i[o]=typeof r=="string"?{text:r}:{...r}}),t[l]=i}setCollapsibleColumns(t,l,i){let r=t.header;for(let o=0;oh+w,0);f.height=d,u+f.rowspan!=r&&f.height--}if(f.colspan){let d=a.width,h=a.flexgrow||0;const w=f.colspan;for(let p=1;pr&&(s.length=r),a[i]=s,Pl&&Math.random()<.1&&s.length&&typeof s[0]=="object"&&s[0].text&&(s[0].text=`[trial] ${s[0].text}`)}normalizeRows(t){return t.forEach(l=>{l.id||(l.id=ql())}),t}normalizeTreeRows(t,l,i){return t.forEach(r=>{var o;r.id||(r.id=ql()),r.$level=l||0,r.$parent=i||0,this._branches[r.id]=r,(o=r.data)!=null&&o.length&&(r.$count=r.data.length,this.normalizeTreeRows(r.data,r.$level+1,r.id))}),t}sortTree(t,l){t.sort(l),t.forEach(i=>{i.data&&this.sortTree(i.data,l)})}flattenRows(t,l){const i=l||[];return t.forEach(r=>{var o;i.push(r),(o=r.data)!=null&&o.length&&r.open!==!1&&this.flattenRows(r.data,i)}),i}normalizeSizes(t,l,i,r,o){const a=$r(t,"header",i,l.headerHeight,o),s=$r(t,"footer",r,l.footerHeight,o),c=a.reduce((f,d)=>f+d,0),u=s.reduce((f,d)=>f+d,0);return{...l,headerRowHeights:a,footerRowHeights:s,headerHeight:c,footerHeight:u}}}let z1=new Date().valueOf();function ql(){return"temp://"+z1++}function S1(n,{keys:e,exec:t}){for(const i in e){const r=i.toLowerCase().replace(/ /g,"");r!==i&&(e[r]=e[i])}function l(i){let r=i.code.toLowerCase();r===" "&&(r="space");const o=`${i.ctrlKey||i.metaKey?"ctrl+":""}${i.shiftKey?"shift+":""}${i.altKey?"alt+":""}${r}`,a=e[o];if(typeof a<"u"){const s=i.target.tagName==="INPUT"||i.target.tagName==="TEXTAREA";typeof a=="function"?a({key:o,event:i,node:n,isInput:s}):a&&t({key:o,event:i,node:n,isInput:s})}}return n.addEventListener("keydown",l),{destroy:()=>{n.removeEventListener("keydown",l)}}}function j1(n,e){let t=null;e.scroll.subscribe(l=>{if(!l||l===t)return;t=l;const{left:i,top:r,height:o,width:a}=l,s=e.getHeight(),c=e.getWidth();if(r>=0){const u=n.scrollTop;ru+s&&(n.scrollTop=r-s+o)}if(i>=0){const u=n.scrollLeft;iu+c&&(n.scrollLeft=i-c+a)}})}function $1(n,e){const t=new ResizeObserver(l=>e(l[0].contentRect));return t.observe(n.parentNode),{destroy(){t.disconnect()}}}function hl(n,e,t,l,i){const r=n?`width:${n}px;`:"",o=n?`min-width:${n}px;`:"",a=e?`flex-grow:${e};`:"",s=i?`height:${i}px;`:"",c=t?`position:sticky;left:${l}px;`:"";return`${o}${r}${s}${a}${c}`}function fs(n,e,t){let l="";return l+=n.fixed?n.fixed===-1?"wx-shadow ":"wx-fixed ":"",l+=e.rowspan>1?"wx-rowspan ":"",l+=e.colspan>1?"wx-colspan ":"",l+=e.vertical?"wx-vertical ":"",l+=t?t(n)+" ":"",l}function C1(n){ee(n,"svelte-1wbpy33",".wx-measure-cell-body,.wx-cell.svelte-1wbpy33{background:inherit;box-sizing:border-box;padding:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wx-tree-cell.svelte-1wbpy33{display:flex}.wx-measure-cell-body,.wx-cell.svelte-1wbpy33:not(:last-child){border-right:var(--wx-table-cell-border)}.wx-shadow.wx-cell.svelte-1wbpy33{border-right:var(--wx-table-fixed-column-right-border);clip-path:inset(0px -15px 0px 0px);z-index:1}.wx-table-tree-toggle.svelte-1wbpy33{font-size:20px;cursor:pointer;margin:0 8px 0 0;display:inline-block}")}function q1(n){let e;const t=n[7].default,l=he(t,n,n[6],null),i=l||R1(n);return{c(){i&&i.c()},m(r,o){i&&i.m(r,o),e=!0},p(r,o){l?l.p&&(!e||o&64)&&ge(l,t,r,r[6],e?we(t,r[6],o,null):pe(r[6]),null):i&&i.p&&(!e||o&3)&&i.p(r,e?o:-1)},i(r){e||(v(i,r),e=!0)},o(r){S(i,r),e=!1},d(r){i&&i.d(r)}}}function M1(n){let e,t,l,i,r,o=n[0].$count&&Cr(n);const a=n[7].default,s=he(a,n,n[6],null),c=s||I1(n);return{c(){e=_("div"),t=_("span"),l=I(),o&&o.c(),i=I(),c&&c.c(),ae(t,"margin-left",n[0].$level*28+"px"),g(e,"class","wx-tree-cell svelte-1wbpy33")},m(u,f){z(u,e,f),j(e,t),j(e,l),o&&o.m(e,null),j(e,i),c&&c.m(e,null),r=!0},p(u,f){(!r||f&1)&&ae(t,"margin-left",u[0].$level*28+"px"),u[0].$count?o?o.p(u,f):(o=Cr(u),o.c(),o.m(e,i)):o&&(o.d(1),o=null),s?s.p&&(!r||f&64)&&ge(s,a,u,u[6],r?we(a,u[6],f,null):pe(u[6]),null):c&&c.p&&(!r||f&3)&&c.p(u,r?f:-1)},i(u){r||(v(c,u),r=!0)},o(u){S(c,u),r=!1},d(u){u&&k(e),o&&o.d(),c&&c.d(u)}}}function R1(n){let e=Qe(n[0],n[1])+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&3&&e!==(e=Qe(l[0],l[1])+"")&&se(t,e)},d(l){l&&k(t)}}}function Cr(n){let e,t;return{c(){e=_("i"),g(e,"data-action","toggle-row"),g(e,"class",t="wx-table-tree-toggle wxi-menu-"+(n[0].open!==!1?"down":"right")+" svelte-1wbpy33")},m(l,i){z(l,e,i)},p(l,i){i&1&&t!==(t="wx-table-tree-toggle wxi-menu-"+(l[0].open!==!1?"down":"right")+" svelte-1wbpy33")&&g(e,"class",t)},d(l){l&&k(e)}}}function I1(n){let e=Qe(n[0],n[1])+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&3&&e!==(e=Qe(l[0],l[1])+"")&&se(t,e)},d(l){l&&k(t)}}}function E1(n){let e,t,l,i,r,o,a;const s=[M1,q1],c=[];function u(f,d){return f[1].treetoggle?0:1}return t=u(n),l=c[t]=s[t](n),{c(){e=_("div"),l.c(),g(e,"class",i=De(n[3])+" svelte-1wbpy33"),g(e,"style",n[2]),g(e,"data-row-id",r=n[0].id),g(e,"data-col-id",o=n[1].id),J(e,"wx-shadow",n[1].fixed===-1)},m(f,d){z(f,e,d),c[t].m(e,null),a=!0},p(f,[d]){let h=t;t=u(f),t===h?c[t].p(f,d):(ne(),S(c[h],1,1,()=>{c[h]=null}),ie(),l=c[t],l?l.p(f,d):(l=c[t]=s[t](f),l.c()),v(l,1),l.m(e,null)),(!a||d&8&&i!==(i=De(f[3])+" svelte-1wbpy33"))&&g(e,"class",i),(!a||d&4)&&g(e,"style",f[2]),(!a||d&1&&r!==(r=f[0].id))&&g(e,"data-row-id",r),(!a||d&2&&o!==(o=f[1].id))&&g(e,"data-col-id",o),(!a||d&10)&&J(e,"wx-shadow",f[1].fixed===-1)},i(f){a||(v(l),a=!0)},o(f){S(l),a=!1},d(f){f&&k(e),c[t].d()}}}function O1(n,e,t){let{$$slots:l={},$$scope:i}=e,{row:r}=e,{col:o}=e,{cellStyle:a=null}=e,{columnStyle:s=null}=e,c,u;function f(d,h){let w="wx-cell";return w+=d?" "+d(o):"",w+=h?" "+h(r,o):"",w}return n.$$set=d=>{"row"in d&&t(0,r=d.row),"col"in d&&t(1,o=d.col),"cellStyle"in d&&t(4,a=d.cellStyle),"columnStyle"in d&&t(5,s=d.columnStyle),"$$scope"in d&&t(6,i=d.$$scope)},n.$$.update=()=>{n.$$.dirty&2&&t(2,c=hl(o.width,o.flexgrow,o.fixed,o.left)),n.$$.dirty&48&&t(3,u=f(s,a))},[r,o,c,u,a,s,i,l]}class en extends K{constructor(e){super(),Y(this,e,O1,E1,V,{row:0,col:1,cellStyle:4,columnStyle:5},C1)}get row(){return this.$$.ctx[0]}set row(e){this.$$set({row:e}),x()}get col(){return this.$$.ctx[1]}set col(e){this.$$set({col:e}),x()}get cellStyle(){return this.$$.ctx[4]}set cellStyle(e){this.$$set({cellStyle:e}),x()}get columnStyle(){return this.$$.ctx[5]}set columnStyle(e){this.$$set({columnStyle:e}),x()}}U(en,{row:{},col:{},cellStyle:{},columnStyle:{}},["default"],[],!0);function D1(n,e){let t,l;function i(a){t=a.clientX,n.style.opacity=1,document.body.style.cursor="ew-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",r),window.addEventListener("mouseup",o),e&&e.down&&e.down(n)}function r(a){l=a.clientX-t,e&&e.move&&e.move(l)}function o(){n.style.opacity="",document.body.style.cursor="",document.body.style.userSelect="",e&&e.up&&e.up(),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",o)}return n.addEventListener("mousedown",i),{destroy(){n.removeEventListener("mousedown",i)}}}function N1(n){ee(n,"svelte-hek2za",'.wx-measure-cell-header,.wx-cell.svelte-hek2za.svelte-hek2za{padding:8px;position:relative;display:flex;align-items:center;font-weight:var(--wx-header-font-weight);background:var(--wx-table-header-background);overflow:hidden;gap:10px;line-height:20px}.wx-cell.wx-vertical.svelte-hek2za.svelte-hek2za{align-items:flex-end}.wx-measure-cell-header.wx-measure-vertical{padding:8px}.wx-measure-cell-header,.wx-cell.svelte-hek2za.svelte-hek2za:not(:last-child){border-right:var(--wx-table-header-cell-border)}.wx-cell.svelte-hek2za.svelte-hek2za:last-child{overflow:hidden}.wx-text.svelte-hek2za.svelte-hek2za{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wx-vertical.svelte-hek2za .wx-text.svelte-hek2za{height:100%;transform:rotate(-180deg);writing-mode:vertical-lr;text-overflow:ellipsis;overflow:hidden}.wx-cell.wx-shadow.svelte-hek2za.svelte-hek2za{box-shadow:var(--wx-table-fixed-column-shadow);clip-path:inset(0px -15px 0px 0px);border-right:var(--wx-table-fixed-column-right-border)}.wx-shadow.svelte-hek2za.svelte-hek2za,.wx-fixed.svelte-hek2za.svelte-hek2za{z-index:1}.wx-grip.svelte-hek2za.svelte-hek2za{box-sizing:border-box;position:absolute;top:0;bottom:0;right:-4px;width:9px;border-left:5px solid var(--wx-table-header-background);border-right:3px solid var(--wx-table-header-background);background-color:var(--wx-color-primary);opacity:0;cursor:ew-resize;z-index:5}.wx-grip.svelte-hek2za.svelte-hek2za::before,.wx-grip.svelte-hek2za.svelte-hek2za::after{content:"";position:absolute;top:0;bottom:0;width:0;height:0;margin:auto}.wx-grip.svelte-hek2za.svelte-hek2za::before{border:3px dashed transparent;border-right:3px solid var(--wx-color-primary);right:5px}.wx-grip.svelte-hek2za.svelte-hek2za::after{border:3px dashed transparent;border-left:3px solid var(--wx-color-primary);left:5px}.wx-grip.svelte-hek2za.svelte-hek2za:hover{opacity:1}.wx-sort.svelte-hek2za.svelte-hek2za{position:absolute;top:0;bottom:0;left:0;right:5px;display:flex;align-items:center;justify-content:flex-end}.wx-order.svelte-hek2za.svelte-hek2za{width:16px;height:16px;line-height:16px;border-radius:50%;font-size:12px;text-align:center;color:#fff;background-color:#3498ff}.wx-icon.svelte-hek2za.svelte-hek2za{padding:5px;color:#3498ff;cursor:pointer}.wx-rowspan.svelte-hek2za.svelte-hek2za{z-index:6}.wx-rowspan.wx-shadow.svelte-hek2za.svelte-hek2za,.wx-colspan.wx-shadow.svelte-hek2za.svelte-hek2za{z-index:7}.wx-collapse.svelte-hek2za.svelte-hek2za,.wx-collapsed.svelte-hek2za.svelte-hek2za{cursor:pointer;z-index:1}')}function H1(n){let e,t,l,i=(n[0].text||"")+"",r,o,a,s,c=n[0].collapsible&&qr(n),u=n[1].resize&&n[2]&&Mr(n),f=n[1].sort&&Rr(n);return{c(){e=_("div"),c&&c.c(),t=I(),l=_("div"),r=te(i),o=I(),u&&u.c(),a=I(),f&&f.c(),g(l,"class","wx-text svelte-hek2za"),g(e,"class",s="wx-cell "+n[4]+" "+(n[0].css||"")+" svelte-hek2za"),g(e,"style",n[3])},m(d,h){z(d,e,h),c&&c.m(e,null),j(e,t),j(e,l),j(l,r),j(e,o),u&&u.m(e,null),j(e,a),f&&f.m(e,null)},p(d,h){d[0].collapsible?c?c.p(d,h):(c=qr(d),c.c(),c.m(e,t)):c&&(c.d(1),c=null),h&1&&i!==(i=(d[0].text||"")+"")&&se(r,i),d[1].resize&&d[2]?u?u.p(d,h):(u=Mr(d),u.c(),u.m(e,a)):u&&(u.d(1),u=null),d[1].sort?f?f.p(d,h):(f=Rr(d),f.c(),f.m(e,null)):f&&(f.d(1),f=null),h&17&&s!==(s="wx-cell "+d[4]+" "+(d[0].css||"")+" svelte-hek2za")&&g(e,"class",s),h&8&&g(e,"style",d[3])},d(d){d&&k(e),c&&c.d(),u&&u.d(),f&&f.d()}}}function P1(n){let e,t,l=(n[0].text||"")+"",i,r,o,a;return{c(){e=_("div"),t=_("div"),i=te(l),g(t,"class","wx-text svelte-hek2za"),g(e,"class",r="wx-cell "+n[4]+" "+(n[0].css||"")+" wx-collapsed svelte-hek2za"),g(e,"style",n[3])},m(s,c){z(s,e,c),j(e,t),j(t,i),o||(a=A(e,"click",nt(n[8])),o=!0)},p(s,c){c&1&&l!==(l=(s[0].text||"")+"")&&se(i,l),c&17&&r!==(r="wx-cell "+s[4]+" "+(s[0].css||"")+" wx-collapsed svelte-hek2za")&&g(e,"class",r),c&8&&g(e,"style",s[3])},d(s){s&&k(e),o=!1,a()}}}function qr(n){let e,t,l,i,r;return{c(){e=_("div"),t=_("i"),g(t,"class",l="wxi-angle-"+(n[0].collapsed?"down":"right")),g(e,"class","wx-collapse svelte-hek2za")},m(o,a){z(o,e,a),j(e,t),i||(r=A(e,"click",nt(n[8])),i=!0)},p(o,a){a&1&&l!==(l="wxi-angle-"+(o[0].collapsed?"down":"right"))&&g(t,"class",l)},d(o){o&&k(e),i=!1,r()}}}function Mr(n){let e,t,l;return{c(){e=_("div"),g(e,"class","wx-grip svelte-hek2za")},m(i,r){z(i,e,r),t||(l=$e(D1.call(null,e,{down:n[5],move:n[6]})),t=!0)},p:T,d(i){i&&k(e),t=!1,l()}}}function Rr(n){let e,t,l,i=n[1].$sort&&n[2]&&Ir(n);return{c(){e=_("div"),i&&i.c(),g(e,"class","wx-sort svelte-hek2za")},m(r,o){z(r,e,o),i&&i.m(e,null),t||(l=A(e,"click",n[7]),t=!0)},p(r,o){r[1].$sort&&r[2]?i?i.p(r,o):(i=Ir(r),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(r){r&&k(e),i&&i.d(),t=!1,l()}}}function Ir(n){let e,t,l,i=n[1].$sort.index>0&&Er(n);return{c(){i&&i.c(),e=I(),t=_("i"),g(t,"class",l="wxi-arrow-"+(n[1].$sort.order==="asc"?"up":"down"))},m(r,o){i&&i.m(r,o),z(r,e,o),z(r,t,o)},p(r,o){r[1].$sort.index>0?i?i.p(r,o):(i=Er(r),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null),o&2&&l!==(l="wxi-arrow-"+(r[1].$sort.order==="asc"?"up":"down"))&&g(t,"class",l)},d(r){r&&(k(e),k(t)),i&&i.d(r)}}}function Er(n){let e,t=n[1].$sort.index+"",l;return{c(){e=_("div"),l=te(t),g(e,"class","wx-order svelte-hek2za")},m(i,r){z(i,e,r),j(e,l)},p(i,r){r&2&&t!==(t=i[1].$sort.index+"")&&se(l,t)},d(i){i&&k(e)}}}function T1(n){let e;function t(r,o){return r[0].collapsed&&r[1].collapsed?P1:H1}let l=t(n),i=l(n);return{c(){i.c(),e=fe()},m(r,o){i.m(r,o),z(r,e,o)},p(r,[o]){l===(l=t(r))&&i?i.p(r,o):(i.d(1),i=l(r),i&&(i.c(),i.m(e.parentNode,e)))},i:T,o:T,d(r){r&&k(e),i.d(r)}}}function B1(n,e,t){let{cell:l}=e,{column:i}=e,{row:r}=e,{lastRow:o}=e,{columnStyle:a}=e;const s=ze();let c;function u(m){c=l.flexgrow?m.parentNode.clientWidth:l.width}function f(m){s("action",{action:"resize-column",data:{id:l.id,width:Math.max(1,c+m)}})}function d(m){s("action",{action:"sort-rows",data:{key:l.id,add:m.ctrlKey}})}function h(){s("action",{action:"collapse-column",data:{id:l.id,row:r}})}let w,p="";return n.$$set=m=>{"cell"in m&&t(0,l=m.cell),"column"in m&&t(1,i=m.column),"row"in m&&t(9,r=m.row),"lastRow"in m&&t(2,o=m.lastRow),"columnStyle"in m&&t(10,a=m.columnStyle)},n.$$.update=()=>{n.$$.dirty&3&&t(3,w=hl(l.width,l.flexgrow,i.fixed,i.left,l.height)),n.$$.dirty&1027&&t(4,p=fs(i,l,a))},[l,i,o,w,p,u,f,d,h,r,a]}class ds extends K{constructor(e){super(),Y(this,e,B1,T1,V,{cell:0,column:1,row:9,lastRow:2,columnStyle:10},N1)}get cell(){return this.$$.ctx[0]}set cell(e){this.$$set({cell:e}),x()}get column(){return this.$$.ctx[1]}set column(e){this.$$set({column:e}),x()}get row(){return this.$$.ctx[9]}set row(e){this.$$set({row:e}),x()}get lastRow(){return this.$$.ctx[2]}set lastRow(e){this.$$set({lastRow:e}),x()}get columnStyle(){return this.$$.ctx[10]}set columnStyle(e){this.$$set({columnStyle:e}),x()}}U(ds,{cell:{},column:{},row:{},lastRow:{},columnStyle:{}},[],[],!0);function L1(n){ee(n,"svelte-1pgtgrd",".wx-measure-cell-footer,.wx-cell.svelte-1pgtgrd.svelte-1pgtgrd{padding:8px;display:flex;align-items:center;font-weight:var(--wx-header-font-weight);background:var(--wx-table-header-background);overflow:hidden}.wx-cell.svelte-1pgtgrd.svelte-1pgtgrd:not(:last-child){border-right:var(--wx-table-footer-cell-border)}.wx-cell.wx-vertical.svelte-1pgtgrd.svelte-1pgtgrd{align-items:flex-end}.wx-measure-cell-footer.wx-measure-vertical{padding:8px}.wx-text.svelte-1pgtgrd.svelte-1pgtgrd{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wx-vertical.svelte-1pgtgrd .wx-text.svelte-1pgtgrd{transform:rotate(-90deg) translateY(100%);transform-origin:left bottom;text-overflow:clip;overflow:unset}.wx-cell.wx-shadow.svelte-1pgtgrd.svelte-1pgtgrd{clip-path:inset(0px -15px 0px 0px);border-right:var(--wx-table-fixed-column-right-border)}.wx-shadow.svelte-1pgtgrd.svelte-1pgtgrd,.wx-fixed.svelte-1pgtgrd.svelte-1pgtgrd{z-index:1}.wx-rowspan.svelte-1pgtgrd.svelte-1pgtgrd{z-index:2}.wx-rowspan.wx-shadow.svelte-1pgtgrd.svelte-1pgtgrd,.wx-colspan.wx-shadow.svelte-1pgtgrd.svelte-1pgtgrd{z-index:3}")}function Or(n){let e,t=(n[0].text||"")+"",l;return{c(){e=_("div"),l=te(t),g(e,"class","wx-text svelte-1pgtgrd")},m(i,r){z(i,e,r),j(e,l)},p(i,r){r&1&&t!==(t=(i[0].text||"")+"")&&se(l,t)},d(i){i&&k(e)}}}function A1(n){let e,t,l=!n[1].collapsed&&!n[0].collapsed&&Or(n);return{c(){e=_("div"),l&&l.c(),g(e,"class",t="wx-cell "+n[3]+" "+(n[0].css||"")+" svelte-1pgtgrd"),g(e,"style",n[2])},m(i,r){z(i,e,r),l&&l.m(e,null)},p(i,[r]){!i[1].collapsed&&!i[0].collapsed?l?l.p(i,r):(l=Or(i),l.c(),l.m(e,null)):l&&(l.d(1),l=null),r&9&&t!==(t="wx-cell "+i[3]+" "+(i[0].css||"")+" svelte-1pgtgrd")&&g(e,"class",t),r&4&&g(e,"style",i[2])},i:T,o:T,d(i){i&&k(e),l&&l.d()}}}function F1(n,e,t){let{cell:l}=e,{column:i}=e,{columnStyle:r}=e,o,a="";return n.$$set=s=>{"cell"in s&&t(0,l=s.cell),"column"in s&&t(1,i=s.column),"columnStyle"in s&&t(4,r=s.columnStyle)},n.$$.update=()=>{n.$$.dirty&3&&t(2,o=hl(l.width,l.flexgrow,i.fixed,i.left,l.height)),n.$$.dirty&19&&t(3,a=fs(i,l,r))},[l,i,o,a,r]}class hs extends K{constructor(e){super(),Y(this,e,F1,A1,V,{cell:0,column:1,columnStyle:4},L1)}get cell(){return this.$$.ctx[0]}set cell(e){this.$$set({cell:e}),x()}get column(){return this.$$.ctx[1]}set column(e){this.$$set({column:e}),x()}get columnStyle(){return this.$$.ctx[4]}set columnStyle(e){this.$$set({columnStyle:e}),x()}}U(hs,{cell:{},column:{},columnStyle:{}},[],[],!0);function W1(n){ee(n,"svelte-1byhgan",".wx-header.svelte-1byhgan,.wx-footer.svelte-1byhgan{font-weight:500}.wx-header.svelte-1byhgan{top:0;border-bottom:var(--wx-table-header-border)}.wx-footer.svelte-1byhgan{position:sticky;z-index:2;bottom:0;border-top:var(--wx-table-header-border)}.wx-h-row.svelte-1byhgan:not(:last-child){border-bottom:var(--wx-table-header-cell-border)}.wx-f-row.svelte-1byhgan:not(:last-child){border-bottom:var(--wx-table-footer-cell-border)}")}function Dr(n,e,t){const l=n.slice();return l[10]=e[t],l[12]=t,l}function Nr(n,e,t){const l=n.slice();return l[13]=e[t],l}function V1(n){let e,t;return e=new hs({props:{cell:n[13],columnStyle:n[4],column:n[6](n[13].id)}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&32&&(r.cell=l[13]),i&16&&(r.columnStyle=l[4]),i&32&&(r.column=l[6](l[13].id)),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Y1(n){let e,t;return e=new ds({props:{cell:n[13],columnStyle:n[4],column:n[6](n[13].id),row:n[12],lastRow:n[7](n[13],n[12])}}),e.$on("action",n[9]),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&32&&(r.cell=l[13]),i&16&&(r.columnStyle=l[4]),i&32&&(r.column=l[6](l[13].id)),i&32&&(r.lastRow=l[7](l[13],l[12])),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Hr(n,e){let t,l,i,r,o;const a=[Y1,V1],s=[];function c(u,f){return u[3]==="header"?0:1}return l=c(e),i=s[l]=a[l](e),{key:n,first:null,c(){t=fe(),i.c(),r=fe(),this.first=t},m(u,f){z(u,t,f),s[l].m(u,f),z(u,r,f),o=!0},p(u,f){e=u;let d=l;l=c(e),l===d?s[l].p(e,f):(ne(),S(s[d],1,1,()=>{s[d]=null}),ie(),i=s[l],i?i.p(e,f):(i=s[l]=a[l](e),i.c()),v(i,1),i.m(r.parentNode,r))},i(u){o||(v(i),o=!0)},o(u){S(i),o=!1},d(u){u&&(k(t),k(r)),s[l].d(u)}}}function Pr(n){let e,t=[],l=new Map,i,r,o,a=ce(n[10]);const s=c=>c[13].id;for(let c=0;cS(r[a],1,1,()=>{r[a]=null});return{c(){e=_("div");for(let a=0;aw.id===h)}function f(h,w){return h.rowspan&&(w+=h.rowspan-1),w===c.length-1}function d(h){Re.call(this,n,h)}return n.$$set=h=>{"deltaLeft"in h&&t(0,l=h.deltaLeft),"contentWidth"in h&&t(1,i=h.contentWidth),"rowHeights"in h&&t(2,r=h.rowHeights),"columns"in h&&t(8,o=h.columns),"type"in h&&t(3,a=h.type),"columnStyle"in h&&t(4,s=h.columnStyle)},n.$$.update=()=>{if(n.$$.dirty&296&&o.length){const h=o[0][a].length;t(5,c=[]);for(let w=0;w{p||c[w].push(m[a][w]),m[a][w].colspan>1?p=m[a][w].colspan-1:p&&p--})}}},[l,i,r,a,s,c,u,f,o,d]}class tn extends K{constructor(e){super(),Y(this,e,K1,U1,V,{deltaLeft:0,contentWidth:1,rowHeights:2,columns:8,type:3,columnStyle:4},W1)}get deltaLeft(){return this.$$.ctx[0]}set deltaLeft(e){this.$$set({deltaLeft:e}),x()}get contentWidth(){return this.$$.ctx[1]}set contentWidth(e){this.$$set({contentWidth:e}),x()}get rowHeights(){return this.$$.ctx[2]}set rowHeights(e){this.$$set({rowHeights:e}),x()}get columns(){return this.$$.ctx[8]}set columns(e){this.$$set({columns:e}),x()}get type(){return this.$$.ctx[3]}set type(e){this.$$set({type:e}),x()}get columnStyle(){return this.$$.ctx[4]}set columnStyle(e){this.$$set({columnStyle:e}),x()}}U(tn,{deltaLeft:{},contentWidth:{},rowHeights:{},columns:{},type:{},columnStyle:{}},[],[],!0);function G1(n){ee(n,"svelte-zjaxrx",".wx-overlay.svelte-zjaxrx{width:100%;height:100%;position:absolute;z-index:5;background-color:var(--wx-background);padding:14px 8px;text-align:center}")}function X1(n){let e;return{c(){e=te(n[0])},m(t,l){z(t,e,l)},p(t,l){l&1&&se(e,t[0])},i:T,o:T,d(t){t&&k(e)}}}function Z1(n){let e,t,l;var i=n[0];function r(o,a){return{}}return i&&(e=Ie(i,r()),e.$on("action",n[1])),{c(){e&&N(e.$$.fragment),t=fe()},m(o,a){e&&O(e,o,a),z(o,t,a),l=!0},p(o,a){if(a&1&&i!==(i=o[0])){if(e){ne();const s=e;S(s.$$.fragment,1,0,()=>{D(s,1)}),ie()}i?(e=Ie(i,r()),e.$on("action",o[1]),N(e.$$.fragment),v(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}},i(o){l||(e&&v(e.$$.fragment,o),l=!0)},o(o){e&&S(e.$$.fragment,o),l=!1},d(o){o&&k(t),e&&D(e,o)}}}function Q1(n){let e,t,l,i,r;const o=[Z1,X1],a=[];function s(c,u){return u&1&&(t=null),t==null&&(t=!!J1(c[0])),t?0:1}return l=s(n,-1),i=a[l]=o[l](n),{c(){e=_("div"),i.c(),g(e,"class","wx-overlay svelte-zjaxrx")},m(c,u){z(c,e,u),a[l].m(e,null),r=!0},p(c,[u]){let f=l;l=s(c,u),l===f?a[l].p(c,u):(ne(),S(a[f],1,1,()=>{a[f]=null}),ie(),i=a[l],i?i.p(c,u):(i=a[l]=o[l](c),i.c()),v(i,1),i.m(e,null))},i(c){r||(v(i),r=!0)},o(c){S(i),r=!1},d(c){c&&k(e),a[l].d()}}}function J1(n){return typeof n=="function"}function eg(n,e,t){let{overlay:l}=e;function i(r){Re.call(this,n,r)}return n.$$set=r=>{"overlay"in r&&t(0,l=r.overlay)},[l,i]}class ws extends K{constructor(e){super(),Y(this,e,eg,Q1,V,{overlay:0},G1)}get overlay(){return this.$$.ctx[0]}set overlay(e){this.$$set({overlay:e}),x()}}U(ws,{overlay:{}},[],[],!0);function tg(n){ee(n,"svelte-1a713m7",".wx-text.svelte-1a713m7{width:100%;height:100%;border:none;outline:none;padding-left:8px;font:inherit;background:var(--wx-background);color:var(--wx-color-font);border:1px solid var(--wx-color-primary)}")}function lg(n){let e,t,l;return{c(){e=_("input"),g(e,"class","wx-text svelte-1a713m7"),g(e,"type","text"),e.value=n[0]},m(i,r){z(i,e,r),n[6](e),t||(l=[A(e,"input",n[2]),A(e,"keydown",n[3])],t=!0)},p(i,[r]){r&1&&e.value!==i[0]&&(e.value=i[0])},i:T,o:T,d(i){i&&k(e),n[6](null),t=!1,ye(l)}}}function ng(n,e,t){let{actions:l}=e,{editor:i}=e,r="";const o=f=>t(0,r=f.value);let a;Ve(()=>a.focus());function s(){t(0,r=a.value),l.updateValue(a.value)}function c({key:f}){f==="Enter"&&l.save()}function u(f){ve[f?"unshift":"push"](()=>{a=f,t(1,a)})}return n.$$set=f=>{"actions"in f&&t(4,l=f.actions),"editor"in f&&t(5,i=f.editor)},n.$$.update=()=>{n.$$.dirty&32&&o(i)},[r,a,s,c,l,i,u]}class gs extends K{constructor(e){super(),Y(this,e,ng,lg,V,{actions:4,editor:5},tg)}get actions(){return this.$$.ctx[4]}set actions(e){this.$$set({actions:e}),x()}get editor(){return this.$$.ctx[5]}set editor(e){this.$$set({editor:e}),x()}}U(gs,{actions:{},editor:{}},[],[],!0);function ig(n){ee(n,"svelte-1s4pc76",".wx-input.svelte-1s4pc76{height:100%;width:100%;border:none;outline:none;padding-left:8px;font:inherit;background:var(--wx-background);color:var(--wx-color-font);border:1px solid var(--wx-color-primary)}")}const rg=n=>({option:n&131072}),Tr=n=>({option:n[17]});function og(n){let e=n[17].name+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&131072&&e!==(e=l[17].name+"")&&se(t,e)},d(l){l&&k(t)}}}function sg(n){let e=n[0](n[17])+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&131073&&e!==(e=l[0](l[17])+"")&&se(t,e)},d(l){l&&k(t)}}}function ag(n){let e;function t(r,o){return r[0]?sg:og}let l=t(n),i=l(n);return{c(){i.c(),e=fe()},m(r,o){i.m(r,o),z(r,e,o)},p(r,o){l===(l=t(r))&&i?i.p(r,o):(i.d(1),i=l(r),i&&(i.c(),i.m(e.parentNode,e)))},d(r){r&&k(e),i.d(r)}}}function cg(n){let e;const t=n[11].default,l=he(t,n,n[15],Tr),i=l||ag(n);return{c(){i&&i.c()},m(r,o){i&&i.m(r,o),e=!0},p(r,o){l?l.p&&(!e||o&163840)&&ge(l,t,r,r[15],e?we(t,r[15],o,rg):pe(r[15]),Tr):i&&i.p&&(!e||o&131073)&&i.p(r,e?o:-1)},i(r){e||(v(i,r),e=!0)},o(r){S(i,r),e=!1},d(r){i&&i.d(r)}}}function ug(n){let e,t,l,i,r,o;return l=new _t({props:{items:n[2],$$slots:{default:[cg,({option:a})=>({17:a}),({option:a})=>a?131072:0]},$$scope:{ctx:n}}}),l.$on("ready",n[6]),l.$on("select",n[5]),{c(){e=_("input"),t=I(),N(l.$$.fragment),g(e,"class","wx-input svelte-1s4pc76")},m(a,s){z(a,e,s),n[12](e),ke(e,n[1]),z(a,t,s),O(l,a,s),i=!0,r||(o=[A(e,"input",n[13]),A(e,"input",n[7]),A(e,"keydown",n[14])],r=!0)},p(a,[s]){s&2&&e.value!==a[1]&&ke(e,a[1]);const c={};s&4&&(c.items=a[2]),s&163841&&(c.$$scope={dirty:s,ctx:a}),l.$set(c)},i(a){i||(v(l.$$.fragment,a),i=!0)},o(a){S(l.$$.fragment,a),i=!1},d(a){a&&(k(e),k(t)),n[12](null),D(l,a),r=!1,ye(o)}}}function fg(n,e,t){let{$$slots:l={},$$scope:i}=e,{actions:r}=e,{editor:o}=e,a;o.config&&o.config.template&&(a=o.config.template);let s=o.renderedValue,c=o.options;function u({detail:C}){const $=C.id;r.updateValue($),r.save()}let f,d;function h(C){f=C.detail.navigate,t(3,d=C.detail.keydown),f(m())}function w(){t(2,c=s?o.options.filter(C=>C.name.toLowerCase().includes(s.toLowerCase())):o.options),c.length?f(-1/0):f(null)}let p;Ve(()=>{p.focus()});const m=()=>c.findIndex(C=>C.id===o.value);function y(C){ve[C?"unshift":"push"](()=>{p=C,t(4,p)})}function b(){s=this.value,t(1,s)}const q=C=>d(C,m());return n.$$set=C=>{"actions"in C&&t(9,r=C.actions),"editor"in C&&t(10,o=C.editor),"$$scope"in C&&t(15,i=C.$$scope)},[a,s,c,d,p,u,h,w,m,r,o,l,y,b,q,i]}class ps extends K{constructor(e){super(),Y(this,e,fg,ug,V,{actions:9,editor:10},ig)}get actions(){return this.$$.ctx[9]}set actions(e){this.$$set({actions:e}),x()}get editor(){return this.$$.ctx[10]}set editor(e){this.$$set({editor:e}),x()}}U(ps,{actions:{},editor:{}},["default"],[],!0);function dg(n){ee(n,"svelte-1eq9nh5",".wx-value.svelte-1eq9nh5{width:100%;height:100%;padding:8px;overflow:hidden;outline:none;border:1px solid var(--wx-color-primary)}.wx-text.svelte-1eq9nh5{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}")}function hg(n){let e,t=n[1].renderedValue+"",l;return{c(){e=_("span"),l=te(t),g(e,"class","wx-text svelte-1eq9nh5")},m(i,r){z(i,e,r),j(e,l)},p(i,r){r&2&&t!==(t=i[1].renderedValue+"")&&se(l,t)},i:T,o:T,d(i){i&&k(e)}}}function wg(n){let e,t,l;var i=n[4];function r(o,a){return{props:{data:o[2]}}}return i&&(e=Ie(i,r(n)),e.$on("action",n[6])),{c(){e&&N(e.$$.fragment),t=fe()},m(o,a){e&&O(e,o,a),z(o,t,a),l=!0},p(o,a){if(a&16&&i!==(i=o[4])){if(e){ne();const s=e;S(s.$$.fragment,1,0,()=>{D(s,1)}),ie()}i?(e=Ie(i,r(o)),e.$on("action",o[6]),N(e.$$.fragment),v(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}else if(i){const s={};a&4&&(s.data=o[2]),e.$set(s)}},i(o){l||(e&&v(e.$$.fragment,o),l=!0)},o(o){e&&S(e.$$.fragment,o),l=!1},d(o){o&&k(t),e&&D(e,o)}}}function gg(n){let e=n[3](n[2])+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&12&&e!==(e=l[3](l[2])+"")&&se(t,e)},i:T,o:T,d(l){l&&k(t)}}}function pg(n){let e,t,l;function i(o){n[7](o)}let r={};return n[2]!==void 0&&(r.value=n[2]),e=new Vl({props:r}),ve.push(()=>We(e,"value",i)),e.$on("change",n[5]),{c(){N(e.$$.fragment)},m(o,a){O(e,o,a),l=!0},p(o,a){const s={};!t&&a&4&&(t=!0,s.value=o[2],Fe(()=>t=!1)),e.$set(s)},i(o){l||(v(e.$$.fragment,o),l=!0)},o(o){S(e.$$.fragment,o),l=!1},d(o){D(e,o)}}}function mg(n){let e,t,l,i,r,o,a,s;const c=[gg,wg,hg],u=[];function f(d,h){return d[3]?0:d[4]?1:2}return t=f(n),l=u[t]=c[t](n),r=new st({props:{width:"auto",$$slots:{default:[pg]},$$scope:{ctx:n}}}),{c(){e=_("div"),l.c(),i=I(),N(r.$$.fragment),g(e,"class","wx-value svelte-1eq9nh5")},m(d,h){z(d,e,h),u[t].m(e,null),z(d,i,h),O(r,d,h),o=!0,a||(s=A(e,"click",function(){Ne(n[0].cancel())&&n[0].cancel().apply(this,arguments)}),a=!0)},p(d,[h]){n=d;let w=t;t=f(n),t===w?u[t].p(n,h):(ne(),S(u[w],1,1,()=>{u[w]=null}),ie(),l=u[t],l?l.p(n,h):(l=u[t]=c[t](n),l.c()),v(l,1),l.m(e,null));const p={};h&260&&(p.$$scope={dirty:h,ctx:n}),r.$set(p)},i(d){o||(v(l),v(r.$$.fragment,d),o=!0)},o(d){S(l),S(r.$$.fragment,d),o=!1},d(d){d&&(k(e),k(i)),u[t].d(),D(r,d),a=!1,s()}}}function bg(n,e,t){let{actions:l}=e,{editor:i}=e,r=i.value||new Date,o,a;function s({detail:f}){const d=f.value;l.updateValue(d),l.save()}Ve(()=>{window.getSelection&&window.getSelection().removeAllRanges()});function c(f){Re.call(this,n,f)}function u(f){r=f,t(2,r)}return n.$$set=f=>{"actions"in f&&t(0,l=f.actions),"editor"in f&&t(1,i=f.editor)},n.$$.update=()=>{n.$$.dirty&2&&i.config&&t(3,{template:o,cell:a}=i.config,o,(t(4,a),t(1,i)))},[l,i,r,o,a,s,c,u]}class ms extends K{constructor(e){super(),Y(this,e,bg,mg,V,{actions:0,editor:1},dg)}get actions(){return this.$$.ctx[0]}set actions(e){this.$$set({actions:e}),x()}get editor(){return this.$$.ctx[1]}set editor(e){this.$$set({editor:e}),x()}}U(ms,{actions:{},editor:{}},[],[],!0);function vg(n){ee(n,"svelte-z4gexz",".wx-value.svelte-z4gexz{width:100%;height:100%;padding:8px;overflow:hidden;outline:none;border:1px solid var(--wx-color-primary)}.wx-text.svelte-z4gexz{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wx-value.svelte-z4gexz:focus{outline:none;display:block}")}const xg=n=>({option:n&131072}),Br=n=>({option:n[17]});function _g(n){let e,t=n[1].renderedValue+"",l;return{c(){e=_("span"),l=te(t),g(e,"class","wx-text svelte-z4gexz")},m(i,r){z(i,e,r),j(e,l)},p(i,r){r&2&&t!==(t=i[1].renderedValue+"")&&se(l,t)},i:T,o:T,d(i){i&&k(e)}}}function kg(n){let e,t,l;var i=n[3];function r(o,a){return{props:{data:o[6]}}}return i&&(e=Ie(i,r(n)),e.$on("action",n[11])),{c(){e&&N(e.$$.fragment),t=fe()},m(o,a){e&&O(e,o,a),z(o,t,a),l=!0},p(o,a){if(a&8&&i!==(i=o[3])){if(e){ne();const s=e;S(s.$$.fragment,1,0,()=>{D(s,1)}),ie()}i?(e=Ie(i,r(o)),e.$on("action",o[11]),N(e.$$.fragment),v(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}else if(i){const s={};a&64&&(s.data=o[6]),e.$set(s)}},i(o){l||(e&&v(e.$$.fragment,o),l=!0)},o(o){e&&S(e.$$.fragment,o),l=!1},d(o){o&&k(t),e&&D(e,o)}}}function yg(n){let e=n[2](n[6])+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&68&&e!==(e=l[2](l[6])+"")&&se(t,e)},i:T,o:T,d(l){l&&k(t)}}}function zg(n){let e=n[17].name+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&131072&&e!==(e=l[17].name+"")&&se(t,e)},i:T,o:T,d(l){l&&k(t)}}}function Sg(n){let e,t,l;var i=n[3];function r(o,a){return{props:{data:o[17]}}}return i&&(e=Ie(i,r(n)),e.$on("action",n[14])),{c(){e&&N(e.$$.fragment),t=fe()},m(o,a){e&&O(e,o,a),z(o,t,a),l=!0},p(o,a){if(a&8&&i!==(i=o[3])){if(e){ne();const s=e;S(s.$$.fragment,1,0,()=>{D(s,1)}),ie()}i?(e=Ie(i,r(o)),e.$on("action",o[14]),N(e.$$.fragment),v(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}else if(i){const s={};a&131072&&(s.data=o[17]),e.$set(s)}},i(o){l||(e&&v(e.$$.fragment,o),l=!0)},o(o){e&&S(e.$$.fragment,o),l=!1},d(o){o&&k(t),e&&D(e,o)}}}function jg(n){let e=n[2](n[17])+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&131076&&e!==(e=l[2](l[17])+"")&&se(t,e)},i:T,o:T,d(l){l&&k(t)}}}function $g(n){let e,t,l,i;const r=[jg,Sg,zg],o=[];function a(s,c){return s[2]?0:s[3]?1:2}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,c){let u=e;e=a(s),e===u?o[e].p(s,c):(ne(),S(o[u],1,1,()=>{o[u]=null}),ie(),t=o[e],t?t.p(s,c):(t=o[e]=r[e](s),t.c()),v(t,1),t.m(l.parentNode,l))},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function Cg(n){let e;const t=n[10].default,l=he(t,n,n[15],Br),i=l||$g(n);return{c(){i&&i.c()},m(r,o){i&&i.m(r,o),e=!0},p(r,o){l?l.p&&(!e||o&163840)&&ge(l,t,r,r[15],e?we(t,r[15],o,xg):pe(r[15]),Br):i&&i.p&&(!e||o&131084)&&i.p(r,e?o:-1)},i(r){e||(v(i,r),e=!0)},o(r){S(i,r),e=!1},d(r){i&&i.d(r)}}}function qg(n){let e,t,l,i,r,o,a,s;const c=[yg,kg,_g],u=[];function f(d,h){return d[2]?0:d[3]?1:2}return t=f(n),l=u[t]=c[t](n),r=new _t({props:{items:n[1].options,$$slots:{default:[Cg,({option:d})=>({17:d}),({option:d})=>d?131072:0]},$$scope:{ctx:n}}}),r.$on("ready",n[8]),r.$on("select",n[7]),{c(){e=_("div"),l.c(),i=I(),N(r.$$.fragment),g(e,"class","wx-value svelte-z4gexz"),g(e,"tabindex","0")},m(d,h){z(d,e,h),u[t].m(e,null),n[12](e),z(d,i,h),O(r,d,h),o=!0,a||(s=[A(e,"click",function(){Ne(n[0].cancel())&&n[0].cancel().apply(this,arguments)}),A(e,"keydown",n[13])],a=!0)},p(d,[h]){n=d;let w=t;t=f(n),t===w?u[t].p(n,h):(ne(),S(u[w],1,1,()=>{u[w]=null}),ie(),l=u[t],l?l.p(n,h):(l=u[t]=c[t](n),l.c()),v(l,1),l.m(e,null));const p={};h&2&&(p.items=n[1].options),h&163852&&(p.$$scope={dirty:h,ctx:n}),r.$set(p)},i(d){o||(v(l),v(r.$$.fragment,d),o=!0)},o(d){S(l),S(r.$$.fragment,d),o=!1},d(d){d&&(k(e),k(i)),u[t].d(),n[12](null),D(r,d),a=!1,ye(s)}}}function Mg(n,e,t){let l,{$$slots:i={},$$scope:r}=e,{actions:o}=e,{editor:a}=e,s,c;function u({detail:C}){const $=C.id;o.updateValue($),o.save()}let f,d;function h(C){f=C.detail.navigate,t(4,d=C.detail.keydown),f(w())}const w=()=>a.options.findIndex(C=>C.id===a.value);let p;Ve(()=>{p.focus(),window&&window.getSelection&&window.getSelection().removeAllRanges()});function m(C){Re.call(this,n,C)}function y(C){ve[C?"unshift":"push"](()=>{p=C,t(5,p)})}const b=C=>d(C,w());function q(C){Re.call(this,n,C)}return n.$$set=C=>{"actions"in C&&t(0,o=C.actions),"editor"in C&&t(1,a=C.editor),"$$scope"in C&&t(15,r=C.$$scope)},n.$$.update=()=>{n.$$.dirty&2&&t(6,l=a.options.find(C=>C.id===a.value)),n.$$.dirty&2&&a.config&&t(2,{template:s,cell:c}=a.config,s,(t(3,c),t(1,a)))},[o,a,s,c,d,p,l,u,h,w,i,m,y,b,q,r]}class bs extends K{constructor(e){super(),Y(this,e,Mg,qg,V,{actions:0,editor:1},vg)}get actions(){return this.$$.ctx[0]}set actions(e){this.$$set({actions:e}),x()}get editor(){return this.$$.ctx[1]}set editor(e){this.$$set({editor:e}),x()}}U(bs,{actions:{},editor:{}},["default"],[],!0);const Lr={text:gs,combo:ps,datepicker:ms,richselect:bs};function Rg(n){ee(n,"svelte-1hzozeb",".wx-cell.svelte-1hzozeb{box-sizing:border-box;padding:0;background-color:var(--wx-background);color:var(--wx-color-font);position:relative;z-index:2}.wx-shadow.svelte-1hzozeb{box-shadow:var(--wx-table-fixed-column-shadow)}.wx-cell.svelte-1hzozeb .wx-dropdown{border:var(--wx-table-editor-dropdown-border);box-shadow:var(--wx-table-editor-dropdown-shadow)}")}function Ig(n){let e,t,l,i,r;var o=Lr[n[0].editor.type];function a(s,c){return{props:{editor:s[1],actions:{save:s[3],cancel:s[4],updateValue:s[5]}}}}return o&&(t=Ie(o,a(n)),t.$on("action",n[6])),{c(){e=_("div"),t&&N(t.$$.fragment),g(e,"class","wx-cell svelte-1hzozeb"),g(e,"style",n[2]),J(e,"wx-shadow",n[0].fixed===-1)},m(s,c){z(s,e,c),t&&O(t,e,null),l=!0,i||(r=$e(ot.call(null,e,n[3])),i=!0)},p(s,[c]){if(c&1&&o!==(o=Lr[s[0].editor.type])){if(t){ne();const u=t;S(u.$$.fragment,1,0,()=>{D(u,1)}),ie()}o?(t=Ie(o,a(s)),t.$on("action",s[6]),N(t.$$.fragment),v(t.$$.fragment,1),O(t,e,null)):t=null}else if(o){const u={};c&2&&(u.editor=s[1]),t.$set(u)}(!l||c&4)&&g(e,"style",s[2]),(!l||c&1)&&J(e,"wx-shadow",s[0].fixed===-1)},i(s){l||(t&&v(t.$$.fragment,s),l=!0)},o(s){t&&S(t.$$.fragment,s),l=!1},d(s){s&&k(e),t&&D(t),i=!1,r()}}}function Eg(n,e,t){let{col:l}=e,{editor:i}=e;const r=ze();function o(){r("action",{action:"close-editor",data:{ignore:!1}})}function a(){r("action",{action:"close-editor",data:{ignore:!0}})}function s(f){r("action",{action:"editor",data:{value:f}})}let c;function u(f){Re.call(this,n,f)}return n.$$set=f=>{"col"in f&&t(0,l=f.col),"editor"in f&&t(1,i=f.editor)},n.$$.update=()=>{n.$$.dirty&1&&t(2,c=hl(l.width,l.flexgrow,l.fixed,l.left))},[l,i,c,o,a,s,u]}class vs extends K{constructor(e){super(),Y(this,e,Eg,Ig,V,{col:0,editor:1},Rg)}get col(){return this.$$.ctx[0]}set col(e){this.$$set({col:e}),x()}get editor(){return this.$$.ctx[1]}set editor(e){this.$$set({editor:e}),x()}}U(vs,{col:{},editor:{}},[],[],!0);function Og(n){ee(n,"svelte-1rhm7gj",".wx-grid.svelte-1rhm7gj{height:100%;width:100%}.wx-grid.svelte-1rhm7gj *{scroll-margin-top:var(--header-height);scroll-margin-bottom:var(--footer-height);scroll-margin-left:var(--split-left-width)}.wx-table-box.svelte-1rhm7gj{outline:none;position:relative;display:flex;flex-direction:column;height:100%;border:var(--wx-table-cell-border);overflow:hidden;box-sizing:content-box}.wx-table-box.wx-active.svelte-1rhm7gj .wx-row.wx-selected{background-color:var(--wx-table-select-focus-background)}.wx-header-wrapper.svelte-1rhm7gj{position:sticky;z-index:2;top:0px}.wx-body.svelte-1rhm7gj{position:relative}.wx-data.svelte-1rhm7gj{position:relative}.wx-scroll.svelte-1rhm7gj{position:relative;flex:1;overflow:auto}.wx-row.svelte-1rhm7gj{display:flex;box-sizing:border-box;background-color:var(--wx-background)}.wx-row.svelte-1rhm7gj:not(:last-child){border-bottom:var(--wx-table-cell-border)}.wx-row.wx-autoheight.svelte-1rhm7gj .wx-cell{overflow:visible;text-overflow:initial;white-space:normal;word-break:break-all}.wx-row.wx-autoheight.svelte-1rhm7gj{height:max-content}.wx-selected.svelte-1rhm7gj{color:var(--wx-table-select-color);background-color:var(--wx-table-select-background)}.wx-selected.svelte-1rhm7gj .wx-cell:first-child{box-shadow:var(--wx-table-select-border)}.wx-cell.wx-collapsed.svelte-1rhm7gj{width:36px;border-right:var(--wx-table-cell-border)}")}function Ar(n,e,t){const l=n.slice();return l[93]=e[t],l}function Fr(n,e,t){const l=n.slice();return l[96]=e[t],l}function Wr(n){let e,t,l,i,r;return t=new tn({props:{contentWidth:n[12],deltaLeft:n[24],rowHeights:n[19].headerRowHeights,columns:n[22],columnStyle:n[6]}}),t.$on("action",n[72]),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-header-wrapper svelte-1rhm7gj")},m(o,a){z(o,e,a),O(t,e,null),l=!0,i||(r=A(e,"contextmenu",function(){Ne(n[3])&&n[3].apply(this,arguments)}),i=!0)},p(o,a){n=o;const s={};a[0]&4096&&(s.contentWidth=n[12]),a[0]&16777216&&(s.deltaLeft=n[24]),a[0]&524288&&(s.rowHeights=n[19].headerRowHeights),a[0]&4194304&&(s.columns=n[22]),a[0]&64&&(s.columnStyle=n[6]),t.$set(s)},i(o){l||(v(t.$$.fragment,o),l=!0)},o(o){S(t.$$.fragment,o),l=!1},d(o){o&&k(e),D(t),i=!1,r()}}}function Vr(n){let e,t;return e=new ws({props:{overlay:n[4]}}),e.$on("action",n[73]),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&16&&(r.overlay=l[4]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Dg(n){let e,t;return e=new en({props:{row:n[93],col:n[96],columnStyle:n[6],cellStyle:n[7]}}),e.$on("action",n[76]),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&1048576&&(r.row=l[93]),i[0]&2097152&&(r.col=l[96]),i[0]&64&&(r.columnStyle=l[6]),i[0]&128&&(r.cellStyle=l[7]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Ng(n){let e,t,l;var i=n[96].cell;function r(o,a){return{props:{api:o[0],row:o[93],col:o[96],columnStyle:o[6],cellStyle:o[7]}}}return i&&(e=Ie(i,r(n)),e.$on("action",n[75])),{c(){e&&N(e.$$.fragment),t=fe()},m(o,a){e&&O(e,o,a),z(o,t,a),l=!0},p(o,a){if(a[0]&2097152&&i!==(i=o[96].cell)){if(e){ne();const s=e;S(s.$$.fragment,1,0,()=>{D(s,1)}),ie()}i?(e=Ie(i,r(o)),e.$on("action",o[75]),N(e.$$.fragment),v(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}else if(i){const s={};a[0]&1&&(s.api=o[0]),a[0]&1048576&&(s.row=o[93]),a[0]&2097152&&(s.col=o[96]),a[0]&64&&(s.columnStyle=o[6]),a[0]&128&&(s.cellStyle=o[7]),e.$set(s)}},i(o){l||(e&&v(e.$$.fragment,o),l=!0)},o(o){e&&S(e.$$.fragment,o),l=!1},d(o){o&&k(t),e&&D(e,o)}}}function Hg(n){let e,t;return e=new vs({props:{editor:n[17],col:n[96]}}),e.$on("action",n[74]),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&131072&&(r.editor=l[17]),i[0]&2097152&&(r.col=l[96]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Pg(n){let e;return{c(){e=_("div"),g(e,"class","wx-cell wx-collapsed svelte-1rhm7gj")},m(t,l){z(t,e,l)},p:T,i:T,o:T,d(t){t&&k(e)}}}function Yr(n,e){let t,l,i,r,o;const a=[Pg,Hg,Ng,Dg],s=[];function c(u,f){var d;return u[96].collapsed?0:((d=u[17])==null?void 0:d.id)===u[93].id&&u[17].column==u[96].id?1:u[96].cell?2:3}return l=c(e),i=s[l]=a[l](e),{key:n,first:null,c(){t=fe(),i.c(),r=fe(),this.first=t},m(u,f){z(u,t,f),s[l].m(u,f),z(u,r,f),o=!0},p(u,f){e=u;let d=l;l=c(e),l===d?s[l].p(e,f):(ne(),S(s[d],1,1,()=>{s[d]=null}),ie(),i=s[l],i?i.p(e,f):(i=s[l]=a[l](e),i.c()),v(i,1),i.m(r.parentNode,r))},i(u){o||(v(i),o=!0)},o(u){S(i),o=!1},d(u){u&&(k(t),k(r)),s[l].d(u)}}}function Ur(n,e){let t,l=[],i=new Map,r,o,a,s,c,u,f,d=ce(e[21]);const h=p=>p[96].id;for(let p=0;pM[93].id;for(let M=0;M{y=null}),ie()),M[4]?b?(b.p(M,R),R[0]&16&&v(b,1)):(b=Vr(M),b.c(),v(b,1),b.m(r,o)):b&&(ne(),S(b,1,1,()=>{b=null}),ie()),R[0]&1077084641|R[1]&8192&&(q=ce(M[20]),ne(),s=Te(s,R,C,1,M,q,c,a,Ke,Ur,null,Ar),ie()),(!w||R[0]&16384)&&ae(a,"padding-top",M[14]+"px"),(!w||R[0]&32768)&&ae(a,"padding-left",M[15]+"px"),(!w||R[0]&4096)&&ae(r,"width",M[12]+"px"),(!w||R[0]&1024)&&ae(r,"height",M[10]+"px"),M[2]&&M[18].length?$?($.p(M,R),R[0]&262148&&v($,1)):($=Kr(M),$.c(),v($,1),$.m(l,null)):$&&(ne(),S($,1,1,()=>{$=null}),ie()),f&&Ne(f.update)&&R[0]&8704&&f.update.call(null,{scroll:M[39],getWidth:M[81],getHeight:M[82]}),(!w||R[0]&536870912)&&g(t,"style",M[29]),d&&Ne(d.update)&&R[0]&268435456&&d.update.call(null,M[84]),h&&Ne(h.update)&&R[0]&1&&h.update.call(null,{keys:{tab:!0,"shift+tab":!0,arrowup:!0,arrowdown:!0,escape:!0,f2:!0},exec:M[86]}),(!w||R[0]&268435456)&&J(t,"wx-active",M[28]),(!w||R[0]&524290)&&ae(e,"--header-height",(M[1]?M[19].headerHeight:0)+"px"),(!w||R[0]&524292)&&ae(e,"--footer-height",(M[2]?M[19].footerHeight:0)+"px"),(!w||R[0]&2048)&&ae(e,"--split-left-width",M[11]+"px")},i(M){if(!w){v(y),v(b);for(let R=0;Rt(69,s=B)),me(n,re,B=>t(18,a=B)),me(n,E,B=>t(70,u=B)),me(n,W,B=>t(71,f=B)),me(n,le,B=>t(19,c=B)),me(n,be,B=>t(30,d=B)),me(n,Q,B=>t(17,r=B)),me(n,Z,B=>t(68,o=B));let X=0,ue=0,qe,_e=[],xe=[],Bt=0,ut,Je,ft,kt,Lt=!1,wl=!1,gl,At,Ye={row:{start:0,end:0}},yt=0,pl=[],ml=0,bl=0,vl=[],xl=[],_l=[],zt=0,Ft=0,Wt=0,kl,yl,zl,St,Vt=0,jt=0;function Ts(B){t(65,jt=B.target.scrollTop),t(64,Vt=B.target.scrollLeft)}function Bs(B){t(9,X=B.width),t(49,ue=B.height)}function sn(B){B.shiftKey&&B.preventDefault(),dt.focus()}const Ls={dblclick:(B,Me)=>{const Oe={id:B,column:qo(Me,"data-col-id")};h("action",{action:"open-editor",data:Oe})},click:(B,Me)=>{if(M===!1)return;const Oe=R&&Me.ctrlKey,Be=R&&Me.shiftKey;h("action",{action:"select-row",data:{id:B,toggle:Oe,range:Be}})},"toggle-row":B=>{const Me=p.getRow(B);h("action",{action:Me.open?"close-row":"open-row",data:{id:B}})},"ignore-click":()=>!1};function an(B,Me){C&&C(B,Me)}function cn(B,Me,Oe){let Be=Me,et=B;if(xe.length){let Ge=xe.length;for(let Le=B;Le>=0;Le--)xe[Le][Oe].forEach(qt=>{qt.colspan>1&&Le>B-qt.colspan&&Le{t(66,$t[ml+Be]=Oe.offsetHeight,$t),B+=Oe.offsetHeight,Me++}),t(67,Sl=B),t(59,bl=Me)}P&&ol(()=>{As()});let dt;const Fs=B=>{!B&&dt?(dt.focus(),t(28,Ct=!0)):t(28,Ct=null)};let Ct=null;function Ws(B){Re.call(this,n,B)}function Vs(B){Re.call(this,n,B)}function Ys(B){Re.call(this,n,B)}function Us(B){Re.call(this,n,B)}function Ks(B){Re.call(this,n,B)}const Gs=(B,Me)=>an(Me,B.id);function Xs(B){ve[B?"unshift":"push"](()=>{Yt=B,t(26,Yt)})}const Zs=B=>sn(B);function Qs(B){Re.call(this,n,B)}const Js=()=>X,ea=()=>At;function ta(B){ve[B?"unshift":"push"](()=>{dt=B,t(27,dt)})}const la=()=>t(28,Ct=null),na=()=>t(28,Ct=!0),ia=B=>m.exec("hotkey",B);return n.$$set=B=>{"store"in B&&t(45,p=B.store),"api"in B&&t(0,m=B.api),"header"in B&&t(1,y=B.header),"footer"in B&&t(2,b=B.footer),"onHeaderContext"in B&&t(3,q=B.onHeaderContext),"onItemContext"in B&&t(46,C=B.onItemContext),"overlay"in B&&t(4,$=B.overlay),"select"in B&&t(47,M=B.select),"multiselect"in B&&t(48,R=B.multiselect),"rowStyle"in B&&t(5,G=B.rowStyle),"columnStyle"in B&&t(6,L=B.columnStyle),"cellStyle"in B&&t(7,H=B.cellStyle),"autoRowHeight"in B&&t(8,P=B.autoRowHeight)},n.$$.update=()=>{if(n.$$.dirty[0]&524288&&t(16,l=c.rowHeight),n.$$.dirty[1]&6291456|n.$$.dirty[2]&256&&(t(52,ut=!1),t(53,Je=0),u.forEach(B=>{B.hidden||(B.flexgrow&&t(52,ut=ut||B.flexgrow),t(53,Je+=B.width))}),t(12,kt=Je)),n.$$.dirty[0]&512|n.$$.dirty[1]&4456448&&t(56,wl=X&&ue?Je>X:!1),n.$$.dirty[0]&598022|n.$$.dirty[1]&33816576&&(t(13,At=ue-(y?c.headerHeight:0)-(b?c.footerHeight:0)-(wl?w:0)),t(57,gl=Math.ceil(At/l)+1)),n.$$.dirty[0]&344320|n.$$.dirty[1]&201326592|n.$$.dirty[2]&152){let B=0;if(P){let Oe=jt;for(;Oe>0;)Oe-=$t[B]||l,B++;t(14,yt=jt-Oe);for(let Be=Math.max(0,B-Zt-1);Be!B.hidden)),t(11,Bt=0),_e.forEach(B=>{B.fixed=1,B.left=Bt,t(11,Bt+=B.width)}),_e.length&&t(50,_e[_e.length-1].fixed=-1,_e),t(51,xe=u.slice(f.left).filter(B=>!B.hidden)),xe.forEach(B=>{B.fixed=0})),n.$$.dirty[0]&1536|n.$$.dirty[1]&262144&&t(55,Lt=X&&ue?qe>ue:!1),n.$$.dirty[0]&4608|n.$$.dirty[1]&23068672&&(ut&&Je<=X?(t(54,ft=t(12,kt=X)),t(12,kt-=Lt?w:0)):kt{B>et&&(Oe=qt,t(15,zt=t(24,Ft=t(25,Wt=et)))),et=et+un.width,Me>et&&(Be=qt+Bg)});const Ge=cn(Oe,zt,"header"),Le=cn(Oe,zt,"footer");t(24,Ft=Ge.delta),t(61,yl=Ge.index),t(25,Wt=Le.delta),t(62,zl=Le.index),t(60,kl=Oe),t(63,St=Be)}n.$$.dirty[0]&512|n.$$.dirty[1]&1618477056|n.$$.dirty[2]&3&&(ut&&Je>X?t(21,vl=t(22,xl=t(23,_l=[..._e,...xe]))):(t(21,vl=[..._e,...xe.slice(kl,St+1)]),t(22,xl=[..._e,...xe.slice(yl,St+1)]),t(23,_l=[..._e,...xe.slice(zl,St+1)]))),n.$$.dirty[1]&8388608&&t(29,i=ft?`width:${ft}px;`:""),n.$$.dirty[0]&131072&&Fs(r)},[m,y,b,q,$,G,L,H,P,X,qe,Bt,kt,At,yt,zt,l,r,a,c,pl,vl,xl,_l,Ft,Wt,Yt,dt,Ct,i,d,F,re,E,W,le,be,Q,Z,oe,Ts,Bs,sn,Ls,an,p,C,M,R,ue,_e,xe,ut,Je,ft,Lt,wl,gl,Ye,bl,kl,yl,zl,St,Vt,jt,$t,Sl,o,s,u,f,Ws,Vs,Ys,Us,Ks,Gs,Xs,Zs,Qs,Js,ea,ta,la,na,ia]}let xs=class extends K{constructor(e){super(),Y(this,e,Ag,Tg,V,{store:45,api:0,header:1,footer:2,onHeaderContext:3,onItemContext:46,overlay:4,select:47,multiselect:48,rowStyle:5,columnStyle:6,cellStyle:7,autoRowHeight:8},Og,[-1,-1,-1,-1])}get store(){return this.$$.ctx[45]}set store(e){this.$$set({store:e}),x()}get api(){return this.$$.ctx[0]}set api(e){this.$$set({api:e}),x()}get header(){return this.$$.ctx[1]}set header(e){this.$$set({header:e}),x()}get footer(){return this.$$.ctx[2]}set footer(e){this.$$set({footer:e}),x()}get onHeaderContext(){return this.$$.ctx[3]}set onHeaderContext(e){this.$$set({onHeaderContext:e}),x()}get onItemContext(){return this.$$.ctx[46]}set onItemContext(e){this.$$set({onItemContext:e}),x()}get overlay(){return this.$$.ctx[4]}set overlay(e){this.$$set({overlay:e}),x()}get select(){return this.$$.ctx[47]}set select(e){this.$$set({select:e}),x()}get multiselect(){return this.$$.ctx[48]}set multiselect(e){this.$$set({multiselect:e}),x()}get rowStyle(){return this.$$.ctx[5]}set rowStyle(e){this.$$set({rowStyle:e}),x()}get columnStyle(){return this.$$.ctx[6]}set columnStyle(e){this.$$set({columnStyle:e}),x()}get cellStyle(){return this.$$.ctx[7]}set cellStyle(e){this.$$set({cellStyle:e}),x()}get autoRowHeight(){return this.$$.ctx[8]}set autoRowHeight(e){this.$$set({autoRowHeight:e}),x()}};U(xs,{store:{},api:{},header:{},footer:{},onHeaderContext:{},onItemContext:{},overlay:{},select:{},multiselect:{},rowStyle:{},columnStyle:{},cellStyle:{},autoRowHeight:{}},[],[],!0);function Fg(n){let e,t;return e=new xs({props:{store:n[12],api:n[11],header:n[5],onHeaderContext:n[9],onItemContext:n[10],footer:n[6],overlay:n[7],rowStyle:n[0],columnStyle:n[1],cellStyle:n[2],select:n[3],multiselect:n[4],autoRowHeight:n[8]}}),e.$on("action",n[13]),e.$on("data-request",n[27]),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&32&&(r.header=l[5]),i[0]&512&&(r.onHeaderContext=l[9]),i[0]&1024&&(r.onItemContext=l[10]),i[0]&64&&(r.footer=l[6]),i[0]&128&&(r.overlay=l[7]),i[0]&1&&(r.rowStyle=l[0]),i[0]&2&&(r.columnStyle=l[1]),i[0]&4&&(r.cellStyle=l[2]),i[0]&8&&(r.select=l[3]),i[0]&16&&(r.multiselect=l[4]),i[0]&256&&(r.autoRowHeight=l[8]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Wg(n){let e,t;return e=new Xl({props:{words:o1,optional:!0,$$slots:{default:[Fg]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&2047|i[1]&1&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Vg(n,e,t){let l;const i=ze();let{data:r=[]}=e,{columns:o=[]}=e,{rowStyle:a=null}=e,{columnStyle:s=null}=e,{cellStyle:c=null}=e,{selected:u=null}=e,{selectedRows:f=[]}=e,{select:d=!0}=e,{multiselect:h=!1}=e,{header:w=!0}=e,{footer:p=!1}=e,{dynamic:m=null}=e,{editor:y=null}=e,{filter:b=null}=e,{overlay:q=null}=e,{autoRowHeight:C=!1}=e,{sizes:$={}}=e,{split:M={left:0}}=e,{onHeaderContext:R=null}=e,{onItemContext:G=null}=e,{tree:L=!1}=e,{autoConfig:H=!1}=e,{init:P=null}=e;const F=new y1(r1);let re=F.in,E=new s1(i);re.setNext(E);const W=Q=>{re.exec(Q.detail.action,Q.detail.data)},le={getState:F.getState.bind(F),getReactiveState:F.getReactive.bind(F),getStores:()=>({data:F}),exec:re.exec,setNext:Q=>E=E.setNext(Q),intercept:re.intercept.bind(re),on:re.on.bind(re),detach:re.detach.bind(re),getRow:Q=>F.getRow(Q),getColumn:Q=>F.getColumn(Q)};function be(Q){Re.call(this,n,Q)}return n.$$set=Q=>{"data"in Q&&t(16,r=Q.data),"columns"in Q&&t(17,o=Q.columns),"rowStyle"in Q&&t(0,a=Q.rowStyle),"columnStyle"in Q&&t(1,s=Q.columnStyle),"cellStyle"in Q&&t(2,c=Q.cellStyle),"selected"in Q&&t(14,u=Q.selected),"selectedRows"in Q&&t(18,f=Q.selectedRows),"select"in Q&&t(3,d=Q.select),"multiselect"in Q&&t(4,h=Q.multiselect),"header"in Q&&t(5,w=Q.header),"footer"in Q&&t(6,p=Q.footer),"dynamic"in Q&&t(19,m=Q.dynamic),"editor"in Q&&t(20,y=Q.editor),"filter"in Q&&t(21,b=Q.filter),"overlay"in Q&&t(7,q=Q.overlay),"autoRowHeight"in Q&&t(8,C=Q.autoRowHeight),"sizes"in Q&&t(22,$=Q.sizes),"split"in Q&&t(23,M=Q.split),"onHeaderContext"in Q&&t(9,R=Q.onHeaderContext),"onItemContext"in Q&&t(10,G=Q.onItemContext),"tree"in Q&&t(24,L=Q.tree),"autoConfig"in Q&&t(25,H=Q.autoConfig),"init"in Q&&t(15,P=Q.init)},n.$$.update=()=>{if(n.$$.dirty[0]&33751040&&H&&!o.length&&r.length){const Q=r[0];for(let Z in Q)if(Z!="id"&&Z[0]!="$"){let oe={id:Z,header:Z[0].toUpperCase()+Z.substr(1)};typeof H=="object"&&(oe={...oe,...H}),o.push(oe)}}n.$$.dirty[0]&278528&&(f.length?t(14,u=f[0]):u&&f.push(u)),n.$$.dirty[0]&100646912&&(F.init({data:r,editor:y,columns:o,split:M,sizes:$,selected:u,selectedRows:f,dynamic:m,filter:b,tree:L,_skin:l}),P&&(P(le),t(15,P=null)))},t(26,l=de("wx-theme")),[a,s,c,d,h,w,p,q,C,R,G,le,F,W,u,P,r,o,f,m,y,b,$,M,L,H,l,be]}class ln extends K{constructor(e){super(),Y(this,e,Vg,Wg,V,{data:16,columns:17,rowStyle:0,columnStyle:1,cellStyle:2,selected:14,selectedRows:18,select:3,multiselect:4,header:5,footer:6,dynamic:19,editor:20,filter:21,overlay:7,autoRowHeight:8,sizes:22,split:23,onHeaderContext:9,onItemContext:10,tree:24,autoConfig:25,init:15,api:11},null,[-1,-1])}get data(){return this.$$.ctx[16]}set data(e){this.$$set({data:e}),x()}get columns(){return this.$$.ctx[17]}set columns(e){this.$$set({columns:e}),x()}get rowStyle(){return this.$$.ctx[0]}set rowStyle(e){this.$$set({rowStyle:e}),x()}get columnStyle(){return this.$$.ctx[1]}set columnStyle(e){this.$$set({columnStyle:e}),x()}get cellStyle(){return this.$$.ctx[2]}set cellStyle(e){this.$$set({cellStyle:e}),x()}get selected(){return this.$$.ctx[14]}set selected(e){this.$$set({selected:e}),x()}get selectedRows(){return this.$$.ctx[18]}set selectedRows(e){this.$$set({selectedRows:e}),x()}get select(){return this.$$.ctx[3]}set select(e){this.$$set({select:e}),x()}get multiselect(){return this.$$.ctx[4]}set multiselect(e){this.$$set({multiselect:e}),x()}get header(){return this.$$.ctx[5]}set header(e){this.$$set({header:e}),x()}get footer(){return this.$$.ctx[6]}set footer(e){this.$$set({footer:e}),x()}get dynamic(){return this.$$.ctx[19]}set dynamic(e){this.$$set({dynamic:e}),x()}get editor(){return this.$$.ctx[20]}set editor(e){this.$$set({editor:e}),x()}get filter(){return this.$$.ctx[21]}set filter(e){this.$$set({filter:e}),x()}get overlay(){return this.$$.ctx[7]}set overlay(e){this.$$set({overlay:e}),x()}get autoRowHeight(){return this.$$.ctx[8]}set autoRowHeight(e){this.$$set({autoRowHeight:e}),x()}get sizes(){return this.$$.ctx[22]}set sizes(e){this.$$set({sizes:e}),x()}get split(){return this.$$.ctx[23]}set split(e){this.$$set({split:e}),x()}get onHeaderContext(){return this.$$.ctx[9]}set onHeaderContext(e){this.$$set({onHeaderContext:e}),x()}get onItemContext(){return this.$$.ctx[10]}set onItemContext(e){this.$$set({onItemContext:e}),x()}get tree(){return this.$$.ctx[24]}set tree(e){this.$$set({tree:e}),x()}get autoConfig(){return this.$$.ctx[25]}set autoConfig(e){this.$$set({autoConfig:e}),x()}get init(){return this.$$.ctx[15]}set init(e){this.$$set({init:e}),x()}get api(){return this.$$.ctx[11]}}U(ln,{data:{},columns:{},rowStyle:{},columnStyle:{},cellStyle:{},selected:{},selectedRows:{},select:{type:"Boolean"},multiselect:{type:"Boolean"},header:{type:"Boolean"},footer:{type:"Boolean"},dynamic:{},editor:{},filter:{},overlay:{},autoRowHeight:{type:"Boolean"},sizes:{},split:{},onHeaderContext:{},onItemContext:{},tree:{type:"Boolean"},autoConfig:{type:"Boolean"},init:{}},[],["api"],!0);function Yg(n){ee(n,"svelte-fogbc2",".wx-icon.svelte-fogbc2{display:inline-block;vertical-align:middle;margin-right:4px}.wx-hidden.svelte-fogbc2{color:var(--wx-color-font-disabled)}")}function Ug(n){let e,t,l,i,r=n[0].text+"",o;return{c(){e=_("div"),t=_("div"),t.innerHTML=' ',l=I(),i=_("span"),o=te(r),g(t,"class","wx-icon svelte-fogbc2"),J(t,"wx-hidden",!!n[0].hidden)},m(a,s){z(a,e,s),j(e,t),j(e,l),j(e,i),j(i,o)},p(a,[s]){s&1&&J(t,"wx-hidden",!!a[0].hidden),s&1&&r!==(r=a[0].text+"")&&se(o,r)},i:T,o:T,d(a){a&&k(e)}}}function Kg(n,e,t){let{item:l}=e;return n.$$set=i=>{"item"in i&&t(0,l=i.item)},[l]}class _s extends K{constructor(e){super(),Y(this,e,Kg,Ug,V,{item:0},Yg)}get item(){return this.$$.ctx[0]}set item(e){this.$$set({item:e}),x()}}U(_s,{item:{}},[],[],!0);function Gg(n){let e,t,l;function i(o){n[7](o)}let r={options:n[2],at:"point"};return n[0]!==void 0&&(r.handler=n[0]),e=new fl({props:r}),ve.push(()=>We(e,"handler",i)),e.$on("click",n[3]),{c(){N(e.$$.fragment)},m(o,a){O(e,o,a),l=!0},p(o,[a]){const s={};a&4&&(s.options=o[2]),!t&&a&1&&(t=!0,s.handler=o[0],Fe(()=>t=!1)),e.$set(s)},i(o){l||(v(e.$$.fragment,o),l=!0)},o(o){S(e.$$.fragment,o),l=!1},d(o){D(e,o)}}}function Xg(n){for(let e=n.header.length-1;e>=0;e--){const t=n.header[e].text;if(t)return t}return n.id}function Zg(n,e,t){let l,i=T,r=()=>(i(),i=vo(u,h=>t(6,l=h)),u);n.$$.on_destroy.push(()=>i());let{columns:o=null}=e,{api:a}=e,{open:s}=e;Ho("table-header",_s);let c=[],u;function f(h){const w=h.detail.action;w&&a.exec("hide-column",{id:w.id,mode:!w.hidden})}function d(h){s=h,t(0,s)}return n.$$set=h=>{"columns"in h&&t(4,o=h.columns),"api"in h&&t(5,a=h.api),"open"in h&&t(0,s=h.open)},n.$$.update=()=>{if(n.$$.dirty&114&&a){u||r(t(1,u=a.getReactiveState()._columns));const h=o?l.filter(w=>o[w.id]):l;t(2,c=h.map(w=>{const p=Xg(w);return{id:w.id,text:p,type:"table-header",hidden:w.hidden}}))}},[s,u,c,f,o,a,l,d]}class Qg extends K{constructor(e){super(),Y(this,e,Zg,Gg,V,{columns:4,api:5,open:0})}get columns(){return this.$$.ctx[4]}set columns(e){this.$$set({columns:e}),x()}get api(){return this.$$.ctx[5]}set api(e){this.$$set({api:e}),x()}get open(){return this.$$.ctx[0]}set open(e){this.$$set({open:e}),x()}}U(Qg,{columns:{},api:{},open:{}},[],[],!0);function Jg(n){ee(n,"svelte-g241au",".wx-area.svelte-g241au{position:relative;height:100%;width:100%}.tooltip{padding:2px 10px;border-radius:2px;box-shadow:var(--wx-box-shadow);pointer-events:none;position:absolute;z-index:10;font-size:var(--wx-font-size-sm);font-family:var(--wx-font-family);color:var(--wx-color-primary-font);background-color:#1a1e21}")}function Gr(n){let e,t,l,i;const r=[tp,ep],o=[];function a(s,c){return s[0]?0:1}return t=a(n),l=o[t]=r[t](n),{c(){e=_("div"),l.c(),g(e,"class","tooltip"),ae(e,"top",n[4].top+"px"),ae(e,"left",n[4].left+"px")},m(s,c){z(s,e,c),o[t].m(e,null),n[9](e),i=!0},p(s,c){let u=t;t=a(s),t===u?o[t].p(s,c):(ne(),S(o[u],1,1,()=>{o[u]=null}),ie(),l=o[t],l?l.p(s,c):(l=o[t]=r[t](s),l.c()),v(l,1),l.m(e,null)),(!i||c&16)&&ae(e,"top",s[4].top+"px"),(!i||c&16)&&ae(e,"left",s[4].left+"px")},i(s){i||(v(l),i=!0)},o(s){S(l),i=!1},d(s){s&&k(e),o[t].d(),n[9](null)}}}function ep(n){let e=n[4].text+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p(l,i){i&16&&e!==(e=l[4].text+"")&&se(t,e)},i:T,o:T,d(l){l&&k(t)}}}function tp(n){let e,t,l;var i=n[0];function r(o,a){return{props:{data:o[1]}}}return i&&(e=Ie(i,r(n))),{c(){e&&N(e.$$.fragment),t=fe()},m(o,a){e&&O(e,o,a),z(o,t,a),l=!0},p(o,a){if(a&1&&i!==(i=o[0])){if(e){ne();const s=e;S(s.$$.fragment,1,0,()=>{D(s,1)}),ie()}i?(e=Ie(i,r(o)),N(e.$$.fragment),v(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}else if(i){const s={};a&2&&(s.data=o[1]),e.$set(s)}},i(o){l||(e&&v(e.$$.fragment,o),l=!0)},o(o){e&&S(e.$$.fragment,o),l=!1},d(o){o&&k(t),e&&D(e,o)}}}function lp(n){let e,t,l,i,r,o=n[4]&&n[4].col.tooltip!==!1&&(n[0]||n[4].text)&&Gr(n);const a=n[8].default,s=he(a,n,n[7],null);return{c(){e=_("div"),o&&o.c(),t=I(),s&&s.c(),g(e,"class","wx-area svelte-g241au")},m(c,u){z(c,e,u),o&&o.m(e,null),j(e,t),s&&s.m(e,null),n[10](e),l=!0,i||(r=A(e,"mousemove",n[5]),i=!0)},p(c,[u]){c[4]&&c[4].col.tooltip!==!1&&(c[0]||c[4].text)?o?(o.p(c,u),u&17&&v(o,1)):(o=Gr(c),o.c(),v(o,1),o.m(e,t)):o&&(ne(),S(o,1,1,()=>{o=null}),ie()),s&&s.p&&(!l||u&128)&&ge(s,a,c,c[7],l?we(a,c[7],u,null):pe(c[7]),null)},i(c){l||(v(o),v(s,c),l=!0)},o(c){S(o),S(s,c),l=!1},d(c){c&&k(e),o&&o.d(),s&&s.d(c),n[10](null),i=!1,r()}}}const np=300;function ip(n,e,t){let{$$slots:l={},$$scope:i}=e,{content:r=null}=e,{api:o}=e,a,s,c,u,f,d,h;function w(M){for(;M;){if(M.getAttribute){const R=M.getAttribute("data-row-id"),G=M.getAttribute("data-col-id");if(R&&o&&G){const L=o.getColumn(G);return{id:R,col:L,target:M}}}M=M.parentNode}return{id:null,col:null,target:null}}ol(()=>{s&&(c=s.getBoundingClientRect(),c.right>=d.right&&t(4,h.left=d.width-c.width-5,h),c.bottom>=d.bottom&&t(4,h.top-=c.bottom-d.bottom+2,h))});let p;const m=M=>{clearTimeout(p),p=setTimeout(()=>{M()},np)};function y(M){let{id:R,target:G,col:L}=w(M.target);if(t(4,h=null),!R){clearTimeout(p);return}m(()=>{let H="";R&&(t(1,a=b(R)),H=q(L)),u=G.getBoundingClientRect(),d=f.getBoundingClientRect();const P=u.top+u.height-d.top,F=M.clientX-d.left;t(4,h={top:P,left:F,col:L,text:H})})}function b(M){return o.getRow(M)}function q(M){return typeof M.tooltip=="function"?M.tooltip(a):Qe(a,M)||""}function C(M){ve[M?"unshift":"push"](()=>{s=M,t(2,s)})}function $(M){ve[M?"unshift":"push"](()=>{f=M,t(3,f)})}return n.$$set=M=>{"content"in M&&t(0,r=M.content),"api"in M&&t(6,o=M.api),"$$scope"in M&&t(7,i=M.$$scope)},[r,a,s,f,h,y,o,i,l,C,$]}class rp extends K{constructor(e){super(),Y(this,e,ip,lp,V,{content:0,api:6},Jg)}get content(){return this.$$.ctx[0]}set content(e){this.$$set({content:e}),x()}get api(){return this.$$.ctx[6]}set api(e){this.$$set({api:e}),x()}}U(rp,{content:{},api:{}},["default"],[],!0);function op(n){let e,t,l;function i(o){n[5](o)}let r={options:n[1],at:"point"};return n[0]!==void 0&&(r.handler=n[0]),e=new fl({props:r}),ve.push(()=>We(e,"handler",i)),e.$on("click",n[2]),{c(){N(e.$$.fragment)},m(o,a){O(e,o,a),l=!0},p(o,[a]){const s={};!t&&a&1&&(t=!0,s.handler=o[0],Fe(()=>t=!1)),e.$set(s)},i(o){l||(v(e.$$.fragment,o),l=!0)},o(o){S(e.$$.fragment,o),l=!1},d(o){D(e,o)}}}function sp(n,e,t){const l=a;let{api:i}=e;const r=[{id:"add:before",text:"Add before",icon:"wxi-table-row-plus-before"},{id:"add:after",text:"Add after",icon:"wxi-table-row-plus-after"},{id:"copy",text:"Copy",icon:"wxi-content-copy"},{type:"separator"},{id:"delete",text:"Delete",icon:"wxi-delete-outline"}];let o;function a(u,f){i.exec("select-row",{id:f}),o(u)}const s=u=>{const f=u.detail.action;if(f){const d=i.getState().selected;switch(f.id){case"add:before":i.exec("add-row",{row:{},before:d});break;case"add:after":i.exec("add-row",{row:{},after:d});break;case"copy":i.exec("add-row",{row:{...i.getRow(d),id:null},after:d});break;case"delete":i.exec("delete-row",{id:d});break}}};function c(u){o=u,t(0,o)}return n.$$set=u=>{"api"in u&&t(4,i=u.api)},[o,r,s,l,i,c]}class ap extends K{constructor(e){super(),Y(this,e,sp,op,V,{open:3,api:4})}get open(){return this.$$.ctx[3]}get api(){return this.$$.ctx[4]}set api(e){this.$$set({api:e}),x()}}U(ap,{api:{}},[],["open"],!0);function cp(n){ee(n,"svelte-p5qmyn",".wx-material-theme{--wx-table-select-background:#e2e2e2;--wx-table-select-focus-background:#dceaff;--wx-table-select-color:var(--wx-color-font);--wx-table-border:1px solid #dfdfdf;--wx-table-select-border:none;--wx-table-header-border:var(--wx-table-border);--wx-table-header-cell-border:var(--wx-table-border);--wx-table-footer-cell-border:var(--wx-table-border);--wx-table-cell-border:var(--wx-table-border);--wx-header-font-weight:500;--wx-table-header-background:#fafafb;--wx-table-fixed-column-right-border:3px solid #dfdfdf;--wx-table-editor-dropdown-border:none;--wx-table-editor-dropdown-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3)}.wx-material-theme .menu{box-shadow:0px 2px 5px 0px rgba(0, 0, 0, 0.3);outline:none}")}function up(n){let e,t;return e=new Ht({props:{fonts:n[0]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.fonts=l[0]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function fp(n){let e,t;return e=new Ht({props:{fonts:n[0],$$slots:{default:[dp]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.fonts=l[0]),i&8&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function dp(n){let e;const t=n[2].default,l=he(t,n,n[3],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ge(l,t,i,i[3],e?we(t,i[3],r,null):pe(i[3]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function hp(n){let e,t,l,i;const r=[fp,up],o=[];function a(s,c){return s[1]&&s[1].default?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,[c]){t.p(s,c)},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function wp(n,e,t){let{$$slots:l={},$$scope:i}=e;const r=e.$$slots;let{fonts:o=!0}=e;return n.$$set=a=>{t(4,e=Se(Se({},e),je(a))),"fonts"in a&&t(0,o=a.fonts),"$$scope"in a&&t(3,i=a.$$scope)},e=je(e),[o,r,l,i]}let gp=class extends K{constructor(e){super(),Y(this,e,wp,hp,V,{fonts:0},cp)}get fonts(){return this.$$.ctx[0]}set fonts(e){this.$$set({fonts:e}),x()}};U(gp,{fonts:{type:"Boolean"}},["default"],[],!0);function pp(n){ee(n,"svelte-rqgi53",`.wx-willow-theme{--wx-table-select-background:#eaedf5;--wx-table-select-focus-background:#ebedf3;--wx-table-select-color:var(--wx-color-font);--wx-table-border:1px solid #e6e6e6;--wx-table-select-border:inset 3px 0 var(--wx-color-primary);--wx-table-header-border:var(--wx-table-border);--wx-table-header-cell-border:var(--wx-table-border);--wx-table-footer-cell-border:var(--wx-table-border);--wx-table-cell-border:var(--wx-table-border);--wx-header-font-weight:600;--wx-table-header-background:#f2f3f7;--wx-table-fixed-column-right-border:3px solid #e6e6e6;--wx-table-editor-dropdown-border:var(--wx-table-border);--wx-table-editor-dropdown-shadow:0px 4px 20px 0px
+ rgba(44, 47, 60, 0.12)}.wx-willow-theme .menu{box-shadow:0px 4px 20px 0px rgba(44, 47, 60, 0.12);outline:1px solid #e6e6e6}`)}function mp(n){let e,t;return e=new Pt({props:{fonts:n[0]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.fonts=l[0]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function bp(n){let e,t;return e=new Pt({props:{fonts:n[0],$$slots:{default:[vp]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.fonts=l[0]),i&8&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function vp(n){let e;const t=n[2].default,l=he(t,n,n[3],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ge(l,t,i,i[3],e?we(t,i[3],r,null):pe(i[3]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function xp(n){let e,t,l,i;const r=[bp,mp],o=[];function a(s,c){return s[1]&&s[1].default?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,[c]){t.p(s,c)},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function _p(n,e,t){let{$$slots:l={},$$scope:i}=e;const r=e.$$slots;let{fonts:o=!0}=e;return n.$$set=a=>{t(4,e=Se(Se({},e),je(a))),"fonts"in a&&t(0,o=a.fonts),"$$scope"in a&&t(3,i=a.$$scope)},e=je(e),[o,r,l,i]}let ks=class extends K{constructor(e){super(),Y(this,e,_p,xp,V,{fonts:0},pp)}get fonts(){return this.$$.ctx[0]}set fonts(e){this.$$set({fonts:e}),x()}};U(ks,{fonts:{type:"Boolean"}},["default"],[],!0);function kp(n){ee(n,"svelte-1986dk1",".wx-willow-dark-theme{color-scheme:dark;--wx-table-select-background:#384047;--wx-table-select-focus-background:#465059;--wx-table-select-color:var(--wx-color-font);--wx-table-border:var(--wx-border);--wx-table-select-border:inset 3px 0 var(--wx-color-primary);--wx-table-header-border:var(--wx-table-border);--wx-table-header-cell-border:var(--wx-table-border);--wx-table-footer-cell-border:var(--wx-table-border);--wx-table-cell-border:var(--wx-table-border);--wx-header-font-weight:600;--wx-table-header-background:#20262b;--wx-table-fixed-column-right-border:3px solid var(--wx-background-alt);--wx-table-editor-dropdown-border:var(--wx-border);--wx-table-editor-dropdown-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.6)}.wx-willow-dark-theme .menu{box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.6);outline:var(--wx-border)}")}function yp(n){let e,t;return e=new Tt({props:{fonts:n[0]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.fonts=l[0]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function zp(n){let e,t;return e=new Tt({props:{fonts:n[0],$$slots:{default:[Sp]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.fonts=l[0]),i&8&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Sp(n){let e;const t=n[2].default,l=he(t,n,n[3],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&ge(l,t,i,i[3],e?we(t,i[3],r,null):pe(i[3]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function jp(n){let e,t,l,i;const r=[zp,yp],o=[];function a(s,c){return s[1]&&s[1].default?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,[c]){t.p(s,c)},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function $p(n,e,t){let{$$slots:l={},$$scope:i}=e;const r=e.$$slots;let{fonts:o=!0}=e;return n.$$set=a=>{t(4,e=Se(Se({},e),je(a))),"fonts"in a&&t(0,o=a.fonts),"$$scope"in a&&t(3,i=a.$$scope)},e=je(e),[o,r,l,i]}let Cp=class extends K{constructor(e){super(),Y(this,e,$p,jp,V,{fonts:0},kp)}get fonts(){return this.$$.ctx[0]}set fonts(e){this.$$set({fonts:e}),x()}};U(Cp,{fonts:{type:"Boolean"}},["default"],[],!0);function qp(n){ee(n,"svelte-rdqg6c",".wx-breadcrumbs.svelte-rdqg6c{flex:0 0 48px;display:flex;justify-content:flex-start;align-items:center;padding:0 4px;max-width:100%;border-radius:6px 6px 0 0;background-color:var(--wx-background);font-size:16px;overflow:hidden}.wx-refresh-icon.svelte-rdqg6c{margin-right:4px}.wx-item.svelte-rdqg6c{cursor:pointer;font-size:16px;font-weight:300;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wx-item.svelte-rdqg6c:hover{color:var(--wx-color-primary)}")}function Xr(n,e,t){const l=n.slice();return l[10]=e[t],l[12]=t,l}function Mp(n){let e,t;return e=new at({props:{name:"angle-right"}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Zr(n){let e,t,l=(n[10].id=="/"?n[2](n[10].name):n[10].name)+"",i,r,o,a,s=n[12]&&Mp();return{c(){s&&s.c(),e=I(),t=_("div"),i=te(l),r=I(),g(t,"class","wx-item svelte-rdqg6c"),g(t,"data-id",o=n[10].id),g(t,"data-menu-ignore","true")},m(c,u){s&&s.m(c,u),z(c,e,u),z(c,t,u),j(t,i),j(t,r),a=!0},p(c,u){(!a||u&2)&&l!==(l=(c[10].id=="/"?c[2](c[10].name):c[10].name)+"")&&se(i,l),(!a||u&2&&o!==(o=c[10].id))&&g(t,"data-id",o)},i(c){a||(v(s),a=!0)},o(c){S(s),a=!1},d(c){c&&(k(e),k(t)),s&&s.d(c)}}}function Rp(n){let e,t,l,i,r,o,a;l=new at({props:{name:"refresh",spin:!!n[0],click:n[5]}});let s=ce(n[1]),c=[];for(let f=0;fS(c[f],1,1,()=>{c[f]=null});return{c(){e=_("div"),t=_("div"),N(l.$$.fragment),i=I();for(let f=0;ft(8,r=h));function u(h){const w=Ql(h,i);a.exec("set-path",{id:h,panel:o,...w&&{selected:[w]}})}let f;function d(){const h=i[i.length-1].id;t(0,f=!0),a.exec("request-data",{id:h})}return n.$$set=h=>{"panel"in h&&t(6,o=h.panel)},n.$$.update=()=>{n.$$.dirty&320&&t(7,{_files:l,_crumbs:i}=r[o],l,(t(1,i),t(8,r),t(6,o))),n.$$.dirty&128&&l&&t(0,f=null)},[f,i,s,c,u,d,o,l,r]}class nn extends K{constructor(e){super(),Y(this,e,Ip,Rp,V,{panel:6},qp)}get panel(){return this.$$.ctx[6]}set panel(e){this.$$set({panel:e}),x()}}U(nn,{panel:{}},[],[],!0);function Ep(n){ee(n,"svelte-1x13ms8",".wx-name-cell.svelte-1x13ms8{padding:0 4px;display:flex;align-items:center;height:100%;overflow:hidden;flex-shrink:0;text-overflow:clip}i.svelte-1x13ms8,.wx-icon.svelte-1x13ms8{margin-right:10px;display:flex;align-items:center}i.svelte-1x13ms8{font-size:24px;color:var(--wx-color-primary)}.wx-name.svelte-1x13ms8{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}")}function Op(n){let e,t,l=n[0].name+"",i;function r(s,c){return s[5]?Hp:Np}let a=r(n)(n);return{c(){a.c(),e=I(),t=_("span"),i=te(l),g(t,"class","wx-name svelte-1x13ms8")},m(s,c){a.m(s,c),z(s,e,c),z(s,t,c),j(t,i)},p(s,c){a.p(s,c),c&1&&l!==(l=s[0].name+"")&&se(i,l)},d(s){s&&(k(e),k(t)),a.d(s)}}}function Dp(n){let e,t,l;return{c(){e=_("i"),t=I(),l=_("span"),l.textContent=`${n[4]("Back to parent folder")}`,g(e,"class","wxi-arrow-left svelte-1x13ms8"),g(l,"class","wx-name svelte-1x13ms8")},m(i,r){z(i,e,r),z(i,t,r),z(i,l,r)},p:T,d(i){i&&(k(e),k(t),k(l))}}}function Np(n){let e,t;return{c(){e=_("i"),g(e,"class",t="wxi-"+n[0].type+" svelte-1x13ms8")},m(l,i){z(l,e,i)},p(l,i){i&1&&t!==(t="wxi-"+l[0].type+" svelte-1x13ms8")&&g(e,"class",t)},d(l){l&&k(e)}}}function Hp(n){let e,t;return{c(){e=_("img"),g(e,"class","wx-icon svelte-1x13ms8"),g(e,"alt",""),Ae(e.src,t=n[5])||g(e,"src",t),g(e,"height","24px"),g(e,"width","24px")},m(l,i){z(l,e,i)},p:T,d(l){l&&k(e)}}}function Pp(n){let e;function t(r,o){return r[0].id==="/wx-filemanager-parent-link"?Dp:Op}let l=t(n),i=l(n);return{c(){e=_("div"),i.c(),g(e,"class","wx-name-cell svelte-1x13ms8")},m(r,o){z(r,e,o),i.m(e,null)},p(r,o){l===(l=t(r))&&i?i.p(r,o):(i.d(1),i=l(r),i&&(i.c(),i.m(e,null)))},d(r){r&&k(e),i.d()}}}function Tp(n){let e,t;return e=new en({props:{row:n[0],col:n[1],columnStyle:n[2],cellStyle:n[3],$$slots:{default:[Pp]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,[i]){const r={};i&1&&(r.row=l[0]),i&2&&(r.col=l[1]),i&4&&(r.columnStyle=l[2]),i&8&&(r.cellStyle=l[3]),i&129&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Bp(n,e,t){let{row:l}=e,{col:i}=e,{columnStyle:r}=e,{cellStyle:o}=e;const a=de("wx-i18n").getGroup("filemanager"),c=de("filemanager-store").templates.icon(l,"small");return n.$$set=u=>{"row"in u&&t(0,l=u.row),"col"in u&&t(1,i=u.col),"columnStyle"in u&&t(2,r=u.columnStyle),"cellStyle"in u&&t(3,o=u.cellStyle)},[l,i,r,o,a,c]}class ys extends K{constructor(e){super(),Y(this,e,Bp,Tp,V,{row:0,col:1,columnStyle:2,cellStyle:3},Ep)}get row(){return this.$$.ctx[0]}set row(e){this.$$set({row:e}),x()}get col(){return this.$$.ctx[1]}set col(e){this.$$set({col:e}),x()}get columnStyle(){return this.$$.ctx[2]}set columnStyle(e){this.$$set({columnStyle:e}),x()}get cellStyle(){return this.$$.ctx[3]}set cellStyle(e){this.$$set({cellStyle:e}),x()}}U(ys,{row:{},col:{},columnStyle:{},cellStyle:{}},[],[],!0);function Lp(n){ee(n,"svelte-1hnt2dc",".wx-upload-area.svelte-1hnt2dc{height:100%}.wx-upload-area.wx-active.svelte-1hnt2dc{background:var(--wx-color-primary-selected)}")}function Ap(n){let e,t,l,i;const r=n[5].default,o=he(r,n,n[4],null);return{c(){e=_("div"),o&&o.c(),g(e,"class","wx-upload-area svelte-1hnt2dc"),J(e,"wx-active",!1)},m(a,s){z(a,e,s),o&&o.m(e,null),n[6](e),t=!0,l||(i=$e(n[2].droparea(e,{...n[3]})),l=!0)},p(a,[s]){o&&o.p&&(!t||s&16)&&ge(o,r,a,a[4],t?we(r,a[4],s,null):pe(a[4]),null)},i(a){t||(v(o,a),t=!0)},o(a){S(o,a),t=!1},d(a){a&&k(e),o&&o.d(a),n[6](null),l=!1,i()}}}function Fp(n,e,t){let l,{$$slots:i={},$$scope:r}=e;const o=de("filemanager-store"),a=o.getReactiveState().activePanel;me(n,a,d=>t(7,l=d));const s=de(Zl),c={selected:()=>{const d=qo(u,"data-panel");d&&d!=l&&o.exec("set-active-panel",{panel:d*1})},dragEnter:()=>u.classList.toggle("wx-active"),dragLeave:()=>u.classList.toggle("wx-active")};let u;function f(d){ve[d?"unshift":"push"](()=>{u=d,t(0,u)})}return n.$$set=d=>{"$$scope"in d&&t(4,r=d.$$scope)},[u,a,s,c,r,i,f]}class rn extends K{constructor(e){super(),Y(this,e,Fp,Ap,V,{},Lp)}}U(rn,{},["default"],[],!0);function Wp(n){ee(n,"svelte-hmhmys",".wx-wrapper.svelte-hmhmys{display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;box-shadow:var(--wx-fm-box-shadow);border-radius:6px}.wx-list.svelte-hmhmys{height:calc(100% - 50px)}.wx-list.svelte-hmhmys>.wx-upload-area .wx-grid{--wx-table-cell-border:var(--wx-fm-grid-border);--wx-table-header-border:var(--wx-fm-grid-border);--wx-table-header-cell-border:var(--wx-fm-grid-border)}.wx-list.svelte-hmhmys>.wx-upload-area .wx-body .wx-each-cell{border-right:none}.wx-list.svelte-hmhmys>.wx-upload-area .wx-header .wx-cell:first-child .wx-text{padding:0 6px}.wx-list.svelte-hmhmys>.wx-upload-area .wx-table{border-radius:0 0 6px 6px}.wx-list.wx-active.svelte-hmhmys>.wx-upload-area .wx-grid,.wx-list.svelte-hmhmys>.wx-upload-area.wx-active .wx-grid{--wx-table-cell-border:1px solid var(--wx-color-primary)}.wx-list.wx-active.svelte-hmhmys>.wx-upload-area .wx-row{--wx-table-cell-border:var(--wx-fm-grid-border)}.wx-list.svelte-hmhmys>.wx-upload-area.wx-active .wx-row{background:var(--wx-color-primary-selected);--wx-table-cell-border:1px solid var(--wx-color-primary-selected)}.wx-list.svelte-hmhmys>.wx-upload-area{border-right:1px solid transparent}.wx-list.svelte-hmhmys>.wx-upload-area .wx-grid .wx-scroll{overflow-x:hidden}")}function Vp(n){let e,t;return e=new ln({props:{init:n[8],data:n[4],columns:n[2],select:"many",selectedRows:n[3],columnStyle:Up,sizes:{rowHeight:42,headerHeight:42}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&16&&(r.data=l[4]),i&4&&(r.columns=l[2]),i&8&&(r.selectedRows=l[3]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Yp(n){let e,t,l,i,r,o,a,s;return t=new nn({props:{panel:n[0]}}),r=new rn({props:{$$slots:{default:[Vp]},$$scope:{ctx:n}}}),{c(){e=_("div"),N(t.$$.fragment),l=I(),i=_("div"),N(r.$$.fragment),g(i,"data-id","body"),g(i,"class","wx-list svelte-hmhmys"),J(i,"wx-active",n[1]),g(e,"class","wx-wrapper svelte-hmhmys")},m(c,u){z(c,e,u),O(t,e,null),j(e,l),j(e,i),O(r,i,null),o=!0,a||(s=[$e(rt.call(null,i,{click:n[6],dblclick:n[7]})),A(e,"click",n[15]),A(e,"contextmenu",n[16])],a=!0)},p(c,[u]){const f={};u&1&&(f.panel=c[0]),t.$set(f);const d={};u&67108892&&(d.$$scope={dirty:u,ctx:c}),r.$set(d),(!o||u&2)&&J(i,"wx-active",c[1])},i(c){o||(v(t.$$.fragment,c),v(r.$$.fragment,c),o=!0)},o(c){S(t.$$.fragment,c),S(r.$$.fragment,c),o=!1},d(c){c&&k(e),D(t),D(r),a=!1,ye(s)}}}const Up=()=>"wx-each-cell";function Kp(n,e,t){let l,i,r,o,a,s,c,u,{panel:f}=e,{active:d=!1}=e;const h=de("filemanager-store"),w=de("wx-i18n"),p=w.getGroup("filemanager"),m=Dt("%d %M %Y",w.getRaw().calendar);let{panels:y}=h.getReactiveState();me(n,y,re=>t(14,u=re));let b=[{id:"name",header:p("Name"),flexgrow:3,sort:!0,resize:!0,cell:ys},{id:"size",header:p("Size"),width:100,sort:!0,resize:!0,template:re=>typeof re=="number"?Ze(re):""},{id:"date",header:p("Date"),width:120,sort:!0,resize:!0,template:re=>re?m(re):""}],q=null,C=null,$=[];function M(re,E){if(E&&E.target.className.indexOf("grip")!==-1)return;const W=E&&(E.ctrlKey||E.metaKey),le=E&&E.shiftKey;if(re==="/wx-filemanager-parent-link"){if(l.length&&(W||le))return;h.exec("select-file",{type:"navigation"});return}let Q=!(re!=="body")&&E?null:re;!q&&!C?h.exec("select-file",{id:Q,toggle:W,range:le,panel:f}):q=C=null}function R(){o.length>1&&h.exec("set-path",{id:o[o.length-2].id,panel:f,selected:[o[o.length-1].id]})}function G(re){if(re==="/wx-filemanager-parent-link")return R();const E=r.find(W=>W.id===re);E&&(E.type=="folder"?h.exec("set-path",{id:E.id,panel:f}):h.exec("open-file",{id:E.id}))}function L(re){const E=re.key,W=a[i];let le=W?"asc":"desc";W&&W.key===E&&(le=W.order==="asc"?"desc":"asc"),h.exec("sort-files",{key:E,order:le,panel:f,path:i})}function H(re){re.intercept("sort-rows",E=>(q=!0,L(E),!1)),re.intercept("select-row",()=>!1),re.on("resize-column",()=>C=!0),re.intercept("hotkey",()=>!1)}function P(re){Re.call(this,n,re)}function F(re){Re.call(this,n,re)}return n.$$set=re=>{"panel"in re&&t(0,f=re.panel),"active"in re&&t(1,d=re.active)},n.$$.update=()=>{if(n.$$.dirty&16385&&t(12,{selected:l,path:i,_files:r,_crumbs:o,_sorts:a,_selectNavigation:s}=u[f],l,(t(10,i),t(14,u),t(0,f)),(t(9,r),t(14,u),t(0,f)),(t(11,a),t(14,u),t(0,f)),(t(13,s),t(14,u),t(0,f))),n.$$.dirty&3076){const{key:re,order:E}=a[i]||{};t(2,b=b.map(W=>(W.$sort=E&&W.id===re?{order:E}:null,W)))}n.$$.dirty&12288&&(s?t(3,$=["/wx-filemanager-parent-link"]):t(3,$=[...l])),n.$$.dirty&1536&&t(4,c=i!=="/"?[{id:"/wx-filemanager-parent-link",name:p("Back to parent folder")},...r]:r)},[f,d,b,$,c,y,M,G,H,r,i,a,l,s,u,P,F]}let rl=class extends K{constructor(e){super(),Y(this,e,Kp,Yp,V,{panel:0,active:1},Wp)}get panel(){return this.$$.ctx[0]}set panel(e){this.$$set({panel:e}),x()}get active(){return this.$$.ctx[1]}set active(e){this.$$set({active:e}),x()}};U(rl,{panel:{},active:{type:"Boolean"}},[],[],!0);function Gp(n){ee(n,"svelte-sjtopt",".wx-panels.svelte-sjtopt{display:flex;width:100%;max-width:100%;height:100%}.wx-item.svelte-sjtopt{flex-grow:1;flex-shrink:0;width:calc(50% - 10px)}.wx-item.svelte-sjtopt:first-child{margin-right:10px}")}function Xp(n){let e,t,l,i,r,o,a;return l=new rl({props:{panel:0,active:n[0]==0}}),l.$on("click",n[3]),l.$on("contextmenu",n[4]),o=new rl({props:{panel:1,active:n[0]==1}}),o.$on("click",n[5]),o.$on("contextmenu",n[6]),{c(){e=_("div"),t=_("div"),N(l.$$.fragment),i=I(),r=_("div"),N(o.$$.fragment),g(t,"class","wx-item svelte-sjtopt"),g(t,"data-panel",0),g(r,"class","wx-item svelte-sjtopt"),g(r,"data-panel",1),g(e,"class","wx-panels svelte-sjtopt"),g(e,"data-id","body")},m(s,c){z(s,e,c),j(e,t),O(l,t,null),j(e,i),j(e,r),O(o,r,null),a=!0},p(s,[c]){const u={};c&1&&(u.active=s[0]==0),l.$set(u);const f={};c&1&&(f.active=s[0]==1),o.$set(f)},i(s){a||(v(l.$$.fragment,s),v(o.$$.fragment,s),a=!0)},o(s){S(l.$$.fragment,s),S(o.$$.fragment,s),a=!1},d(s){s&&k(e),D(l),D(o)}}}function Zp(n,e,t){let l;const i=de("filemanager-store"),r=i.getReactiveState().activePanel;me(n,r,f=>t(0,l=f));function o(f){i.exec("set-active-panel",{panel:f})}return[l,r,o,()=>o(0),()=>o(0),()=>o(1),()=>o(1)]}class zs extends K{constructor(e){super(),Y(this,e,Zp,Xp,V,{},Gp)}}U(zs,{},[],[],!0);function Qp(n){ee(n,"svelte-9rzii7",".wx-folder.svelte-9rzii7{display:flex;align-items:center;cursor:default;letter-spacing:0.2px;width:100%;height:32px;vertical-align:top;white-space:nowrap;position:relative}.wx-selected.svelte-9rzii7{background-color:var(--wx-fm-select-background)}i.svelte-9rzii7{font-size:22px;margin-right:8px;max-height:100%;color:var(--wx-color-primary)}.wx-toggle.svelte-9rzii7{cursor:pointer;color:var(--wx-icon-color);font-size:24px;margin-right:-2px}.wx-toggle-placeholder.svelte-9rzii7{width:23px;flex-shrink:0}.wx-name.svelte-9rzii7{padding-right:8px}")}function Qr(n,e,t){const l=n.slice();return l[1]=e[t],l}function Jp(n){let e;return{c(){e=_("span"),g(e,"class","wx-toggle-placeholder svelte-9rzii7")},m(t,l){z(t,e,l)},p:T,d(t){t&&k(e)}}}function em(n){let e,t;return{c(){e=_("i"),g(e,"class",t="wx-toggle wxi-"+(n[3]?"angle-down":"angle-right")+" svelte-9rzii7"),g(e,"data-action","toggle")},m(l,i){z(l,e,i)},p(l,i){i&8&&t!==(t="wx-toggle wxi-"+(l[3]?"angle-down":"angle-right")+" svelte-9rzii7")&&g(e,"class",t)},d(l){l&&k(e)}}}function Jr(n){let e=[],t=new Map,l,i,r=ce(n[2]);const o=a=>a[1].id;for(let a=0;a{r=null}),ie())},i(o){i||(v(r),i=!0)},o(o){S(r),i=!1},d(o){o&&(k(t),k(l)),r&&r.d(o)}}}function tm(n){let e,t,l,i,r,o,a,s,c,u,f;function d(m,y){return m[7]?em:Jp}let h=d(n),w=h(n),p=n[3]&&n[2]&&n[2].length&&n[7]&&Jr(n);return{c(){e=_("li"),w.c(),t=I(),l=_("i"),r=I(),o=_("span"),a=te(n[4]),c=I(),p&&p.c(),u=fe(),g(l,"class",i=De(n[0]||"wxi-folder")+" svelte-9rzii7"),g(o,"class","wx-name svelte-9rzii7"),g(e,"data-id",s=n[1].id),g(e,"class","wx-folder svelte-9rzii7"),ae(e,"padding-left",n[6]+"px"),J(e,"wx-selected",n[8]===n[5])},m(m,y){z(m,e,y),w.m(e,null),j(e,t),j(e,l),j(e,r),j(e,o),j(o,a),z(m,c,y),p&&p.m(m,y),z(m,u,y),f=!0},p(m,[y]){h===(h=d(m))&&w?w.p(m,y):(w.d(1),w=h(m),w&&(w.c(),w.m(e,t))),(!f||y&1&&i!==(i=De(m[0]||"wxi-folder")+" svelte-9rzii7"))&&g(l,"class",i),(!f||y&16)&&se(a,m[4]),(!f||y&2&&s!==(s=m[1].id))&&g(e,"data-id",s),(!f||y&64)&&ae(e,"padding-left",m[6]+"px"),(!f||y&288)&&J(e,"wx-selected",m[8]===m[5]),m[3]&&m[2]&&m[2].length&&m[7]?p?(p.p(m,y),y&140&&v(p,1)):(p=Jr(m),p.c(),v(p,1),p.m(u.parentNode,u)):p&&(ne(),S(p,1,1,()=>{p=null}),ie())},i(m){f||(v(p),f=!0)},o(m){S(p),f=!1},d(m){m&&(k(e),k(c),k(u)),w.d(),p&&p.d(m)}}}function lm(n,e,t){let l,i,r;const o=de("filemanager-store"),{panels:a,activePanel:s}=o.getReactiveState();me(n,a,b=>t(12,r=b)),me(n,s,b=>t(11,i=b));let{folderIcon:c=!1}=e,{folder:u={}}=e;const f=de("wx-i18n").getGroup("filemanager");let d,h,w,p,m,y;return n.$$set=b=>{"folderIcon"in b&&t(0,c=b.folderIcon),"folder"in b&&t(1,u=b.folder)},n.$$.update=()=>{n.$$.dirty&6144&&t(8,l=r[i].path),n.$$.dirty&6&&(t(3,d=u.open),t(2,h=u.data),t(7,y=!1),h!=null&&h.find(b=>b.type==="folder")&&t(7,y=!0),t(4,w=u.id=="/"?f(u.name):u.name),t(5,p=u.id),t(6,m=u.$level>1?(u.$level-1)*20:0))},[c,u,h,d,w,p,m,y,l,a,s,i,r]}class on extends K{constructor(e){super(),Y(this,e,lm,tm,V,{folderIcon:0,folder:1},Qp)}get folderIcon(){return this.$$.ctx[0]}set folderIcon(e){this.$$set({folderIcon:e}),x()}get folder(){return this.$$.ctx[1]}set folder(e){this.$$set({folder:e}),x()}}U(on,{folderIcon:{type:"Boolean"},folder:{}},[],[],!0);function nm(n){ee(n,"svelte-1n89qez","ul.svelte-1n89qez{padding:0;margin:0;height:100%;min-width:100%;width:fit-content}")}function lo(n,e,t){const l=n.slice();return l[11]=e[t],l}function no(n){let e,t;return e=new on({props:{folder:n[11]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.folder=l[11]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function io(n,e){let t,l,i,r=e[11].type==="folder"&&no(e);return{key:n,first:null,c(){t=fe(),r&&r.c(),l=fe(),this.first=t},m(o,a){z(o,t,a),r&&r.m(o,a),z(o,l,a),i=!0},p(o,a){e=o,e[11].type==="folder"?r?(r.p(e,a),a&1&&v(r,1)):(r=no(e),r.c(),v(r,1),r.m(l.parentNode,l)):r&&(ne(),S(r,1,1,()=>{r=null}),ie())},i(o){i||(v(r),i=!0)},o(o){S(r),i=!1},d(o){o&&(k(t),k(l)),r&&r.d(o)}}}function im(n){let e,t=[],l=new Map,i,r,o,a=ce(n[0]);const s=c=>c[11].id;for(let c=0;ct(7,o=w)),me(n,u,w=>t(8,a=w)),me(n,f,w=>t(6,r=w));function d(w){s.exec("open-tree-folder",{id:w,mode:!o.byId(w).open})}function h(w){const p=Ql(w,l);s.exec("set-path",{id:w,panel:r,...p&&{selected:[p]}})}return n.$$.update=()=>{n.$$.dirty&320&&({_crumbs:l}=a[r]),n.$$.dirty&128&&t(0,i=o.byId(0).data)},[i,c,u,f,d,h,r,o,a]}class Ss extends K{constructor(e){super(),Y(this,e,rm,im,V,{},nm)}}U(Ss,{},[],[],!0);function om(n){ee(n,"svelte-b97psm",".wx-drive.svelte-b97psm.svelte-b97psm{display:flex;flex-direction:column;justify-content:center;padding:8px}.wx-progress.svelte-b97psm.svelte-b97psm{width:100%;height:8px;border-radius:20px;background-color:var(--wx-button-background);border:none}.wx-progress[value].svelte-b97psm.svelte-b97psm::-webkit-progress-bar{border-radius:20px;background-color:var(--wx-fm-progress-bar-color)}.wx-progress[value].svelte-b97psm.svelte-b97psm::-moz-progress-bar{background-color:var(--wx-color-primary);border-radius:10px}.wx-progress[value].svelte-b97psm.svelte-b97psm::-webkit-progress-value{background-color:var(--wx-color-primary);border-radius:10px}.wx-drive.svelte-b97psm p.svelte-b97psm{margin:20px 0}")}function ro(n){let e,t,l,i,r=Ze(n[0])+"",o,a,s=n[3]("of")+"",c,u,f=Ze(n[1])+"",d,h,w=n[3]("used")+"",p;return{c(){e=_("div"),t=_("progress"),l=I(),i=_("p"),o=te(r),a=I(),c=te(s),u=I(),d=te(f),h=I(),p=te(w),t.value=n[0],g(t,"max",n[1]),g(t,"class","wx-progress svelte-b97psm"),g(i,"class","svelte-b97psm"),g(e,"class","wx-drive svelte-b97psm")},m(m,y){z(m,e,y),j(e,t),j(e,l),j(e,i),j(i,o),j(i,a),j(i,c),j(i,u),j(i,d),j(i,h),j(i,p)},p(m,y){y&1&&(t.value=m[0]),y&2&&g(t,"max",m[1]),y&1&&r!==(r=Ze(m[0])+"")&&se(o,r),y&2&&f!==(f=Ze(m[1])+"")&&se(d,f)},d(m){m&&k(e)}}}function sm(n){let e,t=n[0]&&n[1]&&ro(n);return{c(){t&&t.c(),e=fe()},m(l,i){t&&t.m(l,i),z(l,e,i)},p(l,[i]){l[0]&&l[1]?t?t.p(l,i):(t=ro(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:T,o:T,d(l){l&&k(e),t&&t.d(l)}}}function am(n,e,t){let l;const r=de("filemanager-store").getReactiveState().drive;me(n,r,c=>t(4,l=c));const o=de("wx-i18n").getGroup("filemanager");let a,s;return n.$$.update=()=>{n.$$.dirty&16&&l&&(t(0,a=l.used),t(1,s=l.total))},[a,s,r,o,l]}class js extends K{constructor(e){super(),Y(this,e,am,sm,V,{},om)}}U(js,{},[],[],!0);function cm(n){ee(n,"svelte-a5e4jg",".wx-upload-button.svelte-a5e4jg{width:100%}")}function um(n){let e,t,l=n[1](n[0].text)+"",i,r,o;return{c(){e=_("div"),t=_("span"),i=te(l),g(e,"class","wx-upload-button svelte-a5e4jg")},m(a,s){z(a,e,s),j(e,t),j(t,i),r||(o=A(e,"click",n[2]),r=!0)},p(a,[s]){s&1&&l!==(l=a[1](a[0].text)+"")&&se(i,l)},i:T,o:T,d(a){a&&k(e),r=!1,o()}}}function fm(n,e,t){let{item:l}=e;const i=de("wx-i18n").getGroup("filemanager"),r=de(Zl);function o(){r.open({})}return n.$$set=a=>{"item"in a&&t(0,l=a.item)},[l,i,o]}class $s extends K{constructor(e){super(),Y(this,e,fm,um,V,{item:0},cm)}get item(){return this.$$.ctx[0]}set item(e){this.$$set({item:e}),x()}}U($s,{item:{}},[],[],!0);function dm(n){ee(n,"svelte-180ud5c",".wx-wrapper.svelte-180ud5c{display:flex;flex-direction:column;height:100%;background-color:var(--wx-background);border-radius:6px;box-shadow:var(--wx-fm-box-shadow)}.wx-button.svelte-180ud5c{padding:8px 8px 0}.wx-tree.svelte-180ud5c{padding-top:8px;flex-grow:1;overflow-x:auto}")}function oo(n){let e,t,l;return t=new es({props:{options:n[1],at:"bottom-fit",$$slots:{default:[wm]},$$scope:{ctx:n}}}),t.$on("click",n[3]),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-button svelte-180ud5c")},m(i,r){z(i,e,r),O(t,e,null),l=!0},p(i,r){const o={};r&2&&(o.options=i[1]),r&64&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){l||(v(t.$$.fragment,i),l=!0)},o(i){S(t.$$.fragment,i),l=!1},d(i){i&&k(e),D(t)}}}function hm(n){let e=n[2]("Add New")+"",t;return{c(){t=te(e)},m(l,i){z(l,t,i)},p:T,d(l){l&&k(t)}}}function wm(n){let e,t;return e=new ct({props:{type:"primary block",$$slots:{default:[hm]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&64&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function gm(n){let e,t,l,i,r,o,a,s=!n[0]&&oo(n);return i=new Ss({}),o=new js({}),{c(){e=_("div"),s&&s.c(),t=I(),l=_("div"),N(i.$$.fragment),r=I(),N(o.$$.fragment),g(l,"class","wx-tree svelte-180ud5c"),g(e,"class","wx-wrapper svelte-180ud5c")},m(c,u){z(c,e,u),s&&s.m(e,null),j(e,t),j(e,l),O(i,l,null),j(e,r),O(o,e,null),a=!0},p(c,[u]){c[0]?s&&(ne(),S(s,1,1,()=>{s=null}),ie()):s?(s.p(c,u),u&1&&v(s,1)):(s=oo(c),s.c(),v(s,1),s.m(e,t))},i(c){a||(v(s),v(i.$$.fragment,c),v(o.$$.fragment,c),a=!0)},o(c){S(s),S(i.$$.fragment,c),S(o.$$.fragment,c),a=!1},d(c){c&&k(e),s&&s.d(),D(i),D(o)}}}function pm(n,e,t){let l,{readonly:i}=e,{menuOptions:r}=e;const o=de("wx-i18n").getGroup("filemanager"),{showPrompt:a}=de("filemanager-modals");Ho("upload",$s);function s(c){const{action:u}=c.detail;u&&(u.id==="add-file"?a({item:{type:"file",size:0,date:new Date},add:!0}):u.id==="add-folder"&&a({item:{type:"folder",date:new Date},add:!0}))}return n.$$set=c=>{"readonly"in c&&t(0,i=c.readonly),"menuOptions"in c&&t(4,r=c.menuOptions)},n.$$.update=()=>{n.$$.dirty&16&&t(1,l=r("add").map(c=>(c.text=o(c.text),c)))},[i,l,o,s,r]}class Cs extends K{constructor(e){super(),Y(this,e,pm,gm,V,{readonly:0,menuOptions:4},dm)}get readonly(){return this.$$.ctx[0]}set readonly(e){this.$$set({readonly:e}),x()}get menuOptions(){return this.$$.ctx[4]}set menuOptions(e){this.$$set({menuOptions:e}),x()}}U(Cs,{readonly:{},menuOptions:{}},[],[],!0);function mm(n){ee(n,"svelte-dgknq9",".wx-search-input.svelte-dgknq9{position:relative;width:100%;height:30px}.wx-icon.svelte-dgknq9{display:flex;justify-content:center;align-items:center;position:absolute;top:4px;bottom:4px;right:1px;width:25px;color:#94a1b3;font-size:20px;cursor:pointer}.wx-text.svelte-dgknq9{display:block;width:100%;height:30px;padding-left:12px;border:var(--wx-border);outline:none;background-color:var(--wx-background);border-radius:2px}.wx-text.svelte-dgknq9::placeholder{color:#94a1b3}.wx-text.svelte-dgknq9:focus{border:1px solid var(--wx-color-primary)}")}function bm(n){let e,t,l,i,r,o,a;return{c(){e=_("div"),t=_("i"),i=I(),r=_("input"),g(t,"class",l="wx-icon "+n[2]+" svelte-dgknq9"),g(r,"type","text"),g(r,"class","wx-text svelte-dgknq9"),g(r,"placeholder",n[3]("Search")),g(e,"class","wx-search-input svelte-dgknq9")},m(s,c){z(s,e,c),j(e,t),j(e,i),j(e,r),n[5](r),ke(r,n[0]),o||(a=[A(t,"click",n[4]),A(r,"input",n[6])],o=!0)},p(s,[c]){c&4&&l!==(l="wx-icon "+s[2]+" svelte-dgknq9")&&g(t,"class",l),c&1&&r.value!==s[0]&&ke(r,s[0])},i:T,o:T,d(s){s&&k(e),n[5](null),o=!1,ye(a)}}}function vm(n,e,t){let l,{value:i=""}=e;const r=ze(),o=de("wx-i18n").getGroup("filemanager");let a;function s(){t(0,i=""),a.focus(),r("search",{value:i})}function c(f){ve[f?"unshift":"push"](()=>{a=f,t(1,a)})}function u(){i=this.value,t(0,i)}return n.$$set=f=>{"value"in f&&t(0,i=f.value)},n.$$.update=()=>{n.$$.dirty&1&&t(2,l=i!==""?"wxi-close":"wxi-search"),n.$$.dirty&1&&r("search",{value:i})},[i,a,l,o,s,c,u]}class qs extends K{constructor(e){super(),Y(this,e,vm,bm,V,{value:0},mm)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),x()}}U(qs,{value:{}},[],[],!0);function xm(n){ee(n,"svelte-18hr1a3",`.wx-toolbar.svelte-18hr1a3.svelte-18hr1a3{flex:0 0 var(--wx-fm-toolbar-height);display:flex;justify-content:space-between;align-items:center;padding:0 12px;max-width:100%;background-color:var(--wx-background);box-shadow:var(--wx-fm-box-shadow);gap:8px}.wx-left.svelte-18hr1a3.svelte-18hr1a3,.wx-right.svelte-18hr1a3.svelte-18hr1a3{display:flex}.wx-left.svelte-18hr1a3.svelte-18hr1a3{align-items:center;width:35%;justify-content:space-between}.wx-left-narrow.svelte-18hr1a3.svelte-18hr1a3{width:70%}.wx-name.svelte-18hr1a3.svelte-18hr1a3{margin-right:20px;font-size:16px;font-weight:var(--wx-font-weight-md)}.wx-sidebar-icon.svelte-18hr1a3.svelte-18hr1a3{margin-right:20px}.wx-preview-icon.svelte-18hr1a3.svelte-18hr1a3{display:flex;justify-content:center;align-items:center;margin-right:20px;--wx-button-icon-size:22px;--wx-button-line-height:25px;--wx-button-padding:4px 10px;--wx-button-border-radius:6px}.wx-preview-icon.svelte-18hr1a3 i.svelte-18hr1a3{position:relative;display:inline-block;vertical-align:top;font-size:var(--wx-button-icon-size);line-height:1;height:var(--wx-button-line-height)}.wx-preview-icon.svelte-18hr1a3 i.svelte-18hr1a3:before{display:block;position:relative;top:50%;transform:translateY(-50%);color:var(--wx-fm-button-font-color)}.wx-modes.svelte-18hr1a3.svelte-18hr1a3{--wx-button-font-color:var(--wx-fm-button-font-color);--wx-segmented-padding:1.5px;--wx-segmented-background-hover:linear-gradient(
+ rgba(0, 0, 0, 0.1) 0%,
+ rgba(0, 0, 0, 0.1) 100%
+ );--wx-button-icon-size:22px;--wx-segmented-border-radius:6px;--wx-segmented-border:none}`)}function _m(n){let e,t,l;return t=new at({props:{click:n[14],name:"subtask"}}),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-sidebar-icon svelte-18hr1a3"),g(e,"data-id","toggle-tree")},m(i,r){z(i,e,r),O(t,e,null),l=!0},p:T,i(i){l||(v(t.$$.fragment,i),l=!0)},o(i){S(t.$$.fragment,i),l=!1},d(i){i&&k(e),D(t)}}}function km(n){let e;return{c(){e=_("div"),e.textContent=`${n[9]("Files")}`,g(e,"class","wx-name svelte-18hr1a3")},m(t,l){z(t,e,l)},p:T,i:T,o:T,d(t){t&&k(e)}}}function so(n){let e,t,l;return t=new Ul({props:{click:n[12],value:n[3],$$slots:{default:[ym]},$$scope:{ctx:n}}}),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-preview-icon svelte-18hr1a3")},m(i,r){z(i,e,r),O(t,e,null),l=!0},p(i,r){const o={};r&8&&(o.value=i[3]),r&131072&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){l||(v(t.$$.fragment,i),l=!0)},o(i){S(t.$$.fragment,i),l=!1},d(i){i&&k(e),D(t)}}}function ym(n){let e;return{c(){e=_("i"),g(e,"class","wxi-eye svelte-18hr1a3")},m(t,l){z(t,e,l)},p:T,d(t){t&&k(e)}}}function zm(n){let e,t,l,i,r,o,a,s,c,u,f,d,h,w;const p=[km,_m],m=[];function y($,M){return $[0]?$[1]=="panels"||$[1]=="search"?-1:1:0}~(l=y(n))&&(i=m[l]=p[l](n)),o=new qs({props:{value:n[4]}}),o.$on("search",n[13]);let b=!n[0]&&so(n);function q($){n[15]($)}let C={options:n[10]};return n[2]!==void 0&&(C.value=n[2]),d=new Ko({props:C}),ve.push(()=>We(d,"value",q)),d.$on("select",n[11]),{c(){e=_("div"),t=_("div"),i&&i.c(),r=I(),N(o.$$.fragment),s=I(),c=_("div"),b&&b.c(),u=I(),f=_("div"),N(d.$$.fragment),g(t,"class",a="wx-left "+(n[0]?"wx-left-narrow":"")+" svelte-18hr1a3"),g(f,"class","wx-modes svelte-18hr1a3"),g(c,"class","wx-right svelte-18hr1a3"),g(e,"class","wx-toolbar svelte-18hr1a3")},m($,M){z($,e,M),j(e,t),~l&&m[l].m(t,null),j(t,r),O(o,t,null),j(e,s),j(e,c),b&&b.m(c,null),j(c,u),j(c,f),O(d,f,null),w=!0},p($,[M]){let R=l;l=y($),l===R?~l&&m[l].p($,M):(i&&(ne(),S(m[R],1,1,()=>{m[R]=null}),ie()),~l?(i=m[l],i?i.p($,M):(i=m[l]=p[l]($),i.c()),v(i,1),i.m(t,r)):i=null);const G={};M&16&&(G.value=$[4]),o.$set(G),(!w||M&1&&a!==(a="wx-left "+($[0]?"wx-left-narrow":"")+" svelte-18hr1a3"))&&g(t,"class",a),$[0]?b&&(ne(),S(b,1,1,()=>{b=null}),ie()):b?(b.p($,M),M&1&&v(b,1)):(b=so($),b.c(),v(b,1),b.m(c,u));const L={};!h&&M&4&&(h=!0,L.value=$[2],Fe(()=>h=!1)),d.$set(L)},i($){w||(v(i),v(o.$$.fragment,$),v(b),v(d.$$.fragment,$),w=!0)},o($){S(i),S(o.$$.fragment,$),S(b),S(d.$$.fragment,$),w=!1},d($){$&&k(e),~l&&m[l].d(),D(o),b&&b.d(),D(d)}}}function Sm(n,e,t){let l,i,r,o,{narrowMode:a=!1}=e;const s=de("filemanager-store"),{mode:c,preview:u,search:f}=s.getReactiveState();me(n,c,C=>t(1,r=C)),me(n,u,C=>t(3,i=C)),me(n,f,C=>t(4,o=C));const d=ze(),h=de("wx-i18n").getGroup("filemanager"),w=[{icon:"wxi-view-sequential",id:"table"},{icon:"wxi-view-grid",id:"cards"},{icon:"wxi-view-column",id:"panels"}];function p(C){const $=C.detail.id;s.exec("set-mode",{mode:$}),r!==$&&t(2,l=r)}function m(C){C.preventDefault(),s.exec("show-preview",{mode:!i})}function y(C){s.exec("filter-files",{text:C.detail.value})}const b=()=>d("show-tree");function q(C){l=C,t(2,l),t(1,r)}return n.$$set=C=>{"narrowMode"in C&&t(0,a=C.narrowMode)},n.$$.update=()=>{n.$$.dirty&2&&t(2,l=r)},[a,r,l,i,o,c,u,f,d,h,w,p,m,y,b,q]}class Ms extends K{constructor(e){super(),Y(this,e,Sm,zm,V,{narrowMode:0},xm)}get narrowMode(){return this.$$.ctx[0]}set narrowMode(e){this.$$set({narrowMode:e}),x()}}U(Ms,{narrowMode:{type:"Boolean"}},[],[],!0);function jm(n){ee(n,"svelte-7wdgi9",".wx-wrapper.svelte-7wdgi9{display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;flex-shrink:1}.wx-wrapper.svelte-7wdgi9>.wx-upload-area{height:calc(100% - 48px)}.wx-wrapper.svelte-7wdgi9>.wx-upload-area{overflow-y:auto;border:1px solid transparent;border-radius:0 0 6px 6px}.wx-wrapper.svelte-7wdgi9>.wx-upload-area.wx-active{border:1px solid var(--wx-color-primary)}")}function $m(n){let e,t;return e=new Jl({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Cm(n){let e,t,l,i,r;return t=new nn({props:{panel:n[0]}}),i=new rn({props:{$$slots:{default:[$m]},$$scope:{ctx:n}}}),{c(){e=_("div"),N(t.$$.fragment),l=I(),N(i.$$.fragment),g(e,"class","wx-wrapper svelte-7wdgi9")},m(o,a){z(o,e,a),O(t,e,null),j(e,l),O(i,e,null),r=!0},p(o,[a]){const s={};a&1&&(s.panel=o[0]),t.$set(s);const c={};a&8&&(c.$$scope={dirty:a,ctx:o}),i.$set(c)},i(o){r||(v(t.$$.fragment,o),v(i.$$.fragment,o),r=!0)},o(o){S(t.$$.fragment,o),S(i.$$.fragment,o),r=!1},d(o){o&&k(e),D(t),D(i)}}}function qm(n,e,t){let l;const i=de("filemanager-store"),{activePanel:r}=i.getReactiveState();return me(n,r,o=>t(0,l=o)),[l,r]}class Rs extends K{constructor(e){super(),Y(this,e,qm,Cm,V,{},jm)}}U(Rs,{},[],[],!0);function Mm(n){ee(n,"svelte-qsqalh",'.wx-flex.svelte-qsqalh{display:flex;width:100%}.wx-filemanager.svelte-qsqalh{max-width:100vw;max-height:100vh;overflow:hidden;background-color:var(--wx-fm-background);flex-direction:column;height:100%}.wx-content.svelte-qsqalh{flex-grow:1;display:flex;flex-shrink:0}.wx-content-item-fit.svelte-qsqalh{width:100%;padding:0 10px 10px}.wx-content-item.svelte-qsqalh{width:67%;padding:0 10px 10px}.wx-content-wrapper.svelte-qsqalh{margin-top:10px;max-width:100%;max-height:100%;position:relative}.wx-info.svelte-qsqalh{width:38%}.wx-sidebar.svelte-qsqalh{flex:0 0 auto;width:238px;padding:0 10px 10px;height:100%}.wx-sidebar-narrow.svelte-qsqalh{position:absolute !important;z-index:3;left:-300px;transition-duration:0.6s}.wx-sidebar-visible.svelte-qsqalh{left:0}.wx-info-narrow.svelte-qsqalh{width:100%;height:100%;padding-top:10px}.wx-filemanager.svelte-qsqalh>div[data-menu-ignore="true"]{height:calc(100% - var(--wx-fm-toolbar-height));width:100%}.wx-filemanager.svelte-qsqalh>div[data-menu-ignore="true"]>div[data-menu-ignore="true"]{height:100%;width:100%;display:flex}')}function Rm(n){let e,t,l,i;return e=new Ms({props:{narrowMode:n[5]}}),e.$on("show-tree",n[11]),l=new fl({props:{dataKey:"id",at:"point",options:n[7],resolver:n[19],$$slots:{default:[Lm]},$$scope:{ctx:n}}}),l.$on("click",n[20]),{c(){N(e.$$.fragment),t=I(),N(l.$$.fragment)},m(r,o){O(e,r,o),z(r,t,o),O(l,r,o),i=!0},p(r,o){const a={};o[0]&32&&(a.narrowMode=r[5]),e.$set(a);const s={};o[0]&128&&(s.options=r[7]),o[0]&1023|o[1]&4&&(s.$$scope={dirty:o,ctx:r}),l.$set(s)},i(r){i||(v(e.$$.fragment,r),v(l.$$.fragment,r),i=!0)},o(r){S(e.$$.fragment,r),S(l.$$.fragment,r),i=!1},d(r){r&&k(t),D(e,r),D(l,r)}}}function Im(n){let e,t,l;return t=new dl({props:{narrowMode:n[5],extraInfo:n[2]}}),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-info-narrow svelte-qsqalh")},m(i,r){z(i,e,r),O(t,e,null),l=!0},p(i,r){const o={};r[0]&32&&(o.narrowMode=i[5]),r[0]&4&&(o.extraInfo=i[2]),t.$set(o)},i(i){l||(v(t.$$.fragment,i),l=!0)},o(i){S(t.$$.fragment,i),l=!1},d(i){i&&k(e),D(t)}}}function Em(n){let e,t,l,i,r,o,a;const s=[Nm,Dm],c=[];function u(d,h){return d[9]==="panels"?0:1}t=u(n),l=c[t]=s[t](n);let f=n[8]&&ao(n);return{c(){e=_("div"),l.c(),r=I(),f&&f.c(),o=fe(),g(e,"class",i="wx-content-item"+(n[8]?"":"-fit")+" svelte-qsqalh")},m(d,h){z(d,e,h),c[t].m(e,null),z(d,r,h),f&&f.m(d,h),z(d,o,h),a=!0},p(d,h){let w=t;t=u(d),t!==w&&(ne(),S(c[w],1,1,()=>{c[w]=null}),ie(),l=c[t],l||(l=c[t]=s[t](d),l.c()),v(l,1),l.m(e,null)),(!a||h[0]&256&&i!==(i="wx-content-item"+(d[8]?"":"-fit")+" svelte-qsqalh"))&&g(e,"class",i),d[8]?f?(f.p(d,h),h[0]&256&&v(f,1)):(f=ao(d),f.c(),v(f,1),f.m(o.parentNode,o)):f&&(ne(),S(f,1,1,()=>{f=null}),ie())},i(d){a||(v(l),v(f),a=!0)},o(d){S(l),S(f),a=!1},d(d){d&&(k(e),k(r),k(o)),c[t].d(),f&&f.d(d)}}}function Om(n){let e,t,l,i,r,o,a,s,c,u,f,d,h;t=new Cs({props:{readonly:n[0],menuOptions:n[1]}});const w=[Pm,Hm],p=[];function m(b,q){return b[9]==="table"?0:1}a=m(n),s=p[a]=w[a](n);let y=n[8]&&co(n);return{c(){e=_("div"),N(t.$$.fragment),i=I(),r=_("div"),o=_("div"),s.c(),u=I(),y&&y.c(),g(e,"class","wx-sidebar svelte-qsqalh"),Ue(()=>n[25].call(e)),J(e,"wx-sidebar-narrow",n[5]),J(e,"wx-sidebar-visible",n[6]),g(o,"class",c="wx-content-item"+(n[8]?"":"-fit")+" svelte-qsqalh"),g(o,"data-id","body"),g(r,"class","wx-content svelte-qsqalh"),ae(r,"width","calc(100% - "+n[4]+"px - 10px)")},m(b,q){z(b,e,q),O(t,e,null),l=wa(e,n[25].bind(e)),z(b,i,q),z(b,r,q),j(r,o),p[a].m(o,null),j(r,u),y&&y.m(r,null),f=!0,d||(h=$e(ot.call(null,e,n[12])),d=!0)},p(b,q){const C={};q[0]&1&&(C.readonly=b[0]),q[0]&2&&(C.menuOptions=b[1]),t.$set(C),(!f||q[0]&32)&&J(e,"wx-sidebar-narrow",b[5]),(!f||q[0]&64)&&J(e,"wx-sidebar-visible",b[6]);let $=a;a=m(b),a===$?p[a].p(b,q):(ne(),S(p[$],1,1,()=>{p[$]=null}),ie(),s=p[a],s?s.p(b,q):(s=p[a]=w[a](b),s.c()),v(s,1),s.m(o,null)),(!f||q[0]&256&&c!==(c="wx-content-item"+(b[8]?"":"-fit")+" svelte-qsqalh"))&&g(o,"class",c),b[8]?y?(y.p(b,q),q[0]&256&&v(y,1)):(y=co(b),y.c(),v(y,1),y.m(r,null)):y&&(ne(),S(y,1,1,()=>{y=null}),ie()),(!f||q[0]&16)&&ae(r,"width","calc(100% - "+b[4]+"px - 10px)")},i(b){f||(v(t.$$.fragment,b),v(s),v(y),f=!0)},o(b){S(t.$$.fragment,b),S(s),S(y),f=!1},d(b){b&&(k(e),k(i),k(r)),D(t),l(),p[a].d(),y&&y.d(),d=!1,h()}}}function Dm(n){let e,t;return e=new os({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Nm(n){let e,t;return e=new zs({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function ao(n){let e,t,l;return t=new dl({props:{extraInfo:n[2]}}),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-info svelte-qsqalh")},m(i,r){z(i,e,r),O(t,e,null),l=!0},p(i,r){const o={};r[0]&4&&(o.extraInfo=i[2]),t.$set(o)},i(i){l||(v(t.$$.fragment,i),l=!0)},o(i){S(t.$$.fragment,i),l=!1},d(i){i&&k(e),D(t)}}}function Hm(n){let e,t;return e=new Rs({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p:T,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Pm(n){let e,t;return e=new rl({props:{panel:n[3]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&8&&(r.panel=l[3]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function co(n){let e,t,l;return t=new dl({props:{extraInfo:n[2]}}),{c(){e=_("div"),N(t.$$.fragment),g(e,"class","wx-info svelte-qsqalh")},m(i,r){z(i,e,r),O(t,e,null),l=!0},p(i,r){const o={};r[0]&4&&(o.extraInfo=i[2]),t.$set(o)},i(i){l||(v(t.$$.fragment,i),l=!0)},o(i){S(t.$$.fragment,i),l=!1},d(i){i&&k(e),D(t)}}}function Tm(n){let e,t,l,i;const r=[Om,Em],o=[];function a(s,c){return s[9]!=="panels"&&s[9]!=="search"?0:1}return t=a(n),l=o[t]=r[t](n),{c(){e=_("div"),l.c(),g(e,"class","wx-content-wrapper wx-flex svelte-qsqalh")},m(s,c){z(s,e,c),o[t].m(e,null),i=!0},p(s,c){let u=t;t=a(s),t===u?o[t].p(s,c):(ne(),S(o[u],1,1,()=>{o[u]=null}),ie(),l=o[t],l?l.p(s,c):(l=o[t]=r[t](s),l.c()),v(l,1),l.m(e,null))},i(s){i||(v(l),i=!0)},o(s){S(l),i=!1},d(s){s&&k(e),o[t].d()}}}function Bm(n){let e,t;return e=new ts({props:{apiOnly:!0,uploadURL:n[23],$$slots:{default:[Tm]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&895|i[1]&4&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Lm(n){let e,t;return e=new ul({props:{dataKey:"actionId",options:n[7],resolver:n[19],$$slots:{default:[Bm]},$$scope:{ctx:n}}}),e.$on("click",n[20]),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i[0]&128&&(r.options=l[7]),i[0]&895|i[1]&4&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Am(n){let e,t,l,i,r,o,a;const s=[Im,Rm],c=[];function u(f,d){return f[5]&&f[8]?0:1}return t=u(n),l=c[t]=s[t](n),{c(){e=_("div"),l.c(),g(e,"class","wx-filemanager wx-flex svelte-qsqalh")},m(f,d){z(f,e,d),c[t].m(e,null),r=!0,o||(a=[$e(n[10].call(null,e)),$e(i=_w.call(null,e,{api:n[13],menuOptions:n[0]?n[18]:n[1],performAction:n[21],getPanel:n[22]}))],o=!0)},p(f,d){let h=t;t=u(f),t===h?c[t].p(f,d):(ne(),S(c[h],1,1,()=>{c[h]=null}),ie(),l=c[t],l?l.p(f,d):(l=c[t]=s[t](f),l.c()),v(l,1),l.m(e,null)),i&&Ne(i.update)&&d[0]&3&&i.update.call(null,{api:f[13],menuOptions:f[0]?f[18]:f[1],performAction:f[21],getPanel:f[22]})},i(f){r||(v(l),r=!0)},o(f){S(l),r=!1},d(f){f&&k(e),c[t].d(),o=!1,ye(a)}}}function Fm(n,e,t){let l,i,r,o,a,s,{readonly:c=!1}=e,{menuOptions:u}=e,{extraInfo:f}=e,d,h,w=!1;function p(oe){new ResizeObserver(ue=>{t(5,h=ue[0].borderBoxSize[0].inlineSize<768)}).observe(oe)}function m(){t(6,w=!w)}function y(oe){h&&Mo(oe)!=="toggle-tree"&&t(6,w=!1)}const b=de("filemanager-store"),{showPrompt:q,showConfirm:C}=de("filemanager-modals"),$=de("wx-i18n").getGroup("filemanager"),{mode:M,preview:R,activePanel:G,panels:L}=b.getReactiveState();me(n,M,oe=>t(9,s=oe)),me(n,R,oe=>t(8,a=oe)),me(n,G,oe=>t(3,r=oe)),me(n,L,oe=>t(24,o=oe));let H=[];const P={icon:"wxi-eye",text:"Preview",id:"preview"};function F(oe){let X=h?[P]:[];return oe==="file"&&(X=[...X,...u().filter(ue=>ue.id==="download")]),X}function re(oe,X){const ue=oe?b.getFile(oe):null,qe=X.target.closest(".tree-item.folder");let _e;if(c&&ue)_e=F(ue==null?void 0:ue.type);else{switch(oe){case"body":_e=u(oe);break;default:if(ue)if(!qe&&l.length>1)_e=h?[P,...u("multiselect")]:u("multiselect");else if(oe==="/")_e=u("folder",ue).filter(xe=>xe.id==="paste");else{const xe=u(ue.type,ue);xe&&(_e=h?[P,...xe]:xe)}}s==="search"&&(_e=_e==null?void 0:_e.filter(xe=>xe.id!=="paste"))}if(ue!=null&&ue.id&&(!l.length||!l.some(xe=>xe===ue.id))&&!qe&&b.exec("select-file",{id:ue.id}),_e!=null&&_e.length)return _e.forEach(xe=>{qe&&(xe.hotkey=""),xe.text&&(xe.text=$(xe.text)),xe.hotkey&&(xe.subtext=xe.hotkey)}),t(7,H=_e),ue||{}}let E=null;function W(oe){const{action:X,context:ue}=oe.detail;X&&le(X.id,ue,!X.hotkey)}function le(oe,X,ue){const qe=ue?[X.id]:l;switch(oe){case"download":b.exec("download-file",{id:X.id});break;case"copy":case"move":E={action:oe,ids:qe};break;case"paste":E&&(b.exec(E.action==="copy"?"copy-files":"move-files",{ids:E.ids,target:(X==null?void 0:X.type)==="folder"?X.id:i}),E=null);break;case"rename":q({item:X});break;case"delete":C({selected:qe});break;case"preview":b.exec("show-preview",{mode:!a});break}}function be(){return o[r]}async function Q(oe){await _a();const{name:X,size:ue}=oe.file;b.exec("create-file",{file:{name:X,size:ue,date:new Date,file:oe.file},parent:i})}function Z(){d=this.clientWidth,t(4,d)}return n.$$set=oe=>{"readonly"in oe&&t(0,c=oe.readonly),"menuOptions"in oe&&t(1,u=oe.menuOptions),"extraInfo"in oe&&t(2,f=oe.extraInfo)},n.$$.update=()=>{n.$$.dirty[0]&16777224&&({selected:l,path:i}=o[r])},[c,u,f,r,d,h,w,H,a,s,p,m,y,b,M,R,G,L,F,re,W,le,be,Q,o,Z]}class Is extends K{constructor(e){super(),Y(this,e,Fm,Am,V,{readonly:0,menuOptions:1,extraInfo:2},Mm,[-1,-1])}get readonly(){return this.$$.ctx[0]}set readonly(e){this.$$set({readonly:e}),x()}get menuOptions(){return this.$$.ctx[1]}set menuOptions(e){this.$$set({menuOptions:e}),x()}get extraInfo(){return this.$$.ctx[2]}set extraInfo(e){this.$$set({extraInfo:e}),x()}}U(Is,{readonly:{type:"Boolean"},menuOptions:{},extraInfo:{}},[],[],!0);const Wm={filemanager:{"My files":"My files","Add New":"Add New",Ok:"Ok",Cancel:"Cancel","Delete files":"Delete Files",Files:"Files",Folder:"Folder","Back to parent folder":"Back to parent folder",Information:"Information",Found:"Found","Are you sure you want to delete these items:":"Are you sure you want to delete these items:","Enter file name":"Enter file name","Enter folder name":"Enter folder name",Result:"Result",Search:"Search","Search results in":"Search results in","Add new file":"Add new file","Add new folder":"Add new folder","Upload file":"Upload file",Size:"Size",Name:"Name",Type:"Type",Date:"Date",Rename:"Rename",Cut:"Cut",Delete:"Delete",Copy:"Copy",Paste:"Paste",Download:"Download",Count:"Count",folder:"folder",folders:"folders",file:"file",files:"files","Multiple files":"Multiple files",multiple:"multiple",Preview:"Preview",of:"of",used:"used","Select file or folder to view details":"Select file or folder to view details","Looks like nothing is here":"Looks like nothing is here","Unknown file":"Unknown file","A miniature file preview":"A miniature file preview"}};new Date().valueOf();class Vm{constructor(e){this._nextHandler=null,this._dispatch=e,this.exec=this.exec.bind(this)}async exec(e,t){return this._dispatch(e,t),this._nextHandler&&await this._nextHandler.exec(e,t),t}setNext(e){return this._nextHandler=e}}function Ym(n){ee(n,"svelte-1jf7870",".wx-list.svelte-1jf7870.svelte-1jf7870{text-align:left;padding-left:20px;max-height:300px;overflow:auto}.wx-list.svelte-1jf7870 li.svelte-1jf7870{font-weight:var(--wx-font-weight-md)}")}function uo(n,e,t){const l=n.slice();return l[19]=e[t],l}function Um(n){let e;const t=n[13].default,l=he(t,n,n[16],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&65536)&&ge(l,t,i,i[16],e?we(t,i[16],r,null):pe(i[16]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function fo(n){let e,t;return e=new cl({props:{title:n[4](`Enter ${n[0].item.type} name`),ok:n[7],cancel:n[8],$$slots:{default:[Km]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.title=l[4](`Enter ${l[0].item.type} name`)),i&65546&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Km(n){let e,t,l;function i(o){n[14](o)}let r={error:n[1],select:!0,focus:!0};return n[3]!==void 0&&(r.value=n[3]),e=new Nt({props:r}),ve.push(()=>We(e,"value",i)),{c(){N(e.$$.fragment)},m(o,a){O(e,o,a),l=!0},p(o,a){const s={};a&2&&(s.error=o[1]),!t&&a&8&&(t=!0,s.value=o[3],Fe(()=>t=!1)),e.$set(s)},i(o){l||(v(e.$$.fragment,o),l=!0)},o(o){S(e.$$.fragment,o),l=!1},d(o){D(e,o)}}}function ho(n){let e,t;return e=new cl({props:{title:n[4]("Are you sure you want to delete these items:"),ok:n[9],cancel:n[15],$$slots:{default:[Gm]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.cancel=l[15]),i&65540&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function wo(n){let e,t=ce(n[2].selected),l=[];for(let i=0;i{o=null}),ie()),s[2]?a?(a.p(s,c),c&4&&v(a,1)):(a=ho(s),a.c(),v(a,1),a.m(i.parentNode,i)):a&&(ne(),S(a,1,1,()=>{a=null}),ie())},i(s){r||(v(e.$$.fragment,s),v(o),v(a),r=!0)},o(s){S(e.$$.fragment,s),S(o),S(a),r=!1},d(s){s&&(k(t),k(l),k(i)),D(e,s),o&&o.d(s),a&&a.d(s)}}}function Zm(n,e,t){let l,i,r,o,a,{$$slots:s={},$$scope:c}=e;const u=de("wx-i18n").getGroup("filemanager"),f=de("filemanager-store"),{panels:d,activePanel:h}=f.getReactiveState();me(n,d,M=>t(12,a=M)),me(n,h,M=>t(11,o=M));let w=null,p=!1;function m(){const M=r.trim();if(!M){t(1,p=!0);return}w.add?f.exec("create-file",{file:{...w.item,name:M},parent:l}):i!==M&&f.exec("rename-file",{id:w.item.id,name:M}),y()}function y(){t(0,w=t(1,p=null)),t(10,i=t(3,r=""))}let b=null;function q(){f.exec("delete-files",{ids:b.selected}),t(2,b=null)}it("filemanager-modals",{showPrompt(M){t(0,w={...M})},showConfirm(M){t(2,b={...M})}});function C(M){r=M,t(3,r),t(10,i),t(0,w)}const $=()=>t(2,b=null);return n.$$set=M=>{"$$scope"in M&&t(16,c=M.$$scope)},n.$$.update=()=>{n.$$.dirty&6144&&({path:l}=a[o]),n.$$.dirty&1&&t(10,i=(w==null?void 0:w.item.name)||((w==null?void 0:w.item.type)==="folder"?u("New folder"):`${u("New file")}.txt`)),n.$$.dirty&1024&&t(3,r=i)},[w,p,b,r,u,d,h,m,y,q,i,o,a,s,C,$,c]}class Es extends K{constructor(e){super(),Y(this,e,Zm,Xm,V,{},Ym)}}U(Es,{},["default"],[],!0);let po={"7z":!0,rar:!0,zip:!0,css:!0,html:!0,js:!0,php:!0,md:!0,xml:!0,sql:!0,aif:!0,mid:!0,mp3:!0,waw:!0,wma:!0,doc:!0,docx:!0,txt:!0,avi:!0,mov:!0,mp4:!0,mpeg:!0,mpg:!0,pdf:!0,xls:!0,xlsx:!0,gif:!0,jpg:!0,jpeg:!0,png:!0,psd:!0,tiff:!0,svg:!0,folder:!0,file:!0,multiple:!0,search:!0,none:!0};function Qm(n){let e,t;return e=new Is({props:{readonly:n[0],menuOptions:n[1],extraInfo:n[2]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.readonly=l[0]),i&2&&(r.menuOptions=l[1]),i&4&&(r.extraInfo=l[2]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Jm(n){let e,t;return e=new Es({props:{$$slots:{default:[Qm]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&262151&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function eb(n){let e,t;return e=new Xl({props:{words:Wm,optional:!0,$$slots:{default:[Jm]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,[i]){const r={};i&262151&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function tb(n,e,t){let{data:l=[]}=e,{mode:i="cards"}=e,{drive:r=null}=e,{preview:o=!1}=e,{panels:a=[]}=e,{activePanel:s=0}=e,{readonly:c=!1}=e,{menuOptions:u=bw}=e,{extraInfo:f=null}=e,{init:d=null}=e,{icons:h=function($,M){const{type:R,ext:G}=$;if(R==="folder")return!1;let L;return R&&R!=="file"&&po[R]?L=R:G?L=po[G]?G:"file":L="unknown",`https://cdn.svar.dev/icons/filemanager/vivid/${M}/${L}.svg`}}=e,{previews:w=null}=e;const p=ze(),m=new mw;let y=new Vm(p),b=m.in;b.setNext(y);const q={getState:m.getState.bind(m),getReactiveState:m.getReactive.bind(m),getStores:()=>({data:m}),exec:b.exec,setNext:$=>y=y.setNext($),intercept:b.intercept.bind(b),on:b.on.bind(b),detach:b.detach.bind(b),getFile:$=>m.getFile($),serialize:$=>m.serialize($)},C=()=>null;return it("filemanager-store",{getReactiveState:m.getReactive.bind(m),exec:b.exec.bind(b),templates:{preview:w||C,icon:h=="simple"?C:h},getFile:m.getFile.bind(m)}),n.$$set=$=>{"data"in $&&t(4,l=$.data),"mode"in $&&t(5,i=$.mode),"drive"in $&&t(6,r=$.drive),"preview"in $&&t(7,o=$.preview),"panels"in $&&t(8,a=$.panels),"activePanel"in $&&t(9,s=$.activePanel),"readonly"in $&&t(0,c=$.readonly),"menuOptions"in $&&t(1,u=$.menuOptions),"extraInfo"in $&&t(2,f=$.extraInfo),"init"in $&&t(3,d=$.init),"icons"in $&&t(10,h=$.icons),"previews"in $&&t(11,w=$.previews)},n.$$.update=()=>{n.$$.dirty&1016&&(m.init({tree:l,mode:i,drive:r,preview:o,panels:a,activePanel:s}),d&&(d(q),t(3,d=null)))},[c,u,f,d,l,i,r,o,a,s,h,w,q]}class Os extends K{constructor(e){super(),Y(this,e,tb,eb,V,{data:4,mode:5,drive:6,preview:7,panels:8,activePanel:9,readonly:0,menuOptions:1,extraInfo:2,init:3,icons:10,previews:11,api:12})}get data(){return this.$$.ctx[4]}set data(e){this.$$set({data:e}),x()}get mode(){return this.$$.ctx[5]}set mode(e){this.$$set({mode:e}),x()}get drive(){return this.$$.ctx[6]}set drive(e){this.$$set({drive:e}),x()}get preview(){return this.$$.ctx[7]}set preview(e){this.$$set({preview:e}),x()}get panels(){return this.$$.ctx[8]}set panels(e){this.$$set({panels:e}),x()}get activePanel(){return this.$$.ctx[9]}set activePanel(e){this.$$set({activePanel:e}),x()}get readonly(){return this.$$.ctx[0]}set readonly(e){this.$$set({readonly:e}),x()}get menuOptions(){return this.$$.ctx[1]}set menuOptions(e){this.$$set({menuOptions:e}),x()}get extraInfo(){return this.$$.ctx[2]}set extraInfo(e){this.$$set({extraInfo:e}),x()}get init(){return this.$$.ctx[3]}set init(e){this.$$set({init:e}),x()}get icons(){return this.$$.ctx[10]}set icons(e){this.$$set({icons:e}),x()}get previews(){return this.$$.ctx[11]}set previews(e){this.$$set({previews:e}),x()}get api(){return this.$$.ctx[12]}}U(Os,{data:{},mode:{},drive:{},preview:{type:"Boolean"},panels:{},activePanel:{},readonly:{type:"Boolean"},menuOptions:{},extraInfo:{},init:{},icons:{},previews:{}},[],["api"],!0);function lb(n){ee(n,"svelte-exkroy",`.wx-material-theme{--wx-theme-name:material;--wx-fm-background:#f2f3f7;--wx-fm-box-shadow:0px 1px 2px rgba(44, 47, 60, 0.06),
+ 0px 3px 10px rgba(44, 47, 60, 0.12);--wx-fm-select-background:rgba(0, 0, 0, 0.06);--wx-fm-grid-border:1px solid #ededf1;--wx-fm-grid-header-color:#fafafb;--wx-fm-button-font-color:#9fa1ae;--wx-fm-toolbar-height:56px}`)}function nb(n){let e,t;return e=new Ht({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p:T,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function ib(n){let e,t;return e=new Ht({props:{$$slots:{default:[rb]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function rb(n){let e;const t=n[1].default,l=he(t,n,n[2],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&4)&&ge(l,t,i,i[2],e?we(t,i[2],r,null):pe(i[2]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function ob(n){let e,t,l,i;const r=[ib,nb],o=[];function a(s,c){return s[0]&&s[0].default?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,[c]){t.p(s,c)},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function sb(n,e,t){let{$$slots:l={},$$scope:i}=e;const r=e.$$slots;return n.$$set=o=>{t(3,e=Se(Se({},e),je(o))),"$$scope"in o&&t(2,i=o.$$scope)},e=je(e),[r,l,i]}class ab extends K{constructor(e){super(),Y(this,e,sb,ob,V,{},lb)}}U(ab,{},["default"],[],!0);function cb(n){ee(n,"svelte-1mdouge",`.wx-willow-theme{--wx-theme-name:willow;--wx-fm-background:#f2f3f7;--wx-fm-box-shadow:0px 1px 2px rgba(44, 47, 60, 0.06),
+ 0px 3px 10px rgba(44, 47, 60, 0.12);--wx-fm-select-background:#eaedf5;--wx-fm-grid-border:1px solid #ededf1;--wx-fm-grid-header-color:#fafafb;--wx-fm-button-font-color:#9fa1ae;--wx-fm-toolbar-height:56px}`)}function ub(n){let e,t;return e=new Pt({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p:T,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function fb(n){let e,t;return e=new Pt({props:{$$slots:{default:[db]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function db(n){let e;const t=n[1].default,l=he(t,n,n[2],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&4)&&ge(l,t,i,i[2],e?we(t,i[2],r,null):pe(i[2]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function hb(n){let e,t,l,i;const r=[fb,ub],o=[];function a(s,c){return s[0]&&s[0].default?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,[c]){t.p(s,c)},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function wb(n,e,t){let{$$slots:l={},$$scope:i}=e;const r=e.$$slots;return n.$$set=o=>{t(3,e=Se(Se({},e),je(o))),"$$scope"in o&&t(2,i=o.$$scope)},e=je(e),[r,l,i]}class Ds extends K{constructor(e){super(),Y(this,e,wb,hb,V,{},cb)}}U(Ds,{},["default"],[],!0);function gb(n){ee(n,"svelte-wbe9fv",".wx-willow-dark-theme{--wx-theme-name:willow-dark;color-scheme:dark;--wx-fm-background:#2b343b;--wx-fm-box-shadow:none;--wx-fm-select-background:#384047;--wx-fm-grid-border:1px solid #384047;--wx-fm-grid-header-color:var(--wx-background);--wx-fm-button-font-color:#9fa1ae;--wx-fm-toolbar-height:56px}")}function pb(n){let e,t;return e=new Tt({}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p:T,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function mb(n){let e,t;return e=new Tt({props:{$$slots:{default:[bb]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function bb(n){let e;const t=n[1].default,l=he(t,n,n[2],null);return{c(){l&&l.c()},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&4)&&ge(l,t,i,i[2],e?we(t,i[2],r,null):pe(i[2]),null)},i(i){e||(v(l,i),e=!0)},o(i){S(l,i),e=!1},d(i){l&&l.d(i)}}}function vb(n){let e,t,l,i;const r=[mb,pb],o=[];function a(s,c){return s[0]&&s[0].default?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,[c]){t.p(s,c)},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function xb(n,e,t){let{$$slots:l={},$$scope:i}=e;const r=e.$$slots;return n.$$set=o=>{t(3,e=Se(Se({},e),je(o))),"$$scope"in o&&t(2,i=o.$$scope)},e=je(e),[r,l,i]}class _b extends K{constructor(e){super(),Y(this,e,xb,vb,V,{},gb)}}U(_b,{},["default"],[],!0);function kb(n){ee(n,"svelte-176is80",".error.svelte-176is80{color:red;font-weight:bold}")}function yb(n){let e,t;return e=new Os({props:{init:n[3],data:n[2],drive:n[1]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.data=l[2]),i&2&&(r.drive=l[1]),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function zb(n){let e,t;return{c(){e=_("div"),t=te(n[0]),g(e,"class","error svelte-176is80")},m(l,i){z(l,e,i),j(e,t)},p(l,i){i&1&&se(t,l[0])},i:T,o:T,d(l){l&&k(e)}}}function Sb(n){let e,t,l,i;const r=[zb,yb],o=[];function a(s,c){return s[0]?0:1}return e=a(n),t=o[e]=r[e](n),{c(){t.c(),l=fe()},m(s,c){o[e].m(s,c),z(s,l,c),i=!0},p(s,c){let u=e;e=a(s),e===u?o[e].p(s,c):(ne(),S(o[u],1,1,()=>{o[u]=null}),ie(),t=o[e],t?t.p(s,c):(t=o[e]=r[e](s),t.c()),v(t,1),t.m(l.parentNode,l))},i(s){i||(v(t),i=!0)},o(s){S(t),i=!1},d(s){s&&k(l),o[e].d(s)}}}function jb(n){let e,t;return e=new Ds({props:{$$slots:{default:[Sb]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,[i]){const r={};i&39&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}const $b="http://localhost:5173/fm";function Cb(n,e,t){let l,i;const r=new Ea($b);let o=null;function a(s){s.setNext(r)}return Promise.all([r.loadFiles(),r.loadInfo()]).then(([s,c])=>{t(2,l=s),t(1,i=c.stats)}).catch(s=>{console.error("Error loading data:",s),t(0,o="Failed to connect to the server.")}),t(2,l=[]),t(1,i={}),[o,i,l,a]}class Ns extends K{constructor(e){super(),Y(this,e,Cb,jb,V,{},kb)}}U(Ns,{},[],[],!0);const qb=[{id:1,start:new Date(2024,3,2),end:new Date(2024,3,17),text:"Project planning",progress:30,parent:0,type:"project",open:!0,details:"Outline the project's scope and resources."},{id:10,start:new Date(2024,3,2),end:new Date(2024,3,5),text:"Marketing analysis",progress:100,parent:1,type:"task",details:"Analyze market trends and competitors."},{id:11,start:new Date(2024,3,5),end:new Date(2024,3,7),text:"Discussions",progress:100,parent:1,type:"task",details:"Team discussions on project strategies."}];function Mb(n){let e,t;return e=new ln({props:{autoConfig:!0,data:qb,columns:n[0]}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p:T,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Rb(n){let e,t;return e=new ks({props:{$$slots:{default:[Mb]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},m(l,i){O(e,l,i),t=!0},p(l,[i]){const r={};i&2&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){S(e.$$.fragment,l),t=!1},d(l){D(e,l)}}}function Ib(n){return[[{id:"text",header:"Text",width:200},{id:"progress",header:"Progress",width:120},{id:"type",header:"Type",width:120},{id:"details",header:"Details",flexgrow:1}]]}class Hs extends K{constructor(e){super(),Y(this,e,Ib,Rb,V,{})}}U(Hs,{},[],[],!0);function Eb(n){let e,t,l,i,r,o,a,s;return r=new Ns({}),a=new Hs({}),{c(){e=_("main"),t=_("h1"),t.textContent="Filemanager & ...",l=I(),i=_("div"),N(r.$$.fragment),o=I(),N(a.$$.fragment),g(i,"class","card")},m(c,u){z(c,e,u),j(e,t),j(e,l),j(e,i),O(r,i,null),j(i,o),O(a,i,null),s=!0},p:T,i(c){s||(v(r.$$.fragment,c),v(a.$$.fragment,c),s=!0)},o(c){S(r.$$.fragment,c),S(a.$$.fragment,c),s=!1},d(c){c&&k(e),D(r),D(a)}}}class Ps extends K{constructor(e){super(),Y(this,e,null,Eb,V,{})}}U(Ps,{},[],[],!0);new Ps({target:document.getElementById("app")});
diff --git a/svelte/myfiles/dist/index.html b/svelte/myfiles/dist/index.html
new file mode 100644
index 0000000..e56f61a
--- /dev/null
+++ b/svelte/myfiles/dist/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ Vite + Svelte
+
+
+
+
+
+
+
diff --git a/svelte/myfiles/dist/vite.svg b/svelte/myfiles/dist/vite.svg
new file mode 100644
index 0000000..e7b8dfb
--- /dev/null
+++ b/svelte/myfiles/dist/vite.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/webdavserver/install.sh b/webdavserver/install.sh
new file mode 100644
index 0000000..7309b4b
--- /dev/null
+++ b/webdavserver/install.sh
@@ -0,0 +1 @@
+pip install wsgidav cheroot
\ No newline at end of file
diff --git a/webdavserver/readme.md b/webdavserver/readme.md
new file mode 100644
index 0000000..1112008
--- /dev/null
+++ b/webdavserver/readme.md
@@ -0,0 +1,2 @@
+https://wsgidav.readthedocs.io/en/latest/user_guide_configure.html
+
diff --git a/webdavserver/run.sh b/webdavserver/run.sh
new file mode 100755
index 0000000..708b3df
--- /dev/null
+++ b/webdavserver/run.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+export PYTHONPATH="${PYTHONPATH}:$(pwd)"
+wsgidav -c wsgidav.yaml
diff --git a/webdavserver/wsgidav.yaml b/webdavserver/wsgidav.yaml
new file mode 100644
index 0000000..a87224a
--- /dev/null
+++ b/webdavserver/wsgidav.yaml
@@ -0,0 +1,36 @@
+server: cheroot
+host: 0.0.0.0
+port: 3333
+verbose: 3
+
+provider_mapping:
+ "/":
+ root: "/tmp/webdav"
+
+dir_browser:
+ enable: true
+ icon: true
+ response_handler: true
+
+http_authenticator:
+ domain_controller: null # Same as wsgidav.dc.simple_dc.SimpleDomainController
+ accept_basic: true # Pass false to prevent sending clear text passwords
+ accept_digest: true
+ default_to_digest: true
+
+simple_dc:
+ user_mapping:
+ "*":
+ "admin":
+ password: "1234"
+ "user2":
+ password: "qwerty"
+ "/pub": true
+
+cors:
+ allow_origin: '*'
+ allow_methods: '*'
+ allow_headers: '*'
+ expose_headers: '*'
+ allow_credentials: true
+ max_age: 600