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