@king-one/antdv 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/cdn/index.cdn.js +16 -0
- package/cdn/index.cdn.js.map +1 -0
- package/cdn/index.cdn.mjs +16 -0
- package/cdn/index.cdn.mjs.map +1 -0
- package/cdn/index.css +1 -0
- package/es/components/base/style/index.d.ts +1 -0
- package/es/components/base/style/index.mjs +2 -0
- package/es/components/base/style/index.mjs.map +1 -0
- package/es/components/form/component/form.d.ts +10 -0
- package/es/components/form/component/form.mjs +11 -0
- package/es/components/form/component/form.mjs.map +1 -0
- package/es/components/form/component/form.vue.d.ts +16 -0
- package/es/components/form/component/form.vue.mjs +6 -0
- package/es/components/form/component/form.vue.mjs.map +1 -0
- package/es/components/form/component/form.vue2.mjs +26 -0
- package/es/components/form/component/form.vue2.mjs.map +1 -0
- package/es/components/form/index.d.ts +17 -0
- package/es/components/form/index.mjs +9 -0
- package/es/components/form/index.mjs.map +1 -0
- package/es/components/form-item/component/form-item.vue.d.ts +11 -0
- package/es/components/form-item/component/form-item.vue.mjs +6 -0
- package/es/components/form-item/component/form-item.vue.mjs.map +1 -0
- package/es/components/form-item/component/form-item.vue2.mjs +113 -0
- package/es/components/form-item/component/form-item.vue2.mjs.map +1 -0
- package/es/components/form-item/index.d.ts +0 -0
- package/es/components/form-item/index.mjs +2 -0
- package/es/components/form-item/index.mjs.map +1 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +5 -0
- package/es/components/index.mjs.map +1 -0
- package/es/components/scroll-bar/index.d.ts +26 -0
- package/es/components/scroll-bar/index.mjs +9 -0
- package/es/components/scroll-bar/index.mjs.map +1 -0
- package/es/components/scroll-bar/src/scroll-bar.d.ts +24 -0
- package/es/components/scroll-bar/src/scroll-bar.mjs +248 -0
- package/es/components/scroll-bar/src/scroll-bar.mjs.map +1 -0
- package/es/components/scroll-bar/src/types.d.ts +6 -0
- package/es/components/scroll-bar/src/types.mjs +8 -0
- package/es/components/scroll-bar/src/types.mjs.map +1 -0
- package/es/components/scroll-bar/style/index.d.ts +2 -0
- package/es/components/scroll-bar/style/index.mjs +3 -0
- package/es/components/scroll-bar/style/index.mjs.map +1 -0
- package/es/components/utils/install.d.ts +7 -0
- package/es/components/utils/install.mjs +19 -0
- package/es/components/utils/install.mjs.map +1 -0
- package/es/components/virtual-list/index.d.ts +276 -0
- package/es/components/virtual-list/index.mjs +9 -0
- package/es/components/virtual-list/index.mjs.map +1 -0
- package/es/components/virtual-list/src/types.d.ts +28 -0
- package/es/components/virtual-list/src/types.mjs +29 -0
- package/es/components/virtual-list/src/types.mjs.map +1 -0
- package/es/components/virtual-list/src/virtual-list.vue.d.ts +275 -0
- package/es/components/virtual-list/src/virtual-list.vue.mjs +6 -0
- package/es/components/virtual-list/src/virtual-list.vue.mjs.map +1 -0
- package/es/components/virtual-list/src/virtual-list.vue2.mjs +79 -0
- package/es/components/virtual-list/src/virtual-list.vue2.mjs.map +1 -0
- package/es/hooks/use-namespace/index.d.ts +23 -0
- package/es/hooks/use-namespace/index.mjs +78 -0
- package/es/hooks/use-namespace/index.mjs.map +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.mjs +11 -0
- package/es/index.mjs.map +1 -0
- package/es/installer.d.ts +6 -0
- package/es/installer.mjs +14 -0
- package/es/installer.mjs.map +1 -0
- package/lib/components/base/style/index.d.ts +1 -0
- package/lib/components/base/style/index.js +5 -0
- package/lib/components/base/style/index.js.map +1 -0
- package/lib/components/form/component/form.d.ts +10 -0
- package/lib/components/form/component/form.js +13 -0
- package/lib/components/form/component/form.js.map +1 -0
- package/lib/components/form/component/form.vue.d.ts +16 -0
- package/lib/components/form/component/form.vue.js +10 -0
- package/lib/components/form/component/form.vue.js.map +1 -0
- package/lib/components/form/component/form.vue2.js +30 -0
- package/lib/components/form/component/form.vue2.js.map +1 -0
- package/lib/components/form/index.d.ts +17 -0
- package/lib/components/form/index.js +15 -0
- package/lib/components/form/index.js.map +1 -0
- package/lib/components/form-item/component/form-item.vue.d.ts +11 -0
- package/lib/components/form-item/component/form-item.vue.js +10 -0
- package/lib/components/form-item/component/form-item.vue.js.map +1 -0
- package/lib/components/form-item/component/form-item.vue2.js +117 -0
- package/lib/components/form-item/component/form-item.vue2.js.map +1 -0
- package/lib/components/form-item/index.d.ts +0 -0
- package/lib/components/form-item/index.js +3 -0
- package/lib/components/form-item/index.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +14 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/scroll-bar/index.d.ts +26 -0
- package/lib/components/scroll-bar/index.js +15 -0
- package/lib/components/scroll-bar/index.js.map +1 -0
- package/lib/components/scroll-bar/src/scroll-bar.d.ts +24 -0
- package/lib/components/scroll-bar/src/scroll-bar.js +252 -0
- package/lib/components/scroll-bar/src/scroll-bar.js.map +1 -0
- package/lib/components/scroll-bar/src/types.d.ts +6 -0
- package/lib/components/scroll-bar/src/types.js +10 -0
- package/lib/components/scroll-bar/src/types.js.map +1 -0
- package/lib/components/scroll-bar/style/index.d.ts +2 -0
- package/lib/components/scroll-bar/style/index.js +6 -0
- package/lib/components/scroll-bar/style/index.js.map +1 -0
- package/lib/components/utils/install.d.ts +7 -0
- package/lib/components/utils/install.js +22 -0
- package/lib/components/utils/install.js.map +1 -0
- package/lib/components/virtual-list/index.d.ts +276 -0
- package/lib/components/virtual-list/index.js +15 -0
- package/lib/components/virtual-list/index.js.map +1 -0
- package/lib/components/virtual-list/src/types.d.ts +28 -0
- package/lib/components/virtual-list/src/types.js +31 -0
- package/lib/components/virtual-list/src/types.js.map +1 -0
- package/lib/components/virtual-list/src/virtual-list.vue.d.ts +275 -0
- package/lib/components/virtual-list/src/virtual-list.vue.js +10 -0
- package/lib/components/virtual-list/src/virtual-list.vue.js.map +1 -0
- package/lib/components/virtual-list/src/virtual-list.vue2.js +83 -0
- package/lib/components/virtual-list/src/virtual-list.vue2.js.map +1 -0
- package/lib/hooks/use-namespace/index.d.ts +23 -0
- package/lib/hooks/use-namespace/index.js +83 -0
- package/lib/hooks/use-namespace/index.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -0
- package/lib/installer.d.ts +6 -0
- package/lib/installer.js +19 -0
- package/lib/installer.js.map +1 -0
- package/package.json +29 -0
- package/theme-chalk/base.css +1 -0
- package/theme-chalk/buttons.css +1 -0
- package/theme-chalk/index.css +1 -0
- package/theme-chalk/reset.css +0 -0
- package/theme-chalk/scroll-bar.css +1 -0
- package/theme-chalk/var.css +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{createElementVNode as Nn,defineComponent as Y,openBlock as kt,createElementBlock as Dn,renderSlot as Le,createTextVNode as Pn,Fragment as Ct,Comment as _n,provide as It,getCurrentInstance as Re,inject as xe,ref as T,onBeforeUnmount as K,withDirectives as Bt,readonly as U,watch as ne,computed as W,onMounted as oe,onBeforeMount as Ne,reactive as Vn,toRef as de,h as _,Teleport as jn,nextTick as At,onActivated as Xn,onDeactivated as Yn,mergeProps as Ot,unref as lt,isVNode as qn,createVNode as se,createBlock as Un,withCtx as Ft}from"vue";import"@king-one/antdv/theme-chalk/src/base.scss";import"@king-one/antdv/theme-chalk/src/scroll-bar.scss";const Zn="K";function ut(t){return t.install=e=>{const n=t;e.component(Zn+n.name,n)},t}function to(t,e){return{install:n=>{n.directive(e,t)},directive:t}}const Ht={model:{type:Object},rules:{type:Object}},Kn={class:"king-form"},Gn=Nn("div",null,"\u4F1F\u5927\u7684\u597D\u6B4C",-1);var Jn=Y({__name:"form",props:Ht,setup(t){return(e,n)=>(kt(),Dn("form",Kn,[Gn,Le(e.$slots,"default")]))}});const Wt=ut(Jn);let De=[];const Lt=new WeakMap;function Qn(){De.forEach(t=>t(...Lt.get(t))),De=[]}function Rt(t,...e){Lt.set(t,e),!De.includes(t)&&De.push(t)===1&&requestAnimationFrame(Qn)}let at=[],ft=[];function er(){at.forEach((t,e)=>t(...ft[e])),at=[],ft=[]}function no(t,...e){at.push(t)===1&&requestAnimationFrame(er),ft.push(e)}function tr(t){return t.nodeType===9?null:t.parentNode}function nr(t){if(t===null)return null;const e=tr(t);if(e===null)return null;if(e.nodeType===9)return document.documentElement;if(e.nodeType===1){const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(n+i+r))return e}return nr(e)}function ro(t){return typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t}function io(t,e){let{target:n}=t;for(;n;){if(n.dataset&&n.dataset[e]!==void 0)return!0;n=n.parentElement}return!1}function rr(t){return t.composedPath()[0]||null}function ir(t){if(typeof t=="number")return{"":t.toString()};const e={};return t.split(/ +/).forEach(n=>{if(n==="")return;const[r,i]=n.split(":");i===void 0?e[""]=r:e[r]=i}),e}function oo(t,e){var n;if(t==null)return;const r=ir(t);if(e===void 0)return r[""];if(typeof e=="string")return(n=r[e])!==null&&n!==void 0?n:r[""];if(Array.isArray(e)){for(let i=e.length-1;i>=0;--i){const o=e[i];if(o in r)return r[o]}return r[""]}else{let i,o=-1;return Object.keys(r).forEach(s=>{const f=Number(s);!Number.isNaN(f)&&e>=f&&f>=o&&(o=f,i=r[s])}),i}}function Nt(t){return typeof t=="string"?t.endsWith("px")?Number(t.slice(0,t.length-2)):Number(t):t}function Ce(t){if(t!=null)return typeof t=="number"?`${t}px`:t.endsWith("px")?t:`${t}px`}function so(t,e){const n=t.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+t+" is not a valid value.")}return e===void 0?r:r[e]}function lo(t,e){const[n,r]=t.split(" ");return e?e==="row"?n:r:{row:n,col:r||n}}var Dt={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function uo(t,e,n){e/=100,n/=100;const r=e*Math.min(n,1-n)+n;return[t,r?(2-2*n/r)*100:0,r*100]}function ao(t,e,n){e/=100,n/=100;const r=n-n*e/2,i=Math.min(r,1-r);return[t,i?(n-r)/i*100:0,r*100]}function fo(t,e,n){e/=100,n/=100;let r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function co(t,e,n){t/=255,e/=255,n/=255;let r=Math.max(t,e,n),i=r-Math.min(t,e,n),o=i&&(r==t?(e-n)/i:r==e?2+(n-t)/i:4+(t-e)/i);return[60*(o<0?o+6:o),r&&i/r*100,r*100]}function ho(t,e,n){t/=255,e/=255,n/=255;let r=Math.max(t,e,n),i=r-Math.min(t,e,n),o=1-Math.abs(r+r-i-1),s=i&&(r==t?(e-n)/i:r==e?2+(n-t)/i:4+(t-e)/i);return[60*(s<0?s+6:s),o?i/o*100:0,(r+r-i)*50]}function po(t,e,n){e/=100,n/=100;let r=e*Math.min(n,1-n),i=(o,s=(o+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const G="^\\s*",J="\\s*$",le="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",q="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",he="([0-9A-Fa-f])",pe="([0-9A-Fa-f]{2})",or=new RegExp(`${G}hsl\\s*\\(${q},${le},${le}\\)${J}`),sr=new RegExp(`${G}hsv\\s*\\(${q},${le},${le}\\)${J}`),lr=new RegExp(`${G}hsla\\s*\\(${q},${le},${le},${q}\\)${J}`),ur=new RegExp(`${G}hsva\\s*\\(${q},${le},${le},${q}\\)${J}`),ar=new RegExp(`${G}rgb\\s*\\(${q},${q},${q}\\)${J}`),fr=new RegExp(`${G}rgba\\s*\\(${q},${q},${q},${q}\\)${J}`),ct=new RegExp(`${G}#${he}${he}${he}${J}`),dt=new RegExp(`${G}#${pe}${pe}${pe}${J}`),ht=new RegExp(`${G}#${he}${he}${he}${he}${J}`),pt=new RegExp(`${G}#${pe}${pe}${pe}${pe}${J}`);function X(t){return parseInt(t,16)}function vo(t){try{let e;if(e=lr.exec(t))return[Q(e[1]),N(e[5]),N(e[9]),re(e[13])];if(e=or.exec(t))return[Q(e[1]),N(e[5]),N(e[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${t}.`)}catch(e){throw e}}function mo(t){try{let e;if(e=ur.exec(t))return[Q(e[1]),N(e[5]),N(e[9]),re(e[13])];if(e=sr.exec(t))return[Q(e[1]),N(e[5]),N(e[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${t}.`)}catch(e){throw e}}function ve(t){try{let e;if(e=dt.exec(t))return[X(e[1]),X(e[2]),X(e[3]),1];if(e=ar.exec(t))return[L(e[1]),L(e[5]),L(e[9]),1];if(e=fr.exec(t))return[L(e[1]),L(e[5]),L(e[9]),re(e[13])];if(e=ct.exec(t))return[X(e[1]+e[1]),X(e[2]+e[2]),X(e[3]+e[3]),1];if(e=pt.exec(t))return[X(e[1]),X(e[2]),X(e[3]),re(X(e[4])/255)];if(e=ht.exec(t))return[X(e[1]+e[1]),X(e[2]+e[2]),X(e[3]+e[3]),re(X(e[4]+e[4])/255)];if(t in Dt)return ve(Dt[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function cr(t){return t>1?1:t<0?0:t}function dr(t,e,n){return`rgb(${L(t)}, ${L(e)}, ${L(n)})`}function vt(t,e,n,r){return`rgba(${L(t)}, ${L(e)}, ${L(n)}, ${cr(r)})`}function mt(t,e,n,r,i){return L((t*e*(1-r)+n*r)/i)}function go(t,e){Array.isArray(t)||(t=ve(t)),Array.isArray(e)||(e=ve(e));const n=t[3],r=e[3],i=re(n+r-n*r);return vt(mt(t[0],n,e[0],r,i),mt(t[1],n,e[1],r,i),mt(t[2],n,e[2],r,i),i)}function bo(t,e){const[n,r,i,o=1]=Array.isArray(t)?t:ve(t);return e.alpha?vt(n,r,i,e.alpha):vt(n,r,i,o)}function wo(t,e){const[n,r,i,o=1]=Array.isArray(t)?t:ve(t),{lightness:s=1,alpha:f=1}=e;return pr([n*s,r*s,i*s,o*f])}function hr(t){var e;return(e=(Array.isArray(t)?t:ve(t))[3])!==null&&e!==void 0?e:1}function xo(t){return`${hr(t)}`}function re(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function Q(t){const e=Math.round(Number(t));return e>=360||e<0?0:e}function L(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}function N(t){const e=Math.round(Number(t));return e>100?100:e<0?0:e}function yo(t){const[e,n,r]=Array.isArray(t)?t:ve(t);return dr(e,n,r)}function pr(t){const[e,n,r]=t;return 3 in t?`rgba(${L(e)}, ${L(n)}, ${L(r)}, ${re(t[3])})`:`rgba(${L(e)}, ${L(n)}, ${L(r)}, 1)`}function $o(t){return`hsv(${Q(t[0])}, ${N(t[1])}%, ${N(t[2])}%)`}function Eo(t){const[e,n,r]=t;return 3 in t?`hsva(${Q(e)}, ${N(n)}%, ${N(r)}%, ${re(t[3])})`:`hsva(${Q(e)}, ${N(n)}%, ${N(r)}%, 1)`}function So(t){return`hsl(${Q(t[0])}, ${N(t[1])}%, ${N(t[2])}%)`}function To(t){const[e,n,r]=t;return 3 in t?`hsla(${Q(e)}, ${N(n)}%, ${N(r)}%, ${re(t[3])})`:`hsla(${Q(e)}, ${N(n)}%, ${N(r)}%, 1)`}function Mo(t){if(typeof t=="string"){let r;if(r=dt.exec(t))return`${r[0]}FF`;if(r=pt.exec(t))return r[0];if(r=ct.exec(t))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=ht.exec(t))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}const e=`#${t.slice(0,3).map(r=>L(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=t.length===3?"FF":L(t[3]*255).toString(16).padStart(2,"0").toUpperCase();return e+n}function zo(t){if(typeof t=="string"){let e;if(e=dt.exec(t))return e[0];if(e=pt.exec(t))return e[0].slice(0,7);if(e=ct.exec(t)||ht.exec(t))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}return`#${t.slice(0,3).map(e=>L(e).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function vr(t=8){return Math.random().toString(16).slice(2,2+t)}function ko(t,e){const n=[];for(let r=0;r<t;++r)n.push(e);return n}function Co(t,e){const n=[];if(!e){for(let r=0;r<t;++r)n.push(r);return n}for(let r=0;r<t;++r)n.push(e(r));return n}async function Io(t){return new Promise(e=>{setTimeout(e,t)})}function Pe(t){return t.composedPath()[0]}const mr={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function gr(t,e,n){if(t==="mousemoveoutside"){const r=i=>{e.contains(Pe(i))||n(i)};return{mousemove:r,touchstart:r}}else if(t==="clickoutside"){let r=!1;const i=s=>{r=!e.contains(Pe(s))},o=s=>{r&&(e.contains(Pe(s))||n(s))};return{mousedown:i,mouseup:o,touchstart:i,touchend:o}}return console.error(`[evtd/create-trap-handler]: name \`${t}\` is invalid. This could be a bug of evtd.`),{}}function Pt(t,e,n){const r=mr[t];let i=r.get(e);i===void 0&&r.set(e,i=new WeakMap);let o=i.get(n);return o===void 0&&i.set(n,o=gr(t,e,n)),o}function br(t,e,n,r){if(t==="mousemoveoutside"||t==="clickoutside"){const i=Pt(t,e,n);return Object.keys(i).forEach(o=>{D(o,document,i[o],r)}),!0}return!1}function wr(t,e,n,r){if(t==="mousemoveoutside"||t==="clickoutside"){const i=Pt(t,e,n);return Object.keys(i).forEach(o=>{R(o,document,i[o],r)}),!0}return!1}function xr(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const t=new WeakMap,e=new WeakMap;function n(){t.set(this,!0)}function r(){t.set(this,!0),e.set(this,!0)}function i(h,p,y){const z=h[p];return h[p]=function(){return y.apply(h,arguments),z.apply(h,arguments)},h}function o(h,p){h[p]=Event.prototype[p]}const s=new WeakMap,f=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var h;return(h=s.get(this))!==null&&h!==void 0?h:null}function u(h,p){f!==void 0&&Object.defineProperty(h,"currentTarget",{configurable:!0,enumerable:!0,get:p!=null?p:f.get})}const v={bubble:{},capture:{}},w={};function m(){const h=function(p){const{type:y,eventPhase:z,bubbles:B}=p,H=Pe(p);if(z===2)return;const d=z===1?"capture":"bubble";let a=H;const b=[];for(;a===null&&(a=window),b.push(a),a!==window;)a=a.parentNode||null;const E=v.capture[y],C=v.bubble[y];if(i(p,"stopPropagation",n),i(p,"stopImmediatePropagation",r),u(p,l),d==="capture"){if(E===void 0)return;for(let I=b.length-1;I>=0&&!t.has(p);--I){const A=b[I],O=E.get(A);if(O!==void 0){s.set(p,A);for(const P of O){if(e.has(p))break;P(p)}}if(I===0&&!B&&C!==void 0){const P=C.get(A);if(P!==void 0)for(const ze of P){if(e.has(p))break;ze(p)}}}}else if(d==="bubble"){if(C===void 0)return;for(let I=0;I<b.length&&!t.has(p);++I){const A=b[I],O=C.get(A);if(O!==void 0){s.set(p,A);for(const P of O){if(e.has(p))break;P(p)}}}}o(p,"stopPropagation"),o(p,"stopImmediatePropagation"),u(p)};return h.displayName="evtdUnifiedHandler",h}function x(){const h=function(p){const{type:y,eventPhase:z}=p;if(z!==2)return;const B=w[y];B!==void 0&&B.forEach(H=>H(p))};return h.displayName="evtdUnifiedWindowEventHandler",h}const $=m(),S=x();function g(h,p){const y=v[h];return y[p]===void 0&&(y[p]=new Map,window.addEventListener(p,$,h==="capture")),y[p]}function c(h){return w[h]===void 0&&(w[h]=new Set,window.addEventListener(h,S)),w[h]}function M(h,p){let y=h.get(p);return y===void 0&&h.set(p,y=new Set),y}function k(h,p,y,z){const B=v[p][y];if(B!==void 0){const H=B.get(h);if(H!==void 0&&H.has(z))return!0}return!1}function F(h,p){const y=w[h];return!!(y!==void 0&&y.has(p))}function j(h,p,y,z){let B;if(typeof z=="object"&&z.once===!0?B=E=>{V(h,p,B,z),y(E)}:B=y,br(h,p,B,z))return;const d=z===!0||typeof z=="object"&&z.capture===!0?"capture":"bubble",a=g(d,h),b=M(a,p);if(b.has(B)||b.add(B),p===window){const E=c(h);E.has(B)||E.add(B)}}function V(h,p,y,z){if(wr(h,p,y,z))return;const H=z===!0||typeof z=="object"&&z.capture===!0,d=H?"capture":"bubble",a=g(d,h),b=M(a,p);if(p===window&&!k(p,H?"bubble":"capture",h,y)&&F(h,y)){const C=w[h];C.delete(y),C.size===0&&(window.removeEventListener(h,S),w[h]=void 0)}b.has(y)&&b.delete(y),b.size===0&&a.delete(p),a.size===0&&(window.removeEventListener(h,$,d==="capture"),v[d][h]=void 0)}return{on:j,off:V}}const{on:D,off:R}=xr();function gt(t,e,n="default"){const r=e[n];if(r===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);return r()}function bt(t,e=!0,n=[]){return t.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Pn(String(r)));return}if(Array.isArray(r)){bt(r,e,n);return}if(r.type===Ct){if(r.children===null)return;Array.isArray(r.children)&&bt(r.children,e,n)}else r.type!==_n&&n.push(r)}}),n}function _t(t,e,n="default"){const r=e[n];if(r===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);const i=bt(r());if(i.length===1)return i[0];throw new Error(`[vueuc/${t}]: slot[${n}] should have exactly one child.`)}let ue=null;function Vt(){if(ue===null&&(ue=document.getElementById("v-binder-view-measurer"),ue===null)){ue=document.createElement("div"),ue.id="v-binder-view-measurer";const{style:t}=ue;t.position="fixed",t.left="0",t.right="0",t.top="0",t.bottom="0",t.pointerEvents="none",t.visibility="hidden",document.body.appendChild(ue)}return ue.getBoundingClientRect()}function yr(t,e){const n=Vt();return{top:e,left:t,height:0,width:0,right:n.width-t,bottom:n.height-e}}function wt(t){const e=t.getBoundingClientRect(),n=Vt();return{left:e.left-n.left,top:e.top-n.top,bottom:n.height+n.top-e.bottom,right:n.width+n.left-e.right,width:e.width,height:e.height}}function $r(t){return t.nodeType===9?null:t.parentNode}function jt(t){if(t===null)return null;const e=$r(t);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(n+i+r))return e}return jt(e)}const Bo=Y({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){var e;It("VBinder",(e=Re())===null||e===void 0?void 0:e.proxy);const n=xe("VBinder",null),r=T(null),i=c=>{r.value=c,n&&t.syncTargetWithParent&&n.setTargetRef(c)};let o=[];const s=()=>{let c=r.value;for(;c=jt(c),c!==null;)o.push(c);for(const M of o)D("scroll",M,w,!0)},f=()=>{for(const c of o)R("scroll",c,w,!0);o=[]},l=new Set,u=c=>{l.size===0&&s(),l.has(c)||l.add(c)},v=c=>{l.has(c)&&l.delete(c),l.size===0&&f()},w=()=>{Rt(m)},m=()=>{l.forEach(c=>c())},x=new Set,$=c=>{x.size===0&&D("resize",window,g),x.has(c)||x.add(c)},S=c=>{x.has(c)&&x.delete(c),x.size===0&&R("resize",window,g)},g=()=>{x.forEach(c=>c())};return K(()=>{R("resize",window,g),f()}),{targetRef:r,setTargetRef:i,addScrollListener:u,removeScrollListener:v,addResizeListener:$,removeResizeListener:S}},render(){return gt("binder",this.$slots)}});var Ao=Y({name:"Target",setup(){const{setTargetRef:t,syncTarget:e}=xe("VBinder");return{syncTarget:e,setTargetDirective:{mounted:t,updated:t}}},render(){const{syncTarget:t,setTargetDirective:e}=this;return t?Bt(_t("follower",this.$slots),[[e]]):_t("follower",this.$slots)}});const ye="@@mmoContext",Oo={mounted(t,{value:e}){t[ye]={handler:void 0},typeof e=="function"&&(t[ye].handler=e,D("mousemoveoutside",t,e))},updated(t,{value:e}){const n=t[ye];typeof e=="function"?n.handler?n.handler!==e&&(R("mousemoveoutside",t,n.handler),n.handler=e,D("mousemoveoutside",t,e)):(t[ye].handler=e,D("mousemoveoutside",t,e)):n.handler&&(R("mousemoveoutside",t,n.handler),n.handler=void 0)},unmounted(t){const{handler:e}=t[ye];e&&R("mousemoveoutside",t,e),t[ye].handler=void 0}},$e="@@coContext",Fo={mounted(t,{value:e,modifiers:n}){t[$e]={handler:void 0},typeof e=="function"&&(t[$e].handler=e,D("clickoutside",t,e,{capture:n.capture}))},updated(t,{value:e,modifiers:n}){const r=t[$e];typeof e=="function"?r.handler?r.handler!==e&&(R("clickoutside",t,r.handler,{capture:n.capture}),r.handler=e,D("clickoutside",t,e,{capture:n.capture})):(t[$e].handler=e,D("clickoutside",t,e,{capture:n.capture})):r.handler&&(R("clickoutside",t,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(t,{modifiers:e}){const{handler:n}=t[$e];n&&R("clickoutside",t,n,{capture:e.capture}),t[$e].handler=void 0}},Xt=new Set;function Ho(t,e){const n=`[vdirs/${t}]: ${e}`;Xt.has(n)||Xt.add(n)}function Er(t,e){console.error(`[vdirs/${t}]: ${e}`)}class Sr{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,n){const{elementZIndex:r}=this;if(n!==void 0){e.style.zIndex=`${n}`,r.delete(e);return}const{nextZIndex:i}=this;r.has(e)&&r.get(e)+1===this.nextZIndex||(e.style.zIndex=`${i}`,r.set(e,i),this.nextZIndex=i+1,this.squashState())}unregister(e,n){const{elementZIndex:r}=this;r.has(e)?r.delete(e):n===void 0&&Er("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,e.forEach(n=>{const r=n[0],i=this.nextZIndex++;`${i}`!==r.style.zIndex&&(r.style.zIndex=`${i}`)})}}var xt=new Sr;const Ee="@@ziContext",Tr={mounted(t,e){const{value:n={}}=e,{zIndex:r,enabled:i}=n;t[Ee]={enabled:!!i,initialized:!1},i&&(xt.ensureZIndex(t,r),t[Ee].initialized=!0)},updated(t,e){const{value:n={}}=e,{zIndex:r,enabled:i}=n,o=t[Ee].enabled;i&&!o&&(xt.ensureZIndex(t,r),t[Ee].initialized=!0),t[Ee].enabled=!!i},unmounted(t,e){if(!t[Ee].initialized)return;const{value:n={}}=e,{zIndex:r}=n;xt.unregister(t,r)}};function Mr(t){const e=T(!!t.value);if(e.value)return U(e);const n=ne(t,r=>{r&&(e.value=!0,n())});return U(e)}function Se(t){const e=W(t),n=T(e.value);return ne(e,r=>{n.value=r}),typeof t=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){t.set(r)}}}function _e(){return Re()!==null}const Ie=typeof window!="undefined";let Te,Be;const zr=()=>{var t,e;Te=Ie?(e=(t=document)===null||t===void 0?void 0:t.fonts)===null||e===void 0?void 0:e.ready:void 0,Be=!1,Te!==void 0?Te.then(()=>{Be=!0}):Be=!0};zr();function kr(t){if(Be)return;let e=!1;oe(()=>{Be||Te==null||Te.then(()=>{e||t()})}),K(()=>{e=!0})}const Ae=T(null);function Yt(t){if(t.clientX>0||t.clientY>0)Ae.value={x:t.clientX,y:t.clientY};else{const{target:e}=t;if(e instanceof Element){const{left:n,top:r,width:i,height:o}=e.getBoundingClientRect();n>0||r>0?Ae.value={x:n+i/2,y:r+o/2}:Ae.value={x:0,y:0}}else Ae.value=null}}let Ve=0,qt=!0;function Wo(){if(!Ie)return U(T(null));Ve===0&&D("click",document,Yt,!0);const t=()=>{Ve+=1};return qt&&(qt=_e())?(Ne(t),K(()=>{Ve-=1,Ve===0&&R("click",document,Yt,!0)})):t(),U(Ae)}const Cr=T(void 0);let je=0;function Ut(){Cr.value=Date.now()}let Zt=!0;function Lo(t){if(!Ie)return U(T(!1));const e=T(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function i(){r(),e.value=!0,n=window.setTimeout(()=>{e.value=!1},t)}je===0&&D("click",window,Ut,!0);const o=()=>{je+=1,D("click",window,i,!0)};return Zt&&(Zt=_e())?(Ne(o),K(()=>{je-=1,je===0&&R("click",window,Ut,!0),R("click",window,i,!0),r()})):o(),U(e)}let Xe=0;const Ir=typeof window!="undefined"&&window.matchMedia!==void 0,ae=T(null);let Z,me;function Ye(t){t.matches&&(ae.value="dark")}function qe(t){t.matches&&(ae.value="light")}function Br(){Z=window.matchMedia("(prefers-color-scheme: dark)"),me=window.matchMedia("(prefers-color-scheme: light)"),Z.matches?ae.value="dark":me.matches?ae.value="light":ae.value=null,Z.addEventListener?(Z.addEventListener("change",Ye),me.addEventListener("change",qe)):Z.addListener&&(Z.addListener(Ye),me.addListener(qe))}function Ar(){"removeEventListener"in Z?(Z.removeEventListener("change",Ye),me.removeEventListener("change",qe)):"removeListener"in Z&&(Z.removeListener(Ye),me.removeListener(qe)),Z=void 0,me=void 0}let Kt=!0;function Ro(){return process.env.NODE_ENV!=="test"&&!Ir?U(ae):process.env.NODE_ENV==="test"&&window.matchMedia===void 0?U(ae):(Xe===0&&Br(),Kt&&(Kt=_e())&&(Ne(()=>{Xe+=1}),K(()=>{Xe-=1,Xe===0&&Ar()})),U(ae))}function No(t,e){return ne(t,n=>{n!==void 0&&(e.value=n)}),W(()=>t.value===void 0?e.value:t.value)}function Or(){const t=T(!1);return oe(()=>{t.value=!0}),U(t)}function Do(t,e){return W(()=>{for(const n of e)if(t[n]!==void 0)return t[n];return t[e[e.length-1]]})}const Gt=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Po(){return Gt}const Fr={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function Hr(t){return`(min-width: ${t}px)`}const Oe={};function Jt(t=Fr){if(!Ie)return W(()=>[]);if(typeof window.matchMedia!="function")return W(()=>[]);const e=T({}),n=Object.keys(t),r=(i,o)=>{i.matches?e.value[o]=!0:e.value[o]=!1};return n.forEach(i=>{const o=t[i];let s,f;Oe[o]===void 0?(s=window.matchMedia(Hr(o)),s.addEventListener?s.addEventListener("change",l=>{f.forEach(u=>{u(l,i)})}):s.addListener&&s.addListener(l=>{f.forEach(u=>{u(l,i)})}),f=new Set,Oe[o]={mql:s,cbs:f}):(s=Oe[o].mql,f=Oe[o].cbs),f.add(r),s.matches&&f.forEach(l=>{l(s,i)})}),K(()=>{n.forEach(i=>{const{cbs:o}=Oe[t[i]];o.has(r)&&o.delete(r)})}),W(()=>{const{value:i}=e;return n.filter(o=>i[o])})}function _o(t){if(!Ie)return W(()=>{});const e=t!==void 0?Jt(t):Jt();return W(()=>{const{value:n}=e;if(n.length!==0)return n[n.length-1]})}function Vo(t={},e){const n=Vn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:i}=t,o=l=>{switch(l.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(u=>{if(u!==l.key)return;const v=r[u];if(typeof v=="function")v(l);else{const{stop:w=!1,prevent:m=!1}=v;w&&l.stopPropagation(),m&&l.preventDefault(),v.handler(l)}})},s=l=>{switch(l.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}i!==void 0&&Object.keys(i).forEach(u=>{if(u!==l.key)return;const v=i[u];if(typeof v=="function")v(l);else{const{stop:w=!1,prevent:m=!1}=v;w&&l.stopPropagation(),m&&l.preventDefault(),v.handler(l)}})},f=()=>{(e===void 0||e.value)&&(D("keydown",document,o),D("keyup",document,s)),e!==void 0&&ne(e,l=>{l?(D("keydown",document,o),D("keyup",document,s)):(R("keydown",document,o),R("keyup",document,s))})};return _e()?(Ne(f),K(()=>{(e===void 0||e.value)&&(R("keydown",document,o),R("keyup",document,s))})):f(),U(n)}const Wr=typeof window=="undefined"?!1:Gt||window.safari!==void 0;function jo(){return Wr}const Qt="@css-render/vue3-ssr";function Lr(t,e){return`<style cssr-id="${t}">
|
|
2
|
+
${e}
|
|
3
|
+
</style>`}function Rr(t,e,n){const{styles:r,ids:i}=n;i.has(t)||r!==null&&(i.add(t),r.push(Lr(t,e)))}const Nr=typeof document!="undefined";function Ue(){if(Nr)return;const t=xe(Qt,null);if(t!==null)return{adapter:(e,n)=>Rr(e,n,t),context:t}}function Xo(t){const e=[],n={styles:e,ids:new Set};return t.provide(Qt,n),{collect(){const r=e.join(`
|
|
4
|
+
`);return e.length=0,r}}}function en(t,e){console.error(`[vueuc/${t}]: ${e}`)}function Dr(t){let e=0;for(let n=0;n<t.length;++n)t[n]==="&"&&++e;return e}const tn=/\s*,(?![^(]*\))\s*/g,Pr=/\s+/g;function _r(t,e){const n=[];return e.split(tn).forEach(r=>{let i=Dr(r);if(i){if(i===1){t.forEach(s=>{n.push(r.replace("&",s))});return}}else{t.forEach(s=>{n.push((s&&s+" ")+r)});return}let o=[r];for(;i--;){const s=[];o.forEach(f=>{t.forEach(l=>{s.push(f.replace("&",l))})}),o=s}o.forEach(s=>n.push(s))}),n}function Vr(t,e){const n=[];return e.split(tn).forEach(r=>{t.forEach(i=>{n.push((i&&i+" ")+r)})}),n}function jr(t){let e=[""];return t.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?e=_r(e,n):e=Vr(e,n))}),e.join(", ").replace(Pr," ")}function nn(t){if(!t)return;const e=t.parentElement;e&&e.removeChild(t)}function Ze(t,e){return(e!=null?e:document.head).querySelector(`style[cssr-id="${t}"]`)}function Xr(t){const e=document.createElement("style");return e.setAttribute("cssr-id",t),e}function Ke(t){return t?/^\s*@(s|m)/.test(t):!1}const Yr=/[A-Z]/g;function rn(t){return t.replace(Yr,e=>"-"+e.toLowerCase())}function qr(t,e=" "){return typeof t=="object"&&t!==null?` {
|
|
5
|
+
`+Object.entries(t).map(n=>e+` ${rn(n[0])}: ${n[1]};`).join(`
|
|
6
|
+
`)+`
|
|
7
|
+
`+e+"}":`: ${t};`}function Ur(t,e,n){return typeof t=="function"?t({context:e.context,props:n}):t}function on(t,e,n,r){if(!e)return"";const i=Ur(e,n,r);if(!i)return"";if(typeof i=="string")return`${t} {
|
|
8
|
+
${i}
|
|
9
|
+
}`;const o=Object.keys(i);if(o.length===0)return n.config.keepEmptyBlock?t+` {
|
|
10
|
+
}`:"";const s=t?[t+" {"]:[];return o.forEach(f=>{const l=i[f];if(f==="raw"){s.push(`
|
|
11
|
+
`+l+`
|
|
12
|
+
`);return}f=rn(f),l!=null&&s.push(` ${f}${qr(l)}`)}),t&&s.push("}"),s.join(`
|
|
13
|
+
`)}function yt(t,e,n){t&&t.forEach(r=>{if(Array.isArray(r))yt(r,e,n);else if(typeof r=="function"){const i=r(e);Array.isArray(i)?yt(i,e,n):i&&n(i)}else r&&n(r)})}function sn(t,e,n,r,i){const o=t.$;let s="";if(!o||typeof o=="string")Ke(o)?s=o:e.push(o);else if(typeof o=="function"){const u=o({context:r.context,props:i});Ke(u)?s=u:e.push(u)}else if(o.before&&o.before(r.context),!o.$||typeof o.$=="string")Ke(o.$)?s=o.$:e.push(o.$);else if(o.$){const u=o.$({context:r.context,props:i});Ke(u)?s=u:e.push(u)}const f=jr(e),l=on(f,t.props,r,i);s?n.push(`${s} {`):l.length&&n.push(l),t.children&&yt(t.children,{context:r.context,props:i},u=>{if(typeof u=="string"){const v=on(f,{raw:u},r,i);n.push(v)}else sn(u,e,n,r,i)}),e.pop(),s&&n.push("}"),o&&o.after&&o.after(r.context)}function Zr(t,e,n){const r=[];return sn(t,[],r,e,n),r.join(`
|
|
14
|
+
|
|
15
|
+
`)}function Kr(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}typeof window!="undefined"&&(window.__cssrContext={});function Gr(t,e,n,r){const{els:i}=e;if(n===void 0)i.forEach(nn),e.els=[];else{const o=Ze(n,r);o&&i.includes(o)&&(nn(o),e.els=i.filter(s=>s!==o))}}function ln(t,e){t.push(e)}function Jr(t,e,n,r,i,o,s,f,l){let u;if(n===void 0&&(u=e.render(r),n=Kr(u)),l){l.adapter(n,u!=null?u:e.render(r));return}f===void 0&&(f=document.head);const v=Ze(n,f);if(v!==null&&!o)return v;const w=v!=null?v:Xr(n);if(u===void 0&&(u=e.render(r)),w.textContent=u,v!==null)return v;if(s){const m=f.querySelector(`meta[name="${s}"]`);if(m)return f.insertBefore(w,m),ln(e.els,w),w}return i?f.insertBefore(w,f.querySelector("style, link")):f.appendChild(w),ln(e.els,w),w}function Qr(t){return Zr(this,this.instance,t)}function ei(t={}){const{id:e,ssr:n,props:r,head:i=!1,force:o=!1,anchorMetaName:s,parent:f}=t;return Jr(this.instance,this,e,r,i,o,s,f,n)}function ti(t={}){const{id:e,parent:n}=t;Gr(this.instance,this,e,n)}const Ge=function(t,e,n,r){return{instance:t,$:e,props:n,children:r,els:[],render:Qr,mount:ei,unmount:ti}},ni=function(t,e,n,r){return Array.isArray(e)?Ge(t,{$:null},null,e):Array.isArray(n)?Ge(t,e,null,n):Array.isArray(r)?Ge(t,e,n,r):Ge(t,e,n,null)};function ri(t={}){const e={c:(...n)=>ni(e,...n),use:(n,...r)=>n.install(e,...r),find:Ze,context:{},config:t};return e}function Yo(t,e){if(t===void 0)return!1;if(e){const{context:{ids:n}}=e;return n.has(t)}return Ze(t)!==null}const{c:ee}=ri(),Je="vueuc-style";function un(t){return t&-t}class an{constructor(e,n){this.l=e,this.min=n;const r=new Array(e+1);for(let i=0;i<e+1;++i)r[i]=0;this.ft=r}add(e,n){if(n===0)return;const{l:r,ft:i}=this;for(e+=1;e<=r;)i[e]+=n,e+=un(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;const{ft:n,min:r,l:i}=this;if(e>i)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let o=e*r;for(;e>0;)o+=n[e],e-=un(e);return o}getBound(e){let n=0,r=this.l;for(;r>n;){const i=Math.floor((n+r)/2),o=this.sum(i);if(o>e){r=i;continue}else if(o<e){if(n===i)return this.sum(n+1)<=e?n+1:i;n=i}else return i}return n}}function fn(t){return typeof t=="string"?document.querySelector(t):t()}var ii=Y({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(t){return{showTeleport:Mr(de(t,"show")),mergedTo:W(()=>{const{to:e}=t;return e!=null?e:"body"})}},render(){return this.showTeleport?this.disabled?gt("lazy-teleport",this.$slots):_(jn,{disabled:this.disabled,to:this.mergedTo},gt("lazy-teleport",this.$slots)):null}});const Qe={top:"bottom",bottom:"top",left:"right",right:"left"},cn={start:"end",center:"center",end:"start"},$t={top:"height",bottom:"height",left:"width",right:"width"},oi={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},si={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},li={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},dn={top:!0,bottom:!1,left:!0,right:!1},hn={top:"end",bottom:"start",left:"end",right:"start"};function ui(t,e,n,r,i,o){if(!i||o)return{placement:t,top:0,left:0};const[s,f]=t.split("-");let l=f!=null?f:"center",u={top:0,left:0};const v=(x,$,S)=>{let g=0,c=0;const M=n[x]-e[$]-e[x];return M>0&&r&&(S?c=dn[$]?M:-M:g=dn[$]?M:-M),{left:g,top:c}},w=s==="left"||s==="right";if(l!=="center"){const x=li[t],$=Qe[x],S=$t[x];if(n[S]>e[S]){if(e[x]+e[S]<n[S]){const g=(n[S]-e[S])/2;e[x]<g||e[$]<g?e[x]<e[$]?(l=cn[f],u=v(S,$,w)):u=v(S,x,w):l="center"}}else n[S]<e[S]&&e[$]<0&&e[x]>e[$]&&(l=cn[f])}else{const x=s==="bottom"||s==="top"?"left":"top",$=Qe[x],S=$t[x],g=(n[S]-e[S])/2;(e[x]<g||e[$]<g)&&(e[x]>e[$]?(l=hn[x],u=v(S,x,w)):(l=hn[$],u=v(S,$,w)))}let m=s;return e[s]<n[$t[s]]&&e[s]<e[Qe[s]]&&(m=Qe[s]),{placement:l!=="center"?`${m}-${l}`:m,left:u.left,top:u.top}}function ai(t,e){return e?si[t]:oi[t]}function fi(t,e,n,r,i,o){if(o)switch(t){case"bottom-start":return{top:`${Math.round(n.top-e.top+n.height)}px`,left:`${Math.round(n.left-e.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-e.top+n.height)}px`,left:`${Math.round(n.left-e.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-e.top)}px`,left:`${Math.round(n.left-e.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-e.top)}px`,left:`${Math.round(n.left-e.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-e.top)}px`,left:`${Math.round(n.left-e.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-e.top+n.height)}px`,left:`${Math.round(n.left-e.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-e.top)}px`,left:`${Math.round(n.left-e.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-e.top+n.height)}px`,left:`${Math.round(n.left-e.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-e.top)}px`,left:`${Math.round(n.left-e.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-e.top+n.height/2)}px`,left:`${Math.round(n.left-e.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-e.top+n.height/2)}px`,left:`${Math.round(n.left-e.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-e.top+n.height)}px`,left:`${Math.round(n.left-e.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(t){case"bottom-start":return{top:`${Math.round(n.top-e.top+n.height+r)}px`,left:`${Math.round(n.left-e.left+i)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-e.top+n.height+r)}px`,left:`${Math.round(n.left-e.left+n.width+i)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-e.top+r)}px`,left:`${Math.round(n.left-e.left+i)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-e.top+r)}px`,left:`${Math.round(n.left-e.left+n.width+i)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-e.top+r)}px`,left:`${Math.round(n.left-e.left+n.width+i)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-e.top+n.height+r)}px`,left:`${Math.round(n.left-e.left+n.width+i)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-e.top+r)}px`,left:`${Math.round(n.left-e.left+i)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-e.top+n.height+r)}px`,left:`${Math.round(n.left-e.left+i)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-e.top+r)}px`,left:`${Math.round(n.left-e.left+n.width/2+i)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-e.top+n.height/2+r)}px`,left:`${Math.round(n.left-e.left+n.width+i)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-e.top+n.height/2+r)}px`,left:`${Math.round(n.left-e.left+i)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-e.top+n.height+r)}px`,left:`${Math.round(n.left-e.left+n.width/2+i)}px`,transform:"translateX(-50%)"}}}const ci=ee([ee(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ee(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ee("> *",{pointerEvents:"all"})])]);var qo=Y({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(t){const e=xe("VBinder"),n=Se(()=>t.enabled!==void 0?t.enabled:t.show),r=T(null),i=T(null),o=()=>{const{syncTrigger:m}=t;m.includes("scroll")&&e.addScrollListener(l),m.includes("resize")&&e.addResizeListener(l)},s=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};oe(()=>{n.value&&(l(),o())});const f=Ue();ci.mount({id:"vueuc/binder",head:!0,anchorMetaName:Je,ssr:f}),K(()=>{s()}),kr(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const m=r.value;if(m===null)return;const x=e.targetRef,{x:$,y:S,overlap:g}=t,c=$!==void 0&&S!==void 0?yr($,S):wt(x);m.style.setProperty("--v-target-width",`${Math.round(c.width)}px`),m.style.setProperty("--v-target-height",`${Math.round(c.height)}px`);const{width:M,minWidth:k,placement:F,internalShift:j,flip:V}=t;m.setAttribute("v-placement",F),g?m.setAttribute("v-overlap",""):m.removeAttribute("v-overlap");const{style:h}=m;M==="target"?h.width=`${c.width}px`:M!==void 0?h.width=M:h.width="",k==="target"?h.minWidth=`${c.width}px`:k!==void 0?h.minWidth=k:h.minWidth="";const p=wt(m),y=wt(i.value),{left:z,top:B,placement:H}=ui(F,c,p,j,V,g),d=ai(H,g),{left:a,top:b,transform:E}=fi(H,y,c,B,z,g);m.setAttribute("v-placement",H),m.style.setProperty("--v-offset-left",`${Math.round(z)}px`),m.style.setProperty("--v-offset-top",`${Math.round(B)}px`),m.style.transform=`translateX(${a}) translateY(${b}) ${E}`,m.style.setProperty("--v-transform-origin",d),m.style.transformOrigin=d};ne(n,m=>{m?(o(),u()):s()});const u=()=>{At().then(l).catch(m=>console.error(m))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(m=>{ne(de(t,m),l)}),["teleportDisabled"].forEach(m=>{ne(de(t,m),u)}),ne(de(t,"syncTrigger"),m=>{m.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),m.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const v=Or(),w=Se(()=>{const{to:m}=t;if(m!==void 0)return m;v.value});return{VBinder:e,mergedEnabled:n,offsetContainerRef:i,followerRef:r,mergedTo:w,syncPosition:l}},render(){return _(ii,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t,e;const n=_("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[_("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))]);return this.zindexable?Bt(n,[[Tr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),ge=[],di=function(){return ge.some(function(t){return t.activeTargets.length>0})},hi=function(){return ge.some(function(t){return t.skippedTargets.length>0})},pn="ResizeObserver loop completed with undelivered notifications.",pi=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:pn}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=pn),window.dispatchEvent(t)},Fe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Fe||(Fe={}));var be=function(t){return Object.freeze(t)},vi=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,be(this)}return t}(),vn=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,be(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,s=e.bottom,f=e.left,l=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:s,left:f,width:l,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Et=function(t){return t instanceof SVGElement&&"getBBox"in t},mn=function(t){if(Et(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||t.getClientRects().length)},gn=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},mi=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},He=typeof window!="undefined"?window:{},et=new WeakMap,bn=/auto|scroll/,gi=/^tb|vertical/,bi=/msie|trident/i.test(He.navigator&&He.navigator.userAgent),te=function(t){return parseFloat(t||"0")},Me=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new vi((n?e:t)||0,(n?t:e)||0)},wn=be({devicePixelContentBoxSize:Me(),borderBoxSize:Me(),contentBoxSize:Me(),contentRect:new vn(0,0,0,0)}),xn=function(t,e){if(e===void 0&&(e=!1),et.has(t)&&!e)return et.get(t);if(mn(t))return et.set(t,wn),wn;var n=getComputedStyle(t),r=Et(t)&&t.ownerSVGElement&&t.getBBox(),i=!bi&&n.boxSizing==="border-box",o=gi.test(n.writingMode||""),s=!r&&bn.test(n.overflowY||""),f=!r&&bn.test(n.overflowX||""),l=r?0:te(n.paddingTop),u=r?0:te(n.paddingRight),v=r?0:te(n.paddingBottom),w=r?0:te(n.paddingLeft),m=r?0:te(n.borderTopWidth),x=r?0:te(n.borderRightWidth),$=r?0:te(n.borderBottomWidth),S=r?0:te(n.borderLeftWidth),g=w+u,c=l+v,M=S+x,k=m+$,F=f?t.offsetHeight-k-t.clientHeight:0,j=s?t.offsetWidth-M-t.clientWidth:0,V=i?g+M:0,h=i?c+k:0,p=r?r.width:te(n.width)-V-j,y=r?r.height:te(n.height)-h-F,z=p+g+j+M,B=y+c+F+k,H=be({devicePixelContentBoxSize:Me(Math.round(p*devicePixelRatio),Math.round(y*devicePixelRatio),o),borderBoxSize:Me(z,B,o),contentBoxSize:Me(p,y,o),contentRect:new vn(w,l,p,y)});return et.set(t,H),H},yn=function(t,e,n){var r=xn(t,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case Fe.DEVICE_PIXEL_CONTENT_BOX:return s;case Fe.BORDER_BOX:return i;default:return o}},wi=function(){function t(e){var n=xn(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=be([n.borderBoxSize]),this.contentBoxSize=be([n.contentBoxSize]),this.devicePixelContentBoxSize=be([n.devicePixelContentBoxSize])}return t}(),$n=function(t){if(mn(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},xi=function(){var t=1/0,e=[];ge.forEach(function(s){if(s.activeTargets.length!==0){var f=[];s.activeTargets.forEach(function(u){var v=new wi(u.target),w=$n(u.target);f.push(v),u.lastReportedSize=yn(u.target,u.observedBox),w<t&&(t=w)}),e.push(function(){s.callback.call(s.observer,f,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},En=function(t){ge.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&($n(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},yi=function(){var t=0;for(En(t);di();)t=xi(),En(t);return hi()&&pi(),t>0},St,Sn=[],$i=function(){return Sn.splice(0).forEach(function(t){return t()})},Ei=function(t){if(!St){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return $i()}).observe(n,r),St=function(){n.textContent="".concat(e?e--:e++)}}Sn.push(t),St()},Si=function(t){Ei(function(){requestAnimationFrame(t)})},tt=0,Ti=function(){return!!tt},Mi=250,zi={attributes:!0,characterData:!0,childList:!0,subtree:!0},Tn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mn=function(t){return t===void 0&&(t=0),Date.now()+t},Tt=!1,ki=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Mi),!Tt){Tt=!0;var r=Mn(e);Si(function(){var i=!1;try{i=yi()}finally{if(Tt=!1,e=r-Mn(),!Ti())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,zi)};document.body?n():He.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Tn.forEach(function(n){return He.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Tn.forEach(function(n){return He.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Mt=new ki,zn=function(t){!tt&&t>0&&Mt.start(),tt+=t,!tt&&Mt.stop()},Ci=function(t){return!Et(t)&&!mi(t)&&getComputedStyle(t).display==="inline"},Ii=function(){function t(e,n){this.target=e,this.observedBox=n||Fe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=yn(this.target,this.observedBox,!0);return Ci(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Bi=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),nt=new WeakMap,kn=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},rt=function(){function t(){}return t.connect=function(e,n){var r=new Bi(e,n);nt.set(e,r)},t.observe=function(e,n,r){var i=nt.get(e),o=i.observationTargets.length===0;kn(i.observationTargets,n)<0&&(o&&ge.push(i),i.observationTargets.push(new Ii(n,r&&r.box)),zn(1),Mt.schedule())},t.unobserve=function(e,n){var r=nt.get(e),i=kn(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&ge.splice(ge.indexOf(r),1),r.observationTargets.splice(i,1),zn(-1))},t.disconnect=function(e){var n=this,r=nt.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),Ai=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");rt.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!gn(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rt.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!gn(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rt.unobserve(this,e)},t.prototype.disconnect=function(){rt.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();class Oi{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window!="undefined"&&window.ResizeObserver||Ai)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const n of e){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(e,n){this.elHandlersMap.set(e,n),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}var Cn=new Oi,it=Y({name:"ResizeObserver",props:{onResize:Function},setup(t){let e=!1;const n=Re().proxy;function r(i){const{onResize:o}=t;o!==void 0&&o(i)}oe(()=>{const i=n.$el;if(i===void 0){en("resize-observer","$el does not exist.");return}if(i.nextElementSibling!==i.nextSibling&&i.nodeType===3&&i.nodeValue!==""){en("resize-observer","$el can not be observed (it may be a text node).");return}i.nextElementSibling!==null&&(Cn.registerHandler(i.nextElementSibling,r),e=!0)}),K(()=>{e&&Cn.unregisterHandler(n.$el.nextElementSibling)})},render(){return Le(this.$slots,"default")}});let ot;function Fi(){return typeof document=="undefined"?!1:(ot===void 0&&("matchMedia"in window?ot=window.matchMedia("(pointer:coarse)").matches:ot=!1),ot)}let zt;function In(){return typeof document=="undefined"?1:(zt===void 0&&(zt="chrome"in window?window.devicePixelRatio:1),zt)}const Bn="VVirtualListXScroll";function Hi({columnsRef:t,renderColRef:e,renderItemWithColsRef:n}){const r=T(0),i=T(0),o=W(()=>{const u=t.value;if(u.length===0)return null;const v=new an(u.length,0);return u.forEach((w,m)=>{v.add(m,w.width)}),v}),s=Se(()=>{const u=o.value;return u!==null?Math.max(u.getBound(i.value)-1,0):0}),f=u=>{const v=o.value;return v!==null?v.sum(u):0},l=Se(()=>{const u=o.value;return u!==null?Math.min(u.getBound(i.value+r.value)+1,t.value.length-1):0});return It(Bn,{startIndexRef:s,endIndexRef:l,columnsRef:t,renderColRef:e,renderItemWithColsRef:n,getLeft:f}),{listWidthRef:r,scrollLeftRef:i}}const An=Y({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:t,endIndexRef:e,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:o}=xe(Bn);return{startIndex:t,endIndex:e,columns:n,renderCol:i,renderItemWithCols:o,getLeft:r}},render(){const{startIndex:t,endIndex:e,columns:n,renderCol:r,renderItemWithCols:i,getLeft:o,item:s}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:t,endColIndex:e,allColumns:n,item:s,getLeft:o});if(r!=null){const f=[];for(let l=t;l<=e;++l){const u=n[l];f.push(r({column:u,left:o(l),item:s}))}return f}return null}}),Wi=ee(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[ee("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[ee("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var Li=Y({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(t){const e=Ue();Wi.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Je,ssr:e}),oe(()=>{const{defaultScrollIndex:d,defaultScrollKey:a}=t;d!=null?g({index:d}):a!=null&&g({key:a})});let n=!1,r=!1;Xn(()=>{if(n=!1,!r){r=!0;return}g({top:x.value,left:s.value})}),Yn(()=>{n=!0,r||(r=!0)});const i=Se(()=>{if(t.renderCol==null&&t.renderItemWithCols==null||t.columns.length===0)return;let d=0;return t.columns.forEach(a=>{d+=a.width}),d}),o=W(()=>{const d=new Map,{keyField:a}=t;return t.items.forEach((b,E)=>{d.set(b[a],E)}),d}),{scrollLeftRef:s,listWidthRef:f}=Hi({columnsRef:de(t,"columns"),renderColRef:de(t,"renderCol"),renderItemWithColsRef:de(t,"renderItemWithCols")}),l=T(null),u=T(void 0),v=new Map,w=W(()=>{const{items:d,itemSize:a,keyField:b}=t,E=new an(d.length,a);return d.forEach((C,I)=>{const A=C[b],O=v.get(A);O!==void 0&&E.add(I,O)}),E}),m=T(0),x=T(0),$=Se(()=>Math.max(w.value.getBound(x.value-Nt(t.paddingTop))-1,0)),S=W(()=>{const{value:d}=u;if(d===void 0)return[];const{items:a,itemSize:b}=t,E=$.value,C=Math.min(E+Math.ceil(d/b+1),a.length-1),I=[];for(let A=E;A<=C;++A)I.push(a[A]);return I}),g=(d,a)=>{if(typeof d=="number"){F(d,a,"auto");return}const{left:b,top:E,index:C,key:I,position:A,behavior:O,debounce:P=!0}=d;if(b!==void 0||E!==void 0)F(b,E,O);else if(C!==void 0)k(C,O,P);else if(I!==void 0){const ze=o.value.get(I);ze!==void 0&&k(ze,O,P)}else A==="bottom"?F(0,Number.MAX_SAFE_INTEGER,O):A==="top"&&F(0,0,O)};let c,M=null;function k(d,a,b){const{value:E}=w,C=E.sum(d)+Nt(t.paddingTop);if(!b)l.value.scrollTo({left:0,top:C,behavior:a});else{c=d,M!==null&&window.clearTimeout(M),M=window.setTimeout(()=>{c=void 0,M=null},16);const{scrollTop:I,offsetHeight:A}=l.value;if(C>I){const O=E.get(d);C+O<=I+A||l.value.scrollTo({left:0,top:C+O-A,behavior:a})}else l.value.scrollTo({left:0,top:C,behavior:a})}}function F(d,a,b){l.value.scrollTo({left:d,top:a,behavior:b})}function j(d,a){var b,E,C;if(n||t.ignoreItemResize||H(a.target))return;const{value:I}=w,A=o.value.get(d),O=I.get(A),P=(C=(E=(b=a.borderBoxSize)===null||b===void 0?void 0:b[0])===null||E===void 0?void 0:E.blockSize)!==null&&C!==void 0?C:a.contentRect.height;if(P===O)return;P-t.itemSize===0?v.delete(d):v.set(d,P-t.itemSize);const ke=P-O;if(ke===0)return;I.add(A,ke);const ce=l.value;if(ce!=null){if(c===void 0){const st=I.sum(A);ce.scrollTop>st&&ce.scrollBy(0,ke)}else if(A<c)ce.scrollBy(0,ke);else if(A===c){const st=I.sum(A);P+st>ce.scrollTop+ce.offsetHeight&&ce.scrollBy(0,ke)}B()}m.value++}const V=!Fi();let h=!1;function p(d){var a;(a=t.onScroll)===null||a===void 0||a.call(t,d),(!V||!h)&&B()}function y(d){var a;if((a=t.onWheel)===null||a===void 0||a.call(t,d),V){const b=l.value;if(b!=null){if(d.deltaX===0&&(b.scrollTop===0&&d.deltaY<=0||b.scrollTop+b.offsetHeight>=b.scrollHeight&&d.deltaY>=0))return;d.preventDefault(),b.scrollTop+=d.deltaY/In(),b.scrollLeft+=d.deltaX/In(),B(),h=!0,Rt(()=>{h=!1})}}}function z(d){if(n||H(d.target))return;if(t.renderCol==null&&t.renderItemWithCols==null){if(d.contentRect.height===u.value)return}else if(d.contentRect.height===u.value&&d.contentRect.width===f.value)return;u.value=d.contentRect.height,f.value=d.contentRect.width;const{onResize:a}=t;a!==void 0&&a(d)}function B(){const{value:d}=l;d!=null&&(x.value=d.scrollTop,s.value=d.scrollLeft)}function H(d){let a=d;for(;a!==null;){if(a.style.display==="none")return!0;a=a.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:W(()=>{const{itemResizable:d}=t,a=Ce(w.value.sum());return m.value,[t.itemsStyle,{boxSizing:"content-box",width:Ce(i.value),height:d?"":a,minHeight:d?a:"",paddingTop:Ce(t.paddingTop),paddingBottom:Ce(t.paddingBottom)}]}),visibleItemsStyle:W(()=>(m.value,{transform:`translateY(${Ce(w.value.sum($.value))})`})),viewportItems:S,listElRef:l,itemsElRef:T(null),scrollTo:g,handleListResize:z,handleListScroll:p,handleListWheel:y,handleItemResize:j}},render(){const{itemResizable:t,keyField:e,keyToIndex:n,visibleItemsTag:r}=this;return _(it,{onResize:this.handleListResize},{default:()=>{var i,o;return _("div",Ot(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?_("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[_(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:s,renderItemWithCols:f}=this;return this.viewportItems.map(l=>{const u=l[e],v=n.get(u),w=s!=null?_(An,{index:v,item:l}):void 0,m=f!=null?_(An,{index:v,item:l}):void 0,x=this.$slots.default({item:l,renderedCols:w,renderedItemWithCols:m,index:v})[0];return t?_(it,{key:u,onResize:$=>this.handleItemResize(u,$)},{default:()=>x}):(x.key=u,x)})}})]):(o=(i=this.$slots).empty)===null||o===void 0?void 0:o.call(i)])}})}});const Ri=ee(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[ee("&::-webkit-scrollbar",{width:0,height:0})]);var Uo=Y({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const t=T(null);function e(i){!(i.currentTarget.offsetWidth<i.currentTarget.scrollWidth)||i.deltaY===0||(i.currentTarget.scrollLeft+=i.deltaY+i.deltaX,i.preventDefault())}const n=Ue();return Ri.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Je,ssr:n}),Object.assign({selfRef:t,handleWheel:e},{scrollTo(...i){var o;(o=t.value)===null||o===void 0||o.scrollTo(...i)}})},render(){return _("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});const ie="v-hidden",Ni=ee("[v-hidden]",{display:"none!important"});var Zo=Y({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(t,{slots:e}){const n=T(null),r=T(null);function i(s){const{value:f}=n,{getCounter:l,getTail:u}=t;let v;if(l!==void 0?v=l():v=r.value,!f||!v)return;v.hasAttribute(ie)&&v.removeAttribute(ie);const{children:w}=f;if(s.showAllItemsBeforeCalculate)for(const k of w)k.hasAttribute(ie)&&k.removeAttribute(ie);const m=f.offsetWidth,x=[],$=e.tail?u==null?void 0:u():null;let S=$?$.offsetWidth:0,g=!1;const c=f.children.length-(e.tail?1:0);for(let k=0;k<c-1;++k){if(k<0)continue;const F=w[k];if(g){F.hasAttribute(ie)||F.setAttribute(ie,"");continue}else F.hasAttribute(ie)&&F.removeAttribute(ie);const j=F.offsetWidth;if(S+=j,x[k]=j,S>m){const{updateCounter:V}=t;for(let h=k;h>=0;--h){const p=c-1-h;V!==void 0?V(p):v.textContent=`${p}`;const y=v.offsetWidth;if(S-=x[h],S+y<=m||h===0){g=!0,k=h-1,$&&(k===-1?($.style.maxWidth=`${m-y}px`,$.style.boxSizing="border-box"):$.style.maxWidth="");const{onUpdateCount:z}=t;z&&z(p);break}}}}const{onUpdateOverflow:M}=t;g?M!==void 0&&M(!0):(M!==void 0&&M(!1),v.setAttribute(ie,""))}const o=Ue();return Ni.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Je,ssr:o}),oe(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){const{$slots:t}=this;return At(()=>this.sync({showAllItemsBeforeCalculate:!1})),_("div",{class:"v-overflow",ref:"selfRef"},[Le(t,"default"),t.counter?t.counter():_("span",{style:{display:"inline-block"},ref:"counterRef"}),t.tail?t.tail():null])}});function On(t){return t instanceof HTMLElement}function Fn(t){for(let e=0;e<t.childNodes.length;e++){const n=t.childNodes[e];if(On(n)&&(Wn(n)||Fn(n)))return!0}return!1}function Hn(t){for(let e=t.childNodes.length-1;e>=0;e--){const n=t.childNodes[e];if(On(n)&&(Wn(n)||Hn(n)))return!0}return!1}function Wn(t){if(!Di(t))return!1;try{t.focus({preventScroll:!0})}catch{}return document.activeElement===t}function Di(t){if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.getAttribute("disabled"))return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return t.type!=="hidden"&&t.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let We=[];const Ko=Y({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){const e=vr(),n=T(null),r=T(null);let i=!1,o=!1;const s=typeof document=="undefined"?null:document.activeElement;function f(){return We[We.length-1]===e}function l(g){var c;g.code==="Escape"&&f()&&((c=t.onEsc)===null||c===void 0||c.call(t,g))}oe(()=>{ne(()=>t.active,g=>{g?(w(),D("keydown",document,l)):(R("keydown",document,l),i&&m())},{immediate:!0})}),K(()=>{R("keydown",document,l),i&&m()});function u(g){if(!o&&f()){const c=v();if(c===null||c.contains(rr(g)))return;x("first")}}function v(){const g=n.value;if(g===null)return null;let c=g;for(;c=c.nextSibling,!(c===null||c instanceof Element&&c.tagName==="DIV"););return c}function w(){var g;if(!t.disabled){if(We.push(e),t.autoFocus){const{initialFocusTo:c}=t;c===void 0?x("first"):(g=fn(c))===null||g===void 0||g.focus({preventScroll:!0})}i=!0,document.addEventListener("focus",u,!0)}}function m(){var g;if(t.disabled||(document.removeEventListener("focus",u,!0),We=We.filter(M=>M!==e),f()))return;const{finalFocusTo:c}=t;c!==void 0?(g=fn(c))===null||g===void 0||g.focus({preventScroll:!0}):t.returnFocusOnDeactivated&&s instanceof HTMLElement&&(o=!0,s.focus({preventScroll:!0}),o=!1)}function x(g){if(f()&&t.active){const c=n.value,M=r.value;if(c!==null&&M!==null){const k=v();if(k==null||k===M){o=!0,c.focus({preventScroll:!0}),o=!1;return}o=!0;const F=g==="first"?Fn(k):Hn(k);o=!1,F||(o=!0,c.focus({preventScroll:!0}),o=!1)}}}function $(g){if(o)return;const c=v();c!==null&&(g.relatedTarget!==null&&c.contains(g.relatedTarget)?x("last"):x("first"))}function S(g){o||(g.relatedTarget!==null&&g.relatedTarget===n.value?x("last"):x("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:$,handleEndFocus:S}},render(){const{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();const{active:e,focusableStyle:n}=this;return _(Ct,null,[_("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),t(),_("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}}),fe="king",Pi="is-";function we(t,e,n,r,i){let o=`${t}-${e}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o}const _i=Symbol("namespaceContextKey");function Vi(t){const e=t||(Re()?xe(_i,T(fe)):T(fe));return W(()=>lt(e)||fe)}function Go(t,e){const n=Vi(e);return{namespace:n,b:(r="")=>we(n.value,t,r,"",""),e:r=>r?we(n.value,t,"",r,""):"",m:r=>r?we(n.value,t,"","",r):"",be:(r,i)=>r&&i?we(n.value,t,r,i,""):"",em:(r,i)=>r&&i?we(n.value,t,"",r,i):"",bm:(r,i)=>r&&i?we(n.value,t,r,"",i):"",bem:(r,i,o)=>r&&i&&o?we(n.value,t,r,i,o):"",is:(r,...i)=>{const o=i.length>=1?i[0]:!0;return r&&o?`${Pi}${r}`:""},cssVar:r=>{const i={};for(const o in r)r[o]&&(i[`--${n.value}-${o}`]=r[o]);return i},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const i={};for(const o in r)r[o]&&(i[`--${n.value}-${t}-${o}`]=r[o]);return i},cssVarBlockName:r=>`--${n.value}-${t}-${r}`}}const ji={container:Function,content:Function,onScroll:Function};function Xi(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!qn(t)}var Yi=Y({name:"KScrollbar",props:ji,inheritAttrs:!1,setup(t){oe(()=>{t.container||d()});const e=()=>{d()},n=()=>{d()},r=T(null),i=T(null),o=T(null),s=T(null),f=T(null),l=T(null),u=T(null),v=T(null),w=W(()=>{var a;return((a=t.content)==null?void 0:a.call(t))||r.value}),m=W(()=>{var a;return((a=t.container)==null?void 0:a.call(t))||i.value}),x=T(0),$=W(()=>{const{value:a}=l,{value:b}=s,{value:E}=v;return a===null||b===null||E===null?0:Math.min(a,E*a/b+5*1.5)}),S=W(()=>{const{value:a}=l,{value:b}=x,{value:E}=s,{value:C}=v;if(a===null||E===null||C===null)return 0;{const I=E-a;return I?b/I*(C-$.value):0}}),g=W(()=>`${S.value}px`),c=W(()=>{const{value:a}=l,{value:b}=s;return a!==null&&b!==null&&b>a}),M=W(()=>`${$.value}px`),k=()=>{const{value:a}=w;a&&(s.value=a.offsetHeight,f.value=a.offsetWidth);const{value:b}=m;b&&(l.value=b.offsetHeight,u.value=b.offsetWidth);const{value:E}=o;E&&(v.value=E.offsetHeight)};let F=!1,j=0,V=0,h;const p=a=>{if(!F)return;h!==void 0&&window.clearTimeout(h);const{value:b}=l,{value:E}=s,{value:C}=$;if(b===null||E===null)return;const I=(a.clientY-V)*(E-b)/(b-C),A=E-b;let O=j+I;O=Math.min(A,O),O=Math.max(O,0);const{value:P}=m;P&&(P.scrollTop=O)},y=a=>{a.preventDefault(),a.stopPropagation(),R("mousemove",window,p,!0),R("mouseup",window,y,!0),F=!1,d()},z=a=>{a.preventDefault(),a.stopPropagation(),D("mousemove",window,p,!0),D("mouseup",window,y,!0),j=x.value,V=a.clientY,F=!0};function B(a){const{onScroll:b}=t;b&&b(a),H()}function H(){const{value:a}=m;a&&(x.value=a.scrollTop)}function d(){k(),H()}return{sync:d,handleContentResize:e,handleContainerResize:n,contentRef:r,yRailRef:o,containerRef:i,contentHeightRef:s,containerHeightRef:l,needYBarRef:c,yBarSizePxRef:M,handleYScrollMouseDown:z,yBarTopPxRef:g,handleScroll:B}},render(){let t;const{$slots:e}=this,n=()=>se("div",{class:`${fe}-scrollbar-rail`,ref:"yRailRef"},[this.needYBarRef&&se("div",{class:`${fe}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePxRef,top:this.yBarTopPxRef},onMousedown:this.handleYScrollMouseDown},null)]),r=()=>{var i;return se("div",Ot({class:`${fe}-scrollbar`},this.$attrs),[this.container?(i=e.default)==null?void 0:i.call(e):se("div",{class:`${fe}-scrollbar-container`,onScroll:this.handleScroll,ref:"containerRef"},[se(it,{onResize:this.handleContentResize},{default:()=>{var o;return[se("div",{ref:"contentRef",class:`${fe}-scrollbar-content`},[(o=e.default)==null?void 0:o.call(e)])]}})]),n()])};return this.container?r():se(it,{onResize:this.handleContainerResize},Xi(t=r())?t:{default:()=>[t]})}});const qi=ut(Yi),Ln={items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0},keyField:{type:String,default:"key"},onScroll:Function,onWheel:Function,onResize:Function};var Ui=Y({__name:"virtual-list",props:Ln,setup(t){const e=t,n=T(null),r=T(null);function i(){var u;return(u=n.value)==null?void 0:u.listElRef}function o(){var u;return(u=n.value)==null?void 0:u.itemsElRef}const s=()=>{var u;return(u=r.value)==null?void 0:u.sync()};function f(){var u;(u=e.onScroll)==null||u.call(e),s()}function l(){s()}return(u,v)=>(kt(),Un(lt(qi),{ref_key:"scrollbarInstRef",ref:r,style:{"max-height":"300px"},container:i,content:o},{default:Ft(()=>[se(lt(Li),{ref_key:"virtualListInstRef",ref:n,items:u.items,style:{height:"100%"},"item-size":u.itemSize,"item-resizable":u.itemResizable,"show-scrollbar":!1,"padding-bottom":u.paddingBottom,"padding-top":u.paddingTop,"on-scroll":f,"on-resize":l},{default:Ft(({item:w,index:m})=>[Le(u.$slots,"default",{item:w,index:m})]),_:3},8,["items","item-size","item-resizable","padding-bottom","padding-top"])]),_:3},512))}});const Rn=ut(Ui),Zi=[Wt,Rn];function Ki(t){Zi.forEach(e=>t.use(e))}const Gi={install:Ki};export{Wt as KForm,Rn as KVirtualList,Gi as default,Ht as formType,Ln as virtualListProps};
|
|
16
|
+
//# sourceMappingURL=index.cdn.mjs.map
|