@opengis/table 0.0.37 → 0.0.38
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/components/ColumnsSettings.vue.d.ts.map +1 -1
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/EditableCell.vue.d.ts.map +1 -1
- package/dist/components/Export.vue.d.ts.map +1 -1
- package/dist/components/nodata.vue.d.ts +1 -4
- package/dist/components/nodata.vue.d.ts.map +1 -1
- package/dist/composables/i18n.d.ts.map +1 -1
- package/dist/composables/useCurrentLocale.d.ts +2 -0
- package/dist/composables/useCurrentLocale.d.ts.map +1 -0
- package/dist/index.mjs +2106 -2032
- package/dist/index.umd.js +15 -15
- package/dist/utils/localization.d.ts +13 -0
- package/dist/utils/localization.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(K,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(K=typeof globalThis<"u"?globalThis:K||self,s(K.filter={},K.Vue))})(this,function(K,s){"use strict";function tr(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 nr=tr(s),nt={en:{table:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",selectAll:"Select all",selectCurrent:"Select current",none:"None",chooseFormat:"Choose table format:",format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table",processingExport:"Preparing export...",waitingExport:"Waiting for server status...",preparingDownload:"Preparing download..."}},uk:{table:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",chooseFormat:"Виберіть формат таблиці:",format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю",processingExport:"Готуємо экспорт...",waitingExport:"Очікуємо відповідь від сервера...",preparingDownload:"Готуємо завантаження..."}}};function sr(e){const n=(()=>{try{if(typeof localStorage<"u"){const l=localStorage.getItem("language")||localStorage.getItem("locale");if(l)return l.substring(0,2)}}catch{}return typeof navigator<"u"?(navigator.language||navigator.languages?.[0]||"uk").substring(0,2):"uk"})();if(!nt||typeof nt!="object")return e;const r=nt[n]||nt.uk||{},i=e.split(".").reduce((l,a)=>l&&typeof l=="object"&&a in l?l[a]:null,r);return i&&typeof i=="string"?i:e}function Tt(){const e=s.getCurrentInstance();return e?.appContext?.config?.globalProperties?.$i18n?e.appContext.config.globalProperties.$t:sr}const rr={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},or={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},ir=["placeholder"],lr={class:"p-1 pt-3 max-h-80 overflow-y-auto"},ar={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},cr=["onClick"],dr={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"},pr=["value"],xn=s.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=Tt(),r=e,o=t,i=s.useAttrs(),l=s.ref(!1),a=s.ref(""),c=s.ref(r.columns),p=s.ref(null),m=s.ref(null),d=s.ref(null),u=s.ref({top:0,left:0}),h=s.computed(()=>a.value?c.value.filter(T=>T.ua.toLowerCase().includes(a.value.toLowerCase())):c.value),E=s.ref("uk"),v=T=>{T.detail.key==="locale"&&(E.value=T.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",v)}),s.onMounted(()=>{window.addEventListener("storage",v),E.value=localStorage.locale}),s.watch(c,T=>{o("update:columns",T)},{deep:!0}),s.watch(()=>r.columns,T=>{JSON.stringify(T)!==JSON.stringify(c.value)&&(c.value=[...T])},{deep:!0});function _(T){Object.assign(T,{hidden:!T.hidden})}function C(){l.value=!l.value,s.nextTick(()=>{if(l.value&&(d.value?.focus(),p.value&&m.value)){const T=p.value.getBoundingClientRect();u.value={top:T.bottom+window.scrollY+5,left:T.left+window.scrollX-220}}})}function A(T){l.value&&m.value&&p.value&&!m.value.contains(T.target)&&!p.value.contains(T.target)&&(l.value=!1)}return s.onMounted(()=>{document.addEventListener("click",A,!0)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",A,!0)}),(T,$)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:C,ref_key:"buttonRef",ref:p,class:s.normalizeClass([[s.unref(i).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"])},$[2]||($[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"},[l.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:`${u.value.top}px`,left:`${u.value.left}px`}])},[s.createElementVNode("div",rr,s.toDisplayString(s.unref(n)("table.columns")),1),s.createElementVNode("div",or,[s.withDirectives(s.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:d,"onUpdate:modelValue":$[0]||($[0]=P=>a.value=P),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,ir),[[s.vModelText,a.value]])]),s.createElementVNode("div",lr,[s.createElementVNode("span",ar,s.toDisplayString(s.unref(n)("table.choose")),1),s.createElementVNode("div",{class:"space-y-1",onClick:$[1]||($[1]=s.withModifiers(()=>{},["stop"]))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,P=>(s.openBlock(),s.createElementBlock("div",{key:P.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:te=>_(P)},[s.createElementVNode("label",dr,[s.createTextVNode(s.toDisplayString(P[E.value]||P.ua||P.label)+" ",1),s.createElementVNode("input",{type:"checkbox",class:"hidden",value:P.hidden},null,8,pr),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",P.hidden?"bg-white":"bg-blue-600 border-0"])},$[3]||($[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,cr))),128))])])],4)):s.createCommentVNode("",!0)]))],64))}}),wn=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,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),Nn=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,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),Sn=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(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),Cn=((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(s.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{const i=String(t.value||"").toLowerCase(),l="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return i.includes("success")||i.includes("active")||i.includes("completed")?`${l} bg-green-100 text-green-800`:i.includes("error")||i.includes("failed")||i.includes("inactive")?`${l} bg-red-100 text-red-800`:i.includes("warning")||i.includes("pending")?`${l} bg-yellow-100 text-yellow-800`:i.includes("info")||i.includes("processing")?`${l} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${l} bg-${t.value.color}-100 text-${t.value.color}-800`:`${l} bg-gray-100 text-gray-800`});function r(i,l=1){const a=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),p=parseInt(i.slice(5,7),16);return`rgba(${a}, ${c}, ${p}, ${l})`}const o=s.computed(()=>{const i={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...i,backgroundColor:r(t.value.color,.1),color:r(t.value.color,.8)}:i});return(i,l)=>i.value?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["badge",n.value]),style:s.normalizeStyle(o.value)},s.toDisplayString(i.value?.text||i.value||"-"),7)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-59a2b734"]]),fr={class:"flex flex-wrap gap-1"},_n=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=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(s.openBlock(),s.createElementBlock("div",fr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,a)=>(s.openBlock(),s.createElementBlock("span",{key:a,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(l)),1))),128))]))}}),Tn=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(o=>o.text||o).filter((o,i)=>i<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),ur={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"},Dn=s.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return s.computed(()=>({})),(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t.value?(s.openBlock(),s.createElementBlock("span",ur,n[0]||(n[0]=[s.createElementVNode("svg",{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",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0),n[1]||(n[1]=s.createElementVNode("span",null,null,-1))],64))}}),hr={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},mr={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},On=s.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=s.ref(!1),r=s.ref(null);let o=null,i=null,l=null;async function a(){if(o)return o;const d="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";if(!document.querySelector(`link[href="${d}"]`)){const h=document.createElement("link");h.rel="stylesheet",h.href=d,document.head.appendChild(h)}const u="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${u}"]`)||await new Promise((h,E)=>{const v=document.createElement("script");v.src=u,v.async=!0,v.onload=()=>h(),v.onerror=E,document.body.appendChild(v)}),o=window.L,o}async function c(){n.value=!0,await s.nextTick(),await a(),!i&&(i=o.map(r.value,{center:[50,30],zoom:10,zoomControl:!0}),o.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(i),m(t.value),setTimeout(()=>i.invalidateSize(),250))}function p(){n.value=!1,l&&(l.remove(),l=null),i&&(i.remove(),i=null)}function m(d){if(!i||!o||(l&&(l.remove(),l=null),!d))return;l=o.geoJSON(d,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(h,E)=>o.marker(E)}).addTo(i);const u=l.getBounds?.();if(u&&u.isValid())i.fitBounds(u,{padding:[24,24]});else if(d.type==="Point"){const[h,E]=d.coordinates;i.setView([E,h],14)}}return s.watch(()=>t.value,d=>{n.value&&i&&m(d)},{deep:!0}),s.onUnmounted(()=>{l&&(l.remove(),l=null),i&&(i.remove(),i=null)}),(d,u)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("button",{type:"button",onClick:c,class:"p-2 rounded hover:bg-gray-100 text-blue-600 inline-flex items-center justify-center",title:"Open map"},u[0]||(u[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M9 18l-6 3V6l6-3 6 3 6-3v15l-6 3-6-3z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[n.value?(s.openBlock(),s.createElementBlock("div",hr,[s.createElementVNode("div",mr,[s.createElementVNode("button",{type:"button",class:"absolute top-3 right-3 z-[1001] inline-flex items-center justify-center w-8 h-8 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors text-gray-900",onClick:p,title:"Close"},u[1]||(u[1]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),s.createElementVNode("div",{ref_key:"mapContainer",ref:r,class:"w-full h-full"},null,512)])])):s.createCommentVNode("",!0)]))]))}}),Dt={number:wn,date:Nn,text:Sn,badge:Cn,array:_n,select:Tn,boolean:Dn,geom:On},gr={class:"flex items-center space-x-4"},vr={class:"font-medium"},yr={class:"font-medium"},br={class:"font-medium"},Er={class:"flex items-center space-x-2"},kr=["disabled"],xr={class:"flex items-center space-x-1"},wr=["onClick"],Nr=["disabled"],Ot=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]),o=s.computed(()=>{const{theme:d}=n;return d==="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"}:d==="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"}}),i=t,l=s.computed(()=>Math.ceil(n.total/n.limit)),a=s.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=s.computed(()=>Math.min(n.page*n.limit,n.total)),p=s.computed(()=>{const d=[];if(l.value<=7)for(let h=1;h<=l.value;h+=1)d.push(h);else{d.push(1),n.page>4&&d.push("...");const h=Math.max(2,n.page-1),E=Math.min(l.value-1,n.page+1);for(let v=h;v<=E;v+=1)v!==1&&v!==l.value&&d.push(v);n.page<l.value-3&&d.push("..."),l.value>1&&d.push(l.value)}return d}),m=d=>{d>=1&&d<=l.value&&d!==n.page&&i("update:page",d)};return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[s.createElementVNode("div",gr,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center text-sm",o.value.text,r.value.text])},[s.createElementVNode("span",null,[u[2]||(u[2]=s.createTextVNode(" Показано ")),s.createElementVNode("span",vr,s.toDisplayString(a.value),1),u[3]||(u[3]=s.createTextVNode(" до ")),s.createElementVNode("span",yr,s.toDisplayString(c.value),1),u[4]||(u[4]=s.createTextVNode(" з ")),s.createElementVNode("span",br,s.toDisplayString(d.total),1),u[5]||(u[5]=s.createTextVNode(" результатів "))])],2)]),s.createElementVNode("div",Er,[s.createElementVNode("button",{onClick:u[0]||(u[0]=h=>m(d.page-1)),disabled:d.page<=1,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page<=1?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[6]||(u[6]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,kr),s.createElementVNode("div",xr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.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,o.value.ellipsis])}," ... ",2)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:E=>m(h),class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,h===d.page?o.value.buttonActive:o.value.button])},s.toDisplayString(h),11,wr))],64))),128))]),s.createElementVNode("button",{onClick:u[1]||(u[1]=h=>m(d.page+1)),disabled:d.page>=l.value,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page>=l.value?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[7]||(u[7]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,Nr)])],2))}});/**
|
|
1
|
+
(function(W,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(W=typeof globalThis<"u"?globalThis:W||self,r(W.filter={},W.Vue))})(this,function(W,r){"use strict";function is(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ls=is(r),rt={en:{table:{actions:"Actions",choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",chooseFormat:"Choose table format:",selectAll:"Select all",selectCurrent:"Select current",none:"None",noData:{title:"No data",description:"No data here yet. We will notify you when there's an update."},format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table",processingExport:"Preparing export...",waitingExport:"Waiting for server status...",preparingDownload:"Preparing download..."}},uk:{table:{actions:"Дії",choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",chooseFormat:"Виберіть формат таблиці:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",noData:{title:"Немає даних",description:"Тут поки що немає даних. Ми повідомимо вас, коли з'являться оновлення."},format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю",processingExport:"Готуємо экспорт...",waitingExport:"Очікуємо відповідь від сервера...",preparingDownload:"Готуємо завантаження..."}}};function as(e){const n=(()=>{try{if(typeof localStorage<"u"){const l=localStorage.getItem("language")||localStorage.getItem("locale");if(l)return l.substring(0,2)}}catch{}return typeof navigator<"u"?(navigator.language||navigator.languages?.[0]||"uk").substring(0,2):"uk"})();if(!rt||typeof rt!="object")return e;const s=rt[n]||rt.uk||{},i=e.split(".").reduce((l,a)=>l&&typeof l=="object"&&a in l?l[a]:null,s);return i&&typeof i=="string"?i:e}function st(){const e=r.getCurrentInstance();return e?.appContext?.config?.globalProperties?.$i18n?e.appContext.config.globalProperties.$t:as}function ot(e){return e&&e.toString().split("-")[0]?.toLowerCase()||"uk"}function cs(){if(typeof window<"u")try{const e=window.localStorage.getItem("locale")||window.localStorage.getItem("language");if(e)return ot(e)}catch{}if(typeof navigator<"u"){const e=navigator.language||navigator.languages?.[0];if(e)return ot(e)}return"uk"}function pe(e,t,n){if(!e)return;const s=ot(t),o=`${n}:${s}`;if(o in e&&e[o]!=null)return e[o];if(s in e&&e[s]!=null)return e[s];if(n in e&&e[n]!=null)return e[n]}function it(e,t){return pe(e,t,"label")??pe(e,t,"header")??pe(e,t,"title")??pe(e,t,"ua")??pe(e,t,"name")??e?.name??""}function Cn(e,t){return pe(e,t,"info")??null}function ds(e,t){return pe(e,t,"description")??null}function ps(e,t){return pe(e,t,"placeholder")??null}function It(e,t,n){return e?pe(e,t,n)??e[n]??null:null}function fs(e,t){return pe(e,t,"label")??pe(e,t,"text")??pe(e,t,"name")??pe(e,t,"value")??e?.label??e?.text??e?.value?.toString?.()}function us(e){return"detail"in e}function hs(e){if(us(e)&&e.detail)return{key:e.detail.key,value:e.detail.newValue};const t=e;return{key:t.key,value:t.newValue}}function lt(){const e=r.ref(cs()),t=s=>{e.value=ot(s)},n=s=>{const{key:o,value:i}=hs(s);o!=="locale"&&o!=="language"||t(i??void 0)};return r.onMounted(()=>{typeof window>"u"||window.addEventListener("storage",n)}),r.onUnmounted(()=>{typeof window>"u"||window.removeEventListener("storage",n)}),e}const ms={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"},vs=["placeholder"],ys={class:"p-1 pt-3 max-h-80 overflow-y-auto"},bs={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},Es=["onClick"],ks={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"},xs=["value"],_n=r.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=st(),s=e,o=t,i=r.useAttrs(),l=r.ref(!1),a=r.ref(""),c=r.ref(s.columns),d=r.ref(null),m=r.ref(null),p=r.ref(null),u=r.ref({top:0,left:0}),h=lt(),E=C=>it(C,h.value),y=r.computed(()=>{if(!a.value)return c.value;const C=a.value.toLowerCase();return c.value.filter(H=>E(H).toLowerCase().includes(C))});r.watch(c,C=>{o("update:columns",C)},{deep:!0}),r.watch(()=>s.columns,C=>{JSON.stringify(C)!==JSON.stringify(c.value)&&(c.value=[...C])},{deep:!0});function _(C){Object.assign(C,{hidden:!C.hidden})}function S(){l.value=!l.value,r.nextTick(()=>{if(l.value&&(p.value?.focus(),d.value&&m.value)){const C=d.value.getBoundingClientRect();u.value={top:C.bottom+window.scrollY+5,left:C.left+window.scrollX-220}}})}function $(C){l.value&&m.value&&d.value&&!m.value.contains(C.target)&&!d.value.contains(C.target)&&(l.value=!1)}return r.onMounted(()=>{document.addEventListener("click",$,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",$,!0)}),(C,H)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("button",{onClick:S,ref_key:"buttonRef",ref:d,class:r.normalizeClass([[r.unref(i).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"])},H[2]||(H[2]=[r.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),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[l.value?(r.openBlock(),r.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:r.normalizeStyle([{position:"fixed"},{top:`${u.value.top}px`,left:`${u.value.left}px`}])},[r.createElementVNode("div",ms,r.toDisplayString(r.unref(n)("table.columns")),1),r.createElementVNode("div",gs,[r.withDirectives(r.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:p,"onUpdate:modelValue":H[0]||(H[0]=j=>a.value=j),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:r.unref(n)("table.search")},null,8,vs),[[r.vModelText,a.value]])]),r.createElementVNode("div",ys,[r.createElementVNode("span",bs,r.toDisplayString(r.unref(n)("table.choose")),1),r.createElementVNode("div",{class:"space-y-1",onClick:H[1]||(H[1]=r.withModifiers(()=>{},["stop"]))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.value,j=>(r.openBlock(),r.createElementBlock("div",{key:j.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:ne=>_(j)},[r.createElementVNode("label",ks,[r.createTextVNode(r.toDisplayString(E(j))+" ",1),r.createElementVNode("input",{type:"checkbox",class:"hidden",value:j.hidden},null,8,xs),r.createElementVNode("span",{class:r.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",j.hidden?"bg-white":"bg-blue-600 border-0"])},H[3]||(H[3]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,Es))),128))])])],4)):r.createCommentVNode("",!0)]))],64))}}),Tn=r.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.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(s,o)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(n.value||"-"),1))}}),Dn=r.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(s,o)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(n.value||"-"),1))}}),On=r.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=r.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(s.value||"-"),1))}}),Bn=((e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n})(r.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>{const i=String(t.value||"").toLowerCase(),l="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return i.includes("success")||i.includes("active")||i.includes("completed")?`${l} bg-green-100 text-green-800`:i.includes("error")||i.includes("failed")||i.includes("inactive")?`${l} bg-red-100 text-red-800`:i.includes("warning")||i.includes("pending")?`${l} bg-yellow-100 text-yellow-800`:i.includes("info")||i.includes("processing")?`${l} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${l} bg-${t.value.color}-100 text-${t.value.color}-800`:`${l} bg-gray-100 text-gray-800`});function s(i,l=1){const a=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),d=parseInt(i.slice(5,7),16);return`rgba(${a}, ${c}, ${d}, ${l})`}const o=r.computed(()=>{const i={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...i,backgroundColor:s(t.value.color,.1),color:s(t.value.color,.8)}:i});return(i,l)=>i.value?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["badge",n.value]),style:r.normalizeStyle(o.value)},r.toDisplayString(i.value?.text||i.value||"-"),7)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-59a2b734"]]),ws={class:"flex flex-wrap gap-1"},In=r.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),s=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(r.openBlock(),r.createElementBlock("div",ws,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(l,a)=>(r.openBlock(),r.createElementBlock("span",{key:a,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"},r.toDisplayString(s(l)),1))),128))]))}}),An=r.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=r.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).filter((o,i)=>i<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,i)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(s.value||"-"),1))}}),Ns={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"},$n=r.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return r.computed(()=>({})),(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[t.value?(r.openBlock(),r.createElementBlock("span",Ns,n[0]||(n[0]=[r.createElementVNode("svg",{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",class:"lucide lucide-check size-3.5"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):r.createCommentVNode("",!0),n[1]||(n[1]=r.createElementVNode("span",null,null,-1))],64))}}),Ss={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},Cs={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},Mn=r.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=r.ref(!1),s=r.ref(null);let o=null,i=null,l=null;async function a(){if(o)return o;const p="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";if(!document.querySelector(`link[href="${p}"]`)){const h=document.createElement("link");h.rel="stylesheet",h.href=p,document.head.appendChild(h)}const u="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${u}"]`)||await new Promise((h,E)=>{const y=document.createElement("script");y.src=u,y.async=!0,y.onload=()=>h(),y.onerror=E,document.body.appendChild(y)}),o=window.L,o}async function c(){n.value=!0,await r.nextTick(),await a(),!i&&(i=o.map(s.value,{center:[50,30],zoom:10,zoomControl:!0}),o.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(i),m(t.value),setTimeout(()=>i.invalidateSize(),250))}function d(){n.value=!1,l&&(l.remove(),l=null),i&&(i.remove(),i=null)}function m(p){if(!i||!o||(l&&(l.remove(),l=null),!p))return;l=o.geoJSON(p,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(h,E)=>o.marker(E)}).addTo(i);const u=l.getBounds?.();if(u&&u.isValid())i.fitBounds(u,{padding:[24,24]});else if(p.type==="Point"){const[h,E]=p.coordinates;i.setView([E,h],14)}}return r.watch(()=>t.value,p=>{n.value&&i&&m(p)},{deep:!0}),r.onUnmounted(()=>{l&&(l.remove(),l=null),i&&(i.remove(),i=null)}),(p,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("button",{type:"button",onClick:c,class:"p-2 rounded hover:bg-gray-100 text-blue-600 inline-flex items-center justify-center",title:"Open map"},u[0]||(u[0]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[r.createElementVNode("path",{d:"M9 18l-6 3V6l6-3 6 3 6-3v15l-6 3-6-3z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[n.value?(r.openBlock(),r.createElementBlock("div",Ss,[r.createElementVNode("div",Cs,[r.createElementVNode("button",{type:"button",class:"absolute top-3 right-3 z-[1001] inline-flex items-center justify-center w-8 h-8 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors text-gray-900",onClick:d,title:"Close"},u[1]||(u[1]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[r.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),r.createElementVNode("div",{ref_key:"mapContainer",ref:s,class:"w-full h-full"},null,512)])])):r.createCommentVNode("",!0)]))]))}}),At={number:Tn,date:Dn,text:On,badge:Bn,array:In,select:An,boolean:$n,geom:Mn},_s={class:"flex items-center space-x-4"},Ts={class:"font-medium"},Ds={class:"font-medium"},Os={class:"font-medium"},Bs={class:"flex items-center space-x-2"},Is=["disabled"],As={class:"flex items-center space-x-1"},$s=["onClick"],Ms=["disabled"],$t=r.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,s=r.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]),o=r.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"}}),i=t,l=r.computed(()=>Math.ceil(n.total/n.limit)),a=r.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=r.computed(()=>Math.min(n.page*n.limit,n.total)),d=r.computed(()=>{const p=[];if(l.value<=7)for(let h=1;h<=l.value;h+=1)p.push(h);else{p.push(1),n.page>4&&p.push("...");const h=Math.max(2,n.page-1),E=Math.min(l.value-1,n.page+1);for(let y=h;y<=E;y+=1)y!==1&&y!==l.value&&p.push(y);n.page<l.value-3&&p.push("..."),l.value>1&&p.push(l.value)}return p}),m=p=>{p>=1&&p<=l.value&&p!==n.page&&i("update:page",p)};return(p,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[r.createElementVNode("div",_s,[r.createElementVNode("div",{class:r.normalizeClass(["flex items-center text-sm",o.value.text,s.value.text])},[r.createElementVNode("span",null,[u[2]||(u[2]=r.createTextVNode(" Показано ")),r.createElementVNode("span",Ts,r.toDisplayString(a.value),1),u[3]||(u[3]=r.createTextVNode(" до ")),r.createElementVNode("span",Ds,r.toDisplayString(c.value),1),u[4]||(u[4]=r.createTextVNode(" з ")),r.createElementVNode("span",Os,r.toDisplayString(p.total),1),u[5]||(u[5]=r.createTextVNode(" результатів "))])],2)]),r.createElementVNode("div",Bs,[r.createElementVNode("button",{onClick:u[0]||(u[0]=h=>m(p.page-1)),disabled:p.page<=1,class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,p.page<=1?o.value.buttonDisabled:o.value.button])},[(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[6]||(u[6]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,Is),r.createElementVNode("div",As,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,h=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:h},[h==="..."?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["font-medium",s.value.button,o.value.ellipsis])}," ... ",2)):(r.openBlock(),r.createElementBlock("button",{key:1,onClick:E=>m(h),class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,h===p.page?o.value.buttonActive:o.value.button])},r.toDisplayString(h),11,$s))],64))),128))]),r.createElementVNode("button",{onClick:u[1]||(u[1]=h=>m(p.page+1)),disabled:p.page>=l.value,class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,p.page>=l.value?o.value.buttonDisabled:o.value.button])},[(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[7]||(u[7]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,Ms)])],2))}});/**
|
|
2
2
|
* @vue/shared v3.5.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function ye(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Rs=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Mt=()=>{},at=()=>!1,Rt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ne=Object.assign,be=Array.isArray,Z=e=>typeof e=="string",Lt=e=>typeof e=="symbol",Ls=e=>e!==null&&typeof e=="object",Rn=ye(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ps=ye("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Pt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Fs=/-(\w)/g,Se=Pt(e=>e.replace(Fs,(t,n)=>n?n.toUpperCase():"")),Ft=Pt(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=Pt(e=>e?`on${Ft(e)}`:""),ct={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"},zs={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Us=/;(?![^(]*\))/g,Hs=/:([^]+)/,qs=/\/\*[^]*?\*\//g;function Ks(e){const t={};return e.replace(qs,"").split(Us).forEach(n=>{if(n){const s=n.split(Hs);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}const Ws="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",Gs="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",Js="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",Ys="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Xs=ye(Ws),Zs=ye(Gs),Qs=ye(Js),Vs=ye(Ys);/**
|
|
6
6
|
* @vue/compiler-core v3.5.17
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/const qe=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),ot=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),In=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),De=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),An=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),$n=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),We=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Mn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),jt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),zt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),qt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Rn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),Ln=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),it=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),lt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),Ge=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Je=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Hr=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),at=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),qr=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Kr=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),Zt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Wr=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Gr=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Qt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Pn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Re={[qe]:"Fragment",[Ke]:"Teleport",[Rt]:"Suspense",[ot]:"KeepAlive",[In]:"BaseTransition",[De]:"openBlock",[An]:"createBlock",[$n]:"createElementBlock",[Lt]:"createVNode",[Pt]:"createElementVNode",[We]:"createCommentVNode",[Ft]:"createTextVNode",[Mn]:"createStaticVNode",[jt]:"resolveComponent",[zt]:"resolveDynamicComponent",[Ut]:"resolveDirective",[Ht]:"resolveFilter",[qt]:"withDirectives",[Kt]:"renderList",[Rn]:"renderSlot",[Ln]:"createSlots",[it]:"toDisplayString",[lt]:"mergeProps",[Wt]:"normalizeClass",[Gt]:"normalizeStyle",[Ge]:"normalizeProps",[Je]:"guardReactiveProps",[Jt]:"toHandlers",[Yt]:"camelize",[Hr]:"capitalize",[Xt]:"toHandlerKey",[at]:"setBlockTracking",[qr]:"pushScopeId",[Kr]:"popScopeId",[Zt]:"withCtx",[Wr]:"unref",[Gr]:"isRef",[Qt]:"withMemo",[Pn]:"isMemoSame"};function Jr(e){Object.getOwnPropertySymbols(e).forEach(t=>{Re[t]=e[t]})}const de={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Yr(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:de}}function Ye(e,t,n,r,o,i,l,a=!1,c=!1,p=!1,m=de){return e&&(a?(e.helper(De),e.helper(Fe(e.inSSR,p))):e.helper(Pe(e.inSSR,p)),l&&e.helper(qt)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:p,loc:m}}function Oe(e,t=de){return{type:17,loc:t,elements:e}}function ue(e,t=de){return{type:15,loc:t,properties:e}}function W(e,t){return{type:16,loc:de,key:Y(e)?B(e,!0):e,value:t}}function B(e,t=!1,n=de,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function he(e,t=de){return{type:8,loc:t,children:e}}function J(e,t=[],n=de){return{type:14,loc:n,callee:e,arguments:t}}function Le(e,t=void 0,n=!1,r=!1,o=de){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Vt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:de}}function Xr(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:de}}function Zr(e){return{type:21,body:e,loc:de}}function Pe(e,t){return e||t?Lt:Pt}function Fe(e,t){return e||t?An:$n}function en(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Pe(r,e.isComponent)),t(De),t(Fe(r,e.isComponent)))}const Fn=new Uint8Array([123,123]),jn=new Uint8Array([125,125]);function zn(e){return e>=97&&e<=122||e>=65&&e<=90}function pe(e){return e===32||e===10||e===9||e===12||e===13}function Se(e){return e===47||e===62||pe(e)}function ct(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const X={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 Qr{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=Fn,this.delimiterClose=jn,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=Fn,this.delimiterClose=jn}getPos(t){let n=1,r=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,r=t-i;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?Se(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||pe(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===X.TitleEnd||this.currentSequence===X.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===X.Cdata[this.sequenceIndex]?++this.sequenceIndex===X.Cdata.length&&(this.state=28,this.currentSequence=X.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===X.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):zn(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){Se(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Se(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(ct("</"+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){pe(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=zn(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||pe(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):pe(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):pe(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Se(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||Se(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||Se(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||Se(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||Se(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)):pe(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):pe(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){pe(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=X.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===X.ScriptEnd[3]?this.startSpecial(X.ScriptEnd,4):t===X.StyleEnd[3]?this.startSpecial(X.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===X.TitleEnd[3]?this.startSpecial(X.TitleEnd,4):t===X.TextareaEnd[3]?this.startSpecial(X.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===X.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 Vr={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 tn(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Ce(e,t){const n=tn("MODE",t),r=tn(e,t);return n===3?r===!0:r!==!1}function je(e,t,n,...r){const o=Ce(e,t);return process.env.NODE_ENV!=="production"&&o&&dt(e,t,n,...r),o}function dt(e,t,n,...r){if(tn(e,t)==="suppress-warning")return;const{message:i,link:l}=Vr[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...r):i}${l?`
|
|
10
|
-
Details: ${l}`:""}`,c=new SyntaxError(a);c.code=e,n&&(c.loc=n),t.onWarn(c)}function
|
|
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:""},oe=e=>e.type===4&&e.isStatic;function Hn(e){switch(e){case"Teleport":case"teleport":return Ke;case"Suspense":case"suspense":return Rt;case"KeepAlive":case"keep-alive":return ot;case"BaseTransition":case"base-transition":return In}}const to=/^\d|[^\$\w\xA0-\uFFFF]/,sn=e=>!to.test(e),no=/[A-Za-z_$\xA0-\uFFFF]/,so=/[\.\?\w$\xA0-\uFFFF]/,ro=/\s+[.[]\s*|\s*[.[]\s+/g,qn=e=>e.type===4?e.content:e.loc.source,Kn=e=>{const t=qn(e).trim().replace(ro,a=>a.trim());let n=0,r=[],o=0,i=0,l=null;for(let a=0;a<t.length;a++){const c=t.charAt(a);switch(n){case 0:if(c==="[")r.push(n),n=1,o++;else if(c==="(")r.push(n),n=2,i++;else if(!(a===0?no:so).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(r.push(n),n=3,l=c):c==="["?o++:c==="]"&&(--o||(n=r.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")r.push(n),n=3,l=c;else if(c==="(")i++;else if(c===")"){if(a===t.length-1)return!1;--i||(n=r.pop())}break;case 3:c===l&&(n=r.pop(),l=null);break}}return!o&&!i},oo=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,io=e=>oo.test(qn(e));function Wn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ie(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(Y(t)?o.name===t:t.test(o.name)))return o}}function Xe(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&_e(i.arg,t))return i}}function _e(e,t){return!!(e&&oe(e)&&e.content===t)}function lo(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function rn(e){return e.type===5||e.type===2}function ao(e){return e.type===7&&e.name==="slot"}function pt(e){return e.type===1&&e.tagType===3}function ft(e){return e.type===1&&e.tagType===2}const co=new Set([Ge,Je]);function Gn(e,t=[]){if(e&&!Y(e)&&e.type===14){const n=e.callee;if(!Y(n)&&co.has(n))return Gn(e.arguments[0],t.concat(e))}return[e,t]}function ut(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!Y(o)&&o.type===14){const a=Gn(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||Y(o))r=ue([t]);else if(o.type===14){const a=o.arguments[0];!Y(a)&&a.type===15?Jn(t,a)||a.properties.unshift(t):o.callee===Jt?r=J(n.helper(lt),[ue([t]),o]):o.arguments.unshift(ue([t])),!r&&(r=o)}else o.type===15?(Jn(t,o)||o.properties.unshift(t),r=o):(r=J(n.helper(lt),[ue([t]),o]),l&&l.callee===Je&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Jn(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function Ze(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function po(e){return e.type===14&&e.callee===Qt?e.arguments[1].returns:e}const fo=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Yn={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:st,isPreTag:st,isIgnoreNewlineTag:st,isCustomElement:st,onError:nn,onWarn:Un,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let R=Yn,Qe=null,be="",V=null,L=null,le="",Ee=-1,Be=-1,on=0,Te=!1,ln=null;const q=[],U=new Qr(q,{onerr:ae,ontext(e,t){ht(Z(e,t),e,t)},ontextentity(e,t,n){ht(e,t,n)},oninterpolation(e,t){if(Te)return ht(Z(e,t),e,t);let n=e+U.delimiterOpen.length,r=t-U.delimiterClose.length;for(;pe(be.charCodeAt(n));)n++;for(;pe(be.charCodeAt(r-1));)r--;let o=Z(n,r);o.includes("&")&&(o=R.decodeEntities(o,!1)),an({type:5,content:gt(o,!1,G(n,r)),loc:G(e,t)})},onopentagname(e,t){const n=Z(e,t);V={type:1,tag:n,ns:R.getNamespace(n,q[0],R.ns),tagType:0,props:[],children:[],loc:G(e-1,t),codegenNode:void 0}},onopentagend(e){Zn(e)},onclosetag(e,t){const n=Z(e,t);if(!R.isVoidTag(n)){let r=!1;for(let o=0;o<q.length;o++)if(q[o].tag.toLowerCase()===n.toLowerCase()){r=!0,o>0&&ae(24,q[0].loc.start.offset);for(let l=0;l<=o;l++){const a=q.shift();mt(a,t,l<o)}break}r||ae(23,Qn(e,60))}},onselfclosingtag(e){const t=V.tag;V.isSelfClosing=!0,Zn(e),q[0]&&q[0].tag===t&&mt(q.shift(),e)},onattribname(e,t){L={type:6,name:Z(e,t),nameLoc:G(e,t),value:void 0,loc:G(e)}},ondirname(e,t){const n=Z(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Te&&r===""&&ae(26,e),Te||r==="")L={type:6,name:n,nameLoc:G(e,t),value:void 0,loc:G(e)};else if(L={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[B("prop")]:[],loc:G(e)},r==="pre"){Te=U.inVPre=!0,ln=V;const o=V.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=wo(o[i]))}},ondirarg(e,t){if(e===t)return;const n=Z(e,t);if(Te)L.name+=n,Ie(L.nameLoc,t);else{const r=n[0]!=="[";L.arg=gt(r?n:n.slice(1,-1),r,G(e,t),r?3:0)}},ondirmodifier(e,t){const n=Z(e,t);if(Te)L.name+="."+n,Ie(L.nameLoc,t);else if(L.name==="slot"){const r=L.arg;r&&(r.content+="."+n,Ie(r.loc,t))}else{const r=B(n,!0,G(e,t));L.modifiers.push(r)}},onattribdata(e,t){le+=Z(e,t),Ee<0&&(Ee=e),Be=t},onattribentity(e,t,n){le+=e,Ee<0&&(Ee=t),Be=n},onattribnameend(e){const t=L.loc.start.offset,n=Z(t,e);L.type===7&&(L.rawName=n),V.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&ae(2,t)},onattribend(e,t){if(V&&L){if(Ie(L.loc,t),e!==0)if(le.includes("&")&&(le=R.decodeEntities(le,!0)),L.type===6)L.name==="class"&&(le=ts(le).trim()),e===1&&!le&&ae(13,t),L.value={type:2,content:le,loc:e===1?G(Ee,Be):G(Ee-1,Be+1)},U.inSFCRoot&&V.tag==="template"&&L.name==="lang"&&le&&le!=="html"&&U.enterRCDATA(ct("</template"),0);else{let n=0;L.exp=gt(le,!1,G(Ee,Be),0,n),L.name==="for"&&(L.forParseResult=ho(L.exp));let r=-1;L.name==="bind"&&(r=L.modifiers.findIndex(o=>o.content==="sync"))>-1&&je("COMPILER_V_BIND_SYNC",R,L.loc,L.arg.loc.source)&&(L.name="model",L.modifiers.splice(r,1))}(L.type!==7||L.name!=="pre")&&V.props.push(L)}le="",Ee=Be=-1},oncomment(e,t){R.comments&&an({type:3,content:Z(e,t),loc:G(e-4,t+3)})},onend(){const e=be.length;if(process.env.NODE_ENV!=="production"&&U.state!==1)switch(U.state){case 5:case 8:ae(5,e);break;case 3:case 4:ae(25,U.sectionStart);break;case 28:U.currentSequence===X.CdataEnd?ae(6,e):ae(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:ae(9,e);break}for(let t=0;t<q.length;t++)mt(q[t],e-1),ae(24,q[t].loc.start.offset)},oncdata(e,t){q[0].ns!==0?ht(Z(e,t),e,t):ae(1,e-9)},onprocessinginstruction(e){(q[0]?q[0].ns:R.ns)===0&&ae(21,e-1)}}),Xn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,uo=/^\(|\)$/g;function ho(e){const t=e.loc,n=e.content,r=n.match(fo);if(!r)return;const[,o,i]=r,l=(d,u,h=!1)=>{const E=t.start.offset+u,v=E+d.length;return gt(d,!1,G(E,v),0,h?1:0)},a={source:l(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(uo,"").trim();const p=o.indexOf(c),m=c.match(Xn);if(m){c=c.replace(Xn,"").trim();const d=m[1].trim();let u;if(d&&(u=n.indexOf(d,p+c.length),a.key=l(d,u,!0)),m[2]){const h=m[2].trim();h&&(a.index=l(h,n.indexOf(h,a.key?u+d.length:p+c.length),!0))}}return c&&(a.value=l(c,p,!0)),a}function Z(e,t){return be.slice(e,t)}function Zn(e){U.inSFCRoot&&(V.innerLoc=G(e+1,e+1)),an(V);const{tag:t,ns:n}=V;n===0&&R.isPreTag(t)&&on++,R.isVoidTag(t)?mt(V,e):(q.unshift(V),(n===1||n===2)&&(U.inXML=!0)),V=null}function ht(e,t,n){{const i=q[0]&&q[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=R.decodeEntities(e,!1))}const r=q[0]||Qe,o=r.children[r.children.length-1];o&&o.type===2?(o.content+=e,Ie(o.loc,n)):r.children.push({type:2,content:e,loc:G(t,n)})}function mt(e,t,n=!1){n?Ie(e.loc,Qn(t,60)):Ie(e.loc,mo(t,62)+1),U.inSFCRoot&&(e.children.length?e.innerLoc.end=we({},e.children[e.children.length-1].loc.end):e.innerLoc.end=we({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o,children:i}=e;if(Te||(r==="slot"?e.tagType=2:Vn(e)?e.tagType=3:vo(e)&&(e.tagType=1)),U.inRCDATA||(e.children=es(i)),o===0&&R.isIgnoreNewlineTag(r)){const l=i[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}o===0&&R.isPreTag(r)&&on--,ln===e&&(Te=U.inVPre=!1,ln=null),U.inXML&&(q[0]?q[0].ns:R.ns)===0&&(U.inXML=!1);{const l=e.props;if(process.env.NODE_ENV!=="production"&&Ce("COMPILER_V_IF_V_FOR_PRECEDENCE",R)){let c=!1,p=!1;for(let m=0;m<l.length;m++){const d=l[m];if(d.type===7&&(d.name==="if"?c=!0:d.name==="for"&&(p=!0)),c&&p){dt("COMPILER_V_IF_V_FOR_PRECEDENCE",R,e.loc);break}}}if(!U.inSFCRoot&&Ce("COMPILER_NATIVE_TEMPLATE",R)&&e.tag==="template"&&!Vn(e)){process.env.NODE_ENV!=="production"&&dt("COMPILER_NATIVE_TEMPLATE",R,e.loc);const c=q[0]||Qe,p=c.children.indexOf(e);c.children.splice(p,1,...e.children)}const a=l.find(c=>c.type===6&&c.name==="inline-template");a&&je("COMPILER_INLINE_TEMPLATE",R,a.loc)&&e.children.length&&(a.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function mo(e,t){let n=e;for(;be.charCodeAt(n)!==t&&n<be.length-1;)n++;return n}function Qn(e,t){let n=e;for(;be.charCodeAt(n)!==t&&n>=0;)n--;return n}const go=new Set(["if","else","else-if","for","slot"]);function Vn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&go.has(t[n].name))return!0}return!1}function vo({tag:e,props:t}){if(R.isCustomElement(e))return!1;if(e==="component"||yo(e.charCodeAt(0))||Hn(e)||R.isBuiltInComponent&&R.isBuiltInComponent(e)||R.isNativeTag&&!R.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(je("COMPILER_IS_ON_ELEMENT",R,r.loc))return!0}}else if(r.name==="bind"&&_e(r.arg,"is")&&je("COMPILER_IS_ON_ELEMENT",R,r.loc))return!0}return!1}function yo(e){return e>64&&e<91}const bo=/\r\n/g;function es(e){const t=R.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const o=e[r];if(o.type===2)if(on)o.content=o.content.replace(bo,`
|
|
12
|
-
`);else if(Eo(o.content)){const i=e[r-1]&&e[r-1].type,l=e[r+1]&&e[r+1].type;!i||!l||t&&(i===3&&(l===3||l===1)||i===1&&(l===3||l===1&&ko(o.content)))?(n=!0,e[r]=null):o.content=" "}else t&&(o.content=ts(o.content))}return n?e.filter(Boolean):e}function Eo(e){for(let t=0;t<e.length;t++)if(!pe(e.charCodeAt(t)))return!1;return!0}function ko(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function ts(e){let t="",n=!1;for(let r=0;r<e.length;r++)pe(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function an(e){(q[0]||Qe).children.push(e)}function G(e,t){return{start:U.getPos(e),end:t==null?t:U.getPos(t),source:t==null?t:Z(e,t)}}function xo(e){return G(e.start.offset,e.end.offset)}function Ie(e,t){e.end=U.getPos(t),e.source=Z(e.start.offset,t)}function wo(e){const t={type:6,name:e.rawName,nameLoc:G(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 gt(e,t=!1,n,r=0,o=0){return B(e,t,n,r)}function ae(e,t,n){R.onError(z(e,G(t,t),void 0,n))}function No(){U.reset(),V=null,L=null,le="",Ee=-1,Be=-1,q.length=0}function So(e,t){if(No(),be=e,R=we({},Yn),t){let o;for(o in t)t[o]!=null&&(R[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!R.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");U.mode=R.parseMode==="html"?1:R.parseMode==="sfc"?2:0,U.inXML=R.ns===1||R.ns===2;const n=t&&t.delimiters;n&&(U.delimiterOpen=ct(n[0]),U.delimiterClose=ct(n[1]));const r=Qe=Yr([],e);return U.parse(be),r.loc=G(0,e.length),r.children=es(r.children),Qe=null,r}function Co(e,t){vt(e,void 0,t,!!ns(e))}function ns(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!ft(t[0])?t[0]:null}function vt(e,t,n,r=!1,o=!1){const{children:i}=e,l=[];for(let d=0;d<i.length;d++){const u=i[d];if(u.type===1&&u.tagType===0){const h=r?0:fe(u,n);if(h>0){if(h>=2){u.codegenNode.patchFlag=-1,l.push(u);continue}}else{const E=u.codegenNode;if(E.type===13){const v=E.patchFlag;if((v===void 0||v===512||v===1)&&rs(u,n)>=2){const _=os(u);_&&(E.props=n.hoist(_))}E.dynamicProps&&(E.dynamicProps=n.hoist(E.dynamicProps))}}}else if(u.type===12&&(r?0:fe(u,n))>=2){l.push(u);continue}if(u.type===1){const h=u.tagType===1;h&&n.scopes.vSlot++,vt(u,e,n,!1,o),h&&n.scopes.vSlot--}else if(u.type===11)vt(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let h=0;h<u.branches.length;h++)vt(u.branches[h],e,n,u.branches[h].children.length===1,o)}let a=!1;const c=[];if(l.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&ve(e.codegenNode.children))e.codegenNode.children=p(Oe(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ve(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=m(e.codegenNode,"default");d&&(c.push(n.cached.length),d.returns=p(Oe(d.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ve(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=ie(e,"slot",!0),u=d&&d.arg&&m(t.codegenNode,d.arg);u&&(c.push(n.cached.length),u.returns=p(Oe(u.returns)),a=!0)}}if(!a)for(const d of l)c.push(n.cached.length),d.codegenNode=n.cache(d.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ve(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(W("__",B(JSON.stringify(c),!1)));function p(d){const u=n.cache(d);return o&&n.hmr&&(u.needArraySpread=!0),u}function m(d,u){if(d.children&&!ve(d.children)&&d.children.type===15){const h=d.children.properties.find(E=>E.key===u||E.key.content===u);return h&&h.value}}l.length&&n.transformHoist&&n.transformHoist(i,n,e)}function fe(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 o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let l=3;const a=rs(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const p=fe(e.children[c],t);if(p===0)return n.set(e,0),0;p<l&&(l=p)}if(l>1)for(let c=0;c<e.props.length;c++){const p=e.props[c];if(p.type===7&&p.name==="bind"&&p.exp){const m=fe(p.exp,t);if(m===0)return n.set(e,0),0;m<l&&(l=m)}}if(o.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(De),t.removeHelper(Fe(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Pe(t.inSSR,o.isComponent))}return n.set(e,l),l}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 fe(e.content,t);case 4:return e.constType;case 8:let i=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(Y(a)||At(a))continue;const c=fe(a,t);if(c===0)return 0;c<i&&(i=c)}return i;case 20:return 2;default:return process.env.NODE_ENV,0}}const _o=new Set([Wt,Gt,Ge,Je]);function ss(e,t){if(e.type===14&&!Y(e.callee)&&_o.has(e.callee)){const n=e.arguments[0];if(n.type===4)return fe(n,t);if(n.type===14)return ss(n,t)}return 0}function rs(e,t){let n=3;const r=os(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=fe(l,t);if(c===0)return c;c<n&&(n=c);let p;if(a.type===4?p=fe(a,t):a.type===14?p=ss(a,t):p=0,p===0)return p;p<n&&(n=p)}}return n}function os(e){const t=e.codegenNode;if(t.type===13)return t.props}function To(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:l=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:p=Bt,isCustomElement:m=Bt,expressionPlugins:d=[],scopeId:u=null,slotted:h=!0,ssr:E=!1,inSSR:v=!1,ssrCssVars:_="",bindingMetadata:C=Sr,inline:A=!1,isTS:T=!1,onError:$=nn,onWarn:P=Un,compatConfig:te}){const D=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:D&&Mt(Ne(D[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:i,nodeTransforms:l,directiveTransforms:a,transformHoist:c,isBuiltInComponent:p,isCustomElement:m,expressionPlugins:d,scopeId:u,slotted:h,ssr:E,inSSR:v,ssrCssVars:_,bindingMetadata:C,inline:A,isTS:T,onError:$,onWarn:P,compatConfig:te,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 I=k.helpers.get(x)||0;return k.helpers.set(x,I+1),x},removeHelper(x){const I=k.helpers.get(x);if(I){const F=I-1;F?k.helpers.set(x,F):k.helpers.delete(x)}},helperString(x){return`_${Re[k.helper(x)]}`},replaceNode(x){if(process.env.NODE_ENV!=="production"){if(!k.currentNode)throw new Error("Node being replaced is already removed.");if(!k.parent)throw new Error("Cannot replace root node.")}k.parent.children[k.childIndex]=k.currentNode=x},removeNode(x){if(process.env.NODE_ENV!=="production"&&!k.parent)throw new Error("Cannot remove root node.");const I=k.parent.children,F=x?I.indexOf(x):k.currentNode?k.childIndex:-1;if(process.env.NODE_ENV!=="production"&&F<0)throw new Error("node being removed is not a child of current parent");!x||x===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>F&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(F,1)},onNodeRemoved:Bt,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){Y(x)&&(x=B(x)),k.hoists.push(x);const I=B(`_hoisted_${k.hoists.length}`,!1,x.loc,2);return I.hoisted=x,I},cache(x,I=!1,F=!1){const w=Xr(k.cached.length,x,I,F);return k.cached.push(w),w}};return k.filters=new Set,k}function Do(e,t){const n=To(e,t);yt(e,n),t.hoistStatic&&Co(e,n),t.ssr||Oo(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 Oo(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=ns(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&en(i,t),e.codegenNode=i}else e.codegenNode=r[0]}else if(r.length>1){let o=64;process.env.NODE_ENV!=="production"&&r.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=Ye(t,n(qe),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function Bo(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];Y(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,yt(o,t))}}function yt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(ve(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(We);break;case 5:t.ssr||t.helper(it);break;case 9:for(let i=0;i<e.branches.length;i++)yt(e.branches[i],t);break;case 10:case 11:case 1:case 0:Bo(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function is(e,t){const n=Y(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(ao))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const p=t(r,c,o);p&&l.push(p)}}return l}}}const bt="/*@__PURE__*/",ls=e=>`${Re[e]}: _${Re[e]}`;function Io(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:m=!1,isTS:d=!1,inSSR:u=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:m,isTS:d,inSSR:u,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${Re[v]}`},push(v,_=-2,C){h.code+=v},indent(){E(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:E(--h.indentLevel)},newline(){E(h.indentLevel)}};function E(v){h.push(`
|
|
13
|
-
`+" ".repeat(
|
|
14
|
-
`,-1),c())),e.components.length&&(
|
|
15
|
-
`,0),c()),m||o("return "),e.codegenNode?
|
|
16
|
-
`,-1),e.hoists.length)){const
|
|
17
|
-
`,-1)}Mo(e.hoists,t),i(),o("return ")}function cn(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?Ht:t==="component"?jt:Ut);for(let a=0;a<e.length;a++){let c=e[a];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),r(`const ${Ze(c,t)} = ${l}(${JSON.stringify(c)}${p?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function Mo(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),ee(i,t),r())}t.pure=!1}function Ro(e){return Y(e)||e.type===4||e.type===2||e.type===5||e.type===8}function dn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>ve(r)||!Ro(r));t.push("["),n&&t.indent(),Ve(e,t,n),n&&t.deindent(),t.push("]")}function Ve(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];Y(a)?o(a,-3):ve(a)?dn(a,t):ee(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function ee(e,t){if(Y(e)){t.push(e,-3);return}if(At(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Wn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ee(e.codegenNode,t);break;case 2:Lo(e,t);break;case 4:as(e,t);break;case 5:Po(e,t);break;case 12:ee(e.codegenNode,t);break;case 8:cs(e,t);break;case 3:jo(e,t);break;case 13:zo(e,t);break;case 14:Ho(e,t);break;case 15:qo(e,t);break;case 17:Ko(e,t);break;case 18:Wo(e,t);break;case 19:Go(e,t);break;case 20:Jo(e,t);break;case 21:Ve(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 Wn(!1,`unhandled codegen node type: ${e.type}`),e}}function Lo(e,t){t.push(JSON.stringify(e.content),-3,e)}function as(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Po(e,t){const{push:n,helper:r,pure:o}=t;o&&n(bt),n(`${r(it)}(`),ee(e.content,t),n(")")}function cs(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Y(r)?t.push(r,-3):ee(r,t)}}function Fo(e,t){const{push:n}=t;if(e.type===8)n("["),cs(e,t),n("]");else if(e.isStatic){const r=sn(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function jo(e,t){const{push:n,helper:r,pure:o}=t;o&&n(bt),n(`${r(We)}(${JSON.stringify(e.content)})`,-3,e)}function zo(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:p,directives:m,isBlock:d,disableTracking:u,isComponent:h}=e;let E;if(c)if(process.env.NODE_ENV!=="production")if(c<0)E=c+` /* ${rt[c]} */`;else{const _=Object.keys(rt).map(Number).filter(C=>C>0&&c&C).map(C=>rt[C]).join(", ");E=c+` /* ${_} */`}else E=String(c);m&&n(r(qt)+"("),d&&n(`(${r(De)}(${u?"true":""}), `),o&&n(bt);const v=d?Fe(t.inSSR,h):Pe(t.inSSR,h);n(r(v)+"(",-2,e),Ve(Uo([i,l,a,E,p]),t),n(")"),d&&n(")"),m&&(n(", "),ee(m,t),n(")"))}function Uo(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Ho(e,t){const{push:n,helper:r,pure:o}=t,i=Y(e.callee)?e.callee:r(e.callee);o&&n(bt),n(i+"(",-2,e),Ve(e.arguments,t),n(")")}function qo(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",-2,e);return}const a=l.length>1||process.env.NODE_ENV!=="production"&&l.some(c=>c.value.type!==4);n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:p,value:m}=l[c];Fo(p,t),n(": "),ee(m,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function Ko(e,t){dn(e.elements,t)}function Wo(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:p}=e;p&&n(`_${Re[Zt]}(`),n("(",-2,e),ve(i)?Ve(i,t):i&&ee(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),ve(l)?dn(l,t):ee(l,t)):a&&ee(a,t),(c||a)&&(o(),n("}")),p&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Go(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:p}=t;if(n.type===4){const d=!sn(n.content);d&&l("("),as(n,t),d&&l(")")}else l("("),ee(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),ee(r,t),t.indentLevel--,i&&p(),i||l(" "),l(": ");const m=o.type===19;m||t.indentLevel++,ee(o,t),m||t.indentLevel--,i&&c(!0)}function Jo(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${r(at)}(-1`),e.inVOnce&&n(", true"),n("),"),l(),n("(")),n(`_cache[${e.index}] = `),ee(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),l(),n(`${r(at)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const Yo=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"),Xo=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Ae(e,t,n=!1,r=!1){const o=e.content;if(o.trim())try{new Function(r?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let l=i.message;const a=o.replace(Xo,"").match(Yo);a&&(l=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(z(45,e.loc,void 0,l))}}const Zo=(e,t)=>{if(e.type===5)e.content=pn(e.content,t);else if(e.type===1){const n=ie(e,"memo");for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&o.name!=="for"){const i=o.exp,l=o.arg;i&&i.type===4&&!(o.name==="on"&&l)&&!(n&&l&&l.type===4&&l.content==="key")&&(o.exp=pn(i,t,o.name==="slot")),l&&l.type===4&&!l.isStatic&&(o.arg=pn(l,t))}}}};function pn(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Ae(e,t,n,r),e}const Qo=is(/^(if|else|else-if)$/,(e,t,n)=>Vo(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const p=l[a];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(i)r.codegenNode=ps(o,c,n);else{const p=ti(r.codegenNode);p.alternate=ps(o,c+r.branches.length-1,n)}}}));function Vo(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(z(28,t.loc)),t.exp=B("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Ae(t.exp,n),t.name==="if"){const o=ds(e,t),i={type:9,loc:xo(e.loc),branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children,i=[];let l=o.indexOf(e);for(;l-->=-1;){const a=o[l];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&i.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(z(30,e.loc)),n.removeNode();const c=ds(e,t);if(process.env.NODE_ENV!=="production"&&i.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...i,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&a.branches.forEach(({userKey:d})=>{ei(d,m)&&n.onError(z(29,c.userKey.loc))})}a.branches.push(c);const p=r&&r(a,c,!1);yt(c,n),p&&p(),n.currentNode=null}else n.onError(z(30,e.loc));break}}}function ds(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!ie(e,"for")?e.children:[e],userKey:Xe(e,"key"),isTemplateIf:n}}function ps(e,t,n){return e.condition?Vt(e.condition,fs(e,t,n),J(n.helper(We),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):fs(e,t,n)}function fs(e,t,n){const{helper:r}=n,o=W("key",B(`${t}`,!1,de,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return ut(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(p=>p.type!==3).length===1&&(c|=2048),Ye(n,r(qe),ue([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=l.codegenNode,p=po(c);return p.type===13&&en(p,n),ut(p,o,n),c}}function ei(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 ti(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 ni=(e,t,n)=>{const{modifiers:r,loc:o}=e,i=e.arg;let{exp:l}=e;if(l&&l.type===4&&!l.content.trim()&&(l=void 0),!l){if(i.type!==4||!i.isStatic)return n.onError(z(52,i.loc)),{props:[W(i,B("",!0,o))]};us(e),l=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=Ne(i.content):i.content=`${n.helperString(Yt)}(${i.content})`:(i.children.unshift(`${n.helperString(Yt)}(`),i.children.push(")"))),n.inSSR||(r.some(a=>a.content==="prop")&&hs(i,"."),r.some(a=>a.content==="attr")&&hs(i,"^")),{props:[W(i,l)]}},us=(e,t)=>{const n=e.arg,r=Ne(n.content);e.exp=B(r,!1,n.loc)},hs=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},si=is("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return ri(e,t,n,i=>{const l=J(r(Kt),[i.source]),a=pt(e),c=ie(e,"memo"),p=Xe(e,"key",!1,!0);p&&p.type===7&&!p.exp&&us(p);let d=p&&(p.type===6?p.value?B(p.value.content,!0):void 0:p.exp);const u=p&&d?W("key",d):null,h=i.source.type===4&&i.source.constType>0,E=h?64:p?128:256;return i.codegenNode=Ye(n,r(qe),void 0,l,E,void 0,void 0,!0,!h,!1,e.loc),()=>{let v;const{children:_}=i;process.env.NODE_ENV!=="production"&&a&&e.children.some(T=>{if(T.type===1){const $=Xe(T,"key");if($)return n.onError(z(33,$.loc)),!0}});const C=_.length!==1||_[0].type!==1,A=ft(e)?e:a&&e.children.length===1&&ft(e.children[0])?e.children[0]:null;if(A?(v=A.codegenNode,a&&u&&ut(v,u,n)):C?v=Ye(n,r(qe),u?ue([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(v=_[0].codegenNode,a&&u&&ut(v,u,n),v.isBlock!==!h&&(v.isBlock?(o(De),o(Fe(n.inSSR,v.isComponent))):o(Pe(n.inSSR,v.isComponent))),v.isBlock=!h,v.isBlock?(r(De),r(Fe(n.inSSR,v.isComponent))):r(Pe(n.inSSR,v.isComponent))),c){const T=Le(fn(i.parseResult,[B("_cached")]));T.body=Zr([he(["const _memo = (",c.exp,")"]),he(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${n.helperString(Pn)}(_cached, _memo)) return _cached`]),he(["const _item = ",v]),B("_item.memo = _memo"),B("return _item")]),l.arguments.push(T,B("_cache"),B(String(n.cached.length))),n.cached.push(null)}else l.arguments.push(Le(fn(i.parseResult),v,!0))}})});function ri(e,t,n,r){if(!t.exp){n.onError(z(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(z(32,t.loc));return}ms(o,n);const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:p,key:m,index:d}=o,u={type:11,loc:t.loc,source:c,valueAlias:p,keyAlias:m,objectIndexAlias:d,parseResult:o,children:pt(e)?e.children:[e]};n.replaceNode(u),a.vFor++;const h=r&&r(u);return()=>{a.vFor--,h&&h()}}function ms(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Ae(e.source,t),e.key&&Ae(e.key,t,!0),e.index&&Ae(e.index,t,!0),e.value&&Ae(e.value,t,!0)),e.finalized=!0)}function fn({value:e,key:t,index:n},r=[]){return oi([e,t,n,...r])}function oi(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||B("_".repeat(r+1),!1))}const gs=B("undefined",!1),ii=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=ie(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},li=(e,t,n,r)=>Le(e,n,!1,!0,n.length?n[0].loc:r);function ai(e,t,n=li){t.helper(Zt);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ie(e,"slot",!0);if(c){const{arg:_,exp:C}=c;_&&!oe(_)&&(a=!0),i.push(W(_||B("default",!0),n(C,void 0,r,o)))}let p=!1,m=!1;const d=[],u=new Set;let h=0;for(let _=0;_<r.length;_++){const C=r[_];let A;if(!pt(C)||!(A=ie(C,"slot",!0))){C.type!==3&&d.push(C);continue}if(c){t.onError(z(37,A.loc));break}p=!0;const{children:T,loc:$}=C,{arg:P=B("default",!0),exp:te,loc:D}=A;let k;oe(P)?k=P?P.content:"default":a=!0;const x=ie(C,"for"),I=n(te,x,T,$);let F,w;if(F=ie(C,"if"))a=!0,l.push(Vt(F.exp,Et(P,I,h++),gs));else if(w=ie(C,/^else(-if)?$/,!0)){let b=_,S;for(;b--&&(S=r[b],!(S.type!==3&&un(S))););if(S&&pt(S)&&ie(S,/^(else-)?if$/)){let O=l[l.length-1];for(;O.alternate.type===19;)O=O.alternate;O.alternate=w.exp?Vt(w.exp,Et(P,I,h++),gs):Et(P,I,h++)}else t.onError(z(30,w.loc))}else if(x){a=!0;const b=x.forParseResult;b?(ms(b,t),l.push(J(t.helper(Kt),[b.source,Le(fn(b),Et(P,I),!0)]))):t.onError(z(32,x.loc))}else{if(k){if(u.has(k)){t.onError(z(38,D));continue}u.add(k),k==="default"&&(m=!0)}i.push(W(P,I))}}if(!c){const _=(C,A)=>{const T=n(C,void 0,A,o);return t.compatConfig&&(T.isNonScopedSlot=!0),W("default",T)};p?d.length&&d.some(C=>un(C))&&(m?t.onError(z(39,d[0].loc)):i.push(_(void 0,d))):i.push(_(void 0,r))}const E=a?2:kt(e.children)?3:1;let v=ue(i.concat(W("_",B(E+(process.env.NODE_ENV!=="production"?` /* ${Or[E]} */`:""),!1))),o);return l.length&&(v=J(t.helper(Ln),[v,Oe(l)])),{slots:v,hasDynamicSlots:a}}function Et(e,t,n){const r=[W("name",e),W("fn",t)];return n!=null&&r.push(W("key",B(String(n),!0))),ue(r)}function kt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||kt(n.children))return!0;break;case 9:if(kt(n.branches))return!0;break;case 10:case 11:if(kt(n.children))return!0;break}}return!1}function un(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():un(e.content)}const vs=new WeakMap,ci=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?di(e,t):`"${r}"`;const a=Cr(l)&&l.callee===zt;let c,p,m=0,d,u,h,E=a||l===Ke||l===Rt||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(o.length>0){const v=ys(e,t,void 0,i,a);c=v.props,m=v.patchFlag,u=v.dynamicPropNames;const _=v.directives;h=_&&_.length?Oe(_.map(C=>fi(C,t))):void 0,v.shouldUseBlock&&(E=!0)}if(e.children.length>0)if(l===ot&&(E=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(z(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&l!==Ke&&l!==ot){const{slots:_,hasDynamicSlots:C}=ai(e,t);p=_,C&&(m|=1024)}else if(e.children.length===1&&l!==Ke){const _=e.children[0],C=_.type,A=C===5||C===8;A&&fe(_,t)===0&&(m|=1),A||C===2?p=_:p=e.children}else p=e.children;u&&u.length&&(d=ui(u)),e.codegenNode=Ye(t,l,c,p,m===0?void 0:m,d,h,!!E,!1,i,e.loc)};function di(e,t,n=!1){let{tag:r}=e;const o=hn(r),i=Xe(e,"is",!1,!0);if(i)if(o||Ce("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&B(i.value.content,!0):(a=i.exp,a||(a=B("is",!1,i.arg.loc))),a)return J(t.helper(zt),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=Hn(r)||t.isBuiltInComponent(r);return l?(n||t.helper(l),l):(t.helper(jt),t.components.add(r),Ze(r,"component"))}function ys(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let p=[];const m=[],d=[],u=c.length>0;let h=!1,E=0,v=!1,_=!1,C=!1,A=!1,T=!1,$=!1;const P=[],te=I=>{p.length&&(m.push(ue(bs(p),a)),p=[]),I&&m.push(I)},D=()=>{t.scopes.vFor>0&&p.push(W(B("ref_for",!0),B("true")))},k=({key:I,value:F})=>{if(oe(I)){const w=I.content,b=It(w);if(b&&(!r||o)&&w.toLowerCase()!=="onclick"&&w!=="onUpdate:modelValue"&&!Bn(w)&&(A=!0),b&&Bn(w)&&($=!0),b&&F.type===14&&(F=F.arguments[0]),F.type===20||(F.type===4||F.type===8)&&fe(F,t)>0)return;w==="ref"?v=!0:w==="class"?_=!0:w==="style"?C=!0:w!=="key"&&!P.includes(w)&&P.push(w),r&&(w==="class"||w==="style")&&!P.includes(w)&&P.push(w)}else T=!0};for(let I=0;I<n.length;I++){const F=n[I];if(F.type===6){const{loc:w,name:b,nameLoc:S,value:O}=F;let H=!0;if(b==="ref"&&(v=!0,D()),b==="is"&&(hn(l)||O&&O.content.startsWith("vue:")||Ce("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(W(B(b,!0,S),B(O?O.content:"",H,O?O.loc:w)))}else{const{name:w,arg:b,exp:S,loc:O,modifiers:H}=F,Q=w==="bind",ye=w==="on";if(w==="slot"){r||t.onError(z(40,O));continue}if(w==="once"||w==="memo"||w==="is"||Q&&_e(b,"is")&&(hn(l)||Ce("COMPILER_IS_ON_ELEMENT",t))||ye&&i)continue;if((Q&&_e(b,"key")||ye&&u&&_e(b,"vue:before-update"))&&(h=!0),Q&&_e(b,"ref")&&D(),!b&&(Q||ye)){if(T=!0,S)if(Q){if(te(),process.env.NODE_ENV!=="production"&&m.some(ce=>ce.type===15?ce.properties.some(({key:xe})=>xe.type!==4||!xe.isStatic?!0:xe.content!=="class"&&xe.content!=="style"&&!It(xe.content)):!0)&&je("COMPILER_V_BIND_OBJECT_ORDER",t,O),Ce("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(S);continue}D(),te(),m.push(S)}else te({type:14,loc:O,callee:t.helper(Jt),arguments:r?[S]:[S,"true"]});else t.onError(z(Q?34:35,O));continue}Q&&H.some(ne=>ne.content==="prop")&&(E|=32);const ke=t.directiveTransforms[w];if(ke){const{props:ne,needRuntime:ce}=ke(F,e,t);!i&&ne.forEach(k),ye&&b&&!oe(b)?te(ue(ne,a)):p.push(...ne),ce&&(d.push(F),At(ce)&&vs.set(F,ce))}else _r(w)||(d.push(F),u&&(h=!0))}}let x;if(m.length?(te(),m.length>1?x=J(t.helper(lt),m,a):x=m[0]):p.length&&(x=ue(bs(p),a)),T?E|=16:(_&&!r&&(E|=2),C&&!r&&(E|=4),P.length&&(E|=8),A&&(E|=32)),!h&&(E===0||E===32)&&(v||$||d.length>0)&&(E|=512),!t.inSSR&&x)switch(x.type){case 15:let I=-1,F=-1,w=!1;for(let O=0;O<x.properties.length;O++){const H=x.properties[O].key;oe(H)?H.content==="class"?I=O:H.content==="style"&&(F=O):H.isHandlerKey||(w=!0)}const b=x.properties[I],S=x.properties[F];w?x=J(t.helper(Ge),[x]):(b&&!oe(b.value)&&(b.value=J(t.helper(Wt),[b.value])),S&&(C||S.value.type===4&&S.value.content.trim()[0]==="["||S.value.type===17)&&(S.value=J(t.helper(Gt),[S.value])));break;case 14:break;default:x=J(t.helper(Ge),[J(t.helper(Je),[x])]);break}return{props:x,directives:d,patchFlag:E,dynamicPropNames:P,shouldUseBlock:h}}function bs(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||It(i))&&pi(l,o):(t.set(i,o),n.push(o))}return n}function pi(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Oe([e.value,t.value],e.loc)}function fi(e,t){const n=[],r=vs.get(e);r?n.push(t.helperString(r)):(t.helper(Ut),t.directives.add(e.name),n.push(Ze(e.name,"directive")));const{loc:o}=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 i=B("true",!1,o);n.push(ue(e.modifiers.map(l=>W(l,i)),o))}return Oe(n,e.loc)}function ui(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 hn(e){return e==="component"||e==="Component"}const hi=(e,t)=>{if(ft(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=mi(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Le([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=J(t.helper(Rn),l,r)}};function mi(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];if(l.type===6)l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Ne(l.name),o.push(l)));else if(l.name==="bind"&&_e(l.arg,"name")){if(l.exp)n=l.exp;else if(l.arg&&l.arg.type===4){const a=Ne(l.arg.content);n=l.exp=B(a,!1,l.arg.loc)}}else l.name==="bind"&&l.arg&&oe(l.arg)&&(l.arg.content=Ne(l.arg.content)),o.push(l)}if(o.length>0){const{props:i,directives:l}=ys(e,t,o,!1,!1);r=i,l.length&&t.onError(z(36,l[0].loc))}return{slotName:n,slotProps:r}}const Es=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(z(35,o));let a;if(l.type===4)if(l.isStatic){let d=l.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(z(51,l.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const u=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Dr(Ne(d)):`on:${d}`;a=B(u,!0,l.loc)}else a=he([`${n.helperString(Xt)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Xt)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let p=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const d=Kn(c),u=!(d||io(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Ae(c,n,!1,h),(u||p&&d)&&(c=he([`${u?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[W(a,c||B("() => {}",!1,o))]};return r&&(m=r(m)),p&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(d=>d.key.isHandlerKey=!0),m},gi=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(rn(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(rn(c))r||(r=n[i]=he([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(rn(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&fe(l,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${rt[1]} */`:"")),n[i]={type:12,content:l,loc:l.loc,codegenNode:J(t.helper(Ft),a)}}}}},ks=new WeakSet,vi=(e,t)=>{if(e.type===1&&ie(e,"once",!0))return ks.has(e)||t.inVOnce||t.inSSR?void 0:(ks.add(e),t.inVOnce=!0,t.helper(at),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},xs=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(z(41,e.loc)),xt();const i=r.loc.source.trim(),l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(z(44,r.loc)),xt();if(!l.trim()||!Kn(r))return n.onError(z(42,r.loc)),xt();const c=o||B("modelValue",!0),p=o?oe(o)?`onUpdate:${Ne(o.content)}`:he(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const d=n.isTS?"($event: any)":"$event";m=he([`${d} => ((`,r,") = $event)"]);const u=[W(c,e.exp),W(p,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(sn(v)?v:JSON.stringify(v))+": true").join(", "),E=o?oe(o)?`${o.content}Modifiers`:he([o,' + "Modifiers"']):"modelModifiers";u.push(W(E,B(`{ ${h} }`,!1,e.loc,2)))}return xt(u)};function xt(e=[]){return{props:e}}const yi=/[\w).+\-_$\]]/,bi=(e,t)=>{Ce("COMPILER_FILTERS",t)&&(e.type===5?wt(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&wt(n.exp,t)}))};function wt(e,t){if(e.type===4)ws(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?ws(r,t):r.type===8?wt(e,t):r.type===5&&wt(r.content,t))}}function ws(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,p=0,m=0,d,u,h,E,v=[];for(h=0;h<n.length;h++)if(u=d,d=n.charCodeAt(h),r)d===39&&u!==92&&(r=!1);else if(o)d===34&&u!==92&&(o=!1);else if(i)d===96&&u!==92&&(i=!1);else if(l)d===47&&u!==92&&(l=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!c&&!p)E===void 0?(m=h+1,E=n.slice(0,h).trim()):_();else{switch(d){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:p++;break;case 41:p--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(d===47){let C=h-1,A;for(;C>=0&&(A=n.charAt(C),A===" ");C--);(!A||!yi.test(A))&&(l=!0)}}E===void 0?E=n.slice(0,h).trim():m!==0&&_();function _(){v.push(n.slice(m,h).trim()),m=h+1}if(v.length){for(process.env.NODE_ENV!=="production"&&dt("COMPILER_FILTERS",t,e.loc),h=0;h<v.length;h++)E=Ei(E,v[h],t);e.content=E,e.ast=void 0}}function Ei(e,t,n){n.helper(Ht);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Ze(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Ze(o,"filter")}(${e}${i!==")"?","+i:i}`}}const Ns=new WeakSet,ki=(e,t)=>{if(e.type===1){const n=ie(e,"memo");return!n||Ns.has(e)?void 0:(Ns.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&en(r,t),e.codegenNode=J(t.helper(Qt),[n.exp,Le(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function xi(e){return[[vi,Qo,ki,si,bi,...process.env.NODE_ENV!=="production"?[Zo]:[],hi,ci,ii,gi],{on:Es,bind:ni,model:xs}]}function wi(e,t={}){const n=t.onError||nn,r=t.mode==="module";t.prefixIdentifiers===!0?n(z(47)):r&&n(z(48));const o=!1;t.cacheHandlers&&n(z(49)),t.scopeId&&!r&&n(z(50));const i=we({},t,{prefixIdentifiers:o}),l=Y(e)?So(e,i):e,[a,c]=xi();return Do(l,we({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:we({},c,t.directiveTransforms||{})})),Ao(l,i)}const Ni=()=>({props:[]});/**
|
|
9
|
+
**/const Ke=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),We=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),jt=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),dt=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),Ln=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Oe=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Pn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),Fn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),zt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ge=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),jn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),qt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),zn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),Un=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),pt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),ft=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),Zt=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),Je=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Ye=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),Qt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Vt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),eo=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),en=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),ut=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),to=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),no=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),tn=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),ro=Symbol(process.env.NODE_ENV!=="production"?"unref":""),so=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),nn=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Hn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Le={[Ke]:"Fragment",[We]:"Teleport",[jt]:"Suspense",[dt]:"KeepAlive",[Ln]:"BaseTransition",[Oe]:"openBlock",[Pn]:"createBlock",[Fn]:"createElementBlock",[zt]:"createVNode",[Ut]:"createElementVNode",[Ge]:"createCommentVNode",[Ht]:"createTextVNode",[jn]:"createStaticVNode",[qt]:"resolveComponent",[Kt]:"resolveDynamicComponent",[Wt]:"resolveDirective",[Gt]:"resolveFilter",[Jt]:"withDirectives",[Yt]:"renderList",[zn]:"renderSlot",[Un]:"createSlots",[pt]:"toDisplayString",[ft]:"mergeProps",[Xt]:"normalizeClass",[Zt]:"normalizeStyle",[Je]:"normalizeProps",[Ye]:"guardReactiveProps",[Qt]:"toHandlers",[Vt]:"camelize",[eo]:"capitalize",[en]:"toHandlerKey",[ut]:"setBlockTracking",[to]:"pushScopeId",[no]:"popScopeId",[tn]:"withCtx",[ro]:"unref",[so]:"isRef",[nn]:"withMemo",[Hn]:"isMemoSame"};function oo(e){Object.getOwnPropertySymbols(e).forEach(t=>{Le[t]=e[t]})}const fe={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function io(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:fe}}function Xe(e,t,n,s,o,i,l,a=!1,c=!1,d=!1,m=fe){return e&&(a?(e.helper(Oe),e.helper(je(e.inSSR,d))):e.helper(Fe(e.inSSR,d)),l&&e.helper(Jt)),{type:13,tag:t,props:n,children:s,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:m}}function Be(e,t=fe){return{type:17,loc:t,elements:e}}function me(e,t=fe){return{type:15,loc:t,properties:e}}function G(e,t){return{type:16,loc:fe,key:Z(e)?A(e,!0):e,value:t}}function A(e,t=!1,n=fe,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function ge(e,t=fe){return{type:8,loc:t,children:e}}function Y(e,t=[],n=fe){return{type:14,loc:n,callee:e,arguments:t}}function Pe(e,t=void 0,n=!1,s=!1,o=fe){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:o}}function rn(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:fe}}function lo(e,t,n=!1,s=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:s,needArraySpread:!1,loc:fe}}function ao(e){return{type:21,body:e,loc:fe}}function Fe(e,t){return e||t?zt:Ut}function je(e,t){return e||t?Pn:Fn}function sn(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(Fe(s,e.isComponent)),t(Oe),t(je(s,e.isComponent)))}const qn=new Uint8Array([123,123]),Kn=new Uint8Array([125,125]);function Wn(e){return e>=97&&e<=122||e>=65&&e<=90}function ue(e){return e===32||e===10||e===9||e===12||e===13}function Ce(e){return e===47||e===62||ue(e)}function ht(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Q={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 co{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=qn,this.delimiterClose=Kn,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=qn,this.delimiterClose=Kn}getPos(t){let n=1,s=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,s=t-i;break}}return{column:s,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?Ce(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||ue(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}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===Q.TitleEnd||this.currentSequence===Q.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===Q.Cdata[this.sequenceIndex]?++this.sequenceIndex===Q.Cdata.length&&(this.state=28,this.currentSequence=Q.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===Q.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):Wn(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){Ce(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Ce(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(ht("</"+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){ue(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=Wn(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ue(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):ue(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):ue(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Ce(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||Ce(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||Ce(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||Ce(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||Ce(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)):ue(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):ue(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){ue(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=Q.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===Q.ScriptEnd[3]?this.startSpecial(Q.ScriptEnd,4):t===Q.StyleEnd[3]?this.startSpecial(Q.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Q.TitleEnd[3]?this.startSpecial(Q.TitleEnd,4):t===Q.TextareaEnd[3]?this.startSpecial(Q.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===Q.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 po={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 on(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function _e(e,t){const n=on("MODE",t),s=on(e,t);return n===3?s===!0:s!==!1}function ze(e,t,n,...s){const o=_e(e,t);return process.env.NODE_ENV!=="production"&&o&&mt(e,t,n,...s),o}function mt(e,t,n,...s){if(on(e,t)==="suppress-warning")return;const{message:i,link:l}=po[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...s):i}${l?`
|
|
10
|
+
Details: ${l}`:""}`,c=new SyntaxError(a);c.code=e,n&&(c.loc=n),t.onWarn(c)}function ln(e){throw e}function Gn(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function U(e,t,n,s){const o=process.env.NODE_ENV!=="production"?(n||fo)[e]+(s||""):`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const fo={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 '<' 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:""},ie=e=>e.type===4&&e.isStatic;function Jn(e){switch(e){case"Teleport":case"teleport":return We;case"Suspense":case"suspense":return jt;case"KeepAlive":case"keep-alive":return dt;case"BaseTransition":case"base-transition":return Ln}}const uo=/^\d|[^\$\w\xA0-\uFFFF]/,an=e=>!uo.test(e),ho=/[A-Za-z_$\xA0-\uFFFF]/,mo=/[\.\?\w$\xA0-\uFFFF]/,go=/\s+[.[]\s*|\s*[.[]\s+/g,Yn=e=>e.type===4?e.content:e.loc.source,Xn=e=>{const t=Yn(e).trim().replace(go,a=>a.trim());let n=0,s=[],o=0,i=0,l=null;for(let a=0;a<t.length;a++){const c=t.charAt(a);switch(n){case 0:if(c==="[")s.push(n),n=1,o++;else if(c==="(")s.push(n),n=2,i++;else if(!(a===0?ho:mo).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(s.push(n),n=3,l=c):c==="["?o++:c==="]"&&(--o||(n=s.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")s.push(n),n=3,l=c;else if(c==="(")i++;else if(c===")"){if(a===t.length-1)return!1;--i||(n=s.pop())}break;case 3:c===l&&(n=s.pop(),l=null);break}}return!o&&!i},vo=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,yo=e=>vo.test(Yn(e));function Zn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function le(e,t,n=!1){for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===7&&(n||o.exp)&&(Z(t)?o.name===t:t.test(o.name)))return o}}function Ze(e,t,n=!1,s=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||s))return i}else if(i.name==="bind"&&(i.exp||s)&&Te(i.arg,t))return i}}function Te(e,t){return!!(e&&ie(e)&&e.content===t)}function bo(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function cn(e){return e.type===5||e.type===2}function Eo(e){return e.type===7&&e.name==="slot"}function gt(e){return e.type===1&&e.tagType===3}function vt(e){return e.type===1&&e.tagType===2}const ko=new Set([Je,Ye]);function Qn(e,t=[]){if(e&&!Z(e)&&e.type===14){const n=e.callee;if(!Z(n)&&ko.has(n))return Qn(e.arguments[0],t.concat(e))}return[e,t]}function yt(e,t,n){let s,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!Z(o)&&o.type===14){const a=Qn(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||Z(o))s=me([t]);else if(o.type===14){const a=o.arguments[0];!Z(a)&&a.type===15?Vn(t,a)||a.properties.unshift(t):o.callee===Qt?s=Y(n.helper(ft),[me([t]),o]):o.arguments.unshift(me([t])),!s&&(s=o)}else o.type===15?(Vn(t,o)||o.properties.unshift(t),s=o):(s=Y(n.helper(ft),[me([t]),o]),l&&l.callee===Ye&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=s:e.props=s:l?l.arguments[0]=s:e.arguments[2]=s}function Vn(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===s)}return n}function Qe(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function xo(e){return e.type===14&&e.callee===nn?e.arguments[1].returns:e}const wo=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,er={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:at,isPreTag:at,isIgnoreNewlineTag:at,isCustomElement:at,onError:ln,onWarn:Gn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let L=er,Ve=null,Ee="",ee=null,P=null,ae="",ke=-1,Ie=-1,dn=0,De=!1,pn=null;const K=[],q=new co(K,{onerr:ce,ontext(e,t){bt(V(e,t),e,t)},ontextentity(e,t,n){bt(e,t,n)},oninterpolation(e,t){if(De)return bt(V(e,t),e,t);let n=e+q.delimiterOpen.length,s=t-q.delimiterClose.length;for(;ue(Ee.charCodeAt(n));)n++;for(;ue(Ee.charCodeAt(s-1));)s--;let o=V(n,s);o.includes("&")&&(o=L.decodeEntities(o,!1)),fn({type:5,content:kt(o,!1,J(n,s)),loc:J(e,t)})},onopentagname(e,t){const n=V(e,t);ee={type:1,tag:n,ns:L.getNamespace(n,K[0],L.ns),tagType:0,props:[],children:[],loc:J(e-1,t),codegenNode:void 0}},onopentagend(e){nr(e)},onclosetag(e,t){const n=V(e,t);if(!L.isVoidTag(n)){let s=!1;for(let o=0;o<K.length;o++)if(K[o].tag.toLowerCase()===n.toLowerCase()){s=!0,o>0&&ce(24,K[0].loc.start.offset);for(let l=0;l<=o;l++){const a=K.shift();Et(a,t,l<o)}break}s||ce(23,rr(e,60))}},onselfclosingtag(e){const t=ee.tag;ee.isSelfClosing=!0,nr(e),K[0]&&K[0].tag===t&&Et(K.shift(),e)},onattribname(e,t){P={type:6,name:V(e,t),nameLoc:J(e,t),value:void 0,loc:J(e)}},ondirname(e,t){const n=V(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!De&&s===""&&ce(26,e),De||s==="")P={type:6,name:n,nameLoc:J(e,t),value:void 0,loc:J(e)};else if(P={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[A("prop")]:[],loc:J(e)},s==="pre"){De=q.inVPre=!0,pn=ee;const o=ee.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=$o(o[i]))}},ondirarg(e,t){if(e===t)return;const n=V(e,t);if(De)P.name+=n,Ae(P.nameLoc,t);else{const s=n[0]!=="[";P.arg=kt(s?n:n.slice(1,-1),s,J(e,t),s?3:0)}},ondirmodifier(e,t){const n=V(e,t);if(De)P.name+="."+n,Ae(P.nameLoc,t);else if(P.name==="slot"){const s=P.arg;s&&(s.content+="."+n,Ae(s.loc,t))}else{const s=A(n,!0,J(e,t));P.modifiers.push(s)}},onattribdata(e,t){ae+=V(e,t),ke<0&&(ke=e),Ie=t},onattribentity(e,t,n){ae+=e,ke<0&&(ke=t),Ie=n},onattribnameend(e){const t=P.loc.start.offset,n=V(t,e);P.type===7&&(P.rawName=n),ee.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&ce(2,t)},onattribend(e,t){if(ee&&P){if(Ae(P.loc,t),e!==0)if(ae.includes("&")&&(ae=L.decodeEntities(ae,!0)),P.type===6)P.name==="class"&&(ae=ir(ae).trim()),e===1&&!ae&&ce(13,t),P.value={type:2,content:ae,loc:e===1?J(ke,Ie):J(ke-1,Ie+1)},q.inSFCRoot&&ee.tag==="template"&&P.name==="lang"&&ae&&ae!=="html"&&q.enterRCDATA(ht("</template"),0);else{let n=0;P.exp=kt(ae,!1,J(ke,Ie),0,n),P.name==="for"&&(P.forParseResult=So(P.exp));let s=-1;P.name==="bind"&&(s=P.modifiers.findIndex(o=>o.content==="sync"))>-1&&ze("COMPILER_V_BIND_SYNC",L,P.loc,P.arg.loc.source)&&(P.name="model",P.modifiers.splice(s,1))}(P.type!==7||P.name!=="pre")&&ee.props.push(P)}ae="",ke=Ie=-1},oncomment(e,t){L.comments&&fn({type:3,content:V(e,t),loc:J(e-4,t+3)})},onend(){const e=Ee.length;if(process.env.NODE_ENV!=="production"&&q.state!==1)switch(q.state){case 5:case 8:ce(5,e);break;case 3:case 4:ce(25,q.sectionStart);break;case 28:q.currentSequence===Q.CdataEnd?ce(6,e):ce(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:ce(9,e);break}for(let t=0;t<K.length;t++)Et(K[t],e-1),ce(24,K[t].loc.start.offset)},oncdata(e,t){K[0].ns!==0?bt(V(e,t),e,t):ce(1,e-9)},onprocessinginstruction(e){(K[0]?K[0].ns:L.ns)===0&&ce(21,e-1)}}),tr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,No=/^\(|\)$/g;function So(e){const t=e.loc,n=e.content,s=n.match(wo);if(!s)return;const[,o,i]=s,l=(p,u,h=!1)=>{const E=t.start.offset+u,y=E+p.length;return kt(p,!1,J(E,y),0,h?1:0)},a={source:l(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(No,"").trim();const d=o.indexOf(c),m=c.match(tr);if(m){c=c.replace(tr,"").trim();const p=m[1].trim();let u;if(p&&(u=n.indexOf(p,d+c.length),a.key=l(p,u,!0)),m[2]){const h=m[2].trim();h&&(a.index=l(h,n.indexOf(h,a.key?u+p.length:d+c.length),!0))}}return c&&(a.value=l(c,d,!0)),a}function V(e,t){return Ee.slice(e,t)}function nr(e){q.inSFCRoot&&(ee.innerLoc=J(e+1,e+1)),fn(ee);const{tag:t,ns:n}=ee;n===0&&L.isPreTag(t)&&dn++,L.isVoidTag(t)?Et(ee,e):(K.unshift(ee),(n===1||n===2)&&(q.inXML=!0)),ee=null}function bt(e,t,n){{const i=K[0]&&K[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=L.decodeEntities(e,!1))}const s=K[0]||Ve,o=s.children[s.children.length-1];o&&o.type===2?(o.content+=e,Ae(o.loc,n)):s.children.push({type:2,content:e,loc:J(t,n)})}function Et(e,t,n=!1){n?Ae(e.loc,rr(t,60)):Ae(e.loc,Co(t,62)+1),q.inSFCRoot&&(e.children.length?e.innerLoc.end=Ne({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ne({},e.innerLoc.start),e.innerLoc.source=V(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:o,children:i}=e;if(De||(s==="slot"?e.tagType=2:sr(e)?e.tagType=3:To(e)&&(e.tagType=1)),q.inRCDATA||(e.children=or(i)),o===0&&L.isIgnoreNewlineTag(s)){const l=i[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}o===0&&L.isPreTag(s)&&dn--,pn===e&&(De=q.inVPre=!1,pn=null),q.inXML&&(K[0]?K[0].ns:L.ns)===0&&(q.inXML=!1);{const l=e.props;if(process.env.NODE_ENV!=="production"&&_e("COMPILER_V_IF_V_FOR_PRECEDENCE",L)){let c=!1,d=!1;for(let m=0;m<l.length;m++){const p=l[m];if(p.type===7&&(p.name==="if"?c=!0:p.name==="for"&&(d=!0)),c&&d){mt("COMPILER_V_IF_V_FOR_PRECEDENCE",L,e.loc);break}}}if(!q.inSFCRoot&&_e("COMPILER_NATIVE_TEMPLATE",L)&&e.tag==="template"&&!sr(e)){process.env.NODE_ENV!=="production"&&mt("COMPILER_NATIVE_TEMPLATE",L,e.loc);const c=K[0]||Ve,d=c.children.indexOf(e);c.children.splice(d,1,...e.children)}const a=l.find(c=>c.type===6&&c.name==="inline-template");a&&ze("COMPILER_INLINE_TEMPLATE",L,a.loc)&&e.children.length&&(a.value={type:2,content:V(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function Co(e,t){let n=e;for(;Ee.charCodeAt(n)!==t&&n<Ee.length-1;)n++;return n}function rr(e,t){let n=e;for(;Ee.charCodeAt(n)!==t&&n>=0;)n--;return n}const _o=new Set(["if","else","else-if","for","slot"]);function sr({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&_o.has(t[n].name))return!0}return!1}function To({tag:e,props:t}){if(L.isCustomElement(e))return!1;if(e==="component"||Do(e.charCodeAt(0))||Jn(e)||L.isBuiltInComponent&&L.isBuiltInComponent(e)||L.isNativeTag&&!L.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const s=t[n];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(ze("COMPILER_IS_ON_ELEMENT",L,s.loc))return!0}}else if(s.name==="bind"&&Te(s.arg,"is")&&ze("COMPILER_IS_ON_ELEMENT",L,s.loc))return!0}return!1}function Do(e){return e>64&&e<91}const Oo=/\r\n/g;function or(e){const t=L.whitespace!=="preserve";let n=!1;for(let s=0;s<e.length;s++){const o=e[s];if(o.type===2)if(dn)o.content=o.content.replace(Oo,`
|
|
12
|
+
`);else if(Bo(o.content)){const i=e[s-1]&&e[s-1].type,l=e[s+1]&&e[s+1].type;!i||!l||t&&(i===3&&(l===3||l===1)||i===1&&(l===3||l===1&&Io(o.content)))?(n=!0,e[s]=null):o.content=" "}else t&&(o.content=ir(o.content))}return n?e.filter(Boolean):e}function Bo(e){for(let t=0;t<e.length;t++)if(!ue(e.charCodeAt(t)))return!1;return!0}function Io(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function ir(e){let t="",n=!1;for(let s=0;s<e.length;s++)ue(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function fn(e){(K[0]||Ve).children.push(e)}function J(e,t){return{start:q.getPos(e),end:t==null?t:q.getPos(t),source:t==null?t:V(e,t)}}function Ao(e){return J(e.start.offset,e.end.offset)}function Ae(e,t){e.end=q.getPos(t),e.source=V(e.start.offset,t)}function $o(e){const t={type:6,name:e.rawName,nameLoc:J(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 kt(e,t=!1,n,s=0,o=0){return A(e,t,n,s)}function ce(e,t,n){L.onError(U(e,J(t,t),void 0,n))}function Mo(){q.reset(),ee=null,P=null,ae="",ke=-1,Ie=-1,K.length=0}function Ro(e,t){if(Mo(),Ee=e,L=Ne({},er),t){let o;for(o in t)t[o]!=null&&(L[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!L.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");q.mode=L.parseMode==="html"?1:L.parseMode==="sfc"?2:0,q.inXML=L.ns===1||L.ns===2;const n=t&&t.delimiters;n&&(q.delimiterOpen=ht(n[0]),q.delimiterClose=ht(n[1]));const s=Ve=io([],e);return q.parse(Ee),s.loc=J(0,e.length),s.children=or(s.children),Ve=null,s}function Lo(e,t){xt(e,void 0,t,!!lr(e))}function lr(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!vt(t[0])?t[0]:null}function xt(e,t,n,s=!1,o=!1){const{children:i}=e,l=[];for(let p=0;p<i.length;p++){const u=i[p];if(u.type===1&&u.tagType===0){const h=s?0:he(u,n);if(h>0){if(h>=2){u.codegenNode.patchFlag=-1,l.push(u);continue}}else{const E=u.codegenNode;if(E.type===13){const y=E.patchFlag;if((y===void 0||y===512||y===1)&&cr(u,n)>=2){const _=dr(u);_&&(E.props=n.hoist(_))}E.dynamicProps&&(E.dynamicProps=n.hoist(E.dynamicProps))}}}else if(u.type===12&&(s?0:he(u,n))>=2){l.push(u);continue}if(u.type===1){const h=u.tagType===1;h&&n.scopes.vSlot++,xt(u,e,n,!1,o),h&&n.scopes.vSlot--}else if(u.type===11)xt(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let h=0;h<u.branches.length;h++)xt(u.branches[h],e,n,u.branches[h].children.length===1,o)}let a=!1;const c=[];if(l.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&be(e.codegenNode.children))e.codegenNode.children=d(Be(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!be(e.codegenNode.children)&&e.codegenNode.children.type===15){const p=m(e.codegenNode,"default");p&&(c.push(n.cached.length),p.returns=d(Be(p.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!be(t.codegenNode.children)&&t.codegenNode.children.type===15){const p=le(e,"slot",!0),u=p&&p.arg&&m(t.codegenNode,p.arg);u&&(c.push(n.cached.length),u.returns=d(Be(u.returns)),a=!0)}}if(!a)for(const p of l)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&&!be(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(G("__",A(JSON.stringify(c),!1)));function d(p){const u=n.cache(p);return o&&n.hmr&&(u.needArraySpread=!0),u}function m(p,u){if(p.children&&!be(p.children)&&p.children.type===15){const h=p.children.properties.find(E=>E.key===u||E.key.content===u);return h&&h.value}}l.length&&n.transformHoist&&n.transformHoist(i,n,e)}function he(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let l=3;const a=cr(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const d=he(e.children[c],t);if(d===0)return n.set(e,0),0;d<l&&(l=d)}if(l>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=he(d.exp,t);if(m===0)return n.set(e,0),0;m<l&&(l=m)}}if(o.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(Oe),t.removeHelper(je(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Fe(t.inSSR,o.isComponent))}return n.set(e,l),l}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 he(e.content,t);case 4:return e.constType;case 8:let i=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(Z(a)||Lt(a))continue;const c=he(a,t);if(c===0)return 0;c<i&&(i=c)}return i;case 20:return 2;default:return process.env.NODE_ENV,0}}const Po=new Set([Xt,Zt,Je,Ye]);function ar(e,t){if(e.type===14&&!Z(e.callee)&&Po.has(e.callee)){const n=e.arguments[0];if(n.type===4)return he(n,t);if(n.type===14)return ar(n,t)}return 0}function cr(e,t){let n=3;const s=dr(e);if(s&&s.type===15){const{properties:o}=s;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=he(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=he(a,t):a.type===14?d=ar(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function dr(e){const t=e.codegenNode;if(t.type===13)return t.props}function Fo(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:l=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:d=Mt,isCustomElement:m=Mt,expressionPlugins:p=[],scopeId:u=null,slotted:h=!0,ssr:E=!1,inSSR:y=!1,ssrCssVars:_="",bindingMetadata:S=Rs,inline:$=!1,isTS:C=!1,onError:H=ln,onWarn:j=Gn,compatConfig:ne}){const X=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),O={filename:t,selfName:X&&Ft(Se(X[1])),prefixIdentifiers:n,hoistStatic:s,hmr:o,cacheHandlers:i,nodeTransforms:l,directiveTransforms:a,transformHoist:c,isBuiltInComponent:d,isCustomElement:m,expressionPlugins:p,scopeId:u,slotted:h,ssr:E,inSSR:y,ssrCssVars:_,bindingMetadata:S,inline:$,isTS:C,onError:H,onWarn:j,compatConfig:ne,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(N){const B=O.helpers.get(N)||0;return O.helpers.set(N,B+1),N},removeHelper(N){const B=O.helpers.get(N);if(B){const M=B-1;M?O.helpers.set(N,M):O.helpers.delete(N)}},helperString(N){return`_${Le[O.helper(N)]}`},replaceNode(N){if(process.env.NODE_ENV!=="production"){if(!O.currentNode)throw new Error("Node being replaced is already removed.");if(!O.parent)throw new Error("Cannot replace root node.")}O.parent.children[O.childIndex]=O.currentNode=N},removeNode(N){if(process.env.NODE_ENV!=="production"&&!O.parent)throw new Error("Cannot remove root node.");const B=O.parent.children,M=N?B.indexOf(N):O.currentNode?O.childIndex:-1;if(process.env.NODE_ENV!=="production"&&M<0)throw new Error("node being removed is not a child of current parent");!N||N===O.currentNode?(O.currentNode=null,O.onNodeRemoved()):O.childIndex>M&&(O.childIndex--,O.onNodeRemoved()),O.parent.children.splice(M,1)},onNodeRemoved:Mt,addIdentifiers(N){},removeIdentifiers(N){},hoist(N){Z(N)&&(N=A(N)),O.hoists.push(N);const B=A(`_hoisted_${O.hoists.length}`,!1,N.loc,2);return B.hoisted=N,B},cache(N,B=!1,M=!1){const k=lo(O.cached.length,N,B,M);return O.cached.push(k),k}};return O.filters=new Set,O}function jo(e,t){const n=Fo(e,t);wt(e,n),t.hoistStatic&&Lo(e,n),t.ssr||zo(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 zo(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const o=lr(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&sn(i,t),e.codegenNode=i}else e.codegenNode=s[0]}else if(s.length>1){let o=64;process.env.NODE_ENV!=="production"&&s.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=Xe(t,n(Ke),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function Uo(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];Z(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=s,wt(o,t))}}function wt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(be(l)?s.push(...l):s.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ge);break;case 5:t.ssr||t.helper(pt);break;case 9:for(let i=0;i<e.branches.length;i++)wt(e.branches[i],t);break;case 10:case 11:case 1:case 0:Uo(e,t);break}t.currentNode=e;let o=s.length;for(;o--;)s[o]()}function pr(e,t){const n=Z(e)?s=>s===e:s=>e.test(s);return(s,o)=>{if(s.type===1){const{props:i}=s;if(s.tagType===3&&i.some(Eo))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const d=t(s,c,o);d&&l.push(d)}}return l}}}const Nt="/*@__PURE__*/",fr=e=>`${Le[e]}: _${Le[e]}`;function Ho(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:m=!1,isTS:p=!1,inSSR:u=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:s,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:m,isTS:p,inSSR:u,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(y){return`_${Le[y]}`},push(y,_=-2,S){h.code+=y},indent(){E(++h.indentLevel)},deindent(y=!1){y?--h.indentLevel:E(--h.indentLevel)},newline(){E(h.indentLevel)}};function E(y){h.push(`
|
|
13
|
+
`+" ".repeat(y),0)}return h}function qo(e,t={}){const n=Ho(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:d,ssr:m}=n,p=Array.from(e.helpers),u=p.length>0,h=!i&&s!=="module";Ko(e,n);const y=m?"ssrRender":"render",S=(m?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${y}(${S}) {`),l(),h&&(o("with (_ctx) {"),l(),u&&(o(`const { ${p.map(fr).join(", ")} } = _Vue
|
|
14
|
+
`,-1),c())),e.components.length&&(un(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(un(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),un(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let $=0;$<e.temps;$++)o(`${$>0?", ":""}_temp${$}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
15
|
+
`,0),c()),m||o("return "),e.codegenNode?te(e.codegenNode,n):o("null"),h&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Ko(e,t){const{ssr:n,prefixIdentifiers:s,push:o,newline:i,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,m=Array.from(e.helpers);if(m.length>0&&(o(`const _Vue = ${d}
|
|
16
|
+
`,-1),e.hoists.length)){const p=[zt,Ut,Ge,Ht,jn].filter(u=>m.includes(u)).map(fr).join(", ");o(`const { ${p} } = _Vue
|
|
17
|
+
`,-1)}Wo(e.hoists,t),i(),o("return ")}function un(e,t,{helper:n,push:s,newline:o,isTS:i}){const l=n(t==="filter"?Gt:t==="component"?qt:Wt);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),s(`const ${Qe(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function Wo(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s}=t;s();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),te(i,t),s())}t.pure=!1}function Go(e){return Z(e)||e.type===4||e.type===2||e.type===5||e.type===8}function hn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(s=>be(s)||!Go(s));t.push("["),n&&t.indent(),et(e,t,n),n&&t.deindent(),t.push("]")}function et(e,t,n=!1,s=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];Z(a)?o(a,-3):be(a)?hn(a,t):te(a,t),l<e.length-1&&(n?(s&&o(","),i()):s&&o(", "))}}function te(e,t){if(Z(e)){t.push(e,-3);return}if(Lt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Zn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),te(e.codegenNode,t);break;case 2:Jo(e,t);break;case 4:ur(e,t);break;case 5:Yo(e,t);break;case 12:te(e.codegenNode,t);break;case 8:hr(e,t);break;case 3:Zo(e,t);break;case 13:Qo(e,t);break;case 14:ei(e,t);break;case 15:ti(e,t);break;case 17:ni(e,t);break;case 18:ri(e,t);break;case 19:si(e,t);break;case 20:oi(e,t);break;case 21:et(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 Zn(!1,`unhandled codegen node type: ${e.type}`),e}}function Jo(e,t){t.push(JSON.stringify(e.content),-3,e)}function ur(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function Yo(e,t){const{push:n,helper:s,pure:o}=t;o&&n(Nt),n(`${s(pt)}(`),te(e.content,t),n(")")}function hr(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];Z(s)?t.push(s,-3):te(s,t)}}function Xo(e,t){const{push:n}=t;if(e.type===8)n("["),hr(e,t),n("]");else if(e.isStatic){const s=an(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function Zo(e,t){const{push:n,helper:s,pure:o}=t;o&&n(Nt),n(`${s(Ge)}(${JSON.stringify(e.content)})`,-3,e)}function Qo(e,t){const{push:n,helper:s,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:d,directives:m,isBlock:p,disableTracking:u,isComponent:h}=e;let E;if(c)if(process.env.NODE_ENV!=="production")if(c<0)E=c+` /* ${ct[c]} */`;else{const _=Object.keys(ct).map(Number).filter(S=>S>0&&c&S).map(S=>ct[S]).join(", ");E=c+` /* ${_} */`}else E=String(c);m&&n(s(Jt)+"("),p&&n(`(${s(Oe)}(${u?"true":""}), `),o&&n(Nt);const y=p?je(t.inSSR,h):Fe(t.inSSR,h);n(s(y)+"(",-2,e),et(Vo([i,l,a,E,d]),t),n(")"),p&&n(")"),m&&(n(", "),te(m,t),n(")"))}function Vo(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function ei(e,t){const{push:n,helper:s,pure:o}=t,i=Z(e.callee)?e.callee:s(e.callee);o&&n(Nt),n(i+"(",-2,e),et(e.arguments,t),n(")")}function ti(e,t){const{push:n,indent:s,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",-2,e);return}const a=l.length>1||process.env.NODE_ENV!=="production"&&l.some(c=>c.value.type!==4);n(a?"{":"{ "),a&&s();for(let c=0;c<l.length;c++){const{key:d,value:m}=l[c];Xo(d,t),n(": "),te(m,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function ni(e,t){hn(e.elements,t)}function ri(e,t){const{push:n,indent:s,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Le[tn]}(`),n("(",-2,e),be(i)?et(i,t):i&&te(i,t),n(") => "),(c||a)&&(n("{"),s()),l?(c&&n("return "),be(l)?hn(l,t):te(l,t)):a&&te(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function si(e,t){const{test:n,consequent:s,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const p=!an(n.content);p&&l("("),ur(n,t),p&&l(")")}else l("("),te(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),te(s,t),t.indentLevel--,i&&d(),i||l(" "),l(": ");const m=o.type===19;m||t.indentLevel++,te(o,t),m||t.indentLevel--,i&&c(!0)}function oi(e,t){const{push:n,helper:s,indent:o,deindent:i,newline:l}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${s(ut)}(-1`),e.inVOnce&&n(", true"),n("),"),l(),n("(")),n(`_cache[${e.index}] = `),te(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),l(),n(`${s(ut)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const ii=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"),li=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function $e(e,t,n=!1,s=!1){const o=e.content;if(o.trim())try{new Function(s?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let l=i.message;const a=o.replace(li,"").match(ii);a&&(l=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(U(45,e.loc,void 0,l))}}const ai=(e,t)=>{if(e.type===5)e.content=mn(e.content,t);else if(e.type===1){const n=le(e,"memo");for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===7&&o.name!=="for"){const i=o.exp,l=o.arg;i&&i.type===4&&!(o.name==="on"&&l)&&!(n&&l&&l.type===4&&l.content==="key")&&(o.exp=mn(i,t,o.name==="slot")),l&&l.type===4&&!l.isStatic&&(o.arg=mn(l,t))}}}};function mn(e,t,n=!1,s=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&$e(e,t,n,s),e}const ci=pr(/^(if|else|else-if)$/,(e,t,n)=>di(e,t,n,(s,o,i)=>{const l=n.parent.children;let a=l.indexOf(s),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(i)s.codegenNode=gr(o,c,n);else{const d=fi(s.codegenNode);d.alternate=gr(o,c+s.branches.length-1,n)}}}));function di(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=A("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&$e(t.exp,n),t.name==="if"){const o=mr(e,t),i={type:9,loc:Ao(e.loc),branches:[o]};if(n.replaceNode(i),s)return s(i,o,!0)}else{const o=n.parent.children,i=[];let l=o.indexOf(e);for(;l-->=-1;){const a=o[l];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&i.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();const c=mr(e,t);if(process.env.NODE_ENV!=="production"&&i.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...i,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&a.branches.forEach(({userKey:p})=>{pi(p,m)&&n.onError(U(29,c.userKey.loc))})}a.branches.push(c);const d=s&&s(a,c,!1);wt(c,n),d&&d(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function mr(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!le(e,"for")?e.children:[e],userKey:Ze(e,"key"),isTemplateIf:n}}function gr(e,t,n){return e.condition?rn(e.condition,vr(e,t,n),Y(n.helper(Ge),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):vr(e,t,n)}function vr(e,t,n){const{helper:s}=n,o=G("key",A(`${t}`,!1,fe,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return yt(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(d=>d.type!==3).length===1&&(c|=2048),Xe(n,s(Ke),me([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=l.codegenNode,d=xo(c);return d.type===13&&sn(d,n),yt(d,o,n),c}}function pi(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,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function fi(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 ui=(e,t,n)=>{const{modifiers:s,loc:o}=e,i=e.arg;let{exp:l}=e;if(l&&l.type===4&&!l.content.trim()&&(l=void 0),!l){if(i.type!==4||!i.isStatic)return n.onError(U(52,i.loc)),{props:[G(i,A("",!0,o))]};yr(e),l=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),s.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=Se(i.content):i.content=`${n.helperString(Vt)}(${i.content})`:(i.children.unshift(`${n.helperString(Vt)}(`),i.children.push(")"))),n.inSSR||(s.some(a=>a.content==="prop")&&br(i,"."),s.some(a=>a.content==="attr")&&br(i,"^")),{props:[G(i,l)]}},yr=(e,t)=>{const n=e.arg,s=Se(n.content);e.exp=A(s,!1,n.loc)},br=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},hi=pr("for",(e,t,n)=>{const{helper:s,removeHelper:o}=n;return mi(e,t,n,i=>{const l=Y(s(Yt),[i.source]),a=gt(e),c=le(e,"memo"),d=Ze(e,"key",!1,!0);d&&d.type===7&&!d.exp&&yr(d);let p=d&&(d.type===6?d.value?A(d.value.content,!0):void 0:d.exp);const u=d&&p?G("key",p):null,h=i.source.type===4&&i.source.constType>0,E=h?64:d?128:256;return i.codegenNode=Xe(n,s(Ke),void 0,l,E,void 0,void 0,!0,!h,!1,e.loc),()=>{let y;const{children:_}=i;process.env.NODE_ENV!=="production"&&a&&e.children.some(C=>{if(C.type===1){const H=Ze(C,"key");if(H)return n.onError(U(33,H.loc)),!0}});const S=_.length!==1||_[0].type!==1,$=vt(e)?e:a&&e.children.length===1&&vt(e.children[0])?e.children[0]:null;if($?(y=$.codegenNode,a&&u&&yt(y,u,n)):S?y=Xe(n,s(Ke),u?me([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(y=_[0].codegenNode,a&&u&&yt(y,u,n),y.isBlock!==!h&&(y.isBlock?(o(Oe),o(je(n.inSSR,y.isComponent))):o(Fe(n.inSSR,y.isComponent))),y.isBlock=!h,y.isBlock?(s(Oe),s(je(n.inSSR,y.isComponent))):s(Fe(n.inSSR,y.isComponent))),c){const C=Pe(gn(i.parseResult,[A("_cached")]));C.body=ao([ge(["const _memo = (",c.exp,")"]),ge(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(Hn)}(_cached, _memo)) return _cached`]),ge(["const _item = ",y]),A("_item.memo = _memo"),A("return _item")]),l.arguments.push(C,A("_cache"),A(String(n.cached.length))),n.cached.push(null)}else l.arguments.push(Pe(gn(i.parseResult),y,!0))}})});function mi(e,t,n,s){if(!t.exp){n.onError(U(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(U(32,t.loc));return}Er(o,n);const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:m,index:p}=o,u={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:m,objectIndexAlias:p,parseResult:o,children:gt(e)?e.children:[e]};n.replaceNode(u),a.vFor++;const h=s&&s(u);return()=>{a.vFor--,h&&h()}}function Er(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&($e(e.source,t),e.key&&$e(e.key,t,!0),e.index&&$e(e.index,t,!0),e.value&&$e(e.value,t,!0)),e.finalized=!0)}function gn({value:e,key:t,index:n},s=[]){return gi([e,t,n,...s])}function gi(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||A("_".repeat(s+1),!1))}const kr=A("undefined",!1),vi=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=le(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},yi=(e,t,n,s)=>Pe(e,n,!1,!0,n.length?n[0].loc:s);function bi(e,t,n=yi){t.helper(tn);const{children:s,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=le(e,"slot",!0);if(c){const{arg:_,exp:S}=c;_&&!ie(_)&&(a=!0),i.push(G(_||A("default",!0),n(S,void 0,s,o)))}let d=!1,m=!1;const p=[],u=new Set;let h=0;for(let _=0;_<s.length;_++){const S=s[_];let $;if(!gt(S)||!($=le(S,"slot",!0))){S.type!==3&&p.push(S);continue}if(c){t.onError(U(37,$.loc));break}d=!0;const{children:C,loc:H}=S,{arg:j=A("default",!0),exp:ne,loc:X}=$;let O;ie(j)?O=j?j.content:"default":a=!0;const N=le(S,"for"),B=n(ne,N,C,H);let M,k;if(M=le(S,"if"))a=!0,l.push(rn(M.exp,St(j,B,h++),kr));else if(k=le(S,/^else(-if)?$/,!0)){let g=_,w;for(;g--&&(w=s[g],!(w.type!==3&&vn(w))););if(w&>(w)&&le(w,/^(else-)?if$/)){let T=l[l.length-1];for(;T.alternate.type===19;)T=T.alternate;T.alternate=k.exp?rn(k.exp,St(j,B,h++),kr):St(j,B,h++)}else t.onError(U(30,k.loc))}else if(N){a=!0;const g=N.forParseResult;g?(Er(g,t),l.push(Y(t.helper(Yt),[g.source,Pe(gn(g),St(j,B),!0)]))):t.onError(U(32,N.loc))}else{if(O){if(u.has(O)){t.onError(U(38,X));continue}u.add(O),O==="default"&&(m=!0)}i.push(G(j,B))}}if(!c){const _=(S,$)=>{const C=n(S,void 0,$,o);return t.compatConfig&&(C.isNonScopedSlot=!0),G("default",C)};d?p.length&&p.some(S=>vn(S))&&(m?t.onError(U(39,p[0].loc)):i.push(_(void 0,p))):i.push(_(void 0,s))}const E=a?2:Ct(e.children)?3:1;let y=me(i.concat(G("_",A(E+(process.env.NODE_ENV!=="production"?` /* ${zs[E]} */`:""),!1))),o);return l.length&&(y=Y(t.helper(Un),[y,Be(l)])),{slots:y,hasDynamicSlots:a}}function St(e,t,n){const s=[G("name",e),G("fn",t)];return n!=null&&s.push(G("key",A(String(n),!0))),me(s)}function Ct(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Ct(n.children))return!0;break;case 9:if(Ct(n.branches))return!0;break;case 10:case 11:if(Ct(n.children))return!0;break}}return!1}function vn(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():vn(e.content)}const xr=new WeakMap,Ei=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:o}=e,i=e.tagType===1;let l=i?ki(e,t):`"${s}"`;const a=Ls(l)&&l.callee===Kt;let c,d,m=0,p,u,h,E=a||l===We||l===jt||!i&&(s==="svg"||s==="foreignObject"||s==="math");if(o.length>0){const y=wr(e,t,void 0,i,a);c=y.props,m=y.patchFlag,u=y.dynamicPropNames;const _=y.directives;h=_&&_.length?Be(_.map(S=>wi(S,t))):void 0,y.shouldUseBlock&&(E=!0)}if(e.children.length>0)if(l===dt&&(E=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(U(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&l!==We&&l!==dt){const{slots:_,hasDynamicSlots:S}=bi(e,t);d=_,S&&(m|=1024)}else if(e.children.length===1&&l!==We){const _=e.children[0],S=_.type,$=S===5||S===8;$&&he(_,t)===0&&(m|=1),$||S===2?d=_:d=e.children}else d=e.children;u&&u.length&&(p=Ni(u)),e.codegenNode=Xe(t,l,c,d,m===0?void 0:m,p,h,!!E,!1,i,e.loc)};function ki(e,t,n=!1){let{tag:s}=e;const o=yn(s),i=Ze(e,"is",!1,!0);if(i)if(o||_e("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&A(i.value.content,!0):(a=i.exp,a||(a=A("is",!1,i.arg.loc))),a)return Y(t.helper(Kt),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const l=Jn(s)||t.isBuiltInComponent(s);return l?(n||t.helper(l),l):(t.helper(qt),t.components.add(s),Qe(s,"component"))}function wr(e,t,n=e.props,s,o,i=!1){const{tag:l,loc:a,children:c}=e;let d=[];const m=[],p=[],u=c.length>0;let h=!1,E=0,y=!1,_=!1,S=!1,$=!1,C=!1,H=!1;const j=[],ne=B=>{d.length&&(m.push(me(Nr(d),a)),d=[]),B&&m.push(B)},X=()=>{t.scopes.vFor>0&&d.push(G(A("ref_for",!0),A("true")))},O=({key:B,value:M})=>{if(ie(B)){const k=B.content,g=Rt(k);if(g&&(!s||o)&&k.toLowerCase()!=="onclick"&&k!=="onUpdate:modelValue"&&!Rn(k)&&($=!0),g&&Rn(k)&&(H=!0),g&&M.type===14&&(M=M.arguments[0]),M.type===20||(M.type===4||M.type===8)&&he(M,t)>0)return;k==="ref"?y=!0:k==="class"?_=!0:k==="style"?S=!0:k!=="key"&&!j.includes(k)&&j.push(k),s&&(k==="class"||k==="style")&&!j.includes(k)&&j.push(k)}else C=!0};for(let B=0;B<n.length;B++){const M=n[B];if(M.type===6){const{loc:k,name:g,nameLoc:w,value:T}=M;let D=!0;if(g==="ref"&&(y=!0,X()),g==="is"&&(yn(l)||T&&T.content.startsWith("vue:")||_e("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(G(A(g,!0,w),A(T?T.content:"",D,T?T.loc:k)))}else{const{name:k,arg:g,exp:w,loc:T,modifiers:D}=M,I=k==="bind",z=k==="on";if(k==="slot"){s||t.onError(U(40,T));continue}if(k==="once"||k==="memo"||k==="is"||I&&Te(g,"is")&&(yn(l)||_e("COMPILER_IS_ON_ELEMENT",t))||z&&i)continue;if((I&&Te(g,"key")||z&&u&&Te(g,"vue:before-update"))&&(h=!0),I&&Te(g,"ref")&&X(),!g&&(I||z)){if(C=!0,w)if(I){if(ne(),process.env.NODE_ENV!=="production"&&m.some(de=>de.type===15?de.properties.some(({key:we})=>we.type!==4||!we.isStatic?!0:we.content!=="class"&&we.content!=="style"&&!Rt(we.content)):!0)&&ze("COMPILER_V_BIND_OBJECT_ORDER",t,T),_e("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(w);continue}X(),ne(),m.push(w)}else ne({type:14,loc:T,callee:t.helper(Qt),arguments:s?[w]:[w,"true"]});else t.onError(U(I?34:35,T));continue}I&&D.some(re=>re.content==="prop")&&(E|=32);const xe=t.directiveTransforms[k];if(xe){const{props:re,needRuntime:de}=xe(M,e,t);!i&&re.forEach(O),z&&g&&!ie(g)?ne(me(re,a)):d.push(...re),de&&(p.push(M),Lt(de)&&xr.set(M,de))}else Ps(k)||(p.push(M),u&&(h=!0))}}let N;if(m.length?(ne(),m.length>1?N=Y(t.helper(ft),m,a):N=m[0]):d.length&&(N=me(Nr(d),a)),C?E|=16:(_&&!s&&(E|=2),S&&!s&&(E|=4),j.length&&(E|=8),$&&(E|=32)),!h&&(E===0||E===32)&&(y||H||p.length>0)&&(E|=512),!t.inSSR&&N)switch(N.type){case 15:let B=-1,M=-1,k=!1;for(let T=0;T<N.properties.length;T++){const D=N.properties[T].key;ie(D)?D.content==="class"?B=T:D.content==="style"&&(M=T):D.isHandlerKey||(k=!0)}const g=N.properties[B],w=N.properties[M];k?N=Y(t.helper(Je),[N]):(g&&!ie(g.value)&&(g.value=Y(t.helper(Xt),[g.value])),w&&(S||w.value.type===4&&w.value.content.trim()[0]==="["||w.value.type===17)&&(w.value=Y(t.helper(Zt),[w.value])));break;case 14:break;default:N=Y(t.helper(Je),[Y(t.helper(Ye),[N])]);break}return{props:N,directives:p,patchFlag:E,dynamicPropNames:j,shouldUseBlock:h}}function Nr(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const o=e[s];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||Rt(i))&&xi(l,o):(t.set(i,o),n.push(o))}return n}function xi(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Be([e.value,t.value],e.loc)}function wi(e,t){const n=[],s=xr.get(e);s?n.push(t.helperString(s)):(t.helper(Wt),t.directives.add(e.name),n.push(Qe(e.name,"directive")));const{loc:o}=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 i=A("true",!1,o);n.push(me(e.modifiers.map(l=>G(l,i)),o))}return Be(n,e.loc)}function Ni(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function yn(e){return e==="component"||e==="Component"}const Si=(e,t)=>{if(vt(e)){const{children:n,loc:s}=e,{slotName:o,slotProps:i}=Ci(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Pe([],n,!1,!1,s),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=Y(t.helper(zn),l,s)}};function Ci(e,t){let n='"default"',s;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];if(l.type===6)l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Se(l.name),o.push(l)));else if(l.name==="bind"&&Te(l.arg,"name")){if(l.exp)n=l.exp;else if(l.arg&&l.arg.type===4){const a=Se(l.arg.content);n=l.exp=A(a,!1,l.arg.loc)}}else l.name==="bind"&&l.arg&&ie(l.arg)&&(l.arg.content=Se(l.arg.content)),o.push(l)}if(o.length>0){const{props:i,directives:l}=wr(e,t,o,!1,!1);s=i,l.length&&t.onError(U(36,l[0].loc))}return{slotName:n,slotProps:s}}const Sr=(e,t,n,s)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(U(35,o));let a;if(l.type===4)if(l.isStatic){let p=l.content;process.env.NODE_ENV!=="production"&&p.startsWith("vnode")&&n.onError(U(51,l.loc)),p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const u=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?js(Se(p)):`on:${p}`;a=A(u,!0,l.loc)}else a=ge([`${n.helperString(en)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(en)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=Xn(c),u=!(p||yo(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&$e(c,n,!1,h),(u||d&&p)&&(c=ge([`${u?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[G(a,c||A("() => {}",!1,o))]};return s&&(m=s(m)),d&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(p=>p.key.isHandlerKey=!0),m},_i=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(cn(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(cn(c))s||(s=n[i]=ge([l],l.loc)),s.children.push(" + ",c),n.splice(a,1),a--;else{s=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(cn(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&he(l,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${ct[1]} */`:"")),n[i]={type:12,content:l,loc:l.loc,codegenNode:Y(t.helper(Ht),a)}}}}},Cr=new WeakSet,Ti=(e,t)=>{if(e.type===1&&le(e,"once",!0))return Cr.has(e)||t.inVOnce||t.inSSR?void 0:(Cr.add(e),t.inVOnce=!0,t.helper(ut),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},_r=(e,t,n)=>{const{exp:s,arg:o}=e;if(!s)return n.onError(U(41,e.loc)),_t();const i=s.loc.source.trim(),l=s.type===4?s.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(U(44,s.loc)),_t();if(!l.trim()||!Xn(s))return n.onError(U(42,s.loc)),_t();const c=o||A("modelValue",!0),d=o?ie(o)?`onUpdate:${Se(o.content)}`:ge(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const p=n.isTS?"($event: any)":"$event";m=ge([`${p} => ((`,s,") = $event)"]);const u=[G(c,e.exp),G(d,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(y=>y.content).map(y=>(an(y)?y:JSON.stringify(y))+": true").join(", "),E=o?ie(o)?`${o.content}Modifiers`:ge([o,' + "Modifiers"']):"modelModifiers";u.push(G(E,A(`{ ${h} }`,!1,e.loc,2)))}return _t(u)};function _t(e=[]){return{props:e}}const Di=/[\w).+\-_$\]]/,Oi=(e,t)=>{_e("COMPILER_FILTERS",t)&&(e.type===5?Tt(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Tt(n.exp,t)}))};function Tt(e,t){if(e.type===4)Tr(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?Tr(s,t):s.type===8?Tt(e,t):s.type===5&&Tt(s.content,t))}}function Tr(e,t){const n=e.content;let s=!1,o=!1,i=!1,l=!1,a=0,c=0,d=0,m=0,p,u,h,E,y=[];for(h=0;h<n.length;h++)if(u=p,p=n.charCodeAt(h),s)p===39&&u!==92&&(s=!1);else if(o)p===34&&u!==92&&(o=!1);else if(i)p===96&&u!==92&&(i=!1);else if(l)p===47&&u!==92&&(l=!1);else if(p===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!c&&!d)E===void 0?(m=h+1,E=n.slice(0,h).trim()):_();else{switch(p){case 34:o=!0;break;case 39:s=!0;break;case 96:i=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(p===47){let S=h-1,$;for(;S>=0&&($=n.charAt(S),$===" ");S--);(!$||!Di.test($))&&(l=!0)}}E===void 0?E=n.slice(0,h).trim():m!==0&&_();function _(){y.push(n.slice(m,h).trim()),m=h+1}if(y.length){for(process.env.NODE_ENV!=="production"&&mt("COMPILER_FILTERS",t,e.loc),h=0;h<y.length;h++)E=Bi(E,y[h],t);e.content=E,e.ast=void 0}}function Bi(e,t,n){n.helper(Gt);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${Qe(t,"filter")}(${e})`;{const o=t.slice(0,s),i=t.slice(s+1);return n.filters.add(o),`${Qe(o,"filter")}(${e}${i!==")"?","+i:i}`}}const Dr=new WeakSet,Ii=(e,t)=>{if(e.type===1){const n=le(e,"memo");return!n||Dr.has(e)?void 0:(Dr.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&sn(s,t),e.codegenNode=Y(t.helper(nn),[n.exp,Pe(void 0,s),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function Ai(e){return[[Ti,ci,Ii,hi,Oi,...process.env.NODE_ENV!=="production"?[ai]:[],Si,Ei,vi,_i],{on:Sr,bind:ui,model:_r}]}function $i(e,t={}){const n=t.onError||ln,s=t.mode==="module";t.prefixIdentifiers===!0?n(U(47)):s&&n(U(48));const o=!1;t.cacheHandlers&&n(U(49)),t.scopeId&&!s&&n(U(50));const i=Ne({},t,{prefixIdentifiers:o}),l=Z(e)?Ro(e,i):e,[a,c]=Ai();return jo(l,Ne({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Ne({},c,t.directiveTransforms||{})})),qo(l,i)}const Mi=()=>({props:[]});/**
|
|
18
18
|
* @vue/compiler-dom v3.5.17
|
|
19
19
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
20
|
* @license MIT
|
|
21
|
-
**/const Ss=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),_s=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ts=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),mn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),Ds=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Os=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Bs=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),gn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Is=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");Jr({[Ss]:"vModelRadio",[Cs]:"vModelCheckbox",[_s]:"vModelText",[Ts]:"vModelSelect",[mn]:"vModelDynamic",[Ds]:"withModifiers",[Os]:"withKeys",[Bs]:"vShow",[gn]:"Transition",[Is]:"TransitionGroup"});let ze;function Si(e,t=!1){return ze||(ze=document.createElement("div")),t?(ze.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ze.children[0].getAttribute("foo")):(ze.innerHTML=e,ze.textContent)}const Ci={parseMode:"html",isVoidTag:Ur,isNativeTag:e=>Fr(e)||jr(e)||zr(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Si,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return gn;if(e==="TransitionGroup"||e==="transition-group")return Is},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(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.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}},_i=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:B("style",!0,t.loc),exp:Ti(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ti=(e,t)=>{const n=$r(e);return B(JSON.stringify(n),!1,t,3)};function me(e,t){return z(e,t,process.env.NODE_ENV!=="production"?Di:void 0)}const Di={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."},Oi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(me(53,o)),t.children.length&&(n.onError(me(54,o)),t.children.length=0),{props:[W(B("innerHTML",!0,o),r||B("",!0))]}},Bi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(me(55,o)),t.children.length&&(n.onError(me(56,o)),t.children.length=0),{props:[W(B("textContent",!0),r?fe(r,n)>0?r:J(n.helperString(it),[r],o):B("",!0))]}},Ii=(e,t,n)=>{const r=xs(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(me(58,e.arg.loc));function o(){const a=ie(t,"bind");a&&_e(a.arg,"value")&&n.onError(me(60,a.loc))}const{tag:i}=t,l=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||l){let a=_s,c=!1;if(i==="input"||l){const p=Xe(t,"type");if(p){if(p.type===7)a=mn;else if(p.value)switch(p.value.content){case"radio":a=Ss;break;case"checkbox":a=Cs;break;case"file":c=!0,n.onError(me(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else lo(t)?a=mn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?a=Ts:process.env.NODE_ENV!=="production"&&o();c||(r.needRuntime=n.helper(a))}else n.onError(me(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Ai=ge("passive,once,capture"),$i=ge("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Mi=ge("left,right"),As=ge("onkeyup,onkeydown,onkeypress"),Ri=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&je("COMPILER_V_ON_NATIVE",n,r)||Ai(c)?l.push(c):Mi(c)?oe(e)?As(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):$i(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},$s=(e,t)=>oe(e)&&e.content.toLowerCase()==="onclick"?B(t,!0):e.type!==4?he(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Li=(e,t,n)=>Es(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:p}=Ri(i,o,n,e.loc);if(c.includes("right")&&(i=$s(i,"onContextmenu")),c.includes("middle")&&(i=$s(i,"onMouseup")),c.length&&(l=J(n.helper(Ds),[l,JSON.stringify(c)])),a.length&&(!oe(i)||As(i.content.toLowerCase()))&&(l=J(n.helper(Os),[l,JSON.stringify(a)])),p.length){const m=p.map(Mt).join("");i=oe(i)?B(`${i.content}${m}`,!0):he(["(",i,`) + "${m}"`])}return{props:[W(i,l)]}}),Pi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(me(61,o)),{props:[],needRuntime:n.helper(Bs)}},Fi=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===gn)return()=>{if(!e.children.length)return;Ms(e)&&t.onError(me(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 o of r.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Ms(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(Ms)}const ji=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(me(63,e.loc)),t.removeNode())};function zi(e,t){return e==="template"?!0:e in Rs?Rs[e].has(t):t in Ls?Ls[t].has(e):!(e in Ps&&Ps[e].has(t)||t in Fs&&Fs[t].has(e))}const Ue=new Set(["h1","h2","h3","h4","h5","h6"]),$e=new Set([]),Rs={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:$e,iframe:$e,option:$e,textarea:$e,style:$e,title:$e},Ls={html:$e,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"])},Ps={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"])},Fs={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:Ue,h2:Ue,h3:Ue,h4:Ue,h5:Ue,h6:Ue},Ui=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!zi(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)}},Hi=[_i,...process.env.NODE_ENV!=="production"?[Fi,Ui]:[]],qi={cloak:Ni,html:Oi,text:Bi,model:Ii,on:Li,show:Pi};function Ki(e,t={}){return wi(e,we({},Ci,t,{nodeTransforms:[ji,...Hi,...t.nodeTransforms||[]],directiveTransforms:we({},qi,t.directiveTransforms||{}),transformHoist:null}))}function Wi(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:r}=Ki(n,{mode:"function"}),o=new Function("Vue",`${r}; return render`)(nr);return s.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,l){return t?.setup?.()??{}},render:o})}const vn={};function js(e){return vn[e]||(vn[e]=Wi(e,{props:{row:Object,value:null,data:Object,column:Object}})),vn[e]}const Gi={class:"py-10 flex flex-col justify-center items-center text-center"},Ji={class:"max-w-sm mx-auto"},Yi={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Xi={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Zi=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",Gi,[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",Ji,[s.createElementVNode("p",Yi,s.toDisplayString(t.title),1),s.createElementVNode("p",Xi,s.toDisplayString(t.description),1)])]))}}),Qi=["aria-checked","data-state"],Vi={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},el=["onKeydown"],tl={key:0,class:"hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-inthmtdid1"},nl={class:"py-2 px-4"},sl={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},rl={class:"truncate"},ol={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},il={class:"space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},ll=["onClick"],al={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},cl={key:1,class:"shrink-0 size-3.5 ms-auto",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"},dl={key:1,class:"p-4"},pl={class:"text-base font-semibold text-gray-800 mb-3"},fl={class:"mb-4"},ul={class:"block text-sm font-medium text-gray-700 mb-1"},hl=["value"],ml={class:"flex justify-end gap-2 border-t pt-3"},gl=s.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function},overflow:{}},emits:["edit","update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(!1),i=s.ref(null),l=s.ref(null),a=s.ref(n.value),c=s.ref([]),p=s.ref("uk"),m=D=>{D.detail.key==="locale"&&(p.value=D.detail.newValue)};s.watch(()=>n.value,D=>{a.value=D});const d=s.computed(()=>{const D=n.column?.schema?.[n.column?.name];if(D?.type)switch(D.type){case"Text":return"text";case"Number":return"number";case"Switcher":return"boolean";case"Autocomplete":return"select";case"Date":return"date";default:return"text"}const x=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(x)?x:"text"}),u=s.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(k=>({value:k.id??k.value,color:k.color,label:k.text??k.label}))),h=s.ref(null);function E(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&s.nextTick(()=>{i.value?.focus?.(),i.value?.showPicker?.(),d.value==="select"&&te()}))}function v(){r("edit",n.row,n.column.name,a.value),r("update",n.row,n.column.name,a.value),o.value=!1}function _(){a.value=n.value,o.value=!1}function C(D){if(!o.value)return;const k=D.target;h.value&&!h.value.contains(k)&&(o.value=!1)}s.onMounted(()=>{document.addEventListener("click",C),window.addEventListener("storage",m),p.value=localStorage.locale,document.addEventListener("close-all-popovers",()=>{o.value=!1})}),s.onBeforeUnmount(()=>{document.removeEventListener("click",C),window.removeEventListener("storage",m),document.removeEventListener("close-all-popovers",()=>{o.value=!1})});function A(){n.editable&&(a.value=!a.value,r("update",n.row,n.column.name,a.value))}function T(D){return n.color?n.color.startsWith("#")?D.replace("{c}",`[${n.color}]`):D.replace("{c}",`${n.color}-500`):D.replace("{c}","cyan-500")}const $=s.computed(()=>({border:T("border-{c}"),ring:T("focus:ring-{c}"),text:T("text-{c}"),hover:T("hover:text-{c}"),bg:T("bg-{c} hover:bg-{c}/90")})),P=s.computed(()=>n.overflow==="wrap"?["flex-1","whitespace-normal","break-words"]:["flex-1","truncate","whitespace-nowrap"]);async function te(){if(d.value==="select"&&!(n.options&&n.options.length>0||n.column?.schema?.[n.column?.name]?.options?.length>0)&&c.value.length===0&&n.fetchOptions)try{c.value=await n.fetchOptions(n.column.name)}catch(D){console.error(`Не удалось загрузить options для ${n.column.name}`,D)}}return(D,k)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(D.classContent?D.classContent:"relative group w-full"),ref_key:"cellRef",ref:h},[d.value==="boolean"&&D.editable?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:s.normalizeClass(["peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center",a.value?$.value.border:"",$.value.ring,a.value?$.value.bg:""]),onClick:s.withModifiers(A,["stop"])},[a.value?(s.openBlock(),s.createElementBlock("span",Vi,k[4]||(k[4]=[s.createElementVNode("svg",{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",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0)],10,Qi)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"flex items-start justify-between cursor-pointer gap-2",onClick:s.withModifiers(E,["stop"])},[s.createElementVNode("span",{class:s.normalizeClass(P.value)},[s.renderSlot(D.$slots,"default")],2),D.editable?(s.openBlock(),s.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:s.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",$.value.text])},k[5]||(k[5]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"},null,-1)]),2)):s.createCommentVNode("",!0)]),o.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:l,class:s.normalizeClass(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg",d.value==="select"?"":"w-[450px]"]),onKeydown:s.withKeys(s.withModifiers(_,["stop","prevent"]),["esc"])},[d.value==="select"?(s.openBlock(),s.createElementBlock("div",tl,[s.createElementVNode("div",nl,[s.createElementVNode("span",sl,[s.createElementVNode("span",rl," Редагувати "+s.toDisplayString(D.column[p.value]||D.column.header||D.column.ua||D.column.name),1)])]),s.createElementVNode("div",ol,[s.createElementVNode("div",il,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,x=>(s.openBlock(),s.createElementBlock("label",{key:x.value.toString(),onClick:s.withModifiers(()=>{a.value=x.value,v()},["prevent"]),class:"py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"},[k[8]||(k[8]=s.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),x.color?(s.openBlock(),s.createElementBlock("span",al,k[6]||(k[6]=[s.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(x.label)+" ",1),a.value===x.value?(s.openBlock(),s.createElementBlock("svg",cl,k[7]||(k[7]=[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):s.createCommentVNode("",!0)],8,ll))),128))])])])):(s.openBlock(),s.createElementBlock("div",dl,[s.createElementVNode("h3",pl," Редагувати "+s.toDisplayString(D.column[p.value]||D.column.header||D.column.ua||D.column.name),1),s.createElementVNode("div",fl,[s.createElementVNode("label",ul,s.toDisplayString(D.column[p.value]||D.column.header||D.column.ua||D.column.name),1),d.value==="text"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[0]||(k[0]=x=>a.value=x),type:"text",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value]]):d.value==="number"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[1]||(k[1]=x=>a.value=x),type:"number",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value,void 0,{number:!0}]]):d.value==="date"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[2]||(k[2]=x=>a.value=x),type:"date",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onChange:v},null,34)),[[s.vModelText,a.value]]):d.value==="select"?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[3]||(k[3]=x=>a.value=x),class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",$.value.ring,$.value.border])},[k[9]||(k[9]=s.createElementVNode("option",{disabled:"",value:""},"-- виберіть --",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,x=>(s.openBlock(),s.createElementBlock("option",{key:x.value.toString(),value:x.value},s.toDisplayString(x.label),9,hl))),128))],2)),[[s.vModelSelect,a.value]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",ml,[s.createElementVNode("button",{type:"button",class:"px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",onClick:_}," Скасувати "),s.createElementVNode("button",{type:"button",class:s.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",$.value.bg]),onClick:v}," Зберегти ",2)])]))],42,el)):s.createCommentVNode("",!0)],64))],2))}}),zs=typeof window<"u",Us=typeof document<"u",vl=()=>{if(!Us)throw new Error("Tooltip requires document to be defined");const e=document.createElement("div");return e.className="fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200",e.style.opacity="0",e.style.visibility="hidden",document.body.appendChild(e),e},Hs=(e,t)=>{if(!Us||!zs)return;const n=vl(),r={text:t,tooltipEl:n,show:o=>{if(!r.text||!zs)return;n.textContent=r.text;const i=o.currentTarget.getBoundingClientRect(),l=window.innerWidth-n.offsetWidth-12,a=Math.max(12,Math.min(i.left,l));n.style.left=`${a}px`,n.style.top=`${i.bottom+4}px`,n.style.opacity="1",n.style.visibility="visible"},hide:()=>{n.style.opacity="0",n.style.visibility="hidden"}};e.addEventListener("mouseenter",r.show),e.addEventListener("mouseleave",r.hide),e.addEventListener("focus",r.show),e.addEventListener("blur",r.hide),e.tooltipHandlers=r},qs=e=>{e.tooltipHandlers&&(e.removeEventListener("mouseenter",e.tooltipHandlers.show),e.removeEventListener("mouseleave",e.tooltipHandlers.hide),e.removeEventListener("focus",e.tooltipHandlers.show),e.removeEventListener("blur",e.tooltipHandlers.hide),e.tooltipHandlers.tooltipEl.remove(),delete e.tooltipHandlers)},yl={mounted(e,t){t.value&&Hs(e,t.value)},updated(e,t){const n=e;if(!t.value){qs(n);return}if(!n.tooltipHandlers){Hs(n,t.value);return}n.tooltipHandlers.text=t.value},unmounted(e){qs(e)}},bl={key:0,class:"text-center py-8"},El={class:"inline-flex items-center space-x-2"},kl={key:2,class:"overflow-x-auto"},xl=["checked","indeterminate"],wl=["onClick"],Nl={class:"flex items-center justify-between"},Sl={class:"flex items-center gap-1.5"},Cl={key:0,class:"relative group"},_l=["onMouseenter"],Tl={key:0,class:"ml-1 text-xs"},Dl=["onClick"],Ol=["checked","onChange"],Bl=["onClick"],Il={key:1,class:"text-center"},Al=["colspan"],Nt=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:""},classContent:{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},defaultSort:{default:()=>[]},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,r=yl,o=t,i=s.ref(n.selectedRows||[]),l=s.ref(n.defaultSort.map(f=>({field:f.name,direction:f.asc?"asc":"desc"}))),a=s.ref([]),c=s.ref([]),p=s.ref(!1),m=s.ref(null),d=s.ref(n.router),u=s.useSlots(),h=s.computed(()=>u.action);function E(f){if(d.value){d.value.push(f);return}location.href=f}const v=s.computed(()=>{if(n.api)return a.value;if(n.sortable&&l.value.length>0){const f=[...n.rows];return f.sort((N,g)=>{for(const M of l.value){if(!M.direction)return 0;const y=N[M.field],j=g[M.field];if(y==null)return 1;if(j==null)return-1;let re=0;typeof y=="string"&&typeof j=="string"?re=y.localeCompare(j):y<j?re=-1:y>j?re=1:re=0;const He=M.direction==="desc"?-re:re;if(He!==0)return He}return 0}),f}return n.rows});s.watch(()=>n.selectedRows,f=>{i.value=f||[]});const _=f=>i.value.some(N=>N===f),C=f=>{const N=i.value.findIndex(g=>g===f);N>-1?i.value.splice(N,1):i.value.push(f),o("update:selectedRows",[...i.value])},A=s.computed(()=>v.value.length>0&&i.value.length===v.value.length),T=s.computed(()=>i.value.length>0&&i.value.length<v.value.length),$=()=>{A.value?i.value=[]:i.value=[...v.value],o("update:selectedRows",[...i.value])},P=(f,N)=>{if(!n.sortable)return;if(N?.ctrlKey||N?.metaKey){const y=l.value.findIndex(j=>j.field===f);if(y>=0){const j=l.value[y];j.direction==="asc"?j.direction="desc":j.direction==="desc"&&l.value.splice(y,1)}else l.value.unshift({field:f,direction:"asc"})}else{const y=l.value.find(j=>j.field===f);y?y.direction==="asc"?y.direction="desc":y.direction==="desc"&&(l.value=[]):l.value=[{field:f,direction:"asc"}]}const M=l.value.filter(y=>y.direction).map(y=>({name:y.field,asc:y.direction==="asc"}));o("sort",M),n.api&&St()},te=f=>l.value.find(g=>g.field===f)?.direction==="asc",D=f=>{const N=l.value.find(g=>g.field===f);if(!N)return"";switch(N.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},k=f=>n.sortable&&f.sortable!==!1,x=f=>{n.clickable&&o("row-click",f)},I=(f,N)=>{const g=N[f.name];if(n.getCellData||f.getCellData){const M=f.getCellData||n.getCellData;if(M){const y={name:f.name,row:N,value:g};return M(y)}}return["_data","_text"].map(M=>{const y=`${f.name}${M}`;return N[y]?N[y]:null}).find(M=>M)||(f.link?g||"-":g)},F=f=>{const N=g=>g==null||g===""?"":typeof g=="object"?g?.text?String(g.text):g?.label?String(g.label):JSON.stringify(g):String(g);return Array.isArray(f)?f.map(N).filter(Boolean).join(", "):N(f)},w=(f,N)=>{if(!N?.tooltip)return;const g=I(N,f);if(g!=null)return F(g)},b=f=>f.width?f.width==="w-full"?"w-full":typeof f.width=="string"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:typeof f.width=="number"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:"":"max-w-[350px]",S=f=>(typeof f?.overflow=="string"?f.overflow.toLowerCase():"")==="wrap"?"wrap":"clip",O=f=>S(f)==="wrap"?["whitespace-normal","break-words"]:["truncate","whitespace-nowrap"],H=s.ref(n.page),Q=s.ref(n.limit),ye=s.ref(n.total),ke=s.ref(1),ne=s.ref(10),ce=s.ref(0),xe=s.computed(()=>n.api?ke.value:H.value),et=s.computed(()=>n.api?ne.value:Q.value),Ys=s.computed(()=>n.api?ce.value:ye.value),se=s.computed(()=>{const{theme:f}=n;return f==="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"}:f==="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,f=>{H.value=f}),s.watch(()=>n.limit,f=>{Q.value=f}),s.watch(()=>n.total,f=>{ye.value=f});async function St(){if(n.api){p.value=!0,m.value=null;try{const f=new URL(n.api,window.location.origin);if(f.searchParams.set("page",xe.value.toString()),f.searchParams.set("limit",et.value.toString()),l.value.length>0){const M=l.value.filter(y=>y.direction).map(y=>`${y.field}:${y.direction}`).join(",");M&&f.searchParams.set("sort",M)}const N=await fetch(f.toString());if(!N.ok)throw new Error(`HTTP error! status: ${N.status}`);const g=await N.json();g.rows&&Array.isArray(g.rows)&&(a.value=g.rows),g.columns&&Array.isArray(g.columns)&&(c.value=g.columns),g.total!==void 0&&(n.api?ce.value=g.total:ye.value=g.total)}catch(f){m.value=f instanceof Error?f.message:"Failed to fetch data",console.error("Error fetching data:",f)}finally{p.value=!1}}}const $a=f=>{n.api?ke.value=f:(H.value=f,o("update:page",f)),n.api&&St()},Ma=s.computed(()=>n.showPagination&&Ys.value>0),tt=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]),Ra=f=>{const N=[];return n.classTd?N.push(n.classTd):N.push(se.value.td,tt.value.cell),f.align&&N.push(`text-${f.align}`),b(f)&&N.push(b(f)),N.push(...O(f)),N.filter(Boolean)},La=Tt(),Ct=s.ref("uk"),Xs=f=>{f.detail.key==="locale"&&(Ct.value=f.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("resize",Xs)}),s.onMounted(()=>{window.addEventListener("storage",Xs),Ct.value=localStorage.locale,n.api&&(n.page&&(ke.value=n.page),n.limit&&(ne.value=n.limit),n.total&&(ce.value=n.total),St())}),s.watch(()=>n.api,f=>{f&&(ke.value=n.page||1,ne.value=n.limit||10,ce.value=n.total||0,St())});const Zs=s.computed(()=>n.api?c.value:n.columns),yn=s.ref([]),_t=s.ref({});s.provide("registerColumn",(f,N)=>{yn.value.push(f),N&&f.slotName&&(_t.value[f.name]=N)});const bn=s.computed(()=>{const f=Zs.value||[],N=[],g=u.default?.();if(g){const M=g.filter(y=>y.type?.name==="Column"||y.type==="Column"||y.type&&typeof y.type=="object"&&y.type.name==="Column").map(y=>{const j=y.props||y.componentProps||{},re=j.field||j.name||"",He=j.header||j.label||"",er=y.children&&y.children.body,kn={name:re,ua:He,format:j.format||"text",slotName:er?"body":void 0,...j};return er&&kn.name&&(_t.value[kn.name]=y.children.body),kn});N.push(...M)}if(yn.value.length>0&&N.push(...yn.value),N.length>0){const M=[],y=new Set(N.map(j=>j.name));return f.forEach(j=>{y.has(j.name)||M.push(j)}),M.push(...N),console.log("Combined columns:",{default:f.length,custom:N.length,combined:M.length}),M}return f.length>0?f:[]}),Pa=(f="text")=>Dt[f.toLowerCase()]||Dt.text,Me=s.ref({});async function Fa(f){const{data:N,api:g}=bn.value.find(M=>M.name===f);if(Me.value[f])return Me.value[f];if(N||g){const M=g||`/api/suggest/${N}?json=1`,j=await(await fetch(M)).json();j.data&&Array.isArray(j.data)&&(Me.value[f]=j.data.map(re=>({value:re.id??re.value,label:re.text??re.label})))}return Me.value[f]}function ja(f,N,g,M){const y=M;y!==-1&&(n.rows[y]={...n.rows[y],[N]:g}),o("cell-update",f,N,g)}function Qs(f){const g=`info:${Ct.value}`;return f[g]?f[g]:f.info?f.info:null}const En=s.ref(null),Vs=s.ref({top:"0px",left:"0px"});function za(f,N){const g=f.currentTarget.getBoundingClientRect();En.value=N,Vs.value={top:`${g.bottom+4}px`,left:`${Math.min(g.left,window.innerWidth-230)}px`}}function Ua(){En.value=null}return s.watch(()=>n.form,async f=>{f&&(Me.value={})}),s.onMounted(()=>{n.form&&(Me.value={})}),(f,N)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["w-full",se.value.container])},[p.value||n.loading?(s.openBlock(),s.createElementBlock("div",bl,[s.createElementVNode("div",El,[N[0]||(N[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(se.value.loading)},"Loading...",2)])])):m.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["text-center py-8",se.value.error])},s.toDisplayString(m.value),3)):n.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",kl,[s.createElementVNode("div",{class:s.normalizeClass(f.classWrapper?f.classWrapper:"relative w-full overflow-auto")},[s.createElementVNode("table",{class:s.normalizeClass(f.classTable),style:s.normalizeStyle(f.tableStyle)},[s.createElementVNode("thead",{class:s.normalizeClass(f.classThead||se.value.thead)},[s.createElementVNode("tr",null,[f.selectable?(s.openBlock(),s.createElementBlock("th",{key:0,class:s.normalizeClass(["text-left font-medium uppercase tracking-wider",se.value.th,tt.value.header,n.classTh,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:A.value,indeterminate:T.value,onChange:$,class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",se.value.checkbox])},null,42,xl)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(bn.value.filter(g=>!g.hidden),g=>(s.openBlock(),s.createElementBlock("th",{key:g.name,class:s.normalizeClass([g.align?`text-${g.align}`:"",k(g)?["cursor-pointer",se.value.thHover]:"",b(g)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",se.value.th,tt.value.header])),onClick:M=>k(g)?P(g.name,M):void 0},[s.createElementVNode("div",Nl,[s.createElementVNode("div",Sl,[s.createElementVNode("span",null,s.toDisplayString(g[Ct.value]||g.header||g.ua||g.name),1),Qs(g)?(s.openBlock(),s.createElementBlock("div",Cl,[(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-400 cursor-help",onMouseenter:M=>za(M,g.name),onMouseleave:Ua},N[1]||(N[1]=[s.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),s.createElementVNode("path",{d:"M12 16v-4"},null,-1),s.createElementVNode("path",{d:"M12 8h.01"},null,-1)]),40,_l)),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[En.value===g.name?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(Vs.value),class:"fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"},s.toDisplayString(Qs(g)),5)):s.createCommentVNode("",!0)]))])):s.createCommentVNode("",!0)]),k(g)?(s.openBlock(),s.createElementBlock("span",Tl,[s.renderSlot(f.$slots,"sort",{asc:te(g.name)},()=>[s.createTextVNode(s.toDisplayString(D(g.name)),1)])])):s.createCommentVNode("",!0)])],10,wl))),128)),h.value?(s.openBlock(),s.createElementBlock("th",{key:1,class:s.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",se.value.th,tt.value.header]])},s.toDisplayString(s.unref(La)("table.actions")),3)):s.createCommentVNode("",!0)])],2),v.value.length?(s.openBlock(),s.createElementBlock("tbody",{key:0,class:s.normalizeClass(f.classTbody||se.value.tbody)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(v.value,(g,M)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:M},[s.createElementVNode("tr",{class:s.normalizeClass(n.classTr||[se.value.tr,n.clickable?"cursor-pointer":""]),onClick:y=>n.clickable?x(g):void 0},[f.selectable?(s.openBlock(),s.createElementBlock("td",{key:0,class:s.normalizeClass(["whitespace-nowrap",se.value.td,tt.value.cell,n.classTd,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:_(g),onChange:y=>C(g),class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",se.value.checkbox])},null,42,Ol)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(bn.value.filter(y=>!y.hidden),y=>s.withDirectives((s.openBlock(),s.createElementBlock("td",{key:y.name,class:s.normalizeClass(Ra(y))},[(s.openBlock(),s.createBlock(gl,{"class-content":n.classContent,key:g,editable:y.edit,row:g,column:y,value:g[y.name],format:y.format,options:Me.value[y.name]||[],color:f.color,overflow:S(y),onUpdate:(j,re,He)=>ja(j,re,He,M),"fetch-options":Fa},{default:s.withCtx(()=>[y.action&&h.value?s.renderSlot(f.$slots,"action",{key:0,row:g}):s.unref(u).number&&y.format==="number"?s.renderSlot(f.$slots,"number",{key:1,row:g,value:I(y,g)}):s.unref(u).badge&&y.format==="badge"?s.renderSlot(f.$slots,"badge",{key:2,row:g,value:I(y,g)}):s.unref(u).array&&y.format==="array"?s.renderSlot(f.$slots,"array",{key:3,row:g,value:I(y,g)}):y.slotName&&_t.value[y.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(_t.value[y.name]),{key:4,data:g,value:I(y,g),row:g,column:y},null,8,["data","value","row","column"])):y.link?(s.openBlock(),s.createElementBlock("a",{key:5,class:s.normalizeClass(f.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:j=>E(y.link.replace("{id}",g.id))},[y.slot&&typeof y.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(js)(y.slot)),{key:0,row:g,value:g,data:g,column:y},null,8,["row","value","data","column"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(I(y,g)),1)],64))],10,Bl)):y.slot&&y.format==="slot"&&typeof y.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(js)(y.slot)),{key:6,row:g,value:I(y,g),data:g,column:y},null,8,["row","value","data","column"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Pa(y.format)),{key:7,value:I(y,g),row:g,column:y,href:y.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","overflow","onUpdate"]))],2)),[[s.unref(r),w(g,y)]])),128)),h.value?(s.openBlock(),s.createElementBlock("td",Il,[s.renderSlot(f.$slots,"action",{row:g})])):s.createCommentVNode("",!0)],10,Dl),s.createElementVNode("tr",null,[s.renderSlot(f.$slots,"under-row",{row:g})])],64))),128))],2)):s.createCommentVNode("",!0),v.value.length===0?(s.openBlock(),s.createElementBlock("tbody",{key:1,class:s.normalizeClass(["text-center py-8",se.value.empty])},[s.createElementVNode("tr",null,[s.createElementVNode("td",{colspan:Zs.value.length},[s.createVNode(Zi)],8,Al)])],2)):s.createCommentVNode("",!0)],6)],2)])),Ma.value&&!p.value&&!n.loading&&!m.value?(s.openBlock(),s.createBlock(Ot,{key:3,page:xe.value,limit:et.value,total:Ys.value,theme:n.theme,size:n.size,"onUpdate:page":$a},null,8,["page","limit","total","theme","size"])):s.createCommentVNode("",!0)],2))}}),$l={style:{display:"none"}},Ks=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:{},tooltip:{type:Boolean},overflow:{}},setup(e){const t=e,n=s.useSlots(),r=s.inject("registerColumn");return s.onMounted(()=>{if(r){const{field:o,name:i,header:l,label:a,format:c,slotName:p,link:m,action:d,getCellData:u,suffix:h,...E}=t,A={name:o||i||"",ua:l||a||"",format:c||"text",slotName:p||(n.body?"body":void 0),link:m,action:d,getCellData:u,suffix:h,...E};console.log("Registering column:",A);const T=n.body;r(A,T)}}),(o,i)=>(s.openBlock(),s.createElementBlock("div",$l,[s.renderSlot(o.$slots,"body",{data:{}})]))}}),Ml={class:"mt-4"},Rl={class:"text-sm text-gray-600 dark:text-gray-300"},Ws=s.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=s.computed(()=>t.selectedRows.length);return(r,o)=>(s.openBlock(),s.createElementBlock("div",Ml,[s.createElementVNode("div",Rl," Обрано: "+s.toDisplayString(n.value)+" з "+s.toDisplayString(r.totalCount)+" записів ",1)]))}}),Ll={class:"mt-4"},Pl={class:"border-b border-gray-200 dark:border-gray-700"},Fl={class:"-mb-px flex space-x-8"},jl=["onClick"],zl={class:"mt-4"},Ul={class:"bg-gray-900 rounded-lg overflow-hidden"},Hl={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},ql={class:"text-sm text-gray-300"},Kl=["onClick"],Wl={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Gs=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 o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(s.openBlock(),s.createElementBlock("div",Ll,[s.createElementVNode("div",Pl,[s.createElementVNode("nav",Fl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>(s.openBlock(),s.createElementBlock("button",{key:l.id,onClick:a=>n.value=l.id,class:s.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===l.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(l.label),11,jl))),128))])]),s.createElementVNode("div",zl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:l.id},[s.createElementVNode("div",Ul,[s.createElementVNode("div",Hl,[s.createElementVNode("span",ql,s.toDisplayString(l.label),1),s.createElementVNode("button",{onClick:a=>r(l.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[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,Kl)]),s.createElementVNode("pre",Wl,[s.createElementVNode("code",null,s.toDisplayString(l.content),1)])])])),[[s.vShow,n.value===l.id]])),128))])]))}}),Gl={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Jl={class:"m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden 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"},Yl={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},Xl={class:"font-medium text-gray-800 dark:text-[#ffffff]"},Zl={class:"sr-only"},Ql={class:"ui-dialog__content p-4 overflow-y-auto flex-1"},Vl={class:"p-4"},ea={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},ta={class:"text-sm font-[600] text-gray-500"},na={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},sa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ra={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},oa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ia={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},la={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},aa={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},ca={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},da={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},pa={class:"flex items-center gap-[4px]"},fa=["id","value"],ua=["for"],ha={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"},ma={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},ga={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},va={class:"text-sm font-[600] text-gray-500"},ya={class:"mt-2 space-y-2"},ba={class:"flex items-center"},Ea={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ka={class:"flex items-center"},xa={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},wa={class:"flex items-center"},Na={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},Sa={key:0,class:"p-3 border rounded-md bg-gray-50 text-sm text-gray-700 whitespace-pre-line mb-4 dark:bg-neutral-800 dark:text-neutral-200"},Ca={class:"flex items-center gap-2 mb-2"},_a={class:"flex justify-end gap-x-2"},Ta={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},Da=["disabled"],Oa={key:0,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/60"},Ba={class:"rounded-lg bg-white p-6 text-center shadow-xl dark:bg-neutral-900 w-[320px]"},Ia={class:"text-sm font-medium text-gray-700 dark:text-neutral-200"},Aa={class:"mt-2 text-xs text-gray-500 whitespace-pre-line dark:text-neutral-400"},Js=s.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=s.getCurrentInstance(),n=Tt(),r=e,o=s.ref(!1),i=s.ref([]),l=s.ref("json"),a=s.ref(!1),c=s.ref(!1),p=s.ref(""),m=s.ref(!1),d=s.ref("all"),u=s.computed(()=>r.columns??[]),h=s.useAttrs();function E(){i.value=u.value.map(w=>w.name),l.value="json",o.value=!0,m.value=!1}function v(){o.value=!1,m.value=!1}function _(){i.value=u.value.map(w=>w.name),d.value="all"}function C(){const w=u.value.filter(b=>!b.hidden).map(b=>b.name);i.value=w.length?w:u.value.map(b=>b.name),d.value="active"}function A(){i.value=[],d.value="none"}async function T(){if(i.value.length===0)return;a.value=!0,p.value="",c.value=!1;const w=new URLSearchParams({table:r.table,format:l.value,columns:i.value.join(",")});try{const b=await fetch(`/api/export?${w.toString()}`,{method:"GET",headers:{Accept:"text/event-stream, */*"}});if(!b.ok)throw new Error("Export failed");if(b.headers.get("content-type")?.includes("text/event-stream")){if(v(),c.value=!0,m.value=!0,!await I(b,H=>{p.value=H}))throw new Error("Failed to process streamed export");p.value=n("table.preparingDownload"),await k(w),c.value=!1,m.value=!1}else await D(b),v()}catch(b){console.error(b);const{$notify:S=console.log}=t?.appContext?.config?.globalProperties||{};S({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"}),c.value=!1,m.value=!1}finally{a.value=!1}}const $=s.ref("uk"),P=w=>{w.detail.key==="locale"&&($.value=w.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",P)}),s.onMounted(()=>{window.addEventListener("storage",P),$.value=localStorage.locale});function te(w,b){const S=URL.createObjectURL(w),O=document.createElement("a");O.href=S,O.download=b||`${r.table}.${l.value}`,document.body.appendChild(O),O.click(),O.remove(),URL.revokeObjectURL(S)}async function D(w){const b=await w.blob();te(b,`${r.table}.${l.value}`)}async function k(w){const b=await fetch(`/api/export?${w.toString()}`,{method:"GET",headers:{Accept:"*/*"}});if(!b.ok)throw new Error("Export failed");await D(b)}function x(w){return w.split(/\r?\n/).reduce((b,S)=>{const[O,...H]=S.split(":");if(!O)return b;const Q=H.join(":").trimStart();return O==="event"&&(b.event=Q),O==="data"&&(b.data=(b.data?`${b.data}
|
|
22
|
-
`:"")+
|
|
21
|
+
**/const Or=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Br=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),Ir=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ar=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),bn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),$r=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Mr=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Rr=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),En=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Lr=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");oo({[Or]:"vModelRadio",[Br]:"vModelCheckbox",[Ir]:"vModelText",[Ar]:"vModelSelect",[bn]:"vModelDynamic",[$r]:"withModifiers",[Mr]:"withKeys",[Rr]:"vShow",[En]:"Transition",[Lr]:"TransitionGroup"});let Ue;function Ri(e,t=!1){return Ue||(Ue=document.createElement("div")),t?(Ue.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ue.children[0].getAttribute("foo")):(Ue.innerHTML=e,Ue.textContent)}const Li={parseMode:"html",isVoidTag:Vs,isNativeTag:e=>Xs(e)||Zs(e)||Qs(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Ri,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return En;if(e==="TransitionGroup"||e==="transition-group")return Lr},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},Pi=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:A("style",!0,t.loc),exp:Fi(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Fi=(e,t)=>{const n=Ks(e);return A(JSON.stringify(n),!1,t,3)};function ve(e,t){return U(e,t,process.env.NODE_ENV!=="production"?ji:void 0)}const ji={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."},zi=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(ve(53,o)),t.children.length&&(n.onError(ve(54,o)),t.children.length=0),{props:[G(A("innerHTML",!0,o),s||A("",!0))]}},Ui=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(ve(55,o)),t.children.length&&(n.onError(ve(56,o)),t.children.length=0),{props:[G(A("textContent",!0),s?he(s,n)>0?s:Y(n.helperString(pt),[s],o):A("",!0))]}},Hi=(e,t,n)=>{const s=_r(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(ve(58,e.arg.loc));function o(){const a=le(t,"bind");a&&Te(a.arg,"value")&&n.onError(ve(60,a.loc))}const{tag:i}=t,l=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||l){let a=Ir,c=!1;if(i==="input"||l){const d=Ze(t,"type");if(d){if(d.type===7)a=bn;else if(d.value)switch(d.value.content){case"radio":a=Or;break;case"checkbox":a=Br;break;case"file":c=!0,n.onError(ve(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else bo(t)?a=bn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?a=Ar:process.env.NODE_ENV!=="production"&&o();c||(s.needRuntime=n.helper(a))}else n.onError(ve(57,e.loc));return s.props=s.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),s},qi=ye("passive,once,capture"),Ki=ye("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Wi=ye("left,right"),Pr=ye("onkeyup,onkeydown,onkeypress"),Gi=(e,t,n,s)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&ze("COMPILER_V_ON_NATIVE",n,s)||qi(c)?l.push(c):Wi(c)?ie(e)?Pr(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):Ki(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},Fr=(e,t)=>ie(e)&&e.content.toLowerCase()==="onclick"?A(t,!0):e.type!==4?ge(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Ji=(e,t,n)=>Sr(e,t,n,s=>{const{modifiers:o}=e;if(!o.length)return s;let{key:i,value:l}=s.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=Gi(i,o,n,e.loc);if(c.includes("right")&&(i=Fr(i,"onContextmenu")),c.includes("middle")&&(i=Fr(i,"onMouseup")),c.length&&(l=Y(n.helper($r),[l,JSON.stringify(c)])),a.length&&(!ie(i)||Pr(i.content.toLowerCase()))&&(l=Y(n.helper(Mr),[l,JSON.stringify(a)])),d.length){const m=d.map(Ft).join("");i=ie(i)?A(`${i.content}${m}`,!0):ge(["(",i,`) + "${m}"`])}return{props:[G(i,l)]}}),Yi=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(ve(61,o)),{props:[],needRuntime:n.helper(Rr)}},Xi=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===En)return()=>{if(!e.children.length)return;jr(e)&&t.onError(ve(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const o of s.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function jr(e){const t=e.children=e.children.filter(s=>s.type!==3&&!(s.type===2&&!s.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(jr)}const Zi=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(ve(63,e.loc)),t.removeNode())};function Qi(e,t){return e==="template"?!0:e in zr?zr[e].has(t):t in Ur?Ur[t].has(e):!(e in Hr&&Hr[e].has(t)||t in qr&&qr[t].has(e))}const He=new Set(["h1","h2","h3","h4","h5","h6"]),Me=new Set([]),zr={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:Me,iframe:Me,option:Me,textarea:Me,style:Me,title:Me},Ur={html:Me,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"])},Hr={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"])},qr={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:He,h2:He,h3:He,h4:He,h5:He,h6:He},Vi=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!Qi(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)}},el=[Pi,...process.env.NODE_ENV!=="production"?[Xi,Vi]:[]],tl={cloak:Mi,html:zi,text:Ui,model:Hi,on:Ji,show:Yi};function nl(e,t={}){return $i(e,Ne({},Li,t,{nodeTransforms:[Zi,...el,...t.nodeTransforms||[]],directiveTransforms:Ne({},tl,t.directiveTransforms||{}),transformHoist:null}))}function rl(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:s}=nl(n,{mode:"function"}),o=new Function("Vue",`${s}; return render`)(ls);return r.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,l){return t?.setup?.()??{}},render:o})}const kn={};function Kr(e){return kn[e]||(kn[e]=rl(e,{props:{row:Object,value:null,data:Object,column:Object}})),kn[e]}const sl={class:"py-10 flex flex-col justify-center items-center text-center"},ol={class:"max-w-sm mx-auto"},il={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},ll={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},al=r.defineComponent({__name:"nodata",props:{title:{},description:{}},setup(e){const t=st(),n=e,s=r.computed(()=>n.title??t("table.noData.title")),o=r.computed(()=>n.description??t("table.noData.description"));return(i,l)=>(r.openBlock(),r.createElementBlock("div",sl,[l[0]||(l[0]=r.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)),r.createElementVNode("div",ol,[r.createElementVNode("p",il,r.toDisplayString(s.value),1),r.createElementVNode("p",ll,r.toDisplayString(o.value),1)])]))}}),cl=["aria-checked","data-state"],dl={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},pl=["onKeydown"],fl={key:0,class:"hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-inthmtdid1"},ul={class:"py-2 px-4"},hl={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},ml={class:"truncate"},gl={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},vl={class:"space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},yl=["onClick"],bl={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},El={key:1,class:"shrink-0 size-3.5 ms-auto",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"},kl={key:1,class:"p-4"},xl={class:"text-base font-semibold text-gray-800 mb-3"},wl={class:"mb-4"},Nl={class:"block text-sm font-medium text-gray-700 mb-1"},Sl={key:0,class:"text-xs text-gray-500 mb-2"},Cl=["placeholder"],_l=["placeholder"],Tl=["placeholder"],Dl={disabled:"",value:""},Ol=["value"],Bl={key:0,class:"text-xs text-gray-500"},Il={class:"flex justify-end gap-2 border-t pt-3"},Al=r.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function},overflow:{}},emits:["edit","update"],setup(e,{emit:t}){const n=e,s=t,o=r.ref(!1),i=r.ref(null),l=r.ref(null),a=r.ref(n.value),c=r.ref([]),d=lt(),m=r.computed(()=>n.column?.schema?.[n.column?.name]),p=r.computed(()=>it(n.column||{},d.value)),u=r.computed(()=>ps(n.column||{},d.value)||""),h=r.computed(()=>Cn(n.column||{},d.value)),E=r.computed(()=>ds(n.column||{},d.value)),y=r.computed(()=>It(m.value,d.value,"placeholder")||u.value||""),_=r.computed(()=>It(m.value,d.value,"info")||h.value||null),S=r.computed(()=>It(m.value,d.value,"description")||E.value||null),$=r.computed(()=>y.value||"-- виберіть --");r.watch(()=>n.value,D=>{a.value=D});const C=r.computed(()=>{const D=n.column?.schema?.[n.column?.name];if(D?.type)switch(D.type){case"Text":return"text";case"Number":return"number";case"Switcher":return"boolean";case"Autocomplete":return"select";case"Date":return"date";default:return"text"}const z=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(z)?z:"text"}),H=r.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(I=>({value:I.id??I.value,color:I.color,label:fs(I,d.value)||""}))),j=r.ref(null);function ne(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&r.nextTick(()=>{i.value?.focus?.(),i.value?.showPicker?.(),C.value==="select"&&T()}))}function X(){s("edit",n.row,n.column.name,a.value),s("update",n.row,n.column.name,a.value),o.value=!1}function O(){a.value=n.value,o.value=!1}function N(D){if(!o.value)return;const I=D.target;j.value&&!j.value.contains(I)&&(o.value=!1)}function B(){o.value=!1}r.onMounted(()=>{document.addEventListener("click",N),document.addEventListener("close-all-popovers",B)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",N),document.removeEventListener("close-all-popovers",B)});function M(){n.editable&&(a.value=!a.value,s("update",n.row,n.column.name,a.value))}function k(D){return n.color?n.color.startsWith("#")?D.replace("{c}",`[${n.color}]`):D.replace("{c}",`${n.color}-500`):D.replace("{c}","cyan-500")}const g=r.computed(()=>({border:k("border-{c}"),ring:k("focus:ring-{c}"),text:k("text-{c}"),hover:k("hover:text-{c}"),bg:k("bg-{c} hover:bg-{c}/90")})),w=r.computed(()=>n.overflow==="wrap"?["flex-1","whitespace-normal","break-words"]:["flex-1","truncate","whitespace-nowrap"]);async function T(){if(C.value==="select"&&!(n.options&&n.options.length>0||n.column?.schema?.[n.column?.name]?.options?.length>0)&&c.value.length===0&&n.fetchOptions)try{c.value=await n.fetchOptions(n.column.name)}catch(D){console.error(`Не удалось загрузить options для ${n.column.name}`,D)}}return(D,I)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(D.classContent?D.classContent:"relative group w-full"),ref_key:"cellRef",ref:j},[C.value==="boolean"&&D.editable?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:r.normalizeClass(["peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center",a.value?g.value.border:"",g.value.ring,a.value?g.value.bg:""]),onClick:r.withModifiers(M,["stop"])},[a.value?(r.openBlock(),r.createElementBlock("span",dl,I[4]||(I[4]=[r.createElementVNode("svg",{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",class:"lucide lucide-check size-3.5"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):r.createCommentVNode("",!0)],10,cl)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",{class:"flex items-start justify-between cursor-pointer gap-2",onClick:r.withModifiers(ne,["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(w.value)},[r.renderSlot(D.$slots,"default")],2),D.editable?(r.openBlock(),r.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:r.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",g.value.text])},I[5]||(I[5]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"},null,-1)]),2)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:l,class:r.normalizeClass(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg",C.value==="select"?"":"w-[450px]"]),onKeydown:r.withKeys(r.withModifiers(O,["stop","prevent"]),["esc"])},[C.value==="select"?(r.openBlock(),r.createElementBlock("div",fl,[r.createElementVNode("div",ul,[r.createElementVNode("span",hl,[r.createElementVNode("span",ml," Редагувати "+r.toDisplayString(p.value),1)])]),r.createElementVNode("div",gl,[r.createElementVNode("div",vl,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.value,z=>(r.openBlock(),r.createElementBlock("label",{key:z.value.toString(),onClick:r.withModifiers(()=>{a.value=z.value,X()},["prevent"]),class:"py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"},[I[8]||(I[8]=r.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),z.color?(r.openBlock(),r.createElementBlock("span",bl,I[6]||(I[6]=[r.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(z.label)+" ",1),a.value===z.value?(r.openBlock(),r.createElementBlock("svg",El,I[7]||(I[7]=[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):r.createCommentVNode("",!0)],8,yl))),128))])])])):(r.openBlock(),r.createElementBlock("div",kl,[r.createElementVNode("h3",xl," Редагувати "+r.toDisplayString(p.value),1),r.createElementVNode("div",wl,[r.createElementVNode("label",Nl,r.toDisplayString(p.value),1),_.value?(r.openBlock(),r.createElementBlock("p",Sl,r.toDisplayString(_.value),1)):r.createCommentVNode("",!0),C.value==="text"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":I[0]||(I[0]=z=>a.value=z),type:"text",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",g.value.ring,g.value.border]),placeholder:y.value,onKeyup:r.withKeys(X,["enter"])},null,42,Cl)),[[r.vModelText,a.value]]):C.value==="number"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":I[1]||(I[1]=z=>a.value=z),type:"number",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",g.value.ring,g.value.border]),placeholder:y.value,onKeyup:r.withKeys(X,["enter"])},null,42,_l)),[[r.vModelText,a.value,void 0,{number:!0}]]):C.value==="date"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":I[2]||(I[2]=z=>a.value=z),type:"date",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",g.value.ring,g.value.border]),placeholder:y.value,onChange:X},null,42,Tl)),[[r.vModelText,a.value]]):C.value==="select"?r.withDirectives((r.openBlock(),r.createElementBlock("select",{key:4,ref_key:"inputRef",ref:i,"onUpdate:modelValue":I[3]||(I[3]=z=>a.value=z),class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",g.value.ring,g.value.border])},[r.createElementVNode("option",Dl,r.toDisplayString($.value),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.value,z=>(r.openBlock(),r.createElementBlock("option",{key:z.value.toString(),value:z.value},r.toDisplayString(z.label),9,Ol))),128))],2)),[[r.vModelSelect,a.value]]):r.createCommentVNode("",!0)]),S.value?(r.openBlock(),r.createElementBlock("p",Bl,r.toDisplayString(S.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Il,[r.createElementVNode("button",{type:"button",class:"px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",onClick:O}," Скасувати "),r.createElementVNode("button",{type:"button",class:r.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",g.value.bg]),onClick:X}," Зберегти ",2)])]))],42,pl)):r.createCommentVNode("",!0)],64))],2))}}),Wr=typeof window<"u",Gr=typeof document<"u",$l=()=>{if(!Gr)throw new Error("Tooltip requires document to be defined");const e=document.createElement("div");return e.className="fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200",e.style.opacity="0",e.style.visibility="hidden",document.body.appendChild(e),e},Jr=(e,t)=>{if(!Gr||!Wr)return;const n=$l(),s={text:t,tooltipEl:n,show:o=>{if(!s.text||!Wr)return;n.textContent=s.text;const i=o.currentTarget.getBoundingClientRect(),l=window.innerWidth-n.offsetWidth-12,a=Math.max(12,Math.min(i.left,l));n.style.left=`${a}px`,n.style.top=`${i.bottom+4}px`,n.style.opacity="1",n.style.visibility="visible"},hide:()=>{n.style.opacity="0",n.style.visibility="hidden"}};e.addEventListener("mouseenter",s.show),e.addEventListener("mouseleave",s.hide),e.addEventListener("focus",s.show),e.addEventListener("blur",s.hide),e.tooltipHandlers=s},Yr=e=>{e.tooltipHandlers&&(e.removeEventListener("mouseenter",e.tooltipHandlers.show),e.removeEventListener("mouseleave",e.tooltipHandlers.hide),e.removeEventListener("focus",e.tooltipHandlers.show),e.removeEventListener("blur",e.tooltipHandlers.hide),e.tooltipHandlers.tooltipEl.remove(),delete e.tooltipHandlers)},Ml={mounted(e,t){t.value&&Jr(e,t.value)},updated(e,t){const n=e;if(!t.value){Yr(n);return}if(!n.tooltipHandlers){Jr(n,t.value);return}n.tooltipHandlers.text=t.value},unmounted(e){Yr(e)}},Rl={key:0,class:"text-center py-8"},Ll={class:"inline-flex items-center space-x-2"},Pl={key:2,class:"overflow-x-auto"},Fl=["checked","indeterminate"],jl=["onClick"],zl={class:"flex items-center justify-between"},Ul={class:"flex items-center gap-1.5"},Hl={key:0,class:"relative group"},ql=["onMouseenter"],Kl={key:0,class:"ml-1 text-xs"},Wl=["onClick"],Gl=["checked","onChange"],Jl=["onClick"],Yl={key:1,class:"text-center"},Xl=["colspan"],Dt=r.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:""},classContent:{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},defaultSort:{default:()=>[]},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,s=Ml,o=t,i=r.ref(n.selectedRows||[]),l=r.ref(n.defaultSort.map(f=>({field:f.name,direction:f.asc?"asc":"desc"}))),a=r.ref([]),c=r.ref([]),d=r.ref(!1),m=r.ref(null),p=r.ref(n.router),u=r.useSlots(),h=r.computed(()=>u.action);function E(f){if(p.value){p.value.push(f);return}location.href=f}const y=r.computed(()=>{if(n.api)return a.value;if(n.sortable&&l.value.length>0){const f=[...n.rows];return f.sort((x,v)=>{for(const R of l.value){if(!R.direction)return 0;const b=x[R.field],F=v[R.field];if(b==null)return 1;if(F==null)return-1;let oe=0;typeof b=="string"&&typeof F=="string"?oe=b.localeCompare(F):b<F?oe=-1:b>F?oe=1:oe=0;const qe=R.direction==="desc"?-oe:oe;if(qe!==0)return qe}return 0}),f}return n.rows});r.watch(()=>n.selectedRows,f=>{i.value=f||[]});const _=f=>i.value.some(x=>x===f),S=f=>{const x=i.value.findIndex(v=>v===f);x>-1?i.value.splice(x,1):i.value.push(f),o("update:selectedRows",[...i.value])},$=r.computed(()=>y.value.length>0&&i.value.length===y.value.length),C=r.computed(()=>i.value.length>0&&i.value.length<y.value.length),H=()=>{$.value?i.value=[]:i.value=[...y.value],o("update:selectedRows",[...i.value])},j=(f,x)=>{if(!n.sortable)return;if(x?.ctrlKey||x?.metaKey){const b=l.value.findIndex(F=>F.field===f);if(b>=0){const F=l.value[b];F.direction==="asc"?F.direction="desc":F.direction==="desc"&&l.value.splice(b,1)}else l.value.unshift({field:f,direction:"asc"})}else{const b=l.value.find(F=>F.field===f);b?b.direction==="asc"?b.direction="desc":b.direction==="desc"&&(l.value=[]):l.value=[{field:f,direction:"asc"}]}const R=l.value.filter(b=>b.direction).map(b=>({name:b.field,asc:b.direction==="asc"}));o("sort",R),n.api&&Ot()},ne=f=>l.value.find(v=>v.field===f)?.direction==="asc",X=f=>{const x=l.value.find(v=>v.field===f);if(!x)return"";switch(x.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},O=f=>n.sortable&&f.sortable!==!1,N=f=>{n.clickable&&o("row-click",f)},B=(f,x)=>{const v=x[f.name];if(n.getCellData||f.getCellData){const R=f.getCellData||n.getCellData;if(R){const b={name:f.name,row:x,value:v};return R(b)}}return["_data","_text"].map(R=>{const b=`${f.name}${R}`;return x[b]?x[b]:null}).find(R=>R)||(f.link?v||"-":v)},M=f=>{const x=v=>v==null||v===""?"":typeof v=="object"?v?.text?String(v.text):v?.label?String(v.label):JSON.stringify(v):String(v);return Array.isArray(f)?f.map(x).filter(Boolean).join(", "):x(f)},k=(f,x)=>{if(!x?.tooltip)return;const v=B(x,f);if(v!=null)return M(v)},g=f=>f.width?f.width==="w-full"?"w-full":typeof f.width=="string"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:typeof f.width=="number"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:"":"max-w-[350px]",w=f=>(typeof f?.overflow=="string"?f.overflow.toLowerCase():"")==="wrap"?"wrap":"clip",T=f=>w(f)==="wrap"?["whitespace-normal","break-words"]:["truncate","whitespace-nowrap"],D=r.ref(n.page),I=r.ref(n.limit),z=r.ref(n.total),xe=r.ref(1),re=r.ref(10),de=r.ref(0),we=r.computed(()=>n.api?xe.value:D.value),tt=r.computed(()=>n.api?re.value:I.value),es=r.computed(()=>n.api?de.value:z.value),se=r.computed(()=>{const{theme:f}=n;return f==="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"}:f==="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"}});r.watch(()=>n.page,f=>{D.value=f}),r.watch(()=>n.limit,f=>{I.value=f}),r.watch(()=>n.total,f=>{z.value=f});async function Ot(){if(n.api){d.value=!0,m.value=null;try{const f=new URL(n.api,window.location.origin);if(f.searchParams.set("page",we.value.toString()),f.searchParams.set("limit",tt.value.toString()),l.value.length>0){const R=l.value.filter(b=>b.direction).map(b=>`${b.field}:${b.direction}`).join(",");R&&f.searchParams.set("sort",R)}const x=await fetch(f.toString());if(!x.ok)throw new Error(`HTTP error! status: ${x.status}`);const v=await x.json();v.rows&&Array.isArray(v.rows)&&(a.value=v.rows),v.columns&&Array.isArray(v.columns)&&(c.value=v.columns),v.total!==void 0&&(n.api?de.value=v.total:z.value=v.total)}catch(f){m.value=f instanceof Error?f.message:"Failed to fetch data",console.error("Error fetching data:",f)}finally{d.value=!1}}}const Za=f=>{n.api?xe.value=f:(D.value=f,o("update:page",f)),n.api&&Ot()},Qa=r.computed(()=>n.showPagination&&es.value>0),nt=r.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]),Va=f=>{const x=[];return n.classTd?x.push(n.classTd):x.push(se.value.td,nt.value.cell),f.align&&x.push(`text-${f.align}`),g(f)&&x.push(g(f)),x.push(...T(f)),x.filter(Boolean)},ec=st(),ts=lt();r.onMounted(()=>{n.api&&(n.page&&(xe.value=n.page),n.limit&&(re.value=n.limit),n.total&&(de.value=n.total),Ot())}),r.watch(()=>n.api,f=>{f&&(xe.value=n.page||1,re.value=n.limit||10,de.value=n.total||0,Ot())});const ns=r.computed(()=>n.api?c.value:n.columns),xn=r.ref([]),Bt=r.ref({});r.provide("registerColumn",(f,x)=>{xn.value.push(f),x&&f.slotName&&(Bt.value[f.name]=x)});const wn=r.computed(()=>{const f=ns.value||[],x=[],v=u.default?.();if(v){const R=v.filter(b=>b.type?.name==="Column"||b.type==="Column"||b.type&&typeof b.type=="object"&&b.type.name==="Column").map(b=>{const F=b.props||b.componentProps||{},oe=F.field||F.name||"",qe=F.header||F.label||"",os=b.children&&b.children.body,Sn={name:oe,ua:qe,format:F.format||"text",slotName:os?"body":void 0,...F};return os&&Sn.name&&(Bt.value[Sn.name]=b.children.body),Sn});x.push(...R)}if(xn.value.length>0&&x.push(...xn.value),x.length>0){const R=[],b=new Set(x.map(F=>F.name));return f.forEach(F=>{b.has(F.name)||R.push(F)}),R.push(...x),console.log("Combined columns:",{default:f.length,custom:x.length,combined:R.length}),R}return f.length>0?f:[]}),tc=(f="text")=>At[f.toLowerCase()]||At.text,Re=r.ref({});async function nc(f){const{data:x,api:v}=wn.value.find(R=>R.name===f);if(Re.value[f])return Re.value[f];if(x||v){const R=v||`/api/suggest/${x}?json=1`,F=await(await fetch(R)).json();F.data&&Array.isArray(F.data)&&(Re.value[f]=F.data.map(oe=>({value:oe.id??oe.value,label:oe.text??oe.label})))}return Re.value[f]}function rc(f,x,v,R){const b=R;b!==-1&&(n.rows[b]={...n.rows[b],[x]:v}),o("cell-update",f,x,v)}function rs(f){return Cn(f,ts.value)}function sc(f){return it(f,ts.value)}const Nn=r.ref(null),ss=r.ref({top:"0px",left:"0px"});function oc(f,x){const v=f.currentTarget.getBoundingClientRect();Nn.value=x,ss.value={top:`${v.bottom+4}px`,left:`${Math.min(v.left,window.innerWidth-230)}px`}}function ic(){Nn.value=null}return r.watch(()=>n.form,async f=>{f&&(Re.value={})}),r.onMounted(()=>{n.form&&(Re.value={})}),(f,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["w-full",se.value.container])},[d.value||n.loading?(r.openBlock(),r.createElementBlock("div",Rl,[r.createElementVNode("div",Ll,[x[0]||(x[0]=r.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(se.value.loading)},"Loading...",2)])])):m.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["text-center py-8",se.value.error])},r.toDisplayString(m.value),3)):n.loading?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Pl,[r.createElementVNode("div",{class:r.normalizeClass(f.classWrapper?f.classWrapper:"relative w-full overflow-auto")},[r.createElementVNode("table",{class:r.normalizeClass(f.classTable),style:r.normalizeStyle(f.tableStyle)},[r.createElementVNode("thead",{class:r.normalizeClass(f.classThead||se.value.thead)},[r.createElementVNode("tr",null,[f.selectable?(r.openBlock(),r.createElementBlock("th",{key:0,class:r.normalizeClass(["text-left font-medium uppercase tracking-wider",se.value.th,nt.value.header,n.classTh,"w-12"])},[r.createElementVNode("input",{type:"checkbox",checked:$.value,indeterminate:C.value,onChange:H,class:r.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",se.value.checkbox])},null,42,Fl)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(wn.value.filter(v=>!v.hidden),v=>(r.openBlock(),r.createElementBlock("th",{key:v.name,class:r.normalizeClass([v.align?`text-${v.align}`:"",O(v)?["cursor-pointer",se.value.thHover]:"",g(v)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",se.value.th,nt.value.header])),onClick:R=>O(v)?j(v.name,R):void 0},[r.createElementVNode("div",zl,[r.createElementVNode("div",Ul,[r.createElementVNode("span",null,r.toDisplayString(sc(v)),1),rs(v)?(r.openBlock(),r.createElementBlock("div",Hl,[(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-400 cursor-help",onMouseenter:R=>oc(R,v.name),onMouseleave:ic},x[1]||(x[1]=[r.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),r.createElementVNode("path",{d:"M12 16v-4"},null,-1),r.createElementVNode("path",{d:"M12 8h.01"},null,-1)]),40,ql)),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[Nn.value===v.name?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(ss.value),class:"fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"},r.toDisplayString(rs(v)),5)):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)]),O(v)?(r.openBlock(),r.createElementBlock("span",Kl,[r.renderSlot(f.$slots,"sort",{asc:ne(v.name)},()=>[r.createTextVNode(r.toDisplayString(X(v.name)),1)])])):r.createCommentVNode("",!0)])],10,jl))),128)),h.value?(r.openBlock(),r.createElementBlock("th",{key:1,class:r.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",se.value.th,nt.value.header]])},r.toDisplayString(r.unref(ec)("table.actions")),3)):r.createCommentVNode("",!0)])],2),y.value.length?(r.openBlock(),r.createElementBlock("tbody",{key:0,class:r.normalizeClass(f.classTbody||se.value.tbody)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.value,(v,R)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:R},[r.createElementVNode("tr",{class:r.normalizeClass(n.classTr||[se.value.tr,n.clickable?"cursor-pointer":""]),onClick:b=>n.clickable?N(v):void 0},[f.selectable?(r.openBlock(),r.createElementBlock("td",{key:0,class:r.normalizeClass(["whitespace-nowrap",se.value.td,nt.value.cell,n.classTd,"w-12"])},[r.createElementVNode("input",{type:"checkbox",checked:_(v),onChange:b=>S(v),class:r.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",se.value.checkbox])},null,42,Gl)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(wn.value.filter(b=>!b.hidden),b=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{key:b.name,class:r.normalizeClass(Va(b))},[(r.openBlock(),r.createBlock(Al,{"class-content":n.classContent,key:v,editable:b.edit,row:v,column:b,value:v[b.name],format:b.format,options:Re.value[b.name]||[],color:f.color,overflow:w(b),onUpdate:(F,oe,qe)=>rc(F,oe,qe,R),"fetch-options":nc},{default:r.withCtx(()=>[b.action&&h.value?r.renderSlot(f.$slots,"action",{key:0,row:v}):r.unref(u).number&&b.format==="number"?r.renderSlot(f.$slots,"number",{key:1,row:v,value:B(b,v)}):r.unref(u).badge&&b.format==="badge"?r.renderSlot(f.$slots,"badge",{key:2,row:v,value:B(b,v)}):r.unref(u).array&&b.format==="array"?r.renderSlot(f.$slots,"array",{key:3,row:v,value:B(b,v)}):b.slotName&&Bt.value[b.name]?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Bt.value[b.name]),{key:4,data:v,value:B(b,v),row:v,column:b},null,8,["data","value","row","column"])):b.link?(r.openBlock(),r.createElementBlock("a",{key:5,class:r.normalizeClass(f.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:F=>E(b.link.replace("{id}",v.id))},[b.slot&&typeof b.slot=="string"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(Kr)(b.slot)),{key:0,row:v,value:v,data:v,column:b},null,8,["row","value","data","column"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(B(b,v)),1)],64))],10,Jl)):b.slot&&b.format==="slot"&&typeof b.slot=="string"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(Kr)(b.slot)),{key:6,row:v,value:B(b,v),data:v,column:b},null,8,["row","value","data","column"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(tc(b.format)),{key:7,value:B(b,v),row:v,column:b,href:b.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","overflow","onUpdate"]))],2)),[[r.unref(s),k(v,b)]])),128)),h.value?(r.openBlock(),r.createElementBlock("td",Yl,[r.renderSlot(f.$slots,"action",{row:v})])):r.createCommentVNode("",!0)],10,Wl),r.createElementVNode("tr",null,[r.renderSlot(f.$slots,"under-row",{row:v})])],64))),128))],2)):r.createCommentVNode("",!0),y.value.length===0?(r.openBlock(),r.createElementBlock("tbody",{key:1,class:r.normalizeClass(["text-center py-8",se.value.empty])},[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:ns.value.length},[r.createVNode(al)],8,Xl)])],2)):r.createCommentVNode("",!0)],6)],2)])),Qa.value&&!d.value&&!n.loading&&!m.value?(r.openBlock(),r.createBlock($t,{key:3,page:we.value,limit:tt.value,total:es.value,theme:n.theme,size:n.size,"onUpdate:page":Za},null,8,["page","limit","total","theme","size"])):r.createCommentVNode("",!0)],2))}}),Zl={style:{display:"none"}},Xr=r.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:{},tooltip:{type:Boolean},overflow:{}},setup(e){const t=e,n=r.useSlots(),s=r.inject("registerColumn");return r.onMounted(()=>{if(s){const{field:o,name:i,header:l,label:a,format:c,slotName:d,link:m,action:p,getCellData:u,suffix:h,...E}=t,$={name:o||i||"",ua:l||a||"",format:c||"text",slotName:d||(n.body?"body":void 0),link:m,action:p,getCellData:u,suffix:h,...E};console.log("Registering column:",$);const C=n.body;s($,C)}}),(o,i)=>(r.openBlock(),r.createElementBlock("div",Zl,[r.renderSlot(o.$slots,"body",{data:{}})]))}}),Ql={class:"mt-4"},Vl={class:"text-sm text-gray-600 dark:text-gray-300"},Zr=r.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=r.computed(()=>t.selectedRows.length);return(s,o)=>(r.openBlock(),r.createElementBlock("div",Ql,[r.createElementVNode("div",Vl," Обрано: "+r.toDisplayString(n.value)+" з "+r.toDisplayString(s.totalCount)+" записів ",1)]))}}),ea={class:"mt-4"},ta={class:"border-b border-gray-200 dark:border-gray-700"},na={class:"-mb-px flex space-x-8"},ra=["onClick"],sa={class:"mt-4"},oa={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"},la={class:"text-sm text-gray-300"},aa=["onClick"],ca={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Qr=r.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=r.ref(t.defaultTab||t.tabs[0]?.id||""),s=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(r.openBlock(),r.createElementBlock("div",ea,[r.createElementVNode("div",ta,[r.createElementVNode("nav",na,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,l=>(r.openBlock(),r.createElementBlock("button",{key:l.id,onClick:a=>n.value=l.id,class:r.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===l.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"])},r.toDisplayString(l.label),11,ra))),128))])]),r.createElementVNode("div",sa,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,l=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:l.id},[r.createElementVNode("div",oa,[r.createElementVNode("div",ia,[r.createElementVNode("span",la,r.toDisplayString(l.label),1),r.createElementVNode("button",{onClick:a=>s(l.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[0]=[r.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r.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)]),r.createElementVNode("pre",ca,[r.createElementVNode("code",null,r.toDisplayString(l.content),1)])])])),[[r.vShow,n.value===l.id]])),128))])]))}}),da={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},pa={class:"m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden 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"},fa={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},ua={class:"font-medium text-gray-800 dark:text-[#ffffff]"},ha={class:"sr-only"},ma={class:"ui-dialog__content p-4 overflow-y-auto flex-1"},ga={class:"p-4"},va={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},ya={class:"text-sm font-[600] text-gray-500"},ba={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},Ea={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ka={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},xa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},wa={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Na={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Sa={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Ca={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},_a={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},Ta={class:"flex items-center gap-[4px]"},Da=["id","value"],Oa=["for"],Ba={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"},Ia={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},Aa={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},$a={class:"text-sm font-[600] text-gray-500"},Ma={class:"mt-2 space-y-2"},Ra={class:"flex items-center"},La={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},Pa={class:"flex items-center"},Fa={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ja={class:"flex items-center"},za={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},Ua={key:0,class:"p-3 border rounded-md bg-gray-50 text-sm text-gray-700 whitespace-pre-line mb-4 dark:bg-neutral-800 dark:text-neutral-200"},Ha={class:"flex items-center gap-2 mb-2"},qa={class:"flex justify-end gap-x-2"},Ka={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},Wa=["disabled"],Ga={key:0,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/60"},Ja={class:"rounded-lg bg-white p-6 text-center shadow-xl dark:bg-neutral-900 w-[320px]"},Ya={class:"text-sm font-medium text-gray-700 dark:text-neutral-200"},Xa={class:"mt-2 text-xs text-gray-500 whitespace-pre-line dark:text-neutral-400"},Vr=r.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=r.getCurrentInstance(),n=st(),s=e,o=r.ref(!1),i=r.ref([]),l=r.ref("json"),a=r.ref(!1),c=r.ref(!1),d=r.ref(""),m=r.ref(!1),p=r.ref("all"),u=r.computed(()=>s.columns??[]),h=r.useAttrs();function E(){i.value=u.value.map(k=>k.name),l.value="json",o.value=!0,m.value=!1}function y(){o.value=!1,m.value=!1}function _(){i.value=u.value.map(k=>k.name),p.value="all"}function S(){const k=u.value.filter(g=>!g.hidden).map(g=>g.name);i.value=k.length?k:u.value.map(g=>g.name),p.value="active"}function $(){i.value=[],p.value="none"}async function C(){if(i.value.length===0)return;a.value=!0,d.value="",c.value=!1;const k=new URLSearchParams({table:s.table,format:l.value,columns:i.value.join(",")});try{const g=await fetch(`/api/export?${k.toString()}`,{method:"GET",headers:{Accept:"text/event-stream, */*"}});if(!g.ok)throw new Error("Export failed");if(g.headers.get("content-type")?.includes("text/event-stream")){if(y(),c.value=!0,m.value=!0,!await B(g,D=>{d.value=D}))throw new Error("Failed to process streamed export");d.value=n("table.preparingDownload"),await O(k),c.value=!1,m.value=!1}else await X(g),y()}catch(g){console.error(g);const{$notify:w=console.log}=t?.appContext?.config?.globalProperties||{};w({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"}),c.value=!1,m.value=!1}finally{a.value=!1}}const H=lt(),j=k=>it(k,H.value);function ne(k,g){const w=URL.createObjectURL(k),T=document.createElement("a");T.href=w,T.download=g||`${s.table}.${l.value}`,document.body.appendChild(T),T.click(),T.remove(),URL.revokeObjectURL(w)}async function X(k){const g=await k.blob();ne(g,`${s.table}.${l.value}`)}async function O(k){const g=await fetch(`/api/export?${k.toString()}`,{method:"GET",headers:{Accept:"*/*"}});if(!g.ok)throw new Error("Export failed");await X(g)}function N(k){return k.split(/\r?\n/).reduce((g,w)=>{const[T,...D]=w.split(":");if(!T)return g;const I=D.join(":").trimStart();return T==="event"&&(g.event=I),T==="data"&&(g.data=(g.data?`${g.data}
|
|
22
|
+
`:"")+I),g},{})}async function B(k,g){const w=k.body?.getReader();if(!w)return!1;const T=new TextDecoder;let D="",I=!1;for(;;){const{value:z,done:xe}=await w.read();if(xe)break;D+=T.decode(z,{stream:!0});let re=D.indexOf(`
|
|
23
23
|
|
|
24
|
-
`);for(;
|
|
24
|
+
`);for(;re!==-1;){const de=D.slice(0,re).trim();if(D=D.slice(re+2),de){const tt=N(de).data?.trim();tt&&(I=M(tt,g)||I)}re=D.indexOf(`
|
|
25
25
|
|
|
26
|
-
`)}}return Q}function F(w,b){const S=w.trim();if(!S)return!1;try{const O=JSON.parse(S);return O.message&&b&&b(O.message),O.status&&b&&b(O.status),!!(O.done||O.complete)}catch{const H=S.toLowerCase();return b&&b(S),!!(H==="[done]"||H.startsWith("finish"))}}return(w,b)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:E,class:s.normalizeClass([[s.unref(h).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"])},[b[4]||(b[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"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>',1)),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.export")),1)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[o.value?(s.openBlock(),s.createElementBlock("div",Gl,[s.createElementVNode("div",Jl,[s.createElementVNode("div",Yl,[s.createElementVNode("h3",Xl,s.toDisplayString(s.unref(n)("table.exportTitle")),1),s.createElementVNode("button",{type:"button",onClick:v,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"},[s.createElementVNode("span",Zl,s.toDisplayString(s.unref(n)("table.close")),1),b[5]||(b[5]=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",Ql,[s.createElementVNode("div",Vl,[s.createElementVNode("div",ea,[s.createElementVNode("h2",ta,s.toDisplayString(s.unref(n)("table.chooseColumns")),1),s.createElementVNode("div",na,[s.createElementVNode("button",{onClick:_,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",sa,[d.value==="all"?(s.openBlock(),s.createElementBlock("span",ra)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectAll")),1)]),s.createElementVNode("button",{onClick:C,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",oa,[d.value==="active"?(s.openBlock(),s.createElementBlock("span",ia)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectCurrent")),1)]),s.createElementVNode("button",{onClick:A,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",la,[d.value==="none"?(s.openBlock(),s.createElementBlock("span",aa)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.none")),1)])]),s.createElementVNode("div",ca,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,S=>(s.openBlock(),s.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:S.name},[s.createElementVNode("div",da,[s.createElementVNode("div",pa,[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-"+S.name,value:S.name,"onUpdate:modelValue":b[0]||(b[0]=O=>i.value=O)},null,8,fa),[[s.vModelCheckbox,i.value]]),s.createElementVNode("label",{for:"radio-"+S.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(S.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[s.withDirectives((s.openBlock(),s.createElementBlock("svg",ha,b[6]||(b[6]=[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(S.name)]])],4),s.createElementVNode("span",ma,s.toDisplayString(S[$.value]||S.header||S.ua||S.name),1)],8,ua)])])]))),128))])]),s.createElementVNode("div",ga,[s.createElementVNode("h2",va,s.toDisplayString(s.unref(n)("table.chooseFormat")),1),s.createElementVNode("div",ya,[s.createElementVNode("div",ba,[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":b[1]||(b[1]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",Ea,s.toDisplayString(s.unref(n)("table.format.json")),1)]),s.createElementVNode("div",ka,[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":b[2]||(b[2]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",xa,s.toDisplayString(s.unref(n)("table.format.csv")),1)]),s.createElementVNode("div",wa,[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":b[3]||(b[3]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",Na,s.toDisplayString(s.unref(n)("table.format.xlsx")),1)])])])]),c.value?(s.openBlock(),s.createElementBlock("div",Sa,[s.createElementVNode("div",Ca,[b[7]||(b[7]=s.createElementVNode("svg",{class:"animate-spin h-4 w-4 text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),s.createElementVNode("span",null,s.toDisplayString(s.unref(n)("table.processingExport")),1)]),s.createElementVNode("div",null,s.toDisplayString(p.value||s.unref(n)("table.waitingExport")),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",_a,[s.createElementVNode("div",Ta,[s.createElementVNode("button",{type:"button",onClick:v,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.toDisplayString(s.unref(n)("table.cancel")),1),s.createElementVNode("button",{type:"button",onClick:T,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"},s.toDisplayString(s.unref(n)("table.download")),9,Da)])])])])):s.createCommentVNode("",!0)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[m.value?(s.openBlock(),s.createElementBlock("div",Oa,[s.createElementVNode("div",Ba,[b[8]||(b[8]=s.createElementVNode("svg",{class:"mx-auto mb-4 h-8 w-8 animate-spin text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),s.createElementVNode("p",Ia,s.toDisplayString(s.unref(n)("table.processingExport")),1),s.createElementVNode("p",Aa,s.toDisplayString(p.value||s.unref(n)("table.waitingExport")),1)])])):s.createCommentVNode("",!0)]))],64))}});Nt.install=function(t){t.component("DataTable",Nt),t.component("Column",Ks),t.component("Pagination",Ot),t.component("SelectionInfo",Ws),t.component("CodeTabs",Gs),t.component("ColumnsSettings",xn),t.component("Export",Js)},K.ArrayFormat=_n,K.BadgeFormat=Cn,K.BooleanFormat=Dn,K.CodeTabs=Gs,K.Column=Ks,K.ColumnsSettings=xn,K.DataTable=Nt,K.DateFormat=Nn,K.Export=Js,K.GeomFormat=On,K.NumberFormat=wn,K.Pagination=Ot,K.SelectFormat=Tn,K.SelectionInfo=Ws,K.TextFormat=Sn,K.default=Nt,K.formatComponents=Dt,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
26
|
+
`)}}return I}function M(k,g){const w=k.trim();if(!w)return!1;try{const T=JSON.parse(w);return T.message&&g&&g(T.message),T.status&&g&&g(T.status),!!(T.done||T.complete)}catch{const D=w.toLowerCase();return g&&g(w),!!(D==="[done]"||D.startsWith("finish"))}}return(k,g)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("button",{onClick:E,class:r.normalizeClass([[r.unref(h).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"])},[g[4]||(g[4]=r.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"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>',1)),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.export")),1)],2),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[o.value?(r.openBlock(),r.createElementBlock("div",da,[r.createElementVNode("div",pa,[r.createElementVNode("div",fa,[r.createElementVNode("h3",ua,r.toDisplayString(r.unref(n)("table.exportTitle")),1),r.createElementVNode("button",{type:"button",onClick:y,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"},[r.createElementVNode("span",ha,r.toDisplayString(r.unref(n)("table.close")),1),g[5]||(g[5]=r.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"},[r.createElementVNode("path",{d:"M18 6 6 18"}),r.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),r.createElementVNode("div",ma,[r.createElementVNode("div",ga,[r.createElementVNode("div",va,[r.createElementVNode("h2",ya,r.toDisplayString(r.unref(n)("table.chooseColumns")),1),r.createElementVNode("div",ba,[r.createElementVNode("button",{onClick:_,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"},[r.createElementVNode("span",Ea,[p.value==="all"?(r.openBlock(),r.createElementBlock("span",ka)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.selectAll")),1)]),r.createElementVNode("button",{onClick:S,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"},[r.createElementVNode("span",xa,[p.value==="active"?(r.openBlock(),r.createElementBlock("span",wa)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.selectCurrent")),1)]),r.createElementVNode("button",{onClick:$,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"},[r.createElementVNode("span",Na,[p.value==="none"?(r.openBlock(),r.createElementBlock("span",Sa)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.none")),1)])]),r.createElementVNode("div",Ca,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,w=>(r.openBlock(),r.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:w.name},[r.createElementVNode("div",_a,[r.createElementVNode("div",Ta,[r.withDirectives(r.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-"+w.name,value:w.name,"onUpdate:modelValue":g[0]||(g[0]=T=>i.value=T)},null,8,Da),[[r.vModelCheckbox,i.value]]),r.createElementVNode("label",{for:"radio-"+w.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[r.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:r.normalizeStyle(i.value.includes(w.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[r.withDirectives((r.openBlock(),r.createElementBlock("svg",Ba,g[6]||(g[6]=[r.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),r.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[r.vShow,i.value.includes(w.name)]])],4),r.createElementVNode("span",Ia,r.toDisplayString(j(w)),1)],8,Oa)])])]))),128))])]),r.createElementVNode("div",Aa,[r.createElementVNode("h2",$a,r.toDisplayString(r.unref(n)("table.chooseFormat")),1),r.createElementVNode("div",Ma,[r.createElementVNode("div",Ra,[r.withDirectives(r.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":g[1]||(g[1]=w=>l.value=w)},null,512),[[r.vModelRadio,l.value]]),r.createElementVNode("label",La,r.toDisplayString(r.unref(n)("table.format.json")),1)]),r.createElementVNode("div",Pa,[r.withDirectives(r.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":g[2]||(g[2]=w=>l.value=w)},null,512),[[r.vModelRadio,l.value]]),r.createElementVNode("label",Fa,r.toDisplayString(r.unref(n)("table.format.csv")),1)]),r.createElementVNode("div",ja,[r.withDirectives(r.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":g[3]||(g[3]=w=>l.value=w)},null,512),[[r.vModelRadio,l.value]]),r.createElementVNode("label",za,r.toDisplayString(r.unref(n)("table.format.xlsx")),1)])])])]),c.value?(r.openBlock(),r.createElementBlock("div",Ua,[r.createElementVNode("div",Ha,[g[7]||(g[7]=r.createElementVNode("svg",{class:"animate-spin h-4 w-4 text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[r.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r.createElementVNode("span",null,r.toDisplayString(r.unref(n)("table.processingExport")),1)]),r.createElementVNode("div",null,r.toDisplayString(d.value||r.unref(n)("table.waitingExport")),1)])):r.createCommentVNode("",!0)]),r.createElementVNode("div",qa,[r.createElementVNode("div",Ka,[r.createElementVNode("button",{type:"button",onClick:y,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"},r.toDisplayString(r.unref(n)("table.cancel")),1),r.createElementVNode("button",{type:"button",onClick:C,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"},r.toDisplayString(r.unref(n)("table.download")),9,Wa)])])])])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[m.value?(r.openBlock(),r.createElementBlock("div",Ga,[r.createElementVNode("div",Ja,[g[8]||(g[8]=r.createElementVNode("svg",{class:"mx-auto mb-4 h-8 w-8 animate-spin text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[r.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r.createElementVNode("p",Ya,r.toDisplayString(r.unref(n)("table.processingExport")),1),r.createElementVNode("p",Xa,r.toDisplayString(d.value||r.unref(n)("table.waitingExport")),1)])])):r.createCommentVNode("",!0)]))],64))}});Dt.install=function(t){t.component("DataTable",Dt),t.component("Column",Xr),t.component("Pagination",$t),t.component("SelectionInfo",Zr),t.component("CodeTabs",Qr),t.component("ColumnsSettings",_n),t.component("Export",Vr)},W.ArrayFormat=In,W.BadgeFormat=Bn,W.BooleanFormat=$n,W.CodeTabs=Qr,W.Column=Xr,W.ColumnsSettings=_n,W.DataTable=Dt,W.DateFormat=Dn,W.Export=Vr,W.GeomFormat=Mn,W.NumberFormat=Tn,W.Pagination=$t,W.SelectFormat=An,W.SelectionInfo=Zr,W.TextFormat=On,W.default=Dt,W.formatComponents=At,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|