@vaebe/ccui 2.0.0-beta.0 → 2.0.1-beta.2

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 (83) hide show
  1. package/README.md +4 -0
  2. package/button/index.es.js +28 -22
  3. package/button/index.umd.js +1 -1
  4. package/calendar/index.es.js +445 -90
  5. package/calendar/index.umd.js +1 -1
  6. package/ccui-cli.css +1 -1
  7. package/check-box/index.es.js +8 -2
  8. package/check-box/index.umd.js +1 -1
  9. package/chunk-Ndeg2fpE.js +20 -0
  10. package/collapse/index.es.js +10 -7
  11. package/collapse/index.umd.js +1 -1
  12. package/config-provider/chunk-C_CI6nMA.js +13 -0
  13. package/config-provider/en-BG83iZ_P.js +24 -0
  14. package/config-provider/index.es.js +408 -53
  15. package/config-provider/index.umd.js +1 -1
  16. package/config-provider/ja-B-93MQG5.js +56 -0
  17. package/config-provider/ko-86th3uXt.js +56 -0
  18. package/config-provider/zh-cn-BQE-LNg1.js +59 -0
  19. package/date-picker/ccui-cli.css +1 -1
  20. package/date-picker/index.es.js +664 -482
  21. package/date-picker/index.umd.js +1 -1
  22. package/drawer/index.es.js +271 -279
  23. package/drawer/index.umd.js +1 -1
  24. package/dropdown/index.es.js +187 -171
  25. package/dropdown/index.umd.js +1 -1
  26. package/empty/index.es.js +341 -24
  27. package/empty/index.umd.js +1 -1
  28. package/en-BVwCvuzF.js +24 -0
  29. package/float-button/index.es.js +1134 -46
  30. package/float-button/index.umd.js +1 -1
  31. package/form/index.es.js +1357 -261
  32. package/form/index.umd.js +1 -1
  33. package/icon/index.es.js +93 -10
  34. package/icon/index.umd.js +1 -1
  35. package/image/index.es.js +353 -36
  36. package/image/index.umd.js +1 -1
  37. package/input/index.es.js +24 -15
  38. package/input/index.umd.js +1 -1
  39. package/input-number/index.es.js +45 -25
  40. package/input-number/index.umd.js +1 -1
  41. package/ja-B4U4rt8A.js +56 -0
  42. package/ko-BG35I8uK.js +56 -0
  43. package/menu/index.es.js +3 -1
  44. package/menu/index.umd.js +1 -1
  45. package/message/index.es.js +1179 -86
  46. package/message/index.umd.js +1 -1
  47. package/modal/index.es.js +735 -335
  48. package/modal/index.umd.js +1 -1
  49. package/notification/index.es.js +1176 -83
  50. package/notification/index.umd.js +1 -1
  51. package/package.json +9 -9
  52. package/pagination/index.es.js +381 -60
  53. package/pagination/index.umd.js +1 -1
  54. package/popconfirm/index.es.js +469 -143
  55. package/popconfirm/index.umd.js +1 -1
  56. package/popover/index.es.js +192 -175
  57. package/popover/index.umd.js +1 -1
  58. package/radio/index.es.js +8 -2
  59. package/radio/index.umd.js +1 -1
  60. package/rate/index.es.js +22 -12
  61. package/rate/index.umd.js +1 -1
  62. package/select/index.es.js +135 -53
  63. package/select/index.umd.js +1 -1
  64. package/slider/index.es.js +165 -155
  65. package/slider/index.umd.js +1 -1
  66. package/steps/index.es.js +1140 -49
  67. package/steps/index.umd.js +1 -1
  68. package/switch/index.es.js +2 -0
  69. package/switch/index.umd.js +1 -1
  70. package/tabs/index.es.js +31 -5
  71. package/tabs/index.umd.js +1 -1
  72. package/tag/index.es.js +53 -35
  73. package/tag/index.umd.js +1 -1
  74. package/tooltip/index.es.js +78 -77
  75. package/tooltip/index.umd.js +1 -1
  76. package/tree/ccui-cli.css +1 -1
  77. package/tree/index.es.js +1491 -276
  78. package/tree/index.umd.js +1 -1
  79. package/typography/index.es.js +1213 -125
  80. package/typography/index.umd.js +1 -1
  81. package/vue-ccui.es.js +8726 -7604
  82. package/vue-ccui.umd.js +1 -1
  83. package/zh-cn-C8nbfD5S.js +59 -0
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});function n(e,t,n){let r=e;return t&&(r+=`__${t}`),n&&(r+=`--${n}`),r}function r(e,t=!1){let r=t?`.ccui-${e}`:`ccui-${e}`;return{b:()=>n(r),e:e=>e?n(r,e):``,m:e=>e?n(r,``,e):``,em:(e,t)=>e&&t?n(r,e,t):``,is:e=>`is-${e}`}}var i=/^[a-z0-9]+(-[a-z0-9]+)*$/,a=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!o(a)?null:a}let a=i[0],s=a.split(`-`);if(s.length>1){let e={provider:r,prefix:s.shift(),name:s.join(`-`)};return t&&!o(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!o(e,n)?null:e}return null},o=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function s(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var c=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),u=Object.freeze({...c,...l}),d=Object.freeze({...u,body:``,hidden:!1});function f(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function p(e,t){let n=f(e,t);for(let r in d)r in l?r in e&&!(r in n)&&(n[r]=l[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function m(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=p(r[e]||i[e],a)}return o(t),n.forEach(o),p(e,a)}function h(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=s(e);for(let i in r){let a=r[i];a&&(t(i,m(e,i,a)),n.push(i))}return n}var g={provider:``,aliases:{},not_found:{},...c};function _(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function v(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!_(e,g))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!_(t,d))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!_(t,d))return null}return t}var y=Object.create(null);function b(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function x(e,t){let n=y[e]||(y[e]=Object.create(null));return n[t]||(n[t]=b(e,t))}function S(e,t){return v(t)?h(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function C(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var w=!1;function T(e){return typeof e==`boolean`&&(w=e),w}function E(e){let t=typeof e==`string`?a(e,!0,w):e;if(t){let e=x(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function D(e,t){let n=a(e,!0,w);if(!n)return!1;let r=x(n.provider,n.prefix);return t?C(r,n.name,t):(r.missing.add(n.name),!0)}function O(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),w&&!t&&!e.prefix){let t=!1;return v(e)&&(e.prefix=``,h(e,(e,n)=>{D(e,n)&&(t=!0)})),t}let n=e.prefix;return o({prefix:n,name:`a`})?!!S(x(t,n),e):!1}var k=Object.freeze({width:null,height:null}),A=Object.freeze({...k,...l}),ee=/(-?[0-9.]*[0-9]+[0-9.]*)/g,te=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function j(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ee);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=te.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ne(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function re(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ie(e,t,n){let r=ne(e);return re(r.defs,t+r.content+n)}var ae=e=>e===`unset`||e===`undefined`||e===`none`;function oe(e,t){let n={...u,...e},r={...A,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ie(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?l:s,d=j(f,c/l)):(d=o===`auto`?c:o,f=s===null?j(d,l/c):s===`auto`?l:s);let p={},m=(e,t)=>{ae(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,c,l];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var se=/\sid="(\S+)"/g,ce=new Map;function le(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=ce.get(e)||0;return ce.set(e,t+1),t?`${e}${t}`:e}function ue(e){let t=[],n;for(;n=se.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=le(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var M=Object.create(null);function de(e,t){M[e]=t}function N(e){return M[e]||M[``]}function P(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var F=Object.create(null),I=[`https://api.simplesvg.com`,`https://api.unisvg.com`],L=[];I.length>0;)I.length===1||Math.random()>.5?L.push(I.shift()):L.push(I.pop());F[``]=P({resources:[`https://api.iconify.design`].concat(L)});function fe(e,t){let n=P(t);return n===null?!1:(F[e]=n,!0)}function R(e){return F[e]}var z=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function pe(e,t){let n=R(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function me(e){return e===404}var he=(e,t,n)=>{let r=[],i=pe(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function ge(e){if(typeof e==`string`){let t=R(e);if(t)return t.path}return`/`}var _e={prepare:he,send:(e,t,n)=>{if(!z){n(`abort`,424);return}let r=ge(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;z(e+r).then(e=>{let t=e.status;if(t!==200){setTimeout(()=>{n(me(t)?`abort`:`next`,t)});return}return i=501,e.json()}).then(e=>{if(typeof e!=`object`||!e){setTimeout(()=>{e===404?n(`abort`,e):n(`next`,i)});return}setTimeout(()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function B(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function ve(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||B([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var ye=0;function be(e,t,n){let r=ye++,i=B.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function xe(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=x(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function Se(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?a(e,t,n):e;i&&r.push(i)}),r}var Ce={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function we(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`){u=r,v();return}if(i){u=r,f.length||(o.length?x():v());return}if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function V(e){let t={...Ce,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=we(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function Te(){}var H=Object.create(null);function Ee(e){if(!H[e]){let t=R(e);if(!t)return;H[e]={config:t,redundancy:V(t)}}return H[e]}function De(e,t,n){let r,i;if(typeof e==`string`){let t=N(e);if(!t)return n(void 0,424),Te;i=t.send;let a=Ee(e);a&&(r=a.redundancy)}else{let t=P(e);if(t){r=V(t);let n=N(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),Te):r.query(t,i,n)().abort}function Oe(){}function ke(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ve(e)}))}function Ae(e){let t=[],n=[];return e.forEach(e=>{(e.match(i)?t:n).push(e)}),{valid:t,invalid:n}}function U(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!S(e,n).length){r();return}}catch(e){console.error(e)}r(),ke(e)}function je(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function Me(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let a=e.loadIcon;if(e.loadIcons&&(r.length>1||!a)){je(e.loadIcons(r,n,t),t=>{U(e,r,t)});return}if(a){r.forEach(r=>{je(a(r,n,t),t=>{U(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:o,invalid:s}=Ae(r);if(s.length&&U(e,s,null),!o.length)return;let c=n.match(i)?N(t):null;if(!c){U(e,o,null);return}c.prepare(t,n,o).forEach(n=>{De(t,n,t=>{U(e,n.icons,t)})})}))}var Ne=(e,t)=>{let n=xe(Se(e,!0,T()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,Oe)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(x(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=x(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&Me(e,t)}),t?be(t,n,i):Oe};function Pe(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in k?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var Fe=/[\s,]+/;function Ie(e,t){t.split(Fe).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0;break}})}function Le(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}else if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function Re(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function ze(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function Be(e){return`data:image/svg+xml,`+ze(e)}function Ve(e){return`url("`+Be(e)+`")`}var He={...A,inline:!1},Ue={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},We={display:`inline-block`},W={backgroundColor:`currentColor`},Ge={backgroundColor:`transparent`},Ke={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},qe={webkitMask:W,mask:W,background:Ge};for(let e in qe){let t=qe[e];for(let n in Ke)t[e+n]=Ke[n]}var G={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;G[e+`-flip`]=t,G[e.slice(0,1)+`-flip`]=t,G[e+`Flip`]=t});function Je(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Ye=(e,n)=>{let r=Pe(He,n),i={...Ue},a=n.mode||`svg`,o={},s=n.style,c=typeof s==`object`&&!(s instanceof Array)?s:{};for(let e in n){let t=n[e];if(t!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:r[e]=t===!0||t===`true`||t===1;break;case`flip`:typeof t==`string`&&Ie(r,t);break;case`color`:o.color=t;break;case`rotate`:typeof t==`string`?r[e]=Le(t):typeof t==`number`&&(r[e]=t);break;case`ariaHidden`:case`aria-hidden`:t!==!0&&t!==`true`&&delete i[`aria-hidden`];break;default:{let n=G[e];n?(t===!0||t===`true`||t===1)&&(r[n]=!0):He[e]===void 0&&(i[e]=t)}}}let l=oe(e,r),u=l.attributes;if(r.inline&&(o.verticalAlign=`-0.125em`),a===`svg`)return i.style={...o,...c},Object.assign(i,u),i.innerHTML=ue(l.body),(0,t.h)(`svg`,i);let{body:d,width:f,height:p}=e,m=a===`mask`||(a===`bg`?!1:d.indexOf(`currentColor`)!==-1),h=Re(d,{...u,width:f+``,height:p+``});return i.style={...o,"--svg":Ve(h),width:Je(u.width),height:Je(u.height),...We,...m?W:Ge,...c},(0,t.h)(`span`,i)};if(T(!0),de(``,_e),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!O(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;fe(e,r)||console.error(n)}catch{console.error(n)}}}}var Xe={...u,body:``},Ze=(0,t.defineComponent)((e,{emit:n})=>{let r=(0,t.ref)(null);function i(){r.value&&=(r.value.abort?.(),null)}let o=(0,t.ref)(!!e.ssr),s=(0,t.ref)(``),c=(0,t.shallowRef)(null);function l(){let o=e.icon;if(typeof o==`object`&&o&&typeof o.body==`string`)return s.value=``,{data:o};let c;if(typeof o!=`string`||(c=a(o,!1,!0))===null)return null;let l=E(c);if(!l){let e=r.value;return(!e||e.name!==o)&&(l===null?r.value={name:o}:r.value={name:o,abort:Ne([c],d)}),null}i(),s.value!==o&&(s.value=o,(0,t.nextTick)(()=>{n(`load`,o)}));let u=e.customise;if(u){l=Object.assign({},l);let e=u(l.body,c.name,c.prefix,c.provider);typeof e==`string`&&(l.body=e)}let f=[`iconify`];return c.prefix!==``&&f.push(`iconify--`+c.prefix),c.provider!==``&&f.push(`iconify--`+c.provider),{data:l,classes:f}}function d(){let e=l();e?e.data!==c.value?.data&&(c.value=e):c.value=null}return o.value?d():(0,t.onMounted)(()=>{o.value=!0,d()}),(0,t.watch)(()=>e.icon,d),(0,t.onUnmounted)(i),()=>{let t=c.value;if(!t)return Ye(Xe,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),Ye({...u,...t.data},n)}},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`],emits:[`load`]}),Qe={locale:`zh-CN`,Modal:{okText:`确 定`,cancelText:`取 消`,justOkText:`知道了`},Popconfirm:{okText:`确 定`,cancelText:`取 消`},Empty:{description:`暂无数据`},AutoComplete:{notFoundContent:`暂无数据`},Mentions:{notFoundContent:`暂无数据`},Cascader:{notFoundContent:`暂无数据`},TreeSelect:{notFoundContent:`暂无数据`},Select:{notFoundContent:`暂无数据`},Pagination:{itemsPerPage:`条/页`,jumpTo:`跳至`,page:`页`,prevPage:`上一页`,nextPage:`下一页`,total:`共 {total} 条`},Image:{loading:`加载中`,error:`加载失败`},DatePicker:{placeholder:`请选择日期`,rangePlaceholder:[`开始日期`,`结束日期`],timePlaceholder:`请选择时间`,weekdaysShort:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],panelLabelFormat:`YYYY 年 M 月`,monthNamesShort:[`1 月`,`2 月`,`3 月`,`4 月`,`5 月`,`6 月`,`7 月`,`8 月`,`9 月`,`10 月`,`11 月`,`12 月`],quarterNames:[`一季度`,`二季度`,`三季度`,`四季度`],weekFormat:`{weekYear} 年第 {weekNumber} 周`,weekHeader:`周`,now:`此刻`,ok:`确定`,prevYearLabel:`前一年`,prevMonthLabel:`上个月`,nextYearLabel:`后一年`,nextMonthLabel:`下个月`,clearLabel:`清除`}},$e=Symbol(`ccui-config`);function et(){return(0,t.inject)($e,{prefixCls:`ccui`,componentSize:`middle`,locale:Qe,direction:`ltr`,theme:void 0,iconPrefixCls:`ccui-icon`})}var tt=new Set;function K(e,t,n){let r=`${e}.${t}`;tt.has(r)||(tt.add(r),typeof console<`u`&&console.warn(`[ccui][${e}] ${t} 已 deprecated,请改用 ${n}。`))}function q(e,t,n){return e?Object.prototype.hasOwnProperty.call(e,t)||Object.prototype.hasOwnProperty.call(e,n):!1}var nt={visible:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},title:{type:String,default:``},width:{type:[Number,String],default:520},closable:{type:[Boolean,Object],default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},keyboard:{type:Boolean,default:void 0},centered:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},okText:{type:String,default:``},cancelText:{type:String,default:``},okType:{type:String,default:`primary`},okLoading:{type:Boolean,default:!1},confirmLoading:{type:Boolean,default:void 0},hideFooter:{type:Boolean,default:!1},footer:{type:[String,Object,null],default:void 0},destroyOnClose:{type:Boolean,default:!1},keepAlive:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3},appendToBody:{type:Boolean,default:!0},getContainer:{type:Function,default:void 0},wrapClassName:{type:String,default:``},transitionName:{type:String,default:``},maskTransitionName:{type:String,default:``},focusTriggerAfterClose:{type:Boolean,default:!0},classNames:{type:Object,default:void 0},styles:{type:Object,default:void 0}};function J(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,t.isVNode)(e)}function rt(e){return e.includes(`:`)}function it(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Y=(0,t.defineComponent)({name:`CModal`,props:nt,emits:[`update:visible`,`update:open`,`ok`,`cancel`,`close`,`open`,`opened`,`closed`,`after-open-change`],setup(e,{emit:n,slots:i}){let a=r(`modal`),o=et(),s=(0,t.getCurrentInstance)()?.vnode.props;q(s,`visible`,`visible`)&&K(`Modal`,`visible`,`open(v-model:open)`),q(s,`closeOnEsc`,`close-on-esc`)&&K(`Modal`,`closeOnEsc`,`keyboard`),q(s,`okLoading`,`ok-loading`)&&K(`Modal`,`okLoading`,`confirmLoading`),q(s,`hideFooter`,`hide-footer`)&&K(`Modal`,`hideFooter`,`footer={null}`),q(s,`appendToBody`,`append-to-body`)&&K(`Modal`,`appendToBody`,`getContainer`);let c=(0,t.computed)(()=>e.open===void 0?e.visible:e.open),l=(0,t.ref)(null),u=(0,t.ref)(c.value||e.keepAlive),d=(0,t.computed)(()=>it(e.closable)?e.closable:null),f=(0,t.computed)(()=>{let t=e.closable;return typeof t==`boolean`?t:t!=null}),p=(0,t.computed)(()=>!!d.value?.disabled),m=(0,t.computed)(()=>d.value?.ariaLabel||`Close`),h=(0,t.computed)(()=>e.keyboard===void 0?e.closeOnEsc:e.keyboard),g=(0,t.computed)(()=>e.confirmLoading===void 0?e.okLoading:e.confirmLoading),_=(0,t.computed)(()=>i.footer?!1:e.footer===null?!0:e.hideFooter),v=(0,t.computed)(()=>e.okText||o.locale?.Modal?.okText||`确 定`),y=(0,t.computed)(()=>e.cancelText||o.locale?.Modal?.cancelText||`取 消`),b=(0,t.computed)(()=>{let t=e.width;return typeof t==`number`?`${t}px`:String(t)}),x=e=>{n(`update:visible`,e),n(`update:open`,e)},S=()=>{p.value||(x(!1),n(`close`))},C=e=>n(`ok`,e),w=e=>{n(`cancel`,e),S()},T=()=>{e.maskClosable&&S()},E=e=>{e.key===`Escape`&&h.value&&c.value&&S()},D=()=>{let e=document.body;if(e.dataset.ccuiModalCount){e.dataset.ccuiModalCount=String(Number(e.dataset.ccuiModalCount)+1);return}e.dataset.ccuiModalCount=`1`,e.dataset.ccuiOriginalOverflow=e.style.overflow,e.style.overflow=`hidden`},O=()=>{let e=document.body,t=Number(e.dataset.ccuiModalCount??0)-1;t<=0?(e.style.overflow=e.dataset.ccuiOriginalOverflow??``,delete e.dataset.ccuiModalCount,delete e.dataset.ccuiOriginalOverflow):e.dataset.ccuiModalCount=String(t)};(0,t.watch)(c,e=>{if(e){if(typeof document<`u`){let e=document.activeElement;e instanceof HTMLElement&&(l.value=e)}u.value=!0,D(),document.addEventListener(`keydown`,E),n(`open`)}else document.removeEventListener(`keydown`,E),O();n(`after-open-change`,e)},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`keydown`,E),c.value&&O()});let k=()=>n(`opened`),A=()=>{if(e.destroyOnClose&&!e.keepAlive&&(u.value=!1),e.focusTriggerAfterClose&&l.value&&document.body.contains(l.value))try{l.value.focus({preventScroll:!0})}catch{}n(`closed`)},ee=()=>{if(i[`close-icon`])return(0,t.createVNode)(t.Fragment,null,[i[`close-icon`]()]);let e=d.value?.closeIcon;return e?typeof e==`string`?rt(e)?(0,t.createVNode)(Ze,{icon:e},null):(0,t.createVNode)(`i`,{class:e},null):e:(0,t.createVNode)(`span`,null,[(0,t.createTextVNode)(`×`)])},te=()=>{if(_.value)return null;let n=[a.e(`footer`),e.classNames?.footer],r=e.styles?.footer;return i.footer?(0,t.createVNode)(`div`,{class:n,style:r},[i.footer({ok:C,cancel:w})]):typeof e.footer==`string`||e.footer&&typeof e.footer==`object`?(0,t.createVNode)(`div`,{class:n,style:r},[e.footer]):(0,t.createVNode)(`div`,{class:n,style:r},[(0,t.createVNode)(`button`,{class:[a.e(`btn`),a.em(`btn`,`cancel`)],onClick:w},[y.value]),(0,t.createVNode)(`button`,{class:[a.e(`btn`),a.em(`btn`,e.okType),g.value&&a.is(`loading`)],disabled:g.value,onClick:C},[g.value&&(0,t.createVNode)(`span`,{class:a.e(`spinner`)},null),v.value])])},j=n=>{if(e.getContainer){let r=e.getContainer(null);return r?(0,t.createVNode)(t.Teleport,{to:r},J(n)?n:{default:()=>[n]}):n}return e.appendToBody?(0,t.createVNode)(t.Teleport,{to:`body`},J(n)?n:{default:()=>[n]}):n};return()=>{let n={zIndex:e.zIndex},r={width:b.value},o=e.maskTransitionName||`${a.b()}-mask-fade`,s=e.transitionName||`${a.b()}-zoom`,l=(0,t.createVNode)(`div`,{class:[a.b(),e.centered&&a.m(`centered`),e.wrapClassName,e.classNames?.root],style:[n,e.styles?.root],"aria-modal":`true`,role:`dialog`},[(0,t.createVNode)(t.Transition,{name:o},{default:()=>[e.mask&&c.value&&(0,t.createVNode)(`div`,{class:[a.e(`mask`),e.classNames?.mask],style:e.styles?.mask,onClick:T},null)]}),(0,t.createVNode)(t.Transition,{name:s,onAfterEnter:k,onAfterLeave:A},{default:()=>[c.value&&(0,t.createVNode)(`div`,{class:[a.e(`wrap`),e.classNames?.wrap],style:e.styles?.wrap,onClick:t=>{t.target===t.currentTarget&&e.maskClosable&&!e.mask&&S()}},[(0,t.createVNode)(`div`,{class:a.e(`content`),style:r},[f.value&&(0,t.createVNode)(`button`,{class:[a.e(`close`),p.value&&a.is(`disabled`)],"aria-label":m.value,disabled:p.value,onClick:S},[ee()]),(e.title||i.title)&&(0,t.createVNode)(`div`,{class:[a.e(`header`),e.classNames?.header],style:e.styles?.header},[(0,t.createVNode)(`div`,{class:a.e(`title`)},[i.title?i.title():e.title])]),(0,t.createVNode)(`div`,{class:[a.e(`body`),e.classNames?.body],style:e.styles?.body},[i.default?.()]),te()])])]})]);return e.destroyOnClose&&!e.keepAlive&&!u.value?null:j(l)}}}),at={confirm:`?`,info:`ⓘ`,success:`✓`,error:`✕`,warning:`!`},ot={confirm:`primary`,info:`primary`,success:`primary`,error:`danger`,warning:`primary`},X=new Set;function Z(e={},n){let i=(0,t.reactive)({type:`confirm`,...e}),a=(0,t.ref)(!0),o=(0,t.ref)(!1),s=null,c=null,l=r(`modal-confirm`),u={destroy(){a.value=!1},update(e){let t=typeof e==`function`?e({...i}):e;Object.assign(i,t)}};X.add(u);let d=(0,t.defineComponent)({name:`CModalConfirmInner`,setup(){let e=()=>{try{i.afterClose?.()}catch{}s&&=(s.unmount(),null),c&&c.parentNode&&(c.parentNode.removeChild(c),c=null),X.delete(u)},n=()=>{a.value=!1},r=async()=>{if(o.value)return;let e=i.onOk?.();if(e&&typeof e.then==`function`){o.value=!0;try{await e,n()}catch{}finally{o.value=!1}return}n()},d=async()=>{let e=i.onCancel?.();if(e&&typeof e.then==`function`){try{await e,n()}catch{}return}n()};return()=>{let n=i.type??`confirm`,s=i.okType??ot[n],c=i.okText??`确 定`,u=i.cancelText??`取 消`,f=(0,t.createVNode)(`div`,{class:l.b()},[i.icon===void 0?(0,t.createVNode)(`span`,{class:[l.e(`icon`),l.em(`icon`,n)]},[at[n]]):typeof i.icon==`string`?i.icon?(0,t.createVNode)(`span`,{class:[l.e(`icon`),l.em(`icon`,n)]},[(0,t.createVNode)(`i`,{class:i.icon},null)]):(0,t.createVNode)(t.Fragment,null,null):(0,t.createVNode)(`span`,{class:[l.e(`icon`),l.em(`icon`,n)]},[i.icon]),(0,t.createVNode)(`div`,{class:l.e(`body`)},[i.title!==void 0&&(0,t.createVNode)(`div`,{class:l.e(`title`)},[i.title]),i.content!==void 0&&(0,t.createVNode)(`div`,{class:l.e(`content`)},[i.content])])]),p=(0,t.createVNode)(`div`,{class:l.e(`footer`)},[n===`confirm`&&(0,t.createVNode)(`button`,{class:[`ccui-modal__btn`,`ccui-modal__btn--cancel`],onClick:d},[u]),(0,t.createVNode)(`button`,{class:[`ccui-modal__btn`,`ccui-modal__btn--${s}`,o.value&&`is-loading`],disabled:o.value,onClick:r},[o.value&&(0,t.createVNode)(`span`,{class:`ccui-modal__spinner`},null),c])]);return(0,t.h)(Y,{open:a.value,"onUpdate:open":e=>{a.value=e},width:i.width??416,centered:i.centered??!1,mask:i.mask??!0,maskClosable:i.maskClosable??!1,keyboard:i.keyboard??!0,closable:i.closable??!1,zIndex:i.zIndex,wrapClassName:i.wrapClassName,getContainer:i.getContainer,confirmLoading:o.value,onClosed:e},{default:()=>f,footer:()=>p})}}});return c=document.createElement(`div`),c.className=`ccui-modal-confirm-host`,document.body.appendChild(c),s=(0,t.createApp)(d),n?.provides&&(s._context.provides={...n.provides,...s._context.provides}),n?.appContext&&(s._context.components={...n.appContext.components,...s._context.components},s._context.directives={...n.appContext.directives,...s._context.directives},s._context.provides={...n.appContext.provides,...s._context.provides}),s.mount(c),u}function st(){Array.from(X).forEach(e=>e.destroy())}function Q(e){return(t={},n)=>Z({...t,type:e},n)}function ct(){let e=(0,t.getCurrentInstance)(),n=(t,n)=>Z({...n?{type:n}:{},...t},{provides:e?.provides,appContext:e?.appContext});return{modal:{confirm:(e={})=>n(e,`confirm`),info:(e={})=>n(e,`info`),success:(e={})=>n(e,`success`),error:(e={})=>n(e,`error`),warning:(e={})=>n(e,`warning`)},holder:(0,t.defineComponent)({name:`CModalHolder`,setup(){return()=>null}})}}var $=Y;$.confirm=(e={})=>Z({type:`confirm`,...e}),$.info=Q(`info`),$.success=Q(`success`),$.error=Q(`error`),$.warning=Q(`warning`),$.destroyAll=st,$.install=function(e){e.component(Y.name,Y)},e.Modal=$,e.default={title:`Modal 对话框`,category:`反馈`,status:`100%`,install(e){e.component(Y.name,Y)}},e.useModal=ct});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var n=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),r=/^[a-z0-9]+(-[a-z0-9]+)*$/,i=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),o={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!a(o)?null:o}let o=i[0],s=o.split(`-`);if(s.length>1){let e={provider:r,prefix:s.shift(),name:s.join(`-`)};return t&&!a(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:o};return t&&!a(e,n)?null:e}return null},a=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function o(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var s=Object.freeze({left:0,top:0,width:16,height:16}),c=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),l=Object.freeze({...s,...c}),u=Object.freeze({...l,body:``,hidden:!1});function d(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function f(e,t){let n=d(e,t);for(let r in u)r in c?r in e&&!(r in n)&&(n[r]=c[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function p(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=f(r[e]||i[e],a)}return o(t),n.forEach(o),f(e,a)}function m(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=o(e);for(let i in r){let a=r[i];a&&(t(i,p(e,i,a)),n.push(i))}return n}var h={provider:``,aliases:{},not_found:{},...s};function g(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!g(e,h))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!g(t,u))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!g(t,u))return null}return t}var v=Object.create(null);function y(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function b(e,t){let n=v[e]||(v[e]=Object.create(null));return n[t]||(n[t]=y(e,t))}function x(e,t){return _(t)?m(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function S(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var C=!1;function w(e){return typeof e==`boolean`&&(C=e),C}function T(e){let t=typeof e==`string`?i(e,!0,C):e;if(t){let e=b(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function E(e,t){let n=i(e,!0,C);if(!n)return!1;let r=b(n.provider,n.prefix);return t?S(r,n.name,t):(r.missing.add(n.name),!0)}function D(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),C&&!t&&!e.prefix){let t=!1;return _(e)&&(e.prefix=``,m(e,(e,n)=>{E(e,n)&&(t=!0)})),t}let n=e.prefix;return a({prefix:n,name:`a`})?!!x(b(t,n),e):!1}var O=Object.freeze({width:null,height:null}),k=Object.freeze({...O,...c}),A=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ee=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function j(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(A);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ee.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function te(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function ne(e,t){return e?`<defs>`+e+`</defs>`+t:t}function re(e,t,n){let r=te(e);return ne(r.defs,t+r.content+n)}var ie=e=>e===`unset`||e===`undefined`||e===`none`;function ae(e,t){let n={...l,...e},r={...k,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=re(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=j(f,c/u)):(d=o===`auto`?c:o,f=s===null?j(d,u/c):s===`auto`?u:s);let p={},m=(e,t)=>{ie(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,c,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var oe=/\sid="(\S+)"/g,se=new Map;function ce(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=se.get(e)||0;return se.set(e,t+1),t?`${e}${t}`:e}function le(e){let t=[],n;for(;n=oe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=ce(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var M=Object.create(null);function ue(e,t){M[e]=t}function N(e){return M[e]||M[``]}function P(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var F=Object.create(null),I=[`https://api.simplesvg.com`,`https://api.unisvg.com`],L=[];I.length>0;)I.length===1||Math.random()>.5?L.push(I.shift()):L.push(I.pop());F[``]=P({resources:[`https://api.iconify.design`].concat(L)});function de(e,t){let n=P(t);return n===null?!1:(F[e]=n,!0)}function R(e){return F[e]}var z=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function fe(e,t){let n=R(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function pe(e){return e===404}var me=(e,t,n)=>{let r=[],i=fe(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function he(e){if(typeof e==`string`){let t=R(e);if(t)return t.path}return`/`}var ge={prepare:me,send:(e,t,n)=>{if(!z){n(`abort`,424);return}let r=he(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;z(e+r).then(e=>{let t=e.status;if(t!==200){setTimeout(()=>{n(pe(t)?`abort`:`next`,t)});return}return i=501,e.json()}).then(e=>{if(typeof e!=`object`||!e){setTimeout(()=>{e===404?n(`abort`,e):n(`next`,i)});return}setTimeout(()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function B(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function _e(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||B([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var ve=0;function ye(e,t,n){let r=ve++,i=B.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function be(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=b(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function xe(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let a=typeof e==`string`?i(e,t,n):e;a&&r.push(a)}),r}var Se={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ce(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`){u=r,v();return}if(i){u=r,f.length||(o.length?x():v());return}if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function V(e){let t={...Se,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=Ce(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function H(){}var U=Object.create(null);function we(e){if(!U[e]){let t=R(e);if(!t)return;U[e]={config:t,redundancy:V(t)}}return U[e]}function Te(e,t,n){let r,i;if(typeof e==`string`){let t=N(e);if(!t)return n(void 0,424),H;i=t.send;let a=we(e);a&&(r=a.redundancy)}else{let t=P(e);if(t){r=V(t);let n=N(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),H):r.query(t,i,n)().abort}function W(){}function Ee(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,_e(e)}))}function De(e){let t=[],n=[];return e.forEach(e=>{(e.match(r)?t:n).push(e)}),{valid:t,invalid:n}}function G(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!x(e,n).length){r();return}}catch(e){console.error(e)}r(),Ee(e)}function Oe(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function ke(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;let a=e.loadIcon;if(e.loadIcons&&(i.length>1||!a)){Oe(e.loadIcons(i,n,t),t=>{G(e,i,t)});return}if(a){i.forEach(r=>{Oe(a(r,n,t),t=>{G(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:o,invalid:s}=De(i);if(s.length&&G(e,s,null),!o.length)return;let c=n.match(r)?N(t):null;if(!c){G(e,o,null);return}c.prepare(t,n,o).forEach(n=>{Te(t,n,t=>{G(e,n.icons,t)})})}))}var Ae=(e,t)=>{let n=be(xe(e,!0,w()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,W)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(b(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=b(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&ke(e,t)}),t?ye(t,n,i):W};function je(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in O?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var Me=/[\s,]+/;function Ne(e,t){t.split(Me).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0;break}})}function Pe(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}else if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function Fe(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function Ie(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function Le(e){return`data:image/svg+xml,`+Ie(e)}function Re(e){return`url("`+Le(e)+`")`}var ze={...k,inline:!1},Be={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Ve={display:`inline-block`},K={backgroundColor:`currentColor`},He={backgroundColor:`transparent`},Ue={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},We={webkitMask:K,mask:K,background:He};for(let e in We){let t=We[e];for(let n in Ue)t[e+n]=Ue[n]}var q={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;q[e+`-flip`]=t,q[e.slice(0,1)+`-flip`]=t,q[e+`Flip`]=t});function Ge(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Ke=(e,n)=>{let r=je(ze,n),i={...Be},a=n.mode||`svg`,o={},s=n.style,c=typeof s==`object`&&!(s instanceof Array)?s:{};for(let e in n){let t=n[e];if(t!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:r[e]=t===!0||t===`true`||t===1;break;case`flip`:typeof t==`string`&&Ne(r,t);break;case`color`:o.color=t;break;case`rotate`:typeof t==`string`?r[e]=Pe(t):typeof t==`number`&&(r[e]=t);break;case`ariaHidden`:case`aria-hidden`:t!==!0&&t!==`true`&&delete i[`aria-hidden`];break;default:{let n=q[e];n?(t===!0||t===`true`||t===1)&&(r[n]=!0):ze[e]===void 0&&(i[e]=t)}}}let l=ae(e,r),u=l.attributes;if(r.inline&&(o.verticalAlign=`-0.125em`),a===`svg`)return i.style={...o,...c},Object.assign(i,u),i.innerHTML=le(l.body),(0,t.h)(`svg`,i);let{body:d,width:f,height:p}=e,m=a===`mask`||(a===`bg`?!1:d.indexOf(`currentColor`)!==-1),h=Fe(d,{...u,width:f+``,height:p+``});return i.style={...o,"--svg":Re(h),width:Ge(u.width),height:Ge(u.height),...Ve,...m?K:He,...c},(0,t.h)(`span`,i)};if(w(!0),ue(``,ge),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!D(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;de(e,r)||console.error(n)}catch{console.error(n)}}}}var qe={...l,body:``},Je=(0,t.defineComponent)((e,{emit:n})=>{let r=(0,t.ref)(null);function a(){r.value&&=(r.value.abort?.(),null)}let o=(0,t.ref)(!!e.ssr),s=(0,t.ref)(``),c=(0,t.shallowRef)(null);function u(){let o=e.icon;if(typeof o==`object`&&o&&typeof o.body==`string`)return s.value=``,{data:o};let c;if(typeof o!=`string`||(c=i(o,!1,!0))===null)return null;let l=T(c);if(!l){let e=r.value;return(!e||e.name!==o)&&(l===null?r.value={name:o}:r.value={name:o,abort:Ae([c],d)}),null}a(),s.value!==o&&(s.value=o,(0,t.nextTick)(()=>{n(`load`,o)}));let u=e.customise;if(u){l=Object.assign({},l);let e=u(l.body,c.name,c.prefix,c.provider);typeof e==`string`&&(l.body=e)}let f=[`iconify`];return c.prefix!==``&&f.push(`iconify--`+c.prefix),c.provider!==``&&f.push(`iconify--`+c.provider),{data:l,classes:f}}function d(){let e=u();e?e.data!==c.value?.data&&(c.value=e):c.value=null}return o.value?d():(0,t.onMounted)(()=>{o.value=!0,d()}),(0,t.watch)(()=>e.icon,d),(0,t.onUnmounted)(a),()=>{let t=c.value;if(!t)return Ke(qe,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),Ke({...l,...t.data},n)}},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`],emits:[`load`]}),Ye={prefix:`mdi`,icons:{"alert-circle":{width:24,height:24,body:`<path fill="currentColor" d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>`},"arrow-up":{width:24,height:24,body:`<path fill="currentColor" d="M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z"/>`},"calendar-outline":{width:24,height:24,body:`<path fill="currentColor" d="M12 12h5v5h-5v-5m7-9h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v2H5V5h14M5 19V9h14v10H5Z"/>`},check:{width:24,height:24,body:`<path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"/>`},"check-circle":{width:24,height:24,body:`<path fill="currentColor" d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z"/>`},"chevron-right":{width:24,height:24,body:`<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>`},"clock-outline":{width:24,height:24,body:`<path fill="currentColor" d="M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z"/>`},close:{width:24,height:24,body:`<path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"/>`},"close-circle":{width:24,height:24,body:`<path fill="currentColor" d="M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z"/>`},"content-copy":{width:24,height:24,body:`<path fill="currentColor" d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z"/>`},loading:{width:24,height:24,body:`<path fill="currentColor" d="M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z"/>`},magnify:{width:24,height:24,body:`<path fill="currentColor" d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z"/>`},"menu-down":{width:24,height:24,body:`<path fill="currentColor" d="m7 10l5 5l5-5H7Z"/>`},"menu-right":{width:24,height:24,body:`<path fill="currentColor" d="m10 17l5-5l-5-5v10Z"/>`}}},Xe=!1;function Ze(){Xe||=(D(Ye),!0)}Ze();function Qe(e){return e.includes(`:`)}function $e(e){return e?typeof e==`string`?Qe(e)?(0,t.h)(Je,{icon:e}):(0,t.h)(`i`,{class:e}):e:null}function J(e,t,n){let r=e;return t&&(r+=`__${t}`),n&&(r+=`--${n}`),r}function et(e,t=!1){let n=t?`.ccui-${e}`:`ccui-${e}`;return{b:()=>J(n),e:e=>e?J(n,e):``,m:e=>e?J(n,``,e):``,em:(e,t)=>e&&t?J(n,e,t):``,is:e=>`is-${e}`}}n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))();var tt={locale:`zh-CN`,Modal:{okText:`确 定`,cancelText:`取 消`,justOkText:`知道了`},Popconfirm:{okText:`确 定`,cancelText:`取 消`},Empty:{description:`暂无数据`},AutoComplete:{notFoundContent:`暂无数据`},Mentions:{notFoundContent:`暂无数据`},Cascader:{notFoundContent:`暂无数据`},TreeSelect:{notFoundContent:`暂无数据`,searchPlaceholder:`搜索`},Select:{notFoundContent:`暂无数据`},Pagination:{itemsPerPage:`条/页`,jumpTo:`跳至`,page:`页`,prevPage:`上一页`,nextPage:`下一页`,total:`共 {total} 条`,pagination:`分页`},Image:{loading:`加载中`,error:`加载失败`},DatePicker:{placeholder:`请选择日期`,rangePlaceholder:[`开始日期`,`结束日期`],timePlaceholder:`请选择时间`,weekdaysShort:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],panelLabelFormat:`YYYY 年 M 月`,monthNamesShort:[`1 月`,`2 月`,`3 月`,`4 月`,`5 月`,`6 月`,`7 月`,`8 月`,`9 月`,`10 月`,`11 月`,`12 月`],quarterNames:[`一季度`,`二季度`,`三季度`,`四季度`],weekFormat:`{weekYear} 年第 {weekNumber} 周`,weekHeader:`周`,now:`此刻`,ok:`确定`,prevYearLabel:`前一年`,prevMonthLabel:`上个月`,nextYearLabel:`后一年`,nextMonthLabel:`下个月`,clearLabel:`清除`},Calendar:{weekdaysShort:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],prevMonthLabel:`上个月`,nextMonthLabel:`下个月`,todayLabel:`今天`,monthFormat:`YYYY 年 M 月`}},nt=Symbol(`ccui-config`);function rt(){return(0,t.inject)(nt,{prefixCls:`ccui`,componentSize:`middle`,locale:tt,direction:`ltr`,theme:void 0,iconPrefixCls:`ccui-icon`})}var it=new Set;function at(){return globalThis.process?.env?.NODE_ENV!==`production`}function ot(e,t,n){if(!at())return;let r=n?`${n}.${e}`:e;if(it.has(r)||(it.add(r),typeof console>`u`))return;let i=n?`[ccui][${n}]`:`[ccui]`,a=t?`,请改用 ${t}`:``;console.warn(`${i} ${e} 已 deprecated${a}。`)}function st(e,t,n){return e?Object.prototype.hasOwnProperty.call(e,t)||Object.prototype.hasOwnProperty.call(e,n):!1}var ct={visible:{type:Boolean,default:!1},title:{type:String,default:``},width:{type:[Number,String],default:520},closable:{type:[Boolean,Object],default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},centered:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},okText:{type:String,default:``},cancelText:{type:String,default:``},okType:{type:String,default:`primary`},okLoading:{type:Boolean,default:!1},confirmLoading:{type:Boolean,default:void 0},hideFooter:{type:Boolean,default:!1},footer:{type:[String,Object,null],default:void 0},destroyOnClose:{type:Boolean,default:!1},keepAlive:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3},appendToBody:{type:Boolean,default:!0},wrapClassName:{type:String,default:``},transitionName:{type:String,default:``},maskTransitionName:{type:String,default:``},focusTriggerAfterClose:{type:Boolean,default:!0},classNames:{type:Object,default:void 0},styles:{type:Object,default:void 0}};function lt(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,t.isVNode)(e)}function ut(e){return e.includes(`:`)}function dt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ft=0,Y=(0,t.defineComponent)({name:`CModal`,props:ct,emits:[`update:visible`,`ok`,`cancel`,`close`,`open`,`opened`,`closed`,`after-open-change`],setup(e,{emit:n,slots:r}){let i=et(`modal`),a=rt(),o=++ft,s=`${i.b()}-title-${o}`,c=`${i.b()}-body-${o}`,l=(0,t.getCurrentInstance)()?.vnode.props;st(l,`okLoading`,`ok-loading`)&&ot(`okLoading`,`confirmLoading`,`Modal`),st(l,`hideFooter`,`hide-footer`)&&ot(`hideFooter`,`footer={null}`,`Modal`);let u=(0,t.computed)(()=>e.visible),d=(0,t.ref)(null),f=(0,t.ref)(u.value||e.keepAlive),p=(0,t.computed)(()=>dt(e.closable)?e.closable:null),m=(0,t.computed)(()=>{let t=e.closable;return typeof t==`boolean`?t:t!=null}),h=(0,t.computed)(()=>!!p.value?.disabled),g=(0,t.computed)(()=>p.value?.ariaLabel||`Close`),_=(0,t.computed)(()=>e.confirmLoading===void 0?e.okLoading:e.confirmLoading),v=(0,t.computed)(()=>r.footer?!1:e.footer===null?!0:e.hideFooter),y=(0,t.computed)(()=>e.okText||a.locale?.Modal?.okText||`确 定`),b=(0,t.computed)(()=>e.cancelText||a.locale?.Modal?.cancelText||`取 消`),x=(0,t.computed)(()=>{let t=e.width;return typeof t==`number`?`${t}px`:String(t)}),S=()=>{h.value||(n(`update:visible`,!1),n(`close`))},C=e=>n(`ok`,e),w=e=>{n(`cancel`,e),S()},T=()=>{e.maskClosable&&S()},E=t=>{t.key===`Escape`&&e.closeOnEsc&&u.value&&S()},D=()=>{let e=document.body;if(e.dataset.ccuiModalCount){e.dataset.ccuiModalCount=String(Number(e.dataset.ccuiModalCount)+1);return}e.dataset.ccuiModalCount=`1`,e.dataset.ccuiOriginalOverflow=e.style.overflow,e.style.overflow=`hidden`},O=()=>{let e=document.body,t=Number(e.dataset.ccuiModalCount??0)-1;t<=0?(e.style.overflow=e.dataset.ccuiOriginalOverflow??``,delete e.dataset.ccuiModalCount,delete e.dataset.ccuiOriginalOverflow):e.dataset.ccuiModalCount=String(t)};(0,t.watch)(u,e=>{if(e){if(typeof document<`u`){let e=document.activeElement;e instanceof HTMLElement&&(d.value=e)}f.value=!0,D(),document.addEventListener(`keydown`,E),n(`open`)}else document.removeEventListener(`keydown`,E),O();n(`after-open-change`,e)},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`keydown`,E),u.value&&O()});let k=()=>n(`opened`),A=()=>{if(e.destroyOnClose&&!e.keepAlive&&(f.value=!1),e.focusTriggerAfterClose&&d.value&&document.body.contains(d.value))try{d.value.focus({preventScroll:!0})}catch{}n(`closed`)},ee=()=>{if(r[`close-icon`])return(0,t.createVNode)(t.Fragment,null,[r[`close-icon`]()]);let e=p.value?.closeIcon;return e?typeof e==`string`?ut(e)?(0,t.createVNode)(Je,{icon:e},null):(0,t.createVNode)(`i`,{class:e},null):e:(0,t.createVNode)(`span`,null,[(0,t.createTextVNode)(`×`)])},j=()=>{if(v.value)return null;let n=[i.e(`footer`),e.classNames?.footer],a=e.styles?.footer;return r.footer?(0,t.createVNode)(`div`,{class:n,style:a},[r.footer({ok:C,cancel:w})]):typeof e.footer==`string`||e.footer&&typeof e.footer==`object`?(0,t.createVNode)(`div`,{class:n,style:a},[e.footer]):(0,t.createVNode)(`div`,{class:n,style:a},[(0,t.createVNode)(`button`,{class:[i.e(`btn`),i.em(`btn`,`cancel`)],onClick:w},[b.value]),(0,t.createVNode)(`button`,{class:[i.e(`btn`),i.em(`btn`,e.okType),_.value&&i.is(`loading`)],disabled:_.value,onClick:C},[_.value&&(0,t.createVNode)(`span`,{class:i.e(`spinner`)},null),y.value])])},te=n=>e.appendToBody?(0,t.createVNode)(t.Teleport,{to:`body`},lt(n)?n:{default:()=>[n]}):n;return()=>{let n={zIndex:e.zIndex},a={width:x.value},o=e.maskTransitionName||`${i.b()}-mask-fade`,l=e.transitionName||`${i.b()}-zoom`,d=!!(e.title||r.title),p=(0,t.createVNode)(`div`,{class:[i.b(),e.centered&&i.m(`centered`),e.wrapClassName,e.classNames?.root],style:[n,e.styles?.root],"aria-modal":`true`,role:`dialog`,"aria-labelledby":d?s:void 0,"aria-describedby":c},[(0,t.createVNode)(t.Transition,{name:o},{default:()=>[e.mask&&u.value&&(0,t.createVNode)(`div`,{class:[i.e(`mask`),e.classNames?.mask],style:e.styles?.mask,onClick:T},null)]}),(0,t.createVNode)(t.Transition,{name:l,onAfterEnter:k,onAfterLeave:A},{default:()=>[u.value&&(0,t.createVNode)(`div`,{class:[i.e(`wrap`),e.classNames?.wrap],style:e.styles?.wrap,onClick:t=>{t.target===t.currentTarget&&e.maskClosable&&!e.mask&&S()}},[(0,t.createVNode)(`div`,{class:i.e(`content`),style:a},[m.value&&(0,t.createVNode)(`button`,{class:[i.e(`close`),h.value&&i.is(`disabled`)],"aria-label":g.value,disabled:h.value,onClick:S},[ee()]),(e.title||r.title)&&(0,t.createVNode)(`div`,{class:[i.e(`header`),e.classNames?.header],style:e.styles?.header},[(0,t.createVNode)(`div`,{class:i.e(`title`),id:s},[r.title?r.title():e.title])]),(0,t.createVNode)(`div`,{class:[i.e(`body`),e.classNames?.body],id:c,style:e.styles?.body},[r.default?.()]),j()])])]})]);return e.destroyOnClose&&!e.keepAlive&&!f.value?null:te(p)}}}),pt={confirm:`?`,info:`ⓘ`,success:`mdi:check-circle`,error:`mdi:close-circle`,warning:`!`};function mt(e){let t=pt[e];return t.includes(`:`)?$e(t)??t:t}var ht={confirm:`primary`,info:`primary`,success:`primary`,error:`danger`,warning:`primary`},X=new Set;function Z(e={},n){let r=(0,t.reactive)({type:`confirm`,...e}),i=(0,t.ref)(!0),a=(0,t.ref)(!1),o=null,s=null,c=et(`modal-confirm`),l={destroy(){i.value=!1},update(e){let t=typeof e==`function`?e({...r}):e;Object.assign(r,t)}};X.add(l);let u=(0,t.defineComponent)({name:`CModalConfirmInner`,setup(){let e=()=>{try{r.afterClose?.()}catch{}o&&=(o.unmount(),null),s&&s.parentNode&&(s.parentNode.removeChild(s),s=null),X.delete(l)},n=()=>{i.value=!1},u=async()=>{if(a.value)return;let e=r.onOk?.();if(e&&typeof e.then==`function`){a.value=!0;try{await e,n()}catch{}finally{a.value=!1}return}n()},d=async()=>{let e=r.onCancel?.();if(e&&typeof e.then==`function`){try{await e,n()}catch{}return}n()};return()=>{let n=r.type??`confirm`,o=r.okType??ht[n],s=r.okText??`确 定`,l=r.cancelText??`取 消`,f=(0,t.createVNode)(`div`,{class:c.b()},[r.icon===void 0?(0,t.createVNode)(`span`,{class:[c.e(`icon`),c.em(`icon`,n)]},[mt(n)]):typeof r.icon==`string`?r.icon?(0,t.createVNode)(`span`,{class:[c.e(`icon`),c.em(`icon`,n)]},[(0,t.createVNode)(`i`,{class:r.icon},null)]):(0,t.createVNode)(t.Fragment,null,null):(0,t.createVNode)(`span`,{class:[c.e(`icon`),c.em(`icon`,n)]},[r.icon]),(0,t.createVNode)(`div`,{class:c.e(`body`)},[r.title!==void 0&&(0,t.createVNode)(`div`,{class:c.e(`title`)},[r.title]),r.content!==void 0&&(0,t.createVNode)(`div`,{class:c.e(`content`)},[r.content])])]),p=(0,t.createVNode)(`div`,{class:c.e(`footer`)},[n===`confirm`&&(0,t.createVNode)(`button`,{class:[`ccui-modal__btn`,`ccui-modal__btn--cancel`],onClick:d},[l]),(0,t.createVNode)(`button`,{class:[`ccui-modal__btn`,`ccui-modal__btn--${o}`,a.value&&`is-loading`],disabled:a.value,onClick:u},[a.value&&(0,t.createVNode)(`span`,{class:`ccui-modal__spinner`},null),s])]);return(0,t.h)(Y,{visible:i.value,"onUpdate:visible":e=>{i.value=e},width:r.width??416,centered:r.centered??!1,mask:r.mask??!0,maskClosable:r.maskClosable??!1,closeOnEsc:r.closeOnEsc??!0,closable:r.closable??!1,zIndex:r.zIndex,wrapClassName:r.wrapClassName,confirmLoading:a.value,onClosed:e},{default:()=>f,footer:()=>p})}}});return s=document.createElement(`div`),s.className=`ccui-modal-confirm-host`,document.body.appendChild(s),o=(0,t.createApp)(u),n?.provides&&(o._context.provides={...n.provides,...o._context.provides}),n?.appContext&&(o._context.components={...n.appContext.components,...o._context.components},o._context.directives={...n.appContext.directives,...o._context.directives},o._context.provides={...n.appContext.provides,...o._context.provides}),o.mount(s),l}function gt(){Array.from(X).forEach(e=>e.destroy())}function Q(e){return(t={},n)=>Z({...t,type:e},n)}function _t(){let e=(0,t.getCurrentInstance)(),n=(t,n)=>Z({...n?{type:n}:{},...t},{provides:e?.provides,appContext:e?.appContext});return{modal:{confirm:(e={})=>n(e,`confirm`),info:(e={})=>n(e,`info`),success:(e={})=>n(e,`success`),error:(e={})=>n(e,`error`),warning:(e={})=>n(e,`warning`)},holder:(0,t.defineComponent)({name:`CModalHolder`,setup(){return()=>null}})}}var $=Y;$.confirm=(e={})=>Z({type:`confirm`,...e}),$.info=Q(`info`),$.success=Q(`success`),$.error=Q(`error`),$.warning=Q(`warning`),$.destroyAll=gt,$.install=function(e){e.component(Y.name,Y)},e.Modal=$,e.default={title:`Modal 对话框`,category:`反馈`,status:`100%`,install(e){e.component(Y.name,Y)}},e.useModal=_t});