UNPKG

kui-vue

Version:

A lightweight desktop UI component library suitable for Vue.js 2.

7 lines 237 kB
/*! * kui-vue v3.6.2 * Copyright 2017-present, kui-vue. * All rights reserved. * Author: Qiu / https://chuchur.com */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("dayjs"),a="3.6.2",l={name:"zh-cn",k:{datePicker:{year:"年",month:"月",selectYear:"请选择年",selectMonth:"请选择月",selectDate:"请选择日期",selectTime:"请选择时间",startDate:"开始日期",endDate:"结束日期",today:"今天",now:"此刻",ok:"确定",back:"返回"},form:{required:"请输入 {label}",email:"请输入有效的邮箱地址",phone:"请输入有效的手机号码",number:"请输入有效的数字",num_min:"数值不能小于 {min}",num_max:"数值不能大于 {max}"},empty:{description:"暂无数据"},common:{ok:"确定",cancel:"取消"},page:{page:"页",pageSize:"条/页",goto:"跳至",items:"条数据",total:"共"},select:{placeholder:"请选择",loading:"加载中...",emptyText:"暂无数据"},table:{emptyText:"暂无数据"},upload:{successful:"上传成功",failed:"上传失败",errorFileSize:"文件尺寸不合法"},image:{preview:"预览"}}},r=e.observable({currentLang:"zhCN",messages:{zhCN:l},vueI18nInstance:null});var n,o,i={t:function(e,t){var a=r.vueI18nInstance;if(a&&"function"==typeof a.t)return a.t(e,t);var l=r.messages[r.currentLang]||{};return e.split(".").reduce((e,t)=>e?e[t]:void 0,l)||e},use:function(e){r.currentLang=e},setI18n:function(e){r.vueI18nInstance=e,r.currentLang=e.locale,Object.defineProperty(e,"locale",{get:()=>r.currentLang,set(e){r.currentLang=e}})}};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u=s(function(){if(o)return n;function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t,a=1;a<arguments.length;a++)for(var l in t=arguments[a])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},e.apply(this,arguments)}o=1;var t=["attrs","props","domProps"],a=["class","style","directives"],l=["on","nativeOn"],r=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};return n=function(n){return n.reduce(function(n,o){for(var i in o)if(n[i])if(-1!==t.indexOf(i))n[i]=e({},n[i],o[i]);else if(-1!==a.indexOf(i)){var s=n[i]instanceof Array?n[i]:[n[i]],u=o[i]instanceof Array?o[i]:[o[i]];n[i]=[].concat(s,u)}else if(-1!==l.indexOf(i))for(var c in o[i])if(n[i][c]){var d=n[i][c]instanceof Array?n[i][c]:[n[i][c]],v=o[i][c]instanceof Array?o[i][c]:[o[i][c]];n[i][c]=[].concat(d,v)}else n[i][c]=o[i][c];else if("hook"===i)for(var p in o[i])n[i][p]=n[i][p]?r(n[i][p],o[i][p]):o[i][p];else n[i]=o[i];else n[i]=o[i];return n},{})}}());function c(e,t,a,l,r,n,o){try{var i=e[n](o),s=i.value}catch(e){return void a(e)}i.done?t(s):Promise.resolve(s).then(l,r)}function d(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach(function(t){d(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var h=e=>(e.install=function(t){t.component(e.name,e)},e);function m(t,a,l){var r=new e({parent:l,render:e=>e(t,p({},a))});return r.$mount(),r.$children[0]}function f(t,a){if(t instanceof e)a.appendChild(t.$el);else{var l=new e({render:()=>t});l.$mount(),a.appendChild(l.$el)}}var k=["class","staticClass","style","staticStyle","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","ref","key","refInFor"];function g(e){var t,a,l=(t=e.data,a=k,t&&"object"==typeof t?a.reduce((e,a)=>(a in t&&(e[a]=t[a]),e),{}):{}),{componentOptions:r}=e;return r&&function(e){e&&"object"==typeof e||(e={});for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];for(var r of a)if(r&&"object"==typeof r)for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}(l,{props:r.propsData,on:r.listeners}),l}function y(t){var a,l,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0;if(!t)return t;if(!t.tag)return t.text;var i=(null===(a=t.componentOptions)||void 0===a?void 0:a.Ctor)||t.tag,s=g(t),u=(null===(l=t.componentOptions)||void 0===l?void 0:l.children)||t.children||[];if(o&&(u=u.concat(o)),n)for(var c in r)"class"==c?s[c]=[s[c],r[c]]:["ref","key"].includes(c)?s[c]=r[c]:s[c]=p(p({},s[c]),r[c]);var d=e.h(i,s,u);return d.context=t.context,s.scopedSlots&&(d.data.scopedSlots=s.scopedSlots),d}function b(e){return e&&"object"==typeof e&&e.hasOwnProperty("tag")&&e.hasOwnProperty("componentOptions")}var w=h(e.defineComponent({name:"Icon",props:{type:[String,Array],size:[String,Number],color:String,spin:Boolean,strokeWidth:[String,Number]},setup(t,a){var{emit:l,slots:r,attrs:n,listeners:o}=a;return()=>{var a,l=["k-icon",{"k-load-loop":t.spin}],i={color:t.color};t.size&&(i.fontSize="".concat(t.size,"px"));var s=p(p({},n),{},{style:i,class:l,on:p({},o)});return e.h("i",u([{},s]),[e.h("svg",{attrs:{viewBox:"0 0 512 512",width:"1em",height:"1em"}},[(Array.isArray(t.type)?t.type:[]).map(a=>{var l,r,n=a.s?a.s:"fill:currentColor";if(t.strokeWidth){var o=(l=n.replace(/ /g,"").split(";"),r={},l.map(e=>{var[t,a]=e.split(":");t&&(r[t]=a)}),r);o["stroke-width"]&&(o["stroke-width"]=t.strokeWidth,n=(e=>{var t="";for(var a in e)t+="".concat(a,":").concat(e[a],";");return t})(o))}return e.h("path",{attrs:{d:a.d},style:n})})]),null===(a=r.default)||void 0===a?void 0:a.call(r)])}}}));w.install=function(e){e.component(w.name,w)};let x=[{d:"M448 256c0-106-86-192-192-192s-192 86-192 192 86 192 192 192 192-86 192-192z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M256 176l0 160 M336 256l-160 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],S=[{d:"M256 112l0 288 M400 256l-288 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],M=[{d:"M256 48c-114.69 0-208 93.31-208 208s93.31 208 208 208 208-93.31 208-208-93.31-208-208-208z m0 319.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20z m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.94v-0.05a21.74 21.74 0 1 1 43.44 0z",s:"fill:currentcolor;"}],z=[{d:"M112 268l144 144 144-144 M256 392l0-292",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],C=[{d:"M268 112l144 144-144 144 M392 256l-292 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],T=[{d:"M112 244l144-144 144 144 M256 120l0 292",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],B=[{d:"M48 128a48 48 0 0 1 48-48h320a48 48 0 0 1 48 48v288a48 48 0 0 1-48 48h-320a48 48 0 0 1-48-48z M464 160l-416 0",s:"fill:none;stroke:currentcolor;stroke-width:32px;stroke-linejoin:round;"},{d:"M272 232a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M352 232a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M272 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M352 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M112 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M192 312a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M112 392a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M192 392a24 24 0 1 0 48 0 24 24 0 1 0-48 0z M272 392a24 24 0 1 0 48 0 24 24 0 1 0-48 0z",s:"fill:currentcolor;"},{d:"M128 48l0 32 M384 48l0 32",s:"fill:none;stroke:currentcolor;stroke-width:32px;stroke-linecap:round;stroke-linejoin:round;"}],O=[{d:"M98 190.06l139.78 163.12a24 24 0 0 0 36.44 0l139.78-163.12c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z",s:"fill:currentcolor;"}],A=[{d:"M414 321.94l-139.78-163.12a24 24 0 0 0-36.44 0l-139.78 163.12c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z",s:"fill:currentcolor;"}],j=[{d:"M256 48c-114.69 0-208 93.31-208 208s93.31 208 208 208 208-93.31 208-208-93.31-208-208-208z m108.25 138.29l-134.4 160a16 16 0 0 1-12 5.71h-0.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z",s:"fill:currentcolor;"}],L=[{d:"M210.35 384a21.33 21.33 0 0 1-15.58-6.83l-103.68-110.29a21.33 21.33 0 1 1 31.15-29.23l87.89 93.66 179.42-196.27a21.33 21.33 0 1 1 31.57 28.59l-194.99 213.33a21.33 21.33 0 0 1-15.57 7.04z",s:"fill:currentcolor;"}],N=[{d:"M328 112l-144 144 144 144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],D=[{d:"M256 112l-144 144 144 144 M408 112l-144 144 144 144",s:"fill:none;stroke:currentcolor;stroke-width:48;stroke-linecap:round;stroke-linejoin:round;"}],P=[{d:"M264 400l144-144-144-144 M112 400l144-144-144-144",s:"fill:none;stroke:currentcolor;stroke-width:48;stroke-linecap:round;stroke-linejoin:round;"}],E=[{d:"M112 184l144 144 144-144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],I=[{d:"M184 112l144 144-144 144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],Y=[{d:"M112 328l144-144 144 144",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:48;"}],K=[{d:"M256 48c-114.69 0-208 93.31-208 208s93.31 208 208 208 208-93.31 208-208-93.31-208-208-208z m75.31 260.69a16 16 0 1 1-22.62 22.62l-52.69-52.68-52.69 52.68a16 16 0 0 1-22.62-22.62l52.68-52.69-52.68-52.69a16 16 0 0 1 22.62-22.62l52.69 52.68 52.69-52.68a16 16 0 0 1 22.62 22.62l-52.68 52.69z",s:"fill:currentcolor;"}],_=[{d:"M368 368l-224-224 M368 144l-224 224",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],F=[{d:"M416 221.25v194.75a48 48 0 0 1-48 48h-224a48 48 0 0 1-48-48v-320a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z",s:"fill:none;stroke:currentcolor;stroke-linejoin:round;stroke-width:32;"},{d:"M256 56v120a32 32 0 0 0 32 32h120 M176 288l160 0 M176 368l160 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],R=[{d:"M208 256a48 48 0 1 0 96 0 48 48 0 1 0-96 0z M368 256a48 48 0 1 0 96 0 48 48 0 1 0-96 0z M48 256a48 48 0 1 0 96 0 48 48 0 1 0-96 0z",s:"fill:currentcolor;"}],$=[{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352a16 16 0 0 1-11.31 27.31z M255.66 384c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91l0-0.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 0.14-2.94l-19.92-19.89a2 2 0 0 0-2.71-0.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-0.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65 42.65 27.63 88.55 41.63 136.31 41.63a239.13 239.13 0 0 0 75.8-12.58 2 2 0 0 0 0.77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1 204.8 204.8 0 0 1-51.16 6.47z M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53-42.57-27.52-89.57-42.07-135.91-42.07a227.34 227.34 0 0 0-74.89 12.83 2 2 0 0 0-0.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1 192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a0.13 0.13 0 0 1 0 0.16 310.72 310.72 0 0 1-64.12 72.73 2 2 0 0 0-0.15 2.95l19.9 19.89a2 2 0 0 0 2.7 0.13 343.49 343.49 0 0 0 68.64-78.48 32.2 32.2 0 0 0-0.1-34.78z M256 160a95.88 95.88 0 0 0-21.37 2.4 2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1 96 96 0 0 0-93.6-117.34z M165.78 233.66a2 2 0 0 0-3.38 1 96 96 0 0 0 115 115 2 2 0 0 0 1-3.38z",s:"fill:currentcolor;"}],H=[{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-0.27 17.77c48.36 75.7 127.24 134.9 221.1 134.9 92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47c-48.56-75-129.65-135.28-221.79-135.28z",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"},{d:"M176 256a80 80 0 1 0 160 0 80 80 0 1 0-160 0z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"}],U=[{d:"M384 80h-256c-26 0-43 14-48 40l-32 152v112a48.14 48.14 0 0 0 48 48h320a48.14 48.14 0 0 0 48-48v-112l-32-152c-5-27-23-40-48-40z",s:"fill:none;stroke:currentcolor;stroke-linejoin:round;stroke-width:32;"},{d:"M48 272l144 0 M320 272l144 0 M192 272a64 64 0 0 0 128 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],W=[{d:"M256 64c-106 0-192 86-192 192s86 192 192 192 192-86 192-192-86-192-192-192z m-6 304a20 20 0 1 1 20-20 20 20 0 0 1-20 20z m33.44-102c-16.21 10.88-18.44 20.85-18.44 30a14 14 0 0 1-28 0c0-21.91 10.08-39.33 30.82-53.26 19.28-12.94 30.18-21.14 30.18-39.17 0-12.26-7-21.57-21.49-28.46-3.41-1.62-11-3.2-20.34-3.09-11.72 0.15-20.82 2.95-27.83 8.59-13.22 10.64-14.34 22.22-14.34 22.39a14 14 0 1 1-28-1.35c0.11-2.43 1.8-24.32 24.77-42.8 11.91-9.58 27.06-14.56 45-14.78 12.7-0.15 24.63 2 32.72 5.82 24.21 11.45 37.51 30.54 37.51 53.68 0 33.83-22.61 49.02-42.56 62.43z",s:"fill:currentcolor;"}],q=[{d:"M416 64h-320a64.07 64.07 0 0 0-64 64v256a64.07 64.07 0 0 0 64 64h320a64.07 64.07 0 0 0 64-64v-256a64.07 64.07 0 0 0-64-64z m-80 64a48 48 0 1 1-48 48 48.05 48.05 0 0 1 48-48z m-240 288a32 32 0 0 1-32-32v-67.63l94.84-84.3a48.06 48.06 0 0 1 65.8 1.9l64.95 64.81-117.22 117.22z m352-32a32 32 0 0 1-32 32h-198.37l121.42-121.42a47.72 47.72 0 0 1 61.64-0.16l47.31 39.42z",s:"fill:currentcolor;"}],G=[{d:"M256 56c-110.28 0-200 89.72-200 200s89.72 200 200 200 200-89.72 200-200-89.72-200-200-200z m0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26z m48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z",s:"fill:currentcolor;"}],X=[{d:"M480 223.5q-5.5-76.5-60-130.75t-130.5-60.25q-8-0.5-13.74 4.75t-5.74 13.25q0 7.01 4.75 12.25t11.74 5.75q27.5 2 53.51 13 30.5 13.01 54.49 36.76t37.01 54.75q11.01 25.5 13.01 53.01 0.5 7.01 5.74 11.74t12.26 4.75q7.5 0 13.01-5.5 5.5-6 4.49-13.51z",s:"fill:currentcolor;"}],V=[{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32;"},{d:"M256 58l80 80-80 80",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],Z=[{d:"M448 256c0-106-86-192-192-192s-192 86-192 192 86 192 192 192 192-86 192-192z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M336 256l-160 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],J=[{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09 157.1 157.1 0 0 0-157.09-157.09z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M338.29 338.29l109.71 109.71",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32;"}],Q=[{d:"M454.05 176.55l-126.95-18.45-56.75-115.05c-1.55-3.15-4.1-5.7-7.25-7.25-7.9-3.9-17.5-0.65-21.45 7.25l-56.75 115.05-126.95 18.45c-3.5 0.5-6.7 2.15-9.15 4.65-6.15 6.35-6.05 16.45 0.3 22.65l91.85 89.55-21.7 126.45c-0.6 3.45-0.05 7.05 1.6 10.15 4.1 7.8 13.8 10.85 21.6 6.7l113.55-59.7 113.55 59.7c3.1 1.65 6.7 2.2 10.15 1.6 8.7-1.5 14.55-9.75 13.05-18.45l-21.7-126.45 91.85-89.55c2.5-2.45 4.15-5.65 4.65-9.15 1.35-8.75-4.75-16.85-13.5-18.15z",s:"fill:currentcolor;"}],ee=[{d:"M434.67 285.59v-29.8c0-98.73-80.24-178.79-179.2-178.79a179 179 0 0 0-140.14 67.36m-38.53 82v29.8c0 98.84 80.2 178.84 179.2 178.84a180.45 180.45 0 0 0 140-66.92 M32 256l44-44 46 44 M480 256l-44 44-46-44",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}],te=[{d:"M256 64c-106 0-192 86-192 192s86 192 192 192 192-86 192-192-86-192-192-192z",s:"fill:none;stroke:currentcolor;stroke-miterlimit:10;stroke-width:32;"},{d:"M256 128l0 144 96 0",s:"fill:none;stroke:currentcolor;stroke-linecap:round;stroke-linejoin:round;stroke-width:32;"}];function ae(e){return{attrs:{name:e},on:{beforeEnter(e){e.style.height=0,e.style.opacity=.1},enter(e){0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.opacity=1):(e.style.height="",e.style.opacity="")},afterEnter(e){e.style.height="",e.style.overflow="",e.style.opacity=""},beforeLeave(e){e.style.height=e.scrollHeight+"px",e.style.opacity=1},leave(e){0!==e.scrollHeight&&(e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.style.opacity=0)},afterLeave(e){e.style.height="",e.style.paddingTop="",e.style.paddingBottom="",e.style.marginTop="",e.style.marginBottom="",e.style.opacity="",e.style.overflow=""}}}}var le=h(e.defineComponent({name:"Alert",props:{type:{type:String,default:"warning"},closable:Boolean,showIcon:Boolean,icon:[String,Object,Array],message:String,description:String},setup(t,a){var{emit:l,slots:r}=a,n=e.ref(!1),o=()=>{n.value=!0,l("close")},i=e.computed(()=>["k-alert",{["k-alert-".concat(t.type)]:t.type,"k-alert-has-icon":t.showIcon,"k-alert-has-close":t.closable,"k-alert-has-description":t.description}]),s={info:G,error:K,success:j,warning:M},c=ae("k-alert-slide");return()=>{var a,l=t.showIcon?e.h(w,{attrs:{type:t.icon?t.icon:s[t.type]},class:"k-alert-icon"}):null,d=t.closable?e.h(w,{class:"k-alert-close",attrs:{type:_},on:{click:o}}):null,v=t.description?e.h("div",{class:"k-alert-description"},[t.description]):null,p=e.h("div",{class:"k-alert-message"},[t.message||(null===(a=r.default)||void 0===a?void 0:a.call(r))]);return e.h("transition",u([{},c]),[e.h("div",{class:i.value,directives:[{name:"show",value:!n.value}]},[l,e.h("div",{class:"k-alert-content"},[p,v]),d])])}}})),re={bind(e,t){var{value:a}=t;"function"==typeof a&&window.addEventListener("resize",a)},unbind(e,t){var{value:a}=t;"function"==typeof a&&window.removeEventListener("resize",a)}},ne=h(e.defineComponent({name:"Affix",directives:{resize:re},props:{offsetTop:{type:Number,default:0},offsetBottom:Number,target:{type:Function,default:()=>window}},setup(t,a){var{slots:l,emit:r}=a,n=t.target(),o=e.ref(),i=e.ref(!1),s=e.ref({}),u=e.ref({}),c=null,d=()=>{if(o.value&&n){var e=o.value.getBoundingClientRect(),a=n===window?{top:0,bottom:window.innerHeight}:n.getBoundingClientRect(),l=!1;if(null!=t.offsetBottom)a.bottom-e.bottom-t.offsetBottom<=0?(l=!0,s.value={bottom:"".concat(window.innerHeight-a.bottom+t.offsetBottom,"px"),width:"".concat(e.width,"px")}):(l=!1,s.value={});else e.top-a.top-t.offsetTop<=0?(l=!0,s.value={top:"".concat(a.top+t.offsetTop,"px"),width:"".concat(e.width,"px")}):(l=!1,s.value={});u.value=l?{height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}:null,i.value!==l&&(i.value=l,r("change",l))}};return e.onBeforeUnmount(()=>{var e;null===(e=n)||void 0===e||e.removeEventListener("scroll",d),null!=c&&c.disconnect()}),e.onMounted(()=>{e.nextTick(()=>{var e,a;null===(a=n=(null===(e=t.target())||void 0===e?void 0:e.value)||t.target())||void 0===a||a.addEventListener("scroll",d),d(),n&&n!==window&&"ResizeObserver"in window&&(c=new ResizeObserver(d)).observe(n)})}),e.watch(()=>[t.offsetTop,t.offsetBottom,t.target],()=>{e.nextTick(d)}),()=>{var t;return e.h("div",{style:u.value,ref:o,directives:[{name:"resize",value:d}]},[e.h("div",{style:s.value,class:{"k-affix":i.value}},[null===(t=l.default)||void 0===t?void 0:t.call(l)])])}}})),oe=e.defineComponent({name:"Avatar",props:{icon:[String,Array],shape:{type:String},size:{type:[Number,String],default:"default",validator:e=>"number"==typeof e||["large","small","default"].indexOf(e)>=0},src:String},setup(t,a){var{slots:l}=a,r=e.inject("KAvatarGroup",null),n=e.ref(),o=e.ref(),i=e.computed(()=>(null==r?void 0:r.size.value)||t.size),s=e.computed(()=>(null==r?void 0:r.shape.value)||t.shape),u=()=>{if(n.value&&o.value){var e=o.value.offsetWidth-8,t=n.value.offsetWidth||n.value.scrollWidth;if(t>e){var a=e/t;n.value.style.transform="scale(".concat(a,") translateX(-50%)")}else n.value.style.transform="scale(1) translateX(-50%)"}};return e.onMounted(u),e.onUpdated(u),()=>{var a,r=i.value,u=s.value,{src:c,icon:d}=t,v={};"number"==typeof r&&(v={width:"".concat(r,"px"),height:"".concat(r,"px"),lineHeight:"".concat(r,"px"),fontSize:"".concat(r/2,"px")});var p=null===(a=l.default)||void 0===a?void 0:a.call(l),h=null==p?void 0:p.filter(e=>{var t;return"Icon"===(null===(t=e.componentOptions)||void 0===t?void 0:t.tag)}).length,m=1===(null==p?void 0:p.length)&&"string"==typeof p[0].text&&""!==p[0].text.trim(),f=["k-avatar",{"k-avatar-lg":"large"==r,"k-avatar-sm":"small"==r,"k-avatar-image":c,"k-avatar-icon":d||h,"k-avatar-square":"square"==u}];return e.h("div",{ref:o,class:f,style:v},[d?e.h(w,{attrs:{type:d}}):c?e.h("img",{attrs:{src:c}}):m?e.h("span",{class:"k-avatar-string",ref:n},[p[0].text||p]):p])}}}),ie=h(oe),se=h(e.defineComponent({name:"Breadcrumb",props:{separator:{type:[String,Object],default:"/"}},setup(t,a){var l,{slots:r}=a;return e.provide("separator",(null===(l=r.separator)||void 0===l?void 0:l.call(r))||t.separator),()=>{var t;return e.h("nav",{class:"k-breadcrumb"},[e.h("ol",[null===(t=r.default)||void 0===t?void 0:t.call(r)])])}}})),ue=h(e.defineComponent({name:"BreadcrumbItem",props:{href:String,icon:[String,Array,Object]},setup(t,a){var{slots:l,emit:r}=a,n=e.inject("separator",null);return()=>{var a,o,i=l.icon?l.icon():t.icon?e.h(w,{attrs:{type:t.icon}}):null;return e.h("li",{class:"k-breadcrumb-item",on:{click:e=>r("click",e)}},[t.href?e.h("a",{class:"k-breadcrumb-link",attrs:{href:t.href}},[i,null===(a=l.default)||void 0===a?void 0:a.call(l)]):e.h("span",{class:"k-breadcrumb-link"},[i,null===(o=l.default)||void 0===o?void 0:o.call(l)]),e.h("span",{class:"k-breadcrumb-separator"},[n])])}}}));function ce(t,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return 1==t.length?y(t[0],a,l):y(e.h("span",[t]),a,l,r)}function de(e){var t=[],a=e=>{null==e||e.forEach(e=>{var l;b(e)&&(e.isComment||(e.tag||""!==(null===(l=e.text)||void 0===l?void 0:l.toString().trim()))&&(e.tag||!Array.isArray(e.children)?t.push(e):a(e.children)))})};return a(e),t}var ve=["default","red","orange","yellow","olive","green","teal","blue","volcano","violet","cyan","gold","lime","magenta","purple","pink","brown","gray"],pe=["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-top","right-bottom"],he=["small","default","large","middle"],me=e=>he.includes(e)?e:null,fe=h(e.defineComponent({name:"Button",props:{htmlType:{default:"button",validator:e=>["button","submit","reset"].includes(e)},icon:[String,Array],block:Boolean,size:{size:String,validator:e=>he.includes(e)},color:{validator:e=>ve.includes(e)},loading:Boolean,type:{validator:e=>["primary","danger","warning","default","text","link"].includes(e),default:"default"},disabled:{type:Boolean,default:!1},theme:{type:String,validator:e=>["outline","solid","light","dashed","card"].includes(e)},shape:String,href:String,target:String},emits:["click"],setup(t,a){var{emit:l,slots:r,attrs:n,listeners:o}=a,i=e.inject("KButtonGroup",null),s=e.inject("size",null),c=e.computed(()=>{var e;return t.size||(null==i||null===(e=i.size)||void 0===e?void 0:e.value)||me(s)||"default"}),d=e.computed(()=>{var e;return t.shape||(null==i||null===(e=i.shape)||void 0===e?void 0:e.value)}),v=e=>{t.loading||t.disabled?e.preventDefault():l("click",e)};return()=>{var a,l,i,s=de(null===(a=r.default)||void 0===a?void 0:a.call(r)),h=["k-btn",{["k-btn-".concat(t.type)]:!!t.type&&!t.color,"k-btn-outline":"outline"==t.theme,"k-btn-sm":"small"===c.value,"k-btn-block":!!t.block,"k-btn-loading":t.loading,"k-btn-icon-only":(i=s.filter(e=>{var t;return"transition"!==(null===(t=e.componentOptions)||void 0===t?void 0:t.tag)}),null!=i&&i.length?1===i.length&&"Icon"===(null===(l=i[0].componentOptions)||void 0===l?void 0:l.tag):t.icon||t.loading),["k-btn-".concat(t.color)]:ve.includes(t.color),"k-btn-lg":"large"===c.value,"k-btn-circle":"circle"===d.value,["k-btn-".concat(t.theme)]:!!t.theme&&"default"!==t.theme}],m=[],f=t.loading?X:t.icon;f&&m.push(e.h(w,{attrs:{type:f,spin:t.loading}}));var k=null==s?void 0:s.map(t=>"string"==typeof t.text?e.h("span",[t.text.trim()]):t);k&&(m=m.concat(k));var g={class:h,attrs:p(p({},n),{},{href:t.href,target:t.target,disabled:t.disabled,type:t.htmlType}),on:p(p({},o),{},{click:v})};return"link"===t.type&&t.href&&!t.disabled?e.h("a",u([{},g]),[m]):e.h("button",u([{},g]),[m])}}})),ke=h(e.defineComponent({name:"ButtonGroup",props:{size:{type:String,validator:e=>he.indexOf(e)>=0},shape:String},setup(t,a){var{slots:l}=a,{size:r,shape:n}=e.toRefs(t),o=e.inject("size",null);return e.provide("KButtonGroup",{size:t.size||me(o),shape:n}),()=>{var t,a=["k-btn-group",{"k-btn-group-sm":"small"==r.value,"k-btn-group-lg":"large"==r.value,"k-btn-group-circle":"circle"==n.value}];return e.h("div",{class:a},[null===(t=l.default)||void 0===t?void 0:t.call(l)])}}})),ge=e.defineComponent({name:"Badge",props:{count:[String,Number],dot:Boolean,color:String,status:{type:String,default:"default",validator:e=>["default","success","error","warning"].indexOf(e)>-1},text:String,maxCount:{type:Number,default:99}},setup(t,a){var{slots:l}=a;return()=>{var a,{maxCount:r,count:n,dot:o,color:i,status:s,text:u}=t,c=null===(a=l.default)||void 0===a?void 0:a.call(l),d=c&&c.length>0,v=null;"number"==typeof n&&n>0?v=n>r?"".concat(r,"+"):n:"string"==typeof n&&n.length>0&&(v=n);var p=[];if(!d&&(s||i)&&!o&&!v){var h=i&&/^#/.test(i),m=["k-badge-status-dot",{["k-badge-status-".concat(s)]:!!s,["k-badge-status-".concat(i)]:i&&!h}],f={backgroundColor:h?i:null};p.push(e.h("span",{class:m,style:f})),u&&p.push(e.h("span",{class:"k-badge-status-text"},[u]))}var k=null;if(null!==v||o){var g={"k-badge-count":!o&&null!==v,"k-badge-dot":o,"k-badge-no-child":!d,["k-badge-".concat(s)]:!!s&&!i},y={backgroundColor:i};k=e.h("sup",{class:g,style:y},[o?null:v])}return e.h("div",{class:"k-badge"},[c,k,p])}}}),ye=h(ge),be={bind(e,t){var{value:a}=t;"function"==typeof a&&window.addEventListener("scroll",a)},unbind(e,t){var{value:a}=t;"function"==typeof a&&window.removeEventListener("scroll",a)}},we=h(e.defineComponent({name:"BackTop",directives:{scroll:be},props:{height:{type:[Number],default:100},right:[Number],bottom:[Number],target:{type:Function,default:()=>document.body}},setup(t,a){var l,{emit:r,slots:n}=a,o=e.ref(!1),i=()=>{var e=document.body.scrollTop||document.documentElement.scrollTop||window.scrollY;o.value=e>=t.height},s=e=>{var a;r("click",e),null===(a=t.target)||void 0===a||a.call(t).scrollIntoView({behavior:"smooth",block:"start"})},u=null===(l=n.default)||void 0===l?void 0:l.call(n);u&&0!=u.length||(u=e.h("div",{class:"k-backtop-content"},[e.h(w,{attrs:{type:T}})]));var c={bottom:"".concat(t.bottom,"px"),left:"".concat(t.right,"px")};return()=>e.h("transition",{attrs:{name:"k-backtop-fade"}},[e.h("div",{class:"k-backtop",on:{click:s},directives:[{name:"show",value:o.value},{name:"scroll",value:i}],style:c},[u])])}})),xe={inserted(e,t,a){var{value:l}=t;if(l){var r=e.parentNode;if(!r)return!1;(l.$el?l.$el:(!0===l?document.body:l)||document.body).appendChild(e),e.__data={parentNode:r}}},unbind(e,t){var{value:a}=t;a&&(e.__data.parentNode.appendChild(e),e.__data=null)}};function Se(e){var{refSelection:t,refPopper:a,currentPlacement:l,position:r=null,transOrigin:n,top:o,left:i,offset:s=3}=e;if(a.value){var u=null,c=r&&"number"==typeof r.x&&"number"==typeof r.y;if(c)u={width:0,height:0,top:r.y,bottom:r.y,left:r.x,right:r.x};else{if(!t||!t.value)return;u=(t.value.$el||t.value).getBoundingClientRect()}var d=a.value.offsetHeight,v=a.value.offsetWidth,{clientHeight:p,clientWidth:h,scrollTop:m,scrollLeft:f}=document.documentElement,k=u.left+u.width/2-v/2,g=u.top+u.height/2-d/2,y=u.top>d+s,b=p-u.bottom>d+s,w=u.left>v+s,x=h-u.right>v+s,S=h-u.left>v,M=u.right>v,z=p-u.top>d,C=u.bottom>d,T=k>0&&k+v<h,B=g>0&&g+d<p,[O,A]=l.value.split("-");c&&!A&&("top"===O||"bottom"===O?A="left":"left"!==O&&"right"!==O||(A="top")),"top"===O&&!y&&b?O="bottom":"bottom"===O&&!b&&y?O="top":"left"===O&&!w&&x?O="right":"right"===O&&!x&&w&&(O="left"),"top"===O||"bottom"===O?"left"===A&&!S&&M?A="right":"right"===A&&!M&&S?A="left":A||T||(S?A="left":M&&(A="right")):"left"!==O&&"right"!==O||("top"===A&&!z&&C?A="bottom":"bottom"===A&&!C&&z?A="top":A||B||(z?A="top":C&&(A="bottom")));var j=A?"".concat(O,"-").concat(A):O,L=0,N=0,D="center",P="center";"top"===O?(L=u.top-d-s,P="bottom"):"bottom"===O?(L=u.bottom+s,P="top"):"top"===A?(L=u.top,P="top"):"bottom"===A?(L=u.bottom-d,P="bottom"):(L=u.top+(u.height-d)/2,P="center"),"left"===O?(N=u.left-v-s,D="right"):"right"===O?(N=u.right+s,D="left"):"left"===A?(N=u.left,D="left"):"right"===A?(N=u.right-v,D="right"):(N=u.left+(u.width-v)/2,D="center"),N<0?N=0:N+v>h&&(N=h-v),L<0?L=0:L+d>p&&(L=p-d),o.value=L+m,i.value=N+f,n.value="".concat(D," ").concat(P),l.value!==j&&(l.value=j)}}function Me(e){return null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length}function ze(e){if(Me(e))return!1;var t=String(e).trim();return/^[+-]?((\d+(\.\d*)?)|(\.\d+))([eE][+-]?\d+)?$/.test(t)}function Ce(e){var t=String(e);return/e/i.test(t)?Number(e).toFixed(20).replace(/\.?0+$/,""):e}function Te(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().split(".");return e[1]?e[1].length:0}function Be(e,t){var a=Ce(e),l=Ce(t),r=Math.max(Te(a),Te(l)),n=Math.pow(10,r);return Ae((Math.round(Number(a)*n)+Math.round(Number(l)*n))/n)}function Oe(e){return/e/i.test(String(e))}function Ae(e){return Oe(e)?Ce(e):e}function je(e,t){var a=Ce(e),l=Ce(t),r=Math.max(Te(a),Te(l)),n=Math.pow(10,r);return Ae((Math.round(Number(a)*n)-Math.round(Number(l)*n))/n)}function Le(e,t){var a=Ce(e),l=Ce(t),r=Te(a)+Te(l);return Ae(Number(String(a).replace(".",""))*Number(String(l).replace(".",""))/Math.pow(10,r))}var Ne=h(e.defineComponent({name:"InputGroup",props:{block:Boolean,compact:{type:Boolean,default:!0},size:{type:String,validator:e=>he.indexOf(e)>=0}},setup(t,a){var{slots:l}=a,r=e.inject("size",null);return e.provide("size",t.size||me(r)),()=>{var a,{size:r,compact:n,block:o}=t,i={style:{},class:["k-input-group",{"k-input-group-compact":n,"k-input-group-block":o,"k-input-group-lg":"large"==r,"k-input-group-sm":"small"==r}]};if(r||n||(i.style.gap="8px"),!n)if(Array.isArray(r))i.style={gap:"".concat(r[1],"px ").concat(r[0],"px")};else if(/small|middle|large/.test(r)){i.style.gap={small:8,middle:16,large:24}[r]+"px"}else null!=r&&(i.style.gap="".concat(r,"px"));var s=de(null===(a=l.default)||void 0===a?void 0:a.call(l));return n&&(s=s.map((e,t)=>y(e,{class:{"k-input-group-first-item":0==t,"k-input-group-item":t>0&&t<s.length-1,"k-input-group-last-item":t==s.length-1}},!0))),e.h("div",u([{},i]),[s])}}})),De=e.defineComponent({name:"InputBox",props:{multiple:Boolean,disabled:Boolean,size:String,type:String,theme:String,shape:String,inputType:String,value:[String,Number,Object],showPassword:Boolean,inputRef:Object},setup(t,a){var{emit:l,slots:r,attrs:n,listeners:o}=a,i=e=>{l("input",e)},s=e=>{l("focus",e)},c=e=>{l("blur",e)};return()=>{var{disabled:a,multiple:l,size:r,type:d,theme:v,shape:h,inputType:m}=t,f={ref:t.inputRef,class:[{["k-".concat(m)]:!l,["k-".concat(m,"-text")]:l,["k-".concat(m,"-disabled")]:a,["k-".concat(m,"-sm")]:"small"==r&&!l,["k-".concat(m,"-lg")]:"large"==r&&!l,["k-".concat(m,"-").concat(v)]:"solid"!=v&&!l&&v,["k-".concat(m,"-circle")]:"circle"==h&&!l}],attrs:p(p({},n),{},{disabled:a,type:d}),domProps:{value:t.value},on:p(p({},o),{},{focus:s,blur:c,input:i})};return!0===t.showPassword&&"password"==d&&(f.attrs.type="text"),e.h("input",u([{},f,{attrs:{single:!0}}]))}}}),Pe=e.defineComponent({name:"Input",props:{clearable:{type:Boolean,default:!0},visiblePasswordIcon:{type:Boolean,default:!0},size:{type:String,validator:e=>he.indexOf(e)>=0},value:{type:[String,Number,Array,Object]},disabled:Boolean,type:{validator:e=>["text","textarea","password","url","email","date","search","hidden"].indexOf(e)>=0,default:"text"},icon:[String,Array],suffix:String,prefix:String,theme:String,shape:String,formatter:Function,parser:Function,inputType:{type:String,default:"input"}},setup(t,a){var{slots:l,emit:r,attrs:n,expose:o,listeners:i}=a,s=e.ref(t.value),c=e.ref(!1),d=e.ref(!1),v=e.ref(),h=e.inject("size",null);e.provide("size",t.size||me(h)),e.watch(()=>t.value,e=>{s.value=e});var m=()=>{null==v||v.value.focus()};o({focus:m,blur:()=>{null==v||v.value.blur()}});var f=()=>{r("input",""),s.value="",e.nextTick(()=>{m()})},k=()=>{!t.disabled&&r("icon-click")},g=e=>{t.disabled||(d.value=!d.value)},y=e=>{t.disabled||r("search",s.value)};return()=>{var a,o,{icon:m,size:b=me(h),disabled:x,type:S,clearable:M,suffix:z,theme:C,prefix:T,shape:B,inputType:O}=t,A=null===(a=l.suffix)||void 0===a?void 0:a.call(l),j=null===(o=l.prefix)||void 0===o?void 0:o.call(l),L=(m||"search"in i||A||z||j||T||"password"==S||M||l.controls)&&"hidden"!==S,N={attrs:p({},n),props:{disabled:x,multiple:L,size:b,type:S,theme:C,shape:B,inputRef:v,inputType:O,value:s.value,showPassword:d.value},on:p(p({},i),{},{input:e=>{var t=e.target.value;s.value=t,r("input",t)},focus:e=>{c.value=!0,r("focus",e)},blur:e=>{c.value=!1,r("blur",e)}})},D=e.h(De,u([{},N]));if(!L)return D;var P=M&&!Me(s.value)&&"password"!=S&&void 0===n.readonly,E={class:{["k-".concat(O)]:!0,["k-".concat(O,"-focus")]:c.value,["k-".concat(O,"-disabled")]:x,["k-".concat(O,"-has-clear")]:P,["k-".concat(O,"-sm")]:"small"==b,["k-".concat(O,"-lg")]:"large"==b,["k-".concat(O,"-").concat(C)]:C&&"solid"!=C,["k-".concat(O,"-circle")]:"circle"==B}};if(j||A){var I,Y=[];j&&Y.push(e.h("div",{class:"k-input-group-prefix"},[j]));var _=[];m&&_.push(e.h(w,{attrs:{type:m},class:"k-".concat(O,"-icon"),on:{click:k}})),T&&_.push(e.h("div",{class:"k-".concat(O,"-prefix")},[T])),_.push(D),M&&_.push(e.h(w,{attrs:{type:K},class:["k-".concat(O,"-clearable"),{["k-".concat(O,"-clearable-hidden")]:!P}],on:{click:f}}));var F=[];return A&&F.push(e.h("div",{class:"k-input-group-suffix"},[A])),l.controls&&_.push(null===(I=l.controls)||void 0===I?void 0:I.call(l)),e.h(Ne,{attrs:{size:b}},[Y,e.h("div",u([{},E,{attrs:{mult:!0}}]),[_]),F])}var R,U=(()=>{var a,{suffix:r,visiblePasswordIcon:n,type:o,inputType:s}=t,u="search"in i?e.h(w,{attrs:{type:J},class:"k-input-search-icon",on:{click:y}}):null,c="password"==o&&n?e.h(w,{class:"k-input-password-icon",attrs:{type:d.value?$:H},on:{click:g}}):null,v=(null===(a=l.suffix)||void 0===a?void 0:a.call(l))||(r?e.h("div",{class:"k-input-suffix"},[r]):null);return c||u||v})(),W=[];return m&&W.push(e.h(w,{attrs:{type:m},class:"k-".concat(O,"-icon"),on:{click:k}})),T&&W.push(e.h("div",{class:"k-".concat(O,"-prefix")},[T])),W.push(D),M&&W.push(e.h(w,{attrs:{type:K},class:["k-".concat(O,"-clearable"),{["k-".concat(O,"-clearable-hidden")]:!P}],on:{click:f}})),U&&W.push(U),l.controls&&W.push(null===(R=l.controls)||void 0===R?void 0:R.call(l)),e.h("div",u([{},E,{attrs:{mult:!0}}]),[...W])}}}),Ee=h(Pe),Ie=h(e.defineComponent({props:{value:[Array,Number,String],min:{type:Number,default:-1/0},max:{type:Number,default:1/0},disabled:Boolean,clearable:Boolean,readonly:Boolean,formatter:Function,parser:Function,size:{type:String,validator:e=>he.indexOf(e)>=0},precision:Number,suffix:String,prefix:String,controls:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},step:{type:Number,default:1},theme:String,icon:[String,Array],id:String},setup(t,a){var{slots:l,attrs:r,emit:n,listeners:o}=a,i=e.inject("size",null),s=(e,a,l)=>{var r="",n="",{min:o,max:i,precision:s,formatter:u,parser:c}=t;if(ze(e)?(/e/i.test(e)&&l&&(e=Ce(e)),r=String(e),n=e):Me(e)?(r="",n=""):(r=String(e),n=u?(null==c?void 0:c(String(e)))||e:String(e)),u){var d=(null==c?void 0:c(String(r)))||r;r=u(String(d))}return a&&(s>0&&(n=function(e,t){var a=Number(e).toFixed(t);return Oe(e)?a:Number(a)}(n,s)),n>i?(n=i,r=(null==u?void 0:u(String(i)))||i):n<o&&(n=o,r=(null==u?void 0:u(String(o)))||o)),{input:r,output:n}},{input:c,output:d}=s(t.value),v=e.ref(c),h=e.ref(d),m=(e,a)=>{if(!t.disabled){var{step:l}=t;ze(h.value)&&!Me(h.value)||(h.value=0);var r=1==a?Be(String(h.value),String(l)):je(String(h.value),String(l)),{input:o,output:i}=s(r,!0);v.value=o,h.value=i,e.preventDefault(),n("input",i),n("change",{target:{value:i}})}};e.watch(()=>t.value,e=>{var{input:t,output:a}=s(e,!1);v.value=t,h.value=a});return()=>{var a={attrs:p(p({},r),{},{readonly:t.readonly}),props:{inputType:"input-number",value:v.value,clearable:!1,size:t.size||me(i),disabled:t.disabled,suffix:t.suffix,prefix:t.prefix,icon:t.icon,theme:t.theme},on:p(p({},o),{},{input:e=>{(e=>{var a=e,{input:l,output:r}=s(a,!1,!1);if(v.value=l,ze(r)||Me(a)){var{max:o,min:i}=t;r&&r>o||r&&r<i||(h.value=r,n("input",r))}})(e)},change:e=>{},blur:e=>(e=>{var{input:t,output:a}=s(h.value,!0,!0);v.value=t,h.value=a,n("input",a),n("blur",e)})(e),keydown:e=>(e=>{t.keyboard&&("ArrowUp"===e.key?m(e,1):"ArrowDown"===e.key&&m(e,0))})(e)})};return e.h(Ee,u([{},a,{scopedSlots:{suffix:()=>{var e;return null===(e=l.suffix)||void 0===e?void 0:e.call(l)},prefix:()=>{var e;return null===(e=l.prefix)||void 0===e?void 0:e.call(l)},controls:()=>t.controls&&!t.readonly?e.h("div",{class:"k-input-number-controls"},[e.h("span",{class:"k-input-number-control",on:{click:e=>m(e,1)}},[e.h(w,{attrs:{type:Y}})]),e.h("span",{class:"k-input-number-control",on:{click:e=>m(e)}},[e.h(w,{attrs:{type:Y}})])]):null}}]))}}})),Ye=e.defineComponent({name:"TextArea",props:{value:[String,Number,Object,Array],theme:String,size:String,disabled:Boolean},setup(t,a){var{attrs:l,emit:r,listeners:n}=a,o=e.ref(t.value);return e.watch(()=>t.value,e=>{o.value=e}),()=>{var{theme:a,disabled:i,size:s}=t,c={class:["k-textarea",{["k-textarea-".concat(a)]:"light"==a,"k-textarea-sm":"small"==s,"k-textarea-lg":"large"==s}],attrs:p(p({},l),{},{disabled:i}),domProps:{value:o.value},on:p(p({},n),{},{input:e=>{var t=e.target.value;r("input",t)}})};return e.h("textarea",u([{},c]))}}}),Ke=h(Ye),_e=h(e.defineComponent({name:"Option",props:{value:{type:[String,Number],required:!0},label:{type:[String,Number]},disabled:Boolean,checked:Boolean,active:Boolean,multiple:Boolean},methods:{},setup(t,a){var l,{slots:r,emit:n}=a,o=t.label||(null===(l=r.default)||void 0===l?void 0:l.call(r))||t.value,i=e.computed(()=>t.checked),s=()=>{t.disabled||n("select",{value:t.value,label:o})};return()=>{var{multiple:a,disabled:l}=t,r=["k-select-item",{"k-select-item-selected":i.value,"k-select-item-active":t.active,"k-select-item-disabled":l}];return e.h("li",{class:r,on:{click:s}},[e.h("span",[o,a?e.h(w,{attrs:{type:L}}):null])])}}})),Fe=e.defineComponent({name:"Empty",props:{description:String,image:String,imageStyle:Object},setup(t,a){var{slots:r}=a,n=e.inject("locale",l),o=e.computed(()=>n instanceof Object&&"value"in n?n.value:n);return()=>{var a,{image:l,imageStyle:n,description:i}=t;return e.h("div",{class:"k-empty"},[e.h("div",{class:"k-empty-content"},[l||r.image?r.image?r.image():e.h("img",{attrs:{src:l},class:"k-empty-image",style:n}):e.h(w,{attrs:{type:U},class:"k-empty-icon"}),null!==i?e.h("p",{class:"k-empty-description"},[i||(null===(a=r.description)||void 0===a?void 0:a.call(r))||(null==o?void 0:o.value.k.empty.description)]):null,r.default?e.h("div",{class:"k-empty-footer"},[r.default()]):null])])}}}),Re=h(Fe),$e=e.defineComponent({name:"Select",directives:{transfer:xe,resize:re},props:{placeholder:String,size:{default:"default",validator:e=>["small","large","default"].indexOf(e)>=0},placement:{validator:e=>["top","top-left","top-right","bottom","bottom-left","bottom-right"].includes(e),default:"bottom-left"},width:Number,maxTagCount:Number,value:[String,Number,Array],clearable:{type:Boolean,default:!0},filterable:Boolean,block:Boolean,disabled:Boolean,multiple:Boolean,loading:Boolean,bordered:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},options:Array,theme:String,emptyText:String,loadingText:String,icon:[String,Array],shape:String,arrowIcon:[String,Array]},setup(t,a){var{slots:r,emit:n,attrs:o,listeners:i}=a,s=e.computed(()=>{var t=e.inject("locale",l);return t instanceof Object&&"value"in t?t.value:t}),c=e.ref(!1),d=e.ref(!1),v=e.ref(t.multiple?t.value||[]:Me(t.value)?[]:[t.value]),h=e.ref(!1),m=e.ref(""),f=e.ref(),k=e.ref(""),g=e.ref(!1),y=e.ref(),b="search"in i,x=e.ref(),S=e.ref("bottom"),M=e.ref(),z=e.ref(0),C=e.ref(0),T=e.ref(t.placement),B=e.ref(),O=e.ref(-1),A=e.ref(0),j=e.ref(!1),L=e.ref(0);e.onBeforeUpdate(()=>{L.value++}),e.watch(()=>t.placement,e=>{T.value=e,c.value&&I()}),e.watch(()=>t.options,e=>{c.value&&I()},{deep:!0}),e.watch(()=>t.value,e=>{v.value=t.multiple?e||[]:Me(e)?[]:[e],c.value&&I()});var N=()=>{var e=x.value,t=x.value.children[0].children[O.value],a=t.offsetTop,l=t.offsetHeight,r=a-e.clientHeight/2+l/2;e.scrollTop=r},D=e=>{var t=e.key;if(c.value&&0!=G.value.size||!j.value){if(c.value){if("ArrowDown"===t){var a=O.value;return a<A.value-1?a+=1:a=0,O.value=a,N(),void e.preventDefault()}if("ArrowUp"===t){var l=O.value;return l>=1?l-=1:l=A.value-1,O.value=l,N(),void e.preventDefault()}if("Enter"===t&&O.value>=0&&(j.value||g.value)){var{label:r,value:n}=G.value[O.value];return R({label:r,value:n}),void e.preventDefault()}"Escape"==t&&(j.value||g.value)&&(c.value=!1,F(),e.preventDefault())}}else"ArrowDown"!==t&&"ArrowUp"!==t||q()};e.onBeforeMount(()=>{document.removeEventListener("keydown",D),document.removeEventListener("click",Y)});var P=e.computed(()=>G.value.filter(e=>v.value.includes(e.value)).map(e=>e.label)),I=()=>{e.nextTick(()=>{var e;k.value=null===(e=M.value)||void 0===e?void 0:e.offsetWidth,Se({refSelection:M,refPopper:x,currentPlacement:T,transOrigin:S,top:C,left:z})})};e.onMounted(()=>{e.nextTick(()=>{var e;k.value=null===(e=M.value)||void 0===e?void 0:e.offsetWidth}),document.addEventListener("keydown",D)});var Y=e=>{var t,a=(null===(t=M.value)||void 0===t?void 0:t.$el)||M.value;x.value&&!x.value.contains(e.target)&&a&&!a.contains(e.target)&&(c.value=!1,F())},F=()=>{O.value=-1,(t.filterable||b)&&setTimeout(()=>{m.value="",y.value&&(y.value.value="",y.value.style.width=""),h.value=!1},300)},R=e=>{var a,{value:l,label:r}=p({},e),o=!0;t.multiple?((null===(a=v.value)||void 0===a?void 0:a.indexOf(l))>=0?(o=!1,v.value=v.value.filter(e=>e!==l)):v.value.push(l),I(),(b||t.filterable)&&(y.value.value="",m.value="",W())):(v.value=[l],c.value=!1,n("openChange",!1),F(),O.value=-1);var i=t.multiple?v.value:v.value[0];n("input",i),n("change",i),n("select",{value:l,label:r,selected:o})},$=t=>{m.value=t.target.value,O.value=-1,e.nextTick(()=>{t.target.style.width=f.value.offsetWidth+"px",I()}),b&&(clearTimeout(B.value),B.value=setTimeout(()=>{d.value?(c.value=!0,n("openChange",!0),I()):(d.value=!0,document.addEventListener("click",Y),e.nextTick(()=>{c.value=!0,n("openChange",!0),I()})),n("search",t)},500))},H=t=>{h.value&&e.nextTick(e=>{y.value.focus(),g.value=!0})},U=e=>{v.value=[],n("input",t.multiple?[]:""),n("change",t.multiple?[]:""),F(),e.stopPropagation()},W=()=>{(t.filterable||b)&&(h.value=!0,e.nextTick(()=>{var e;null===(e=y.value)||void 0===e||e.focus(),g.value=!0}))},q=function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.disabled||(b?W():d.value?(c.value=a||!c.value,n("openChange",c.value),c.value?(I(),W()):F()):(d.value=!0,document.addEventListener("click",Y),e.nextTick(()=>{c.value=!0,n("openChange",!0),I(),W()})))},G=e.computed(()=>{L.value;var e,{options:a,loading:l}=t;if(l)return[];a||(a=[],de(null===(e=r.default)||void 0===e?void 0:e.call(r)).forEach((e,t)=>{var l,r,{label:n,value:o,disabled:i}=(null==e||null===(l=e.componentOptions)||void 0===l?void 0:l.propsData)||{},{children:s=[]}=null==e?void 0:e.componentOptions;a.push({value:o,disabled:i,label:n||(null===(r=s[0])||void 0===r?void 0:r.text)||o})}));return a}),V=()=>{var a,l=[],r=(a=m.value,t.filterable&&""!==a.trim()?G.value.filter(e=>e.label.toLowerCase().includes(a.toLowerCase())):G.value);return A.value=r.length,r.forEach((a,r)=>{var{label:n,value:o,disabled:i}=p({},a),s=(e=>{var a;return t.multiple?(null===(a=v.value)||void 0===a?void 0:a.indexOf(e))>=0:!Me(v.value)&&v.value[0]===e})(o);l.push(e.h(_e,{on:{select:R,mouseenter:()=>(e=>{O.value=e})(r)},key:"".concat(o,"-").concat(n),attrs:{active:O.value==r,value:o,label:n,disabled:i,checked:s,multiple:t.multiple}}))}),l},Z=e=>{var{key:a}=e;"Backspace"===a&&""==m.value&&t.multiple&&v.value.length>0&&(v.value=v.value.slice(0,-1),n("input",v.value),n("change",t.multiple?v.value:v.value[0]||""),I())},J=e.computed(()=>t.clearable&&!t.disabled&&!Me(v.value)&&!Me(P.value)),Q=()=>{var a=null;if(d.value){var l=V(),r={ref:x,style:{minWidth:"".concat(k.value,"px"),left:"".concat(z.value,"px"),top:"".concat(C.value,"px"),transformOrigin:S.value},class:["k-select-dropdown","k-scroll",{"k-select-dropdown-multiple":t.multiple,"k-select-dropdown-sm":"small"==t.size}]},n=e.h("div",{class:"k-select-loading"},[e.h(w,{attrs:{type:X,spin:!0}}),e.h("span",[s.value.k.select.loading])]);a=e.h("transition",{attrs:{name:"".concat("k-select")}},[e.h("div",u([{directives:[{name:"transfer",value:!0},{name:"show",value:c.value}]},r]),[t.loading?n:l.length?e.h("ul",[l]):e.h(Re,{on:{click:H},attrs:{description:s.value.k.select.emptyText}})])])}return a};return()=>{var{disabled:a,size:l,multiple:r,placeholder:n,showArrow:o,bordered:i,theme:d,arrowIcon:p,icon:k,shape:x,filterable:S}=t,z=[];void 0===p&&(p=E);var C,T={ref:y,class:"k-select-search",autoComplete:"off",on:{change:e=>e.stopPropagation(),keydown:Z,input:$,blur:()=>{c.value||(h.value=!1)}}},B=e.h("div",{directives:[{name:"show",value:h.value}],key:"search",class:"k-select-search-wrap"},[e.h("input",u([{},T])),e.h("span",{class:"k-select-search-mirror",ref:f},[m.value])]),O=n||(null==s?void 0:s.value.k.select.placeholder),A=O&&Me(P.value)&&!m.value?e.h("div",{class:"k-select-placeholder"},[O]):null,L={display:m.value.length?"none":""},N=r?e.h("div",{class:"k-select-labels",attrs:{name:"k-select-tag"}},[(C=P.value.map((a,l)=>e.h("span",{class:"k-select-tag",key:a},[a,e.h(w,{attrs:{type:_},on:{click:e=>((e,a)=>{t.disabled||(v.value.splice(a,1),e.stopPropagation(),I())})(e,l)}})])),t.maxTagCount&&t.maxTagCount>0&&C.length>t.maxTagCount&&(C=C.slice(0,t.maxTagCount)).push(e.h("span",{class:"k-select-tag"},["+",P.value.length-t.maxTagCount,"..."])),C),B]):Me(P.value)?null:e.h("div",{class:"k-select-label",style:L},[P.value[0]]);z.push(N),A&&z.push(A),!S&&!b||r||z.push(B);var D={width:"".concat(t.width,"px")},Y=!b&&o?e.h(w,{class:"k-select-arrow",attrs:{type:p}}):null,F=["k-select",{"k-select-disabled":a,"k-select-block":t.block,"k-select-opened":c.value,"k-select-borderless":!1===i,"k-select-lg":"large"==l,"k-select-sm":"small"==l,"k-select-light":"light"==d,"k-select-has-icon":!!k,"k-select-circle":"circle"==x&&!r,"k-select-multiple":r,"k-select-show-search":g.value,"k-select-show-tags":r&&!Me(P.value),"k-select-has-clear":J.value}],R=J.value?e.h(w,{class:"k-select-clearable",attrs:{type:K},on:{click:U}}):null;return e.h("div",{attrs:{tabIndex:"0"},class:F,style:D,directives:[{name:"resize",value:I}],on:{click:q,focus:()=>j.value=!0,blur:()=>j.value=!1},ref:M},[k?e.h(w,{attrs:{type:k},class:"k-select-icon"}):null,e.h("div",{class:"k-select-selection"},[z]),e.h("span",{class:"k-select-suffix"},[Y,R]),Q()])}}}),He=h($e),Ue={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],pu