@opengis/table 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1 +1,21 @@
1
- (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.filter={},y.Vue))})(this,function(y,e){"use strict";const O=e.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>s.value===null||s.value===void 0?"":typeof s.value=="number"?s.value.toFixed(2):Intl.NumberFormat("uk-UA",{maximumFractionDigits:2}).format(Number(s.value)));return(m,n)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(t.value||"-"),1))}}),q=e.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>{if(!s.value)return"";try{return new Date(s.value).toLocaleDateString()}catch{return s.value}});return(m,n)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(t.value||"-"),1))}}),J=e.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,{value:t}=s,m=e.computed(()=>Array.isArray(t)?t.map(n=>n.text||n).join(","):t?.text||t);return(n,r)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(m.value||"-"),1))}}),G=((g,s)=>{const t=g.__vccOpts||g;for(const[m,n]of s)t[m]=n;return t})(e.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>{const r=String(s.value||"").toLowerCase(),i="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return r.includes("success")||r.includes("active")||r.includes("completed")?`${i} bg-green-100 text-green-800`:r.includes("error")||r.includes("failed")||r.includes("inactive")?`${i} bg-red-100 text-red-800`:r.includes("warning")||r.includes("pending")?`${i} bg-yellow-100 text-yellow-800`:r.includes("info")||r.includes("processing")?`${i} bg-blue-100 text-blue-800`:s.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(s.value.color)?`${i} bg-${s.value.color}-100 text-${s.value.color}-800`:`${i} bg-gray-100 text-gray-800`});function m(r,i=1){const k=parseInt(r.slice(1,3),16),B=parseInt(r.slice(3,5),16),x=parseInt(r.slice(5,7),16);return`rgba(${k}, ${B}, ${x}, ${i})`}const n=e.computed(()=>{const r={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(s.value?.color)?{...r,backgroundColor:m(s.value.color,.1),color:m(s.value.color,.8)}:r});return(r,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t.value]),style:e.normalizeStyle(n.value)},e.toDisplayString(r.value?.text||r.value||"-"),7))}}),[["__scopeId","data-v-f4b15092"]]),ie={class:"flex flex-wrap gap-1"},K=e.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[]),m=n=>n?typeof n=="object"&&n.name?n.name:typeof n=="string"||typeof n=="number"?String(n):JSON.stringify(n):"";return(n,r)=>(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(i,k)=>(e.openBlock(),e.createElementBlock("span",{key:k,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"},e.toDisplayString(m(i)),1))),128))]))}}),Q=e.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,{value:t}=s,m=e.computed(()=>Array.isArray(t)?t.map(n=>n.text||n).filter((n,r)=>r<2).join(", ")+(t.length>2?` +${t.length-2}`:""):t?.text||t);return(n,r)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(m.value||"-"),1))}}),A={number:O,date:q,text:J,badge:G,array:K,select:Q},ce={class:"flex items-center space-x-4"},de={class:"font-medium"},me={class:"font-medium"},pe={class:"font-medium"},ge={class:"flex items-center space-x-2"},ue=["disabled"],fe={class:"flex items-center space-x-1"},ye=["onClick"],be=["disabled"],I=e.defineComponent({name:"Pagination",__name:"Pagination",props:{page:{},limit:{},total:{},theme:{default:"light"},size:{default:"medium"}},emits:["update:page"],setup(g,{emit:s}){const t=g,m=e.computed(()=>({small:{text:"text-xs",button:"px-2 h-7 text-xs min-w-[28px] flex items-center justify-center",icon:"w-3.5 h-3.5"},medium:{text:"text-sm",button:"px-3 h-9 text-sm min-w-[36px] flex items-center justify-center",icon:"w-4 h-4"},large:{text:"text-base",button:"px-4 h-11 text-base min-w-[44px] flex items-center justify-center",icon:"w-5 h-5"}})[t.size]),n=e.computed(()=>{const{theme:p}=t;return p==="dark"?{container:"bg-gray-900 border-gray-700",text:"text-gray-300",button:"text-gray-300 bg-gray-800 border-gray-600 hover:bg-gray-700",buttonDisabled:"text-gray-500 bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-400"}:p==="light"?{container:"bg-white border-gray-200",text:"text-gray-700",button:"text-gray-700 bg-white border-gray-300 hover:bg-gray-50",buttonDisabled:"text-gray-400 bg-gray-100",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500"}:{container:"bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",text:"text-gray-700 dark:text-gray-300",button:"text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700",buttonDisabled:"text-gray-400 dark:text-gray-500 bg-gray-100 dark:bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500 dark:text-gray-400"}}),r=s,i=e.computed(()=>Math.ceil(t.total/t.limit)),k=e.computed(()=>t.total===0?0:(t.page-1)*t.limit+1),B=e.computed(()=>Math.min(t.page*t.limit,t.total)),x=e.computed(()=>{const p=[];if(i.value<=7)for(let b=1;b<=i.value;b+=1)p.push(b);else{p.push(1),t.page>4&&p.push("...");const b=Math.max(2,t.page-1),C=Math.min(i.value-1,t.page+1);for(let w=b;w<=C;w+=1)w!==1&&w!==i.value&&p.push(w);t.page<i.value-3&&p.push("..."),i.value>1&&p.push(i.value)}return p}),_=p=>{p>=1&&p<=i.value&&p!==t.page&&r("update:page",p)};return(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-center justify-between py-3 border-t",n.value.container])},[e.createElementVNode("div",ce,[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center text-sm",n.value.text,m.value.text])},[e.createElementVNode("span",null,[u[2]||(u[2]=e.createTextVNode(" Показано ",-1)),e.createElementVNode("span",de,e.toDisplayString(k.value),1),u[3]||(u[3]=e.createTextVNode(" до ",-1)),e.createElementVNode("span",me,e.toDisplayString(B.value),1),u[4]||(u[4]=e.createTextVNode(" з ",-1)),e.createElementVNode("span",pe,e.toDisplayString(p.total),1),u[5]||(u[5]=e.createTextVNode(" результатів ",-1))])],2)]),e.createElementVNode("div",ge,[e.createElementVNode("button",{onClick:u[0]||(u[0]=b=>_(p.page-1)),disabled:p.page<=1,class:e.normalizeClass(["relative font-medium rounded-md",m.value.button,p.page<=1?n.value.buttonDisabled:n.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(m.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[6]||(u[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,ue),e.createElementVNode("div",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,b=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b},[b==="..."?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["font-medium",m.value.button,n.value.ellipsis])}," ... ",2)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:C=>_(b),class:e.normalizeClass(["relative font-medium rounded-md",m.value.button,b===p.page?n.value.buttonActive:n.value.button])},e.toDisplayString(b),11,ye))],64))),128))]),e.createElementVNode("button",{onClick:u[1]||(u[1]=b=>_(p.page+1)),disabled:p.page>=i.value,class:e.normalizeClass(["relative font-medium rounded-md",m.value.button,p.page>=i.value?n.value.buttonDisabled:n.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(m.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[7]||(u[7]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,be)])],2))}}),he={key:0,class:"text-center py-8"},ke={class:"inline-flex items-center space-x-2"},xe={key:2,class:"overflow-x-auto"},Ce=["checked","indeterminate"],Be=["onClick"],_e={class:"flex items-center justify-between"},we={key:0,class:"ml-1 text-xs"},Ee=["onClick"],$e=["checked","onChange"],Ne=["onClick"],Se={key:1,class:"text-center"},S=e.defineComponent({name:"DataTable",__name:"DataTable",props:{rows:{default:()=>[]},columns:{default:()=>[]},api:{},router:{},tableStyle:{default:""},size:{default:"medium"},theme:{default:"light"},loading:{type:Boolean,default:!1},classWrapper:{default:""},classTable:{default:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},classTbody:{default:""},classTr:{default:""},classTd:{default:""},classTh:{default:""},classThead:{default:""},classLink:{default:""},selectable:{type:Boolean,default:!1},selectedRows:{default:()=>[]},limit:{default:10},page:{default:1},total:{default:0},showPagination:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0}},emits:["update:page","update:selectedRows","row-click","sort"],setup(g,{emit:s}){const t=g,m=s,n=e.ref(t.selectedRows||[]),r=e.ref([]),i=e.ref([]),k=e.ref([]),B=e.ref(!1),x=e.ref(null),_=e.ref(t.router),p=e.useSlots(),u=e.computed(()=>p.action);function b(a){if(_.value){_.value.push(a);return}location.href=a}const C=e.computed(()=>{if(t.api)return i.value;if(t.sortable&&r.value.length>0){const a=[...t.rows];return a.sort((c,o)=>{for(const d of r.value){if(!d.direction)return 0;const l=c[d.field],f=o[d.field];if(l==null)return 1;if(f==null)return-1;let E=0;typeof l=="string"&&typeof f=="string"?E=l.localeCompare(f):l<f?E=-1:l>f?E=1:E=0;const v=d.direction==="desc"?-E:E;if(v!==0)return v}return 0}),a}return t.rows});e.watch(()=>t.selectedRows,a=>{n.value=a||[]});const w=a=>n.value.some(c=>c===a),ee=a=>{const c=n.value.findIndex(o=>o===a);c>-1?n.value.splice(c,1):n.value.push(a),m("update:selectedRows",[...n.value])},j=e.computed(()=>C.value.length>0&&n.value.length===C.value.length),V=e.computed(()=>n.value.length>0&&n.value.length<C.value.length),L=()=>{j.value?n.value=[]:n.value=[...C.value],m("update:selectedRows",[...n.value])},He=a=>{if(!t.sortable)return;const c=r.value.findIndex(d=>d.field===a);if(c>=0){const d=r.value[c];d.direction==="asc"?d.direction="desc":d.direction==="desc"&&r.value.splice(c,1)}else r.value.unshift({field:a,direction:"asc"});const o=r.value.filter(d=>d.direction).map(d=>({name:d.field,asc:d.direction==="asc"}));m("sort",o),t.api&&z()},We=a=>r.value.find(o=>o.field===a)?.direction==="asc",Ue=a=>{const c=r.value.find(o=>o.field===a);if(!c)return"↑↓";switch(c.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},R=a=>t.sortable&&a.sortable!==!1,Oe=a=>{t.clickable&&m("row-click",a)},$=(a,c)=>{const o=c[a.name];if(t.getCellData||a.getCellData){const d=a.getCellData||t.getCellData;if(d){const l={name:a.name,row:c,value:o};return d(l)}}return["_data","_text"].map(d=>{const l=`${a.name}${d}`;return c[l]?c[l]:null}).find(d=>d)||o},te=a=>a.width?a.width==="w-full"?"w-full":typeof a.width=="string"?`w-[${a.width}px]`:typeof a.width=="number"?`w-[${a.width}px]`:"":"",P=e.ref(t.page),ae=e.ref(t.limit),M=e.ref(t.total),T=e.ref(1),H=e.ref(10),D=e.ref(0),oe=e.computed(()=>t.api?T.value:P.value),le=e.computed(()=>t.api?H.value:ae.value),ne=e.computed(()=>t.api?D.value:M.value),h=e.computed(()=>{const{theme:a}=t;return a==="dark"?{container:"dark",loading:"text-gray-400",error:"text-red-400",thead:"bg-gray-800",th:"text-gray-300",thHover:"hover:bg-gray-700",tbody:"bg-gray-900 divide-gray-700",tr:"hover:bg-gray-800",td:"text-gray-300",empty:"text-gray-400",checkbox:"border-gray-600 bg-gray-700 text-blue-400"}:a==="light"?{container:"",loading:"text-gray-500",error:"text-red-500",thead:"bg-gray-50",th:"text-gray-500",thHover:"hover:bg-gray-100",tbody:"bg-white divide-gray-200",tr:"hover:bg-gray-50",td:"text-gray-900",empty:"text-gray-500",checkbox:"border-gray-300 bg-white text-blue-600"}:{container:"",loading:"text-gray-500 dark:text-gray-400",error:"text-red-500 dark:text-red-400",thead:"bg-gray-50 dark:bg-gray-800",th:"text-gray-500 dark:text-gray-300",thHover:"hover:bg-gray-100 dark:hover:bg-gray-700",tbody:"bg-white dark:bg-gray-900 divide-gray-200 dark:divide-gray-700",tr:"hover:bg-gray-50 dark:hover:bg-gray-800",td:"text-gray-900 dark:text-gray-300",empty:"text-gray-500 dark:text-gray-400",checkbox:"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"}});e.watch(()=>t.page,a=>{P.value=a}),e.watch(()=>t.limit,a=>{ae.value=a}),e.watch(()=>t.total,a=>{M.value=a});async function z(){if(t.api){B.value=!0,x.value=null;try{const a=new URL(t.api,window.location.origin);if(a.searchParams.set("page",oe.value.toString()),a.searchParams.set("limit",le.value.toString()),r.value.length>0){const d=r.value.filter(l=>l.direction).map(l=>`${l.field}:${l.direction}`).join(",");d&&a.searchParams.set("sort",d)}const c=await fetch(a.toString());if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);const o=await c.json();o.rows&&Array.isArray(o.rows)&&(i.value=o.rows),o.columns&&Array.isArray(o.columns)&&(k.value=o.columns),o.total!==void 0&&(t.api?D.value=o.total:M.value=o.total)}catch(a){x.value=a instanceof Error?a.message:"Failed to fetch data",console.error("Error fetching data:",a)}finally{B.value=!1}}}const qe=a=>{t.api?T.value=a:(P.value=a,m("update:page",a)),t.api&&z()},Je=e.computed(()=>t.showPagination&&ne.value>0),N=e.computed(()=>({small:{header:"px-3 py-2 text-xs",cell:"px-3 py-2 text-xs"},medium:{header:"px-6 py-3 text-xs",cell:"px-6 py-4 text-sm"},large:{header:"px-8 py-4 text-sm",cell:"px-8 py-6 text-base"}})[t.size]);e.onMounted(()=>{t.api&&(t.page&&(T.value=t.page),t.limit&&(H.value=t.limit),t.total&&(D.value=t.total),z())}),e.watch(()=>t.api,a=>{a&&(T.value=t.page||1,H.value=t.limit||10,D.value=t.total||0,z())});const Ge=e.computed(()=>t.api?k.value:t.columns),W=e.ref([]),F=e.ref({});e.provide("registerColumn",(a,c)=>{W.value.push(a),c&&a.slotName&&(F.value[a.name]=c)});const re=e.computed(()=>{const a=Ge.value||[],c=[],o=p.default?.();if(o){const d=o.filter(l=>l.type?.name==="Column"||l.type==="Column"||l.type&&typeof l.type=="object"&&l.type.name==="Column").map(l=>{const f=l.props||l.componentProps||{},E=f.field||f.name||"",v=f.header||f.label||"",se=l.children&&l.children.body,U={name:E,ua:v,format:f.format||"text",slotName:se?"body":void 0,...f};return se&&U.name&&(F.value[U.name]=l.children.body),U});c.push(...d)}if(W.value.length>0&&c.push(...W.value),c.length>0){const d=[],l=new Set(c.map(f=>f.name));return a.forEach(f=>{l.has(f.name)||d.push(f)}),d.push(...c),console.log("Combined columns:",{default:a.length,custom:c.length,combined:d.length}),d}return a.length>0?(console.log("Using default columns:",a.length),a):[]}),Ke=(a="text")=>A[a.toLowerCase()]||A.text;return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-full",h.value.container])},[B.value||t.loading?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",ke,[c[0]||(c[0]=e.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),e.createElementVNode("span",{class:e.normalizeClass(h.value.loading)},"Loading...",2)])])):x.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["text-center py-8",h.value.error])},e.toDisplayString(x.value),3)):!t.loading&&C.value.length>0?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",{class:e.normalizeClass(a.classWrapper?a.classWrapper:"relative w-full overflow-auto")},[e.createElementVNode("table",{class:e.normalizeClass(a.classTable),style:e.normalizeStyle(a.tableStyle)},[e.createElementVNode("thead",{class:e.normalizeClass(a.classThead||h.value.thead)},[e.createElementVNode("tr",null,[a.selectable?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["text-left font-medium uppercase tracking-wider",h.value.th,N.value.header,t.classTh,"w-12"])},[e.createElementVNode("input",{type:"checkbox",checked:j.value,indeterminate:V.value,onChange:L,class:e.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",h.value.checkbox])},null,42,Ce)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value.filter(o=>!o.hidden),o=>(e.openBlock(),e.createElementBlock("th",{key:o.name,class:e.normalizeClass([o.align?`text-${o.align}`:"",R(o)?["cursor-pointer",h.value.thHover]:"",te(o)].concat(t.classTh||["text-left font-medium uppercase tracking-wider",h.value.th,N.value.header])),onClick:d=>R(o)?He(o.name):void 0},[e.createElementVNode("div",_e,[e.createElementVNode("span",null,e.toDisplayString(o.ua||o.header||o.name),1),R(o)?(e.openBlock(),e.createElementBlock("span",we,[e.renderSlot(a.$slots,"sort",{asc:We(o.name)},()=>[e.createTextVNode(e.toDisplayString(Ue(o.name)),1)])])):e.createCommentVNode("",!0)])],10,Be))),128)),u.value?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass(["w-[100px]",t.classTh||["text-left font-medium uppercase tracking-wider",h.value.th,N.value.header]])},"Дії",2)):e.createCommentVNode("",!0)])],2),e.createElementVNode("tbody",{class:e.normalizeClass(a.classTbody||h.value.tbody)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(o,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d,class:e.normalizeClass(t.classTr||[h.value.tr,t.clickable?"cursor-pointer":""]),onClick:l=>t.clickable?Oe(o):void 0},[a.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["whitespace-nowrap",h.value.td,N.value.cell,t.classTd,"w-12"])},[e.createElementVNode("input",{type:"checkbox",checked:w(o),onChange:l=>ee(o),class:e.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",h.value.checkbox])},null,42,$e)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value.filter(l=>!l.hidden),l=>(e.openBlock(),e.createElementBlock("td",{key:l.name,class:e.normalizeClass(t.classTd||["whitespace-nowrap",h.value.td,N.value.cell,l.align?`text-${l.align}`:"",te(l)])},[l.action&&u.value?e.renderSlot(a.$slots,"action",{key:0,row:o}):e.unref(p).number&&l.format==="number"?e.renderSlot(a.$slots,"number",{key:1,row:o,value:$(l,o)}):e.unref(p).badge&&l.format==="badge"?e.renderSlot(a.$slots,"badge",{key:2,row:o,value:$(l,o)}):e.unref(p).array&&l.format==="array"?e.renderSlot(a.$slots,"array",{key:3,row:o,value:$(l,o)}):l.slotName&&F.value[l.name]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.value[l.name]),{key:4,data:o,value:$(l,o),row:o,column:l},null,8,["data","value","row","column"])):l.link?(e.openBlock(),e.createElementBlock("a",{key:5,class:e.normalizeClass(a.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:f=>b(l.link.replace("{id}",o.id))},e.toDisplayString($(l,o)),11,Ne)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ke(l.format)),{key:6,value:$(l,o),row:o,column:l,href:l.link},null,8,["value","row","column","href"]))],2))),128)),u.value?(e.openBlock(),e.createElementBlock("td",Se,[e.renderSlot(a.$slots,"action",{row:o})])):e.createCommentVNode("",!0)],10,Ee))),128))],2)],6)],2)])):e.createCommentVNode("",!0),Je.value&&!B.value&&!t.loading&&!x.value?(e.openBlock(),e.createBlock(I,{key:3,page:oe.value,limit:le.value,total:ne.value,theme:t.theme,size:t.size,"onUpdate:page":qe},null,8,["page","limit","total","theme","size"])):e.createCommentVNode("",!0),!B.value&&!t.loading&&!x.value&&C.value.length===0?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["text-center py-8",h.value.empty])}," Дані відсутні ",2)):e.createCommentVNode("",!0)],2))}}),Ve={style:{display:"none"}},X=e.defineComponent({name:"Column",__name:"Column",props:{field:{},name:{},header:{},label:{},format:{},hidden:{type:Boolean},sortable:{type:Boolean},width:{},align:{},slot:{},slotName:{},link:{},action:{type:Boolean},getCellData:{type:Function},suffix:{}},setup(g){const s=g,t=e.useSlots(),m=e.inject("registerColumn");return e.onMounted(()=>{if(m){const{field:n,name:r,header:i,label:k,format:B,slotName:x,link:_,action:p,getCellData:u,suffix:b,...C}=s,V={name:n||r||"",ua:i||k||"",format:B||"text",slotName:x||(t.body?"body":void 0),link:_,action:p,getCellData:u,suffix:b,...C};console.log("Registering column:",V);const L=t.body;m(V,L)}}),(n,r)=>(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(n.$slots,"body",{data:{}})]))}}),Te={class:"mt-4"},De={class:"text-sm text-gray-600 dark:text-gray-300"},Y=e.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(g){const s=g,t=e.computed(()=>s.selectedRows.length);return(m,n)=>(e.openBlock(),e.createElementBlock("div",Te,[e.createElementVNode("div",De," Обрано: "+e.toDisplayString(t.value)+" з "+e.toDisplayString(m.totalCount)+" записів ",1)]))}}),ze={class:"mt-4"},Fe={class:"border-b border-gray-200 dark:border-gray-700"},ve={class:"-mb-px flex space-x-8"},Ae=["onClick"],Ie={class:"mt-4"},je={class:"bg-gray-900 rounded-lg overflow-hidden"},Le={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Re={class:"text-sm text-gray-300"},Pe=["onClick"],Me={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Z=e.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(g){const s=g,t=e.ref(s.defaultTab||s.tabs[0]?.id||""),m=async n=>{try{await navigator.clipboard.writeText(n),console.log("Код скопійовано!")}catch(r){console.error("Помилка копіювання:",r)}};return(n,r)=>(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Fe,[e.createElementVNode("nav",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,i=>(e.openBlock(),e.createElementBlock("button",{key:i.id,onClick:k=>t.value=i.id,class:e.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",t.value===i.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"])},e.toDisplayString(i.label),11,Ae))),128))])]),e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,i=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:i.id},[e.createElementVNode("div",je,[e.createElementVNode("div",Le,[e.createElementVNode("span",Re,e.toDisplayString(i.label),1),e.createElementVNode("button",{onClick:k=>m(i.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},r[0]||(r[0]=[e.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Pe)]),e.createElementVNode("pre",Me,[e.createElementVNode("code",null,e.toDisplayString(i.content),1)])])])),[[e.vShow,t.value===i.id]])),128))])]))}});S.install=function(s){s.component("DataTable",S),s.component("Column",X),s.component("Pagination",I),s.component("SelectionInfo",Y),s.component("CodeTabs",Z)},y.ArrayFormat=K,y.BadgeFormat=G,y.CodeTabs=Z,y.Column=X,y.DataTable=S,y.DateFormat=q,y.NumberFormat=O,y.Pagination=I,y.SelectFormat=Q,y.SelectionInfo=Y,y.TextFormat=J,y.default=S,y.formatComponents=A,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(U,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(U=typeof globalThis<"u"?globalThis:U||self,s(U.filter={},U.Vue))})(this,function(U,s){"use strict";function Hs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const qs=Hs(s),hn={en:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук"},uk:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук"}};function Ks(e){const t=e.split(".")[1];return(hn[localStorage.language||navigator.language]||hn.uk)[t]}function mn(){const e=s.getCurrentInstance();return e.appContext.config.globalProperties.$i18n?e.appContext.config.globalProperties.$t:Ks}const Ws={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},Gs={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},Js=["placeholder"],Ys={class:"p-1 pt-3 max-h-80 overflow-y-auto"},Xs={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},Qs=["onClick"],Zs={class:"flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none"},Vs=["value"],gn=s.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=mn(),r=e,i=t,o=s.useAttrs(),a=s.ref(!1),l=s.ref(""),c=s.ref(r.columns),d=s.ref(null),m=s.ref(null),p=s.ref(null),f=s.ref({top:0,left:0}),h=s.computed(()=>l.value?c.value.filter(u=>u.ua.toLowerCase().includes(l.value.toLowerCase())):c.value);s.watch(c,u=>{i("update:columns",u)},{deep:!0}),s.watch(()=>r.columns,u=>{JSON.stringify(u)!==JSON.stringify(c.value)&&(c.value=[...u])},{deep:!0});function y(u){Object.assign(u,{hidden:!u.hidden})}function v(){a.value=!a.value,s.nextTick(()=>{if(a.value&&(p.value?.focus(),d.value&&m.value)){const u=d.value.getBoundingClientRect();f.value={top:u.bottom+window.scrollY+5,left:u.left+window.scrollX-220}}})}function N(u){a.value&&m.value&&d.value&&!m.value.contains(u.target)&&!d.value.contains(u.target)&&(a.value=!1)}return s.onMounted(()=>{document.addEventListener("click",N,!0)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",N,!0)}),(u,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:v,ref_key:"buttonRef",ref:d,class:s.normalizeClass([[s.unref(o).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},k[2]||(k[2]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="20" width="16"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path></svg>',1)]),2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[a.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"modalRef",ref:m,class:"fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",style:s.normalizeStyle([{position:"fixed"},{top:`${f.value.top}px`,left:`${f.value.left}px`}])},[s.createElementVNode("div",Ws,s.toDisplayString(s.unref(n)("table.columns")),1),s.createElementVNode("div",Gs,[s.withDirectives(s.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:p,"onUpdate:modelValue":k[0]||(k[0]=I=>l.value=I),class:"py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",placeholder:s.unref(n)("table.search")},null,8,Js),[[s.vModelText,l.value]])]),s.createElementVNode("div",Ys,[s.createElementVNode("span",Xs,s.toDisplayString(s.unref(n)("table.choose")),1),s.createElementVNode("div",{class:"space-y-1",onClick:k[1]||(k[1]=s.withModifiers(()=>{},["stop"]))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,I=>(s.openBlock(),s.createElementBlock("div",{key:I.name,class:"flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",onClick:J=>y(I)},[s.createElementVNode("label",Zs,[s.createTextVNode(s.toDisplayString(I.ua||I.label)+" ",1),s.createElementVNode("input",{type:"checkbox",class:"hidden",value:I.hidden},null,8,Vs),s.createElementVNode("span",{class:s.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",I.hidden?"bg-white":"bg-blue-600 border-0"])},k[3]||(k[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,Qs))),128))])])],4)):s.createCommentVNode("",!0)]))],64))}}),vn=s.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value===null||t.value===void 0?"":typeof t.value=="number"?t.value.toFixed(2):Intl.NumberFormat("uk-UA",{maximumFractionDigits:2}).format(Number(t.value)));return(r,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),yn=s.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(r,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),bn=s.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(i=>i.text||i).join(","):n?.text||n);return(i,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),er=s.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{const o=String(t.value||"").toLowerCase(),a="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return o.includes("success")||o.includes("active")||o.includes("completed")?`${a} bg-green-100 text-green-800`:o.includes("error")||o.includes("failed")||o.includes("inactive")?`${a} bg-red-100 text-red-800`:o.includes("warning")||o.includes("pending")?`${a} bg-yellow-100 text-yellow-800`:o.includes("info")||o.includes("processing")?`${a} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${a} bg-${t.value.color}-100 text-${t.value.color}-800`:`${a} bg-gray-100 text-gray-800`});function r(o,a=1){const l=parseInt(o.slice(1,3),16),c=parseInt(o.slice(3,5),16),d=parseInt(o.slice(5,7),16);return`rgba(${l}, ${c}, ${d}, ${a})`}const i=s.computed(()=>{const o={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...o,backgroundColor:r(t.value.color,.1),color:r(t.value.color,.8)}:o});return(o,a)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["badge",n.value]),style:s.normalizeStyle(i.value)},s.toDisplayString(o.value?.text||o.value||"-"),7))}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},kn=En(er,[["__scopeId","data-v-f4b15092"]]),tr={class:"flex flex-wrap gap-1"},Nn=s.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),r=i=>i?typeof i=="object"&&i.name?i.name:typeof i=="string"||typeof i=="number"?String(i):JSON.stringify(i):"";return(i,o)=>(s.openBlock(),s.createElementBlock("div",tr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(a,l)=>(s.openBlock(),s.createElementBlock("span",{key:l,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"},s.toDisplayString(r(a)),1))),128))]))}}),xn=s.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(i=>i.text||i).filter((i,o)=>o<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(i,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),Nt={number:vn,date:yn,text:bn,badge:kn,array:Nn,select:xn},nr={class:"flex items-center space-x-4"},sr={class:"font-medium"},rr={class:"font-medium"},ir={class:"font-medium"},or={class:"flex items-center space-x-2"},ar=["disabled"],lr={class:"flex items-center space-x-1"},cr=["onClick"],dr=["disabled"],xt=s.defineComponent({name:"Pagination",__name:"Pagination",props:{page:{},limit:{},total:{},theme:{default:"light"},size:{default:"medium"}},emits:["update:page"],setup(e,{emit:t}){const n=e,r=s.computed(()=>({small:{text:"text-xs",button:"px-2 h-7 text-xs min-w-[28px] flex items-center justify-center",icon:"w-3.5 h-3.5"},medium:{text:"text-sm",button:"px-3 h-9 text-sm min-w-[36px] flex items-center justify-center",icon:"w-4 h-4"},large:{text:"text-base",button:"px-4 h-11 text-base min-w-[44px] flex items-center justify-center",icon:"w-5 h-5"}})[n.size]),i=s.computed(()=>{const{theme:p}=n;return p==="dark"?{container:"bg-gray-900 border-gray-700",text:"text-gray-300",button:"text-gray-300 bg-gray-800 border-gray-600 hover:bg-gray-700",buttonDisabled:"text-gray-500 bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-400"}:p==="light"?{container:"bg-white border-gray-200",text:"text-gray-700",button:"text-gray-700 bg-white border-gray-300 hover:bg-gray-50",buttonDisabled:"text-gray-400 bg-gray-100",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500"}:{container:"bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",text:"text-gray-700 dark:text-gray-300",button:"text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700",buttonDisabled:"text-gray-400 dark:text-gray-500 bg-gray-100 dark:bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500 dark:text-gray-400"}}),o=t,a=s.computed(()=>Math.ceil(n.total/n.limit)),l=s.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=s.computed(()=>Math.min(n.page*n.limit,n.total)),d=s.computed(()=>{const p=[];if(a.value<=7)for(let h=1;h<=a.value;h+=1)p.push(h);else{p.push(1),n.page>4&&p.push("...");const h=Math.max(2,n.page-1),y=Math.min(a.value-1,n.page+1);for(let v=h;v<=y;v+=1)v!==1&&v!==a.value&&p.push(v);n.page<a.value-3&&p.push("..."),a.value>1&&p.push(a.value)}return p}),m=p=>{p>=1&&p<=a.value&&p!==n.page&&o("update:page",p)};return(p,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex items-center justify-between py-3 border-t",i.value.container])},[s.createElementVNode("div",nr,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center text-sm",i.value.text,r.value.text])},[s.createElementVNode("span",null,[f[2]||(f[2]=s.createTextVNode(" Показано ",-1)),s.createElementVNode("span",sr,s.toDisplayString(l.value),1),f[3]||(f[3]=s.createTextVNode(" до ",-1)),s.createElementVNode("span",rr,s.toDisplayString(c.value),1),f[4]||(f[4]=s.createTextVNode(" з ",-1)),s.createElementVNode("span",ir,s.toDisplayString(p.total),1),f[5]||(f[5]=s.createTextVNode(" результатів ",-1))])],2)]),s.createElementVNode("div",or,[s.createElementVNode("button",{onClick:f[0]||(f[0]=h=>m(p.page-1)),disabled:p.page<=1,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,p.page<=1?i.value.buttonDisabled:i.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[6]||(f[6]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,ar),s.createElementVNode("div",lr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,h=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:h},[h==="..."?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["font-medium",r.value.button,i.value.ellipsis])}," ... ",2)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:y=>m(h),class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,h===p.page?i.value.buttonActive:i.value.button])},s.toDisplayString(h),11,cr))],64))),128))]),s.createElementVNode("button",{onClick:f[1]||(f[1]=h=>m(p.page+1)),disabled:p.page>=a.value,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,p.page>=a.value?i.value.buttonDisabled:i.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[7]||(f[7]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,dr)])],2))}});/**
2
+ * @vue/shared v3.5.18
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function ue(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pr=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const St=()=>{},Ve=()=>!1,Ct=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ye=Object.assign,he=Array.isArray,G=e=>typeof e=="string",wt=e=>typeof e=="symbol",fr=e=>e!==null&&typeof e=="object",Sn=ue(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ur=ue("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),_t=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},hr=/-(\w)/g,be=_t(e=>e.replace(hr,(t,n)=>n?n.toUpperCase():"")),Tt=_t(e=>e.charAt(0).toUpperCase()+e.slice(1)),mr=_t(e=>e?`on${Tt(e)}`:""),je={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},gr={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},vr=/;(?![^(]*\))/g,yr=/:([^]+)/,br=/\/\*[^]*?\*\//g;function Er(e){const t={};return e.replace(br,"").split(vr).forEach(n=>{if(n){const r=n.split(yr);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const kr="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Nr="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xr="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Sr="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Cr=ue(kr),wr=ue(Nr),_r=ue(xr),Tr=ue(Sr);/**
6
+ * @vue/compiler-core v3.5.18
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/const ze=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Ue=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Ot=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),et=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),Cn=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Ce=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),wn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),_n=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Dt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),It=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),He=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),At=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Tn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Bt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),$t=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Mt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),On=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),Dn=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),tt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),nt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),jt=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),qe=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),zt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Or=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),st=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Dr=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Ir=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),qt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Ar=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Br=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),In=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Be={[ze]:"Fragment",[Ue]:"Teleport",[Ot]:"Suspense",[et]:"KeepAlive",[Cn]:"BaseTransition",[Ce]:"openBlock",[wn]:"createBlock",[_n]:"createElementBlock",[Dt]:"createVNode",[It]:"createElementVNode",[He]:"createCommentVNode",[At]:"createTextVNode",[Tn]:"createStaticVNode",[Bt]:"resolveComponent",[$t]:"resolveDynamicComponent",[Mt]:"resolveDirective",[Rt]:"resolveFilter",[Lt]:"withDirectives",[Pt]:"renderList",[On]:"renderSlot",[Dn]:"createSlots",[tt]:"toDisplayString",[nt]:"mergeProps",[Ft]:"normalizeClass",[jt]:"normalizeStyle",[qe]:"normalizeProps",[Ke]:"guardReactiveProps",[zt]:"toHandlers",[Ut]:"camelize",[Or]:"capitalize",[Ht]:"toHandlerKey",[st]:"setBlockTracking",[Dr]:"pushScopeId",[Ir]:"popScopeId",[qt]:"withCtx",[Ar]:"unref",[Br]:"isRef",[Kt]:"withMemo",[In]:"isMemoSame"};function $r(e){Object.getOwnPropertySymbols(e).forEach(t=>{Be[t]=e[t]})}const se={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Mr(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:se}}function We(e,t,n,r,i,o,a,l=!1,c=!1,d=!1,m=se){return e&&(l?(e.helper(Ce),e.helper(Re(e.inSSR,d))):e.helper(Me(e.inSSR,d)),a&&e.helper(Lt)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:l,disableTracking:c,isComponent:d,loc:m}}function we(e,t=se){return{type:17,loc:t,elements:e}}function ae(e,t=se){return{type:15,loc:t,properties:e}}function j(e,t){return{type:16,loc:se,key:G(e)?S(e,!0):e,value:t}}function S(e,t=!1,n=se,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ce(e,t=se){return{type:8,loc:t,children:e}}function K(e,t=[],n=se){return{type:14,loc:n,callee:e,arguments:t}}function $e(e,t=void 0,n=!1,r=!1,i=se){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Wt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:se}}function Rr(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:se}}function Lr(e){return{type:21,body:e,loc:se}}function Me(e,t){return e||t?Dt:It}function Re(e,t){return e||t?wn:_n}function Gt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Me(r,e.isComponent)),t(Ce),t(Re(r,e.isComponent)))}const An=new Uint8Array([123,123]),Bn=new Uint8Array([125,125]);function $n(e){return e>=97&&e<=122||e>=65&&e<=90}function re(e){return e===32||e===10||e===9||e===12||e===13}function Ee(e){return e===47||e===62||re(e)}function rt(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Y={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Pr{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=An,this.delimiterClose=Bn,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=An,this.delimiterClose=Bn}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=0;i--){const o=this.newlines[i];if(t>o){n=i+2,r=t-o;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Ee(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||re(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Y.TitleEnd||this.currentSequence===Y.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Y.Cdata[this.sequenceIndex]?++this.sequenceIndex===Y.Cdata.length&&(this.state=28,this.currentSequence=Y.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Y.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):$n(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Ee(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Ee(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(rt("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){re(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=$n(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||re(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):re(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):re(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Ee(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||Ee(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Ee(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Ee(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||Ee(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):re(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):re(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){re(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(process.env.NODE_ENV!=="production"&&t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Y.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Y.ScriptEnd[3]?this.startSpecial(Y.ScriptEnd,4):t===Y.StyleEnd[3]?this.startSpecial(Y.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Y.TitleEnd[3]?this.startSpecial(Y.TitleEnd,4):t===Y.TextareaEnd[3]?this.startSpecial(Y.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Y.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const Fr={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Jt(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function ke(e,t){const n=Jt("MODE",t),r=Jt(e,t);return n===3?r===!0:r!==!1}function Le(e,t,n,...r){const i=ke(e,t);return process.env.NODE_ENV!=="production"&&i&&it(e,t,n,...r),i}function it(e,t,n,...r){if(Jt(e,t)==="suppress-warning")return;const{message:o,link:a}=Fr[e],l=`(deprecation ${e}) ${typeof o=="function"?o(...r):o}${a?`
10
+ Details: ${a}`:""}`,c=new SyntaxError(l);c.code=e,n&&(c.loc=n),t.onWarn(c)}function Yt(e){throw e}function Mn(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function M(e,t,n,r){const i=process.env.NODE_ENV!=="production"?(n||jr)[e]+(r||""):`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const jr={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
11
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},V=e=>e.type===4&&e.isStatic;function Rn(e){switch(e){case"Teleport":case"teleport":return Ue;case"Suspense":case"suspense":return Ot;case"KeepAlive":case"keep-alive":return et;case"BaseTransition":case"base-transition":return Cn}}const zr=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Xt=e=>!zr.test(e),Ur=/[A-Za-z_$\xA0-\uFFFF]/,Hr=/[\.\?\w$\xA0-\uFFFF]/,qr=/\s+[.[]\s*|\s*[.[]\s+/g,Ln=e=>e.type===4?e.content:e.loc.source,Pn=e=>{const t=Ln(e).trim().replace(qr,l=>l.trim());let n=0,r=[],i=0,o=0,a=null;for(let l=0;l<t.length;l++){const c=t.charAt(l);switch(n){case 0:if(c==="[")r.push(n),n=1,i++;else if(c==="(")r.push(n),n=2,o++;else if(!(l===0?Ur:Hr).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(r.push(n),n=3,a=c):c==="["?i++:c==="]"&&(--i||(n=r.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")r.push(n),n=3,a=c;else if(c==="(")o++;else if(c===")"){if(l===t.length-1)return!1;--o||(n=r.pop())}break;case 3:c===a&&(n=r.pop(),a=null);break}}return!i&&!o},Kr=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Wr=e=>Kr.test(Ln(e));function Fn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ee(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(G(t)?i.name===t:t.test(i.name)))return i}}function Ge(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(n)continue;if(o.name===t&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&Ne(o.arg,t))return o}}function Ne(e,t){return!!(e&&V(e)&&e.content===t)}function Gr(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Qt(e){return e.type===5||e.type===2}function jn(e){return e.type===7&&e.name==="pre"}function Jr(e){return e.type===7&&e.name==="slot"}function ot(e){return e.type===1&&e.tagType===3}function at(e){return e.type===1&&e.tagType===2}const Yr=new Set([qe,Ke]);function zn(e,t=[]){if(e&&!G(e)&&e.type===14){const n=e.callee;if(!G(n)&&Yr.has(n))return zn(e.arguments[0],t.concat(e))}return[e,t]}function lt(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],o=[],a;if(i&&!G(i)&&i.type===14){const l=zn(i);i=l[0],o=l[1],a=o[o.length-1]}if(i==null||G(i))r=ae([t]);else if(i.type===14){const l=i.arguments[0];!G(l)&&l.type===15?Un(t,l)||l.properties.unshift(t):i.callee===zt?r=K(n.helper(nt),[ae([t]),i]):i.arguments.unshift(ae([t])),!r&&(r=i)}else i.type===15?(Un(t,i)||i.properties.unshift(t),r=i):(r=K(n.helper(nt),[ae([t]),i]),a&&a.callee===Ke&&(a=o[o.length-2]));e.type===13?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function Un(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function Je(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Xr(e){return e.type===14&&e.callee===Kt?e.arguments[1].returns:e}const Qr=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Hn={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Ve,isPreTag:Ve,isIgnoreNewlineTag:Ve,isCustomElement:Ve,onError:Yt,onWarn:Mn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let O=Hn,Ye=null,ge="",Q=null,_=null,te="",ve=-1,_e=-1,Zt=0,xe=!1,Vt=null;const F=[],R=new Pr(F,{onerr:ne,ontext(e,t){ct(X(e,t),e,t)},ontextentity(e,t,n){ct(e,t,n)},oninterpolation(e,t){if(xe)return ct(X(e,t),e,t);let n=e+R.delimiterOpen.length,r=t-R.delimiterClose.length;for(;re(ge.charCodeAt(n));)n++;for(;re(ge.charCodeAt(r-1));)r--;let i=X(n,r);i.includes("&")&&(i=O.decodeEntities(i,!1)),en({type:5,content:pt(i,!1,H(n,r)),loc:H(e,t)})},onopentagname(e,t){const n=X(e,t);Q={type:1,tag:n,ns:O.getNamespace(n,F[0],O.ns),tagType:0,props:[],children:[],loc:H(e-1,t),codegenNode:void 0}},onopentagend(e){Kn(e)},onclosetag(e,t){const n=X(e,t);if(!O.isVoidTag(n)){let r=!1;for(let i=0;i<F.length;i++)if(F[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&ne(24,F[0].loc.start.offset);for(let a=0;a<=i;a++){const l=F.shift();dt(l,t,a<i)}break}r||ne(23,Wn(e,60))}},onselfclosingtag(e){const t=Q.tag;Q.isSelfClosing=!0,Kn(e),F[0]&&F[0].tag===t&&dt(F.shift(),e)},onattribname(e,t){_={type:6,name:X(e,t),nameLoc:H(e,t),value:void 0,loc:H(e)}},ondirname(e,t){const n=X(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!xe&&r===""&&ne(26,e),xe||r==="")_={type:6,name:n,nameLoc:H(e,t),value:void 0,loc:H(e)};else if(_={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[S("prop")]:[],loc:H(e)},r==="pre"){xe=R.inVPre=!0,Vt=Q;const i=Q.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=li(i[o]))}},ondirarg(e,t){if(e===t)return;const n=X(e,t);if(xe&&!jn(_))_.name+=n,Te(_.nameLoc,t);else{const r=n[0]!=="[";_.arg=pt(r?n:n.slice(1,-1),r,H(e,t),r?3:0)}},ondirmodifier(e,t){const n=X(e,t);if(xe&&!jn(_))_.name+="."+n,Te(_.nameLoc,t);else if(_.name==="slot"){const r=_.arg;r&&(r.content+="."+n,Te(r.loc,t))}else{const r=S(n,!0,H(e,t));_.modifiers.push(r)}},onattribdata(e,t){te+=X(e,t),ve<0&&(ve=e),_e=t},onattribentity(e,t,n){te+=e,ve<0&&(ve=t),_e=n},onattribnameend(e){const t=_.loc.start.offset,n=X(t,e);_.type===7&&(_.rawName=n),Q.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&ne(2,t)},onattribend(e,t){if(Q&&_){if(Te(_.loc,t),e!==0)if(te.includes("&")&&(te=O.decodeEntities(te,!0)),_.type===6)_.name==="class"&&(te=Yn(te).trim()),e===1&&!te&&ne(13,t),_.value={type:2,content:te,loc:e===1?H(ve,_e):H(ve-1,_e+1)},R.inSFCRoot&&Q.tag==="template"&&_.name==="lang"&&te&&te!=="html"&&R.enterRCDATA(rt("</template"),0);else{let n=0;_.exp=pt(te,!1,H(ve,_e),0,n),_.name==="for"&&(_.forParseResult=Vr(_.exp));let r=-1;_.name==="bind"&&(r=_.modifiers.findIndex(i=>i.content==="sync"))>-1&&Le("COMPILER_V_BIND_SYNC",O,_.loc,_.arg.loc.source)&&(_.name="model",_.modifiers.splice(r,1))}(_.type!==7||_.name!=="pre")&&Q.props.push(_)}te="",ve=_e=-1},oncomment(e,t){O.comments&&en({type:3,content:X(e,t),loc:H(e-4,t+3)})},onend(){const e=ge.length;if(process.env.NODE_ENV!=="production"&&R.state!==1)switch(R.state){case 5:case 8:ne(5,e);break;case 3:case 4:ne(25,R.sectionStart);break;case 28:R.currentSequence===Y.CdataEnd?ne(6,e):ne(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:ne(9,e);break}for(let t=0;t<F.length;t++)dt(F[t],e-1),ne(24,F[t].loc.start.offset)},oncdata(e,t){F[0].ns!==0?ct(X(e,t),e,t):ne(1,e-9)},onprocessinginstruction(e){(F[0]?F[0].ns:O.ns)===0&&ne(21,e-1)}}),qn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zr=/^\(|\)$/g;function Vr(e){const t=e.loc,n=e.content,r=n.match(Qr);if(!r)return;const[,i,o]=r,a=(p,f,h=!1)=>{const y=t.start.offset+f,v=y+p.length;return pt(p,!1,H(y,v),0,h?1:0)},l={source:a(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=i.trim().replace(Zr,"").trim();const d=i.indexOf(c),m=c.match(qn);if(m){c=c.replace(qn,"").trim();const p=m[1].trim();let f;if(p&&(f=n.indexOf(p,d+c.length),l.key=a(p,f,!0)),m[2]){const h=m[2].trim();h&&(l.index=a(h,n.indexOf(h,l.key?f+p.length:d+c.length),!0))}}return c&&(l.value=a(c,d,!0)),l}function X(e,t){return ge.slice(e,t)}function Kn(e){R.inSFCRoot&&(Q.innerLoc=H(e+1,e+1)),en(Q);const{tag:t,ns:n}=Q;n===0&&O.isPreTag(t)&&Zt++,O.isVoidTag(t)?dt(Q,e):(F.unshift(Q),(n===1||n===2)&&(R.inXML=!0)),Q=null}function ct(e,t,n){{const o=F[0]&&F[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=O.decodeEntities(e,!1))}const r=F[0]||Ye,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Te(i.loc,n)):r.children.push({type:2,content:e,loc:H(t,n)})}function dt(e,t,n=!1){n?Te(e.loc,Wn(t,60)):Te(e.loc,ei(t,62)+1),R.inSFCRoot&&(e.children.length?e.innerLoc.end=ye({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ye({},e.innerLoc.start),e.innerLoc.source=X(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(xe||(r==="slot"?e.tagType=2:Gn(e)?e.tagType=3:ni(e)&&(e.tagType=1)),R.inRCDATA||(e.children=Jn(o)),i===0&&O.isIgnoreNewlineTag(r)){const a=o[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}i===0&&O.isPreTag(r)&&Zt--,Vt===e&&(xe=R.inVPre=!1,Vt=null),R.inXML&&(F[0]?F[0].ns:O.ns)===0&&(R.inXML=!1);{const a=e.props;if(process.env.NODE_ENV!=="production"&&ke("COMPILER_V_IF_V_FOR_PRECEDENCE",O)){let c=!1,d=!1;for(let m=0;m<a.length;m++){const p=a[m];if(p.type===7&&(p.name==="if"?c=!0:p.name==="for"&&(d=!0)),c&&d){it("COMPILER_V_IF_V_FOR_PRECEDENCE",O,e.loc);break}}}if(!R.inSFCRoot&&ke("COMPILER_NATIVE_TEMPLATE",O)&&e.tag==="template"&&!Gn(e)){process.env.NODE_ENV!=="production"&&it("COMPILER_NATIVE_TEMPLATE",O,e.loc);const c=F[0]||Ye,d=c.children.indexOf(e);c.children.splice(d,1,...e.children)}const l=a.find(c=>c.type===6&&c.name==="inline-template");l&&Le("COMPILER_INLINE_TEMPLATE",O,l.loc)&&e.children.length&&(l.value={type:2,content:X(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:l.loc})}}function ei(e,t){let n=e;for(;ge.charCodeAt(n)!==t&&n<ge.length-1;)n++;return n}function Wn(e,t){let n=e;for(;ge.charCodeAt(n)!==t&&n>=0;)n--;return n}const ti=new Set(["if","else","else-if","for","slot"]);function Gn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&ti.has(t[n].name))return!0}return!1}function ni({tag:e,props:t}){if(O.isCustomElement(e))return!1;if(e==="component"||si(e.charCodeAt(0))||Rn(e)||O.isBuiltInComponent&&O.isBuiltInComponent(e)||O.isNativeTag&&!O.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Le("COMPILER_IS_ON_ELEMENT",O,r.loc))return!0}}else if(r.name==="bind"&&Ne(r.arg,"is")&&Le("COMPILER_IS_ON_ELEMENT",O,r.loc))return!0}return!1}function si(e){return e>64&&e<91}const ri=/\r\n/g;function Jn(e){const t=O.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===2)if(Zt)i.content=i.content.replace(ri,`
12
+ `);else if(ii(i.content)){const o=e[r-1]&&e[r-1].type,a=e[r+1]&&e[r+1].type;!o||!a||t&&(o===3&&(a===3||a===1)||o===1&&(a===3||a===1&&oi(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=Yn(i.content))}return n?e.filter(Boolean):e}function ii(e){for(let t=0;t<e.length;t++)if(!re(e.charCodeAt(t)))return!1;return!0}function oi(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Yn(e){let t="",n=!1;for(let r=0;r<e.length;r++)re(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function en(e){(F[0]||Ye).children.push(e)}function H(e,t){return{start:R.getPos(e),end:t==null?t:R.getPos(t),source:t==null?t:X(e,t)}}function ai(e){return H(e.start.offset,e.end.offset)}function Te(e,t){e.end=R.getPos(t),e.source=X(e.start.offset,t)}function li(e){const t={type:6,name:e.rawName,nameLoc:H(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function pt(e,t=!1,n,r=0,i=0){return S(e,t,n,r)}function ne(e,t,n){O.onError(M(e,H(t,t),void 0,n))}function ci(){R.reset(),Q=null,_=null,te="",ve=-1,_e=-1,F.length=0}function di(e,t){if(ci(),ge=e,O=ye({},Hn),t){let i;for(i in t)t[i]!=null&&(O[i]=t[i])}if(process.env.NODE_ENV!=="production"&&!O.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");R.mode=O.parseMode==="html"?1:O.parseMode==="sfc"?2:0,R.inXML=O.ns===1||O.ns===2;const n=t&&t.delimiters;n&&(R.delimiterOpen=rt(n[0]),R.delimiterClose=rt(n[1]));const r=Ye=Mr([],e);return R.parse(ge),r.loc=H(0,e.length),r.children=Jn(r.children),Ye=null,r}function pi(e,t){ft(e,void 0,t,!!Xn(e))}function Xn(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!at(t[0])?t[0]:null}function ft(e,t,n,r=!1,i=!1){const{children:o}=e,a=[];for(let p=0;p<o.length;p++){const f=o[p];if(f.type===1&&f.tagType===0){const h=r?0:ie(f,n);if(h>0){if(h>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const y=f.codegenNode;if(y.type===13){const v=y.patchFlag;if((v===void 0||v===512||v===1)&&Zn(f,n)>=2){const N=Vn(f);N&&(y.props=n.hoist(N))}y.dynamicProps&&(y.dynamicProps=n.hoist(y.dynamicProps))}}}else if(f.type===12&&(r?0:ie(f,n))>=2){f.codegenNode.type===14&&f.codegenNode.arguments.length>0&&f.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${je[-1]} */`:"")),a.push(f);continue}if(f.type===1){const h=f.tagType===1;h&&n.scopes.vSlot++,ft(f,e,n,!1,i),h&&n.scopes.vSlot--}else if(f.type===11)ft(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let h=0;h<f.branches.length;h++)ft(f.branches[h],e,n,f.branches[h].children.length===1,i)}let l=!1;const c=[];if(a.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&he(e.codegenNode.children))e.codegenNode.children=d(we(e.codegenNode.children)),l=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15){const p=m(e.codegenNode,"default");p&&(c.push(n.cached.length),p.returns=d(we(p.returns)),l=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!he(t.codegenNode.children)&&t.codegenNode.children.type===15){const p=ee(e,"slot",!0),f=p&&p.arg&&m(t.codegenNode,p.arg);f&&(c.push(n.cached.length),f.returns=d(we(f.returns)),l=!0)}}if(!l)for(const p of a)c.push(n.cached.length),p.codegenNode=n.cache(p.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(j("__",S(JSON.stringify(c),!1)));function d(p){const f=n.cache(p);return i&&n.hmr&&(f.needArraySpread=!0),f}function m(p,f){if(p.children&&!he(p.children)&&p.children.type===15){const h=p.children.properties.find(y=>y.key===f||y.key.content===f);return h&&h.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function ie(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let a=3;const l=Zn(e,t);if(l===0)return n.set(e,0),0;l<a&&(a=l);for(let c=0;c<e.children.length;c++){const d=ie(e.children[c],t);if(d===0)return n.set(e,0),0;d<a&&(a=d)}if(a>1)for(let c=0;c<e.props.length;c++){const d=e.props[c];if(d.type===7&&d.name==="bind"&&d.exp){const m=ie(d.exp,t);if(m===0)return n.set(e,0),0;m<a&&(a=m)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(Ce),t.removeHelper(Re(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Me(t.inSSR,i.isComponent))}return n.set(e,a),a}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ie(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const l=e.children[a];if(G(l)||wt(l))continue;const c=ie(l,t);if(c===0)return 0;c<o&&(o=c)}return o;case 20:return 2;default:return process.env.NODE_ENV,0}}const fi=new Set([Ft,jt,qe,Ke]);function Qn(e,t){if(e.type===14&&!G(e.callee)&&fi.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ie(n,t);if(n.type===14)return Qn(n,t)}return 0}function Zn(e,t){let n=3;const r=Vn(e);if(r&&r.type===15){const{properties:i}=r;for(let o=0;o<i.length;o++){const{key:a,value:l}=i[o],c=ie(a,t);if(c===0)return c;c<n&&(n=c);let d;if(l.type===4?d=ie(l,t):l.type===14?d=Qn(l,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function Vn(e){const t=e.codegenNode;if(t.type===13)return t.props}function ui(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:l={},transformHoist:c=null,isBuiltInComponent:d=St,isCustomElement:m=St,expressionPlugins:p=[],scopeId:f=null,slotted:h=!0,ssr:y=!1,inSSR:v=!1,ssrCssVars:N="",bindingMetadata:u=pr,inline:k=!1,isTS:I=!1,onError:J=Yt,onWarn:W=Mn,compatConfig:pe}){const le=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),w={filename:t,selfName:le&&Tt(be(le[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:l,transformHoist:c,isBuiltInComponent:d,isCustomElement:m,expressionPlugins:p,scopeId:f,slotted:h,ssr:y,inSSR:v,ssrCssVars:N,bindingMetadata:u,inline:k,isTS:I,onError:J,onWarn:W,compatConfig:pe,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(x){const B=w.helpers.get(x)||0;return w.helpers.set(x,B+1),x},removeHelper(x){const B=w.helpers.get(x);if(B){const A=B-1;A?w.helpers.set(x,A):w.helpers.delete(x)}},helperString(x){return`_${Be[w.helper(x)]}`},replaceNode(x){if(process.env.NODE_ENV!=="production"){if(!w.currentNode)throw new Error("Node being replaced is already removed.");if(!w.parent)throw new Error("Cannot replace root node.")}w.parent.children[w.childIndex]=w.currentNode=x},removeNode(x){if(process.env.NODE_ENV!=="production"&&!w.parent)throw new Error("Cannot remove root node.");const B=w.parent.children,A=x?B.indexOf(x):w.currentNode?w.childIndex:-1;if(process.env.NODE_ENV!=="production"&&A<0)throw new Error("node being removed is not a child of current parent");!x||x===w.currentNode?(w.currentNode=null,w.onNodeRemoved()):w.childIndex>A&&(w.childIndex--,w.onNodeRemoved()),w.parent.children.splice(A,1)},onNodeRemoved:St,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){G(x)&&(x=S(x)),w.hoists.push(x);const B=S(`_hoisted_${w.hoists.length}`,!1,x.loc,2);return B.hoisted=x,B},cache(x,B=!1,A=!1){const C=Rr(w.cached.length,x,B,A);return w.cached.push(C),C}};return w.filters=new Set,w}function hi(e,t){const n=ui(e,t);ut(e,n),t.hoistStatic&&pi(e,n),t.ssr||mi(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function mi(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=Xn(e);if(i&&i.codegenNode){const o=i.codegenNode;o.type===13&&Gt(o,t),e.codegenNode=o}else e.codegenNode=r[0]}else if(r.length>1){let i=64;process.env.NODE_ENV!=="production"&&r.filter(o=>o.type!==3).length===1&&(i|=2048),e.codegenNode=We(t,n(ze),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function gi(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];G(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,ut(i,t))}}function ut(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const a=n[o](e,t);if(a&&(he(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(He);break;case 5:t.ssr||t.helper(tt);break;case 9:for(let o=0;o<e.branches.length;o++)ut(e.branches[o],t);break;case 10:case 11:case 1:case 0:gi(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function es(e,t){const n=G(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:o}=r;if(r.tagType===3&&o.some(Jr))return;const a=[];for(let l=0;l<o.length;l++){const c=o[l];if(c.type===7&&n(c.name)){o.splice(l,1),l--;const d=t(r,c,i);d&&a.push(d)}}return a}}}const ht="/*@__PURE__*/",ts=e=>`${Be[e]}: _${Be[e]}`;function vi(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:m=!1,isTS:p=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:m,isTS:p,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${Be[v]}`},push(v,N=-2,u){h.code+=v},indent(){y(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:y(--h.indentLevel)},newline(){y(h.indentLevel)}};function y(v){h.push(`
13
+ `+" ".repeat(v),0)}return h}function yi(e,t={}){const n=vi(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:l,newline:c,scopeId:d,ssr:m}=n,p=Array.from(e.helpers),f=p.length>0,h=!o&&r!=="module";bi(e,n);const v=m?"ssrRender":"render",u=(m?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${v}(${u}) {`),a(),h&&(i("with (_ctx) {"),a(),f&&(i(`const { ${p.map(ts).join(", ")} } = _Vue
14
+ `,-1),c())),e.components.length&&(tn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(tn(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),tn(e.filters,"filter",n),c()),e.temps>0){i("let ");for(let k=0;k<e.temps;k++)i(`${k>0?", ":""}_temp${k}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
15
+ `,0),c()),m||i("return "),e.codegenNode?Z(e.codegenNode,n):i("null"),h&&(l(),i("}")),l(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function bi(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,d=l,m=Array.from(e.helpers);if(m.length>0&&(i(`const _Vue = ${d}
16
+ `,-1),e.hoists.length)){const p=[Dt,It,He,At,Tn].filter(f=>m.includes(f)).map(ts).join(", ");i(`const { ${p} } = _Vue
17
+ `,-1)}Ei(e.hoists,t),o(),i("return ")}function tn(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n(t==="filter"?Rt:t==="component"?Bt:Mt);for(let l=0;l<e.length;l++){let c=e[l];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${Je(c,t)} = ${a}(${JSON.stringify(c)}${d?", true":""})${o?"!":""}`),l<e.length-1&&i()}}function Ei(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),Z(o,t),r())}t.pure=!1}function ki(e){return G(e)||e.type===4||e.type===2||e.type===5||e.type===8}function nn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>he(r)||!ki(r));t.push("["),n&&t.indent(),Xe(e,t,n),n&&t.deindent(),t.push("]")}function Xe(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const l=e[a];G(l)?i(l,-3):he(l)?nn(l,t):Z(l,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Z(e,t){if(G(e)){t.push(e,-3);return}if(wt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Fn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Z(e.codegenNode,t);break;case 2:Ni(e,t);break;case 4:ns(e,t);break;case 5:xi(e,t);break;case 12:Z(e.codegenNode,t);break;case 8:ss(e,t);break;case 3:Ci(e,t);break;case 13:wi(e,t);break;case 14:Ti(e,t);break;case 15:Oi(e,t);break;case 17:Di(e,t);break;case 18:Ii(e,t);break;case 19:Ai(e,t);break;case 20:Bi(e,t);break;case 21:Xe(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return Fn(!1,`unhandled codegen node type: ${e.type}`),e}}function Ni(e,t){t.push(JSON.stringify(e.content),-3,e)}function ns(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function xi(e,t){const{push:n,helper:r,pure:i}=t;i&&n(ht),n(`${r(tt)}(`),Z(e.content,t),n(")")}function ss(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];G(r)?t.push(r,-3):Z(r,t)}}function Si(e,t){const{push:n}=t;if(e.type===8)n("["),ss(e,t),n("]");else if(e.isStatic){const r=Xt(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Ci(e,t){const{push:n,helper:r,pure:i}=t;i&&n(ht),n(`${r(He)}(${JSON.stringify(e.content)})`,-3,e)}function wi(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:l,patchFlag:c,dynamicProps:d,directives:m,isBlock:p,disableTracking:f,isComponent:h}=e;let y;if(c)if(process.env.NODE_ENV!=="production")if(c<0)y=c+` /* ${je[c]} */`;else{const N=Object.keys(je).map(Number).filter(u=>u>0&&c&u).map(u=>je[u]).join(", ");y=c+` /* ${N} */`}else y=String(c);m&&n(r(Lt)+"("),p&&n(`(${r(Ce)}(${f?"true":""}), `),i&&n(ht);const v=p?Re(t.inSSR,h):Me(t.inSSR,h);n(r(v)+"(",-2,e),Xe(_i([o,a,l,y,d]),t),n(")"),p&&n(")"),m&&(n(", "),Z(m,t),n(")"))}function _i(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Ti(e,t){const{push:n,helper:r,pure:i}=t,o=G(e.callee)?e.callee:r(e.callee);i&&n(ht),n(o+"(",-2,e),Xe(e.arguments,t),n(")")}function Oi(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length){n("{}",-2,e);return}const l=a.length>1||process.env.NODE_ENV!=="production"&&a.some(c=>c.value.type!==4);n(l?"{":"{ "),l&&r();for(let c=0;c<a.length;c++){const{key:d,value:m}=a[c];Si(d,t),n(": "),Z(m,t),c<a.length-1&&(n(","),o())}l&&i(),n(l?"}":" }")}function Di(e,t){nn(e.elements,t)}function Ii(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:l,newline:c,isSlot:d}=e;d&&n(`_${Be[qt]}(`),n("(",-2,e),he(o)?Xe(o,t):o&&Z(o,t),n(") => "),(c||l)&&(n("{"),r()),a?(c&&n("return "),he(a)?nn(a,t):Z(a,t)):l&&Z(l,t),(c||l)&&(i(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Ai(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:l,deindent:c,newline:d}=t;if(n.type===4){const p=!Xt(n.content);p&&a("("),ns(n,t),p&&a(")")}else a("("),Z(n,t),a(")");o&&l(),t.indentLevel++,o||a(" "),a("? "),Z(r,t),t.indentLevel--,o&&d(),o||a(" "),a(": ");const m=i.type===19;m||t.indentLevel++,Z(i,t),m||t.indentLevel--,o&&c(!0)}function Bi(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t,{needPauseTracking:l,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),l&&(i(),n(`${r(st)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("(")),n(`_cache[${e.index}] = `),Z(e.value,t),l&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(st)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")"),c&&n(")]")}const $i=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),Mi=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Oe(e,t,n=!1,r=!1){const i=e.content;if(i.trim())try{new Function(r?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(o){let a=o.message;const l=i.replace(Mi,"").match($i);l&&(a=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(M(45,e.loc,void 0,a))}}const Ri=(e,t)=>{if(e.type===5)e.content=sn(e.content,t);else if(e.type===1){const n=ee(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const o=i.exp,a=i.arg;o&&o.type===4&&!(i.name==="on"&&a)&&!(n&&a&&a.type===4&&a.content==="key")&&(i.exp=sn(o,t,i.name==="slot")),a&&a.type===4&&!a.isStatic&&(i.arg=sn(a,t))}}}};function sn(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Oe(e,t,n,r),e}const Li=es(/^(if|else|else-if)$/,(e,t,n)=>Pi(e,t,n,(r,i,o)=>{const a=n.parent.children;let l=a.indexOf(r),c=0;for(;l-->=0;){const d=a[l];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(o)r.codegenNode=is(i,c,n);else{const d=ji(r.codegenNode);d.alternate=is(i,c+r.branches.length-1,n)}}}));function Pi(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(M(28,t.loc)),t.exp=S("true",!1,i)}if(process.env.NODE_ENV!=="production"&&t.exp&&Oe(t.exp,n),t.name==="if"){const i=rs(e,t),o={type:9,loc:ai(e.loc),branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children,o=[];let a=i.indexOf(e);for(;a-->=-1;){const l=i[a];if(l&&l.type===3){n.removeNode(l),process.env.NODE_ENV!=="production"&&o.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(M(30,e.loc)),n.removeNode();const c=rs(e,t);if(process.env.NODE_ENV!=="production"&&o.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...o,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&l.branches.forEach(({userKey:p})=>{Fi(p,m)&&n.onError(M(29,c.userKey.loc))})}l.branches.push(c);const d=r&&r(l,c,!1);ut(c,n),d&&d(),n.currentNode=null}else n.onError(M(30,e.loc));break}}}function rs(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!ee(e,"for")?e.children:[e],userKey:Ge(e,"key"),isTemplateIf:n}}function is(e,t,n){return e.condition?Wt(e.condition,os(e,t,n),K(n.helper(He),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):os(e,t,n)}function os(e,t,n){const{helper:r}=n,i=j("key",S(`${t}`,!1,se,2)),{children:o}=e,a=o[0];if(o.length!==1||a.type!==1)if(o.length===1&&a.type===11){const c=a.codegenNode;return lt(c,i,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&o.filter(d=>d.type!==3).length===1&&(c|=2048),We(n,r(ze),ae([i]),o,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=a.codegenNode,d=Xr(c);return d.type===13&&Gt(d,n),lt(d,i,n),c}}function Fi(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function ji(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const zi=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(o.type!==4||!o.isStatic)return n.onError(M(52,o.loc)),{props:[j(o,S("",!0,i))]};as(e),a=e.exp}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),r.some(l=>l.content==="camel")&&(o.type===4?o.isStatic?o.content=be(o.content):o.content=`${n.helperString(Ut)}(${o.content})`:(o.children.unshift(`${n.helperString(Ut)}(`),o.children.push(")"))),n.inSSR||(r.some(l=>l.content==="prop")&&ls(o,"."),r.some(l=>l.content==="attr")&&ls(o,"^")),{props:[j(o,a)]}},as=(e,t)=>{const n=e.arg,r=be(n.content);e.exp=S(r,!1,n.loc)},ls=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ui=es("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return Hi(e,t,n,o=>{const a=K(r(Pt),[o.source]),l=ot(e),c=ee(e,"memo"),d=Ge(e,"key",!1,!0);d&&d.type===7&&!d.exp&&as(d);let p=d&&(d.type===6?d.value?S(d.value.content,!0):void 0:d.exp);const f=d&&p?j("key",p):null,h=o.source.type===4&&o.source.constType>0,y=h?64:d?128:256;return o.codegenNode=We(n,r(ze),void 0,a,y,void 0,void 0,!0,!h,!1,e.loc),()=>{let v;const{children:N}=o;process.env.NODE_ENV!=="production"&&l&&e.children.some(I=>{if(I.type===1){const J=Ge(I,"key");if(J)return n.onError(M(33,J.loc)),!0}});const u=N.length!==1||N[0].type!==1,k=at(e)?e:l&&e.children.length===1&&at(e.children[0])?e.children[0]:null;if(k?(v=k.codegenNode,l&&f&&lt(v,f,n)):u?v=We(n,r(ze),f?ae([f]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(v=N[0].codegenNode,l&&f&&lt(v,f,n),v.isBlock!==!h&&(v.isBlock?(i(Ce),i(Re(n.inSSR,v.isComponent))):i(Me(n.inSSR,v.isComponent))),v.isBlock=!h,v.isBlock?(r(Ce),r(Re(n.inSSR,v.isComponent))):r(Me(n.inSSR,v.isComponent))),c){const I=$e(rn(o.parseResult,[S("_cached")]));I.body=Lr([ce(["const _memo = (",c.exp,")"]),ce(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(In)}(_cached, _memo)) return _cached`]),ce(["const _item = ",v]),S("_item.memo = _memo"),S("return _item")]),a.arguments.push(I,S("_cache"),S(String(n.cached.length))),n.cached.push(null)}else a.arguments.push($e(rn(o.parseResult),v,!0))}})});function Hi(e,t,n,r){if(!t.exp){n.onError(M(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(M(32,t.loc));return}cs(i,n);const{addIdentifiers:o,removeIdentifiers:a,scopes:l}=n,{source:c,value:d,key:m,index:p}=i,f={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:m,objectIndexAlias:p,parseResult:i,children:ot(e)?e.children:[e]};n.replaceNode(f),l.vFor++;const h=r&&r(f);return()=>{l.vFor--,h&&h()}}function cs(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Oe(e.source,t),e.key&&Oe(e.key,t,!0),e.index&&Oe(e.index,t,!0),e.value&&Oe(e.value,t,!0)),e.finalized=!0)}function rn({value:e,key:t,index:n},r=[]){return qi([e,t,n,...r])}function qi(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||S("_".repeat(r+1),!1))}const ds=S("undefined",!1),Ki=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=ee(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Wi=(e,t,n,r)=>$e(e,n,!1,!0,n.length?n[0].loc:r);function Gi(e,t,n=Wi){t.helper(qt);const{children:r,loc:i}=e,o=[],a=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ee(e,"slot",!0);if(c){const{arg:N,exp:u}=c;N&&!V(N)&&(l=!0),o.push(j(N||S("default",!0),n(u,void 0,r,i)))}let d=!1,m=!1;const p=[],f=new Set;let h=0;for(let N=0;N<r.length;N++){const u=r[N];let k;if(!ot(u)||!(k=ee(u,"slot",!0))){u.type!==3&&p.push(u);continue}if(c){t.onError(M(37,k.loc));break}d=!0;const{children:I,loc:J}=u,{arg:W=S("default",!0),exp:pe,loc:le}=k;let w;V(W)?w=W?W.content:"default":l=!0;const x=ee(u,"for"),B=n(pe,x,I,J);let A,C;if(A=ee(u,"if"))l=!0,a.push(Wt(A.exp,mt(W,B,h++),ds));else if(C=ee(u,/^else(-if)?$/,!0)){let $=N,L;for(;$--&&(L=r[$],!(L.type!==3&&on(L))););if(L&&ot(L)&&ee(L,/^(else-)?if$/)){let P=a[a.length-1];for(;P.alternate.type===19;)P=P.alternate;P.alternate=C.exp?Wt(C.exp,mt(W,B,h++),ds):mt(W,B,h++)}else t.onError(M(30,C.loc))}else if(x){l=!0;const $=x.forParseResult;$?(cs($,t),a.push(K(t.helper(Pt),[$.source,$e(rn($),mt(W,B),!0)]))):t.onError(M(32,x.loc))}else{if(w){if(f.has(w)){t.onError(M(38,le));continue}f.add(w),w==="default"&&(m=!0)}o.push(j(W,B))}}if(!c){const N=(u,k)=>{const I=n(u,void 0,k,i);return t.compatConfig&&(I.isNonScopedSlot=!0),j("default",I)};d?p.length&&p.some(u=>on(u))&&(m?t.onError(M(39,p[0].loc)):o.push(N(void 0,p))):o.push(N(void 0,r))}const y=l?2:gt(e.children)?3:1;let v=ae(o.concat(j("_",S(y+(process.env.NODE_ENV!=="production"?` /* ${gr[y]} */`:""),!1))),i);return a.length&&(v=K(t.helper(Dn),[v,we(a)])),{slots:v,hasDynamicSlots:l}}function mt(e,t,n){const r=[j("name",e),j("fn",t)];return n!=null&&r.push(j("key",S(String(n),!0))),ae(r)}function gt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||gt(n.children))return!0;break;case 9:if(gt(n.branches))return!0;break;case 10:case 11:if(gt(n.children))return!0;break}}return!1}function on(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():on(e.content)}const ps=new WeakMap,Ji=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,o=e.tagType===1;let a=o?Yi(e,t):`"${r}"`;const l=fr(a)&&a.callee===$t;let c,d,m=0,p,f,h,y=l||a===Ue||a===Ot||!o&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const v=fs(e,t,void 0,o,l);c=v.props,m=v.patchFlag,f=v.dynamicPropNames;const N=v.directives;h=N&&N.length?we(N.map(u=>Qi(u,t))):void 0,v.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(a===et&&(y=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(M(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),o&&a!==Ue&&a!==et){const{slots:N,hasDynamicSlots:u}=Gi(e,t);d=N,u&&(m|=1024)}else if(e.children.length===1&&a!==Ue){const N=e.children[0],u=N.type,k=u===5||u===8;k&&ie(N,t)===0&&(m|=1),k||u===2?d=N:d=e.children}else d=e.children;f&&f.length&&(p=Zi(f)),e.codegenNode=We(t,a,c,d,m===0?void 0:m,p,h,!!y,!1,o,e.loc)};function Yi(e,t,n=!1){let{tag:r}=e;const i=an(r),o=Ge(e,"is",!1,!0);if(o)if(i||ke("COMPILER_IS_ON_ELEMENT",t)){let l;if(o.type===6?l=o.value&&S(o.value.content,!0):(l=o.exp,l||(l=S("is",!1,o.arg.loc))),l)return K(t.helper($t),[l])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=Rn(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Bt),t.components.add(r),Je(r,"component"))}function fs(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:l,children:c}=e;let d=[];const m=[],p=[],f=c.length>0;let h=!1,y=0,v=!1,N=!1,u=!1,k=!1,I=!1,J=!1;const W=[],pe=B=>{d.length&&(m.push(ae(us(d),l)),d=[]),B&&m.push(B)},le=()=>{t.scopes.vFor>0&&d.push(j(S("ref_for",!0),S("true")))},w=({key:B,value:A})=>{if(V(B)){const C=B.content,$=Ct(C);if($&&(!r||i)&&C.toLowerCase()!=="onclick"&&C!=="onUpdate:modelValue"&&!Sn(C)&&(k=!0),$&&Sn(C)&&(J=!0),$&&A.type===14&&(A=A.arguments[0]),A.type===20||(A.type===4||A.type===8)&&ie(A,t)>0)return;C==="ref"?v=!0:C==="class"?N=!0:C==="style"?u=!0:C!=="key"&&!W.includes(C)&&W.push(C),r&&(C==="class"||C==="style")&&!W.includes(C)&&W.push(C)}else I=!0};for(let B=0;B<n.length;B++){const A=n[B];if(A.type===6){const{loc:C,name:$,nameLoc:L,value:P}=A;let oe=!0;if($==="ref"&&(v=!0,le()),$==="is"&&(an(a)||P&&P.content.startsWith("vue:")||ke("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(j(S($,!0,L),S(P?P.content:"",oe,P?P.loc:C)))}else{const{name:C,arg:$,exp:L,loc:P,modifiers:oe}=A,me=C==="bind",Ie=C==="on";if(C==="slot"){r||t.onError(M(40,P));continue}if(C==="once"||C==="memo"||C==="is"||me&&Ne($,"is")&&(an(a)||ke("COMPILER_IS_ON_ELEMENT",t))||Ie&&o)continue;if((me&&Ne($,"key")||Ie&&f&&Ne($,"vue:before-update"))&&(h=!0),me&&Ne($,"ref")&&le(),!$&&(me||Ie)){if(I=!0,L)if(me){if(pe(),process.env.NODE_ENV!=="production"&&m.some(fe=>fe.type===15?fe.properties.some(({key:Ae})=>Ae.type!==4||!Ae.isStatic?!0:Ae.content!=="class"&&Ae.content!=="style"&&!Ct(Ae.content)):!0)&&Le("COMPILER_V_BIND_OBJECT_ORDER",t,P),ke("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(L);continue}le(),pe(),m.push(L)}else pe({type:14,loc:P,callee:t.helper(zt),arguments:r?[L]:[L,"true"]});else t.onError(M(me?34:35,P));continue}me&&oe.some(z=>z.content==="prop")&&(y|=32);const Qe=t.directiveTransforms[C];if(Qe){const{props:z,needRuntime:fe}=Qe(A,e,t);!o&&z.forEach(w),Ie&&$&&!V($)?pe(ae(z,l)):d.push(...z),fe&&(p.push(A),wt(fe)&&ps.set(A,fe))}else ur(C)||(p.push(A),f&&(h=!0))}}let x;if(m.length?(pe(),m.length>1?x=K(t.helper(nt),m,l):x=m[0]):d.length&&(x=ae(us(d),l)),I?y|=16:(N&&!r&&(y|=2),u&&!r&&(y|=4),W.length&&(y|=8),k&&(y|=32)),!h&&(y===0||y===32)&&(v||J||p.length>0)&&(y|=512),!t.inSSR&&x)switch(x.type){case 15:let B=-1,A=-1,C=!1;for(let P=0;P<x.properties.length;P++){const oe=x.properties[P].key;V(oe)?oe.content==="class"?B=P:oe.content==="style"&&(A=P):oe.isHandlerKey||(C=!0)}const $=x.properties[B],L=x.properties[A];C?x=K(t.helper(qe),[x]):($&&!V($.value)&&($.value=K(t.helper(Ft),[$.value])),L&&(u||L.value.type===4&&L.value.content.trim()[0]==="["||L.value.type===17)&&(L.value=K(t.helper(jt),[L.value])));break;case 14:break;default:x=K(t.helper(qe),[K(t.helper(Ke),[x])]);break}return{props:x,directives:p,patchFlag:y,dynamicPropNames:W,shouldUseBlock:h}}function us(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?(o==="style"||o==="class"||Ct(o))&&Xi(a,i):(t.set(o,i),n.push(i))}return n}function Xi(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=we([e.value,t.value],e.loc)}function Qi(e,t){const n=[],r=ps.get(e);r?n.push(t.helperString(r)):(t.helper(Mt),t.directives.add(e.name),n.push(Je(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const o=S("true",!1,i);n.push(ae(e.modifiers.map(a=>j(a,o)),i))}return we(n,e.loc)}function Zi(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function an(e){return e==="component"||e==="Component"}const Vi=(e,t)=>{if(at(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=eo(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let l=2;o&&(a[2]=o,l=3),n.length&&(a[3]=$e([],n,!1,!1,r),l=4),t.scopeId&&!t.slotted&&(l=5),a.splice(l),e.codegenNode=K(t.helper(On),a,r)}};function eo(e,t){let n='"default"',r;const i=[];for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===6)a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=be(a.name),i.push(a)));else if(a.name==="bind"&&Ne(a.arg,"name")){if(a.exp)n=a.exp;else if(a.arg&&a.arg.type===4){const l=be(a.arg.content);n=a.exp=S(l,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&V(a.arg)&&(a.arg.content=be(a.arg.content)),i.push(a)}if(i.length>0){const{props:o,directives:a}=fs(e,t,i,!1,!1);r=o,a.length&&t.onError(M(36,a[0].loc))}return{slotName:n,slotProps:r}}const hs=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;!e.exp&&!o.length&&n.onError(M(35,i));let l;if(a.type===4)if(a.isStatic){let p=a.content;process.env.NODE_ENV!=="production"&&p.startsWith("vnode")&&n.onError(M(51,a.loc)),p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const f=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?mr(be(p)):`on:${p}`;l=S(f,!0,a.loc)}else l=ce([`${n.helperString(Ht)}(`,a,")"]);else l=a,l.children.unshift(`${n.helperString(Ht)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=Pn(c),f=!(p||Wr(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Oe(c,n,!1,h),(f||d&&p)&&(c=ce([`${f?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[j(l,c||S("() => {}",!1,i))]};return r&&(m=r(m)),d&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(p=>p.key.isHandlerKey=!0),m},to=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let o=0;o<n.length;o++){const a=n[o];if(Qt(a)){i=!0;for(let l=o+1;l<n.length;l++){const c=n[l];if(Qt(c))r||(r=n[o]=ce([a],a.loc)),r.children.push(" + ",c),n.splice(l,1),l--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<n.length;o++){const a=n[o];if(Qt(a)||a.type===8){const l=[];(a.type!==2||a.content!==" ")&&l.push(a),!t.ssr&&ie(a,t)===0&&l.push(1+(process.env.NODE_ENV!=="production"?` /* ${je[1]} */`:"")),n[o]={type:12,content:a,loc:a.loc,codegenNode:K(t.helper(At),l)}}}}},ms=new WeakSet,no=(e,t)=>{if(e.type===1&&ee(e,"once",!0))return ms.has(e)||t.inVOnce||t.inSSR?void 0:(ms.add(e),t.inVOnce=!0,t.helper(st),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},gs=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(M(41,e.loc)),vt();const o=r.loc.source.trim(),a=r.type===4?r.content:o,l=n.bindingMetadata[o];if(l==="props"||l==="props-aliased")return n.onError(M(44,r.loc)),vt();if(!a.trim()||!Pn(r))return n.onError(M(42,r.loc)),vt();const c=i||S("modelValue",!0),d=i?V(i)?`onUpdate:${be(i.content)}`:ce(['"onUpdate:" + ',i]):"onUpdate:modelValue";let m;const p=n.isTS?"($event: any)":"$event";m=ce([`${p} => ((`,r,") = $event)"]);const f=[j(c,e.exp),j(d,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(Xt(v)?v:JSON.stringify(v))+": true").join(", "),y=i?V(i)?`${i.content}Modifiers`:ce([i,' + "Modifiers"']):"modelModifiers";f.push(j(y,S(`{ ${h} }`,!1,e.loc,2)))}return vt(f)};function vt(e=[]){return{props:e}}const so=/[\w).+\-_$\]]/,ro=(e,t)=>{ke("COMPILER_FILTERS",t)&&(e.type===5?yt(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&yt(n.exp,t)}))};function yt(e,t){if(e.type===4)vs(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?vs(r,t):r.type===8?yt(e,t):r.type===5&&yt(r.content,t))}}function vs(e,t){const n=e.content;let r=!1,i=!1,o=!1,a=!1,l=0,c=0,d=0,m=0,p,f,h,y,v=[];for(h=0;h<n.length;h++)if(f=p,p=n.charCodeAt(h),r)p===39&&f!==92&&(r=!1);else if(i)p===34&&f!==92&&(i=!1);else if(o)p===96&&f!==92&&(o=!1);else if(a)p===47&&f!==92&&(a=!1);else if(p===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!l&&!c&&!d)y===void 0?(m=h+1,y=n.slice(0,h).trim()):N();else{switch(p){case 34:i=!0;break;case 39:r=!0;break;case 96:o=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:l++;break;case 125:l--;break}if(p===47){let u=h-1,k;for(;u>=0&&(k=n.charAt(u),k===" ");u--);(!k||!so.test(k))&&(a=!0)}}y===void 0?y=n.slice(0,h).trim():m!==0&&N();function N(){v.push(n.slice(m,h).trim()),m=h+1}if(v.length){for(process.env.NODE_ENV!=="production"&&it("COMPILER_FILTERS",t,e.loc),h=0;h<v.length;h++)y=io(y,v[h],t);e.content=y,e.ast=void 0}}function io(e,t,n){n.helper(Rt);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Je(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${Je(i,"filter")}(${e}${o!==")"?","+o:o}`}}const ys=new WeakSet,oo=(e,t)=>{if(e.type===1){const n=ee(e,"memo");return!n||ys.has(e)?void 0:(ys.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Gt(r,t),e.codegenNode=K(t.helper(Kt),[n.exp,$e(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function ao(e){return[[no,Li,oo,Ui,ro,...process.env.NODE_ENV!=="production"?[Ri]:[],Vi,Ji,Ki,to],{on:hs,bind:zi,model:gs}]}function lo(e,t={}){const n=t.onError||Yt,r=t.mode==="module";t.prefixIdentifiers===!0?n(M(47)):r&&n(M(48));const i=!1;t.cacheHandlers&&n(M(49)),t.scopeId&&!r&&n(M(50));const o=ye({},t,{prefixIdentifiers:i}),a=G(e)?di(e,o):e,[l,c]=ao();return hi(a,ye({},o,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:ye({},c,t.directiveTransforms||{})})),yi(a,o)}const co=()=>({props:[]});/**
18
+ * @vue/compiler-dom v3.5.18
19
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
+ * @license MIT
21
+ **/const bs=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Es=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),ks=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ns=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),ln=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),xs=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Ss=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),cn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),ws=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");$r({[bs]:"vModelRadio",[Es]:"vModelCheckbox",[ks]:"vModelText",[Ns]:"vModelSelect",[ln]:"vModelDynamic",[xs]:"withModifiers",[Ss]:"withKeys",[Cs]:"vShow",[cn]:"Transition",[ws]:"TransitionGroup"});let Pe;function po(e,t=!1){return Pe||(Pe=document.createElement("div")),t?(Pe.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Pe.children[0].getAttribute("foo")):(Pe.innerHTML=e,Pe.textContent)}const fo={parseMode:"html",isVoidTag:Tr,isNativeTag:e=>Cr(e)||wr(e)||_r(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:po,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return cn;if(e==="TransitionGroup"||e==="transition-group")return ws},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},uo=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:S("style",!0,t.loc),exp:ho(t.value.content,t.loc),modifiers:[],loc:t.loc})})},ho=(e,t)=>{const n=Er(e);return S(JSON.stringify(n),!1,t,3)};function de(e,t){return M(e,t,process.env.NODE_ENV!=="production"?mo:void 0)}const mo={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},go=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(de(53,i)),t.children.length&&(n.onError(de(54,i)),t.children.length=0),{props:[j(S("innerHTML",!0,i),r||S("",!0))]}},vo=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(de(55,i)),t.children.length&&(n.onError(de(56,i)),t.children.length=0),{props:[j(S("textContent",!0),r?ie(r,n)>0?r:K(n.helperString(tt),[r],i):S("",!0))]}},yo=(e,t,n)=>{const r=gs(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(de(58,e.arg.loc));function i(){const l=ee(t,"bind");l&&Ne(l.arg,"value")&&n.onError(de(60,l.loc))}const{tag:o}=t,a=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||a){let l=ks,c=!1;if(o==="input"||a){const d=Ge(t,"type");if(d){if(d.type===7)l=ln;else if(d.value)switch(d.value.content){case"radio":l=bs;break;case"checkbox":l=Es;break;case"file":c=!0,n.onError(de(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&i();break}}else Gr(t)?l=ln:process.env.NODE_ENV!=="production"&&i()}else o==="select"?l=Ns:process.env.NODE_ENV!=="production"&&i();c||(r.needRuntime=n.helper(l))}else n.onError(de(57,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},bo=ue("passive,once,capture"),Eo=ue("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ko=ue("left,right"),_s=ue("onkeyup,onkeydown,onkeypress"),No=(e,t,n,r)=>{const i=[],o=[],a=[];for(let l=0;l<t.length;l++){const c=t[l].content;c==="native"&&Le("COMPILER_V_ON_NATIVE",n,r)||bo(c)?a.push(c):ko(c)?V(e)?_s(e.content.toLowerCase())?i.push(c):o.push(c):(i.push(c),o.push(c)):Eo(c)?o.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},Ts=(e,t)=>V(e)&&e.content.toLowerCase()==="onclick"?S(t,!0):e.type!==4?ce(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,xo=(e,t,n)=>hs(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:o,value:a}=r.props[0];const{keyModifiers:l,nonKeyModifiers:c,eventOptionModifiers:d}=No(o,i,n,e.loc);if(c.includes("right")&&(o=Ts(o,"onContextmenu")),c.includes("middle")&&(o=Ts(o,"onMouseup")),c.length&&(a=K(n.helper(xs),[a,JSON.stringify(c)])),l.length&&(!V(o)||_s(o.content.toLowerCase()))&&(a=K(n.helper(Ss),[a,JSON.stringify(l)])),d.length){const m=d.map(Tt).join("");o=V(o)?S(`${o.content}${m}`,!0):ce(["(",o,`) + "${m}"`])}return{props:[j(o,a)]}}),So=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(de(61,i)),{props:[],needRuntime:n.helper(Cs)}},Co=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===cn)return()=>{if(!e.children.length)return;Os(e)&&t.onError(de(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const i of r.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Os(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Os)}const wo=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(de(63,e.loc)),t.removeNode())};function _o(e,t){return e==="template"?!0:e in Ds?Ds[e].has(t):t in Is?Is[t].has(e):!(e in As&&As[e].has(t)||t in Bs&&Bs[t].has(e))}const Fe=new Set(["h1","h2","h3","h4","h5","h6"]),De=new Set([]),Ds={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:De,iframe:De,option:De,textarea:De,style:De,title:De},Is={html:De,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},As={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Bs={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:Fe,h2:Fe,h3:Fe,h4:Fe,h5:Fe,h6:Fe},To=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!_o(t.parent.tag,e.tag)){const n=new SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}},Oo=[uo,...process.env.NODE_ENV!=="production"?[Co,To]:[]],Do={cloak:co,html:go,text:vo,model:yo,on:xo,show:So};function Io(e,t={}){return lo(e,ye({},fo,t,{nodeTransforms:[wo,...Oo,...t.nodeTransforms||[]],directiveTransforms:ye({},Do,t.directiveTransforms||{}),transformHoist:null}))}function Ao(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:r}=Io(n,{mode:"function"}),i=new Function("Vue",`${r}; return render`)(qs);return s.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(o,a){return t?.setup?.()??{}},render:i})}const dn={};function $s(e){return dn[e]||(dn[e]=Ao(e,{props:{row:Object,value:null,data:Object,column:Object}})),dn[e]}const Bo={class:"py-10 flex flex-col justify-center items-center text-center"},$o={class:"max-w-sm mx-auto"},Mo={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Ro={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Lo=s.defineComponent({__name:"nodata",props:{title:{default:"No data"},description:{default:"No data here yet. We will notify you when there's an update."}},setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("div",Bo,[n[0]||(n[0]=s.createStaticVNode('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),s.createElementVNode("div",$o,[s.createElementVNode("p",Mo,s.toDisplayString(t.title),1),s.createElementVNode("p",Ro,s.toDisplayString(t.description),1)])]))}}),Po={key:0,class:"text-center py-8"},Fo={class:"inline-flex items-center space-x-2"},jo={key:2,class:"overflow-x-auto"},zo=["checked","indeterminate"],Uo=["onClick"],Ho={class:"flex items-center justify-between"},qo={key:0,class:"ml-1 text-xs"},Ko=["onClick"],Wo=["checked","onChange"],Go=["onClick"],Jo={key:1,class:"text-center"},Yo=["colspan"],bt=s.defineComponent({name:"DataTable",__name:"DataTable",props:{rows:{default:()=>[]},columns:{default:()=>[]},api:{},router:{},tableStyle:{default:""},size:{default:"medium"},theme:{default:"light"},loading:{type:Boolean,default:!1},classWrapper:{default:""},classTable:{default:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},classTbody:{default:""},classTr:{default:""},classTd:{default:""},classTh:{default:""},classThead:{default:""},classLink:{default:""},selectable:{type:Boolean,default:!1},selectedRows:{default:()=>[]},limit:{default:10},page:{default:1},total:{default:0},showPagination:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0}},emits:["update:page","update:selectedRows","row-click","sort"],setup(e,{emit:t}){const n=e,r=t,i=s.ref(n.selectedRows||[]),o=s.ref([]),a=s.ref([]),l=s.ref([]),c=s.ref(!1),d=s.ref(null),m=s.ref(n.router),p=s.useSlots(),f=s.computed(()=>p.action);function h(g){if(m.value){m.value.push(g);return}location.href=g}const y=s.computed(()=>{if(n.api)return a.value;if(n.sortable&&o.value.length>0){const g=[...n.rows];return g.sort((T,E)=>{for(const D of o.value){if(!D.direction)return 0;const b=T[D.field],q=E[D.field];if(b==null)return 1;if(q==null)return-1;let Se=0;typeof b=="string"&&typeof q=="string"?Se=b.localeCompare(q):b<q?Se=-1:b>q?Se=1:Se=0;const kt=D.direction==="desc"?-Se:Se;if(kt!==0)return kt}return 0}),g}return n.rows});s.watch(()=>n.selectedRows,g=>{i.value=g||[]});const v=g=>i.value.some(T=>T===g),N=g=>{const T=i.value.findIndex(E=>E===g);T>-1?i.value.splice(T,1):i.value.push(g),r("update:selectedRows",[...i.value])},u=s.computed(()=>y.value.length>0&&i.value.length===y.value.length),k=s.computed(()=>i.value.length>0&&i.value.length<y.value.length),I=()=>{u.value?i.value=[]:i.value=[...y.value],r("update:selectedRows",[...i.value])},J=g=>{if(!n.sortable)return;const T=o.value.findIndex(D=>D.field===g);if(T>=0){const D=o.value[T];D.direction==="asc"?D.direction="desc":D.direction==="desc"&&o.value.splice(T,1)}else o.value.unshift({field:g,direction:"asc"});const E=o.value.filter(D=>D.direction).map(D=>({name:D.field,asc:D.direction==="asc"}));r("sort",E),n.api&&fe()},W=g=>o.value.find(E=>E.field===g)?.direction==="asc",pe=g=>{const T=o.value.find(E=>E.field===g);if(!T)return"↑↓";switch(T.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},le=g=>n.sortable&&g.sortable!==!1,w=g=>{n.clickable&&r("row-click",g)},x=(g,T)=>{const E=T[g.name];if(n.getCellData||g.getCellData){const D=g.getCellData||n.getCellData;if(D){const b={name:g.name,row:T,value:E};return D(b)}}return["_data","_text"].map(D=>{const b=`${g.name}${D}`;return T[b]?T[b]:null}).find(D=>D)||E},B=g=>g.width?g.width==="w-full"?"w-full":typeof g.width=="string"?`w-[${g.width}px]`:typeof g.width=="number"?`w-[${g.width}px]`:"":"",A=s.ref(n.page),C=s.ref(n.limit),$=s.ref(n.total),L=s.ref(1),P=s.ref(10),oe=s.ref(0),me=s.computed(()=>n.api?L.value:A.value),Ie=s.computed(()=>n.api?P.value:C.value),Qe=s.computed(()=>n.api?oe.value:$.value),z=s.computed(()=>{const{theme:g}=n;return g==="dark"?{container:"dark",loading:"text-gray-400",error:"text-red-400",thead:"bg-gray-800",th:"text-gray-300",thHover:"hover:bg-gray-700",tbody:"bg-gray-900 divide-gray-700",tr:"hover:bg-gray-800",td:"text-gray-300",empty:"text-gray-400",checkbox:"border-gray-600 bg-gray-700 text-blue-400"}:g==="light"?{container:"",loading:"text-gray-500",error:"text-red-500",thead:"bg-gray-50",th:"text-gray-500",thHover:"hover:bg-gray-100",tbody:"bg-white divide-gray-200",tr:"hover:bg-gray-50",td:"text-gray-900",empty:"text-gray-500",checkbox:"border-gray-300 bg-white text-blue-600"}:{container:"",loading:"text-gray-500 dark:text-gray-400",error:"text-red-500 dark:text-red-400",thead:"bg-gray-50 dark:bg-gray-800",th:"text-gray-500 dark:text-gray-300",thHover:"hover:bg-gray-100 dark:hover:bg-gray-700",tbody:"bg-white dark:bg-gray-900 divide-gray-200 dark:divide-gray-700",tr:"hover:bg-gray-50 dark:hover:bg-gray-800",td:"text-gray-900 dark:text-gray-300",empty:"text-gray-500 dark:text-gray-400",checkbox:"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"}});s.watch(()=>n.page,g=>{A.value=g}),s.watch(()=>n.limit,g=>{C.value=g}),s.watch(()=>n.total,g=>{$.value=g});async function fe(){if(n.api){c.value=!0,d.value=null;try{const g=new URL(n.api,window.location.origin);if(g.searchParams.set("page",me.value.toString()),g.searchParams.set("limit",Ie.value.toString()),o.value.length>0){const D=o.value.filter(b=>b.direction).map(b=>`${b.field}:${b.direction}`).join(",");D&&g.searchParams.set("sort",D)}const T=await fetch(g.toString());if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const E=await T.json();E.rows&&Array.isArray(E.rows)&&(a.value=E.rows),E.columns&&Array.isArray(E.columns)&&(l.value=E.columns),E.total!==void 0&&(n.api?oe.value=E.total:$.value=E.total)}catch(g){d.value=g instanceof Error?g.message:"Failed to fetch data",console.error("Error fetching data:",g)}finally{c.value=!1}}}const Ae=g=>{n.api?L.value=g:(A.value=g,r("update:page",g)),n.api&&fe()},Ra=s.computed(()=>n.showPagination&&Qe.value>0),Ze=s.computed(()=>({small:{header:"px-3 py-2 text-xs",cell:"px-3 py-2 text-xs"},medium:{header:"px-6 py-3 text-xs",cell:"px-6 py-4 text-sm"},large:{header:"px-8 py-4 text-sm",cell:"px-8 py-6 text-base"}})[n.size]),La=mn(),pn=s.ref("uk"),Fs=g=>{g.detail.key==="locale"&&(pn.value=g.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("resize",Fs)}),s.onMounted(()=>{window.addEventListener("storage",Fs),pn.value=localStorage.locale,n.api&&(n.page&&(L.value=n.page),n.limit&&(P.value=n.limit),n.total&&(oe.value=n.total),fe())}),s.watch(()=>n.api,g=>{g&&(L.value=n.page||1,P.value=n.limit||10,oe.value=n.total||0,fe())});const js=s.computed(()=>n.api?l.value:n.columns),fn=s.ref([]),Et=s.ref({});s.provide("registerColumn",(g,T)=>{fn.value.push(g),T&&g.slotName&&(Et.value[g.name]=T)});const zs=s.computed(()=>{const g=js.value||[],T=[],E=p.default?.();if(E){const D=E.filter(b=>b.type?.name==="Column"||b.type==="Column"||b.type&&typeof b.type=="object"&&b.type.name==="Column").map(b=>{const q=b.props||b.componentProps||{},Se=q.field||q.name||"",kt=q.header||q.label||"",Us=b.children&&b.children.body,un={name:Se,ua:kt,format:q.format||"text",slotName:Us?"body":void 0,...q};return Us&&un.name&&(Et.value[un.name]=b.children.body),un});T.push(...D)}if(fn.value.length>0&&T.push(...fn.value),T.length>0){const D=[],b=new Set(T.map(q=>q.name));return g.forEach(q=>{b.has(q.name)||D.push(q)}),D.push(...T),console.log("Combined columns:",{default:g.length,custom:T.length,combined:D.length}),D}return g.length>0?(console.log("Using default columns:",g.length),g):[]}),Pa=(g="text")=>Nt[g.toLowerCase()]||Nt.text;return(g,T)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["w-full",z.value.container])},[c.value||n.loading?(s.openBlock(),s.createElementBlock("div",Po,[s.createElementVNode("div",Fo,[T[0]||(T[0]=s.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(z.value.loading)},"Loading...",2)])])):d.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["text-center py-8",z.value.error])},s.toDisplayString(d.value),3)):n.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",jo,[s.createElementVNode("div",{class:s.normalizeClass(g.classWrapper?g.classWrapper:"relative w-full overflow-auto")},[s.createElementVNode("table",{class:s.normalizeClass(g.classTable),style:s.normalizeStyle(g.tableStyle)},[s.createElementVNode("thead",{class:s.normalizeClass(g.classThead||z.value.thead)},[s.createElementVNode("tr",null,[g.selectable?(s.openBlock(),s.createElementBlock("th",{key:0,class:s.normalizeClass(["text-left font-medium uppercase tracking-wider",z.value.th,Ze.value.header,n.classTh,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:u.value,indeterminate:k.value,onChange:I,class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",z.value.checkbox])},null,42,zo)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(zs.value.filter(E=>!E.hidden),E=>(s.openBlock(),s.createElementBlock("th",{key:E.name,class:s.normalizeClass([E.align?`text-${E.align}`:"",le(E)?["cursor-pointer",z.value.thHover]:"",B(E)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",z.value.th,Ze.value.header])),onClick:D=>le(E)?J(E.name):void 0},[s.createElementVNode("div",Ho,[s.createElementVNode("span",null,s.toDisplayString(E[pn.value]||E.header||E.ua||E.name),1),le(E)?(s.openBlock(),s.createElementBlock("span",qo,[s.renderSlot(g.$slots,"sort",{asc:W(E.name)},()=>[s.createTextVNode(s.toDisplayString(pe(E.name)),1)])])):s.createCommentVNode("",!0)])],10,Uo))),128)),f.value?(s.openBlock(),s.createElementBlock("th",{key:1,class:s.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",z.value.th,Ze.value.header]])},s.toDisplayString(s.unref(La)("table.actions")),3)):s.createCommentVNode("",!0)])],2),y.value.length?(s.openBlock(),s.createElementBlock("tbody",{key:0,class:s.normalizeClass(g.classTbody||z.value.tbody)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(y.value,(E,D)=>(s.openBlock(),s.createElementBlock("tr",{key:D,class:s.normalizeClass(n.classTr||[z.value.tr,n.clickable?"cursor-pointer":""]),onClick:b=>n.clickable?w(E):void 0},[g.selectable?(s.openBlock(),s.createElementBlock("td",{key:0,class:s.normalizeClass(["whitespace-nowrap",z.value.td,Ze.value.cell,n.classTd,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:v(E),onChange:b=>N(E),class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",z.value.checkbox])},null,42,Wo)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(zs.value.filter(b=>!b.hidden),b=>(s.openBlock(),s.createElementBlock("td",{key:b.name,class:s.normalizeClass(n.classTd||["whitespace-nowrap",z.value.td,Ze.value.cell,b.align?`text-${b.align}`:"",B(b)])},[b.action&&f.value?s.renderSlot(g.$slots,"action",{key:0,row:E}):s.unref(p).number&&b.format==="number"?s.renderSlot(g.$slots,"number",{key:1,row:E,value:x(b,E)}):s.unref(p).badge&&b.format==="badge"?s.renderSlot(g.$slots,"badge",{key:2,row:E,value:x(b,E)}):s.unref(p).array&&b.format==="array"?s.renderSlot(g.$slots,"array",{key:3,row:E,value:x(b,E)}):b.slotName&&Et.value[b.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Et.value[b.name]),{key:4,data:E,value:x(b,E),row:E,column:b},null,8,["data","value","row","column"])):b.link?(s.openBlock(),s.createElementBlock("a",{key:5,class:s.normalizeClass(g.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:q=>h(b.link.replace("{id}",E.id))},[b.slot&&typeof b.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref($s)(b.slot)),{key:0,row:E,value:E,data:E,column:b},null,8,["row","value","data","column"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(x(b,E)),1)],64))],10,Go)):b.slot&&b.format==="slot"&&typeof b.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref($s)(b.slot)),{key:6,row:E,value:x(b,E),data:E,column:b},null,8,["row","value","data","column"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Pa(b.format)),{key:7,value:x(b,E),row:E,column:b,href:b.link},null,8,["value","row","column","href"]))],2))),128)),f.value?(s.openBlock(),s.createElementBlock("td",Jo,[s.renderSlot(g.$slots,"action",{row:E})])):s.createCommentVNode("",!0)],10,Ko))),128))],2)):s.createCommentVNode("",!0),y.value.length===0?(s.openBlock(),s.createElementBlock("tbody",{key:1,class:s.normalizeClass(["text-center py-8",z.value.empty])},[s.createElementVNode("tr",null,[s.createElementVNode("td",{colspan:js.value.length},[s.createVNode(Lo)],8,Yo)])],2)):s.createCommentVNode("",!0)],6)],2)])),Ra.value&&!c.value&&!n.loading&&!d.value?(s.openBlock(),s.createBlock(xt,{key:3,page:me.value,limit:Ie.value,total:Qe.value,theme:n.theme,size:n.size,"onUpdate:page":Ae},null,8,["page","limit","total","theme","size"])):s.createCommentVNode("",!0)],2))}}),Xo={style:{display:"none"}},Ms=s.defineComponent({name:"Column",__name:"Column",props:{field:{},name:{},header:{},label:{},format:{},hidden:{type:Boolean},sortable:{type:Boolean},width:{},align:{},slot:{},slotName:{},link:{},action:{type:Boolean},getCellData:{type:Function},suffix:{}},setup(e){const t=e,n=s.useSlots(),r=s.inject("registerColumn");return s.onMounted(()=>{if(r){const{field:i,name:o,header:a,label:l,format:c,slotName:d,link:m,action:p,getCellData:f,suffix:h,...y}=t,k={name:i||o||"",ua:a||l||"",format:c||"text",slotName:d||(n.body?"body":void 0),link:m,action:p,getCellData:f,suffix:h,...y};console.log("Registering column:",k);const I=n.body;r(k,I)}}),(i,o)=>(s.openBlock(),s.createElementBlock("div",Xo,[s.renderSlot(i.$slots,"body",{data:{}})]))}}),Qo={class:"mt-4"},Zo={class:"text-sm text-gray-600 dark:text-gray-300"},Rs=s.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=s.computed(()=>t.selectedRows.length);return(r,i)=>(s.openBlock(),s.createElementBlock("div",Qo,[s.createElementVNode("div",Zo," Обрано: "+s.toDisplayString(n.value)+" з "+s.toDisplayString(r.totalCount)+" записів ",1)]))}}),Vo={class:"mt-4"},ea={class:"border-b border-gray-200 dark:border-gray-700"},ta={class:"-mb-px flex space-x-8"},na=["onClick"],sa={class:"mt-4"},ra={class:"bg-gray-900 rounded-lg overflow-hidden"},ia={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},oa={class:"text-sm text-gray-300"},aa=["onClick"],la={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Ls=s.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=s.ref(t.defaultTab||t.tabs[0]?.id||""),r=async i=>{try{await navigator.clipboard.writeText(i),console.log("Код скопійовано!")}catch(o){console.error("Помилка копіювання:",o)}};return(i,o)=>(s.openBlock(),s.createElementBlock("div",Vo,[s.createElementVNode("div",ea,[s.createElementVNode("nav",ta,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.tabs,a=>(s.openBlock(),s.createElementBlock("button",{key:a.id,onClick:l=>n.value=a.id,class:s.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===a.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"])},s.toDisplayString(a.label),11,na))),128))])]),s.createElementVNode("div",sa,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.tabs,a=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:a.id},[s.createElementVNode("div",ra,[s.createElementVNode("div",ia,[s.createElementVNode("span",oa,s.toDisplayString(a.label),1),s.createElementVNode("button",{onClick:l=>r(a.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},o[0]||(o[0]=[s.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,aa)]),s.createElementVNode("pre",la,[s.createElementVNode("code",null,s.toDisplayString(a.content),1)])])])),[[s.vShow,n.value===a.id]])),128))])]))}}),ca={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},da={class:"ui-dialog__modal opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12"},pa={class:"ui-dialog__content p-4"},fa={class:"p-4"},ua={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},ha={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},ma={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ga={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},va={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ya={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},ba={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ea={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},ka={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},Na={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},xa={class:"flex items-center gap-[4px]"},Sa=["id","value"],Ca=["for"],wa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check",height:"12",width:"12"},_a={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},Ta={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},Oa={class:"mt-2 space-y-2"},Da={class:"flex items-center"},Ia={class:"flex items-center"},Aa={class:"flex items-center"},Ba={class:"flex justify-end gap-x-2"},$a={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},Ma=["disabled"],Ps=En(s.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=s.getCurrentInstance(),n=e,r=s.ref(!1),i=s.ref([]),o=s.ref("json"),a=s.ref(!1),l=s.ref("all"),c=s.computed(()=>n.columns??[]),d=s.useAttrs();function m(){i.value=c.value.map(N=>N.name),o.value="json",r.value=!0}function p(){r.value=!1}function f(){i.value=c.value.map(N=>N.name),l.value="all"}function h(){const N=c.value.filter(u=>!u.hidden).map(u=>u.name);i.value=N.length?N:c.value.map(u=>u.name),l.value="active"}function y(){i.value=[],l.value="none"}async function v(){if(i.value.length===0)return;a.value=!0;const N={table:n.table,columns:i.value,format:o.value};try{const u=await fetch("/api/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)});if(!u.ok)throw new Error("Export failed");const k=await u.blob(),I=URL.createObjectURL(k),J=document.createElement("a");J.href=I,J.download=`${n.table}.${o.value}`,document.body.appendChild(J),J.click(),J.remove(),URL.revokeObjectURL(I),p()}catch(u){console.error(u);const{$notify:k=console.log}=t?.appContext?.config?.globalProperties||{};k({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"})}finally{a.value=!1}}return(N,u)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:m,class:s.normalizeClass([[s.unref(d).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},u[4]||(u[4]=[s.createStaticVNode('<svg class="flex-shrink-0 mt-0.5 size-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="16" width="16" data-v-c3821687><path d="m3 16 4 4 4-4" data-v-c3821687></path><path d="M7 20V4" data-v-c3821687></path><path d="m21 8-4-4-4 4" data-v-c3821687></path><path d="M17 4v16" data-v-c3821687></path></svg> Експорт ',2)]),2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[r.value?(s.openBlock(),s.createElementBlock("div",ca,[s.createElementVNode("div",da,[s.createElementVNode("div",{class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},[u[6]||(u[6]=s.createElementVNode("h3",{class:"font-medium text-gray-800 dark:text-[#ffffff]"},"Експорт таблиці",-1)),s.createElementVNode("button",{type:"button",onClick:p,class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"},u[5]||(u[5]=[s.createElementVNode("span",{class:"sr-only"},"Close",-1),s.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M18 6 6 18"}),s.createElementVNode("path",{d:"m6 6 12 12"})],-1)]))]),s.createElementVNode("div",pa,[s.createElementVNode("div",fa,[s.createElementVNode("div",ua,[u[11]||(u[11]=s.createElementVNode("h2",{class:"text-sm font-[600] text-gray-500"}," Виберіть стовпці таблиці для експорту: ",-1)),s.createElementVNode("div",ha,[s.createElementVNode("button",{onClick:f,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",ma,[l.value==="all"?(s.openBlock(),s.createElementBlock("span",ga)):s.createCommentVNode("",!0)]),u[7]||(u[7]=s.createTextVNode(" Вибрати усі ",-1))]),s.createElementVNode("button",{onClick:h,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",va,[l.value==="active"?(s.openBlock(),s.createElementBlock("span",ya)):s.createCommentVNode("",!0)]),u[8]||(u[8]=s.createTextVNode(" Вибрати поточні ",-1))]),s.createElementVNode("button",{onClick:y,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",ba,[l.value==="none"?(s.openBlock(),s.createElementBlock("span",Ea)):s.createCommentVNode("",!0)]),u[9]||(u[9]=s.createTextVNode(" Жодного ",-1))])]),s.createElementVNode("div",ka,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,k=>(s.openBlock(),s.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:k.name},[s.createElementVNode("div",Na,[s.createElementVNode("div",xa,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",id:"radio-"+k.name,value:k.name,"onUpdate:modelValue":u[0]||(u[0]=I=>i.value=I)},null,8,Sa),[[s.vModelCheckbox,i.value]]),s.createElementVNode("label",{for:"radio-"+k.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[s.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:s.normalizeStyle(i.value.includes(k.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[s.withDirectives((s.openBlock(),s.createElementBlock("svg",wa,u[10]||(u[10]=[s.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[s.vShow,i.value.includes(k.name)]])],4),s.createElementVNode("span",_a,s.toDisplayString(k.ua),1)],8,Ca)])])]))),128))])]),s.createElementVNode("div",Ta,[u[15]||(u[15]=s.createElementVNode("h2",{class:"text-sm font-[600] text-gray-500"}," Виберіть формат таблиці: ",-1)),s.createElementVNode("div",Oa,[s.createElementVNode("div",Da,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"json",value:"json","onUpdate:modelValue":u[1]||(u[1]=k=>o.value=k)},null,512),[[s.vModelRadio,o.value]]),u[12]||(u[12]=s.createElementVNode("label",{for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"}," Формат json",-1))]),s.createElementVNode("div",Ia,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"csv",value:"csv","onUpdate:modelValue":u[2]||(u[2]=k=>o.value=k)},null,512),[[s.vModelRadio,o.value]]),u[13]||(u[13]=s.createElementVNode("label",{for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"}," Формат csv",-1))]),s.createElementVNode("div",Aa,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"xlsx",value:"xlsx","onUpdate:modelValue":u[3]||(u[3]=k=>o.value=k)},null,512),[[s.vModelRadio,o.value]]),u[14]||(u[14]=s.createElementVNode("label",{for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"}," Формат xlsx",-1))])])])])]),s.createElementVNode("div",Ba,[s.createElementVNode("div",$a,[s.createElementVNode("button",{type:"button",onClick:p,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"}," Скасувати "),s.createElementVNode("button",{type:"button",onClick:v,disabled:i.value.length===0||a.value,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"}," Завантажити таблицю ",8,Ma)])])])])):s.createCommentVNode("",!0)]))],64))}}),[["__scopeId","data-v-c3821687"]]);bt.install=function(t){t.component("DataTable",bt),t.component("Column",Ms),t.component("Pagination",xt),t.component("SelectionInfo",Rs),t.component("CodeTabs",Ls),t.component("ColumnsSettings",gn),t.component("Export",Ps)},U.ArrayFormat=Nn,U.BadgeFormat=kn,U.CodeTabs=Ls,U.Column=Ms,U.ColumnsSettings=gn,U.DataTable=bt,U.DateFormat=yn,U.Export=Ps,U.NumberFormat=vn,U.Pagination=xt,U.SelectFormat=xn,U.SelectionInfo=Rs,U.TextFormat=bn,U.default=bt,U.formatComponents=Nt,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,5 +1,5 @@
1
1
  import type { App } from 'vue';
2
- export type FormatType = 'text' | 'number' | 'date' | 'badge' | 'array' | 'select' | 'custom' | 'link' | 'action';
2
+ export type FormatType = 'text' | 'number' | 'date' | 'badge' | 'array' | 'select' | 'custom' | 'link' | 'action' | 'slot';
3
3
  export type TableSize = 'small' | 'medium' | 'large';
4
4
  export type TableTheme = 'light' | 'dark' | 'auto';
5
5
  export type SortDirection = 'asc' | 'desc' | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAO/B,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAG3H,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAGrD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAGnD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;AAGlD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd;AAGD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,cAAc,KAAK,GAAG,CAAC;AAO9D,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,sBAAsB;IAErC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAGD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,GAAG,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAOD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAC7B;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;KAC1C,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAGD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAGD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,11 @@
1
+ import * as Vue from 'vue';
2
+ type Emits = Record<string, any[]> | string[];
3
+ export declare function makeDynamic(tpl: string | any, options?: {
4
+ props?: Record<string, any>;
5
+ emits?: Emits;
6
+ setup?(): Record<string, any>;
7
+ }): Vue.DefineComponent<{}, Record<string, any>, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {} | {
8
+ [x: string]: any;
9
+ }, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>;
10
+ export default makeDynamic;
11
+ //# sourceMappingURL=makeDynamic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeDynamic.d.ts","sourceRoot":"","sources":["../../src/utils/makeDynamic.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,EAAE,CAAA;AAE7C,wBAAgB,WAAW,CACvB,GAAG,EAAE,MAAM,GAAE,GAAG,EAChB,OAAO,CAAC,EAAE;IACN,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC;;mEAiBJ;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function getSlotComponent(tpl: string): any;
2
+ //# sourceMappingURL=slotCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slotCache.d.ts","sourceRoot":"","sources":["../../src/utils/slotCache.ts"],"names":[],"mappings":"AAIA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,OAQ3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/table",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "A Vue 3 data table component with advanced features",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.mjs",