@king-one/antdv 1.0.3 → 1.0.5

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.
Files changed (154) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/{cdn → antdv/cdn}/index.cdn.js +1 -1
  3. package/{cdn → antdv/cdn}/index.cdn.js.map +1 -1
  4. package/{cdn → antdv/cdn}/index.cdn.mjs +1 -1
  5. package/{cdn → antdv/cdn}/index.cdn.mjs.map +1 -1
  6. package/antdv/es/components/base/style/index.mjs +2 -0
  7. package/{es → antdv/es}/components/scroll-bar/style/index.mjs +1 -1
  8. package/antdv/lib/components/base/style/index.js +5 -0
  9. package/{lib → antdv/lib}/components/scroll-bar/style/index.js +1 -1
  10. package/antdv/package.json +29 -0
  11. package/components/base/style/index.ts +8 -0
  12. package/components/form/component/form.ts +21 -0
  13. package/components/form/component/form.vue +24 -0
  14. package/components/form/index.ts +6 -0
  15. package/components/form-item/component/form-item.vue +106 -0
  16. package/components/form-item/index.ts +0 -0
  17. package/components/index.ts +10 -0
  18. package/components/scroll-bar/index.ts +7 -0
  19. package/components/scroll-bar/src/scroll-bar.tsx +211 -0
  20. package/components/scroll-bar/src/types.ts +7 -0
  21. package/components/scroll-bar/style/index.ts +2 -0
  22. package/components/utils/install.ts +30 -0
  23. package/components/virtual-list/index.ts +6 -0
  24. package/components/virtual-list/src/types.ts +29 -0
  25. package/components/virtual-list/src/virtual-list.vue +47 -0
  26. package/hooks/use-namespace/index.ts +93 -0
  27. package/index.ts +4 -0
  28. package/installer.ts +19 -0
  29. package/package.json +3 -3
  30. package/es/components/base/style/index.d.ts +0 -1
  31. package/es/components/base/style/index.mjs +0 -2
  32. package/es/components/scroll-bar/style/index.d.ts +0 -2
  33. package/lib/components/base/style/index.d.ts +0 -1
  34. package/lib/components/base/style/index.js +0 -5
  35. package/lib/components/scroll-bar/style/index.d.ts +0 -2
  36. /package/{cdn → antdv/cdn}/index.css +0 -0
  37. /package/{es → antdv/es}/components/base/style/index.mjs.map +0 -0
  38. /package/{es → antdv/es}/components/form/component/form.d.ts +0 -0
  39. /package/{es → antdv/es}/components/form/component/form.mjs +0 -0
  40. /package/{es → antdv/es}/components/form/component/form.mjs.map +0 -0
  41. /package/{es → antdv/es}/components/form/component/form.vue.d.ts +0 -0
  42. /package/{es → antdv/es}/components/form/component/form.vue.mjs +0 -0
  43. /package/{es → antdv/es}/components/form/component/form.vue.mjs.map +0 -0
  44. /package/{es → antdv/es}/components/form/component/form.vue2.mjs +0 -0
  45. /package/{es → antdv/es}/components/form/component/form.vue2.mjs.map +0 -0
  46. /package/{es → antdv/es}/components/form/index.d.ts +0 -0
  47. /package/{es → antdv/es}/components/form/index.mjs +0 -0
  48. /package/{es → antdv/es}/components/form/index.mjs.map +0 -0
  49. /package/{es → antdv/es}/components/form-item/component/form-item.vue.d.ts +0 -0
  50. /package/{es → antdv/es}/components/form-item/component/form-item.vue.mjs +0 -0
  51. /package/{es → antdv/es}/components/form-item/component/form-item.vue.mjs.map +0 -0
  52. /package/{es → antdv/es}/components/form-item/component/form-item.vue2.mjs +0 -0
  53. /package/{es → antdv/es}/components/form-item/component/form-item.vue2.mjs.map +0 -0
  54. /package/{es → antdv/es}/components/form-item/index.d.ts +0 -0
  55. /package/{es → antdv/es}/components/form-item/index.mjs +0 -0
  56. /package/{es → antdv/es}/components/form-item/index.mjs.map +0 -0
  57. /package/{es → antdv/es}/components/index.d.ts +0 -0
  58. /package/{es → antdv/es}/components/index.mjs +0 -0
  59. /package/{es → antdv/es}/components/index.mjs.map +0 -0
  60. /package/{es → antdv/es}/components/scroll-bar/index.d.ts +0 -0
  61. /package/{es → antdv/es}/components/scroll-bar/index.mjs +0 -0
  62. /package/{es → antdv/es}/components/scroll-bar/index.mjs.map +0 -0
  63. /package/{es → antdv/es}/components/scroll-bar/src/scroll-bar.d.ts +0 -0
  64. /package/{es → antdv/es}/components/scroll-bar/src/scroll-bar.mjs +0 -0
  65. /package/{es → antdv/es}/components/scroll-bar/src/scroll-bar.mjs.map +0 -0
  66. /package/{es → antdv/es}/components/scroll-bar/src/types.d.ts +0 -0
  67. /package/{es → antdv/es}/components/scroll-bar/src/types.mjs +0 -0
  68. /package/{es → antdv/es}/components/scroll-bar/src/types.mjs.map +0 -0
  69. /package/{es → antdv/es}/components/scroll-bar/style/index.mjs.map +0 -0
  70. /package/{es → antdv/es}/components/utils/install.d.ts +0 -0
  71. /package/{es → antdv/es}/components/utils/install.mjs +0 -0
  72. /package/{es → antdv/es}/components/utils/install.mjs.map +0 -0
  73. /package/{es → antdv/es}/components/virtual-list/index.d.ts +0 -0
  74. /package/{es → antdv/es}/components/virtual-list/index.mjs +0 -0
  75. /package/{es → antdv/es}/components/virtual-list/index.mjs.map +0 -0
  76. /package/{es → antdv/es}/components/virtual-list/src/types.d.ts +0 -0
  77. /package/{es → antdv/es}/components/virtual-list/src/types.mjs +0 -0
  78. /package/{es → antdv/es}/components/virtual-list/src/types.mjs.map +0 -0
  79. /package/{es → antdv/es}/components/virtual-list/src/virtual-list.vue.d.ts +0 -0
  80. /package/{es → antdv/es}/components/virtual-list/src/virtual-list.vue.mjs +0 -0
  81. /package/{es → antdv/es}/components/virtual-list/src/virtual-list.vue.mjs.map +0 -0
  82. /package/{es → antdv/es}/components/virtual-list/src/virtual-list.vue2.mjs +0 -0
  83. /package/{es → antdv/es}/components/virtual-list/src/virtual-list.vue2.mjs.map +0 -0
  84. /package/{es → antdv/es}/hooks/use-namespace/index.d.ts +0 -0
  85. /package/{es → antdv/es}/hooks/use-namespace/index.mjs +0 -0
  86. /package/{es → antdv/es}/hooks/use-namespace/index.mjs.map +0 -0
  87. /package/{es → antdv/es}/index.d.ts +0 -0
  88. /package/{es → antdv/es}/index.mjs +0 -0
  89. /package/{es → antdv/es}/index.mjs.map +0 -0
  90. /package/{es → antdv/es}/installer.d.ts +0 -0
  91. /package/{es → antdv/es}/installer.mjs +0 -0
  92. /package/{es → antdv/es}/installer.mjs.map +0 -0
  93. /package/{lib → antdv/lib}/components/base/style/index.js.map +0 -0
  94. /package/{lib → antdv/lib}/components/form/component/form.d.ts +0 -0
  95. /package/{lib → antdv/lib}/components/form/component/form.js +0 -0
  96. /package/{lib → antdv/lib}/components/form/component/form.js.map +0 -0
  97. /package/{lib → antdv/lib}/components/form/component/form.vue.d.ts +0 -0
  98. /package/{lib → antdv/lib}/components/form/component/form.vue.js +0 -0
  99. /package/{lib → antdv/lib}/components/form/component/form.vue.js.map +0 -0
  100. /package/{lib → antdv/lib}/components/form/component/form.vue2.js +0 -0
  101. /package/{lib → antdv/lib}/components/form/component/form.vue2.js.map +0 -0
  102. /package/{lib → antdv/lib}/components/form/index.d.ts +0 -0
  103. /package/{lib → antdv/lib}/components/form/index.js +0 -0
  104. /package/{lib → antdv/lib}/components/form/index.js.map +0 -0
  105. /package/{lib → antdv/lib}/components/form-item/component/form-item.vue.d.ts +0 -0
  106. /package/{lib → antdv/lib}/components/form-item/component/form-item.vue.js +0 -0
  107. /package/{lib → antdv/lib}/components/form-item/component/form-item.vue.js.map +0 -0
  108. /package/{lib → antdv/lib}/components/form-item/component/form-item.vue2.js +0 -0
  109. /package/{lib → antdv/lib}/components/form-item/component/form-item.vue2.js.map +0 -0
  110. /package/{lib → antdv/lib}/components/form-item/index.d.ts +0 -0
  111. /package/{lib → antdv/lib}/components/form-item/index.js +0 -0
  112. /package/{lib → antdv/lib}/components/form-item/index.js.map +0 -0
  113. /package/{lib → antdv/lib}/components/index.d.ts +0 -0
  114. /package/{lib → antdv/lib}/components/index.js +0 -0
  115. /package/{lib → antdv/lib}/components/index.js.map +0 -0
  116. /package/{lib → antdv/lib}/components/scroll-bar/index.d.ts +0 -0
  117. /package/{lib → antdv/lib}/components/scroll-bar/index.js +0 -0
  118. /package/{lib → antdv/lib}/components/scroll-bar/index.js.map +0 -0
  119. /package/{lib → antdv/lib}/components/scroll-bar/src/scroll-bar.d.ts +0 -0
  120. /package/{lib → antdv/lib}/components/scroll-bar/src/scroll-bar.js +0 -0
  121. /package/{lib → antdv/lib}/components/scroll-bar/src/scroll-bar.js.map +0 -0
  122. /package/{lib → antdv/lib}/components/scroll-bar/src/types.d.ts +0 -0
  123. /package/{lib → antdv/lib}/components/scroll-bar/src/types.js +0 -0
  124. /package/{lib → antdv/lib}/components/scroll-bar/src/types.js.map +0 -0
  125. /package/{lib → antdv/lib}/components/scroll-bar/style/index.js.map +0 -0
  126. /package/{lib → antdv/lib}/components/utils/install.d.ts +0 -0
  127. /package/{lib → antdv/lib}/components/utils/install.js +0 -0
  128. /package/{lib → antdv/lib}/components/utils/install.js.map +0 -0
  129. /package/{lib → antdv/lib}/components/virtual-list/index.d.ts +0 -0
  130. /package/{lib → antdv/lib}/components/virtual-list/index.js +0 -0
  131. /package/{lib → antdv/lib}/components/virtual-list/index.js.map +0 -0
  132. /package/{lib → antdv/lib}/components/virtual-list/src/types.d.ts +0 -0
  133. /package/{lib → antdv/lib}/components/virtual-list/src/types.js +0 -0
  134. /package/{lib → antdv/lib}/components/virtual-list/src/types.js.map +0 -0
  135. /package/{lib → antdv/lib}/components/virtual-list/src/virtual-list.vue.d.ts +0 -0
  136. /package/{lib → antdv/lib}/components/virtual-list/src/virtual-list.vue.js +0 -0
  137. /package/{lib → antdv/lib}/components/virtual-list/src/virtual-list.vue.js.map +0 -0
  138. /package/{lib → antdv/lib}/components/virtual-list/src/virtual-list.vue2.js +0 -0
  139. /package/{lib → antdv/lib}/components/virtual-list/src/virtual-list.vue2.js.map +0 -0
  140. /package/{lib → antdv/lib}/hooks/use-namespace/index.d.ts +0 -0
  141. /package/{lib → antdv/lib}/hooks/use-namespace/index.js +0 -0
  142. /package/{lib → antdv/lib}/hooks/use-namespace/index.js.map +0 -0
  143. /package/{lib → antdv/lib}/index.d.ts +0 -0
  144. /package/{lib → antdv/lib}/index.js +0 -0
  145. /package/{lib → antdv/lib}/index.js.map +0 -0
  146. /package/{lib → antdv/lib}/installer.d.ts +0 -0
  147. /package/{lib → antdv/lib}/installer.js +0 -0
  148. /package/{lib → antdv/lib}/installer.js.map +0 -0
  149. /package/{theme-chalk → antdv/theme-chalk}/base.css +0 -0
  150. /package/{theme-chalk → antdv/theme-chalk}/buttons.css +0 -0
  151. /package/{theme-chalk → antdv/theme-chalk}/index.css +0 -0
  152. /package/{theme-chalk → antdv/theme-chalk}/reset.css +0 -0
  153. /package/{theme-chalk → antdv/theme-chalk}/scroll-bar.css +0 -0
  154. /package/{theme-chalk → antdv/theme-chalk}/var.css +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @king-one/antdv
2
+
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - feat:虚拟列表、滚动条
@@ -1,4 +1,4 @@
1
- (function(X,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue"),require("@king-one/antdv/theme-chalk/src/base.css"),require("@king-one/antdv/theme-chalk/src/scroll-bar.css")):typeof define=="function"&&define.amd?define(["exports","vue","@king-one/antdv/theme-chalk/src/base.css","@king-one/antdv/theme-chalk/src/scroll-bar.css"],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}">
1
+ (function(X,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue"),require("@king-one/antdv/theme-chalk/base.css"),require("@king-one/antdv/theme-chalk/scroll-bar.css")):typeof define=="function"&&define.amd?define(["exports","vue","@king-one/antdv/theme-chalk/base.css","@king-one/antdv/theme-chalk/scroll-bar.css"],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
2
  ${e}
3
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
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?` {