st-comp 0.0.148 → 0.0.150

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 (150) hide show
  1. package/components.d.ts +3 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +5 -4
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +28 -24
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +577 -631
  8. package/es/Kline.cjs +1 -0
  9. package/es/Kline.js +1903 -0
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +677 -1428
  12. package/es/KlineNew.cjs +1 -3
  13. package/es/KlineNew.js +316 -2740
  14. package/es/Pagination.cjs +1 -1
  15. package/es/Pagination.js +60 -58
  16. package/es/PasswordPrompt.cjs +1 -0
  17. package/es/PasswordPrompt.js +13 -0
  18. package/es/Table.cjs +1 -1
  19. package/es/Table.js +102 -98
  20. package/es/User.cjs +1 -1
  21. package/es/User.js +397 -373
  22. package/es/VarietySearch.cjs +1 -1
  23. package/es/VarietySearch.js +2395 -1
  24. package/es/VirtualTable.cjs +5 -5
  25. package/es/VirtualTable.js +154 -151
  26. package/es/_initCloneObject-47814efa.cjs +1 -0
  27. package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-e3d8a9ab.js} +13 -13
  28. package/es/base-0ca7c43a.cjs +5 -0
  29. package/es/base-19787dfb.js +303 -0
  30. package/es/{castArray-c770910d.js → castArray-8405000b.js} +1 -1
  31. package/es/castArray-a78ae889.cjs +1 -0
  32. package/es/{config-provider-feed0e8a.js → config-provider-0f6672af.js} +3 -3
  33. package/es/{config-provider-c87e277f.cjs → config-provider-cfbb9cd8.cjs} +1 -1
  34. package/es/{debounce-c64fb3b5.js → debounce-6cb0781f.js} +29 -29
  35. package/es/debounce-cf26af24.cjs +1 -0
  36. package/es/{dropdown-c9272ca3.js → dropdown-17b3ef6a.js} +4 -4
  37. package/es/{dropdown-6bdb3cf4.cjs → dropdown-790d31ea.cjs} +1 -1
  38. package/es/el-button-0bf1d532.js +236 -0
  39. package/es/el-button-62966947.cjs +1 -0
  40. package/es/el-checkbox-group-45247bbf.cjs +1 -0
  41. package/es/el-checkbox-group-d53bc316.js +67 -0
  42. package/es/el-empty-2ece1134.cjs +1 -0
  43. package/es/{el-empty-89a523ed.js → el-empty-bd5343a7.js} +10 -9
  44. package/es/{el-form-item-55d36086.js → el-form-item-05c0e335.js} +82 -81
  45. package/es/el-form-item-47e255d4.cjs +12 -0
  46. package/es/{el-input-cb528574.js → el-input-1e309239.js} +46 -45
  47. package/es/el-input-6a3805c5.cjs +1 -0
  48. package/es/{el-input-number-ce30bfa8.js → el-input-number-60ebc58f.js} +50 -48
  49. package/es/el-input-number-96ff2e47.cjs +1 -0
  50. package/es/el-menu-item-4c9eb7ad.cjs +1 -0
  51. package/es/el-menu-item-6c6236a1.js +772 -0
  52. package/es/{el-message-d51d032b.js → el-message-7d927756.js} +56 -55
  53. package/es/el-message-d5ed7a4f.cjs +1 -0
  54. package/es/el-overlay-26bf0945.js +521 -0
  55. package/es/el-overlay-41994f67.cjs +1 -0
  56. package/es/el-popover-17e2e66c.js +140 -0
  57. package/es/el-popover-7bd8a7c3.cjs +1 -0
  58. package/es/el-popper-7adbf1c6.cjs +1 -0
  59. package/es/{el-popper-f4b01f85.js → el-popper-b6527ae2.js} +217 -216
  60. package/es/{el-scrollbar-e8e93751.js → el-scrollbar-29bcab5f.js} +22 -22
  61. package/es/el-scrollbar-ac525239.cjs +1 -0
  62. package/es/el-select-31f8ac8a.cjs +1 -0
  63. package/es/{el-select-e71af2e6.js → el-select-7395562b.js} +42 -40
  64. package/es/el-table-column-47d80736.js +3804 -0
  65. package/es/el-table-column-bdc46568.cjs +14 -0
  66. package/es/{el-tag-d65768f4.js → el-tag-7414e0c7.js} +59 -58
  67. package/es/el-tag-9732314f.cjs +1 -0
  68. package/es/{index-da646183.cjs → index-1d85ba4b.cjs} +1 -1
  69. package/es/{index-92ba4292.js → index-273822d1.js} +26 -25
  70. package/es/index-2f958e56.cjs +3 -0
  71. package/es/index-375e8de4.cjs +5 -0
  72. package/es/{index-121e2861.js → index-621b092b.js} +3 -3
  73. package/es/index-657047bb.js +513 -0
  74. package/es/{index-18416440.cjs → index-65b4113e.cjs} +1 -1
  75. package/es/index-70372cdb.js +519 -0
  76. package/es/{use-form-common-props-4d37077d.js → index-72151b24.js} +151 -312
  77. package/es/index-9e6e8d03.cjs +1 -0
  78. package/es/index-ab96bbf4.js +156 -0
  79. package/es/index-afc88a4b.cjs +1 -0
  80. package/es/index-c066fe0d.js +82 -0
  81. package/es/index-ce3223db.cjs +1 -0
  82. package/es/{index-709675d5.js → index-dc22ffe4.js} +18 -18
  83. package/es/index-eea0bcb3.cjs +1 -0
  84. package/es/index.esm-8d9a2abe.js +2432 -0
  85. package/es/index.esm-94a95a2a.cjs +3 -0
  86. package/es/{raf-f55e0daa.js → raf-a532c514.js} +1 -1
  87. package/es/{raf-2d77cbbe.cjs → raf-f46caea0.cjs} +1 -1
  88. package/es/{scroll-c8ac196e.cjs → scroll-339681d4.cjs} +1 -1
  89. package/es/{scroll-ca84f80a.js → scroll-d787d648.js} +1 -1
  90. package/es/style.css +1 -1
  91. package/es/use-form-common-props-5ff2f51b.js +171 -0
  92. package/es/use-form-common-props-74a96df2.cjs +2 -0
  93. package/es/vnode-6a0c7411.js +14 -0
  94. package/es/vnode-b15eb11b.cjs +1 -0
  95. package/es/{zh-cn-414d7f0c.cjs → zh-cn-36f34912.cjs} +1 -1
  96. package/es/{zh-cn-23c8e0d1.js → zh-cn-f37255ae.js} +2 -2
  97. package/lib/bundle.js +1 -1
  98. package/lib/bundle.umd.cjs +206 -206
  99. package/lib/{index-ffeb163e.js → index-d0cb2fa2.js} +33754 -31705
  100. package/lib/{python-0ec8f68c.js → python-050ba5a4.js} +1 -1
  101. package/lib/style.css +1 -1
  102. package/package.json +1 -1
  103. package/packages/Kline/components/Contextmenu/index.vue +110 -0
  104. package/packages/Kline/components/Tips/index.vue +40 -0
  105. package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
  106. package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
  107. package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
  108. package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
  109. package/packages/Kline/componentsNew/Tips/index.vue +33 -0
  110. package/packages/Kline/formatKlineData.ts +109 -0
  111. package/packages/Kline/images/buy.svg +1 -0
  112. package/packages/Kline/images/pen.png +0 -0
  113. package/packages/Kline/images/sell.svg +1 -0
  114. package/packages/Kline/images/t.svg +1 -0
  115. package/packages/Kline/index.ts +16 -0
  116. package/packages/Kline/index.vue +891 -0
  117. package/packages/Kline/option.ts +539 -0
  118. package/packages/Kline/type.d.ts +219 -0
  119. package/packages/Kline/utils.ts +682 -0
  120. package/packages/PasswordPrompt/index.ts +8 -0
  121. package/packages/PasswordPrompt/index.vue +266 -0
  122. package/packages/User/index.vue +97 -58
  123. package/packages/index.ts +4 -0
  124. package/src/pages/Kline/index.vue +12 -0
  125. package/src/pages/PasswordPrompt/index.vue +12 -0
  126. package/src/router/routes.ts +10 -0
  127. package/es/_initCloneObject-476b02ce.cjs +0 -1
  128. package/es/base-6ccc8fc2.cjs +0 -9
  129. package/es/base-950bac7e.js +0 -816
  130. package/es/castArray-374558a5.cjs +0 -1
  131. package/es/debounce-a6b4f91b.cjs +0 -1
  132. package/es/el-button-b8f71c7d.cjs +0 -1
  133. package/es/el-button-d7b6eebd.js +0 -745
  134. package/es/el-empty-12eece57.cjs +0 -1
  135. package/es/el-form-item-ebbf096d.cjs +0 -12
  136. package/es/el-input-2c7e70a3.cjs +0 -1
  137. package/es/el-input-number-8e168e83.cjs +0 -1
  138. package/es/el-message-612c2346.cjs +0 -1
  139. package/es/el-overlay-07414277.js +0 -526
  140. package/es/el-overlay-fb255b83.cjs +0 -1
  141. package/es/el-popper-8360bd91.cjs +0 -1
  142. package/es/el-scrollbar-271142ad.cjs +0 -1
  143. package/es/el-select-2e71d4af.cjs +0 -1
  144. package/es/el-table-column-9fe79f05.cjs +0 -14
  145. package/es/el-table-column-dc562f14.js +0 -3933
  146. package/es/el-tag-930e7b32.cjs +0 -1
  147. package/es/index-0ed86daf.cjs +0 -3
  148. package/es/index-674d2fd7.cjs +0 -1
  149. package/es/index-aece600c.js +0 -81
  150. package/es/use-form-common-props-c1960844.cjs +0 -2
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),r=require("./index-afc88a4b.cjs"),c=require("./base-0ca7c43a.cjs"),p=require("./use-form-common-props-74a96df2.cjs"),f=c.buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:p.componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),y={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},h=e.defineComponent({name:"ElTag"}),v=e.defineComponent({...h,props:f,emits:y,setup(l,{emit:i}){const k=l,C=p.useFormSize(),n=c.useNamespace("tag"),u=e.computed(()=>{const{type:o,hit:s,effect:t,closable:a,round:b}=k;return[n.b(),n.is("closable",a),n.m(o||"primary"),n.m(C.value),n.m(t),n.is("hit",s),n.is("round",b)]}),d=o=>{i("close",o)},m=o=>{i("click",o)},g=o=>{var s,t,a;(a=(t=(s=o==null?void 0:o.component)==null?void 0:s.subTree)==null?void 0:t.component)!=null&&a.bum&&(o.component.subTree.component.bum=null)};return(o,s)=>o.disableTransitions?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:m},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(e.Transition,{key:1,name:`${e.unref(n).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:g},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:m},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var z=c._export_sfc(v,[["__file","tag.vue"]]);const _=c.withInstall(z);exports.ElTag=_;exports.tagProps=f;
@@ -0,0 +1,156 @@
1
+ import "./base-19787dfb.js";
2
+ import { computed as i, openBlock as d, createElementBlock as v, normalizeStyle as V, createVNode as _, Transition as k, withCtx as g, Fragment as z, renderList as A, createElementVNode as s, withDirectives as S, unref as N, vShow as F, toDisplayString as x, createCommentVNode as b, normalizeClass as h } from "vue";
3
+ import { g as Z, E as B } from "./index-72151b24.js";
4
+ import { _ as E } from "./_plugin-vue_export-helper-dad06003.js";
5
+ const L = {
6
+ key: 0,
7
+ class: "rule-box"
8
+ }, P = {
9
+ key: 0,
10
+ class: "level-box"
11
+ }, D = { class: "level-color" }, I = { class: "level-text" }, T = {
12
+ __name: "index",
13
+ props: {
14
+ // 密码
15
+ value: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ // 是否聚焦密码框
20
+ isFocus: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ // 文案颜色
25
+ textColor: {
26
+ type: [String, null],
27
+ default: null
28
+ }
29
+ },
30
+ setup(n, { expose: w }) {
31
+ const p = n, c = [
32
+ {
33
+ text: "不能包含空格",
34
+ validator: (e) => !/\s/.test(e)
35
+ },
36
+ {
37
+ text: "长度为8-18个字符",
38
+ validator: (e) => e.length >= 8 && e.length <= 18
39
+ },
40
+ {
41
+ text: "必须包含字母、数字、符号中至少2种",
42
+ validator: (e) => {
43
+ const t = /[a-zA-Z]/.test(e), a = /\d/.test(e), l = /[^a-zA-Z0-9]/.test(e);
44
+ return [t, a, l].filter(Boolean).length >= 2;
45
+ }
46
+ },
47
+ {
48
+ text: "请勿输入连续、重复6位以上字母或数字, 0123456, 1111111",
49
+ validator: (e) => {
50
+ if (/([a-zA-Z0-9])\1{6,}/.test(e) || /(?:0123456|1234567|2345678|3456789|9876543|8765432|7654321|6543210)/.test(e))
51
+ return !1;
52
+ const l = e.toLowerCase(), m = (r) => {
53
+ if (!/^[a-z]+$/.test(r))
54
+ return !1;
55
+ for (let o = 1; o < r.length; o++)
56
+ if (r.charCodeAt(o) !== r.charCodeAt(o - 1) + 1)
57
+ return !1;
58
+ return !0;
59
+ };
60
+ for (let r = 0; r <= l.length - 7; r++) {
61
+ const o = l.substr(r, 7);
62
+ if (m(o))
63
+ return !1;
64
+ }
65
+ return !0;
66
+ }
67
+ }
68
+ ], y = i(() => !c.map((t) => t.validator(p.value)).includes(!1)), u = i(() => {
69
+ const e = p.value;
70
+ if (!e)
71
+ return 0;
72
+ let t = 0;
73
+ return e.length >= 8 && t++, e.length >= 12 && t++, /\d/.test(e) && t++, /[a-z]/.test(e) && t++, /[A-Z]/.test(e) && t++, /[^a-zA-Z0-9]/.test(e) && t++, t <= 2 ? 1 : t <= 4 ? 2 : 3;
74
+ }), f = i(() => {
75
+ switch (u.value) {
76
+ case 1:
77
+ return "lv1";
78
+ case 2:
79
+ return "lv2";
80
+ case 3:
81
+ return "lv3";
82
+ default:
83
+ return "";
84
+ }
85
+ }), C = i(() => {
86
+ switch (u.value) {
87
+ case 1:
88
+ return "弱";
89
+ case 2:
90
+ return "中";
91
+ case 3:
92
+ return "强";
93
+ default:
94
+ return "";
95
+ }
96
+ });
97
+ return w({
98
+ pwdValidators: c,
99
+ // 提供给表单校验使用
100
+ ruleFormPassword: [
101
+ { required: !0, trigger: "blur", message: "密码不能为空" },
102
+ ...c.map((e) => ({
103
+ trigger: "blur",
104
+ validator: (t, a, l) => {
105
+ e.validator(a) ? l() : l(e.text);
106
+ }
107
+ }))
108
+ ]
109
+ }), (e, t) => {
110
+ const a = B;
111
+ return d(), v("div", {
112
+ class: "password-prompt",
113
+ style: V({ color: n.textColor ?? "var(--el-color-info)" })
114
+ }, [
115
+ _(k, { name: "slide-down" }, {
116
+ default: g(() => [
117
+ n.isFocus ? (d(), v("div", L, [
118
+ (d(), v(z, null, A(c, (l, m) => s("div", {
119
+ class: "rule-item",
120
+ key: m
121
+ }, [
122
+ S(_(a, null, {
123
+ default: g(() => [
124
+ _(N(Z))
125
+ ]),
126
+ _: 2
127
+ }, 1536), [
128
+ [F, l.validator(n.value)]
129
+ ]),
130
+ s("span", null, x(l.text), 1)
131
+ ])), 64))
132
+ ])) : b("", !0)
133
+ ]),
134
+ _: 1
135
+ }),
136
+ !n.isFocus && y.value ? (d(), v("div", P, [
137
+ s("div", D, [
138
+ s("div", {
139
+ class: h(["levelValue-block", [u.value >= 1 ? f.value : ""]])
140
+ }, null, 2),
141
+ s("div", {
142
+ class: h(["levelValue-block", [u.value >= 2 ? f.value : ""]])
143
+ }, null, 2),
144
+ s("div", {
145
+ class: h(["levelValue-block", [u.value >= 3 ? f.value : ""]])
146
+ }, null, 2)
147
+ ]),
148
+ s("div", I, "密码强度: " + x(C.value), 1)
149
+ ])) : b("", !0)
150
+ ], 4);
151
+ };
152
+ }
153
+ }, H = /* @__PURE__ */ E(T, [["__scopeId", "data-v-b9fee9dd"]]);
154
+ export {
155
+ H as P
156
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),a=require("./base-0ca7c43a.cjs"),c=a.buildProps({size:{type:a.definePropType([Number,String])},color:{type:String}}),u=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),p=e.defineComponent({...u,props:c,setup(t){const r=t,l=a.useNamespace("icon"),n=e.computed(()=>{const{size:_,color:o}=r;return!_&&!o?{}:{fontSize:a.isUndefined(_)?void 0:a.addUnit(_),"--color":o}});return(_,o)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(l).b(),style:e.unref(n)},_.$attrs),[e.renderSlot(_.$slots,"default")],16))}});var s=a._export_sfc(p,[["__file","icon.vue"]]);const d=a.withInstall(s);/*! Element Plus Icons Vue v2.3.1 */var i=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),m=i,v=e.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),f=v,w=e.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),g=w,h=e.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),B=h,x=e.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),e.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),C=x,k=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),E=k,L=e.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),V=L,M=e.defineComponent({name:"Close",__name:"close",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),y=M,N=e.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),z=N,A=e.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),H=A,S=e.defineComponent({name:"Hide",__name:"hide",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),e.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),F=S,q=e.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),I=q,P=e.defineComponent({name:"Loading",__name:"loading",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),U=P,b=e.defineComponent({name:"Minus",__name:"minus",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),D=b,Z=e.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),R=Z,$=e.defineComponent({name:"More",__name:"more",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Q=$,T=e.defineComponent({name:"Plus",__name:"plus",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),W=T,j=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),G=j,J=e.defineComponent({name:"Right",__name:"right",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),K=J,O=e.defineComponent({name:"SortDown",__name:"sort-down",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),X=O,Y=e.defineComponent({name:"SortUp",__name:"sort-up",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),e2=Y,t2=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),r2=t2,l2=e.defineComponent({name:"UserFilled",__name:"user-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),a2=l2,_2=e.defineComponent({name:"View",__name:"view",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),o2=_2,n2=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(r,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),c2=n2;exports.ElIcon=d;exports.arrow_down_default=m;exports.arrow_left_default=f;exports.arrow_right_default=g;exports.arrow_up_default=B;exports.circle_check_default=C;exports.circle_close_default=V;exports.circle_close_filled_default=E;exports.close_default=y;exports.d_arrow_left_default=z;exports.d_arrow_right_default=H;exports.hide_default=F;exports.info_filled_default=I;exports.loading_default=U;exports.minus_default=D;exports.more_default=Q;exports.more_filled_default=R;exports.plus_default=W;exports.question_filled_default=G;exports.right_default=K;exports.sort_down_default=X;exports.sort_up_default=e2;exports.success_filled_default=r2;exports.user_filled_default=a2;exports.view_default=o2;exports.warning_filled_default=c2;
@@ -0,0 +1,82 @@
1
+ import { ref as C, getCurrentInstance as f, provide as x, computed as l, unref as i, inject as y, watch as I } from "vue";
2
+ import { e as p, K as b, u as z, F as _ } from "./base-19787dfb.js";
3
+ import { r as K, z as S, S as G, s as O, p as $, t as N } from "./use-form-common-props-5ff2f51b.js";
4
+ import { g as k, w, a as E } from "./index-70372cdb.js";
5
+ const m = Symbol();
6
+ function F(n, o, a) {
7
+ return n == null ? n : K(n, o, a);
8
+ }
9
+ const d = (n) => Object.keys(n), L = (n, o, a) => ({
10
+ get value() {
11
+ return k(n, o, a);
12
+ },
13
+ set value(t) {
14
+ F(n, o, t);
15
+ }
16
+ }), v = C();
17
+ function g(n, o = void 0) {
18
+ const a = f() ? y(m, v) : v;
19
+ return n ? l(() => {
20
+ var t, s;
21
+ return (s = (t = a.value) == null ? void 0 : t[n]) != null ? s : o;
22
+ }) : a;
23
+ }
24
+ function T(n, o) {
25
+ const a = g(), t = z(n, l(() => {
26
+ var e;
27
+ return ((e = a.value) == null ? void 0 : e.namespace) || _;
28
+ })), s = E(l(() => {
29
+ var e;
30
+ return (e = a.value) == null ? void 0 : e.locale;
31
+ })), u = $(l(() => {
32
+ var e;
33
+ return ((e = a.value) == null ? void 0 : e.zIndex) || N;
34
+ })), r = l(() => {
35
+ var e;
36
+ return i(o) || ((e = a.value) == null ? void 0 : e.size) || "";
37
+ });
38
+ return P(l(() => i(a) || {})), {
39
+ ns: t,
40
+ locale: s,
41
+ zIndex: u,
42
+ size: r
43
+ };
44
+ }
45
+ const P = (n, o, a = !1) => {
46
+ var t;
47
+ const s = !!f(), u = s ? g() : void 0, r = (t = o == null ? void 0 : o.provide) != null ? t : s ? x : void 0;
48
+ if (!r) {
49
+ p("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
50
+ return;
51
+ }
52
+ const e = l(() => {
53
+ const c = i(n);
54
+ return u != null && u.value ? V(u.value, c) : c;
55
+ });
56
+ return r(m, e), r(w, l(() => e.value.locale)), r(b, l(() => e.value.namespace)), r(S, l(() => e.value.zIndex)), r(G, {
57
+ size: l(() => e.value.size || "")
58
+ }), r(O, l(() => ({
59
+ emptyValues: e.value.emptyValues,
60
+ valueOnClear: e.value.valueOnClear
61
+ }))), (a || !v.value) && (v.value = e.value), e;
62
+ }, V = (n, o) => {
63
+ const a = [.../* @__PURE__ */ new Set([...d(n), ...d(o)])], t = {};
64
+ for (const s of a)
65
+ t[s] = o[s] !== void 0 ? o[s] : n[s];
66
+ return t;
67
+ }, W = ({ from: n, replacement: o, scope: a, version: t, ref: s, type: u = "API" }, r) => {
68
+ I(() => i(r), (e) => {
69
+ e && p(a, `[${u}] ${n} is about to be deprecated in version ${t}, please use ${o} instead.
70
+ For more detail, please visit: ${s}
71
+ `);
72
+ }, {
73
+ immediate: !0
74
+ });
75
+ };
76
+ export {
77
+ W as a,
78
+ g as b,
79
+ L as g,
80
+ P as p,
81
+ T as u
82
+ };
@@ -0,0 +1 @@
1
+ "use strict";require("./base-0ca7c43a.cjs");const e=require("vue"),f=require("./index-afc88a4b.cjs"),h=require("./_plugin-vue_export-helper-f246444f.cjs");const g={key:0,class:"rule-box"},x={key:0,class:"level-box"},V={class:"level-color"},C={class:"level-text"},w={__name:"index",props:{value:{type:String,default:""},isFocus:{type:Boolean,default:!1},textColor:{type:[String,null],default:null}},setup(n,{expose:m}){const v=n,u=[{text:"不能包含空格",validator:t=>!/\s/.test(t)},{text:"长度为8-18个字符",validator:t=>t.length>=8&&t.length<=18},{text:"必须包含字母、数字、符号中至少2种",validator:t=>{const l=/[a-zA-Z]/.test(t),o=/\d/.test(t),r=/[^a-zA-Z0-9]/.test(t);return[l,o,r].filter(Boolean).length>=2}},{text:"请勿输入连续、重复6位以上字母或数字, 0123456, 1111111",validator:t=>{if(/([a-zA-Z0-9])\1{6,}/.test(t)||/(?:0123456|1234567|2345678|3456789|9876543|8765432|7654321|6543210)/.test(t))return!1;const r=t.toLowerCase(),d=s=>{if(!/^[a-z]+$/.test(s))return!1;for(let a=1;a<s.length;a++)if(s.charCodeAt(a)!==s.charCodeAt(a-1)+1)return!1;return!0};for(let s=0;s<=r.length-7;s++){const a=r.substr(s,7);if(d(a))return!1}return!0}}],p=e.computed(()=>!u.map(l=>l.validator(v.value)).includes(!1)),c=e.computed(()=>{const t=v.value;if(!t)return 0;let l=0;return t.length>=8&&l++,t.length>=12&&l++,/\d/.test(t)&&l++,/[a-z]/.test(t)&&l++,/[A-Z]/.test(t)&&l++,/[^a-zA-Z0-9]/.test(t)&&l++,l<=2?1:l<=4?2:3}),i=e.computed(()=>{switch(c.value){case 1:return"lv1";case 2:return"lv2";case 3:return"lv3";default:return""}}),_=e.computed(()=>{switch(c.value){case 1:return"弱";case 2:return"中";case 3:return"强";default:return""}});return m({pwdValidators:u,ruleFormPassword:[{required:!0,trigger:"blur",message:"密码不能为空"},...u.map(t=>({trigger:"blur",validator:(l,o,r)=>{t.validator(o)?r():r(t.text)}}))]}),(t,l)=>{const o=f.ElIcon;return e.openBlock(),e.createElementBlock("div",{class:"password-prompt",style:e.normalizeStyle({color:n.textColor??"var(--el-color-info)"})},[e.createVNode(e.Transition,{name:"slide-down"},{default:e.withCtx(()=>[n.isFocus?(e.openBlock(),e.createElementBlock("div",g,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(r,d)=>e.createElementVNode("div",{class:"rule-item",key:d},[e.withDirectives(e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(e.unref(f.circle_check_default))]),_:2},1536),[[e.vShow,r.validator(n.value)]]),e.createElementVNode("span",null,e.toDisplayString(r.text),1)])),64))])):e.createCommentVNode("",!0)]),_:1}),!n.isFocus&&p.value?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",V,[e.createElementVNode("div",{class:e.normalizeClass(["levelValue-block",[c.value>=1?i.value:""]])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["levelValue-block",[c.value>=2?i.value:""]])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["levelValue-block",[c.value>=3?i.value:""]])},null,2)]),e.createElementVNode("div",C,"密码强度: "+e.toDisplayString(_.value),1)])):e.createCommentVNode("",!0)],4)}}},N=h._export_sfc(w,[["__scopeId","data-v-b9fee9dd"]]);exports.PasswordPrompt=N;
@@ -1,34 +1,34 @@
1
- import { getCurrentInstance as C, shallowRef as E, ref as m, watch as g, onMounted as F, nextTick as x } from "vue";
2
- import { u as r } from "./el-scrollbar-e8e93751.js";
3
- import { c as _, e as f } from "./base-950bac7e.js";
1
+ import { getCurrentInstance as C, shallowRef as E, ref as m, watch as g, onMounted as F, nextTick as b } from "vue";
2
+ import { b as r } from "./el-scrollbar-29bcab5f.js";
3
+ import { l as x, g as f } from "./base-19787dfb.js";
4
4
  function y(l, {
5
5
  beforeFocus: t,
6
6
  afterFocus: e,
7
7
  beforeBlur: d,
8
8
  afterBlur: c
9
9
  } = {}) {
10
- const p = C(), { emit: v } = p, o = E(), s = m(!1), u = (n) => {
10
+ const p = C(), { emit: v } = p, o = E(), s = m(!1), a = (n) => {
11
11
  f(t) && t(n) || s.value || (s.value = !0, v("focus", n), e == null || e());
12
12
  }, i = (n) => {
13
- var a;
14
- f(d) && d(n) || n.relatedTarget && ((a = o.value) != null && a.contains(n.relatedTarget)) || (s.value = !1, v("blur", n), c == null || c());
13
+ var u;
14
+ f(d) && d(n) || n.relatedTarget && ((u = o.value) != null && u.contains(n.relatedTarget)) || (s.value = !1, v("blur", n), c == null || c());
15
15
  }, h = () => {
16
- var n, a;
17
- (n = o.value) != null && n.contains(document.activeElement) && o.value !== document.activeElement || (a = l.value) == null || a.focus();
16
+ var n, u;
17
+ (n = o.value) != null && n.contains(document.activeElement) && o.value !== document.activeElement || (u = l.value) == null || u.focus();
18
18
  };
19
19
  return g(o, (n) => {
20
20
  n && n.setAttribute("tabindex", "-1");
21
- }), r(o, "focus", u, !0), r(o, "blur", i, !0), r(o, "click", h, !0), process.env.NODE_ENV === "test" && F(() => {
22
- const n = _(l.value) ? l.value : document.querySelector("input,textarea");
23
- n && (r(n, "focus", u, !0), r(n, "blur", i, !0));
21
+ }), r(o, "focus", a, !0), r(o, "blur", i, !0), r(o, "click", h, !0), process.env.NODE_ENV === "test" && F(() => {
22
+ const n = x(l.value) ? l.value : document.querySelector("input,textarea");
23
+ n && (r(n, "focus", a, !0), r(n, "blur", i, !0));
24
24
  }), {
25
25
  isFocused: s,
26
26
  wrapperRef: o,
27
- handleFocus: u,
27
+ handleFocus: a,
28
28
  handleBlur: i
29
29
  };
30
30
  }
31
- const b = (l) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);
31
+ const _ = (l) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);
32
32
  function D({
33
33
  afterComposition: l,
34
34
  emit: t
@@ -38,10 +38,10 @@ function D({
38
38
  }, c = (o) => {
39
39
  var s;
40
40
  t == null || t("compositionupdate", o);
41
- const u = (s = o.target) == null ? void 0 : s.value, i = u[u.length - 1] || "";
42
- e.value = !b(i);
41
+ const a = (s = o.target) == null ? void 0 : s.value, i = a[a.length - 1] || "";
42
+ e.value = !_(i);
43
43
  }, p = (o) => {
44
- t == null || t("compositionend", o), e.value && (e.value = !1, x(() => l(o)));
44
+ t == null || t("compositionend", o), e.value && (e.value = !1, b(() => l(o)));
45
45
  };
46
46
  return {
47
47
  isComposing: e,
@@ -54,6 +54,6 @@ function D({
54
54
  };
55
55
  }
56
56
  export {
57
- D as a,
58
- y as u
57
+ y as a,
58
+ D as u
59
59
  };
@@ -0,0 +1 @@
1
+ "use strict";function h(r,t){F(r)&&(r="100%");var e=I(r);return r=t===360?r:Math.min(t,Math.max(0,parseFloat(r))),e&&(r=parseInt(String(r*t),10)/100),Math.abs(r-t)<1e-6?1:(t===360?r=(r<0?r%t+t:r%t)/parseFloat(String(t)):r=r%t/parseFloat(String(t)),r)}function v(r){return Math.min(1,Math.max(0,r))}function F(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function I(r){return typeof r=="string"&&r.indexOf("%")!==-1}function A(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function p(r){return r<=1?"".concat(Number(r)*100,"%"):r}function b(r){return r.length===1?"0"+r:String(r)}function E(r,t,e){return{r:h(r,255)*255,g:h(t,255)*255,b:h(e,255)*255}}function M(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=0,s=(a+n)/2;if(a===n)f=0,i=0;else{var u=a-n;switch(f=s>.5?u/(2-a-n):u/(a+n),a){case r:i=(t-e)/u+(t<e?6:0);break;case t:i=(e-r)/u+2;break;case e:i=(r-t)/u+4;break}i/=6}return{h:i,s:f,l:s}}function l(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*(6*e):e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}function B(r,t,e){var a,n,i;if(r=h(r,360),t=h(t,100),e=h(e,100),t===0)n=e,i=e,a=e;else{var f=e<.5?e*(1+t):e+t-e*t,s=2*e-f;a=l(s,f,r+1/3),n=l(s,f,r),i=l(s,f,r-1/3)}return{r:a*255,g:n*255,b:i*255}}function S(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=a,s=a-n,u=a===0?0:s/a;if(a===n)i=0;else{switch(a){case r:i=(t-e)/s+(t<e?6:0);break;case t:i=(e-r)/s+2;break;case e:i=(r-t)/s+4;break}i/=6}return{h:i,s:u,v:f}}function N(r,t,e){r=h(r,360)*6,t=h(t,100),e=h(e,100);var a=Math.floor(r),n=r-a,i=e*(1-t),f=e*(1-n*t),s=e*(1-(1-n)*t),u=a%6,H=[e,f,i,i,s,e][u],R=[s,e,e,f,i,i][u],T=[i,i,s,e,e,f][u];return{r:H*255,g:R*255,b:T*255}}function k(r,t,e,a){var n=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16))];return a&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function P(r,t,e,a,n){var i=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16)),b(j(a))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function j(r){return Math.round(parseFloat(r)*255).toString(16)}function w(r){return o(r)/255}function o(r){return parseInt(r,16)}function O(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var x={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function W(r){var t={r:0,g:0,b:0},e=1,a=null,n=null,i=null,f=!1,s=!1;return typeof r=="string"&&(r=U(r)),typeof r=="object"&&(g(r.r)&&g(r.g)&&g(r.b)?(t=E(r.r,r.g,r.b),f=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):g(r.h)&&g(r.s)&&g(r.v)?(a=p(r.s),n=p(r.v),t=N(r.h,a,n),f=!0,s="hsv"):g(r.h)&&g(r.s)&&g(r.l)&&(a=p(r.s),i=p(r.l),t=B(r.h,a,i),f=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(e=r.a)),e=A(e),{ok:f,format:r.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:e}}var G="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",d="(?:".concat(q,")|(?:").concat(G,")"),y="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),m="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),c={CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+y),rgba:new RegExp("rgba"+m),hsl:new RegExp("hsl"+y),hsla:new RegExp("hsla"+m),hsv:new RegExp("hsv"+y),hsva:new RegExp("hsva"+m),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function U(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var t=!1;if(x[r])r=x[r],t=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=c.rgb.exec(r);return e?{r:e[1],g:e[2],b:e[3]}:(e=c.rgba.exec(r),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=c.hsl.exec(r),e?{h:e[1],s:e[2],l:e[3]}:(e=c.hsla.exec(r),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=c.hsv.exec(r),e?{h:e[1],s:e[2],v:e[3]}:(e=c.hsva.exec(r),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=c.hex8.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),a:w(e[4]),format:t?"name":"hex8"}:(e=c.hex6.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),format:t?"name":"hex"}:(e=c.hex4.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),a:w(e[4]+e[4]),format:t?"name":"hex8"}:(e=c.hex3.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),format:t?"name":"hex"}:!1)))))))))}function g(r){return!!c.CSS_UNIT.exec(String(r))}var D=function(){function r(t,e){t===void 0&&(t=""),e===void 0&&(e={});var a;if(t instanceof r)return t;typeof t=="number"&&(t=O(t)),this.originalInput=t;var n=W(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=e.format)!==null&&a!==void 0?a:n.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},r.prototype.getLuminance=function(){var t=this.toRgb(),e,a,n,i=t.r/255,f=t.g/255,s=t.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),f<=.03928?a=f/12.92:a=Math.pow((f+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),.2126*e+.7152*a+.0722*n},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(t){return this.a=A(t),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},r.prototype.toHsv=function(){var t=S(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},r.prototype.toHsvString=function(){var t=S(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var t=M(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},r.prototype.toHslString=function(){var t=M(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(t){return t===void 0&&(t=!1),k(this.r,this.g,this.b,t)},r.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},r.prototype.toHex8=function(t){return t===void 0&&(t=!1),P(this.r,this.g,this.b,this.a,t)},r.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},r.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(e,", ").concat(a,")"):"rgba(".concat(t,", ").concat(e,", ").concat(a,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var t=function(e){return"".concat(Math.round(h(e,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var t=function(e){return Math.round(h(e,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+k(this.r,this.g,this.b,!1),e=0,a=Object.entries(x);e<a.length;e++){var n=a[e],i=n[0],f=n[1];if(t===f)return i}return!1},r.prototype.toString=function(t){var e=!!t;t=t??this.format;var a=!1,n=this.a<1&&this.a>=0,i=!e&&n&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l+=t/100,e.l=v(e.l),new r(e)},r.prototype.brighten=function(t){t===void 0&&(t=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(t/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(t/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(t/100)))),new r(e)},r.prototype.darken=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l-=t/100,e.l=v(e.l),new r(e)},r.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},r.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},r.prototype.desaturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s-=t/100,e.s=v(e.s),new r(e)},r.prototype.saturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s+=t/100,e.s=v(e.s),new r(e)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(t){var e=this.toHsl(),a=(e.h+t)%360;return e.h=a<0?360+a:a,new r(e)},r.prototype.mix=function(t,e){e===void 0&&(e=50);var a=this.toRgb(),n=new r(t).toRgb(),i=e/100,f={r:(n.r-a.r)*i+a.r,g:(n.g-a.g)*i+a.g,b:(n.b-a.b)*i+a.b,a:(n.a-a.a)*i+a.a};return new r(f)},r.prototype.analogous=function(t,e){t===void 0&&(t=6),e===void 0&&(e=30);var a=this.toHsl(),n=360/e,i=[this];for(a.h=(a.h-(n*t>>1)+720)%360;--t;)a.h=(a.h+n)%360,i.push(new r(a));return i},r.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new r(t)},r.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var e=this.toHsv(),a=e.h,n=e.s,i=e.v,f=[],s=1/t;t--;)f.push(new r({h:a,s:n,v:i})),i=(i+s)%1;return f},r.prototype.splitcomplement=function(){var t=this.toHsl(),e=t.h;return[this,new r({h:(e+72)%360,s:t.s,l:t.l}),new r({h:(e+216)%360,s:t.s,l:t.l})]},r.prototype.onBackground=function(t){var e=this.toRgb(),a=new r(t).toRgb(),n=e.a+a.a*(1-e.a);return new r({r:(e.r*e.a+a.r*a.a*(1-e.a))/n,g:(e.g*e.a+a.g*a.a*(1-e.a))/n,b:(e.b*e.a+a.b*a.a*(1-e.a))/n,a:n})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(t){for(var e=this.toHsl(),a=e.h,n=[this],i=360/t,f=1;f<t;f++)n.push(new r({h:(a+f*i)%360,s:e.s,l:e.l}));return n},r.prototype.equals=function(t){return this.toRgbString()===new r(t).toRgbString()},r}();exports.TinyColor=D;