diff --git a/public/lib/assets/antdv-3leNc9CG.js b/public/lib/assets/antdv-3leNc9CG.js deleted file mode 100644 index 4197f6a..0000000 --- a/public/lib/assets/antdv-3leNc9CG.js +++ /dev/null @@ -1,7 +0,0 @@ -import{F as e,i as t,C as n,T as o,d as r,r as l,o as i,a,b as s,w as c,g as u,c as d,e as p,p as v,f,u as h,s as g,h as m,j as b,t as y,k as $,l as x,n as S,m as w,q as C,v as k,x as O,y as I,z as M,A as P,B as E,D as T,E as A,G as B,H as D,I as z,J as R,K as j,L as N,M as H,N as F,O as L,P as _,Q as W,R as K,S as V}from"./vue--_kkPoVD.js";function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=X(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:String(t)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function U(e){for(var t=1;t"string"==typeof e,J=e=>null!==e&&"object"==typeof e,ee=/^on[^a-z]/,te=e=>ee.test(e),ne=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oe=/-(\w)/g,re=ne((e=>e.replace(oe,((e,t)=>t?t.toUpperCase():"")))),le=/\B([A-Z])/g,ie=ne((e=>e.replace(le,"-$1").toLowerCase())),ae=ne((e=>e.charAt(0).toUpperCase()+e.slice(1))),se=Object.prototype.hasOwnProperty,ce=(e,t)=>se.call(e,t);function ue(e){return"number"==typeof e?`${e}px`:e}function de(e){let t=arguments.length>2?arguments[2]:void 0;return"function"==typeof e?e(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):null!=e?e:t}function pe(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){fe&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),be?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){fe&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;me.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$e=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),Ae="undefined"!=typeof WeakMap?new WeakMap:new ve,Be=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ye.getInstance(),o=new Te(t,n,this);Ae.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){Be.prototype[e]=function(){var t;return(t=Ae.get(this))[e].apply(t,arguments)}}));var De=void 0!==he.ResizeObserver?he.ResizeObserver:Be;const ze=e=>null!=e&&""!==e,Re=(e,t)=>{const n=q({},e);return Object.keys(t).forEach((e=>{const o=n[e];if(!o)throw new Error(`not have ${e} prop`);o.type||o.default?o.default=t[e]:o.def?o.def(t[e]):n[e]={type:o,default:t[e]}})),n},je=e=>{const t=Object.keys(e),n={},o={},r={};for(let l=0,i=t.length;lvoid 0!==e[t],He=Symbol("skipFlatten"),Fe=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Array.isArray(n)?n:[n],l=[];return r.forEach((n=>{Array.isArray(n)?l.push(...Fe(n,o)):n&&n.type===e?n.key===He?l.push(n):l.push(...Fe(n.children,o)):n&&t(n)?o&&!Ge(n)?l.push(n):o||l.push(n):ze(n)&&l.push(n)})),l},Le=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t(n))return n.type===e?"default"===o?Fe(n.children):[]:n.children&&n.children[o]?Fe(n.children[o](r)):[];{const e=n.$slots[o]&&n.$slots[o](r);return Fe(e)}},_e=e=>{var t;let n=(null===(t=null==e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},We=e=>{const n={};if(e.$&&e.$.vnode){const t=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],l=ie(o);(void 0!==r||l in t)&&(n[o]=r)}))}else if(t(e)&&"object"==typeof e.type){const t=e.props||{},o={};Object.keys(t).forEach((e=>{o[re(e)]=t[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const t=function(e,t,n,o){const r=e[n];if(null!=r){const e=ce(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&"function"==typeof e?e():e}r.type===Boolean&&(ce(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==t||e in o)&&(n[e]=t)}))}return n},Ke=function(n){let o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n.$){const e=n[r];if(void 0!==e)return"function"==typeof e&&i?e(l):e;o=n.$slots[r],o=i&&o?o(l):o}else if(t(n)){const t=n.props&&n.props[r];if(void 0!==t&&null!==n.props)return"function"==typeof t&&i?t(l):t;n.type===e?o=n.children:n.children&&n.children[r]&&(o=n.children[r],o=i&&o?o(l):o)}return Array.isArray(o)&&(o=Fe(o),o=1===o.length?o[0]:o,o=0===o.length?void 0:o),o};function Ve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?q(q({},n),e.$attrs):q(q({},n),e.props),je(n)[t?"onEvents":"events"]}function Xe(e,n){let o=((t(e)?e.props:e.$attrs)||{}).style||{};if("string"==typeof o)o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},o=/:(.+)/;return"object"==typeof e?e:(e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(o);if(r.length>1){const e=t?re(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)}(o,n);else if(n&&o){const e={};return Object.keys(o).forEach((t=>e[re(t)]=o[t])),e}return o}function Ge(t){return t&&(t.type===n||t.type===e&&0===t.children.length||t.type===o&&""===t.children.trim())}function Ye(){const t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{Array.isArray(n)?t.push(...n):(null==n?void 0:n.type)===e?t.push(...Ye(n.children)):t.push(n)})),t.filter((e=>!Ge(e)))}function Ue(e){if(e){const t=Ye(e);return t.length?t:void 0}return e}function qe(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!=typeof e.type}function Qe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var o,r;return null!==(o=t[n])&&void 0!==o?o:null===(r=e[n])||void 0===r?void 0:r.call(e)}const Ze=r({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=l({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,d=null;const p=()=>{d&&(d.disconnect(),d=null)},v=t=>{const{onResize:n}=e,r=t[0].target,{width:l,height:i}=r.getBoundingClientRect(),{offsetWidth:a,offsetHeight:s}=r,c=Math.floor(l),u=Math.floor(i);if(o.width!==c||o.height!==u||o.offsetWidth!==a||o.offsetHeight!==s){const e={width:c,height:u,offsetWidth:a,offsetHeight:s};q(o,e),n&&Promise.resolve().then((()=>{n(q(q({},e),{offsetWidth:a,offsetHeight:s}),r)}))}},f=u(),h=()=>{const{disabled:t}=e;if(t)return void p();const n=_e(f);n!==r&&(p(),r=n),!d&&n&&(d=new De(v),d.observe(n))};return i((()=>{h()})),a((()=>{h()})),s((()=>{p()})),c((()=>e.disabled),(()=>{h()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});let Je=e=>setTimeout(e,16),et=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Je=e=>window.requestAnimationFrame(e),et=e=>window.cancelAnimationFrame(e));let tt=0;const nt=new Map;function ot(e){nt.delete(e)}function rt(e){tt+=1;const t=tt;return function n(o){if(0===o)ot(t),e();else{const e=Je((()=>{n(o-1)}));nt.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}function lt(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r()=>{t=null,e(...n)})(o))}};return n.cancel=()=>{rt.cancel(t),t=null},n}rt.cancel=e=>{const t=nt.get(e);return ot(t),et(t)};const it=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function st(){return{type:[Function,Array]}}function ct(e){return{type:Object,default:e}}function ut(e){return{type:Boolean,default:e}}function dt(e){return{type:Function,default:e}}function pt(e,t){const n={validator:()=>!0,default:e};return n}function vt(e){return{type:Array,default:e}}function ft(e){return{type:String,default:e}}function ht(e,t){return e?{type:e,default:t}:pt(t)}let gt=!1;try{const e=Object.defineProperty({},"passive",{get(){gt=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(QS){}const mt=gt;function bt(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0!==r||!mt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function yt(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function $t(e,t,n){if(void 0!==n&&t.top>e.top-n)return`${n+t.top}px`}function xt(e,t,n){if(void 0!==n&&t.bottomt.target===e));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},wt.push(n),St.forEach((t=>{n.eventHandlers[t]=bt(e,t,(()=>{n.affixList.forEach((e=>{const{lazyUpdatePosition:t}=e.exposed;t()}),!("touchstart"!==t&&"touchmove"!==t||!mt)&&{passive:!0})}))})))}function kt(e){const t=wt.find((t=>{const n=t.affixList.some((t=>t===e));return n&&(t.affixList=t.affixList.filter((t=>t!==e))),n}));t&&0===t.affixList.length&&(wt=wt.filter((e=>e!==t)),St.forEach((e=>{const n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}const Ot="anticon",It=Symbol("GlobalFormContextKey"),Mt=Symbol("configProvider"),Pt={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:d((()=>Ot)),getPopupContainer:d((()=>()=>document.body)),direction:d((()=>"ltr"))},Et=()=>p(Mt,Pt),Tt=Symbol("DisabledContextKey"),At=()=>p(Tt,f(void 0)),Bt=e=>{const t=At();return v(Tt,d((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e},Dt={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},zt={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Rt={lang:q({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:q({},zt)},jt="${label} is not a valid ${type}",Nt={locale:"en",Pagination:Dt,DatePicker:Rt,TimePicker:zt,Calendar:Rt,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:jt,method:jt,array:jt,object:jt,number:jt,date:jt,boolean:jt,integer:jt,float:jt,regexp:jt,email:jt,url:jt,hex:jt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},Ht=r({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=p("localeData",{}),r=d((()=>{const{componentName:t="global",defaultLocale:n}=e,r=n||Nt[t||"global"],{antLocale:l}=o,i=t&&l?l[t]:{};return q(q({},"function"==typeof r?r():r),i||{})})),l=d((()=>{const{antLocale:e}=o,t=e&&e.locale;return e&&e.exist&&!t?Nt.locale:t}));return()=>{const t=e.children||n.default,{antLocale:i}=o;return null==t?void 0:t(r.value,l.value,i)}}});function Ft(e,t,n){const o=p("localeData",{});return[d((()=>{const{antLocale:r}=o,l=h(t)||Nt[e||"global"],i=e&&r?r[e]:{};return q(q(q({},"function"==typeof l?l():l),i||{}),h(n)||{})}))]}function Lt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const _t=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}},Wt="data-token-hash",Kt="data-css-hash",Vt="__cssinjs_instance__";function Xt(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Kt}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[Vt]=t[Vt]||e,t[Vt]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${Kt}]`)).forEach((t=>{var n;const r=t.getAttribute(Kt);o[r]?t[Vt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new _t(e)}const Gt=Symbol("StyleContextKey"),Yt={cache:Xt(),defaultCache:!0,hashPriority:"low"},Ut=()=>{const e=(()=>{var e,t,n;const o=u();let r;if(o&&o.appContext){const l=null===(n=null===(t=null===(e=o.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=Xt(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=Xt();return r})();return p(Gt,g(q(q({},Yt),{cache:e})))},qt=e=>{const t=Ut(),n=g(q(q({},Yt),{cache:Xt()}));return c([()=>h(e),t],(()=>{const o=q({},t.value),r=h(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:l}=r;o.cache=o.cache||Xt(),o.defaultCache=!l&&t.value.defaultCache,n.value=o}),{immediate:!0}),v(Gt,n),n},Qt=at(r({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:ut(),mock:ft(),cache:ct(),defaultCache:ut(),hashPriority:ft(),container:ht(),ssrInline:ut(),transformers:vt(),linters:vt()},setup(e,t){let{slots:n}=t;return qt(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}));function Zt(e,t,n,o){const r=Ut(),l=g(""),i=g();m((()=>{l.value=[e,...t.value].join("%")}));const a=e=>{r.value.cache.update(e,(e=>{const[t=0,n]=e||[];return 0===t-1?(null==o||o(n,!1),null):[t-1,n]}))};return c(l,((e,t)=>{t&&a(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),i.value=r.value.cache.get(l.value)[1]}),{immediate:!0}),b((()=>{a(l.value)})),i}function Jt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function en(e,t){return!!e&&(!!e.contains&&e.contains(t))}const tn="data-vc-order",nn="vc-util-key",on=new Map;function rn(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:nn}function ln(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function an(e){return Array.from((on.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function sn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jt())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(tn,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),(null==n?void 0:n.nonce)&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const l=ln(t),{firstChild:i}=l;if(o){if("queue"===o){const e=an(l).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(tn))));if(e.length)return l.insertBefore(r,e[e.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function cn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return an(ln(t)).find((n=>n.getAttribute(rn(t))===e))}function un(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=cn(e,t);if(n){ln(t).removeChild(n)}}function dn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,l;!function(e,t){const n=on.get(e);if(!n||!en(document,n)){const n=sn("",t),{parentNode:o}=n;on.set(e,o),e.removeChild(n)}}(ln(n),n);const i=cn(t,n);if(i)return(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&i.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(i.nonce=null===(l=n.csp)||void 0===l?void 0:l.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=sn(e,n);return a.setAttribute(rn(n),t),a}class pn{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null==n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),(null==n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>pn.MAX_CACHE_SIZE+pn.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n0),yn+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const xn=new pn;function Sn(e){const t=Array.isArray(e)?e:[e];return xn.has(t)||xn.set(t,new $n(t)),xn.get(t)}const wn=new WeakMap;function Cn(e){let t=wn.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof $n?o.id:o&&"object"==typeof o?Cn(o):o})),wn.set(e,t)),t}const kn=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),On="_bAmBoO_";let In;function Mn(){return void 0===In&&(In=function(e,t,n){var o,r;if(Jt()){dn(e,kn);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",null==t||t(l),document.body.appendChild(l);const i=n?n(l):null===(o=getComputedStyle(l).content)||void 0===o?void 0:o.includes(On);return null===(r=l.parentNode)||void 0===r||r.removeChild(l),un(kn),i}return!1}(`@layer ${kn} { .${kn} { content: "${On}"!important; } }`,(e=>{e.className=kn}))),In}const Pn={},En="css",Tn=new Map;const An=0;function Bn(e,t){Tn.set(e,(Tn.get(e)||0)-1);const n=Array.from(Tn.keys()),o=n.filter((e=>(Tn.get(e)||0)<=0));n.length-o.length>An&&o.forEach((e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${Wt}="${e}"]`).forEach((e=>{var n;e[Vt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Tn.delete(e)}))}const Dn=(e,t,n,o)=>{let r=q(q({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r};function zn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f({});const o=Ut(),r=d((()=>q({},...t.value))),l=d((()=>Cn(r.value))),i=d((()=>Cn(n.value.override||Pn)));return Zt("token",d((()=>[n.value.salt||"",e.value.id,l.value,i.value])),(()=>{const{salt:t="",override:o=Pn,formatToken:l,getComputedToken:i}=n.value,a=i?i(r.value,o,e.value):Dn(r.value,o,e.value,l),s=function(e,t){return Lt(`${t}_${Cn(e)}`)}(a,t);a._tokenKey=s,function(e){Tn.set(e,(Tn.get(e)||0)+1)}(s);const c=`${En}-${Lt(s)}`;return a._hashId=c,[a,c]}),(e=>{var t;Bn(e[0]._tokenKey,null===(t=o.value)||void 0===t?void 0:t.cache.instanceId)}))}var Rn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jn="comm",Nn="rule",Hn="decl",Fn="@import",Ln="@keyframes",_n="@layer",Wn=Math.abs,Kn=String.fromCharCode;function Vn(e){return e.trim()}function Xn(e,t,n){return e.replace(t,n)}function Gn(e,t){return e.indexOf(t)}function Yn(e,t){return 0|e.charCodeAt(t)}function Un(e,t,n){return e.slice(t,n)}function qn(e){return e.length}function Qn(e,t){return t.push(e),e}var Zn=1,Jn=1,eo=0,to=0,no=0,oo="";function ro(e,t,n,o,r,l,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:Zn,column:Jn,length:i,return:"",siblings:a}}function lo(){return no=to2||co(no)>3?"":" "}function vo(e,t){for(;--t&&lo()&&!(no<48||no>102||no>57&&no<65||no>70&&no<97););return so(e,ao()+(t<6&&32==io()&&32==lo()))}function fo(e){for(;lo();)switch(no){case e:return to;case 34:case 39:34!==e&&39!==e&&fo(no);break;case 40:41===e&&fo(e);break;case 92:lo()}return to}function ho(e,t){for(;lo()&&e+no!==57&&(e+no!==84||47!==io()););return"/*"+so(t,to-1)+"*"+Kn(47===e?e:lo())}function go(e){for(;!co(io());)lo();return so(e,to)}function mo(e){return function(e){return oo="",e}(bo("",null,null,null,[""],e=function(e){return Zn=Jn=1,eo=qn(oo=e),to=0,[]}(e),0,[0],e))}function bo(e,t,n,o,r,l,i,a,s){for(var c=0,u=0,d=i,p=0,v=0,f=0,h=1,g=1,m=1,b=0,y="",$=r,x=l,S=o,w=y;g;)switch(f=b,b=lo()){case 40:if(108!=f&&58==Yn(w,d-1)){-1!=Gn(w+=Xn(uo(b),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:w+=uo(b);break;case 9:case 10:case 13:case 32:w+=po(f);break;case 92:w+=vo(ao()-1,7);continue;case 47:switch(io()){case 42:case 47:Qn($o(ho(lo(),ao()),t,n,s),s);break;default:w+="/"}break;case 123*h:a[c++]=qn(w)*m;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==m&&(w=Xn(w,/\f/g,"")),v>0&&qn(w)-d&&Qn(v>32?xo(w+";",o,n,d-1,s):xo(Xn(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(Qn(S=yo(w,t,n,c,u,r,a,y,$=[],x=[],d,l),l),123===b)if(0===u)bo(w,t,S,S,$,l,d,a,x);else switch(99===p&&110===Yn(w,3)?100:p){case 100:case 108:case 109:case 115:bo(e,S,S,o&&Qn(yo(e,S,S,0,0,r,a,y,r,$=[],d,x),x),r,x,d,a,o?$:x);break;default:bo(w,S,S,S,[""],x,0,a,x)}}c=u=v=0,h=m=1,y=w="",d=i;break;case 58:d=1+qn(w),v=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(no=to>0?Yn(oo,--to):0,Jn--,10===no&&(Jn=1,Zn--),no))continue;switch(w+=Kn(b),b*h){case 38:m=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(qn(w)-1)*m,m=1;break;case 64:45===io()&&(w+=uo(lo())),p=io(),u=d=qn(y=w+=go(ao())),b++;break;case 45:45===f&&2==qn(w)&&(h=0)}}return l}function yo(e,t,n,o,r,l,i,a,s,c,u,d){for(var p=r-1,v=0===r?l:[""],f=function(e){return e.length}(v),h=0,g=0,m=0;h0?v[b]+" "+y:Xn(y,/&\f/g,v[b])))&&(s[m++]=$);return ro(e,t,n,0===r?Nn:a,s,c,u,d)}function $o(e,t,n,o){return ro(e,t,n,jn,Kn(no),Un(e,2,-2),0,o)}function xo(e,t,n,o,r){return ro(e,t,n,Hn,Un(e,0,o),Un(e,o+1,-1),o,r)}function So(e,t){for(var n="",o=0;o ")}`:""}`)}function ko(e){var t;return((null===(t=e.match(/:not\(([^)]*)\)/))||void 0===t?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((e=>e)).length>1}const Oo=(e,t,n)=>{const o=function(e){return e.parentSelectors.reduce(((e,t)=>e?t.includes("&")?t.replace(/&/g,e):`${e} ${t}`:t),"")}(n),r=o.match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(ko)&&Co("Concat ':not' selector not support in legacy browsers.",n)},Io=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":return void Co(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof t){const o=t.split(" ").map((e=>e.trim()));4===o.length&&o[1]!==o[3]&&Co(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":return void("left"!==t&&"right"!==t||Co(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n));case"borderRadius":if("string"==typeof t){t.split("/").map((e=>e.trim())).reduce(((e,t)=>{if(e)return e;const n=t.split(" ").map((e=>e.trim()));return n.length>=2&&n[0]!==n[1]||(3===n.length&&n[1]!==n[2]||(4===n.length&&n[2]!==n[3]||e))}),!1)&&Co(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return}},Mo=(e,t,n)=>{n.parentSelectors.some((e=>e.split(",").some((e=>e.split("&").length>2))))&&Co("Should not use more than one `&` in a selector.",n)},Po="data-ant-cssinjs-cache-path",Eo="_FILE_STYLE__";let To,Ao=!0;function Bo(e){return function(){var e;if(!To&&(To={},Jt())){const t=document.createElement("div");t.className=Po,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");To[t]=n}));const o=document.querySelector(`style[${Po}]`);o&&(Ao=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!To[e]}const Do=Jt(),zo="_multi_value_";function Ro(e){return So(mo(e),wo).replace(/\{%%%\:[^;];}/g,";")}const jo=new Set,No=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:l,layer:i,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",p={};function v(e){const n=e.getName(l);if(!p[n]){const[o]=No(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(l)}${o}`}}const f=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]);if(f.forEach((e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)d+=`${i}\n`;else if(i._keyframe)v(i);else{const e=c.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),i);Object.keys(e).forEach((i=>{var a;const c=e[i];if("object"!=typeof c||!c||"animationName"===i&&c._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||zo in e)}(c)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;Rn[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&(null==t?void 0:t._keyframe)&&(v(t),o=t.getName(l)),d+=`${n}:${o};`};const t=null!==(a=null==c?void 0:c.value)&&void 0!==a?a:c;"object"==typeof c&&(null==c?void 0:c[zo])&&Array.isArray(t)?t.forEach((t=>{e(i,t)})):e(i,t)}else{let e=!1,a=i.trim(),u=!1;(n||o)&&l?a.startsWith("@")?e=!0:a=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const l=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${l}${r}${o.slice(l.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(i,l,s):!n||l||"&"!==a&&""!==a||(a="",u=!0);const[v,f]=No(c,t,{root:u,injectHash:e,parentSelectors:[...r,a]});p=q(q({},p),f),d+=`${a}${v}`}}))}})),n){if(i&&Mn()){const e=i.split(","),t=e[e.length-1].trim();d=`@layer ${t} {${d}}`,e.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Ho(e,t){const n=Ut(),o=d((()=>e.value.token._tokenKey)),r=d((()=>[o.value,...e.value.path]));let l=Do;return Zt("style",r,(()=>{const{path:i,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,p=r.value.join("|");if(Bo(p)){const[e,t]=function(e){const t=To[e];let n=null;if(t&&Jt())if(Ao)n=Eo;else{const t=document.querySelector(`style[${Kt}="${To[e]}"]`);t?n=t.innerHTML:delete To[e]}return[n,t]}(p);if(e)return[e,o.value,t,{},u,d]}const v=t(),{hashPriority:f,container:h,transformers:g,linters:m,cache:b}=n.value,[y,$]=No(v,{hashId:a,hashPriority:f,layer:s,path:i.join("-"),transformers:g,linters:m}),x=Ro(y),S=function(e,t){return Lt(`${e.join("%")}${t}`)}(r.value,x);if(l){const e={mark:Kt,prepend:"queue",attachTo:h,priority:d},t="function"==typeof c?c():c;t&&(e.csp={nonce:t});const n=dn(x,S,e);n[Vt]=b.instanceId,n.setAttribute(Wt,o.value),Object.keys($).forEach((e=>{jo.has(e)||(jo.add(e),dn(Ro($[e]),`_effect-${e}`,{mark:Kt,prepend:"queue",attachTo:h}))}))}return[x,o.value,S,$,u,d]}),((e,t)=>{let[,,o]=e;(t||n.value.autoClear)&&Do&&un(o,{mark:Kt})})),e=>e}const Fo=class{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}};function Lo(e){return e.notSplit=!0,e}const _o={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Lo(["borderTop","borderBottom"]),borderBlockStart:Lo(["borderTop"]),borderBlockEnd:Lo(["borderBottom"]),borderInline:Lo(["borderLeft","borderRight"]),borderInlineStart:Lo(["borderLeft"]),borderInlineEnd:Lo(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Wo(e){return{_skip_check_:!0,value:e}}const Ko=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;const Vo={Theme:$n,createTheme:Sn,useStyleRegister:Ho,useCacheToken:zn,createCache:Xt,useStyleInject:Ut,useStyleProvider:qt,Keyframes:Fo,extractStyle:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="style%",o=Array.from(e.cache.keys()).filter((e=>e.startsWith(n))),r={},l={};let i="";function a(e,n,o){const r=q(q({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{[Wt]:n,[Kt]:o}),l=Object.keys(r).map((e=>{const t=r[e];return t?`${e}="${t}"`:null})).filter((e=>e)).join(" ");return t?e:``}return o.map((t=>{const n=t.slice(6).replace(/%/g,"|"),[o,i,s,c,u,d]=e.cache.get(t)[1];if(u)return null;const p={"data-vc-order":"prependQueue","data-vc-priority":`${d}`};let v=a(o,i,s,p);l[n]=s,c&&Object.keys(c).forEach((e=>{r[e]||(r[e]=!0,v+=a(Ro(c[e]),i,`_effect-${e}`,p))}));return[d,v]})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{let[,t]=e;i+=t})),i+=a(`.${Po}{content:"${function(e){return Object.keys(e).map((t=>`${t}:${e[t]}`)).join(";")}(l)}";}`,void 0,void 0,{[Po]:Po}),i},legacyLogicalPropertiesTransformer:{visit:e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[n],r=_o[n];if(!r||"number"!=typeof o&&"string"!=typeof o)t[n]=o;else{const e=function(e){if("number"==typeof e)return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce(((e,t)=>(t.includes("(")?(n+=t,o+=t.split("(").length-1):t.includes(")")?(n+=` ${t}`,o-=t.split(")").length-1,0===o&&(e.push(n),n="")):o>0?n+=` ${t}`:e.push(t),e)),[])}(o);r.length&&r.notSplit?r.forEach((e=>{t[e]=Wo(o)})):1===r.length?t[r[0]]=Wo(o):2===r.length?r.forEach(((n,o)=>{var r;t[n]=Wo(null!==(r=e[o])&&void 0!==r?r:e[0])})):4===r.length?r.forEach(((n,o)=>{var r,l;t[n]=Wo(null!==(l=null!==(r=e[o])&&void 0!==r?r:e[o-2])&&void 0!==l?l:e[0])})):t[n]=o}})),t}},px2remTransformer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(e,o)=>{if(!o)return e;const r=parseFloat(o);if(r<=1)return e;const l=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(r/t,n);return`${l}rem`};return{visit:e=>{const t=q({},e);return Object.entries(e).forEach((e=>{let[n,l]=e;if("string"==typeof l&&l.includes("px")){const e=l.replace(Ko,r);t[n]=e}Rn[n]||"number"!=typeof l||0===l||(t[n]=`${l}px`.replace(Ko,r));const i=n.trim();if(i.startsWith("@")&&i.includes("px")&&o){const e=n.replace(Ko,r);t[e]=t[n],delete t[n]}})),t}}},logicalPropertiesLinter:Io,legacyNotSelectorLinter:Oo,parentSelectorLinter:Mo,StyleProvider:Qt},Xo="4.1.0",Go=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Yo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Uo(e){return Math.min(1,Math.max(0,e))}function qo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qo(e){return e<=1?"".concat(100*Number(e),"%"):e}function Zo(e){return 1===e.length?"0"+e:String(e)}function Jo(e,t,n){e=Yo(e,255),t=Yo(t,255),n=Yo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=0,a=(o+r)/2;if(o===r)i=0,l=0;else{var s=o-r;switch(i=a>.5?s/(2-o-r):s/(o+r),o){case e:l=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tr(e,t,n){e=Yo(e,255),t=Yo(t,255),n=Yo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=o,a=o-r,s=0===o?0:a/o;if(o===r)l=0;else{switch(o){case e:l=(t-n)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=ir(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=qo(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=tr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=tr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Jo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Jo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),nr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var l,i=[Zo(Math.round(e).toString(16)),Zo(Math.round(t).toString(16)),Zo(Math.round(n).toString(16)),Zo((l=o,Math.round(255*parseFloat(l)).toString(16)))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Yo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Yo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+nr(this.r,this.g,this.b,!1),t=0,n=Object.entries(lr);t=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Uo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Uo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Uo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Uo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),l=n/100;return new e({r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b,a:(r.a-o.a)*l+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,l=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,l.push(new e(o));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,l=n.v,i=[],a=1/t;t--;)i.push(new e({h:o,s:r,v:l})),l=(l+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],l=360/t,i=1;i=60&&Math.round(e.h)<=240?n?Math.round(e.h)-vr*t:Math.round(e.h)+vr*t:n?Math.round(e.h)+vr*t:Math.round(e.h)-vr*t)<0?o+=360:o>=360&&(o-=360),o}function Cr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-fr*t:t===yr?e.s+fr:e.s+hr*t)>1&&(o=1),n&&t===br&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function kr(e,t,n){var o;return(o=n?e.v+gr*t:e.v-mr*t)>1&&(o=1),Number(o.toFixed(2))}function Or(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=ir(e),r=br;r>0;r-=1){var l=xr(o),i=Sr(ir({h:wr(l,r,!0),s:Cr(l,r,!0),v:kr(l,r,!0)}));n.push(i)}n.push(Sr(o));for(var a=1;a<=yr;a+=1){var s=xr(o),c=Sr(ir({h:wr(s,a),s:Cr(s,a),v:kr(s,a)}));n.push(c)}return"dark"===t.theme?$r.map((function(e){var o,r,l,i=e.index,a=e.opacity;return Sr((o=ir(t.backgroundColor||"#141414"),r=ir(n[i]),l=100*a/100,{r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b}))})):n}var Ir={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Mr={},Pr={};Object.keys(Ir).forEach((function(e){Mr[e]=Or(Ir[e]),Mr[e].primary=Mr[e][5],Pr[e]=Or(Ir[e],{theme:"dark",backgroundColor:"#141414"}),Pr[e].primary=Pr[e][5]}));var Er=Mr.gold,Tr=Mr.blue;const Ar=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const Br={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Dr=q(q({},Br),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});const zr=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};const Rr=(e,t)=>new pr(e).setAlpha(t).toRgbString(),jr=(e,t)=>new pr(e).darken(t).toHexString(),Nr=e=>{const t=Or(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Hr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Rr(o,.88),colorTextSecondary:Rr(o,.65),colorTextTertiary:Rr(o,.45),colorTextQuaternary:Rr(o,.25),colorFill:Rr(o,.15),colorFillSecondary:Rr(o,.06),colorFillTertiary:Rr(o,.04),colorFillQuaternary:Rr(o,.02),colorBgLayout:jr(n,4),colorBgContainer:jr(n,0),colorBgElevated:jr(n,0),colorBgSpotlight:Rr(o,.85),colorBorder:jr(n,15),colorBorderSecondary:jr(n,6)}};const Fr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),l=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(l/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Lr(e){return e>=0&&e<=255}function _r(e,t){const{r:n,g:o,b:r,a:l}=new pr(e).toRgb();if(l<1)return e;const{r:i,g:a,b:s}=new pr(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-i*(1-c))/c),t=Math.round((o-a*(1-c))/c),l=Math.round((r-s*(1-c))/c);if(Lr(e)&&Lr(t)&&Lr(l))return new pr({r:e,g:t,b:l,a:Math.round(100*c)/100}).toRgbString()}return new pr({r:n,g:o,b:r,a:1}).toRgbString()}var Wr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{delete o[e]}));const r=q(q({},n),o),l=1200,i=1600,a=2e3;return q(q(q({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:_r(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:_r(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:_r(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:_r(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:l,screenXLMin:l,screenXLMax:1599,screenXXL:i,screenXXLMin:i,screenXXLMax:1999,screenXXXL:a,screenXXXLMin:a,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new pr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new pr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new pr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Vr=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Xr=(e,t,n,o,r)=>{const l=e/2,i=l,a=1*n/Math.sqrt(2),s=l-n*(1-1/Math.sqrt(2)),c=l-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*l-c,p=u,v=2*l-a,f=s,h=2*l-0,g=i,m=l*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:m,height:m,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*l-b}px 100%, ${b}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${a} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${v} ${f} A ${n} ${n} 0 0 0 ${h} ${g} Z')`]},content:'""'}}};function Gr(e,t){return Go.reduce(((n,o)=>{const r=e[`${o}-1`],l=e[`${o}-3`],i=e[`${o}-6`],a=e[`${o}-7`];return q(q({},n),t(o,{lightColor:r,lightBorderColor:l,darkColor:i,textColor:a}))}),{})}const Yr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ur=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),qr=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Qr=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Zr=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Jr=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),el=e=>({"&:focus-visible":q({},Jr(e))});function tl(e,t,n){return o=>{const r=d((()=>null==o?void 0:o.value)),[l,i,a]=dl(),{getPrefixCls:s,iconPrefixCls:c}=Et(),u=d((()=>s()));Ho(d((()=>({theme:l.value,token:i.value,hashId:a.value,path:["Shared",u.value]}))),(()=>[{"&":Qr(i.value)}]));return[Ho(d((()=>({theme:l.value,token:i.value,hashId:a.value,path:[e,r.value,c.value]}))),(()=>{const{token:o,flush:l}=function(e){let t,n=e,o=ll;nl&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ol&&t.add(n),e[n])}),o=(e,n)=>{Array.from(t)});return{token:n,keys:t,flush:o}}(i.value),s=q(q({},"function"==typeof n?n(o):n),i.value[e]),d=rl(o,{componentCls:`.${r.value}`,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},s),p=t(d,{hashId:a.value,prefixCls:r.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:i.value[e]});return l(e,s),[Zr(i.value,r.value),p]})),a]}}const nl="undefined"!=typeof CSSINJS_STATISTIC;let ol=!0;function rl(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ol=!0,o}function ll(){}const il=Sn((function(e){const t=Object.keys(Br).map((t=>{const n=Or(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=q(q({},e),t)),{});return q(q(q(q(q(q(q({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:l,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),p=n(r),v=n(l),f=n(i),h=n(a);return q(q({},o(c,u)),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new pr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Nr,generateNeutralColorPalettes:Hr})),Fr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),Ar(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return q({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},zr(o))}(e))})),al={token:Dr,hashed:!0},sl=Symbol("DesignTokenContext"),cl=g(),ul=r({props:{value:ct()},setup(e,t){let{slots:n}=t;var o;return o=d((()=>e.value)),v(sl,o),c(o,(()=>{cl.value=h(o),y(cl)}),{immediate:!0,deep:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function dl(){const e=p(sl,d((()=>cl.value||al))),t=d((()=>`${Xo}-${e.value.hashed||""}`)),n=d((()=>e.value.theme||il)),o=zn(n,d((()=>[Dr,e.value.token])),d((()=>({salt:t.value,override:q({override:e.value.token},e.value.components),formatToken:Kr}))));return[n,d((()=>o.value[0])),d((()=>e.value.hashed?o.value[1]:""))]}const pl=r({compatConfig:{MODE:3},setup(){const[,e]=dl(),t=d((()=>new pr(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{}));return()=>$("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[$("g",{fill:"none","fill-rule":"evenodd"},[$("g",{transform:"translate(24 31.67)"},[$("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),$("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),$("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),$("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),$("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),$("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),$("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[$("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),$("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});pl.PRESENTED_IMAGE_DEFAULT=!0;const vl=pl,fl=r({compatConfig:{MODE:3},setup(){const[,e]=dl(),t=d((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e.value;return{borderColor:new pr(t).onBackground(r).toHexString(),shadowColor:new pr(n).onBackground(r).toHexString(),contentColor:new pr(o).onBackground(r).toHexString()}}));return()=>$("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[$("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[$("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),$("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[$("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),$("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});fl.PRESENTED_IMAGE_SIMPLE=!0;const hl=fl,gl=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:l,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:l,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ml=tl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=rl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[gl(o)]}));const bl=$(vl,null,null),yl=$(hl,null,null),$l=r({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:{prefixCls:String,imageStyle:ct(),image:pt(),description:pt()},setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:l}=Il("empty",e),[i,a]=ml(l);return()=>{var t,s;const c=l.value,u=q(q({},e),o),{image:d=(null===(t=n.image)||void 0===t?void 0:t.call(n))||bl,description:p=(null===(s=n.description)||void 0===s?void 0:s.call(n))||void 0,imageStyle:v,class:f=""}=u,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const t=void 0!==p?p:e.description;let o=null;return o="string"==typeof d?$("img",{alt:"string"==typeof t?t:"empty",src:d},null):d,$("div",U({class:pe(c,f,a.value,{[`${c}-normal`]:d===yl,[`${c}-rtl`]:"rtl"===r.value})},h),[$("div",{class:`${c}-image`,style:v},[o]),t&&$("p",{class:`${c}-description`},[t]),n.default&&$("div",{class:`${c}-footer`},[Ye(n.default())])])}},null))}}});$l.PRESENTED_IMAGE_DEFAULT=bl,$l.PRESENTED_IMAGE_SIMPLE=yl;const xl=at($l),Sl=e=>{const{prefixCls:t}=Il("empty",e);return(e=>{switch(e){case"Table":case"List":return $(xl,{image:xl.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return $(xl,{image:xl.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return $(xl,null,null)}})(e.componentName)};function wl(e){return $(Sl,{componentName:e},null)}const Cl=Symbol("SizeContextKey"),kl=()=>p(Cl,f(void 0)),Ol=e=>{const t=kl();return v(Cl,d((()=>e.value||t.value))),e},Il=(e,t)=>{const n=kl(),o=At(),r=p(Mt,q(q({},Pt),{renderEmpty:e=>x(Sl,{componentName:e})})),l=d((()=>r.getPrefixCls(e,t.prefixCls))),i=d((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=r.direction)||void 0===n?void 0:n.value})),a=d((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:r.iconPrefixCls.value})),s=d((()=>r.getPrefixCls())),c=d((()=>{var e;return null===(e=r.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),u=r.renderEmpty,v=r.space,f=r.pageHeader,h=r.form,g=d((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=r.getTargetContainer)||void 0===n?void 0:n.value})),m=d((()=>{var e,n,o;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(o=r.getPopupContainer)||void 0===o?void 0:o.value})),b=d((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=r.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),y=d((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=r.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==b.value})),$=d((()=>t.size||n.value)),S=d((()=>{var e,n,o;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(o=null===(n=r.input)||void 0===n?void 0:n.value)||void 0===o?void 0:o.autocomplete})),w=d((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:o.value})),C=d((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:r.csp})),k=d((()=>{var e,n;return null!==(e=t.wave)&&void 0!==e?e:null===(n=r.wave)||void 0===n?void 0:n.value}));return{configProvider:r,prefixCls:l,direction:i,size:$,getTargetContainer:g,getPopupContainer:m,space:v,pageHeader:f,form:h,autoInsertSpaceInButton:c,renderEmpty:u,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:S,csp:C,iconPrefixCls:a,disabled:w,select:r.select,wave:k}};function Ml(e,t){const n=q({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},El=tl("Affix",(e=>{const t=rl(e,{zIndexPopup:e.zIndexBase+10});return[Pl(t)]}));function Tl(){return"undefined"!=typeof window?window:null}var Al,Bl;(Bl=Al||(Al={}))[Bl.None=0]="None",Bl[Bl.Prepare=1]="Prepare";const Dl=at(r({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Tl},prefixCls:String,onChange:Function,onTestUpdatePosition:Function},setup(e,t){let{slots:n,emit:o,expose:r,attrs:p}=t;const v=g(),f=g(),h=l({affixStyle:void 0,placeholderStyle:void 0,status:Al.None,lastAffix:!1,prevTarget:null,timeout:null}),m=u(),b=d((()=>void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop)),y=d((()=>e.offsetBottom)),x=()=>{q(h,{status:Al.Prepare,affixStyle:void 0,placeholderStyle:void 0})},S=lt((()=>{x()})),w=lt((()=>{const{target:t}=e,{affixStyle:n}=h;if(t&&n){const e=t();if(e&&v.value){const t=yt(e),o=yt(v.value),r=$t(o,t,b.value),l=xt(o,t,y.value);if(void 0!==r&&n.top===r||void 0!==l&&n.bottom===l)return}}x()}));r({updatePosition:S,lazyUpdatePosition:w}),c((()=>e.target),(e=>{const t=(null==e?void 0:e())||null;h.prevTarget!==t&&(kt(m),t&&(Ct(t,m),S()),h.prevTarget=t)})),c((()=>[e.offsetTop,e.offsetBottom]),S),i((()=>{const{target:t}=e;t&&(h.timeout=setTimeout((()=>{Ct(t(),m),S()})))})),a((()=>{(()=>{const{status:t,lastAffix:n}=h,{target:r}=e;if(t!==Al.Prepare||!f.value||!v.value||!r)return;const l=r();if(!l)return;const i={status:Al.None},a=yt(v.value);if(0===a.top&&0===a.left&&0===a.width&&0===a.height)return;const s=yt(l),c=$t(a,s,b.value),u=xt(a,s,y.value);if(0!==a.top||0!==a.left||0!==a.width||0!==a.height){if(void 0!==c){const e=`${a.width}px`,t=`${a.height}px`;i.affixStyle={position:"fixed",top:c,width:e,height:t},i.placeholderStyle={width:e,height:t}}else if(void 0!==u){const e=`${a.width}px`,t=`${a.height}px`;i.affixStyle={position:"fixed",bottom:u,width:e,height:t},i.placeholderStyle={width:e,height:t}}i.lastAffix=!!i.affixStyle,n!==i.lastAffix&&o("change",i.lastAffix),q(h,i)}})()})),s((()=>{clearTimeout(h.timeout),kt(m),S.cancel(),w.cancel()}));const{prefixCls:C}=Il("affix",e),[k,O]=El(C);return()=>{var t;const{affixStyle:o,placeholderStyle:r,status:l}=h,i=pe({[C.value]:o,[O.value]:!0}),a=Ml(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return k($(Ze,{onResize:S},{default:()=>[$("div",U(U(U({},a),p),{},{ref:v,"data-measure-status":l}),[o&&$("div",{style:r,"aria-hidden":"true"},null),$("div",{class:i,ref:f,style:o},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])]}))}}}));function zl(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Rl(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function jl(e,t){if(e.clientHeightt||l>e&&i=t&&a>=n?l-e-o:i>t&&an?i-t+r:0}var Hl=function(e,t){var n=window,o=t.scrollMode,r=t.block,l=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!zl(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],v=e;zl(v)&&s(v);){if((v=null==(u=(c=v).parentElement)?c.getRootNode().host||null:u)===d){p.push(v);break}null!=v&&v===document.body&&jl(v)&&!jl(document.documentElement)||null!=v&&jl(v,a)&&p.push(v)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,$=b.width,x=b.top,S=b.right,w=b.bottom,C=b.left,k="start"===r||"nearest"===r?x:"end"===r?w:x+y/2,O="center"===l?C+$/2:"end"===l?S:C,I=[],M=0;M=0&&C>=0&&w<=h&&S<=f&&x>=B&&w<=z&&C>=R&&S<=D)return I;var j=getComputedStyle(P),N=parseInt(j.borderLeftWidth,10),H=parseInt(j.borderTopWidth,10),F=parseInt(j.borderRightWidth,10),L=parseInt(j.borderBottomWidth,10),_=0,W=0,K="offsetWidth"in P?P.offsetWidth-P.clientWidth-N-F:0,V="offsetHeight"in P?P.offsetHeight-P.clientHeight-H-L:0,X="offsetWidth"in P?0===P.offsetWidth?0:A/P.offsetWidth:0,G="offsetHeight"in P?0===P.offsetHeight?0:T/P.offsetHeight:0;if(d===P)_="start"===r?k:"end"===r?k-h:"nearest"===r?Nl(m,m+h,h,H,L,m+k,m+k+y,y):k-h/2,W="start"===l?O:"center"===l?O-f/2:"end"===l?O-f:Nl(g,g+f,f,N,F,g+O,g+O+$,$),_=Math.max(0,_+m),W=Math.max(0,W+g);else{_="start"===r?k-B-H:"end"===r?k-z+L+V:"nearest"===r?Nl(B,z,T,H,L+V,k,k+y,y):k-(B+T/2)+V/2,W="start"===l?O-R-N:"center"===l?O-(R+A/2)+K/2:"end"===l?O-D+F+K:Nl(R,D,A,N,F+K,O,O+$,$);var Y=P.scrollLeft,U=P.scrollTop;k+=U-(_=Math.max(0,Math.min(U+_/G,P.scrollHeight-T/G+V))),O+=Y-(W=Math.max(0,Math.min(Y+W/X,P.scrollWidth-A/X+K)))}I.push({el:P,top:_,left:W})}return I};function Fl(e){return e===Object(e)&&0!==Object.keys(e).length}function Ll(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Fl(t)&&"function"==typeof t.behavior)return t.behavior(n?Hl(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Fl(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,l=e.left;o.scroll&&n?o.scroll({top:r,left:l,behavior:t}):(o.scrollTop=r,o.scrollLeft=l)}))}(Hl(e,o),o.behavior)}}function _l(e){return null!=e&&e===e.window}function Wl(e,t){var n,o;if("undefined"==typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let l=0;return _l(e)?l=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?l=e.documentElement[r]:(e instanceof HTMLElement||e)&&(l=e[r]),e&&!_l(e)&&"number"!=typeof l&&(l=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),l}function Kl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,l=n(),i=Wl(l,!0),a=Date.now(),s=()=>{const t=Date.now()-a,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,i,e,r);_l(l)?l.scrollTo(window.pageXOffset,n):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=n:l.scrollTop=n,t{v(Xl,e)},Yl=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:l,lineType:i,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:q(q({},Ur(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":q(q({},Yr),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${i} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:l,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Ul=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},ql=tl("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,l=rl(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[Yl(l),Ul(l)]})),Ql=r({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:Re({prefixCls:String,href:String,title:pt(),target:String,customTitleProps:ct()},{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:l,scrollTo:a,unregisterLink:s,registerLink:u,activeLink:v}=p(Xl,{registerLink:Vl,unregisterLink:Vl,scrollTo:Vl,activeLink:d((()=>"")),handleClick:Vl,direction:d((()=>"vertical"))}),{prefixCls:f}=Il("anchor",e),h=t=>{const{href:n}=e;l(t,{title:r,href:n}),a(n)};return c((()=>e.href),((e,t)=>{S((()=>{s(t),u(e)}))})),i((()=>{u(e.href)})),b((()=>{s(e.href)})),()=>{var t;const{href:l,target:i,title:a=n.title,customTitleProps:s={}}=e,c=f.value;r="function"==typeof a?a(s):a;const u=v.value===l,d=pe(`${c}-link`,{[`${c}-link-active`]:u},o.class),p=pe(`${c}-link-title`,{[`${c}-link-title-active`]:u});return $("div",U(U({},o),{},{class:d}),[$("a",{class:p,href:l,title:"string"==typeof r?r:"",target:i,onClick:h},[n.customTitle?n.customTitle(s):r]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});function Zl(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function oi(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var ri=Object.prototype,li=ri.toString,ii=ri.hasOwnProperty,ai=/^\s*function (\w+)/;function si(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var o=n.toString().match(ai);return o?o[1]:""}return""}var ci=function(e){var t,n;return!1!==oi(e)&&"function"==typeof(t=e.constructor)&&!1!==oi(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},ui=function(e){return e},di=function(e,t){return ii.call(e,t)},pi=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},vi=Array.isArray||function(e){return"[object Array]"===li.call(e)},fi=function(e){return"[object Function]"===li.call(e)},hi=function(e){return ci(e)&&di(e,"_vueTypes_name")},gi=function(e){return ci(e)&&(di(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return di(e,t)})))};function mi(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function bi(e,t,n){var o;void 0===n&&(n=!1);var r=!0,l="";o=ci(e)?e:{type:e};var i=hi(o)?o._vueTypes_name+" - ":"";if(gi(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&void 0===t)return r;vi(o.type)?(r=o.type.some((function(e){return!0===bi(e,t,!0)})),l=o.type.map((function(e){return si(e)})).join(" or ")):r="Array"===(l=si(o))?vi(t):"Object"===l?ci(t):"String"===l||"Number"===l||"Boolean"===l||"Function"===l?function(e){if(null==e)return"";var t=e.constructor.toString().match(ai);return t?t[1]:""}(t)===l:t instanceof o.type}if(!r){var a=i+'value "'+t+'" should be of type "'+l+'"';return!1===n?(ui(a),!1):a}if(di(o,"validator")&&fi(o.validator)){var s=ui,c=[];if(ui=function(e){c.push(e)},r=o.validator(t),ui=s,!r){var u=(c.length>1?"* ":"")+c.join("\n* ");return c.length=0,!1===n?(ui(u),r):u}}return r}function yi(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?fi(e)||!0===bi(this,e,!0)?(this.default=vi(e)?function(){return[].concat(e)}:ci(e)?function(){return Object.assign({},e)}:e,this):(ui(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),o=n.validator;return fi(o)&&(n.validator=mi(o,n)),n}function $i(e,t){var n=yi(e,t);return Object.defineProperty(n,"validate",{value:function(e){return fi(this.validator)&&ui(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=mi(e,this),this}})}function xi(e,t,n){var o,r,l=(o=t,r={},Object.getOwnPropertyNames(o).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(o,e)})),Object.defineProperties({},r));if(l._vueTypes_name=e,!ci(n))return l;var i,a,s=n.validator,c=ni(n,["validator"]);if(fi(s)){var u=l.validator;u&&(u=null!==(a=(i=u).__original)&&void 0!==a?a:i),l.validator=mi(u?function(e){return u.call(this,e)&&s.call(this,e)}:s,l)}return Object.assign(l,c)}function Si(e){return e.replace(/^(?!\s*$)/gm," ")}var wi=function(){function e(){}return e.extend=function(e){var t=this;if(vi(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,o=e.validate,r=void 0!==o&&o,l=e.getter,i=void 0!==l&&l,a=ni(e,["name","validate","getter"]);if(di(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var s,c=a.type;return hi(c)?(delete a.type,Object.defineProperty(this,n,i?{get:function(){return xi(n,c,a)}}:{value:function(){var e,t=xi(n,c,a);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(s=i?{get:function(){var e=Object.assign({},a);return r?$i(n,e):yi(n,e)},enumerable:!0}:{value:function(){var e,t,o=Object.assign({},a);return e=r?$i(n,o):yi(n,o),o.validator&&(e.validator=(t=o.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,s))},Jl(e,null,[{key:"any",get:function(){return $i("any",{})}},{key:"func",get:function(){return $i("function",{type:Function}).def(this.defaults.func)}},{key:"bool",get:function(){return $i("boolean",{type:Boolean}).def(this.defaults.bool)}},{key:"string",get:function(){return $i("string",{type:String}).def(this.defaults.string)}},{key:"number",get:function(){return $i("number",{type:Number}).def(this.defaults.number)}},{key:"array",get:function(){return $i("array",{type:Array}).def(this.defaults.array)}},{key:"object",get:function(){return $i("object",{type:Object}).def(this.defaults.object)}},{key:"integer",get:function(){return yi("integer",{type:Number,validator:function(e){return pi(e)}}).def(this.defaults.integer)}},{key:"symbol",get:function(){return yi("symbol",{validator:function(e){return"symbol"==typeof e}})}}]),e}();function Ci(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return ti(n,t),Jl(n,null,[{key:"sensibleDefaults",get:function(){return ei({},this.defaults)},set:function(t){this.defaults=!1!==t?ei({},!0!==t?t:e):{}}}]),n}(wi)).defaults=ei({},e),t}wi.defaults={},wi.custom=function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return yi(e.name||"<>",{validator:function(n){var o=e(n);return o||ui(this._vueTypes_name+" - "+t),o}})},wi.oneOf=function(e){if(!vi(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return yi("oneOf",{type:n.length>0?n:void 0,validator:function(n){var o=-1!==e.indexOf(n);return o||ui(t),o}})},wi.instanceOf=function(e){return yi("instanceOf",{type:e})},wi.oneOfType=function(e){if(!vi(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some((function(e){return-1===l.indexOf(e)}))){var i=n.filter((function(e){return-1===l.indexOf(e)}));return ui(1===i.length?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return l.every((function(n){if(-1===t.indexOf(n))return!0===r._vueTypes_isLoose||(ui('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var l=bi(e[n],o[n],!0);return"string"==typeof l&&ui('shape - "'+n+'" property validation error:\n '+Si(l)),!0===l}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o},wi.utils={validate:function(e,t){return!0===bi(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?$i(e,t):yi(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}ti(t,e)}(Ci());const ki=Ci({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});function Oi(e){return e.default=void 0,e}ki.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const Ii=ki,Mi=(e,t,n)=>{mn(e,`[ant-design-vue: ${t}] ${n}`)};function Pi(){return window}function Ei(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const Ti=/#([\S ]+)$/,Ai=r({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:{prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:vt(),direction:Ii.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function},setup(e,t){let{emit:n,attrs:o,slots:r,expose:s}=t;const{prefixCls:c,getTargetContainer:u,direction:p}=Il("anchor",e),v=d((()=>{var t;return null!==(t=e.direction)&&void 0!==t?t:"vertical"})),h=f(null),g=f(),m=l({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),y=f(null),x=d((()=>{const{getContainer:t}=e;return t||(null==u?void 0:u.value)||Pi})),w=t=>{const{getCurrentAnchor:o}=e;y.value!==t&&(y.value="function"==typeof o?o(t):t,n("change",t))},C=t=>{const{offsetTop:n,targetOffset:o}=e;w(t);const r=Ti.exec(t);if(!r)return;const l=document.getElementById(r[1]);if(!l)return;const i=x.value();let a=Wl(i,!0)+Ei(l,i);a-=void 0!==o?o:n||0,m.animating=!0,Kl(a,{callback:()=>{m.animating=!1},getContainer:x.value})};s({scrollTo:C});const k=()=>{if(m.animating)return;const{offsetTop:t,bounds:n,targetOffset:o}=e,r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=[],o=x.value();if(m.links.forEach((r=>{const l=Ti.exec(r.toString());if(!l)return;const i=document.getElementById(l[1]);if(i){const l=Ei(i,o);lt.top>e.top?t:e)).link;return""}(void 0!==o?o:t||0,n);w(r)};Gl({registerLink:e=>{m.links.includes(e)||m.links.push(e)},unregisterLink:e=>{const t=m.links.indexOf(e);-1!==t&&m.links.splice(t,1)},activeLink:y,scrollTo:C,handleClick:(e,t)=>{n("click",e,t)},direction:v}),i((()=>{S((()=>{const e=x.value();m.scrollContainer=e,m.scrollEvent=bt(m.scrollContainer,"scroll",k),k()}))})),b((()=>{m.scrollEvent&&m.scrollEvent.remove()})),a((()=>{if(m.scrollEvent){const e=x.value();m.scrollContainer!==e&&(m.scrollContainer=e,m.scrollEvent.remove(),m.scrollEvent=bt(m.scrollContainer,"scroll",k),k())}(()=>{const e=g.value.querySelector(`.${c.value}-link-title-active`);if(e&&h.value){const t="horizontal"===v.value;h.value.style.top=t?"":`${e.offsetTop+e.clientHeight/2}px`,h.value.style.height=t?"":`${e.clientHeight}px`,h.value.style.left=t?`${e.offsetLeft}px`:"",h.value.style.width=t?`${e.clientWidth}px`:"",t&&Ll(e,{scrollMode:"if-needed",block:"nearest"})}})()}));const O=e=>Array.isArray(e)?e.map((e=>{const{children:t,key:n,href:o,target:l,class:i,style:a,title:s}=e;return $(Ql,{key:n,href:o,target:l,class:i,style:a,title:s,customTitleProps:e},{default:()=>["vertical"===v.value?O(t):null],customTitle:r.customTitle})})):null,[I,M]=ql(c);return()=>{var t;const{offsetTop:n,affix:l,showInkInFixed:i}=e,a=c.value,s=pe(`${a}-ink`,{[`${a}-ink-visible`]:y.value}),u=pe(M.value,e.wrapperClass,`${a}-wrapper`,{[`${a}-wrapper-horizontal`]:"horizontal"===v.value,[`${a}-rtl`]:"rtl"===p.value}),d=pe(a,{[`${a}-fixed`]:!l&&!i}),f=q({maxHeight:n?`calc(100vh - ${n}px)`:"100vh"},e.wrapperStyle),m=$("div",{class:u,style:f,ref:g},[$("div",{class:d},[$("span",{class:s,ref:h},null),Array.isArray(e.items)?O(e.items):null===(t=r.default)||void 0===t?void 0:t.call(r)])]);return I(l?$(Dl,U(U({},o),{},{offsetTop:n,target:x.value}),{default:()=>[m]}):m)}}});function Bi(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),null!=n?n:void 0!==o?o:`rc-index-key-${t}`}function Di(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function zi(e){const t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function Ri(){return""}function ji(e){return e?e.ownerDocument:window.document}function Ni(){}Ai.Link=Ql,Ai.install=function(e){return e.component(Ai.name,Ai),e.component(Ai.Link.name,Ai.Link),e};const Hi=()=>({action:Ii.oneOfType([Ii.string,Ii.arrayOf(Ii.string)]).def([]),showAction:Ii.any.def([]),hideAction:Ii.any.def([]),getPopupClassNameFromAlign:Ii.any.def(Ri),onPopupVisibleChange:Function,afterPopupVisibleChange:Ii.func.def(Ni),popup:Ii.any,popupStyle:{type:Object,default:void 0},prefixCls:Ii.string.def("rc-trigger-popup"),popupClassName:Ii.string.def(""),popupPlacement:String,builtinPlacements:Ii.object,popupTransitionName:String,popupAnimation:Ii.any,mouseEnterDelay:Ii.number.def(0),mouseLeaveDelay:Ii.number.def(.1),zIndex:Number,focusDelay:Ii.number.def(0),blurDelay:Ii.number.def(.15),getPopupContainer:Function,getDocument:Ii.func.def(ji),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Ii.object.def((()=>({}))),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),Fi={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Li=q(q({},Fi),{mobile:{type:Object}}),_i=q(q({},Fi),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Wi(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function Ki(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:l,maskTransitionName:i}=e;if(!r)return null;let a={};return(i||l)&&(a=Wi({prefixCls:t,transitionName:i,animation:l})),$(k,U({appear:!0},a),{default:()=>[w($("div",{style:{zIndex:o},class:`${t}-mask`},null),[[C("if"),n]])]})}Ki.displayName="Mask";const Vi=r({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Li,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=f();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var t;const{zIndex:n,visible:l,prefixCls:i,mobile:{popupClassName:a,popupStyle:s,popupMotion:c={},popupRender:u}={}}=e,d=q({zIndex:n},s);let p=Fe(null===(t=o.default)||void 0===t?void 0:t.call(o));p.length>1&&(p=$("div",{class:`${i}-content`},[p])),u&&(p=u(p));const v=pe(i,a);return $(k,U({ref:r},c),{default:()=>[l?$("div",{class:v,style:d},[p]):null]})}}});var Xi=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(QS){l(QS)}}function a(e){try{s(o.throw(e))}catch(QS){l(QS)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const Gi=["measure","align",null,"motion"];function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ui(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _a(e){var t,n,o;if(ja.isWindow(e)||9===e.nodeType){var r=ja.getWindow(e);t={left:ja.getWindowScrollLeft(r),top:ja.getWindowScrollTop(r)},n=ja.viewportWidth(r),o=ja.viewportHeight(r)}else t=ja.offset(e),n=ja.outerWidth(e),o=ja.outerHeight(e);return t.width=n,t.height=o,t}function Wa(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,l=e.height,i=e.left,a=e.top;return"c"===n?a+=l/2:"b"===n&&(a+=l),"c"===o?i+=r/2:"r"===o&&(i+=r),{left:i,top:a}}function Ka(e,t,n,o,r){var l=Wa(t,n[1]),i=Wa(e,n[0]),a=[i.left-l.left,i.top-l.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function Va(e,t,n){return e.leftn.right}function Xa(e,t,n){return e.topn.bottom}function Ga(e,t,n){var o=[];return ja.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Ya(e,t){return e[t]=-e[t],e}function Ua(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function qa(e,t){e[0]=Ua(e[0],t.width),e[1]=Ua(e[1],t.height)}function Qa(e,t,n,o){var r=n.points,l=n.offset||[0,0],i=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;l=[].concat(l),i=[].concat(i);var c={},u=0,d=La(s,!(!(a=a||{})||!a.alwaysByViewport)),p=_a(s);qa(l,p),qa(i,t);var v=Ka(p,t,r,l,i),f=ja.merge(p,v);if(d&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&Va(v,p,d)){var h=Ga(r,/[lr]/gi,{l:"r",r:"l"}),g=Ya(l,0),m=Ya(i,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&r.left+l.width>n.right&&(l.width-=r.left+l.width-n.right),o.adjustX&&r.left+l.width>n.right&&(r.left=Math.max(n.right-l.width,n.left)),o.adjustY&&r.top=n.top&&r.top+l.height>n.bottom&&(l.height-=r.top+l.height-n.bottom),o.adjustY&&r.top+l.height>n.bottom&&(r.top=Math.max(n.bottom-l.height,n.top)),ja.mix(r,l)}(v,p,d,c))}return f.width!==p.width&&ja.css(s,"width",ja.width(s)+f.width-p.width),f.height!==p.height&&ja.css(s,"height",ja.height(s)+f.height-p.height),ja.offset(s,{left:f.left,top:f.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:l,targetOffset:i,overflow:c}}function Za(e,t,n){var o=n.target||t,r=_a(o),l=!function(e,t){var n=La(e,t),o=_a(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return Qa(e,r,n,l)}function Ja(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e;if(Array.isArray(e)&&(r=Ye(e)[0]),!r)return null;const l=O(r,t,o);return l.props=n?q(q({},l.props),t):l.props,bn("object"!=typeof l.props.class),l}function es(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.map((e=>Ja(e,t,n)))}function ts(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(e))return e.map((e=>ts(e,n,o,r)));{if(!t(e))return e;const l=Ja(e,n,o,r);return Array.isArray(l.children)&&(l.children=ts(l.children)),l}}Za.__getOffsetParent=Ha,Za.__getVisibleRectForElement=La;const ns=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function os(e,t){let n=null,o=null;const r=new De((function(e){let[{target:r}]=e;if(!document.documentElement.contains(r))return;const{width:l,height:i}=r.getBoundingClientRect(),a=Math.floor(l),s=Math.floor(i);n===a&&o===s||Promise.resolve().then((()=>{t({width:a,height:s})})),n=a,o=s}));return e&&r.observe(e),()=>{r.disconnect()}}function rs(e,t){return e===t||e!=e&&t!=t}function ls(e,t){for(var n=e.length;n--;)if(rs(e[n][0],t))return n;return-1}var is=Array.prototype.splice;function as(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},as.prototype.set=function(e,t){var n=this.__data__,o=ls(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};const ss="object"==typeof global&&global&&global.Object===Object&&global;var cs="object"==typeof self&&self&&self.Object===Object&&self;const us=ss||cs||Function("return this")();const ds=us.Symbol;var ps=Object.prototype,vs=ps.hasOwnProperty,fs=ps.toString,hs=ds?ds.toStringTag:void 0;var gs=Object.prototype.toString;var ms="[object Null]",bs="[object Undefined]",ys=ds?ds.toStringTag:void 0;function $s(e){return null==e?void 0===e?bs:ms:ys&&ys in Object(e)?function(e){var t=vs.call(e,hs),n=e[hs];try{e[hs]=void 0;var o=!0}catch(QS){}var r=fs.call(e);return o&&(t?e[hs]=n:delete e[hs]),r}(e):function(e){return gs.call(e)}(e)}function xs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Ss="[object AsyncFunction]",ws="[object Function]",Cs="[object GeneratorFunction]",ks="[object Proxy]";function Os(e){if(!xs(e))return!1;var t=$s(e);return t==ws||t==Cs||t==Ss||t==ks}const Is=us["__core-js_shared__"];var Ms,Ps=(Ms=/[^.]+$/.exec(Is&&Is.keys&&Is.keys.IE_PROTO||""))?"Symbol(src)_1."+Ms:"";var Es=Function.prototype.toString;function Ts(e){if(null!=e){try{return Es.call(e)}catch(QS){}try{return e+""}catch(QS){}}return""}var As=/^\[object .+?Constructor\]$/,Bs=Function.prototype,Ds=Object.prototype,zs=Bs.toString,Rs=Ds.hasOwnProperty,js=RegExp("^"+zs.call(Rs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ns(e){return!(!xs(e)||(t=e,Ps&&Ps in t))&&(Os(e)?js:As).test(Ts(e));var t}function Hs(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ns(n)?n:void 0}const Fs=Hs(us,"Map");const Ls=Hs(Object,"create");var _s=Object.prototype.hasOwnProperty;var Ws=Object.prototype.hasOwnProperty;function Ks(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ta))return!1;var c=l.get(e),u=l.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,v=n&Zs?new Ys:void 0;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=Nc}var Fc={};function Lc(e){return function(t){return e(t)}}Fc["[object Float32Array]"]=Fc["[object Float64Array]"]=Fc["[object Int8Array]"]=Fc["[object Int16Array]"]=Fc["[object Int32Array]"]=Fc["[object Uint8Array]"]=Fc["[object Uint8ClampedArray]"]=Fc["[object Uint16Array]"]=Fc["[object Uint32Array]"]=!0,Fc["[object Arguments]"]=Fc["[object Array]"]=Fc["[object ArrayBuffer]"]=Fc["[object Boolean]"]=Fc["[object DataView]"]=Fc["[object Date]"]=Fc["[object Error]"]=Fc["[object Function]"]=Fc["[object Map]"]=Fc["[object Number]"]=Fc["[object Object]"]=Fc["[object RegExp]"]=Fc["[object Set]"]=Fc["[object String]"]=Fc["[object WeakMap]"]=!1;var _c="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wc=_c&&"object"==typeof module&&module&&!module.nodeType&&module,Kc=Wc&&Wc.exports===_c&&ss.process;const Vc=function(){try{var e=Wc&&Wc.require&&Wc.require("util").types;return e||Kc&&Kc.binding&&Kc.binding("util")}catch(QS){}}();var Xc=Vc&&Vc.isTypedArray;const Gc=Xc?Lc(Xc):function(e){return kc(e)&&Hc(e.length)&&!!Fc[$s(e)]};var Yc=Object.prototype.hasOwnProperty;function Uc(e,t){var n=yc(e),o=!n&&Ec(e),r=!n&&!o&&Dc(e),l=!n&&!o&&!r&&Gc(e),i=n||o||r||l,a=i?function(e,t){for(var n=-1,o=Array(e);++n{let n=!1,o=null;function r(){clearTimeout(o)}return[function l(i){if(n&&!0!==i)r(),o=setTimeout((()=>{n=!1,l()}),t.value);else{if(!1===e())return;n=!0,r(),o=setTimeout((()=>{n=!1}),t.value)}},()=>{n=!1,r()}]})((()=>{const{disabled:t,target:n,align:o,onAlign:i}=e;if(!t&&n&&l.value){const e=l.value;let t;const x=Au(n),S=Bu(n);r.value.element=x,r.value.point=S,r.value.align=o;const{activeElement:w}=document;return x&&ns(x)?t=Za(e,x,o):S&&(a=e,s=S,c=o,p=ja.getDocument(a),v=p.defaultView||p.parentWindow,f=ja.getWindowScrollLeft(v),h=ja.getWindowScrollTop(v),g=ja.viewportWidth(v),m=ja.viewportHeight(v),b={left:u="pageX"in s?s.pageX:f+s.clientX,top:d="pageY"in s?s.pageY:h+s.clientY,width:0,height:0},y=u>=0&&u<=f+g&&d>=0&&d<=h+m,$=[c.points[0],"cc"],t=Qa(a,b,Ui(Ui({},c),{},{points:$}),y)),function(e,t){e!==document.activeElement&&en(t,e)&&"function"==typeof e.focus&&e.focus()}(w,e),i&&t&&i(e,t),!0}var a,s,c,u,d,p,v,f,h,g,m,b,y,$;return!1}),d((()=>e.monitorBufferTime))),v=f({cancel:()=>{}}),h=f({cancel:()=>{}}),g=()=>{const t=e.target,n=Au(t),o=Bu(t);var i,a;l.value!==h.value.element&&(h.value.cancel(),h.value.element=l.value,h.value.cancel=os(l.value,u)),r.value.element===n&&((i=r.value.point)===(a=o)||i&&a&&("pageX"in a&&"pageY"in a?i.pageX===a.pageX&&i.pageY===a.pageY:"clientX"in a&&"clientY"in a&&i.clientX===a.clientX&&i.clientY===a.clientY))&&Eu(r.value.align,e.align)||(u(),v.value.element!==n&&(v.value.cancel(),v.value.element=n,v.value.cancel=os(n,u)))};i((()=>{S((()=>{g()}))})),a((()=>{S((()=>{g()}))})),c((()=>e.disabled),(e=>{e?p():u()}),{immediate:!0,flush:"post"});const m=f(null);return c((()=>e.monitorWindowResize),(e=>{e?m.value||(m.value=bt(window,"resize",u)):m.value&&(m.value.remove(),m.value=null)}),{flush:"post"}),s((()=>{v.value.cancel(),h.value.cancel(),m.value&&m.value.remove(),p()})),n({forceAlign:()=>u(!0)}),()=>{const e=null==o?void 0:o.default();return e?Ja(e[0],{ref:l},!0,!0):null}}});it("bottomLeft","bottomRight","topLeft","topRight");const zu=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",Ru=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},ju=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},Nu=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Hu=r({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Fi,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=g(),a=g(),s=g(),[u,p]=(e=>{const t=g({width:0,height:0});return[d((()=>{const n={};if(e.value){const{width:o,height:r}=t.value;-1!==e.value.indexOf("height")&&r?n.height=`${r}px`:-1!==e.value.indexOf("minHeight")&&r&&(n.minHeight=`${r}px`),-1!==e.value.indexOf("width")&&o?n.width=`${o}px`:-1!==e.value.indexOf("minWidth")&&o&&(n.minWidth=`${o}px`)}return n})),function(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}]})(M(e,"stretch")),v=g(!1);let f;c((()=>e.visible),(t=>{clearTimeout(f),t?f=setTimeout((()=>{v.value=e.visible})):v.value=!1}),{immediate:!0});const[h,m]=((e,t)=>{const n=g(null),o=g(),r=g(!1);function l(e){r.value||(n.value=e)}function a(){rt.cancel(o.value)}return c(e,(()=>{l("measure")}),{immediate:!0,flush:"post"}),i((()=>{c(n,(()=>{"measure"===n.value&&t(),n.value&&(o.value=rt((()=>Xi(void 0,void 0,void 0,(function*(){const e=Gi.indexOf(n.value),t=Gi[e+1];t&&-1!==e&&l(t)})))))}),{immediate:!0,flush:"post"})})),b((()=>{r.value=!0,a()})),[n,function(e){a(),o.value=rt((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable"}l(t),null==e||e()}))}]})(v,(()=>{e.stretch&&p(e.getRootDomNode())})),y=g(),x=()=>{var e;null===(e=l.value)||void 0===e||e.forceAlign()},S=(t,n)=>{var o;const r=e.getClassNameFromAlign(n),l=s.value;s.value!==r&&(s.value=r),"align"===h.value&&(l!==r?Promise.resolve().then((()=>{x()})):m((()=>{var e;null===(e=y.value)||void 0===e||e.call(y)})),null===(o=e.onAlign)||void 0===o||o.call(e,t,n))},C=d((()=>{const t="object"==typeof e.animation?e.animation:Wi(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{m(),h.value="stable",null==n||n(e)}})),t})),O=()=>new Promise((e=>{y.value=e}));c([C,h],(()=>{C.value||"motion"!==h.value||m()}),{immediate:!0}),n({forceAlign:x,getElement:()=>a.value.$el||a.value});const I=d((()=>{var t;return!(null===(t=e.align)||void 0===t?void 0:t.points)||"align"!==h.value&&"stable"!==h.value}));return()=>{var t;const{zIndex:n,align:i,prefixCls:c,destroyPopupOnHide:d,onMouseenter:p,onMouseleave:f,onTouchstart:g=(()=>{}),onMousedown:m}=e,b=h.value,y=[q(q({},u.value),{zIndex:n,opacity:"motion"!==b&&"stable"!==b&&v.value?0:null,pointerEvents:v.value||"stable"===b?null:"none"}),o.style];let x=Fe(null===(t=r.default)||void 0===t?void 0:t.call(r,{visible:e.visible}));x.length>1&&(x=$("div",{class:`${c}-content`},[x]));const M=pe(c,o.class,s.value),T=v.value||!e.visible?Ru(C.value.name,C.value):{};return $(k,U(U({ref:a},T),{},{onBeforeEnter:O}),{default:()=>!d||e.visible?w($(Du,{target:e.point?e.point:e.getRootDomNode,key:"popup",ref:l,monitorWindowResize:!0,disabled:I.value,align:i,onAlign:S},{default:()=>$("div",{class:M,onMouseenter:p,onMouseleave:f,onMousedown:E(m,["capture"]),[mt?"onTouchstartPassive":"onTouchstart"]:E(g,["capture"]),style:y},[x])}),[[P,v.value]]):null})}}}),Fu=r({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:_i,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=g(!1),i=g(!1),a=g(),s=g();return c([()=>e.visible,()=>e.mobile],(()=>{l.value=e.visible,e.visible&&e.mobile&&(i.value=!0)}),{immediate:!0,flush:"post"}),r({forceAlign:()=>{var e;null===(e=a.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=q(q(q({},e),n),{visible:l.value}),r=i.value?$(Vi,U(U({},t),{},{mobile:e.mobile,ref:a}),{default:o.default}):$(Hu,U(U({},t),{},{ref:a}),{default:o.default});return $("div",{ref:s},[$(Ki,t,null),r])}}});function Lu(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _u(e,t,n){return q(q({},e[t]||{}),n)}const Wu={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"==typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps(We(this),q(q({},this.$data),n));if(null===e)return;n=q(q({},n),e||{})}q(this.$data,n),this._.isMounted&&this.$forceUpdate(),S((()=>{t&&t()}))},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:d((()=>{const{sPopupVisible:t,popupRef:n,forceRender:o,autoDestroy:r}=e||{};let l=!1;return(t||n||o)&&(l=!0),!t&&r&&(l=!1),l}))})},Xu=r({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Ii.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:o}=t,r=!0;const{shouldRender:l}=(()=>{Vu({},{inTriggerContext:!1});const e=p(Ku,{shouldRender:d((()=>!1)),inTriggerContext:!1});return{shouldRender:d((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function s(){l.value&&(n=e.getContainer())}T((()=>{r=!1,s()})),i((()=>{n||s()}));const u=c(l,(()=>{l.value&&!n&&(n=e.getContainer()),n&&u()}));return a((()=>{S((()=>{var t;l.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return l.value?r?null===(e=o.default)||void 0===e?void 0:e.call(o):n?$(A,{to:n},o):null:null}}});let Gu;function Yu(e){if("undefined"==typeof document)return 0;if(e||void 0===Gu){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;o===r&&(r=t.clientWidth),document.body.removeChild(t),Gu=o-r}return Gu}function Uu(e){const t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?Yu():n}const qu=`vc-util-locker-${Date.now()}`;let Qu=0;function Zu(e){const t=d((()=>!!e&&!!e.value));Qu+=1;const n=`${qu}_${Qu}`;m((e=>{if(Jt()){if(t.value){const e=Yu();dn(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else un(n);e((()=>{un(n)}))}}),{flush:"post"})}let Ju=0;const ed=Jt(),td=e=>{if(!ed)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"==typeof e&&e instanceof window.HTMLElement)return e}return document.body},nd=r({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Ii.any,visible:{type:Boolean,default:void 0},autoLock:ut(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=g(),r=g(),l=g(),s=g(1),u=Jt()&&document.createElement("div"),p=()=>{var e,t;o.value===u&&(null===(t=null===(e=o.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(o.value)),o.value=null};let v=null;const f=function(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||o.value&&!o.value.parentNode)||(v=td(e.getContainer),!!v&&(v.appendChild(o.value),!0))},h=()=>ed?(o.value||(o.value=u,f(!0)),m(),o.value):null,m=()=>{const{wrapperClassName:t}=e;o.value&&t&&t!==o.value.className&&(o.value.className=t)};return a((()=>{m(),f()})),Zu(d((()=>e.autoLock&&e.visible&&Jt()&&(o.value===document.body||o.value===u)))),i((()=>{let t=!1;c([()=>e.visible,()=>e.getContainer],((n,o)=>{let[r,l]=n,[i,a]=o;if(ed&&(v=td(e.getContainer),v===document.body&&(r&&!i?Ju+=1:t&&(Ju-=1))),t){("function"==typeof l&&"function"==typeof a?l.toString()!==a.toString():l!==a)&&p()}t=!0}),{immediate:!0,flush:"post"}),S((()=>{f()||(l.value=rt((()=>{s.value+=1})))}))})),b((()=>{const{visible:t}=e;ed&&v===document.body&&(Ju=t&&Ju?Ju-1:Ju),p(),rt.cancel(l.value)})),()=>{const{forceRender:t,visible:o}=e;let l=null;const i={getOpenCount:()=>Ju,getContainer:h};return s.value&&(t||o||r.value)&&(l=$(Xu,{getContainer:h,ref:r,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,i)}})),l}}}),od=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],rd=r({compatConfig:{MODE:3},name:"Trigger",mixins:[Wu],inheritAttrs:!1,props:Hi(),setup(e){const t=d((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?_u(o,t,n):n})),n=g(null);return{vcTriggerContext:p("vcTriggerContext",{}),popupRef:n,setPopupRef:e=>{n.value=e},triggerRef:g(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,od.forEach((e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){v("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Vu(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),rt.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let t;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=bt(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=bt(t,"touchstart",this.onDocumentClick,!!mt&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=bt(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=bt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&en(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){en(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();en(n,t)&&!this.isContextMenuOnly()||en(o,t)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:_e(this.triggerRef);return _e(r(n))}try{const e="#comment"===(null===(o=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.nodeName)?null:_e(this.triggerRef);if(e)return e}catch(l){}return _e(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:l,alignPoint:i,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(function(e,t,n,o){const{points:r}=n,l=Object.keys(e);for(let i=0;iKe(this,"popup"))})},attachParent(e){rt.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||0===t.length)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=rt((()=>{this.attachParent(e)}))},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(Ne(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;t&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=1e3*t;if(this.clearDelayTimer(),o){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(e,t),this.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=Ve(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,n=Ye(Le(this)),{alignPoint:o,getPopupContainer:r}=this.$props,l=n[0];this.childOriginEvents=Ve(l);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[mt?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[mt?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,o&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=e=>{!e||e.relatedTarget&&en(e.target,e.relatedTarget)||this.createTwoChains("onBlur")(e)});const a=pe(l&&l.props&&l.props.class,t.class);a&&(i.class=a);const s=Ja(l,q(q({},i),{ref:"triggerRef"}),!0,!0),c=$(nd,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return $(e,null,[s,c])}});const ld=r({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Ii.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Ii.oneOfType([Number,Boolean]).def(!0),popupElement:Ii.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=d((()=>{const{dropdownMatchSelectWidth:t}=e;return(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}})(t)})),i=f();return r({getPopupElement:()=>i.value}),()=>{const t=q(q({},e),o),{empty:r=!1}=t,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$("div",{ref:i,onMouseenter:k,onFocusin:O,onFocusout:I},[P])})}}}),id=ld,ad={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ad.F1&&t<=ad.F12)return!1;switch(t){case ad.ALT:case ad.CAPS_LOCK:case ad.CONTEXT_MENU:case ad.CTRL:case ad.DOWN:case ad.END:case ad.ESC:case ad.HOME:case ad.INSERT:case ad.LEFT:case ad.MAC_FF_META:case ad.META:case ad.NUMLOCK:case ad.NUM_CENTER:case ad.PAGE_DOWN:case ad.PAGE_UP:case ad.PAUSE:case ad.PRINT_SCREEN:case ad.RIGHT:case ad.SHIFT:case ad.UP:case ad.WIN_KEY:case ad.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ad.ZERO&&e<=ad.NINE)return!0;if(e>=ad.NUM_ZERO&&e<=ad.NUM_MULTIPLY)return!0;if(e>=ad.A&&e<=ad.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ad.SPACE:case ad.QUESTION_MARK:case ad.NUM_PLUS:case ad.NUM_MINUS:case ad.NUM_PERIOD:case ad.NUM_DIVISION:case ad.SEMICOLON:case ad.DASH:case ad.EQUALS:case ad.COMMA:case ad.PERIOD:case ad.SLASH:case ad.APOSTROPHE:case ad.SINGLE_QUOTE:case ad.OPEN_SQUARE_BRACKET:case ad.BACKSLASH:case ad.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},sd=ad,cd=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:l,customizeIconProps:i,onMousedown:a,onClick:s}=e;let c;return c="function"==typeof l?l(i):l,$("span",{class:r,onMousedown:e=>{e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[void 0!==c?c:$("span",{class:r.split(/\s+/).map((e=>`${e}-icon`))},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])};cd.inheritAttrs=!1,cd.displayName="TransBtn",cd.props={class:String,customizeIcon:Ii.any,customizeIconProps:Ii.any,onMousedown:Function,onClick:Function};const ud=cd;function dd(e){e.target.composing=!0}function pd(e){e.target.composing&&(e.target.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(e.target,"input"))}function vd(e,t,n,o){e.addEventListener(t,n,o)}const fd={created(e,t){t.modifiers&&t.modifiers.lazy||(vd(e,"compositionstart",dd),vd(e,"compositionend",pd),vd(e,"change",pd))}},hd={inputRef:Ii.any,prefixCls:String,id:String,inputElement:Ii.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:Ii.oneOfType([Ii.number,Ii.string]),attrs:Ii.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},gd=r({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:hd,setup(e){let t=null;const n=p("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:l,inputElement:i,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:p,value:v,onKeydown:f,onMousedown:h,onChange:g,onPaste:m,onCompositionstart:b,onCompositionend:y,onFocus:x,onBlur:S,open:C,inputRef:k,attrs:O}=e;let I=i||w($("input",null,null),[[fd]]);const M=I.props||{},{onKeydown:P,onInput:E,onFocus:T,onBlur:A,onMousedown:B,onCompositionstart:D,onCompositionend:z,style:R}=M;return I=Ja(I,q(q(q(q(q({type:"search"},M),{id:l,ref:k,disabled:a,tabindex:s,autocomplete:u||"off",autofocus:c,class:pe(`${r}-selection-search-input`,null===(o=null==I?void 0:I.props)||void 0===o?void 0:o.class),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":p}),O),{value:d?v:"",readonly:!d,unselectable:d?null:"on",style:q(q({},R),{opacity:d?null:0}),onKeydown:e=>{f(e),P&&P(e)},onMousedown:e=>{h(e),B&&B(e)},onInput:e=>{g(e),E&&E(e)},onCompositionstart(e){b(e),D&&D(e)},onCompositionend(e){y(e),z&&z(e)},onPaste:m,onFocus:function(){clearTimeout(t),T&&T(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),null==n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,o=new Array(e),r=0;r{A&&A(o[0]),S&&S(o[0]),null==n||n.blur(o[0])}),100)}}),"textarea"===I.type?{}:{type:"search"}),!0,!0),I}}}),md="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError".split(/[\s\n]+/);function bd(e,t){return 0===e.indexOf(t)}function yd(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:q({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||bd(n,"aria-"))||t.data&&bd(n,"data-")||t.attr&&(md.includes(n)||md.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}const $d=Symbol("OverflowContextProviderKey"),xd=r({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return v($d,d((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});const Sd=void 0,wd=r({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:Ii.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:Ii.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:o}=t;const r=d((()=>e.responsive&&!e.display)),l=f();function i(t){e.registerSize(e.itemKey,t)}return o({itemNodeRef:l}),s((()=>{i(null)})),()=>{var t;const{prefixCls:o,invalidate:a,item:s,renderItem:c,responsive:u,registerSize:d,itemKey:p,display:v,order:f,component:h="div"}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{offsetWidth:t}=e;i(t)}},{default:()=>$(h,U(U(U({class:pe(!a&&o),style:y},x),g),{},{ref:l}),{default:()=>[b]})})}}});var Cd=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rnull)));return()=>{var t;if(!r.value){const{component:r="div"}=e,l=Cd(e,["component"]);return $(r,U(U({},l),o),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}const l=r.value,{className:i}=l,a=Cd(l,["className"]),{class:s}=o,c=Cd(o,["class"]);return $(xd,{value:null},{default:()=>[$(wd,U(U(U({class:pe(i,s)},a),c),e),n)]})}}});const Od="responsive",Id="invalidate";function Md(e){return`+ ${e.length} ...`}const Pd=r({name:"Overflow",inheritAttrs:!1,props:{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:Ii.any,component:String,itemComponent:Ii.any,onVisibleChange:Function,ssr:String,onMousedown:Function},emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const l=d((()=>"full"===e.ssr)),i=g(null),a=d((()=>i.value||0)),s=g(new Map),u=g(0),p=g(0),v=g(0),f=g(null),h=g(null),m=d((()=>null===h.value&&l.value?Number.MAX_SAFE_INTEGER:h.value||0)),b=g(!1),y=d((()=>`${e.prefixCls}-item`)),x=d((()=>Math.max(u.value,p.value))),S=d((()=>!(!e.data.length||e.maxCount!==Od))),w=d((()=>e.maxCount===Id)),C=d((()=>S.value||"number"==typeof e.maxCount&&e.data.length>e.maxCount)),k=d((()=>{let t=e.data;return S.value?t=null===i.value&&l.value?e.data:e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):"number"==typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),O=d((()=>S.value?e.data.slice(m.value+1):e.data.slice(k.value.length))),I=(t,n)=>{var o;return"function"==typeof e.itemKey?e.itemKey(t):null!==(o=e.itemKey&&(null==t?void 0:t[e.itemKey]))&&void 0!==o?o:n},M=d((()=>e.renderItem||(e=>e))),P=(t,n)=>{h.value=t,n||(b.value=t{i.value=t.clientWidth},T=(e,t)=>{const n=new Map(s.value);null===t?n.delete(e):n.set(e,t),s.value=n},A=(e,t)=>{u.value=p.value,p.value=t},B=(e,t)=>{v.value=t},D=e=>s.value.get(I(k.value[e],e));return c([a,s,p,v,()=>e.itemKey,k],(()=>{if(a.value&&x.value&&k.value){let t=v.value;const n=k.value.length,o=n-1;if(!n)return P(0),void(f.value=null);for(let e=0;ea.value){P(e-1),f.value=t-n-v.value+p.value;break}}e.suffix&&D(0)+v.value>a.value&&(f.value=null)}})),()=>{const t=b.value&&!!O.value.length,{itemComponent:o,renderRawItem:l,renderRawRest:i,renderRest:a,prefixCls:s="rc-overflow",suffix:c,component:u="div",id:d,onMousedown:p}=e,{class:v,style:h}=n,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const n=I(e,t);return $(xd,{key:n,value:q(q({},P),{order:t,item:e,itemKey:n,registerSize:T,display:t<=m.value})},{default:()=>[l(e,t)]})}:(e,t)=>{const n=I(e,t);return $(wd,U(U({},P),{},{order:t,key:n,item:e,renderItem:M.value,itemKey:n,registerSize:T,display:t<=m.value}),null)};let z=()=>null;const R={order:t?m.value:Number.MAX_SAFE_INTEGER,className:`${y.value} ${y.value}-rest`,registerSize:A,display:t};if(i)i&&(z=()=>$(xd,{value:q(q({},P),R)},{default:()=>[i(O.value)]}));else{const e=a||Md;z=()=>$(wd,U(U({},P),R),{default:()=>"function"==typeof e?e(O.value):e})}return $(Ze,{disabled:!S.value,onResize:E},{default:()=>{var e;return $(u,U({id:d,class:pe(!w.value&&s,v),style:h,onMousedown:p},g),{default:()=>[k.value.map(D),C.value?z():null,c&&$(wd,U(U({},P),{},{order:m.value,class:`${y.value}-suffix`,registerSize:B,display:!0,style:x}),{default:()=>c}),null===(e=r.default)||void 0===e?void 0:e.call(r)]})}})}}});Pd.Item=kd,Pd.RESPONSIVE=Od,Pd.INVALIDATE=Id;const Ed=Pd,Td=Symbol("TreeSelectLegacyContextPropsKey");function Ad(){return p(Td,{})}const Bd={id:String,prefixCls:String,values:Ii.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Ii.any,placeholder:Ii.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Ii.oneOfType([Ii.number,Ii.string]),removeIcon:Ii.any,choiceTransitionName:String,maxTagCount:Ii.oneOfType([Ii.number,Ii.string]),maxTagTextLength:Number,maxTagPlaceholder:Ii.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Dd=e=>{e.preventDefault(),e.stopPropagation()},zd=r({name:"MultipleSelectSelector",inheritAttrs:!1,props:Bd,setup(t){const n=g(),o=g(0),r=g(!1),l=Ad(),a=d((()=>`${t.prefixCls}-selection`)),s=d((()=>t.open||"tags"===t.mode?t.searchValue:"")),u=d((()=>"tags"===t.mode||t.showSearch&&(t.open||r.value)));function p(e,n,o,r,l){return $("span",{class:pe(`${a.value}-item`,{[`${a.value}-item-disabled`]:o}),title:"string"==typeof e||"number"==typeof e?e.toString():void 0},[$("span",{class:`${a.value}-item-content`},[n]),r&&$(ud,{class:`${a.value}-item-remove`,onMousedown:Dd,onClick:l,customizeIcon:t.removeIcon},{default:()=>[B("×")]})])}function v(e){const{disabled:n,label:o,value:r,option:i}=e,a=!t.disabled&&!n;let s=o;if("number"==typeof t.maxTagTextLength&&("string"==typeof o||"number"==typeof o)){const e=String(s);e.length>t.maxTagTextLength&&(s=`${e.slice(0,t.maxTagTextLength)}...`)}const c=n=>{var o;n&&n.stopPropagation(),null===(o=t.onRemove)||void 0===o||o.call(t,e)};return"function"==typeof t.tagRender?function(e,n,o,r,i,a){var s;let c=a;return l.keyEntities&&(c=(null===(s=l.keyEntities[e])||void 0===s?void 0:s.node)||{}),$("span",{key:e,onMousedown:e=>{Dd(e),t.onToggleOpen(!open)}},[t.tagRender({label:n,value:e,disabled:o,closable:r,onClose:i,option:c})])}(r,s,n,a,c,i):p(o,s,n,a,c)}function f(e){const{maxTagPlaceholder:n=(e=>`+ ${e.length} ...`)}=t,o="function"==typeof n?n(e):n;return p(o,o,!1)}return i((()=>{c(s,(()=>{o.value=n.value.scrollWidth}),{flush:"post",immediate:!0})})),()=>{const{id:l,prefixCls:i,values:c,open:d,inputRef:p,placeholder:h,disabled:g,autofocus:m,autocomplete:b,activeDescendantId:y,tabindex:x,onInputChange:S,onInputPaste:w,onInputKeyDown:C,onInputMouseDown:k,onInputCompositionStart:O,onInputCompositionEnd:I}=t,M=$("div",{class:`${a.value}-search`,style:{width:o.value+"px"},key:"input"},[$(gd,{inputRef:p,open:d,prefixCls:i,id:l,inputElement:null,disabled:g,autofocus:m,autocomplete:b,editable:u.value,activeDescendantId:y,value:s.value,onKeydown:C,onMousedown:k,onChange:S,onPaste:w,onCompositionstart:O,onCompositionend:I,tabindex:x,attrs:yd(t,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),$("span",{ref:n,class:`${a.value}-search-mirror`,"aria-hidden":!0},[s.value,B(" ")])]),P=$(Ed,{prefixCls:`${a.value}-overflow`,data:c,renderItem:v,renderRest:f,suffix:M,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return $(e,null,[P,!c.length&&!s.value&&$("span",{class:`${a.value}-placeholder`},[h])])}}}),Rd=zd,jd={inputElement:Ii.any,id:String,prefixCls:String,values:Ii.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Ii.any,placeholder:Ii.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Ii.oneOfType([Ii.number,Ii.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Nd=r({name:"SingleSelector",setup(t){const n=g(!1),o=d((()=>"combobox"===t.mode)),r=d((()=>o.value||t.showSearch)),l=d((()=>{let e=t.searchValue||"";return o.value&&t.activeValue&&!n.value&&(e=t.activeValue),e})),i=Ad();c([o,()=>t.activeValue],(()=>{o.value&&(n.value=!1)}),{immediate:!0});const a=d((()=>!("combobox"!==t.mode&&!t.open&&!t.showSearch)&&!!l.value)),s=d((()=>{const e=t.values[0];return!e||"string"!=typeof e.label&&"number"!=typeof e.label?void 0:e.label.toString()})),u=()=>{if(t.values[0])return null;const e=a.value?{visibility:"hidden"}:void 0;return $("span",{class:`${t.prefixCls}-selection-placeholder`,style:e},[t.placeholder])};return()=>{var c,d,p,v;const{inputElement:f,prefixCls:h,id:g,values:m,inputRef:b,disabled:y,autofocus:x,autocomplete:S,activeDescendantId:w,open:C,tabindex:k,optionLabelRender:O,onInputKeyDown:I,onInputMouseDown:M,onInputChange:P,onInputPaste:E,onInputCompositionStart:T,onInputCompositionEnd:A}=t,B=m[0];let D=null;if(B&&i.customSlots){const e=null!==(c=B.key)&&void 0!==c?c:B.value,t=(null===(d=i.keyEntities[e])||void 0===d?void 0:d.node)||{};D=i.customSlots[null===(p=t.slots)||void 0===p?void 0:p.title]||i.customSlots.title||B.label,"function"==typeof D&&(D=D(t))}else D=O&&B?O(B.option):null==B?void 0:B.label;return $(e,null,[$("span",{class:`${h}-selection-search`},[$(gd,{inputRef:b,prefixCls:h,id:g,open:C,inputElement:f,disabled:y,autofocus:x,autocomplete:S,editable:r.value,activeDescendantId:w,value:l.value,onKeydown:I,onMousedown:M,onChange:e=>{n.value=!0,P(e)},onPaste:E,onCompositionstart:T,onCompositionend:A,tabindex:k,attrs:yd(t,!0)},null)]),!o.value&&B&&!a.value&&$("span",{class:`${h}-selection-item`,title:s.value},[$(e,{key:null!==(v=B.key)&&void 0!==v?v:B.value},[D])]),u()])}}});Nd.props=jd,Nd.inheritAttrs=!1;const Hd=Nd;function Fd(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return b((()=>{clearTimeout(e)})),[()=>n,function(o){(o||null===n)&&(n=o),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}]}function Ld(){const e=t=>{e.current=t};return e}const _d=r({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Ii.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Ii.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Ii.oneOfType([Ii.number,Ii.string]),disabled:{type:Boolean,default:void 0},placeholder:Ii.any,removeIcon:Ii.any,maxTagCount:Ii.oneOfType([Ii.number,Ii.string]),maxTagTextLength:Number,maxTagPlaceholder:Ii.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=Ld();let r=!1;const[l,i]=Fd(0),a=t=>{const{which:n}=t;var o;n!==sd.UP&&n!==sd.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==sd.ENTER||"tags"!==e.mode||r||e.open||e.onSearchSubmit(t.target.value),o=n,[sd.ESC,sd.SHIFT,sd.BACKSPACE,sd.TAB,sd.WIN_KEY,sd.ALT,sd.META,sd.WIN_KEY_RIGHT,sd.CTRL,sd.SEMICOLON,sd.EQUALS,sd.CAPS_LOCK,sd.CONTEXT_MENU,sd.F1,sd.F2,sd.F3,sd.F4,sd.F5,sd.F6,sd.F7,sd.F8,sd.F9,sd.F10,sd.F11,sd.F12].includes(o)||e.onToggleOpen(!0)},s=()=>{i(!0)};let c=null;const u=t=>{!1!==e.onSearch(t,!0,r)&&e.onToggleOpen(!0)},d=()=>{r=!0},p=t=>{r=!1,"combobox"!==e.mode&&u(t.target.value)},v=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const e=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,c)}c=null,u(n)},f=e=>{const{clipboardData:t}=e,n=t.getData("text");c=n},h=e=>{let{target:t}=e;if(t!==o.current){void 0!==document.body.style.msTouchAction?setTimeout((()=>{o.current.focus()})):o.current.focus()}},g=t=>{const n=l();t.target===o.current||n||t.preventDefault(),("combobox"===e.mode||e.showSearch&&n)&&e.open||(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:r}=e,l={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:v,onInputPaste:f,onInputCompositionStart:d,onInputCompositionEnd:p},i=$("multiple"===r||"tags"===r?Rd:Hd,U(U({},e),l),null);return $("div",{ref:n,class:`${t}-selector`,onClick:h,onMousedown:g},[i])}}}),Wd=_d;const Kd=Symbol("BaseSelectContextKey");function Vd(){return p(Kd,{})}const Xd=()=>{if("undefined"==typeof navigator||"undefined"==typeof window)return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function Gd(e){if(!D(e))return l(e);const t=new Proxy({},{get:(t,n,o)=>Reflect.get(e.value,n,o),set:(t,n,o)=>(e.value[n]=o,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});return l(t)}const Yd=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],Ud=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Ii.any,placeholder:Ii.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:Ii.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Ii.any,clearIcon:Ii.any,removeIcon:Ii.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function});function qd(e){return"tags"===e||"multiple"===e}const Qd=r({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Re(q(q({},{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:Ii.any,emptyOptions:Boolean}),Ud()),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=d((()=>qd(e.mode))),a=d((()=>void 0!==e.showSearch?e.showSearch:l.value||"combobox"===e.mode)),s=g(!1);i((()=>{s.value=Xd()}));const u=Ad(),p=g(null),h=Ld(),y=g(null),x=g(null),S=g(null),w=f(!1),[C,k,O]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=g(!1);let n;const o=()=>{clearTimeout(n)};return i((()=>{o()})),[t,(r,l)=>{o(),n=setTimeout((()=>{t.value=r,l&&l()}),e)},o]}();o({focus:()=>{var e;null===(e=x.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=x.value)||void 0===e||e.blur()},scrollTo:e=>{var t;return null===(t=S.value)||void 0===t?void 0:t.scrollTo(e)}});const I=d((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"==typeof n||"number"==typeof n?String(n):""})),M=void 0!==e.open?e.open:e.defaultOpen,P=g(M),E=g(M),T=t=>{P.value=void 0!==e.open?e.open:t,E.value=P.value};c((()=>e.open),(()=>{T(e.open)}));const A=d((()=>!e.notFoundContent&&e.emptyOptions));m((()=>{E.value=P.value,(e.disabled||A.value&&E.value&&"combobox"===e.mode)&&(E.value=!1)}));const D=d((()=>!A.value&&E.value)),R=t=>{const n=void 0!==t?t:!E.value;E.value===n||e.disabled||(T(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n))},j=d((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),N=(t,n,o)=>{var r,l;let i=!0,a=t;null===(r=e.onActiveValueChange)||void 0===r||r.call(e,null);const s=o?null:function(e,t){if(!t||!t.length)return null;let n=!1;const o=function e(t,o){let[r,...l]=o;if(!r)return[t];const i=t.split(r);return n=n||i.length>1,i.reduce(((t,n)=>[...t,...e(n,l)]),[]).filter((e=>e))}(e,t);return n?o:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&s&&(a="",null===(l=e.onSearchSplit)||void 0===l||l.call(e,s),R(!1),i=!1),e.onSearch&&I.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),i},H=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};c(E,(()=>{E.value||l.value||"combobox"===e.mode||N("",!1,!1)}),{immediate:!0,flush:"post"}),c((()=>e.disabled),(()=>{P.value&&e.disabled&&T(!1),e.disabled&&!w.value&&k(!1)}),{immediate:!0});const[F,L]=Fd(),_=function(t){var n;const o=F(),{which:r}=t;if(r===sd.ENTER&&("combobox"!==e.mode&&t.preventDefault(),E.value||R(!0)),L(!!I.value),r===sd.BACKSPACE&&!o&&l.value&&!I.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const o=t[e];if(!o.disabled){t.splice(e,1),n=o;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1?n-1:0),r=1;r{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},V=g(!1),X=f(!1),G=()=>{X.value=!0},Y=()=>{X.value=!1};v("VCSelectContainerEvent",{focus:function(){k(!0),e.disabled||(e.onFocus&&!V.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&R(!0)),V.value=!0},blur:function(){if(X.value)return;if(w.value=!0,k(!1,(()=>{V.value=!1,w.value=!1,R(!1)})),e.disabled)return;const t=I.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const Q=[];i((()=>{Q.forEach((e=>clearTimeout(e))),Q.splice(0,Q.length)})),b((()=>{Q.forEach((e=>clearTimeout(e))),Q.splice(0,Q.length)}));const Z=function(t){var n,o;const{target:r}=t,l=null===(n=y.value)||void 0===n?void 0:n.getPopupElement();if(l&&l.contains(r)){const e=setTimeout((()=>{var t;const n=Q.indexOf(e);-1!==n&&Q.splice(n,1),O(),s.value||l.contains(document.activeElement)||null===(t=x.value)||void 0===t||t.focus()}));Q.push(e)}for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c{};return i((()=>{c(D,(()=>{var e;if(D.value){const t=Math.ceil(null===(e=p.value)||void 0===e?void 0:e.offsetWidth);J.value===t||Number.isNaN(t)||(J.value=t)}}),{immediate:!0,flush:"post"})})),function(e,t,n){function o(o){var r,l,i;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a);const s=[null===(r=e[0])||void 0===r?void 0:r.value,null===(i=null===(l=e[1])||void 0===l?void 0:l.value)||void 0===i?void 0:i.getPopupElement()];t.value&&s.every((e=>e&&!e.contains(a)&&e!==a))&&n(!1)}i((()=>{window.addEventListener("mousedown",o)})),b((()=>{window.removeEventListener("mousedown",o)}))}([p,y],D,R),function(e){v(Kd,e)}(Gd(q(q({},z(e)),{open:E,triggerOpen:D,showSearch:a,multiple:l,toggleOpen:R}))),()=>{const t=q(q({},e),n),{prefixCls:o,id:i,open:s,defaultOpen:c,mode:d,showSearch:v,searchValue:f,onSearch:g,allowClear:m,clearIcon:b,showArrow:w,inputIcon:k,disabled:O,loading:M,getInputElement:P,getPopupContainer:T,placement:A,animation:z,transitionName:F,dropdownStyle:L,dropdownClassName:V,dropdownMatchSelectWidth:X,dropdownRender:Q,dropdownAlign:te,showAction:ne,direction:oe,tokenSeparators:re,tagRender:le,optionLabelRender:ie,onPopupScroll:ae,onDropdownVisibleChange:se,onFocus:ce,onBlur:ue,onKeyup:de,onKeydown:ve,onMousedown:fe,onClear:he,omitDomProps:ge,getRawInputElement:me,displayValues:be,onDisplayValuesChange:ye,emptyOptions:$e,activeDescendantId:xe,activeValue:Se,OptionList:we}=t,Ce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{R(e)}),Yd.forEach((e=>{delete Ie[e]})),null==ge||ge.forEach((e=>{delete Ie[e]}));const Pe=void 0!==w?w:M||!l.value&&"combobox"!==d;let Ee,Te;Pe&&(Ee=$(ud,{class:pe(`${o}-arrow`,{[`${o}-arrow-loading`]:M}),customizeIcon:k,customizeIconProps:{loading:M,searchValue:I.value,open:E.value,focused:C.value,showSearch:a.value}},null));const Ae=()=>{null==he||he(),ye([],{type:"clear",values:be}),N("",!1,!1)};!O&&m&&(be.length||I.value)&&(Te=$(ud,{class:`${o}-clear`,onMousedown:Ae,customizeIcon:b},{default:()=>[B("×")]}));const Be=$(we,{ref:S},q(q({},u.customSlots),{option:r.option})),De=pe(o,n.class,{[`${o}-focused`]:C.value,[`${o}-multiple`]:l.value,[`${o}-single`]:!l.value,[`${o}-allow-clear`]:m,[`${o}-show-arrow`]:Pe,[`${o}-disabled`]:O,[`${o}-loading`]:M,[`${o}-open`]:E.value,[`${o}-customize-input`]:ke,[`${o}-show-search`]:a.value}),ze=$(id,{ref:y,disabled:O,prefixCls:o,visible:D.value,popupElement:Be,containerWidth:J.value,animation:z,transitionName:F,dropdownStyle:L,dropdownClassName:V,direction:oe,dropdownMatchSelectWidth:X,dropdownRender:Q,dropdownAlign:te,placement:A,getPopupContainer:T,empty:$e,getTriggerDOMNode:()=>h.current,onPopupVisibleChange:Me,onPopupMouseEnter:ee,onPopupFocusin:G,onPopupFocusout:Y},{default:()=>Oe?qe(Oe)&&Ja(Oe,{ref:h},!1,!0):$(Wd,U(U({},e),{},{domRef:h,prefixCls:o,inputElement:ke,ref:x,id:i,showSearch:a.value,mode:d,activeDescendantId:xe,tagRender:le,optionLabelRender:ie,values:be,open:E.value,onToggleOpen:R,activeValue:Se,searchValue:I.value,onSearch:N,onSearchSubmit:H,onRemove:K,tokenWithEnter:j.value}),null)});let Re;return Re=Oe?ze:$("div",U(U({},Ie),{},{class:De,ref:p,onMousedown:Z,onKeydown:_,onKeyup:W}),[C.value&&!E.value&&$("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${be.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),ze,Ee,Te]),Re}}}),Zd=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:l}=e,{slots:i}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return void 0!==o&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=q(q({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),$("div",{style:s},[$(Ze,{onResize:e=>{let{offsetHeight:t}=e;t&&l&&l()}},{default:()=>[$("div",{style:c,class:pe({[`${r}-holder-inner`]:r})},[null===(a=i.default)||void 0===a?void 0:a.call(i)])]})])};Zd.displayName="Filter",Zd.inheritAttrs=!1,Zd.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Jd=Zd,ep=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const l=Fe(null===(r=o.default)||void 0===r?void 0:r.call(o));return l&&l.length?O(l[0],{ref:n}):l};ep.props={setRef:{type:Function,default:()=>{}}};const tp=ep;function np(e){return"touches"in e?e.touches[0].pageY:e.pageY}const op=r({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:()=>({moveRaf:null,scrollbarRef:Ld(),thumbRef:Ld(),visibleTimeout:null,state:l({dragging:!1,pageY:null,startTop:null,visible:!1})}),watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!mt&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!mt&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!mt&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!mt&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!mt&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!mt&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),rt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;q(this.state,{dragging:!0,pageY:np(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(rt.cancel(this.moveRaf),t){const t=o+(np(e)-n),l=this.getEnableScrollRange(),i=this.getEnableHeightRange(),a=i?t/i:0,s=Math.ceil(a*l);this.moveRaf=rt((()=>{r(s)}))}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,20),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props;return e-this.getSpinHeight()||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();if(0===e||0===t)return 0;return e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",l=this.showScroll(),i=l&&t;return $("div",{ref:this.scrollbarRef,class:pe(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[$("div",{ref:this.thumbRef,class:pe(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});const rp="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),lp=(e,t)=>{let n=!1,o=null;return function(r){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=r<0&&e.value||r>0&&t.value;return l&&i?(clearTimeout(o),n=!1):i&&!n||(clearTimeout(o),n=!0,o=setTimeout((()=>{n=!1}),50)),!n&&i}};const ip=[],ap={overflowY:"auto",overflowAnchor:"none"};const sp=r({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Ii.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=d((()=>{const{height:t,itemHeight:n,virtual:o}=e;return!(!1===o||!t||!n)})),r=d((()=>{const{height:t,itemHeight:n,data:r}=e;return o.value&&r&&n*r.length>t})),u=l({scrollTop:0,scrollMoving:!1}),p=d((()=>e.data||ip)),v=g([]);c(p,(()=>{v.value=R(p.value).slice()}),{immediate:!0});const h=g((e=>{}));c((()=>e.itemKey),(e=>{h.value="function"==typeof e?e:t=>null==t?void 0:t[e]}),{immediate:!0});const y=g(),$=g(),x=g(),w=e=>h.value(e),C={getKey:w};function k(e){let t;t="function"==typeof e?e(u.scrollTop):e;const n=function(e){let t=e;Number.isNaN(A.value)||(t=Math.min(t,A.value));return t=Math.max(t,0),t}(t);y.value&&(y.value.scrollTop=n),u.scrollTop=n}const[O,I,M,P]=function(e,t,n,o){const r=new Map,l=new Map,i=f(Symbol("update"));let a;function u(){rt.cancel(a)}function d(){u(),a=rt((()=>{r.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;l.get(t)!==n&&(i.value=Symbol("update"),l.set(t,e.offsetHeight))}}))}))}return c(e,(()=>{i.value=Symbol("update")})),s((()=>{u()})),[function(e,l){const i=t(e),a=r.get(i);l?(r.set(i,l.$el||l),d()):r.delete(i),!a!=!l&&(l?null==n||n(e):null==o||o(e))},d,l,i]}(v,w,null,null),E=l({scrollHeight:void 0,start:0,end:0,offset:void 0}),T=g(0);i((()=>{S((()=>{var e;T.value=(null===(e=$.value)||void 0===e?void 0:e.offsetHeight)||0}))})),a((()=>{S((()=>{var e;T.value=(null===(e=$.value)||void 0===e?void 0:e.offsetHeight)||0}))})),c([o,v],(()=>{o.value||q(E,{scrollHeight:void 0,start:0,end:v.value.length-1,offset:void 0})}),{immediate:!0}),c([o,v,T,r],(()=>{o.value&&!r.value&&q(E,{scrollHeight:T.value,start:0,end:v.value.length-1,offset:void 0}),y.value&&(u.scrollTop=y.value.scrollTop)}),{immediate:!0}),c([r,o,()=>u.scrollTop,v,P,()=>e.height,T],(()=>{if(!o.value||!r.value)return;let t,n,l,i=0;const a=v.value.length,s=v.value,c=u.scrollTop,{itemHeight:d,height:p}=e,f=c+p;for(let e=0;e=c&&(t=e,n=i),void 0===l&&u>f&&(l=e),i=u}void 0===t&&(t=0,n=0,l=Math.ceil(p/d)),void 0===l&&(l=a-1),l=Math.min(l+1,a),q(E,{scrollHeight:i,start:t,end:l,offset:n})}),{immediate:!0});const A=d((()=>E.scrollHeight-e.height));const B=d((()=>u.scrollTop<=0)),D=d((()=>u.scrollTop>=A.value)),z=lp(B,D);const[j,N]=function(e,t,n,o){let r=0,l=null,i=null,a=!1;const s=lp(t,n);return[function(t){if(!e.value)return;rt.cancel(l);const{deltaY:n}=t;r+=n,i=n,s(n)||(rp||t.preventDefault(),l=rt((()=>{o(r*(a?10:1)),r=0})))},function(t){e.value&&(a=t.detail===i)}]}(o,B,D,(e=>{k((t=>t+e))}));function H(e){o.value&&e.preventDefault()}!function(e,t,n){let o=!1,r=0,l=null,a=null;const s=()=>{l&&(l.removeEventListener("touchmove",u),l.removeEventListener("touchend",d))},u=e=>{if(o){const t=Math.ceil(e.touches[0].pageY);let o=r-t;r=t,n(o)&&e.preventDefault(),clearInterval(a),a=setInterval((()=>{o*=.9333333333333333,(!n(o,!0)||Math.abs(o)<=.1)&&clearInterval(a)}),16)}},d=()=>{o=!1,s()},p=e=>{s(),1!==e.touches.length||o||(o=!0,r=Math.ceil(e.touches[0].pageY),l=e.target,l.addEventListener("touchmove",u,{passive:!1}),l.addEventListener("touchend",d))},v=()=>{};i((()=>{document.addEventListener("touchmove",v,{passive:!1}),c(e,(e=>{t.value.removeEventListener("touchstart",p),s(),clearInterval(a),e&&t.value.addEventListener("touchstart",p,{passive:!1})}),{immediate:!0})})),b((()=>{document.removeEventListener("touchmove",v)}))}(o,y,((e,t)=>!z(e,t)&&(j({preventDefault(){},deltaY:e}),!0)));const F=()=>{y.value&&(y.value.removeEventListener("wheel",j,!!mt&&{passive:!1}),y.value.removeEventListener("DOMMouseScroll",N),y.value.removeEventListener("MozMousePixelScroll",H))};m((()=>{S((()=>{y.value&&(F(),y.value.addEventListener("wheel",j,!!mt&&{passive:!1}),y.value.addEventListener("DOMMouseScroll",N),y.value.addEventListener("MozMousePixelScroll",H))}))})),b((()=>{F()}));const L=function(e,t,n,o,r,l,i,a){let s;return c=>{if(null==c)return void a();rt.cancel(s);const u=t.value,d=o.itemHeight;if("number"==typeof c)i(c);else if(c&&"object"==typeof c){let t;const{align:o}=c;"index"in c?({index:t}=c):t=u.findIndex((e=>r(e)===c.key));const{offset:a=0}=c,p=(c,v)=>{if(c<0||!e.value)return;const f=e.value.clientHeight;let h=!1,g=v;if(f){const l=v||o;let s=0,c=0,p=0;const m=Math.min(u.length,t);for(let e=0;e<=m;e+=1){const o=r(u[e]);c=s;const l=n.get(o);p=c+(void 0===l?d:l),s=p,e===t&&void 0===l&&(h=!0)}const b=e.value.scrollTop;let y=null;switch(l){case"top":y=c-a;break;case"bottom":y=p-f+a;break;default:cb+f&&(g="bottom")}null!==y&&y!==b&&i(y)}s=rt((()=>{h&&l(),p(c-1,g)}),2)};p(5)}}}(y,v,M,e,w,I,k,(()=>{var e;null===(e=x.value)||void 0===e||e.delayHidden()}));n({scrollTo:L});const _=d((()=>{let t=null;return e.height&&(t=q({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},ap),o.value&&(t.overflowY="hidden",u.scrollMoving&&(t.pointerEvents="none"))),t}));c([()=>E.start,()=>E.end,v],(()=>{if(e.onVisibleChange){const t=v.value.slice(E.start,E.end+1);e.onVisibleChange(t,v.value)}}),{flush:"post"});return{state:u,mergedData:v,componentStyle:_,onFallbackScroll:function(t){var n;const{scrollTop:o}=t.currentTarget;o!==u.scrollTop&&k(o),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(e){k(e)},componentRef:y,useVirtual:o,calRes:E,collectHeight:I,setInstance:O,sharedConfig:C,scrollBarRef:x,fillerInnerRef:$,delayHideScrollBar:()=>{var e;null===(e=x.value)||void 0===e||e.delayHidden()}}},render(){const e=q(q({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:l,itemKey:i,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:p}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[$(Jd,{prefixCls:t,height:g,offset:m,onInnerResize:k,ref:"fillerInnerRef"},{default:()=>function(e,t,n,o,r,l){let{getKey:i}=l;return e.slice(t,n+1).map(((e,n)=>{const l=r(e,t+n,{}),a=i(e);return $(tp,{key:a,setRef:t=>o(e,t)},{default:()=>[l]})}))}(M,b,y,I,u,O)})]}),C&&$(op,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:g,count:M.length,onScroll:w,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),cp=sp;function up(e,t,n){const o=f(e());return c(t,((t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()})),o}const dp=Symbol("SelectContextKey");function pp(e){return"string"==typeof e||"number"==typeof e}const vp=r({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(t,n){let{expose:o,slots:r}=n;const i=Vd(),a=p(dp,{}),s=d((()=>`${i.prefixCls}-item`)),u=up((()=>a.flattenOptions),[()=>i.open,()=>a.flattenOptions],(e=>e[0])),v=Ld(),f=e=>{e.preventDefault()},h=e=>{v.current&&v.current.scrollTo("number"==typeof e?{index:e}:e)},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=u.value.length;for(let o=0;o1&&void 0!==arguments[1]&&arguments[1];m.activeIndex=e;const n={source:t?"keyboard":"mouse"},o=u.value[e];o?a.onActiveValue(o.value,e,n):a.onActiveValue(null,-1,n)};c([()=>u.value.length,()=>i.searchValue],(()=>{b(!1!==a.defaultActiveFirstOption?g(0):-1)}),{immediate:!0});const y=e=>a.rawValues.has(e)&&"combobox"!==i.mode;c([()=>i.open,()=>i.searchValue],(()=>{if(!i.multiple&&i.open&&1===a.rawValues.size){const e=Array.from(a.rawValues)[0],t=R(u.value).findIndex((t=>{let{data:n}=t;return n[a.fieldNames.value]===e}));-1!==t&&(b(t),S((()=>{h(t)})))}i.open&&S((()=>{var e;null===(e=v.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const x=e=>{void 0!==e&&a.onSelect(e,{selected:!a.rawValues.has(e)}),i.multiple||i.toggleOpen(!1)},w=e=>"function"==typeof e.label?e.label():e.label;function C(e){const t=u.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:r}=t,l=yd(n,!0),a=w(t);return t?$("div",U(U({"aria-label":"string"!=typeof a||r?null:a},l),{},{key:e,role:r?"presentation":"option",id:`${i.id}_list_${e}`,"aria-selected":y(o)}),[o]):null}return o({onKeydown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case sd.N:case sd.P:case sd.UP:case sd.DOWN:{let e=0;if(t===sd.UP?e=-1:t===sd.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===sd.N?e=1:t===sd.P&&(e=-1)),0!==e){const t=g(m.activeIndex+e,e);h(t),b(t,!0)}break}case sd.ENTER:{const t=u.value[m.activeIndex];t&&!t.data.disabled?x(t.value):x(void 0),i.open&&e.preventDefault();break}case sd.ESC:i.toggleOpen(!1),i.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{h(e)}}),()=>{const{id:t,notFoundContent:n,onPopupScroll:o}=i,{menuItemSelectedIcon:l,fieldNames:c,virtual:d,listHeight:p,listItemHeight:h}=a,g=r.option,{activeIndex:S}=m,k=Object.keys(c).map((e=>c[e]));return 0===u.value.length?$("div",{role:"listbox",id:`${t}_list`,class:`${s.value}-empty`,onMousedown:f},[n]):$(e,null,[$("div",{role:"listbox",id:`${t}_list`,style:{height:0,width:0,overflow:"hidden"}},[C(S-1),C(S),C(S+1)]),$(cp,{itemKey:"key",ref:v,data:u.value,height:p,itemHeight:h,fullHeight:!1,onMousedown:f,onScroll:o,virtual:d},{default:(e,t)=>{var n;const{group:o,groupOption:r,data:i,value:a}=e,{key:c}=i,u="function"==typeof e.label?e.label():e.label;if(o){const e=null!==(n=i.title)&&void 0!==n?n:pp(u)&&u;return $("div",{class:pe(s.value,`${s.value}-group`),title:e},[g?g(i):void 0!==u?u:c])}const{disabled:d,title:p,children:v,style:f,class:h,className:m}=i,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{C.onMousemove&&C.onMousemove(e),S===t||d||b(t)},onClick:e=>{d||x(a),C.onClick&&C.onClick(e)},style:f}),[$("div",{class:`${M}-content`},[g?g(i):A]),qe(l)||I,T&&$(ud,{class:`${s.value}-option-state`,customizeIcon:l,customizeIconProps:{isSelected:I}},{default:()=>[I?"✓":null]})])}})])}}}),fp=vp;var hp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]&&arguments[1];return Fe(e).map(((e,n)=>{var o;if(!qe(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:l,children:i,props:a}=e;if(t||!r)return function(e){const t=e,{key:n,children:o}=t,r=t.props,{value:l,disabled:i}=r,a=hp(r,["value","disabled"]);return q({key:n,value:void 0!==l?l:n,children:null==o?void 0:o.default,disabled:i||""===i},a)}(e);const s=i&&i.default?i.default():void 0,c=(null==a?void 0:a.label)||(null===(o=i.label)||void 0===o?void 0:o.call(i))||l;return q(q({key:`__RC_SELECT_GRP__${null===l?n:String(l)}__`},a),{label:c,options:gp(s||[])})})).filter((e=>e))}let mp=0;const bp=Jt();function yp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f("");const t=`rc_select_${function(){let e;return bp?(e=mp,mp+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}function $p(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function xp(e,t){return $p(e).join("").toUpperCase().includes(t)}function Sp(e,t){const{defaultValue:n,value:o=f()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=h(o)),void 0!==n&&(r="function"==typeof n?n():n);const l=f(r),i=f(r);return m((()=>{let e=void 0!==o.value?o.value:l.value;t.postState&&(e=t.postState(e)),i.value=e})),c(o,(()=>{l.value=o.value})),[i,function(e){const n=i.value;l.value=e,R(i.value)!==e&&t.onChange&&t.onChange(e,n)}]}function wp(e){const t="function"==typeof e?e():e,n=f(t);return[n,function(e){n.value=e}]}const Cp=["inputValue"];function kp(){return q(q({},Ud()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:Ii.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Ii.any,defaultValue:Ii.any,onChange:Function,children:Array})}const Op=r({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Re(kp(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=yp(M(e,"id")),i=d((()=>qd(e.mode))),a=d((()=>!(e.options||!e.children))),s=d((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),u=d((()=>Di(e.fieldNames,a.value))),[p,h]=Sp("",{value:d((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),b=function(e,t,n){const o=g(),r=g(),l=g(),i=g([]);return c([e,t],(()=>{e.value?i.value=R(e.value).slice():i.value=gp(t.value)}),{immediate:!0,deep:!0}),m((()=>{const e=i.value,t=new Map,a=new Map,s=n.value;!function e(n){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r$p(t).map((t=>{var n,o;let r,l,i,a;var s;(s=t)&&"object"==typeof s?(i=t.key,l=t.label,r=null!==(n=t.value)&&void 0!==n?n:i):r=t;const c=y.value.get(r);return c&&(void 0===l&&(l=null==c?void 0:c[e.optionLabelProp||u.value.label]),void 0===i&&(i=null!==(o=null==c?void 0:c.key)&&void 0!==o?o:r),a=null==c?void 0:c.disabled),{label:l,value:r,key:i,disabled:a,option:c}})),[C,k]=Sp(e.defaultValue,{value:M(e,"value")}),O=d((()=>{var t;const n=w(C.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]})),[I,P]=((e,t)=>{const n=g({values:new Map,options:new Map});return[d((()=>{const{values:o,options:r}=n.value,l=e.value.map((e=>{var t;return void 0===e.label?q(q({},e),{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),i=new Map,a=new Map;return l.forEach((e=>{i.set(e.value,e),a.set(e.value,t.value.get(e.value)||r.get(e.value))})),n.value.values=i,n.value.options=a,l})),e=>t.value.get(e)||n.value.options.get(e)]})(O,y),E=d((()=>{if(!e.mode&&1===I.value.length){const e=I.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return I.value.map((e=>{var t;return q(q({},e),{label:null!==(t="function"==typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),T=d((()=>new Set(I.value.map((e=>e.value)))));m((()=>{var t;if("combobox"===e.mode){const e=null===(t=I.value[0])||void 0===t?void 0:t.value;null!=e&&h(String(e))}}),{flush:"post"});const A=(e,t)=>{const n=null!=t?t:e;return{[u.value.value]:e,[u.value.label]:n}},B=g();m((()=>{if("tags"!==e.mode)return void(B.value=S.value);const t=S.value.slice();[...I.value].sort(((e,t)=>e.value{const n=e.value;(e=>y.value.has(e))(n)||t.push(A(n,e.label))})),B.value=t}));const D=(z=B,j=u,N=p,H=s,F=M(e,"optionFilterProp"),d((()=>{const e=N.value,t=null==F?void 0:F.value,n=null==H?void 0:H.value;if(!e||!1===n)return z.value;const{options:o,label:r,value:l}=j.value,i=[],a="function"==typeof n,s=e.toUpperCase(),c=a?n:(e,n)=>t?xp(n[t],s):n[o]?xp(n["children"!==r?r:"label"],s):xp(n[l],s),u=a?e=>zi(e):e=>e;return z.value.forEach((t=>{if(t[o])if(c(e,u(t)))i.push(t);else{const n=t[o].filter((t=>c(e,u(t))));n.length&&i.push(q(q({},t),{[o]:n}))}else c(e,u(t))&&i.push(t)})),i})));var z,j,N,H,F;const L=d((()=>"tags"!==e.mode||!p.value||D.value.some((t=>t[e.optionFilterProp||"value"]===p.value))?D.value:[A(p.value),...D.value])),_=d((()=>e.filterSort?[...L.value].sort(((t,n)=>e.filterSort(t,n))):L.value)),W=d((()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],{label:r,value:l,options:i}=Di(t,!1);return function e(t,a){t.forEach((t=>{const s=t[r];if(a||!(i in t)){const e=t[l];o.push({key:Bi(t,o.length),groupOption:a,data:t,label:s,value:e})}else{let r=s;void 0===r&&n&&(r=t.label),o.push({key:Bi(t,o.length),group:!0,data:t,label:r}),e(t[i],!0)}}))}(e,!1),o}(_.value,{fieldNames:u.value,childrenAsData:a.value}))),K=t=>{const n=w(t);if(k(n),e.onChange&&(n.length!==I.value.length||n.some(((e,t)=>{var n;return(null===(n=I.value[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>q(q({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):n.map((e=>e.value)),o=n.map((e=>zi(P(e.value))));e.onChange(i.value?t:t[0],i.value?o:o[0])}},[V,X]=wp(null),[G,Y]=wp(0),Q=d((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),Z=(t,n)=>{const o=()=>{var n;const o=P(t),r=null==o?void 0:o[u.value.label];return[e.labelInValue?{label:"function"==typeof r?r():r,originLabel:r,value:t,key:null!==(n=null==o?void 0:o.key)&&void 0!==n?n:t}:t,zi(o)]};if(n&&e.onSelect){const[t,n]=o();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=o();e.onDeselect(t,n)}},J=(e,t)=>{K(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((e=>{Z(e.value,!1)}))},ee=(t,n)=>{var o;if(h(t),X(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&K(t),null===(o=e.onSearch)||void 0===o||o.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...T.value,e]));K(t),Z(e,!0),h("")}}},te=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=x.value.get(e);return null==t?void 0:t.value})).filter((e=>void 0!==e)));const o=Array.from(new Set([...T.value,...n]));K(o),o.forEach((e=>{Z(e,!0)}))},ne=d((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(e){v(dp,e)}(Gd(q(q({},b),{flattenOptions:W,onActiveValue:function(t,n){let{source:o="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Y(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===o&&X(String(t))},defaultActiveFirstOption:Q,onSelect:(t,n)=>{let o;const r=!i.value||n.selected;o=r?i.value?[...I.value,t]:[t]:I.value.filter((e=>e.value!==t)),K(o),Z(t,r),"combobox"===e.mode?X(""):i.value&&!e.autoClearSearchValue||(h(""),X(""))},menuItemSelectedIcon:M(e,"menuItemSelectedIcon"),rawValues:T,fieldNames:u,virtual:ne,listHeight:M(e,"listHeight"),listItemHeight:M(e,"listItemHeight"),childrenAsData:a})));const oe=f();n({focus(){var e;null===(e=oe.value)||void 0===e||e.focus()},blur(){var e;null===(e=oe.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=oe.value)||void 0===t||t.scrollTo(e)}});const re=d((()=>Ml(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>$(Qd,U(U(U({},re.value),o),{},{id:l,prefixCls:e.prefixCls,ref:oe,omitDomProps:Cp,mode:e.mode,displayValues:E.value,onDisplayValuesChange:J,searchValue:p.value,onSearch:ee,onSearchSplit:te,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:fp,emptyOptions:!W.value.length,activeValue:V.value,activeDescendantId:`${l}_list_${G.value}`}),r)}}),Ip=()=>null;Ip.isSelectOption=!0,Ip.displayName="ASelectOption";const Mp=Ip,Pp=()=>null;Pp.isSelectOptGroup=!0,Pp.displayName="ASelectOptGroup";const Ep=Pp;const Tp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Ap=Symbol("iconContext"),Bp=function(){return p(Ap,{prefixCls:f("anticon"),rootClassName:f(""),csp:f()})};function Dp(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var zp="data-vc-order",Rp="vc-icon-key",jp=new Map;function Np(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Rp}function Hp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fp(e){return Array.from((jp.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Lp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Dp())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(zp,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var l=Hp(t),i=l.firstChild;if(o){if("queue"===o){var a=Fp(l).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(zp))}));if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function _p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n,o,r=jp.get(e);if(!(r&&(n=document,o=r,n&&n.contains&&n.contains(o)))){var l=Lp("",t),i=l.parentNode;jp.set(e,i),e.removeChild(l)}}(Hp(n),n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Fp(Hp(t)).find((function(n){return n.getAttribute(Np(t))===e}))}(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var r=Lp(e,n);return r.setAttribute(Np(n),t),r}function Wp(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jp(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t&&(r=r.replace(/anticon/g,t.value)),S((function(){if(Dp()){var e=qp(o.vnode.el);_p(r,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}})),function(){return null}}}),sv=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function cv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);i=!0);}catch(s){a=!0,r=s}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}iv(Tr.primary);var fv=function(e,t){var n,o=dv({},e,t.attrs),r=o.class,l=o.icon,i=o.spin,a=o.rotate,s=o.tabindex,c=o.twoToneColor,u=o.onClick,d=vv(o,sv),p=Bp(),v=p.prefixCls,f=p.rootClassName,h=(pv(n={},f.value,!!f.value),pv(n,v.value,!0),pv(n,"".concat(v.value,"-").concat(l.name),Boolean(l.name)),pv(n,"".concat(v.value,"-spin"),!!i||"loading"===l.name),n),g=s;void 0===g&&u&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=cv(Yp(c),2),y=b[0],x=b[1];return $("span",dv({role:"img","aria-label":l.name},d,{onClick:u,class:[h,r],tabindex:g}),[$(ov,{icon:l,primaryColor:y,secondaryColor:x,style:m},null),$(av,null,null)])};fv.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},fv.displayName="AntdIcon",fv.inheritAttrs=!1,fv.getTwoToneColor=function(){var e=ov.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},fv.setTwoToneColor=iv;const hv=fv;function gv(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const{loading:o,multiple:r,prefixCls:l,hasFeedback:i,feedbackIcon:a,showArrow:s}=t,c=t.suffixIcon||n.suffixIcon&&n.suffixIcon(),u=t.clearIcon||n.clearIcon&&n.clearIcon(),d=t.menuItemSelectedIcon||n.menuItemSelectedIcon&&n.menuItemSelectedIcon(),p=t.removeIcon||n.removeIcon&&n.removeIcon(),v=null!=u?u:$(Hv,null,null),f=t=>$(e,null,[!1!==s&&t,i&&a]);let h=null;if(void 0!==c)h=f(c);else if(o)h=f($(Cv,{spin:!0},null));else{const e=`${l}-suffix`;h=t=>{let{open:n,showSearch:o}=t;return f($(n&&o?Kv:yv,{class:e},null))}}let g=null;g=void 0!==d?d:r?$(Pv,null,null):null;let m=null;return m=void 0!==p?p:$(Dv,null,null),{clearIcon:v,suffixIcon:h,itemIcon:g,removeIcon:m}}function Xv(e){const t=Symbol("contextKey");return{useProvide:(e,n)=>{const o=l({});return v(t,o),m((()=>{q(o,e,n||{})})),o},useInject:()=>p(t,e)||{}}}const Gv=Symbol("ContextProps"),Yv=Symbol("InternalContextProps"),Uv={id:d((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},qv={addFormItemField:()=>{},removeFormItemField:()=>{}},Qv=()=>{const e=p(Yv,qv),t=Symbol("FormItemFieldKey"),n=u();return e.addFormItemField(t,n.type),b((()=>{e.removeFormItemField(t)})),v(Yv,qv),v(Gv,Uv),p(Gv,Uv)},Zv=r({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return v(Yv,qv),v(Gv,Uv),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Jv=Xv({}),ef=r({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Jv.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function tf(e,t,n){return pe({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const nf=(e,t)=>t||e,of=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},rf=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},lf=tl("Space",(e=>[rf(e),of(e)]));var af="[object Symbol]";function sf(e){return"symbol"==typeof e||kc(e)&&$s(e)==af}function cf(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n0){if(++Df>=800)return arguments[0]}else Df=0;return Bf.apply(void 0,arguments)});function jf(e,t,n,o){for(var r=e.length,l=n+(o?1:-1);o?l--:++l-1}function Ff(e,t,n){"__proto__"==t&&Tf?Tf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Lf=Object.prototype.hasOwnProperty;function _f(e,t,n){var o=e[t];Lf.call(e,t)&&rs(o,n)&&(void 0!==n||t in e)||Ff(e,t,n)}function Wf(e,t,n,o){var r=!n;n||(n={});for(var l=-1,i=t.length;++l0&&n(a)?t>1?uh(a,t-1,n,o,r):bc(r,a):o||(r[r.length]=a)}return r}function dh(e){return(null==e?0:e.length)?uh(e,1):[]}function ph(e){return Rf(Vf(e,void 0,dh),e+"")}const vh=Zc(Object.getPrototypeOf,Object);var fh="[object Object]",hh=Function.prototype,gh=Object.prototype,mh=hh.toString,bh=gh.hasOwnProperty,yh=mh.call(Object);function $h(e){if(!kc(e)||$s(e)!=fh)return!1;var t=vh(e);if(null===t)return!0;var n=bh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mh.call(n)==yh}var xh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Sh=xh&&"object"==typeof module&&module&&!module.nodeType&&module,wh=Sh&&Sh.exports===xh?us.Buffer:void 0,Ch=wh?wh.allocUnsafe:void 0;const kh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)bc(t,Cc(e)),e=vh(e);return t}:xc;function Oh(e){return $c(e,Yf,kh)}var Ih=Object.prototype.hasOwnProperty;function Mh(e){var t=new e.constructor(e.byteLength);return new ec(t).set(new ec(e)),t}var Ph=/\w*$/;var Eh=ds?ds.prototype:void 0,Th=Eh?Eh.valueOf:void 0;var Ah="[object Boolean]",Bh="[object Date]",Dh="[object Map]",zh="[object Number]",Rh="[object RegExp]",jh="[object Set]",Nh="[object String]",Hh="[object Symbol]",Fh="[object ArrayBuffer]",Lh="[object DataView]",_h="[object Float32Array]",Wh="[object Float64Array]",Kh="[object Int8Array]",Vh="[object Int16Array]",Xh="[object Int32Array]",Gh="[object Uint8Array]",Yh="[object Uint8ClampedArray]",Uh="[object Uint16Array]",qh="[object Uint32Array]";function Qh(e,t,n){var o,r,l,i=e.constructor;switch(t){case Fh:return Mh(e);case Ah:case Bh:return new i(+e);case Lh:return function(e,t){var n=t?Mh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case _h:case Wh:case Kh:case Vh:case Xh:case Gh:case Yh:case Uh:case qh:return function(e,t){var n=t?Mh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case Dh:return new i;case zh:case Nh:return new i(e);case Rh:return(l=new(r=e).constructor(r.source,Ph.exec(r))).lastIndex=r.lastIndex,l;case jh:return new i;case Hh:return o=e,Th?Object(Th.call(o)):{}}}var Zh=Vc&&Vc.isMap;const Jh=Zh?Lc(Zh):function(e){return kc(e)&&"[object Map]"==Su(e)};var eg=Vc&&Vc.isSet;const tg=eg?Lc(eg):function(e){return kc(e)&&"[object Set]"==Su(e)};var ng=1,og=2,rg=4,lg="[object Arguments]",ig="[object Function]",ag="[object GeneratorFunction]",sg="[object Object]",cg={};function ug(e,t,n,o,r,l){var i,a=t&ng,s=t&og,c=t&rg;if(n&&(i=r?n(e,o,r,l):n(e)),void 0!==i)return i;if(!xs(e))return e;var u=yc(e);if(u){if(i=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ih.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n=t||n<0||d&&e-c>=l}function h(){var e=Ag();if(f(e))return g(e);a=setTimeout(h,function(e){var n=t-(e-s);return d?zg(n,l-(e-c)):n}(e))}function g(e){return a=void 0,p&&o?v(e):(o=r=void 0,i)}function m(){var e=Ag(),n=f(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(h,t),u?v(e):i}(s);if(d)return clearTimeout(a),a=setTimeout(h,t),v(s)}return void 0===a&&(a=setTimeout(h,t)),i}return t=Sf(t)||0,xs(n)&&(u=!!n.leading,l=(d="maxWait"in n)?Dg(Sf(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=s=r=a=void 0},m.flush=function(){return void 0===a?i:g(Ag())},m}function jg(e,t,n){for(var o=-1,r=null==e?0:e.length;++o-1?o[r?e[l]:l]:void 0});var Lg=Math.min;function _g(e){return function(e){return kc(e)&&nu(e)}(e)?e:[]}var Wg=function(e,t){return Rf(Vf(e,t,Of),e+"")}((function(e){var t=cf(e,_g);return t.length&&t[0]===e[0]?function(e,t,n){for(var o=n?jg:Hf,r=e[0].length,l=e.length,i=l,a=Array(l),s=1/0,c=[];i--;){var u=e[i];i&&t&&(u=cf(u,Lc(t))),s=Lg(u.length,s),a[i]=!n&&(t||r>=120&&u.length>=120)?new Ys(i&&u):void 0}u=e[0];var d=-1,p=a[0];e:for(;++dr?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o1),t})),Wf(e,Oh(e),n),o&&(n=ug(n,7,Ug));for(var r=t.length;r--;)Yg(n,t[r]);return n}));function Qg(e,t,n,o){if(!xs(e))return e;for(var r=-1,l=(t=rh(t,e)).length,i=l-1,a=e;null!=a&&++r=lm){var c=t?null:rm(e);if(c)return nc(c);i=!1,r=qs,s=new Ys}else s=t?[]:a;e:for(;++o{const n=am.useInject(),o=d((()=>{if(!n||Gg(n))return"";const{compactDirection:o,isFirstItem:r,isLastItem:l}=n,i="vertical"===o?"-vertical-":"-";return pe({[`${e.value}-compact${i}item`]:!0,[`${e.value}-compact${i}first-item`]:r,[`${e.value}-compact${i}last-item`]:l,[`${e.value}-compact${i}item-rtl`]:"rtl"===t.value})}));return{compactSize:d((()=>null==n?void 0:n.compactSize)),compactDirection:d((()=>null==n?void 0:n.compactDirection)),compactItemClassnames:o}},cm=r({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return am.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),um=r({name:"CompactItem",props:{compactSize:String,compactDirection:Ii.oneOf(it("horizontal","vertical")).def("horizontal"),isFirstItem:ut(),isLastItem:ut()},setup(e,t){let{slots:n}=t;return am.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),dm=r({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:Ii.oneOf(it("horizontal","vertical")).def("horizontal"),align:Ii.oneOf(it("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Il("space-compact",e),i=am.useInject(),[a,s]=lf(r),c=d((()=>pe(r.value,s.value,{[`${r.value}-rtl`]:"rtl"===l.value,[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const l=Fe((null===(t=o.default)||void 0===t?void 0:t.call(o))||[]);return 0===l.length?null:a($("div",U(U({},n),{},{class:[c.value,n.class]}),[l.map(((t,n)=>{var o;const a=t&&t.key||`${r.value}-item-${n}`,s=!i||Gg(i);return $(um,{key:a,compactSize:null!==(o=e.size)&&void 0!==o?o:"middle",compactDirection:e.direction,isFirstItem:0===n&&(s||(null==i?void 0:i.isFirstItem)),isLastItem:n===l.length-1&&(s||(null==i?void 0:i.isLastItem))},{default:()=>[t]})}))]))}}}),pm=e=>({animationDuration:e,animationFillMode:"both"}),vm=e=>({animationDuration:e,animationFillMode:"both"}),fm=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:q(q({},pm(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:q(q({},vm(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},hm=new Fo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),gm=new Fo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mm=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[fm(o,hm,gm,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},bm=new Fo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ym=new Fo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$m=new Fo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xm=new Fo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sm=new Fo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wm=new Fo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Cm={"move-up":{inKeyframes:new Fo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Fo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:bm,outKeyframes:ym},"move-left":{inKeyframes:$m,outKeyframes:xm},"move-right":{inKeyframes:Sm,outKeyframes:wm}},km=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=Cm[t];return[fm(o,r,l,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Om=new Fo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Im=new Fo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mm=new Fo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Pm=new Fo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Em=new Fo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Tm=new Fo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Am=new Fo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Bm=new Fo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Dm={"slide-up":{inKeyframes:Om,outKeyframes:Im},"slide-down":{inKeyframes:Mm,outKeyframes:Pm},"slide-left":{inKeyframes:Em,outKeyframes:Tm},"slide-right":{inKeyframes:Am,outKeyframes:Bm}},zm=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=Dm[t];return[fm(o,r,l,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Rm=new Fo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jm=new Fo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nm=new Fo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hm=new Fo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Fm=new Fo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Lm=new Fo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_m=new Fo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Wm=new Fo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Km=new Fo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Vm=new Fo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Xm=new Fo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Gm=new Fo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ym={zoom:{inKeyframes:Rm,outKeyframes:jm},"zoom-big":{inKeyframes:Nm,outKeyframes:Hm},"zoom-big-fast":{inKeyframes:Nm,outKeyframes:Hm},"zoom-left":{inKeyframes:_m,outKeyframes:Wm},"zoom-right":{inKeyframes:Km,outKeyframes:Vm},"zoom-up":{inKeyframes:Fm,outKeyframes:Lm},"zoom-down":{inKeyframes:Xm,outKeyframes:Gm}},Um=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=Ym[t];return[fm(o,r,l,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qm=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Qm=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Zm=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:q(q({},Ur(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:Om},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:Mm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Im},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Pm},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:q(q({},Qm(e)),{color:e.colorTextDisabled}),[`${o}`]:q(q({},Qm(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":q({flex:"auto"},Yr),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},zm(e,"slide-up"),zm(e,"slide-down"),km(e,"move-up"),km(e,"move-down")]},Jm=2;function eb(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function tb(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=eb(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-Jm}px ${2*Jm}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Jm}px 0`,lineHeight:`${l}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:Jm,marginBottom:Jm,lineHeight:l-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:2*Jm,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":q(q({},qr()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function nb(e){const{componentCls:t}=e,n=rl(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=eb(e);return[tb(e),tb(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},tb(rl(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function ob(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,l=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:q(q({},Ur(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function rb(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[ob(e),ob(rl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},ob(rl(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function lb(e,t,n){const{focusElCls:o,focus:r,borderElCls:l}=n,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":q(q({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function ib(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ab(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:q(q({},lb(e,o,t)),ib(n,o,t))}}const sb=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},cb=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:l,antCls:i}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${i}-pagination-size-changer)`]:q(q({},n?{[`${o}-selector`]:{borderColor:r}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},ub=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},db=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:q(q({},Ur(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:q(q({},sb(e)),ub(e)),[`${t}-selection-item`]:q({flex:1,fontWeight:"normal"},Yr),[`${t}-selection-placeholder`]:q(q({},Yr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:q(q({},qr()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},pb=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},db(e),rb(e),nb(e),Zm(e),{[`${t}-rtl`]:{direction:"rtl"}},cb(t,rl(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),cb(`${t}-status-error`,rl(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),cb(`${t}-status-warning`,rl(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ab(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},vb=tl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=rl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[pb(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),fb=()=>q(q({},Ml(kp(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:ht([Array,Object,String,Number]),defaultValue:ht([Array,Object,String,Number]),notFoundContent:Ii.any,suffixIcon:Ii.any,itemIcon:Ii.any,size:ft(),mode:ft(),bordered:ut(!0),transitionName:String,choiceTransitionName:ft(""),popupClassName:String,dropdownClassName:String,placement:ft(),status:ft(),"onUpdate:value":dt()}),hb="SECRET_COMBOBOX_MODE_DO_NOT_USE",gb=r({compatConfig:{MODE:3},name:"ASelect",Option:Mp,OptGroup:Ep,inheritAttrs:!1,props:Re(fb(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:hb,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:l}=t;const i=f(),a=Qv(),s=Jv.useInject(),c=d((()=>nf(s.status,e.status))),u=d((()=>{const{mode:t}=e;if("combobox"!==t)return t===hb?"combobox":t})),{prefixCls:p,direction:v,configProvider:h,renderEmpty:g,size:m,getPrefixCls:b,getPopupContainer:y,disabled:x,select:S}=Il("select",e),{compactSize:w,compactItemClassnames:C}=sm(p,v),k=d((()=>w.value||m.value)),O=At(),I=d((()=>{var e;return null!==(e=x.value)&&void 0!==e?e:O.value})),[M,P]=vb(p),E=d((()=>b())),T=d((()=>void 0!==e.placement?e.placement:"rtl"===v.value?"bottomRight":"bottomLeft")),A=d((()=>Nu(E.value,zu(T.value),e.transitionName))),B=d((()=>pe({[`${p.value}-lg`]:"large"===k.value,[`${p.value}-sm`]:"small"===k.value,[`${p.value}-rtl`]:"rtl"===v.value,[`${p.value}-borderless`]:!e.bordered,[`${p.value}-in-form-item`]:s.isFormItemInput},tf(p.value,c.value,s.hasFeedback),C.value,P.value))),D=function(){for(var e=arguments.length,t=new Array(e),n=0;n{o("blur",e),a.onFieldBlur()};l({blur:()=>{var e;null===(e=i.value)||void 0===e||e.blur()},focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},scrollTo:e=>{var t;null===(t=i.value)||void 0===t||t.scrollTo(e)}});const R=d((()=>"multiple"===u.value||"tags"===u.value)),j=d((()=>void 0!==e.showArrow?e.showArrow:e.loading||!(R.value||"combobox"===u.value)));return()=>{var t,o,l,c;const{notFoundContent:d,listHeight:f=256,listItemHeight:h=24,popupClassName:m,dropdownClassName:b,virtual:x,dropdownMatchSelectWidth:w,id:C=a.id.value,placeholder:k=(null===(t=r.placeholder)||void 0===t?void 0:t.call(r)),showArrow:O}=e,{hasFeedback:E,feedbackIcon:T}=s;let N;N=void 0!==d?d:r.notFoundContent?r.notFoundContent():"combobox"===u.value?null:(null==g?void 0:g("Select"))||$(Sl,{componentName:"Select"},null);const{suffixIcon:H,itemIcon:F,removeIcon:L,clearIcon:_}=Vv(q(q({},e),{multiple:R.value,prefixCls:p.value,hasFeedback:E,feedbackIcon:T,showArrow:j.value}),r),W=Ml(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),K=pe(m||b,{[`${p.value}-dropdown-${v.value}`]:"rtl"===v.value},P.value);return M($(Op,U(U(U({ref:i,virtual:x,dropdownMatchSelectWidth:w},W),n),{},{showSearch:null!==(o=e.showSearch)&&void 0!==o?o:null===(l=null==S?void 0:S.value)||void 0===l?void 0:l.showSearch,placeholder:k,listHeight:f,listItemHeight:h,mode:u.value,prefixCls:p.value,direction:v.value,inputIcon:H,menuItemSelectedIcon:F,removeIcon:L,clearIcon:_,notFoundContent:N,class:[B.value,n.class],getPopupContainer:null==y?void 0:y.value,dropdownClassName:K,onChange:D,onBlur:z,id:C,dropdownRender:W.dropdownRender||r.dropdownRender,transitionName:A.value,children:null===(c=r.default)||void 0===c?void 0:c.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:E||O,disabled:I.value}),{option:r.option}))}}});gb.install=function(e){return e.component(gb.name,gb),e.component(gb.Option.displayName,gb.Option),e.component(gb.OptGroup.displayName,gb.OptGroup),e};const mb=gb.Option,bb=gb.OptGroup,yb=gb,$b=()=>null;$b.isSelectOption=!0,$b.displayName="AAutoCompleteOption";const xb=$b,Sb=()=>null;Sb.isSelectOptGroup=!0,Sb.displayName="AAutoCompleteOptGroup";const wb=Sb;const Cb=xb,kb=wb,Ob=r({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:q(q({},Ml(fb(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;bn(),bn(),bn(!e.dropdownClassName);const l=f(),i=()=>{var e;const t=Fe(null===(e=n.default)||void 0===e?void 0:e.call(n));return t.length?t[0]:void 0};r({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()}});const{prefixCls:a}=Il("select",e);return()=>{var t,r,s;const{size:c,dataSource:u,notFoundContent:d=(null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n))}=e;let p;const{class:v}=o,f={[v]:!!v,[`${a.value}-lg`]:"large"===c,[`${a.value}-sm`]:"small"===c,[`${a.value}-show-search`]:!0,[`${a.value}-auto-complete`]:!0};if(void 0===e.options){const e=(null===(r=n.dataSource)||void 0===r?void 0:r.call(n))||(null===(s=n.options)||void 0===s?void 0:s.call(n))||[];p=e.length&&function(e){var t,n;return(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.isSelectOption)||(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.isSelectOptGroup)}(e[0])?e:u?u.map((e=>{if(qe(e))return e;switch(typeof e){case"string":return $(xb,{key:e,value:e},{default:()=>[e]});case"object":return $(xb,{key:e.value,value:e.value},{default:()=>[e.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[]}const h=Ml(q(q(q({},e),o),{mode:yb.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:i,notFoundContent:d,class:f,popupClassName:e.popupClassName||e.dropdownClassName,ref:l}),["dataSource","loading"]);return $(yb,h,U({default:()=>[p]},Ml(n,["default","dataSource","options"])))}}}),Ib=q(Ob,{Option:xb,OptGroup:wb,install:e=>(e.component(Ob.name,Ob),e.component(xb.displayName,xb),e.component(wb.displayName,wb),e)});const Mb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function Pb(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),uy=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:l,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:p,alertPaddingHorizontal:v,paddingMD:f,paddingContentHorizontalLG:h}=e;return{[t]:q(q({},Ur(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${p}px ${v}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:i},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},dy=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:l,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:v}=e;return{[t]:{"&-success":cy(r,o,n,e,t),"&-info":cy(v,p,d,e,t),"&-warning":cy(a,i,l,e,t),"&-error":q(q({},cy(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},py=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:l,colorIcon:i,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:l,lineHeight:`${l}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:a}}}}},vy=e=>[uy(e),dy(e),py(e)],fy=tl("Alert",(e=>{const{fontSizeHeading3:t}=e,n=rl(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[vy(n)]})),hy={success:Zb,info:sy,error:Hv,warning:oy},gy={success:Ab,info:_b,error:Gb,warning:jb},my=it("success","info","warning","error"),by=r({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:{type:Ii.oneOf(my),closable:{type:Boolean,default:void 0},closeText:Ii.any,message:Ii.any,description:Ii.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:Ii.any,closeIcon:Ii.any,onClose:Function},setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,direction:a}=Il("alert",e),[s,c]=fy(i),u=g(!1),p=g(!1),v=g(),f=e=>{e.preventDefault();const t=v.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,u.value=!0,o("close",e)},h=()=>{var t;u.value=!1,p.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)},m=d((()=>{const{type:t}=e;return void 0!==t?t:e.banner?"warning":"info"}));l({animationEnd:h});const b=g({});return()=>{var t,o,l,d,g,y,x,S,C,O;const{banner:I,closeIcon:M=(null===(t=n.closeIcon)||void 0===t?void 0:t.call(n))}=e;let{closable:E,showIcon:T}=e;const A=null!==(o=e.closeText)&&void 0!==o?o:null===(l=n.closeText)||void 0===l?void 0:l.call(n),B=null!==(d=e.description)&&void 0!==d?d:null===(g=n.description)||void 0===g?void 0:g.call(n),D=null!==(y=e.message)&&void 0!==y?y:null===(x=n.message)||void 0===x?void 0:x.call(n),z=null!==(S=e.icon)&&void 0!==S?S:null===(C=n.icon)||void 0===C?void 0:C.call(n),R=null===(O=n.action)||void 0===O?void 0:O.call(n);T=!(!I||void 0!==T)||T;const j=(B?gy:hy)[m.value]||null;A&&(E=!0);const N=i.value,H=pe(N,{[`${N}-${m.value}`]:!0,[`${N}-closing`]:u.value,[`${N}-with-description`]:!!B,[`${N}-no-icon`]:!T,[`${N}-banner`]:!!I,[`${N}-closable`]:E,[`${N}-rtl`]:"rtl"===a.value,[c.value]:!0}),F=E?$("button",{type:"button",onClick:f,class:`${N}-close-icon`,tabindex:0},[A?$("span",{class:`${N}-close-text`},[A]):void 0===M?$(Dv,null,null):M]):null,L=z&&(qe(z)?Ja(z,{class:`${N}-icon`}):$("span",{class:`${N}-icon`},[z]))||$(j,{class:`${N}-icon`},null),_=Ru(`${N}-motion`,{appear:!1,css:!0,onAfterLeave:h,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight="0px"}});return s(p.value?null:$(k,_,{default:()=>[w($("div",U(U({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,H],"data-show":!u.value,ref:v}),[T?L:null,$("div",{class:`${N}-content`},[D?$("div",{class:`${N}-message`},[D]):null,B?$("div",{class:`${N}-description`},[B]):null]),R?$("div",{class:`${N}-action`},[R]):null,F]),[[P,!u.value]])]}))}}}),yy=at(by),$y=["xxxl","xxl","xl","lg","md","sm","xs"],xy=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function Sy(){const[,e]=dl();return d((()=>{const t=xy(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch:e=>(r=e,n.forEach((e=>e(r))),n.size>=1),subscribe(e){return n.size||this.register(),o+=1,n.set(o,e),e(r),o},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),n.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(q(q({},r),{[e]:n}))},l=window.matchMedia(n);l.addListener(o),this.matchHandlers[n]={mql:l,listener:o},o(l)}))},responsiveMap:t}}))}function wy(){const e=g({});let t=null;const n=Sy();return i((()=>{t=n.value.subscribe((t=>{e.value=t}))})),s((()=>{n.value.unsubscribe(t)})),e}function Cy(e){const t=g();return m((()=>{t.value=e()}),{flush:"sync"}),t}const ky=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:l,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:v,borderRadiusSM:f,lineWidth:h,lineType:g}=e,m=(e,t,r)=>({width:e,height:e,lineHeight:e-2*h+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:q(q(q(q({},Ur(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:l,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),m(i,c,p)),{"&-lg":q({},m(a,u,v)),"&-sm":q({},m(s,d,f)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Oy=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},Iy=tl("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=rl(e,{avatarBg:n,avatarColor:t});return[ky(o),Oy(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:l,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((l+i)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}})),My=Symbol("AvatarContextKey"),Py=r({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Ii.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=g(!0),l=g(!1),a=g(1),s=g(null),u=g(null),{prefixCls:v}=Il("avatar",e),[f,h]=Iy(v),m=p(My,{}),b=d((()=>"default"===e.size?m.size:e.size)),y=wy(),x=Cy((()=>{if("object"!=typeof e.size)return;const t=$y.find((e=>y.value[e]));return e.size[t]})),w=()=>{if(!s.value||!u.value)return;const t=s.value.offsetWidth,n=u.value.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o{const{loadError:t}=e;!1!==(null==t?void 0:t())&&(r.value=!1)};return c((()=>e.src),(()=>{S((()=>{r.value=!0,a.value=1}))})),c((()=>e.gap),(()=>{S((()=>{w()}))})),i((()=>{S((()=>{w(),l.value=!0}))})),()=>{var t,i;const{shape:c,src:d,alt:p,srcset:g,draggable:y,crossOrigin:S}=e,k=null!==(t=m.shape)&&void 0!==t?t:c,O=Qe(n,e,"icon"),I=v.value,M={[`${o.class}`]:!!o.class,[I]:!0,[`${I}-lg`]:"large"===b.value,[`${I}-sm`]:"small"===b.value,[`${I}-${k}`]:!0,[`${I}-image`]:d&&r.value,[`${I}-icon`]:O,[h.value]:!0},P="number"==typeof b.value?{width:`${b.value}px`,height:`${b.value}px`,lineHeight:`${b.value}px`,fontSize:O?b.value/2+"px":"18px"}:{},E=null===(i=n.default)||void 0===i?void 0:i.call(n);let T;if(d&&r.value)T=$("img",{draggable:y,src:d,srcset:g,onError:C,alt:p,crossorigin:S},null);else if(O)T=O;else if(l.value||1!==a.value){const e=`scale(${a.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"==typeof b.value?{lineHeight:`${b.value}px`}:{};T=$(Ze,{onResize:w},{default:()=>[$("span",{class:`${I}-string`,ref:s,style:q(q({},n),t)},[E])]})}else T=$("span",{class:`${I}-string`,ref:s,style:{opacity:0}},[E]);return f($("span",U(U({},o),{},{ref:u,class:M,style:[P,(A=!!O,x.value?{width:`${x.value}px`,height:`${x.value}px`,lineHeight:`${x.value}px`,fontSize:(A?x.value/2:18)+"px"}:{}),o.style]}),[T]));var A}}}),Ey={adjustX:1,adjustY:1},Ty=[0,0],Ay={left:{points:["cr","cl"],overflow:Ey,offset:[-4,0],targetOffset:Ty},right:{points:["cl","cr"],overflow:Ey,offset:[4,0],targetOffset:Ty},top:{points:["bc","tc"],overflow:Ey,offset:[0,-4],targetOffset:Ty},bottom:{points:["tc","bc"],overflow:Ey,offset:[0,4],targetOffset:Ty},topLeft:{points:["bl","tl"],overflow:Ey,offset:[0,-4],targetOffset:Ty},leftTop:{points:["tr","tl"],overflow:Ey,offset:[-4,0],targetOffset:Ty},topRight:{points:["br","tr"],overflow:Ey,offset:[0,-4],targetOffset:Ty},rightTop:{points:["tl","tr"],overflow:Ey,offset:[4,0],targetOffset:Ty},bottomRight:{points:["tr","br"],overflow:Ey,offset:[0,4],targetOffset:Ty},rightBottom:{points:["bl","br"],overflow:Ey,offset:[4,0],targetOffset:Ty},bottomLeft:{points:["tl","bl"],overflow:Ey,offset:[0,4],targetOffset:Ty},leftBottom:{points:["br","bl"],overflow:Ey,offset:[-4,0],targetOffset:Ty}},By={prefixCls:String,id:String,overlayInnerStyle:Ii.any},Dy=r({compatConfig:{MODE:3},name:"TooltipContent",props:By,setup(e,t){let{slots:n}=t;return()=>{var t;return $("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}});function zy(){}const Ry=r({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:Ii.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:Ii.string.def("right"),transitionName:String,animation:Ii.any,afterVisibleChange:Ii.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Ii.string.def("rc-tooltip"),mouseEnterDelay:Ii.number.def(.1),mouseLeaveDelay:Ii.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Ii.object.def((()=>({}))),arrowContent:Ii.any.def(null),tipId:String,builtinPlacements:Ii.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=g(),i=()=>{const{prefixCls:t,tipId:o,overlayInnerStyle:r}=e;return[$("div",{class:`${t}-arrow`,key:"arrow"},[Qe(n,e,"arrowContent")]),$(Dy,{key:"content",prefixCls:t,id:o,overlayInnerStyle:r},{overlay:n.overlay})]};r({getPopupDomNode:()=>l.value.getPopupDomNode(),triggerDOM:l,forcePopupAlign:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.forcePopupAlign()}});const a=g(!1),s=g(!1);return m((()=>{const{destroyTooltipOnHide:t}=e;if("boolean"==typeof t)a.value=t;else if(t&&"object"==typeof t){const{keepParent:e}=t;a.value=!0===e,s.value=!1===e}})),()=>{const{overlayClassName:t,trigger:r,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d,prefixCls:p,afterVisibleChange:v,transitionName:f,animation:h,placement:g,align:m,destroyTooltipOnHide:b,defaultVisible:y}=e,x=q({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:ct(),overlayInnerStyle:ct(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:ct(),builtinPlacements:ct(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),Ny={adjustX:1,adjustY:1},Hy={adjustX:0,adjustY:0},Fy=[0,0];function Ly(e){return"boolean"==typeof e?e?Ny:Hy:q(q({},Hy),e)}function _y(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:l}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(i).forEach((e=>{i[e]=l?q(q({},i[e]),{overflow:Ly(r),targetOffset:Fy}):q(q({},Ay[e]),{overflow:Ly(r)}),i[e].ignoreShake=!0})),i}function Wy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`)),Vy=["success","processing","error","default","warning"];function Xy(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[...Ky,...Go].includes(e):Go.includes(e)}function Gy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}const Yy=8;function Uy(e){const t=Yy,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:l}=e,i=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-i;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:l?t-i:a}}function qy(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:l,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:v}=Uy({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:i,limitVerticalRadius:d}),f=o/2+r;return{[n]:{[`${n}-arrow`]:[q(q({position:"absolute",zIndex:1,display:"block"},Xr(o,l,i,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[Gy(["&-placement-topLeft","&-placement-top","&-placement-topRight"],c)]:{paddingBottom:f},[Gy(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],c)]:{paddingTop:f},[Gy(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],c)]:{paddingRight:{_skip_check_:!0,value:f}},[Gy(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],c)]:{paddingLeft:{_skip_check_:!0,value:f}}}}}const Qy=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:q(q(q(q({},Ur(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:l,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(l,Yy)}},[`${t}-content`]:{position:"relative"}}),Gr(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},qy(rl(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:l,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},Zy=()=>q(q({},jy()),{title:Ii.any}),Jy=at(r({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Re(Zy(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,n){let{slots:o,emit:r,attrs:l,expose:i}=n;const{prefixCls:a,getPopupContainer:s,direction:u,rootPrefixCls:p}=Il("tooltip",t),v=d((()=>{var e;return null!==(e=t.open)&&void 0!==e?e:t.visible})),h=f(Wy([t.open,t.visible])),g=f();let m;c(v,(e=>{rt.cancel(m),m=rt((()=>{h.value=!!e}))}));const b=()=>{var e;const n=null!==(e=t.title)&&void 0!==e?e:o.title;return!n&&0!==n},y=e=>{const t=b();void 0===v.value&&(h.value=!t&&e),t||(r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e))};i({getPopupDomNode:()=>g.value.getPopupDomNode(),open:h,forcePopupAlign:()=>{var e;return null===(e=g.value)||void 0===e?void 0:e.forcePopupAlign()}});const x=d((()=>{const{builtinPlacements:e,arrowPointAtCenter:n,autoAdjustOverflow:o}=t;return e||_y({arrowPointAtCenter:n,autoAdjustOverflow:o})})),S=e=>e||""===e,w=e=>{const t=e.type;if("object"==typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&S(e.props.disabled)||!0===t.__ANT_SWITCH&&(S(e.props.disabled)||S(e.props.loading))||!0===t.__ANT_RADIO&&S(e.props.disabled))){const{picked:t,omitted:n}=((e,t)=>{const n={},o=q({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(Xe(e),["position","left","right","top","bottom","float","display","zIndex"]),o=q(q({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),r=Ja(e,{style:q(q({},n),{pointerEvents:"none"})},!0);return $("span",{style:o,class:`${a.value}-disabled-compatible-wrapper`},[r])}return e},C=()=>{var e,n;return null!==(e=t.title)&&void 0!==e?e:null===(n=o.title)||void 0===n?void 0:n.call(o)},k=(e,t)=>{const n=x.value,o=Object.keys(n).find((e=>{var o,r;return n[e].points[0]===(null===(o=t.points)||void 0===o?void 0:o[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(o){const n=e.getBoundingClientRect(),r={top:"50%",left:"50%"};o.indexOf("top")>=0||o.indexOf("Bottom")>=0?r.top=n.height-t.offset[1]+"px":(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(r.top=-t.offset[1]+"px"),o.indexOf("left")>=0||o.indexOf("Right")>=0?r.left=n.width-t.offset[0]+"px":(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(r.left=-t.offset[0]+"px"),e.style.transformOrigin=`${r.left} ${r.top}`}},O=d((()=>function(e,t){const n=Xy(t),o=pe({[`${e}-${t}`]:t&&n}),r={},l={};return t&&!n&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:l}}(a.value,t.color))),I=d((()=>l["data-popover-inject"])),[M,P]=((e,t)=>tl("Tooltip",(e=>{if(!1===(null==t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:l}=e,i=rl(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:l>4?4:l});return[Qy(i),Um(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e))(a,d((()=>!I.value)));return()=>{var n,r;const{openClassName:i,overlayClassName:c,overlayStyle:d,overlayInnerStyle:f}=t;let m=null!==(r=Ye(null===(n=o.default)||void 0===n?void 0:n.call(o)))&&void 0!==r?r:null;m=1===m.length?m[0]:m;let S=h.value;if(void 0===v.value&&b()&&(S=!1),!m)return null;const I=w(qe(m)&&(1!==(E=m).length||E[0].type!==e)?m:$("span",null,[m]));var E;const T=pe({[i||`${a.value}-open`]:!0,[I.props&&I.props.class]:I.props&&I.props.class}),A=pe(c,{[`${a.value}-rtl`]:"rtl"===u.value},O.value.className,P.value),B=q(q({},O.value.overlayStyle),f),D=O.value.arrowStyle,z=q(q(q({},l),t),{prefixCls:a.value,getPopupContainer:null==s?void 0:s.value,builtinPlacements:x.value,visible:S,ref:g,overlayClassName:A,overlayStyle:q(q({},D),d),overlayInnerStyle:B,onVisibleChange:y,onPopupAlign:k,transitionName:Nu(p.value,"zoom-big-fast",t.transitionName)});return M($(Ry,z,{default:()=>[h.value?Ja(I,{class:T}):I],arrowContent:()=>$("span",{class:`${a.value}-arrow-content`},null),overlay:C}))}}})),e$=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:p}=e;return[{[t]:q(q({},Ur(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:l},[`${t}-inner-content`]:{color:o}})},qy(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},t$=e=>{const{componentCls:t}=e;return{[t]:Go.map((n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},n$=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:i,fontSize:a,lineHeight:s,padding:c}=e,u=i-Math.round(a*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${c}px`}}}},o$=tl("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=rl(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[e$(r),t$(r),o&&n$(r),Um(r,"zoom-big")]}),(e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}})),r$=at(r({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Re(q(q({},jy()),{content:pt(),title:pt()}),q(q({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(t,n){let{expose:o,slots:r,attrs:l}=n;const i=f();bn(void 0===t.visible),o({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=i.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const{prefixCls:a,configProvider:s}=Il("popover",t),[c,u]=o$(a),p=d((()=>s.getPrefixCls())),v=()=>{var n,o;const{title:l=Ye(null===(n=r.title)||void 0===n?void 0:n.call(r)),content:i=Ye(null===(o=r.content)||void 0===o?void 0:o.call(r))}=t,s=!!(Array.isArray(l)?l.length:l),c=!!(Array.isArray(i)?i.length:l);return s||c?$(e,null,[s&&$("div",{class:`${a.value}-title`},[l]),$("div",{class:`${a.value}-inner-content`},[i])]):null};return()=>{const e=pe(t.overlayClassName,u.value);return c($(Jy,U(U(U({},Ml(t,["title","content"])),l),{},{prefixCls:a.value,ref:i,overlayClassName:e,transitionName:Nu(p.value,"zoom-big",t.transitionName),"data-popover-inject":!0}),{title:v,default:r.default}))}}})),l$=r({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("avatar",e),i=d((()=>`${r.value}-group`)),[a,s]=Iy(r);return m((()=>{(e=>{v(My,e)})({size:e.size,shape:e.shape})})),()=>{const{maxPopoverPlacement:t="top",maxCount:r,maxStyle:c,maxPopoverTrigger:u="hover",shape:d}=e,p={[i.value]:!0,[`${i.value}-rtl`]:"rtl"===l.value,[`${o.class}`]:!!o.class,[s.value]:!0},v=Qe(n,e),f=Fe(v).map(((e,t)=>Ja(e,{key:`avatar-key-${t}`}))),h=f.length;if(r&&r[$(Py,{style:c,shape:d},{default:()=>["+"+(h-r)]})]})),a($("div",U(U({},o),{},{class:p,style:o.style}),[e]))}return a($("div",U(U({},o),{},{class:p,style:o.style}),[f]))}}});function i$(e){let t,{prefixCls:n,value:o,current:r,offset:l=0}=e;return l&&(t={position:"absolute",top:`${l}00%`,left:0}),$("p",{style:t,class:pe(`${n}-only-unit`,{current:r})},[o])}function a$(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}Py.Group=l$,Py.install=function(e){return e.component(Py.name,Py),e.component(l$.name,l$),e};const s$=r({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=d((()=>Number(e.value))),n=d((()=>Math.abs(e.count))),o=l({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},i=f();return c(t,(()=>{clearTimeout(i.value),i.value=setTimeout((()=>{r()}),1e3)}),{flush:"post"}),s((()=>{clearTimeout(i.value)})),()=>{let l,i={};const a=t.value;if(o.prevValue===a||Number.isNaN(a)||Number.isNaN(o.prevValue))l=[i$(q(q({},e),{current:!0}))],i={transition:"none"};else{l=[];const t=a+10,r=[];for(let e=a;e<=t;e+=1)r.push(e);const s=r.findIndex((e=>e%10===o.prevValue));l=r.map(((t,n)=>{const o=t%10;return i$(q(q({},e),{value:o,offset:n-s,current:n===s}))}));const c=o.prevCountr()},[l])}}});const c$={prefixCls:String,count:Ii.any,component:String,title:Ii.any,show:Boolean},u$=r({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:c$,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r}=Il("scroll-number",e);return()=>{var t;const l=q(q({},e),n),{prefixCls:i,count:a,title:s,show:c,component:u="sup",class:d,style:p}=l,v=q(q({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$(s$,{prefixCls:r.value,count:Number(a),value:t,key:e.length-n},null)))}p&&p.borderColor&&(v.style=q(q({},p),{boxShadow:`0 0 0 1px ${p.borderColor} inset`}));const h=Ye(null===(t=o.default)||void 0===t?void 0:t.call(o));return h&&h.length?Ja(h,{class:pe(`${r.value}-custom-component`)},!1):$(u,v,{default:()=>[f]})}}}),d$=new Fo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),p$=new Fo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),v$=new Fo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),f$=new Fo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),h$=new Fo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),g$=new Fo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),m$=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:l,badgeHeightSm:i,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,p=`${o}-ribbon`,v=`${o}-ribbon-wrapper`,f=Gr(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o}}}})),h=Gr(e,((e,t)=>{let{darkColor:n}=t;return{[`&${p}-color-${e}`]:{background:n,color:n}}}));return{[t]:q(q(q(q({},Ur(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:g$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:l,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:d$,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),f),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:p$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:v$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:f$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:h$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${v}`]:{position:"relative"},[`${p}`]:q(q(q(q({},Ur(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${p}-text`]:{color:e.colorTextLightSolid},[`${p}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:u/2+"px solid",transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${p}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${p}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${p}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${p}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},b$=tl("Badge",(e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:l,colorBorderBg:i}=e,a=Math.round(t*n),s=rl(e,{badgeFontHeight:a,badgeShadowSize:r,badgeZIndex:"auto",badgeHeight:a-2*r,badgeTextColor:e.colorBgContainer,badgeFontWeight:"normal",badgeFontSize:o,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:i,badgeHeightSm:t,badgeDotSize:o/2,badgeFontSizeSm:o,badgeStatusSize:o/2,badgeProcessingDuration:"1.2s",badgeRibbonOffset:l,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[m$(s)]}));const y$=r({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:{prefix:String,color:{type:String},text:Ii.any,placement:{type:String,default:"end"}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Il("ribbon",e),[i,a]=b$(r),s=d((()=>Xy(e.color,!1))),c=d((()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:"rtl"===l.value,[`${r.value}-color-${e.color}`]:s.value}]));return()=>{var t,l;const{class:u,style:d}=n,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r!isNaN(parseFloat(e))&&isFinite(e),x$=r({compatConfig:{MODE:3},name:"ABadge",Ribbon:y$,inheritAttrs:!1,props:{count:Ii.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:Ii.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("badge",e),[i,a]=b$(r),s=d((()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count)),u=d((()=>"0"===s.value||0===s.value)),p=d((()=>null===e.count||u.value&&!e.showZero)),v=d((()=>(null!==e.status&&void 0!==e.status||null!==e.color&&void 0!==e.color)&&p.value)),h=d((()=>e.dot&&!u.value)),g=d((()=>h.value?"":s.value)),m=d((()=>(null===g.value||void 0===g.value||""===g.value||u.value&&!e.showZero)&&!h.value)),b=f(e.count),y=f(g.value),x=f(h.value);c([()=>e.count,g,h],(()=>{m.value||(b.value=e.count,y.value=g.value,x.value=h.value)}),{immediate:!0});const S=d((()=>Xy(e.color,!1))),C=d((()=>({[`${r.value}-status-dot`]:v.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}))),O=d((()=>e.color&&!S.value?{background:e.color,color:e.color}:{})),I=d((()=>({[`${r.value}-dot`]:x.value,[`${r.value}-count`]:!x.value,[`${r.value}-count-sm`]:"small"===e.size,[`${r.value}-multiple-words`]:!x.value&&y.value&&y.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})));return()=>{var t,s;const{offset:c,title:u,color:d}=e,p=o.style,f=Qe(n,e,"text"),h=r.value,g=b.value;let x=Fe(null===(t=n.default)||void 0===t?void 0:t.call(n));x=x.length?x:null;const M=!(m.value&&!n.count),E=(()=>{if(!c)return q({},p);const e={marginTop:$$(c[1])?`${c[1]}px`:c[1]};return"rtl"===l.value?e.left=`${parseInt(c[0],10)}px`:e.right=-parseInt(c[0],10)+"px",q(q({},e),p)})(),T=null!=u?u:"string"==typeof g||"number"==typeof g?g:void 0,A=M||!f?null:$("span",{class:`${h}-status-text`},[f]),B="object"==typeof g||void 0===g&&n.count?Ja(null!=g?g:null===(s=n.count)||void 0===s?void 0:s.call(n),{style:E},!1):null,D=pe(h,{[`${h}-status`]:v.value,[`${h}-not-a-wrapper`]:!x,[`${h}-rtl`]:"rtl"===l.value},o.class,a.value);if(!x&&v.value){const e=E.color;return i($("span",U(U({},o),{},{class:D,style:E}),[$("span",{class:C.value,style:O.value},null),$("span",{style:{color:e},class:`${h}-status-text`},[f])]))}const z=Ru(x?`${h}-zoom`:"",{appear:!1});let R=q(q({},E),e.numberStyle);return d&&!S.value&&(R=R||{},R.background=d),i($("span",U(U({},o),{},{class:D}),[x,$(k,z,{default:()=>[w($(u$,{prefixCls:e.scrollNumberPrefixCls,show:M,class:I.value,count:y.value,title:T,style:R,key:"scrollNumber"},{default:()=>[B]}),[[P,M]])]}),A]))}}});x$.install=function(e){return e.component(x$.name,x$),e.component(y$.name,y$),e};const S$={adjustX:1,adjustY:1},w$=[0,0],C$={topLeft:{points:["bl","tl"],overflow:S$,offset:[0,-4],targetOffset:w$},topCenter:{points:["bc","tc"],overflow:S$,offset:[0,-4],targetOffset:w$},topRight:{points:["br","tr"],overflow:S$,offset:[0,-4],targetOffset:w$},bottomLeft:{points:["tl","bl"],overflow:S$,offset:[0,4],targetOffset:w$},bottomCenter:{points:["tc","bc"],overflow:S$,offset:[0,4],targetOffset:w$},bottomRight:{points:["tr","br"],overflow:S$,offset:[0,4],targetOffset:w$}};const k$=r({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:Ii.string.def("rc-dropdown"),transitionName:String,overlayClassName:Ii.string.def(""),openClassName:String,animation:Ii.any,align:Ii.object,overlayStyle:{type:Object,default:void 0},placement:Ii.string.def("bottomLeft"),overlay:Ii.any,trigger:Ii.oneOfType([Ii.string,Ii.arrayOf(Ii.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:Ii.array,hideAction:Ii.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:Ii.number.def(.15),mouseLeaveDelay:Ii.number.def(.1)},emits:["visibleChange","overlayClick"],setup(t,n){let{slots:o,emit:r,expose:l}=n;const i=f(!!t.visible);c((()=>t.visible),(e=>{void 0!==e&&(i.value=e)}));const a=f();l({triggerRef:a});const s=e=>{void 0===t.visible&&(i.value=!1),r("overlayClick",e)},u=e=>{void 0===t.visible&&(i.value=e),r("visibleChange",e)},p=()=>{var n;const r=null===(n=o.overlay)||void 0===n?void 0:n.call(o),l={prefixCls:`${t.prefixCls}-menu`,onClick:s};return $(e,{key:He},[t.arrow&&$("div",{class:`${t.prefixCls}-arrow`},null),Ja(r,l,!1)])},v=d((()=>{const{minOverlayWidthMatchTrigger:e=!t.alignPoint}=t;return e})),h=()=>{var e;const n=null===(e=o.default)||void 0===e?void 0:e.call(o);return i.value&&n?Ja(n[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):n},g=d((()=>t.hideAction||-1===t.trigger.indexOf("contextmenu")?t.hideAction:["click"]));return()=>{const{prefixCls:e,arrow:n,showAction:o,overlayStyle:r,trigger:l,placement:s,align:c,getPopupContainer:d,transitionName:f,animation:m,overlayClassName:b}=t,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},I$=tl("Wave",(e=>[O$(e)]));function M$(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function P$(e){return Number.isNaN(e)?0:e}const E$=r({props:{target:ct(),className:String},setup(e){const t=g(null),[n,o]=wp(null),[r,l]=wp([]),[a,s]=wp(0),[c,u]=wp(0),[d,p]=wp(0),[v,f]=wp(0),[h,m]=wp(!1);function y(){const{target:t}=e,n=getComputedStyle(t);o(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return M$(t)?t:M$(n)?n:M$(o)?o:null}(t));const r="static"===n.position,{borderLeftWidth:i,borderTopWidth:a}=n;s(r?t.offsetLeft:P$(-parseFloat(i))),u(r?t.offsetTop:P$(-parseFloat(a))),p(t.offsetWidth),f(t.offsetHeight);const{borderTopLeftRadius:c,borderTopRightRadius:d,borderBottomLeftRadius:v,borderBottomRightRadius:h}=n;l([c,d,h,v].map((e=>P$(parseFloat(e)))))}let x,S,w;const C=()=>{clearTimeout(w),rt.cancel(S),null==x||x.disconnect()},O=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&(I(null,n),n.parentElement&&n.parentElement.removeChild(n))};i((()=>{C(),w=setTimeout((()=>{O()}),5e3);const{target:t}=e;t&&(S=rt((()=>{y(),m(!0)})),"undefined"!=typeof ResizeObserver&&(x=new ResizeObserver(y),x.observe(t)))})),b((()=>{C()}));const M=e=>{"opacity"===e.propertyName&&O()};return()=>{if(!h.value)return null;const o={left:`${a.value}px`,top:`${c.value}px`,width:`${d.value}px`,height:`${v.value}px`,borderRadius:r.value.map((e=>`${e}px`)).join(" ")};return n&&(o["--wave-color"]=n.value),$(k,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[$("div",{ref:t,class:e.className,style:o,onTransitionend:M},null)]})}}});function T$(e,t,n){return function(){var o;const r=_e(e);!(null===(o=null==n?void 0:n.value)||void 0===o?void 0:o.disabled)&&r&&function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),I($(E$,{target:e,className:t},null),n)}(r,t.value)}}const A$=r({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=u(),{prefixCls:r,wave:l}=Il("wave",e),[,a]=I$(r),s=T$(o,d((()=>pe(r.value,a.value))),l);let p;const v=()=>{_e(o).removeEventListener("click",p,!0)};return i((()=>{c((()=>e.disabled),(()=>{v(),S((()=>{const t=_e(o);null==t||t.removeEventListener("click",p,!0),t&&1===t.nodeType&&!e.disabled&&(p=e=>{"INPUT"===e.target.tagName||!ns(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||s()},t.addEventListener("click",p,!0))}))}),{immediate:!0,flush:"post"})})),b((()=>{v()})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});function B$(e){return"danger"===e?{danger:!0}:{type:e}}const D$=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Ii.any,href:String,target:String,title:String,onClick:st(),onMousedown:st()}),z$=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},R$=e=>{S((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},j$=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},N$=r({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:e=>()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return $("span",{class:`${n}-loading-icon`},[$(Cv,null,null)]);const r=!!o;return $(k,{name:`${n}-loading-icon-motion`,onBeforeEnter:z$,onEnter:R$,onAfterEnter:j$,onBeforeLeave:R$,onLeave:e=>{setTimeout((()=>{z$(e)}))},onAfterLeave:j$},{default:()=>[r?$("span",{class:`${n}-loading-icon`},[$(Cv,null,null)]):null]})}}),H$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),F$=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},H$(`${t}-primary`,r),H$(`${t}-danger`,l)]}};function L$(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:q(q({},L$(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const W$=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":q({},el(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},K$=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),V$=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),X$=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),G$=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Y$=(e,t,n,o,r,l,i)=>({[`&${e}-background-ghost`]:q(q({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},K$(q({backgroundColor:"transparent"},l),q({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),U$=e=>({"&:disabled":q({},G$(e))}),q$=e=>q({},U$(e)),Q$=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Z$=e=>q(q(q(q(q({},q$(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),K$({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Y$(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:q(q(q({color:e.colorError,borderColor:e.colorError},K$({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Y$(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),U$(e))}),J$=e=>q(q(q(q(q({},q$(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),K$({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Y$(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:q(q(q({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},K$({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Y$(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),U$(e))}),ex=e=>q(q({},Z$(e)),{borderStyle:"dashed"}),tx=e=>q(q(q({color:e.colorLink},K$({color:e.colorLinkHover},{color:e.colorLinkActive})),Q$(e)),{[`&${e.componentCls}-dangerous`]:q(q({color:e.colorError},K$({color:e.colorErrorHover},{color:e.colorErrorActive})),Q$(e))}),nx=e=>q(q(q({},K$({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Q$(e)),{[`&${e.componentCls}-dangerous`]:q(q({color:e.colorError},Q$(e)),K$({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),ox=e=>q(q({},G$(e)),{[`&${e.componentCls}:hover`]:q({},G$(e))}),rx=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Z$(e),[`${t}-primary`]:J$(e),[`${t}-dashed`]:ex(e),[`${t}-link`]:tx(e),[`${t}-text`]:nx(e),[`${t}-disabled`]:ox(e)}},lx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:l,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:l,height:r,padding:`${Math.max(0,(r-l*i)/2-a)}px ${c-a}px`,borderRadius:s,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${u}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:V$(e)},{[`${n}${n}-round${t}`]:X$(e)}]},ix=e=>lx(e),ax=e=>{const t=rl(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return lx(t,`${e.componentCls}-sm`)},sx=e=>{const t=rl(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return lx(t,`${e.componentCls}-lg`)},cx=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ux=tl("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=rl(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[W$(o),ax(o),ix(o),sx(o),cx(o),rx(o),F$(o),ab(e,{focus:!1}),_$(e)]})),dx=Xv(),px=r({compatConfig:{MODE:3},name:"AButtonGroup",props:{prefixCls:String,size:{type:String}},setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Il("btn-group",e),[,,i]=dl();dx.useProvide(l({size:d((()=>e.size))}));const a=d((()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:Mi(!t,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${n}`]:n,[`${o.value}-rtl`]:"rtl"===r.value,[i.value]:!0}}));return()=>{var e;return $("div",{class:a.value},[Fe(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}}),vx=/^[\u4e00-\u9fa5]{2}$/,fx=vx.test.bind(vx);function hx(e){return"text"===e||"link"===e}const gx=r({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Re(D$(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:l,expose:s}=t;const{prefixCls:u,autoInsertSpaceInButton:p,direction:v,size:f}=Il("btn",e),[h,y]=ux(u),x=dx.useInject(),S=At(),w=d((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:S.value})),C=g(null),k=g(void 0);let O=!1;const I=g(!1),M=g(!1),P=d((()=>!1!==p.value)),{compactSize:E,compactItemClassnames:T}=sm(u,v),A=d((()=>"object"==typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));c(A,(e=>{clearTimeout(k.value),"number"==typeof A.value?k.value=setTimeout((()=>{I.value=e}),A.value):I.value=e}),{immediate:!0});const B=d((()=>{const{type:t,shape:n="default",ghost:o,block:r,danger:l}=e,i=u.value,a=E.value||(null==x?void 0:x.size)||f.value,s=a&&{large:"lg",small:"sm",middle:void 0}[a]||"";return[T.value,{[y.value]:!0,[`${i}`]:!0,[`${i}-${n}`]:"default"!==n&&n,[`${i}-${t}`]:t,[`${i}-${s}`]:s,[`${i}-loading`]:I.value,[`${i}-background-ghost`]:o&&!hx(t),[`${i}-two-chinese-chars`]:M.value&&P.value,[`${i}-block`]:r,[`${i}-dangerous`]:!!l,[`${i}-rtl`]:"rtl"===v.value}]})),D=()=>{const e=C.value;if(!e||!1===p.value)return;const t=e.textContent;O&&fx(t)?M.value||(M.value=!0):M.value&&(M.value=!1)},z=e=>{I.value||w.value?e.preventDefault():l("click",e)},R=e=>{l("mousedown",e)};m((()=>{Mi(!(e.ghost&&hx(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),i(D),a(D),b((()=>{k.value&&clearTimeout(k.value)}));return s({focus:()=>{var e;null===(e=C.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=C.value)||void 0===e||e.blur()}}),()=>{var t,l;const{icon:i=(null===(t=n.icon)||void 0===t?void 0:t.call(n))}=e,a=Fe(null===(l=n.default)||void 0===l?void 0:l.call(n));O=1===a.length&&!i&&!hx(e.type);const{type:s,htmlType:c,href:d,title:p,target:v}=e,f=I.value?"loading":i,g=q(q({},r),{title:p,disabled:w.value,class:[B.value,r.class,{[`${u.value}-icon-only`]:0===a.length&&!!f}],onClick:z,onMousedown:R});w.value||delete g.disabled;const m=i&&!I.value?i:$(N$,{existIcon:!!i,prefixCls:u.value,loading:!!I.value},null),b=a.map((e=>((e,t)=>{const n=t?" ":"";if(e.type===o){let t=e.children.trim();return fx(t)&&(t=t.split("").join(n)),$("span",null,[t])}return e})(e,O&&P.value)));if(void 0!==d)return h($("a",U(U({},g),{},{href:d,target:v,ref:C}),[m,b]));let y=$("button",U(U({},g),{},{ref:C,type:c}),[m,b]);if(!hx(s)){const e=function(){return y}();y=$(A$,{ref:"wave",disabled:!!I.value},{default:()=>[e]})}return h(y)}}});gx.Group=px,gx.install=function(e){return e.component(gx.name,gx),e.component(px.name,px),e};const mx=()=>({arrow:ht([Boolean,Object]),trigger:{type:[Array,String]},menu:ct(),overlay:Ii.any,visible:ut(),open:ut(),disabled:ut(),danger:ut(),autofocus:ut(),align:ct(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:ct(),forceRender:ut(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:ut(),destroyPopupOnHide:ut(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),bx=D$();const yx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function $x(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},kx=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},Ox=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:l,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:v,fontSizeIcon:f,controlPaddingHorizontal:h,colorBgElevated:g,boxShadowPopoverArrow:m}=e;return[{[t]:q(q({},Ur(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:i/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`\n &-show-arrow${t}-placement-topLeft,\n &-show-arrow${t}-placement-top,\n &-show-arrow${t}-placement-topRight\n `]:{paddingBottom:r},[`\n &-show-arrow${t}-placement-bottomLeft,\n &-show-arrow${t}-placement-bottom,\n &-show-arrow${t}-placement-bottomRight\n `]:{paddingTop:r},[`${t}-arrow`]:q({position:"absolute",zIndex:1,display:"block"},Xr(i,e.borderRadiusXS,e.borderRadiusOuter,g,m)),[`\n &-placement-top > ${t}-arrow,\n &-placement-topLeft > ${t}-arrow,\n &-placement-topRight > ${t}-arrow\n `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`\n &-placement-bottom > ${t}-arrow,\n &-placement-bottomLeft > ${t}-arrow,\n &-placement-bottomRight > ${t}-arrow\n `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Om},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Mm},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Im},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Pm}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:q(q({padding:p,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},el(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:q(q({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},el(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[zm(e,"slide-up"),zm(e,"slide-down"),km(e,"move-up"),km(e,"move-down"),Um(e,"zoom-big")]]},Ix=tl("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:l,fontSize:i,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,p=(l-i*a)/2,{dropdownArrowOffset:v}=Uy({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),f=rl(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:v,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[Ox(f),Cx(f),kx(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));const Mx=gx.Group,Px=r({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Re(q(q({},mx()),{type:bx.type,size:String,htmlType:bx.htmlType,href:String,disabled:ut(),prefixCls:String,icon:Ii.any,title:String,loading:bx.loading,onClick:st()}),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const l=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)},{prefixCls:i,direction:a,getPopupContainer:s}=Il("dropdown",e),c=d((()=>`${i.value}-button`)),[u,p]=Ix(i);return()=>{var t,r;const i=q(q({},e),o),{type:d="default",disabled:v,danger:f,loading:h,htmlType:g,class:m="",overlay:b=(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),trigger:y,align:x,open:S,visible:w,onVisibleChange:C,placement:k=("rtl"===a.value?"bottomLeft":"bottomRight"),href:O,title:I,icon:M=(null===(r=n.icon)||void 0===r?void 0:r.call(n))||$(wx,null,null),mouseEnterDelay:P,mouseLeaveDelay:E,overlayClassName:T,overlayStyle:A,destroyPopupOnHide:B,onClick:D,"onUpdate:open":z}=i,R=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[n.leftButton?n.leftButton({button:N}):N,$(Hx,j,{default:()=>[n.rightButton?n.rightButton({button:H}):H],overlay:()=>b})]}))}}});const Ex={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function Tx(e){for(var t=1;tp(zx,void 0),jx=e=>{var t,n,o;const{prefixCls:r,mode:l,selectable:i,validator:a,onClick:s,expandIcon:c}=Rx()||{};v(zx,{prefixCls:d((()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null==r?void 0:r.value})),mode:d((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null==l?void 0:l.value})),selectable:d((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null==i?void 0:i.value})),validator:null!==(t=e.validator)&&void 0!==t?t:a,onClick:null!==(n=e.onClick)&&void 0!==n?n:s,expandIcon:null!==(o=e.expandIcon)&&void 0!==o?o:null==c?void 0:c.value})},Nx=r({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Re(mx(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,rootPrefixCls:i,direction:a,getPopupContainer:s}=Il("dropdown",e),[c,u]=Ix(l),p=d((()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`}));jx({prefixCls:d((()=>`${l.value}-menu`)),expandIcon:d((()=>$("span",{class:`${l.value}-menu-submenu-arrow`},[$(Dx,{class:`${l.value}-menu-submenu-arrow-icon`},null)]))),mode:d((()=>"vertical")),selectable:d((()=>!1)),onClick:()=>{},validator:e=>{bn()}});const v=()=>{var t,o,r;const i=e.overlay||(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),a=Array.isArray(i)?i[0]:i;if(!a)return null;const s=a.props||{};Mi(!s.mode||"vertical"===s.mode,"Dropdown",`mode="${s.mode}" is not supported for Dropdown's Menu.`);const{selectable:c=!1,expandIcon:u=(null===(r=null===(o=a.children)||void 0===o?void 0:o.expandIcon)||void 0===r?void 0:r.call(o))}=s,d=void 0!==u&&qe(u)?u:$("span",{class:`${l.value}-menu-submenu-arrow`},[$(Dx,{class:`${l.value}-menu-submenu-arrow-icon`},null)]);return qe(a)?Ja(a,{mode:"vertical",selectable:c,expandIcon:()=>d}):a},f=d((()=>{const t=e.placement;if(!t)return"rtl"===a.value?"bottomRight":"bottomLeft";if(t.includes("Center")){const e=t.slice(0,t.indexOf("Center"));return Mi(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t})),h=d((()=>"boolean"==typeof e.visible?e.visible:e.open)),g=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)};return()=>{var t,r;const{arrow:i,trigger:d,disabled:m,overlayClassName:b}=e,y=null===(t=n.default)||void 0===t?void 0:t.call(n)[0],x=Ja(y,q({class:pe(null===(r=null==y?void 0:y.props)||void 0===r?void 0:r.class,{[`${l.value}-rtl`]:"rtl"===a.value},`${l.value}-trigger`)},m?{disabled:m}:{})),S=pe(b,u.value,{[`${l.value}-rtl`]:"rtl"===a.value}),w=m?[]:d;let C;w&&w.includes("contextmenu")&&(C=!0);const k=_y({arrowPointAtCenter:"object"==typeof i&&i.pointAtCenter,autoAdjustOverflow:!0}),O=Ml(q(q(q({},e),o),{visible:h.value,builtinPlacements:k,overlayClassName:S,arrow:!!i,alignPoint:C,prefixCls:l.value,getPopupContainer:null==s?void 0:s.value,transitionName:p.value,trigger:w,onVisibleChange:g,placement:f.value}),["overlay","onUpdate:visible"]);return c($(k$,O,{default:()=>[x],overlay:v}))}}});Nx.Button=Px;const Hx=Nx;const Fx=r({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:{prefixCls:String,href:String,separator:Ii.any,dropdownProps:ct(),overlay:Ii.any,onClick:st()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l}=Il("breadcrumb",e),i=e=>{r("click",e)};return()=>{var t;const r=null!==(t=Qe(n,e,"separator"))&&void 0!==t?t:"/",a=Qe(n,e),{class:s,style:c}=o,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const r=Qe(n,e,"overlay");return r?$(Hx,U(U({},e.dropdownProps),{},{overlay:r,placement:"bottom"}),{default:()=>[$("span",{class:`${o}-overlay-link`},[t,$(yv,null,null)])]}):t})(d,l.value),null!=a?$("li",{class:s,style:c},[d,r&&$("span",{class:`${l.value}-separator`},[r])]):null}}});function Lx(e,t){return function(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{v(_x,e)},Kx=()=>p(_x),Vx=Symbol("ForceRenderKey"),Xx=()=>p(Vx,!1),Gx=Symbol("menuFirstLevelContextKey"),Yx=e=>{v(Gx,e)},Ux=r({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=q({},Kx());return void 0!==e.mode&&(o.mode=M(e,"mode")),void 0!==e.overflowDisabled&&(o.overflowDisabled=M(e,"overflowDisabled")),Wx(o),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),qx=Wx,Qx=Symbol("siderCollapsed"),Zx=Symbol("siderHookProvider"),Jx="$$__vc-menu-more__key",eS=Symbol("KeyPathContext"),tS=()=>p(eS,{parentEventKeys:d((()=>[])),parentKeys:d((()=>[])),parentInfo:{}}),nS=Symbol("measure"),oS=r({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return v(nS,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),rS=()=>p(nS,!1),lS=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=tS(),l=d((()=>[...o.value,e])),i=d((()=>[...r.value,t]));return v(eS,{parentEventKeys:l,parentKeys:i,parentInfo:n}),i};function iS(e){const{mode:t,rtl:n,inlineIndent:o}=Kx();return d((()=>"inline"!==t.value?null:n.value?{paddingRight:e.value*o.value+"px"}:{paddingLeft:e.value*o.value+"px"}))}let aS=0;const sS=r({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Ii.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:ct()},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=u(),i=rS(),a="symbol"==typeof l.vnode.key?String(l.vnode.key):l.vnode.key;Mi("symbol"!=typeof l.vnode.key,"MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++aS}_$$_${a}`,{parentEventKeys:v,parentKeys:f}=tS(),{prefixCls:h,activeKeys:m,disabled:y,changeActiveKeys:x,rtl:S,inlineCollapsed:w,siderCollapsed:C,onItemClick:k,selectedKeys:O,registerMenuInfo:I,unRegisterMenuInfo:M}=Kx(),P=p(Gx,!0),E=g(!1),T=d((()=>[...f.value,a]));I(s,{eventKey:s,key:a,parentEventKeys:v,parentKeys:f,isLeaf:!0}),b((()=>{M(s)})),c(m,(()=>{E.value=!!m.value.find((e=>e===a))}),{immediate:!0});const A=d((()=>y.value||e.disabled)),B=d((()=>O.value.includes(a))),D=d((()=>{const t=`${h.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:E.value,[`${t}-selected`]:B.value,[`${t}-disabled`]:A.value}})),z=t=>({key:a,eventKey:s,keyPath:T.value,eventKeyPath:[...v.value,s],domEvent:t,item:q(q({},e),r)}),R=e=>{if(A.value)return;const t=z(e);o("click",e),k(t)},j=e=>{A.value||(x(T.value),o("mouseenter",e))},N=e=>{A.value||(x([]),o("mouseleave",e))},H=e=>{if(o("keydown",e),e.which===sd.ENTER){const t=z(e);o("click",e),k(t)}},F=e=>{x(T.value),o("focus",e)},L=(e,t)=>{const n=$("span",{class:`${h.value}-title-content`},[t]);return(!e||qe(t)&&"span"===t.type)&&t&&w.value&&P&&"string"==typeof t?$("div",{class:`${h.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},_=iS(d((()=>T.value.length)));return()=>{var t,o,l,s,c;if(i)return null;const u=null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n),d=Fe(null===(l=n.default)||void 0===l?void 0:l.call(n)),p=d.length;let v=u;void 0===u?v=P&&p?d:"":!1===u&&(v="");const f={title:v};C.value||w.value||(f.title=null,f.open=!1);const g={};"option"===e.role&&(g["aria-selected"]=B.value);const m=null!==(s=e.icon)&&void 0!==s?s:null===(c=n.icon)||void 0===c?void 0:c.call(n,e);return $(Jy,U(U({},f),{},{placement:S.value?"left":"right",overlayClassName:`${h.value}-inline-collapsed-tooltip`}),{default:()=>[$(Ed.Item,U(U(U({component:"li"},r),{},{id:e.id,style:q(q({},r.style||{}),_.value),class:[D.value,{[`${r.class}`]:!!r.class,[`${h.value}-item-only-child`]:1===(m?p+1:p)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},g),{},{onMouseenter:j,onMouseleave:N,onClick:R,onKeydown:H,onFocus:F,title:"string"==typeof u?u:void 0}),{default:()=>[Ja("function"==typeof m?m(e.originItemValue):m,{class:`${h.value}-item-icon`},!1),L(m,d)]})]})}}}),cS={adjustX:1,adjustY:1},uS={topLeft:{points:["bl","tl"],overflow:cS,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cS,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:cS,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:cS,offset:[4,0]}},dS={topLeft:{points:["bl","tl"],overflow:cS,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cS,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:cS,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:cS,offset:[4,0]}},pS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},vS=r({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=g(!1),{getPopupContainer:l,rtl:i,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:u,triggerSubMenuAction:p,forceSubMenuRender:v,motion:f,defaultMotions:h,rootClassName:m}=Kx(),y=Xx(),x=d((()=>i.value?q(q({},dS),u.value):q(q({},uS),u.value))),S=d((()=>pS[e.mode])),w=g();c((()=>e.visible),(e=>{rt.cancel(w.value),w.value=rt((()=>{r.value=e}))}),{immediate:!0}),b((()=>{rt.cancel(w.value)}));const C=e=>{o("visibleChange",e)},k=d((()=>{var t,n;const o=f.value||(null===(t=h.value)||void 0===t?void 0:t[e.mode])||(null===(n=h.value)||void 0===n?void 0:n.other),r="function"==typeof o?o():o;return r?Ru(r.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:o,mode:c,popupOffset:u,disabled:d}=e;return $(rd,{prefixCls:t,popupClassName:pe(`${t}-popup`,{[`${t}-rtl`]:i.value},o,m.value),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:l.value,builtinPlacements:x.value,popupPlacement:S.value,popupVisible:r.value,popupAlign:u&&{offset:u},action:d?[]:[p.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:C,forceRender:y||v.value,popupAnimation:k.value},{popup:n.popup,default:n.default})}}}),fS=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:l,mode:i}=Kx();return $("ul",U(U({},o),{},{class:pe(l.value,`${l.value}-sub`,`${l.value}-${"inline"===i.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(r=n.default)||void 0===r?void 0:r.call(n)])};fS.displayName="SubMenuList";const hS=fS,gS=r({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=d((()=>"inline")),{motion:r,mode:l,defaultMotions:i}=Kx(),a=d((()=>l.value===o.value)),s=f(!a.value),u=d((()=>!!a.value&&e.open));c(l,(()=>{a.value&&(s.value=!1)}),{flush:"post"});const p=d((()=>{var t,n;const l=r.value||(null===(t=i.value)||void 0===t?void 0:t[o.value])||(null===(n=i.value)||void 0===n?void 0:n.other);return q(q({},"function"==typeof l?l():l),{appear:e.keyPath.length<=1})}));return()=>{var t;return s.value?null:$(Ux,{mode:o.value},{default:()=>[$(k,p.value,{default:()=>[w($(hS,{id:e.id},{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}),[[P,u.value]])]})]})}}});let mS=0;const bS=r({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:{icon:Ii.any,title:Ii.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:ct()},slots:Object,setup(t,n){let{slots:o,attrs:r,emit:l}=n;var i,a;Yx(!1);const s=rS(),p=u(),f="symbol"==typeof p.vnode.key?String(p.vnode.key):p.vnode.key;Mi("symbol"!=typeof p.vnode.key,"SubMenu",`SubMenu \`:key="${String(f)}"\` not support Symbol type`);const h=ze(f)?f:`sub_menu_${++mS}_$$_not_set_key`,m=null!==(i=t.eventKey)&&void 0!==i?i:ze(f)?`sub_menu_${++mS}_$$_${f}`:h,{parentEventKeys:y,parentInfo:x,parentKeys:S}=tS(),w=d((()=>[...S.value,h])),C=g([]),k={eventKey:m,key:h,parentEventKeys:y,childrenEventKeys:C,parentKeys:S};null===(a=x.childrenEventKeys)||void 0===a||a.value.push(m),b((()=>{var e;x.childrenEventKeys&&(x.childrenEventKeys.value=null===(e=x.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=m)))})),lS(m,h,k);const{prefixCls:O,activeKeys:I,disabled:M,changeActiveKeys:P,mode:E,inlineCollapsed:T,openKeys:A,overflowDisabled:B,onOpenChange:D,registerMenuInfo:z,unRegisterMenuInfo:R,selectedSubMenuKeys:j,expandIcon:N,theme:H}=Kx(),F=null!=f,L=!s&&(Xx()||!F);(e=>{v(Vx,e)})(L),(s&&F||!s&&!F||L)&&(z(m,k),b((()=>{R(m)})));const _=d((()=>`${O.value}-submenu`)),W=d((()=>M.value||t.disabled)),K=g(),V=g(),X=d((()=>A.value.includes(h))),G=d((()=>!B.value&&X.value)),Y=d((()=>j.value.includes(h))),Q=g(!1);c(I,(()=>{Q.value=!!I.value.find((e=>e===h))}),{immediate:!0});const Z=e=>{W.value||(l("titleClick",e,h),"inline"===E.value&&D(h,!X.value))},J=e=>{W.value||(P(w.value),l("mouseenter",e))},ee=e=>{W.value||(P([]),l("mouseleave",e))},te=iS(d((()=>w.value.length))),ne=e=>{"inline"!==E.value&&D(h,e)},oe=()=>{P(w.value)},re=m&&`${m}-popup`,le=d((()=>pe(O.value,`${O.value}-${t.theme||H.value}`,t.popupClassName))),ie=d((()=>"inline"!==E.value&&w.value.length>1?"vertical":E.value)),ae=d((()=>"horizontal"===E.value?"vertical":E.value)),se=d((()=>"horizontal"===ie.value?"vertical":ie.value)),ce=()=>{var n,r;const l=_.value,i=null!==(n=t.icon)&&void 0!==n?n:null===(r=o.icon)||void 0===r?void 0:r.call(o,t),a=t.expandIcon||o.expandIcon||N.value,s=((n,o)=>{if(!o)return T.value&&!S.value.length&&n&&"string"==typeof n?$("div",{class:`${O.value}-inline-collapsed-noicon`},[n.charAt(0)]):$("span",{class:`${O.value}-title-content`},[n]);const r=qe(n)&&"span"===n.type;return $(e,null,[Ja("function"==typeof o?o(t.originItemValue):o,{class:`${O.value}-item-icon`},!1),r?n:$("span",{class:`${O.value}-title-content`},[n])])})(Qe(o,t,"title"),i);return $("div",{style:te.value,class:`${l}-title`,tabindex:W.value?null:-1,ref:K,title:"string"==typeof s?s:null,"data-menu-id":h,"aria-expanded":G.value,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":W.value,onClick:Z,onFocus:oe},[s,"horizontal"!==E.value&&a?a(q(q({},t),{isOpen:G.value})):$("i",{class:`${l}-arrow`},null)])};return()=>{var n;if(s)return F?null===(n=o.default)||void 0===n?void 0:n.call(o):null;const l=_.value;let i=()=>null;if(B.value||"inline"===E.value)i=()=>$(vS,null,{default:ce});else{const e="horizontal"===E.value?[0,8]:[10,0];i=()=>$(vS,{mode:ie.value,prefixCls:l,visible:!t.internalPopupClose&&G.value,popupClassName:le.value,popupOffset:t.popupOffset||e,disabled:W.value,onVisibleChange:ne},{default:()=>[ce()],popup:()=>$(Ux,{mode:se.value},{default:()=>[$(hS,{id:re,ref:V},{default:o.default})]})})}return $(Ux,{mode:ae.value},{default:()=>[$(Ed.Item,U(U({component:"li"},r),{},{role:"none",class:pe(l,`${l}-${E.value}`,r.class,{[`${l}-open`]:G.value,[`${l}-active`]:Q.value,[`${l}-selected`]:Y.value,[`${l}-disabled`]:W.value}),onMouseenter:J,onMouseleave:ee,"data-submenu-id":h}),{default:()=>$(e,null,[i(),!B.value&&$(gS,{id:re,open:G.value,keyPath:w.value},{default:o.default})])})]})}}});function yS(e,t){if(e.classList)return e.classList.contains(t);return` ${e.className} `.indexOf(` ${t} `)>-1}function $S(e,t){e.classList?e.classList.add(t):yS(e,t)||(e.className=`${e.className} ${t}`)}function xS(e,t){if(e.classList)e.classList.remove(t);else if(yS(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const SS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse";return{name:e,appear:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",$S(t,e)},onEnter:e=>{S((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(xS(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{$S(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout((()=>{e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:t=>{t&&(xS(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},wS=r({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:{title:Ii.any,originItemValue:ct()},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Kx(),l=d((()=>`${r.value}-item-group`)),i=rS();return()=>{var t,r;return i?null===(t=n.default)||void 0===t?void 0:t.call(n):$("li",U(U({},o),{},{onClick:e=>e.stopPropagation(),class:l.value}),[$("div",{title:"string"==typeof e.title?e.title:void 0,class:`${l.value}-title`},[Qe(n,e,"title")]),$("ul",{class:`${l.value}-list`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])}}}),CS=r({compatConfig:{MODE:3},name:"AMenuDivider",props:{prefixCls:String,dashed:Boolean},setup(e){const{prefixCls:t}=Kx(),n=d((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>$("li",{class:n.value},null)}});var kS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{if(e&&"object"==typeof e){const r=e,{label:l,children:i,key:a,type:s}=r,c=kS(r,["label","children","key","type"]),u=null!=a?a:`tmp-${o}`,d=n?n.parentKeys.slice():[],p=[],v={eventKey:u,key:u,parentEventKeys:f(d),parentKeys:f(d),childrenEventKeys:f(p),isLeaf:!1};if(i||"group"===s){if("group"===s){const o=OS(i,t,n);return $(wS,U(U({key:u},c),{},{title:l,originItemValue:e}),{default:()=>[o]})}t.set(u,v),n&&n.childrenEventKeys.push(u);const o=OS(i,t,{childrenEventKeys:p,parentKeys:[].concat(d,u)});return $(bS,U(U({key:u},c),{},{title:l,originItemValue:e}),{default:()=>[o]})}return"divider"===s?$(CS,U({key:u},c),null):(v.isLeaf=!0,t.set(u,v),$(sS,U(U({key:u},c),{},{originItemValue:e}),{default:()=>[l]}))}return null})).filter((e=>e))}function IS(e){const t=g([]),n=g(!1),o=g(new Map);return c((()=>e.items),(()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=OS(e.items,r)):t.value=void 0,o.value=r}),{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const MS=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:l,lineType:i,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${l}px ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},PS=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},ES=e=>q({},Jr(e)),TS=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:l,colorItemBg:i,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:v,motionEaseOut:f,menuItemPaddingInline:h,motionDurationMid:g,colorItemTextHover:m,lineType:b,colorSplit:y,colorItemTextDisabled:$,colorDangerItemText:x,colorDangerItemTextHover:S,colorDangerItemTextSelected:w,colorDangerItemBgActive:C,colorDangerItemBgSelected:k,colorItemBgHover:O,menuSubMenuBg:I,colorItemTextSelectedHorizontal:M,colorItemBgSelectedHorizontal:P}=e;return{[`${n}-${t}`]:{color:o,background:i,[`&${n}-root:focus-visible`]:q({},ES(e)),[`${n}-item-group-title`]:{color:l},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:m}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:k}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:q({},ES(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:q(q({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${v}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:P,"&::after":{borderBottomWidth:c,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${f}`,`opacity ${g} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${v}`,`opacity ${g} ${v}`].join(",")}}}}}},AS=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:i,marginXXS:a}=e;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${2*o}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:r+l+i}}},BS=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:v,boxShadowSecondary:f}=e,h={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":q({[`&${t}-root`]:{boxShadow:"none"}},AS(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:q(q({},AS(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${2.5*i}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:2*o,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:q(q({},Yr),{paddingInline:v})}}]},DS=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:l,motionEaseOut:i,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${l}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${i}`,`margin ${o} ${l}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${l}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:q({},qr()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zS=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*l,height:.15*l,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},RS=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:v,radiusSubMenuItem:f,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:q(q({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:q(q(q(q(q(q(q({},Ur(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:m,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),DS(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*o}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:v,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:q(q(q({borderRadius:v},DS(e)),zS(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})}}),zS(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},jS=[],NS=r({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:{id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function},slots:Object,setup(t,n){let{slots:o,emit:r,attrs:l}=n;const{direction:a,getPrefixCls:s}=Il("menu",t),u=Rx(),v=d((()=>{var e;return s("menu",t.prefixCls||(null===(e=null==u?void 0:u.prefixCls)||void 0===e?void 0:e.value))})),[b,y]=((e,t)=>tl("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===(null==t?void 0:t.value))return[];const{colorBgElevated:r,colorPrimary:l,colorError:i,colorErrorHover:a,colorTextLightSolid:s}=e,{controlHeightLG:c,fontSize:u}=e,d=u/7*5,p=rl(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),v=new pr(s).setAlpha(.65).toRgbString(),f=rl(p,{colorItemText:v,colorItemTextHover:s,colorGroupTitle:v,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new pr(s).setAlpha(.25).toRgbString(),colorDangerItemText:i,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:l},q({},o));return[RS(p),MS(p),BS(p),TS(p,"light"),TS(f,"dark"),PS(p),qm(p),zm(p,"slide-up"),zm(p,"slide-down"),Um(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:l,colorTextDescription:i,colorBgContainer:a,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:v}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:t,colorGroupTitle:i,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:a,colorItemBgHover:v,colorItemBgActive:c,colorSubItemBg:s,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:o,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}))(e))(v,d((()=>!u))),x=g(new Map),S=p(Qx,f(void 0)),w=d((()=>void 0!==S.value?S.value:t.inlineCollapsed)),{itemsNodes:C}=IS(t),k=g(!1);i((()=>{k.value=!0})),m((()=>{Mi(!(!0===t.inlineCollapsed&&"inline"!==t.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Mi(!(void 0!==S.value&&!0===t.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const O=f([]),I=f([]),M=f({});c(x,(()=>{const e={};for(const t of x.value.values())e[t.key]=t;M.value=e}),{flush:"post"}),m((()=>{if(void 0!==t.activeKey){let e=[];const n=t.activeKey?M.value[t.activeKey]:void 0;e=n&&void 0!==t.activeKey?im([].concat(h(n.parentKeys),t.activeKey)):[],Lx(O.value,e)||(O.value=e)}})),c((()=>t.selectedKeys),(e=>{e&&(I.value=e.slice())}),{immediate:!0,deep:!0});const P=f([]);c([M,I],(()=>{let e=[];I.value.forEach((t=>{const n=M.value[t];n&&(e=e.concat(h(n.parentKeys)))})),e=im(e),Lx(P.value,e)||(P.value=e)}),{immediate:!0});const E=f([]);let T;c((()=>t.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E.value;Lx(E.value,e)||(E.value=e.slice())}),{immediate:!0,deep:!0});const B=d((()=>!!t.disabled)),D=d((()=>"rtl"===a.value)),z=f("vertical"),R=g(!1);m((()=>{var e;"inline"!==t.mode&&"vertical"!==t.mode||!w.value?(z.value=t.mode,R.value=!1):(z.value="vertical",R.value=w.value),(null===(e=null==u?void 0:u.mode)||void 0===e?void 0:e.value)&&(z.value=u.mode.value)}));const j=d((()=>"inline"===z.value)),N=e=>{E.value=e,r("update:openKeys",e),r("openChange",e)},H=f(E.value),F=g(!1);c(E,(()=>{j.value&&(H.value=E.value)}),{immediate:!0}),c(j,(()=>{F.value?j.value?E.value=H.value:N(jS):F.value=!0}),{immediate:!0});const L=d((()=>({[`${v.value}`]:!0,[`${v.value}-root`]:!0,[`${v.value}-${z.value}`]:!0,[`${v.value}-inline-collapsed`]:R.value,[`${v.value}-rtl`]:D.value,[`${v.value}-${t.theme}`]:!0}))),_=d((()=>s())),W=d((()=>({horizontal:{name:`${_.value}-slide-up`},inline:SS(`${_.value}-motion-collapse`),other:{name:`${_.value}-zoom-big`}})));Yx(!0);const K=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=x.value;return e.forEach((e=>{const{key:o,childrenEventKeys:r}=n.get(e);t.push(o,...K(h(r)))})),t},V=f(0),X=d((()=>{var e;return t.expandIcon||o.expandIcon||(null===(e=null==u?void 0:u.expandIcon)||void 0===e?void 0:e.value)?e=>{let n=t.expandIcon||o.expandIcon;return n="function"==typeof n?n(e):n,Ja(n,{class:`${v.value}-submenu-expand-icon`},!1)}:null}));return qx({prefixCls:v,activeKeys:O,openKeys:E,selectedKeys:I,changeActiveKeys:e=>{clearTimeout(T),T=setTimeout((()=>{void 0===t.activeKey&&(O.value=e),r("update:activeKey",e[e.length-1])}))},disabled:B,rtl:D,mode:z,inlineIndent:d((()=>t.inlineIndent)),subMenuCloseDelay:d((()=>t.subMenuCloseDelay)),subMenuOpenDelay:d((()=>t.subMenuOpenDelay)),builtinPlacements:d((()=>t.builtinPlacements)),triggerSubMenuAction:d((()=>t.triggerSubMenuAction)),getPopupContainer:d((()=>t.getPopupContainer)),inlineCollapsed:R,theme:d((()=>t.theme)),siderCollapsed:S,defaultMotions:d((()=>k.value?W.value:null)),motion:d((()=>k.value?t.motion:null)),overflowDisabled:g(void 0),onOpenChange:(e,t)=>{var n;const o=(null===(n=M.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let r=E.value.filter((t=>t!==e));if(t)r.push(e);else if("inline"!==z.value){const e=K(h(o));r=im(r.filter((t=>!e.includes(t))))}Lx(E,r)||N(r)},onItemClick:e=>{var n;r("click",e),(e=>{if(t.selectable){const{key:n}=e,o=I.value.includes(n);let l;l=t.multiple?o?I.value.filter((e=>e!==n)):[...I.value,n]:[n];const i=q(q({},e),{selectedKeys:l});Lx(l,I.value)||(void 0===t.selectedKeys&&(I.value=l),r("update:selectedKeys",l),o&&t.multiple?r("deselect",i):r("select",i))}"inline"!==z.value&&!t.multiple&&E.value.length&&N(jS)})(e),null===(n=null==u?void 0:u.onClick)||void 0===n||n.call(u)},registerMenuInfo:(e,t)=>{x.value.set(e,t),x.value=new Map(x.value)},unRegisterMenuInfo:e=>{x.value.delete(e),x.value=new Map(x.value)},selectedSubMenuKeys:P,expandIcon:X,forceSubMenuRender:d((()=>t.forceSubMenuRender)),rootClassName:y}),()=>{var n,r;const i=C.value||Fe(null===(n=o.default)||void 0===n?void 0:n.call(o)),a=V.value>=i.length-1||"horizontal"!==z.value||t.disabledOverflow,s="horizontal"!==z.value||t.disabledOverflow?i:i.map(((e,t)=>$(Ux,{key:e.key,overflowDisabled:t>V.value},{default:()=>e}))),c=(null===(r=o.overflowedIndicator)||void 0===r?void 0:r.call(o))||$(wx,null,null);return b($(Ed,U(U({},l),{},{onMousedown:t.onMousedown,prefixCls:`${v.value}-overflow`,component:"ul",itemComponent:sS,class:[L.value,l.class,y.value],role:"menu",id:t.id,data:s,renderRawItem:e=>e,renderRawRest:t=>{const n=t.length,o=n?i.slice(-n):null;return $(e,null,[$(bS,{eventKey:Jx,key:Jx,title:c,disabled:a,internalPopupClose:0===n},{default:()=>o}),$(oS,null,{default:()=>[$(bS,{eventKey:Jx,key:Jx,title:c,disabled:a,internalPopupClose:0===n},{default:()=>o})]})])},maxCount:"horizontal"!==z.value||t.disabledOverflow?Ed.INVALIDATE:Ed.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{V.value=e}}),{default:()=>[$(A,{to:"body"},{default:()=>[$("div",{style:{display:"none"},"aria-hidden":!0},[$(oS,null,{default:()=>[s]})])]})]}))}}});NS.install=function(e){return e.component(NS.name,NS),e.component(sS.name,sS),e.component(bS.name,bS),e.component(CS.name,CS),e.component(wS.name,wS),e},NS.Item=sS,NS.Divider=CS,NS.SubMenu=bS,NS.ItemGroup=wS;const HS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:q(q({},Ur(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:q({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},el(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},FS=tl("Breadcrumb",(e=>{const t=rl(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[HS(t)]}));function LS(e){const{route:t,params:n,routes:o,paths:r}=e,l=o.indexOf(t)===o.length-1,i=function(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(t,n);return l?$("span",null,[i]):$("a",{href:`#/${r.join("/")}`},[i])}const _S=r({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:{prefixCls:String,routes:{type:Array},params:Ii.any,separator:Ii.any,itemRender:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("breadcrumb",e),[i,a]=FS(r),s=(e,t)=>(e=(e||"").replace(/^\//,""),Object.keys(t).forEach((n=>{e=e.replace(`:${n}`,t[n])})),e),c=(e,t,n)=>{const o=[...e],r=s(t||"",n);return r&&o.push(r),o};return()=>{var t;let u;const{routes:d,params:p={}}=e,v=Fe(Qe(n,e)),f=null!==(t=Qe(n,e,"separator"))&&void 0!==t?t:"/",h=e.itemRender||n.itemRender||LS;d&&d.length>0?u=(e=>{let{routes:t=[],params:n={},separator:o,itemRender:r=LS}=e;const l=[];return t.map((e=>{const i=s(e.path,n);i&&l.push(i);const a=[...l];let u=null;e.children&&e.children.length&&(u=$(NS,{items:e.children.map((e=>({key:e.path||e.breadcrumbName,label:r({route:e,params:n,routes:t,paths:c(a,e.path,n)})})))},null));const d={separator:o};return u&&(d.overlay=u),$(Fx,U(U({},d),{},{key:i||e.breadcrumbName}),{default:()=>[r({route:e,params:n,routes:t,paths:a})]})}))})({routes:d,params:p,separator:f,itemRender:h}):v.length&&(u=v.map(((e,t)=>(bn("object"==typeof e.type&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR)),O(e,{separator:f,key:t})))));const g={[r.value]:!0,[`${r.value}-rtl`]:"rtl"===l.value,[`${o.class}`]:!!o.class,[a.value]:!0};return i($("nav",U(U({},o),{},{class:g}),[$("ol",null,[u])]))}}});const WS=r({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:{prefixCls:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Il("breadcrumb",e);return()=>{var e;const{separator:t,class:l}=o,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0?a:"/"])}}});_S.Item=Fx,_S.Separator=WS,_S.install=function(e){return e.component(_S.name,_S),e.component(Fx.name,Fx),e.component(WS.name,WS),e};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function KS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var VS={exports:{}};VS.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",l="minute",i="hour",a="day",s="week",c="month",u="quarter",d="year",p="date",v="Invalid Date",f=/^(\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])+"]"}},m=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+m(o,2,"0")+":"+m(r,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var a=t.name;$[a]=t,r=a}return!o&&r&&(y=r),r||!o&&y},C=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},k=b;k.l=w,k.i=S,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(f);if(o){var r=o[2]-1||0,l=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,l)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,l)}}return new Date(t)}(e),this.init()},m.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()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===v)},m.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return C(e)25){var o=n(this).startOf(ZS).add(1,ZS).date(t),r=n(this).endOf(QS);if(o.isBefore(r))return 1}var l=n(this).startOf(ZS).date(t).startOf(QS).subtract(1,"millisecond"),i=this.diff(l,QS,!0);return i<0?n(this).startOf("week").week():Math.ceil(i)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}));var tw={exports:{}};tw.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}};const nw=KS(tw.exports);var ow={exports:{}};ow.exports=function(){var e="month",t="quarter";return function(n,o){var r=o.prototype;r.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var l=r.add;r.add=function(n,o){return n=Number(n),this.$utils().p(o)===t?this.add(3*n,e):l.bind(this)(n,o)};var i=r.startOf;r.startOf=function(n,o){var r=this.$utils(),l=!!r.u(o)||o;if(r.p(n)===t){var a=this.quarter()-1;return l?this.month(3*a).startOf(e).startOf("day"):this.month(3*a+2).endOf(e).endOf("day")}return i.bind(this)(n,o)}}}();const rw=KS(ow.exports);var lw={exports:{}};lw.exports=function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),l=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return o.bind(this)(l)}};const iw=KS(lw.exports);var aw={exports:{}};aw.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,o=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,l={},i=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=l[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,o=l.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,a("seconds")],ss:[o,a("seconds")],m:[o,a("minutes")],mm:[o,a("minutes")],H:[o,a("hours")],h:[o,a("hours")],HH:[o,a("hours")],hh:[o,a("hours")],D:[o,a("day")],DD:[n,a("day")],Do:[r,function(e){var t=l.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],M:[o,a("month")],MM:[n,a("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=i(e)}],YYYY:[/\d{4}/,a("year")],Z:s,ZZ:s};function p(n){var o,r;o=n,r=l&&l.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,o){var l=o&&o.toUpperCase();return n||r[o]||e[o]||r[l].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=i.length,s=0;s-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),r=o.year,l=o.month,i=o.day,a=o.hours,s=o.minutes,c=o.seconds,u=o.milliseconds,d=o.zone,v=new Date,f=i||(r||l?1:v.getDate()),h=r||v.getFullYear(),g=0;r&&!l||(g=l>0?l-1:v.getMonth());var m=a||0,b=s||0,y=c||0,$=u||0;return d?new Date(Date.UTC(h,g,f,m,b,y,$+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,f,m,b,y,$)):new Date(h,g,f,m,b,y,$)}catch(x){return new Date("")}}(t,a,o),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),l={}}else if(a instanceof Array)for(var v=a.length,f=1;f<=v;f+=1){i[1]=a[f-1];var h=n.apply(this,i);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}f===v&&(this.$d=new Date(""))}else r.call(this,e)}}}();const sw=KS(aw.exports);XS.extend(sw),XS.extend(iw),XS.extend(YS),XS.extend(qS),XS.extend(ew),XS.extend(nw),XS.extend(rw),XS.extend(((e,t)=>{const n=t.prototype,o=n.format;n.format=function(e){const t=(e||"").replace("Wo","wo");return o.bind(this)(t)}}));const cw={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},uw=e=>cw[e]||e.split("_")[0],dw=()=>{gn(hn,!1,"Not match any format. Please help to fire a issue about this.")},pw=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function vw(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let l=0;lt)return e;r+=n.length}}const fw=(e,t)=>{if(!e)return null;if(XS.isDayjs(e))return e;const n=t.matchAll(pw);let o=XS(e,t);if(null===n)return o;for(const r of n){const t=r[0],n=r.index;if("Q"===t){const t=e.slice(n-1,n),r=vw(e,n,t).match(/\d+/)[0];o=o.quarter(parseInt(r))}if("wo"===t.toLowerCase()){const t=e.slice(n-1,n),r=vw(e,n,t).match(/\d+/)[0];o=o.week(parseInt(r))}"ww"===t.toLowerCase()&&(o=o.week(parseInt(e.slice(n,n+t.length)))),"w"===t.toLowerCase()&&(o=o.week(parseInt(e.slice(n,n+t.length+1))))}return o},hw={getNow:()=>XS(),getFixedDate:e=>XS(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>XS().locale(uw(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(uw(e)).weekday(0),getWeek:(e,t)=>t.locale(uw(e)).week(),getShortWeekDays:e=>XS().locale(uw(e)).localeData().weekdaysMin(),getShortMonths:e=>XS().locale(uw(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(uw(e)).format(n),parse:(e,t,n)=>{const o=uw(e);for(let r=0;rArray.isArray(e)?e.map((e=>fw(e,t))):fw(e,t),toString:(e,t)=>Array.isArray(e)?e.map((e=>XS.isDayjs(e)?e.format(t):e)):XS.isDayjs(e)?e.format(t):e};function gw(e){const t=j();return q(q({},e),t)}const mw=Symbol("PanelContextProps"),bw=e=>{v(mw,e)},yw=()=>p(mw,{}),$w={visibility:"hidden"};function xw(e,t){let{slots:n}=t;var o;const r=gw(e),{prefixCls:l,prevIcon:i="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:p,onNext:v}=r,{hideNextBtn:f,hidePrevBtn:h}=yw();return $("div",{class:l},[u&&$("button",{type:"button",onClick:u,tabindex:-1,class:`${l}-super-prev-btn`,style:h.value?$w:{}},[s]),p&&$("button",{type:"button",onClick:p,tabindex:-1,class:`${l}-prev-btn`,style:h.value?$w:{}},[i]),$("div",{class:`${l}-view`},[null===(o=n.default)||void 0===o?void 0:o.call(n)]),v&&$("button",{type:"button",onClick:v,tabindex:-1,class:`${l}-next-btn`,style:f.value?$w:{}},[a]),d&&$("button",{type:"button",onClick:d,tabindex:-1,class:`${l}-super-next-btn`,style:f.value?$w:{}},[c])])}function Sw(e){const t=gw(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:l,onNextDecades:i}=t,{hideHeader:a}=yw();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/Fw)*Fw,d=u+Fw-1;return $(xw,U(U({},t),{},{prefixCls:s,onSuperPrev:l,onSuperNext:i}),{default:()=>[u,B("-"),d]})}function ww(e,t,n,o,r){let l=e.setHour(t,n);return l=e.setMinute(l,o),l=e.setSecond(l,r),l}function Cw(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function kw(e,t){const n=e.getYear(t),o=e.getMonth(t)+1,r=e.getEndDate(e.getFixedDate(`${n}-${o}-01`));return`${n}-${o<10?`0${o}`:`${o}`}-${e.getDate(r)}`}function Ow(e){const{prefixCls:t,disabledDate:n,onSelect:o,picker:r,rowNum:l,colNum:i,prefixColumn:a,rowClassName:s,baseDate:c,getCellClassName:u,getCellText:d,getCellNode:p,getCellDate:v,generateConfig:f,titleCell:h,headerCells:g}=gw(e),{onDateMouseenter:m,onDateMouseleave:b,mode:y}=yw(),x=`${t}-cell`,S=[];for(let w=0;w{e.stopPropagation(),g||o(s)},onMouseenter:()=>{!g&&m&&m(s)},onMouseleave:()=>{!g&&b&&b(s)}},[p?p(s):$("div",{class:`${x}-inner`},[d(s)])]))}S.push($("tr",{key:w,class:s&&s(t)},[e]))}return $("div",{class:`${t}-body`},[$("table",{class:`${t}-content`},[g&&$("thead",null,[$("tr",null,[g])]),$("tbody",null,[S])])])}xw.displayName="Header",xw.inheritAttrs=!1,Sw.displayName="DecadeHeader",Sw.inheritAttrs=!1,Ow.displayName="PanelBody",Ow.inheritAttrs=!1;const Iw=3,Mw=4;function Pw(e){const t=gw(e),n=Hw-1,{prefixCls:o,viewDate:r,generateConfig:l}=t,i=`${o}-cell`,a=l.getYear(r),s=Math.floor(a/Hw)*Hw,c=Math.floor(a/Fw)*Fw,u=c+Fw-1,d=l.setYear(r,c-Math.ceil((Iw*Mw*Hw-Fw)/2));return $(Ow,U(U({},t),{},{rowNum:Mw,colNum:Iw,baseDate:d,getCellText:e=>{const t=l.getYear(e);return`${t}-${t+n}`},getCellClassName:e=>{const t=l.getYear(e);return{[`${i}-in-view`]:c<=t&&t+n<=u,[`${i}-selected`]:t===s}},getCellDate:(e,t)=>l.addYear(e,t*Hw)}),null)}Pw.displayName="DecadeBody",Pw.inheritAttrs=!1;const Ew=new Map;function Tw(e,t,n){if(Ew.get(e)&&rt.cancel(Ew.get(e)),n<=0)return void Ew.set(e,rt((()=>{e.scrollTop=t})));const o=(t-e.scrollTop)/n*10;Ew.set(e,rt((()=>{e.scrollTop+=o,e.scrollTop!==t&&Tw(e,t,n-10)})))}function Aw(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:l,onEnter:i}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case sd.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case sd.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case sd.UP:if(r)return r(-1),!0;break;case sd.DOWN:if(r)return r(1),!0;break;case sd.PAGE_UP:if(l)return l(-1),!0;break;case sd.PAGE_DOWN:if(l)return l(1),!0;break;case sd.ENTER:if(i)return i(),!0}return!1}function Bw(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function Dw(e,t,n){const o="time"===e?8:10,r="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let zw=null;const Rw=new Set;const jw={year:e=>"month"===e||"date"===e?"year":e,month:e=>"date"===e?"month":e,quarter:e=>"month"===e||"date"===e?"quarter":e,week:e=>"date"===e?"week":e,time:null,date:null};function Nw(e,t){return e.some((e=>e&&e.contains(t)))}const Hw=10,Fw=10*Hw;function Lw(e){const t=gw(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:l,operationRef:i,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;i.value={onKeydown:e=>Aw(e,{onLeftRight:e=>{a(r.addYear(l,e*Hw),"key")},onCtrlLeftRight:e=>{a(r.addYear(l,e*Fw),"key")},onUpDown:e=>{a(r.addYear(l,e*Hw*Iw),"key")},onEnter:()=>{s("year",l)}})};const u=e=>{const t=r.addYear(l,e*Fw);o(t),s(null,t)};return $("div",{class:c},[$(Sw,U(U({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),$(Pw,U(U({},t),{},{prefixCls:n,onSelect:e=>{a(e,"mouse"),s("year",e)}}),null)])}Lw.displayName="DecadePanel",Lw.inheritAttrs=!1;const _w=7;function Ww(e,t){return!e&&!t||!(!e||!t)&&void 0}function Kw(e,t,n){const o=Ww(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)}function Vw(e,t){return Math.floor(e.getMonth(t)/3)+1}function Xw(e,t,n){const o=Ww(t,n);return"boolean"==typeof o?o:Kw(e,t,n)&&Vw(e,t)===Vw(e,n)}function Gw(e,t,n){const o=Ww(t,n);return"boolean"==typeof o?o:Kw(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Yw(e,t,n){const o=Ww(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function Uw(e,t,n,o){const r=Ww(n,o);return"boolean"==typeof r?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function qw(e,t,n){return Yw(e,t,n)&&function(e,t,n){const o=Ww(t,n);return"boolean"==typeof o?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function Qw(e,t,n,o){return!!(t&&n&&o)&&(!Yw(e,t,o)&&!Yw(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o))}function Zw(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*o);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function Jw(e,t){let{generateConfig:n,locale:o,format:r}=t;return"function"==typeof r?r(e):n.locale.format(o.locale,e,r)}function eC(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return e&&"function"!=typeof r[0]?n.locale.parse(o.locale,e,r):null}function tC(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const l=(e,n,l)=>{let i=n;for(;i<=l;){let n;switch(e){case"date":if(n=r.setDate(t,i),!o(n))return!1;break;case"month":if(n=r.setMonth(t,i),!tC({cellDate:n,mode:"month",generateConfig:r,disabledDate:o}))return!1;break;case"year":if(n=r.setYear(t,i),!tC({cellDate:n,mode:"year",generateConfig:r,disabledDate:o}))return!1}i+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":return l("date",1,r.getDate(r.getEndDate(t)));case"quarter":{const e=3*Math.floor(r.getMonth(t)/3);return l("month",e,e+2)}case"year":return l("month",0,11);case"decade":{const e=r.getYear(t),n=Math.floor(e/Hw)*Hw;return l("year",n,n+Hw-1)}}}function nC(e){const t=gw(e),{hideHeader:n}=yw();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:l,value:i,format:a}=t;return $(xw,{prefixCls:`${o}-header`},{default:()=>[i?Jw(i,{locale:l,format:a,generateConfig:r}):" "]})}nC.displayName="TimeHeader",nC.inheritAttrs=!1;const oC=r({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=yw(),n=g(null),o=f(new Map),r=f();return c((()=>e.value),(()=>{const r=o.value.get(e.value);r&&!1!==t.value&&Tw(n.value,r.offsetTop,120)})),b((()=>{var e;null===(e=r.value)||void 0===e||e.call(r)})),c(t,(()=>{var l;null===(l=r.value)||void 0===l||l.call(r),S((()=>{if(t.value){const t=o.value.get(e.value);t&&(r.value=function(e,t){let n;return function o(){ns(e)?t():n=rt((()=>{o()}))}(),()=>{rt.cancel(n)}}(t,(()=>{Tw(n.value,t.offsetTop,0)})))}}))}),{immediate:!0,flush:"post"}),()=>{const{prefixCls:t,units:r,onSelect:l,value:i,active:a,hideDisabledOptions:s}=e,c=`${t}-cell`;return $("ul",{class:pe(`${t}-column`,{[`${t}-column-active`]:a}),ref:n,style:{position:"relative"}},[r.map((e=>s&&e.disabled?null:$("li",{key:e.value,ref:t=>{o.value.set(e.value,t)},class:pe(c,{[`${c}-disabled`]:e.disabled,[`${c}-selected`]:i===e.value}),onClick:()=>{e.disabled||l(e.value)}},[$("div",{class:`${c}-inner`},[e.label])])))])}}});function rC(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",o=String(e);for(;o.length{!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n&&"name"!==n||n.startsWith("data-__")||(t[n]=e[n])})),t}function aC(e,t){return e?e[t]:null}function sC(e,t,n){const o=[aC(e,0),aC(e,1)];return o[n]="function"==typeof t?t(o[n]):t,o[0]||o[1]?o:null}function cC(e,t,n,o){const r=[];for(let l=e;l<=t;l+=n)r.push({label:rC(l,2),value:l,disabled:(o||[]).includes(l)});return r}const uC=r({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=d((()=>e.value?e.generateConfig.getHour(e.value):-1)),n=d((()=>!!e.use12Hours&&t.value>=12)),o=d((()=>e.use12Hours?t.value%12:t.value)),r=d((()=>e.value?e.generateConfig.getMinute(e.value):-1)),l=d((()=>e.value?e.generateConfig.getSecond(e.value):-1)),i=f(e.generateConfig.getNow()),a=f(),s=f(),c=f();N((()=>{i.value=e.generateConfig.getNow()})),m((()=>{if(e.disabledTime){const t=e.disabledTime(i);[a.value,s.value,c.value]=[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}else[a.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}));const u=(t,n,o,r)=>{let l=e.value||e.generateConfig.getNow();const i=Math.max(0,n),a=Math.max(0,o),s=Math.max(0,r);return l=ww(e.generateConfig,l,e.use12Hours&&t?i+12:i,a,s),l},p=d((()=>{var t;return cC(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,a.value&&a.value())})),v=d((()=>{if(!e.use12Hours)return[!1,!1];const t=[!0,!0];return p.value.forEach((e=>{let{disabled:n,value:o}=e;n||(o>=12?t[1]=!1:t[0]=!1)})),t})),h=d((()=>e.use12Hours?p.value.filter(n.value?e=>e.value>=12:e=>e.value<12).map((e=>{const t=e.value%12,n=0===t?"12":rC(t,2);return q(q({},e),{label:n,value:t})})):p.value)),g=d((()=>{var n;return cC(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,s.value&&s.value(t.value))})),b=d((()=>{var n;return cC(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,c.value&&c.value(t.value,r.value))}));return()=>{const{prefixCls:t,operationRef:i,activeColumnIndex:a,showHour:s,showMinute:c,showSecond:d,use12Hours:p,hideDisabledOptions:f,onSelect:m}=e,y=[],x=`${t}-content`,S=`${t}-time-panel`;function w(e,t,n,o,r){!1!==e&&y.push({node:Ja(t,{prefixCls:S,value:n,active:a===y.length,onSelect:r,units:o,hideDisabledOptions:f}),onSelect:r,value:n,units:o})}i.value={onUpDown:e=>{const t=y[a];if(t){const n=t.units.findIndex((e=>e.value===t.value)),o=t.units.length;for(let r=1;r{m(u(n.value,e,r.value,l.value),"mouse")})),w(c,$(oC,{key:"minute"},null),r.value,g.value,(e=>{m(u(n.value,o.value,e,l.value),"mouse")})),w(d,$(oC,{key:"second"},null),l.value,b.value,(e=>{m(u(n.value,o.value,r.value,e),"mouse")}));let C=-1;return"boolean"==typeof n.value&&(C=n.value?1:0),w(!0===p,$(oC,{key:"12hours"},null),C,[{label:"AM",value:0,disabled:v.value[0]},{label:"PM",value:1,disabled:v.value[1]}],(e=>{m(u(!!e,o.value,r.value,l.value),"mouse")})),$("div",{class:x},[y.map((e=>{let{node:t}=e;return t}))])}}}),dC=e=>e.filter((e=>!1!==e)).length;function pC(e){const t=gw(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:l,operationRef:i,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:p}=t,v=`${r}-time-panel`,h=f(),g=f(-1),m=dC([a,s,c,u]);return i.value={onKeydown:e=>Aw(e,{onLeftRight:e=>{g.value=(g.value+e+m)%m},onUpDown:e=>{-1===g.value?g.value=0:h.value&&h.value.onUpDown(e)},onEnter:()=>{d(p||n.getNow(),"key"),g.value=-1}}),onBlur:()=>{g.value=-1}},$("div",{class:pe(v,{[`${v}-active`]:l})},[$(nC,U(U({},t),{},{format:o,prefixCls:r}),null),$(uC,U(U({},t),{},{prefixCls:r,activeColumnIndex:g.value,operationRef:h}),null)])}function vC(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:l,isSameCell:i,offsetCell:a,today:s,value:c}=e;return function(e){const u=a(e,-1),d=a(e,1),p=aC(o,0),v=aC(o,1),f=aC(r,0),h=aC(r,1),g=Qw(n,f,h,e);function m(e){return i(p,e)}function b(e){return i(v,e)}const y=i(f,e),$=i(h,e),x=(g||$)&&(!l(u)||b(u)),S=(g||y)&&(!l(d)||m(d));return{[`${t}-in-view`]:l(e),[`${t}-in-range`]:Qw(n,p,v,e),[`${t}-range-start`]:m(e),[`${t}-range-end`]:b(e),[`${t}-range-start-single`]:m(e)&&!v,[`${t}-range-end-single`]:b(e)&&!p,[`${t}-range-start-near-hover`]:m(e)&&(i(u,f)||Qw(n,f,h,u)),[`${t}-range-end-near-hover`]:b(e)&&(i(d,h)||Qw(n,f,h,d)),[`${t}-range-hover`]:g,[`${t}-range-hover-start`]:y,[`${t}-range-hover-end`]:$,[`${t}-range-hover-edge-start`]:x,[`${t}-range-hover-edge-end`]:S,[`${t}-range-hover-edge-start-near-range`]:x&&i(u,v),[`${t}-range-hover-edge-end-near-range`]:S&&i(d,p),[`${t}-today`]:i(s,e),[`${t}-selected`]:i(c,e)}}}pC.displayName="TimePanel",pC.inheritAttrs=!1;const fC=Symbol("RangeContextProps"),hC=()=>p(fC,{rangedValue:f(),hoverRangedValue:f(),inRange:f(),panelPosition:f()}),gC=r({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:f(e.value.rangedValue),hoverRangedValue:f(e.value.hoverRangedValue),inRange:f(e.value.inRange),panelPosition:f(e.value.panelPosition)};return(e=>{v(fC,e)})(o),c((()=>e.value),(()=>{Object.keys(e.value).forEach((t=>{o[t]&&(o[t].value=e.value[t])}))})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function mC(e){const t=gw(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:l,rowCount:i,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=hC(),p=function(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),l=t.getWeekDay(r);let i=t.addDate(r,o-l);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}(l.locale,o,a),v=`${n}-cell`,f=o.locale.getWeekFirstDay(l.locale),h=o.getNow(),g=[],m=l.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(l.locale):[]);r&&g.push($("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;x<_w;x+=1)g.push($("th",{key:x},[m[(x+f)%_w]]));const b=vC({cellPrefixCls:v,today:h,value:s,generateConfig:o,rangedValue:r?null:u.value,hoverRangedValue:r?null:d.value,isSameCell:(e,t)=>Yw(o,e,t),isInView:e=>Gw(o,e,a),offsetCell:(e,t)=>o.addDate(e,t)}),y=c?e=>c({current:e,today:h}):void 0;return $(Ow,U(U({},t),{},{rowNum:i,colNum:_w,baseDate:p,getCellNode:y,getCellText:o.getDate,getCellClassName:b,getCellDate:o.addDate,titleCell:e=>Jw(e,{locale:l,format:"YYYY-MM-DD",generateConfig:o}),headerCells:g}),null)}function bC(e){const t=gw(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextMonth:i,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:p}=yw();if(p.value)return null;const v=`${n}-header`,f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(l),g=$("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[Jw(l,{locale:r,format:r.yearFormat,generateConfig:o})]),m=$("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?Jw(l,{locale:r,format:r.monthFormat,generateConfig:o}):f[h]]),b=r.monthBeforeYear?[m,g]:[g,m];return $(xw,U(U({},t),{},{prefixCls:v,onSuperPrev:c,onPrev:a,onNext:i,onSuperNext:s}),{default:()=>[b]})}mC.displayName="DateBody",mC.inheritAttrs=!1,mC.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"],bC.displayName="DateHeader",bC.inheritAttrs=!1;const yC=6;function $C(e){const t=gw(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:l,operationRef:i,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:p}=t,v=`${n}-${o}-panel`;i.value={onKeydown:e=>Aw(e,q({onLeftRight:e=>{p(a.addDate(s||c,e),"key")},onCtrlLeftRight:e=>{p(a.addYear(s||c,e),"key")},onUpDown:e=>{p(a.addDate(s||c,e*_w),"key")},onPageUpDown:e=>{p(a.addMonth(s||c,e),"key")}},r))};const f=e=>{const t=a.addYear(c,e);u(t),d(null,t)},h=e=>{const t=a.addMonth(c,e);u(t),d(null,t)};return $("div",{class:pe(v,{[`${v}-active`]:l})},[$(bC,U(U({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{f(-1)},onNextYear:()=>{f(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),$(mC,U(U({},t),{},{onSelect:e=>p(e,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:yC}),null)])}$C.displayName="DatePanel",$C.inheritAttrs=!1;const xC=function(){for(var e=arguments.length,t=new Array(e),n=0;n{v.value.onBlur&&v.value.onBlur(e),d.value=null};o.value={onKeydown:e=>{if(e.which===sd.TAB){const t=function(e){const t=xC.indexOf(d.value)+e;return xC[t]||null}(e.shiftKey?-1:1);return d.value=t,t&&e.preventDefault(),!0}if(d.value){const t="date"===d.value?p:v;return t.value&&t.value.onKeydown&&t.value.onKeydown(e),!0}return!![sd.LEFT,sd.RIGHT,sd.UP,sd.DOWN].includes(e.which)&&(d.value="date",!0)},onBlur:g,onClose:g};const m=(e,t)=>{let n=e;"date"===t&&!l&&h.defaultValue?(n=r.setHour(n,r.getHour(h.defaultValue)),n=r.setMinute(n,r.getMinute(h.defaultValue)),n=r.setSecond(n,r.getSecond(h.defaultValue))):"time"===t&&!l&&i&&(n=r.setYear(n,r.getYear(i)),n=r.setMonth(n,r.getMonth(i)),n=r.setDate(n,r.getDate(i))),c&&c(n,"mouse")},b=a?a(l||null):{};return $("div",{class:pe(u,{[`${u}-active`]:d.value})},[$($C,U(U({},t),{},{operationRef:p,active:"date"===d.value,onSelect:e=>{m(Cw(r,e,l||"object"!=typeof s?null:s.defaultValue),"date")}}),null),$(pC,U(U(U(U({},t),{},{format:void 0},h),b),{},{disabledTime:null,defaultValue:void 0,operationRef:v,active:"time"===d.value,onSelect:e=>{m(e,"time")}}),null)])}function wC(e){const t=gw(e),{prefixCls:n,generateConfig:o,locale:r,value:l}=t,i=`${n}-cell`,a=`${n}-week-panel-row`;return $($C,U(U({},t),{},{panelName:"week",prefixColumn:e=>$("td",{key:"week",class:pe(i,`${i}-week`)},[o.locale.getWeek(r.locale,e)]),rowClassName:e=>pe(a,{[`${a}-selected`]:Uw(o,r.locale,l,e)}),keyboardConfig:{onLeftRight:null}}),null)}function CC(e){const t=gw(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=yw();if(c.value)return null;const u=`${n}-header`;return $(xw,U(U({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[$("button",{type:"button",onClick:s,class:`${n}-year-btn`},[Jw(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}SC.displayName="DatetimePanel",SC.inheritAttrs=!1,wC.displayName="WeekPanel",wC.inheritAttrs=!1,CC.displayName="MonthHeader",CC.inheritAttrs=!1;const kC=3,OC=4;function IC(e){const t=gw(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=hC(),u=vC({cellPrefixCls:`${n}-cell`,value:r,generateConfig:i,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(e,t)=>Gw(i,e,t),isInView:()=>!0,offsetCell:(e,t)=>i.addMonth(e,t)}),d=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),p=i.setMonth(l,0),v=a?e=>a({current:e,locale:o}):void 0;return $(Ow,U(U({},t),{},{rowNum:OC,colNum:kC,baseDate:p,getCellNode:v,getCellText:e=>o.monthFormat?Jw(e,{locale:o,format:o.monthFormat,generateConfig:i}):d[i.getMonth(e)],getCellClassName:u,getCellDate:i.addMonth,titleCell:e=>Jw(e,{locale:o,format:"YYYY-MM",generateConfig:i})}),null)}function MC(e){const t=gw(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:e=>Aw(e,{onLeftRight:e=>{c(l.addMonth(i||a,e),"key")},onCtrlLeftRight:e=>{c(l.addYear(i||a,e),"key")},onUpDown:e=>{c(l.addMonth(i||a,e*kC),"key")},onEnter:()=>{s("date",i||a)}})};const d=e=>{const t=l.addYear(a,e);r(t),s(null,t)};return $("div",{class:u},[$(CC,U(U({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),$(IC,U(U({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse"),s("date",e)}}),null)])}function PC(e){const t=gw(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=yw();if(c.value)return null;const u=`${n}-header`;return $(xw,U(U({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[$("button",{type:"button",onClick:s,class:`${n}-year-btn`},[Jw(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}IC.displayName="MonthBody",IC.inheritAttrs=!1,MC.displayName="MonthPanel",MC.inheritAttrs=!1,PC.displayName="QuarterHeader",PC.inheritAttrs=!1;const EC=4,TC=1;function AC(e){const t=gw(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=hC(),c=vC({cellPrefixCls:`${n}-cell`,value:r,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>Xw(i,e,t),isInView:()=>!0,offsetCell:(e,t)=>i.addMonth(e,3*t)}),u=i.setDate(i.setMonth(l,0),1);return $(Ow,U(U({},t),{},{rowNum:TC,colNum:EC,baseDate:u,getCellText:e=>Jw(e,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:i}),getCellClassName:c,getCellDate:(e,t)=>i.addMonth(e,3*t),titleCell:e=>Jw(e,{locale:o,format:"YYYY-[Q]Q",generateConfig:i})}),null)}function BC(e){const t=gw(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:e=>Aw(e,{onLeftRight:e=>{c(l.addMonth(i||a,3*e),"key")},onCtrlLeftRight:e=>{c(l.addYear(i||a,e),"key")},onUpDown:e=>{c(l.addYear(i||a,e),"key")}})};const d=e=>{const t=l.addYear(a,e);r(t),s(null,t)};return $("div",{class:u},[$(PC,U(U({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),$(AC,U(U({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse")}}),null)])}function DC(e){const t=gw(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:l,onNextDecade:i,onDecadeClick:a}=t,{hideHeader:s}=yw();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/NC)*NC,p=d+NC-1;return $(xw,U(U({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[$("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,B("-"),p])]})}AC.displayName="QuarterBody",AC.inheritAttrs=!1,BC.displayName="QuarterPanel",BC.inheritAttrs=!1,DC.displayName="YearHeader",DC.inheritAttrs=!1;const zC=3,RC=4;function jC(e){const t=gw(e),{prefixCls:n,value:o,viewDate:r,locale:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=hC(),c=`${n}-cell`,u=i.getYear(r),d=Math.floor(u/NC)*NC,p=d+NC-1,v=i.setYear(r,d-Math.ceil((zC*RC-NC)/2)),f=vC({cellPrefixCls:c,value:o,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>Kw(i,e,t),isInView:e=>{const t=i.getYear(e);return d<=t&&t<=p},offsetCell:(e,t)=>i.addYear(e,t)});return $(Ow,U(U({},t),{},{rowNum:RC,colNum:zC,baseDate:v,getCellText:i.getYear,getCellClassName:f,getCellDate:i.addYear,titleCell:e=>Jw(e,{locale:l,format:"YYYY",generateConfig:i})}),null)}jC.displayName="YearBody",jC.inheritAttrs=!1;const NC=10;function HC(e){const t=gw(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:e=>Aw(e,{onLeftRight:e=>{c(l.addYear(i||a,e),"key")},onCtrlLeftRight:e=>{c(l.addYear(i||a,e*NC),"key")},onUpDown:e=>{c(l.addYear(i||a,e*zC),"key")},onEnter:()=>{u("date"===s?"date":"month",i||a)}})};const p=e=>{const t=l.addYear(a,10*e);r(t),u(null,t)};return $("div",{class:d},[$(DC,U(U({},t),{},{prefixCls:n,onPrevDecade:()=>{p(-1)},onNextDecade:()=>{p(1)},onDecadeClick:()=>{u("decade",a)}}),null),$(jC,U(U({},t),{},{prefixCls:n,onSelect:e=>{u("date"===s?"date":"month",e),c(e,"mouse")}}),null)])}function FC(e,t,n){return n?$("div",{class:`${e}-footer-extra`},[n(t)]):null}function LC(e){let t,n,{prefixCls:o,components:r={},needConfirmButton:l,onNow:i,onOk:a,okDisabled:s,showNow:c,locale:u}=e;if(l){const e=r.button||"button";i&&!1!==c&&(t=$("li",{class:`${o}-now`},[$("a",{class:`${o}-now-btn`,onClick:i},[u.now])])),n=l&&$("li",{class:`${o}-ok`},[$(e,{disabled:s,onClick:e=>{e.stopPropagation(),a&&a()}},{default:()=>[u.ok]})])}return t||n?$("ul",{class:`${o}-ranges`},[t,n]):null}HC.displayName="YearPanel",HC.inheritAttrs=!1;const _C=r({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=d((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),r=d((()=>24%e.hourStep==0)),l=d((()=>60%e.minuteStep==0)),i=d((()=>60%e.secondStep==0)),a=yw(),{operationRef:s,onSelect:u,hideRanges:p,defaultOpenValue:v}=a,{inRange:h,panelPosition:g,rangedValue:m,hoverRangedValue:b}=hC(),y=f({}),[x,S]=Sp(null,{value:M(e,"value"),defaultValue:e.defaultValue,postState:t=>!t&&(null==v?void 0:v.value)&&"time"===e.picker?v.value:t}),[w,C]=Sp(null,{value:M(e,"pickerValue"),defaultValue:e.defaultPickerValue||x.value,postState:t=>{const{generateConfig:n,showTime:o,defaultValue:r}=e,l=n.getNow();return t?!x.value&&e.showTime?Cw(n,Array.isArray(t)?t[0]:t,"object"==typeof o?o.defaultValue||l:r||l):t:l}}),k=t=>{C(t),e.onPickerValueChange&&e.onPickerValueChange(t)},O=t=>{const n=jw[e.picker];return n?n(t):t},[I,P]=Sp((()=>"time"===e.picker?"time":O("date")),{value:M(e,"mode")});c((()=>e.picker),(()=>{P(e.picker)}));const E=f(I.value),T=(t,n)=>{const{onPanelChange:o,generateConfig:r}=e,l=O(t||I.value);var i;i=I.value,E.value=i,P(l),o&&(I.value!==l||qw(r,w.value,w.value))&&o(n,l)},A=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{picker:r,generateConfig:l,onSelect:i,onChange:a,disabledDate:s}=e;(I.value===r||o)&&(S(t),i&&i(t),u&&u(t,n),!a||qw(l,t,x.value)||(null==s?void 0:s(t))||a(t))},B=e=>!(!y.value||!y.value.onKeydown)&&([sd.LEFT,sd.RIGHT,sd.UP,sd.DOWN,sd.PAGE_UP,sd.PAGE_DOWN,sd.ENTER].includes(e.which)&&e.preventDefault(),y.value.onKeydown(e)),D=e=>{y.value&&y.value.onBlur&&y.value.onBlur(e)},z=()=>{const{generateConfig:t,hourStep:n,minuteStep:o,secondStep:a}=e,s=t.getNow(),c=function(e,t,n,o,r,l){const i=Math.floor(e/o)*o;if(i{const{prefixCls:t,direction:n}=e;return pe(`${t}-panel`,{[`${t}-panel-has-range`]:m&&m.value&&m.value[0]&&m.value[1],[`${t}-panel-has-range-hover`]:b&&b.value&&b.value[0]&&b.value[1],[`${t}-panel-rtl`]:"rtl"===n})}));return bw(q(q({},a),{mode:I,hideHeader:d((()=>{var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=a.hideHeader)||void 0===t?void 0:t.value})),hidePrevBtn:d((()=>h.value&&"right"===g.value)),hideNextBtn:d((()=>h.value&&"left"===g.value))})),c((()=>e.value),(()=>{e.value&&C(e.value)})),()=>{const{prefixCls:t="ant-picker",locale:r,generateConfig:l,disabledDate:i,picker:a="date",tabindex:c=0,showNow:u,showTime:d,showToday:v,renderExtraFooter:f,onMousedown:h,onOk:m,components:b}=e;let S;s&&"right"!==g.value&&(s.value={onKeydown:B,onClose:()=>{y.value&&y.value.onClose&&y.value.onClose()}});const C=q(q(q({},n),e),{operationRef:y,prefixCls:t,viewDate:w.value,value:x.value,onViewDateChange:k,sourceMode:E.value,onPanelChange:T,disabledDate:i});switch(delete C.onChange,delete C.onSelect,I.value){case"decade":S=$(Lw,U(U({},C),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null);break;case"year":S=$(HC,U(U({},C),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null);break;case"month":S=$(MC,U(U({},C),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null);break;case"quarter":S=$(BC,U(U({},C),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null);break;case"week":S=$(wC,U(U({},C),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null);break;case"time":delete C.showTime,S=$(pC,U(U(U({},C),"object"==typeof d?d:null),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null);break;default:S=$(d?SC:$C,U(U({},C),{},{onSelect:(e,t)=>{k(e),A(e,t)}}),null)}let O,M,P;if((null==p?void 0:p.value)||(O=FC(t,I.value,f),M=LC({prefixCls:t,components:b,needConfirmButton:o.value,okDisabled:!x.value||i&&i(x.value),locale:r,showNow:u,onNow:o.value&&z,onOk:()=>{x.value&&(A(x.value,"submit",!0),m&&m(x.value))}})),v&&"date"===I.value&&"date"===a&&!d){const e=l.getNow(),n=`${t}-today-btn`,o=i&&i(e);P=$("a",{class:pe(n,o&&`${n}-disabled`),"aria-disabled":o,onClick:()=>{o||A(e,"mouse",!0)}},[r.today])}return $("div",{tabindex:c,class:pe(R.value,n.class),style:n.style,onKeydown:B,onBlur:D,onMousedown:h},[S,O||M||P?$("div",{class:`${t}-footer`},[O,M,P]):null])}}}),WC=e=>$(_C,e),KC={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function VC(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:l,dropdownClassName:i,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:p}=gw(e),v=`${o}-dropdown`;return $(rd,{showAction:[],hideAction:[],popupPlacement:void 0!==d?d:"rtl"===p?"bottomRight":"bottomLeft",builtinPlacements:KC,prefixCls:v,popupTransitionName:s,popupAlign:a,popupVisible:l,popupClassName:pe(i,{[`${v}-range`]:u,[`${v}-rtl`]:"rtl"===p}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const XC=r({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup:e=>()=>e.presets.length?$("div",{class:`${e.prefixCls}-presets`},[$("ul",null,[e.presets.map(((t,n)=>{let{label:o,value:r}=t;return $("li",{key:n,onClick:()=>{e.onClick(r)},onMouseenter:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,r)},onMouseleave:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,null)}},[o])}))])]):null});function GC(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:l,onKeydown:a,blurToCancel:s,onSubmit:u,onCancel:p,onFocus:v,onBlur:f}=e;const h=g(!1),m=g(!1),y=g(!1),$=g(!1),x=g(!1),S=d((()=>({onMousedown:()=>{h.value=!0,r(!0)},onKeydown:e=>{if(a(e,(()=>{x.value=!0})),!x.value){switch(e.which){case sd.ENTER:return t.value?!1!==u()&&(h.value=!0):r(!0),void e.preventDefault();case sd.TAB:return void(h.value&&t.value&&!e.shiftKey?(h.value=!1,e.preventDefault()):!h.value&&t.value&&!l(e)&&e.shiftKey&&(h.value=!0,e.preventDefault()));case sd.ESC:return h.value=!0,void p()}t.value||[sd.SHIFT].includes(e.which)?h.value||l(e):r(!0)}},onFocus:e=>{h.value=!0,m.value=!0,v&&v(e)},onBlur:e=>{!y.value&&o(document.activeElement)?(s.value?setTimeout((()=>{let{activeElement:e}=document;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;o(e)&&p()}),0):t.value&&(r(!1),$.value&&u()),m.value=!1,f&&f(e)):y.value=!1}})));c(t,(()=>{$.value=!1})),c(n,(()=>{$.value=!0}));const w=g();return i((()=>{var e;w.value=(e=e=>{const n=function(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t.value){const e=o(n);e?m.value&&!e||r(!1):(y.value=!0,rt((()=>{y.value=!1})))}},!zw&&"undefined"!=typeof window&&window.addEventListener&&(zw=e=>{[...Rw].forEach((t=>{t(e)}))},window.addEventListener("mousedown",zw)),Rw.add(e),()=>{Rw.delete(e),0===Rw.size&&(window.removeEventListener("mousedown",zw),zw=null)})})),b((()=>{w.value&&w.value()})),[S,{focused:m,typing:h}]}function YC(e){let{valueTexts:t,onTextChange:n}=e;const o=f("");function r(){o.value=t.value[0]}return c((()=>[...t.value]),(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.join("||")!==n.join("||")&&t.value.every((e=>e!==o.value))&&r()}),{immediate:!0}),[o,function(e){o.value=e,n(e)},r]}function UC(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=up((()=>{if(!e.value)return[[""],""];let t="";const l=[];for(let i=0;it[0]!==e[0]||!Lx(t[1],e[1])));return[d((()=>l.value[0])),d((()=>l.value[1]))]}function qC(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=f(null);let i;function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];rt.cancel(i),t?l.value=e:i=rt((()=>{l.value=e}))}const[,s]=UC(l,{formatList:n,generateConfig:o,locale:r});function u(){a(null,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}return c(e,(()=>{u(!0)})),b((()=>{rt.cancel(i)})),[s,function(e){a(e)},u]}function QC(e,t){return d((()=>{if(null==e?void 0:e.value)return e.value;if(null==t?void 0:t.value){mn(!1,"`ranges` is deprecated. Please use `presets` instead.");return Object.keys(t.value).map((e=>{const n=t.value[e];return{label:e,value:"function"==typeof n?n():n}}))}return[]}))}const ZC=r({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=f(null),l=QC(d((()=>e.presets))),i=d((()=>{var t;return null!==(t=e.picker)&&void 0!==t?t:"date"})),a=d((()=>"date"===i.value&&!!e.showTime||"time"===i.value)),s=d((()=>lC(Bw(e.format,i.value,e.showTime,e.use12Hours)))),u=f(null),p=f(null),v=f(null),[h,g]=Sp(null,{value:M(e,"value"),defaultValue:e.defaultValue}),m=f(h.value),b=e=>{m.value=e},y=f(null),[x,S]=Sp(!1,{value:M(e,"open"),defaultValue:e.defaultOpen,postState:t=>!e.disabled&&t,onChange:t=>{e.onOpenChange&&e.onOpenChange(t),!t&&y.value&&y.value.onClose&&y.value.onClose()}}),[w,C]=UC(m,{formatList:s,generateConfig:M(e,"generateConfig"),locale:M(e,"locale")}),[k,O,I]=YC({valueTexts:w,onTextChange:t=>{const n=eC(t,{locale:e.locale,formatList:s.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||b(n)}}),P=t=>{const{onChange:n,generateConfig:o,locale:r}=e;b(t),g(t),n&&!qw(o,h.value,t)&&n(t,t?Jw(t,{generateConfig:o,locale:r,format:s.value[0]}):"")},E=t=>{e.disabled&&t||S(t)},T=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),E(!0))},[A,{focused:B,typing:D}]=GC({blurToCancel:a,open:x,value:k,triggerOpen:E,forwardKeydown:e=>!!(x.value&&y.value&&y.value.onKeydown)&&y.value.onKeydown(e),isClickOutside:e=>!Nw([u.value,p.value,v.value],e),onSubmit:()=>!(!m.value||e.disabledDate&&e.disabledDate(m.value)||(P(m.value),E(!1),I(),0)),onCancel:()=>{E(!1),b(h.value),I()},onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)},onFocus:t=>{var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)}});c([x,w],(()=>{x.value||(b(h.value),w.value.length&&""!==w.value[0]?C.value!==k.value&&I():O(""))})),c(i,(()=>{x.value||I()})),c(h,(()=>{b(h.value)}));const[z,R,j]=qC(k,{formatList:s,generateConfig:M(e,"generateConfig"),locale:M(e,"locale")});return bw({operationRef:y,hideHeader:d((()=>"time"===i.value)),onSelect:(e,t)=>{("submit"===t||"key"!==t&&!a.value)&&(P(e),E(!1))},open:x,defaultOpenValue:M(e,"defaultOpenValue"),onDateMouseenter:R,onDateMouseleave:j}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:t="rc-picker",id:o,tabindex:i,dropdownClassName:a,dropdownAlign:c,popupStyle:d,transitionName:f,generateConfig:g,locale:y,inputReadOnly:S,allowClear:w,autofocus:C,picker:I="date",defaultOpenValue:M,suffixIcon:R,clearIcon:N,disabled:H,placeholder:F,getPopupContainer:L,panelRender:_,onMousedown:W,onMouseenter:K,onMouseleave:V,onContextmenu:X,onClick:G,onSelect:Y,direction:Q,autocomplete:Z="off"}=e,J=q(q(q({},e),n),{class:pe({[`${t}-panel-focused`]:!D.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let ee=$("div",{class:`${t}-panel-layout`},[$(XC,{prefixCls:t,presets:l.value,onClick:e=>{P(e),E(!1)}},null),$(WC,U(U({},J),{},{generateConfig:g,value:m.value,locale:y,tabindex:-1,onSelect:e=>{null==Y||Y(e),b(e)},direction:Q,onPanelChange:(t,n)=>{const{onPanelChange:o}=e;j(!0),null==o||o(t,n)}}),null)]);_&&(ee=_(ee));const te=$("div",{class:`${t}-panel-container`,ref:u,onMousedown:e=>{e.preventDefault()}},[ee]);let ne,oe;R&&(ne=$("span",{class:`${t}-suffix`},[R])),w&&h.value&&!H&&(oe=$("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation(),P(null),E(!1)},class:`${t}-clear`,role:"button"},[N||$("span",{class:`${t}-clear-btn`},null)]));const re=q(q(q(q({id:o,tabindex:i,disabled:H,readonly:S||"function"==typeof s.value[0]||!D.value,value:z.value||k.value,onInput:e=>{O(e.target.value)},autofocus:C,placeholder:F,ref:r,title:k.value},A.value),{size:Dw(I,s.value[0],g)}),iC(e)),{autocomplete:Z}),le=e.inputRender?e.inputRender(re):$("input",re,null),ie="rtl"===Q?"bottomRight":"bottomLeft";return $("div",{ref:v,class:pe(t,n.class,{[`${t}-disabled`]:H,[`${t}-focused`]:B.value,[`${t}-rtl`]:"rtl"===Q}),style:n.style,onMousedown:W,onMouseup:T,onMouseenter:K,onMouseleave:V,onContextmenu:X,onClick:G},[$("div",{class:pe(`${t}-input`,{[`${t}-input-placeholder`]:!!z.value}),ref:p},[le,ne,oe]),$(VC,{visible:x.value,popupStyle:d,prefixCls:t,dropdownClassName:a,dropdownAlign:c,getPopupContainer:L,transitionName:f,popupPlacement:ie,direction:Q},{default:()=>[$("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>te})])}}});function JC(e,t,n,o){const r=Zw(e,n,o,1);function l(n){return n(e,t)?"same":n(r,t)?"closing":"far"}switch(n){case"year":return l(((e,t)=>function(e,t,n){const o=Ww(t,n);return"boolean"==typeof o?o:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(o,e,t)));case"quarter":case"month":return l(((e,t)=>Kw(o,e,t)));default:return l(((e,t)=>Gw(o,e,t)))}}function ek(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const l=f([aC(o,0),aC(o,1)]),i=f(null),a=d((()=>aC(t.value,0))),s=d((()=>aC(t.value,1))),c=e=>l.value[e]?l.value[e]:aC(i.value,e)||function(e,t,n,o){const r=aC(e,0),l=aC(e,1);if(0===t)return r;if(r&&l)switch(JC(r,l,n,o)){case"same":case"closing":return r;default:return Zw(l,n,o,-1)}return r}(t.value,e,n.value,r.value)||a.value||s.value||r.value.getNow(),u=f(null),p=f(null);return m((()=>{u.value=c(0),p.value=c(1)})),[u,p,function(e,n){if(e){let o=sC(i.value,e,n);l.value=sC(l.value,null,n)||[null,null];const r=(n+1)%2;aC(t.value,r)||(o=sC(o,e,r)),i.value=o}else(a.value||s.value)&&(i.value=null)}]}function tk(e){return!!H()&&(F(e),!0)}function nk(e){var t;const n="function"==typeof(o=e)?o():h(o);var o;return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function ok(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=g(),o=()=>n.value=Boolean(e());return o(),function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];u()?i(e):t?e():S(e)}(o,t),n}var rk;const lk="undefined"!=typeof window;lk&&(null===(rk=null===window||void 0===window?void 0:window.navigator)||void 0===rk?void 0:rk.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const ik=lk?window:void 0;var ak=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]?arguments[1]:{width:0,height:0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{box:o="content-box"}=n,r=g(t.width),l=g(t.height);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=ik}=n,r=ak(n,["window"]);let l;const i=ok((()=>o&&"ResizeObserver"in o)),a=()=>{l&&(l.disconnect(),l=void 0)},s=c((()=>nk(e)),(e=>{a(),i.value&&o&&e&&(l=new ResizeObserver(t),l.observe(e,r))}),{immediate:!0,flush:"post"}),u=()=>{a(),s()};tk(u)}(e,(e=>{let[t]=e;const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;n?(r.value=n.reduce(((e,t)=>{let{inlineSize:n}=t;return e+n}),0),l.value=n.reduce(((e,t)=>{let{blockSize:n}=t;return e+n}),0)):(r.value=t.contentRect.width,l.value=t.contentRect.height)}),n),c((()=>nk(e)),(e=>{r.value=e?t.width:0,l.value=e?t.height:0})),{width:r,height:l}}function ck(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function uk(e,t,n,o){return!!e||(!(!o||!o[t])||!!n[(t+1)%2])}const dk=r({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(t,n){let{attrs:o,expose:r}=n;const l=d((()=>"date"===t.picker&&!!t.showTime||"time"===t.picker)),i=QC(d((()=>t.presets)),d((()=>t.ranges))),a=f({}),s=f(null),u=f(null),p=f(null),v=f(null),h=f(null),g=f(null),m=f(null),b=f(null),y=d((()=>lC(Bw(t.format,t.picker,t.showTime,t.use12Hours)))),[x,S]=Sp(0,{value:M(t,"activePickerIndex")}),w=f(null),C=d((()=>{const{disabled:e}=t;return Array.isArray(e)?e:[e||!1,e||!1]})),[k,O]=Sp(null,{value:M(t,"value"),defaultValue:t.defaultValue,postState:e=>"time"!==t.picker||t.order?ck(e,t.generateConfig):e}),[I,P,E]=ek({values:k,picker:M(t,"picker"),defaultDates:t.defaultPickerValue,generateConfig:M(t,"generateConfig")}),[T,A]=Sp(k.value,{postState:e=>{let n=e;if(C.value[0]&&C.value[1])return n;for(let o=0;o<2;o+=1)!C.value[o]||aC(n,o)||aC(t.allowEmpty,o)||(n=sC(n,t.generateConfig.getNow(),o));return n}}),[B,D]=Sp([t.picker,t.picker],{value:M(t,"mode")});c((()=>t.picker),(()=>{D([t.picker,t.picker])}));const[z,R]=function(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:l,disabled:i,generateConfig:a}=e;const s=d((()=>aC(r.value,0))),c=d((()=>aC(r.value,1)));function u(e){return a.value.locale.getWeekFirstDate(o.value.locale,e)}function p(e){return 100*a.value.getYear(e)+a.value.getMonth(e)}function v(e){return 10*a.value.getYear(e)+Vw(a.value,e)}return[e=>{var o;if(l&&(null===(o=null==l?void 0:l.value)||void 0===o?void 0:o.call(l,e)))return!0;if(i[1]&&c)return!Yw(a.value,e,c.value)&&a.value.isAfter(e,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return v(e)>v(c.value);case"month":return p(e)>p(c.value);case"week":return u(e)>u(c.value);default:return!Yw(a.value,e,c.value)&&a.value.isAfter(e,c.value)}return!1},e=>{var o;if(null===(o=l.value)||void 0===o?void 0:o.call(l,e))return!0;if(i[0]&&s)return!Yw(a.value,e,c.value)&&a.value.isAfter(s.value,e);if(t.value[0]&&s.value)switch(n.value){case"quarter":return v(e)!C.value[x.value]&&e,onChange:e=>{var n;null===(n=t.onOpenChange)||void 0===n||n.call(t,e),!e&&w.value&&w.value.onClose&&w.value.onClose()}}),H=d((()=>j.value&&0===x.value)),F=d((()=>j.value&&1===x.value)),L=f(0),_=f(0),W=f(0),{width:K}=sk(s);c([j,K],(()=>{!j.value&&s.value&&(W.value=K.value)}));const{width:V}=sk(u),{width:X}=sk(b),{width:G}=sk(p),{width:Y}=sk(h);c([x,j,V,X,G,Y,()=>t.direction],(()=>{_.value=0,x.value?p.value&&h.value&&(_.value=G.value+Y.value,V.value&&X.value&&_.value>V.value-X.value-("rtl"===t.direction||b.value.offsetLeft>_.value?0:b.value.offsetLeft)&&(L.value=_.value)):0===x.value&&(L.value=0)}),{immediate:!0});const Q=f();function Z(e,t){if(e)clearTimeout(Q.value),a.value[t]=!0,S(t),N(e),j.value||E(null,t);else if(x.value===t){N(e);const t=a.value;Q.value=setTimeout((()=>{t===a.value&&(a.value={})}))}}function J(e){Z(!0,e),setTimeout((()=>{const t=[g,m][e];t.value&&t.value.focus()}),0)}function ee(e,n){let o=e,r=aC(o,0),l=aC(o,1);const{generateConfig:i,locale:s,picker:c,order:u,onCalendarChange:d,allowEmpty:p,onChange:v,showTime:f}=t;r&&l&&i.isAfter(r,l)&&("week"===c&&!Uw(i,s.locale,r,l)||"quarter"===c&&!Xw(i,r,l)||"week"!==c&&"quarter"!==c&&"time"!==c&&!(f?qw(i,r,l):Yw(i,r,l))?(0===n?(o=[r,null],l=null):(r=null,o=[null,l]),a.value={[n]:!0}):"time"===c&&!1===u||(o=ck(o,i))),A(o);const h=o&&o[0]?Jw(o[0],{generateConfig:i,locale:s,format:y.value[0]}):"",g=o&&o[1]?Jw(o[1],{generateConfig:i,locale:s,format:y.value[0]}):"";d&&d(o,[h,g],{range:0===n?"start":"end"});const m=uk(r,0,C.value,p),b=uk(l,1,C.value,p);(null===o||m&&b)&&(O(o),!v||qw(i,aC(k.value,0),r)&&qw(i,aC(k.value,1),l)||v(o,[h,g]));let $=null;0!==n||C.value[1]?1!==n||C.value[0]||($=0):$=1,null===$||$===x.value||a.value[$]&&aC(o,$)||!aC(o,n)?Z(!1,n):J($)}const te=e=>!!(j&&w.value&&w.value.onKeydown)&&w.value.onKeydown(e),ne={formatList:y,generateConfig:M(t,"generateConfig"),locale:M(t,"locale")},[oe,re]=UC(d((()=>aC(T.value,0))),ne),[le,ie]=UC(d((()=>aC(T.value,1))),ne),ae=(e,n)=>{const o=eC(e,{locale:t.locale,formatList:y.value,generateConfig:t.generateConfig});o&&!(0===n?z:R)(o)&&(A(sC(T.value,o,n)),E(o,n))},[se,ce,ue]=YC({valueTexts:oe,onTextChange:e=>ae(e,0)}),[de,ve,fe]=YC({valueTexts:le,onTextChange:e=>ae(e,1)}),[he,ge]=wp(null),[me,be]=wp(null),[ye,$e,xe]=qC(se,ne),[Se,we,Ce]=qC(de,ne),ke=(e,n)=>({forwardKeydown:te,onBlur:e=>{var n;null===(n=t.onBlur)||void 0===n||n.call(t,e)},isClickOutside:e=>!Nw([u.value,p.value,v.value,s.value],e),onFocus:n=>{var o;S(e),null===(o=t.onFocus)||void 0===o||o.call(t,n)},triggerOpen:t=>{Z(t,e)},onSubmit:()=>{if(!T.value||t.disabledDate&&t.disabledDate(T.value[e]))return!1;ee(T.value,e),n()},onCancel:()=>{Z(!1,e),A(k.value),n()}}),[Oe,{focused:Ie,typing:Me}]=GC(q(q({},ke(0,ue)),{blurToCancel:l,open:H,value:se,onKeydown:(e,n)=>{var o;null===(o=t.onKeydown)||void 0===o||o.call(t,e,n)}})),[Pe,{focused:Ee,typing:Te}]=GC(q(q({},ke(1,fe)),{blurToCancel:l,open:F,value:de,onKeydown:(e,n)=>{var o;null===(o=t.onKeydown)||void 0===o||o.call(t,e,n)}})),Ae=e=>{var n;null===(n=t.onClick)||void 0===n||n.call(t,e),j.value||g.value.contains(e.target)||m.value.contains(e.target)||(C.value[0]?C.value[1]||J(1):J(0))},Be=e=>{var n;null===(n=t.onMousedown)||void 0===n||n.call(t,e),!j.value||!Ie.value&&!Ee.value||g.value.contains(e.target)||m.value.contains(e.target)||e.preventDefault()},De=d((()=>{var e;return(null===(e=k.value)||void 0===e?void 0:e[0])?Jw(k.value[0],{locale:t.locale,format:"YYYYMMDDHHmmss",generateConfig:t.generateConfig}):""})),ze=d((()=>{var e;return(null===(e=k.value)||void 0===e?void 0:e[1])?Jw(k.value[1],{locale:t.locale,format:"YYYYMMDDHHmmss",generateConfig:t.generateConfig}):""}));c([j,oe,le],(()=>{j.value||(A(k.value),oe.value.length&&""!==oe.value[0]?re.value!==se.value&&ue():ce(""),le.value.length&&""!==le.value[0]?ie.value!==de.value&&fe():ve(""))})),c([De,ze],(()=>{A(k.value)})),r({focus:()=>{g.value&&g.value.focus()},blur:()=>{g.value&&g.value.blur(),m.value&&m.value.blur()}});const Re=d((()=>j.value&&me.value&&me.value[0]&&me.value[1]&&t.generateConfig.isAfter(me.value[1],me.value[0])?me.value:null));function je(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{generateConfig:o,showTime:r,dateRender:l,direction:i,disabledTime:a,prefixCls:s,locale:c}=t;let u=r;if(r&&"object"==typeof r&&r.defaultValue){const e=r.defaultValue;u=q(q({},r),{defaultValue:aC(e,x.value)||void 0})}let d=null;return l&&(d=e=>{let{current:t,today:n}=e;return l({current:t,today:n,info:{range:x.value?"end":"start"}})}),$(gC,{value:{inRange:!0,panelPosition:e,rangedValue:he.value||T.value,hoverRangedValue:Re.value}},{default:()=>[$(WC,U(U(U({},t),n),{},{dateRender:d,showTime:u,mode:B.value[x.value],generateConfig:o,style:void 0,direction:i,disabledDate:0===x.value?z:R,disabledTime:e=>!!a&&a(e,0===x.value?"start":"end"),class:pe({[`${s}-panel-focused`]:0===x.value?!Me.value:!Te.value}),value:aC(T.value,x.value),locale:c,tabIndex:-1,onPanelChange:(n,r)=>{var l,i,a;0===x.value&&xe(!0),1===x.value&&Ce(!0),l=sC(B.value,r,x.value),i=sC(T.value,n,x.value),D(l),null===(a=t.onPanelChange)||void 0===a||a.call(t,i,l);let s=n;"right"===e&&B.value[x.value]===r&&(s=Zw(s,r,o,-1)),E(s,x.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===x.value?aC(T.value,1):aC(T.value,0)}),null)]})}return bw({operationRef:w,hideHeader:d((()=>"time"===t.picker)),onDateMouseenter:e=>{be(sC(T.value,e,x.value)),0===x.value?$e(e):we(e)},onDateMouseleave:()=>{be(sC(T.value,null,x.value)),0===x.value?xe():Ce()},hideRanges:d((()=>!0)),onSelect:(e,t)=>{const n=sC(T.value,e,x.value);"submit"===t||"key"!==t&&!l.value?(ee(n,x.value),0===x.value?xe():Ce()):A(n)},open:j}),()=>{const{prefixCls:n="rc-picker",id:r,popupStyle:a,dropdownClassName:c,transitionName:d,dropdownAlign:f,getPopupContainer:S,generateConfig:w,locale:O,placeholder:M,autofocus:A,picker:D="date",showTime:z,separator:R="~",disabledDate:N,panelRender:H,allowClear:F,suffixIcon:K,clearIcon:V,inputReadOnly:X,renderExtraFooter:G,onMouseenter:Y,onMouseleave:Q,onMouseup:J,onOk:te,components:ne,direction:oe,autocomplete:re="off"}=t,le="rtl"===oe?{right:`${_.value}px`}:{left:`${_.value}px`},ie=$("div",{class:pe(`${n}-range-wrapper`,`${n}-${D}-range-wrapper`),style:{minWidth:`${W.value}px`}},[$("div",{ref:b,class:`${n}-range-arrow`,style:le},null),function(){let t;const o=FC(n,B.value[x.value],G),r=LC({prefixCls:n,components:ne,needConfirmButton:l.value,okDisabled:!aC(T.value,x.value)||N&&N(T.value[x.value]),locale:O,onOk:()=>{aC(T.value,x.value)&&(ee(T.value,x.value),te&&te(T.value))}});if("time"===D||z)t=je();else{const n=0===x.value?I.value:P.value,o=Zw(n,D,w),r=B.value[x.value]===D,l=je(!!r&&"left",{pickerValue:n,onPickerValueChange:e=>{E(e,x.value)}}),i=je("right",{pickerValue:o,onPickerValueChange:e=>{E(Zw(e,D,w,-1),x.value)}});t=$(e,null,"rtl"===oe?[i,r&&l]:[l,r&&i])}let a=$("div",{class:`${n}-panel-layout`},[$(XC,{prefixCls:n,presets:i.value,onClick:e=>{ee(e,null),Z(!1,x.value)},onHover:e=>{ge(e)}},null),$("div",null,[$("div",{class:`${n}-panels`},[t]),(o||r)&&$("div",{class:`${n}-footer`},[o,r])])]);return H&&(a=H(a)),$("div",{class:`${n}-panel-container`,style:{marginLeft:`${L.value}px`},ref:u,onMousedown:e=>{e.preventDefault()}},[a])}()]);let ae,ue;K&&(ae=$("span",{class:`${n}-suffix`},[K])),F&&(aC(k.value,0)&&!C.value[0]||aC(k.value,1)&&!C.value[1])&&(ue=$("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation();let t=k.value;C.value[0]||(t=sC(t,null,0)),C.value[1]||(t=sC(t,null,1)),ee(t,null),Z(!1,x.value)},class:`${n}-clear`},[V||$("span",{class:`${n}-clear-btn`},null)]));const fe={size:Dw(D,y.value[0],w)};let he=0,me=0;p.value&&v.value&&h.value&&(0===x.value?me=p.value.offsetWidth:(he=_.value,me=v.value.offsetWidth));const be="rtl"===oe?{right:`${he}px`}:{left:`${he}px`};return $("div",U({ref:s,class:pe(n,`${n}-range`,o.class,{[`${n}-disabled`]:C.value[0]&&C.value[1],[`${n}-focused`]:0===x.value?Ie.value:Ee.value,[`${n}-rtl`]:"rtl"===oe}),style:o.style,onClick:Ae,onMouseenter:Y,onMouseleave:Q,onMousedown:Be,onMouseup:J},iC(t)),[$("div",{class:pe(`${n}-input`,{[`${n}-input-active`]:0===x.value,[`${n}-input-placeholder`]:!!ye.value}),ref:p},[$("input",U(U(U({id:r,disabled:C.value[0],readonly:X||"function"==typeof y.value[0]||!Me.value,value:ye.value||se.value,onInput:e=>{ce(e.target.value)},autofocus:A,placeholder:aC(M,0)||"",ref:g},Oe.value),fe),{},{autocomplete:re}),null)]),$("div",{class:`${n}-range-separator`,ref:h},[R]),$("div",{class:pe(`${n}-input`,{[`${n}-input-active`]:1===x.value,[`${n}-input-placeholder`]:!!Se.value}),ref:v},[$("input",U(U(U({disabled:C.value[1],readonly:X||"function"==typeof y.value[0]||!Te.value,value:Se.value||de.value,onInput:e=>{ve(e.target.value)},placeholder:aC(M,1)||"",ref:m},Pe.value),fe),{},{autocomplete:re}),null)]),$("div",{class:`${n}-active-bar`,style:q(q({},be),{width:`${me}px`,position:"absolute"})},null),ae,ue,$(VC,{visible:j.value,popupStyle:a,prefixCls:n,dropdownClassName:c,dropdownAlign:f,getPopupContainer:S,transitionName:d,range:!0,direction:oe},{default:()=>[$("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>ie})])}}}),pk=dk;const vk={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:Ii.any,required:Boolean},fk=r({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Re(vk,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:o,expose:r}=t;const l=f(void 0===e.checked?e.defaultChecked:e.checked),i=f();c((()=>e.checked),(()=>{l.value=e.checked})),r({focus(){var e;null===(e=i.value)||void 0===e||e.focus()},blur(){var e;null===(e=i.value)||void 0===e||e.blur()}});const a=f(),s=t=>{if(e.disabled)return;void 0===e.checked&&(l.value=t.target.checked),t.shiftKey=a.value;const n={target:q(q({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(i.value.checked=!!e.checked),o("change",n),a.value=!1},u=e=>{o("click",e),a.value=e.shiftKey};return()=>{const{prefixCls:t,name:o,id:r,type:a,disabled:c,readonly:d,tabindex:p,autofocus:v,value:f,required:h}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=C[t]),e)),{}),O=pe(t,m,{[`${t}-checked`]:l.value,[`${t}-disabled`]:c}),I=q(q({name:o,id:r,type:a,readonly:d,disabled:c,tabindex:p,class:`${t}-input`,checked:!!l.value,autofocus:v,value:f},k),{onChange:s,onClick:u,onFocus:b,onBlur:y,onKeydown:x,onKeypress:S,onKeyup:w,required:h});return $("span",{class:O},[$("input",U({ref:i},I),null),$("span",{class:`${t}-inner`},null)])}}}),hk=Symbol("radioGroupContextKey"),gk=Symbol("radioOptionTypeContextKey"),mk=new Fo("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),bk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:q(q({},Ur(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},yk=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:l,motionDurationMid:i,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:p,colorBgContainerDisabled:v,colorTextDisabled:f,paddingXS:h,radioDotDisabledColor:g,lineType:m,radioDotDisabledSize:b,wireframe:y,colorWhite:$}=e,x=`${t}-inner`;return{[`${t}-wrapper`]:q(q({},Ur(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${m} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:mk,animationDuration:l,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:q(q({},Ur(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${x}`]:{borderColor:o},[`${t}-input:focus-visible + ${x}`]:q({},Jr(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:y?o:$,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${l} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:o,backgroundColor:y?c:o,"&::after":{transform:`scale(${p/r})`,opacity:1,transition:`all ${l} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:v,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${b/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},$k=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:l,colorBorder:i,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:p,controlHeightLG:v,controlHeightSM:f,paddingXS:h,borderRadius:g,borderRadiusSM:m,borderRadiusLG:b,radioCheckedColor:y,radioButtonCheckedBg:$,radioButtonHoverColor:x,radioButtonActiveColor:S,radioSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:k,radioDisabledButtonCheckedColor:O,radioDisabledButtonCheckedBg:I}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*r+"px",background:d,border:`${r}px ${l} ${i}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:i,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${l} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${o}-group-large &`]:{height:v,fontSize:p,lineHeight:v-2*r+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:f,paddingInline:h-r,paddingBlock:0,lineHeight:f-2*r+"px","&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":q({},Jr(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:$,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:x,borderColor:x,"&::before":{backgroundColor:x}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:y,borderColor:y,"&:hover":{color:w,background:x,borderColor:x},"&:active":{color:w,background:S,borderColor:S}},"&-disabled":{color:C,backgroundColor:k,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:k,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:O,backgroundColor:I,borderColor:i,boxShadow:"none"}}}},xk=tl("Radio",(e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:l,fontSizeLG:i,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:p,controlOutlineWidth:v,colorTextLightSolid:f,wireframe:h}=e,g=`0 0 0 ${v}px ${a}`,m=i-8,b=rl(e,{radioFocusShadow:g,radioButtonFocusShadow:g,radioSize:i,radioDotSize:h?m:i-2*(4+n),radioDotDisabledSize:m,radioCheckedColor:d,radioDotDisabledColor:r,radioSolidCheckedColor:f,radioButtonBg:l,radioButtonCheckedBg:l,radioButtonColor:u,radioButtonHoverColor:s,radioButtonActiveColor:c,radioButtonPaddingHorizontal:t-n,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:p});return[bk(b),yk(b),$k(b)]}));const Sk=()=>({prefixCls:String,checked:ut(),disabled:ut(),isGroup:ut(),value:Ii.any,name:String,id:String,autofocus:ut(),onChange:dt(),onFocus:dt(),onBlur:dt(),onClick:dt(),"onUpdate:checked":dt(),"onUpdate:value":dt()}),wk=r({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:Sk(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:l}=t;const i=Qv(),a=Jv.useInject(),s=p(gk,void 0),c=p(hk,void 0),u=At(),v=d((()=>{var e;return null!==(e=b.value)&&void 0!==e?e:u.value})),h=f(),{prefixCls:g,direction:m,disabled:b}=Il("radio",e),y=d((()=>"button"===(null==c?void 0:c.optionType.value)||"button"===s?`${g.value}-button`:g.value)),x=At(),[S,w]=xk(g);o({focus:()=>{h.value.focus()},blur:()=>{h.value.blur()}});const C=e=>{const t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),i.onFieldChange()},k=e=>{n("change",e),c&&c.onChange&&c.onChange(e)};return()=>{var t;const n=c,{prefixCls:o,id:s=i.id.value}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.value),(e=>{h.value=e,g.value=!1}));return(e=>{v(hk,e)})({onChange:t=>{const n=h.value,{value:r}=t.target;"value"in e||(h.value=r),g.value||r===n||(g.value=!0,o("update:value",r),o("change",t),l.onFieldChange()),S((()=>{g.value=!1}))},value:h,disabled:d((()=>e.disabled)),name:d((()=>e.name)),optionType:d((()=>e.optionType))}),()=>{var t;const{options:o,buttonStyle:c,id:d=l.id.value}=e,v=`${i.value}-group`,f=pe(v,`${v}-${c}`,{[`${v}-${s.value}`]:s.value,[`${v}-rtl`]:"rtl"===a.value},r.class,p.value);let g=null;return g=o&&o.length>0?o.map((t=>{if("string"==typeof t||"number"==typeof t)return $(wk,{key:t,prefixCls:i.value,disabled:e.disabled,value:t,checked:h.value===t},{default:()=>[t]});const{value:n,disabled:o,label:r}=t;return $(wk,{key:`radio-group-value-options-${n}`,prefixCls:i.value,disabled:o||e.disabled,value:n,checked:h.value===n},{default:()=>[r]})})):null===(t=n.default)||void 0===t?void 0:t.call(n),u($("div",U(U({},r),{},{class:f,id:d}),[g]))}}}),kk=r({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:Sk(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Il("radio",e);return(e=>{v(gk,e)})("button"),()=>{var t;return $(wk,U(U(U({},o),e),{},{prefixCls:r.value}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});wk.Group=Ck,wk.Button=kk,wk.install=function(e){return e.component(wk.name,wk),e.component(wk.Group.name,wk.Group),e.component(wk.Button.name,wk.Button),e};function Ok(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:l,value:i,onChange:a,divRef:s}=e,c=o.getYear(i||o.getNow());let u=c-10,d=u+20;n&&(u=o.getYear(n[0]),d=o.getYear(n[1])+1);const p=r&&"年"===r.year?"年":"",v=[];for(let f=u;f{let t=o.setYear(i,e);if(n){const[e,r]=n,l=o.getYear(t),i=o.getMonth(t);l===o.getYear(r)&&i>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),l===o.getYear(e)&&is.value},null)}function Ik(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:l,locale:i,onChange:a,divRef:s}=e,c=l.getMonth(r||l.getNow());let u=0,d=11;if(o){const[e,t]=o,n=l.getYear(r);l.getYear(t)===n&&(d=l.getMonth(t)),l.getYear(e)===n&&(u=l.getMonth(e))}const p=i.shortMonths||l.locale.getShortMonths(i.locale),v=[];for(let f=u;f<=d;f+=1)v.push({label:p[f],value:f});return $(yb,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:v,onChange:e=>{a(l.setMonth(r,e))},getPopupContainer:()=>s.value},null)}function Mk(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:l}=e;return $(Ck,{onChange:e=>{let{target:{value:t}}=e;l(t)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[$(kk,{value:"month"},{default:()=>[n.month]}),$(kk,{value:"year"},{default:()=>[n.year]})]})}Ok.inheritAttrs=!1,Ik.inheritAttrs=!1,Mk.inheritAttrs=!1;const Pk=r({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=f(null),r=Jv.useInject();return Jv.useProvide(r,{isFormItemInput:!1}),()=>{const t=q(q({},e),n),{prefixCls:r,fullscreen:l,mode:i,onChange:a,onModeChange:s}=t,c=q(q({},t),{fullscreen:l,divRef:o});return $("div",{class:`${r}-header`,ref:o},[$(Ok,U(U({},c),{},{onChange:e=>{a(e,"year")}}),null),"month"===i&&$(Ik,U(U({},c),{},{onChange:e=>{a(e,"month")}}),null),$(Mk,U(U({},c),{},{onModeChange:s}),null)])}}}),Ek=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Tk=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Ak=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Bk=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":q({},Tk(rl(e,{inputBorderHoverColor:e.colorBorder})))}),Dk=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:o,borderRadius:r}},zk=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Rk=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":q({},Ak(rl(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:l}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":q({},Ak(rl(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}}}},jk=e=>q(q({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Ek(e.colorTextPlaceholder)),{"&:hover":q({},Tk(e)),"&:focus, &-focused":q({},Ak(e)),"&-disabled, &[disabled]":q({},Bk(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":q({},Dk(e)),"&-sm":q({},zk(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Nk=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:q({},Dk(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:q({},zk(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:q(q({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},Hk=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:q(q(q(q({},Ur(e)),jk(e)),Rk(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}}})}},Fk=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},Lk=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e;return{[`${t}-affix-wrapper`]:q(q(q(q(q({},jk(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:q(q({},Tk(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Fk(e)),{[`${a}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}}),Rk(e,`${t}-affix-wrapper`))}},_k=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:l}=e;return{[`${t}-group`]:q(q(q({},Ur(e)),Nk(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},Wk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function Kk(e){return rl(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const Vk=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Xk=tl("Input",(e=>{const t=Kk(e);return[Hk(t),Vk(t),Lk(t),_k(t),Wk(t),ab(t)]})),Gk=(e,t,n,o)=>{const{lineHeight:r}=e,l=Math.floor(n*r)+2,i=Math.max((t-l)/2,0);return{padding:`${i}px ${o}px ${Math.max(t-l-i,0)}px`}},Yk=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:l,borderRadiusSM:i,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:p,colorTextLightSolid:v,controlHeightSM:f,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:g,pickerBasicCellHoverWithRangeColor:m,pickerPanelCellWidth:b,colorTextDisabled:y,colorBgContainerDisabled:$}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:i,transition:`background ${a}, border ${a}`},[`&:hover:not(${n}-in-view),\n &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:p}},[`&-in-view${n}-selected ${o},\n &-in-view${n}-range-start ${o},\n &-in-view${n}-range-end ${o}`]:{color:v,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single),\n &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:p}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n &-in-view${n}-range-hover-start${n}-range-start-single,\n &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover,\n &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover,\n &-in-view${n}-range-hover-end${n}-range-end-single,\n &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:f,borderTop:`${c}px dashed ${h}`,borderBottom:`${c}px dashed ${h}`,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:g},[`&-in-view${n}-in-range${n}-range-hover::before,\n &-in-view${n}-range-start${n}-range-hover::before,\n &-in-view${n}-range-end${n}-range-hover::before,\n &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before,\n &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before,\n ${t}-panel\n > :not(${t}-date-panel)\n &-in-view${n}-in-range${n}-range-hover-start::before,\n ${t}-panel\n > :not(${t}-date-panel)\n &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:m},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after,\n tr > &-in-view${n}-range-hover-end:first-child::after,\n &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after,\n &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after,\n &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(b-r)/2,borderInlineStart:`${c}px dashed ${h}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after,\n tr > &-in-view${n}-range-hover-start:last-child::after,\n &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after,\n &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after,\n &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(b-r)/2,borderInlineEnd:`${c}px dashed ${h}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:y,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:$}},[`&-disabled${n}-today ${o}::before`]:{borderColor:y}}},Uk=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:l,paddingSM:i,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:p,colorPrimary:v,colorTextHeading:f,colorSplit:h,pickerControlIconBorderWidth:g,colorIcon:m,pickerTextHeight:b,motionDurationMid:y,colorIconHover:$,fontWeightStrong:x,pickerPanelCellHeight:S,pickerCellPaddingVertical:w,colorTextDisabled:C,colorText:k,fontSize:O,pickerBasicCellHoverWithRangeColor:I,motionDurationSlow:M,pickerPanelWithoutTimeCellHeight:P,pickerQuarterPanelContentHeight:E,colorLink:T,colorLinkActive:A,colorLinkHover:B,pickerDateHoverRangeBorderColor:D,borderRadiusSM:z,colorTextLightSolid:R,borderRadius:j,controlItemBgHover:N,pickerTimePanelColumnHeight:H,pickerTimePanelColumnWidth:F,pickerTimePanelCellHeight:L,controlItemBgActive:_,marginXXS:W}=e,K=7*l+2*i+4,V=(K-2*a)/3-o-i;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${h}`,borderRadius:p,outline:"none","&-focused":{borderColor:v},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:K},"&-header":{display:"flex",padding:`0 ${a}px`,color:f,borderBottom:`${u}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:m,lineHeight:`${b}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:$}},"&-view":{flex:"auto",fontWeight:x,lineHeight:`${b}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:v}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:g,borderBlockEndWidth:0,borderInlineStartWidth:g,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:g,borderBlockEndWidth:0,borderInlineStartWidth:g,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:S+2*w,color:k,verticalAlign:"middle"}},"&-cell":q({padding:`${w}px 0`,color:C,cursor:"pointer","&-in-view":{color:k}},Yk(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n},\n &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:I,transition:`all ${M}`,content:'""'}},[`&-date-panel\n ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start\n ${n}::after`]:{insetInlineEnd:-(l-S)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(l-S)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:4*P},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:E}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:b-2*u+"px",textAlign:"center","&-extra":{padding:`0 ${i}`,lineHeight:b-2*u+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:T,"&:hover":{color:B},"&:active":{color:A},[`&${t}-today-btn-disabled`]:{color:C,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:V,borderInlineStart:`${u}px dashed ${D}`,borderStartStartRadius:z,borderBottomStartRadius:z,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:V,borderInlineEnd:`${u}px dashed ${D}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:z,borderBottomEndRadius:z}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:V,borderInlineEnd:`${u}px dashed ${D}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:j,borderEndEndRadius:j,[`${t}-panel-rtl &`]:{insetInlineStart:V,borderInlineStart:`${u}px dashed ${D}`,borderStartStartRadius:j,borderEndStartRadius:j,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-cell`]:{[`&:hover ${n},\n &-selected ${n},\n ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:z,borderEndStartRadius:z},"&:last-child":{borderStartEndRadius:z,borderEndEndRadius:z}},"&:hover td":{background:N},"&-selected td,\n &-selected:hover td":{background:v,[`&${t}-cell-week`]:{color:new pr(R).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:R},[n]:{color:R}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-content`]:{width:7*l,th:{width:l}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:H},"&-column":{flex:"1 0 auto",width:F,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:H-L,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${h}`},"&-active":{background:new pr(_).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:W,[`${t}-time-panel-cell-inner`]:{display:"block",width:F-2*W,height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(F-L)/2,color:k,lineHeight:`${L}px`,borderRadius:z,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:_}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:H-L+2*s}}}},qk=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:l,colorWarningOutline:i}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":q({},Ak(rl(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:l},"&-focused, &:focus":q({},Ak(rl(e,{inputBorderActiveColor:l,inputBorderHoverColor:l,controlOutline:i}))),[`${t}-active-bar`]:{background:l}}}}},Qk=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:l,inputPaddingHorizontal:i,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:p,colorBgContainerDisabled:v,colorTextDisabled:f,colorTextPlaceholder:h,controlHeightLG:g,fontSizeLG:m,controlHeightSM:b,inputPaddingHorizontalSM:y,paddingXS:$,marginXS:x,colorTextDescription:S,lineWidthBold:w,lineHeight:C,colorPrimary:k,motionDurationSlow:O,zIndexPopup:I,paddingXXS:M,paddingSM:P,pickerTextHeight:E,controlItemBgActive:T,colorPrimaryBorder:A,sizePopupArrow:B,borderRadiusXS:D,borderRadiusOuter:z,colorBgElevated:R,borderRadiusLG:j,boxShadowSecondary:N,borderRadiusSM:H,colorSplit:F,controlItemBgHover:L,presetsWidth:_,presetsMaxWidth:W}=e;return[{[t]:q(q(q({},Ur(e)),Gk(e,r,l,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${p}, box-shadow ${p}`,"&:hover, &-focused":q({},Tk(e)),"&-focused":q({},Ak(e)),[`&${t}-disabled`]:{background:v,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:f}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":q(q({},jk(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":q(q({},Gk(e,g,m,i)),{[`${t}-input > input`]:{fontSize:m}}),"&-small":q({},Gk(e,b,l,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:$/2,color:f,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${p}, color ${p}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:m,color:f,fontSize:m,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:S},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:i,background:k,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${$}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":q(q(q({},Ur(e)),Uk(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Mm},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Om},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Pm},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Im},[`${t}-panel > ${t}-time-panel`]:{paddingTop:M},[`${t}-ranges`]:{marginBottom:0,padding:`${M}px ${P}px`,overflow:"hidden",lineHeight:E-2*s-$/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:k,background:T,borderColor:A,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:q({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*i,transition:`left ${O} ease-out`},Xr(B,D,z,R,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:j,boxShadow:N,transition:`margin ${O}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:_,maxWidth:W,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:$,borderInlineEnd:`${s}px ${c} ${F}`,li:q(q({},Yr),{borderRadius:H,paddingInline:$,paddingBlock:(b-Math.round(l*C))/2,cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:x},"&:hover":{background:L}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:2*B/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},zm(e,"slide-up"),zm(e,"slide-down"),km(e,"move-up"),km(e,"move-down")]},Zk=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:o,colorPrimary:r,paddingXXS:l}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerTextHeight:n,pickerPanelCellWidth:1.5*o,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new pr(r).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new pr(r).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:1.65*n,pickerYearMonthCellWidth:1.5*n,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:1.4*n,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:1.4*n,pickerCellPaddingVertical:l,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},Jk=tl("DatePicker",(e=>{const t=rl(Kk(e),Zk(e));return[Qk(t),qk(t),ab(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),eO=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:l}=e;return{[t]:q(q(q({},Uk(e)),Ur(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:l}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},tO=tl("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=rl(Kk(e),Zk(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:.75*e.controlHeightSM,dateContentHeight:3*(e.fontSizeSM*e.lineHeightSM+e.marginXS)+2*e.lineWidth});return[eO(n)]}),{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});const nO=at(function(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,o){return t(n,o)&&e.getMonth(n)===e.getMonth(o)}function o(t,o){return n(t,o)&&e.getDate(t)===e.getDate(o)}const l=r({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(r,l){let{emit:i,slots:a,attrs:s}=l;const c=r,{prefixCls:u,direction:p}=Il("picker",c),[v,f]=tO(u),h=d((()=>`${u.value}-calendar`)),g=t=>c.valueFormat?e.toString(t,c.valueFormat):t,m=d((()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:""===c.value?void 0:c.value)),b=d((()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:""===c.defaultValue?void 0:c.defaultValue)),[y,x]=Sp((()=>m.value||e.getNow()),{defaultValue:b.value,value:m}),[S,w]=Sp("month",{value:M(c,"mode")}),C=d((()=>"year"===S.value?"month":"date")),k=d((()=>t=>{var n;return!!c.validRange&&(e.isAfter(c.validRange[0],t)||e.isAfter(t,c.validRange[1]))||!!(null===(n=c.disabledDate)||void 0===n?void 0:n.call(c,t))})),O=(e,t)=>{i("panelChange",g(e),t)},I=e=>{w(e),O(y.value,e)},P=(e,r)=>{(e=>{if(x(e),!o(e,y.value)){("date"===C.value&&!n(e,y.value)||"month"===C.value&&!t(e,y.value))&&O(e,S.value);const o=g(e);i("update:value",o),i("change",o)}})(e),i("select",g(e),{source:r})},E=d((()=>{const{locale:e}=c,t=q(q({},Rt),e);return t.lang=q(q({},t.lang),(e||{}).lang),t})),[T]=Ft("Calendar",E);return()=>{const t=e.getNow(),{dateFullCellRender:r=(null==a?void 0:a.dateFullCellRender),dateCellRender:l=(null==a?void 0:a.dateCellRender),monthFullCellRender:i=(null==a?void 0:a.monthFullCellRender),monthCellRender:d=(null==a?void 0:a.monthCellRender),headerRender:g=(null==a?void 0:a.headerRender),fullscreen:m=!0,validRange:b}=c;return v($("div",U(U({},s),{},{class:pe(h.value,{[`${h.value}-full`]:m,[`${h.value}-mini`]:!m,[`${h.value}-rtl`]:"rtl"===p.value},s.class,f.value)}),[g?g({value:y.value,type:S.value,onChange:e=>{P(e,"customize")},onTypeChange:I}):$(Pk,{prefixCls:h.value,value:y.value,generateConfig:e,mode:S.value,fullscreen:m,locale:T.value.lang,validRange:b,onChange:P,onModeChange:I},null),$(WC,{value:y.value,prefixCls:u.value,locale:T.value.lang,generateConfig:e,dateRender:n=>{let{current:i}=n;return r?r({current:i}):$("div",{class:pe(`${u.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:o(t,i)})},[$("div",{class:`${h.value}-date-value`},[String(e.getDate(i)).padStart(2,"0")]),$("div",{class:`${h.value}-date-content`},[l&&l({current:i})])])},monthCellRender:o=>((o,r)=>{let{current:l}=o;if(i)return i({current:l});const a=r.shortMonths||e.locale.getShortMonths(r.locale);return $("div",{class:pe(`${u.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:n(t,l)})},[$("div",{class:`${h.value}-date-value`},[a[e.getMonth(l)]]),$("div",{class:`${h.value}-date-content`},[d&&d({current:l})])])})(o,T.value.lang),onSelect:e=>{P(e,C.value)},mode:C.value,picker:C.value,disabledDate:k.value,hideHeader:!0},null)]))}}});return l.install=function(e){return e.component(l.name,l),e},l}(hw));function oO(e){const t=g([]),n=g("function"==typeof e?e():e),o=function(e){const t=g(),n=g(!1);return b((()=>{n.value=!0,rt.cancel(t.value)})),function(){for(var o=arguments.length,r=new Array(o),l=0;l{e(...r)})))}}((()=>{let e=n.value;t.value.forEach((t=>{e=t(e)})),t.value=[],n.value=e}));return[n,function(e){t.value.push(e),o()}]}const rO=r({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=f();function l(t){var n;(null===(n=e.tab)||void 0===n?void 0:n.disabled)||e.onClick(t)}n({domRef:r});const i=d((()=>{var t;return e.editable&&!1!==e.closable&&!(null===(t=e.tab)||void 0===t?void 0:t.disabled)}));return()=>{var t;const{prefixCls:n,id:a,active:s,tab:{key:c,tab:u,disabled:d,closeIcon:p},renderWrapper:v,removeAriaLabel:f,editable:h,onFocus:g}=e,m=`${n}-tab`,b=$("div",{key:c,ref:r,class:pe(m,{[`${m}-with-remove`]:i.value,[`${m}-active`]:s,[`${m}-disabled`]:d}),style:o.style,onClick:l},[$("div",{role:"tab","aria-selected":s,id:a&&`${a}-tab-${c}`,class:`${m}-btn`,"aria-controls":a&&`${a}-panel-${c}`,"aria-disabled":d,tabindex:d?null:0,onClick:e=>{e.stopPropagation(),l(e)},onKeydown:e=>{[sd.SPACE,sd.ENTER].includes(e.which)&&(e.preventDefault(),l(e))},onFocus:g},["function"==typeof u?u():u]),i.value&&$("button",{type:"button","aria-label":f||"remove",tabindex:0,class:`${m}-remove`,onClick:t=>{t.stopPropagation(),function(t){var n;t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:null===(n=e.tab)||void 0===n?void 0:n.key,event:t})}(t)}},[(null==p?void 0:p())||(null===(t=h.removeIcon)||void 0===t?void 0:t.call(h))||"×"])]);return v?v(b):b}}}),lO={width:0,height:0,left:0,top:0};const iO=r({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:o}=t;const r=f();return n({domRef:r}),()=>{const{prefixCls:t,editable:n,locale:l}=e;return n&&!1!==n.showAdd?$("button",{ref:r,type:"button",class:`${t}-nav-add`,style:o.style,"aria-label":(null==l?void 0:l.addAriaLabel)||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),aO={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Ii.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:dt()},sO=r({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:aO,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,l]=wp(!1),[a,s]=wp(null),u=t=>{const n=e.tabs.filter((e=>!e.disabled));let o=n.findIndex((e=>e.key===a.value))||0;const r=n.length;for(let e=0;e{const{which:n}=t;if(r.value)switch(n){case sd.UP:u(-1),t.preventDefault();break;case sd.DOWN:u(1),t.preventDefault();break;case sd.ESC:l(!1);break;case sd.SPACE:case sd.ENTER:null!==a.value&&e.onTabClick(a.value,t)}else[sd.DOWN,sd.SPACE,sd.ENTER].includes(n)&&(l(!0),t.preventDefault())},v=d((()=>`${e.id}-more-popup`)),f=d((()=>null!==a.value?`${v.value}-${a.value}`:null));return i((()=>{c(a,(()=>{const e=document.getElementById(f.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),c(r,(()=>{r.value||s(null)})),jx({}),()=>{var t;const{prefixCls:i,id:s,tabs:c,locale:u,mobile:d,moreIcon:h=(null===(t=o.moreIcon)||void 0===t?void 0:t.call(o))||$(wx,null,null),moreTransitionName:g,editable:m,tabBarGutter:b,rtl:y,onTabClick:x,popupClassName:S}=e;if(!c.length)return null;const w=`${i}-dropdown`,C=null==u?void 0:u.dropdownAriaLabel,k={[y?"marginRight":"marginLeft"]:b};c.length||(k.visibility="hidden",k.order=1);const O=pe({[`${w}-rtl`]:y,[`${S}`]:!0}),I=d?null:$(k$,{prefixCls:w,trigger:["hover"],visible:r.value,transitionName:g,onVisibleChange:l,overlayClassName:O,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>$(NS,{onClick:e=>{let{key:t,domEvent:n}=e;x(t,n),l(!1)},id:v.value,tabindex:-1,role:"listbox","aria-activedescendant":f.value,selectedKeys:[a.value],"aria-label":void 0!==C?C:"expanded dropdown"},{default:()=>[c.map((t=>{var n,o;const r=m&&!1!==t.closable&&!t.disabled;return $(sS,{key:t.key,id:`${v.value}-${t.key}`,role:"option","aria-controls":s&&`${s}-panel-${t.key}`,disabled:t.disabled},{default:()=>[$("span",null,["function"==typeof t.tab?t.tab():t.tab]),r&&$("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${w}-menu-item-remove`,onClick:n=>{var o,r;n.stopPropagation(),o=n,r=t.key,o.preventDefault(),o.stopPropagation(),e.editable.onEdit("remove",{key:r,event:o})}},[(null===(n=t.closeIcon)||void 0===n?void 0:n.call(t))||(null===(o=m.removeIcon)||void 0===o?void 0:o.call(m))||"×"])]})}))]}),default:()=>$("button",{type:"button",class:`${i}-nav-more`,style:k,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":v.value,id:`${s}-more`,"aria-expanded":r.value,onKeydown:p},[h])});return $("div",{class:pe(`${i}-nav-operations`,n.class),style:n.style},[I,$(iO,{prefixCls:i,locale:u,editable:m},null)])}}}),cO=Symbol("tabsContextKey"),uO=()=>p(cO,{tabs:f([]),prefixCls:f()}),dO=Math.pow(.995,20);function pO(e,t){const n=f(e);return[n,function(e){const o="function"==typeof e?e(n.value):e;o!==n.value&&t(o,n.value),n.value=o}]}const vO=()=>{const e=f(new Map);return N((()=>{e.value=new Map})),[t=>n=>{e.value.set(t,n)},e]},fO={width:0,height:0,left:0,top:0,right:0},hO=r({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:ct(),editable:ct(),moreIcon:Ii.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:ct(),popupClassName:String,getPopupContainer:dt(),onTabClick:{type:Function},onTabScroll:{type:Function}},slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:l}=uO(),a=g(),s=g(),u=g(),p=g(),[v,h]=vO(),y=d((()=>"top"===e.tabPosition||"bottom"===e.tabPosition)),[x,S]=pO(0,((t,n)=>{y.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})})),[w,C]=pO(0,((t,n)=>{!y.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})})),[k,O]=wp(0),[I,M]=wp(0),[P,E]=wp(null),[T,A]=wp(null),[B,D]=wp(0),[z,R]=wp(0),[j,N]=oO(new Map),H=function(e,t){const n=f(new Map);return m((()=>{var o,r;const l=new Map,i=e.value,a=t.value.get(null===(o=i[0])||void 0===o?void 0:o.key)||lO,s=a.left+a.width;for(let e=0;e`${l.value}-nav-operations-hidden`)),L=g(0),_=g(0);m((()=>{y.value?e.rtl?(L.value=0,_.value=Math.max(0,k.value-P.value)):(L.value=Math.min(0,P.value-k.value),_.value=0):(L.value=Math.min(0,T.value-I.value),_.value=0)}));const W=e=>e_.value?_.value:e,K=g(),[V,X]=wp(),G=()=>{X(Date.now())},Y=()=>{clearTimeout(K.value)},Q=(e,t)=>{e((e=>W(e+t)))};!function(e,t){const[n,o]=wp(),[r,l]=wp(0),[a,s]=wp(0),[c,u]=wp(),d=f(),p=f(),v=f({onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),clearInterval(d.value)},onTouchMove:function(e){if(!n.value)return;e.preventDefault();const{screenX:i,screenY:a}=e.touches[0],c=i-n.value.x,d=a-n.value.y;t(c,d),o({x:i,y:a});const p=Date.now();s(p-r.value),l(p),u({x:c,y:d})},onTouchEnd:function(){if(!n.value)return;const e=c.value;if(o(null),u(null),e){const n=e.x/a.value,o=e.y/a.value,r=Math.abs(n),l=Math.abs(o);if(Math.max(r,l)<.1)return;let i=n,s=o;d.value=setInterval((()=>{Math.abs(i)<.01&&Math.abs(s)<.01?clearInterval(d.value):(i*=dO,s*=dO,t(20*i,20*s))}),20)}},onWheel:function(e){const{deltaX:n,deltaY:o}=e;let r=0;const l=Math.abs(n),i=Math.abs(o);l===i?r="x"===p.value?n:o:l>i?(r=n,p.value="x"):(r=o,p.value="y"),t(-r,-r)&&e.preventDefault()}});function h(e){v.value.onTouchStart(e)}function g(e){v.value.onTouchMove(e)}function m(e){v.value.onTouchEnd(e)}function y(e){v.value.onWheel(e)}i((()=>{var t,n;document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",m,{passive:!1}),null===(t=e.value)||void 0===t||t.addEventListener("touchstart",h,{passive:!1}),null===(n=e.value)||void 0===n||n.addEventListener("wheel",y,{passive:!1})})),b((()=>{document.removeEventListener("touchmove",g),document.removeEventListener("touchend",m)}))}(a,((e,t)=>{if(y.value){if(P.value>=k.value)return!1;Q(S,e)}else{if(T.value>=I.value)return!1;Q(C,t)}return Y(),G(),!0})),c(V,(()=>{Y(),V.value&&(K.value=setTimeout((()=>{X(0)}),100))}));const Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey;const n=H.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(y.value){let t=x.value;e.rtl?n.rightx.value+P.value&&(t=n.right+n.width-P.value):n.left<-x.value?t=-n.left:n.left+n.width>-x.value+P.value&&(t=-(n.left+n.width-P.value)),C(0),S(W(t))}else{let e=w.value;n.top<-w.value?e=-n.top:n.top+n.height>-w.value+T.value&&(e=-(n.top+n.height-T.value)),S(0),C(W(e))}},J=g(0),ee=g(0);m((()=>{let t,n,o,l,i,a;const s=H.value;["top","bottom"].includes(e.tabPosition)?(t="width",l=P.value,i=k.value,a=B.value,n=e.rtl?"right":"left",o=Math.abs(x.value)):(t="height",l=T.value,i=k.value,a=z.value,n="top",o=-w.value);let c=l;i+a>l&&io+c){p=e-1;break}}let v=0;for(let e=d-1;e>=0;e-=1){if((s.get(u[e].key)||fO)[n]{var e,t,n,o,l;const i=(null===(e=a.value)||void 0===e?void 0:e.offsetWidth)||0,c=(null===(t=a.value)||void 0===t?void 0:t.offsetHeight)||0,u=(null===(n=p.value)||void 0===n?void 0:n.$el)||{},d=u.offsetWidth||0,v=u.offsetHeight||0;E(i),A(c),D(d),R(v);const f=((null===(o=s.value)||void 0===o?void 0:o.offsetWidth)||0)-d,g=((null===(l=s.value)||void 0===l?void 0:l.offsetHeight)||0)-v;O(f),M(g),N((()=>{const e=new Map;return r.value.forEach((t=>{let{key:n}=t;const o=h.value.get(n),r=(null==o?void 0:o.$el)||o;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))},ne=d((()=>[...r.value.slice(0,J.value),...r.value.slice(ee.value+1)])),[oe,re]=wp(),le=d((()=>H.value.get(e.activeKey))),ie=g(),ae=()=>{rt.cancel(ie.value)};c([le,y,()=>e.rtl],(()=>{const t={};le.value&&(y.value?(e.rtl?t.right=ue(le.value.right):t.left=ue(le.value.left),t.width=ue(le.value.width)):(t.top=ue(le.value.top),t.height=ue(le.value.height))),ae(),ie.value=rt((()=>{re(t)}))})),c([()=>e.activeKey,le,H,y],(()=>{Z()}),{flush:"post"}),c([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],(()=>{te()}),{flush:"post"});const se=e=>{let{position:t,prefixCls:n,extra:o}=e;if(!o)return null;const r=null==o?void 0:o({position:t});return r?$("div",{class:`${n}-extra-content`},[r]):null};return b((()=>{Y(),ae()})),()=>{const{id:t,animated:i,activeKey:c,rtl:d,editable:f,locale:h,tabPosition:g,tabBarGutter:m,onTabClick:b}=e,{class:S,style:C}=n,O=l.value,M=!!ne.value.length,E=`${O}-nav-wrap`;let A,B,D,z;y.value?d?(B=x.value>0,A=x.value+P.value{const{key:r}=e;return $(rO,{id:t,prefixCls:O,key:r,tab:e,style:0===n?void 0:R,closable:e.closable,editable:f,active:r===c,removeAriaLabel:null==h?void 0:h.removeAriaLabel,ref:v(r),onClick:e=>{b(r,e)},onFocus:()=>{Z(r),G(),a.value&&(d||(a.value.scrollLeft=0),a.value.scrollTop=0)}},o)}));return $("div",{role:"tablist",class:pe(`${O}-nav`,S),style:C,onKeydown:()=>{G()}},[$(se,{position:"left",prefixCls:O,extra:o.leftExtra},null),$(Ze,{onResize:te},{default:()=>[$("div",{class:pe(E,{[`${E}-ping-left`]:A,[`${E}-ping-right`]:B,[`${E}-ping-top`]:D,[`${E}-ping-bottom`]:z}),ref:a},[$(Ze,{onResize:te},{default:()=>[$("div",{ref:s,class:`${O}-nav-list`,style:{transform:`translate(${x.value}px, ${w.value}px)`,transition:V.value?"none":void 0}},[j,$(iO,{ref:p,prefixCls:O,locale:h,editable:f,style:q(q({},0===j.length?void 0:R),{visibility:M?"hidden":null})},null),$("div",{class:pe(`${O}-ink-bar`,{[`${O}-ink-bar-animated`]:i.inkBar}),style:oe.value},null)])]})])]}),$(sO,U(U({},e),{},{removeAriaLabel:null==h?void 0:h.removeAriaLabel,ref:u,prefixCls:O,tabs:ne.value,class:!M&&F.value}),om(o,["moreIcon"])),$(se,{position:"right",prefixCls:O,extra:o.rightExtra},null),$(se,{position:"right",prefixCls:O,extra:o.tabBarExtraContent},null)])}}}),gO=r({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=uO();return()=>{const{id:o,activeKey:r,animated:l,tabPosition:i,rtl:a,destroyInactiveTabPane:s}=e,c=l.tabPane,u=n.value,d=t.value.findIndex((e=>e.key===r));return $("div",{class:`${u}-content-holder`},[$("div",{class:[`${u}-content`,`${u}-content-${i}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map((e=>Ja(e.node,{key:e.key,prefixCls:u,tabKey:e.key,id:o,animated:c,active:e.key===r,destroyInactiveTabPane:s})))])])}}});const mO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function bO(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[zm(e,"slide-up"),zm(e,"slide-down")]]},wO=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},CO=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:q(q({},Ur(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":q(q({},Yr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},kO=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},OO=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${1.5*e.paddingXXS}px`}}}}}},IO=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:l}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":q({"&:focus:not(:focus-visible), &:active":{color:n}},el(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},MO=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},PO=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:l,tabsActiveColor:i,colorSplit:a}=e;return{[t]:q(q(q(q({},Ur(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:q({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:i}},el(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),IO(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},EO=tl("Tabs",(e=>{const t=e.controlHeightLG,n=rl(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[OO(n),MO(n),kO(n),CO(n),wO(n),PO(n),SO(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));let TO=0;const AO=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:dt(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:ft(),animated:ht([Boolean,Object]),renderTabBar:dt(),tabBarGutter:{type:Number},tabBarStyle:ct(),tabPosition:ft(),destroyInactiveTabPane:ut(),hideAdd:Boolean,type:ft(),size:ft(),centered:Boolean,onEdit:dt(),onChange:dt(),onTabClick:dt(),onTabScroll:dt(),"onUpdate:activeKey":dt(),locale:ct(),onPrevClick:dt(),onNextClick:dt(),tabBarExtraContent:Ii.any});const BO=r({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:q(q({},Re(AO(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:vt()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;Mi(!(void 0!==e.onPrevClick||void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),Mi(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),Mi(!(void 0!==o.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:l,size:a,rootPrefixCls:s,getPopupContainer:c}=Il("tabs",e),[u,p]=EO(r),f=d((()=>"rtl"===l.value)),h=d((()=>{const{animated:t,tabPosition:n}=e;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:q({inkBar:!0,tabPane:!1},"object"==typeof t?t:{})})),[g,b]=wp(!1);i((()=>{b(Xd())}));const[y,x]=Sp((()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:d((()=>e.activeKey)),defaultValue:e.defaultActiveKey}),[S,w]=wp((()=>e.tabs.findIndex((e=>e.key===y.value))));m((()=>{var t;let n=e.tabs.findIndex((e=>e.key===y.value));-1===n&&(n=Math.max(0,Math.min(S.value,e.tabs.length-1)),x(null===(t=e.tabs[n])||void 0===t?void 0:t.key)),w(n)}));const[C,k]=Sp(null,{value:d((()=>e.id))}),O=d((()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition));i((()=>{e.id||(k(`rc-tabs-${TO}`),TO+=1)}));const I=(t,n)=>{var o,r;null===(o=e.onTabClick)||void 0===o||o.call(e,t,n);const l=t!==y.value;x(t),l&&(null===(r=e.onChange)||void 0===r||r.call(e,t))};return(e=>{v(cO,e)})({tabs:d((()=>e.tabs)),prefixCls:r}),()=>{const{id:t,type:l,tabBarGutter:i,tabBarStyle:d,locale:v,destroyInactiveTabPane:m,renderTabBar:b=o.renderTabBar,onTabScroll:x,hideAdd:S,centered:w}=e,k={id:C.value,activeKey:y.value,animated:h.value,tabPosition:O.value,rtl:f.value,mobile:g.value};let M,P;"editable-card"===l&&(M={onEdit:(t,n)=>{let{key:o,event:r}=n;var l;null===(l=e.onEdit)||void 0===l||l.call(e,"add"===t?r:o,t)},removeIcon:()=>$(Dv,null,null),addIcon:o.addIcon?o.addIcon:()=>$(xO,null,null),showAdd:!0!==S});const E=q(q({},k),{moreTransitionName:`${s.value}-slide-up`,editable:M,locale:v,tabBarGutter:i,onTabClick:I,onTabScroll:x,style:d,getPopupContainer:c.value,popupClassName:pe(e.popupClassName,p.value)});P=b?b(q(q({},E),{DefaultTabBar:hO})):$(hO,E,om(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const T=r.value;return u($("div",U(U({},n),{},{id:t,class:pe(T,`${T}-${O.value}`,{[p.value]:!0,[`${T}-${a.value}`]:a.value,[`${T}-card`]:["card","editable-card"].includes(l),[`${T}-editable-card`]:"editable-card"===l,[`${T}-centered`]:w,[`${T}-mobile`]:g.value,[`${T}-editable`]:"editable-card"===l,[`${T}-rtl`]:f.value},n.class)}),[P,$(gO,U(U({destroyInactiveTabPane:m},k),{},{animated:h.value}),null)]))}}}),DO=r({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Re(AO(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=e=>{r("update:activeKey",e),r("change",e)};return()=>{var t;const r=Fe(null===(t=o.default)||void 0===t?void 0:t.call(o)).map((e=>{if(qe(e)){const t=q({},e.props||{});for(const[e,d]of Object.entries(t))delete t[e],t[re(e)]=d;const n=e.children||{},o=void 0!==e.key?e.key:void 0,{tab:r=n.tab,disabled:l,forceRender:i,closable:a,animated:s,active:c,destroyInactiveTabPane:u}=t;return q(q({key:o},t),{node:e,closeIcon:n.closeIcon,tab:r,disabled:""===l||l,forceRender:""===i||i,closable:""===a||a,animated:""===s||s,active:""===c||c,destroyInactiveTabPane:""===u||u})}return null})).filter((e=>e));return $(BO,U(U(U({},Ml(e,["onUpdate:activeKey"])),n),{},{onChange:l,tabs:r}),o)}}}),zO=r({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:Ii.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=f(e.forceRender);c([()=>e.active,()=>e.destroyInactiveTabPane],(()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)}),{immediate:!0});const l=d((()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var t;const{prefixCls:i,forceRender:a,id:s,active:c,tabKey:u}=e;return $("div",{id:s&&`${s}-panel-${u}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":s&&`${s}-tab-${u}`,"aria-hidden":!c,style:[l.value,n.style],class:[`${i}-tabpane`,c&&`${i}-tabpane-active`,n.class]},[(c||r.value||a)&&(null===(t=o.default)||void 0===t?void 0:t.call(o))])}}});DO.TabPane=zO,DO.install=function(e){return e.component(DO.name,DO),e.component(zO.name,zO),e};const RO=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return q(q({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":q(q({display:"inline-block",flex:1},Yr),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},jO=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${r}px 0 0 0 ${n},\n 0 ${r}px 0 0 ${n},\n ${r}px ${r}px 0 0 ${n},\n ${r}px 0 0 0 ${n} inset,\n 0 ${r}px 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},NO=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:l}=e;return q(q({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:r*e.lineHeight+"px"}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},HO=e=>q(q({margin:`-${e.marginXXS}px 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":q({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Yr),"&-description":{color:e.colorTextDescription}}),FO=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},LO=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},_O=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:l,cardPaddingBase:i}=e;return{[t]:q(q({},Ur(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:RO(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:q({padding:i,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:jO(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:NO(e),[`${t}-meta`]:HO(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:FO(e),[`${t}-loading`]:LO(e),[`${t}-rtl`]:{direction:"rtl"}}},WO=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},KO=tl("Card",(e=>{const t=rl(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,cardHeadHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[_O(t),WO(t)]})),VO=r({compatConfig:{MODE:3},name:"SkeletonTitle",props:{prefixCls:String,width:{type:[Number,String]}},setup:e=>()=>{const{prefixCls:t,width:n}=e;return $("h3",{class:t,style:{width:"number"==typeof n?`${n}px`:n}},null)}}),XO=r({compatConfig:{MODE:3},name:"SkeletonParagraph",props:{prefixCls:String,width:{type:[Number,String,Array]},rows:Number},setup:e=>()=>{const{prefixCls:t,rows:n}=e,o=[...Array(n)].map(((t,n)=>{const o=(t=>{const{width:n,rows:o=2}=e;return Array.isArray(n)?n[t]:o-1===t?n:void 0})(n);return $("li",{key:n,style:{width:"number"==typeof o?`${o}px`:o}},null)}));return $("ul",{class:t},[o])}}),GO=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),YO=e=>{const{prefixCls:t,size:n,shape:o}=e,r=pe({[`${t}-lg`]:"large"===n,[`${t}-sm`]:"small"===n}),l=pe({[`${t}-circle`]:"circle"===o,[`${t}-square`]:"square"===o,[`${t}-round`]:"round"===o}),i="number"==typeof n?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return $("span",{class:pe(t,r,l),style:i},null)};YO.displayName="SkeletonElement";const UO=YO,qO=new Fo("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),QO=e=>({height:e,lineHeight:`${e}px`}),ZO=e=>q({width:e},QO(e)),JO=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:qO,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),eI=e=>q({width:5*e,minWidth:5*e},QO(e)),tI=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l}=e;return{[`${t}`]:q({display:"inline-block",verticalAlign:"top",background:n},ZO(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:q({},ZO(r)),[`${t}${t}-sm`]:q({},ZO(l))}},nI=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return{[`${o}`]:q({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},eI(t)),[`${o}-lg`]:q({},eI(r)),[`${o}-sm`]:q({},eI(l))}},oI=e=>q({width:e},QO(e)),rI=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:q(q({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},oI(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:q(q({},oI(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},lI=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},iI=e=>q({width:2*e,minWidth:2*e},QO(e)),aI=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return q(q(q(q(q({[`${n}`]:q({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:2*o,minWidth:2*o},iI(o))},lI(e,o,n)),{[`${n}-lg`]:q({},iI(r))}),lI(e,r,`${n}-lg`)),{[`${n}-sm`]:q({},iI(l))}),lI(e,l,`${n}-sm`))},sI=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:l,skeletonInputCls:i,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:p,marginSM:v,borderRadius:f,skeletonTitleHeight:h,skeletonBlockRadius:g,skeletonParagraphLineHeight:m,controlHeightXS:b,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:q({display:"inline-block",verticalAlign:"top",background:d},ZO(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:q({},ZO(c)),[`${n}-sm`]:q({},ZO(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:h,background:d,borderRadius:g,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:f}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:v,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:q(q(q(q({display:"inline-block",width:"auto"},aI(e)),tI(e)),nI(e)),rI(e)),[`${t}${t}-block`]:{width:"100%",[`${l}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${l},\n ${i},\n ${a}\n `]:q({},JO(e))}}},cI=tl("Skeleton",(e=>{const{componentCls:t}=e,n=rl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[sI(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}));function uI(e){return e&&"object"==typeof e?e:{}}const dI=r({compatConfig:{MODE:3},name:"ASkeleton",props:Re({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}},{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Il("skeleton",e),[l,i]=cI(o);return()=>{var t;const{loading:a,avatar:s,title:c,paragraph:u,active:d,round:p}=e,v=o.value;if(a||void 0===e.loading){const e=!!s||""===s,t=!!c||""===c,n=!!u||""===u;let o,a;if(e){const e=q(q({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),uI(s));o=$("div",{class:`${v}-header`},[$(UO,e,null)])}if(t||n){let o,r;if(t){const t=q(q({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),uI(c));o=$(VO,t,null)}if(n){const n=q(q({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),uI(u));r=$(XO,n,null)}a=$("div",{class:`${v}-content`},[o,r])}const f=pe(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===r.value,[`${v}-round`]:p,[i.value]:!0});return l($("div",{class:f},[o,a]))}return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),pI=r({compatConfig:{MODE:3},name:"ASkeletonButton",props:Re(q(q({},GO()),{size:String,block:Boolean}),{size:"default"}),setup(e){const{prefixCls:t}=Il("skeleton",e),[n,o]=cI(t),r=d((()=>pe(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n($("div",{class:r.value},[$(UO,U(U({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),vI=r({compatConfig:{MODE:3},name:"ASkeletonInput",props:q(q({},Ml(GO(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Il("skeleton",e),[n,o]=cI(t),r=d((()=>pe(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n($("div",{class:r.value},[$(UO,U(U({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),fI=r({compatConfig:{MODE:3},name:"ASkeletonImage",props:Ml(GO(),["size","shape","active"]),setup(e){const{prefixCls:t}=Il("skeleton",e),[n,o]=cI(t),r=d((()=>pe(t.value,`${t.value}-element`,o.value)));return()=>n($("div",{class:r.value},[$("div",{class:`${t.value}-image`},[$("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[$("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",class:`${t.value}-image-path`},null)])])]))}}),hI=r({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Re(q(q({},GO()),{shape:String}),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Il("skeleton",e),[n,o]=cI(t),r=d((()=>pe(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value)));return()=>n($("div",{class:r.value},[$(UO,U(U({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});dI.Button=pI,dI.Avatar=hI,dI.Input=vI,dI.Image=fI,dI.Title=VO,dI.install=function(e){return e.component(dI.name,dI),e.component(dI.Button.name,pI),e.component(dI.Avatar.name,hI),e.component(dI.Input.name,vI),e.component(dI.Image.name,fI),e.component(dI.Title.name,VO),e};const{TabPane:gI}=DO,mI=r({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:{prefixCls:String,title:Ii.any,extra:Ii.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:Ii.any,tabList:{type:Array},tabBarExtraContent:Ii.any,activeTabKey:String,defaultActiveTabKey:String,cover:Ii.any,onTabChange:{type:Function}},slots:Object,setup(e,n){let{slots:o,attrs:r}=n;const{prefixCls:l,direction:i,size:a}=Il("card",e),[s,c]=KO(l),u=e=>e.map(((n,o)=>t(n)&&!Ge(n)||!t(n)?$("li",{style:{width:100/e.length+"%"},key:`action-${o}`},[$("span",null,[n])]):null)),d=t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},p=function(){let e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{t&&$h(t.type)&&t.type.__ANT_CARD_GRID&&(e=!0)})),e};return()=>{var t,n,v,f,h,g;const{headStyle:m={},bodyStyle:b={},loading:y,bordered:x=!0,type:S,tabList:w,hoverable:C,activeTabKey:k,defaultActiveTabKey:O,tabBarExtraContent:I=Ue(null===(t=o.tabBarExtraContent)||void 0===t?void 0:t.call(o)),title:M=Ue(null===(n=o.title)||void 0===n?void 0:n.call(o)),extra:P=Ue(null===(v=o.extra)||void 0===v?void 0:v.call(o)),actions:E=Ue(null===(f=o.actions)||void 0===f?void 0:f.call(o)),cover:T=Ue(null===(h=o.cover)||void 0===h?void 0:h.call(o))}=e,A=Fe(null===(g=o.default)||void 0===g?void 0:g.call(o)),B=l.value,D={[`${B}`]:!0,[c.value]:!0,[`${B}-loading`]:y,[`${B}-bordered`]:x,[`${B}-hoverable`]:!!C,[`${B}-contain-grid`]:p(A),[`${B}-contain-tabs`]:w&&w.length,[`${B}-${a.value}`]:a.value,[`${B}-type-${S}`]:!!S,[`${B}-rtl`]:"rtl"===i.value},z=$(dI,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[A]}),R=void 0!==k,j={size:"large",[R?"activeKey":"defaultActiveKey"]:R?k:O,onChange:d,class:`${B}-head-tabs`};let N;const H=w&&w.length?$(DO,j,{default:()=>[w.map((e=>{const{tab:t,slots:n}=e,r=null==n?void 0:n.tab;Mi(!n,"Card","tabList slots is deprecated, Please use `customTab` instead.");let l=void 0!==t?t:o[r]?o[r](e):null;return l=L(o,"customTab",e,(()=>[l])),$(gI,{tab:l,key:e.key,disabled:e.disabled},null)}))],rightExtra:I?()=>I:null}):null;(M||P||H)&&(N=$("div",{class:`${B}-head`,style:m},[$("div",{class:`${B}-head-wrapper`},[M&&$("div",{class:`${B}-head-title`},[M]),P&&$("div",{class:`${B}-extra`},[P])]),H]));const F=T?$("div",{class:`${B}-cover`},[T]):null,_=$("div",{class:`${B}-body`,style:b},[y?z:A]),W=E&&E.length?$("ul",{class:`${B}-actions`},[u(E)]):null;return s($("div",U(U({ref:"cardContainerRef"},r),{},{class:[D,r.class]}),[N,F,A&&A.length?_:null,W]))}}}),bI=r({compatConfig:{MODE:3},name:"ACardMeta",props:{prefixCls:String,title:{validator:()=>!0},description:{validator:()=>!0},avatar:{validator:()=>!0}},slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Il("card",e);return()=>{const t={[`${o.value}-meta`]:!0},r=Qe(n,e,"avatar"),l=Qe(n,e,"title"),i=Qe(n,e,"description"),a=r?$("div",{class:`${o.value}-meta-avatar`},[r]):null,s=l?$("div",{class:`${o.value}-meta-title`},[l]):null,c=i?$("div",{class:`${o.value}-meta-description`},[i]):null,u=s||c?$("div",{class:`${o.value}-meta-detail`},[s,c]):null;return $("div",{class:t},[a,u])}}}),yI=r({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:{prefixCls:String,hoverable:{type:Boolean,default:!0}},setup(e,t){let{slots:n}=t;const{prefixCls:o}=Il("card",e),r=d((()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable})));return()=>{var e;return $("div",{class:r.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}});mI.Meta=bI,mI.Grid=yI,mI.install=function(e){return e.component(mI.name,mI),e.component(bI.name,bI),e.component(yI.name,yI),e};const $I=()=>({openAnimation:Ii.object,prefixCls:String,header:Ii.any,headerClass:String,showArrow:ut(),isActive:ut(),destroyInactivePanel:ut(),disabled:ut(),accordion:ut(),forceRender:ut(),expandIcon:dt(),extra:Ii.any,panelKey:ht(),collapsible:ft(),role:String,onItemClick:dt()}),xI=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:l,collapseHeaderPadding:i,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:p,colorTextDisabled:v,fontSize:f,lineHeight:h,marginSM:g,paddingSM:m,motionDurationSlow:b,fontSizeIcon:y}=e,$=`${s}px ${c} ${u}`;return{[t]:q(q({},Ur(e)),{backgroundColor:l,border:$,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:h,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*h,display:"flex",alignItems:"center",paddingInlineEnd:g},[`${t}-arrow`]:q(q({},qr()),{fontSize:y,svg:{transition:`transform ${b}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:m}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:g}}}}})}},SI=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},wI=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},CI=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},kI=tl("Collapse",(e=>{const t=rl(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[xI(t),wI(t),CI(t),SI(t),qm(t)]}));function OI(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map((e=>String(e)))}const II=r({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Re({prefixCls:String,activeKey:ht([Array,Number,String]),defaultActiveKey:ht([Array,Number,String]),accordion:ut(),destroyInactivePanel:ut(),bordered:ut(),expandIcon:dt(),openAnimation:Ii.object,expandIconPosition:ft(),collapsible:ft(),ghost:ut(),onChange:dt(),"onUpdate:activeKey":dt()},{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=f(OI(Wy([e.activeKey,e.defaultActiveKey])));c((()=>e.activeKey),(()=>{l.value=OI(e.activeKey)}),{deep:!0});const{prefixCls:i,direction:a,rootPrefixCls:s}=Il("collapse",e),[u,p]=kI(i),v=d((()=>{const{expandIconPosition:t}=e;return void 0!==t?t:"rtl"===a.value?"end":"start"})),h=t=>{const{expandIcon:n=o.expandIcon}=e,r=n?n(t):$(Dx,{rotate:t.isActive?90:void 0},null);return $("div",{class:[`${i.value}-expand-icon`,p.value],onClick:()=>["header","icon"].includes(e.collapsible)&&g(t.panelKey)},[qe(Array.isArray(n)?r[0]:r)?Ja(r,{class:`${i.value}-arrow`},!1):r])},g=t=>{let n=l.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=[...n];const e=n.indexOf(t);e>-1?n.splice(e,1):n.push(t)}(t=>{void 0===e.activeKey&&(l.value=t);const n=e.accordion?t[0]:t;r("update:activeKey",n),r("change",n)})(n)},m=(t,n)=>{var o,r,a;if(Ge(t))return;const c=l.value,{accordion:u,destroyInactivePanel:d,collapsible:p,openAnimation:v}=e,f=v||SS(`${s.value}-motion-collapse`),m=String(null!==(o=t.key)&&void 0!==o?o:n),{header:b=(null===(a=null===(r=t.children)||void 0===r?void 0:r.header)||void 0===a?void 0:a.call(r)),headerClass:y,collapsible:$,disabled:x}=t.props||{};let S=!1;S=u?c[0]===m:c.indexOf(m)>-1;let w=null!=$?$:p;(x||""===x)&&(w="disabled");return Ja(t,{key:m,panelKey:m,header:b,headerClass:y,isActive:S,prefixCls:i.value,destroyInactivePanel:d,openAnimation:f,accordion:u,onItemClick:"disabled"===w?null:g,expandIcon:h,collapsible:w})};return()=>{const{accordion:t,bordered:r,ghost:l}=e,s=pe(i.value,{[`${i.value}-borderless`]:!r,[`${i.value}-icon-position-${v.value}`]:!0,[`${i.value}-rtl`]:"rtl"===a.value,[`${i.value}-ghost`]:!!l,[n.class]:!!n.class},p.value);return u($("div",U(U({class:s},function(e){return Object.keys(e).reduce(((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t)),{})}(n)),{},{style:n.style,role:t?"tablist":null}),[Fe(null===(c=o.default)||void 0===c?void 0:c.call(o)).map(m)]));var c}}}),MI=r({compatConfig:{MODE:3},name:"PanelContent",props:$I(),setup(e,t){let{slots:n}=t;const o=g(!1);return m((()=>{(e.isActive||e.forceRender)&&(o.value=!0)})),()=>{var t;if(!o.value)return null;const{prefixCls:r,isActive:l,role:i}=e;return $("div",{class:pe(`${r}-content`,{[`${r}-content-active`]:l,[`${r}-content-inactive`]:!l}),role:i},[$("div",{class:`${r}-content-box`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),PI=r({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Re($I(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;Mi(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:l}=Il("collapse",e),i=()=>{o("itemClick",e.panelKey)},a=e=>{"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||i()};return()=>{var t,o;const{header:s=(null===(t=n.header)||void 0===t?void 0:t.call(n)),headerClass:c,isActive:u,showArrow:d,destroyInactivePanel:p,accordion:v,forceRender:f,openAnimation:h,expandIcon:g=n.expandIcon,extra:m=(null===(o=n.extra)||void 0===o?void 0:o.call(n)),collapsible:b}=e,y="disabled"===b,x=l.value,S=pe(`${x}-header`,{[c]:c,[`${x}-header-collapsible-only`]:"header"===b,[`${x}-icon-collapsible-only`]:"icon"===b}),C=pe({[`${x}-item`]:!0,[`${x}-item-active`]:u,[`${x}-item-disabled`]:y,[`${x}-no-arrow`]:!d,[`${r.class}`]:!!r.class});let O=$("i",{class:"arrow"},null);d&&"function"==typeof g&&(O=g(e));const I=w($(MI,{prefixCls:x,isActive:u,forceRender:f,role:v?"tabpanel":null},{default:n.default}),[[P,u]]),M=q({appear:!1,css:!1},h);return $("div",U(U({},r),{},{class:C}),[$("div",{class:S,onClick:()=>!["header","icon"].includes(b)&&i(),role:v?"tab":"button",tabindex:y?-1:0,"aria-expanded":u,onKeypress:a},[d&&O,$("span",{onClick:()=>"header"===b&&i(),class:`${x}-header-text`},[s]),m&&$("div",{class:`${x}-extra`},[m])]),$(k,M,{default:()=>[!p||u?I:null]})])}}});II.Panel=PI,II.install=function(e){return e.component(II.name,II),e.component(PI.name,PI),e};const EI=function(e){let t="";const n=Object.keys(e);return n.forEach((function(o,r){let l=e[o];(function(e){return/[height|width]$/.test(e)})(o=o.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase())&&"number"==typeof l&&(l+="px"),t+=!0===l?o:!1===l?"not "+o:"("+o+": "+l+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},RI=e=>{const t=[],n=jI(e),o=NI(e);for(let r=n;re.currentSlide-HI(e),NI=e=>e.currentSlide+FI(e),HI=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,FI=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,LI=e=>e&&e.offsetWidth||0,_I=e=>e&&e.offsetHeight||0,WI=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=e.startX-e.curX,r=e.startY-e.curY,l=Math.atan2(r,o);return t=Math.round(180*l/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315?"left":t>=135&&t<=225?"right":!0===n?t>=35&&t<=135?"up":"down":"vertical"},KI=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},VI=(e,t)=>{const n={};return t.forEach((t=>n[t]=e[t])),n},XI=(e,t)=>{const n=(e=>{const t=e.infinite?2*e.slideCount:e.slideCount;let n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0;const r=[];for(;nn[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((o=>{if(e.vertical){if(o.offsetTop+_I(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+LI(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;const l=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-l)||1}return e.slidesToScroll},YI=(e,t)=>t.reduce(((t,n)=>t&&e.hasOwnProperty(n)),!0)?null:void 0,UI=e=>{let t,n;YI(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=eM(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const t=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",n=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=q(q({},r),{WebkitTransform:t,transform:n,msTransform:o})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},qI=e=>{YI(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=UI(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},QI=e=>{if(e.unslick)return 0;YI(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:l,slidesToShow:i,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:p,vertical:v}=e;let f,h,g=0,m=0;if(p||1===e.slideCount)return 0;let b=0;if(o?(b=-ZI(e),l%a!=0&&t+a>l&&(b=-(t>l?i-(t-l):l%a)),r&&(b+=parseInt(i/2))):(l%a!=0&&t+a>l&&(b=i-l%a),r&&(b=parseInt(i/2))),g=b*s,m=b*d,f=v?t*d*-1+m:t*s*-1+g,!0===u){let l;const i=n;if(l=t+ZI(e),h=i&&i.childNodes[l],f=h?-1*h.offsetLeft:0,!0===r){l=o?t+ZI(e):t,h=i&&i.children[l],f=0;for(let e=0;ee.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),JI=e=>e.unslick||!e.infinite?0:e.slideCount,eM=e=>1===e.slideCount?1:ZI(e)+e.slideCount+JI(e),tM=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+nM(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let e=(t-1)/2+1;return parseInt(r)>0&&(e+=1),o&&t%2==0&&(e+=1),e}return o?0:t-1},oM=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let e=(t-1)/2+1;return parseInt(r)>0&&(e+=1),o||t%2!=0||(e+=1),e}return o?t-1:0},rM=()=>!("undefined"==typeof window||!window.document||!window.document.createElement),lM=e=>{let t,n,o,r;r=e.rtl?e.slideCount-1-e.index:e.index;const l=r<0||r>=e.slideCount;let i;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount==0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide;return{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":l,"slick-current":r===i}},iM=(e,t)=>e.key+"-"+t,aM=function(e,t){let n;const o=[],r=[],l=[],i=t.length,a=jI(e),s=NI(e);return t.forEach(((t,c)=>{let u;const d={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?t:$("div");const p=function(e){const t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth+("number"==typeof e.slideWidth?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(q(q({},e),{index:c})),v=u.props.class||"";let f=lM(q(q({},e),{index:c}));if(o.push(ts(u,{key:"original"+iM(u,c),tabindex:"-1","data-index":c,"aria-hidden":!f["slick-active"],class:pe(f,v),style:q(q({outline:"none"},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){const o=i-c;o<=ZI(e)&&i!==e.slidesToShow&&(n=-o,n>=a&&(u=t),f=lM(q(q({},e),{index:n})),r.push(ts(u,{key:"precloned"+iM(u,n),class:pe(f,v),tabindex:"-1","data-index":n,"aria-hidden":!f["slick-active"],style:q(q({},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}}))),i!==e.slidesToShow&&(n=i+c,n{e.focusOnSelect&&e.focusOnSelect(d)}})))}})),e.rtl?r.concat(o,l).reverse():r.concat(o,l)},sM=(e,t)=>{let{attrs:n,slots:o}=t;const r=aM(n,Fe(null==o?void 0:o.default())),{onMouseenter:l,onMouseover:i,onMouseleave:a}=n,s={onMouseenter:l,onMouseover:i,onMouseleave:a},c=q({class:"slick-track",style:n.trackStyle},s);return $("div",c,[r])};sM.inheritAttrs=!1;const cM=sM,uM=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:p,onMouseover:v,onMouseleave:f}=n,h=function(e){let t;return t=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t}({slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i}),g={onMouseenter:p,onMouseover:v,onMouseleave:f};let m=[];for(let b=0;b=s&&a<=n:a===s}),p={message:"dots",index:b,slidesToScroll:r,currentSlide:a};m=m.concat($("li",{key:b,class:d},[Ja(c({i:b}),{onClick:e})]))}return Ja(s({dots:m}),q({class:d},g))};uM.inheritAttrs=!1;const dM=uM;function pM(){}function vM(e,t,n){n&&n.preventDefault(),t(e,n)}const fM=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:l,slideCount:i,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(e){vM({message:"previous"},o,e)};!r&&(0===l||i<=a)&&(s["slick-disabled"]=!0,c=pM);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:l,slideCount:i};let p;return p=n.prevArrow?Ja(n.prevArrow(q(q({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):$("button",U({key:"0",type:"button"},u),[" ",B("Previous")]),p};fM.inheritAttrs=!1;const hM=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:l}=n,i={"slick-arrow":!0,"slick-next":!0};let a=function(e){vM({message:"next"},o,e)};KI(n)||(i["slick-disabled"]=!0,a=pM);const s={key:"1","data-role":"none",class:pe(i),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:l};let u;return u=n.nextArrow?Ja(n.nextArrow(q(q({},s),c)),{key:"1",class:pe(i),style:{display:"block"},onClick:a},!1):$("button",U({key:"1",type:"button"},s),[" ",B("Next")]),u};hM.inheritAttrs=!1;function gM(){}const mM={name:"InnerSlider",mixins:[Wu],inheritAttrs:!1,props:q({},AI),data(){this.preProps=q({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;const e=this.ssrInit();return q(q(q({},BI),{currentSlide:this.initialSlide,slideCount:this.children.length}),e)},watch:{autoplay(e,t){!t&&e?this.handleAutoPlay("playing"):e?this.handleAutoPlay("update"):this.pause("paused")},__propsSymbol__(){const e=this.$props,t=q(q({listRef:this.list,trackRef:this.track},e),this.$data);let n=!1;for(const o of Object.keys(this.preProps)){if(!e.hasOwnProperty(o)){n=!0;break}if("object"!=typeof e[o]&&"function"!=typeof e[o]&&"symbol"!=typeof e[o]&&e[o]!==this.preProps[o]){n=!0;break}}this.updateState(t,n,(()=>{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")})),this.preProps=q({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=RI(q(q({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e))}this.$nextTick((()=>{const e=q({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,(()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")})),"progressive"===this.lazyLoad&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new De((()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout((()=>this.onWindowResized()),this.speed))):this.onWindowResized()})),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(e=>{e.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,e.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)}))},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach((e=>clearTimeout(e))),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),null===(e=this.ro)||void 0===e||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=RI(q(q({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=_I(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Rg((()=>this.resizeWindow(e)),50),this.debouncedResize()},resizeWindow(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!Boolean(this.track))return;const t=q(q({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(t,e,(()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")})),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=(e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(LI(n)),r=e.trackRef,l=Math.ceil(LI(r));let i;if(e.vertical)i=o;else{let t=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(t*=o/100),i=Math.ceil((o-t)/e.slidesToShow)}const a=n&&_I(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=RI(q(q({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const p={slideCount:t,slideWidth:i,listWidth:o,trackWidth:l,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return null===e.autoplaying&&e.autoplay&&(p.autoplaying="playing"),p})(e);e=q(q(q({},e),o),{slideIndex:o.currentSlide});const r=QI(e);e=q(q({},e),{left:r});const l=UI(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=l),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let t=0,n=0;const o=[],r=ZI(q(q(q({},this.$props),this.$data),{slideCount:e.length})),l=JI(q(q(q({},this.$props),this.$data),{slideCount:e.length}));e.forEach((e=>{var n,r;const l=(null===(r=null===(n=e.props.style)||void 0===n?void 0:n.width)||void 0===r?void 0:r.split("px")[0])||0;o.push(l),t+=l}));for(let e=0;e{const o=()=>++n&&n>=t&&this.onWindowResized();if(e.onclick){const t=e.onclick;e.onclick=()=>{t(),e.parentNode.focus()}}else e.onclick=()=>e.parentNode.focus();e.onload||(this.$props.lazyLoad?e.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(e.onload=o,e.onerror=()=>{o(),this.__emit("lazyLoadError")}))}))},progressiveLazyLoad(){const e=[],t=q(q({},this.$props),this.$data);for(let n=this.currentSlide;n=-ZI(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{asNavFor:n,currentSlide:o,beforeChange:r,speed:l,afterChange:i}=this.$props,{state:a,nextState:s}=(e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:l,slideCount:i,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:v}=e;if(t&&n)return{};let f,h,g,m=l,b={},y={};const $=r?l:DI(l,0,i-1);if(o){if(!r&&(l<0||l>=i))return{};l<0?m=l+i:l>=i&&(m=l-i),a&&v.indexOf(m)<0&&(v=v.concat(m)),b={animating:!0,currentSlide:m,lazyLoadedList:v,targetSlide:m},y={animating:!1,targetSlide:m}}else f=m,m<0?(f=m+i,r?i%u!=0&&(f=i-i%u):f=0):!KI(e)&&m>s?m=f=s:c&&m>=i?(m=r?i:i-1,f=r?0:i-1):m>=i&&(f=m-i,r?i%u!=0&&(f=0):f=i-d),!r&&m+d>=i&&(f=i-d),h=QI(q(q({},e),{slideIndex:m})),g=QI(q(q({},e),{slideIndex:f})),r||(h===g&&(m=f),h=g),a&&(v=v.concat(RI(q(q({},e),{currentSlide:m})))),p?(b={animating:!0,currentSlide:f,trackStyle:qI(q(q({},e),{left:h})),lazyLoadedList:v,targetSlide:$},y={animating:!1,currentSlide:f,trackStyle:UI(q(q({},e),{left:g})),swipeLeft:null,targetSlide:$}):b={currentSlide:f,trackStyle:UI(q(q({},e),{left:g})),lazyLoadedList:v,targetSlide:$};return{state:b,nextState:y}})(q(q(q({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!a)return;r&&r(o,a.currentSlide);const c=a.lazyLoadedList.filter((e=>this.lazyLoadedList.indexOf(e)<0));this.$attrs.onLazyLoad&&c.length>0&&this.__emit("lazyLoad",c),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),i&&i(o),delete this.animationEndCallback),this.setState(a,(()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout((()=>{const{animating:e}=s,t=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{this.callbackTimers.push(setTimeout((()=>this.setState({animating:e})),10)),i&&i(a.currentSlide),delete this.animationEndCallback}))}),l))}))},changeSlide(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=((e,t)=>{let n,o,r;const{slidesToScroll:l,slidesToShow:i,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,p=a%l!=0?0:(a-s)%l;if("previous"===t.message)o=0===p?l:i-p,r=s-o,u&&!d&&(n=s-o,r=-1===n?a-1:n),d||(r=c-l);else if("next"===t.message)o=0===p?l:p,r=s+o,u&&!d&&(r=(s+l)%a+p),d||(r=c+l);else if("dots"===t.message)r=t.index*t.slidesToScroll;else if("children"===t.message){if(r=t.index,d){const n=tM(q(q({},e),{targetSlide:r}));r>t.currentSlide&&"left"===n?r-=a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":"")(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){window.ontouchmove=e=>{(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=((e,t,n)=>("IMG"===e.target.tagName&&zI(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}))(e,this.swipe,this.draggable);""!==t&&this.setState(t)},swipeMove(e){const t=((e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:l,verticalSwiping:i,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:p,swiping:v,slideCount:f,slidesToScroll:h,infinite:g,touchObject:m,swipeEvent:b,listHeight:y,listWidth:$}=t;if(n)return;if(o)return zI(e);let x;r&&l&&i&&zI(e);let S={};const w=QI(t);m.curX=e.touches?e.touches[0].pageX:e.clientX,m.curY=e.touches?e.touches[0].pageY:e.clientY,m.swipeLength=Math.round(Math.sqrt(Math.pow(m.curX-m.startX,2)));const C=Math.round(Math.sqrt(Math.pow(m.curY-m.startY,2)));if(!i&&!v&&C>10)return{scrolling:!0};i&&(m.swipeLength=C);let k=(a?-1:1)*(m.curX>m.startX?1:-1);i&&(k=m.curY>m.startY?1:-1);const O=Math.ceil(f/h),I=WI(t.touchObject,i);let M=m.swipeLength;return g||(0===s&&("right"===I||"down"===I)||s+1>=O&&("left"===I||"up"===I)||!KI(t)&&("left"===I||"up"===I))&&(M=m.swipeLength*c,!1===u&&d&&(d(I),S.edgeDragged=!0)),!p&&b&&(b(I),S.swiped=!0),x=r?w+M*(y/$)*k:a?w-M*k:w+M*k,i&&(x=w+M*k),S=q(q({},S),{touchObject:m,swipeLeft:x,trackStyle:UI(q(q({},t),{left:x}))}),Math.abs(m.curX-m.startX)<.8*Math.abs(m.curY-m.startY)||m.swipeLength>10&&(S.swiping=!0,zI(e)),S})(e,q(q(q({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=((e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:l,touchThreshold:i,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:p,currentSlide:v,infinite:f}=t;if(!n)return o&&zI(e),{};const h=a?s/i:l/i,g=WI(r,a),m={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return m;if(!r.swipeLength)return m;if(r.swipeLength>h){let n,o;zI(e),d&&d(g);const r=f?v:p;switch(g){case"left":case"up":o=r+GI(t),n=c?XI(t,o):o,m.currentDirection=0;break;case"right":case"down":o=r-GI(t),n=c?XI(t,o):o,m.currentDirection=1;break;default:n=r}m.triggerSlideHandler=n}else{const e=QI(t);m.trackStyle=qI(q(q({},t),{left:e}))}return m})(e,q(q(q({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),void 0!==n&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"previous"})),0))},slickNext(){this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"next"})),0))},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout((()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t)),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!KI(q(q({},this.$props),this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;"paused"===e?this.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||this.setState({autoplaying:"focused"}):"playing"===t&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&"focused"===this.autoplaying&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return $("button",null,[t+1])},appendDots(e){let{dots:t}=e;return $("ul",{style:{display:"block"}},[t])}},render(){const e=pe("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=q(q({},this.$props),this.$data);let n=VI(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;let r,l,i;if(n=q(q({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:gM,onMouseover:o?this.onTrackOver:gM}),!0===this.dots&&this.slideCount>=this.slidesToShow){let e=VI(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);e.customPaging=this.customPaging,e.appendDots=this.appendDots;const{customPaging:n,appendDots:o}=this.$slots;n&&(e.customPaging=n),o&&(e.appendDots=o);const{pauseOnDotsHover:l}=this.$props;e=q(q({},e),{clickHandler:this.changeSlide,onMouseover:l?this.onDotsOver:gM,onMouseleave:l?this.onDotsLeave:gM}),r=$(dM,e,null)}const a=VI(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(a.prevArrow=s),c&&(a.nextArrow=c),this.arrows&&(l=$(fM,a,null),i=$(hM,a,null));let u=null;this.vertical&&(u={height:"number"==typeof this.listHeight?`${this.listHeight}px`:this.listHeight});let d=null;!1===this.vertical?!0===this.centerMode&&(d={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(d={padding:this.centerPadding+" 0px"});const p=q(q({},u),d),v=this.touchMove;let f={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:v?this.swipeStart:gM,onMousemove:this.dragging&&v?this.swipeMove:gM,onMouseup:v?this.swipeEnd:gM,onMouseleave:this.dragging&&v?this.swipeEnd:gM,[mt?"onTouchstartPassive":"onTouchstart"]:v?this.swipeStart:gM,[mt?"onTouchmovePassive":"onTouchmove"]:this.dragging&&v?this.swipeMove:gM,onTouchend:v?this.touchEnd:gM,onTouchcancel:this.dragging&&v?this.swipeEnd:gM,onKeydown:this.accessibility?this.keyHandler:gM},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(f={class:"slick-list",ref:this.listRefHandler},h={class:e}),$("div",h,[this.unslick?"":l,$("div",f,[$(cM,n,{default:()=>[this.children]})]),this.unslick?"":i,this.unslick?"":r])}},bM=r({name:"Slider",mixins:[Wu],inheritAttrs:!1,props:q({},AI),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map((e=>e.breakpoint));e.sort(((e,t)=>e-t)),e.forEach(((t,n)=>{let o;o=TI(0===n?{minWidth:0,maxWidth:t}:{minWidth:e[n-1]+1,maxWidth:t}),rM()&&this.media(o,(()=>{this.setState({breakpoint:t})}))}));const t=TI({minWidth:e.slice(-1)[0]});rM()&&this.media(t,(()=>{this.setState({breakpoint:null})}))}},beforeUnmount(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=e=>{let{matches:n}=e;n&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;null===(e=this.innerSlider)||void 0===e||e.slickPrev()},slickNext(){var e;null===(e=this.innerSlider)||void 0===e||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=this.innerSlider)||void 0===n||n.slickGoTo(e,t)},slickPause(){var e;null===(e=this.innerSlider)||void 0===e||e.pause("paused")},slickPlay(){var e;null===(e=this.innerSlider)||void 0===e||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter((e=>e.breakpoint===this.breakpoint)),t="unslick"===n[0].settings?"unslick":q(q({},this.$props),n[0].settings)):t=q({},this.$props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);let o=Le(this)||[];o=o.filter((e=>"string"==typeof e?!!e.trim():!!e)),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(t.variableWidth=!1);const r=[];let l=null;for(let a=0;a=o.length));n+=1)i.push(Ja(o[n],{key:100*a+10*r+n,tabindex:-1,style:{width:100/t.slidesPerRow+"%",display:"inline-block"}}));n.push($("div",{key:10*a+r},[i]))}t.variableWidth?r.push($("div",{key:a,style:{width:l}},[n])):r.push($("div",{key:a},[n]))}if("unslick"===t){const e="regular slider "+(this.className||"");return $("div",{class:e},[o])}r.length<=t.slidesToShow&&(t.unslick=!0);const i=q(q(q({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return $(mM,U(U({},i),{},{__propsSymbol__:[]}),this.$slots)}}),yM=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:l}=e,i=1.25*-o,a=l;return{[t]:q(q({},Ur(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:i,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:i,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},$M=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:q(q({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":q(q({},r),{button:r})})}}}},xM=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},SM=tl("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=rl(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[yM(o),$M(o),xM(o)]}),{dotWidth:16,dotHeight:3,dotWidthActive:24});const wM=r({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:{effect:ft(),dots:ut(!0),vertical:ut(),autoplay:ut(),easing:String,beforeChange:dt(),afterChange:dt(),prefixCls:String,accessibility:ut(),nextArrow:Ii.any,prevArrow:Ii.any,pauseOnHover:ut(),adaptiveHeight:ut(),arrows:ut(!1),autoplaySpeed:Number,centerMode:ut(),centerPadding:String,cssEase:String,dotsClass:String,draggable:ut(!1),fade:ut(),focusOnSelect:ut(),infinite:ut(),initialSlide:Number,lazyLoad:ft(),rtl:ut(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:ut(),swipeToSlide:ut(),swipeEvent:dt(),touchMove:ut(),touchThreshold:Number,variableWidth:ut(),useCSS:ut(),slickGoTo:Number,responsive:Array,dotPosition:ft(),verticalSwiping:ut(!1)},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=f();r({goTo:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=l.value)||void 0===n||n.slickGoTo(e,t)},autoplay:e=>{var t,n;null===(n=null===(t=l.value)||void 0===t?void 0:t.innerSlider)||void 0===n||n.handleAutoPlay(e)},prev:()=>{var e;null===(e=l.value)||void 0===e||e.slickPrev()},next:()=>{var e;null===(e=l.value)||void 0===e||e.slickNext()},innerSlider:d((()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.innerSlider}))}),m((()=>{bn(void 0===e.vertical)}));const{prefixCls:i,direction:a}=Il("carousel",e),[s,c]=SM(i),u=d((()=>e.dotPosition?e.dotPosition:void 0!==e.vertical&&e.vertical?"right":"bottom")),p=d((()=>"left"===u.value||"right"===u.value)),v=d((()=>{const t="slick-dots";return pe({[t]:!0,[`${t}-${u.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})}));return()=>{const{dots:t,arrows:r,draggable:u,effect:d}=e,{class:f,style:h}=o,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rt.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const AM=Symbol("TreeContextKey"),BM=r({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return v(AM,d((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),DM=()=>p(AM,d((()=>({})))),zM=Symbol("KeysStateKey"),RM=()=>p(zM,{expandedKeys:g([]),selectedKeys:g([]),loadedKeys:g([]),loadingKeys:g([]),checkedKeys:g([]),halfCheckedKeys:g([]),expandedKeysSet:d((()=>new Set)),selectedKeysSet:d((()=>new Set)),loadedKeysSet:d((()=>new Set)),loadingKeysSet:d((()=>new Set)),checkedKeysSet:d((()=>new Set)),halfCheckedKeysSet:d((()=>new Set)),flattenNodes:g([])}),jM=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const l=`${t}-indent-unit`,i=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Ii.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Ii.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Ii.any,switcherIcon:Ii.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});const LM="open",_M="close",WM=r({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:NM,isTreeNode:1,setup(e,t){let{attrs:n,slots:o,expose:r}=t;e.data,Object.keys(e.data.slots||{}).map((e=>"`v-slot:"+e+"` "));const s=g(!1),c=DM(),{expandedKeysSet:p,selectedKeysSet:v,loadedKeysSet:f,loadingKeysSet:h,checkedKeysSet:m,halfCheckedKeysSet:b}=RM(),{dragOverNodeKey:y,dropPosition:x,keyEntities:S}=c.value,w=d((()=>oP(e.eventKey,{expandedKeysSet:p.value,selectedKeysSet:v.value,loadedKeysSet:f.value,loadingKeysSet:h.value,checkedKeysSet:m.value,halfCheckedKeysSet:b.value,dragOverNodeKey:y,dropPosition:x,keyEntities:S}))),C=Cy((()=>w.value.expanded)),k=Cy((()=>w.value.selected)),O=Cy((()=>w.value.checked)),I=Cy((()=>w.value.loaded)),M=Cy((()=>w.value.loading)),P=Cy((()=>w.value.halfChecked)),E=Cy((()=>w.value.dragOver)),T=Cy((()=>w.value.dragOverGapTop)),A=Cy((()=>w.value.dragOverGapBottom)),B=Cy((()=>w.value.pos)),D=g(),z=d((()=>{const{eventKey:t}=e,{keyEntities:n}=c.value,{children:o}=n[t]||{};return!!(o||[]).length})),R=d((()=>{const{isLeaf:t}=e,{loadData:n}=c.value,o=z.value;return!1!==t&&(t||!n&&!o||n&&I.value&&!o)})),j=d((()=>R.value?null:C.value?LM:_M)),N=d((()=>{const{disabled:t}=e,{disabled:n}=c.value;return!(!n&&!t)})),H=d((()=>{const{checkable:t}=e,{checkable:n}=c.value;return!(!n||!1===t)&&n})),F=d((()=>{const{selectable:t}=e,{selectable:n}=c.value;return"boolean"==typeof t?t:n})),L=d((()=>{const{data:t,active:n,checkable:o,disableCheckbox:r,disabled:l,selectable:i}=e;return q(q({active:n,checkable:o,disableCheckbox:r,disabled:l,selectable:i},t),{dataRef:t,data:t,isLeaf:R.value,checked:O.value,expanded:C.value,loading:M.value,selected:k.value,halfChecked:P.value})})),_=u(),W=d((()=>{const{eventKey:t}=e,{keyEntities:n}=c.value,{parent:o}=n[t]||{};return q(q({},rP(q({},e,w.value))),{parent:o})})),K=l({eventData:W,eventKey:d((()=>e.eventKey)),selectHandle:D,pos:B,key:_.vnode.key});r(K);const V=e=>{const{onNodeDoubleClick:t}=c.value;t(e,W.value)},X=t=>{if(N.value)return;const{disableCheckbox:n}=e,{onNodeCheck:o}=c.value;if(!H.value||n)return;t.preventDefault();const r=!O.value;o(t,W.value,r)},G=e=>{const{onNodeClick:t}=c.value;t(e,W.value),F.value?(e=>{if(N.value)return;const{onNodeSelect:t}=c.value;e.preventDefault(),t(e,W.value)})(e):X(e)},Y=e=>{const{onNodeMouseEnter:t}=c.value;t(e,W.value)},Q=e=>{const{onNodeMouseLeave:t}=c.value;t(e,W.value)},Z=e=>{const{onNodeContextMenu:t}=c.value;t(e,W.value)},J=e=>{const{onNodeDragStart:t}=c.value;e.stopPropagation(),s.value=!0,t(e,K);try{e.dataTransfer.setData("text/plain","")}catch(n){}},ee=e=>{const{onNodeDragEnter:t}=c.value;e.preventDefault(),e.stopPropagation(),t(e,K)},te=e=>{const{onNodeDragOver:t}=c.value;e.preventDefault(),e.stopPropagation(),t(e,K)},ne=e=>{const{onNodeDragLeave:t}=c.value;e.stopPropagation(),t(e,K)},oe=e=>{const{onNodeDragEnd:t}=c.value;e.stopPropagation(),s.value=!1,t(e,K)},re=e=>{const{onNodeDrop:t}=c.value;e.preventDefault(),e.stopPropagation(),s.value=!1,t(e,K)},le=e=>{const{onNodeExpand:t}=c.value;M.value||t(e,W.value)},ie=()=>{const{draggable:e,prefixCls:t}=c.value;return e&&(null==e?void 0:e.icon)?$("span",{class:`${t}-draggable-icon`},[e.icon]):null},ae=()=>{const{loadData:e,onNodeLoad:t}=c.value;M.value||e&&C.value&&!R.value&&(z.value||I.value||t(W.value))};i((()=>{ae()})),a((()=>{ae()}));const se=()=>{const{prefixCls:t}=c.value,n=(()=>{var t,n,r;const{switcherIcon:l=o.switcherIcon||(null===(t=c.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.switcherIcon])}=e,{switcherIcon:i}=c.value,a=l||i;return"function"==typeof a?a(L.value):a})();if(R.value)return!1!==n?$("span",{class:pe(`${t}-switcher`,`${t}-switcher-noop`)},[n]):null;const r=pe(`${t}-switcher`,`${t}-switcher_${C.value?LM:_M}`);return!1!==n?$("span",{onClick:le,class:r},[n]):null},ce=()=>{var t,n;const{disableCheckbox:o}=e,{prefixCls:r}=c.value,l=N.value;return H.value?$("span",{class:pe(`${r}-checkbox`,O.value&&`${r}-checkbox-checked`,!O.value&&P.value&&`${r}-checkbox-indeterminate`,(l||o)&&`${r}-checkbox-disabled`),onClick:X},[null===(n=(t=c.value).customCheckable)||void 0===n?void 0:n.call(t)]):null},ue=()=>{const{prefixCls:e}=c.value;return $("span",{class:pe(`${e}-iconEle`,`${e}-icon__${j.value||"docu"}`,M.value&&`${e}-icon_loading`)},null)},de=()=>{const{disabled:t,eventKey:n}=e,{draggable:o,dropLevelOffset:r,dropPosition:l,prefixCls:i,indent:a,dropIndicatorRender:s,dragOverNodeKey:u,direction:d}=c.value;return!t&&!1!==o&&u===n?s({dropPosition:l,dropLevelOffset:r,indent:a,prefixCls:i,direction:d}):null},ve=()=>{var t,n,r,l,i,a;const{icon:u=o.icon,data:d}=e,p=o.title||(null===(t=c.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.title])||(null===(l=c.value.slots)||void 0===l?void 0:l.title)||e.title,{prefixCls:v,showIcon:f,icon:h,loadData:g}=c.value,m=N.value,b=`${v}-node-content-wrapper`;let y,x;if(f){const e=u||(null===(i=c.value.slots)||void 0===i?void 0:i[null===(a=null==d?void 0:d.slots)||void 0===a?void 0:a.icon])||h;y=e?$("span",{class:pe(`${v}-iconEle`,`${v}-icon__customize`)},["function"==typeof e?e(L.value):e]):ue()}else g&&M.value&&(y=ue());x="function"==typeof p?p(L.value):p,x=void 0===x?"---":x;const S=$("span",{class:`${v}-title`},[x]);return $("span",{ref:D,title:"string"==typeof p?p:"",class:pe(`${b}`,`${b}-${j.value||"normal"}`,!m&&(k.value||s.value)&&`${v}-node-selected`),onMouseenter:Y,onMouseleave:Q,onContextmenu:Z,onClick:G,onDblclick:V},[y,S,de()])};return()=>{const t=q(q({},e),n),{eventKey:o,isLeaf:r,isStart:l,isEnd:i,domRef:a,active:s,data:u,onMousemove:d,selectable:p}=t,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{data:t}=e,{draggable:n}=c.value;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))})(),D=!x&&B,z=y===o,R=void 0!==p?{"aria-selected":!!p}:void 0;return $("div",U(U({ref:a,class:pe(n.class,`${f}-treenode`,{[`${f}-treenode-disabled`]:x,[`${f}-treenode-switcher-${C.value?"open":"close"}`]:!r,[`${f}-treenode-checkbox-checked`]:O.value,[`${f}-treenode-checkbox-indeterminate`]:P.value,[`${f}-treenode-selected`]:k.value,[`${f}-treenode-loading`]:M.value,[`${f}-treenode-active`]:s,[`${f}-treenode-leaf-last`]:I,[`${f}-treenode-draggable`]:D,dragging:z,"drop-target":b===o,"drop-container":m===o,"drag-over":!x&&E.value,"drag-over-gap-top":!x&&T.value,"drag-over-gap-bottom":!x&&A.value,"filter-node":h&&h(W.value)}),style:n.style,draggable:D,"aria-grabbed":z,onDragstart:D?J:void 0,onDragenter:B?ee:void 0,onDragover:B?te:void 0,onDragleave:B?ne:void 0,onDrop:B?re:void 0,onDragend:B?oe:void 0,onMousemove:d},R),S),[$(jM,{prefixCls:f,level:w,isStart:l,isEnd:i},null),ie(),se(),ce(),ve()])}}});function KM(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function VM(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function XM(e){return e.split("-")}function GM(e,t){return`${e}-${t}`}function YM(e){if(e.parent){const t=XM(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function UM(e,t,n,o,r,l,i,a,s,c){var u;const{clientX:d,clientY:p}=e,{top:v,height:f}=e.target.getBoundingClientRect(),h=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o;let g=a[n.eventKey];if(pe.key===g.key)),t=i[e<=0?0:e-1].key;g=a[t]}const m=g.key,b=g,y=g.key;let $=0,x=0;if(!s.has(m))for(let k=0;k-1.5?l({dragNode:S,dropNode:w,dropPosition:1})?$=1:C=!1:l({dragNode:S,dropNode:w,dropPosition:0})?$=0:l({dragNode:S,dropNode:w,dropPosition:1})?$=1:C=!1:l({dragNode:S,dropNode:w,dropPosition:1})?$=1:C=!1,{dropPosition:$,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:0===$?null:(null===(u=g.parent)||void 0===u?void 0:u.key)||null,dropAllowed:C}}function qM(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function QM(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function ZM(e,t){const n=new Set;function o(e){if(n.has(e))return;const r=t[e];if(!r)return;n.add(e);const{parent:l,node:i}=r;i.disabled||l&&o(l.key)}return(e||[]).forEach((e=>{o(e)})),[...n]}function JM(e,t){return null!=e?e:t}function eP(e){const{title:t,_title:n,key:o,children:r}=e||{},l=t||"title";return{title:l,_title:n||[l],key:o||"key",children:r||"children"}}function tP(e){return function e(){return Ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,l;if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return null;const i=t.children||{},a=t.key,s={};for(const[e,w]of Object.entries(t.props))s[re(e)]=w;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:v}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:v||""===v||void 0},h=q(q({},s),f),{title:g=(null===(n=i.title)||void 0===n?void 0:n.call(i,h)),icon:m=(null===(o=i.icon)||void 0===o?void 0:o.call(i,h)),switcherIcon:b=(null===(r=i.switcherIcon)||void 0===r?void 0:r.call(i,h))}=s,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]?arguments[1]:{};const a=r||(arguments.length>2?arguments[2]:void 0),s={},c={};let u={posEntities:s,keyEntities:c};return t&&(u=t(u)||u),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:l,fieldNames:i}=o,{key:a,children:s}=eP(i),c=r||s;let u;l?"string"==typeof l?u=e=>e[l]:"function"==typeof l&&(u=e=>l(e)):u=(e,t)=>JM(e[a],t),function n(o,r,l,i){const a=o?o[c]:e,s=o?GM(l.pos,r):"0",d=o?[...i,o]:[];if(o){const e=u(o,s),n={node:o,index:r,pos:s,key:e,parentPos:l.node?l.pos:null,level:l.level+1,nodes:d};t(n)}a&&a.forEach(((e,t)=>{n(e,t,{node:o,pos:s,level:l?l.level+1:-1},d)}))}(null)}(e,(e=>{const{node:t,index:o,pos:r,key:l,parentPos:i,level:a,nodes:d}=e,p={node:t,nodes:d,index:o,key:l,pos:r,level:a},v=JM(l,r);s[r]=p,c[v]=p,p.parent=s[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)}),{externalGetKey:a,childrenPropName:l,fieldNames:i}),o&&o(u),u}function oP(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:l,checkedKeysSet:i,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:l.has(e),checked:i.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function rP(e){const{data:t,expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:v}=e,f=q(q({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:v,key:v});return"props"in f||Object.defineProperty(f,"props",{get:()=>e}),f}const lP="__rc_cascader_search_mark__",iP=(e,t,n)=>{let{label:o}=n;return t.some((t=>String(t[o]).toLowerCase().includes(e.toLowerCase())))},aP=e=>{let{path:t,fieldNames:n}=e;return t.map((e=>e[n.label])).join(" / ")};function sP(e,t,n){const o=new Set(e);return e.filter((e=>{const r=t[e],l=r?r.parent:null,i=r?r.children:null;return n===IM?!(i&&i.some((e=>e.key&&o.has(e.key)))):!(l&&!l.node.disabled&&o.has(l.key))}))}function cP(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r;let l=t;const i=[];for(let a=0;a{const r=e[n.value];return o?String(r)===String(t):r===t})),c=-1!==s?null==l?void 0:l[s]:null;i.push({value:null!==(r=null==c?void 0:c[n.value])&&void 0!==r?r:t,index:s,option:c}),l=null==c?void 0:c[n.children]}return i}function uP(e,t){const n=new Set;return e.forEach((e=>{t.has(e)||n.add(e)})),n}function dP(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function pP(e,t,n,o,r,l){let i;i=l||dP;const a=new Set(e.filter((e=>!!n[e])));let s;return s=!0===t?function(e,t,n,o){const r=new Set(e),l=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((e=>{const{key:t,node:n,children:l=[]}=e;r.has(t)&&!o(n)&&l.filter((e=>!o(e.node))).forEach((e=>{r.add(e.key)}))}));const i=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||i.has(e.parent.key))return;if(o(e.parent.node))return void i.add(t.key);let a=!0,s=!1;(t.children||[]).filter((e=>!o(e.node))).forEach((e=>{let{key:t}=e;const n=r.has(t);a&&!n&&(a=!1),s||!n&&!l.has(t)||(s=!0)})),a&&r.add(t.key),s&&l.add(t.key),i.add(t.key)}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(uP(l,r))}}(a,r,o,i):function(e,t,n,o,r){const l=new Set(e);let i=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach((e=>{const{key:t,node:n,children:o=[]}=e;l.has(t)||i.has(t)||r(n)||o.filter((e=>!r(e.node))).forEach((e=>{l.delete(e.key)}))}));i=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter((e=>!r(e.node))).forEach((e=>{let{key:t}=e;const n=l.has(t);o&&!n&&(o=!1),s||!n&&!i.has(t)||(s=!0)})),o||l.delete(t.key),s&&i.add(t.key),a.add(t.key)}));return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(uP(i,l))}}(a,t.halfCheckedKeys,r,o,i),s}const vP=Symbol("CascaderContextKey"),fP=()=>p(vP),hP=(e,t,n,o,r,l)=>{const i=Vd(),a=d((()=>"rtl"===i.direction)),[s,c,u]=[f([]),f(),f([])];m((()=>{let e=-1,r=t.value;const l=[],i=[],a=o.value.length;for(let t=0;te[n.value.value]===o.value[t]));if(-1===a)break;e=a,l.push(e),i.push(o.value[t]),r=r[e][n.value.children]}let d=t.value;for(let t=0;t{r(e)},v=()=>{if(s.value.length>1){const e=s.value.slice(0,-1);p(e)}else i.toggleOpen(!1)},h=()=>{var e;const t=((null===(e=u.value[c.value])||void 0===e?void 0:e[n.value.children])||[]).find((e=>!e.disabled));if(t){const e=[...s.value,t[n.value.value]];p(e)}};e.expose({onKeydown:e=>{const{which:t}=e;switch(t){case sd.UP:case sd.DOWN:{let e=0;t===sd.UP?e=-1:t===sd.DOWN&&(e=1),0!==e&&(e=>{const t=u.value.length;let o=c.value;-1===o&&e<0&&(o=t);for(let r=0;re[n.value.value])),t[t.length-1]):l(s.value,e)}break;case sd.ESC:i.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})};function gP(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:l}=e;const{customSlots:i,checkable:a}=fP(),s=!1!==a.value?i.value.checkable:a.value,c="function"==typeof s?s():"boolean"==typeof s?null:s;return $("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:l},[c])}gP.props=["prefixCls","checked","halfChecked","disabled","onClick"],gP.displayName="Checkbox",gP.inheritAttrs=!1;const mP="__cascader_fix_label__";function bP(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:l,onToggleOpen:i,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:p}=e;var v,f,h,g,m,b;const y=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:S,changeOnSelect:w,expandTrigger:C,expandIcon:k,loadingIcon:O,dropdownMenuColumnStyle:I,customSlots:M}=fP(),P=null!==(v=k.value)&&void 0!==v?v:null===(h=(f=M.value).expandIcon)||void 0===h?void 0:h.call(f),E=null!==(g=O.value)&&void 0!==g?g:null===(b=(m=M.value).loadingIcon)||void 0===b?void 0:b.call(m),T="hover"===C.value;return $("ul",{class:y,role:"menu"},[o.map((e=>{var o;const{disabled:v}=e,f=e[lP],h=null!==(o=e[mP])&&void 0!==o?o:e[S.value.label],g=e[S.value.value],m=EM(e,S.value),b=f?f.map((e=>e[S.value.value])):[...l,g],y=MM(b),C=d.includes(y),k=c.has(y),O=u.has(y),M=()=>{v||T&&m||s(b)},A=()=>{p(e)&&a(b,m)};let B;return"string"==typeof e.title?B=e.title:"string"==typeof h&&(B=h),$("li",{key:y,class:[x,{[`${x}-expand`]:!m,[`${x}-active`]:r===g,[`${x}-disabled`]:v,[`${x}-loading`]:C}],style:I.value,role:"menuitemcheckbox",title:B,"aria-checked":k,"data-path-key":y,onClick:()=>{M(),n&&!m||A()},onDblclick:()=>{w.value&&i(!1)},onMouseenter:()=>{T&&M()},onMousedown:e=>{e.preventDefault()}},[n&&$(gP,{prefixCls:`${t}-checkbox`,checked:k,halfChecked:O,disabled:v,onClick:e=>{e.stopPropagation(),A()}},null),$("div",{class:`${x}-content`},[h]),!C&&P&&!m&&$("div",{class:`${x}-expand-icon`},[P]),C&&E&&$("div",{class:`${x}-loading-icon`},[E])])}))])}bP.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],bP.displayName="Column",bP.inheritAttrs=!1;const yP=r({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=Vd(),l=f(),a=d((()=>"rtl"===r.direction)),{options:s,values:u,halfValues:p,fieldNames:v,changeOnSelect:h,onSelect:b,searchOptions:y,dropdownPrefixCls:x,loadData:S,expandTrigger:w,customSlots:C}=fP(),k=d((()=>x.value||r.prefixCls)),O=g([]);m((()=>{O.value.length&&O.value.forEach((e=>{const t=cP(e.split(kM),s.value,v.value,!0).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];(!n||n[v.value.children]||EM(n,v.value))&&(O.value=O.value.filter((t=>t!==e)))}))}));const I=d((()=>new Set(PM(u.value)))),M=d((()=>new Set(PM(p.value)))),[P,E]=(()=>{const e=Vd(),{values:t}=fP(),[n,o]=wp([]);return c((()=>e.open),(()=>{if(e.open&&!e.multiple){const e=t.value[0];o(e||[])}}),{immediate:!0}),[n,o]})(),T=e=>{E(e),(e=>{if(!S.value||r.searchValue)return;const t=cP(e,s.value,v.value).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];if(n&&!EM(n,v.value)){const n=MM(e);O.value=[...O.value,n],S.value(t)}})(e)},A=e=>{const{disabled:t}=e,n=EM(e,v.value);return!t&&(n||h.value||r.multiple)},B=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];b(e),!r.multiple&&(t||h.value&&("hover"===w.value||n))&&r.toggleOpen(!1)},D=d((()=>r.searchValue?y.value:s.value)),z=d((()=>{const e=[{options:D.value}];let t=D.value;for(let n=0;ne[v.value.value]===o)),l=null==r?void 0:r[v.value.children];if(!(null==l?void 0:l.length))break;t=l,e.push({options:l})}return e}));hP(t,D,v,P,T,((e,t)=>{A(t)&&B(e,EM(t,v.value),!0)}));const R=e=>{e.preventDefault()};return i((()=>{c(P,(e=>{var t;for(let n=0;n{var e,t,i,s,c;const{notFoundContent:u=(null===(e=o.notFoundContent)||void 0===e?void 0:e.call(o))||(null===(i=(t=C.value).notFoundContent)||void 0===i?void 0:i.call(t)),multiple:d,toggleOpen:p}=r,f=!(null===(c=null===(s=z.value[0])||void 0===s?void 0:s.options)||void 0===c?void 0:c.length),h=[{[v.value.value]:"__EMPTY__",[mP]:u,disabled:!0}],g=q(q({},n),{multiple:!f&&d,onSelect:B,onActive:T,onToggleOpen:p,checkedSet:I.value,halfCheckedSet:M.value,loadingKeys:O.value,isSelectable:A}),m=(f?[{options:h}]:z.value).map(((e,t)=>{const n=P.value.slice(0,t),o=P.value[t];return $(bP,U(U({key:t},g),{},{prefixCls:k.value,options:e.options,prevValuePath:n,activeValue:o}),null)}));return $("div",{class:[`${k.value}-menus`,{[`${k.value}-menu-empty`]:f,[`${k.value}-rtl`]:a.value}],onMousedown:R,ref:l},[m])}}});function $P(e){const t=f(0),n=g();return m((()=>{const o=new Map;let r=0;const l=e.value||{};for(const e in l)if(Object.prototype.hasOwnProperty.call(l,e)){const t=l[e],{level:n}=t;let i=o.get(n);i||(i=new Set,o.set(n,i)),i.add(t),r=Math.max(r,n)}t.value=r,n.value=o})),{maxLevel:t,levelEntities:n}}function xP(){return q(q({},q(q({},Ml(Ud(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:ct(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:OM},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Ii.any,loadingIcon:Ii.any})),{onChange:Function,customSlots:Object})}function SP(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((e=>Array.isArray(e)?e:[e])):[]}const wP=r({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Re(xP(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=yp(M(e,"id")),i=d((()=>!!e.checkable)),[a,s]=Sp(e.defaultValue,{value:d((()=>e.value)),postState:SP}),c=d((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}(e.fieldNames))),u=d((()=>e.options||[])),p=(h=u,b=c,d((()=>nP(h.value,{fieldNames:b.value,initWrapper:e=>q(q({},e),{pathKeyEntities:{}}),processEntity:(e,t)=>{const n=e.nodes.map((e=>e[b.value.value])).join(kM);t.pathKeyEntities[n]=e,e.key=n}}).pathKeyEntities)));var h,b;const y=e=>{const t=p.value;return e.map((e=>{const{nodes:n}=t[e];return n.map((e=>e[c.value.value]))}))},[x,S]=Sp("",{value:d((()=>e.searchValue)),postState:e=>e||""}),w=(t,n)=>{S(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},{showSearch:C,searchConfig:k}=function(e){const t=g(!1),n=f({});return m((()=>{if(!e.value)return t.value=!1,void(n.value={});let o={matchInputWidth:!0,limit:50};e.value&&"object"==typeof e.value&&(o=q(q({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o})),{showSearch:t,searchConfig:n}}(M(e,"showSearch")),O=((e,t,n,o,r,l)=>d((()=>{const{filter:i=iP,render:a=aP,limit:s=50,sort:c}=r.value,u=[];return e.value?(function t(r,d){r.forEach((r=>{if(!c&&s>0&&u.length>=s)return;const p=[...d,r],v=r[n.value.children];v&&0!==v.length&&!l.value||i(e.value,p,{label:n.value.label})&&u.push(q(q({},r),{[n.value.label]:a({inputValue:e.value,path:p,prefixCls:o.value,fieldNames:n.value}),[lP]:p})),v&&t(r[n.value.children],p)}))}(t.value,[]),c&&u.sort(((t,o)=>c(t[lP],o[lP],e.value,n.value))),s>0?u.slice(0,s):u):[]})))(x,u,c,d((()=>e.dropdownPrefixCls||e.prefixCls)),k,M(e,"changeOnSelect")),I=((e,t,n)=>d((()=>{const o=[],r=[];return n.value.forEach((n=>{cP(n,e.value,t.value).every((e=>e.option))?r.push(n):o.push(n)})),[r,o]})))(u,c,a),[P,E,T]=[f([]),f([]),f([])],{maxLevel:A,levelEntities:B}=$P(p);m((()=>{const[e,t]=I.value;if(!i.value||!a.value.length)return void([P.value,E.value,T.value]=[e,[],t]);const n=PM(e),o=p.value,{checkedKeys:r,halfCheckedKeys:l}=pP(n,!0,o,A.value,B.value);[P.value,E.value,T.value]=[y(r),y(l),t]}));const D=((e,t,n,o,r)=>d((()=>{const l=r.value||(e=>{let{labels:t}=e;const n=o.value?t.slice(-1):t;return n.every((e=>["string","number"].includes(typeof e)))?n.join(" / "):n.reduce(((e,t,n)=>{const o=qe(t)?Ja(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]}),[])});return e.value.map((e=>{const o=cP(e,t.value,n.value),r=l({labels:o.map((e=>{let{option:t,value:o}=e;var r;return null!==(r=null==t?void 0:t[n.value.label])&&void 0!==r?r:o})),selectedOptions:o.map((e=>{let{option:t}=e;return t}))}),i=MM(e);return{label:r,value:i,key:i,valueCells:e}}))})))(d((()=>{const t=sP(PM(P.value),p.value,e.showCheckedStrategy);return[...T.value,...y(t)]})),u,c,i,M(e,"displayRender")),R=t=>{if(s(t),e.onChange){const n=SP(t),o=n.map((e=>cP(e,u.value,c.value).map((e=>e.option)))),r=i.value?n:n[0],l=i.value?o:o[0];e.onChange(r,l)}},j=t=>{if(S(""),i.value){const n=MM(t),o=PM(P.value),r=PM(E.value),l=o.includes(n),i=T.value.some((e=>MM(e)===n));let a=P.value,s=T.value;if(i&&!l)s=T.value.filter((e=>MM(e)!==n));else{const t=l?o.filter((e=>e!==n)):[...o,n];let i;({checkedKeys:i}=pP(t,!l||{checked:!1,halfCheckedKeys:r},p.value,A.value,B.value));const s=sP(i,p.value,e.showCheckedStrategy);a=y(s)}R([...s,...a])}else R(t)},N=(e,t)=>{if("clear"===t.type)return void R([]);const{valueCells:n}=t.values[0];j(n)},H=d((()=>void 0!==e.open?e.open:e.popupVisible)),F=d((()=>e.dropdownClassName||e.popupClassName)),L=d((()=>e.dropdownStyle||e.popupStyle||{})),_=d((()=>e.placement||e.popupPlacement)),W=t=>{var n,o;null===(n=e.onDropdownVisibleChange)||void 0===n||n.call(e,t),null===(o=e.onPopupVisibleChange)||void 0===o||o.call(e,t)},{changeOnSelect:K,checkable:V,dropdownPrefixCls:X,loadData:G,expandTrigger:Y,expandIcon:Q,loadingIcon:Z,dropdownMenuColumnStyle:J,customSlots:ee}=z(e);(e=>{v(vP,e)})({options:u,fieldNames:c,values:P,halfValues:E,changeOnSelect:K,onSelect:j,checkable:V,searchOptions:O,dropdownPrefixCls:X,loadData:G,expandTrigger:Y,expandIcon:Q,loadingIcon:Z,dropdownMenuColumnStyle:J,customSlots:ee});const te=f();o({focus(){var e;null===(e=te.value)||void 0===e||e.focus()},blur(){var e;null===(e=te.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=te.value)||void 0===t||t.scrollTo(e)}});const ne=d((()=>Ml(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"])));return()=>{const t=!(x.value?O.value:u.value).length,{dropdownMatchSelectWidth:o=!1}=e,a=x.value&&k.value.matchInputWidth||t?{}:{minWidth:"auto"};return $(Qd,U(U(U({},ne.value),n),{},{ref:te,id:l,prefixCls:e.prefixCls,dropdownMatchSelectWidth:o,dropdownStyle:q(q({},L.value),a),displayValues:D.value,onDisplayValuesChange:N,mode:i.value?"multiple":void 0,searchValue:x.value,onSearch:w,showSearch:C.value,OptionList:yP,emptyOptions:t,open:H.value,dropdownClassName:F.value,placement:_.value,onDropdownVisibleChange:W,getRawInputElement:()=>{var e;return null===(e=r.default)||void 0===e?void 0:e.call(r)}}),r)}}});const CP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function kP(e){for(var t=1;tJt()&&window.document.documentElement,EP=e=>{if(Jt()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some((e=>e in n.style))}return!1};function TP(e,t){return Array.isArray(e)||void 0===t?EP(e):((e,t)=>{if(!EP(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o})(e,t)}let AP;const BP=()=>{const e=g(!1);return i((()=>{e.value=(()=>{if(!PP())return!1;if(void 0!==AP)return AP;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),AP=1===e.scrollHeight,document.body.removeChild(e),AP})()})),e},DP=Symbol("rowContextKey"),zP=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},RP=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},jP=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let l=o;l>=0;l--)0===l?(r[`${n}${t}-${l}`]={display:"none"},r[`${n}-push-${l}`]={insetInlineStart:"auto"},r[`${n}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${l}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${l}`]={marginInlineEnd:0},r[`${n}${t}-order-${l}`]={order:0}):(r[`${n}${t}-${l}`]={display:"block",flex:`0 0 ${l/o*100}%`,maxWidth:l/o*100+"%"},r[`${n}${t}-push-${l}`]={insetInlineStart:l/o*100+"%"},r[`${n}${t}-pull-${l}`]={insetInlineEnd:l/o*100+"%"},r[`${n}${t}-offset-${l}`]={marginInlineStart:l/o*100+"%"},r[`${n}${t}-order-${l}`]={order:l});return r})(e,t),NP=tl("Grid",(e=>[zP(e)])),HP=tl("Grid",(e=>{const t=rl(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[RP(t),jP(t,""),jP(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:q({},jP(e,n))}))(t,n[e],e))).reduce(((e,t)=>q(q({},e),t)),{})]})),FP=r({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:{align:ht([String,Object]),justify:ht([String,Object]),prefixCls:String,gutter:ht([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("row",e),[a,s]=NP(r);let c;const u=Sy(),p=f({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),h=f({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=t=>d((()=>{if("string"==typeof e[t])return e[t];if("object"!=typeof e[t])return"";for(let n=0;n<$y.length;n++){const o=$y[n];if(!h.value[o])continue;const r=e[t][o];if(void 0!==r)return r}return""})),m=g("align"),y=g("justify"),x=BP();i((()=>{c=u.value.subscribe((t=>{h.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"==typeof n||Array.isArray(n)&&("object"==typeof n[0]||"object"==typeof n[1]))&&(p.value=t)}))})),b((()=>{u.value.unsubscribe(c)}));const S=d((()=>{const t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach(((e,n)=>{if("object"==typeof e)for(let o=0;o<$y.length;o++){const r=$y[o];if(p.value[r]&&void 0!==e[r]){t[n]=e[r];break}}else t[n]=e})),t}));var w;w={gutter:S,supportFlexGap:x,wrap:d((()=>e.wrap))},v(DP,w);const C=d((()=>pe(r.value,{[`${r.value}-no-wrap`]:!1===e.wrap,[`${r.value}-${y.value}`]:y.value,[`${r.value}-${m.value}`]:m.value,[`${r.value}-rtl`]:"rtl"===l.value},o.class,s.value))),k=d((()=>{const e=S.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,o=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),x.value?t.rowGap=`${e[1]}px`:o&&(t.marginTop=o,t.marginBottom=o),t}));return()=>{var e;return a($("div",U(U({},o),{},{class:C.value,style:q(q({},k.value),o.style)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});function LP(){return LP=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o=l)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}break;default:return e}})):e}function qP(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function QP(e,t,n){var o=0,r=e.length;!function l(i){if(i&&i.length)n(i);else{var a=o;o+=1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,lE=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,iE={integer:function(e){return iE.number(e)&&parseInt(e,10)===e},float:function(e){return iE.number(e)&&!iE.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(QS){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!iE.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(rE)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(nE)return nE;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(e){return e&&e.exact?l:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};s.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var c=s.v4().source,u=s.v6().source;return nE=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(lE)}},aE="enum",sE={required:oE,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(UP(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)oE(e,t,n,o,r);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?iE[l](t)||o.push(UP(r.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&o.push(UP(r.messages.types[l],e.fullField,e.type))}},range:function(e,t,n,o,r){var l="number"==typeof e.len,i="number"==typeof e.min,a="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),l?s!==e.len&&o.push(UP(r.messages[c].len,e.fullField,e.len)):i&&!a&&se.max?o.push(UP(r.messages[c].max,e.fullField,e.max)):i&&a&&(se.max)&&o.push(UP(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[aE]=Array.isArray(e[aE])?e[aE]:[],-1===e[aE].indexOf(t)&&o.push(UP(r.messages[aE],e.fullField,e[aE].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(UP(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(UP(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},cE=function(e,t,n,o,r){var l=e.type,i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t,l)&&!e.required)return n();sE.required(e,t,o,i,r,l),qP(t,l)||sE.type(e,t,o,i,r)}n(i)},uE={string:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t,"string")&&!e.required)return n();sE.required(e,t,o,l,r,"string"),qP(t,"string")||(sE.type(e,t,o,l,r),sE.range(e,t,o,l,r),sE.pattern(e,t,o,l,r),!0===e.whitespace&&sE.whitespace(e,t,o,l,r))}n(l)},method:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&sE.type(e,t,o,l,r)}n(l)},number:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&(sE.type(e,t,o,l,r),sE.range(e,t,o,l,r))}n(l)},boolean:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&sE.type(e,t,o,l,r)}n(l)},regexp:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),qP(t)||sE.type(e,t,o,l,r)}n(l)},integer:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&(sE.type(e,t,o,l,r),sE.range(e,t,o,l,r))}n(l)},float:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&(sE.type(e,t,o,l,r),sE.range(e,t,o,l,r))}n(l)},array:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();sE.required(e,t,o,l,r,"array"),null!=t&&(sE.type(e,t,o,l,r),sE.range(e,t,o,l,r))}n(l)},object:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&sE.type(e,t,o,l,r)}n(l)},enum:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r),void 0!==t&&sE.enum(e,t,o,l,r)}n(l)},pattern:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t,"string")&&!e.required)return n();sE.required(e,t,o,l,r),qP(t,"string")||sE.pattern(e,t,o,l,r)}n(l)},date:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t,"date")&&!e.required)return n();var i;if(sE.required(e,t,o,l,r),!qP(t,"date"))i=t instanceof Date?t:new Date(t),sE.type(e,i,o,l,r),i&&sE.range(e,i.getTime(),o,l,r)}n(l)},url:cE,hex:cE,email:cE,required:function(e,t,n,o,r){var l=[],i=Array.isArray(t)?"array":typeof t;sE.required(e,t,o,l,r,i),n(l)},any:function(e,t,n,o,r){var l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(qP(t)&&!e.required)return n();sE.required(e,t,o,l,r)}n(l)}};function dE(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var pE=dE(),vE=function(){function e(e){this.rules=null,this._messages=pE,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=tE(dE(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var l=t,i=n,a=o;if("function"==typeof i&&(a=i,i={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,l),Promise.resolve(l);if(i.messages){var s=this.messages();s===pE&&(s=dE()),tE(s,i.messages),i.messages=s}else i.messages=this.messages();var c={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=l[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(l===t&&(l=LP({},l)),o=l[e]=i.transform(o)),(i="function"==typeof i?{validator:i}:LP({},i)).validator=r.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=r.getType(i),c[e]=c[e]||[],c[e].push({rule:i,value:o,source:l,field:e}))}))}));var u={};return JP(c,i,(function(t,n){var o,r=t.rule,a=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return LP({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function c(o){void 0===o&&(o=[]);var c=Array.isArray(o)?o:[o];!i.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(eE(r,l));if(i.first&&d.length)return u[r.field]=1,n(d);if(a){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(eE(r,l)):i.error&&(d=[i.error(r,UP(i.messages.required,r.field))]),n(d);var p={};r.defaultField&&Object.keys(t.value).map((function(e){p[e]=r.defaultField})),p=LP({},p,t.rule.fields);var v={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];v[e]=n.map(s.bind(null,e))}));var f=new e(v);f.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),f.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(a=a&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,c,t.source,i);else if(r.validator){try{o=r.validator(r,t.value,c,t.source,i)}catch(d){console.error,i.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===o?c():!1===o?c("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!hE(e,t.slice(0,-1))?e:gE(e,t,n,o)}function bE(e){return fE(e)}function yE(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function $E(e,t){const n=Array.isArray(e)?[...e]:q({},e);return t?(Object.keys(t).forEach((e=>{const o=n[e],r=t[e],l=yE(o)&&yE(r);n[e]=l?$E(o,r||{}):r})),n):n}function xE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o$E(e,t)),e)}function SE(e,t){let n={};return t.forEach((t=>{const o=function(e,t){return hE(e,t)}(e,t);n=function(e,t,n){return mE(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(n,t,o)})),n}vE.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");uE[e]=t},vE.warning=GP,vE.messages=pE,vE.validators=uE;const wE="'${name}' is not a valid ${type}",CE={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:wE,method:wE,array:wE,object:wE,number:wE,date:wE,boolean:wE,integer:wE,float:wE,regexp:wE,email:wE,url:wE,hex:wE},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var kE=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(QS){l(QS)}}function a(e){try{s(o.throw(e))}catch(QS){l(QS)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const OE=vE;function IE(e,t,n,o,r){return kE(this,void 0,void 0,(function*(){const l=q({},n);delete l.ruleIndex,delete l.trigger;let i=null;l&&"array"===l.type&&l.defaultField&&(i=l.defaultField,delete l.defaultField);const a=new OE({[e]:[l]}),s=xE({},CE,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},q({},o)))}catch(p){c=p.errors?p.errors.map(((e,t)=>{let{message:n}=e;return qe(n)?O(n,{key:`error_${t}`}):n})):[s.default()]}if(!c.length&&i){return(yield Promise.all(t.map(((t,n)=>IE(`${e}.${n}`,t,i,o,r))))).reduce(((e,t)=>[...e,...t]),[])}const u=q(q(q({},n),{name:e,enum:(n.enum||[]).join(", ")}),r),d=c.map((e=>"string"==typeof e?function(e,t){return e.replace(/\$\{\w+\}/g,(e=>{const n=e.slice(2,-1);return t[n]}))}(e,u):e));return d}))}function ME(e,t,n,o,r,l){const i=e.join("."),a=n.map(((e,t)=>{const n=e.validator,o=q(q({},e),{ruleIndex:t});return n&&(o.validator=(e,t,o)=>{let r=!1;const l=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n{r||o(...t)}))}));r=l&&"function"==typeof l.then&&"function"==typeof l.catch,r&&l.then((()=>{o()})).catch((e=>{o(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:o}=e,{warningOnly:r,ruleIndex:l}=t;return!!n==!!r?o-l:n?1:-1}));let s;if(!0===r)s=new Promise(((e,n)=>kE(this,void 0,void 0,(function*(){for(let e=0;eIE(i,t,e,o,l).then((t=>({errors:t,rule:e})))));s=(r?function(e){return kE(this,void 0,void 0,(function*(){let t=0;return new Promise((n=>{e.forEach((o=>{o.then((o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])}))}))}))}))}(e):function(e){return kE(this,void 0,void 0,(function*(){return Promise.all(e).then((e=>[].concat(...e)))}))}(e)).then((e=>Promise.reject(e)))}return s.catch((e=>e)),s}const PE=Symbol("formContextKey"),EE=e=>{v(PE,e)},TE=()=>p(PE,{name:d((()=>{})),labelAlign:d((()=>"right")),vertical:d((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:d((()=>{})),rules:d((()=>{})),colon:d((()=>{})),labelWrap:d((()=>{})),labelCol:d((()=>{})),requiredMark:d((()=>!1)),validateTrigger:d((()=>{})),onValidate:()=>{},validateMessages:d((()=>CE))}),AE=Symbol("formItemPrefixContextKey");const BE=["xs","sm","md","lg","xl","xxl"],DE=r({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]},setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:l,wrap:i}=p(DP,{gutter:d((()=>{})),wrap:d((()=>{})),supportFlexGap:d((()=>{}))}),{prefixCls:a,direction:s}=Il("col",e),[c,u]=HP(a),v=d((()=>{const{span:t,order:n,offset:r,push:l,pull:i}=e,c=a.value;let d={};return BE.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),d=q(q({},d),{[`${c}-${t}-${n.span}`]:void 0!==n.span,[`${c}-${t}-order-${n.order}`]:n.order||0===n.order,[`${c}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${c}-${t}-push-${n.push}`]:n.push||0===n.push,[`${c}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${c}-rtl`]:"rtl"===s.value})})),pe(c,{[`${c}-${t}`]:void 0!==t,[`${c}-order-${n}`]:n,[`${c}-offset-${r}`]:r,[`${c}-push-${l}`]:l,[`${c}-pull-${i}`]:i},d,o.class,u.value)})),f=d((()=>{const{flex:t}=e,n=r.value,o={};if(n&&n[0]>0){const e=n[0]/2+"px";o.paddingLeft=e,o.paddingRight=e}if(n&&n[1]>0&&!l.value){const e=n[1]/2+"px";o.paddingTop=e,o.paddingBottom=e}return t&&(o.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(t),!1!==i.value||o.minWidth||(o.minWidth=0)),o}));return()=>{var e;return c($("div",U(U({},o),{},{class:v.value,style:[f.value,o.style]}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});const zE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function RE(e){for(var t=1;t{let{slots:o,emit:r,attrs:l}=n;var i,a,s,c,u;const{prefixCls:d,htmlFor:p,labelCol:v,labelAlign:f,colon:h,required:g,requiredMark:m}=q(q({},t),l),[b]=Ft("Form"),y=null!==(i=t.label)&&void 0!==i?i:null===(a=o.label)||void 0===a?void 0:a.call(o);if(!y)return null;const{vertical:x,labelAlign:S,labelCol:w,labelWrap:C,colon:k}=TE(),O=v||(null==w?void 0:w.value)||{},I=`${d}-item-label`,M=pe(I,"left"===(f||(null==S?void 0:S.value))&&`${I}-left`,O.class,{[`${I}-wrap`]:!!C.value});let P=y;const E=!0===h||!1!==(null==k?void 0:k.value)&&!1!==h;if(E&&!x.value&&"string"==typeof y&&""!==y.trim()&&(P=y.replace(/[:|:]\s*$/,"")),t.tooltip||o.tooltip){const n=$("span",{class:`${d}-item-tooltip`},[$(Jy,{title:t.tooltip},{default:()=>[$(HE,null,null)]})]);P=$(e,null,[P,o.tooltip?null===(s=o.tooltip)||void 0===s?void 0:s.call(o,{class:`${d}-item-tooltip`}):n])}"optional"!==m||g||(P=$(e,null,[P,$("span",{class:`${d}-item-optional`},[(null===(c=b.value)||void 0===c?void 0:c.optional)||(null===(u=Nt.Form)||void 0===u?void 0:u.optional)])]));const T=pe({[`${d}-item-required`]:g,[`${d}-item-required-mark-optional`]:"optional"===m,[`${d}-item-no-colon`]:!E});return $(DE,U(U({},O),{},{class:M}),{default:()=>[$("label",{for:p,class:T,title:"string"==typeof y?y:"",onClick:e=>r("click",e)},[P])]})};FE.displayName="FormItemLabel",FE.inheritAttrs=!1;const LE=FE,_E=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},WE=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),KE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},VE=e=>{const{componentCls:t}=e;return{[e.componentCls]:q(q(q({},Ur(e)),WE(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":q({},KE(e,e.controlHeightSM)),"&-large":q({},KE(e,e.controlHeightLG))})}},XE=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:q(q({},Ur(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Rm,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},GE=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},YE=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},UE=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),qE=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:UE(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},QE=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${o}-col-24${n}-label,\n .${o}-col-xl-24${n}-label`]:UE(e),[`@media (max-width: ${e.screenXSMax}px)`]:[qE(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:UE(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:UE(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:UE(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:UE(e)}}}},ZE=tl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=rl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[VE(o),XE(o),_E(o),GE(o),YE(o),QE(o),qm(o),Rm]})),JE=r({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=p(AE,{prefixCls:d((()=>""))}),l=d((()=>`${o.value}-item-explain`)),i=d((()=>!(!e.errors||!e.errors.length))),a=f(r.value),[,s]=ZE(o);return c([i,r],(()=>{i.value&&(a.value=r.value)})),()=>{var t,r;const i=SS(`${o.value}-show-help-item`),c=ju(`${o.value}-show-help-item`,i);return c.role="alert",c.class=[s.value,l.value,n.class,`${o.value}-show-help`],$(k,U(U({},Ru(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[w($(_,U(U({},c),{},{tag:"div"}),{default:()=>[null===(r=e.errors)||void 0===r?void 0:r.map(((e,t)=>$("div",{key:t,class:a.value?`${l.value}-${a.value}`:""},[e])))]}),[[P,!!(null===(t=e.errors)||void 0===t?void 0:t.length)]])]})}}}),eT=r({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(t,n){let{slots:o}=n;const r=TE(),{wrapperCol:l}=r,i=q({},r);var a;return delete i.labelCol,delete i.wrapperCol,EE(i),a={prefixCls:d((()=>t.prefixCls)),status:d((()=>t.status))},v(AE,a),()=>{var n,r,i;const{prefixCls:a,wrapperCol:s,marginBottom:c,onErrorVisibleChanged:u,help:d=(null===(n=o.help)||void 0===n?void 0:n.call(o)),errors:p=Ye(null===(r=o.errors)||void 0===r?void 0:r.call(o)),extra:v=(null===(i=o.extra)||void 0===i?void 0:i.call(o))}=t,f=`${a}-item`,h=s||(null==l?void 0:l.value)||{},g=pe(`${f}-control`,h.class);return $(DE,U(U({},h),{},{class:g}),{default:()=>{var t;return $(e,null,[$("div",{class:`${f}-control-input`},[$("div",{class:`${f}-control-input-content`},[null===(t=o.default)||void 0===t?void 0:t.call(o)])]),null!==c||p.length?$("div",{style:{display:"flex",flexWrap:"nowrap"}},[$(JE,{errors:p,help:d,class:`${f}-explain-connected`,onErrorVisibleChanged:u},null),!!c&&$("div",{style:{width:0,height:`${c}px`}},null)]):null,v?$("div",{class:`${f}-extra`},[v]):null])}})}}});it("success","warning","error","validating","");const tT={success:Zb,warning:oy,error:Hv,validating:Cv};function nT(e,t,n){let o=e;const r=t;let l=0;try{for(let e=r.length;lt.name||t.prop)),C=g([]),k=g(!1),O=g(),I=d((()=>bE(w.value))),M=d((()=>{if(I.value.length){const e=x.name.value,t=I.value.join("_");return e?`${e}_${t}`:`form_item_${t}`}})),P=d((()=>(()=>{const e=x.model.value;return e&&w.value?nT(e,I.value,!0).v:void 0})())),E=g(vg(P.value)),T=d((()=>{let e=void 0!==t.validateTrigger?t.validateTrigger:x.validateTrigger.value;return e=void 0===e?"change":e,fE(e)})),A=d((()=>{let e=x.rules.value;const n=t.rules,o=void 0!==t.required?{required:!!t.required,trigger:T.value}:[],r=nT(e,I.value);e=e?r.o[r.k]||r.v:[];const l=[].concat(n||e||[]);return Fg(l,(e=>e.required))?l:l.concat(o)})),B=d((()=>{const e=A.value;let n=!1;return e&&e.length&&e.every((e=>!e.required||(n=!0,!1))),n||t.required})),D=g();m((()=>{D.value=t.validateStatus}));const z=d((()=>{let e={};return"string"==typeof t.label?e.label=t.label:t.name&&(e.label=String(t.name)),t.messageVariables&&(e=q(q({},e),t.messageVariables)),e})),j=e=>{if(0===I.value.length)return;const{validateFirst:n=!1}=t,{triggerName:o}=e||{};let r=A.value;if(o&&(r=r.filter((e=>{const{trigger:t}=e;if(!t&&!T.value.length)return!0;return fE(t||T.value).includes(o)}))),!r.length)return Promise.resolve();const l=ME(I.value,P.value,r,q({validateMessages:x.validateMessages.value},e),n,z.value);return D.value="validating",C.value=[],l.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===D.value){const t=e.filter((e=>e&&e.errors.length));D.value=t.length?"error":"success",C.value=t.map((e=>e.errors)),x.onValidate(w.value,!C.value.length,C.value.length?R(C.value[0]):null)}})),l},N=()=>{j({triggerName:"blur"})},H=()=>{k.value?k.value=!1:j({triggerName:"change"})},F=()=>{D.value=t.validateStatus,k.value=!1,C.value=[]},L=()=>{var e;D.value=t.validateStatus,k.value=!0,C.value=[];const n=x.model.value||{},o=P.value,r=nT(n,I.value,!0);Array.isArray(o)?r.o[r.k]=[].concat(null!==(e=E.value)&&void 0!==e?e:[]):r.o[r.k]=E.value,S((()=>{k.value=!1}))},_=d((()=>void 0===t.htmlFor?M.value:t.htmlFor)),W=()=>{const e=_.value;if(!e||!O.value)return;const t=O.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};a({onFieldBlur:N,onFieldChange:H,clearValidate:F,resetField:L}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d((()=>!0));const n=f(new Map);c([t,n],(()=>{})),v(Gv,e),v(Yv,{addFormItemField:(e,t)=>{n.value.set(e,t),n.value=new Map(n.value)},removeFormItemField:e=>{n.value.delete(e),n.value=new Map(n.value)}})}({id:M,onFieldBlur:()=>{t.autoLink&&N()},onFieldChange:()=>{t.autoLink&&H()},clearValidate:F},d((()=>!!(t.autoLink&&x.model.value&&w.value))));let K=!1;c(w,(e=>{e?K||(K=!0,x.addField(s,{fieldValue:P,fieldId:M,fieldName:w,resetField:L,clearValidate:F,namePath:I,validateRules:j,rules:A})):(K=!1,x.removeField(s))}),{immediate:!0}),b((()=>{x.removeField(s)}));const V=function(e){const t=g(e.value.slice());let n=null;return m((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(C),X=d((()=>void 0!==t.validateStatus?t.validateStatus:V.value.length?"error":D.value)),G=d((()=>({[`${u.value}-item`]:!0,[h.value]:!0,[`${u.value}-item-has-feedback`]:X.value&&t.hasFeedback,[`${u.value}-item-has-success`]:"success"===X.value,[`${u.value}-item-has-warning`]:"warning"===X.value,[`${u.value}-item-has-error`]:"error"===X.value,[`${u.value}-item-is-validating`]:"validating"===X.value,[`${u.value}-item-hidden`]:t.hidden}))),Y=l({});Jv.useProvide(Y),m((()=>{let e;if(t.hasFeedback){const t=X.value&&tT[X.value];e=t?$("span",{class:pe(`${u.value}-item-feedback-icon`,`${u.value}-item-feedback-icon-${X.value}`)},[$(t,null,null)]):null}q(Y,{status:X.value,hasFeedback:t.hasFeedback,feedbackIcon:e,isFormItemInput:!0})}));const Q=g(null),Z=g(!1);i((()=>{c(Z,(()=>{Z.value&&(()=>{if(y.value){const e=getComputedStyle(y.value);Q.value=parseInt(e.marginBottom,10)}})()}),{flush:"post",immediate:!0})}));const J=e=>{e||(Q.value=null)};return()=>{var n,l;if(t.noStyle)return null===(n=o.default)||void 0===n?void 0:n.call(o);const i=null!==(l=t.help)&&void 0!==l?l:o.help?Ye(o.help()):null,a=!!(null!=i&&Array.isArray(i)&&i.length||V.value.length);return Z.value=a,p($("div",{class:[G.value,a?`${u.value}-item-with-help`:"",r.class],ref:y},[$(FP,U(U({},r),{},{class:`${u.value}-row`,key:"row"}),{default:()=>{var n,r;return $(e,null,[$(LE,U(U({},t),{},{htmlFor:_.value,required:B.value,requiredMark:x.requiredMark.value,prefixCls:u.value,onClick:W,label:t.label}),{label:o.label,tooltip:o.tooltip}),$(eT,U(U({},t),{},{errors:null!=i?fE(i):V.value,marginBottom:Q.value,prefixCls:u.value,status:X.value,ref:O,help:i,extra:null!==(n=t.extra)&&void 0!==n?n:null===(r=o.extra)||void 0===r?void 0:r.call(o),onErrorVisibleChanged:J}),{default:o.default})])}}),!!Q.value&&$("div",{class:`${u.value}-margin-offset`,style:{marginBottom:`-${Q.value}px`}},null)]))}}});function lT(e){let t=!1,n=e.length;const o=[];return e.length?new Promise(((r,l)=>{e.forEach(((e,i)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,o[i]=e,n>0||(t&&l(o),r(o))}))}))})):Promise.resolve([])}function iT(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function aT(e){return null==e?[]:Array.isArray(e)?e:[e]}function sT(e,t,n){let o=e;const r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let l=0;for(let i=r.length;l1&&void 0!==arguments[1]?arguments[1]:f({}),n=arguments.length>2?arguments[2]:void 0;const o=vg(h(e)),r=l({}),i=g([]),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((e=>{const n=aT(e.trigger||"change");return Kg(n,t).length})):e};let s=null;const u=function(e,t,o){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=ME([e],t,o,q({validateMessages:CE},l),!!l.validateFirst);return r[e]?(r[e].validateStatus="validating",i.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o;if("validating"===r[e].validateStatus){const l=t.filter((e=>e&&e.errors.length));r[e].validateStatus=l.length?"error":"success",r[e].help=l.length?l.map((e=>e.errors)):null,null===(o=null==n?void 0:n.onValidate)||void 0===o||o.call(n,e,!l.length,l.length?R(r[e].help[0]):null)}})),i):i.catch((e=>e))},d=(n,o)=>{let r=[],l=!0;n?r=Array.isArray(n)?n:[n]:(l=!1,r=i.value);const c=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const l=[],i={};for(let s=0;s({name:c,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:c,errors:t,warnings:n}):{name:c,errors:t,warnings:n}})))}const c=lT(l);s=c;const d=c.then((()=>s===c?Promise.resolve(i):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:i,errorFields:t,outOfDate:s!==c})}));return d.catch((e=>e)),d}(r,o||{},l);return c.catch((e=>e)),c};let p=o,v=!0;const m=e=>{const t=[];i.value.forEach((o=>{const r=sT(e,o,!1),l=sT(p,o,!1);!(v&&(null==n?void 0:n.immediate)&&r.isValid)&&Eu(r.v,l.v)||t.push(o)})),d(t,{trigger:"change"}),v=!1,p=vg(R(e))},b=null==n?void 0:n.debounce;let y=!0;return c(t,(()=>{i.value=t?Object.keys(h(t)):[],!y&&n&&n.validateOnRuleChange&&d(),y=!1}),{deep:!0,immediate:!0}),c(i,(()=>{const e={};i.value.forEach((n=>{e[n]=q({},r[n],{autoLink:!1,required:iT(h(t)[n])}),delete r[n]}));for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&delete r[t];q(r,e)}),{immediate:!0}),c(e,b&&b.wait?Rg(m,b.wait,qg(b,["wait"])):m,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:n=>{q(h(e),q(q({},vg(o)),n)),S((()=>{Object.keys(r).forEach((e=>{r[e]={autoLink:!1,required:iT(h(t)[e])}}))}))},validate:d,validateField:u,mergeValidateInfo:e=>{const t={autoLink:!1},n=[],o=Array.isArray(e)?e:[e];for(let r=0;r{let t=[];t=e?Array.isArray(e)?e:[e]:i.value,t.forEach((e=>{r[e]&&q(r[e],{validateStatus:"",help:null})}))}}},setup(e,t){let{emit:n,slots:o,expose:r,attrs:l}=t;const{prefixCls:i,direction:a,form:s,size:u,disabled:v}=Il("form",e),h=d((()=>""===e.requiredMark||e.requiredMark)),g=d((()=>{var t;return void 0!==h.value?h.value:s&&void 0!==(null===(t=s.value)||void 0===t?void 0:t.requiredMark)?s.value.requiredMark:!e.hideRequiredMark}));Ol(u),Bt(v);const m=d((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=s.value)||void 0===n?void 0:n.colon})),{validateMessages:b}=p(It,{validateMessages:d((()=>{}))}),y=d((()=>q(q(q({},CE),b.value),e.validateMessages))),[x,S]=ZE(i),w=d((()=>pe(i.value,{[`${i.value}-${e.layout}`]:!0,[`${i.value}-hide-required-mark`]:!1===g.value,[`${i.value}-rtl`]:"rtl"===a.value,[`${i.value}-${u.value}`]:u.value},S.value))),C=f(),k={},O=e=>{const t=!!e,n=t?fE(e).map(bE):[];return t?Object.values(k).filter((e=>n.findIndex((t=>{return n=t,o=e.fieldName.value,Eu(fE(n),fE(o));var n,o}))>-1)):Object.values(k)},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=O(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,o=e?document.getElementById(e):null;o&&Ll(o,q({scrollMode:"if-needed",block:"nearest"},t))}},M=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(k).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),SE(e.model,t)}return SE(e.model,t)},P=(t,n)=>{if(bn(),!e.model)return bn(),Promise.reject("Form `model` is required for validateFields to work.");const o=!!t,r=o?fE(t).map(bE):[],l=[];Object.values(k).forEach((e=>{var t;if(o||r.push(e.namePath.value),!(null===(t=e.rules)||void 0===t?void 0:t.value.length))return;const i=e.namePath.value;if(!o||function(e,t){return e&&e.some((e=>function(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,n)=>t[n]===e))}(e,t)))}(r,i)){const t=e.validateRules(q({validateMessages:y.value},n));l.push(t.then((()=>({name:i,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:o},errors:r}=e;o?n.push(...r):t.push(...r)})),t.length?Promise.reject({name:i,errors:t,warnings:n}):{name:i,errors:t,warnings:n}})))}}));const i=lT(l);C.value=i;const a=i.then((()=>C.value===i?Promise.resolve(M(r)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:M(r),errorFields:t,outOfDate:C.value!==i})}));return a.catch((e=>e)),a},E=function(){return P(...arguments)},T=t=>{if(t.preventDefault(),t.stopPropagation(),n("submit",t),e.model){P().then((e=>{n("finish",e)})).catch((t=>{(t=>{const{scrollToFirstError:o}=e;if(n("finishFailed",t),o&&t.errorFields.length){let e={};"object"==typeof o&&(e=o),I(t.errorFields[0].name,e)}})(t)}))}};return r({resetFields:t=>{e.model?O(t).forEach((e=>{e.resetField()})):bn()},clearValidate:e=>{O(e).forEach((e=>{e.clearValidate()}))},validateFields:P,getFieldsValue:M,validate:function(){return E(...arguments)},scrollToField:I}),EE({model:d((()=>e.model)),name:d((()=>e.name)),labelAlign:d((()=>e.labelAlign)),labelCol:d((()=>e.labelCol)),labelWrap:d((()=>e.labelWrap)),wrapperCol:d((()=>e.wrapperCol)),vertical:d((()=>"vertical"===e.layout)),colon:m,requiredMark:g,validateTrigger:d((()=>e.validateTrigger)),rules:d((()=>e.rules)),addField:(e,t)=>{k[e]=t},removeField:e=>{delete k[e]},onValidate:(e,t,o)=>{n("validate",e,t,o)},validateMessages:y}),c((()=>e.rules),(()=>{e.validateOnRuleChange&&P()})),()=>{var e;return x($("form",U(U({},l),{},{onSubmit:T,class:[w.value,l.class]}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}}),uT=cT;uT.useInjectFormItemContext=Qv,uT.ItemRest=Zv,uT.install=function(e){return e.component(uT.name,uT),e.component(uT.Item.name,uT.Item),e.component(Zv.name,Zv),e};const dT=new Fo("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),pT=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:q(q({},Ur(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:q(q({},Ur(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:q(q({},Ur(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:q({},Jr(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:dT,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function vT(e,t){const n=rl(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[pT(n)]}const fT=tl("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[vT(n,e)]})),hT=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,l=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[vT(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":q(q({},Yr),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},ab(e)]},gT=tl("Cascader",(e=>[hT(e)]),{controlWidth:184,controlItemWidth:111,dropdownHeight:180});const mT=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const l=[],i=t.toLowerCase();return n.forEach(((e,t)=>{0!==t&&l.push(" / ");let n=e[r.label];const a=typeof n;"string"!==a&&"number"!==a||(n=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,o)=>0===o?[n]:[...e,t,n]),[]),r=[];let l=0;return o.forEach(((t,o)=>{const i=l+t.length;let a=e.slice(l,i);l=i,o%2==1&&(a=$("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[a])),r.push(a)})),r}(String(n),i,o)),l.push(n)})),l};const bT=r({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Re(q(q({},Ml(xP(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Ii.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function}),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:l}=t;const i=Qv(),a=Jv.useInject(),s=d((()=>nf(a.status,e.status))),{prefixCls:c,rootPrefixCls:u,getPrefixCls:p,direction:v,getPopupContainer:h,renderEmpty:g,size:m,disabled:b}=Il("cascader",e),y=d((()=>p("select",e.prefixCls))),{compactSize:x,compactItemClassnames:S}=sm(y,v),w=d((()=>x.value||m.value)),C=At(),k=d((()=>{var e;return null!==(e=b.value)&&void 0!==e?e:C.value})),[O,I]=vb(y),[M]=gT(c),P=d((()=>"rtl"===v.value)),E=d((()=>{if(!e.showSearch)return e.showSearch;let t={render:mT};return"object"==typeof e.showSearch&&(t=q(q({},t),e.showSearch)),t})),T=d((()=>pe(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:P.value},I.value))),A=f();o({focus(){var e;null===(e=A.value)||void 0===e||e.focus()},blur(){var e;null===(e=A.value)||void 0===e||e.blur()}});const B=function(){for(var e=arguments.length,t=new Array(e),n=0;nvoid 0!==e.showArrow?e.showArrow:e.loading||!e.multiple)),R=d((()=>void 0!==e.placement?e.placement:"rtl"===v.value?"bottomRight":"bottomLeft"));return()=>{var t,o;const{notFoundContent:l=(null===(t=r.notFoundContent)||void 0===t?void 0:t.call(r)),expandIcon:d=(null===(o=r.expandIcon)||void 0===o?void 0:o.call(r)),multiple:p,bordered:f,allowClear:m,choiceTransitionName:b,transitionName:x,id:C=i.id.value}=e,j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:B,onBlur:D,ref:A}),r)))}}}),yT=at(q(bT,{SHOW_CHILD:IM,SHOW_PARENT:OM})),$T=Symbol("CheckboxGroupContext");var xT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(null==x?void 0:x.disabled.value)||v.value));m((()=>{!e.skipGroup&&x&&x.registerValue(S,e.value)})),b((()=>{x&&x.cancelValue(S)})),i((()=>{bn(!(void 0===e.checked&&!x&&void 0!==e.value))}));const C=e=>{const t=e.target.checked;n("update:checked",t),n("change",e),a.onFieldChange()},k=f();return l({focus:()=>{var e;null===(e=k.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=k.value)||void 0===e||e.blur()}}),()=>{var t;const l=Fe(null===(t=r.default)||void 0===t?void 0:t.call(r)),{indeterminate:i,skipGroup:d,id:p=a.id.value}=e,v=xT(e,["indeterminate","skipGroup","id"]),{onMouseenter:f,onMouseleave:m,onInput:b,class:S,style:O}=o,I=xT(o,["onMouseenter","onMouseleave","onInput","class","style"]),M=q(q(q(q({},v),{id:p,prefixCls:c.value}),I),{disabled:w.value});x&&!d?(M.onChange=function(){for(var t=arguments.length,o=new Array(t),r=0;r`${a.value}-group`)),[p,h]=fT(u),g=f((void 0===e.value?e.defaultValue:e.value)||[]);c((()=>e.value),(()=>{g.value=e.value||[]}));const m=d((()=>e.options.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e)))),b=f(Symbol()),y=f(new Map),x=f(new Map);c(b,(()=>{const e=new Map;for(const t of y.value.values())e.set(t,!0);x.value=e}));return v($T,{cancelValue:e=>{y.value.delete(e),b.value=Symbol()},registerValue:(e,t)=>{y.value.set(e,t),b.value=Symbol()},toggleOption:t=>{const n=g.value.indexOf(t.value),o=[...g.value];-1===n?o.push(t.value):o.splice(n,1),void 0===e.value&&(g.value=o);const l=o.filter((e=>x.value.has(e))).sort(((e,t)=>m.value.findIndex((t=>t.value===e))-m.value.findIndex((e=>e.value===t))));r("update:value",l),r("change",l),i.onFieldChange()},mergedValue:g,name:d((()=>e.name)),disabled:d((()=>e.disabled))}),l({mergedValue:g}),()=>{var t;const{id:r=i.id.value}=e;let l=null;return m.value&&m.value.length>0&&(l=m.value.map((t=>{var o;return $(ST,{prefixCls:a.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==g.value.indexOf(t.value),onChange:t.onChange,class:`${u.value}-item`},{default:()=>[void 0!==n.label?null===(o=n.label)||void 0===o?void 0:o.call(n,t):t.label]})}))),p($("div",U(U({},o),{},{class:[u.value,{[`${u.value}-rtl`]:"rtl"===s.value},o.class,h.value],id:r}),[l||(null===(t=n.default)||void 0===t?void 0:t.call(n))]))}}});ST.Group=wT,ST.install=function(e){return e.component(ST.name,ST),e.component(wT.name,wT),e};const CT={useBreakpoint:wy},kT=at(DE),OT=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:l,commentFontSizeSm:i,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:p,commentContentDetailPMarginBottom:v}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:l,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:l,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:i,lineHeight:"18px"},"&-name":{color:a,fontSize:l,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:v,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:i,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},IT=tl("Comment",(e=>{const t=rl(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[OT(t)]})),MT=at(r({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:{actions:Array,author:Ii.any,avatar:Ii.any,content:Ii.any,prefixCls:String,datetime:Ii.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("comment",e),[i,a]=IT(r),s=(e,t)=>$("div",{class:`${e}-nested`},[t]),c=e=>{if(!e||!e.length)return null;return e.map(((e,t)=>$("li",{key:`action-${t}`},[e])))};return()=>{var t,u,d,p,v,f,h,g,m,b,y;const x=r.value,S=null!==(t=e.actions)&&void 0!==t?t:null===(u=n.actions)||void 0===u?void 0:u.call(n),w=null!==(d=e.author)&&void 0!==d?d:null===(p=n.author)||void 0===p?void 0:p.call(n),C=null!==(v=e.avatar)&&void 0!==v?v:null===(f=n.avatar)||void 0===f?void 0:f.call(n),k=null!==(h=e.content)&&void 0!==h?h:null===(g=n.content)||void 0===g?void 0:g.call(n),O=null!==(m=e.datetime)&&void 0!==m?m:null===(b=n.datetime)||void 0===b?void 0:b.call(n),I=$("div",{class:`${x}-avatar`},["string"==typeof C?$("img",{src:C,alt:"comment-avatar"},null):C]),M=S?$("ul",{class:`${x}-actions`},[c(Array.isArray(S)?S:[S])]):null,P=$("div",{class:`${x}-content-author`},[w&&$("span",{class:`${x}-content-author-name`},[w]),O&&$("span",{class:`${x}-content-author-time`},[O])]),E=$("div",{class:`${x}-content`},[P,$("div",{class:`${x}-content-detail`},[k]),M]),T=$("div",{class:`${x}-inner`},[I,E]),A=Fe(null===(y=n.default)||void 0===y?void 0:y.call(n));return i($("div",U(U({},o),{},{class:[x,{[`${x}-rtl`]:"rtl"===l.value},o.class,a.value]}),[T,A&&A.length?s(x,A):null]))}}}));let PT=q({},Nt.Modal);const ET="internalMark",TT=r({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;bn(e.ANT_MARK__===ET);const o=l({antLocale:q(q({},e.locale),{exist:!0}),ANT_MARK__:ET});return v("localeData",o),c((()=>e.locale),(e=>{var t;t=e&&e.Modal,PT=t?q(q({},PT),t):q({},Nt.Modal),o.antLocale=q(q({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});TT.install=function(e){return e.component(TT.name,TT),e};const AT=at(TT),BT=r({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let n,{attrs:o,slots:r}=t,l=!1;const a=d((()=>void 0===e.duration?4.5:e.duration)),u=()=>{a.value&&!l&&(n=setTimeout((()=>{v()}),1e3*a.value))},p=()=>{n&&(clearTimeout(n),n=null)},v=t=>{t&&t.stopPropagation(),p();const{onClose:n,noticeKey:o}=e;n&&n(o)};return i((()=>{u()})),s((()=>{l=!0,p()})),c([a,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,o,r]=e,[l,i,a]=t;(n!==l||o!==i||r!==a&&a)&&(p(),u())}),{flush:"post"}),()=>{var t,n;const{prefixCls:l,closable:i,closeIcon:a=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r)),onClick:s,holder:c}=e,{class:d,style:f}=o,h=`${l}-notice`,g=Object.keys(o).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=o[t]),e)),{}),m=$("div",U({class:pe(h,d,{[`${h}-closable`]:i}),style:f,onMouseenter:p,onMouseleave:u,onClick:s},g),[$("div",{class:`${h}-content`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),i?$("a",{tabindex:0,onClick:v,class:`${h}-close`},[a||$("span",{class:`${h}-close-x`},null)]):null]);return c?$(A,{to:c},{default:()=>m}):m}}});let DT=0;const zT=Date.now();function RT(){const e=DT;return DT+=1,`rcNotification_${zT}_${e}`}const jT=r({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=new Map,i=f([]),a=d((()=>{const{prefixCls:t,animation:n="fade"}=e;let o=e.transitionName;return!o&&n&&(o=`${t}-${n}`),ju(o)})),s=e=>{i.value=i.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))};return o({add:(t,n)=>{const o=t.key||RT(),r=q(q({},t),{key:o}),{maxCount:l}=e,a=i.value.map((e=>e.notice.key)).indexOf(o),s=i.value.concat();-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(l&&i.value.length>=l&&(r.key=s[0].notice.key,r.updateMark=RT(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),i.value=s},remove:s,notices:i}),()=>{var t;const{prefixCls:o,closeIcon:c=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r,{prefixCls:o}))}=e,u=i.value.map(((t,n)=>{let{notice:r,holderCallback:a}=t;const u=n===i.value.length-1?r.updateMark:void 0,{key:d,userPassKey:p}=r,{content:v}=r,f=q(q(q({prefixCls:o,closeIcon:"function"==typeof c?c({prefixCls:o}):c},r),r.props),{key:d,noticeKey:p||d,updateMark:u,onClose:e=>{var t;s(e),null===(t=r.onClose)||void 0===t||t.call(r)},onClick:r.onClick});return a?$("div",{key:d,class:`${o}-hook-holder`,ref:e=>{void 0!==d&&(e?(l.set(d,e),a(e,f)):l.delete(d))}},null):$(BT,U(U({},f),{},{class:pe(f.class,e.hashId)}),{default:()=>["function"==typeof v?v({prefixCls:o}):v]})})),d={[o]:1,[n.class]:!!n.class,[e.hashId]:!0};return $("div",{class:d,style:n.style||{top:"65px",left:"50%"}},[$(_,U({tag:"div"},a.value),{default:()=>[u]})])}}});jT.newInstance=function(e,t){const n=e||{},{name:o="notification",getContainer:l,appContext:a,prefixCls:s,rootPrefixCls:c,transitionName:u,hasTransitionName:p,useStyle:v}=n,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rVA.getPrefixCls(o,s))),[,f]=v(a);return i((()=>{t({notice(e){var t;null===(t=l.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=l.value)||void 0===t||t.remove(e)},destroy(){I(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:l})})),()=>{const e=VA,t=e.getRootPrefixCls(c,a.value),n=p?u:`${a.value}-${u}`;return $(UA,U(U({},e),{},{prefixCls:t}),{default:()=>[$(jT,U(U({ref:l},r),{},{prefixCls:a.value,transitionName:n,hashId:f.value}),null)]})}}}),b=$(m,f);b.appContext=a||b.appContext,I(b,h)};const NT=jT;let HT=0;const FT=Date.now();function LT(){const e=HT;return HT+=1,`rcNotification_${FT}_${e}`}const _T=r({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,l=d((()=>e.notices)),i=d((()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return ju(t)})),a=f({});c(l,(()=>{const t={};Object.keys(a.value).forEach((e=>{t[e]=[]})),e.notices.forEach((e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))})),a.value=t}));const s=d((()=>Object.keys(a.value)));return()=>{var t;const{prefixCls:c,closeIcon:u=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o,{prefixCls:c}))}=e,d=s.value.map((t=>{var o,s;const d=a.value[t],p=null===(o=e.getClassName)||void 0===o?void 0:o.call(e,t),v=null===(s=e.getStyles)||void 0===s?void 0:s.call(e,t),f=d.map(((t,n)=>{let{notice:o,holderCallback:i}=t;const a=n===l.value.length-1?o.updateMark:void 0,{key:s,userPassKey:d}=o,{content:p}=o,v=q(q(q({prefixCls:c,closeIcon:"function"==typeof u?u({prefixCls:c}):u},o),o.props),{key:s,noticeKey:d||s,updateMark:a,onClose:t=>{var n;(t=>{e.remove(t)})(t),null===(n=o.onClose)||void 0===n||n.call(o)},onClick:o.onClick});return i?$("div",{key:s,class:`${c}-hook-holder`,ref:e=>{void 0!==s&&(e?(r.set(s,e),i(e,v)):r.delete(s))}},null):$(BT,U(U({},v),{},{class:pe(v.class,e.hashId)}),{default:()=>["function"==typeof p?p({prefixCls:c}):p]})})),h={[c]:1,[`${c}-${t}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[p]:!!p};return $("div",{key:t,class:h,style:n.style||v||{top:"65px",left:"50%"}},[$(_,U(U({tag:"div"},i.value),{},{onAfterLeave:function(){var n;d.length>0||(Reflect.deleteProperty(a.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}}),{default:()=>[f]})])}));return $(Xu,{getContainer:e.getContainer},{default:()=>[d]})}}});const WT=()=>document.body;let KT=0;function VT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=WT,motion:n,prefixCls:o,maxCount:r,getClassName:l,getStyles:i,onAllRemoved:a}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{u.value=u.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))},f=d((()=>$(_T,{ref:p,prefixCls:o,maxCount:r,notices:u.value,remove:v,getClassName:l,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null))),h=g([]),m={open:e=>{const t=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{t&&Object.keys(t).forEach((n=>{const o=t[n];void 0!==o&&(e[n]=o)}))})),e}(s,e);null!==t.key&&void 0!==t.key||(t.key=`vc-notification-${KT}`,KT+=1),h.value=[...h.value,{type:"open",config:t}]},close:e=>{h.value=[...h.value,{type:"close",key:e}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return c(h,(()=>{h.value.length&&(h.value.forEach((e=>{switch(e.type){case"open":((e,t)=>{const n=e.key||LT(),o=q(q({},e),{key:n}),l=u.value.map((e=>e.notice.key)).indexOf(n),i=u.value.concat();-1!==l?i.splice(l,1,{notice:o,holderCallback:t}):(r&&u.value.length>=r&&(o.key=i[0].notice.key,o.updateMark=LT(),o.userPassKey=n,i.shift()),i.push({notice:o,holderCallback:t})),u.value=i})(e.config);break;case"close":v(e.key);break;case"destroy":u.value=[]}})),h.value=[])})),[m,()=>f.value]}const XT=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:l,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:v,borderRadiusLG:f,zIndexPopup:h,messageNoticeContentPadding:g}=e,m=new Fo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),b=new Fo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:q(q({},Ur(e)),{position:"fixed",top:p,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:m,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:v,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:g,background:r,borderRadius:f,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},GT=tl("Message",(e=>{const t=rl(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[XT(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),YT={info:$(sy,null,null),success:$(Zb,null,null),error:$(Hv,null,null),warning:$(oy,null,null),loading:$(Cv,null,null)},UT=r({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return $("div",{class:pe(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||YT[e.type],$("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}});var qT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rl("message",e.prefixCls))),[,s]=GT(a),c=$("span",{class:`${a.value}-close-x`},[$(Dv,{class:`${a.value}-close-icon`},null)]),[u,p]=VT({getStyles:()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:8;return{left:"50%",transform:"translateX(-50%)",top:"number"==typeof n?`${n}px`:n}},prefixCls:a.value,getClassName:()=>pe(s.value,e.rtl?`${a.value}-rtl`:""),motion:()=>{var t;return Wi({prefixCls:a.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},closable:!1,closeIcon:c,duration:null!==(o=e.duration)&&void 0!==o?o:3,getContainer:null!==(r=e.staticGetContainer)&&void 0!==r?r:i.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(q(q({},u),{prefixCls:a,hashId:s})),p}});let ZT=0;function JT(e){const t=g(null),n=Symbol("messageHolderKey"),o=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},r=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:r,hashId:l}=t.value,i=`${r}-notice`,{content:a,icon:s,type:c,key:u,class:d,onClose:p}=e,v=qT(e,["content","icon","type","key","class","onClose"]);let f=u;return null==f&&(ZT+=1,f=`antd-message-${ZT}`),function(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}((e=>(n(q(q({},v),{key:f,content:()=>$(UT,{prefixCls:r,type:c,icon:"function"==typeof s?s():s},{default:()=>["function"==typeof a?a():a]}),placement:"top",class:pe(c&&`${i}-${c}`,l,d),onClose:()=>{null==p||p(),e()}})),()=>{o(f)})))},l={open:r,destroy:e=>{var n;void 0!==e?o(e):null===(n=t.value)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{l[e]=(t,n,o)=>{let l,i,a;l=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(i=n,a=o);const s=q(q({onClose:a,duration:i},l),{type:e});return r(s)}})),[l,()=>$(QT,U(U({key:n},e),{},{ref:t}),null)]}function eA(e){return JT(e)}let tA,nA,oA,rA=3,lA=1,iA="",aA="move-up",sA=!1,cA=()=>document.body,uA=!1;const dA={info:sy,success:Zb,error:Hv,warning:oy,loading:Cv},pA=Object.keys(dA);const vA={open:function(e){const t=void 0!==e.duration?e.duration:rA,n=e.key||lA++,o=new Promise((o=>{const r=()=>("function"==typeof e.onClose&&e.onClose(),o(!0));!function(e,t){nA?t(nA):NT.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||iA,rootPrefixCls:e.rootPrefixCls,transitionName:aA,hasTransitionName:sA,style:{top:tA},getContainer:cA||e.getPopupContainer,maxCount:oA,name:"message",useStyle:GT},(e=>{nA?t(nA):(nA=e,t(e))}))}(e,(o=>{o.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const o=dA[e.type],r=o?$(o,null,null):"",l=pe(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===uA});return $("div",{class:l},["function"==typeof e.icon?e.icon():e.icon||r,$("span",null,["function"==typeof e.content?e.content():e.content])])},onClose:r,onClick:e.onClick})}))})),r=()=>{nA&&nA.removeNotice(n)};return r.then=(e,t)=>o.then(e,t),r.promise=o,r},config:function(e){void 0!==e.top&&(tA=e.top,nA=null),void 0!==e.duration&&(rA=e.duration),void 0!==e.prefixCls&&(iA=e.prefixCls),void 0!==e.getContainer&&(cA=e.getContainer,nA=null),void 0!==e.transitionName&&(aA=e.transitionName,nA=null,sA=!0),void 0!==e.maxCount&&(oA=e.maxCount,nA=null),void 0!==e.rtl&&(uA=e.rtl)},destroy(e){if(nA)if(e){const{removeNotice:t}=nA;t(e)}else{const{destroy:e}=nA;e(),nA=null}}};function fA(e,t){e[t]=(n,o,r)=>function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(q(q({},n),{type:t})):("function"==typeof o&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}pA.forEach((e=>fA(vA,e))),vA.warn=vA.warning,vA.useMessage=eA;const hA=vA,gA=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Fo("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Fo("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Fo("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},mA=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:l,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:v,notificationMarginEdge:f,motionDurationMid:h,motionEaseInOut:g,fontSize:m,lineHeight:b,width:y,notificationIconSize:$}=e,x=`${n}-notice`,S=new Fo("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new Fo("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:q(q(q(q({},Ur(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:f,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:h,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),gA(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[x]:{position:"relative",width:y,maxWidth:`calc(100vw - ${2*f}px)`,marginBottom:l,marginInlineStart:"auto",padding:v,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:p,borderRadius:i,boxShadow:o,[`${n}-close-icon`]:{fontSize:m,cursor:"pointer"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:m},[`&${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+$,fontSize:r},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.marginSM+$,fontSize:m},[`${x}-icon`]:{position:"absolute",fontSize:$,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${x}-pure-panel`]:{margin:0}}]},bA=tl("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,o=rl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[mA(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));function yA(e,t){return t||$("span",{class:`${e}-close-x`},[$(Dv,{class:`${e}-close-icon`},null)])}$(sy,null,null),$(Zb,null,null),$(Hv,null,null),$(oy,null,null),$(Cv,null,null);const $A={success:Zb,info:sy,error:Hv,warning:oy};function xA(e){let{prefixCls:t,icon:n,type:o,message:r,description:l,btn:i}=e,a=null;if(n)a=$("span",{class:`${t}-icon`},[de(n)]);else if(o){const e=$A[o];a=$(e,{class:`${t}-icon ${t}-icon-${o}`},null)}return $("div",{class:pe({[`${t}-with-icon`]:a}),role:"alert"},[a,$("div",{class:`${t}-message`},[r]),$("div",{class:`${t}-description`},[l]),i&&$("div",{class:`${t}-btn`},[i])])}function SA(e,t,n){let o;switch(t="number"==typeof t?`${t}px`:t,n="number"==typeof n?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}var wA=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.prefixCls||o("notification"))),[,i]=bA(l),[a,s]=VT({prefixCls:l.value,getStyles:t=>{var n,o;return SA(t,null!==(n=e.top)&&void 0!==n?n:24,null!==(o=e.bottom)&&void 0!==o?o:24)},getClassName:()=>pe(i.value,{[`${l.value}-rtl`]:e.rtl}),motion:()=>function(e){return{name:`${e}-fade`}}(l.value),closable:!0,closeIcon:yA(l.value),duration:4.5,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=r.value)||void 0===n?void 0:n.call(r))||document.body},maxCount:e.maxCount,hashId:i.value,onAllRemoved:e.onAllRemoved});return n(q(q({},a),{prefixCls:l.value,hashId:i})),s}});function kA(e){return function(e){const t=g(null),n=Symbol("notificationHolderKey"),o=e=>{if(!t.value)return;const{open:n,prefixCls:o,hashId:r}=t.value,l=`${o}-notice`,{message:i,description:a,icon:s,type:c,btn:u,class:d}=e;return n(q(q({placement:"topRight"},wA(e,["message","description","icon","type","btn","class"])),{content:()=>$(xA,{prefixCls:l,icon:"function"==typeof s?s():s,type:c,message:"function"==typeof i?i():i,description:"function"==typeof a?a():a,btn:"function"==typeof u?u():u},null),class:pe(c&&`${l}-${c}`,r,d)}))},r={open:o,destroy:e=>{var n,o;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(o=t.value)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>o(q(q({},t),{type:e}))})),[r,()=>$(CA,U(U({key:n},e),{},{ref:t}),null)]}(e)}const OA={};let IA,MA=4.5,PA="24px",EA="24px",TA="",AA="topRight",BA=()=>document.body,DA=null,zA=!1;const RA={success:Ab,info:_b,error:Gb,warning:jb};const jA={open:function(e){const{icon:t,type:n,description:o,message:r,btn:l}=e,i=void 0===e.duration?MA:e.duration;!function(e,t){let{prefixCls:n,placement:o=AA,getContainer:r=BA,top:l,bottom:i,closeIcon:a=DA,appContext:s}=e;const{getPrefixCls:c}=GA(),u=c("notification",n||TA),d=`${u}-${o}-${zA}`,p=OA[d];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const v=pe(`${u}-${o}`,{[`${u}-rtl`]:!0===zA});NT.newInstance({name:"notification",prefixCls:n||TA,useStyle:bA,class:v,style:SA(o,null!=l?l:PA,null!=i?i:EA),appContext:s,getContainer:r,closeIcon:e=>{let{prefixCls:t}=e;return $("span",{class:`${t}-close-x`},[de(a,{},$(Dv,{class:`${t}-close-icon`},null))])},maxCount:IA,hasTransitionName:!0},(e=>{OA[d]=e,t(e)}))}(e,(a=>{a.notice({content:e=>{let{prefixCls:i}=e;const a=`${i}-notice`;let s=null;if(t)s=()=>$("span",{class:`${a}-icon`},[de(t)]);else if(n){const e=RA[n];s=()=>$(e,{class:`${a}-icon ${a}-icon-${n}`},null)}return $("div",{class:s?`${a}-with-icon`:""},[s&&s(),$("div",{class:`${a}-message`},[!o&&s?$("span",{class:`${a}-message-single-line-auto-margin`},null):null,de(r)]),$("div",{class:`${a}-description`},[de(o)]),l?$("span",{class:`${a}-btn`},[de(l)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close(e){Object.keys(OA).forEach((t=>Promise.resolve(OA[t]).then((t=>{t.removeNotice(e)}))))},config:function(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:l,closeIcon:i,prefixCls:a}=e;void 0!==a&&(TA=a),void 0!==t&&(MA=t),void 0!==n&&(AA=n),void 0!==o&&(EA="number"==typeof o?`${o}px`:o),void 0!==r&&(PA="number"==typeof r?`${r}px`:r),void 0!==l&&(BA=l),void 0!==i&&(DA=i),void 0!==e.rtl&&(zA=e.rtl),void 0!==e.maxCount&&(IA=e.maxCount)},destroy(){Object.keys(OA).forEach((e=>{Promise.resolve(OA[e]).then((e=>{e.destroy()})),delete OA[e]}))}};["success","info","warning","error"].forEach((e=>{jA[e]=t=>jA.open(q(q({},t),{type:e}))})),jA.warn=jA.warning,jA.useNotification=kA;const NA=jA,HA=`-ant-${Date.now()}-${Math.random()}`;function FA(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new pr(e),l=Or(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=l[1],n[`${t}-color-hover`]=l[4],n[`${t}-color-active`]=l[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=l[0],n[`${t}-color-deprecated-border`]=l[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new pr(t.primaryColor),l=Or(e.toRgbString());l.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new pr(l[0]);n["primary-color-active-deprecated-f-30"]=o(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(i,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Jt()?dn(n,`${HA}-dynamic-theme`):bn()}const LA=e=>{const[t,n]=dl();return Ho(d((()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:q(q({},qr()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))};function _A(){return VA.prefixCls||"ant"}function WA(){return VA.iconPrefixCls||Ot}const KA=l({}),VA=l({});let XA;m((()=>{q(VA,KA),VA.prefixCls=_A(),VA.iconPrefixCls=WA(),VA.getPrefixCls=(e,t)=>t||(e?`${VA.prefixCls}-${e}`:VA.prefixCls),VA.getRootPrefixCls=()=>VA.prefixCls?VA.prefixCls:_A()}));const GA=()=>({getPrefixCls:(e,t)=>t||(e?`${_A()}-${e}`:_A()),getIconPrefixCls:WA,getRootPrefixCls:()=>VA.prefixCls?VA.prefixCls:_A()}),YA=r({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:{iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:ct(),input:ct(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:ct(),pageHeader:ct(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:ct(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:ct(),pagination:ct(),theme:ct(),select:ct(),wave:ct()},setup(e,t){let{slots:n}=t;const o=Et(),r=d((()=>e.iconPrefixCls||o.iconPrefixCls.value||Ot)),l=d((()=>r.value!==o.iconPrefixCls.value)),i=d((()=>{var t;return e.csp||(null===(t=o.csp)||void 0===t?void 0:t.value)})),a=LA(r),s=function(e,t){const n=d((()=>(null==e?void 0:e.value)||{})),o=d((()=>!1!==n.value.inherit&&(null==t?void 0:t.value)?t.value:al));return d((()=>{if(!(null==e?void 0:e.value))return null==t?void 0:t.value;const r=q({},o.value.components);return Object.keys(e.value.components||{}).forEach((t=>{r[t]=q(q({},r[t]),e.value.components[t])})),q(q(q({},o.value),n.value),{token:q(q({},o.value.token),n.value.token),components:r})}))}(d((()=>e.theme)),d((()=>{var e;return null===(e=o.theme)||void 0===e?void 0:e.value}))),u=d((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=o.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),p=d((()=>{var t;return e.locale||(null===(t=o.locale)||void 0===t?void 0:t.value)}));c(p,(()=>{KA.locale=p.value}),{immediate:!0});const f=d((()=>{var t;return e.direction||(null===(t=o.direction)||void 0===t?void 0:t.value)})),h=d((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=o.space)||void 0===n?void 0:n.value})),g=d((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=o.virtual)||void 0===n?void 0:n.value})),b=d((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=o.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),y=d((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=o.getTargetContainer)||void 0===t?void 0:t.value})),x=d((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=o.getPopupContainer)||void 0===t?void 0:t.value})),S=d((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=o.pageHeader)||void 0===t?void 0:t.value})),w=d((()=>{var t;return void 0!==e.input?e.input:null===(t=o.input)||void 0===t?void 0:t.value})),C=d((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=o.pagination)||void 0===t?void 0:t.value})),k=d((()=>{var t;return void 0!==e.form?e.form:null===(t=o.form)||void 0===t?void 0:t.value})),O=d((()=>{var t;return void 0!==e.select?e.select:null===(t=o.select)||void 0===t?void 0:t.value})),I=d((()=>e.componentSize)),M=d((()=>e.componentDisabled)),P=d((()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=o.wave)||void 0===n?void 0:n.value})),E={csp:i,autoInsertSpaceInButton:u,locale:p,direction:f,space:h,virtual:g,dropdownMatchSelectWidth:b,getPrefixCls:(t,n)=>{const{prefixCls:r="ant"}=e;if(n)return n;const l=r||o.getPrefixCls("");return t?`${l}-${t}`:l},iconPrefixCls:r,theme:d((()=>{var e,t;return null!==(e=s.value)&&void 0!==e?e:null===(t=o.theme)||void 0===t?void 0:t.value})),renderEmpty:t=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||wl)(t),getTargetContainer:y,getPopupContainer:x,pageHeader:S,input:w,pagination:C,form:k,select:O,componentSize:I,componentDisabled:M,transformCellText:d((()=>e.transformCellText)),wave:P},T=d((()=>{const e=s.value||{},{algorithm:t,token:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0)?Sn(t):void 0;return q(q({},o),{theme:r,token:q(q({},Dr),n)})})),A=d((()=>{var t,n;let o={};return p.value&&(o=(null===(t=p.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Nt.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=q(q({},o),e.form.validateMessages)),o}));(e=>{v(Mt,e)})(E),v(It,{validateMessages:A}),Ol(I),Bt(M);return m((()=>{f.value&&(hA.config({rtl:"rtl"===f.value}),NA.config({rtl:"rtl"===f.value}))})),()=>$(Ht,{children:(t,o,r)=>(t=>{var o,r;let i=l.value?a(null===(o=n.default)||void 0===o?void 0:o.call(n)):null===(r=n.default)||void 0===r?void 0:r.call(n);if(e.theme){const e=function(){return i}();i=$(ul,{value:T.value},{default:()=>[e]})}return $(AT,{locale:p.value||t,ANT_MARK__:ET},{default:()=>[i]})})(r)},null)}});YA.config=e=>{XA&&XA(),XA=m((()=>{q(KA,l(e)),q(VA,l(e))})),e.theme&&FA(_A(),e.theme)},YA.install=function(e){e.component(YA.name,YA)};const UA=YA,qA=(e,t)=>{let{attrs:n,slots:o}=t;return $(gx,U(U({size:"small",type:"primary"},e),n),o)},QA=(e,t,n)=>{const o=ae(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},ZA=e=>Gr(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:l,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:l,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),JA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,l=o-n,i=t-n;return{[r]:q(q({},Ur(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},eB=tl("Tag",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,l=Math.round(t*n),i=rl(e,{tagFontSize:e.fontSizeSM,tagLineHeight:l-2*o,tagDefaultBg:e.colorFillAlter,tagDefaultColor:e.colorText,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[JA(i),ZA(i),QA(i,"success","Success"),QA(i,"processing","Info"),QA(i,"error","Error"),QA(i,"warning","Warning")]})),tB=r({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function},setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l}=Il("tag",e),[i,a]=eB(l),s=t=>{const{checked:n}=e;o("update:checked",!n),o("change",!n),o("click",t)},c=d((()=>pe(l.value,a.value,{[`${l.value}-checkable`]:!0,[`${l.value}-checkable-checked`]:e.checked})));return()=>{var e;return i($("span",U(U({},r),{},{class:[c.value,r.class],onClick:s}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),nB=tB,oB=r({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:Ii.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:st(),"onUpdate:visible":Function,icon:Ii.any,bordered:{type:Boolean,default:!0}},slots:Object,setup(t,n){let{slots:o,emit:r,attrs:l}=n;const{prefixCls:i,direction:a}=Il("tag",t),[s,c]=eB(i),u=g(!0);m((()=>{void 0!==t.visible&&(u.value=t.visible)}));const p=e=>{e.stopPropagation(),r("update:visible",!1),r("close",e),e.defaultPrevented||void 0===t.visible&&(u.value=!1)},v=d((()=>{return Xy(t.color)||(e=t.color,Vy.includes(e));var e})),f=d((()=>pe(i.value,c.value,{[`${i.value}-${t.color}`]:v.value,[`${i.value}-has-color`]:t.color&&!v.value,[`${i.value}-hidden`]:!u.value,[`${i.value}-rtl`]:"rtl"===a.value,[`${i.value}-borderless`]:!t.bordered}))),h=e=>{r("click",e)};return()=>{var n,r,a;const{icon:c=(null===(n=o.icon)||void 0===n?void 0:n.call(o)),color:u,closeIcon:d=(null===(r=o.closeIcon)||void 0===r?void 0:r.call(o)),closable:g=!1}=t,m={backgroundColor:u&&!v.value?u:void 0},b=c||null,y=null===(a=o.default)||void 0===a?void 0:a.call(o),x=b?$(e,null,[b,$("span",null,[y])]):y,S=void 0!==t.onClick,w=$("span",U(U({},l),{},{onClick:h,class:[f.value,l.class],style:[m,l.style]}),[x,g?d?$("span",{class:`${i.value}-close-icon`,onClick:p},[d]):$(Dv,{class:`${i.value}-close-icon`,onClick:p},null):null]);return s(S?$(A$,null,{default:()=>[w]}):w)}}});oB.CheckableTag=nB,oB.install=function(e){return e.component(oB.name,oB),e.component(nB.name,nB),e};const rB=oB;const lB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function iB(e){for(var t=1;tx.value||m.value)),[C,k]=Jk(v),O=f();i({focus:()=>{var e;null===(e=O.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=O.value)||void 0===e||e.blur()}});const I=e=>c.valueFormat?t.toString(e,c.valueFormat):e,M=(e,t)=>{const n=I(e);s("update:value",n),s("change",n,t),u.onFieldChange()},P=e=>{s("update:open",e),s("openChange",e)},E=e=>{s("focus",e)},T=e=>{s("blur",e),u.onFieldBlur()},A=(e,t)=>{const n=I(e);s("panelChange",n,t)},B=e=>{const t=I(e);s("ok",t)},[D]=Ft("DatePicker",Rt),z=d((()=>c.value?c.valueFormat?t.toDate(c.value,c.valueFormat):c.value:""===c.value?void 0:c.value)),R=d((()=>c.defaultValue?c.valueFormat?t.toDate(c.defaultValue,c.valueFormat):c.defaultValue:""===c.defaultValue?void 0:c.defaultValue)),j=d((()=>c.defaultPickerValue?c.valueFormat?t.toDate(c.defaultPickerValue,c.valueFormat):c.defaultPickerValue:""===c.defaultPickerValue?void 0:c.defaultPickerValue));return()=>{var n,r,i,s,d,f;const m=q(q({},D.value),c.locale),x=q(q({},c),a),{bordered:I=!0,placeholder:N,suffixIcon:H=(null===(n=l.suffixIcon)||void 0===n?void 0:n.call(l)),showToday:F=!0,transitionName:L,allowClear:_=!0,dateRender:W=l.dateRender,renderExtraFooter:K=l.renderExtraFooter,monthCellRender:V=l.monthCellRender||c.monthCellContentRender||l.monthCellContentRender,clearIcon:X=(null===(r=l.clearIcon)||void 0===r?void 0:r.call(l)),id:G=u.id.value}=x,Y=xB(x,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),Q=""===x.showTime||x.showTime,{format:Z}=x;let J={};o&&(J.picker=o);const ee=o||x.picker||"date";J=q(q(q({},J),Q?PB(q({format:Z,picker:ee},"object"==typeof Q?Q:{})):{}),"time"===ee?PB(q(q({format:Z},Y),{picker:ee})):{});const te=v.value,ne=$(e,null,[H||$("time"===o?fB:cB,null,null),p.hasFeedback&&p.feedbackIcon]);return C($(ZC,U(U(U({monthCellRender:V,dateRender:W,renderExtraFooter:K,ref:O,placeholder:hB(m,ee,N),suffixIcon:ne,dropdownAlign:mB(h.value,c.placement),clearIcon:X||$(Hv,null,null),allowClear:_,transitionName:L||`${b.value}-slide-up`},Y),J),{},{id:G,picker:ee,value:z.value,defaultValue:R.value,defaultPickerValue:j.value,showToday:F,locale:m.lang,class:pe({[`${te}-${w.value}`]:w.value,[`${te}-borderless`]:!I},tf(te,nf(p.status,c.status),p.hasFeedback),a.class,k.value,S.value),disabled:y.value,prefixCls:te,getPopupContainer:a.getCalendarContainer||g.value,generateConfig:t,prevIcon:(null===(i=l.prevIcon)||void 0===i?void 0:i.call(l))||$("span",{class:`${te}-prev-icon`},null),nextIcon:(null===(s=l.nextIcon)||void 0===s?void 0:s.call(l))||$("span",{class:`${te}-next-icon`},null),superPrevIcon:(null===(d=l.superPrevIcon)||void 0===d?void 0:d.call(l))||$("span",{class:`${te}-super-prev-icon`},null),superNextIcon:(null===(f=l.superNextIcon)||void 0===f?void 0:f.call(l))||$("span",{class:`${te}-super-next-icon`},null),components:MB,direction:h.value,dropdownClassName:pe(k.value,c.popupClassName,c.dropdownClassName),onChange:M,onOpenChange:P,onFocus:E,onBlur:T,onPanelChange:A,onOk:B}),null))}}})}return{DatePicker:o(void 0,"ADatePicker"),WeekPicker:o("week","AWeekPicker"),MonthPicker:o("month","AMonthPicker"),YearPicker:o("year","AYearPicker"),TimePicker:o("time","TimePicker"),QuarterPicker:o("quarter","AQuarterPicker")}}(t,n),u=function(t,n){const o=r({compatConfig:{MODE:3},name:"ARangePicker",inheritAttrs:!1,props:q(q(q({},bB()),$B()),n),slots:Object,setup(n,o){let{expose:r,slots:l,attrs:i,emit:a}=o;const s=n,c=Qv(),u=Jv.useInject(),{prefixCls:p,direction:v,getPopupContainer:h,size:g,rootPrefixCls:m,disabled:b}=Il("picker",s),{compactSize:y,compactItemClassnames:x}=sm(p,v),S=d((()=>y.value||g.value)),[w,C]=Jk(p),k=f();r({focus:()=>{var e;null===(e=k.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=k.value)||void 0===e||e.blur()}});const O=e=>s.valueFormat?t.toString(e,s.valueFormat):e,I=(e,t)=>{const n=O(e);a("update:value",n),a("change",n,t),c.onFieldChange()},M=e=>{a("update:open",e),a("openChange",e)},P=e=>{a("focus",e)},E=e=>{a("blur",e),c.onFieldBlur()},T=(e,t)=>{const n=O(e);a("panelChange",n,t)},A=e=>{const t=O(e);a("ok",t)},B=(e,t,n)=>{const o=O(e);a("calendarChange",o,t,n)},[D]=Ft("DatePicker",Rt),z=d((()=>s.value&&s.valueFormat?t.toDate(s.value,s.valueFormat):s.value)),R=d((()=>s.defaultValue&&s.valueFormat?t.toDate(s.defaultValue,s.valueFormat):s.defaultValue)),j=d((()=>s.defaultPickerValue&&s.valueFormat?t.toDate(s.defaultPickerValue,s.valueFormat):s.defaultPickerValue));return()=>{var n,o,r,a,d,f,g;const y=q(q({},D.value),s.locale),O=q(q({},s),i),{prefixCls:N,bordered:H=!0,placeholder:F,suffixIcon:L=(null===(n=l.suffixIcon)||void 0===n?void 0:n.call(l)),picker:_="date",transitionName:W,allowClear:K=!0,dateRender:V=l.dateRender,renderExtraFooter:X=l.renderExtraFooter,separator:G=(null===(o=l.separator)||void 0===o?void 0:o.call(l)),clearIcon:Y=(null===(r=l.clearIcon)||void 0===r?void 0:r.call(l)),id:Q=c.id.value}=O,Z=IB(O,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete Z["onUpdate:value"],delete Z["onUpdate:open"];const{format:J,showTime:ee}=O;let te={};te=q(q(q({},te),ee?PB(q({format:J,picker:_},ee)):{}),"time"===_?PB(q(q({format:J},Ml(Z,["disabledTime"])),{picker:_})):{});const ne=p.value,oe=$(e,null,[L||$("time"===_?fB:cB,null,null),u.hasFeedback&&u.feedbackIcon]);return w($(pk,U(U(U({dateRender:V,renderExtraFooter:X,separator:G||$("span",{"aria-label":"to",class:`${ne}-separator`},[$(OB,null,null)]),ref:k,dropdownAlign:mB(v.value,s.placement),placeholder:gB(y,_,F),suffixIcon:oe,clearIcon:Y||$(Hv,null,null),allowClear:K,transitionName:W||`${m.value}-slide-up`},Z),te),{},{disabled:b.value,id:Q,value:z.value,defaultValue:R.value,defaultPickerValue:j.value,picker:_,class:pe({[`${ne}-${S.value}`]:S.value,[`${ne}-borderless`]:!H},tf(ne,nf(u.status,s.status),u.hasFeedback),i.class,C.value,x.value),locale:y.lang,prefixCls:ne,getPopupContainer:i.getCalendarContainer||h.value,generateConfig:t,prevIcon:(null===(a=l.prevIcon)||void 0===a?void 0:a.call(l))||$("span",{class:`${ne}-prev-icon`},null),nextIcon:(null===(d=l.nextIcon)||void 0===d?void 0:d.call(l))||$("span",{class:`${ne}-next-icon`},null),superPrevIcon:(null===(f=l.superPrevIcon)||void 0===f?void 0:f.call(l))||$("span",{class:`${ne}-super-prev-icon`},null),superNextIcon:(null===(g=l.superNextIcon)||void 0===g?void 0:g.call(l))||$("span",{class:`${ne}-super-next-icon`},null),components:MB,direction:v.value,dropdownClassName:pe(C.value,s.popupClassName,s.dropdownClassName),onChange:I,onOpenChange:M,onFocus:P,onBlur:E,onPanelChange:T,onOk:A,onCalendarChange:B}),null))}}});return o}(t,n);return{DatePicker:o,WeekPicker:l,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:c,RangePicker:u}}const{DatePicker:TB,WeekPicker:AB,MonthPicker:BB,YearPicker:DB,TimePicker:zB,QuarterPicker:RB,RangePicker:jB}=EB(hw),NB=q(TB,{WeekPicker:AB,MonthPicker:BB,YearPicker:DB,RangePicker:jB,TimePicker:zB,QuarterPicker:RB,install:e=>(e.component(TB.name,TB),e.component(jB.name,jB),e.component(BB.name,BB),e.component(AB.name,AB),e.component(RB.name,RB),e)});function HB(e){return null!=e}const FB=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:l,bordered:i,label:a,content:s,colon:c}=e,u=n;return i?$(u,{class:[{[`${t}-item-label`]:HB(a),[`${t}-item-content`]:HB(s)}],colSpan:o},{default:()=>[HB(a)&&$("span",{style:r},[a]),HB(s)&&$("span",{style:l},[s])]}):$(u,{class:[`${t}-item`],colSpan:o},{default:()=>[$("div",{class:`${t}-item-container`},[(a||0===a)&&$("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||0===s)&&$("span",{class:`${t}-item-content`,style:l},[s])])]})},LB=n=>{const o=(e,n,o)=>{let{colon:r,prefixCls:l,bordered:i}=n,{component:a,type:s,showLabel:c,showContent:u,labelStyle:d,contentStyle:p}=o;return e.map(((e,n)=>{var o,v;const f=e.props||{},{prefixCls:h=l,span:g=1,labelStyle:m=f["label-style"],contentStyle:b=f["content-style"],label:y=(null===(v=null===(o=e.children)||void 0===o?void 0:o.label)||void 0===v?void 0:v.call(o))}=f,x=Le(e),S=function(e){const n=((t(e)?e.props:e.$attrs)||{}).class||{};let o={};return"string"==typeof n?n.split(" ").forEach((e=>{o[e.trim()]=!0})):Array.isArray(n)?pe(n).split(" ").forEach((e=>{o[e.trim()]=!0})):o=q(q({},o),n),o}(e),w=Xe(e),{key:C}=e;return"string"==typeof a?$(FB,{key:`${s}-${String(C)||n}`,class:S,style:w,labelStyle:q(q({},d),m),contentStyle:q(q({},p),b),span:g,colon:r,component:a,itemPrefixCls:h,bordered:i,label:c?y:null,content:u?x:null},null):[$(FB,{key:`label-${String(C)||n}`,class:S,style:q(q(q({},d),w),m),span:1,colon:r,component:a[0],itemPrefixCls:h,bordered:i,label:y},null),$(FB,{key:`content-${String(C)||n}`,class:S,style:q(q(q({},p),w),b),span:2*g-1,component:a[1],itemPrefixCls:h,bordered:i,content:x},null)]}))},{prefixCls:r,vertical:l,row:i,index:a,bordered:s}=n,{labelStyle:c,contentStyle:u}=p(YB,{labelStyle:f({}),contentStyle:f({})});return l?$(e,null,[$("tr",{key:`label-${a}`,class:`${r}-row`},[o(i,n,{component:"th",type:"label",showLabel:!0,labelStyle:c.value,contentStyle:u.value})]),$("tr",{key:`content-${a}`,class:`${r}-row`},[o(i,n,{component:"td",type:"content",showContent:!0,labelStyle:c.value,contentStyle:u.value})])]):$("tr",{key:a,class:`${r}-row`},[o(i,n,{component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:c.value,contentStyle:u.value})])},_B=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:l}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:l,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},WB=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:l,descriptionsTitleMarginBottom:i}=e;return{[t]:q(q(q({},Ur(e)),_B(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:q(q({},Yr),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${l}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},KB=tl("Descriptions",(e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,l=`${e.padding}px ${e.paddingLG}px`,i=`${e.paddingSM}px ${e.paddingLG}px`,a=rl(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:e.padding,descriptionsSmallPadding:r,descriptionsDefaultPadding:l,descriptionsMiddlePadding:i,descriptionsItemLabelColonMarginRight:e.marginXS,descriptionsItemLabelColonMarginLeft:e.marginXXS/2});return[WB(a)]}));Ii.any;const VB=r({compatConfig:{MODE:3},name:"ADescriptionsItem",props:{prefixCls:String,label:Ii.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}},setup(e,t){let{slots:n}=t;return()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),XB={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function GB(e,t,n){let o=e;return(void 0===n||n>t)&&(o=Ja(e,{span:t}),bn()),o}const YB=Symbol("descriptionsContext"),UB=r({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:{prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:Ii.any,extra:Ii.any,column:{type:[Number,Object],default:()=>XB},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}},slots:Object,Item:VB,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("descriptions",e);let i;const a=f({}),[s,c]=KB(r),u=Sy();T((()=>{i=u.value.subscribe((t=>{"object"==typeof e.column&&(a.value=t)}))})),b((()=>{u.value.unsubscribe(i)})),v(YB,{labelStyle:M(e,"labelStyle"),contentStyle:M(e,"contentStyle")});const p=d((()=>function(e,t){if("number"==typeof e)return e;if("object"==typeof e)for(let n=0;n<$y.length;n++){const o=$y[n];if(t[o]&&void 0!==e[o])return e[o]||XB[o]}return 3}(e.column,a.value)));return()=>{var t,i,a;const{size:u,bordered:d=!1,layout:v="horizontal",colon:f=!0,title:h=(null===(t=n.title)||void 0===t?void 0:t.call(n)),extra:g=(null===(i=n.extra)||void 0===i?void 0:i.call(n))}=e,m=function(e,t){const n=Fe(e),o=[];let r=[],l=t;return n.forEach(((e,i)=>{var a;const s=null===(a=e.props)||void 0===a?void 0:a.span,c=s||1;if(i===n.length-1)return r.push(GB(e,l,s)),void o.push(r);c$(LB,{key:t,index:t,colon:f,prefixCls:r.value,vertical:"vertical"===v,bordered:d,row:e},null)))])])])]))}}});UB.install=function(e){return e.component(UB.name,UB),e.component(UB.Item.name,UB.Item),e};const qB=UB,QB=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:q(q({},Ur(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},ZB=tl("Divider",(e=>{const t=rl(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[QB(t)]}),{sizePaddingEdgeHorizontal:0}),JB=at(r({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("divider",e),[i,a]=ZB(r),s=d((()=>"left"===e.orientation&&null!=e.orientationMargin)),c=d((()=>"right"===e.orientation&&null!=e.orientationMargin)),u=d((()=>{const{type:t,dashed:n,plain:o}=e,i=r.value;return{[i]:!0,[a.value]:!!a.value,[`${i}-${t}`]:!0,[`${i}-dashed`]:!!n,[`${i}-plain`]:!!o,[`${i}-rtl`]:"rtl"===l.value,[`${i}-no-default-orientation-margin-left`]:s.value,[`${i}-no-default-orientation-margin-right`]:c.value}})),p=d((()=>{const t="number"==typeof e.orientationMargin?`${e.orientationMargin}px`:e.orientationMargin;return q(q({},s.value&&{marginLeft:t}),c.value&&{marginRight:t})})),v=d((()=>e.orientation.length>0?"-"+e.orientation:e.orientation));return()=>{var e;const t=Fe(null===(e=n.default)||void 0===e?void 0:e.call(n));return i($("div",U(U({},o),{},{class:[u.value,t.length?`${r.value}-with-text ${r.value}-with-text${v.value}`:"",o.class],role:"separator"}),[t.length?$("span",{class:`${r.value}-inner-text`,style:p.value},[t]):null]))}}}));Hx.Button=Px,Hx.install=function(e){return e.component(Hx.name,Hx),e.component(Px.name,Px),e};const eD=()=>({prefixCls:String,width:Ii.oneOfType([Ii.string,Ii.number]),height:Ii.oneOfType([Ii.string,Ii.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:ct(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:vt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:dt(),maskMotion:ct()});Object.keys({transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"}).filter((e=>{if("undefined"==typeof document)return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0];const tD=!("undefined"!=typeof window&&window.document&&window.document.createElement);const nD=r({compatConfig:{MODE:3},inheritAttrs:!1,props:q(q({},eD()),{getContainer:Function,getOpenCount:Function,scrollLocker:Ii.any,inline:Boolean}),emits:["close","handleClick","change"],setup(e,t){let{emit:n,slots:o}=t;const r=g(),l=g(),a=g(),u=g(),d=g();let p=[];Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16),i((()=>{S((()=>{var t;const{open:n,getContainer:o,showMask:r,autofocus:l}=e,i=null==o?void 0:o();b(e),n&&(i&&(i.parentNode,document.body),S((()=>{l&&v()})),r&&(null===(t=e.scrollLocker)||void 0===t||t.lock()))}))})),c((()=>e.level),(()=>{b(e)}),{flush:"post"}),c((()=>e.open),(()=>{const{open:t,getContainer:n,scrollLocker:o,showMask:r,autofocus:l}=e,i=null==n?void 0:n();i&&(i.parentNode,document.body),t?(l&&v(),r&&(null==o||o.lock())):null==o||o.unLock()}),{flush:"post"}),s((()=>{var t;const{open:n}=e;n&&(document.body.style.touchAction=""),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),c((()=>e.placement),(e=>{e&&(d.value=null)}));const v=()=>{var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)},f=e=>{n("close",e)},h=e=>{e.keyCode===sd.ESC&&(e.stopPropagation(),f(e))},m=()=>{const{open:t,afterVisibleChange:n}=e;n&&n(!!t)},b=e=>{let{level:t,getContainer:n}=e;if(tD)return;const o=null==n?void 0:n(),r=o?o.parentNode:null;if(p=[],"all"===t){(r?Array.prototype.slice.call(r.children):[]).forEach((e=>{"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==o&&p.push(e)}))}else t&&(l=t,Array.isArray(l)?l:[l]).forEach((e=>{document.querySelectorAll(e).forEach((e=>{p.push(e)}))}));var l},y=e=>{n("handleClick",e)},x=g(!1);return c(l,(()=>{S((()=>{x.value=!0}))})),()=>{var t,n;const{width:i,height:s,open:c,prefixCls:p,placement:v,level:g,levelMove:b,ease:S,duration:C,getContainer:O,onChange:I,afterVisibleChange:M,showMask:E,maskClosable:T,maskStyle:A,keyboard:B,getOpenCount:D,scrollLocker:z,contentWrapperStyle:R,style:j,class:N,rootClassName:H,rootStyle:F,maskMotion:L,motion:_,inline:W}=e,K=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[E&&w($("div",{class:`${p}-mask`,onClick:T?f:void 0,style:A,ref:a},null),[[P,V]])]}),$(k,U(U({},G),{},{onAfterEnter:m,onAfterLeave:m}),{default:()=>[w($("div",{class:`${p}-content-wrapper`,style:[R],ref:r},[$("div",{class:[`${p}-content`,N],style:j,ref:d},[null===(t=o.default)||void 0===t?void 0:t.call(o)]),o.handler?$("div",{onClick:y,ref:u},[null===(n=o.handler)||void 0===n?void 0:n.call(o)]):null]),[[P,V]])]})])}}}),oD=nD;var rD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=f(null),l=e=>{n("handleClick",e)},i=e=>{n("close",e)};return()=>{const{getContainer:t,wrapperClassName:n,rootClassName:a,rootStyle:s,forceRender:c}=e,u=rD(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let d=null;if(!t)return $(oD,U(U({},u),{},{rootClassName:a,rootStyle:s,open:e.open,onClose:i,onHandleClick:l,inline:!0}),o);const p=!!o.handler||c;return(p||e.open||r.value)&&(d=$(nd,{autoLock:!0,visible:e.open,forceRender:p,getContainer:t,wrapperClassName:n},{default:t=>{var{visible:n,afterClose:c}=t,d=rD(t,["visible","afterClose"]);return $(oD,U(U(U({ref:r},u),d),{},{rootClassName:a,rootStyle:s,open:void 0!==n?n:e.open,afterVisibleChange:void 0!==c?c:e.afterVisibleChange,onClose:i,onHandleClick:l}),o)}})),d}}}),iD=lD,aD=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},sD=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:l,motionDurationMid:i,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:v,marginSM:f,colorIcon:h,colorIconHover:g,colorText:m,fontWeightStrong:b,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:$}=e,x=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[x]:{position:"absolute",zIndex:n,transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:f,color:h,fontWeight:b,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:m,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${$}px`,borderTop:`${d}px ${p} ${v}`},"&-rtl":{direction:"rtl"}}}},cD=tl("Drawer",(e=>{const t=rl(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[sD(t),aD(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase})));const uD=["top","right","bottom","left"],dD={distance:180},pD=r({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Re({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:Ii.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:ct(),rootClassName:String,rootStyle:ct(),size:{type:String},drawerStyle:ct(),headerStyle:ct(),bodyStyle:ct(),contentWrapperStyle:{type:Object,default:void 0},title:Ii.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:Ii.oneOfType([Ii.string,Ii.number]),height:Ii.oneOfType([Ii.string,Ii.number]),zIndex:Number,prefixCls:String,push:Ii.oneOfType([Ii.looseBool,{type:Object}]),placement:Ii.oneOf(uD),keyboard:{type:Boolean,default:void 0},extra:Ii.any,footer:Ii.any,footerStyle:ct(),level:Ii.any,levelMove:{type:[Number,Array,Function]},handle:Ii.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function},{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:dD}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const l=g(!1),a=g(!1),u=g(null),f=g(!1),h=g(!1),m=d((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible}));c(m,(()=>{m.value?f.value=!0:h.value=!1}),{immediate:!0}),c([m,f],(()=>{m.value&&f.value&&(h.value=!0)}),{immediate:!0});const b=p("parentDrawerOpts",null),{prefixCls:y,getPopupContainer:x,direction:w}=Il("drawer",e),[C,k]=cD(y),O=d((()=>void 0===e.getContainer&&(null==x?void 0:x.value)?()=>x.value(document.body):e.getContainer));Mi(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead");v("parentDrawerOpts",{setPush:()=>{l.value=!0},setPull:()=>{l.value=!1,S((()=>{I()}))}}),i((()=>{m.value&&b&&b.setPush()})),s((()=>{b&&b.setPull()})),c(h,(()=>{b&&(h.value?b.setPush():b.setPull())}),{flush:"post"});const I=()=>{var e,t;null===(t=null===(e=u.value)||void 0===e?void 0:e.domFocus)||void 0===t||t.call(e)},M=e=>{n("update:visible",!1),n("update:open",!1),n("close",e)},P=t=>{var o;t||(!1===a.value&&(a.value=!0),e.destroyOnClose&&(f.value=!1)),null===(o=e.afterVisibleChange)||void 0===o||o.call(e,t),n("afterVisibleChange",t),n("afterOpenChange",t)},E=d((()=>{const{push:t,placement:n}=e;let o;return o="boolean"==typeof t?t?dD.distance:0:t.distance,o=parseFloat(String(o||0)),"left"===n||"right"===n?`translateX(${"left"===n?o:-o}px)`:"top"===n||"bottom"===n?`translateY(${"top"===n?o:-o}px)`:null})),T=d((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:"large"===e.size?736:378})),A=d((()=>{var t;return null!==(t=e.height)&&void 0!==t?t:"large"===e.size?736:378})),B=d((()=>{const{mask:t,placement:n}=e;if(!h.value&&!t)return{};const o={};return"left"===n||"right"===n?o.width=$$(T.value)?`${T.value}px`:T.value:o.height=$$(A.value)?`${A.value}px`:A.value,o})),D=d((()=>{const{zIndex:t,contentWrapperStyle:n}=e,o=B.value;return[{zIndex:t,transform:l.value?E.value:void 0},q({},n),o]})),z=t=>{const{closable:n,headerStyle:r}=e,l=Qe(o,e,"extra"),i=Qe(o,e,"title");return i||n?$("div",{class:pe(`${t}-header`,{[`${t}-header-close-only`]:n&&!i&&!l}),style:r},[$("div",{class:`${t}-header-title`},[R(t),i&&$("div",{class:`${t}-title`},[i])]),l&&$("div",{class:`${t}-extra`},[l])]):null},R=t=>{var n;const{closable:r}=e,l=o.closeIcon?null===(n=o.closeIcon)||void 0===n?void 0:n.call(o):e.closeIcon;return r&&$("button",{key:"closer",onClick:M,"aria-label":"Close",class:`${t}-close`},[void 0===l?$(Dv,null,null):l])},j=t=>{const n=Qe(o,e,"footer");if(!n)return null;return $("div",{class:`${t}-footer`,style:e.footerStyle},[n])},N=d((()=>pe({"no-mask":!e.mask,[`${y.value}-rtl`]:"rtl"===w.value},e.rootClassName,k.value))),H=d((()=>Ru(Nu(y.value,"mask-motion")))),F=e=>Ru(Nu(y.value,`panel-motion-${e}`));return()=>{const{width:t,height:n,placement:l,mask:i,forceRender:s}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[$(iD,U(U({},d),{},{maskMotion:H.value,motion:F,width:T.value,height:A.value,getContainer:O.value,rootClassName:N.value,rootStyle:e.rootStyle,contentWrapperStyle:D.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>(t=>{var n;if(a.value&&!e.forceRender&&!f.value)return null;const{bodyStyle:r,drawerStyle:l}=e;return $("div",{class:`${t}-wrapper-body`,style:l},[z(t),$("div",{key:"body",class:`${t}-body`,style:r},[null===(n=o.default)||void 0===n?void 0:n.call(o)]),j(t)])})(y.value)})]}))}}}),vD=at(pD);const fD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function hD(e){for(var t=1;t({prefixCls:String,description:Ii.any,type:ft("default"),shape:ft("circle"),tooltip:Ii.any,href:String,target:dt(),badge:ct(),onClick:dt()}),$D=r({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:{prefixCls:ft()},setup(t,n){let{attrs:o,slots:r}=n;return()=>{var n;const{prefixCls:l}=t,i=Ye(null===(n=r.description)||void 0===n?void 0:n.call(r));return $("div",U(U({},o),{},{class:[o.class,`${l}-content`]}),[r.icon||i.length?$(e,null,[r.icon&&$("div",{class:`${l}-icon`},[r.icon()]),i.length?$("div",{class:`${l}-description`},[i]):null]):$("div",{class:`${l}-icon`},[$(bD,null,null)])])}}}),xD=Symbol("floatButtonGroupContext"),SD=()=>p(xD,{shape:f()}),wD=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),CD=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,l=`${t}-group`,i=new Fo("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new Fo("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${l}-wrap`]:q({},fm(`${l}-wrap`,i,a,o,!0))},{[`${l}-wrap`]:{[`\n &${l}-wrap-enter,\n &${l}-wrap-appear\n `]:{opacity:0,animationTimingFunction:r},[`&${l}-wrap-leave`]:{animationTimingFunction:r}}}]},kD=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:l,borderRadiusSM:i,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:q(q({},Ur(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:l,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${c}-wrap`]:{display:"block",borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},OD=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:l,borderRadiusLG:i,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:q(q({},Ur(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},ID=tl("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:l,fontSize:i,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=rl(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:1.5*a,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:l,floatButtonBodySize:o-2*c,floatButtonBodyPadding:c,badgeOffset:1.5*c,dotOffsetInCircle:wD(o/2),dotOffsetInSquare:wD(u)});return[kD(d),OD(d),mm(e),CD(d)]}));const MD="float-btn",PD=r({compatConfig:{MODE:3},name:"AFloatButton",inheritAttrs:!1,props:Re(yD(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Il(MD,e),[i,a]=ID(r),{shape:s}=SD(),c=f(null),u=d((()=>(null==s?void 0:s.value)||e.shape));return()=>{var t;const{prefixCls:s,type:d="default",shape:p="circle",description:v=(null===(t=o.description)||void 0===t?void 0:t.call(o)),tooltip:f,badge:h={}}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro.tooltip&&o.tooltip()||f:void 0,default:()=>$(x$,h,{default:()=>[$("div",{class:`${r.value}-body`},[$($D,{prefixCls:r.value},{icon:o.icon,description:()=>v})])]})});return i(e.href?$("a",U(U(U({ref:c},n),g),{},{class:m}),[b]):$("button",U(U(U({ref:c},n),g),{},{class:m,type:"button"}),[b]))}}}),ED=PD,TD=r({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:Re(q(q({},yD()),{trigger:ft(),open:ut(),onOpenChange:dt(),"onUpdate:open":dt()}),{type:"default",shape:"circle"}),setup(t,n){let{attrs:o,slots:r,emit:l}=n;const{prefixCls:i,direction:a}=Il(MD,t),[s,u]=ID(i),[p,h]=Sp(!1,{value:d((()=>t.open))}),g=f(null),m=f(null);(e=>{v(xD,e)})({shape:d((()=>t.shape))});const y={onMouseenter(){var e;h(!0),l("update:open",!0),null===(e=t.onOpenChange)||void 0===e||e.call(t,!0)},onMouseleave(){var e;h(!1),l("update:open",!1),null===(e=t.onOpenChange)||void 0===e||e.call(t,!1)}},x=d((()=>"hover"===t.trigger?y:{})),S=e=>{var n,o,r;(null===(n=g.value)||void 0===n?void 0:n.contains(e.target))?(null===(o=_e(m.value))||void 0===o?void 0:o.contains(e.target))&&(()=>{var e;const n=!p.value;l("update:open",n),null===(e=t.onOpenChange)||void 0===e||e.call(t,n),h(n)})():(h(!1),l("update:open",!1),null===(r=t.onOpenChange)||void 0===r||r.call(t,!1))};return c(d((()=>t.trigger)),(e=>{Jt()&&(document.removeEventListener("click",S),"click"===e&&document.addEventListener("click",S))}),{immediate:!0}),b((()=>{document.removeEventListener("click",S)})),()=>{var n;const{shape:l="circle",type:c="default",tooltip:d,description:v,trigger:f}=t,h=`${i.value}-group`,b=pe(h,u.value,o.class,{[`${h}-rtl`]:"rtl"===a.value,[`${h}-${l}`]:l,[`${h}-${l}-shadow`]:!f}),y=pe(u.value,`${h}-wrap`),S=Ru(`${h}-wrap`);return s($("div",U(U({ref:g},o),{},{class:b},x.value),[f&&["click","hover"].includes(f)?$(e,null,[$(k,S,{default:()=>[w($("div",{class:y},[r.default&&r.default()]),[[P,p.value]])]}),$(ED,{ref:m,type:c,shape:l,tooltip:d,description:v},{icon:()=>{var e,t;return p.value?(null===(e=r.closeIcon)||void 0===e?void 0:e.call(r))||$(Dv,null,null):(null===(t=r.icon)||void 0===t?void 0:t.call(r))||$(bD,null,null)},tooltip:r.tooltip,description:r.description})]):null===(n=r.default)||void 0===n?void 0:n.call(r)]))}}}),AD=TD;const BD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function DD(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:a,direction:s}=Il(MD,e),[u]=ID(a),d=f(),p=l({visible:0===e.visibilityHeight,scrollEvent:null}),v=()=>d.value&&d.value.ownerDocument?d.value.ownerDocument:window,h=t=>{const{target:n=v,duration:o}=e;Kl(0,{getContainer:n,duration:o}),r("click",t)},g=lt((t=>{const{visibilityHeight:n}=e,o=Wl(t.target,!0);p.visible=o>=n})),m=()=>{const{target:t}=e,n=(t||v)();g({target:n}),null==n||n.addEventListener("scroll",g)},y=()=>{const{target:t}=e,n=(t||v)();g.cancel(),null==n||n.removeEventListener("scroll",g)};c((()=>e.target),(()=>{y(),S((()=>{m()}))})),i((()=>{S((()=>{m()}))})),W((()=>{S((()=>{m()}))})),K((()=>{y()})),b((()=>{y()}));const x=SD();return()=>{const{description:t,type:r,shape:l,tooltip:i,badge:c}=e,v=q(q({},o),{shape:(null==x?void 0:x.shape.value)||l,onClick:h,class:{[`${a.value}`]:!0,[`${o.class}`]:o.class,[`${a.value}-rtl`]:"rtl"===s.value},description:t,type:r,tooltip:i,badge:c}),f=Ru("fade");return u($(k,f,{default:()=>[w($(ED,U(U({},v),{},{ref:d}),{icon:()=>{var e;return(null===(e=n.icon)||void 0===e?void 0:e.call(n))||$(jD,null,null)}}),[[P,p.visible]])]}))}}}),HD=ND;ED.Group=AD,ED.BackTop=HD,ED.install=function(e){return e.component(ED.name,ED),e.component(AD.name,AD),e.component(HD.name,HD),e};const FD=e=>null!=e&&(!Array.isArray(e)||Ye(e).length);function LD(e){return FD(e.prefix)||FD(e.suffix)||FD(e.allowClear)}function _D(e){return FD(e.addonBefore)||FD(e.addonAfter)}function WD(e){return null==e?"":String(e)}function KD(e,t,n,o){if(!n)return;const r=t;if("click"===t.type){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return r.target=t,r.currentTarget=t,t.value="",void n(r)}if(void 0!==o)return Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,void n(r);n(r)}function VD(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}const XD=()=>q(q({},{addonBefore:Ii.any,addonAfter:Ii.any,prefix:Ii.any,suffix:Ii.any,clearIcon:Ii.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Ii.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),GD=()=>q(q({},XD()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:ft("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),YD=r({name:"BaseInput",inheritAttrs:!1,props:XD(),setup(e,t){let{slots:n,attrs:o}=t;const r=f(),l=t=>{var n;if(null===(n=r.value)||void 0===n?void 0:n.contains(t.target)){const{triggerFocus:t}=e;null==t||t()}},i=()=>{var t;const{allowClear:o,value:r,disabled:l,readonly:i,handleReset:a,suffix:s=n.suffix,prefixCls:c}=e;if(!o)return null;const u=!l&&!i&&r,d=`${c}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return $("span",{onClick:a,onMousedown:e=>e.preventDefault(),class:pe({[`${d}-hidden`]:!u,[`${d}-has-suffix`]:!!s},d),role:"button",tabindex:-1},[p])};return()=>{var t,a;const{focused:s,value:c,disabled:u,allowClear:d,readonly:p,hidden:v,prefixCls:f,prefix:h=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:g=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:m=n.addonAfter,addonBefore:b=n.addonBefore,inputElement:y,affixWrapperClassName:x,wrapperClassName:S,groupClassName:w}=e;let C=Ja(y,{value:c,hidden:v});if(LD({prefix:h,suffix:g,allowClear:d})){const e=`${f}-affix-wrapper`,t=pe(e,{[`${e}-disabled`]:u,[`${e}-focused`]:s,[`${e}-readonly`]:p,[`${e}-input-with-clear-btn`]:g&&d&&c},!_D({addonAfter:m,addonBefore:b})&&o.class,x),n=(g||d)&&$("span",{class:`${f}-suffix`},[i(),g]);C=$("span",{class:t,style:o.style,hidden:!_D({addonAfter:m,addonBefore:b})&&v,onMousedown:l,ref:r},[h&&$("span",{class:`${f}-prefix`},[h]),Ja(y,{style:null,value:c,hidden:null}),n])}if(_D({addonAfter:m,addonBefore:b})){const e=`${f}-group`,t=`${e}-addon`,n=pe(`${f}-wrapper`,e,S),r=pe(`${f}-group-wrapper`,o.class,w);return $("span",{class:r,style:o.style,hidden:v},[$("span",{class:n},[b&&$("span",{class:t},[b]),Ja(C,{style:null,hidden:null}),m&&$("span",{class:t},[m])])])}return C}}});const UD=r({name:"VCInput",inheritAttrs:!1,props:GD(),setup(t,n){let{slots:o,attrs:r,expose:l,emit:a}=n;const s=g(void 0===t.value?t.defaultValue:t.value),u=g(!1),d=g(),p=g();c((()=>t.value),(()=>{s.value=t.value})),c((()=>t.disabled),(()=>{t.disabled&&(u.value=!1)}));const v=e=>{d.value&&VD(d.value,e)};l({focus:v,blur:()=>{var e;null===(e=d.value)||void 0===e||e.blur()},input:d,stateValue:s,setSelectionRange:(e,t,n)=>{var o;null===(o=d.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=d.value)||void 0===e||e.select()}});const f=e=>{a("change",e)},h=(e,n)=>{s.value!==e&&(void 0===t.value?s.value=e:S((()=>{var e;d.value.value!==s.value&&(null===(e=p.value)||void 0===e||e.$forceUpdate())})),S((()=>{n&&n()})))},m=e=>{const{value:n,composing:o}=e.target;if((e.isComposing||o)&&t.lazy||s.value===n)return;const r=e.target.value;KD(d.value,e,f),h(r)},b=e=>{13===e.keyCode&&a("pressEnter",e),a("keydown",e)},y=e=>{u.value=!0,a("focus",e)},x=e=>{u.value=!1,a("blur",e)},C=e=>{KD(d.value,e,f),h("",(()=>{v()}))},k=()=>{var e,n;const{addonBefore:l=o.addonBefore,addonAfter:i=o.addonAfter,disabled:a,valueModifiers:s={},htmlSize:c,autocomplete:u,prefixCls:p,inputClassName:v,prefix:f=(null===(e=o.prefix)||void 0===e?void 0:e.call(o)),suffix:h=(null===(n=o.suffix)||void 0===n?void 0:n.call(o)),allowClear:g,type:S="text"}=t,C=q(q(q({},Ml(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"])),r),{autocomplete:u,onChange:m,onInput:m,onFocus:y,onBlur:x,onKeydown:b,class:pe(p,{[`${p}-disabled`]:a},v,!_D({addonAfter:i,addonBefore:l})&&!LD({prefix:f,suffix:h,allowClear:g})&&r.class),ref:d,key:"ant-input",size:c,type:S});s.lazy&&delete C.onInput,C.autofocus||delete C.autofocus;const k=$("input",Ml(C,["size"]),null);return w(k,[[fd]])},O=()=>{var n;const{maxlength:r,suffix:l=(null===(n=o.suffix)||void 0===n?void 0:n.call(o)),showCount:i,prefixCls:a}=t,c=Number(r)>0;if(l||i){const t=[...WD(s.value)].length,n="object"==typeof i?i.formatter({count:t,maxlength:r}):`${t}${c?` / ${r}`:""}`;return $(e,null,[!!i&&$("span",{class:pe(`${a}-show-count-suffix`,{[`${a}-show-count-has-suffix`]:!!l})},[n]),l])}return null};return i((()=>{})),()=>{const{prefixCls:e,disabled:n}=t,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rMl(GD(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),QD=qD,ZD=()=>q(q({},Ml(qD(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:st(),onCompositionend:st(),valueModifiers:Object});const JD=r({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:QD(),setup(t,n){let{slots:o,attrs:r,expose:l,emit:a}=n;const s=f(),c=Qv(),u=Jv.useInject(),p=d((()=>nf(u.status,t.status))),{direction:v,prefixCls:h,size:g,autocomplete:m}=Il("input",t),{compactSize:y,compactItemClassnames:x}=sm(h,v),S=d((()=>y.value||g.value)),[w,C]=Xk(h),k=At();l({focus:e=>{var t;null===(t=s.value)||void 0===t||t.focus(e)},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()},input:s,setSelectionRange:(e,t,n)=>{var o;null===(o=s.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=s.value)||void 0===e||e.select()}});const O=f([]),I=()=>{O.value.push(setTimeout((()=>{var e,t,n,o;(null===(e=s.value)||void 0===e?void 0:e.input)&&"password"===(null===(t=s.value)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=s.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=s.value)||void 0===o||o.input.removeAttribute("value"))})))};i((()=>{I()})),N((()=>{O.value.forEach((e=>clearTimeout(e)))})),b((()=>{O.value.forEach((e=>clearTimeout(e)))}));const M=e=>{I(),a("blur",e),c.onFieldBlur()},P=e=>{I(),a("focus",e)},E=e=>{a("update:value",e.target.value),a("change",e),a("input",e),c.onFieldChange()};return()=>{var n,l,i,a,d,f;const{hasFeedback:g,feedbackIcon:b}=u,{allowClear:y,bordered:O=!0,prefix:I=(null===(n=o.prefix)||void 0===n?void 0:n.call(o)),suffix:T=(null===(l=o.suffix)||void 0===l?void 0:l.call(o)),addonAfter:A=(null===(i=o.addonAfter)||void 0===i?void 0:i.call(o)),addonBefore:B=(null===(a=o.addonBefore)||void 0===a?void 0:a.call(o)),id:D=(null===(d=c.id)||void 0===d?void 0:d.value)}=t,z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$(Hv,null,null));return w($(UD,U(U(U({},r),Ml(z,["onUpdate:value","onChange","onInput"])),{},{onChange:E,id:D,disabled:null!==(f=t.disabled)&&void 0!==f?f:k.value,ref:s,prefixCls:j,autocomplete:m.value,onBlur:M,onFocus:P,prefix:I,suffix:R,allowClear:y,addonAfter:A&&$(cm,null,{default:()=>[$(ef,null,{default:()=>[A]})]}),addonBefore:B&&$(cm,null,{default:()=>[$(ef,null,{default:()=>[B]})]}),class:[r.class,x.value],inputClassName:pe({[`${j}-sm`]:"small"===S.value,[`${j}-lg`]:"large"===S.value,[`${j}-rtl`]:"rtl"===v.value,[`${j}-borderless`]:!O},!N&&tf(j,p.value),C.value),affixWrapperClassName:pe({[`${j}-affix-wrapper-sm`]:"small"===S.value,[`${j}-affix-wrapper-lg`]:"large"===S.value,[`${j}-affix-wrapper-rtl`]:"rtl"===v.value,[`${j}-affix-wrapper-borderless`]:!O},tf(`${j}-affix-wrapper`,p.value,g),C.value),wrapperClassName:pe({[`${j}-group-rtl`]:"rtl"===v.value},C.value),groupClassName:pe({[`${j}-group-wrapper-sm`]:"small"===S.value,[`${j}-group-wrapper-lg`]:"large"===S.value,[`${j}-group-wrapper-rtl`]:"rtl"===v.value},tf(`${j}-group-wrapper`,p.value,g),C.value)}),q(q({},o),{clearIcon:H})))}}}),ez=r({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,getPrefixCls:i}=Il("input-group",e),a=Jv.useInject();Jv.useProvide(a,{isFormItemInput:!1});const s=d((()=>i("input"))),[c,u]=Xk(s),p=d((()=>{const t=r.value;return{[`${t}`]:!0,[u.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===l.value}}));return()=>{var e;return c($("span",U(U({},o),{},{class:pe(p.value,o.class)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});const tz=r({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:q(q({},QD()),{inputPrefixCls:String,enterButton:Ii.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:l}=t;const i=g(),a=g(!1);r({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=i.value)||void 0===e||e.blur()}});const s=e=>{l("update:value",e.target.value),e&&e.target&&"click"===e.type&&l("search",e.target.value,e),l("change",e)},c=e=>{var t;document.activeElement===(null===(t=i.value)||void 0===t?void 0:t.input)&&e.preventDefault()},u=e=>{var t,n;l("search",null===(n=null===(t=i.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},p=t=>{a.value||e.loading||u(t)},v=e=>{a.value=!0,l("compositionstart",e)},f=e=>{a.value=!1,l("compositionend",e)},{prefixCls:h,getPrefixCls:m,direction:b,size:y}=Il("input-search",e),x=d((()=>m("input",e.inputPrefixCls)));return()=>{var t,r,l,a;const{disabled:d,loading:g,addonAfter:m=(null===(t=n.addonAfter)||void 0===t?void 0:t.call(n)),suffix:S=(null===(r=n.suffix)||void 0===r?void 0:r.call(n))}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[e?null:k||C]})}m&&(M=[M,m]);const E=pe(h.value,{[`${h.value}-rtl`]:"rtl"===b.value,[`${h.value}-${y.value}`]:!!y.value,[`${h.value}-with-button`]:!!C},o.class);return $(JD,U(U(U({ref:i},Ml(w,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:p,onCompositionstart:v,onCompositionend:f,size:y.value,prefixCls:x.value,addonAfter:M,suffix:S,onChange:s,class:E,disabled:d}),n)}}}),nz=e=>null!=e&&(!Array.isArray(e)||Ye(e).length);const oz=["text","input"],rz=r({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Ii.oneOf(it("text","input")),value:pt(),defaultValue:pt(),allowClear:{type:Boolean,default:void 0},element:pt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:pt(),prefix:pt(),addonBefore:pt(),addonAfter:pt(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=Jv.useInject(),l=t=>{const{value:o,disabled:r,readonly:l,handleReset:i,suffix:a=n.suffix}=e,s=`${t}-clear-icon`;return $(Hv,{onClick:i,onMousedown:e=>e.preventDefault(),class:pe({[`${s}-hidden`]:!(!r&&!l&&o),[`${s}-has-suffix`]:!!a},s),role:"button"},null)};return()=>{var t;const{prefixCls:i,inputType:a,element:s=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return a===oz[0]?((t,i)=>{const{value:a,allowClear:s,direction:c,bordered:u,hidden:d,status:p,addonAfter:v=n.addonAfter,addonBefore:f=n.addonBefore,hashId:h}=e,{status:g,hasFeedback:m}=r;if(!s)return Ja(i,{value:a,disabled:e.disabled});const b=pe(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,tf(`${t}-affix-wrapper`,nf(g,p),m),{[`${t}-affix-wrapper-rtl`]:"rtl"===c,[`${t}-affix-wrapper-borderless`]:!u,[`${o.class}`]:(y={addonAfter:v,addonBefore:f},!(nz(y.addonBefore)||nz(y.addonAfter))&&o.class)},h);var y;return $("span",{class:b,style:o.style,hidden:d},[Ja(i,{style:null,value:a,disabled:e.disabled}),l(t)])})(i,s):null}}}),lz=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],iz={};let az;function sz(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;az||(az=document.createElement("textarea"),az.setAttribute("tab-index","-1"),az.setAttribute("aria-hidden","true"),document.body.appendChild(az)),e.getAttribute("wrap")?az.setAttribute("wrap",e.getAttribute("wrap")):az.removeAttribute("wrap");const{paddingSize:r,borderSize:l,boxSizing:i,sizingStyle:a}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&iz[n])return iz[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),l=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),a={sizingStyle:lz.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";"),paddingSize:l,borderSize:i,boxSizing:r};return t&&n&&(iz[n]=a),a}(e,t);let s,c,u;az.setAttribute("style",`${a};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),az.value=e.value||e.placeholder||"";let d=az.scrollHeight;if("border-box"===i?d+=l:"content-box"===i&&(d-=r),null!==n||null!==o){az.value=" ";const e=az.scrollHeight-r;null!==n&&(s=e*n,"border-box"===i&&(s=s+r+l),d=Math.max(s,d)),null!==o&&(c=e*o,"border-box"===i&&(c=c+r+l),u=d>c?"":"hidden",d=Math.min(c,d))}const p={height:`${d}px`,overflowY:u,resize:"none"};return s&&(p.minHeight=`${s}px`),c&&(p.maxHeight=`${c}px`),p}const cz=r({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:ZD(),setup(e,t){let{attrs:n,emit:o,expose:r}=t;const l=f(),i=f({}),a=f(2);b((()=>{rt.cancel(undefined),rt.cancel(undefined)}));const s=f(),p=f();m((()=>{const t=e.autoSize||e.autosize;t?(s.value=t.minRows,p.value=t.maxRows):(s.value=void 0,p.value=void 0)}));const v=d((()=>!(!e.autoSize&&!e.autosize))),h=()=>{a.value=0};c([()=>e.value,s,p,v],(()=>{v.value&&h()}),{immediate:!0,flush:"post"});const g=f();c([a,l],(()=>{if(l.value)if(0===a.value)a.value=1;else if(1===a.value){const e=sz(l.value,!1,s.value,p.value);a.value=2,g.value=e}else(()=>{try{if(document.activeElement===l.value){const e=l.value.selectionStart,t=l.value.selectionEnd,n=l.value.scrollTop;l.value.setSelectionRange(e,t),l.value.scrollTop=n}}catch(QS){}})()}),{immediate:!0,flush:"post"});const y=u(),x=f(),S=()=>{rt.cancel(x.value)},C=e=>{2===a.value&&(o("resize",e),v.value&&(S(),x.value=rt((()=>{h()}))))};b((()=>{S()}));r({resizeTextarea:()=>{h()},textArea:l,instance:y}),bn(void 0===e.autosize);return()=>(()=>{const{prefixCls:t,disabled:o}=e,r=Ml(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),s=pe(t,n.class,{[`${t}-disabled`]:o}),c=v.value?g.value:null,u=[n.style,i.value,c],d=q(q(q({},r),n),{style:u,class:s});return 0!==a.value&&1!==a.value||u.push({overflowX:"hidden",overflowY:"hidden"}),d.autofocus||delete d.autofocus,0===d.rows&&delete d.rows,$(Ze,{onResize:C,disabled:!v.value},{default:()=>[w($("textarea",U(U({},d),{},{ref:l}),null),[[fd]])]})})()}});function uz(e,t){return[...e||""].slice(0,t).join("")}function dz(e,t,n,o){let r=n;return e?r=uz(n,o):[...t||""].lengtho&&(r=t),r}const pz=r({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:ZD(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;const l=Qv(),i=Jv.useInject(),a=d((()=>nf(i.status,e.status))),s=g(void 0===e.value?e.defaultValue:e.value),p=g(),v=g(""),{prefixCls:f,size:h,direction:b}=Il("input",e),[y,x]=Xk(f),w=At(),C=d((()=>""===e.showCount||e.showCount||!1)),k=d((()=>Number(e.maxlength)>0)),O=g(!1),I=g(),M=g(0),P=e=>{O.value=!0,I.value=v.value,M.value=e.currentTarget.selectionStart,r("compositionstart",e)},E=t=>{var n;O.value=!1;let o=t.currentTarget.value;if(k.value){o=dz(M.value>=e.maxlength+1||M.value===(null===(n=I.value)||void 0===n?void 0:n.length),I.value,o,e.maxlength)}o!==v.value&&(B(o),KD(t.currentTarget,t,R,o)),r("compositionend",t)},T=u();c((()=>e.value),(()=>{var t;T.vnode.props,s.value=null!==(t=e.value)&&void 0!==t?t:""}));const A=e=>{var t;VD(null===(t=p.value)||void 0===t?void 0:t.textArea,e)},B=(t,n)=>{s.value!==t&&(void 0===e.value?s.value=t:S((()=>{var e,t,n;p.value.textArea.value!==v.value&&(null===(n=null===(e=p.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),S((()=>{n&&n()})))},D=e=>{13===e.keyCode&&r("pressEnter",e),r("keydown",e)},z=t=>{const{onBlur:n}=e;null==n||n(t),l.onFieldBlur()},R=e=>{r("update:value",e.target.value),r("change",e),r("input",e),l.onFieldChange()},j=e=>{KD(p.value.textArea,e,R),B("",(()=>{A()}))},N=t=>{const{composing:n}=t.target;let o=t.target.value;if(O.value=!(!t.isComposing&&!n),!(O.value&&e.lazy||s.value===o)){if(k.value){const n=t.target;o=dz(n.selectionStart>=e.maxlength+1||n.selectionStart===o.length||!n.selectionStart,v.value,o,e.maxlength)}KD(t.currentTarget,t,R,o),B(o)}},H=()=>{var t,o;const{class:r}=n,{bordered:i=!0}=e,s=q(q(q({},Ml(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!i,[`${r}`]:r&&!C.value,[`${f.value}-sm`]:"small"===h.value,[`${f.value}-lg`]:"large"===h.value},tf(f.value,a.value),x.value],disabled:w.value,showCount:null,prefixCls:f.value,onInput:N,onChange:N,onBlur:z,onKeydown:D,onCompositionstart:P,onCompositionend:E});return(null===(t=e.valueModifiers)||void 0===t?void 0:t.lazy)&&delete s.onInput,$(cz,U(U({},s),{},{id:null!==(o=null==s?void 0:s.id)&&void 0!==o?o:l.id.value,ref:p,maxlength:e.maxlength}),null)};return o({focus:A,blur:()=>{var e,t;null===(t=null===(e=p.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},resizableTextArea:p}),m((()=>{let t=WD(s.value);O.value||!k.value||null!==e.value&&void 0!==e.value||(t=uz(t,e.maxlength)),v.value=t})),()=>{var t;const{maxlength:o,bordered:r=!0,hidden:l}=e,{style:a,class:s}=n,c=q(q(q({},e),n),{prefixCls:f.value,inputType:"text",handleReset:j,direction:b.value,bordered:r,style:C.value?void 0:a,hashId:x.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:w.value});let u=$(rz,U(U({},c),{},{value:v.value,status:e.status}),{element:H});if(C.value||i.hasFeedback){const e=[...v.value].length;let t="";t="object"==typeof C.value?C.value.formatter({value:v.value,count:e,maxlength:o}):`${e}${k.value?` / ${o}`:""}`,u=$("div",{hidden:l,class:pe(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:"rtl"===b.value,[`${f.value}-textarea-show-count`]:C.value,[`${f.value}-textarea-in-form-item`]:i.isFormItemInput},`${f.value}-textarea-show-count`,s,x.value),style:a,"data-count":"object"!=typeof t?t:void 0},[u,i.hasFeedback&&$("span",{class:`${f.value}-textarea-suffix`},[i.feedbackIcon])])}return y(u)}}});const vz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function fz(e){for(var t=1;t$(e?mz:Sz,null,null),kz=r({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:q(q({},QD()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:l}=t;const i=g(!1),a=()=>{const{disabled:t}=e;t||(i.value=!i.value,l("update:visible",i.value))};m((()=>{void 0!==e.visible&&(i.value=!!e.visible)}));const s=g();r({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()}});const{prefixCls:c,getPrefixCls:u}=Il("input-password",e),p=d((()=>u("input",e.inputPrefixCls))),v=()=>{const{size:t,visibilityToggle:r}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{action:o,iconRender:r=n.iconRender||Cz}=e,l=wz[o]||"",s=r(i.value),c={[l]:a,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return Ja(qe(s)?s:$("span",null,[s]),c)})(c.value),d=pe(c.value,o.class,{[`${c.value}-${t}`]:!!t}),v=q(q(q({},Ml(l,["suffix","iconRender","action"])),o),{type:i.value?"text":"password",class:d,prefixCls:p.value,suffix:u});return t&&(v.size=t),$(JD,U({ref:s},v),n)};return()=>v()}});function Oz(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Iz(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Ii.shape({x:Number,y:Number}).loose,title:Ii.any,footer:Ii.any,transitionName:String,maskTransitionName:String,animation:Ii.any,maskAnimation:Ii.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Ii.any,maskProps:Ii.any,wrapProps:Ii.any,getContainer:Ii.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Ii.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function Mz(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}JD.Group=ez,JD.Search=tz,JD.TextArea=pz,JD.Password=kz,JD.install=function(e){return e.component(JD.name,JD),e.component(JD.Group.name,JD.Group),e.component(JD.Search.name,JD.Search),e.component(JD.TextArea.name,JD.TextArea),e.component(JD.Password.name,JD.Password),e};let Pz=-1;function Ez(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o="scroll"+(t?"Top":"Left");if("number"!=typeof n){const t=e.document;n=t.documentElement[o],"number"!=typeof n&&(n=t.body[o])}return n}const Tz={width:0,height:0,overflow:"hidden",outline:"none"},Az=r({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:q(q({},Iz()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=f(),i=f(),a=f();n({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},changeActive:e=>{const{activeElement:t}=document;e&&t===i.value?l.value.focus():e||t!==l.value||i.value.focus()}});const s=f(),c=d((()=>{const{width:t,height:n}=e,o={};return void 0!==t&&(o.width="number"==typeof t?`${t}px`:t),void 0!==n&&(o.height="number"==typeof n?`${n}px`:n),s.value&&(o.transformOrigin=s.value),o})),u=()=>{S((()=>{if(a.value){const t=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Ez(r),n.top+=Ez(r,!0),n}(a.value);s.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},p=t=>{e.onVisibleChanged(t)};return()=>{var t,n,s,d;const{prefixCls:v,footer:f=(null===(t=o.footer)||void 0===t?void 0:t.call(o)),title:h=(null===(n=o.title)||void 0===n?void 0:n.call(o)),ariaId:g,closable:m,closeIcon:b=(null===(s=o.closeIcon)||void 0===s?void 0:s.call(o)),onClose:y,bodyStyle:x,bodyProps:S,onMousedown:C,onMouseup:O,visible:I,modalRender:M=o.modalRender,destroyOnClose:E,motionName:T}=e;let A,B,D;f&&(A=$("div",{class:`${v}-footer`},[f])),h&&(B=$("div",{class:`${v}-header`},[$("div",{class:`${v}-title`,id:g},[h])])),m&&(D=$("button",{type:"button",onClick:y,"aria-label":"Close",class:`${v}-close`},[b||$("span",{class:`${v}-close-x`},null)]));const z=$("div",{class:`${v}-content`},[D,B,$("div",U({class:`${v}-body`,style:x},S),[null===(d=o.default)||void 0===d?void 0:d.call(o)]),A]),R=Ru(T);return $(k,U(U({},R),{},{onBeforeEnter:u,onAfterEnter:()=>p(!0),onAfterLeave:()=>p(!1)}),{default:()=>[I||!E?w($("div",U(U({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[v,r.class],onMousedown:C,onMouseup:O}),[$("div",{tabindex:0,ref:l,style:Tz,"aria-hidden":"true"},null),M?M({originVNode:z}):z,$("div",{tabindex:0,ref:i,style:Tz,"aria-hidden":"true"},null)]),[[P,I]]):null]})}}}),Bz=r({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:(e,t)=>()=>{const{prefixCls:t,visible:n,maskProps:o,motionName:r}=e,l=Ru(r);return $(k,l,{default:()=>[w($("div",U({class:`${t}-mask`},o),null),[[P,n]])]})}}),Dz=r({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Re(q(q({},Iz()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=g(),l=g(),i=g(),a=g(e.visible),s=g(`vcDialogTitle${Pz+=1,Pz}`),u=t=>{var n,o;if(t)en(l.value,document.activeElement)||(r.value=document.activeElement,null===(n=i.value)||void 0===n||n.focus());else{const t=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch(QS){}r.value=null}t&&(null===(o=e.afterClose)||void 0===o||o.call(e))}},d=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},p=g(!1),v=g(),f=()=>{clearTimeout(v.value),p.value=!0},h=()=>{v.value=setTimeout((()=>{p.value=!1}))},y=t=>{if(!e.maskClosable)return null;p.value?p.value=!1:l.value===t.target&&d(t)},x=t=>{if(e.keyboard&&t.keyCode===sd.ESC)return t.stopPropagation(),void d(t);e.visible&&t.keyCode===sd.TAB&&i.value.changeActive(!t.shiftKey)};return c((()=>e.visible),(()=>{e.visible&&(a.value=!0)}),{flush:"post"}),b((()=>{var t;clearTimeout(v.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),m((()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),a.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:t,mask:r,visible:c,maskTransitionName:p,maskAnimation:v,zIndex:g,wrapClassName:m,rootClassName:b,wrapStyle:S,closable:w,maskProps:C,maskStyle:k,transitionName:O,animation:I,wrapProps:M,title:P=o.title}=e,{style:E,class:T}=n;return $("div",U({class:[`${t}-root`,b]},yd(e,{data:!0})),[$(Bz,{prefixCls:t,visible:r&&c,motionName:Mz(t,p,v),style:q({zIndex:g},k),maskProps:C},null),$("div",U({tabIndex:-1,onKeydown:x,class:pe(`${t}-wrap`,m),ref:l,onClick:y,role:"dialog","aria-labelledby":P?s.value:null,style:q(q({zIndex:g},S),{display:a.value?null:"none"})},M),[$(Az,U(U({},Ml(e,["scrollLocker"])),{},{style:E,class:T,onMousedown:f,onMouseup:h,ref:i,closable:w,ariaId:s.value,prefixCls:t,visible:c,onClose:d,onVisibleChanged:u,motionName:Mz(t,O,I)}),o)])])}}}),zz=Iz(),Rz=r({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Re(zz,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=f(e.visible);return Vu({},{inTriggerContext:!1}),c((()=>e.visible),(()=>{e.visible&&(r.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:l,forceRender:i,destroyOnClose:a=!1,afterClose:s}=e;let c=q(q(q({},e),n),{ref:"_component",key:"dialog"});return!1===l?$(Dz,U(U({},c),{},{getOpenCount:()=>2}),o):i||!a||r.value?$(nd,{autoLock:!0,visible:t,forceRender:i,getContainer:l},{default:e=>(c=q(q(q({},c),e),{afterClose:()=>{null==s||s(),r.value=!1}}),$(Dz,c,o))}):null}}});function jz(e,t,n,o){const r=t+n,l=(n-o)/2;if(n>o){if(t>0)return{[e]:l};if(t<0&&ro)return{[e]:t<0?l:-l};return{}}function Nz(e,t,n,o){const{width:r,height:l}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let i=null;return e<=r&&t<=l?i={x:0,y:0}:(e>r||t>l)&&(i=q(q({},jz("x",n,e,r)),jz("y",o,t,l))),i}const Hz=Symbol("previewGroupContext"),Fz=e=>{v(Hz,e)},Lz=()=>p(Hz,{isPreviewGroup:g(!1),previewUrls:d((()=>new Map)),setPreviewUrls:()=>{},current:f(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),_z=r({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(t,n){let{slots:o}=n;const r=d((()=>{const e={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof t.preview?Yz(t.preview,e):e})),i=l(new Map),a=f(),s=d((()=>r.value.visible)),u=d((()=>r.value.getContainer)),[p,v]=Sp(!!s.value,{value:s,onChange:(e,t)=>{var n,o;null===(o=(n=r.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),h=f(null),b=d((()=>void 0!==s.value)),y=d((()=>Array.from(i.keys()))),x=d((()=>y.value[r.value.current])),S=d((()=>new Map(Array.from(i).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),w=e=>{a.value=e},C=e=>{h.value=e},k=e=>{null==e||e.stopPropagation(),v(!1),C(null)};return c(x,(e=>{w(e)}),{immediate:!0,flush:"post"}),m((()=>{p.value&&b.value&&w(x.value)}),{flush:"post"}),Fz({isPreviewGroup:g(!0),previewUrls:S,setPreviewUrls:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i.set(e,{url:t,canPreview:n})},current:a,setCurrent:w,setShowPreview:v,setMousePosition:C,registerImage:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.set(e,{url:t,canPreview:n}),()=>{i.delete(e)}}}),()=>{const n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({})}}),Xz=r({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:Vz,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:a,zoomIn:u,zoomOut:p,close:v,left:h,right:m,flipX:b,flipY:y}=l(e.icons),x=g(1),S=g(0),w=l({x:1,y:1}),[C,k]=function(e){const t=f(null),n=l(q({},e)),o=f([]);return i((()=>{t.value&&rt.cancel(t.value)})),[n,e=>{null===t.value&&(o.value=[],t.value=rt((()=>{let e;o.value.forEach((t=>{e=q(q({},e),t)})),q(n,e),t.value=null}))),o.value.push(e)}]}(Kz),I=()=>n("close"),M=g(),P=l({originX:0,originY:0,deltaX:0,deltaY:0}),E=g(!1),T=Lz(),{previewUrls:A,current:B,isPreviewGroup:D,setCurrent:z}=T,R=d((()=>A.value.size)),j=d((()=>Array.from(A.value.keys()))),N=d((()=>j.value.indexOf(B.value))),H=d((()=>D.value?A.value.get(B.value):e.src)),F=d((()=>D.value&&R.value>1)),L=g({wheelDirection:0}),_=()=>{x.value=1,S.value=0,w.x=1,w.y=1,k(Kz),n("afterClose")},W=e=>{e?x.value+=.5:x.value++,k(Kz)},K=e=>{x.value>1&&(e?x.value-=.5:x.value--),k(Kz)},V=e=>{e.preventDefault(),e.stopPropagation(),N.value>0&&z(j.value[N.value-1])},X=e=>{e.preventDefault(),e.stopPropagation(),N.valueW(),type:"zoomIn"},{icon:p,onClick:()=>K(),type:"zoomOut",disabled:d((()=>1===x.value))},{icon:a,onClick:()=>{S.value+=90},type:"rotateRight"},{icon:r,onClick:()=>{S.value-=90},type:"rotateLeft"},{icon:b,onClick:()=>{w.x=-w.x},type:"flipX"},{icon:y,onClick:()=>{w.y=-w.y},type:"flipY"}],J=()=>{if(e.visible&&E.value){const e=M.value.offsetWidth*x.value,t=M.value.offsetHeight*x.value,{left:n,top:o}=Oz(M.value),r=S.value%180!=0;E.value=!1;const l=Nz(r?t:e,r?e:t,n,o);l&&k(q({},l))}},ee=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),P.deltaX=e.pageX-C.x,P.deltaY=e.pageY-C.y,P.originX=C.x,P.originY=C.y,E.value=!0)},te=t=>{e.visible&&E.value&&k({x:t.pageX-P.deltaX,y:t.pageY-P.deltaY})},ne=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;L.value={wheelDirection:n}},oe=t=>{e.visible&&F.value&&(t.preventDefault(),t.keyCode===sd.LEFT?N.value>0&&z(j.value[N.value-1]):t.keyCode===sd.RIGHT&&N.value{e.visible&&(1!==x.value&&(x.value=1),C.x===Kz.x&&C.y===Kz.y||k(Kz))};let le=()=>{};return i((()=>{c([()=>e.visible,E],(()=>{let e,t;le();const n=bt(window,"mouseup",J,!1),o=bt(window,"mousemove",te,!1),r=bt(window,"wheel",ne,{passive:!1}),l=bt(window,"keydown",oe,!1);try{window.top!==window.self&&(e=bt(window.top,"mouseup",J,!1),t=bt(window.top,"mousemove",te,!1))}catch(i){}le=()=>{n.remove(),o.remove(),r.remove(),l.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),c([L],(()=>{const{wheelDirection:e}=L.value;e>0?K(!0):e<0&&W(!0)}))})),s((()=>{le()})),()=>{const{visible:t,prefixCls:n,rootClassName:r}=e;return $(Rz,U(U({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:I,afterClose:_,visible:t,wrapClassName:G,rootClassName:r,getContainer:e.getContainer}),{default:()=>[$("div",{class:[`${e.prefixCls}-operations-wrapper`,r]},[$("ul",{class:`${e.prefixCls}-operations`},[Z.map((t=>{let{icon:n,onClick:o,type:r,disabled:l}=t;return $("li",{class:pe(Y,{[`${e.prefixCls}-operations-operation-disabled`]:l&&(null==l?void 0:l.value)}),onClick:o,key:r},[O(n,{class:Q})])}))])]),$("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${C.x}px, ${C.y}px, 0)`}},[$("img",{onMousedown:ee,onDblclick:re,ref:M,class:`${e.prefixCls}-img`,src:H.value,alt:e.alt,style:{transform:`scale3d(${w.x*x.value}, ${w.y*x.value}, 1) rotate(${S.value}deg)`}},null)]),F.value&&$("div",{class:pe(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:N.value<=0}),onClick:V},[h]),F.value&&$("div",{class:pe(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:N.value>=R.value-1}),onClick:X},[m])]})}}});const Gz=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Ii.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),Yz=(e,t)=>{const n=q({},e);return Object.keys(t).forEach((o=>{void 0===e[o]&&(n[o]=t[o])})),n};let Uz=0;const qz=r({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:Gz(),emits:["click","error"],setup(t,n){let{attrs:o,slots:r,emit:l}=n;const a=d((()=>t.prefixCls)),u=d((()=>`${a.value}-preview`)),p=d((()=>{const e={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof t.preview?Yz(t.preview,e):e})),v=d((()=>{var e;return null!==(e=p.value.src)&&void 0!==e?e:t.src})),h=d((()=>t.placeholder&&!0!==t.placeholder||r.placeholder)),g=d((()=>p.value.visible)),m=d((()=>p.value.getContainer)),b=d((()=>void 0!==g.value)),[y,x]=Sp(!!g.value,{value:g,onChange:(e,t)=>{var n,o;null===(o=(n=p.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),S=f(h.value?"loading":"normal");c((()=>t.src),(()=>{S.value=h.value?"loading":"normal"}));const w=f(null),C=d((()=>"error"===S.value)),k=Lz(),{isPreviewGroup:O,setCurrent:I,setShowPreview:M,setMousePosition:P,registerImage:E}=k,T=f(Uz++),A=d((()=>t.preview&&!C.value)),B=()=>{S.value="normal"},D=e=>{S.value="error",l("error",e)},z=e=>{if(!b.value){const{left:t,top:n}=Oz(e.target);O.value?(I(T.value),P({x:t,y:n})):w.value={x:t,y:n}}O.value?M(!0):x(!0),l("click",e)},R=()=>{x(!1),b.value||(w.value=null)},j=f(null);c((()=>j),(()=>{"loading"===S.value&&j.value.complete&&(j.value.naturalWidth||j.value.naturalHeight)&&B()}));let N=()=>{};i((()=>{c([v,A],(()=>{if(N(),!O.value)return()=>{};N=E(T.value,v.value,A.value),A.value||N()}),{flush:"post",immediate:!0})})),s((()=>{N()}));const H=e=>{return"number"==typeof(t=e)||kc(t)&&"[object Number]"==$s(t)?e+"px":e;var t};return()=>{const{prefixCls:n,wrapperClassName:i,fallback:a,src:s,placeholder:c,wrapperStyle:d,rootClassName:f}=t,{width:h,height:g,crossorigin:b,decoding:x,alt:k,sizes:I,srcset:M,usemap:P,class:E,style:T}=o,N=p.value,{icons:F,maskClassName:L}=N,_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{l("click",e)},style:q({width:H(h),height:H(g)},d)},[$("img",U(U(U({},V),C.value&&a?{src:a}:{onLoad:B,onError:D,src:s}),{},{ref:j}),null),"loading"===S.value&&$("div",{"aria-hidden":"true",class:`${n}-placeholder`},[c||r.placeholder&&r.placeholder()]),r.previewMask&&A.value&&$("div",{class:[`${n}-mask`,L]},[r.previewMask()])]),!O.value&&A.value&&$(Xz,U(U({},_),{},{"aria-hidden":!y.value,visible:y.value,prefixCls:u.value,onClose:R,mousePosition:w.value,src:K,alt:k,getContainer:m.value,icons:F,rootClassName:f}),null)])}}});qz.PreviewGroup=Wz;const Qz=qz;const Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function Jz(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:q(q({},wR("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:q(q({},wR("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:mm(e)}]},kR=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:q(q({},Ur(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:q({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},el(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},OR=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:q({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},IR=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},MR=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},PR=tl("Modal",(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=rl(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+2*t,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:.55*e.controlHeightLG});return[kR(r),OR(r),IR(r),CR(r),e.wireframe&&MR(r),Um(r,"zoom")]})),ER=e=>({position:e||"absolute",inset:0}),TR=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new pr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${l}-mask-info`]:q(q({},Yr),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},AR=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:l}=e,i=new pr(n).setAlpha(.1),a=i.clone().setAlpha(.2);return{[`${t}-operations`]:q(q({},Ur(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},BR=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:l,motionDurationSlow:i}=e,a=new pr(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:l+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},DR=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:q(q({},ER()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":q(q({},ER()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[AR(e),BR(e)]}]},zR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:q({},TR(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:q({},ER())}}},RR=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Um(e,"zoom"),"&":mm(e,!0)}},jR=tl("Image",(e=>{const t=`${e.componentCls}-preview`,n=rl(e,{previewCls:t,modalMaskBg:new pr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[zR(n),DR(n),CR(rl(n,{componentCls:t})),RR(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new pr(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new pr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),NR={rotateLeft:$(nR,null,null),rotateRight:$(aR,null,null),zoomIn:$(pR,null,null),zoomOut:$(mR,null,null),close:$(Dv,null,null),left:$(MP,null,null),right:$(Dx,null,null),flipX:$(SR,null,null),flipY:$(SR,{rotate:90},null)},HR=r({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:pt()},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:l}=Il("image",e),i=d((()=>`${r.value}-preview`)),[a,s]=jR(r),c=d((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return q(q({},n),{rootClassName:s.value,transitionName:Nu(l.value,"zoom",n.transitionName),maskTransitionName:Nu(l.value,"fade",n.maskTransitionName)})}));return()=>a($(Wz,U(U({},q(q({},n),e)),{},{preview:c.value,icons:NR,previewPrefixCls:i.value}),o))}}),FR=r({name:"AImage",inheritAttrs:!1,props:Gz(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:l,configProvider:i}=Il("image",e),[a,s]=jR(r),c=d((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return q(q({icons:NR},n),{transitionName:Nu(l.value,"zoom",n.transitionName),maskTransitionName:Nu(l.value,"fade",n.maskTransitionName)})}));return()=>{var t,l;const u=(null===(l=null===(t=i.locale)||void 0===t?void 0:t.value)||void 0===l?void 0:l.Image)||Nt.Image,d=()=>$("div",{class:`${r.value}-mask-info`},[$(mz,null,null),null==u?void 0:u.preview]),{previewMask:p=n.previewMask||d}=e;return a($(Qz,U(U({},q(q(q({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:pe(e.rootClassName,s.value)}),q(q({},n),{previewMask:"function"==typeof p?p:null})))}}});FR.PreviewGroup=HR,FR.install=function(e){return e.component(FR.name,FR),e.component(FR.PreviewGroup.name,FR.PreviewGroup),e};const LR=FR;const _R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function WR(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(GR()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new ej(Number.MAX_SAFE_INTEGER);if(n0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":QR(this.number):this.origin}}class tj{constructor(e){if(this.origin="",JR(e))return void(this.empty=!0);if(this.origin=String(e),"-"===e||Number.isNaN(e))return void(this.nan=!0);let t=e;if(UR(t)&&(t=Number(t)),t="string"==typeof t?t:QR(t),ZR(t)){const e=YR(t);this.negative=e.negative;const n=e.trimStr.split(".");this.integer=BigInt(n[0]);const o=n[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(t)}negate(){const e=new tj(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new tj(e);const t=new tj(e);if(t.isInvalidate())return this;const n=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=(this.alignDecimal(n)+t.alignDecimal(n)).toString(),{negativeStr:r,trimStr:l}=YR(o),i=`${r}${l.padStart(n+1,"0")}`;return new tj(`${i.slice(0,-n)}.${i.slice(-n)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(null==e?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":YR(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function nj(e){return GR()?new tj(e):new ej(e)}function oj(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";const{negativeStr:r,integerStr:l,decimalStr:i}=YR(e),a=`${t}${i}`,s=`${r}${l}`;if(n>=0){const l=Number(i[n]);if(l>=5&&!o){return oj(nj(e).add(`${r}0.${"0".repeat(n)}${10-l}`).toString(),t,n,o)}return 0===n?s:`${s}${t}${i.padEnd(n,"0").slice(0,n)}`}return".0"===a?s:`${s}${a}`}const rj=r({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:dt()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=f(),l=(e,t)=>{e.preventDefault(),o("step",t),r.value=setTimeout((function e(){o("step",t),r.value=setTimeout(e,200)}),600)},i=()=>{clearTimeout(r.value)};return b((()=>{i()})),()=>{if(Xd())return null;const{prefixCls:t,upDisabled:o,downDisabled:r}=e,a=`${t}-handler`,s=pe(a,`${a}-up`,{[`${a}-up-disabled`]:o}),c=pe(a,`${a}-down`,{[`${a}-down-disabled`]:r}),u={unselectable:"on",role:"button",onMouseup:i,onMouseleave:i},{upNode:d,downNode:p}=n;return $("div",{class:`${a}-wrap`},[$("span",U(U({},u),{},{onMousedown:e=>{l(e,!0)},"aria-label":"Increase Value","aria-disabled":o,class:s}),[(null==d?void 0:d())||$("span",{unselectable:"on",class:`${t}-handler-up-inner`},null)]),$("span",U(U({},u),{},{onMousedown:e=>{l(e,!1)},"aria-label":"Decrease Value","aria-disabled":r,class:c}),[(null==p?void 0:p())||$("span",{unselectable:"on",class:`${t}-handler-down-inner`},null)])])}}});const lj=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),ij=e=>{const t=nj(e);return t.isInvalidate()?null:t},aj=()=>({stringMode:ut(),defaultValue:ht([String,Number]),value:ht([String,Number]),prefixCls:ft(),min:ht([String,Number]),max:ht([String,Number]),step:ht([String,Number],1),tabindex:Number,controls:ut(!0),readonly:ut(),disabled:ut(),autofocus:ut(),keyboard:ut(!0),parser:dt(),formatter:dt(),precision:Number,decimalSeparator:String,onInput:dt(),onChange:dt(),onPressEnter:dt(),onStep:dt(),onBlur:dt(),onFocus:dt()}),sj=r({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:q(q({},aj()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const i=g(),a=g(!1),s=g(!1),u=g(!1),p=g(nj(e.value));const v=(t,n)=>{if(!n)return e.precision>=0?e.precision:Math.max(qR(t),qR(e.step))},h=t=>{const n=String(t);if(e.parser)return e.parser(n);let o=n;return e.decimalSeparator&&(o=o.replace(e.decimalSeparator,".")),o.replace(/[^\w.-]+/g,"")},m=g(""),y=(t,n)=>{if(e.formatter)return e.formatter(t,{userTyping:n,input:String(m.value)});let o="number"==typeof t?QR(t):t;if(!n){const t=v(o,n);if(ZR(o)&&(e.decimalSeparator||t>=0)){o=oj(o,e.decimalSeparator||".",t)}}return o},x=(()=>{const t=e.value;return p.value.isInvalidate()&&["string","number"].includes(typeof t)?Number.isNaN(t)?"":t:y(p.value.toString(),!1)})();function S(e,t){m.value=y(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}m.value=x;const w=d((()=>ij(e.max))),C=d((()=>ij(e.min))),k=d((()=>!(!w.value||!p.value||p.value.isInvalidate())&&w.value.lessEquals(p.value))),O=d((()=>!(!C.value||!p.value||p.value.isInvalidate())&&p.value.lessEquals(C.value))),[I,M]=function(e,t){const n=f(null);return[function(){try{const{selectionStart:t,selectionEnd:o,value:r}=e.value,l=r.substring(0,t),i=r.substring(o);n.value={start:t,end:o,value:r,beforeTxt:l,afterTxt:i}}catch(QS){}},function(){if(e.value&&n.value&&t.value)try{const{value:t}=e.value,{beforeTxt:o,afterTxt:r,start:l}=n.value;let i=t.length;if(t.endsWith(r))i=t.length-n.value.afterTxt.length;else if(t.startsWith(o))i=o.length;else{const e=o[l-1],n=t.indexOf(e,l-1);-1!==n&&(i=n+1)}e.value.setSelectionRange(i,i)}catch(QS){QS.message}}]}(i,a),P=e=>w.value&&!e.lessEquals(w.value)?w.value:C.value&&!C.value.lessEquals(e)?C.value:null,E=e=>!P(e),T=(t,n)=>{var o;let r=t,l=E(r)||r.isEmpty();if(r.isEmpty()||n||(r=P(r)||r,l=!0),!e.readonly&&!e.disabled&&l){const t=r.toString(),l=v(t,n);return l>=0&&(r=nj(oj(t,".",l))),r.equals(p.value)||(i=r,void 0===e.value&&(p.value=i),null===(o=e.onChange)||void 0===o||o.call(e,r.isEmpty()?null:lj(e.stringMode,r)),void 0===e.value&&S(r,n)),r}var i;return p.value},A=(()=>{const e=g(0),t=()=>{rt.cancel(e.value)};return b((()=>{t()})),n=>{t(),e.value=rt((()=>{n()}))}})(),B=t=>{var n;if(I(),m.value=t,!u.value){const e=nj(h(t));e.isNaN()||T(e,!0)}null===(n=e.onInput)||void 0===n||n.call(e,t),A((()=>{let n=t;e.parser||(n=t.replace(/。/g,".")),n!==t&&B(n)}))},D=()=>{u.value=!0},z=()=>{u.value=!1,B(i.value.value)},R=e=>{B(e.target.value)},j=t=>{var n,o;if(t&&k.value||!t&&O.value)return;s.value=!1;let r=nj(e.step);t||(r=r.negate());const l=(p.value||nj(0)).add(r.toString()),a=T(l,!1);null===(n=e.onStep)||void 0===n||n.call(e,lj(e.stringMode,a),{offset:e.step,type:t?"up":"down"}),null===(o=i.value)||void 0===o||o.focus()},N=t=>{const n=nj(h(m.value));let o=n;o=n.isNaN()?p.value:T(n,t),void 0!==e.value?S(p.value,!1):o.isNaN()||S(o,!1)},H=t=>{var n;const{which:o}=t;s.value=!0,o===sd.ENTER&&(u.value||(s.value=!1),N(!1),null===(n=e.onPressEnter)||void 0===n||n.call(e,t)),!1!==e.keyboard&&!u.value&&[sd.UP,sd.DOWN].includes(o)&&(j(sd.UP===o),t.preventDefault())},F=()=>{s.value=!1},L=e=>{N(!1),a.value=!1,s.value=!1,r("blur",e)};return c((()=>e.precision),(()=>{p.value.isInvalidate()||S(p.value,!1)}),{flush:"post"}),c((()=>e.value),(()=>{const t=nj(e.value);p.value=t;const n=nj(h(m.value));t.equals(n)&&s.value&&!e.formatter||S(t,s.value)}),{flush:"post"}),c(m,(()=>{e.formatter&&M()}),{flush:"post"}),c((()=>e.disabled),(e=>{e&&(a.value=!1)})),l({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=i.value)||void 0===e||e.blur()}}),()=>{const t=q(q({},n),e),{prefixCls:l="rc-input-number",min:s,max:c,step:u=1,defaultValue:d,value:v,disabled:f,readonly:h,keyboard:g,controls:b=!0,autofocus:y,stringMode:x,parser:S,formatter:w,precision:C,decimalSeparator:I,onChange:M,onInput:P,onPressEnter:T,onStep:A,lazy:B,class:N,style:_}=t,W=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{a.value=!0,r("focus",e)}},G),{},{onBlur:L,onCompositionstart:D,onCompositionend:z}),null)])])}}});function cj(e){return null!=e}const uj=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:l,fontSizeLG:i,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:p,colorPrimary:v,controlHeight:f,inputPaddingHorizontal:h,colorBgContainer:g,colorTextDisabled:m,borderRadiusSM:b,borderRadiusLG:y,controlWidth:$,handleVisible:x}=e;return[{[t]:q(q(q(q({},Ur(e)),jk(e)),Rk(e,t)),{display:"inline-block",width:$,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:l,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:y,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":q({},Tk(e)),"&-focused":q({},Ak(e)),"&-disabled":q(q({},Bk(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":q(q(q({},Ur(e)),Nk(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:b}}}}),[t]:{"&-input":q(q({width:"100%",height:f-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:l,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},Ek(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:g,borderStartStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l,borderEndStartRadius:0,opacity:!0===x?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:v}},"&-up-inner, &-down-inner":q(q({},qr()),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:l},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:l},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:m}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},dj=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:l,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:q(q(q({},jk(e)),Rk(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:q(q({},Tk(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},pj=tl("InputNumber",(e=>{const t=Kk(e);return[uj(t),dj(t),ab(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"})));const vj=aj(),fj=r({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:q(q({},vj),{size:ft(),bordered:ut(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Ii.any,addonAfter:Ii.any,prefix:Ii.any,"onUpdate:value":vj.onChange,valueModifiers:Object,status:ft()}),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:l}=t;const i=Qv(),a=Jv.useInject(),s=d((()=>nf(a.status,e.status))),{prefixCls:u,size:p,direction:v,disabled:f}=Il("input-number",e),{compactSize:h,compactItemClassnames:m}=sm(u,v),b=At(),y=d((()=>{var e;return null!==(e=f.value)&&void 0!==e?e:b.value})),[x,S]=pj(u),w=d((()=>h.value||p.value)),C=g(void 0===e.value?e.defaultValue:e.value),k=g(!1);c((()=>e.value),(()=>{C.value=e.value}));const O=g(null),I=()=>{var e;null===(e=O.value)||void 0===e||e.focus()};o({focus:I,blur:()=>{var e;null===(e=O.value)||void 0===e||e.blur()}});const M=t=>{void 0===e.value&&(C.value=t),n("update:value",t),n("change",t),i.onFieldChange()},P=e=>{k.value=!1,n("blur",e),i.onFieldBlur()},E=e=>{k.value=!0,n("focus",e)};return()=>{var t,n,o,c;const{hasFeedback:d,isFormItemInput:p,feedbackIcon:f}=a,h=null!==(t=e.id)&&void 0!==t?t:i.id.value,g=q(q(q({},r),e),{id:h,disabled:y.value}),{class:b,bordered:T,readonly:A,style:B,addonBefore:D=(null===(n=l.addonBefore)||void 0===n?void 0:n.call(l)),addonAfter:z=(null===(o=l.addonAfter)||void 0===o?void 0:o.call(l)),prefix:R=(null===(c=l.prefix)||void 0===c?void 0:c.call(l)),valueModifiers:j={}}=g,N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$("span",{class:`${H}-handler-up-inner`},[l.upIcon()]):()=>$(XR,{class:`${H}-handler-up-inner`},null),downHandler:l.downIcon?()=>$("span",{class:`${H}-handler-down-inner`},[l.downIcon()]):()=>$(yv,{class:`${H}-handler-down-inner`},null)});const _=cj(D)||cj(z),W=cj(R);if(W||d){const e=pe(`${H}-affix-wrapper`,tf(`${H}-affix-wrapper`,s.value,d),{[`${H}-affix-wrapper-focused`]:k.value,[`${H}-affix-wrapper-disabled`]:y.value,[`${H}-affix-wrapper-sm`]:"small"===w.value,[`${H}-affix-wrapper-lg`]:"large"===w.value,[`${H}-affix-wrapper-rtl`]:"rtl"===v.value,[`${H}-affix-wrapper-readonly`]:A,[`${H}-affix-wrapper-borderless`]:!T,[`${b}`]:!_&&b},S.value);L=$("div",{class:e,style:B,onClick:I},[W&&$("span",{class:`${H}-prefix`},[R]),L,d&&$("span",{class:`${H}-suffix`},[f])])}if(_){const e=`${H}-group`,t=`${e}-addon`,n=D?$("div",{class:t},[D]):null,o=z?$("div",{class:t},[z]):null,r=pe(`${H}-wrapper`,e,{[`${e}-rtl`]:"rtl"===v.value},S.value),l=pe(`${H}-group-wrapper`,{[`${H}-group-wrapper-sm`]:"small"===w.value,[`${H}-group-wrapper-lg`]:"large"===w.value,[`${H}-group-wrapper-rtl`]:"rtl"===v.value},tf(`${u}-group-wrapper`,s.value,d),b,S.value);L=$("div",{class:l,style:B},[$("div",{class:r},[n&&$(cm,null,{default:()=>[$(ef,null,{default:()=>[n]})]}),L,o&&$(cm,null,{default:()=>[$(ef,null,{default:()=>[o]})]})])])}return x(Ja(L,{style:B}))}}}),hj=q(fj,{install:e=>(e.component(fj.name,fj),e)}),gj=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},mj=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:l,colorBgBody:i,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:p,layoutZeroTriggerSize:v,motionDurationMid:f,motionDurationSlow:h,fontSize:g,borderRadius:m}=e;return{[n]:q(q({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:i,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:l,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:g,background:i},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:l,transition:`all ${f}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:r,lineHeight:`${p}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${f}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-v,zIndex:1,width:v,height:v,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:l,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-v,borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}}}},gj(e)),{"&-rtl":{direction:"rtl"}})}},bj=tl("Layout",(e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:l}=e,i=1.25*r,a=rl(e,{layoutHeaderHeight:2*o,layoutHeaderPaddingInline:i,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${i}px`,layoutTriggerHeight:r+2*l,layoutZeroTriggerSize:r});return[mj(a)]}),(e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}})),yj=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function $j(e){let{suffixCls:t,tagName:n,name:o}=e;return e=>r({compatConfig:{MODE:3},name:o,props:yj(),setup(o,r){let{slots:l}=r;const{prefixCls:i}=Il(t,o);return()=>{const t=q(q({},o),{prefixCls:i.value,tagName:n});return $(e,t,l)}}})}const xj=r({compatConfig:{MODE:3},props:yj(),setup(e,t){let{slots:n}=t;return()=>$(e.tagName,{class:e.prefixCls},n)}}),Sj=r({compatConfig:{MODE:3},inheritAttrs:!1,props:yj(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("",e),[i,a]=bj(r),s=f([]);v(Zx,{addSider:e=>{s.value=[...s.value,e]},removeSider:e=>{s.value=s.value.filter((t=>t!==e))}});const c=d((()=>{const{prefixCls:t,hasSider:n}=e;return{[a.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:"boolean"==typeof n?n:s.value.length>0,[`${t}-rtl`]:"rtl"===l.value}}));return()=>{const{tagName:t}=e;return i($(t,q(q({},o),{class:[c.value,o.class]}),n))}}}),wj=$j({suffixCls:"layout",tagName:"section",name:"ALayout"})(Sj),Cj=$j({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(xj),kj=$j({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(xj),Oj=$j({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(xj),Ij=wj;const Mj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Pj(e){for(var t=1;t{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),zj=r({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Re({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:Ii.any,width:Ii.oneOfType([Ii.number,Ii.string]),collapsedWidth:Ii.oneOfType([Ii.number,Ii.string]),breakpoint:Ii.oneOf(it("xs","sm","md","lg","xl","xxl","xxxl")),theme:Ii.oneOf(it("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function},{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:l}=Il("layout-sider",e),a=p(Zx,void 0),s=g(!!(void 0!==e.collapsed?e.collapsed:e.defaultCollapsed)),u=g(!1);c((()=>e.collapsed),(()=>{s.value=!!e.collapsed})),v(Qx,s);const d=(t,o)=>{void 0===e.collapsed&&(s.value=t),n("update:collapsed",t),n("collapse",t,o)},f=g((e=>{u.value=e.matches,n("breakpoint",e.matches),s.value!==e.matches&&d(e.matches,"responsive")}));let h;function m(e){return f.value(e)}const y=Dj("ant-sider-");a&&a.addSider(y),i((()=>{c((()=>e.breakpoint),(()=>{try{null==h||h.removeEventListener("change",m)}catch(t){null==h||h.removeListener(m)}if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&e.breakpoint&&e.breakpoint in Bj){h=n(`(max-width: ${Bj[e.breakpoint]})`);try{h.addEventListener("change",m)}catch(t){h.addListener(m)}m(h)}}}),{immediate:!0})})),b((()=>{try{null==h||h.removeEventListener("change",m)}catch(e){null==h||h.removeListener(m)}a&&a.removeSider(y)}));const x=()=>{d(!s.value,"clickTrigger")};return()=>{var t,n;const i=l.value,{collapsedWidth:a,width:c,reverseArrow:d,zeroWidthTriggerStyle:p,trigger:v=(null===(t=r.trigger)||void 0===t?void 0:t.call(r)),collapsible:f,theme:h}=e,g=s.value?a:c,m=$$(g)?`${g}px`:String(g),b=0===parseFloat(String(a||0))?$("span",{onClick:x,class:pe(`${i}-zero-width-trigger`,`${i}-zero-width-trigger-${d?"right":"left"}`),style:p},[v||$(Aj,null,null)]):null,y={expanded:$(d?Dx:MP,null,null),collapsed:$(d?MP:Dx,null,null)},S=s.value?"collapsed":"expanded",w=null!==v?b||$("div",{class:`${i}-trigger`,onClick:x,style:{width:m}},[v||y[S]]):null,C=[o.style,{flex:`0 0 ${m}`,maxWidth:m,minWidth:m,width:m}],k=pe(i,`${i}-${h}`,{[`${i}-collapsed`]:!!s.value,[`${i}-has-trigger`]:f&&null!==v&&!b,[`${i}-below`]:!!u.value,[`${i}-zero-width`]:0===parseFloat(m)},o.class);return $("aside",U(U({},o),{},{class:k,style:C}),[$("div",{class:`${i}-children`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),f||u.value&&b?w:null])}}}),Rj=Cj,jj=kj,Nj=zj,Hj=Oj,Fj=q(Ij,{Header:Cj,Footer:kj,Content:Oj,Sider:zj,install:e=>(e.component(Ij.name,Ij),e.component(Cj.name,Cj),e.component(kj.name,kj),e.component(zj.name,zj),e.component(Oj.name,Oj),e)});function Lj(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},l=r.noTrailing,i=void 0!==l&&l,a=r.noLeading,s=void 0!==a&&a,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function v(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,r=new Array(n),l=0;le?s?(p=Date.now(),i||(o=setTimeout(u?h:f,e))):f():!0!==i&&(o=setTimeout(u?h:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;v(),d=!n},f}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const _j=new Fo("antSpinMove",{to:{opacity:1}}),Wj=new Fo("antRotate",{to:{transform:"rotate(405deg)"}}),Kj=e=>({[`${e.componentCls}`]:q(q({},Ur(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:_j,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Wj,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Vj=tl("Spin",(e=>{const t=rl(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[Kj(t)]}),{contentHeight:400});let Xj=null;const Gj=r({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Re({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Ii.any,delay:Number,indicator:Ii.any},{size:"default",spinning:!0,wrapperClassName:""}),setup(e,n){let{attrs:o,slots:r}=n;const{prefixCls:l,size:i,direction:a}=Il("spin",e),[s,u]=Vj(l),d=g(e.spinning&&(p=e.spinning,v=e.delay,!(p&&v&&!isNaN(Number(v)))));var p,v;let f;return c([()=>e.spinning,()=>e.delay],(()=>{null==f||f.cancel(),f=Lj(e.delay,(()=>{d.value=e.spinning})),null==f||f()}),{immediate:!0,flush:"post"}),b((()=>{null==f||f.cancel()})),()=>{var n,c;const{class:p}=o,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$(t,null,null)},Gj.install=function(e){return e.component(Gj.name,Gj),e};const Yj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function Uj(e){for(var t=1;t{const t=q(q(q({},e),{size:"small"}),n);return $(yb,t,o)}}}),lN=r({name:"MiddleSelect",inheritAttrs:!1,props:fb(),Option:yb.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=q(q(q({},e),{size:"middle"}),n);return $(yb,t,o)}}}),iN=r({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Ii.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},l=t=>{n("keypress",t,r,e.page)};return()=>{const{showTitle:t,page:n,itemRender:i}=e,{class:a,style:s}=o,c=`${e.rootPrefixCls}-item`,u=pe(c,`${c}-${e.page}`,{[`${c}-active`]:e.active,[`${c}-disabled`]:!e.page},a);return $("li",{onClick:r,onKeypress:l,title:t?String(n):null,tabindex:"0",class:u,style:s},[i({page:n,type:"page",originalElement:$("a",{rel:"nofollow"},[n])})])}}}),aN=13,sN=38,cN=40,uN=r({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Ii.any,current:Number,pageSizeOptions:Ii.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:Ii.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Ii.any},setup(e){const t=f(""),n=d((()=>!t.value||isNaN(t.value)?void 0:Number(t.value))),o=t=>`${t.value} ${e.locale.items_per_page}`,r=e=>{const{value:n,composing:o}=e.target;e.isComposing||o||t.value===n||(t.value=n)},l=o=>{const{goButton:r,quickGo:l,rootPrefixCls:i}=e;r||""===t.value||(o.relatedTarget&&(o.relatedTarget.className.indexOf(`${i}-item-link`)>=0||o.relatedTarget.className.indexOf(`${i}-item`)>=0)||l(n.value),t.value="")},i=o=>{""!==t.value&&(o.keyCode!==aN&&"click"!==o.type||(e.quickGo(n.value),t.value=""))},a=d((()=>{const{pageSize:t,pageSizeOptions:n}=e;return n.some((e=>e.toString()===t.toString()))?n:n.concat([t.toString()]).sort(((e,t)=>(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))))}));return()=>{const{rootPrefixCls:n,locale:s,changeSize:c,quickGo:u,goButton:d,selectComponentClass:p,selectPrefixCls:v,pageSize:f,disabled:h}=e,g=`${n}-options`;let m=null,b=null,y=null;if(!c&&!u)return null;if(c&&p){const t=e.buildOptionText||o,n=a.value.map(((e,n)=>$(p.Option,{key:n,value:e},{default:()=>[t({value:e})]})));m=$(p,{disabled:h,prefixCls:v,showSearch:!1,class:`${g}-size-changer`,optionLabelProp:"children",value:(f||a.value[0]).toString(),onChange:e=>c(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return u&&(d&&(y="boolean"==typeof d?$("button",{type:"button",onClick:i,onKeyup:i,disabled:h,class:`${g}-quick-jumper-button`},[s.jump_to_confirm]):$("span",{onClick:i,onKeyup:i},[d])),b=$("div",{class:`${g}-quick-jumper`},[s.jump_to,w($("input",{disabled:h,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:i,onBlur:l},null),[[fd]]),s.page,y])),$("li",{class:`${g}`},[m,b])}}});function dN(e,t,n){const o=void 0===e?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const pN=r({compatConfig:{MODE:3},name:"Pagination",mixins:[Wu],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Ii.string.def("rc-pagination"),selectPrefixCls:Ii.string.def("rc-select"),current:Number,defaultCurrent:Ii.number.def(1),total:Ii.number.def(0),pageSize:Number,defaultPageSize:Ii.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Ii.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Ii.oneOfType([Ii.looseBool,Ii.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Ii.arrayOf(Ii.oneOfType([Ii.number,Ii.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Ii.object.def({items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}),itemRender:Ii.func.def((function(e){let{originalElement:t}=e;return t})),prevIcon:Ii.any,nextIcon:Ii.any,jumpPrevIcon:Ii.any,jumpNextIcon:Ii.any,totalBoundaryShowSizeChanger:Ii.number.def(50)},data(){const e=this.$props;let t=Wy([this.current,this.defaultCurrent]);const n=Wy([this.pageSize,this.defaultPageSize]);return t=Math.min(t,dN(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=dN(e,this.$data,this.$props);n=n>o?o:n,Ne(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick((()=>{if(this.$refs.paginationNode){const e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}}))},total(){const e={},t=dN(this.pageSize,this.$data,this.$props);if(Ne(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=0===n&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(dN(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return Ke(this,e,this.$props)||$("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=dN(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return r=""===t?t:isNaN(Number(t))?o:t>=n?n:Number(t),r},isValid(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==this.stateCurrent;var t},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return!(n<=t)&&e},handleKeyDown(e){e.keyCode!==sN&&e.keyCode!==cN||e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===aN?this.handleChange(t):e.keyCode===sN?this.handleChange(t-1):e.keyCode===cN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=dN(e,this.$data,this.$props);t=t>o?o:t,0===o&&(t=this.stateCurrent),"number"==typeof e&&(Ne(this,"pageSize")||this.setState({statePageSize:e}),Ne(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const e=dN(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),Ne(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?m-1:0,z=m+1=2*A&&3!==m&&(k[0]=$(iN,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:o,page:o,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),k.unshift(O)),C-m>=2*A&&m!==C-2&&(k[k.length-1]=$(iN,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:l,page:l,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),k.push(I)),1!==o&&k.unshift(M),l!==C&&k.push(P)}let N=null;s&&(N=$("li",{class:`${e}-total-text`},[s(o,[0===o?0:(m-1)*b+1,m*b>o?o:m*b])]));const H=!R||!C,F=!j||!C,L=this.buildOptionText||this.$slots.buildOptionText;return $("ul",U(U({unselectable:"on",ref:"paginationNode"},S),{},{class:pe({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[N,$("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:H?null:0,onKeypress:this.runIfEnterPrev,class:pe(`${e}-prev`,{[`${e}-disabled`]:H}),"aria-disabled":H},[this.renderPrev(D)]),k,$("li",{title:a?r.next_page:null,onClick:this.next,tabindex:F?null:0,onKeypress:this.runIfEnterNext,class:pe(`${e}-next`,{[`${e}-disabled`]:F}),"aria-disabled":F},[this.renderNext(z)]),$(uN,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:f,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:m,pageSize:b,pageSizeOptions:g,buildOptionText:L||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:T},null)])}}),vN=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`\n &:hover ${t}-item:not(${t}-item-active),\n &:active ${t}-item:not(${t}-item-active),\n &:hover ${t}-item-link,\n &:active ${t}-item-link\n `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fN=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:q(q({},zk(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},hN=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},gN=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":q({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Jr(e))},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:q({},Jr(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:q(q({},jk(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},mN=e=>{const{componentCls:t}=e;return{[`${t}-item`]:q(q({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},el(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},bN=e=>{const{componentCls:t}=e;return{[t]:q(q(q(q(q(q(q(q({},Ur(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"}}),mN(e)),gN(e)),hN(e)),fN(e)),vN(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},yN=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},$N=tl("Pagination",(e=>{const t=rl(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Kk(e));return[bN(t),e.wireframe&&yN(t)]}));const xN=r({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:{total:Number,defaultCurrent:Number,disabled:ut(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:ut(),showSizeChanger:ut(),pageSizeOptions:vt(),buildOptionText:dt(),showQuickJumper:ht([Boolean,Object]),showTotal:dt(),size:ft(),simple:ut(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:dt(),role:String,responsive:Boolean,showLessItems:ut(),onChange:dt(),onShowSizeChange:dt(),"onUpdate:current":dt(),"onUpdate:pageSize":dt()},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:l,direction:i,size:a}=Il("pagination",e),[s,c]=$N(r),u=d((()=>l.getPrefixCls("select",e.selectPrefixCls))),p=wy(),[v]=Ft("Pagination",Dt,M(e,"locale"));return()=>{var t;const{itemRender:l=n.itemRender,buildOptionText:d=n.buildOptionText,selectComponentClass:f,responsive:h}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const t=$("span",{class:`${e}-item-ellipsis`},[B("•••")]);return{prevIcon:$("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===i.value?$(Dx,null,null):$(MP,null,null)]),nextIcon:$("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===i.value?$(MP,null,null):$(Dx,null,null)]),jumpPrevIcon:$("a",{rel:"nofollow",class:`${e}-item-link`},[$("div",{class:`${e}-item-container`},["rtl"===i.value?$(oN,{class:`${e}-item-link-icon`},null):$(Zj,{class:`${e}-item-link-icon`},null),t])]),jumpNextIcon:$("a",{rel:"nofollow",class:`${e}-item-link`},[$("div",{class:`${e}-item-container`},["rtl"===i.value?$(Zj,{class:`${e}-item-link-icon`},null):$(oN,{class:`${e}-item-link-icon`},null),t])])}})(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:f||(m?rN:lN),locale:v.value,buildOptionText:d}),o),{class:pe({[`${r.value}-mini`]:m,[`${r.value}-rtl`]:"rtl"===i.value},o.class,c.value),itemRender:l});return s($(pN,b,null))}}}),SN=at(xN),wN=r({compatConfig:{MODE:3},name:"AListItemMeta",props:{avatar:Ii.any,description:Ii.any,prefixCls:String,title:Ii.any},displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Il("list",e);return()=>{var t,r,l,i,a,s;const c=`${o.value}-item-meta`,u=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),d=null!==(l=e.description)&&void 0!==l?l:null===(i=n.description)||void 0===i?void 0:i.call(n),p=null!==(a=e.avatar)&&void 0!==a?a:null===(s=n.avatar)||void 0===s?void 0:s.call(n),v=$("div",{class:`${o.value}-item-meta-content`},[u&&$("h4",{class:`${o.value}-item-meta-title`},[u]),d&&$("div",{class:`${o.value}-item-meta-description`},[d])]);return $("div",{class:c},[p&&$("div",{class:`${o.value}-item-meta-avatar`},[p]),(u||d)&&v])}}}),CN=Symbol("ListContextKey");const kN=r({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:wN,props:{prefixCls:String,extra:Ii.any,actions:Ii.array,grid:Object,colStyle:{type:Object,default:void 0}},slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{itemLayout:l,grid:i}=p(CN,{grid:f(),itemLayout:f()}),{prefixCls:a}=Il("list",e),s=()=>{var e;const t=(null===(e=n.default)||void 0===e?void 0:e.call(n))||[];let r;return t.forEach((e=>{var t;(t=e)&&t.type===o&&!Ge(e)&&(r=!0)})),r&&t.length>1},c=()=>{var t,o;const r=null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n);return"vertical"===l.value?!!r:!s()};return()=>{var t,o,s,u,d;const{class:p}=r,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&$("ul",{class:`${f}-item-action`,key:"actions"},[m.map(((e,t)=>$("li",{key:`${f}-item-action-${t}`},[e,t!==m.length-1&&$("em",{class:`${f}-item-action-split`},null)])))]),y=i.value?"div":"li",x=$(y,U(U({},v),{},{class:pe(`${f}-item`,{[`${f}-item-no-flex`]:!c()},p)}),{default:()=>["vertical"===l.value&&h?[$("div",{class:`${f}-item-main`,key:"content"},[g,b]),$("div",{class:`${f}-item-extra`,key:"extra"},[h])]:[g,b,Ja(h,{key:"extra"})]]});return i.value?$(DE,{flex:1,style:e.colStyle},{default:()=>[x]}):x}}}),ON=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:l,listItemPaddingSM:i,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${l}px ${o}px`}}}},IN=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:l,margin:i}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},MN=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:l,marginLG:i,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:p,margin:v,colorText:f,colorTextDescription:h,motionDurationSlow:g,lineWidth:m}=e;return{[`${t}`]:q(q({},Ur(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:i,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:f,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:f},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:`all ${g}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${p}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:m,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:v,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:l,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},PN=tl("List",(e=>{const t=rl(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[MN(t),ON(t),IN(t)]}),{contentWidth:220}),EN=r({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:kN,props:Re({bordered:ut(),dataSource:vt(),extra:{validator:()=>!0},grid:ct(),itemLayout:String,loading:ht([Boolean,Object]),loadMore:{validator:()=>!0},pagination:ht([Boolean,Object]),prefixCls:String,rowKey:ht([String,Number,Function]),renderItem:dt(),size:String,split:ut(),header:{validator:()=>!0},footer:{validator:()=>!0},locale:ct()},{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,l;v(CN,{grid:M(e,"grid"),itemLayout:M(e,"itemLayout")});const i={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:u}=Il("list",e),[p,h]=PN(a),g=d((()=>e.pagination&&"object"==typeof e.pagination?e.pagination:{})),m=f(null!==(r=g.value.defaultCurrent)&&void 0!==r?r:1),b=f(null!==(l=g.value.defaultPageSize)&&void 0!==l?l:10);c(g,(()=>{"current"in g.value&&(m.value=g.value.current),"pageSize"in g.value&&(b.value=g.value.pageSize)}));const y=[],x=e=>(t,n)=>{m.value=t,b.value=n,g.value[e]&&g.value[e](t,n)},S=x("onChange"),w=x("onShowSizeChange"),C=d((()=>"boolean"==typeof e.loading?{spinning:e.loading}:e.loading)),k=d((()=>C.value&&C.value.spinning)),O=d((()=>{let t="";switch(e.size){case"large":t="lg";break;case"small":t="sm"}return t})),I=d((()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:"vertical"===e.itemLayout,[`${a.value}-${O.value}`]:O.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:k.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:"rtl"===s.value}))),P=d((()=>{const t=q(q(q({},i),{total:e.dataSource.length,current:m.value,pageSize:b.value}),e.pagination||{}),n=Math.ceil(t.total/t.pageSize);return t.current>n&&(t.current=n),t})),E=d((()=>{let t=[...e.dataSource];return e.pagination&&e.dataSource.length>(P.value.current-1)*P.value.pageSize&&(t=[...e.dataSource].splice((P.value.current-1)*P.value.pageSize,P.value.pageSize)),t})),T=wy(),A=Cy((()=>{for(let e=0;e<$y.length;e+=1){const t=$y[e];if(T.value[t])return t}})),B=d((()=>{if(!e.grid)return;const t=A.value&&e.grid[A.value]?e.grid[A.value]:e.grid.column;return t?{width:100/t+"%",maxWidth:100/t+"%"}:void 0}));return()=>{var t,r,l,i,s,c,d,v;const f=null!==(t=e.loadMore)&&void 0!==t?t:null===(r=n.loadMore)||void 0===r?void 0:r.call(n),g=null!==(l=e.footer)&&void 0!==l?l:null===(i=n.footer)||void 0===i?void 0:i.call(n),m=null!==(s=e.header)&&void 0!==s?s:null===(c=n.header)||void 0===c?void 0:c.call(n),b=Fe(null===(d=n.default)||void 0===d?void 0:d.call(n)),x=!!(f||e.pagination||g),O=pe(q(q({},I.value),{[`${a.value}-something-after-last-item`]:x}),o.class,h.value),M=e.pagination?$("div",{class:`${a.value}-pagination`},[$(SN,U(U({},P.value),{},{onChange:S,onShowSizeChange:w}),null)]):null;let T=k.value&&$("div",{style:{minHeight:"53px"}},null);if(E.value.length>0){y.length=0;const t=E.value.map(((t,o)=>((t,o)=>{var r;const l=null!==(r=e.renderItem)&&void 0!==r?r:n.renderItem;if(!l)return null;let i;const a=typeof e.rowKey;return i="function"===a?e.rowKey(t):"string"===a||"number"===a?t[e.rowKey]:t.key,i||(i=`list-item-${o}`),y[o]=i,l({item:t,index:o})})(t,o))),o=t.map(((e,t)=>$("div",{key:y[t],style:B.value},[e])));T=e.grid?$(FP,{gutter:e.grid.gutter},{default:()=>[o]}):$("ul",{class:`${a.value}-items`},[t])}else b.length||k.value||(T=$("div",{class:`${a.value}-empty-text`},[(null===(v=e.locale)||void 0===v?void 0:v.emptyText)||u("List")]));const A=P.value.position||"bottom";return p($("div",U(U({},o),{},{class:O}),[("top"===A||"both"===A)&&M,m&&$("div",{class:`${a.value}-header`},[m]),$(Gj,C.value,{default:()=>[T,b]}),g&&$("div",{class:`${a.value}-footer`},[g]),f||("bottom"===A||"both"===A)&&M]))}}});EN.install=function(e){return e.component(EN.name,EN),e.component(EN.Item.name,EN.Item),e.component(EN.Item.Meta.name,EN.Item.Meta),e};const TN=EN;function AN(e){return(e||"").toLowerCase()}function BN(e,t){const{measureLocation:n,prefix:o,targetText:r,selectionStart:l,split:i}=t;let a=e.slice(0,n);a[a.length-i.length]===i&&(a=a.slice(0,a.length-i.length)),a&&(a=`${a}${i}`);let s=function(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const l=t.length;for(let i=0;i[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:l,onFocus:i=RN,loading:a}=p(zN,{activeIndex:g(),loading:g(!1)});let s;const c=e=>{clearTimeout(s),s=setTimeout((()=>{i(e)}))};return b((()=>{clearTimeout(s)})),()=>{var t;const{prefixCls:i,options:s}=e,u=s[o.value]||{};return $(NS,{prefixCls:`${i}-menu`,activeKey:u.value,onSelect:e=>{let{key:t}=e;const n=s.find((e=>{let{value:n}=e;return n===t}));l(n)},onMousedown:c},{default:()=>[!a.value&&s.map(((e,t)=>{var o,l;const{value:i,disabled:a,label:s=e.value,class:c,style:u}=e;return $(sS,{key:i,disabled:a,onMouseenter:()=>{r(t)},class:c,style:u},{default:()=>[null!==(l=null===(o=n.option)||void 0===o?void 0:o.call(n,e))&&void 0!==l?l:"function"==typeof s?s(e):s]})})),a.value||0!==s.length?null:$(sS,{key:"notFoundContent",disabled:!0},{default:()=>[null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n)]}),a.value&&$(sS,{key:"loading",disabled:!0},{default:()=>[$(Gj,{size:"small"},null)]})]})}}}),NN={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},HN=r({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:t}=e;return $(jN,{prefixCls:o(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},l=d((()=>{const{placement:t,direction:n}=e;let o="topRight";return o="rtl"===n?"top"===t?"topLeft":"bottomLeft":"top"===t?"topRight":"bottomRight",o}));return()=>{const{visible:t,transitionName:i,getPopupContainer:a}=e;return $(rd,{prefixCls:o(),popupVisible:t,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:l.value,popupTransitionName:i,builtinPlacements:NN,getPopupContainer:a},{default:n.default})}}}),FN=it("top","bottom"),LN={autofocus:{type:Boolean,default:void 0},prefix:Ii.oneOfType([Ii.string,Ii.arrayOf(Ii.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:Ii.oneOf(FN),character:Ii.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:vt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},_N=q(q({},LN),{dropdownClassName:String}),WN={prefix:"@",split:" ",rows:1,validateSearch:function(e,t){const{split:n}=t;return!n||-1===e.indexOf(n)},filterOption:()=>DN};Re(_N,WN);var KN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{p.value=e.value}));const h=e=>{n("change",e)},g=e=>{let{target:{value:t,composing:n},isComposing:o}=e;o||n||h(t)},b=e=>{q(p,{measuring:!1,measureLocation:0,measureText:null}),null==e||e()},y=e=>{const{which:t}=e;if(p.measuring)if(t===sd.UP||t===sd.DOWN){const n=A.value.length,o=t===sd.UP?-1:1,r=(p.activeIndex+o+n)%n;p.activeIndex=r,e.preventDefault()}else if(t===sd.ESC)b();else if(t===sd.ENTER){if(e.preventDefault(),!A.value.length)return void b();const t=A.value[p.activeIndex];E(t)}},x=t=>{const{key:o,which:r}=t,{measureText:l,measuring:i}=p,{prefix:a,validateSearch:s}=e,c=t.target;if(c.composing)return;const u=function(e){const{selectionStart:t}=e;return e.value.slice(0,t)}(c),{location:d,prefix:v}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce(((t,n)=>{const o=e.lastIndexOf(n);return o>t.location?{location:o,prefix:n}:t}),{location:-1,prefix:""})}(u,a);if(-1===[sd.ESC,sd.UP,sd.DOWN,sd.ENTER].indexOf(r))if(-1!==d){const t=u.slice(d+v.length),r=s(t,e),a=!!T(t).length;r?(o===v||"Shift"===o||i||t!==l&&a)&&((e,t,n)=>{q(p,{measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})})(t,v,d):i&&b(),r&&n("search",t,v)}else i&&b()},C=e=>{p.measuring||n("pressenter",e)},k=e=>{I(e)},O=e=>{P(e)},I=e=>{clearTimeout(u.value);const{isFocus:t}=p;!t&&e&&n("focus",e),p.isFocus=!0},P=e=>{u.value=setTimeout((()=>{p.isFocus=!1,b(),n("blur",e)}),100)},E=t=>{const{split:o}=e,{value:r=""}=t,{text:l,selectionLocation:i}=BN(p.value,{measureLocation:p.measureLocation,targetText:r,prefix:p.measurePrefix,selectionStart:c.value.selectionStart,split:o});h(l),b((()=>{var e,t;e=c.value,t=i,e.setSelectionRange(t,t),e.blur(),e.focus()})),n("select",t,p.measurePrefix)},T=t=>{const n=t||p.measureText||"",{filterOption:o}=e;return e.options.filter((e=>!1==!!o||o(n,e)))},A=d((()=>T()));return r({blur:()=>{c.value.blur()},focus:()=>{c.value.focus()}}),v(zN,{activeIndex:M(p,"activeIndex"),setActiveIndex:e=>{p.activeIndex=e},selectOption:E,onFocus:I,onBlur:P,loading:M(e,"loading")}),a((()=>{S((()=>{p.measuring&&(s.value.scrollTop=c.value.scrollTop)}))})),()=>{const{measureLocation:t,measurePrefix:n,measuring:r}=p,{prefixCls:l,placement:a,transitionName:u,getPopupContainer:d,direction:v}=e,f=KN(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:h,style:m}=o,b=KN(o,["class","style"]),S=q(q(q({},Ml(f,["value","prefix","split","validateSearch","filterOption","options","loading"])),b),{onChange:VN,onSelect:VN,value:p.value,onInput:g,onBlur:O,onKeydown:y,onKeyup:x,onFocus:k,onPressenter:C});return $("div",{class:pe(l,h),style:m},[w($("textarea",U({ref:c},S),null),[[fd]]),r&&$("div",{ref:s,class:`${l}-measure`},[p.value.slice(0,t),$(HN,{prefixCls:l,transitionName:u,dropdownClassName:e.dropdownClassName,placement:a,options:r?A.value:[],visible:!0,direction:v,getPopupContainer:d},{default:()=>[$("span",null,[n])],notFoundContent:i.notFoundContent,option:i.option}),p.value.slice(t+n.length)])])}}}),GN=q(q({},{value:String,disabled:Boolean,payload:ct()}),{label:pt([])}),YN={name:"Option",props:GN,render(e,t){let{slots:n}=t;var o;return null===(o=n.default)||void 0===o?void 0:o.call(n)}};r(q({compatConfig:{MODE:3}},YN));const UN=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:l,motionDurationSlow:i,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:p,borderRadiusLG:v,boxShadowSecondary:f}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:q(q(q(q(q({},Ur(e)),jk(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Rk(e,t)),{"&-disabled":{"> textarea":q({},Bk(e))},"&-focused":q({},Ak(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:l,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":q({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},Ek(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":q(q({},Ur(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:p,borderRadius:v,outline:"none",boxShadow:f,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":q(q({},Yr),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${h}px ${r}px`,color:l,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${i} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:v,borderStartEndRadius:v,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:v,borderEndEndRadius:v},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:l,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},qN=tl("Mentions",(e=>{const t=Kk(e);return[UN(t)]}),(e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50})));var QN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rnf(x.status,e.status)));jx({prefixCls:d((()=>`${s.value}-menu`)),mode:d((()=>"vertical")),selectable:d((()=>!1)),onClick:()=>{},validator:e=>{bn()}}),c((()=>e.value),(e=>{b.value=e}));const w=e=>{h.value=!0,o("focus",e)},C=e=>{h.value=!1,o("blur",e),y.onFieldBlur()},k=function(){for(var e=arguments.length,t=new Array(e),n=0;n{void 0===e.value&&(b.value=t),o("update:value",t),o("change",t),y.onFieldChange()},I=()=>{const t=e.notFoundContent;return void 0!==t?t:n.notFoundContent?n.notFoundContent():u("Select")};l({focus:()=>{m.value.focus()},blur:()=>{m.value.blur()}});const M=d((()=>e.loading?ZN:e.filterOption));return()=>{const{disabled:t,getPopupContainer:o,rows:l=1,id:i=y.id.value}=e,a=QN(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:c,feedbackIcon:u}=x,{class:d}=r,g=QN(r,["class"]),P=Ml(a,["defaultValue","onUpdate:value","prefixCls"]),E=pe({[`${s.value}-disabled`]:t,[`${s.value}-focused`]:h.value,[`${s.value}-rtl`]:"rtl"===p.value},tf(s.value,S.value),!c&&d,f.value),T=q(q(q(q({prefixCls:s.value},P),{disabled:t,direction:p.value,filterOption:M.value,getPopupContainer:o,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:$(Gj,{size:"small"},null)}]:e.options||Fe((null===(A=n.default)||void 0===A?void 0:A.call(n))||[]).map((e=>{var t,n;return q(q({},We(e)),{label:null===(n=null===(t=e.children)||void 0===t?void 0:t.default)||void 0===n?void 0:n.call(t)})})),class:E}),g),{rows:l,onChange:O,onSelect:k,onFocus:w,onBlur:C,ref:m,value:b.value,id:i});var A;const B=$(XN,U(U({},T),{},{dropdownClassName:f.value}),{notFoundContent:I,option:n.option});return v(c?$("div",{class:pe(`${s.value}-affix-wrapper`,tf(`${s.value}-affix-wrapper`,S.value,c),d,f.value)},[B,$("span",{class:`${s.value}-suffix`},[u])]):B)}}}),eH=r(q(q({compatConfig:{MODE:3}},YN),{name:"AMentionsOption",props:GN})),tH=q(JN,{Option:eH,getMentions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return r.some((n=>e.slice(0,n.length)===n&&(t=n,!0))),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((e=>!!e&&!!e.value))},install:e=>(e.component(JN.name,JN),e.component(eH.name,eH),e)});let nH;const oH=e=>{nH={x:e.pageX,y:e.pageY},setTimeout((()=>nH=null),100)};PP()&&bt(document.documentElement,"click",oH,!0);const rH=r({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Re({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Ii.any,closable:{type:Boolean,default:void 0},closeIcon:Ii.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Ii.any,okText:Ii.any,okType:String,cancelText:Ii.any,icon:Ii.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:ct(),cancelButtonProps:ct(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:ct(),maskStyle:ct(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:ct()},{width:520,confirmLoading:!1,okType:"primary"}),setup(t,n){let{emit:o,slots:r,attrs:l}=n;const[i]=Ft("Modal"),{prefixCls:a,rootPrefixCls:s,direction:c,getPopupContainer:u}=Il("modal",t),[d,p]=PR(a);bn(void 0===t.visible);const v=e=>{o("update:visible",!1),o("update:open",!1),o("cancel",e),o("change",!1)},f=e=>{o("ok",e)},h=()=>{var n,o;const{okText:l=(null===(n=r.okText)||void 0===n?void 0:n.call(r)),okType:a,cancelText:s=(null===(o=r.cancelText)||void 0===o?void 0:o.call(r)),confirmLoading:c}=t;return $(e,null,[$(gx,U({onClick:v},t.cancelButtonProps),{default:()=>[s||i.value.cancelText]}),$(gx,U(U({},B$(a)),{},{loading:c,onClick:f},t.okButtonProps),{default:()=>[l||i.value.okText]})])};return()=>{var e,n;const{prefixCls:o,visible:i,open:f,wrapClassName:g,centered:m,getContainer:b,closeIcon:y=(null===(e=r.closeIcon)||void 0===e?void 0:e.call(r)),focusTriggerAfterClose:x=!0}=t,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r$("span",{class:`${a.value}-close-x`},[y||$(Dv,{class:`${a.value}-close-icon`},null)])})))}}}),lH=()=>{const e=g(!1);return b((()=>{e.value=!0})),e},iH={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:ct(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function aH(e){return!(!e||!e.then)}const sH=r({compatConfig:{MODE:3},name:"ActionButton",props:iH,setup(e,t){let{slots:n}=t;const o=g(!1),r=g(),l=g(!1);let a;const s=lH();i((()=>{e.autofocus&&(a=setTimeout((()=>{var e,t;return null===(t=null===(e=_e(r.value))||void 0===e?void 0:e.focus)||void 0===t?void 0:t.call(e)})))})),b((()=>{clearTimeout(a)}));const c=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r{const{actionFn:n}=e;if(o.value)return;if(o.value=!0,!n)return void c();let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!aH(r))return o.value=!1,void c(t)}else if(n.length)r=n(e.close),o.value=!1;else if(r=n(),!r)return void c();(e=>{aH(e)&&(l.value=!0,e.then((function(){s.value||(l.value=!1),c(...arguments),o.value=!1}),(e=>(s.value||(l.value=!1),o.value=!1,Promise.reject(e)))))})(r)};return()=>{const{type:t,prefixCls:o,buttonProps:i}=e;return $(gx,U(U(U({},B$(t)),{},{onClick:u,loading:l.value,prefixCls:o},i),{},{ref:r}),n)}}});function cH(e){return"function"==typeof e?e():e}const uH=r({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=Ft("Modal");return()=>{const{icon:t,onCancel:r,onOk:l,close:i,okText:a,closable:s=!1,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:v,maskStyle:f,okButtonProps:h,cancelButtonProps:g,okCancel:m,width:b=416,mask:y=!0,maskClosable:x=!1,type:S,open:w,title:C,content:k,direction:O,closeIcon:I,modalRender:M,focusTriggerAfterClose:P,rootPrefixCls:E,bodyStyle:T,wrapClassName:A,footer:B}=e;let D=t;if(!t&&null!==t)switch(S){case"info":D=$(sy,null,null);break;case"success":D=$(Zb,null,null);break;case"error":D=$(Hv,null,null);break;default:D=$(oy,null,null)}const z=e.okType||"primary",R=e.prefixCls||"ant-modal",j=`${R}-confirm`,N=n.style||{},H=null!=m?m:"confirm"===S,F=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),L=`${R}-confirm`,_=pe(L,`${L}-${e.type}`,{[`${L}-rtl`]:"rtl"===O},n.class),W=o.value,K=H&&$(sH,{actionFn:r,close:i,autofocus:"cancel"===F,buttonProps:g,prefixCls:`${E}-btn`},{default:()=>[cH(e.cancelText)||W.cancelText]});return $(rH,{prefixCls:R,class:_,wrapClassName:pe({[`${L}-centered`]:!!p},A),onCancel:e=>null==i?void 0:i({triggerCancel:!0},e),open:w,title:"",footer:"",transitionName:Nu(E,"zoom",e.transitionName),maskTransitionName:Nu(E,"fade",e.maskTransitionName),mask:y,maskClosable:x,maskStyle:f,style:N,bodyStyle:T,width:b,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:v,closable:s,closeIcon:I,modalRender:M,focusTriggerAfterClose:P},{default:()=>[$("div",{class:`${j}-body-wrapper`},[$("div",{class:`${j}-body`},[cH(D),void 0===C?null:$("span",{class:`${j}-title`},[cH(C)]),$("div",{class:`${j}-content`},[cH(k)])]),void 0!==B?cH(B):$("div",{class:`${j}-btns`},[K,$(sH,{type:z,actionFn:l,close:i,autofocus:"ok"===F,buttonProps:h,prefixCls:`${E}-btn`},{default:()=>[cH(a)||(H?W.okText:W.justOkText)]})])])]})}}}),dH=[],pH=e=>{const t=document.createDocumentFragment();let n=q(q({},Ml(e,["parentContext","appContext"])),{close:l,open:!0}),o=null;function r(){o&&(I(null,t),o=null);for(var n=arguments.length,r=new Array(n),i=0;ie&&e.triggerCancel));e.onCancel&&a&&e.onCancel((()=>{}),...r.slice(1));for(let e=0;e{"function"==typeof e.afterClose&&e.afterClose(),r.apply(this,o)}}),n.visible&&delete n.visible,i(n)}function i(e){var r;n="function"==typeof e?e(n):q(q({},n),e),o&&(r=t,I(O(o,q({},n)),r))}const a=e=>{const t=VA,n=t.prefixCls,o=e.prefixCls||`${n}-modal`,r=t.iconPrefixCls,l=PT;return $(UA,U(U({},t),{},{prefixCls:n}),{default:()=>[$(uH,U(U({},e),{},{rootPrefixCls:n,prefixCls:o,iconPrefixCls:r,locale:l,cancelText:e.cancelText||l.cancelText}),null)]})};return o=function(n){const o=$(a,q({},n));return o.appContext=e.parentContext||e.appContext||o.appContext,I(o,t),o}(n),dH.push(l),{destroy:l,update:i}};function vH(e){return q(q({},e),{type:"warning"})}function fH(e){return q(q({},e),{type:"info"})}function hH(e){return q(q({},e),{type:"success"})}function gH(e){return q(q({},e),{type:"error"})}function mH(e){return q(q({},e),{type:"confirm"})}const bH=r({name:"HookModal",inheritAttrs:!1,props:Re({config:Object,afterClose:Function,destroyAction:Function,open:Boolean},{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=d((()=>e.open)),l=d((()=>e.config)),{direction:i,getPrefixCls:a}=Et(),s=a("modal"),c=a(),u=()=>{var t,n;null==e||e.afterClose(),null===(n=(t=l.value).afterClose)||void 0===n||n.call(t)},p=function(){e.destroyAction(...arguments)};n({destroy:p});const v=null!==(o=l.value.okCancel)&&void 0!==o?o:"confirm"===l.value.type,[f]=Ft("Modal",Nt.Modal);return()=>$(uH,U(U({prefixCls:s,rootPrefixCls:c},l.value),{},{close:p,open:r.value,afterClose:u,okText:l.value.okText||(v?null==f?void 0:f.value.okText:null==f?void 0:f.value.justOkText),direction:l.value.direction||i.value,cancelText:l.value.cancelText||(null==f?void 0:f.value.cancelText)}),null)}});let yH=0;const $H=r({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=g([]);return n({addModal:e=>(o.value.push(e),o.value=o.value.slice(),()=>{o.value=o.value.filter((t=>t!==e))})}),()=>o.value.map((e=>e()))}});function xH(){const e=g(null),t=g([]);c(t,(()=>{if(t.value.length){[...t.value].forEach((e=>{e()})),t.value=[]}}),{immediate:!0});const n=n=>function(o){var r;yH+=1;const l=g(!0),i=g(null),a=g(h(o)),s=g({});c((()=>o),(e=>{p(q(q({},D(e)?e.value:e),s.value))}));const u=function(){l.value=!1;for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));a.value.onCancel&&o&&a.value.onCancel((()=>{}),...t.slice(1))};let d;d=null===(r=e.value)||void 0===r?void 0:r.addModal((()=>$(bH,{key:`modal-${yH}`,config:n(a.value),ref:i,open:l.value,destroyAction:u,afterClose:()=>{null==d||d()}},null))),d&&dH.push(d);const p=e=>{a.value=q(q({},a.value),e)};return{destroy:()=>{i.value?u():t.value=[...t.value,u]},update:e=>{s.value=e,i.value?p(e):t.value=[...t.value,()=>p(e)]}}},o=d((()=>({info:n(fH),success:n(hH),error:n(gH),warning:n(vH),confirm:n(mH)}))),r=Symbol("modalHolderKey");return[o.value,()=>$($H,{key:r,ref:e},null)]}function SH(e){return pH(vH(e))}rH.useModal=xH,rH.info=function(e){return pH(fH(e))},rH.success=function(e){return pH(hH(e))},rH.error=function(e){return pH(gH(e))},rH.warning=SH,rH.warn=SH,rH.confirm=function(e){return pH(mH(e))},rH.destroyAll=function(){for(;dH.length;){const e=dH.pop();e&&e()}},rH.install=function(e){return e.component(rH.name,rH),e};const wH=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:l="",prefixCls:i}=e;let a;if("function"==typeof n)a=n({value:t});else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${r}${s}`),a=[$("span",{key:"int",class:`${i}-content-value-int`},[e,t]),s&&$("span",{key:"decimal",class:`${i}-content-value-decimal`},[s])]}else a=e}return $("span",{class:`${i}-content-value`},[a])};wH.displayName="StatisticNumber";const CH=wH,kH=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:l,colorTextHeading:i,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:q(q({},Ur(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:l},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:i,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},OH=tl("Statistic",(e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=rl(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[kH(r)]})),IH=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:ht([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:dt(),formatter:pt(),precision:Number,prefix:{validator:()=>!0},suffix:{validator:()=>!0},title:{validator:()=>!0},loading:ut()}),MH=r({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:Re(IH(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("statistic",e),[i,a]=OH(r);return()=>{var t,s,c,u,d,p,v;const{value:f=0,valueStyle:h,valueRender:g}=e,m=r.value,b=null!==(t=e.title)&&void 0!==t?t:null===(s=n.title)||void 0===s?void 0:s.call(n),y=null!==(c=e.prefix)&&void 0!==c?c:null===(u=n.prefix)||void 0===u?void 0:u.call(n),x=null!==(d=e.suffix)&&void 0!==d?d:null===(p=n.suffix)||void 0===p?void 0:p.call(n),S=null!==(v=e.formatter)&&void 0!==v?v:n.formatter;let w=$(CH,U({"data-for-update":Date.now()},q(q({},e),{prefixCls:m,value:f,formatter:S})),null);return g&&(w=g(w)),i($("div",U(U({},o),{},{class:[m,{[`${m}-rtl`]:"rtl"===l.value},o.class,a.value]}),[b&&$("div",{class:`${m}-title`},[b]),$(dI,{paragraph:!1,loading:e.loading},{default:()=>[$("div",{style:h,class:`${m}-content`},[y&&$("span",{class:`${m}-content-prefix`},[y]),w,x&&$("span",{class:`${m}-content-suffix`},[x])])]})]))}}}),PH=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function EH(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map((e=>e.slice(1,-1))),l=t.replace(o,"[]"),i=PH.reduce(((e,t)=>{let[o,r]=t;if(e.includes(o)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${o}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),l);let a=0;return i.replace(o,(()=>{const e=r[a];return a+=1,e}))}(Math.max(o-r,0),n)}function TH(e){return new Date(e).getTime()}const AH=r({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Re(q(q({},IH()),{value:ht([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=f(),l=f(),s=()=>{const{value:t}=e;TH(t)>=Date.now()?c():u()},c=()=>{if(r.value)return;const t=TH(e.value);r.value=setInterval((()=>{l.value.$forceUpdate(),t>Date.now()&&n("change",t-Date.now()),s()}),33.333333333333336)},u=()=>{const{value:t}=e;if(r.value){clearInterval(r.value),r.value=void 0;TH(t){let{value:n,config:o}=t;const{format:r}=e;return EH(n,q(q({},o),{format:r}))},p=e=>e;return i((()=>{s()})),a((()=>{s()})),b((()=>{u()})),()=>{const t=e.value;return $(MH,U({ref:l},q(q({},Ml(e,["onFinish","onChange"])),{value:t,valueRender:p,formatter:d})),o)}}});MH.Countdown=AH,MH.install=function(e){return e.component(MH.name,MH),e.component(MH.Countdown.name,MH.Countdown),e};const BH=MH.Countdown;const DH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function zH(e){for(var t=1;t{const{keyCode:t}=e;t===sd.ENTER&&e.preventDefault()},c=e=>{const{keyCode:t}=e;t===sd.ENTER&&o("click",e)},u=e=>{o("click",e)},d=()=>{a.value&&a.value.focus()};return i((()=>{e.autofocus&&d()})),l({focus:d,blur:()=>{a.value&&a.value.blur()}}),()=>{var t;const{noStyle:o,disabled:l}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var e,n,o;return null!==(o=null!==(e=t.size)&&void 0!==e?e:null===(n=null==i?void 0:i.value)||void 0===n?void 0:n.size)&&void 0!==o?o:"small"})),h=f(),g=f();c(v,(()=>{[h.value,g.value]=(Array.isArray(v.value)?v.value:[v.value,v.value]).map((e=>function(e){return"string"==typeof e?GH[e]:e||0}(e)))}),{immediate:!0});const m=d((()=>void 0===t.align&&"horizontal"===t.direction?"center":t.align)),b=d((()=>pe(l.value,u.value,`${l.value}-${t.direction}`,{[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-align-${m.value}`]:m.value}))),y=d((()=>"rtl"===a.value?"marginLeft":"marginRight")),x=d((()=>{const e={};return p.value&&(e.columnGap=`${h.value}px`,e.rowGap=`${g.value}px`),q(q({},e),t.wrap&&{flexWrap:"wrap",marginBottom:-g.value+"px"})}));return()=>{var n,i;const{wrap:a,direction:c="horizontal"}=t,u=null===(n=o.default)||void 0===n?void 0:n.call(o),d=Ye(u),v=d.length;if(0===v)return null;const f=null===(i=o.split)||void 0===i?void 0:i.call(o),m=`${l.value}-item`,S=h.value,w=v-1;return $("div",U(U({},r),{},{class:[b.value,r.class],style:[x.value,r.style]}),[d.map(((t,n)=>{let o=u.indexOf(t);-1===o&&(o=`$$space-${n}`);let r={};return p.value||("vertical"===c?n{const{componentCls:t,antCls:n}=e;return{[t]:q(q({},Ur(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":q(q({},Vr(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:e.marginXS/2+"px 0",overflow:"hidden"},"&-title":q({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Yr),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":q({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Yr),"&-extra":{margin:e.marginXS/2+"px 0",whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},QH=tl("PageHeader",(e=>{const t=rl(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[qH(t)]})),ZH=r({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:{backIcon:{validator:()=>!0},prefixCls:String,title:{validator:()=>!0},subTitle:{validator:()=>!0},breadcrumb:Ii.object,tags:{validator:()=>!0},footer:{validator:()=>!0},extra:{validator:()=>!0},avatar:ct(),ghost:{type:Boolean,default:void 0},onBack:Function},slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,pageHeader:a}=Il("page-header",e),[s,c]=QH(l),u=g(!1),p=lH(),v=e=>{let{width:t}=e;p.value||(u.value=t<768)},f=d((()=>{var t,n,o;return null===(o=null!==(t=e.ghost)&&void 0!==t?t:null===(n=null==a?void 0:a.value)||void 0===n?void 0:n.ghost)||void 0===o||o})),h=()=>{var t;return e.breadcrumb?$(_S,e.breadcrumb,null):null===(t=o.breadcrumb)||void 0===t?void 0:t.call(o)},m=()=>{var t,r,a,s,c,u,d,p,v;const{avatar:f}=e,h=null!==(t=e.title)&&void 0!==t?t:null===(r=o.title)||void 0===r?void 0:r.call(o),g=null!==(a=e.subTitle)&&void 0!==a?a:null===(s=o.subTitle)||void 0===s?void 0:s.call(o),m=null!==(c=e.tags)&&void 0!==c?c:null===(u=o.tags)||void 0===u?void 0:u.call(o),b=null!==(d=e.extra)&&void 0!==d?d:null===(p=o.extra)||void 0===p?void 0:p.call(o),y=`${l.value}-heading`,x=h||g||m||b;if(!x)return null;const S=(()=>{var t,n,r;return null!==(r=null!==(t=e.backIcon)&&void 0!==t?t:null===(n=o.backIcon)||void 0===n?void 0:n.call(o))&&void 0!==r?r:"rtl"===i.value?$(WH,null,null):$(NH,null,null)})(),w=(t=>t&&e.onBack?$(Ht,{componentName:"PageHeader",children:e=>{let{back:o}=e;return $("div",{class:`${l.value}-back`},[$(XH,{onClick:e=>{n("back",e)},class:`${l.value}-back-button`,"aria-label":o},{default:()=>[t]})])}},null):null)(S);return $("div",{class:y},[(w||f||x)&&$("div",{class:`${y}-left`},[w,f?$(Py,f,null):null===(v=o.avatar)||void 0===v?void 0:v.call(o),h&&$("span",{class:`${y}-title`,title:"string"==typeof h?h:void 0},[h]),g&&$("span",{class:`${y}-sub-title`,title:"string"==typeof g?g:void 0},[g]),m&&$("span",{class:`${y}-tags`},[m])]),b&&$("span",{class:`${y}-extra`},[$(UH,null,{default:()=>[b]})])])},b=()=>{var t,n;const r=null!==(t=e.footer)&&void 0!==t?t:Ye(null===(n=o.footer)||void 0===n?void 0:n.call(o));return null==(i=r)||""===i||Array.isArray(i)&&0===i.length?null:$("div",{class:`${l.value}-footer`},[r]);var i},y=e=>$("div",{class:`${l.value}-content`},[e]);return()=>{var t,n;const a=(null===(t=e.breadcrumb)||void 0===t?void 0:t.routes)||o.breadcrumb,d=e.footer||o.footer,p=Fe(null===(n=o.default)||void 0===n?void 0:n.call(o)),g=pe(l.value,{"has-breadcrumb":a,"has-footer":d,[`${l.value}-ghost`]:f.value,[`${l.value}-rtl`]:"rtl"===i.value,[`${l.value}-compact`]:u.value},r.class,c.value);return s($(Ze,{onResize:v},{default:()=>[$("div",U(U({},r),{},{class:g}),[h(),m(),p.length?y(p):null,b()])]}))}}}),JH=at(ZH),eF=tl("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:l,marginXS:i,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:i,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+i,marginBottom:i,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}));const tF=r({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Re(q(q({},jy()),{prefixCls:String,content:pt(),title:pt(),description:pt(),okType:ft("primary"),disabled:{type:Boolean,default:!1},okText:pt(),cancelText:pt(),icon:pt(),okButtonProps:ct(),cancelButtonProps:ct(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),q(q({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=f();bn(void 0===e.visible),r({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=i.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const[a,s]=Sp(!1,{value:M(e,"open")}),c=(t,n)=>{void 0===e.open&&s(t),o("update:open",t),o("openChange",t,n)},u=e=>{c(!1,e)},p=t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(e,t)},v=t=>{var n;c(!1,t),null===(n=e.onCancel)||void 0===n||n.call(e,t)},h=t=>{const{disabled:n}=e;n||c(t)},{prefixCls:g,getPrefixCls:m}=Il("popconfirm",e),b=d((()=>m())),y=d((()=>m("btn"))),[x]=eF(g),[S]=Ft("Popconfirm",Nt.Popconfirm),w=()=>{var t,o,r,l,i;const{okButtonProps:a,cancelButtonProps:s,title:c=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:d=(null===(o=n.description)||void 0===o?void 0:o.call(n)),cancelText:f=(null===(r=n.cancel)||void 0===r?void 0:r.call(n)),okText:h=(null===(l=n.okText)||void 0===l?void 0:l.call(n)),okType:m,icon:b=(null===(i=n.icon)||void 0===i?void 0:i.call(n))||$(oy,null,null),showCancel:x=!0}=e,{cancelButton:w,okButton:C}=n,k=q({onClick:v,size:"small"},s),O=q(q(q({onClick:p},B$(m)),{size:"small"}),a);return $("div",{class:`${g.value}-inner-content`},[$("div",{class:`${g.value}-message`},[b&&$("span",{class:`${g.value}-message-icon`},[b]),$("div",{class:[`${g.value}-message-title`,{[`${g.value}-message-title-only`]:!!d}]},[c])]),d&&$("div",{class:`${g.value}-description`},[d]),$("div",{class:`${g.value}-buttons`},[x?w?w(k):$(gx,k,{default:()=>[f||S.value.cancelText]}):null,C?C(O):$(sH,{buttonProps:q(q({size:"small"},B$(m)),a),actionFn:p,close:u,prefixCls:y.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[h||S.value.okText]})])])};return()=>{var t;const{placement:o,overlayClassName:r,trigger:s="click"}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[es((null===(t=n.default)||void 0===t?void 0:t.call(n))||[],{onKeydown:e=>{(e=>{e.keyCode===sd.ESC&&a&&c(!1,e)})(e)}},!1)],content:w}))}}}),nF=at(tF),oF=["normal","exception","active","success"],rF=()=>({prefixCls:String,type:ft(),percent:Number,format:dt(),status:ft(),showInfo:ut(),strokeWidth:Number,strokeLinecap:ft(),strokeColor:pt(),trailColor:String,width:Number,success:ct(),gapDegree:Number,gapPosition:ft(),size:ht([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:ft()});function lF(e){return!e||e<0?0:e>100?100:e}function iF(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(Mi(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}const aF=(e,t,n)=>{var o,r,l,i;let a=-1,s=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=o?o:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,s=null!==(i=null!==(l=e[0])&&void 0!==l?l:e[1])&&void 0!==i?i:120));return{width:a,height:s}};const sF=(e,t)=>{const{from:n=Ir.blue,to:o=Ir.blue,direction:r=("rtl"===t?"to left":"to right")}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(l)})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},cF=r({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:q(q({},rF()),{strokeColor:pt(),direction:ft()}),setup(t,n){let{slots:o,attrs:r}=n;const l=d((()=>{const{strokeColor:e,direction:n}=t;return e&&"string"!=typeof e?sF(e,n):{backgroundColor:e}})),i=d((()=>"square"===t.strokeLinecap||"butt"===t.strokeLinecap?0:void 0)),a=d((()=>t.trailColor?{backgroundColor:t.trailColor}:void 0)),s=d((()=>{var e;return null!==(e=t.size)&&void 0!==e?e:[-1,t.strokeWidth||("small"===t.size?6:8)]})),c=d((()=>aF(s.value,"line",{strokeWidth:t.strokeWidth}))),u=d((()=>{const{percent:e}=t;return q({width:`${lF(e)}%`,height:`${c.value.height}px`,borderRadius:i.value},l.value)})),p=d((()=>iF(t))),v=d((()=>{const{success:e}=t;return{width:`${lF(p.value)}%`,height:`${c.value.height}px`,borderRadius:i.value,backgroundColor:null==e?void 0:e.strokeColor}})),f={width:c.value.width<0?"100%":c.value.width,height:`${c.value.height}px`};return()=>{var n;return $(e,null,[$("div",U(U({},r),{},{class:[`${t.prefixCls}-outer`,r.class],style:[r.style,f]}),[$("div",{class:`${t.prefixCls}-inner`,style:a.value},[$("div",{class:`${t.prefixCls}-bg`,style:u.value},null),void 0!==p.value?$("div",{class:`${t.prefixCls}-success-bg`,style:v.value},null):null])]),null===(n=o.default)||void 0===n?void 0:n.call(o)])}}});let uF=0;function dF(e){return+e.replace("%","")}function pF(e){return Array.isArray(e)?e:[e]}function vF(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const l=50-o/2;let i=0,a=-l,s=0,c=-2*l;switch(arguments.length>5?arguments[5]:void 0){case"left":i=-l,a=0,s=2*l,c=0;break;case"right":i=l,a=0,s=-2*l,c=0;break;case"bottom":a=l,c=2*l}const u=`M 50,50 m ${i},${a}\n a ${l},${l} 0 1 1 ${s},${-c}\n a ${l},${l} 0 1 1 ${-s},${c}`,d=2*Math.PI*l;return{pathString:u,pathStyle:{stroke:n,strokeDasharray:`${t/100*(d-r)}px ${d}px`,strokeDashoffset:`-${r/2+e/100*(d-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"}}}const fF=r({compatConfig:{MODE:3},name:"VCCircle",props:Re({gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},{percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1}),setup(e){uF+=1;const t=f(uF),n=d((()=>pF(e.percent))),o=d((()=>pF(e.strokeColor))),[r,l]=vO();(e=>{const t=f(null);a((()=>{const n=Date.now();let o=!1;e.value.forEach((e=>{const r=(null==e?void 0:e.$el)||e;if(!r)return;o=!0;const l=r.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(l.transitionDuration="0s, 0s")})),o&&(t.value=Date.now())}))})(l);const i=()=>{const{prefixCls:l,strokeWidth:i,strokeLinecap:a,gapDegree:s,gapPosition:c}=e;let u=0;return n.value.map(((e,n)=>{const d=o.value[n]||o.value[o.value.length-1],p="[object Object]"===Object.prototype.toString.call(d)?`url(#${l}-gradient-${t.value})`:"",{pathString:v,pathStyle:f}=vF(u,e,d,i,s,c);u+=e;const h={key:n,d:v,stroke:p,"stroke-linecap":a,"stroke-width":i,opacity:0===e?0:1,"fill-opacity":"0",class:`${l}-circle-path`,style:f};return $("path",U({ref:r(n)},h),null)}))};return()=>{const{prefixCls:n,strokeWidth:r,trailWidth:l,gapDegree:a,gapPosition:s,trailColor:c,strokeLinecap:u,strokeColor:d}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"[object Object]"===Object.prototype.toString.call(e))),g={d:v,stroke:c,"stroke-linecap":u,"stroke-width":l||r,"fill-opacity":"0",class:`${n}-circle-trail`,style:f};return $("svg",U({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[h&&$("defs",null,[$("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(h).sort(((e,t)=>dF(e)-dF(t))).map(((e,t)=>$("stop",{key:t,offset:e,"stop-color":h[e]},null)))])]),$("path",g,null),i().reverse()])}}}),hF=r({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:Re(q(q({},rF()),{strokeColor:pt()}),{trailColor:null}),setup(t,n){let{slots:o,attrs:r}=n;const l=d((()=>{var e;return null!==(e=t.width)&&void 0!==e?e:120})),i=d((()=>{var e;return null!==(e=t.size)&&void 0!==e?e:[l.value,l.value]})),a=d((()=>aF(i.value,"circle"))),s=d((()=>t.gapDegree||0===t.gapDegree?t.gapDegree:"dashboard"===t.type?75:void 0)),c=d((()=>({width:`${a.value.width}px`,height:`${a.value.height}px`,fontSize:.15*a.value.width+6+"px"}))),u=d((()=>{var e;return null!==(e=t.strokeWidth)&&void 0!==e?e:Math.max(3/a.value.width*100,6)})),p=d((()=>t.gapPosition||"dashboard"===t.type&&"bottom"||void 0)),v=d((()=>function(e){let{percent:t,success:n,successPercent:o}=e;const r=lF(iF({success:n,successPercent:o}));return[r,lF(lF(t)-r)]}(t))),f=d((()=>"[object Object]"===Object.prototype.toString.call(t.strokeColor))),h=d((()=>function(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||Ir.green,n||null]}({success:t.success,strokeColor:t.strokeColor}))),g=d((()=>({[`${t.prefixCls}-inner`]:!0,[`${t.prefixCls}-circle-gradient`]:f.value})));return()=>{var n;const l=$(fF,{percent:v.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:h.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:s.value,gapPosition:p.value},null);return $("div",U(U({},r),{},{class:[g.value,r.class],style:[r.style,c.value]}),[a.value.width<=20?$(Jy,null,{default:()=>[$("span",null,[l])],title:o.default}):$(e,null,[l,null===(n=o.default)||void 0===n?void 0:n.call(o)])])}}}),gF=r({compatConfig:{MODE:3},name:"Steps",props:q(q({},rF()),{steps:Number,strokeColor:ht(),trailColor:String}),setup(e,t){let{slots:n}=t;const o=d((()=>Math.round(e.steps*((e.percent||0)/100)))),r=d((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]})),l=d((()=>aF(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8}))),i=d((()=>{const{steps:t,strokeColor:n,trailColor:r,prefixCls:i}=e,a=[];for(let e=0;e{var t;return $("div",{class:`${e.prefixCls}-steps-outer`},[i.value,null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),mF=new Fo("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),bF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:q(q({},Ur(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:mF,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},yF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},$F=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},xF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},SF=tl("Progress",(e=>{const t=e.marginXXS/2,n=rl(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[bF(n),yF(n),$F(n),xF(n)]}));const wF=r({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:Re(rF(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("progress",e),[i,a]=SF(r),s=d((()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor)),c=d((()=>{const{percent:t=0}=e,n=iF(e);return parseInt(void 0!==n?n.toString():t.toString(),10)})),u=d((()=>{const{status:t}=e;return!oF.includes(t)&&c.value>=100?"success":t||"normal"})),p=d((()=>{const{type:t,showInfo:n,size:o}=e,i=r.value;return{[i]:!0,[`${i}-inline-circle`]:"circle"===t&&aF(o,"circle").width<=20,[`${i}-${"dashboard"===t?"circle":t}`]:!0,[`${i}-status-${u.value}`]:!0,[`${i}-show-info`]:n,[`${i}-${o}`]:o,[`${i}-rtl`]:"rtl"===l.value,[a.value]:!0}})),v=d((()=>"string"==typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0));return()=>{const{type:t,steps:a,title:c}=e,{class:d}=o,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{showInfo:t,format:o,type:l,percent:i,title:a}=e,s=iF(e);if(!t)return null;let c;const d=o||(null==n?void 0:n.format)||(e=>`${e}%`),p="line"===l;return o||(null==n?void 0:n.format)||"exception"!==u.value&&"success"!==u.value?c=d(lF(i),lF(s)):"exception"===u.value?c=$(p?Hv:Dv,null,null):"success"===u.value&&(c=$(p?Zb:Pv,null,null)),$("span",{class:`${r.value}-text`,title:void 0===a&&"string"==typeof c?c:void 0},[c])})();let g;return"line"===t?g=a?$(gF,U(U({},e),{},{strokeColor:v.value,prefixCls:r.value,steps:a}),{default:()=>[h]}):$(cF,U(U({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:l.value}),{default:()=>[h]}):"circle"!==t&&"dashboard"!==t||(g=$(hF,U(U({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[h]})),i($("div",U(U({role:"progressbar"},f),{},{class:[p.value,d],title:c}),[g]))}}}),CF=at(wF);const kF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function OF(e){for(var t=1;t{const{index:o}=e;n("hover",t,o)},r=t=>{const{index:o}=e;n("click",t,o)},l=t=>{const{index:o}=e;13===t.keyCode&&n("click",t,o)},i=d((()=>{const{prefixCls:t,index:n,value:o,allowHalf:r,focused:l}=e,i=n+1;let a=t;return 0===o&&0===n&&l?a+=` ${t}-focused`:r&&o+.5>=i&&o{const{disabled:t,prefixCls:n,characterRender:a,character:s,index:c,count:u,value:d}=e,p="function"==typeof s?s({disabled:t,prefixCls:n,index:c,count:u,value:d}):s;let v=$("li",{class:i.value},[$("div",{onClick:t?null:r,onKeydown:t?null:l,onMousemove:t?null:o,role:"radio","aria-checked":d>c?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabindex:t?-1:0},[$("div",{class:`${n}-first`},[p]),$("div",{class:`${n}-second`},[p])])]);return a&&(v=a(v,e)),v}}}),AF=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},BF=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),DF=e=>{const{componentCls:t}=e;return{[t]:q(q(q(q(q({},Ur(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),AF(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),BF(e))}},zF=tl("Rate",(e=>{const{colorFillContent:t}=e,n=rl(e,{rateStarColor:e["yellow-6"],rateStarSize:.5*e.controlHeightLG,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[DF(n)]})),RF=r({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Re({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:Ii.any,autofocus:{type:Boolean,default:void 0},tabindex:Ii.oneOfType([Ii.number,Ii.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function},{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:a}=t;const{prefixCls:s,direction:u}=Il("rate",e),[d,p]=zF(s),v=Qv(),h=f(),[g,m]=vO(),b=l({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});c((()=>e.value),(()=>{b.value=e.value}));const y=(t,n)=>{const o="rtl"===u.value;let r=t+1;if(e.allowHalf){const e=(e=>_e(m.value.get(e)))(t),l=function(e){const t=function(e){let t,n;const o=e.ownerDocument,{body:r}=o,l=o&&o.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=l.clientLeft||r.clientLeft||0,n-=l.clientTop||r.clientTop||0,{left:t,top:n}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=function(e){let t=e.pageXOffset;const n="scrollLeft";if("number"!=typeof t){const o=e.document;t=o.documentElement[n],"number"!=typeof t&&(t=o.body[n])}return t}(o),t.left}(e),i=e.clientWidth;(o&&n-l>i/2||!o&&n-l{void 0===e.value&&(b.value=t),r("update:value",t),r("change",t),v.onFieldChange()},S=(e,t)=>{const n=y(t,e.pageX);n!==b.cleanedValue&&(b.hoverValue=n,b.cleanedValue=null),r("hoverChange",n)},w=()=>{b.hoverValue=void 0,b.cleanedValue=null,r("hoverChange",void 0)},C=(t,n)=>{const{allowClear:o}=e,r=y(n,t.pageX);let l=!1;o&&(l=r===b.value),w(),x(l?0:r),b.cleanedValue=l?r:null},k=e=>{b.focused=!0,r("focus",e)},O=e=>{b.focused=!1,r("blur",e),v.onFieldBlur()},I=t=>{const{keyCode:n}=t,{count:o,allowHalf:l}=e,i="rtl"===u.value;n===sd.RIGHT&&b.value0&&!i||n===sd.RIGHT&&b.value>0&&i?(b.value-=l?.5:1,x(b.value),t.preventDefault()):n===sd.LEFT&&b.value{e.disabled||h.value.focus()};a({focus:M,blur:()=>{e.disabled||h.value.blur()}}),i((()=>{const{autofocus:t,disabled:n}=e;t&&!n&&M()}));const P=(t,n)=>{let{index:o}=n;const{tooltips:r}=e;return r?$(Jy,{title:r[o]},{default:()=>[t]}):t};return()=>{const{count:t,allowHalf:r,disabled:l,tabindex:i,id:a=v.id.value}=e,{class:c,style:f}=o,m=[],y=l?`${s.value}-disabled`:"",x=e.character||n.character||(()=>$(PF,null,null));for(let e=0;e$("svg",{width:"252",height:"294"},[$("defs",null,[$("path",{d:"M0 .387h251.772v251.772H0z"},null)]),$("g",{fill:"none","fill-rule":"evenodd"},[$("g",{transform:"translate(0 .012)"},[$("mask",{fill:"#fff"},null),$("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),$("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),$("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),$("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),$("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),$("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),$("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),$("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),$("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),$("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),$("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),$("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),$("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),$("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),$("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),$("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),$("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),$("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),$("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),$("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),$("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),$("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),$("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),$("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),$("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),$("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),$("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),$("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),$("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),$("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),$("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),$("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),$("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),$("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),$("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),$("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),$("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),$("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),$("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),$("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),$("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),$("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),KF=()=>$("svg",{width:"254",height:"294"},[$("defs",null,[$("path",{d:"M0 .335h253.49v253.49H0z"},null),$("path",{d:"M0 293.665h253.49V.401H0z"},null)]),$("g",{fill:"none","fill-rule":"evenodd"},[$("g",{transform:"translate(0 .067)"},[$("mask",{fill:"#fff"},null),$("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),$("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),$("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),$("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),$("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),$("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),$("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),$("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),$("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),$("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),$("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),$("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),$("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),$("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),$("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),$("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),$("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),$("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),$("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),$("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),$("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),$("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),$("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),$("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),$("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),$("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),$("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),$("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),$("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),$("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),$("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),$("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),$("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),$("mask",{fill:"#fff"},null),$("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),$("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),$("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),$("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),$("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),$("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),$("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),$("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),$("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),$("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),$("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),VF=()=>$("svg",{width:"251",height:"294"},[$("g",{fill:"none","fill-rule":"evenodd"},[$("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),$("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),$("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),$("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),$("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),$("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),$("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),$("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),$("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),$("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),$("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),$("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),$("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),$("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),$("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),$("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),$("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),$("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),$("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),$("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),$("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),$("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),$("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),$("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),$("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),$("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),$("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),$("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),$("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),$("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),$("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),$("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),$("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),$("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),$("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),$("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),$("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),$("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),$("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),$("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),XF=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:l,paddingXS:i,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${2*a}px ${l}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${2.5*r}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},GF=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},YF=e=>(e=>[XF(e),GF(e)])(e),UF=tl("Result",(e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=rl(e,{resultTitleFontSize:n,resultSubtitleFontSize:e.fontSize,resultIconFontSize:3*n,resultExtraMargin:`${t}px 0 0 0`,resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning});return[YF(o)]}),{imageWidth:250,imageHeight:295}),qF={success:Zb,error:Hv,info:oy,warning:_F},QF={404:WF,500:KF,403:VF},ZF=Object.keys(QF),JF=(e,t)=>{let{status:n,icon:o}=t;if(ZF.includes(`${n}`)){return $("div",{class:`${e}-icon ${e}-image`},[$(QF[n],null,null)])}const r=o||$(qF[n],null,null);return $("div",{class:`${e}-icon`},[r])},eL=(e,t)=>t&&$("div",{class:`${e}-extra`},[t]),tL=r({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:{prefixCls:String,icon:Ii.any,status:{type:[Number,String],default:"info"},title:Ii.any,subTitle:Ii.any,extra:Ii.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("result",e),[i,a]=UF(r),s=d((()=>pe(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:"rtl"===l.value})));return()=>{var t,l,a,c,u,d,p,v;const f=null!==(t=e.title)&&void 0!==t?t:null===(l=n.title)||void 0===l?void 0:l.call(n),h=null!==(a=e.subTitle)&&void 0!==a?a:null===(c=n.subTitle)||void 0===c?void 0:c.call(n),g=null!==(u=e.icon)&&void 0!==u?u:null===(d=n.icon)||void 0===d?void 0:d.call(n),m=null!==(p=e.extra)&&void 0!==p?p:null===(v=n.extra)||void 0===v?void 0:v.call(n),b=r.value;return i($("div",U(U({},o),{},{class:[s.value,o.class]}),[JF(b,{status:e.status,icon:g}),$("div",{class:`${b}-title`},[f]),h&&$("div",{class:`${b}-subtitle`},[h]),eL(b,m),n.default&&$("div",{class:`${b}-content`},[n.default()])]))}}});tL.PRESENTED_IMAGE_403=QF[403],tL.PRESENTED_IMAGE_404=QF[404],tL.PRESENTED_IMAGE_500=QF[500],tL.install=function(e){return e.component(tL.name,tL),e};const nL=tL,oL=at(FP),rL=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:l,class:i}=n;let{length:a,offset:s,reverse:c}=n;a<0&&(c=!c,a=Math.abs(a),s=100-s);const u=r?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${a}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${a}%`},d=q(q({},l),u);return o?$("div",{class:i,style:d},null):null};rL.inheritAttrs=!1;const lL=rL,iL=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:l,marks:i,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:p,min:v,dotStyle:f,activeDotStyle:h}=n,g=p-v,m=((e,t,n,o,r,l)=>{bn();const i=Object.keys(t).map(parseFloat).sort(((e,t)=>e-t));if(n&&o)for(let a=r;a<=l;a+=o)-1===i.indexOf(a)&&i.push(a);return i})(0,i,a,s,v,p).map((e=>{const t=Math.abs(e-v)/g*100+"%",n=!c&&e===d||c&&e<=d&&e>=u;let i=q(q({},f),r?{[l?"top":"bottom"]:t}:{[l?"right":"left"]:t});n&&(i=q(q({},i),h));const a=pe({[`${o}-dot`]:!0,[`${o}-dot-active`]:n,[`${o}-dot-reverse`]:l});return $("span",{class:a,style:i,key:e},null)}));return $("div",{class:`${o}-step`},[m])};iL.inheritAttrs=!1;const aL=iL,sL=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:l,reverse:i,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:p,onClickLabel:v}=n,f=Object.keys(a),h=o.mark,g=d-p,m=f.map(parseFloat).sort(((e,t)=>e-t)).map((e=>{const t="function"==typeof a[e]?a[e]():a[e],n="object"==typeof t&&!qe(t);let o=n?t.label:t;if(!o&&0!==o)return null;h&&(o=h({point:e,label:o}));const d=pe({[`${r}-text`]:!0,[`${r}-text-active`]:!s&&e===c||s&&e<=c&&e>=u}),f=l?{marginBottom:"-50%",[i?"top":"bottom"]:(e-p)/g*100+"%"}:{transform:`translateX(${i?"50%":"-50%"})`,msTransform:`translateX(${i?"50%":"-50%"})`,[i?"right":"left"]:(e-p)/g*100+"%"},m=n?q(q({},f),t.style):f,b={[mt?"onTouchstartPassive":"onTouchstart"]:t=>v(t,e)};return $("span",U({class:d,style:m,key:e,onMousedown:t=>v(t,e)},b),[o])}));return $("div",{class:r},[m])};sL.inheritAttrs=!1;const cL=sL,uL=r({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:Ii.oneOfType([Ii.number,Ii.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const l=g(!1),a=g(),s=()=>{document.activeElement===a.value&&(l.value=!0)},c=e=>{l.value=!1,o("blur",e)},u=()=>{l.value=!1},p=()=>{var e;null===(e=a.value)||void 0===e||e.focus()},v=e=>{e.preventDefault(),p(),o("mousedown",e)};r({focus:p,blur:()=>{var e;null===(e=a.value)||void 0===e||e.blur()},clickFocus:()=>{l.value=!0,p()},ref:a});let f=null;i((()=>{f=bt(document,"mouseup",s)})),b((()=>{null==f||f.remove()}));const h=d((()=>{const{vertical:t,offset:n,reverse:o}=e;return t?{[o?"top":"bottom"]:`${n}%`,[o?"bottom":"top"]:"auto",transform:o?null:"translateY(+50%)"}:{[o?"right":"left"]:`${n}%`,[o?"left":"right"]:"auto",transform:`translateX(${o?"+":"-"}50%)`}}));return()=>{const{prefixCls:t,disabled:o,min:r,max:i,value:s,tabindex:d,ariaLabel:p,ariaLabelledBy:f,ariaValueTextFormatter:g,onMouseenter:m,onMouseleave:b}=e,y=pe(n.class,{[`${t}-handle-click-focused`]:l.value}),x={"aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":s,"aria-disabled":!!o},S=[n.style,h.value];let w,C=d||0;(o||null===d)&&(C=null),g&&(w=g(s));const k=q(q(q(q({},n),{role:"slider",tabindex:C}),x),{class:y,onBlur:c,onKeydown:u,onMousedown:v,onMouseenter:m,onMouseleave:b,ref:a,style:S});return $("div",U(U({},k),{},{"aria-label":p,"aria-labelledby":f,"aria-valuetext":w}),null)}}});function dL(e,t){try{return Object.keys(t).some((n=>e.target===t[n].ref))}catch(n){return!1}}function pL(e,t){let{min:n,max:o}=t;return eo}function vL(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function fL(e,t){let{marks:n,step:o,min:r,max:l}=t;const i=Object.keys(n).map(parseFloat);if(null!==o){const t=Math.pow(10,hL(o)),n=Math.floor((l*t-r*t)/(o*t)),a=Math.min((e-r)/o,n),s=Math.round(a)*o+r;i.push(s)}const a=i.map((t=>Math.abs(e-t)));return i[a.indexOf(Math.min(...a))]}function hL(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function gL(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function mL(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function bL(e,t){const n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function yL(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function $L(e,t){const{step:n}=t,o=isFinite(fL(e,t))?fL(e,t):0;return null===n?o:parseFloat(o.toFixed(hL(n)))}function xL(e){e.stopPropagation(),e.preventDefault()}function SL(e,t,n){const o="increase",r="decrease";let l=o;switch(e.keyCode){case sd.UP:l=t&&n?r:o;break;case sd.RIGHT:l=!t&&n?r:o;break;case sd.DOWN:l=t&&n?o:r;break;case sd.LEFT:l=!t&&n?o:r;break;case sd.END:return(e,t)=>t.max;case sd.HOME:return(e,t)=>t.min;case sd.PAGE_UP:return(e,t)=>e+2*t.step;case sd.PAGE_DOWN:return(e,t)=>e-2*t.step;default:return}return(e,t)=>function(e,t,n){const o={increase:(e,t)=>e+t,decrease:(e,t)=>e-t},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),l=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[l]?n.marks[l]:t}(l,e,t)}function wL(){}function CL(e){const t={id:String,min:Number,max:Number,step:Number,marks:Ii.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:Ii.object,maximumTrackStyle:Ii.object,handleStyle:Ii.oneOfType([Ii.object,Ii.arrayOf(Ii.object)]),trackStyle:Ii.oneOfType([Ii.object,Ii.arrayOf(Ii.object)]),railStyle:Ii.object,dotStyle:Ii.object,activeDotStyle:Ii.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return r({compatConfig:{MODE:3},name:"CreateSlider",mixins:[Wu,e],inheritAttrs:!1,props:Re(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){return bn(),this.handlesRefs={},{}},mounted(){this.$nextTick((()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:e,disabled:t}=this;e&&!t&&this.focus()}))},beforeUnmount(){this.$nextTick((()=>{this.removeDocumentEvents()}))},methods:{defaultHandle(e){var{index:t,directives:n,className:o,style:r}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r=2&&!a&&!i.map(((e,t)=>{const n=!!t||e>=l[t];return t===i.length-1?e<=l[t]:n})).some((e=>!e)),this.dragTrack)this.dragOffset=n,this.startBounds=[...l];else{if(a){const t=bL(r,e.target);this.dragOffset=n-t,n=t}else this.dragOffset=0;this.onStart(n)}},onMouseDown(e){if(0!==e.button)return;this.removeDocumentEvents();const t=gL(this.$props.vertical,e);this.onDown(e,t),this.addDocumentMouseEvents()},onTouchStart(e){if(vL(e))return;const t=mL(this.vertical,e);this.onDown(e,t),this.addDocumentTouchEvents(),xL(e)},onFocus(e){const{vertical:t}=this;if(dL(e,this.handlesRefs)&&!this.dragTrack){const n=bL(t,e.target);this.dragOffset=0,this.onStart(n),xL(e),this.$emit("focus",e)}},onBlur(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(e){if(!this.sliderRef)return void this.onEnd();const t=gL(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(e){if(vL(e)||!this.sliderRef)return void this.onEnd();const t=mL(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(e){this.sliderRef&&dL(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel(e,t){e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(()=>this.onEnd(!0)))},getSliderStart(){const e=this.sliderRef,{vertical:t,reverse:n}=this,o=e.getBoundingClientRect();return t?n?o.bottom:o.top:window.pageXOffset+(n?o.right:o.left)},getSliderLength(){const e=this.sliderRef;if(!e)return 0;const t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents(){this.onTouchMoveListener=bt(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=bt(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=bt(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=bt(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var e;this.$props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach((e=>{var t,n;null===(n=null===(t=this.handlesRefs[e])||void 0===t?void 0:t.blur)||void 0===n||n.call(t)}))},calcValue(e){const{vertical:t,min:n,max:o}=this,r=Math.abs(Math.max(e,0)/this.getSliderLength());return t?(1-r)*(o-n)+n:r*(o-n)+n},calcValueByPos(e){const t=(this.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))},calcOffset(e){const{min:t,max:n}=this,o=(e-t)/(n-t);return Math.max(0,100*o)},saveSlider(e){this.sliderRef=e},saveHandle(e,t){this.handlesRefs[e]=t}},render(){const{prefixCls:e,marks:t,dots:n,step:o,included:r,disabled:l,vertical:i,reverse:a,min:s,max:c,maximumTrackStyle:u,railStyle:d,dotStyle:p,activeDotStyle:v,id:f}=this,{class:h,style:g}=this.$attrs,{tracks:m,handles:b}=this.renderSlider(),y=pe(e,h,{[`${e}-with-marks`]:Object.keys(t).length,[`${e}-disabled`]:l,[`${e}-vertical`]:i,[`${e}-horizontal`]:!i}),x={vertical:i,marks:t,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,reverse:a,class:`${e}-mark`,onClickLabel:l?wL:this.onClickMarkLabel},S={[mt?"onTouchstartPassive":"onTouchstart"]:l?wL:this.onTouchStart};return $("div",U(U({id:f,ref:this.saveSlider,tabindex:"-1",class:y},S),{},{onMousedown:l?wL:this.onMouseDown,onMouseup:l?wL:this.onMouseUp,onKeydown:l?wL:this.onKeyDown,onFocus:l?wL:this.onFocus,onBlur:l?wL:this.onBlur,style:g}),[$("div",{class:`${e}-rail`,style:q(q({},u),d)},null),m,$(aL,{prefixCls:e,vertical:i,reverse:a,marks:t,dots:n,step:o,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,dotStyle:p,activeDotStyle:v},null),b,$(cL,x,{mark:this.$slots.mark}),Le(this)])}})}const kL=r({compatConfig:{MODE:3},name:"Slider",mixins:[Wu],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:Ii.oneOfType([Ii.number,Ii.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),pL(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!Ne(this,"value"),n=e.sValue>this.max?q(q({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){xL(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=SL(e,n,t);if(o){xL(e);const{sValue:t}=this,n=o(t,this.$props),r=this.trimAlignValue(n);if(r===t)return;this.onChange({sValue:r}),this.$emit("afterChange",r),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;const n=q(q({},this.$props),t);return $L(yL(e,n),n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:l,mergedTrackStyle:i,length:a,offset:s}=e;return $(lL,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:q(q({},l),i)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:l,handleStyle:i,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:p,startPoint:v,reverse:f,handle:h,defaultHandle:g}=this,m=h||g,{sValue:b,dragging:y}=this,$=this.calcOffset(b),x=m({class:`${e}-handle`,prefixCls:e,vertical:t,offset:$,value:b,dragging:y,disabled:o,min:d,max:p,reverse:f,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:i[0]||i,ref:e=>this.saveHandle(0,e),onFocus:this.onFocus,onBlur:this.onBlur}),S=void 0!==v?this.calcOffset(v):0,w=l[0]||l;return{tracks:this.getTrack({prefixCls:e,reverse:f,vertical:t,included:n,offset:S,minimumTrackStyle:r,mergedTrackStyle:w,length:$-S}),handles:x}}}}),OL=CL(kL),IL=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:l,pushable:i}=r,a=Number(i),s=yL(t,r);let c=s;return l||null==n||void 0===o||(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n=o[n+1]-a&&(c=o[n+1]-a)),$L(c,r)},ML={defaultValue:Ii.arrayOf(Ii.number),value:Ii.arrayOf(Ii.number),count:Number,pushable:Oi(Ii.oneOfType([Ii.looseBool,Ii.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:Ii.arrayOf(Ii.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},PL=r({compatConfig:{MODE:3},name:"Range",mixins:[Wu],inheritAttrs:!1,props:Re(ML,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map((()=>t)),r=Ne(this,"defaultValue")?this.defaultValue:o;let{value:l}=this;void 0===l&&(l=r);const i=l.map(((e,t)=>IL({value:e,handle:t,props:this.$props})));return{sHandle:null,recent:i[0]===n?0:i.length-1,bounds:i}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map(((e,n)=>IL({value:e,handle:n,bounds:t,props:this.$props})));if(t.length===n.length){if(n.every(((e,n)=>e===t[n])))return null}else n=e.map(((e,t)=>IL({value:e,handle:t,props:this.$props})));if(this.setState({bounds:n}),e.some((e=>pL(e,this.$props)))){const t=e.map((e=>yL(e,this.$props)));this.$emit("change",t)}},onChange(e){if(!Ne(this,"value"))this.setState(e);else{const t={};["sHandle","recent"].forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}const t=q(q({},this.$data),e).bounds;this.$emit("change",t)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o);if(n===t[r])return null;const l=[...t];return l[r]=n,l},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});if(n===t[this.prevMovedHandleIndex])return;const r=[...t];r[this.prevMovedHandleIndex]=n,this.onChange({bounds:r})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){xL(e);const{$data:r,$props:l}=this,i=l.max||100,a=l.min||0;if(n){let e=l.vertical?-t:t;e=l.reverse?-e:e;const n=i-Math.max(...o),s=a-Math.min(...o),c=Math.min(Math.max(e/(this.getSliderLength()/100),s),n),u=o.map((e=>Math.floor(Math.max(Math.min(e+c,i),a))));return void(r.bounds.map(((e,t)=>e===u[t])).some((e=>!e))&&this.onChange({bounds:u}))}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t);u!==s[c]&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=SL(e,n,t);if(o){xL(e);const{bounds:t,sHandle:n}=this,r=t[null===n?this.recent:n],l=o(r,this.$props),i=IL({value:l,handle:n,bounds:t,props:this.$props});if(i===r)return;const a=!0;this.moveTo(i,a)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)e-t)),this.internalPointsCache={marks:e,step:t,points:l}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,l=null===o?r:o;n[l]=e;let i=l;!1!==this.$props.pushable?this.pushSurroundingHandles(n,i):this.$props.allowCross&&(n.sort(((e,t)=>e-t)),i=n.indexOf(e)),this.onChange({recent:i,sHandle:i,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},(()=>{this.handlesRefs[i].focus()})),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let l=0;if(e[t+1]-n=o.length||r<0)return!1;const l=t+n,i=o[r],{pushable:a}=this,s=Number(a),c=n*(e[l]-i);return!!this.pushHandle(e,l,n,s-c)&&(e[t]=i,!0)},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return IL({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const l=this.$data||{},{bounds:i}=l;if(e=void 0===e?l.sHandle:e,r=Number(r),!o&&null!=e&&void 0!==i){if(e>0&&t<=i[e-1]+r)return i[e-1]+r;if(e=i[e+1]-r)return i[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:l,offsets:i,trackStyle:a}=e;return t.slice(0,-1).map(((e,t)=>{const s=t+1,c=pe({[`${n}-track`]:!0,[`${n}-track-${s}`]:!0});return $(lL,{class:c,vertical:r,reverse:o,included:l,offset:i[s-1],length:i[s]-i[s-1],style:a[t],key:s},null)}))},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:l,min:i,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:p,tabindex:v,ariaLabelGroupForHandles:f,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:g}=this,m=c||u,b=t.map((e=>this.calcOffset(e))),y=`${n}-handle`,$=t.map(((t,r)=>{let c=v[r]||0;(l||null===v[r])&&(c=null);const u=e===r;return m({class:pe({[y]:!0,[`${y}-${r+1}`]:!0,[`${y}-dragging`]:u}),prefixCls:n,vertical:o,dragging:u,offset:b[r],value:t,index:r,tabindex:c,min:i,max:a,reverse:s,disabled:l,style:p[r],ref:e=>this.saveHandle(r,e),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:f[r],ariaLabelledBy:h[r],ariaValueTextFormatter:g[r]})}));return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:b,trackStyle:d}),handles:$}}}}),EL=CL(PL),TL=r({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Zy(),setup(e,t){let{attrs:n,slots:o}=t;const r=f(null),l=f(null);function i(){rt.cancel(l.value),l.value=null}const a=()=>{i(),e.open&&(l.value=rt((()=>{var e;null===(e=r.value)||void 0===e||e.forcePopupAlign(),l.value=null})))};return c([()=>e.open,()=>e.title],(()=>{a()}),{flush:"post",immediate:!0}),W((()=>{a()})),b((()=>{i()})),()=>$(Jy,U(U({ref:r},e),n),o)}}),AL=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:l,colorFillContentHover:i}=e;return{[t]:q(q({},Ur(e)),{position:"relative",height:n,margin:`${l}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${l}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new pr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},BL=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:l}=e,i=t?"width":"height",a=t?"height":"width",s=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:o,[a]:3*o,[`${n}-rail`]:{[i]:"100%",[a]:o},[`${n}-track`]:{[a]:o},[`${n}-handle`]:{[s]:(3*o-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[i]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[i]:"100%",[a]:o},[`${n}-dot`]:{position:"absolute",[s]:(o-l)/2}}},DL=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:q(q({},BL(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},zL=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:q(q({},BL(e,!1)),{height:"100%"})}},RL=tl("Slider",(e=>{const t=rl(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[AL(t),DL(t),zL(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}}));var jL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",HL=r({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:{id:String,prefixCls:String,tooltipPrefixCls:String,range:ht([Boolean,Object]),reverse:ut(),min:Number,max:Number,step:ht([Object,Number]),marks:ct(),dots:ut(),value:ht([Array,Number]),defaultValue:ht([Array,Number]),included:ut(),disabled:ut(),vertical:ut(),tipFormatter:ht([Function,Object],(()=>NL)),tooltipOpen:ut(),tooltipVisible:ut(),tooltipPlacement:ft(),getTooltipPopupContainer:dt(),autofocus:ut(),handleStyle:ht([Array,Object]),trackStyle:ht([Array,Object]),onChange:dt(),onAfterChange:dt(),onFocus:dt(),onBlur:dt(),"onUpdate:value":dt()},slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=Il("slider",e),[p,v]=RL(i),h=Qv(),g=f(),m=f({}),b=(e,t)=>{m.value[e]=t},y=d((()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?"rtl"===s.value?"left":"right":"top")),x=e=>{r("update:value",e),r("change",e),h.onFieldChange()},S=e=>{r("blur",e)};l({focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()}});const w=t=>{var{tooltipPrefixCls:n}=t,o=t.info,{value:r,dragging:l,index:s}=o,u=jL(o,["value","dragging","index"]);const{tipFormatter:d,tooltipOpen:p=e.tooltipVisible,getTooltipPopupContainer:v}=e,f=!!d&&(m.value[s]||l),h=p||void 0===p&&f;return $(TL,{prefixCls:n,title:d?d(r):"",open:h,placement:y.value,transitionName:`${a.value}-zoom-down`,key:s,overlayClassName:`${i.value}-tooltip`,getPopupContainer:v||(null==c?void 0:c.value)},{default:()=>[$(uL,U(U({},u),{},{value:r,onMouseenter:()=>b(s,!0),onMouseleave:()=>b(s,!1)}),null)]})};return()=>{const{tooltipPrefixCls:t,range:r,id:l=h.id.value}=e,a=jL(e,["tooltipPrefixCls","range","id"]),c=u.getPrefixCls("tooltip",t),d=pe(n.class,{[`${i.value}-rtl`]:"rtl"===s.value},v.value);let f;return"rtl"!==s.value||a.vertical||(a.reverse=!a.reverse),"object"==typeof r&&(f=r.draggableTrack),p(r?$(EL,U(U(U({},n),a),{},{step:a.step,draggableTrack:f,class:d,ref:g,handle:e=>w({tooltipPrefixCls:c,prefixCls:i.value,info:e}),prefixCls:i.value,onChange:x,onBlur:S}),{mark:o.mark}):$(OL,U(U(U({},n),a),{},{id:l,step:a.step,class:d,ref:g,handle:e=>w({tooltipPrefixCls:c,prefixCls:i.value,info:e}),prefixCls:i.value,onChange:x,onBlur:S}),{mark:o.mark}))}}}),FL=at(HL);function LL(e){return"string"==typeof e}function _L(){}const WL=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:ft(),iconPrefix:String,icon:Ii.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:Ii.any,title:Ii.any,subTitle:Ii.any,progressDot:Oi(Ii.oneOfType([Ii.looseBool,Ii.func])),tailContent:Ii.any,icons:Ii.shape({finish:Ii.any,error:Ii.any}).loose,onClick:dt(),onStepClick:dt(),stepIcon:dt(),itemRender:dt(),__legacy:ut()}),KL=r({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:WL(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=t=>{o("click",t),o("stepClick",e.stepIndex)},i=t=>{let{icon:o,title:r,description:l}=t;const{prefixCls:i,stepNumber:a,status:s,iconPrefix:c,icons:u,progressDot:d=n.progressDot,stepIcon:p=n.stepIcon}=e;let v;const f=pe(`${i}-icon`,`${c}icon`,{[`${c}icon-${o}`]:o&&LL(o),[`${c}icon-check`]:!o&&"finish"===s&&(u&&!u.finish||!u),[`${c}icon-cross`]:!o&&"error"===s&&(u&&!u.error||!u)}),h=$("span",{class:`${i}-icon-dot`},null);return v=d?$("span",{class:`${i}-icon`},"function"==typeof d?[d({iconDot:h,index:a-1,status:s,title:r,description:l,prefixCls:i})]:[h]):o&&!LL(o)?$("span",{class:`${i}-icon`},[o]):u&&u.finish&&"finish"===s?$("span",{class:`${i}-icon`},[u.finish]):u&&u.error&&"error"===s?$("span",{class:`${i}-icon`},[u.error]):o||"finish"===s||"error"===s?$("span",{class:f},null):$("span",{class:`${i}-icon`},[a]),p&&(v=p({index:a-1,status:s,title:r,description:l,node:v})),v};return()=>{var t,o,a,s;const{prefixCls:c,itemWidth:u,active:d,status:p="wait",tailContent:v,adjustMarginRight:f,disabled:h,title:g=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:m=(null===(o=n.description)||void 0===o?void 0:o.call(n)),subTitle:b=(null===(a=n.subTitle)||void 0===a?void 0:a.call(n)),icon:y=(null===(s=n.icon)||void 0===s?void 0:s.call(n)),onClick:x,onStepClick:S}=e,w=pe(`${c}-item`,`${c}-item-${p||"wait"}`,{[`${c}-item-custom`]:y,[`${c}-item-active`]:d,[`${c}-item-disabled`]:!0===h}),C={};u&&(C.width=u),f&&(C.marginRight=f);const k={onClick:x||_L};S&&!h&&(k.role="button",k.tabindex=0,k.onClick=l);const O=$("div",U(U({},Ml(r,["__legacy"])),{},{class:[w,r.class],style:[r.style,C]}),[$("div",U(U({},k),{},{class:`${c}-item-container`}),[$("div",{class:`${c}-item-tail`},[v]),$("div",{class:`${c}-item-icon`},[i({icon:y,title:g,description:m})]),$("div",{class:`${c}-item-content`},[$("div",{class:`${c}-item-title`},[g,b&&$("div",{title:"string"==typeof b?b:void 0,class:`${c}-item-subtitle`},[b])]),m&&$("div",{class:`${c}-item-description`},[m])])])]);return e.itemRender?e.itemRender(O):O}}});const VL=r({compatConfig:{MODE:3},name:"Steps",props:{type:Ii.string.def("default"),prefixCls:Ii.string.def("vc-steps"),iconPrefix:Ii.string.def("vc"),direction:Ii.string.def("horizontal"),labelPlacement:Ii.string.def("horizontal"),status:ft("process"),size:Ii.string.def(""),progressDot:Ii.oneOfType([Ii.looseBool,Ii.func]).def(void 0),initial:Ii.number.def(0),current:Ii.number.def(0),items:Ii.array.def((()=>[])),icons:Ii.shape({finish:Ii.any,error:Ii.any}).loose,stepIcon:dt(),isInline:Ii.looseBool,itemRender:dt()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=t=>{const{current:n}=e;n!==t&&o("change",t)},l=(t,o,l)=>{const{prefixCls:i,iconPrefix:a,status:s,current:c,initial:u,icons:d,stepIcon:p=n.stepIcon,isInline:v,itemRender:f,progressDot:h=n.progressDot}=e,g=v||h,m=q(q({},t),{class:""}),b=u+o,y={active:b===c,stepNumber:b+1,stepIndex:b,key:b,prefixCls:i,iconPrefix:a,progressDot:g,stepIcon:p,icons:d,onStepClick:r};return"error"===s&&o===c-1&&(m.class=`${i}-next-error`),m.status||(m.status=b===c?s:bf(m,e)),$(KL,U(U(U({},m),y),{},{__legacy:!1}),null))},i=(e,t)=>l(q({},e.props),t,(t=>Ja(e,t)));return()=>{var t;const{prefixCls:o,direction:r,type:a,labelPlacement:s,iconPrefix:c,status:u,size:d,current:p,progressDot:v=n.progressDot,initial:f,icons:h,items:g,isInline:m,itemRender:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re)).map(((e,t)=>l(e,t))),Ye(null===(t=n.default)||void 0===t?void 0:t.call(n)).map(i)])}}}),XL=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},GL=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:2*(n/2+e.controlHeightLG),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},YL=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:l}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${l}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:q(q({maxWidth:"100%",paddingInlineEnd:0},Yr),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${l}, inset-inline-start ${l}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},UL=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},qL=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:l,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:n/2+"px 0",padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:l,height:l,marginInlineStart:(e.descriptionWidth-l)/2,paddingInlineEnd:0,lineHeight:`${l}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(l-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(l-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-l)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(l-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-l)/2,insetInlineStart:0,margin:0,padding:`${l+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(l-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-l)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-l)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},QL=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},ZL=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:l}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:l,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},JL=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},e_=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,l=e.paddingXS+e.lineWidth,i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${l}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:l+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":q({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-finish":q({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-error":i,"&-active, &-process":q({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}};var t_,n_;(n_=t_||(t_={})).wait="wait",n_.process="process",n_.finish="finish",n_.error="error";const o_=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,l=`${e}DescriptionColor`,i=`${e}TailColor`,a=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[`${e}IconBgColor`],borderColor:t[a],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[l]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},r_=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return q(q(q(q(q(q({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},o_(t_.wait,e)),o_(t_.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),o_(t_.finish,e)),o_(t_.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},l_=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},i_=e=>{const{componentCls:t}=e;return{[t]:q(q(q(q(q(q(q(q(q(q(q(q(q({},Ur(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),r_(e)),l_(e)),XL(e)),ZL(e)),JL(e)),GL(e)),qL(e)),YL(e)),QL(e)),UL(e)),e_(e))}},a_=tl("Steps",(e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:l,controlHeightLG:i,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:p,colorFillContent:v,controlItemBgActive:f,colorError:h,colorBgContainer:g,colorBorderSecondary:m}=e,b=e.controlHeight,y=e.colorSplit,$=rl(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:b,stepsIconCustomSize:b,stepsIconCustomTop:0,stepsIconCustomFontSize:i/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:l,stepsSmallIconSize:o,stepsDotSize:l/4,stepsCurrentDotSize:i/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:y,waitIconBgColor:t?g:v,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?g:f,finishIconBorderColor:t?c:f,finishDotColor:c,errorIconColor:a,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:y,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:p,inlineTailColor:m});return[i_($)]}),{descriptionWidth:140}),s_=r({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Re({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:ut(),items:vt(),labelPlacement:ft(),status:ft(),size:ft(),direction:ft(),progressDot:ht([Boolean,Function]),type:ft(),onChange:dt(),"onUpdate:current":dt()},{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i,configProvider:a}=Il("steps",e),[s,c]=a_(l),[,u]=dl(),p=wy(),v=d((()=>e.responsive&&p.value.xs?"vertical":e.direction)),f=d((()=>a.getPrefixCls("",e.iconPrefix))),h=e=>{r("update:current",e),r("change",e)},g=d((()=>"inline"===e.type)),m=d((()=>g.value?void 0:e.percent)),b=t=>{let{node:n,status:o}=t;if("process"===o&&void 0!==e.percent){const t="small"===e.size?u.value.controlHeight:u.value.controlHeightLG;return $("div",{class:`${l.value}-progress-icon`},[$(CF,{type:"circle",percent:m.value,size:t,strokeWidth:4,format:()=>null},null),n])}return n},y=d((()=>({finish:$(Pv,{class:`${l.value}-finish-icon`},null),error:$(Dv,{class:`${l.value}-error-icon`},null)})));return()=>{const t=pe({[`${l.value}-rtl`]:"rtl"===i.value,[`${l.value}-with-progress`]:void 0!==m.value},n.class,c.value);return s($(VL,U(U(U({icons:y.value},n),Ml(e,["percent","responsive"])),{},{items:e.items,direction:v.value,prefixCls:l.value,iconPrefix:f.value,class:t,onChange:h,isInline:g.value,itemRender:g.value?(e,t)=>e.description?$(Jy,{title:e.description},{default:()=>[t]}):t:void 0}),q({stepIcon:b},o)))}}}),c_=r(q(q({compatConfig:{MODE:3}},KL),{name:"AStep",props:WL()})),u_=q(s_,{Step:c_,install:e=>(e.component(s_.name,s_),e.component(c_.name,c_),e)}),d_=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},p_=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},v_=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},f_=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},h_=e=>{const{componentCls:t}=e;return{[t]:q(q(q(q({},Ur(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),el(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},g_=tl("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=t-4,r=n-4,l=rl(e,{switchMinWidth:2*o+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+2+4,switchPadding:2,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:2*r+4,switchHeightSM:n,switchInnerMarginMinSM:r/2,switchInnerMarginMaxSM:r+2+4,switchPinSizeSM:r,switchHandleShadow:`0 2px 4px 0 ${new pr("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[h_(l),f_(l),v_(l),p_(l),d_(l)]})),m_=it("small","default"),b_=r({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:{id:String,prefixCls:String,size:Ii.oneOf(m_),disabled:{type:Boolean,default:void 0},checkedChildren:Ii.any,unCheckedChildren:Ii.any,tabindex:Ii.oneOfType([Ii.string,Ii.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:Ii.oneOfType([Ii.string,Ii.number,Ii.looseBool]),checkedValue:Ii.oneOfType([Ii.string,Ii.number,Ii.looseBool]).def(!0),unCheckedValue:Ii.oneOfType([Ii.string,Ii.number,Ii.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function},slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;const a=Qv(),s=At(),u=d((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:s.value}));T((()=>{bn(),bn()}));const p=f(void 0!==e.checked?e.checked:n.defaultChecked),v=d((()=>p.value===e.checkedValue));c((()=>e.checked),(()=>{p.value=e.checked}));const{prefixCls:h,direction:g,size:m}=Il("switch",e),[b,y]=g_(h),x=f(),w=()=>{var e;null===(e=x.value)||void 0===e||e.focus()};r({focus:w,blur:()=>{var e;null===(e=x.value)||void 0===e||e.blur()}}),i((()=>{S((()=>{e.autofocus&&!u.value&&x.value.focus()}))}));const C=(e,t)=>{u.value||(l("update:checked",e),l("change",e,t),a.onFieldChange())},k=e=>{l("blur",e)},O=t=>{w();const n=v.value?e.unCheckedValue:e.checkedValue;C(n,t),l("click",n,t)},I=t=>{t.keyCode===sd.LEFT?C(e.unCheckedValue,t):t.keyCode===sd.RIGHT&&C(e.checkedValue,t),l("keydown",t)},M=e=>{var t;null===(t=x.value)||void 0===t||t.blur(),l("mouseup",e)},P=d((()=>({[`${h.value}-small`]:"small"===m.value,[`${h.value}-loading`]:e.loading,[`${h.value}-checked`]:v.value,[`${h.value}-disabled`]:u.value,[h.value]:!0,[`${h.value}-rtl`]:"rtl"===g.value,[y.value]:!0})));return()=>{var t;return b($(A$,null,{default:()=>[$("button",U(U(U({},Ml(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:null!==(t=e.id)&&void 0!==t?t:a.id.value,onKeydown:I,onClick:O,onBlur:k,onMouseup:M,type:"button",role:"switch","aria-checked":p.value,disabled:u.value||e.loading,class:[n.class,P.value],ref:x}),[$("div",{class:`${h.value}-handle`},[e.loading?$(Cv,{class:`${h.value}-loading-icon`},null):null]),$("span",{class:`${h.value}-inner`},[$("span",{class:`${h.value}-inner-checked`},[Qe(o,e,"checkedChildren")]),$("span",{class:`${h.value}-inner-unchecked`},[Qe(o,e,"unCheckedChildren")])])])]}))}}}),y_=at(b_),$_=Symbol("TableContextProps"),x_=()=>p($_,{});function S_(e){return null==e?[]:Array.isArray(e)?e:[e]}function w_(e,t){if(!t&&"number"!=typeof t)return e;const n=S_(t);let o=e;for(let r=0;r{const{key:o,dataIndex:r}=e||{};let l=o||S_(r).join("-")||"RC_TABLE_KEY";for(;n[l];)l=`${l}_next`;n[l]=!0,t.push(l)})),t}function k_(){const e={};function t(e,n){n&&Object.keys(n).forEach((o=>{const r=n[o];r&&"object"==typeof r?(e[o]=e[o]||{},t(e[o],r)):e[o]=r}))}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,n)})),e}function O_(e){return null!=e}const I_=Symbol("SlotsContextProps"),M_=()=>p(I_,d((()=>({})))),P_=Symbol("ContextProps"),E_="RC_TABLE_INTERNAL_COL_DEFINE",T_=Symbol("HoverContextProps"),A_=g(!1);const B_=r({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,n){let{slots:r}=n;const l=M_(),{onHover:i,startRow:a,endRow:s}=p(T_,{startRow:g(-1),endRow:g(-1),onHover(){}}),c=d((()=>{var t,n,o,r;return null!==(o=null!==(t=e.colSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.colSpan)&&void 0!==o?o:null===(r=e.additionalProps)||void 0===r?void 0:r.colspan})),u=d((()=>{var t,n,o,r;return null!==(o=null!==(t=e.rowSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.rowSpan)&&void 0!==o?o:null===(r=e.additionalProps)||void 0===r?void 0:r.rowspan})),v=Cy((()=>{const{index:t}=e;return function(e,t,n,o){return e<=o&&e+t-1>=n}(t,u.value||1,a.value,s.value)})),f=A_,h=t=>{var n;const{record:o,additionalProps:r}=e;o&&i(-1,-1),null===(n=null==r?void 0:r.onMouseleave)||void 0===n||n.call(r,t)},m=e=>{const n=Ye(e)[0];return t(n)?n.type===o?n.children:Array.isArray(n.children)?m(n.children):void 0:n};return()=>{var n,o,a,s,d,p;const{prefixCls:g,record:b,index:y,renderIndex:x,dataIndex:S,customRender:w,component:C="td",fixLeft:k,fixRight:O,firstFixLeft:I,lastFixLeft:M,firstFixRight:P,lastFixRight:E,appendNode:T=(null===(n=r.appendNode)||void 0===n?void 0:n.call(r)),additionalProps:A={},ellipsis:B,align:D,rowType:z,isSticky:R,column:j={},cellType:N}=e,H=`${g}-cell`;let F,_;const W=null===(o=r.default)||void 0===o?void 0:o.call(r);if(O_(W)||"header"===N)_=W;else{const n=w_(b,S);if(_=n,w){const e=w({text:n,value:n,record:b,index:y,renderIndex:x,column:j.__originColumn__});!(K=e)||"object"!=typeof K||Array.isArray(K)||t(K)?_=e:(_=e.children,F=e.props)}if(!(E_ in j)&&"body"===N&&l.value.bodyCell&&!(null===(a=j.slots)||void 0===a?void 0:a.customRender)){const e=L(l.value,"bodyCell",{text:n,value:n,record:b,index:y,column:j.__originColumn__},(()=>{const e=void 0===_?n:_;return["object"==typeof e&&qe(e)||"object"!=typeof e?e:null]}));_=Fe(e)}e.transformCellText&&(_=e.transformCellText({text:_,record:b,index:y,column:j.__originColumn__}))}var K;"object"!=typeof _||Array.isArray(_)||t(_)||(_=null),B&&(M||P)&&(_=$("span",{class:`${H}-content`},[_])),Array.isArray(_)&&1===_.length&&(_=_[0]);const V=F||{},{colSpan:X,rowSpan:G,style:Y,class:U}=V,Q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{((t,n)=>{var o;const{record:r,index:l,additionalProps:a}=e;r&&i(l,l+n-1),null===(o=null==a?void 0:a.onMouseenter)||void 0===o||o.call(a,t)})(t,J)},onMouseleave:h,style:[A.style,oe,ee,Y]});return $(C,ie,{default:()=>[T,_,null===(p=r.dragHandle)||void 0===p?void 0:p.call(r)]})}}});function D_(e,t,n,o,r){const l=n[e]||{},i=n[t]||{};let a,s;"left"===l.fixed?a=o.left[e]:"right"===i.fixed&&(s=o.right[t]);let c=!1,u=!1,d=!1,p=!1;const v=n[t+1],f=n[e-1];if("rtl"===r){if(void 0!==a){p=!(f&&"left"===f.fixed)}else if(void 0!==s){d=!(v&&"right"===v.fixed)}}else if(void 0!==a){c=!(v&&"left"===v.fixed)}else if(void 0!==s){u=!(f&&"right"===f.fixed)}return{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}const z_={start:"mousedown",move:"mousemove",stop:"mouseup"},R_={start:"touchstart",move:"touchmove",stop:"touchend"},j_=r({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:50},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};s((()=>{r()})),m((()=>{Mi(!isNaN(e.width),"Table","width must be a number when use resizable")}));const{onResizeColumn:l}=p(P_,{onResizeColumn:()=>{}}),i=d((()=>"number"!=typeof e.minWidth||isNaN(e.minWidth)?50:e.minWidth)),a=d((()=>"number"!=typeof e.maxWidth||isNaN(e.maxWidth)?1/0:e.maxWidth)),c=u();let v=0;const f=g(!1);let h;const b=n=>{let o=0;o=n.touches?n.touches.length?n.touches[0].pageX:n.changedTouches[0].pageX:n.pageX;const r=t-o;let s=Math.max(v-r,i.value);s=Math.min(s,a.value),rt.cancel(h),h=rt((()=>{l(s,e.column.__originColumn__)}))},y=e=>{b(e)},x=e=>{f.value=!1,b(e),r()},S=(e,l)=>{f.value=!0,r(),v=c.vnode.el.parentNode.getBoundingClientRect().width,e instanceof MouseEvent&&1!==e.which||(e.stopPropagation&&e.stopPropagation(),t=e.touches?e.touches[0].pageX:e.pageX,n=bt(document.documentElement,l.move,y),o=bt(document.documentElement,l.stop,x))},w=e=>{e.stopPropagation(),e.preventDefault(),S(e,z_)},C=e=>{e.stopPropagation(),e.preventDefault()};return()=>{const{prefixCls:t}=e,n={[mt?"onTouchstartPassive":"onTouchstart"]:e=>(e=>{e.stopPropagation(),e.preventDefault(),S(e,R_)})(e)};return $("div",U(U({class:`${t}-resize-handle ${f.value?"dragging":""}`,onMousedown:w},n),{},{onClick:C}),[$("div",{class:`${t}-resize-handle-line`},null)])}}}),N_=r({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=x_();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:l,flattenColumns:i,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map((e=>e.column)),u));const p=C_(r.map((e=>e.column)));return $(a,d,{default:()=>[r.map(((e,t)=>{const{column:r}=e,a=D_(e.colStart,e.colEnd,i,l,o);let c;r&&r.customHeaderCell&&(c=e.column.customHeaderCell(r));const u=r;return $(B_,U(U(U({},e),{},{cellType:"header",ellipsis:r.ellipsis,align:r.align,component:s,prefixCls:n,key:p[t]},a),{},{additionalProps:c,rowType:"header",column:r}),{default:()=>r.title,dragHandle:()=>u.resizable?$(j_,{prefixCls:n,width:u.width,minWidth:u.minWidth,maxWidth:u.maxWidth,column:u},null):null})}))]})}}});const H_=r({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=x_(),n=d((()=>function(e){const t=[];!function e(n,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];let l=o;const i=n.filter(Boolean).map((n=>{const o={key:n.key,class:pe(n.className,n.class),column:n,colStart:l};let i=1;const a=n.children;return a&&a.length>0&&(i=e(a,l,r+1).reduce(((e,t)=>e+t),0),o.hasSubColumns=!0),"colSpan"in n&&({colSpan:i}=n),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=i,o.colEnd=o.colStart+i-1,t[r].push(o),l+=i,i}));return i}(e,0);const n=t.length;for(let o=0;o{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-o)}));return t}(e.columns)));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:l,flattenColumns:i,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return $(s,{class:`${o}-thead`},{default:()=>[n.value.map(((e,t)=>$(N_,{key:t,flattenColumns:i,cells:e,stickyOffsets:l,rowComponent:c,cellComponent:u,customHeaderRow:a,index:t},null)))]})}}}),F_=Symbol("ExpandedRowProps"),L_=r({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=x_(),l=p(F_,{}),{fixHeader:i,fixColumn:a,componentWidth:s,horizonScroll:c}=l;return()=>{const{prefixCls:t,component:l,cellComponent:u,expanded:d,colSpan:p,isEmpty:v}=e;return $(l,{class:o.class,style:{display:d?null:"none"}},{default:()=>[$(B_,{component:u,prefixCls:t,colSpan:p},{default:()=>{var e;let o=null===(e=n.default)||void 0===e?void 0:e.call(n);return(v?c.value:a.value)&&(o=$("div",{style:{width:s.value-(i.value?r.scrollbarSize:0)+"px",position:"sticky",left:0,overflow:"hidden"},class:`${t}-expanded-row-fixed`},[o])),o}})]})}}}),__=r({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=f();return i((()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)})),()=>$(Ze,{onResize:t=>{let{offsetWidth:o}=t;n("columnResize",e.columnKey,o)}},{default:()=>[$("td",{ref:o,style:{padding:0,border:0,height:0}},[$("div",{style:{height:0,overflow:"hidden"}},[B(" ")])])]})}}),W_=Symbol("BodyContextProps"),K_=()=>p(W_,{}),V_=r({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(t,n){let{attrs:o}=n;const r=x_(),l=K_(),i=g(!1),a=d((()=>t.expandedKeys&&t.expandedKeys.has(t.recordKey)));m((()=>{a.value&&(i.value=!0)}));const s=d((()=>"row"===l.expandableType&&(!t.rowExpandable||t.rowExpandable(t.record)))),c=d((()=>"nest"===l.expandableType)),u=d((()=>t.childrenColumnName&&t.record&&t.record[t.childrenColumnName])),p=d((()=>s.value||c.value)),v=(e,t)=>{l.onTriggerExpand(e,t)},f=d((()=>{var e;return(null===(e=t.customRow)||void 0===e?void 0:e.call(t,t.record,t.index))||{}})),h=function(e){var n,o;l.expandRowByClick&&p.value&&v(t.record,e);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a{const{record:e,index:n,indent:o}=t,{rowClassName:r}=l;return"string"==typeof r?r:"function"==typeof r?r(e,n,o):""})),y=d((()=>C_(l.flattenColumns)));return()=>{const{class:n,style:d}=o,{record:p,index:g,rowKey:m,indent:x=0,rowComponent:S,cellComponent:w}=t,{prefixCls:C,fixedInfoList:k,transformCellText:O}=r,{flattenColumns:I,expandedRowClassName:M,indentSize:P,expandIcon:E,expandedRowRender:T,expandIconColumnIndex:A}=l,B=$(S,U(U({},f.value),{},{"data-row-key":m,class:pe(n,`${C}-row`,`${C}-row-level-${x}`,b.value,f.value.class),style:[d,f.value.style],onClick:h}),{default:()=>[I.map(((n,o)=>{const{customRender:r,dataIndex:l,className:i}=n,s=y[o],d=k[o];let f;n.customCell&&(f=n.customCell(p,g,n));const h=o===(A||0)&&c.value?$(e,null,[$("span",{style:{paddingLeft:P*x+"px"},class:`${C}-row-indent indent-level-${x}`},null),E({prefixCls:C,expanded:a.value,expandable:u.value,record:p,onExpand:v})]):null;return $(B_,U(U({cellType:"body",class:i,ellipsis:n.ellipsis,align:n.align,component:w,prefixCls:C,key:s,record:p,index:g,renderIndex:t.renderIndex,dataIndex:l,customRender:r},d),{},{additionalProps:f,column:n,transformCellText:O,appendNode:h}),null)}))]});let D;if(s.value&&(i.value||a.value)){const e=T({record:p,index:g,indent:x+1,expanded:a.value}),t=M&&M(p,g,x);D=$(L_,{expanded:a.value,class:pe(`${C}-expanded-row`,`${C}-expanded-row-level-${x+1}`,t),prefixCls:C,component:S,cellComponent:w,colSpan:I.length,isEmpty:!1},{default:()=>[e]})}return $(e,null,[B,D])}}});function X_(e,t,n,o,r,l){const i=[];i.push({record:e,indent:t,index:l});const a=r(e),s=null==o?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{}}),r=x_(),l=K_(),i=(a=M(e,"data"),s=M(e,"childrenColumnName"),c=M(e,"expandedKeys"),u=M(e,"getRowKey"),d((()=>{const e=s.value,t=c.value,n=a.value;if(null==t?void 0:t.size){const o=[];for(let r=0;r<(null==n?void 0:n.length);r+=1){const l=n[r];o.push(...X_(l,0,e,t,u.value,r))}return o}return null==n?void 0:n.map(((e,t)=>({record:e,indent:0,index:t})))})));var a,s,c,u;const f=g(-1),h=g(-1);let m;return(e=>{v(T_,e)})({startRow:f,endRow:h,onHover:(e,t)=>{clearTimeout(m),m=setTimeout((()=>{f.value=e,h.value=t}),100)}}),()=>{var t;const{data:a,getRowKey:s,measureColumnWidth:c,expandedKeys:u,customRow:d,rowExpandable:p,childrenColumnName:v}=e,{onColumnResize:f}=o,{prefixCls:h,getComponent:g}=r,{flattenColumns:m}=l,b=g(["body","wrapper"],"tbody"),y=g(["body","row"],"tr"),x=g(["body","cell"],"td");let S;S=a.length?i.value.map(((e,t)=>{const{record:n,indent:o,index:r}=e,l=s(n,t);return $(V_,{key:l,rowKey:l,record:n,recordKey:l,index:t,renderIndex:r,rowComponent:y,cellComponent:x,expandedKeys:u,customRow:d,getRowKey:s,rowExpandable:p,childrenColumnName:v,indent:o},null)})):$(L_,{expanded:!0,class:`${h}-placeholder`,prefixCls:h,component:y,cellComponent:x,colSpan:m.length,isEmpty:!0},{default:()=>[null===(t=n.emptyNode)||void 0===t?void 0:t.call(n)]});const w=C_(m);return $(b,{class:`${h}-tbody`},{default:()=>[c&&$("tr",{"aria-hidden":"true",class:`${h}-measure-row`,style:{height:0,fontSize:0}},[w.map((e=>$(__,{key:e,columnKey:e,onColumnResize:f},null)))]),S]})}}}),U_={};var q_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{fixed:n}=t,o=!0===n?"left":n,r=t.children;return r&&r.length>0?[...e,...Q_(r).map((e=>q({fixed:o},e)))]:[...e,q(q({},t),{fixed:o})]}),[])}function Z_(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:l,getRowKey:i,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:p,expandRowByClick:v,expandColumnWidth:f,expandFixed:h}=e;const g=M_(),m=d((()=>{if(r.value){let e=o.value.slice();if(!e.includes(U_)){const t=u.value||0;t>=0&&e.splice(t,0,U_)}const t=e.indexOf(U_);e=e.filter(((e,n)=>e!==U_||n===t));const r=o.value[t];let d;d="left"!==h.value&&!h.value||u.value?"right"!==h.value&&!h.value||u.value!==o.value.length?r?r.fixed:null:"right":"left";const p=l.value,m=c.value,b=s.value,y=n.value,x=v.value,S={[E_]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:L(g.value,"expandColumnTitle",{},(()=>[""])),fixed:d,class:`${n.value}-row-expand-icon-cell`,width:f.value,customRender:e=>{let{record:t,index:n}=e;const o=i.value(t,n),r=p.has(o),l=!m||m(t),s=b({prefixCls:y,expanded:r,expandable:l,record:t,onExpand:a});return x?$("span",{onClick:e=>e.stopPropagation()},[s]):s}};return e.map((e=>e===U_?S:e))}return o.value.filter((e=>e!==U_))})),b=d((()=>{let e=m.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:()=>null}]),e})),y=d((()=>"rtl"===p.value?Q_(b.value).map((e=>{const{fixed:t}=e;let n=t;return"left"===t?n="right":"right"===t&&(n="left"),q({fixed:n},q_(e,["fixed"]))})):Q_(b.value)));return[b,y]}function J_(e){const t=g(e);let n;const o=g([]);return b((()=>{rt.cancel(n)})),[t,function(e){o.value.push(e),rt.cancel(n),n=rt((()=>{const e=o.value;o.value=[],e.forEach((e=>{t.value=e(t.value)}))}))}]}var eW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r=0;i-=1){const e=t[i],o=n&&n[i],a=o&&o[E_];if(e||a||l){const t=eW(a||{},["columnType"]);r.unshift($("col",U({key:i,style:{width:"number"==typeof e?`${e}px`:e}},t),null)),l=!0}}return $("colgroup",null,[r])}function nW(e,t){let{slots:n}=t;var o;return $("div",null,[null===(o=n.default)||void 0===o?void 0:o.call(n)])}nW.displayName="Panel";let oW=0;const rW=r({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=x_(),r="table-summary-uni-key-"+ ++oW,l=d((()=>""===e.fixed||e.fixed));return m((()=>{o.summaryCollect(r,l.value)})),b((()=>{o.summaryCollect(r,!1)})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),lW=r({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var e;return $("tr",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),iW=Symbol("SummaryContextProps"),aW=r({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=x_(),l=p(iW,{});return()=>{const{index:t,colSpan:i=1,rowSpan:a,align:s}=e,{prefixCls:c,direction:u}=r,{scrollColumnIndex:d,stickyOffsets:p,flattenColumns:v}=l,f=t+i-1+1===d?i+1:i,h=D_(t,t+f-1,v,p,u);return $(B_,U({class:n.class,index:t,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:f,rowSpan:a,customRender:()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}},h),null)}}}),sW=r({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=x_();return(e=>{v(iW,e)})(l({stickyOffsets:M(e,"stickyOffsets"),flattenColumns:M(e,"flattenColumns"),scrollColumnIndex:d((()=>{const t=e.flattenColumns.length-1,n=e.flattenColumns[t];return(null==n?void 0:n.scrollbar)?t:null}))})),()=>{var e;const{prefixCls:t}=o;return $("tfoot",{class:`${t}-summary`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),cW=rW;function uW(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:l}=e;const i=`${t}-row-expand-icon`;if(!l)return $("span",{class:[i,`${t}-row-spaced`]},null);return $("span",{class:{[i]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:e=>{o(n,e),e.stopPropagation()}},null)}const dW=r({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=x_(),l=g(0),a=g(0),s=g(0);m((()=>{l.value=e.scrollBodySizeInfo.scrollWidth||0,a.value=e.scrollBodySizeInfo.clientWidth||0,s.value=l.value&&a.value*(a.value/l.value)}),{flush:"post"});const u=g(),[d,p]=J_({scrollLeft:0,isHiddenScrollBar:!0}),v=f({delta:0,x:0}),h=g(!1),y=()=>{h.value=!1},x=e=>{v.value={delta:e.pageX-d.value.scrollLeft,x:0},h.value=!0,e.preventDefault()},w=e=>{const{buttons:t}=e||(null===window||void 0===window?void 0:window.event);if(!h.value||0===t)return void(h.value&&(h.value=!1));let o=v.value.x+e.pageX-v.value.x-v.value.delta;o<=0&&(o=0),o+s.value>=a.value&&(o=a.value-s.value),n("scroll",{scrollLeft:o/a.value*(l.value+2)}),v.value.x=e.pageX},C=()=>{if(!e.scrollBodyRef.value)return;const t=Oz(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,o=e.container===window?document.documentElement.scrollTop+window.innerHeight:Oz(e.container).top+e.container.clientHeight;n-Yu()<=o||t>=o-e.offsetScroll?p((e=>q(q({},e),{isHiddenScrollBar:!0}))):p((e=>q(q({},e),{isHiddenScrollBar:!1})))};o({setScrollLeft:e=>{p((t=>q(q({},t),{scrollLeft:e/l.value*a.value||0})))}});let k=null,O=null,I=null,M=null;i((()=>{k=bt(document.body,"mouseup",y,!1),O=bt(document.body,"mousemove",w,!1),I=bt(window,"resize",C,!1)})),W((()=>{S((()=>{C()}))})),i((()=>{setTimeout((()=>{c([s,h],(()=>{C()}),{immediate:!0,flush:"post"})}))})),c((()=>e.container),(()=>{null==M||M.remove(),M=bt(e.container,"scroll",C,!1)}),{immediate:!0,flush:"post"}),b((()=>{null==k||k.remove(),null==O||O.remove(),null==M||M.remove(),null==I||I.remove()})),c((()=>q({},d.value)),((t,n)=>{t.isHiddenScrollBar===(null==n?void 0:n.isHiddenScrollBar)||t.isHiddenScrollBar||p((t=>{const n=e.scrollBodyRef.value;return n?q(q({},t),{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t}))}),{immediate:!0});const P=Yu();return()=>{if(l.value<=a.value||!s.value||d.value.isHiddenScrollBar)return null;const{prefixCls:t}=r;return $("div",{style:{height:`${P}px`,width:`${a.value}px`,bottom:`${e.offsetScroll}px`},class:`${t}-sticky-scroll`},[$("div",{onMousedown:x,ref:u,class:pe(`${t}-sticky-scroll-bar`,{[`${t}-sticky-scroll-bar-active`]:h.value}),style:{width:`${s.value}px`,transform:`translate3d(${d.value.scrollLeft}px, 0, 0)`}},null)])}}}),pW=Jt()?window:null;const vW=r({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=x_(),a=d((()=>l.isSticky&&!e.fixHeader?0:l.scrollbarSize)),s=f(),c=e=>{const{currentTarget:t,deltaX:n}=e;n&&(r("scroll",{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},u=f();i((()=>{S((()=>{u.value=bt(s.value,"wheel",c)}))})),b((()=>{var e;null===(e=u.value)||void 0===e||e.remove()}));const p=d((()=>e.flattenColumns.every((e=>e.width&&0!==e.width&&"0px"!==e.width)))),v=f([]),h=f([]);m((()=>{const t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${l.prefixCls}-cell-scrollbar`})};v.value=a.value?[...e.columns,n]:e.columns,h.value=a.value?[...e.flattenColumns,n]:e.flattenColumns}));const g=d((()=>{const{stickyOffsets:t,direction:n}=e,{right:o,left:r}=t;return q(q({},t),{left:"rtl"===n?[...r.map((e=>e+a.value)),0]:r,right:"rtl"===n?o:[...o.map((e=>e+a.value)),0],isSticky:l.isSticky})})),y=(x=M(e,"colWidths"),w=M(e,"columCount"),d((()=>{const e=[],t=x.value,n=w.value;for(let o=0;o{var t;const{noData:r,columCount:i,stickyTopOffset:c,stickyBottomOffset:u,stickyClassName:d,maxContentScroll:f}=e,{isSticky:m}=l;return $("div",{style:q({overflow:"hidden"},m?{top:`${c}px`,bottom:`${u}px`}:{}),ref:s,class:pe(n.class,{[d]:!!d})},[$("table",{style:{tableLayout:"fixed",visibility:r||y.value?null:"hidden"}},[(!r||!f||p.value)&&$(tW,{colWidths:y.value?[...y.value,a.value]:[],columCount:i+1,columns:h.value},null),null===(t=o.default)||void 0===t?void 0:t.call(o,q(q({},e),{stickyOffsets:g.value,columns:v.value,flattenColumns:h.value}))])])}}});function fW(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[t,M(e,t)]))))}const hW=[],gW={},mW="rc-table-internal-hook",bW=r({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(t,n){let{attrs:o,slots:r,emit:s}=n;const u=d((()=>t.data||hW)),p=d((()=>!!u.value.length)),h=d((()=>k_(t.components,{}))),y=(e,t)=>w_(h.value,e)||t,x=d((()=>{const e=t.rowKey;return"function"==typeof e?e:t=>t&&t[e]})),w=d((()=>t.expandIcon||uW)),C=d((()=>t.childrenColumnName||"children")),k=d((()=>t.expandedRowRender?"row":!(!t.canExpandable&&!u.value.some((e=>e&&"object"==typeof e&&e[C.value])))&&"nest")),O=g([]),I=m((()=>{t.defaultExpandedRowKeys&&(O.value=t.defaultExpandedRowKeys),t.defaultExpandAllRows&&(O.value=function(e,t,n){const o=[];return function e(r){(r||[]).forEach(((r,l)=>{o.push(t(r,l)),e(r[n])}))}(e),o}(u.value,x.value,C.value))}));I();const P=d((()=>new Set(t.expandedRowKeys||O.value||[]))),E=e=>{const t=x.value(e,u.value.indexOf(e));let n;const o=P.value.has(t);o?(P.value.delete(t),n=[...P.value]):n=[...P.value,t],O.value=n,s("expand",!o,e),s("update:expandedRowKeys",n),s("expandedRowsChange",n)},T=f(0),[A,B]=Z_(q(q({},z(t)),{expandable:d((()=>!!t.expandedRowRender)),expandedKeys:P,getRowKey:x,onTriggerExpand:E,expandIcon:w}),d((()=>t.internalHooks===mW?t.transformColumns:null))),D=d((()=>({columns:A.value,flattenColumns:B.value}))),R=f(),j=f(),N=f(),H=f({scrollWidth:0,clientWidth:0}),F=f(),[L,_]=wp(!1),[W,K]=wp(!1),[V,X]=J_(new Map),G=d((()=>C_(B.value))),Y=d((()=>G.value.map((e=>V.value.get(e))))),Q=d((()=>B.value.length)),Z=(J=Y,ee=Q,te=M(t,"direction"),d((()=>{const e=[],t=[];let n=0,o=0;const r=J.value,l=ee.value,i=te.value;for(let a=0;at.scroll&&O_(t.scroll.y))),oe=d((()=>t.scroll&&O_(t.scroll.x)||Boolean(t.expandFixed))),re=d((()=>oe.value&&B.value.some((e=>{let{fixed:t}=e;return t})))),le=f(),ie=function(e,t){return d((()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:l=(()=>pW)}="object"==typeof e.value?e.value:{},i=l()||pW,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:i}}))}(M(t,"sticky"),M(t,"prefixCls")),ae=l({}),se=d((()=>{const e=Object.values(ae)[0];return(ne.value||ie.value.isSticky)&&e})),ce=f({}),de=f({}),ve=f({});m((()=>{ne.value&&(de.value={overflowY:"scroll",maxHeight:ue(t.scroll.y)}),oe.value&&(ce.value={overflowX:"auto"},ne.value||(de.value={overflowY:"hidden"}),ve.value={width:!0===t.scroll.x?"auto":ue(t.scroll.x),minWidth:"100%"})}));const[fe,he]=function(e){const t=f(e||null),n=f();function o(){clearTimeout(n.value)}return b((()=>{o()})),[function(e){t.value=e,o(),n.value=setTimeout((()=>{t.value=null,n.value=void 0}),100)},function(){return t.value}]}(null);function ge(e,t){if(!t)return;if("function"==typeof t)return void t(e);const n=t.$el||t;n.scrollLeft!==e&&(n.scrollLeft=e)}const me=e=>{let{currentTarget:n,scrollLeft:o}=e;var r;const l="rtl"===t.direction,i="number"==typeof o?o:n.scrollLeft,a=n||gW;if(he()&&he()!==a||(fe(a),ge(i,j.value),ge(i,N.value),ge(i,F.value),ge(i,null===(r=le.value)||void 0===r?void 0:r.setScrollLeft)),n){const{scrollWidth:e,clientWidth:t}=n;l?(_(-i0)):(_(i>0),K(i{oe.value&&N.value?me({currentTarget:N.value}):(_(!1),K(!1))};let ye;const $e=e=>{e!==T.value&&(be(),T.value=R.value?R.value.offsetWidth:e)},xe=e=>{let{width:t}=e;clearTimeout(ye),0!==T.value?ye=setTimeout((()=>{$e(t)}),100):$e(t)};c([oe,()=>t.data,()=>t.columns],(()=>{oe.value&&be()}),{flush:"post"});const[Se,we]=wp(0);i((()=>{A_.value=A_.value||TP("position","sticky")})),i((()=>{S((()=>{var e,t;be(),we(function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:Uu(t),height:Uu(n)}}(N.value).width),H.value={scrollWidth:(null===(e=N.value)||void 0===e?void 0:e.scrollWidth)||0,clientWidth:(null===(t=N.value)||void 0===t?void 0:t.clientWidth)||0}}))})),a((()=>{S((()=>{var e,t;const n=(null===(e=N.value)||void 0===e?void 0:e.scrollWidth)||0,o=(null===(t=N.value)||void 0===t?void 0:t.clientWidth)||0;H.value.scrollWidth===n&&H.value.clientWidth===o||(H.value={scrollWidth:n,clientWidth:o})}))})),m((()=>{t.internalHooks===mW&&t.internalRefs&&t.onUpdateInternalRefs({body:N.value?N.value.$el||N.value:null})}),{flush:"post"});const Ce=d((()=>t.tableLayout?t.tableLayout:re.value?"max-content"===t.scroll.x?"auto":"fixed":ne.value||ie.value.isSticky||B.value.some((e=>{let{ellipsis:t}=e;return t}))?"fixed":"auto")),ke=()=>{var e;return p.value?null:(null===(e=r.emptyText)||void 0===e?void 0:e.call(r))||"No Data"};(e=>{v($_,e)})(l(q(q({},z(fW(t,"prefixCls","direction","transformCellText"))),{getComponent:y,scrollbarSize:Se,fixedInfoList:d((()=>B.value.map(((e,n)=>D_(n,n,B.value,Z.value,t.direction))))),isSticky:d((()=>ie.value.isSticky)),summaryCollect:(e,t)=>{t?ae[e]=t:delete ae[e]}}))),(e=>{v(W_,e)})(l(q(q({},z(fW(t,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:A,flattenColumns:B,tableLayout:Ce,expandIcon:w,expandableType:k,onTriggerExpand:E}))),(e=>{v(G_,e)})({onColumnResize:(e,t)=>{ns(R.value)&&X((n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n}))}}),(e=>{v(F_,e)})({componentWidth:T,fixHeader:ne,fixColumn:re,horizonScroll:oe});const Oe=()=>$(Y_,{data:u.value,measureColumnWidth:ne.value||oe.value||ie.value.isSticky,expandedKeys:P.value,rowExpandable:t.rowExpandable,getRowKey:x.value,customRow:t.customRow,childrenColumnName:C.value},{emptyNode:ke}),Ie=()=>$(tW,{colWidths:B.value.map((e=>{let{width:t}=e;return t})),columns:B.value},null);return()=>{var n;const{prefixCls:l,scroll:i,tableLayout:a,direction:s,title:c=r.title,footer:d=r.footer,id:p,showHeader:v,customHeaderRow:f}=t,{isSticky:h,offsetHeader:g,offsetSummary:m,offsetScroll:b,stickyClassName:x,container:S}=ie.value,w=y(["table"],"table"),C=y(["body"]),k=null===(n=r.summary)||void 0===n?void 0:n.call(r,{pageData:u.value});let O=()=>null;const I={colWidths:Y.value,columCount:B.value.length,stickyOffsets:Z.value,customHeaderRow:f,fixHeader:ne.value,scroll:i};if(ne.value||h){let t=()=>null;"function"==typeof C?(t=()=>C(u.value,{scrollbarSize:Se.value,ref:N,onScroll:me}),I.colWidths=B.value.map(((e,t)=>{let{width:n}=e;const o=t===A.value.length-1?n-Se.value:n;return"number"!=typeof o||Number.isNaN(o)?0:o}))):t=()=>$("div",{style:q(q({},ce.value),de.value),onScroll:me,ref:N,class:pe(`${l}-body`)},[$(w,{style:q(q({},ve.value),{tableLayout:Ce.value})},{default:()=>[Ie(),Oe(),!se.value&&k&&$(sW,{stickyOffsets:Z.value,flattenColumns:B.value},{default:()=>[k]})]})]);const n=q(q(q({noData:!u.value.length,maxContentScroll:oe.value&&"max-content"===i.x},I),D.value),{direction:s,stickyClassName:x,onScroll:me});O=()=>$(e,null,[!1!==v&&$(vW,U(U({},n),{},{stickyTopOffset:g,class:`${l}-header`,ref:j}),{default:t=>$(e,null,[$(H_,t,null),"top"===se.value&&$(sW,t,{default:()=>[k]})])}),t(),se.value&&"top"!==se.value&&$(vW,U(U({},n),{},{stickyBottomOffset:m,class:`${l}-summary`,ref:F}),{default:e=>$(sW,e,{default:()=>[k]})}),h&&N.value&&$(dW,{ref:le,offsetScroll:b,scrollBodyRef:N,onScroll:me,container:S,scrollBodySizeInfo:H.value},null)])}else O=()=>$("div",{style:q(q({},ce.value),de.value),class:pe(`${l}-content`),onScroll:me,ref:N},[$(w,{style:q(q({},ve.value),{tableLayout:Ce.value})},{default:()=>[Ie(),!1!==v&&$(H_,U(U({},I),D.value),null),Oe(),k&&$(sW,{stickyOffsets:Z.value,flattenColumns:B.value},{default:()=>[k]})]})]);const M=yd(o,{aria:!0,data:!0}),P=()=>$("div",U(U({},M),{},{class:pe(l,{[`${l}-rtl`]:"rtl"===s,[`${l}-ping-left`]:L.value,[`${l}-ping-right`]:W.value,[`${l}-layout-fixed`]:"fixed"===a,[`${l}-fixed-header`]:ne.value,[`${l}-fixed-column`]:re.value,[`${l}-scroll-horizontal`]:oe.value,[`${l}-has-fix-left`]:B.value[0]&&B.value[0].fixed,[`${l}-has-fix-right`]:B.value[Q.value-1]&&"right"===B.value[Q.value-1].fixed,[o.class]:o.class}),style:o.style,id:p,ref:R}),[c&&$(nW,{class:`${l}-title`},{default:()=>[c(u.value)]}),$("div",{class:`${l}-container`},[O()]),d&&$(nW,{class:`${l}-footer`},{default:()=>[d(u.value)]})]);return oe.value?$(Ze,{onResize:xe},{default:P}):P()}}});const yW=10;function $W(e,t,n){const o=d((()=>t.value&&"object"==typeof t.value?t.value:{})),r=d((()=>o.value.total||0)),[l,i]=wp((()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:yW}))),a=d((()=>{const t=function(){const e=q({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[t];void 0!==o&&(e[t]=o)}))}return e}(l.value,o.value,{total:r.value>0?r.value:e.value}),n=Math.ceil((r.value||e.value)/t.pageSize);return t.current>n&&(t.current=n||1),t})),s=(e,n)=>{!1!==t.value&&i({current:null!=e?e:1,pageSize:n||a.value.pageSize})},c=(e,r)=>{var l,i;t.value&&(null===(i=(l=o.value).onChange)||void 0===i||i.call(l,e,r)),s(e,r),n(e,r||a.value.pageSize)};return[d((()=>!1===t.value?{}:q(q({},a.value),{onChange:c}))),s]}const xW={},SW="SELECT_ALL",wW="SELECT_INVERT",CW="SELECT_NONE",kW=[];function OW(e,t){let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[...n,...OW(e,t[e])])})),n}function IW(e,t){const n=d((()=>{const t=e.value||{},{checkStrictly:n=!0}=t;return q(q({},t),{checkStrictly:n})})),[o,r]=Sp(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||kW,{value:d((()=>n.value.selectedRowKeys))}),l=g(new Map),i=e=>{if(n.value.preserveSelectedRowKeys){const n=new Map;e.forEach((e=>{let o=t.getRecordByKey(e);!o&&l.value.has(e)&&(o=l.value.get(e)),n.set(e,o)})),l.value=n}};m((()=>{i(o.value)}));const a=d((()=>n.value.checkStrictly?null:nP(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities)),s=d((()=>OW(t.childrenColumnName.value,t.pageData.value))),c=d((()=>{const e=new Map,o=t.getRowKey.value,r=n.value.getCheckboxProps;return s.value.forEach(((t,n)=>{const l=o(t,n),i=(r?r(t):null)||{};e.set(l,i)})),e})),{maxLevel:u,levelEntities:p}=$P(a),v=e=>{var n;return!!(null===(n=c.value.get(t.getRowKey.value(e)))||void 0===n?void 0:n.disabled)},f=d((()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=pP(o.value,!0,a.value,u.value,p.value,v);return[e||[],t]})),h=d((()=>f.value[0])),b=d((()=>f.value[1])),y=d((()=>{const e="radio"===n.value.type?h.value.slice(0,1):h.value;return new Set(e)})),x=d((()=>"radio"===n.value.type?new Set:new Set(b.value))),[S,w]=wp(null),C=e=>{let o,a;i(e);const{preserveSelectedRowKeys:s,onChange:c}=n.value,{getRecordByKey:u}=t;s?(o=e,a=e.map((e=>l.value.get(e)))):(o=[],a=[],e.forEach((e=>{const t=u(e);void 0!==t&&(o.push(e),a.push(t))}))),r(o),null==c||c(o,a)},k=(e,o,r,l)=>{const{onSelect:i}=n.value,{getRecordByKey:a}=t||{};if(i){const t=r.map((e=>a(e)));i(a(e),o,t,l)}C(r)},O=d((()=>{const{onSelectInvert:e,onSelectNone:o,selections:r,hideSelectAll:l}=n.value,{data:i,pageData:a,getRowKey:s,locale:u}=t;if(!r||l)return null;return(!0===r?[SW,wW,CW]:r).map((t=>t===SW?{key:"all",text:u.value.selectionAll,onSelect(){C(i.value.map(((e,t)=>s.value(e,t))).filter((e=>{const t=c.value.get(e);return!(null==t?void 0:t.disabled)||y.value.has(e)})))}}:t===wW?{key:"invert",text:u.value.selectInvert,onSelect(){const t=new Set(y.value);a.value.forEach(((e,n)=>{const o=s.value(e,n),r=c.value.get(o);(null==r?void 0:r.disabled)||(t.has(o)?t.delete(o):t.add(o))}));const n=Array.from(t);e&&(Mi(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),e(n)),C(n)}}:t===CW?{key:"none",text:u.value.selectNone,onSelect(){null==o||o(),C(Array.from(y.value).filter((e=>{const t=c.value.get(e);return null==t?void 0:t.disabled})))}}:t))})),I=d((()=>s.value.length));return[o=>{var r;const{onSelectAll:l,onSelectMultiple:i,columnWidth:d,type:f,fixed:g,renderCell:m,hideSelectAll:b,checkStrictly:M}=n.value,{prefixCls:P,getRecordByKey:E,getRowKey:T,expandType:A,getPopupContainer:B}=t;if(!e.value)return o.filter((e=>e!==xW));let D=o.slice();const z=new Set(y.value),R=s.value.map(T.value).filter((e=>!c.value.get(e).disabled)),j=R.every((e=>z.has(e))),N=R.some((e=>z.has(e))),H=()=>{const e=[];j?R.forEach((t=>{z.delete(t),e.push(t)})):R.forEach((t=>{z.has(t)||(z.add(t),e.push(t))}));const t=Array.from(z);null==l||l(!j,t.map((e=>E(e))),e.map((e=>E(e)))),C(t)};let F,L;if("radio"!==f){let e;if(O.value){const t=$(NS,{getPopupContainer:B.value},{default:()=>[O.value.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return $(NS.Item,{key:n||t,onClick:()=>{null==r||r(R)}},{default:()=>[o]})}))]});e=$("div",{class:`${P.value}-selection-extra`},[$(Hx,{overlay:t,getPopupContainer:B.value},{default:()=>[$("span",null,[$(yv,null,null)])]})])}const t=s.value.map(((e,t)=>{const n=T.value(e,t),o=c.value.get(n)||{};return q({checked:z.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===I.value,o=n&&t.every((e=>{let{checked:t}=e;return t})),r=n&&t.some((e=>{let{checked:t}=e;return t}));F=!b&&$("div",{class:`${P.value}-selection`},[$(ST,{checked:n?o:!!I.value&&j,indeterminate:n?!o&&r:!j&&N,onChange:H,disabled:0===I.value||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0},null),e])}L="radio"===f?e=>{let{record:t,index:n}=e;const o=T.value(t,n),r=z.has(o);return{node:$(wk,U(U({},c.value.get(o)),{},{checked:r,onClick:e=>e.stopPropagation(),onChange:e=>{z.has(o)||k(o,!0,[o],e.nativeEvent)}}),null),checked:r}}:e=>{let{record:t,index:n}=e;var o;const r=T.value(t,n),l=z.has(r),s=x.value.has(r),d=c.value.get(r);let f;return"nest"===A.value?(f=s,Mi("boolean"!=typeof(null==d?void 0:d.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):f=null!==(o=null==d?void 0:d.indeterminate)&&void 0!==o?o:s,{node:$(ST,U(U({},d),{},{indeterminate:f,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let o=-1,s=-1;if(n&&M){const e=new Set([S.value,r]);R.some(((t,n)=>{if(e.has(t)){if(-1!==o)return s=n,!0;o=n}return!1}))}if(-1!==s&&o!==s&&M){const e=R.slice(o,s+1),t=[];l?e.forEach((e=>{z.has(e)&&(t.push(e),z.delete(e))})):e.forEach((e=>{z.has(e)||(t.push(e),z.add(e))}));const n=Array.from(z);null==i||i(!l,n.map((e=>E(e))),t.map((e=>E(e)))),C(n)}else{const e=h.value;if(M){const n=l?KM(e,r):VM(e,r);k(r,!l,n,t)}else{const n=pP([...e,r],!0,a.value,u.value,p.value,v),{checkedKeys:o,halfCheckedKeys:i}=n;let s=o;if(l){const e=new Set(o);e.delete(r),s=pP(Array.from(e),{checked:!1,halfCheckedKeys:i},a.value,u.value,p.value,v).checkedKeys}k(r,!l,s,t)}}w(r)}}),null),checked:l}};if(!D.includes(xW))if(0===D.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[E_])||void 0===t?void 0:t.columnType)}))){const[e,...t]=D;D=[e,xW,...t]}else D=[xW,...D];const _=D.indexOf(xW);D=D.filter(((e,t)=>e!==xW||t===_));const W=D[_-1],K=D[_+1];let V=g;void 0===V&&(void 0!==(null==K?void 0:K.fixed)?V=K.fixed:void 0!==(null==W?void 0:W.fixed)&&(V=W.fixed)),V&&W&&"EXPAND_COLUMN"===(null===(r=W[E_])||void 0===r?void 0:r.columnType)&&void 0===W.fixed&&(W.fixed=V);const X={fixed:V,width:d,className:`${P.value}-selection-column`,title:n.value.columnTitle||F,customRender:e=>{let{record:t,index:n}=e;const{node:o,checked:r}=L({record:t,index:n});return m?m(r,t,n,o):o},[E_]:{class:`${P.value}-selection-col`}};return D.map((e=>e===xW?X:e))},y]}const MW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function PW(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[]),t=[];return e.forEach((e=>{var n,o,r,l;if(!e)return;const i=e.key,a=(null===(n=e.props)||void 0===n?void 0:n.style)||{},s=(null===(o=e.props)||void 0===o?void 0:o.class)||"",c=e.props||{};for(const[t,f]of Object.entries(c))c[re(t)]=f;const u=e.children||{},{default:d}=u,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const i=HW(l,n);e.children?("sortOrder"in e&&r(e,i),o=[...o,...XW(e.children,t,i)]):e.sorter&&("sortOrder"in e?r(e,i):t&&e.defaultSortOrder&&o.push({column:e,key:NW(e,i),multiplePriority:KW(e),sortOrder:e.defaultSortOrder}))})),o}function GW(e,t,n,o,r,l,i,a){return(t||[]).map(((t,s)=>{const c=HW(s,a);let u=t;if(u.sorter){const a=u.sortDirections||r,s=void 0===u.showSorterTooltip?i:u.showSorterTooltip,d=NW(u,c),p=n.find((e=>{let{key:t}=e;return t===d})),v=p?p.sortOrder:null,f=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(a,v),h=a.includes(_W)&&$(jW,{class:pe(`${e}-column-sorter-up`,{active:v===_W}),role:"presentation"},null),g=a.includes(WW)&&$(AW,{role:"presentation",class:pe(`${e}-column-sorter-down`,{active:v===WW})},null),{cancelSort:m,triggerAsc:b,triggerDesc:y}=l||{};let x=m;f===WW?x=y:f===_W&&(x=b);const S="object"==typeof s?s:{title:x};u=q(q({},u),{className:pe(u.className,{[`${e}-column-sort`]:v}),title:n=>{const o=$("div",{class:`${e}-column-sorters`},[$("span",{class:`${e}-column-title`},[FW(t.title,n)]),$("span",{class:pe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!h||!g)})},[$("span",{class:`${e}-column-sorter-inner`},[h,g])])]);return s?$(Jy,S,{default:()=>[o]}):o},customHeaderCell:n=>{const r=t.customHeaderCell&&t.customHeaderCell(n)||{},l=r.onClick,i=r.onKeydown;return r.onClick=e=>{o({column:t,key:d,sortOrder:f,multiplePriority:KW(t)}),l&&l(e)},r.onKeydown=e=>{e.keyCode===sd.ENTER&&(o({column:t,key:d,sortOrder:f,multiplePriority:KW(t)}),null==i||i(e))},v&&(r["aria-sort"]="ascend"===v?"ascending":"descending"),r.class=pe(r.class,`${e}-column-has-sorters`),r.tabindex=0,r}})}return"children"in u&&(u=q(q({},u),{children:GW(e,u.children,n,o,r,l,i,c)})),u}))}function YW(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function UW(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(YW);return 0===t.length&&e.length?q(q({},YW(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function qW(e,t,n){const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),l=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return VW(t)&&n}));return l.length?r.sort(((e,t)=>{for(let n=0;n{const o=e[n];return o?q(q({},e),{[n]:qW(o,t,n)}):e})):r}function QW(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:l,showSorterTooltip:i}=e;const[a,s]=wp(XW(n.value,!0)),c=d((()=>{let e=!0;const t=XW(n.value,!1);if(!t.length)return a.value;const o=[];function r(t){e?o.push(t):o.push(q(q({},t),{sortOrder:null}))}let l=null;return t.forEach((t=>{null===l?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:l=!0)):(l&&!1!==t.multiplePriority||(e=!1),r(t))})),o})),u=d((()=>{const e=c.value.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}));function p(e){let t;t=!1!==e.multiplePriority&&c.value.length&&!1!==c.value[0].multiplePriority?[...c.value.filter((t=>{let{key:n}=t;return n!==e.key})),e]:[e],s(t),o(UW(t),t)}const v=d((()=>UW(c.value)));return[e=>GW(t.value,e,c.value,p,r.value,l.value,i.value),c,u,v]}const ZW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function JW(e){for(var t=1;t{const{keyCode:t}=e;t===sd.ENTER&&e.stopPropagation()},rK=(e,t)=>{let{slots:n}=t;var o;return $("div",{onClick:e=>e.stopPropagation(),onKeydown:oK},[null===(o=n.default)||void 0===o?void 0:o.call(n)])},lK=r({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:ft(),onChange:dt(),filterSearch:ht([Boolean,Function]),tablePrefixCls:ft(),locale:ct()},setup:e=>()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:l}=e;return o?$("div",{class:`${r}-filter-dropdown-search`},[$(JD,{placeholder:l.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>$(Kv,null,null)})]):null}});var iK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re.motion?e.motion:SS())),u=(t,n)=>{var o,r,l,i;"appear"===n?null===(r=null===(o=s.value)||void 0===o?void 0:o.onAfterEnter)||void 0===r||r.call(o,t):"leave"===n&&(null===(i=null===(l=s.value)||void 0===l?void 0:l.onAfterLeave)||void 0===i||i.call(l,t)),a.value||e.onMotionEnd(),a.value=!0};return c((()=>e.motionNodes),(()=>{e.motionNodes&&"hide"===e.motionType&&r.value&&S((()=>{r.value=!1}))}),{immediate:!0,flush:"post"}),i((()=>{e.motionNodes&&e.onMotionStart()})),b((()=>{e.motionNodes&&u()})),()=>{const{motion:t,motionNodes:i,motionType:a,active:c,eventKey:d}=e,p=iK(e,["motion","motionNodes","motionType","active","eventKey"]);return i?$(k,U(U({},s.value),{},{appear:"show"===a,onAfterAppear:e=>u(e,"appear"),onAfterLeave:e=>u(e,"leave")}),{default:()=>[w($("div",{class:`${l.value.prefixCls}-treenode-motion`},[i.map((e=>{const t=iK(e.data,[]),{title:n,key:r,isStart:l,isEnd:i}=e;return delete t.children,$(WM,U(U({},t),{},{title:n,active:c,data:e.data,key:r,eventKey:r,isStart:l,isEnd:i}),o)}))]),[[P,r.value]])]}):$(WM,U(U({class:n.class,style:n.style},p),{},{active:c,eventKey:d}),o)}}});function sK(e,t,n){const o=e.findIndex((e=>e.key===n)),r=e[o+1],l=t.findIndex((e=>e.key===n));if(r){const e=t.findIndex((e=>e.key===r.key));return t.slice(l+1,e)}return t.slice(l+1)}var cK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},pK=`RC_TREE_MOTION_${Math.random()}`,vK={key:pK},fK={key:pK,level:0,index:0,pos:"0",node:vK,nodes:[vK]},hK={parent:null,children:[],pos:fK.pos,data:vK,title:null,key:pK,isStart:[],isEnd:[]};function gK(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function mK(e){const{key:t,pos:n}=e;return JM(t,n)}function bK(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const yK=r({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:HM,setup(t,n){let{expose:o,attrs:r}=n;const l=f(),i=f(),{expandedKeys:a,flattenNodes:s}=RM();o({scrollTo:e=>{l.value.scrollTo(e)},getIndentWidth:()=>i.value.offsetWidth});const u=g(s.value),p=g([]),v=f(null);function h(){u.value=s.value,p.value=[],v.value=null,t.onListChangeEnd()}const m=DM();c([()=>a.value.slice(),s],((e,n)=>{let[o,r]=e,[l,i]=n;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){const n=new Map;e.forEach((e=>{n.set(e,!0)}));const o=t.filter((e=>!n.has(e)));return 1===o.length?o[0]:null}return n{let{key:t}=e;return t===a.key})),l=gK(sK(i,r,a.key),e,n,o),s=i.slice();s.splice(t+1,0,hK),u.value=s,p.value=l,v.value="show"}else{const t=r.findIndex((e=>{let{key:t}=e;return t===a.key})),l=gK(sK(r,i,a.key),e,n,o),s=r.slice();s.splice(t+1,0,hK),u.value=s,p.value=l,v.value="hide"}}else i!==r&&(u.value=r)})),c((()=>m.value.dragging),(e=>{e||h()}));const b=d((()=>void 0===t.motion?u.value:s.value)),y=()=>{t.onActiveChange(null)};return()=>{const n=q(q({},t),r),{prefixCls:o,selectable:a,checkable:s,disabled:c,motion:u,height:d,itemHeight:f,virtual:g,focusable:m,activeItem:x,focused:S,tabindex:w,onKeydown:C,onFocus:k,onBlur:O,onListChangeStart:I,onListChangeEnd:M}=n,P=cK(n,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return $(e,null,[S&&x&&$("span",{style:uK,"aria-live":"assertive"},[bK(x)]),$("div",null,[$("input",{style:uK,disabled:!1===m||c,tabindex:!1!==m?w:null,onKeydown:C,onFocus:k,onBlur:O,value:"",onChange:dK,"aria-label":"for screen reader"},null)]),$("div",{class:`${o}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[$("div",{class:`${o}-indent`},[$("div",{ref:i,class:`${o}-indent-unit`},null)])]),$(cp,U(U({},Ml(P,["onActiveChange"])),{},{data:b.value,itemKey:mK,height:d,fullHeight:!1,virtual:g,itemHeight:f,prefixCls:`${o}-list`,ref:l,onVisibleChange:(e,t)=>{const n=new Set(e);t.filter((e=>!n.has(e))).some((e=>mK(e)===pK))&&h()}}),{default:e=>{const{pos:t}=e,n=cK(e.data,[]),{title:o,key:r,isStart:l,isEnd:i}=e,a=JM(r,t);return delete n.key,delete n.children,$(aK,U(U({},n),{},{eventKey:a,title:o,active:!!x&&r===x.key,data:e.data,isStart:l,isEnd:i,motion:u,motionNodes:r===pK?p.value:null,motionType:v.value,onMotionStart:I,onMotionEnd:h,onMousemove:y}),null)}})])}}});const $K=r({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Re(FM(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=-n*o+"px";break;case 1:r.bottom=0,r.left=-n*o+"px";break;case 0:r.bottom=0,r.left=`${o}`}return $("div",{style:r},null)},allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=g(!1);let a={};const u=g(),p=g([]),f=g([]),h=g([]),b=g([]),y=g([]),x=g([]),w={},C=l({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),k=g([]);c([()=>e.treeData,()=>e.children],(()=>{k.value=void 0!==e.treeData?R(e.treeData).slice():tP(R(e.children))}),{immediate:!0,deep:!0});const O=g({}),I=g(!1),M=g(null),P=g(!1),E=d((()=>eP(e.fieldNames))),T=g();let A=null,B=null,D=null;const z=d((()=>({expandedKeysSet:j.value,selectedKeysSet:N.value,loadedKeysSet:H.value,loadingKeysSet:F.value,checkedKeysSet:L.value,halfCheckedKeysSet:_.value,dragOverNodeKey:C.dragOverNodeKey,dropPosition:C.dropPosition,keyEntities:O.value}))),j=d((()=>new Set(x.value))),N=d((()=>new Set(p.value))),H=d((()=>new Set(b.value))),F=d((()=>new Set(y.value))),L=d((()=>new Set(f.value))),_=d((()=>new Set(h.value)));m((()=>{if(k.value){const e=nP(k.value,{fieldNames:E.value});O.value=q({[pK]:fK},e.keyEntities)}}));let W=!1;c([()=>e.expandedKeys,()=>e.autoExpandParent,O],((t,n)=>{let[o,r]=t,[l,i]=n,a=x.value;if(void 0!==e.expandedKeys||W&&r!==i)a=e.autoExpandParent||!W&&e.defaultExpandParent?ZM(e.expandedKeys,O.value):e.expandedKeys;else if(!W&&e.defaultExpandAll){const e=q({},O.value);delete e[pK],a=Object.keys(e).map((t=>e[t].key))}else!W&&e.defaultExpandedKeys&&(a=e.autoExpandParent||e.defaultExpandParent?ZM(e.defaultExpandedKeys,O.value):e.defaultExpandedKeys);a&&(x.value=a),W=!0}),{immediate:!0});const K=g([]);m((()=>{K.value=function(e,t,n){const{_title:o,key:r,children:l}=eP(n),i=new Set(!0===t?[]:t),a=[];return function e(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(((c,u)=>{const d=GM(s?s.pos:"0",u),p=JM(c[r],d);let v;for(let e=0;e{e.selectable&&(void 0!==e.selectedKeys?p.value=qM(e.selectedKeys,e):!W&&e.defaultSelectedKeys&&(p.value=qM(e.defaultSelectedKeys,e)))}));const{maxLevel:V,levelEntities:X}=$P(O);m((()=>{if(e.checkable){let t;if(void 0!==e.checkedKeys?t=QM(e.checkedKeys)||{}:!W&&e.defaultCheckedKeys?t=QM(e.defaultCheckedKeys)||{}:k.value&&(t=QM(e.checkedKeys)||{checkedKeys:f.value,halfCheckedKeys:h.value}),t){let{checkedKeys:n=[],halfCheckedKeys:o=[]}=t;if(!e.checkStrictly){const e=pP(n,!0,O.value,V.value,X.value);({checkedKeys:n,halfCheckedKeys:o}=e)}f.value=n,h.value=o}}})),m((()=>{e.loadedKeys&&(b.value=e.loadedKeys)}));const G=()=>{q(C,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},Y=e=>{T.value.scrollTo(e)};c((()=>e.activeKey),(()=>{void 0!==e.activeKey&&(M.value=e.activeKey)}),{immediate:!0}),c(M,(e=>{S((()=>{null!==e&&Y({key:e})}))}),{immediate:!0,flush:"post"});const Q=t=>{void 0===e.expandedKeys&&(x.value=t)},Z=()=>{null!==C.draggingNodeKey&&q(C,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),A=null,D=null},J=(t,n)=>{const{onDragend:o}=e;C.dragOverNodeKey=null,Z(),null==o||o({event:t,node:n.eventData}),B=null},ee=e=>{J(e,null),window.removeEventListener("dragend",ee)},te=(t,n)=>{const{onDragstart:o}=e,{eventKey:r,eventData:l}=n;B=n,A={x:t.clientX,y:t.clientY};const i=KM(x.value,r);C.draggingNodeKey=r,C.dragChildrenKeys=function(e,t){const n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{let{key:o,children:r}=t;n.push(o),e(r)}))}(t[e].children),n}(r,O.value),u.value=T.value.getIndentWidth(),Q(i),window.addEventListener("dragend",ee),o&&o({event:t,node:l})},ne=(t,n)=>{const{onDragenter:o,onExpand:r,allowDrop:l,direction:i}=e,{pos:s,eventKey:c}=n;if(D!==c&&(D=c),!B)return void G();const{dropPosition:d,dropLevelOffset:p,dropTargetKey:v,dropContainerKey:f,dropTargetPos:h,dropAllowed:g,dragOverNodeKey:m}=UM(t,B,n,u.value,A,l,K.value,O.value,j.value,i);-1===C.dragChildrenKeys.indexOf(v)&&g?(a||(a={}),Object.keys(a).forEach((e=>{clearTimeout(a[e])})),B.eventKey!==n.eventKey&&(a[s]=window.setTimeout((()=>{if(null===C.draggingNodeKey)return;let e=x.value.slice();const o=O.value[n.eventKey];o&&(o.children||[]).length&&(e=VM(x.value,n.eventKey)),Q(e),r&&r(e,{node:n.eventData,expanded:!0,nativeEvent:t})}),800)),B.eventKey!==v||0!==p?(q(C,{dragOverNodeKey:m,dropPosition:d,dropLevelOffset:p,dropTargetKey:v,dropContainerKey:f,dropTargetPos:h,dropAllowed:g}),o&&o({event:t,node:n.eventData,expandedKeys:x.value})):G()):G()},oe=(t,n)=>{const{onDragover:o,allowDrop:r,direction:l}=e;if(!B)return;const{dropPosition:i,dropLevelOffset:a,dropTargetKey:s,dropContainerKey:c,dropAllowed:d,dropTargetPos:p,dragOverNodeKey:v}=UM(t,B,n,u.value,A,r,K.value,O.value,j.value,l);-1===C.dragChildrenKeys.indexOf(s)&&d&&(B.eventKey===s&&0===a?null===C.dropPosition&&null===C.dropLevelOffset&&null===C.dropTargetKey&&null===C.dropContainerKey&&null===C.dropTargetPos&&!1===C.dropAllowed&&null===C.dragOverNodeKey||G():i===C.dropPosition&&a===C.dropLevelOffset&&s===C.dropTargetKey&&c===C.dropContainerKey&&p===C.dropTargetPos&&d===C.dropAllowed&&v===C.dragOverNodeKey||q(C,{dropPosition:i,dropLevelOffset:a,dropTargetKey:s,dropContainerKey:c,dropTargetPos:p,dropAllowed:d,dragOverNodeKey:v}),o&&o({event:t,node:n.eventData}))},re=(t,n)=>{D!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(G(),D=null);const{onDragleave:o}=e;o&&o({event:t,node:n.eventData})},le=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r;const{dragChildrenKeys:l,dropPosition:i,dropTargetKey:a,dropTargetPos:s,dropAllowed:c}=C;if(!c)return;const{onDrop:u}=e;if(C.dragOverNodeKey=null,Z(),null===a)return;const d=q(q({},oP(a,R(z.value))),{active:(null===(r=Se.value)||void 0===r?void 0:r.key)===a,data:O.value[a].node});l.indexOf(a);const p=XM(s),v={event:t,node:rP(d),dragNode:B?B.eventData:null,dragNodesKeys:[B.eventKey].concat(l),dropToGap:0!==i,dropPosition:i+Number(p[p.length-1])};o||null==u||u(v),B=null},ie=(e,t)=>{const{expanded:n,key:o}=t,r=K.value.filter((e=>e.key===o))[0],l=rP(q(q({},oP(o,z.value)),{data:r.data}));Q(n?KM(x.value,o):VM(x.value,o)),be(e,l)},ae=(t,n)=>{const{onClick:o,expandAction:r}=e;"click"===r&&ie(t,n),o&&o(t,n)},se=(t,n)=>{const{onDblclick:o,expandAction:r}=e;"doubleclick"!==r&&"dblclick"!==r||ie(t,n),o&&o(t,n)},ce=(t,n)=>{let o=p.value;const{onSelect:r,multiple:l}=e,{selected:i}=n,a=n[E.value.key],s=!i;o=s?l?VM(o,a):[a]:KM(o,a);const c=O.value,u=o.map((e=>{const t=c[e];return t?t.node:null})).filter((e=>e));void 0===e.selectedKeys&&(p.value=o),r&&r(o,{event:"select",selected:s,node:n,selectedNodes:u,nativeEvent:t})},ue=(t,n,o)=>{const{checkStrictly:r,onCheck:l}=e,i=n[E.value.key];let a;const s={event:"check",node:n,checked:o,nativeEvent:t},c=O.value;if(r){const t=o?VM(f.value,i):KM(f.value,i);a={checked:t,halfChecked:KM(h.value,i)},s.checkedNodes=t.map((e=>c[e])).filter((e=>e)).map((e=>e.node)),void 0===e.checkedKeys&&(f.value=t)}else{let{checkedKeys:t,halfCheckedKeys:n}=pP([...f.value,i],!0,c,V.value,X.value);if(!o){const e=new Set(t);e.delete(i),({checkedKeys:t,halfCheckedKeys:n}=pP(Array.from(e),{checked:!1,halfCheckedKeys:n},c,V.value,X.value))}a=t,s.checkedNodes=[],s.checkedNodesPositions=[],s.halfCheckedKeys=n,t.forEach((e=>{const t=c[e];if(!t)return;const{node:n,pos:o}=t;s.checkedNodes.push(n),s.checkedNodesPositions.push({node:n,pos:o})})),void 0===e.checkedKeys&&(f.value=t,h.value=n)}l&&l(a,s)},de=t=>{const n=t[E.value.key],o=new Promise(((o,r)=>{const{loadData:l,onLoad:i}=e;if(!l||H.value.has(n)||F.value.has(n))return null;l(t).then((()=>{const r=VM(b.value,n),l=KM(y.value,n);i&&i(r,{event:"load",node:t}),void 0===e.loadedKeys&&(b.value=r),y.value=l,o()})).catch((t=>{const l=KM(y.value,n);if(y.value=l,w[n]=(w[n]||0)+1,w[n]>=10){const t=VM(b.value,n);void 0===e.loadedKeys&&(b.value=t),o()}r(t)})),y.value=VM(y.value,n)}));return o.catch((()=>{})),o},ve=(t,n)=>{const{onMouseenter:o}=e;o&&o({event:t,node:n})},fe=(t,n)=>{const{onMouseleave:o}=e;o&&o({event:t,node:n})},he=(t,n)=>{const{onRightClick:o}=e;o&&(t.preventDefault(),o({event:t,node:n}))},ge=t=>{const{onFocus:n}=e;I.value=!0,n&&n(t)},me=t=>{const{onBlur:n}=e;I.value=!1,xe(null),n&&n(t)},be=(t,n)=>{let o=x.value;const{onExpand:r,loadData:l}=e,{expanded:i}=n,a=n[E.value.key];if(P.value)return;o.indexOf(a);const s=!i;if(o=s?VM(o,a):KM(o,a),Q(o),r&&r(o,{node:n,expanded:s,nativeEvent:t}),s&&l){const e=de(n);e&&e.then((()=>{})).catch((e=>{const t=KM(x.value,a);Q(t),Promise.reject(e)}))}},ye=()=>{P.value=!0},$e=()=>{setTimeout((()=>{P.value=!1}))},xe=t=>{const{onActiveChange:n}=e;M.value!==t&&(void 0!==e.activeKey&&(M.value=t),null!==t&&Y({key:t}),n&&n(t))},Se=d((()=>null===M.value?null:K.value.find((e=>{let{key:t}=e;return t===M.value}))||null)),we=e=>{let t=K.value.findIndex((e=>{let{key:t}=e;return t===M.value}));-1===t&&e<0&&(t=K.value.length),t=(t+e+K.value.length)%K.value.length;const n=K.value[t];if(n){const{key:e}=n;xe(e)}else xe(null)},Ce=d((()=>rP(q(q({},oP(M.value,z.value)),{data:Se.value.data,active:!0})))),ke=t=>{const{onKeydown:n,checkable:o,selectable:r}=e;switch(t.which){case sd.UP:we(-1),t.preventDefault();break;case sd.DOWN:we(1),t.preventDefault()}const l=Se.value;if(l&&l.data){const e=!1===l.data.isLeaf||!!(l.data.children||[]).length,n=Ce.value;switch(t.which){case sd.LEFT:e&&j.value.has(M.value)?be({},n):l.parent&&xe(l.parent.key),t.preventDefault();break;case sd.RIGHT:e&&!j.value.has(M.value)?be({},n):l.children&&l.children.length&&xe(l.children[0].key),t.preventDefault();break;case sd.ENTER:case sd.SPACE:!o||n.disabled||!1===n.checkable||n.disableCheckbox?o||!r||n.disabled||!1===n.selectable||ce({},n):ue({},n,!L.value.has(M.value))}}n&&n(t)};return r({onNodeExpand:be,scrollTo:Y,onKeydown:ke,selectedKeys:d((()=>p.value)),checkedKeys:d((()=>f.value)),halfCheckedKeys:d((()=>h.value)),loadedKeys:d((()=>b.value)),loadingKeys:d((()=>y.value)),expandedKeys:d((()=>x.value))}),s((()=>{window.removeEventListener("dragend",ee),i.value=!0})),v(zM,{expandedKeys:x,selectedKeys:p,loadedKeys:b,loadingKeys:y,checkedKeys:f,halfCheckedKeys:h,expandedKeysSet:j,selectedKeysSet:N,loadedKeysSet:H,loadingKeysSet:F,checkedKeysSet:L,halfCheckedKeysSet:_,flattenNodes:K}),()=>{const{draggingNodeKey:t,dropLevelOffset:r,dropContainerKey:l,dropTargetKey:i,dropPosition:a,dragOverNodeKey:s}=C,{prefixCls:c,showLine:d,focusable:p,tabindex:v=0,selectable:f,showIcon:h,icon:g=o.icon,switcherIcon:m,draggable:b,checkable:y,checkStrictly:x,disabled:S,motion:w,loadData:k,filterTreeNode:P,height:E,itemHeight:A,virtual:B,dropIndicatorRender:D,onContextmenu:z,onScroll:R,direction:j,rootClassName:N,rootStyle:H}=e,{class:F,style:L}=n,_=yd(q(q({},e),n),{aria:!0,data:!0});let W;return W=!!b&&("object"==typeof b?b:"function"==typeof b?{nodeDraggable:b}:{}),$(BM,{value:{prefixCls:c,selectable:f,showIcon:h,icon:g,switcherIcon:m,draggable:W,draggingNodeKey:t,checkable:y,customCheckable:o.checkable,checkStrictly:x,disabled:S,keyEntities:O.value,dropLevelOffset:r,dropContainerKey:l,dropTargetKey:i,dropPosition:a,dragOverNodeKey:s,dragging:null!==t,indent:u.value,direction:j,dropIndicatorRender:D,loadData:k,filterTreeNode:P,onNodeClick:ae,onNodeDoubleClick:se,onNodeExpand:be,onNodeSelect:ce,onNodeCheck:ue,onNodeLoad:de,onNodeMouseEnter:ve,onNodeMouseLeave:fe,onNodeContextMenu:he,onNodeDragStart:te,onNodeDragEnter:ne,onNodeDragOver:oe,onNodeDragLeave:re,onNodeDragEnd:J,onNodeDrop:le,slots:o}},{default:()=>[$("div",{role:"tree",class:pe(c,F,N,{[`${c}-show-line`]:d,[`${c}-focused`]:I.value,[`${c}-active-focused`]:null!==M.value}),style:H},[$(yK,U({ref:T,prefixCls:c,style:L,disabled:S,selectable:f,checkable:!!y,motion:w,height:E,itemHeight:A,virtual:B,focusable:p,focused:I.value,tabindex:v,activeItem:Se.value,onFocus:ge,onBlur:me,onKeydown:ke,onActiveChange:xe,onListChangeStart:ye,onListChangeEnd:$e,onContextmenu:z,onScroll:R},_),null)])]})}}});const xK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function SK(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),VK=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),XK=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l}=t,i=(l-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:q(q({},Ur(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:q({},Jr(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:WK,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:q({},Jr(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:l,lineHeight:`${l}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:q(q({},KK(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${l}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:l/2*.8,height:l/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${l}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${l}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:q({lineHeight:`${l}px`,userSelect:"none"},VK(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:l/2+"px !important"}}}}})}},GK=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},YK=(e,t)=>{const n=`.${e}`,o=rl(t,{treeCls:n,treeNodeCls:`${n}-treenode`,treeNodePadding:t.paddingXS/2,treeTitleHeight:t.controlHeightSM});return[XK(e,o),GK(o)]},UK=tl("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:vT(`${n}-checkbox`,e)},YK(n,e),qm(e)]})),qK=()=>{const e=FM();return q(q({},e),{showLine:ht([Boolean,Object]),multiple:ut(),autoExpandParent:ut(),checkStrictly:ut(),checkable:ut(),disabled:ut(),defaultExpandAll:ut(),defaultExpandParent:ut(),defaultExpandedKeys:vt(),expandedKeys:vt(),checkedKeys:ht([Array,Object]),defaultCheckedKeys:vt(),selectedKeys:vt(),defaultSelectedKeys:vt(),selectable:ut(),loadedKeys:vt(),draggable:ut(),showIcon:ut(),icon:dt(),switcherIcon:Ii.any,prefixCls:String,replaceFields:ct(),blockNode:ut(),openAnimation:Ii.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":dt(),"onUpdate:checkedKeys":dt(),"onUpdate:expandedKeys":dt()})},QK=r({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Re(qK(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:l}=t;void 0===e.treeData&&l.default;const{prefixCls:i,direction:a,virtual:s}=Il("tree",e),[c,u]=UK(i),p=f();o({treeRef:p,onNodeExpand:function(){var e;null===(e=p.value)||void 0===e||e.onNodeExpand(...arguments)},scrollTo:e=>{var t;null===(t=p.value)||void 0===t||t.scrollTo(e)},selectedKeys:d((()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:d((()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:d((()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:d((()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:d((()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:d((()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.expandedKeys}))}),m((()=>{Mi(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));const v=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},h=(e,t)=>{r("update:expandedKeys",e),r("expand",e,t)},g=(e,t)=>{r("update:selectedKeys",e),r("select",e,t)};return()=>{const{showIcon:t,showLine:o,switcherIcon:r=l.switcherIcon,icon:d=l.icon,blockNode:f,checkable:m,selectable:b,fieldNames:y=e.replaceFields,motion:x=e.openAnimation,itemHeight:S=28,onDoubleclick:w,onDblclick:C}=e,k=q(q(q({},n),Ml(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(o),dropIndicatorRender:_K,fieldNames:y,icon:d,itemHeight:S}),O=l.default?Ye(l.default()):void 0;return c($($K,U(U({},k),{},{virtual:s.value,motion:x,ref:p,prefixCls:i.value,class:pe({[`${i.value}-icon-hide`]:!t,[`${i.value}-block-node`]:f,[`${i.value}-unselectable`]:!b,[`${i.value}-rtl`]:"rtl"===a.value},n.class,u.value),direction:a.value,checkable:m,selectable:b,switcherIcon:e=>LK(i.value,r,e,l.leafIcon,o),onCheck:v,onExpand:h,onSelect:g,onDblclick:C||w,children:O}),q(q({},l),{checkable:()=>$("span",{class:`${i.value}-checkbox-inner`},null)})))}}});const ZK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function JK(e){for(var t=1;t{if(a===sV.End)return!1;if(function(e){return e===o||e===r}(e)){if(i.push(e),a===sV.None)a=sV.Start;else if(a===sV.Start)return a=sV.End,!1}else a===sV.Start&&i.push(e);return n.includes(e)})),i}function pV(e,t,n){const o=[...t],r=[];return uV(e,n,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length})),r}(cV=sV||(sV={}))[cV.None=0]="None",cV[cV.Start=1]="Start",cV[cV.End=2]="End";function vV(e){const{isLeaf:t,expanded:n}=e;return $(t?kK:n?nV:aV,null,null)}const fV=r({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Re(q(q({},qK()),{expandAction:ht([Boolean,String])}),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;var i;const s=f(e.treeData||tP(Ye(null===(i=o.default)||void 0===i?void 0:i.call(o))));c((()=>e.treeData),(()=>{s.value=e.treeData})),a((()=>{S((()=>{var t;void 0===e.treeData&&o.default&&(s.value=tP(Ye(null===(t=o.default)||void 0===t?void 0:t.call(o))))}))}));const u=f(),p=f(),v=d((()=>eP(e.fieldNames))),h=f();l({scrollTo:e=>{var t;null===(t=h.value)||void 0===t||t.scrollTo(e)},selectedKeys:d((()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:d((()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:d((()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:d((()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:d((()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:d((()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.expandedKeys}))});const g=f(e.selectedKeys||e.defaultSelectedKeys||[]),m=f((()=>{const{keyEntities:t}=nP(s.value,{fieldNames:v.value});let n;return n=e.defaultExpandAll?Object.keys(t):e.defaultExpandParent?ZM(e.expandedKeys||e.defaultExpandedKeys||[],t):e.expandedKeys||e.defaultExpandedKeys,n})());c((()=>e.selectedKeys),(()=>{void 0!==e.selectedKeys&&(g.value=e.selectedKeys)}),{immediate:!0}),c((()=>e.expandedKeys),(()=>{void 0!==e.expandedKeys&&(m.value=e.expandedKeys)}),{immediate:!0});const b=Rg(((e,t)=>{const{isLeaf:n}=t;n||e.shiftKey||e.metaKey||e.ctrlKey||h.value.onNodeExpand(e,t)}),200,{leading:!0}),y=(t,n)=>{void 0===e.expandedKeys&&(m.value=t),r("update:expandedKeys",t),r("expand",t,n)},x=(t,n)=>{const{expandAction:o}=e;"click"===o&&b(t,n),r("click",t,n)},w=(t,n)=>{const{expandAction:o}=e;"dblclick"!==o&&"doubleclick"!==o||b(t,n),r("doubleclick",t,n),r("dblclick",t,n)},C=(t,n)=>{const{multiple:o}=e,{node:l,nativeEvent:i}=n,a=l[v.value.key],c=q(q({},n),{selected:!0}),d=(null==i?void 0:i.ctrlKey)||(null==i?void 0:i.metaKey),f=null==i?void 0:i.shiftKey;let h;o&&d?(h=t,u.value=a,p.value=h,c.selectedNodes=pV(s.value,h,v.value)):o&&f?(h=Array.from(new Set([...p.value||[],...dV({treeData:s.value,expandedKeys:m.value,startKey:a,endKey:u.value,fieldNames:v.value})])),c.selectedNodes=pV(s.value,h,v.value)):(h=[a],u.value=a,p.value=h,c.selectedNodes=pV(s.value,h,v.value)),r("update:selectedKeys",h),r("select",h,c),void 0===e.selectedKeys&&(g.value=h)},k=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},{prefixCls:O,direction:I}=Il("tree",e);return()=>{const t=pe(`${O.value}-directory`,{[`${O.value}-directory-rtl`]:"rtl"===I.value},n.class),{icon:r=o.icon,blockNode:l=!0}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r(e.component(QK.name,QK),e.component(hV.name,hV),e.component(fV.name,fV),e)});function mV(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=new Set;return function e(t,r){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const i=o.has(t);if(mn(!i,"Warning: There may be circular references"),i)return!1;if(t===r)return!0;if(n&&l>1)return!1;o.add(t);const a=l+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;ne(t[n],r[n],a)))}return!1}(e,t)}const{SubMenu:bV,Item:yV}=NS;function $V(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function xV(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i}=e;return t.map(((e,t)=>{const a=String(e.value);if(e.children)return $(bV,{key:a||t,title:e.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[xV({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i})]});const s=r?ST:wk,c=$(yV,{key:void 0!==e.value?a:t},{default:()=>[$(s,{checked:o.includes(a)},null),$("span",null,[e.text])]});return l.trim()?"function"==typeof i?i(l,e)?c:void 0:$V(l,e.text)?c:void 0:c}))}const SV=r({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(t,n){let{slots:o}=n;const r=M_(),l=d((()=>{var e;return null!==(e=t.filterMode)&&void 0!==e?e:"menu"})),i=d((()=>{var e;return null!==(e=t.filterSearch)&&void 0!==e&&e})),a=d((()=>t.column.filterDropdownOpen||t.column.filterDropdownVisible)),s=d((()=>t.column.onFilterDropdownOpenChange||t.column.onFilterDropdownVisibleChange)),u=g(!1),p=d((()=>{var e;return!(!t.filterState||!(null===(e=t.filterState.filteredKeys)||void 0===e?void 0:e.length)&&!t.filterState.forceFiltered)})),v=d((()=>{var e;return kV(null===(e=t.column)||void 0===e?void 0:e.filters)})),f=d((()=>{const{filterDropdown:e,slots:n={},customFilterDropdown:o}=t.column;return e||n.filterDropdown&&r.value[n.filterDropdown]||o&&r.value.customFilterDropdown})),h=d((()=>{const{filterIcon:e,slots:n={}}=t.column;return e||n.filterIcon&&r.value[n.filterIcon]||r.value.customFilterIcon})),m=e=>{var t;u.value=e,null===(t=s.value)||void 0===t||t.call(s,e)},y=d((()=>"boolean"==typeof a.value?a.value:u.value)),x=d((()=>{var e;return null===(e=t.filterState)||void 0===e?void 0:e.filteredKeys})),S=g([]),w=e=>{let{selectedKeys:t}=e;S.value=t},C=(e,n)=>{let{node:o,checked:r}=n;t.filterMultiple?w({selectedKeys:e}):w({selectedKeys:r&&o.key?[o.key]:[]})};c(x,(()=>{u.value&&w({selectedKeys:x.value||[]})}),{immediate:!0});const k=g([]),O=g(),I=e=>{O.value=setTimeout((()=>{k.value=e}))},M=()=>{clearTimeout(O.value)};b((()=>{clearTimeout(O.value)}));const P=g(""),E=e=>{const{value:t}=e.target;P.value=t};c(u,(()=>{u.value||(P.value="")}));const T=e=>{const{column:n,columnKey:o,filterState:r}=t,l=e&&e.length?e:null;return null!==l||r&&r.filteredKeys?mV(l,null==r?void 0:r.filteredKeys,!0)?null:void t.triggerFilter({column:n,key:o,filteredKeys:l}):null},A=()=>{m(!1),T(S.value)},B=function(){let{confirm:e,closeDropdown:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&T([]),n&&m(!1),P.value="",t.column.filterResetToDefaultFilteredValue?S.value=(t.column.defaultFilteredValue||[]).map((e=>String(e))):S.value=[]},D=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&m(!1),T(S.value)},z=e=>{e&&void 0!==x.value&&(S.value=x.value||[]),m(e),e||f.value||A()},{direction:R}=Il("",t),j=e=>{if(e.target.checked){const e=v.value;S.value=e}else S.value=[]},N=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:t};return e.children&&(o.children=N({filters:e.children})),o}))},H=e=>{var t;return q(q({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>H(e))))||[]})},F=d((()=>N({filters:t.column.filters}))),L=d((()=>{return pe({[`${t.dropdownPrefixCls}-menu-without-submenu`]:(e=t.column.filters||[],!e.some((e=>{let{children:t}=e;return t&&t.length>0})))});var e})),_=()=>{const n=S.value,{column:o,locale:r,tablePrefixCls:a,filterMultiple:s,dropdownPrefixCls:c,getPopupContainer:u,prefixCls:d}=t;return 0===(o.filters||[]).length?$(xl,{image:xl.PRESENTED_IMAGE_SIMPLE,description:r.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):"tree"===l.value?$(e,null,[$(lK,{filterSearch:i.value,value:P.value,onChange:E,tablePrefixCls:a,locale:r},null),$("div",{class:`${a}-filter-dropdown-tree`},[s?$(ST,{class:`${a}-filter-dropdown-checkall`,onChange:j,checked:n.length===v.value.length,indeterminate:n.length>0&&n.length[r.filterCheckall]}):null,$(gV,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,class:`${c}-menu`,onCheck:C,checkedKeys:n,selectedKeys:n,showIcon:!1,treeData:F.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:P.value.trim()?e=>"function"==typeof i.value?i.value(P.value,H(e)):$V(P.value,e.title):void 0},null)])]):$(e,null,[$(lK,{filterSearch:i.value,value:P.value,onChange:E,tablePrefixCls:a,locale:r},null),$(NS,{multiple:s,prefixCls:`${c}-menu`,class:L.value,onClick:M,onSelect:w,onDeselect:w,selectedKeys:n,getPopupContainer:u,openKeys:k.value,onOpenChange:I},{default:()=>xV({filters:o.filters||[],filterSearch:i.value,prefixCls:d,filteredKeys:S.value,filterMultiple:s,searchValue:P.value})})])},W=d((()=>{const e=S.value;return t.column.filterResetToDefaultFilteredValue?mV((t.column.defaultFilteredValue||[]).map((e=>String(e))),e,!0):0===e.length}));return()=>{var n;const{tablePrefixCls:r,prefixCls:l,column:i,dropdownPrefixCls:a,locale:s,getPopupContainer:c}=t;let u;u="function"==typeof f.value?f.value({prefixCls:`${a}-custom`,setSelectedKeys:e=>w({selectedKeys:e}),selectedKeys:S.value,confirm:D,clearFilters:B,filters:i.filters,visible:y.value,column:i.__originColumn__,close:()=>{m(!1)}}):f.value?f.value:$(e,null,[_(),$("div",{class:`${l}-dropdown-btns`},[$(gx,{type:"link",size:"small",disabled:W.value,onClick:()=>B()},{default:()=>[s.filterReset]}),$(gx,{type:"primary",size:"small",onClick:A},{default:()=>[s.filterConfirm]})])]);const d=$(rK,{class:`${l}-dropdown`},{default:()=>[u]});let v;return v="function"==typeof h.value?h.value({filtered:p.value,column:i.__originColumn__}):h.value?h.value:$(nK,null,null),$("div",{class:`${l}-column`},[$("span",{class:`${r}-column-title`},[null===(n=o.default)||void 0===n?void 0:n.call(o)]),$(Hx,{overlay:d,trigger:["click"],open:y.value,onOpenChange:z,getPopupContainer:c,placement:"rtl"===R.value?"bottomLeft":"bottomRight"},{default:()=>[$("span",{role:"button",tabindex:-1,class:pe(`${l}-trigger`,{active:p.value}),onClick:e=>{e.stopPropagation()}},[v])]})])}}});function wV(e,t,n){let o=[];return(e||[]).forEach(((e,r)=>{var l,i;const a=HW(r,n),s=e.filterDropdown||(null===(l=null==e?void 0:e.slots)||void 0===l?void 0:l.filterDropdown)||e.customFilterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;s||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:NW(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:NW(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[...o,...wV(e.children,t,a)])})),o}function CV(e,t,n,o,r,l,i,a){return n.map(((n,s)=>{var c;const u=HW(s,a),{filterMultiple:d=!0,filterMode:p,filterSearch:v}=n;let f=n;const h=n.filterDropdown||(null===(c=null==n?void 0:n.slots)||void 0===c?void 0:c.filterDropdown)||n.customFilterDropdown;if(f.filters||h){const a=NW(f,u),s=o.find((e=>{let{key:t}=e;return a===t}));f=q(q({},f),{title:o=>$(SV,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:f,columnKey:a,filterState:s,filterMultiple:d,filterMode:p,filterSearch:v,triggerFilter:l,locale:r,getPopupContainer:i},{default:()=>[FW(n.title,o)]})})}return"children"in f&&(f=q(q({},f),{children:CV(e,t,f.children,o,r,l,i,u)})),f}))}function kV(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[...t,...kV(o)])})),t}function OV(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;var l;const i=r.filterDropdown||(null===(l=null==r?void 0:r.slots)||void 0===l?void 0:l.filterDropdown)||r.customFilterDropdown,{filters:a}=r;if(i)t[n]=o||null;else if(Array.isArray(o)){const e=kV(a);t[n]=e.filter((e=>o.includes(String(e))))}else t[n]=null})),t}function IV(e,t){return t.reduce(((e,t)=>{const{column:{onFilter:n,filters:o},filteredKeys:r}=t;return n&&r&&r.length?e.filter((e=>r.some((t=>{const r=kV(o),l=r.findIndex((e=>String(e)===String(t))),i=-1!==l?r[l]:t;return n(i,e)})))):e}),e)}function MV(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:l,getPopupContainer:i}=e;const[a,s]=wp(wV(o.value,!0)),c=d((()=>{const e=wV(o.value,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(o.value||[]).map(((e,t)=>NW(e,HW(t))));return a.value.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=o.value[e.findIndex((e=>e===t.key))];return q(q({},t),{column:q(q({},t.column),n),forceFiltered:n.filtered})}))}return Mi(n,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),e})),u=d((()=>OV(c.value))),p=e=>{const t=c.value.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),s(t),l(OV(t),t)};return[e=>CV(t.value,n.value,e,c.value,r.value,p,i.value),c,u]}function PV(e,t){return e.map((e=>{const n=q({},e);return n.title=FW(n.title,t),"children"in n&&(n.children=PV(n.children,t)),n}))}function EV(e){return[t=>PV(t,e.value)]}function TV(e){return function(t){let{prefixCls:n,onExpand:o,record:r,expanded:l,expandable:i}=t;const a=`${n}-row-expand-icon`;return $("button",{type:"button",onClick:e=>{o(r,e),e.stopPropagation()},class:pe(a,{[`${a}-spaced`]:!i,[`${a}-expanded`]:i&&l,[`${a}-collapsed`]:i&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l},null)}}function AV(e,t){const n=t.value;return e.map((e=>{var o;if(e===xW||e===U_)return e;const r=q({},e),{slots:l={}}=r;return r.__originColumn__=e,Mi(!("slots"in r),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(l).forEach((e=>{const t=l[e];void 0===r[e]&&n[t]&&(r[e]=n[t])})),t.value.headerCell&&!(null===(o=e.slots)||void 0===o?void 0:o.title)&&(r.title=L(t.value,"headerCell",{title:e.title,column:e},(()=>[e.title]))),"children"in r&&Array.isArray(r.children)&&(r.children=AV(r.children,t)),r}))}function BV(e){return[t=>AV(t,e)]}const DV=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(n,o,r)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${o}px -${r+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:q(q(q({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[`\n > ${t}-content,\n > ${t}-header\n `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},zV=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:q(q({},Yr),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},RV=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},jV=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:l,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:v,lineHeight:f,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:m,paddingXXS:b}=e,y=o/2-l,$=2*y+3*l,x=`${l}px ${a} ${s}`,S=b-l;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:q(q({},Vr(e)),{position:"relative",float:"left",boxSizing:"border-box",width:$,height:$,padding:0,color:"inherit",lineHeight:`${$}px`,background:c,border:x,borderRadius:d,transform:`scale(${o/$})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:l},"&::after":{top:S,bottom:S,insetInlineStart:y,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*f-3*l)/2-Math.ceil((1.4*v-3*l)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},NV=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:l,paddingXXS:i,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:v,tablePaddingHorizontal:f,borderRadius:h,motionDurationSlow:g,colorTextDescription:m,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:$,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:w,controlItemBgActive:C,boxShadowSecondary:k}=e,O=`${n}-dropdown`,I=`${t}-filter-dropdown`,M=`${n}-tree`,P=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-f/2}px`,padding:`0 ${i}px`,color:p,fontSize:v,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:m,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[I]:q(q({},Ur(e)),{minWidth:r,backgroundColor:x,borderRadius:h,boxShadow:k,[`${O}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:$,fontSize:v,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:w},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:C}}},[`${I}-search`]:{padding:a,borderBottom:P,"&-input":{input:{minWidth:l},[o]:{color:$}}},[`${I}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:P}})}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},HV=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:l,tableBg:i,zIndexTableSticky:a}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:l,background:i},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${o}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${o}`}}}}},FV=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},LV=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},_V=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},WV=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:l,tableHeaderIconColor:i,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+2*l},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[o]:{color:i,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},KV=e=>{const{componentCls:t}=e,n=(n,o,r,l)=>({[`${t}${t}-${n}`]:{fontSize:l,[`\n ${t}-title,\n ${t}-footer,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${o}px ${r}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${r/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${r}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`}},[`${t}-selection-column`]:{paddingInlineStart:r/4+"px"}}});return{[`${t}-wrapper`]:q(q({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},VV=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},XV=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},GV=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:l,tableScrollBg:i,zIndexTableSticky:a}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${l}px !important`,zIndex:a,display:"flex",alignItems:"center",background:i,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},YV=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},UV=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:l,lineType:i,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:v,tableHeaderCellSplitColor:f,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:m,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:$}=e,x=`${l}px ${i} ${a}`;return{[`${t}-wrapper`]:q(q({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:q(q({},Ur(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-thead > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${$}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:v,borderBottom:x,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:x,borderBottom:"transparent"},"&:last-child > td":{borderBottom:x},[`&:first-child > td,\n &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:x}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${p}, border-color ${p}`,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`\n &${t}-row:hover > td,\n > td${t}-cell-row-hover\n `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:g},"&:hover > td":{background:m}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:b,background:y}})}},qV=tl("Table",(e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:l,colorBorderSecondary:i,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:p,colorIcon:v,colorIconHover:f,opacityLoading:h,colorBgContainer:g,borderRadiusLG:m,colorFillContent:b,colorFillSecondary:y,controlInteractiveSize:$}=e,x=new pr(v),S=new pr(f),w=t,C=new pr(y).onBackground(g).toHexString(),k=new pr(b).onBackground(g).toHexString(),O=new pr(p).onBackground(g).toHexString(),I=rl(e,{tableFontSize:a,tableBg:g,tableRadius:m,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:i,tableHeaderTextColor:r,tableHeaderBg:O,tableFooterTextColor:r,tableFooterBg:O,tableHeaderCellSplitColor:i,tableHeaderSortBg:C,tableHeaderSortHoverBg:k,tableHeaderIconColor:x.clone().setAlpha(x.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:S.clone().setAlpha(S.getAlpha()*h).toRgbString(),tableBodySortBg:O,tableFixedHeaderSortActiveBg:C,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:g,tableRowHoverBg:O,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:$+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:l});return[UV(I),FV(I),YV(I),XV(I),NV(I),DV(I),LV(I),jV(I),YV(I),RV(I),WV(I),HV(I),GV(I),zV(I),KV(I),VV(I),_V(I)]})),QV=[],ZV=()=>({prefixCls:ft(),columns:vt(),rowKey:ht([String,Function]),tableLayout:ft(),rowClassName:ht([String,Function]),title:dt(),footer:dt(),id:ft(),showHeader:ut(),components:ct(),customRow:dt(),customHeaderRow:dt(),direction:ft(),expandFixed:ht([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:vt(),defaultExpandedRowKeys:vt(),expandedRowRender:dt(),expandRowByClick:ut(),expandIcon:dt(),onExpand:dt(),onExpandedRowsChange:dt(),"onUpdate:expandedRowKeys":dt(),defaultExpandAllRows:ut(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:ut(),expandedRowClassName:dt(),childrenColumnName:ft(),rowExpandable:dt(),sticky:ht([Boolean,Object]),dropdownPrefixCls:String,dataSource:vt(),pagination:ht([Boolean,Object]),loading:ht([Boolean,Object]),size:ft(),bordered:ut(),locale:ct(),onChange:dt(),onResizeColumn:dt(),rowSelection:ct(),getPopupContainer:dt(),scroll:ct(),sortDirections:vt(),showSorterTooltip:ht([Boolean,Object],!0),transformCellText:dt()}),JV=r({name:"InternalTable",inheritAttrs:!1,props:Re(q(q({},ZV()),{contextSlots:ct()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;Mi(!("function"==typeof e.rowKey&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),(e=>{v(I_,e)})(d((()=>e.contextSlots))),(e=>{v(P_,e)})({onResizeColumn:(e,t)=>{i("resizeColumn",e,t)}});const a=wy(),s=d((()=>{const t=new Set(Object.keys(a.value).filter((e=>a.value[e])));return e.columns.filter((e=>!e.responsive||e.responsive.some((e=>t.has(e)))))})),{size:u,renderEmpty:p,direction:h,prefixCls:b,configProvider:y}=Il("table",e),[x,w]=qV(b),C=d((()=>{var t;return e.transformCellText||(null===(t=y.transformCellText)||void 0===t?void 0:t.value)})),[k]=Ft("Table",Nt.Table,M(e,"locale")),O=d((()=>e.dataSource||QV)),I=d((()=>y.getPrefixCls("dropdown",e.dropdownPrefixCls))),P=d((()=>e.childrenColumnName||"children")),E=d((()=>O.value.some((e=>null==e?void 0:e[P.value]))?"nest":e.expandedRowRender?"row":null)),T=l({body:null}),A=e=>{q(T,e)},B=d((()=>"function"==typeof e.rowKey?e.rowKey:t=>null==t?void 0:t[e.rowKey])),[D]=function(e,t,n){const o=g({});return c([e,t,n],(()=>{const r=new Map,l=n.value,i=t.value;!function e(t){t.forEach(((t,n)=>{const o=l(t,n);r.set(o,t),t&&"object"==typeof t&&i in t&&e(t[i]||[])}))}(e.value),o.value={kvMap:r}}),{deep:!0,immediate:!0}),[function(e){return o.value.kvMap.get(e)}]}(O,P,B),z={},R=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{pagination:r,scroll:l,onChange:i}=e,a=q(q({},z),t);o&&(z.resetPagination(),a.pagination.current&&(a.pagination.current=1),r&&r.onChange&&r.onChange(1,a.pagination.pageSize)),l&&!1!==l.scrollToFirstRowOnChange&&T.body&&Kl(0,{getContainer:()=>T.body}),null==i||i(a.pagination,a.filters,a.sorter,{currentDataSource:IV(qW(O.value,a.sorterStates,P.value),a.filterStates),action:n})},[j,N,H,F]=QW({prefixCls:b,mergedColumns:s,onSorterChange:(e,t)=>{R({sorter:e,sorterStates:t},"sort",!1)},sortDirections:d((()=>e.sortDirections||["ascend","descend"])),tableLocale:k,showSorterTooltip:M(e,"showSorterTooltip")}),L=d((()=>qW(O.value,N.value,P.value))),[_,W,K]=MV({prefixCls:b,locale:k,dropdownPrefixCls:I,mergedColumns:s,onFilterChange:(e,t)=>{R({filters:e,filterStates:t},"filter",!0)},getPopupContainer:M(e,"getPopupContainer")}),V=d((()=>IV(L.value,W.value))),[X]=BV(M(e,"contextSlots")),G=d((()=>{const e={},t=K.value;return Object.keys(t).forEach((n=>{null!==t[n]&&(e[n]=t[n])})),q(q({},H.value),{filters:e})})),[Y]=EV(G),[Q,Z]=$W(d((()=>V.value.length)),M(e,"pagination"),((e,t)=>{R({pagination:q(q({},z.pagination),{current:e,pageSize:t})},"paginate")}));m((()=>{z.sorter=F.value,z.sorterStates=N.value,z.filters=K.value,z.filterStates=W.value,z.pagination=!1===e.pagination?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(Q.value,e.pagination),z.resetPagination=Z}));const J=d((()=>{if(!1===e.pagination||!Q.value.pageSize)return V.value;const{current:t=1,total:n,pageSize:o=yW}=Q.value;return Mi(t>0,"Table","`current` should be positive number."),V.value.lengtho?V.value.slice((t-1)*o,t*o):V.value:V.value.slice((t-1)*o,t*o)}));m((()=>{S((()=>{const{total:e,pageSize:t=yW}=Q.value;V.value.lengtht&&Mi(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")}))}),{flush:"post"});const ee=d((()=>!1===e.showExpandColumn?-1:"nest"===E.value&&void 0===e.expandIconColumnIndex?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex)),te=f();c((()=>e.rowSelection),(()=>{te.value=e.rowSelection?q({},e.rowSelection):e.rowSelection}),{deep:!0,immediate:!0});const[ne,oe]=IW(te,{prefixCls:b,data:V,pageData:J,getRowKey:B,getRecordByKey:D,expandType:E,childrenColumnName:P,locale:k,getPopupContainer:d((()=>e.getPopupContainer))}),re=(t,n,o)=>{let r;const{rowClassName:l}=e;return r=pe("function"==typeof l?l(t,n,o):l),pe({[`${b.value}-row-selected`]:oe.value.has(B.value(t,n))},r)};r({selectedKeySet:oe});const le=d((()=>"number"==typeof e.indentSize?e.indentSize:15)),ie=e=>Y(ne(_(j(X(e)))));return()=>{var t;const{expandIcon:r=o.expandIcon||TV(k.value),pagination:l,loading:i,bordered:a}=e;let c,d,v;if(!1!==l&&(null===(t=Q.value)||void 0===t?void 0:t.total)){let e;e=Q.value.size?Q.value.size:"small"===u.value||"middle"===u.value?"small":void 0;const t=t=>$(SN,U(U({},Q.value),{},{class:[`${b.value}-pagination ${b.value}-pagination-${t}`,Q.value.class],size:e}),null),n="rtl"===h.value?"left":"right",{position:o}=Q.value;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),l=o.every((e=>"none"==`${e}`));e||r||l||(d=t(n)),e&&(c=t(e.toLowerCase().replace("top",""))),r&&(d=t(r.toLowerCase().replace("bottom","")))}else d=t(n)}"boolean"==typeof i?v={spinning:i}:"object"==typeof i&&(v=q({spinning:!0},i));const f=pe(`${b.value}-wrapper`,{[`${b.value}-wrapper-rtl`]:"rtl"===h.value},n.class,w.value),g=Ml(e,["columns"]);return x($("div",{class:f,style:n.style},[$(Gj,U({spinning:!1},v),{default:()=>[c,$(bW,U(U(U({},n),g),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:ee.value,indentSize:le.value,expandIcon:r,columns:s.value,direction:h.value,prefixCls:b.value,class:pe({[`${b.value}-middle`]:"middle"===u.value,[`${b.value}-small`]:"small"===u.value,[`${b.value}-bordered`]:a,[`${b.value}-empty`]:0===O.value.length}),data:J.value,rowKey:B.value,rowClassName:re,internalHooks:mW,internalRefs:T,onUpdateInternalRefs:A,transformColumns:ie,transformCellText:C.value}),q(q({},o),{emptyText:()=>{var t,n;return(null===(t=o.emptyText)||void 0===t?void 0:t.call(o))||(null===(n=e.locale)||void 0===n?void 0:n.emptyText)||p("Table")}})),d]})]))}}}),eX=r({name:"ATable",inheritAttrs:!1,props:Re(ZV(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=f();return r({table:l}),()=>{var t;const r=e.columns||LW(null===(t=o.default)||void 0===t?void 0:t.call(o));return $(JV,U(U(U({ref:l},n),e),{},{columns:r||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:q({},o)}),o)}}}),tX=r({name:"ATableColumn",slots:Object,render:()=>null}),nX=r({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render:()=>null}),oX=lW,rX=aW,lX=q(cW,{Cell:rX,Row:oX,name:"ATableSummary"}),iX=q(eX,{SELECTION_ALL:SW,SELECTION_INVERT:wW,SELECTION_NONE:CW,SELECTION_COLUMN:xW,EXPAND_COLUMN:U_,Column:tX,ColumnGroup:nX,Summary:lX,install:e=>(e.component(lX.name,lX),e.component(rX.name,rX),e.component(oX.name,oX),e.component(eX.name,eX),e.component(tX.name,tX),e.component(nX.name,nX),e)}),aX={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},sX=r({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Re(aX,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=t=>{var o;n("change",t),""===t.target.value&&(null===(o=e.handleClear)||void 0===o||o.call(e))};return()=>{const{placeholder:t,value:n,prefixCls:r,disabled:l}=e;return $(JD,{placeholder:t,class:r,value:n,onChange:o,disabled:l,allowClear:!0},{prefix:()=>$(Kv,null,null)})}}});const cX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function uX(e){for(var t=1;t{const{renderedText:t,renderedEl:o,item:r,checked:l,disabled:i,prefixCls:a,showRemove:s}=e,c=pe({[`${a}-content-item`]:!0,[`${a}-content-item-disabled`]:i||r.disabled});let u;return"string"!=typeof t&&"number"!=typeof t||(u=String(t)),$(Ht,{componentName:"Transfer",defaultLocale:Nt.Transfer},{default:e=>{const t=$("span",{class:`${a}-content-item-text`},[o]);return s?$("li",{class:c,title:u},[t,$(XH,{disabled:i||r.disabled,class:`${a}-content-item-remove`,"aria-label":e.remove,onClick:()=>{n("remove",r)}},{default:()=>[$(vX,null,null)]})]):$("li",{class:c,title:u,onClick:i||r.disabled?fX:()=>{n("click",r)}},[$(ST,{class:`${a}-checkbox`,checked:l,disabled:i||r.disabled},null),t])}})}}}),mX={prefixCls:String,filteredRenderItems:Ii.array.def([]),selectedKeys:Ii.array,disabled:ut(),showRemove:ut(),pagination:Ii.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};const bX=r({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:mX,emits:["itemSelect","itemRemove","scroll"],setup(t,n){let{emit:o,expose:r}=n;const l=f(1),i=e=>{const{selectedKeys:n}=t,r=n.indexOf(e.key)>=0;o("itemSelect",e.key,!r)},a=e=>{o("itemRemove",[e.key])},s=e=>{o("scroll",e)},u=d((()=>function(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return"object"==typeof e?q(q({},t),e):t}(t.pagination)));c([u,()=>t.filteredRenderItems],(()=>{if(u.value){const e=Math.ceil(t.filteredRenderItems.length/u.value.pageSize);l.value=Math.min(l.value,e)}}),{immediate:!0});const p=d((()=>{const{filteredRenderItems:e}=t;let n=e;return u.value&&(n=e.slice((l.value-1)*u.value.pageSize,l.value*u.value.pageSize)),n})),v=e=>{l.value=e};return r({items:p}),()=>{const{prefixCls:n,filteredRenderItems:o,selectedKeys:r,disabled:c,showRemove:d}=t;let f=null;u.value&&(f=$(SN,{simple:u.value.simple,showSizeChanger:u.value.showSizeChanger,showLessItems:u.value.showLessItems,size:"small",disabled:c,class:`${n}-pagination`,total:o.length,pageSize:u.value.pageSize,current:l.value,onChange:v},null));const h=p.value.map((e=>{let{renderedEl:t,renderedText:o,item:l}=e;const{disabled:s}=l,u=r.indexOf(l.key)>=0;return $(gX,{disabled:c||s,key:l.key,item:l,renderedText:o,renderedEl:t,checked:u,prefixCls:n,onClick:i,onRemove:a,showRemove:d},null)}));return $(e,null,[$("ul",{class:pe(`${n}-content`,{[`${n}-content-show-remove`]:d}),onScroll:s},[h]),f])}}}),yX=bX,$X=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},xX=()=>null;function SX(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const wX={prefixCls:String,dataSource:vt([]),filter:String,filterOption:Function,checkedKeys:Ii.arrayOf(Ii.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:ut(!1),searchPlaceholder:String,notFoundContent:Ii.any,itemUnit:String,itemsUnit:String,renderList:Ii.any,disabled:ut(),direction:ft(),showSelectAll:ut(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:Ii.any,showRemove:ut(),pagination:Ii.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},CX=r({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:wX,slots:Object,setup(t,n){let{attrs:o,slots:r}=n;const l=f(""),i=f(),a=f(),s=e=>{const{renderItem:n=xX}=t,o=n(e),r=!(!(l=o)||qe(l)||"[object Object]"!==Object.prototype.toString.call(l));var l;return{renderedText:r?o.value:o,renderedEl:r?o.label:o,item:e}},c=f([]),u=f([]);m((()=>{const e=[],n=[];t.dataSource.forEach((t=>{const o=s(t),{renderedText:r}=o;if(l.value&&l.value.trim()&&!y(r,t))return null;e.push(t),n.push(o)})),c.value=e,u.value=n}));const p=d((()=>{const{checkedKeys:e}=t;if(0===e.length)return"none";const n=$X(e);return c.value.every((e=>n.has(e.key)||!!e.disabled))?"all":"part"})),v=d((()=>SX(c.value))),h=(e,n)=>Array.from(new Set([...e,...t.checkedKeys])).filter((e=>-1===n.indexOf(e))),g=e=>{var n;const{target:{value:o}}=e;l.value=o,null===(n=t.handleFilter)||void 0===n||n.call(t,e)},b=e=>{var n;l.value="",null===(n=t.handleClear)||void 0===n||n.call(t,e)},y=(e,n)=>{const{filterOption:o}=t;return o?o(l.value,n):e.includes(l.value)},x=(n,o)=>{const{itemsUnit:r,itemUnit:l,selectAllLabel:i}=t;if(i)return"function"==typeof i?i({selectedCount:n,totalCount:o}):i;const a=o>1?r:l;return $(e,null,[(n>0?`${n}/`:"")+o,B(" "),a])},S=d((()=>Array.isArray(t.notFoundContent)?t.notFoundContent["left"===t.direction?0:1]:t.notFoundContent)),w=(e,n,r,s,d,p)=>{const v=d?$("div",{class:`${e}-body-search-wrapper`},[$(sX,{prefixCls:`${e}-search`,onChange:g,handleClear:b,placeholder:n,value:l.value,disabled:p},null)]):null;let f;const{onEvents:h}=je(o),{bodyContent:m,customize:y}=((e,t)=>{let n=e?e(t):null;const o=!!n&&Ye(n).length>0;return o||(n=$(yX,U(U({},t),{},{ref:a}),null)),{customize:o,bodyContent:n}})(s,q(q(q({},t),{filteredItems:c.value,filteredRenderItems:u.value,selectedKeys:r}),h));return f=y?$("div",{class:`${e}-body-customize-wrapper`},[m]):c.value.length?m:$("div",{class:`${e}-body-not-found`},[S.value]),$("div",{class:d?`${e}-body ${e}-body-with-search`:`${e}-body`,ref:i},[v,f])};return()=>{var n,l;const{prefixCls:i,checkedKeys:s,disabled:u,showSearch:d,searchPlaceholder:f,selectAll:g,selectCurrent:m,selectInvert:b,removeAll:y,removeCurrent:S,renderList:C,onItemSelectAll:k,onItemRemove:O,showSelectAll:I=!0,showRemove:M,pagination:P}=t,E=null===(n=r.footer)||void 0===n?void 0:n.call(r,q({},t)),T=pe(i,{[`${i}-with-pagination`]:!!P,[`${i}-with-footer`]:!!E}),A=w(i,f,s,C,d,u),B=E?$("div",{class:`${i}-footer`},[E]):null,D=!M&&!P&&(e=>{let{disabled:n,prefixCls:o}=e;var r;const l="all"===p.value;return $(ST,{disabled:0===(null===(r=t.dataSource)||void 0===r?void 0:r.length)||n,checked:l,indeterminate:"part"===p.value,class:`${o}-checkbox`,onChange:()=>{const e=v.value;t.onItemSelectAll(h(l?[]:e,l?t.checkedKeys:[]))}},null)})({disabled:u,prefixCls:i});let z=null;z=$(NS,null,M?{default:()=>[P&&$(NS.Item,{key:"removeCurrent",onClick:()=>{const e=SX((a.value.items||[]).map((e=>e.item)));null==O||O(e)}},{default:()=>[S]}),$(NS.Item,{key:"removeAll",onClick:()=>{null==O||O(v.value)}},{default:()=>[y]})]}:{default:()=>[$(NS.Item,{key:"selectAll",onClick:()=>{const e=v.value;k(h(e,[]))}},{default:()=>[g]}),P&&$(NS.Item,{onClick:()=>{const e=SX((a.value.items||[]).map((e=>e.item)));k(h(e,[]))}},{default:()=>[m]}),$(NS.Item,{key:"selectInvert",onClick:()=>{let e;e=P?SX((a.value.items||[]).map((e=>e.item))):v.value;const t=new Set(s),n=[],o=[];e.forEach((e=>{t.has(e)?o.push(e):n.push(e)})),k(h(n,o))}},{default:()=>[b]})]});const R=$(Hx,{class:`${i}-header-dropdown`,overlay:z,disabled:u},{default:()=>[$(yv,null,null)]});return $("div",{class:T,style:o.style},[$("div",{class:`${i}-header`},[I?$(e,null,[D,R]):null,$("span",{class:`${i}-header-selected`},[$("span",null,[x(s.length,c.value.length)]),$("span",{class:`${i}-header-title`},[null===(l=r.titleText)||void 0===l?void 0:l.call(r)])])]),A,B])}}});function kX(){}const OX=e=>{const{disabled:t,moveToLeft:n=kX,moveToRight:o=kX,leftArrowText:r="",rightArrowText:l="",leftActive:i,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return $("div",{class:s,style:c},[$(gx,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:$("rtl"!==u?Dx:MP,null,null)},{default:()=>[l]}),!d&&$(gx,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:$("rtl"!==u?MP:Dx,null,null)},{default:()=>[r]})])};OX.displayName="Operation",OX.inheritAttrs=!1;const IX=OX,MX=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:l,margin:i}=e,a=`${t}-table`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${i}px 0 ${l}px`}},[`${`${t}-input`}[disabled]`]:{backgroundColor:"transparent"}}}},PX=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},EX=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:q({},PX(e,e.colorError)),[`${t}-status-warning`]:q({},PX(e,e.colorWarning))}},TX=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:l,transferHeaderHeight:i,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:p,listWidth:v,listWidthLG:f,fontSizeIcon:h,marginXS:g,paddingSM:m,lineType:b,iconCls:y,motionDurationSlow:$}=e;return{display:"flex",flexDirection:"column",width:v,height:p,border:`${r}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:f,height:"auto"},"&-search":{[`${y}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${a-r}px ${m}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${b} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":q(q({},Yr),{flex:"auto",textAlign:"end"}),"&-dropdown":q(q({},qr()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:m}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:l,padding:`${s}px ${m}px`,transition:`all ${$}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":q(q({},Yr),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${$}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${b} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${b} ${o}`},"&-checkbox":{lineHeight:1}}},AX=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:l,marginXXS:i,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:q(q({},Ur(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:TX(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${l}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},BX=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},DX=tl("Transfer",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:l}=e,i=Math.round(t*n),a=r,s=l,c=rl(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-i)/2),transferItemPaddingVertical:(s-i)/2});return[AX(c),MX(c),EX(c),BX(c)]}),{listWidth:180,listHeight:200,listWidthLG:250}),zX=r({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:{id:String,prefixCls:String,dataSource:vt([]),disabled:ut(),targetKeys:vt(),selectedKeys:vt(),render:dt(),listStyle:ht([Function,Object],(()=>({}))),operationStyle:ct(void 0),titles:vt(),operations:vt(),showSearch:ut(!1),filterOption:dt(),searchPlaceholder:String,notFoundContent:Ii.any,locale:ct(),rowKey:dt(),showSelectAll:ut(),selectAllLabels:vt(),children:dt(),oneWay:ut(),pagination:ht([Object,Boolean]),status:ft(),onChange:dt(),onSelectChange:dt(),onSearch:dt(),onScroll:dt(),"onUpdate:targetKeys":dt(),"onUpdate:selectedKeys":dt()},slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{configProvider:i,prefixCls:a,direction:s}=Il("transfer",e),[u,p]=DX(a),v=f([]),h=f([]),g=Qv(),b=Jv.useInject(),y=d((()=>nf(b.status,e.status)));c((()=>e.selectedKeys),(()=>{var t,n;v.value=(null===(t=e.selectedKeys)||void 0===t?void 0:t.filter((t=>-1===e.targetKeys.indexOf(t))))||[],h.value=(null===(n=e.selectedKeys)||void 0===n?void 0:n.filter((t=>e.targetKeys.indexOf(t)>-1)))||[]}),{immediate:!0});const x=t=>{const{targetKeys:o=[],dataSource:r=[]}=e,l="right"===t?v.value:h.value,i=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:o,key:r}=e;o&&t.set(r,n)})),t})(r),a=l.filter((e=>!i.has(e))),s=$X(a),c="right"===t?a.concat(o):o.filter((e=>!s.has(e))),u="right"===t?"left":"right";"right"===t?v.value=[]:h.value=[],n("update:targetKeys",c),I(u,[]),n("change",c,t,a),g.onFieldChange()},S=()=>{x("left")},w=()=>{x("right")},C=(e,t)=>{I(e,t)},k=e=>C("left",e),O=e=>C("right",e),I=(t,o)=>{"left"===t?(e.selectedKeys||(v.value=o),n("update:selectedKeys",[...o,...h.value]),n("selectChange",o,R(h.value))):(e.selectedKeys||(h.value=o),n("update:selectedKeys",[...o,...v.value]),n("selectChange",R(v.value),o))},M=(e,t)=>{const o=t.target.value;n("search",e,o)},P=e=>{M("left",e)},E=e=>{M("right",e)},T=e=>{n("search",e,"")},A=()=>{T("left")},B=()=>{T("right")},D=(e,t,n)=>{const o="left"===e?[...v.value]:[...h.value],r=o.indexOf(t);r>-1&&o.splice(r,1),n&&o.push(t),I(e,o)},z=(e,t)=>D("left",e,t),j=(e,t)=>D("right",e,t),N=t=>{const{targetKeys:o=[]}=e,r=o.filter((e=>!t.includes(e)));n("update:targetKeys",r),n("change",r,"left",[...t])},H=(e,t)=>{n("scroll",e,t)},F=e=>{H("left",e)},L=e=>{H("right",e)},_=(e,t)=>"function"==typeof e?e({direction:t}):e,W=f([]),K=f([]);m((()=>{const{dataSource:t,rowKey:n,targetKeys:o=[]}=e,r=[],l=new Array(o.length),i=$X(o);t.forEach((e=>{n&&(e.key=n(e)),i.has(e.key)?l[i.get(e.key)]=e:r.push(e)})),W.value=r,K.value=l})),l({handleSelectChange:I});const V=t=>{var n,l,c,u,d,f;const{disabled:m,operations:x=[],showSearch:C,listStyle:I,operationStyle:M,filterOption:T,showSelectAll:D,selectAllLabels:R=[],oneWay:H,pagination:V,id:X=g.id.value}=e,{class:G,style:Y}=o,Q=r.children,Z=!Q&&V,J=((t,n)=>{const o={notFoundContent:n("Transfer")},l=Qe(r,e,"notFoundContent");return l&&(o.notFoundContent=l),void 0!==e.searchPlaceholder&&(o.searchPlaceholder=e.searchPlaceholder),q(q(q({},t),o),e.locale)})(t,i.renderEmpty),{footer:ee}=r,te=e.render||r.render,ne=h.value.length>0,oe=v.value.length>0,re=pe(a.value,G,{[`${a.value}-disabled`]:m,[`${a.value}-customize-list`]:!!Q,[`${a.value}-rtl`]:"rtl"===s.value},tf(a.value,y.value,b.hasFeedback),p.value),le=e.titles,ie=null!==(c=null!==(n=le&&le[0])&&void 0!==n?n:null===(l=r.leftTitle)||void 0===l?void 0:l.call(r))&&void 0!==c?c:(J.titles||["",""])[0],ae=null!==(f=null!==(u=le&&le[1])&&void 0!==u?u:null===(d=r.rightTitle)||void 0===d?void 0:d.call(r))&&void 0!==f?f:(J.titles||["",""])[1];return $("div",U(U({},o),{},{class:re,style:Y,id:X}),[$(CX,U({key:"leftList",prefixCls:`${a.value}-list`,dataSource:W.value,filterOption:T,style:_(I,"left"),checkedKeys:v.value,handleFilter:P,handleClear:A,onItemSelect:z,onItemSelectAll:k,renderItem:te,showSearch:C,renderList:Q,onScroll:F,disabled:m,direction:"rtl"===s.value?"right":"left",showSelectAll:D,selectAllLabel:R[0]||r.leftSelectAllLabel,pagination:Z},J),{titleText:()=>ie,footer:ee}),$(IX,{key:"operation",class:`${a.value}-operation`,rightActive:oe,rightArrowText:x[0],moveToRight:w,leftActive:ne,leftArrowText:x[1],moveToLeft:S,style:M,disabled:m,direction:s.value,oneWay:H},null),$(CX,U({key:"rightList",prefixCls:`${a.value}-list`,dataSource:K.value,filterOption:T,style:_(I,"right"),checkedKeys:h.value,handleFilter:E,handleClear:B,onItemSelect:j,onItemSelectAll:O,onItemRemove:N,renderItem:te,showSearch:C,renderList:Q,onScroll:L,disabled:m,direction:"rtl"===s.value?"left":"right",showSelectAll:D,selectAllLabel:R[1]||r.rightSelectAllLabel,showRemove:H,pagination:Z},J),{titleText:()=>ae,footer:ee})])};return()=>u($(Ht,{componentName:"Transfer",defaultLocale:Nt.Transfer,children:V},null))}}),RX=at(zX);function jX(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function NX(e){return null==e}const HX=Symbol("TreeSelectContextPropsKey");const FX={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},LX=r({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=Vd(),l=Ad(),i=p(HX,{}),a=f(),s=up((()=>i.treeData),[()=>r.open,()=>i.treeData],(e=>e[0])),u=d((()=>{const{checkable:e,halfCheckedKeys:t,checkedKeys:n}=l;return e?{checked:n,halfChecked:t}:null}));c((()=>r.open),(()=>{S((()=>{var e;r.open&&!r.multiple&&l.checkedKeys.length&&(null===(e=a.value)||void 0===e||e.scrollTo({key:l.checkedKeys[0]}))}))}),{immediate:!0,flush:"post"});const v=d((()=>String(r.searchValue).toLowerCase())),h=e=>!!v.value&&String(e[l.treeNodeFilterProp]).toLowerCase().includes(v.value),m=g(l.treeDefaultExpandedKeys),b=g(null);c((()=>r.searchValue),(()=>{r.searchValue&&(b.value=function(e,t){const n=[];return function e(o){o.forEach((o=>{n.push(o[t.value]);const r=o[t.children];r&&e(r)}))}(e),n}(R(i.treeData),R(i.fieldNames)))}),{immediate:!0});const y=d((()=>l.treeExpandedKeys?l.treeExpandedKeys.slice():r.searchValue?b.value:m.value)),x=e=>{var t;m.value=e,b.value=e,null===(t=l.onTreeExpand)||void 0===t||t.call(l,e)},w=e=>{e.preventDefault()},C=(e,t)=>{let{node:n}=t;var o,a;const{checkable:s,checkedKeys:c}=l;s&&jX(n)||(null===(o=i.onSelect)||void 0===o||o.call(i,n.key,{selected:!c.includes(n.key)}),r.multiple||null===(a=r.toggleOpen)||void 0===a||a.call(r,!1))},k=f(null),O=d((()=>l.keyEntities[k.value])),I=e=>{k.value=e};return o({scrollTo:function(){for(var e,t,n=arguments.length,o=new Array(n),r=0;r{var t;const{which:n}=e;switch(n){case sd.UP:case sd.DOWN:case sd.LEFT:case sd.RIGHT:null===(t=a.value)||void 0===t||t.onKeydown(e);break;case sd.ENTER:if(O.value){const{selectable:e,value:t}=O.value.node||{};!1!==e&&C(0,{node:{key:k.value},selected:!l.checkedKeys.includes(t)})}break;case sd.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var e;const{prefixCls:t,multiple:o,searchValue:c,open:d,notFoundContent:p=(null===(e=n.notFoundContent)||void 0===e?void 0:e.call(n))}=r,{listHeight:v,listItemHeight:f,virtual:g,dropdownMatchSelectWidth:m,treeExpandAction:b}=i,{checkable:S,treeDefaultExpandAll:M,treeIcon:P,showTreeIcon:E,switcherIcon:T,treeLine:A,loadData:B,treeLoadedKeys:D,treeMotion:z,onTreeLoad:R,checkedKeys:j}=l;if(0===s.value.length)return $("div",{role:"listbox",class:`${t}-empty`,onMousedown:w},[p]);const N={fieldNames:i.fieldNames};return D&&(N.loadedKeys=D),y.value&&(N.expandedKeys=y.value),$("div",{onMousedown:w},[O.value&&d&&$("span",{style:FX,"aria-live":"assertive"},[O.value.node.value]),$($K,U(U({ref:a,focusable:!1,prefixCls:`${t}-tree`,treeData:s.value,height:v,itemHeight:f,virtual:!1!==g&&!1!==m,multiple:o,icon:P,showIcon:E,switcherIcon:T,showLine:A,loadData:c?null:B,motion:z,activeKey:k.value,checkable:S,checkStrictly:!0,checkedKeys:u.value,selectedKeys:S?[]:j,defaultExpandAll:M},N),{},{onActiveChange:I,onSelect:C,onCheck:C,onExpand:x,onLoad:R,filterTreeNode:h,expandAction:b}),q(q({},n),{checkable:l.customSlots.treeCheckable}))])}}}),_X="SHOW_PARENT",WX="SHOW_CHILD";function KX(e,t,n,o){const r=new Set(e);return t===WX?e.filter((e=>{const t=n[e];return!(t&&t.children&&t.children.some((e=>{let{node:t}=e;return r.has(t[o.value])}))&&t.children.every((e=>{let{node:t}=e;return jX(t)||r.has(t[o.value])})))})):t===_X?e.filter((e=>{const t=n[e],o=t?t.parent:null;return!(o&&!jX(o.node)&&r.has(o.key))})):e}const VX=()=>null;VX.inheritAttrs=!1,VX.displayName="ATreeSelectNode",VX.isTreeSelectNode=!0;const XX=VX;var GX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rt}),t}function UX(e,t,n){const o=g();return c([n,e,t],(()=>{const r=n.value;e.value?o.value=n.value?function(e,t){let{id:n,pId:o,rootPId:r}=t;const l={},i=[];return e.map((e=>{const t=q({},e),o=t[n];return l[o]=t,t.key=t.key||o,t})).forEach((e=>{const t=e[o],n=l[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&i.push(e)})),i}(R(e.value),q({id:"id",pId:"pId",rootPId:null},!0!==r?r:{})):R(e.value).slice():o.value=function e(){return Ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,l;if(!((l=t)&&l.type&&l.type.isTreeSelectNode))return null;const i=t.children||{},a=t.key,s={};for(const[e,S]of Object.entries(t.props))s[re(e)]=S;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:v}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:v||""===v||void 0},h=q(q({},s),f),{title:g=(null===(n=i.title)||void 0===n?void 0:n.call(i,h)),switcherIcon:m=(null===(o=i.switcherIcon)||void 0===o?void 0:o.call(i,h))}=s,b=GX(s,["title","switcherIcon"]),y=null===(r=i.default)||void 0===r?void 0:r.call(i),$=q(q(q({},b),{title:g,switcherIcon:m,key:a,isLeaf:c}),f),x=e(y);return x.length&&($.children=x),$}))}(R(t.value))}),{immediate:!0,deep:!0}),o}function qX(){return q(q({},Ml(Ud(),["mode"])),{prefixCls:String,id:String,value:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array]},onChange:{type:Function},searchValue:String,inputValue:String,onSearch:{type:Function},autoClearSearchValue:{type:Boolean,default:void 0},filterTreeNode:{type:[Boolean,Function],default:void 0},treeNodeFilterProp:String,onSelect:Function,onDeselect:Function,showCheckedStrategy:{type:String},treeNodeLabelProp:String,fieldNames:{type:Object},multiple:{type:Boolean,default:void 0},treeCheckable:{type:Boolean,default:void 0},treeCheckStrictly:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},treeData:{type:Array},treeDataSimpleMode:{type:[Boolean,Object],default:void 0},loadData:{type:Function},treeLoadedKeys:{type:Array},onTreeLoad:{type:Function},treeDefaultExpandAll:{type:Boolean,default:void 0},treeExpandedKeys:{type:Array},treeDefaultExpandedKeys:{type:Array},onTreeExpand:{type:Function},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,onDropdownVisibleChange:{type:Function},treeLine:{type:[Boolean,Object],default:void 0},treeIcon:Ii.any,showTreeIcon:{type:Boolean,default:void 0},switcherIcon:Ii.any,treeMotion:Ii.any,children:Array,treeExpandAction:String,showArrow:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:Ii.any,maxTagPlaceholder:{type:Function},dropdownPopupAlign:Ii.any,customSlots:Object})}const QX=r({compatConfig:{MODE:3},name:"TreeSelect",inheritAttrs:!1,props:Re(qX(),{treeNodeFilterProp:"value",autoClearSearchValue:!0,showCheckedStrategy:WX,listHeight:200,listItemHeight:20,prefixCls:"vc-tree-select"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=yp(M(e,"id")),i=d((()=>e.treeCheckable&&!e.treeCheckStrictly)),a=d((()=>e.treeCheckable||e.treeCheckStrictly)),s=d((()=>e.treeCheckStrictly||e.labelInValue)),u=d((()=>a.value||e.multiple)),p=d((()=>function(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}(e.fieldNames))),[h,b]=Sp("",{value:d((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),y=t=>{var n;b(t),null===(n=e.onSearch)||void 0===n||n.call(e,t)},x=UX(M(e,"treeData"),M(e,"children"),M(e,"treeDataSimpleMode")),{keyEntities:S,valueEntities:w}=((e,t)=>{const n=g(new Map),o=g({});return m((()=>{const r=t.value,l=nP(e.value,{fieldNames:r,initWrapper:e=>q(q({},e),{valueEntities:new Map}),processEntity:(e,t)=>{const n=e.node[r.value];t.valueEntities.set(n,e)}});n.value=l.valueEntities,o.value=l.keyEntities})),{valueEntities:n,keyEntities:o}})(x,p),C=((e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:l}=n;return d((()=>{const{children:n}=l.value,i=t.value,a=null==o?void 0:o.value;if(!i||!1===r.value)return e.value;let s;if("function"==typeof r.value)s=r.value;else{const e=i.toUpperCase();s=(t,n)=>{const o=n[a];return String(o).toUpperCase().includes(e)}}return function e(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];for(let l=0,a=t.length;l{var t;return(t=e,Array.isArray(t)?t:void 0!==t?[t]:[]).map((e=>function(e){return!e||"object"!=typeof e}(e)?{value:e}:e))},O=t=>k(t).map((t=>{let{label:n}=t;const{value:o,halfChecked:r}=t;let l;const i=w.value.get(o);return i&&(n=null!=n?n:(t=>{if(t){if(e.treeNodeLabelProp)return t[e.treeNodeLabelProp];const{_title:n}=p.value;for(let e=0;ek(I.value))),T=g([]),A=g([]);m((()=>{const e=[],t=[];E.value.forEach((n=>{n.halfChecked?t.push(n):e.push(n)})),T.value=e,A.value=t}));const B=d((()=>T.value.map((e=>e.value)))),{maxLevel:D,levelEntities:j}=$P(S),[N,H]=((e,t,n,o,r,l)=>{const i=g([]),a=g([]);return m((()=>{let s=e.value.map((e=>{let{value:t}=e;return t})),c=t.value.map((e=>{let{value:t}=e;return t}));const u=s.filter((e=>!o.value[e]));n.value&&({checkedKeys:s,halfCheckedKeys:c}=pP(s,!0,o.value,r.value,l.value)),i.value=Array.from(new Set([...u,...s])),a.value=c})),[i,a]})(T,A,i,S,D,j),F=d((()=>{const t=KX(N.value,e.showCheckedStrategy,S.value,p.value).map((e=>{var t,n,o;return null!==(o=null===(n=null===(t=S.value[e])||void 0===t?void 0:t.node)||void 0===n?void 0:n[p.value.value])&&void 0!==o?o:e})).map((e=>{const t=T.value.find((t=>t.value===e));return{value:e,label:null==t?void 0:t.label}})),n=O(t),o=n[0];return!u.value&&o&&NX(o.value)&&NX(o.label)?[]:n.map((e=>{var t;return q(q({},e),{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))})),[L]=(e=>{const t=g({valueLabels:new Map}),n=g();return c(e,(()=>{n.value=R(e.value)}),{immediate:!0}),[d((()=>{const{valueLabels:e}=t.value,o=new Map,r=n.value.map((t=>{var n;const{value:r}=t,l=null!==(n=t.label)&&void 0!==n?n:e.get(r);return o.set(r,l),q(q({},t),{label:l})}));return t.value.valueLabels=o,r}))]})(F),_=(t,n,o)=>{const r=O(t);if(P(r),e.autoClearSearchValue&&b(""),e.onChange){let r=t;if(i.value){const n=KX(t,e.showCheckedStrategy,S.value,p.value);r=n.map((e=>{const t=w.value.get(e);return t?t.node[p.value.value]:e}))}const{triggerValue:l,selected:c}=n||{triggerValue:void 0,selected:void 0};let d=r;if(e.treeCheckStrictly){const e=A.value.filter((e=>!r.includes(e.value)));d=[...d,...e]}const v=O(d),f={preValue:T.value,triggerValue:l};let h=!0;(e.treeCheckStrictly||"selection"===o&&!c)&&(h=!1),function(e,t,n,o,r,l){let i=null,a=null;function s(){a||(a=[],function e(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map(((o,c)=>{const u=`${r}-${c}`,d=o[l.value],p=n.includes(d),v=e(o[l.children]||[],u,p),f=$(XX,o,{default:()=>[v.map((e=>e.node))]});if(t===d&&(i=f),p){const e={pos:u,node:f,children:v};return s||a.push(e),e}return null})).filter((e=>e))}(o),a.sort(((e,t)=>{let{node:{props:{value:o}}}=e,{node:{props:{value:r}}}=t;return n.indexOf(o)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:()=>(s(),i)}),Object.defineProperty(e,"allCheckedNodes",{get:()=>(s(),r?a:a.map((e=>{let{node:t}=e;return t})))})}(f,l,t,x.value,h,p.value),a.value?f.checked=c:f.selected=c;const g=s.value?v:v.map((e=>e.value));e.onChange(u.value?g:g[0],s.value?null:v.map((e=>e.label)),f)}},W=(t,n)=>{let{selected:o,source:r}=n;var l,a,s;const c=R(S.value),d=R(w.value),v=c[t],f=null==v?void 0:v.node,h=null!==(l=null==f?void 0:f[p.value.value])&&void 0!==l?l:t;if(u.value){let e=o?[...B.value,h]:N.value.filter((e=>e!==h));if(i.value){const{missingRawValues:t,existRawValues:n}=(e=>{const t=[],n=[];return e.forEach((e=>{w.value.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}})(e),r=n.map((e=>d.get(e).key));let l;({checkedKeys:l}=pP(r,!!o||{checked:!1,halfCheckedKeys:H.value},c,D.value,j.value)),e=[...t,...l.map((e=>c[e].node[p.value.value]))]}_(e,{selected:o,triggerValue:h},r||"option")}else _([h],{selected:!0,triggerValue:h},"option");o||!u.value?null===(a=e.onSelect)||void 0===a||a.call(e,h,YX(f)):null===(s=e.onDeselect)||void 0===s||s.call(e,h,YX(f))},K=t=>{if(e.onDropdownVisibleChange){const n={};Object.defineProperty(n,"documentClickClose",{get:()=>!1}),e.onDropdownVisibleChange(t,n)}},V=(e,t)=>{const n=e.map((e=>e.value));"clear"!==t.type?t.values.length&&W(t.values[0].value,{selected:!1,source:"selection"}):_(n,{},"selection")},{treeNodeFilterProp:X,loadData:G,treeLoadedKeys:Y,onTreeLoad:Q,treeDefaultExpandAll:Z,treeExpandedKeys:J,treeDefaultExpandedKeys:ee,onTreeExpand:te,virtual:ne,listHeight:oe,listItemHeight:re,treeLine:le,treeIcon:ie,showTreeIcon:ae,switcherIcon:se,treeMotion:ce,customSlots:ue,dropdownMatchSelectWidth:de,treeExpandAction:pe}=z(e);!function(e){v(Td,e)}(Gd({checkable:a,loadData:G,treeLoadedKeys:Y,onTreeLoad:Q,checkedKeys:N,halfCheckedKeys:H,treeDefaultExpandAll:Z,treeExpandedKeys:J,treeDefaultExpandedKeys:ee,onTreeExpand:te,treeIcon:ie,treeMotion:ce,showTreeIcon:ae,switcherIcon:se,treeLine:le,treeNodeFilterProp:X,keyEntities:S,customSlots:ue})),function(e){v(HX,e)}(Gd({virtual:ne,listHeight:oe,listItemHeight:re,treeData:C,fieldNames:p,onSelect:W,dropdownMatchSelectWidth:de,treeExpandAction:pe}));const ve=f();return o({focus(){var e;null===(e=ve.value)||void 0===e||e.focus()},blur(){var e;null===(e=ve.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=ve.value)||void 0===t||t.scrollTo(e)}}),()=>{var t;const o=Ml(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return $(Qd,U(U(U({ref:ve},n),o),{},{id:l,prefixCls:e.prefixCls,mode:u.value?"multiple":void 0,displayValues:L.value,onDisplayValuesChange:V,searchValue:h.value,onSearch:y,OptionList:LX,emptyOptions:!x.value.length,onDropdownVisibleChange:K,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:null===(t=e.dropdownMatchSelectWidth)||void 0===t||t}),r)}}}),ZX=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},YK(n,rl(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},vT(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};const JX=(e,t,n)=>void 0!==n?n:`${e}-${t}`;const eG=r({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Re(q(q({},Ml(qX(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:Ii.any,size:ft(),bordered:ut(),treeLine:ht([Boolean,Object]),replaceFields:ct(),placement:ft(),status:ft(),popupClassName:String,dropdownClassName:String,"onUpdate:value":dt(),"onUpdate:treeExpandedKeys":dt(),"onUpdate:searchValue":dt()}),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;void 0===e.treeData&&o.default,Mi(!1!==e.multiple||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),Mi(void 0===e.replaceFields,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),Mi(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const i=Qv(),a=Jv.useInject(),s=d((()=>nf(a.status,e.status))),{prefixCls:c,renderEmpty:u,direction:p,virtual:v,dropdownMatchSelectWidth:h,size:g,getPopupContainer:m,getPrefixCls:b,disabled:y}=Il("select",e),{compactSize:x,compactItemClassnames:S}=sm(c,p),w=d((()=>x.value||g.value)),C=At(),k=d((()=>{var e;return null!==(e=y.value)&&void 0!==e?e:C.value})),O=d((()=>b())),I=d((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft")),M=d((()=>JX(O.value,zu(I.value),e.transitionName))),P=d((()=>JX(O.value,"",e.choiceTransitionName))),E=d((()=>b("select-tree",e.prefixCls))),T=d((()=>b("tree-select",e.prefixCls))),[A,B]=vb(c),[D]=function(e,t){return tl("TreeSelect",(e=>{const n=rl(e,{treePrefixCls:t.value});return[ZX(n)]}))(e)}(T,E),z=d((()=>pe(e.popupClassName||e.dropdownClassName,`${T.value}-dropdown`,{[`${T.value}-dropdown-rtl`]:"rtl"===p.value},B.value))),R=d((()=>!(!e.treeCheckable&&!e.multiple))),j=d((()=>void 0!==e.showArrow?e.showArrow:e.loading||!R.value)),N=f();r({focus(){var e,t;null===(t=(e=N.value).focus)||void 0===t||t.call(e)},blur(){var e,t;null===(t=(e=N.value).blur)||void 0===t||t.call(e)}});const H=function(){for(var e=arguments.length,t=new Array(e),n=0;n{l("update:treeExpandedKeys",e),l("treeExpand",e)},L=e=>{l("update:searchValue",e),l("search",e)},_=e=>{l("blur",e),i.onFieldBlur()};return()=>{var t,r;const{notFoundContent:l=(null===(t=o.notFoundContent)||void 0===t?void 0:t.call(o)),prefixCls:d,bordered:f,listHeight:g,listItemHeight:b,multiple:y,treeIcon:x,treeLine:C,showArrow:O,switcherIcon:W=(null===(r=o.switcherIcon)||void 0===r?void 0:r.call(o)),fieldNames:K=e.replaceFields,id:V=i.id.value}=e,{isFormItemInput:X,hasFeedback:G,feedbackIcon:Y}=a,{suffixIcon:Q,removeIcon:Z,clearIcon:J}=Vv(q(q({},e),{multiple:R.value,showArrow:j.value,hasFeedback:G,feedbackIcon:Y,prefixCls:c.value}),o);let ee;ee=void 0!==l?l:u("Select");const te=Ml(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),ne=pe(!d&&T.value,{[`${c.value}-lg`]:"large"===w.value,[`${c.value}-sm`]:"small"===w.value,[`${c.value}-rtl`]:"rtl"===p.value,[`${c.value}-borderless`]:!f,[`${c.value}-in-form-item`]:X},tf(c.value,s.value,G),S.value,n.class,B.value),oe={};return void 0===e.treeData&&o.default&&(oe.children=Fe(o.default())),A(D($(QX,U(U(U(U({},n),te),{},{disabled:k.value,virtual:v.value,dropdownMatchSelectWidth:h.value,id:V,fieldNames:K,ref:N,prefixCls:c.value,class:ne,listHeight:g,listItemHeight:b,treeLine:!!C,inputIcon:Q,multiple:y,removeIcon:Z,clearIcon:J,switcherIcon:e=>LK(E.value,W,e,o.leafIcon,C),showTreeIcon:x,notFoundContent:ee,getPopupContainer:null==m?void 0:m.value,treeMotion:null,dropdownClassName:z.value,choiceTransitionName:P.value,onChange:H,onBlur:_,onSearch:L,onTreeExpand:F},oe),{},{transitionName:M.value,customSlots:q(q({},o),{treeCheckable:()=>$("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:I.value,showArrow:G||O}),q(q({},o),{treeCheckable:()=>$("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),tG=XX,nG=q(eG,{TreeNode:XX,SHOW_ALL:"SHOW_ALL",SHOW_PARENT:_X,SHOW_CHILD:WX,install:e=>(e.component(eG.name,eG),e.component(tG.displayName,tG),e)}),oG=()=>({format:String,showNow:ut(),showHour:ut(),showMinute:ut(),showSecond:ut(),use12Hours:ut(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:ut(),popupClassName:String,status:ft()});const{TimePicker:rG,TimeRangePicker:lG}=function(e){const t=EB(e,q(q({},oG()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,l=r({name:"ATimePicker",inheritAttrs:!1,props:q(q(q(q({},bB()),yB()),oG()),{addon:{type:Function}}),slots:Object,setup(e,t){let{slots:o,expose:r,emit:l,attrs:i}=t;const a=e,s=Qv();Mi(!(o.addon||a.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const c=f();r({focus:()=>{var e;null===(e=c.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=c.value)||void 0===e||e.blur()}});const u=(e,t)=>{l("update:value",e),l("change",e,t),s.onFieldChange()},d=e=>{l("update:open",e),l("openChange",e)},p=e=>{l("focus",e)},v=e=>{l("blur",e),s.onFieldBlur()},h=e=>{l("ok",e)};return()=>{const{id:e=s.id.value}=a;return $(n,U(U(U({},i),Ml(a,["onUpdate:value","onUpdate:open"])),{},{id:e,dropdownClassName:a.popupClassName,mode:void 0,ref:c,renderExtraFooter:a.addon||o.addon||a.renderExtraFooter||o.renderExtraFooter,onChange:u,onOpenChange:d,onFocus:p,onBlur:v,onOk:h}),o)}}}),i=r({name:"ATimeRangePicker",inheritAttrs:!1,props:q(q(q(q({},bB()),$B()),oG()),{order:{type:Boolean,default:!0}}),slots:Object,setup(e,t){let{slots:n,expose:r,emit:l,attrs:i}=t;const a=e,s=f(),c=Qv();r({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()}});const u=(e,t)=>{l("update:value",e),l("change",e,t),c.onFieldChange()},d=e=>{l("update:open",e),l("openChange",e)},p=e=>{l("focus",e)},v=e=>{l("blur",e),c.onFieldBlur()},h=(e,t)=>{l("panelChange",e,t)},g=e=>{l("ok",e)},m=(e,t,n)=>{l("calendarChange",e,t,n)};return()=>{const{id:e=c.id.value}=a;return $(o,U(U(U({},i),Ml(a,["onUpdate:open","onUpdate:value"])),{},{id:e,dropdownClassName:a.popupClassName,picker:"time",mode:void 0,ref:s,onChange:u,onOpenChange:d,onFocus:p,onBlur:v,onPanelChange:h,onOk:g,onCalendarChange:m}),n)}}});return{TimePicker:l,TimeRangePicker:i}}(hw),iG=q(rG,{TimePicker:rG,TimeRangePicker:lG,install:e=>(e.component(rG.name,rG),e.component(lG.name,lG),e)}),aG=r({compatConfig:{MODE:3},name:"ATimelineItem",props:Re({prefixCls:String,color:String,dot:Ii.any,pending:ut(),position:Ii.oneOf(it("left","right","")).def(""),label:Ii.any},{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Il("timeline",e),r=d((()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending}))),l=d((()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue")),i=d((()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!l.value})));return()=>{var t,a,s;const{label:c=(null===(t=n.label)||void 0===t?void 0:t.call(n)),dot:u=(null===(a=n.dot)||void 0===a?void 0:a.call(n))}=e;return $("li",{class:r.value},[c&&$("div",{class:`${o.value}-item-label`},[c]),$("div",{class:`${o.value}-item-tail`},null),$("div",{class:[i.value,!!u&&`${o.value}-item-head-custom`],style:{borderColor:l.value,color:l.value}},[u]),$("div",{class:`${o.value}-item-content`},[null===(s=n.default)||void 0===s?void 0:s.call(n)])])}}}),sG=e=>{const{componentCls:t}=e;return{[t]:q(q({},Ur(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},cG=tl("Timeline",(e=>{const t=rl(e,{timeLineItemPaddingBottom:1.25*e.padding,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth});return[sG(t)]})),uG=r({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:Re({prefixCls:String,pending:Ii.any,pendingDot:Ii.any,reverse:ut(),mode:Ii.oneOf(it("left","alternate","right",""))},{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("timeline",e),[i,a]=cG(r),s=(t,n)=>{const o=t.props||{};return"alternate"===e.mode?"right"===o.position?`${r.value}-item-right`:"left"===o.position||n%2==0?`${r.value}-item-left`:`${r.value}-item-right`:"left"===e.mode?`${r.value}-item-left`:"right"===e.mode||"right"===o.position?`${r.value}-item-right`:""};return()=>{var t,c,u;const{pending:d=(null===(t=n.pending)||void 0===t?void 0:t.call(n)),pendingDot:p=(null===(c=n.pendingDot)||void 0===c?void 0:c.call(n)),reverse:v,mode:f}=e,h="boolean"==typeof d?null:d,g=Ye(null===(u=n.default)||void 0===u?void 0:u.call(n)),m=d?$(aG,{pending:!!d,dot:p||$(Cv,null,null)},{default:()=>[h]}):null;m&&g.push(m);const b=v?g.reverse():g,y=b.length,x=`${r.value}-item-last`,S=b.map(((e,t)=>O(e,{class:pe([!v&&d?t===y-2?x:"":t===y-1?x:"",s(e,t)])}))),w=b.some((e=>{var t,n;return!(!(null===(t=e.props)||void 0===t?void 0:t.label)&&!(null===(n=e.children)||void 0===n?void 0:n.label))})),C=pe(r.value,{[`${r.value}-pending`]:!!d,[`${r.value}-reverse`]:!!v,[`${r.value}-${f}`]:!!f&&!w,[`${r.value}-label`]:w,[`${r.value}-rtl`]:"rtl"===l.value},o.class,a.value);return i($("ul",U(U({},o),{},{class:C}),[S]))}}});uG.Item=aG,uG.install=function(e){return e.component(uG.name,uG),e.component(aG.name,aG),e};const dG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function pG(e){for(var t=1;t{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},mG=e=>{const{componentCls:t}=e;return{"a&, a":q(q({},Vr(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},bG=e=>{const{componentCls:t}=e,n=Kk(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},yG=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),$G=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:q(q(q(q(q(q(q(q(q({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},gG(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Er[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),mG(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:q(q({},Vr(e)),{marginInlineStart:e.marginXXS})}),bG(e)),yG(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},xG=tl("Typography",(e=>[$G(e)]),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),SG=r({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String},setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:a}=z(e),s=l({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});c((()=>e.value),(e=>{s.current=e}));const u=f();function d(e){u.value=e}function p(e){let{target:{value:t}}=e;s.current=t.replace(/[\r\n]/g,""),n("change",s.current)}function v(){s.inComposition=!0}function h(){s.inComposition=!1}function g(e){const{keyCode:t}=e;t===sd.ENTER&&e.preventDefault(),s.inComposition||(s.lastKeyCode=t)}function m(t){const{keyCode:o,ctrlKey:r,altKey:l,metaKey:i,shiftKey:a}=t;s.lastKeyCode!==o||s.inComposition||r||l||i||a||(o===sd.ENTER?(y(),n("end")):o===sd.ESC&&(s.current=e.originContent,n("cancel")))}function b(){y()}function y(){n("save",s.current.trim())}i((()=>{var e;if(u.value){const t=null===(e=u.value)||void 0===e?void 0:e.resizableTextArea,n=null==t?void 0:t.textArea;n.focus();const{length:o}=n.value;n.setSelectionRange(o,o)}}));const[x,S]=xG(a);return()=>{const t=pe({[`${a.value}`]:!0,[`${a.value}-edit-content`]:!0,[`${a.value}-rtl`]:"rtl"===e.direction,[e.component?`${a.value}-${e.component}`:""]:!0},r.class,S.value);return x($("div",U(U({},r),{},{class:t}),[$(pz,{ref:d,maxlength:e.maxlength,value:s.current,onChange:p,onKeydown:g,onKeyup:m,onCompositionstart:v,onCompositionend:h,onBlur:b,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):$(hG,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),wG=SG;let CG;const kG={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function OG(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=(r=n,Array.prototype.slice.apply(r).map((e=>`${e}: ${r.getPropertyValue(e)};`)).join(""));var r;e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}const IG=(e,t,n,o,r)=>{CG||(CG=document.createElement("div"),CG.setAttribute("aria-hidden","true"),document.body.appendChild(CG));const{rows:l,suffix:i=""}=t,a=function(e){const t=document.createElement("div");OG(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}(e),s=Math.round(a*l*100)/100;OG(CG,e);const c=V({render:()=>$("div",{style:kG},[$("span",{style:kG},[n,i]),$("span",{style:kG},[o])])});function u(){return Math.round(100*CG.getBoundingClientRect().height)/100-.1<=s}if(c.mount(CG),u())return c.unmount(),{content:n,text:CG.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(CG.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((e=>{let{nodeType:t,data:n}=e;return 8!==t&&""!==n})),p=Array.prototype.slice.apply(CG.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const v=[];CG.innerHTML="";const f=document.createElement("span");CG.appendChild(f);const h=document.createTextNode(r+i);function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const l=Math.floor((n+o)/2),i=t.slice(0,l);if(e.textContent=i,n>=o-1)for(let a=o;a>=n;a-=1){const n=t.slice(0,a);if(e.textContent=n,u()||!n)return a===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return u()?g(e,t,l,o,l):g(e,t,n,l,r)}function m(e){if(3===e.nodeType){const n=e.textContent||"",o=document.createTextNode(n);return t=o,f.insertBefore(t,h),g(o,n)}var t;return{finished:!1,vNode:null}}return f.appendChild(h),p.forEach((e=>{CG.appendChild(e)})),d.some((e=>{const{finished:t,vNode:n}=m(e);return n&&v.push(n),t})),{content:v,text:CG.innerHTML,ellipsis:!0}};const MG=r({name:"ATypography",inheritAttrs:!1,props:{prefixCls:String,direction:String,component:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Il("typography",e),[i,a]=xG(r);return()=>{var t;const s=q(q({},e),o),{prefixCls:c,direction:u,component:d="article"}=s,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),PG=MG,EG=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),XG=r({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:VG(),setup(t,n){let{slots:o,attrs:r,emit:a}=n;const{prefixCls:s,direction:u}=Il("typography",t),p=l({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),v=f(),h=f(),g=d((()=>{const e=t.ellipsis;return e?q({rows:1,expandable:!1},"object"==typeof e?e:null):{}}));function y(e){const{onExpand:t}=g.value;p.expanded=!0,null==t||t(e)}function x(e){e.preventDefault(),p.originContent=t.content,E(!0)}function w(e){C(e),E(!1)}function C(e){const{onChange:n}=I.value;e!==t.content&&(a("update:content",e),null==n||n(e))}function k(){var e,t;null===(t=(e=I.value).onCancel)||void 0===t||t.call(e),E(!1)}function O(e){e.preventDefault(),e.stopPropagation();const{copyable:n}=t,o=q({},"object"==typeof n?n:null);var r;void 0===o.text&&(o.text=t.ellipsis||t.editable?t.content:null===(r=_e(v.value))||void 0===r?void 0:r.innerText),AG(o.text||""),p.copied=!0,S((()=>{o.onCopy&&o.onCopy(e),p.copyId=setTimeout((()=>{p.copied=!1}),3e3)}))}i((()=>{p.clientRendered=!0,B()})),b((()=>{clearTimeout(p.copyId),rt.cancel(p.rafId)})),c([()=>g.value.rows,()=>t.content],(()=>{S((()=>{T()}))}),{flush:"post",deep:!0}),m((()=>{void 0===t.content&&(bn(!t.editable),bn(!t.ellipsis))}));const I=d((()=>{const e=t.editable;return e?q({},"object"==typeof e?e:null):{editing:!1}})),[M,P]=Sp(!1,{value:d((()=>I.value.editing))});function E(e){const{onStart:t}=I.value;e&&t&&t(),P(e)}function T(e){if(e){const{width:t,height:n}=e;if(!t||!n)return}rt.cancel(p.rafId),p.rafId=rt((()=>{B()}))}c(M,(e=>{var t;e||null===(t=h.value)||void 0===t||t.focus()}),{flush:"post"});const A=d((()=>{const{rows:e,expandable:n,suffix:o,onEllipsis:r,tooltip:l}=g.value;return!o&&!l&&(!(t.editable||t.copyable||n||r)&&(1===e?KG:WG))})),B=()=>{const{ellipsisText:e,isEllipsis:n}=p,{rows:o,suffix:r,onEllipsis:l}=g.value;if(!o||o<0||!_e(v.value)||p.expanded||void 0===t.content)return;if(A.value)return;const{content:i,text:a,ellipsis:s}=IG(_e(v.value),{rows:o,suffix:r},t.content,N(!0),"...");e===a&&p.isEllipsis===s||(p.ellipsisText=a,p.ellipsisContent=i,p.isEllipsis=s,n!==s&&l&&l(s))};function D(e){const{expandable:t,symbol:n}=g.value;if(!t)return null;if(!e&&(p.expanded||!p.isEllipsis))return null;const r=(o.ellipsisSymbol?o.ellipsisSymbol():n)||p.expandStr;return $("a",{key:"expand",class:`${s.value}-expand`,onClick:y,"aria-label":p.expandStr},[r])}function z(){if(!t.editable)return;const{tooltip:e,triggerType:n=["icon"]}=t.editable,r=o.editableIcon?o.editableIcon():$(_G,{role:"button"},null),l=o.editableTooltip?o.editableTooltip():p.editStr,i="string"==typeof l?l:"";return-1!==n.indexOf("icon")?$(Jy,{key:"edit",title:!1===e?"":l},{default:()=>[$(XH,{ref:h,class:`${s.value}-edit`,onClick:x,"aria-label":i},{default:()=>[r]})]}):null}function j(){if(!t.copyable)return;const{tooltip:e}=t.copyable,n=p.copied?p.copiedStr:p.copyStr,r=o.copyableTooltip?o.copyableTooltip({copied:p.copied}):n,l="string"==typeof r?r:"",i=p.copied?$(Pv,null,null):$(jG,null,null),a=o.copyableIcon?o.copyableIcon({copied:!!p.copied}):i;return $(Jy,{key:"copy",title:!1===e?"":r},{default:()=>[$(XH,{class:[`${s.value}-copy`,{[`${s.value}-copy-success`]:p.copied}],onClick:O,"aria-label":l},{default:()=>[a]})]})}function N(e){return[D(e),z(),j()].filter((e=>e))}return()=>{var n;const{triggerType:l=["icon"]}=I.value,i=t.ellipsis||t.editable?void 0!==t.content?t.content:null===(n=o.default)||void 0===n?void 0:n.call(o):o.default?o.default():t.content;return M.value?function(){const{class:e,style:n}=r,{maxlength:l,autoSize:i,onEnd:a}=I.value;return $(wG,{class:e,style:n,prefixCls:s.value,value:t.content,originContent:p.originContent,maxlength:l,autoSize:i,onSave:w,onChange:C,onCancel:k,onEnd:a,direction:u.value,component:t.component},{enterIcon:o.editableEnterIcon})}():$(Ht,{componentName:"Text",children:n=>{const a=q(q({},t),r),{type:c,disabled:d,content:f,class:h,style:m}=a,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&P;let D=i;if(y&&p.isEllipsis&&!p.expanded&&!P){const{title:t}=b;let n=t||"";t||"string"!=typeof i&&"number"!=typeof i||(n=String(i)),n=null==n?void 0:n.slice(String(p.ellipsisContent||"").length),D=$(e,null,[R(p.ellipsisContent),$("span",{title:n,"aria-hidden":"true"},["..."]),S])}else D=$(e,null,[i,S]);D=function(e,t){let{mark:n,code:o,underline:r,delete:l,strong:i,keyboard:a}=e,s=t;function c(e,t){if(!e)return;const n=function(){return s}();s=$(t,null,{default:()=>[n]})}return c(i,"strong"),c(r,"u"),c(l,"del"),c(o,"code"),c(n,"mark"),c(a,"kbd"),s}(t,D);const z=w&&y&&p.isEllipsis&&!p.expanded&&!P,j=o.ellipsisTooltip?o.ellipsisTooltip():w;return $(Ze,{onResize:T,disabled:!y},{default:()=>[$(PG,U({ref:v,class:[{[`${s.value}-${c}`]:c,[`${s.value}-disabled`]:d,[`${s.value}-ellipsis`]:y,[`${s.value}-single-line`]:1===y&&!p.isEllipsis,[`${s.value}-ellipsis-single-line`]:E,[`${s.value}-ellipsis-multiple-line`]:B},h],style:q(q({},m),{WebkitLineClamp:B?y:void 0}),"aria-label":undefined,direction:u.value,onClick:-1!==l.indexOf("text")?x:()=>{}},M),{default:()=>[z?$(Jy,{title:!0===w?i:j},{default:()=>[$("span",null,[D])]}):D,N()]})]})}},null)}}}),GG=XG;const YG=(e,t)=>{let{slots:n,attrs:o}=t;const r=q(q({},e),o),{ellipsis:l,rel:i}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{slots:n,attrs:o}=t;const r=q(q(q({},e),{component:"div"}),o);return $(GG,r,n)};qG.displayName="ATypographyParagraph",qG.inheritAttrs=!1,qG.props=Ml(VG(),["component"]);const QG=qG,ZG=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;bn();const l=q(q(q({},e),{ellipsis:r&&"object"==typeof r?Ml(r,["expandable","rows"]):r,component:"span"}),o);return $(GG,l,n)};ZG.displayName="ATypographyText",ZG.inheritAttrs=!1,ZG.props=q(q({},Ml(VG(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}});const JG=ZG;const eY=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{slots:n,attrs:o}=t;const{level:r=1}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach((t=>{const o=e.data[t];Array.isArray(o)?o.forEach((e=>{n.append(`${t}[]`,e)})):n.append(t,o)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),oY(t)):e.onSuccess(oY(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((e=>{null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort(){t.abort()}}}PG.Text=JG,PG.Title=nY,PG.Paragraph=QG,PG.Link=UG,PG.Base=GG,PG.install=function(e){return e.component(PG.name,PG),e.component(PG.Text.displayName,JG),e.component(PG.Title.displayName,nY),e.component(PG.Paragraph.displayName,QG),e.component(PG.Link.displayName,UG),e};const lY=+new Date;let iY=0;function aY(){return`vc-upload-${lY}-${++iY}`}const sY=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=o.toLowerCase(),n=t.toLowerCase();let r=[n];return".jpg"!==n&&".jpeg"!==n||(r=[".jpg",".jpeg"]),r.some((t=>e.endsWith(t)))}return/\/\*$/.test(t)?l===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)}))}return!0};const cY=(e,t,n)=>{const o=(e,r)=>{e.path=r||"",e.isFile?e.file((o=>{n(o)&&(e.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))})):e.isDirectory&&function(e,t){const n=e.createReader();let o=[];!function e(){n.readEntries((n=>{const r=Array.prototype.slice.apply(n);o=o.concat(r),r.length?e():t(o)}))}()}(e,(t=>{t.forEach((t=>{o(t,`${r}${e.name}/`)}))}))};e.forEach((e=>{o(e.webkitGetAsEntry())}))},uY=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var dY=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(QS){l(QS)}}function a(e){try{s(o.throw(e))}catch(QS){l(QS)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const pY=r({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:uY(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=f(aY()),a={},s=f();let c=!1;const u=(t,n)=>dY(this,void 0,void 0,(function*(){const{beforeUpload:o}=e;let r=t;if(o){try{r=yield o(t,n)}catch(QS){r=!1}if(!1===r)return{origin:t,parsedFile:null,action:null,data:null}}const{action:l}=e;let i;i="function"==typeof l?yield l(t):l;const{data:a}=e;let s;s="function"==typeof a?yield a(t):a;const c="object"!=typeof r&&"string"!=typeof r||!r?t:r;let u;u=c instanceof File?c:new File([c],t.name,{type:t.type});const d=u;return d.uid=t.uid,{origin:t,data:s,parsedFile:d,action:i}})),d=e=>{if(e){const t=e.uid?e.uid:e;a[t]&&a[t].abort&&a[t].abort(),delete a[t]}else Object.keys(a).forEach((e=>{a[e]&&a[e].abort&&a[e].abort(),delete a[e]}))};i((()=>{c=!0})),b((()=>{c=!1,d()}));const p=t=>{const n=[...t],o=n.map((e=>(e.uid=aY(),u(e,n))));Promise.all(o).then((t=>{const{onBatchStart:n}=e;null==n||n(t.map((e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}}))),t.filter((e=>null!==e.parsedFile)).forEach((t=>{(t=>{let{data:n,origin:o,action:r,parsedFile:l}=t;if(!c)return;const{onStart:i,customRequest:s,name:u,headers:d,withCredentials:p,method:v}=e,{uid:f}=o,h=s||rY,g={action:r,filename:u,data:n,file:l,headers:d,withCredentials:p,method:v||"post",onProgress:t=>{const{onProgress:n}=e;null==n||n(t,l)},onSuccess:(t,n)=>{const{onSuccess:o}=e;null==o||o(t,l,n),delete a[f]},onError:(t,n)=>{const{onError:o}=e;null==o||o(t,n,l),delete a[f]}};i(o),a[f]=h(g)})(t)}))}))},v=t=>{const{accept:n,directory:o}=e,{files:r}=t.target,i=[...r].filter((e=>!o||sY(e,n)));p(i),l.value=aY()},h=t=>{const n=s.value;if(!n)return;const{onClick:o}=e;n.click(),o&&o(t)},g=e=>{"Enter"===e.key&&h(e)},m=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)cY(Array.prototype.slice.call(t.dataTransfer.items),p,(t=>sY(t,e.accept)));else{const o=tm(Array.prototype.slice.call(t.dataTransfer.files),(t=>sY(t,e.accept)));let r=o[0];const l=o[1];!1===n&&(r=r.slice(0,1)),p(r),l.length&&e.onReject&&e.onReject(l)}};return r({abort:d}),()=>{var t;const{componentTag:r,prefixCls:i,disabled:a,id:c,multiple:u,accept:d,capture:p,directory:f,openFileDialogOnClick:b,onMouseenter:y,onMouseleave:x}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{},onKeydown:b?g:()=>{},onMouseenter:y,onMouseleave:x,onDrop:m,onDragover:m,tabindex:"0"}),{},{class:w,role:"button",style:o.style}),{default:()=>[$("input",U(U(U({},yd(S,{aria:!0,data:!0})),{},{id:c,type:"file",ref:s,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:l.value,style:{display:"none"},accept:d},C),{},{multiple:u,onChange:v},null!=p?{capture:p}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function vY(){}const fY=r({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Re(uY(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:vY,onError:vY,onSuccess:vY,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=f();return r({abort:e=>{var t;null===(t=l.value)||void 0===t||t.abort(e)}}),()=>$(pY,U(U(U({},e),o),{},{ref:l}),n)}});const hY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function gY(e){for(var t=1;t{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function BY(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const DY=e=>0===e.indexOf("image/"),zY=200;const RY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function jY(e){for(var t=1;t{a.value=setTimeout((()=>{l.value=!0}),300)})),b((()=>{clearTimeout(a.value)}));const s=g(null===(r=e.file)||void 0===r?void 0:r.status);c((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status}),(e=>{"removed"!==e&&(s.value=e)}));const{rootPrefixCls:u}=Il("upload",e),p=d((()=>Ru(`${u.value}-fade`)));return()=>{var t,r;const{prefixCls:i,locale:a,listType:c,file:u,items:d,progress:v,iconRender:f=n.iconRender,actionIconRender:h=n.actionIconRender,itemRender:g=n.itemRender,isImgUrl:m,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:x,previewIcon:S=n.previewIcon,removeIcon:C=n.removeIcon,downloadIcon:O=n.downloadIcon,onPreview:I,onDownload:M,onClose:E}=e,{class:T,style:A}=o,B=f({file:u});let D=$("div",{class:`${i}-text-icon`},[B]);if("picture"===c||"picture-card"===c)if("uploading"===s.value||!u.thumbUrl&&!u.url){const e={[`${i}-list-item-thumbnail`]:!0,[`${i}-list-item-file`]:"uploading"!==s.value};D=$("div",{class:e},[B])}else{const e=(null==m?void 0:m(u))?$("img",{src:u.thumbUrl||u.url,alt:u.name,class:`${i}-list-item-image`,crossorigin:u.crossOrigin},null):B,t={[`${i}-list-item-thumbnail`]:!0,[`${i}-list-item-file`]:m&&!m(u)};D=$("a",{class:t,onClick:e=>I(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const z={[`${i}-list-item`]:!0,[`${i}-list-item-${s.value}`]:!0},R="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,j=y?h({customIcon:C?C({file:u}):$(vX,null,null),callback:()=>E(u),prefixCls:i,title:a.removeFile}):null,N=x&&"done"===s.value?h({customIcon:O?O({file:u}):$(FY,null,null),callback:()=>M(u),prefixCls:i,title:a.downloadFile}):null,H="picture-card"!==c&&$("span",{key:"download-delete",class:[`${i}-list-item-actions`,{picture:"picture"===c}]},[N,j]),F=`${i}-list-item-name`,L=u.url?[$("a",U(U({key:"view",target:"_blank",rel:"noopener noreferrer",class:F,title:u.name},R),{},{href:u.url,onClick:e=>I(u,e)}),[u.name]),H]:[$("span",{key:"view",class:F,onClick:e=>I(u,e),title:u.name},[u.name]),H],_=b?$("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>I(u,e),title:a.previewFile},[S?S({file:u}):$(mz,null,null)]):null,W="picture-card"===c&&"uploading"!==s.value&&$("span",{class:`${i}-list-item-actions`},[_,"done"===s.value&&N,j]),K=$("div",{class:z},[D,L,W,l.value&&$(k,p.value,{default:()=>[w($("div",{class:`${i}-list-item-progress`},["percent"in u?$(CF,U(U({},v),{},{type:"line",percent:u.percent}),null):null]),[[P,"uploading"===s.value]])]})]),V={[`${i}-list-item-container`]:!0,[`${T}`]:!!T},X=u.response&&"string"==typeof u.response?u.response:(null===(t=u.error)||void 0===t?void 0:t.statusText)||(null===(r=u.error)||void 0===r?void 0:r.message)||a.uploadError,G="error"===s.value?$(Jy,{title:X,getPopupContainer:e=>e.parentNode},{default:()=>[K]}):K;return $("div",{class:V,style:A},[g?g({originNode:G,file:u,fileList:d,actions:{download:M.bind(null,u),preview:I.bind(null,u),remove:E.bind(null,u)}}):G])}}}),_Y=(e,t)=>{let{slots:n}=t;var o;return Ye(null===(o=n.default)||void 0===o?void 0:o.call(n))[0]},WY=r({compatConfig:{MODE:3},name:"AUploadList",props:Re({listType:ft(),onPreview:dt(),onDownload:dt(),onRemove:dt(),items:vt(),progress:ct(),prefixCls:ft(),showRemoveIcon:ut(),showDownloadIcon:ut(),showPreviewIcon:ut(),removeIcon:dt(),downloadIcon:dt(),previewIcon:dt(),locale:ct(void 0),previewFile:dt(),iconRender:dt(),isImageUrl:dt(),appendAction:dt(),appendActionVisible:ut(),itemRender:dt()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((t=>{if(!e.type||!DY(e.type))return void t("");const n=document.createElement("canvas");n.width=zY,n.height=zY,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:l}=r;let i=zY,a=zY,s=0,c=0;e>l?(a=l*(zY/e),c=-(a-i)/2):(i=e*(zY/l),s=-(i-a)/2),o.drawImage(r,s,c,i,a);const u=n.toDataURL();document.body.removeChild(n),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.addEventListener("load",(()=>{t.result&&(r.src=t.result)})),t.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))},isImageUrl:e=>{if(e.type&&!e.thumbUrl)return DY(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=g(!1);i((()=>{r.value}));const l=g([]);c((()=>e.items),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l.value=e.slice()}),{immediate:!0,deep:!0}),m((()=>{if("picture"!==e.listType&&"picture-card"!==e.listType)return;let t=!1;(e.items||[]).forEach(((n,o)=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(n.originFileObj instanceof File||n.originFileObj instanceof Blob)&&void 0===n.thumbUrl&&(n.thumbUrl="",e.previewFile&&e.previewFile(n.originFileObj).then((e=>{const r=e||"";r!==n.thumbUrl&&(l.value[o].thumbUrl=r,t=!0)})))})),t&&y(l)}));const a=(t,n)=>{if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},s=t=>{"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},u=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},p=t=>{let{file:o}=t;const r=e.iconRender||n.iconRender;if(r)return r({file:o,listType:e.listType});const l="uploading"===o.status,i=e.isImageUrl&&e.isImageUrl(o)?$(CY,null,null):$(PY,null,null);let a=$(l?Cv:yY,null,null);return"picture"===e.listType?a=l?$(Cv,null,null):i:"picture-card"===e.listType&&(a=l?e.locale.uploading:i),a},v=e=>{const{customIcon:t,callback:n,prefixCls:o,title:r}=e,l={type:"text",size:"small",title:r,onClick:()=>{n()},class:`${o}-list-item-action`};return qe(t)?$(gx,l,{icon:()=>t}):$(gx,l,{default:()=>[$("span",null,[t])]})};o({handlePreview:a,handleDownload:s});const{prefixCls:f,rootPrefixCls:h}=Il("upload",e),b=d((()=>({[`${f.value}-list`]:!0,[`${f.value}-list-${e.listType}`]:!0}))),x=d((()=>{const t=q({},SS(`${h.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=q(q({},ju(`${f.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:b.value,appear:r.value});return"picture-card"!==e.listType?q(q({},t),n):n}));return()=>{const{listType:t,locale:o,isImageUrl:r,showPreviewIcon:i,showRemoveIcon:c,showDownloadIcon:d,removeIcon:h,previewIcon:g,downloadIcon:m,progress:b,appendAction:y,itemRender:S,appendActionVisible:C}=e,k=null==y?void 0:y(),O=l.value;return $(_,U(U({},x.value),{},{tag:"div"}),{default:()=>[O.map((e=>{const{uid:l}=e;return $(LY,{key:l,locale:o,prefixCls:f.value,file:e,items:O,progress:b,listType:t,isImgUrl:r,showPreviewIcon:i,showRemoveIcon:c,showDownloadIcon:d,onPreview:a,onDownload:s,onClose:u,removeIcon:h,previewIcon:g,downloadIcon:m,itemRender:S},q(q({},n),{iconRender:p,actionIconRender:v}))})),y?w($(_Y,{key:"__ant_upload_appendAction"},{default:()=>k}),[[P,!!C]]):null]})}}}),KY=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},VY=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:l}=e,i=`${t}-list-item`,a=`${i}-actions`,s=`${i}-action`,c=Math.round(r*l);return{[`${t}-wrapper`]:{[`${t}-list`]:q(q({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:q(q({},Yr),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${s}:focus,\n &.picture ${s}\n `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},XY=new Fo("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),GY=new Fo("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),YY=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:XY},[`${n}-leave`]:{animationName:GY}}},XY,GY]},UY=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,l=`${t}-list`,i=`${l}-item`;return{[`${t}-wrapper`]:{[`${l}${l}-picture, ${l}${l}-picture-card`]:{[i]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:q(q({},Yr),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:r,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:r}}}}}},qY=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,l=`${t}-list`,i=`${l}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:q(q({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card`]:{[`${l}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new pr(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},QY=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},ZY=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:q(q({},Ur(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},JY=tl("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:l}=e,i=rl(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*o)/2+r,uploadPicCardSize:2.55*l});return[ZY(i),KY(i),UY(i),qY(i),VY(i),YY(i),QY(i),qm(i)]}));var eU=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function i(e){try{s(o.next(e))}catch(QS){l(QS)}}function a(e){try{s(o.throw(e))}catch(QS){l(QS)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((o=o.apply(e,t||[])).next())}))};const tU=`__LIST_IGNORE_${Date.now()}__`,nU=r({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Re(EY(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=Qv(),{prefixCls:a,direction:s,disabled:c}=Il("upload",e),[u,p]=JY(a),v=At(),h=d((()=>{var e;return null!==(e=c.value)&&void 0!==e?e:v.value})),[g,m]=Sp(e.defaultFileList||[],{value:M(e,"fileList"),postState:e=>{const t=Date.now();return(null!=e?e:[]).map(((e,n)=>(e.uid||Object.isFrozen(e)||(e.uid=`__AUTO__${t}_${n}__`),e)))}}),b=f("drop"),y=f(null);i((()=>{Mi(void 0!==e.fileList||void 0===o.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Mi(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Mi(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));const x=(t,n,o)=>{var r,i;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),m(a);const s={file:t,fileList:a};o&&(s.event=o),null===(r=e["onUpdate:fileList"])||void 0===r||r.call(e,s.fileList),null===(i=e.onChange)||void 0===i||i.call(e,s),l.onFieldChange()},S=(t,n)=>eU(this,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let l=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[tU],e===tU)return Object.defineProperty(t,tU,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(l=e)}return r&&(l=yield r(l)),l})),w=e=>{const t=e.filter((e=>!e.file[tU]));if(!t.length)return;const n=t.map((e=>TY(e.file)));let o=[...g.value];n.forEach((e=>{o=AY(e,o)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(QS){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}x(r,o)}))},C=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(QS){}if(!BY(t,g.value))return;const o=TY(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=AY(o,g.value);x(o,r)},k=(e,t)=>{if(!BY(t,g.value))return;const n=TY(t);n.status="uploading",n.percent=e.percent;const o=AY(n,g.value);x(n,o,e)},O=(e,t,n)=>{if(!BY(n,g.value))return;const o=TY(n);o.error=e,o.response=t,o.status="error";const r=AY(o,g.value);x(o,r)},I=t=>{let n;const o=e.onRemove||e.remove;Promise.resolve("function"==typeof o?o(t):o).then((e=>{var o,r;if(!1===e)return;const l=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter((t=>t[n]!==e[n]));return o.length===t.length?null:o}(t,g.value);l&&(n=q(q({},t),{status:"removed"}),null===(o=g.value)||void 0===o||o.forEach((e=>{const t=void 0!==n.uid?"uid":"name";e[t]!==n[t]||Object.isFrozen(e)||(e.status="removed")})),null===(r=y.value)||void 0===r||r.abort(n),x(n,l))}))},P=t=>{var n;b.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};r({onBatchStart:w,onSuccess:C,onProgress:k,onError:O,fileList:g,upload:y});const[E]=Ft("Upload",Nt.Upload,d((()=>e.locale))),T=(t,o)=>{const{removeIcon:r,previewIcon:l,downloadIcon:i,previewFile:s,onPreview:c,onDownload:u,isImageUrl:d,progress:p,itemRender:v,iconRender:f,showUploadList:m}=e,{showDownloadIcon:b,showPreviewIcon:y,showRemoveIcon:x}="boolean"==typeof m?{}:m;return m?$(WY,{prefixCls:a.value,listType:e.listType,items:g.value,previewFile:s,onPreview:c,onDownload:u,onRemove:I,showRemoveIcon:!h.value&&x,showPreviewIcon:y,showDownloadIcon:b,removeIcon:r,previewIcon:l,downloadIcon:i,iconRender:f,locale:E.value,isImageUrl:d,progress:p,itemRender:v,appendActionVisible:o,appendAction:t},q({},n)):null==t?void 0:t()};return()=>{var t,r,i;const{listType:c,type:d}=e,{class:v,style:f}=o,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r"uploading"===e.status)),[`${a.value}-drag-hover`]:"dragover"===b.value,[`${a.value}-disabled`]:h.value,[`${a.value}-rtl`]:"rtl"===s.value},o.class,p.value);return u($("span",U(U({},o),{},{class:pe(`${a.value}-wrapper`,I,v,p.value)}),[$("div",{class:e,onDrop:P,onDragover:P,onDragleave:P,style:o.style},[$(fY,U(U({},x),{},{ref:y,class:`${a.value}-btn`}),U({default:()=>[$("div",{class:`${a.value}-drag-container`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])]},n))]),T()]))}const M=pe(a.value,{[`${a.value}-select`]:!0,[`${a.value}-select-${c}`]:!0,[`${a.value}-disabled`]:h.value,[`${a.value}-rtl`]:"rtl"===s.value}),E=Fe(null===(i=n.default)||void 0===i?void 0:i.call(n)),A=e=>$("div",{class:M,style:e},[$(fY,U(U({},x),{},{ref:y}),n)]);return u("picture-card"===c?$("span",U(U({},o),{},{class:pe(`${a.value}-wrapper`,`${a.value}-picture-card-wrapper`,I,o.class,p.value)}),[T(A,!(!E||!E.length))]):$("span",U(U({},o),{},{class:pe(`${a.value}-wrapper`,I,o.class,p.value)}),[A(E&&E.length?void 0:{display:"none"}),T()]))}}});var oU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{height:t}=e,r=oU(e,["height"]),{style:l}=o,i=oU(o,["style"]),a=q(q(q({},r),i),{type:"drag",style:q(q({},l),{height:"number"==typeof t?`${t}px`:t})});return $(nU,a,n)}}}),lU=rU,iU=q(nU,{Dragger:rU,LIST_IGNORE:tU,install:e=>(e.component(nU.name,nU),e.component(rU.name,rU),e)});function aU(){return window.devicePixelRatio||1}function sU(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}function cU(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=ik}=n,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro&&"MutationObserver"in o)),a=()=>{l&&(l.disconnect(),l=void 0)},s=c((()=>nk(e)),(e=>{a(),i.value&&o&&e&&(l=new MutationObserver(t),l.observe(e,r))}),{immediate:!0}),u=()=>{a(),s()};return tk(u),{isSupported:i,stop:u}}const uU=at(r({name:"AWatermark",inheritAttrs:!1,props:Re({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:ht([String,Array]),font:ct(),rootClassName:String,gap:vt(),offset:vt()},{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=dl(),l=g(),a=g(),s=g(!1),u=d((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[0])&&void 0!==n?n:100})),p=d((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[1])&&void 0!==n?n:100})),v=d((()=>u.value/2)),f=d((()=>p.value/2)),h=d((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[0])&&void 0!==n?n:v.value})),m=d((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[1])&&void 0!==n?n:f.value})),y=d((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontSize)&&void 0!==n?n:r.value.fontSizeLG})),x=d((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontWeight)&&void 0!==n?n:"normal"})),S=d((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontStyle)&&void 0!==n?n:"normal"})),w=d((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontFamily)&&void 0!==n?n:"sans-serif"})),C=d((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.color)&&void 0!==n?n:r.value.colorFill})),k=d((()=>{var t;const n={zIndex:null!==(t=e.zIndex)&&void 0!==t?t:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let o=h.value-v.value,r=m.value-f.value;return o>0&&(n.left=`${o}px`,n.width=`calc(100% - ${o}px)`,o=0),r>0&&(n.top=`${r}px`,n.height=`calc(100% - ${r}px)`,r=0),n.backgroundPosition=`${o}px ${r}px`,n})),O=()=>{a.value&&(a.value.remove(),a.value=void 0)},I=(e,t)=>{var n,o;l.value&&a.value&&(s.value=!0,a.value.setAttribute("style",(o=q(q({},k.value),{backgroundImage:`url('${e}')`,backgroundSize:2*(u.value+t)+"px"}),Object.keys(o).map((e=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)}: ${o[e]};`)).join(" "))),null===(n=l.value)||void 0===n||n.append(a.value),setTimeout((()=>{s.value=!1})))},M=(t,n,o,r,l)=>{const i=aU(),a=e.content,s=Number(y.value)*i;t.font=`${S.value} normal ${x.value} ${s}px/${l}px ${w.value}`,t.fillStyle=C.value,t.textAlign="center",t.textBaseline="top",t.translate(r/2,0);const c=Array.isArray(a)?a:[a];null==c||c.forEach(((e,r)=>{t.fillText(null!=e?e:"",n,o+r*(s+3*i))}))},P=()=>{var t;const n=document.createElement("canvas"),o=n.getContext("2d"),r=e.image,l=null!==(t=e.rotate)&&void 0!==t?t:-22;if(o){a.value||(a.value=document.createElement("div"));const t=aU(),[i,s]=(t=>{let n=120,o=64;const r=e.content,l=e.image,i=e.width,a=e.height;if(!l&&t.measureText){t.font=`${Number(y.value)}px ${w.value}`;const e=Array.isArray(r)?r:[r],l=e.map((e=>t.measureText(e).width));n=Math.ceil(Math.max(...l)),o=Number(y.value)*e.length+3*(e.length-1)}return[null!=i?i:n,null!=a?a:o]})(o),c=(u.value+i)*t,d=(p.value+s)*t;n.setAttribute("width",2*c+"px"),n.setAttribute("height",2*d+"px");const v=u.value*t/2,f=p.value*t/2,h=i*t,g=s*t,m=(h+u.value*t)/2,b=(g+p.value*t)/2,$=v+c,x=f+d,S=m+c,C=b+d;if(o.save(),sU(o,m,b,l),r){const e=new Image;e.onload=()=>{o.drawImage(e,v,f,h,g),o.restore(),sU(o,S,C,l),o.drawImage(e,$,x,h,g),I(n.toDataURL(),i)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=r}else M(o,v,f,h,g),o.restore(),sU(o,S,C,l),M(o,$,x,h,g),I(n.toDataURL(),i)}};i((()=>{P()})),c((()=>[e,r.value.colorFill,r.value.fontSizeLG]),(()=>{P()}),{deep:!0,flush:"post"}),b((()=>{O()}));return cU(l,(e=>{s.value||e.forEach((e=>{((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some((e=>e===t))),"attributes"===e.type&&e.target===t&&(n=!0),n})(e,a.value)&&(O(),P())}))}),{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var t;return $("div",U(U({},o),{},{ref:l,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}));function dU(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function pU(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const vU=q({overflow:"hidden"},Yr),fU=e=>{const{componentCls:t}=e;return{[t]:q(q(q(q(q({},Ur(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":q(q({},pU(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":q({minHeight:e.controlHeight-2*e.segmentedContainerPadding,lineHeight:e.controlHeight-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},vU),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:q(q({},pU(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedContainerPadding,lineHeight:e.controlHeightLG-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedContainerPadding,lineHeight:e.controlHeightSM-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),dU(`&-disabled ${t}-item`,e)),dU(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},hU=tl("Segmented",(e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:l,colorBgLayout:i,colorBgElevated:a}=e,s=rl(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:i,bgColorHover:l,bgColorSelected:a});return[fU(s)]})),gU=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,mU=e=>void 0!==e?`${e}px`:void 0,bU=r({props:{value:pt(),getValueIndex:pt(),prefixCls:pt(),motionName:pt(),onMotionStart:pt(),onMotionEnd:pt(),direction:pt(),containerRef:pt()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=f(),r=t=>{var n;const o=e.getValueIndex(t),r=null===(n=e.containerRef.value)||void 0===n?void 0:n.querySelectorAll(`.${e.prefixCls}-item`)[o];return(null==r?void 0:r.offsetParent)&&r},l=f(null),i=f(null);c((()=>e.value),((e,t)=>{const o=r(t),a=r(e),s=gU(o),c=gU(a);l.value=s,i.value=c,n(o&&a?"motionStart":"motionEnd")}),{flush:"post"});const a=d((()=>{var t,n;return"rtl"===e.direction?mU(-(null===(t=l.value)||void 0===t?void 0:t.right)):mU(null===(n=l.value)||void 0===n?void 0:n.left)})),s=d((()=>{var t,n;return"rtl"===e.direction?mU(-(null===(t=i.value)||void 0===t?void 0:t.right)):mU(null===(n=i.value)||void 0===n?void 0:n.left)}));let u;const p=e=>{clearTimeout(u),S((()=>{e&&(e.style.transform="translateX(var(--thumb-start-left))",e.style.width="var(--thumb-start-width)")}))},v=t=>{u=setTimeout((()=>{t&&($S(t,`${e.motionName}-appear-active`),t.style.transform="translateX(var(--thumb-active-left))",t.style.width="var(--thumb-active-width)")}))},h=t=>{l.value=null,i.value=null,t&&(t.style.transform=null,t.style.width=null,xS(t,`${e.motionName}-appear-active`)),n("motionEnd")},g=d((()=>{var e,t;return{"--thumb-start-left":a.value,"--thumb-start-width":mU(null===(e=l.value)||void 0===e?void 0:e.width),"--thumb-active-left":s.value,"--thumb-active-width":mU(null===(t=i.value)||void 0===t?void 0:t.width)}}));return b((()=>{clearTimeout(u)})),()=>{const t={ref:o,style:g.value,class:[`${e.prefixCls}-thumb`]};return $(k,{appear:!0,onBeforeEnter:p,onEnter:v,onAfterEnter:h},{default:()=>[l.value&&i.value?$("div",t,null):null]})}}});const yU=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:l,payload:i,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e;return $("label",{class:pe({[`${s}-item-disabled`]:l},d)},[$("input",{class:`${s}-item-input`,type:"radio",disabled:l,checked:u,onChange:e=>{l||o("change",e,r)}},null),$("div",{class:`${s}-item-label`,title:"string"==typeof a?a:""},["function"==typeof c?c({value:r,disabled:l,payload:i,title:a}):null!=c?c:r])])};yU.inheritAttrs=!1;const $U=at(r({name:"ASegmented",inheritAttrs:!1,props:Re({prefixCls:String,options:vt(),block:ut(),disabled:ut(),size:ft(),value:q(q({},ht([String,Number])),{required:!0}),motionName:String,onChange:dt(),"onUpdate:value":dt()},{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,size:a}=Il("segmented",e),[s,c]=hU(l),u=g(),p=g(!1),v=d((()=>e.options.map((e=>"object"==typeof e&&null!==e?e:{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e})))),f=(t,o)=>{e.disabled||(n("update:value",o),n("change",o))};return()=>{const t=l.value;return s($("div",U(U({},r),{},{class:pe(t,{[c.value]:!0,[`${t}-block`]:e.block,[`${t}-disabled`]:e.disabled,[`${t}-lg`]:"large"==a.value,[`${t}-sm`]:"small"==a.value,[`${t}-rtl`]:"rtl"===i.value},r.class),ref:u}),[$("div",{class:`${t}-group`},[$(bU,{containerRef:u,prefixCls:t,value:e.value,motionName:`${t}-${e.motionName}`,direction:i.value,getValueIndex:e=>v.value.findIndex((t=>t.value===e)),onMotionStart:()=>{p.value=!0},onMotionEnd:()=>{p.value=!1}},null),v.value.map((n=>$(yU,U(U({key:n.value,prefixCls:t,checked:n.value===e.value,onChange:f},n),{},{className:pe(n.className,`${t}-item`,{[`${t}-item-selected`]:n.value===e.value&&!p.value}),disabled:!!e.disabled||!!n.disabled}),o)))])]))}}})),xU=tl("QRCode",(e=>(e=>{const{componentCls:t}=e;return{[t]:q(q({},Ur(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}})(rl(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))));const SU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"};function wU(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:ft("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:ct()}); -/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */ -var Pq,Eq;!function(e){class t{static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,o){let i,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=s&&s<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");for(i=s;;i++){const n=8*t.getNumDataCodewords(i,o),r=l.getTotalBits(e,i);if(r<=n){a=r;break}if(i>=c)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&a<=8*t.getNumDataCodewords(i,n)&&(o=n);const p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(i),p);for(const e of t.getData())p.push(e)}r(p.length==a);const v=8*t.getNumDataCodewords(i,o);r(p.length<=v),n(0,Math.min(4,v-p.length),p),n(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let t=236;p.lengthf[t>>>3]|=e<<7-(7&t))),new t(i,o,f,u)}constructor(e,n,o,l){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw new RangeError("Version value out of range");if(l<-1||l>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const i=[];for(let t=0;t>>9);const l=21522^(t<<10|n);r(l>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,o(l,r));this.setFunctionModule(8,7,o(l,6)),this.setFunctionModule(8,8,o(l,7)),this.setFunctionModule(7,8,o(l,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,o(l,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,o(l,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,o(l,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;r(t>>>18==0);for(let n=0;n<18;n++){const e=o(t,n),r=this.size-11+n%3,l=Math.floor(n/3);this.setFunctionModule(r,l,e),this.setFunctionModule(l,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),l=e+o,i=t+n;0<=l&&l{(t!=c-i||n>=s)&&p.push(e[t])}));return r(p.length==a),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r>>3],7-(7&n)),n++)}}r(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(o,l),n||(e+=this.finderPenaltyCountPatterns(l)*t.PENALTY_N3),n=this.modules[r][i],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,l)*t.PENALTY_N3}for(let r=0;r5&&e++):(this.finderPenaltyAddHistory(o,l),n||(e+=this.finderPenaltyCountPatterns(l)*t.PENALTY_N3),n=this.modules[i][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,l)*t.PENALTY_N3}for(let r=0;re+(t?1:0)),n);const o=this.size*this.size,l=Math.ceil(Math.abs(20*n-10*o)/o)-1;return r(0<=l&&l<=9),e+=l*t.PENALTY_N4,r(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let o=this.size-7;n.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return r(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");const n=[];for(let t=0;t0));for(const r of e){const e=r^o.shift();o.push(0),n.forEach(((n,r)=>o[r]^=t.reedSolomonMultiply(n,e)))}return o}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return r(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];r(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function o(e,t){return 0!=(e>>>t&1)}function r(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;class l{static makeBytes(e){const t=[];for(const o of e)n(o,8,t);return new l(l.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!l.isNumeric(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let o=0;o=1<1&&void 0!==arguments[1]?arguments[1]:0;const n=[];return e.forEach((function(e,o){let r=null;e.forEach((function(l,i){if(!l&&null!==r)return n.push(`M${r+t} ${o+t}h${i-r}v1H${r+t}z`),void(r=null);if(i!==e.length-1)l&&null===r&&(r=i);else{if(!l)return;null===r?n.push(`M${i+t},${o+t} h1v1H${i+t}z`):n.push(`M${r+t},${o+t} h${i+1-r}v1H${r+t}z`)}}))})),n.join("")}function Hq(e,t){return e.slice().map(((e,n)=>n=t.y+t.h?e:e.map(((e,n)=>(n=t.x+t.w)&&e))))}function Fq(e,t,n,o){if(null==o)return null;const r=e.length+2*n,l=Math.floor(.1*t),i=r/t,a=(o.width||l)*i,s=(o.height||l)*i,c=null==o.x?e.length/2-a/2:o.x*i,u=null==o.y?e.length/2-s/2:o.y*i;let d=null;if(o.excavate){const e=Math.floor(c),t=Math.floor(u);d={x:e,y:t,w:Math.ceil(a+c-e),h:Math.ceil(s+u-t)}}return{x:c,y:u,h:s,w:a,excavation:d}}function Lq(e,t){return null!=t?Math.floor(t):e?4:0}const _q=function(){try{(new Path2D).addPath(new Path2D)}catch(QS){return!1}return!0}(),Wq=r({name:"QRCodeCanvas",inheritAttrs:!1,props:q(q({},Mq()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(t,n){let{attrs:o,expose:r}=n;const l=d((()=>{var e;return null===(e=t.imageSettings)||void 0===e?void 0:e.src})),i=g(null),a=g(null),s=g(!1);return r({toDataURL:(e,t)=>{var n;return null===(n=i.value)||void 0===n?void 0:n.toDataURL(e,t)}}),m((()=>{const{value:e,size:n=Bq,level:o=Dq,bgColor:r=zq,fgColor:l=Rq,includeMargin:c=jq,marginSize:u,imageSettings:d}=t;if(null!=i.value){const t=i.value,p=t.getContext("2d");if(!p)return;let v=Tq.QrCode.encodeText(e,Aq[o]).getModules();const f=Lq(c,u),h=v.length+2*f,g=Fq(v,n,f,d),m=a.value,b=s.value&&null!=g&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;b&&null!=g.excavation&&(v=Hq(v,g.excavation));const y=window.devicePixelRatio||1;t.height=t.width=n*y;const $=n/h*y;p.scale($,$),p.fillStyle=r,p.fillRect(0,0,h,h),p.fillStyle=l,_q?p.fill(new Path2D(Nq(v,f))):v.forEach((function(e,t){e.forEach((function(e,n){e&&p.fillRect(n+f,t+f,1,1)}))})),b&&p.drawImage(m,g.x+f,g.y+f,g.w,g.h)}}),{flush:"post"}),c(l,(()=>{s.value=!1})),()=>{var n;const r=null!==(n=t.size)&&void 0!==n?n:Bq,c={height:`${r}px`,width:`${r}px`};let u=null;return null!=l.value&&(u=$("img",{src:l.value,key:l.value,style:{display:"none"},onLoad:()=>{s.value=!0},ref:a},null)),$(e,null,[$("canvas",U(U({},o),{},{style:[c,o.style],ref:i}),null),u])}}}),Kq=r({name:"QRCodeSVG",inheritAttrs:!1,props:q(q({},Mq()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,l=null,i=null;return m((()=>{const{value:a,size:s=Bq,level:c=Dq,includeMargin:u=jq,marginSize:d,imageSettings:p}=e;t=Tq.QrCode.encodeText(a,Aq[c]).getModules(),n=Lq(u,d),o=t.length+2*n,r=Fq(t,s,n,p),null!=p&&null!=r&&(null!=r.excavation&&(t=Hq(t,r.excavation)),i=$("image",{"xlink:href":p.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),l=Nq(t,n)})),()=>{const t=e.bgColor&&zq,n=e.fgColor&&Rq;return $("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&$("title",null,[e.title]),$("path",{fill:t,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),$("path",{fill:n,d:l,"shape-rendering":"crispEdges"},null),i])}}}),Vq=r({name:"AQrcode",inheritAttrs:!1,props:q(q({},Mq()),{errorLevel:ft("M"),icon:String,iconSize:{type:Number,default:40},status:ft("active"),bordered:{type:Boolean,default:!0}}),emits:["refresh"],setup(t,n){let{emit:o,attrs:r,expose:l}=n;const[i]=Ft("QRCode"),{prefixCls:a}=Il("qrcode",t),[s,c]=xU(a),[,u]=dl(),p=f();l({toDataURL:(e,t)=>{var n;return null===(n=p.value)||void 0===n?void 0:n.toDataURL(e,t)}});const v=d((()=>{const{value:e,icon:n="",size:o=160,iconSize:r=40,color:l=u.value.colorText,bgColor:i="transparent",errorLevel:a="M"}=t,s={src:n,x:void 0,y:void 0,height:r,width:r,excavate:!0};return{value:e,size:o-2*(u.value.paddingSM+u.value.lineWidth),level:a,bgColor:i,fgColor:l,imageSettings:n?s:void 0}}));return()=>{const n=a.value;return s($("div",U(U({},r),{},{style:[r.style,{width:`${t.size}px`,height:`${t.size}px`,backgroundColor:v.value.bgColor}],class:[c.value,n,{[`${n}-borderless`]:!t.bordered}]}),["active"!==t.status&&$("div",{class:`${n}-mask`},["loading"===t.status&&$(Gj,null,null),"expired"===t.status&&$(e,null,[$("p",{class:`${n}-expired`},[i.value.expired]),$(gx,{type:"link",onClick:e=>o("refresh",e)},{default:()=>[i.value.refresh],icon:()=>$(nq,null,null)})])]),"canvas"===t.type?$(Wq,U({ref:p},v.value),null):$(Kq,v.value,null)]))}}}),Xq=at(Vq);function Gq(e,t,n,o){const[r,l]=wp(void 0);m((()=>{const t="function"==typeof e.value?e.value():e.value;l(t||null)}),{flush:"post"});const[a,s]=wp(null),u=()=>{if(t.value)if(r.value){!function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:l,left:i}=e.getBoundingClientRect();return o>=0&&i>=0&&r<=t&&l<=n}(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:e,top:n,width:l,height:i}=r.value.getBoundingClientRect(),c={left:e,top:n,width:l,height:i,radius:0};JSON.stringify(a.value)!==JSON.stringify(c)&&s(c)}else s(null);else s(null)};i((()=>{c([t,r],(()=>{u()}),{flush:"post",immediate:!0}),window.addEventListener("resize",u)})),b((()=>{window.removeEventListener("resize",u)}));return[d((()=>{var e,t;if(!a.value)return a.value;const o=(null===(e=n.value)||void 0===e?void 0:e.offset)||6,r=(null===(t=n.value)||void 0===t?void 0:t.radius)||2;return{left:a.value.left-o,top:a.value.top-o,width:a.value.width+2*o,height:a.value.height+2*o,radius:r}})),r]}const Yq=()=>q(q({},{arrow:ht([Boolean,Object]),target:ht([String,Function,Object]),title:ht([String,Object]),description:ht([String,Object]),placement:ft(),mask:ht([Object,Boolean],!0),className:{type:String},style:ct(),scrollIntoViewOptions:ht([Boolean,Object])}),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:dt(),onFinish:dt(),renderPanel:dt(),onPrev:dt(),onNext:dt()}),Uq=r({name:"DefaultPanel",inheritAttrs:!1,props:Yq(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:t,current:o,total:r,title:l,description:i,onClose:a,onPrev:s,onNext:c,onFinish:u}=e;return $("div",U(U({},n),{},{class:pe(`${t}-content`,n.class)}),[$("div",{class:`${t}-inner`},[$("button",{type:"button",onClick:a,"aria-label":"Close",class:`${t}-close`},[$("span",{class:`${t}-close-x`},[B("×")])]),$("div",{class:`${t}-header`},[$("div",{class:`${t}-title`},[l])]),$("div",{class:`${t}-description`},[i]),$("div",{class:`${t}-footer`},[$("div",{class:`${t}-sliders`},[r>1?[...Array.from({length:r}).keys()].map(((e,t)=>$("span",{key:e,class:t===o?"active":""},null))):null]),$("div",{class:`${t}-buttons`},[0!==o?$("button",{class:`${t}-prev-btn`,onClick:s},[B("Prev")]):null,o===r-1?$("button",{class:`${t}-finish-btn`,onClick:u},[B("Finish")]):$("button",{class:`${t}-next-btn`,onClick:c},[B("Next")])])])])])}}}),qq=r({name:"TourStep",inheritAttrs:!1,props:Yq(),setup(t,n){let{attrs:o}=n;return()=>{const{current:n,renderPanel:r}=t;return $(e,null,["function"==typeof r?r(q(q({},o),t),n):$(Uq,U(U({},o),t),null)])}}});let Qq=0;const Zq=Jt();function Jq(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f("");const t=`vc_unique_${function(){let e;return Zq?(e=Qq,Qq+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}const eQ={fill:"transparent","pointer-events":"auto"},tQ=r({name:"TourMask",props:{prefixCls:{type:String},pos:ct(),rootClassName:{type:String},showMask:ut(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:ut(),animated:ht([Boolean,Object]),zIndex:{type:Number}},setup(t,n){let{attrs:o}=n;const r=Jq();return()=>{const{prefixCls:n,open:l,rootClassName:i,pos:a,showMask:s,fill:c,animated:u,zIndex:d}=t,p=`${n}-mask-${r}`,v="object"==typeof u?null==u?void 0:u.placeholder:u;return $(nd,{visible:l,autoLock:!0},{default:()=>l&&$("div",U(U({},o),{},{class:pe(`${n}-mask`,i,o.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},o.style]}),[s?$("svg",{style:{width:"100%",height:"100%"}},[$("defs",null,[$("mask",{id:p},[$("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),a&&$("rect",{x:a.left,y:a.top,rx:a.radius,width:a.width,height:a.height,fill:"black",class:v?`${n}-placeholder-animated`:""},null)])]),$("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:`url(#${p})`},null),a&&$(e,null,[$("rect",U(U({},eQ),{},{x:"0",y:"0",width:"100%",height:a.top}),null),$("rect",U(U({},eQ),{},{x:"0",y:"0",width:a.left,height:"100%"}),null),$("rect",U(U({},eQ),{},{x:"0",y:a.top+a.height,width:"100%",height:`calc(100vh - ${a.top+a.height}px)`}),null),$("rect",U(U({},eQ),{},{x:a.left+a.width,y:"0",width:`calc(100vw - ${a.left+a.width}px)`,height:"100%"}),null)])]):null])})}}}),nQ=[0,0],oQ={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function rQ(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};return Object.keys(oQ).forEach((n=>{t[n]=q(q({},oQ[n]),{autoArrow:e,targetOffset:nQ})})),t}rQ();const lQ={left:"50%",top:"50%",width:"1px",height:"1px"},iQ=()=>{const{builtinPlacements:e,popupAlign:t}=Hi();return{builtinPlacements:e,popupAlign:t,steps:vt(),open:ut(),defaultCurrent:{type:Number},current:{type:Number},onChange:dt(),onClose:dt(),onFinish:dt(),mask:ht([Boolean,Object],!0),arrow:ht([Boolean,Object],!0),rootClassName:{type:String},placement:ft("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:dt(),gap:ct(),animated:ht([Boolean,Object]),scrollIntoViewOptions:ht([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},aQ=r({name:"Tour",inheritAttrs:!1,props:Re(iQ(),{}),setup(t){const{defaultCurrent:n,placement:o,mask:r,scrollIntoViewOptions:l,open:i,gap:a,arrow:s}=z(t),u=f(),[p,v]=Sp(0,{value:d((()=>t.current)),defaultValue:n.value}),[h,b]=Sp(void 0,{value:d((()=>t.open)),postState:e=>!(p.value<0||p.value>=t.steps.length)&&(null==e||e)}),y=g(h.value);m((()=>{h.value&&!y.value&&v(0),y.value=h.value}));const x=d((()=>t.steps[p.value]||{})),S=d((()=>{var e;return null!==(e=x.value.placement)&&void 0!==e?e:o.value})),w=d((()=>{var e;return h.value&&(null!==(e=x.value.mask)&&void 0!==e?e:r.value)})),C=d((()=>{var e;return null!==(e=x.value.scrollIntoViewOptions)&&void 0!==e?e:l.value})),[k,O]=Gq(d((()=>x.value.target)),i,a,C),I=d((()=>!!O.value&&(void 0===x.value.arrow?s.value:x.value.arrow))),M=d((()=>"object"==typeof I.value&&I.value.pointAtCenter));c(M,(()=>{var e;null===(e=u.value)||void 0===e||e.forcePopupAlign()})),c(p,(()=>{var e;null===(e=u.value)||void 0===e||e.forcePopupAlign()}));const P=e=>{var n;v(e),null===(n=t.onChange)||void 0===n||n.call(t,e)};return()=>{var n;const{prefixCls:o,steps:r,onClose:l,onFinish:i,rootClassName:a,renderPanel:s,animated:c,zIndex:v}=t,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{b(!1),null==l||l(p.value)},m="boolean"==typeof w.value?w.value:!!w.value,y="boolean"==typeof w.value?void 0:w.value,C=d((()=>{const e=k.value||lQ,t={};return Object.keys(e).forEach((n=>{"number"==typeof e[n]?t[n]=`${e[n]}px`:t[n]=e[n]})),t}));return h.value?$(e,null,[$(tQ,{zIndex:v,prefixCls:o,pos:k.value,showMask:m,style:null==y?void 0:y.style,fill:null==y?void 0:y.color,open:h.value,animated:c,rootClassName:a},null),$(rd,U(U({},f),{},{builtinPlacements:x.value.target?null!==(n=f.builtinPlacements)&&void 0!==n?n:rQ(M.value):void 0,ref:u,popupStyle:x.value.target?x.value.style:q(q({},x.value.style),{position:"fixed",left:lQ.left,top:lQ.top,transform:"translate(-50%, -50%)"}),popupPlacement:S.value,popupVisible:h.value,popupClassName:pe(a,x.value.className),prefixCls:o,popup:()=>$(qq,U({arrow:I.value,key:"content",prefixCls:o,total:r.length,renderPanel:s,onPrev:()=>{P(p.value-1)},onNext:()=>{P(p.value+1)},onClose:g,current:p.value,onFinish:()=>{g(),null==i||i()}},x.value),null),forceRender:!1,destroyPopupOnHide:!0,zIndex:v,mask:!1,getTriggerDOMNode:()=>O.value||document.body}),{default:()=>[$(nd,{visible:h.value,autoLock:!0},{default:()=>[$("div",{class:pe(a,`${o}-target-placeholder`),style:q(q({},C.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),sQ=aQ,cQ=r({name:"ATourPanel",inheritAttrs:!1,props:q(q({},Yq()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:l}=z(e),i=d((()=>r.value===l.value-1)),a=t=>{var n;const o=e.prevButtonProps;null===(n=e.onPrev)||void 0===n||n.call(e,t),"function"==typeof(null==o?void 0:o.onClick)&&(null==o||o.onClick())},s=t=>{var n,o;const r=e.nextButtonProps;i.value?null===(n=e.onFinish)||void 0===n||n.call(e,t):null===(o=e.onNext)||void 0===o||o.call(e,t),"function"==typeof(null==r?void 0:r.onClick)&&(null==r||r.onClick())};return()=>{const{prefixCls:t,title:c,onClose:u,cover:d,description:p,type:v,arrow:f}=e,h=e.prevButtonProps,g=e.nextButtonProps;let m,b,y,x;c&&(m=$("div",{class:`${t}-header`},[$("div",{class:`${t}-title`},[c])])),p&&(b=$("div",{class:`${t}-description`},[p])),d&&(y=$("div",{class:`${t}-cover`},[d])),x=o.indicatorsRender?o.indicatorsRender({current:r.value,total:l}):[...Array.from({length:l.value}).keys()].map(((e,n)=>$("span",{key:e,class:pe(n===r.value&&`${t}-indicator-active`,`${t}-indicator`)},null)));const S="primary"===v?"default":"primary",w={type:"default",ghost:"primary"===v};return $(Ht,{componentName:"Tour",defaultLocale:Nt.Tour},{default:e=>{var o,c;return $("div",U(U({},n),{},{class:pe("primary"===v?`${t}-primary`:"",n.class,`${t}-content`)}),[f&&$("div",{class:`${t}-arrow`,key:"arrow"},null),$("div",{class:`${t}-inner`},[$(Dv,{class:`${t}-close`,onClick:u},null),y,m,b,$("div",{class:`${t}-footer`},[l.value>1&&$("div",{class:`${t}-indicators`},[x]),$("div",{class:`${t}-buttons`},[0!==r.value?$(gx,U(U(U({},w),h),{},{onClick:a,size:"small",class:pe(`${t}-prev-btn`,null==h?void 0:h.className)}),{default:()=>[null!==(o=null==h?void 0:h.children)&&void 0!==o?o:e.Previous]}):null,$(gx,U(U({type:S},g),{},{onClick:s,size:"small",class:pe(`${t}-next-btn`,null==g?void 0:g.className)}),{default:()=>[null!==(c=null==g?void 0:g.children)&&void 0!==c?c:i.value?e.Finish:e.Next]})])])])])}})}}}),uQ=cQ,dQ=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const l=f(null==r?void 0:r.value),i=d((()=>null==o?void 0:o.value));c(i,(e=>{l.value=null!=e?e:null==r?void 0:r.value}),{immediate:!0});const a=d((()=>{var e,o;return"number"==typeof l.value?n&&(null===(o=null===(e=n.value)||void 0===e?void 0:e[l.value])||void 0===o?void 0:o.type):null==t?void 0:t.value}));return{currentMergedType:d((()=>{var e;return null!==(e=a.value)&&void 0!==e?e:null==t?void 0:t.value})),updateInnerCurrent:e=>{l.value=e}}},pQ=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:l,borderRadiusXS:i,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:p,tourZIndexPopup:v,fontSize:f,colorBgContainer:h,fontWeightStrong:g,marginXS:m,colorTextLightSolid:b,tourBorderRadius:y,colorWhite:$,colorBgTextHover:x,tourCloseSize:S,motionDurationSlow:w,antCls:C}=e;return[{[t]:q(q({},Ur(e)),{color:s,position:"absolute",zIndex:v,display:"block",visibility:"visible",fontSize:f,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:p,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:S,height:S,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+S+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:f,fontWeight:g}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${i}px ${i}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${C}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:b,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:l,boxShadow:p,[`${t}-close`]:{color:b},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new pr(b).setAlpha(.15).toRgbString(),"&-active":{background:b}}},[`${t}-prev-btn`]:{color:b,borderColor:new pr(b).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new pr(b).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:$,"&:hover":{background:new pr(x).onBackground($).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${w}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(y,Yy)}}},qy(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:y,limitVerticalRadius:!0})]},vQ=tl("Tour",(e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=rl(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[pQ(r)]}));const fQ=r({name:"ATour",inheritAttrs:!1,props:q(q({},iQ()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),setup(e,t){let{attrs:n,emit:o,slots:r}=t;const{current:l,type:i,steps:a,defaultCurrent:s}=z(e),{prefixCls:c,direction:u}=Il("tour",e),[p,v]=vQ(c),{currentMergedType:f,updateInnerCurrent:h}=dQ({defaultType:i,steps:a,current:l,defaultCurrent:s});return()=>{const{steps:t,current:l,type:i,rootClassName:a}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r_y({arrowPointAtCenter:!0,autoAdjustOverflow:!0})));return p($(sQ,U(U(U({},n),s),{},{rootClassName:g,prefixCls:c.value,current:l,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:(e,t)=>$(uQ,U(U({},e),{},{type:i,current:t}),{indicatorsRender:r.indicatorsRender}),onChange:e=>{h(e),o("update:current",e),o("change",e)},steps:t,builtinPlacements:m.value}),null))}}}),hQ=at(fQ),gQ=Symbol("appConfigContext"),mQ=Symbol("appContext"),bQ=l({message:{},notification:{},modal:{}}),yQ=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:l}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:l}}},$Q=tl("App",(e=>[yQ(e)])),xQ=r({name:"AApp",props:Re({rootClassName:String,message:ct(),notification:ct()},{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Il("app",e),[r,l]=$Q(o),i=d((()=>pe(l.value,o.value,e.rootClassName))),a=p(gQ,{}),s=d((()=>({message:q(q({},a.message),e.message),notification:q(q({},a.notification),e.notification)})));var c;c=s.value,v(gQ,c);const[u,f]=eA(s.value.message),[h,g]=kA(s.value.notification),[m,b]=xH(),y=d((()=>({message:u,notification:h,modal:m})));var x;return x=y.value,v(mQ,x),()=>{var e;return r($("div",{class:i.value},[b(),f(),g(),null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});xQ.useApp=()=>p(mQ,bQ),xQ.install=function(e){e.component(xQ.name,xQ)};const SQ=xQ,wQ=["wrap","nowrap","wrap-reverse"],CQ=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],kQ=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];function OQ(e,t){return pe(q(q(q({},((e,t)=>{const n={};return wQ.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(e,t)),((e,t)=>{const n={};return kQ.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return CQ.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))}const IQ=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},MQ=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},PQ=e=>{const{componentCls:t}=e,n={};return wQ.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},EQ=e=>{const{componentCls:t}=e,n={};return kQ.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},TQ=e=>{const{componentCls:t}=e,n={};return CQ.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},AQ=tl("Flex",(e=>{const t=rl(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[IQ(t),MQ(t),PQ(t),EQ(t),TQ(t)]}));function BQ(e){return["small","middle","large"].includes(e)}const DQ=r({name:"AFlex",inheritAttrs:!1,props:{prefixCls:ft(),vertical:ut(),wrap:ft(),justify:ft(),align:ft(),flex:ht([Number,String]),gap:ht([Number,String]),component:pt()},setup(e,t){let{slots:n,attrs:o}=t;const{flex:r,direction:l}=Et(),{prefixCls:i}=Il("flex",e),[a,s]=AQ(i),c=d((()=>{var t;return[i.value,s.value,OQ(i.value,e),{[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-gap-${e.gap}`]:BQ(e.gap),[`${i.value}-vertical`]:null!==(t=e.vertical)&&void 0!==t?t:null==r?void 0:r.value.vertical}]}));return()=>{var t;const{flex:r,gap:l,component:i="div"}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),zQ=at(DQ),RQ=Object.freeze(Object.defineProperty({__proto__:null,Affix:Dl,Alert:yy,Anchor:Ai,AnchorLink:Ql,App:SQ,AutoComplete:Ib,AutoCompleteOptGroup:kb,AutoCompleteOption:Cb,Avatar:Py,AvatarGroup:l$,BackTop:HD,Badge:x$,BadgeRibbon:y$,Breadcrumb:_S,BreadcrumbItem:Fx,BreadcrumbSeparator:WS,Button:gx,ButtonGroup:px,Calendar:nO,Card:mI,CardGrid:yI,CardMeta:bI,Carousel:CM,Cascader:yT,CheckableTag:nB,Checkbox:ST,CheckboxGroup:wT,Col:kT,Collapse:II,CollapsePanel:PI,Comment:MT,Compact:dm,ConfigProvider:UA,DatePicker:NB,Descriptions:qB,DescriptionsItem:VB,DirectoryTree:fV,Divider:JB,Drawer:vD,Dropdown:Hx,DropdownButton:Px,Empty:xl,Flex:zQ,FloatButton:ED,FloatButtonGroup:AD,Form:uT,FormItem:rT,FormItemRest:Zv,Grid:CT,Image:LR,ImagePreviewGroup:HR,Input:JD,InputGroup:ez,InputNumber:hj,InputPassword:kz,InputSearch:tz,Layout:Fj,LayoutContent:Hj,LayoutFooter:jj,LayoutHeader:Rj,LayoutSider:Nj,List:TN,ListItem:kN,ListItemMeta:wN,LocaleProvider:AT,Mentions:tH,MentionsOption:eH,Menu:NS,MenuDivider:CS,MenuItem:sS,MenuItemGroup:wS,Modal:rH,MonthPicker:BB,PageHeader:JH,Pagination:SN,Popconfirm:nF,Popover:r$,Progress:CF,QRCode:Xq,QuarterPicker:RB,Radio:wk,RadioButton:kk,RadioGroup:Ck,RangePicker:jB,Rate:jF,Result:nL,Row:oL,Segmented:$U,Select:yb,SelectOptGroup:bb,SelectOption:mb,Skeleton:dI,SkeletonAvatar:hI,SkeletonButton:pI,SkeletonImage:fI,SkeletonInput:vI,SkeletonTitle:VO,Slider:FL,Space:UH,Spin:Gj,Statistic:MH,StatisticCountdown:BH,Step:c_,Steps:u_,SubMenu:bS,Switch:y_,TabPane:zO,Table:iX,TableColumn:tX,TableColumnGroup:nX,TableSummary:lX,TableSummaryCell:rX,TableSummaryRow:oX,Tabs:DO,Tag:rB,Textarea:pz,TimePicker:iG,TimeRangePicker:lG,Timeline:uG,TimelineItem:aG,Tooltip:Jy,Tour:hQ,Transfer:RX,Tree:gV,TreeNode:hV,TreeSelect:nG,TreeSelectNode:tG,Typography:PG,TypographyLink:UG,TypographyParagraph:QG,TypographyText:JG,TypographyTitle:nY,Upload:iU,UploadDragger:lU,Watermark:uU,WeekPicker:AB,message:hA,notification:NA},Symbol.toStringTag,{value:"Module"})),jQ={version:Xo,install:function(e){return Object.keys(RQ).forEach((t=>{const n=RQ[t];n.install&&e.use(n)})),e.use(Vo.StyleProvider),e.config.globalProperties.$message=hA,e.config.globalProperties.$notification=NA,e.config.globalProperties.$info=rH.info,e.config.globalProperties.$success=rH.success,e.config.globalProperties.$error=rH.error,e.config.globalProperties.$warning=rH.warning,e.config.globalProperties.$confirm=rH.confirm,e.config.globalProperties.$destroyAll=rH.destroyAll,e}};export{jQ as $,JB as A,gx as B,fB as C,VB as D,_b as E,uT as F,JD as G,OU as H,TU as I,hj as J,mI as K,RU as L,LU as M,cB as N,kT as O,r$ as P,Zv as Q,QU as R,pq as S,DO as T,Sq as U,oL as V,Iq as W,pz as X,XU as Y,Dl as Z,vD as _,Ab as a,Gb as b,xl as c,mq as d,rB as e,qB as f,Gj as g,Jy as h,iX as i,zO as j,SN as k,aq as l,hA as m,SR as n,xO as o,QG as p,mb as q,yb as r,rT as s,wk as t,Ck as u,MP as v,Dv as w,Dx as x,x$ as y,JG as z}; diff --git a/public/lib/assets/codemirror-tLd6xVyG.js b/public/lib/assets/codemirror-tLd6xVyG.js deleted file mode 100644 index 2e53b10..0000000 --- a/public/lib/assets/codemirror-tLd6xVyG.js +++ /dev/null @@ -1 +0,0 @@ -import{d as t,f as e,s as i,c as n,w as s,o as r,n as o,b as a,l}from"./vue--_kkPoVD.js";class h{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=v(this,t,e);let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),d.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=v(this,t,e);let i=[];return this.decompose(t,e,i,0),d.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new p(this),s=new p(t);for(let r=e,o=e;;){if(n.next(r),s.next(r),r=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(o+=n.value.length,n.done||o>=i)return!0}}iter(t=1){return new p(this,t)}iterRange(t,e=this.length){return new O(this,t,e)}iterLines(t,e){let i;if(null==t)i=this.iter();else{null==e&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new g(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new c(t):d.from(c.split(t,[])):h.empty}}class c extends h{constructor(t,e=function(t){let e=-1;for(let i of t)e+=i.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let s=0;;s++){let r=this.text[s],o=n+r.length;if((e?i:o)>=t)return new m(n,o,i,r);n=o+1,i++}}decompose(t,e,i,n){let s=t<=0&&e>=this.length?this:new c(u(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&n){let t=i.pop(),e=f(s.text,t.text.slice(),0,s.length);if(e.length<=32)i.push(new c(e,t.length+s.length));else{let t=e.length>>1;i.push(new c(e.slice(0,t)),new c(e.slice(t)))}}else i.push(s)}replace(t,e,i){if(!(i instanceof c))return super.replace(t,e,i);[t,e]=v(this,t,e);let n=f(this.text,f(i.text,u(this.text,0,t)),e),s=this.length+i.length-(e-t);return n.length<=32?new c(n,s):d.from(c.split(n,[]),s)}sliceString(t,e=this.length,i="\n"){[t,e]=v(this,t,e);let n="";for(let s=0,r=0;s<=e&&rt&&r&&(n+=i),ts&&(n+=o.slice(Math.max(0,t-s),e-s)),s=a+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],n=-1;for(let s of t)i.push(s),n+=s.length+1,32==i.length&&(e.push(new c(i,n)),i=[],n=-1);return n>-1&&e.push(new c(i,n)),e}}class d extends h{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,n){for(let s=0;;s++){let r=this.children[s],o=n+r.length,a=i+r.lines-1;if((e?a:o)>=t)return r.lineInner(t,e,i,n);n=o+1,i=a+1}}decompose(t,e,i,n){for(let s=0,r=0;r<=e&&s=r){let s=n&((r<=t?1:0)|(a>=e?2:0));r>=t&&a<=e&&!s?i.push(o):o.decompose(t-r,e-r,i,s)}r=a+1}}replace(t,e,i){if([t,e]=v(this,t,e),i.lines=s&&e<=o){let a=r.replace(t-s,e-s,i),l=this.lines-r.lines+a.lines;if(a.lines>4&&a.lines>l>>6){let s=this.children.slice();return s[n]=a,new d(s,this.length-(e-t)+i.length)}return super.replace(s,o,a)}s=o+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i="\n"){[t,e]=v(this,t,e);let n="";for(let s=0,r=0;st&&s&&(n+=i),tr&&(n+=o.sliceString(t-r,e-r,i)),r=a+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof d))return 0;let i=0,[n,s,r,o]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,s+=e){if(n==r||s==o)return i;let a=this.children[n],l=t.children[s];if(a!=l)return i+a.scanIdentical(l,e);i+=a.length+1}}static from(t,e=t.reduce(((t,e)=>t+e.length+1),-1)){let i=0;for(let c of t)i+=c.lines;if(i<32){let i=[];for(let e of t)e.flatten(i);return new c(i,e)}let n=Math.max(32,i>>5),s=n<<1,r=n>>1,o=[],a=0,l=-1,h=[];function f(t){let e;if(t.lines>s&&t instanceof d)for(let i of t.children)f(i);else t.lines>r&&(a>r||!a)?(u(),o.push(t)):t instanceof c&&a&&(e=h[h.length-1])instanceof c&&t.lines+e.lines<=32?(a+=t.lines,l+=t.length+1,h[h.length-1]=new c(e.text.concat(t.text),e.length+1+t.length)):(a+t.lines>n&&u(),a+=t.lines,l+=t.length+1,h.push(t))}function u(){0!=a&&(o.push(1==h.length?h[0]:d.from(h,l)),l=-1,a=h.length=0)}for(let c of t)f(c);return u(),1==o.length?o[0]:new d(o,e)}}function f(t,e,i=0,n=1e9){for(let s=0,r=0,o=!0;r=i&&(l>n&&(a=a.slice(0,n-s)),s0?1:(t instanceof c?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],s=this.offsets[i],r=s>>1,o=n instanceof c?n.text.length:n.children.length;if(r==(e>0?o:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(e>0?0:1)){if(this.offsets[i]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(n instanceof c){let s=n.text[r+(e<0?-1:0)];if(this.offsets[i]+=e,s.length>Math.max(0,t))return this.value=0==t?s:e>0?s.slice(t):s.slice(0,s.length-t),this;t-=s.length}else{let s=n.children[r+(e<0?-1:0)];t>s.length?(t-=s.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(s),this.offsets.push(e>0?1:(s instanceof c?s.text.length:s.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class O{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new p(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class g{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(h.prototype[Symbol.iterator]=function(){return this.iter()},p.prototype[Symbol.iterator]=O.prototype[Symbol.iterator]=g.prototype[Symbol.iterator]=function(){return this});class m{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}function v(t,e,i){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,i))]}let w="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t=>t?parseInt(t,36):1));for(let kO=1;kOt)return w[e-1]<=t;return!1}function S(t){return t>=127462&&t<=127487}const Q=8205;function y(t,e,i=!0,n=!0){return(i?x:k)(t,e,n)}function x(t,e,i){if(e==t.length)return e;e&&$(t.charCodeAt(e))&&P(t.charCodeAt(e-1))&&e--;let n=Z(t,e);for(e+=Y(n);e=0&&S(Z(t,n));)i++,n-=2;if(i%2==0)break;e+=2}}}return e}function k(t,e,i){for(;e>0;){let n=x(t,e-2,i);if(n=56320&&t<57344}function P(t){return t>=55296&&t<56320}function Z(t,e){let i=t.charCodeAt(e);if(!P(i)||e+1==t.length)return i;let n=t.charCodeAt(e+1);return $(n)?n-56320+(i-55296<<10)+65536:i}function C(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Y(t){return t<65536?1:2}const T=/\r\n?|\n/;var X=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(X||(X={}));class A{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return s+(t-n);s+=o}else{if(i!=X.Simple&&l>=t&&(i==X.TrackDel&&nt||i==X.TrackBefore&&nt))return null;if(l>t||l==t&&e<0&&!o)return t==n||e<0?s:s+a;s+=a}n=l}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return s}touchesRange(t,e=t){for(let i=0,n=0;i=0&&n<=e&&s>=t)return!(ne)||"cover";n=s}return!1}toString(){let t="";for(let e=0;e=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some((t=>"number"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new A(t)}static create(t){return new A(t)}}class W extends A{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return D(this,((e,i,n,s,r)=>t=t.replace(n,n+(i-e),r)),!1),t}mapDesc(t,e=!1){return j(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,s=0;n=0){e[n]=o,e[n+1]=r;let a=n>>1;for(;i.length0&&M(i,e,s.text),s.forward(t),o+=t}let l=t[r++];for(;o>1].toJSON()))}return t}static of(t,e,i){let n=[],s=[],r=0,o=null;function a(t=!1){if(!t&&!n.length)return;ro||t<0||o>e)throw new RangeError(`Invalid change range ${t} to ${o} (in doc of length ${e})`);let d=c?"string"==typeof c?h.of(c.split(i||T)):c:h.empty,f=d.length;if(t==o&&0==f)return;tr&&R(n,t-r,-1),R(n,o-t,f),M(s,n,d),r=o}}(t),a(!o),o}static empty(t){return new W(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;ne&&"string"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)e.push(s[0],0);else{for(;i.length=0&&i<=0&&i==t[s+1]?t[s]+=e:0==e&&0==t[s]?t[s+1]+=i:n?(t[s]+=e,t[s+1]+=i):t.push(e,i)}function M(t,e,i){if(0==i.length)return;let n=e.length-2>>1;if(n>1])),!(i||o==t.sections.length||t.sections[o+1]<0);)a=t.sections[o++],l=t.sections[o++];e(s,c,r,d,f),s=c,r=d}}}function j(t,e,i,n=!1){let s=[],r=n?[]:null,o=new E(t),a=new E(e);for(let l=-1;;)if(-1==o.ins&&-1==a.ins){let t=Math.min(o.len,a.len);R(s,t,-1),o.forward(t),a.forward(t)}else if(a.ins>=0&&(o.ins<0||l==o.i||0==o.off&&(a.len=0&&l=0)){if(o.done&&a.done)return r?W.createSet(s,r):A.create(s);throw new Error("Mismatched change set lengths")}{let t=0,e=o.len;for(;e;)if(-1==a.ins){let i=Math.min(e,a.len);t+=i,e-=i,a.forward(i)}else{if(!(0==a.ins&&a.lent||o.ins>=0&&o.len>t)&&(a||n.length>e),r.forward2(t),o.forward(t)}}else R(n,0,o.ins,a),s&&M(s,n,o.text),o.next()}}class E{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?h.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?h.empty:e[i].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class z{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new z(i,n,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return q.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return q.range(this.anchor,i)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return q.range(t.anchor,t.head)}static create(t,e,i){return new z(t,e,i)}}class q{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:q.create(this.ranges.map((i=>i.map(t,e))),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON())),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new q(t.ranges.map((t=>z.fromJSON(t))),t.main)}static single(t,e=t){return new q([q.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;nt?8:0)|s)}static normalized(t,e=0){let i=t[e];t.sort(((t,e)=>t.from-e.from)),e=t.indexOf(i);for(let n=1;ni.head?q.range(o,r):q.range(r,o))}}return new q(t,e)}}function _(t,e){for(let i of t.ranges)if(i.to>e)throw new RangeError("Selection points outside of document")}let I=0;class V{constructor(t,e,i,n,s){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=I++,this.default=t([]),this.extensions="function"==typeof s?s(this):s}get reader(){return this}static define(t={}){return new V(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:B),!!t.static,t.enables)}of(t){return new G([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new G(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new G(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],(i=>e(i.field(t))))}}function B(t,e){return t==e||t.length==e.length&&t.every(((t,i)=>t===e[i]))}class G{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=I++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,s=this.id,r=t[s]>>1,o=2==this.type,a=!1,l=!1,h=[];for(let c of this.dependencies)"doc"==c?a=!0:"selection"==c?l=!0:0==(1&(null!==(e=t[c.id])&&void 0!==e?e:1))&&h.push(t[c.id]);return{create:t=>(t.values[r]=i(t),1),update(t,e){if(a&&e.docChanged||l&&(e.docChanged||e.selection)||L(t,h)){let e=i(t);if(o?!N(e,t.values[r],n):!n(e,t.values[r]))return t.values[r]=e,1}return 0},reconfigure:(t,e)=>{let a,l=e.config.address[s];if(null!=l){let s=ct(e,l);if(this.dependencies.every((i=>i instanceof V?e.facet(i)===t.facet(i):!(i instanceof J)||e.field(i,!1)==t.field(i,!1)))||(o?N(a=i(t),s,n):n(a=i(t),s)))return t.values[r]=s,0}else a=i(t);return t.values[r]=a,1}}}}function N(t,e,i){if(t.length!=e.length)return!1;for(let n=0;nt[e.id])),s=i.map((t=>t.type)),r=n.filter((t=>!(1&t))),o=t[e.id]>>1;function a(t){let i=[];for(let e=0;et===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(H).find((t=>t.field==this));return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,i)=>{let n=t.values[e],s=this.updateF(n,i);return this.compareF(n,s)?0:(t.values[e]=s,1)},reconfigure:(t,i)=>null!=i.config.address[this.id]?(t.values[e]=i.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,H.of({field:this,create:t})]}get extension(){return this}}const K=4,tt=3,et=2,it=1;function nt(t){return e=>new rt(e,t)}const st={highest:nt(0),high:nt(it),default:nt(et),low:nt(tt),lowest:nt(K)};class rt{constructor(t,e){this.inner=t,this.prec=e}}class ot{of(t){return new at(this,t)}reconfigure(t){return ot.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class at{constructor(t,e){this.compartment=t,this.inner=e}}class lt{constructor(t,e,i,n,s,r){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=s,this.facets=r,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let n=[],s=Object.create(null),r=new Map;for(let d of function(t,e,i){let n=[[],[],[],[],[]],s=new Map;function r(t,o){let a=s.get(t);if(null!=a){if(a<=o)return;let e=n[a].indexOf(t);e>-1&&n[a].splice(e,1),t instanceof at&&i.delete(t.compartment)}if(s.set(t,o),Array.isArray(t))for(let e of t)r(e,o);else if(t instanceof at){if(i.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=e.get(t.compartment)||t.inner;i.set(t.compartment,n),r(n,o)}else if(t instanceof rt)r(t.inner,t.prec);else if(t instanceof J)n[o].push(t),t.provides&&r(t.provides,o);else if(t instanceof G)n[o].push(t),t.facet.extensions&&r(t.facet.extensions,et);else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(e,o)}}return r(t,et),n.reduce(((t,e)=>t.concat(e)))}(t,e,r))d instanceof J?n.push(d):(s[d.facet.id]||(s[d.facet.id]=[])).push(d);let o=Object.create(null),a=[],l=[];for(let d of n)o[d.id]=l.length<<1,l.push((t=>d.slot(t)));let h=null==i?void 0:i.config.facets;for(let d in s){let t=s[d],e=t[0].facet,n=h&&h[d]||[];if(t.every((t=>0==t.type)))if(o[e.id]=a.length<<1|1,B(n,t))a.push(i.facet(e));else{let n=e.combine(t.map((t=>t.value)));a.push(i&&e.compare(n,i.facet(e))?i.facet(e):n)}else{for(let e of t)0==e.type?(o[e.id]=a.length<<1|1,a.push(e.value)):(o[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));o[e.id]=l.length<<1,l.push((i=>F(i,e,t)))}}let c=l.map((t=>t(o)));return new lt(t,r,c,o,a,s)}}function ht(t,e){if(1&e)return 2;let i=e>>1,n=t.status[i];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;t.status[i]=4;let s=t.computeSlot(t,t.config.dynamicSlots[i]);return t.status[i]=2|s}function ct(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const dt=V.define(),ft=V.define({combine:t=>t.some((t=>t)),static:!0}),ut=V.define({combine:t=>t.length?t[0]:void 0,static:!0}),pt=V.define(),Ot=V.define(),gt=V.define(),mt=V.define({combine:t=>!!t.length&&t[0]});class vt{constructor(t,e){this.type=t,this.value=e}static define(){return new wt}}class wt{of(t){return new vt(this,t)}}class bt{constructor(t){this.map=t}of(t){return new St(this,t)}}class St{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new St(this.type,e)}is(t){return this.type==t}static define(t={}){return new bt(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let t=n.map(e);t&&i.push(t)}return i}}St.reconfigure=St.define(),St.appendConfig=St.define();class Qt{constructor(t,e,i,n,s,r){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=s,this.scrollIntoView=r,this._doc=null,this._state=null,i&&_(i,e.newLength),s.some((t=>t.type==Qt.time))||(this.annotations=s.concat(Qt.time.of(Date.now())))}static create(t,e,i,n,s,r){return new Qt(t,e,i,n,s,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(Qt.userEvent);return!(!e||!(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function yt(t,e){let i=[];for(let n=0,s=0;;){let r,o;if(n=t[n]))r=t[n++],o=t[n++];else{if(!(s=0;s--){let r=i[s](t);r&&Object.keys(r).length&&(n=xt(n,kt(e,r,t.changes.newLength),!0))}return n==t?t:Qt.create(e,t.changes,t.selection,n.effects,n.annotations,n.scrollIntoView)}(i?function(t){let e=t.startState,i=!0;for(let s of e.facet(pt)){let e=s(t);if(!1===e){i=!1;break}Array.isArray(e)&&(i=!0===i?e:yt(i,e))}if(!0!==i){let n,s;if(!1===i)s=t.changes.invertedDesc,n=W.empty(e.doc.length);else{let e=t.changes.filter(i);n=e.changes,s=e.filtered.mapDesc(e.changes).invertedDesc}t=Qt.create(e,n,t.selection&&t.selection.map(s),St.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let n=e.facet(Ot);for(let s=n.length-1;s>=0;s--){let i=n[s](t);t=i instanceof Qt?i:Array.isArray(i)&&1==i.length&&i[0]instanceof Qt?i[0]:$t(e,Zt(i),!1)}return t}(s):s)}Qt.time=vt.define(),Qt.userEvent=vt.define(),Qt.addToHistory=vt.define(),Qt.remote=vt.define();const Pt=[];function Zt(t){return null==t?Pt:Array.isArray(t)?t:[t]}var Ct=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ct||(Ct={}));const Yt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Tt;try{Tt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(xO){}function Xt(t){return e=>{if(!/\S/.test(e))return Ct.Space;if(function(t){if(Tt)return Tt.test(t);for(let e=0;e"€"&&(i.toUpperCase()!=i.toLowerCase()||Yt.test(i)))return!0}return!1}(e))return Ct.Word;for(let i=0;i-1)return Ct.Word;return Ct.Other}}class At{constructor(t,e,i,n,s,r){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=s,r&&(r._state=this);for(let o=0;os.set(e,t))),i=null),s.set(o.value.compartment,o.value.extension)):o.is(St.reconfigure)?(i=null,n=o.value):o.is(St.appendConfig)&&(i=null,n=Zt(n).concat(o.value));if(i)e=t.startState.values.slice();else{i=lt.resolve(n,s,this),e=new At(i,this.doc,this.selection,i.dynamicSlots.map((()=>null)),((t,e)=>e.reconfigure(t,this)),null).values}let r=t.startState.facet(ft)?t.newSelection:t.newSelection.asSingle();new At(i,t.newDoc,r,e,((e,i)=>i.update(e,t)),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t},range:q.cursor(e.from+t.length)})))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),s=[i.range],r=Zt(i.effects);for(let o=1;oe.spec.fromJSON(r,t))))}return At.create({doc:t.doc,selection:q.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=lt.resolve(t.extensions||[],new Map),i=t.doc instanceof h?t.doc:h.of((t.doc||"").split(e.staticFacet(At.lineSeparator)||T)),n=t.selection?t.selection instanceof q?t.selection:q.single(t.selection.anchor,t.selection.head):q.single(0);return _(n,i.length),e.staticFacet(ft)||(n=n.asSingle()),new At(e,i,n,e.dynamicSlots.map((()=>null)),((t,e)=>e.create(t)),null)}get tabSize(){return this.facet(At.tabSize)}get lineBreak(){return this.facet(At.lineSeparator)||"\n"}get readOnly(){return this.facet(mt)}phrase(t,...e){for(let i of this.facet(At.phrases))if(Object.prototype.hasOwnProperty.call(i,t)){t=i[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,((t,i)=>{if("$"==i)return"$";let n=+(i||1);return!n||n>e.length?t:e[n-1]}))),t}languageDataAt(t,e,i=-1){let n=[];for(let s of this.facet(dt))for(let r of s(this,e,i))Object.prototype.hasOwnProperty.call(r,t)&&n.push(r[t]);return n}charCategorizer(t){return Xt(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:i,length:n}=this.doc.lineAt(t),s=this.charCategorizer(t),r=t-i,o=t-i;for(;r>0;){let t=y(e,r,!1);if(s(e.slice(t,r))!=Ct.Word)break;r=t}for(;ot.length?t[0]:4}),At.lineSeparator=ut,At.readOnly=mt,At.phrases=V.define({compare(t,e){let i=Object.keys(t),n=Object.keys(e);return i.length==n.length&&i.every((i=>t[i]==e[i]))}}),At.languageData=dt,At.changeFilter=pt,At.transactionFilter=Ot,At.transactionExtender=gt,ot.reconfigure=St.define();class Rt{eq(t){return this==t}range(t,e=t){return Mt.create(t,e,this)}}Rt.prototype.startSide=Rt.prototype.endSide=0,Rt.prototype.point=!1,Rt.prototype.mapMode=X.TrackDel;let Mt=class t{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(e,i,n){return new t(e,i,n)}};function Dt(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class jt{constructor(t,e,i,n){this.from=t,this.to=e,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,n=0){let s=i?this.to:this.from;for(let r=n,o=s.length;;){if(r==o)return r;let n=r+o>>1,a=s[n]-t||(i?this.value[n].endSide:this.value[n].startSide)-e;if(n==r)return a>=0?r:o;a>=0?o=n:r=n+1}}between(t,e,i,n){for(let s=this.findIndex(e,-1e9,!0),r=this.findIndex(i,1e9,!1,s);sh||l==h&&c.startSide>0&&c.endSide<=0)continue;(h-l||c.endSide-c.startSide)<0||(r<0&&(r=l),c.point&&(o=Math.max(o,h-l)),i.push(c),n.push(l-r),s.push(h-r))}return{mapped:i.length?new jt(n,s,i,o):null,pos:r}}}class Ut{constructor(t,e,i,n){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=n}static create(t,e,i,n){return new Ut(t,e,i,n)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:n=0,filterTo:s=this.length}=t,r=t.filter;if(0==e.length&&!r)return this;if(i&&(e=e.slice().sort(Dt)),this.isEmpty)return e.length?Ut.of(e):this;let o=new qt(this,null,-1).goto(0),a=0,l=[],h=new Et;for(;o.value||a=0){let t=e[a++];h.addInner(t.from,t.to,t.value)||l.push(t)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||so.to||s=s&&t<=s+r.length&&!1===r.between(s,t-s,e-s,i))return}this.nextLayer.between(t,e,i)}}iter(t=0){return _t.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return _t.from(t).goto(e)}static compare(t,e,i,n,s=-1){let r=t.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=s)),o=e.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=s)),a=zt(r,o,i),l=new Vt(r,a,s),h=new Vt(o,a,s);i.iterGaps(((t,e,i)=>Bt(l,t,h,e,i,n))),i.empty&&0==i.length&&Bt(l,0,h,0,0,n)}static eq(t,e,i=0,n){null==n&&(n=999999999);let s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0)),r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0));if(s.length!=r.length)return!1;if(!s.length)return!0;let o=zt(s,r),a=new Vt(s,o,0).goto(i),l=new Vt(r,o,0).goto(i);for(;;){if(a.to!=l.to||!Gt(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>n)return!0;a.next(),l.next()}}static spans(t,e,i,n,s=-1){let r=new Vt(t,null,s).goto(e),o=e,a=r.openStart;for(;;){let t=Math.min(r.to,i);if(r.point){let i=r.activeForPoint(r.to),s=r.pointFromo&&(n.span(o,t,r.active,a),a=r.openEnd(t));if(r.to>i)return a+(r.point&&r.to>i?1:0);o=r.to,r.next()}}static of(t,e=!1){let i=new Et;for(let n of t instanceof Mt?[t]:e?function(t){if(t.length>1)for(let e=t[0],i=1;i0)return t.slice().sort(Dt);e=n}return t}(t):t)i.add(n.from,n.to,n.value);return i.finish()}}Ut.empty=new Ut([],[],null,-1),Ut.empty.nextLayer=Ut.empty;class Et{finishChunk(t){this.chunks.push(new jt(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new Et)).add(t,e,i)}addInner(t,e,i){let n=t-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(Ut.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=Ut.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function zt(t,e,i){let n=new Map;for(let r of t)for(let t=0;t=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&n.push(new qt(r,e,i,s));return 1==n.length?n[0]:new _t(n)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)It(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)It(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),It(this.heap,0)}}}function It(t,e){for(let i=t[e];;){let n=1+(e<<1);if(n>=t.length)break;let s=t[n];if(n+1=0&&(s=t[n+1],n++),i.compare(s)<0)break;t[n]=i,t[e]=s,e=n}}class Vt{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=_t.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Nt(this.active,t),Nt(this.activeTo,t),Nt(this.activeRank,t),this.minActive=Ft(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:n,rank:s}=this.cursor;for(;e-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>t){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&Nt(i,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[e]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function Bt(t,e,i,n,s,r){t.goto(e),i.goto(n);let o=n+s,a=n,l=n-e;for(;;){let e=t.to+l-i.to||t.endSide-i.endSide,n=e<0?t.to+l:i.to,s=Math.min(n,o);if(t.point||i.point?t.point&&i.point&&(t.point==i.point||t.point.eq(i.point))&&Gt(t.activeForPoint(t.to),i.activeForPoint(i.to))||r.comparePoint(a,s,t.point,i.point):s>a&&!Gt(t.active,i.active)&&r.compareRange(a,s,t.active,i.active),n>o)break;a=n,e<=0&&t.next(),e>=0&&i.next()}}function Gt(t,e){if(t.length!=e.length)return!1;for(let i=0;i=e;n--)t[n+1]=t[n];t[e]=i}function Ft(t,e){let i=-1,n=1e9;for(let s=0;s=e)return s;if(s==t.length)break;r+=9==t.charCodeAt(s)?i-r%i:1,s=y(t,s)}return!0===n?-1:t.length}const Kt="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),te="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class ie{constructor(t,e){this.rules=[];let{finish:i}=e||{};function n(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}function s(t,e,r,o){let a=[],l=/^@(\w+)\b/.exec(t[0]),h=l&&"keyframes"==l[1];if(l&&null==e)return r.push(t[0]+";");for(let i in e){let o=e[i];if(/&/.test(i))s(i.split(/,\s*/).map((e=>t.map((t=>e.replace(/&/,t))))).reduce(((t,e)=>t.concat(e))),o,r);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+i+") should be a primitive value.");s(n(i),o,a,h)}else null!=o&&a.push(i.replace(/_.*/,"").replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+": "+o+";")}(a.length||h)&&r.push((!i||l||o?t:t.map(i)).join(", ")+" {"+a.join(" ")+"}")}for(let r in t)s(n(r),t[r],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=ee[Kt]||1;return ee[Kt]=t+1,"ͼ"+t.toString(36)}static mount(t,e,i){let n=t[te],s=i&&i.nonce;n?s&&n.setNonce(s):n=new se(t,s),n.mount(Array.isArray(e)?e:[e])}}let ne=new Map;class se{constructor(t,e){let i=t.ownerDocument||t,n=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&n.CSSStyleSheet){let e=ne.get(i);if(e)return t.adoptedStyleSheets=[e.sheet,...t.adoptedStyleSheets],t[te]=e;this.sheet=new n.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],ne.set(i,this)}else{this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);let n=t.head||t;n.insertBefore(this.styleTag,n.firstChild)}this.modules=[],t[te]=this}mount(t){let e=this.sheet,i=0,n=0;for(let s=0;s-1&&(this.modules.splice(o,1),n--,o=-1),-1==o){if(this.modules.splice(n++,0,r),e)for(let t=0;t",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ae="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),le="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),he=0;he<10;he++)re[48+he]=re[96+he]=String(he);for(he=1;he<=24;he++)re[he+111]="F"+he;for(he=65;he<=90;he++)re[he]=String.fromCharCode(he+32),oe[he]=String.fromCharCode(he);for(var ce in re)oe.hasOwnProperty(ce)||(oe[ce]=re[ce]);function de(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function fe(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function ue(t,e){if(!e.anchorNode)return!1;try{return fe(t,e.anchorNode)}catch(xO){return!1}}function pe(t){return 3==t.nodeType?$e(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Oe(t,e,i,n){return!!i&&(me(t,e,i,n,-1)||me(t,e,i,n,1))}function ge(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function me(t,e,i,n,s){for(;;){if(t==i&&e==n)return!0;if(e==(s<0?0:ve(t))){if("DIV"==t.nodeName)return!1;let i=t.parentNode;if(!i||1!=i.nodeType)return!1;e=ge(t)+(s<0?0:1),t=i}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(s<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=s<0?ve(t):0}}}function ve(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function we(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function be(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function Se(t,e){let i=e.width/t.offsetWidth,n=e.height/t.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)&&(i=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-t.offsetHeight)<1)&&(n=1),{scaleX:i,scaleY:n}}class Qe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?ve(e):0),i,Math.min(t.focusOffset,i?ve(i):0))}set(t,e,i,n){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=n}}let ye,xe=null;function ke(t){if(t.setActive)return t.setActive();if(xe)return t.focus(xe);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==xe?{get preventScroll(){return xe={preventScroll:!0},!0}}:void 0),!xe){xe=!1;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}class Ye{constructor(t,e,i=!0){this.node=t,this.offset=e,this.precise=i}static before(t,e){return new Ye(t.parentNode,ge(t),e)}static after(t,e){return new Ye(t.parentNode,ge(t)+1,e)}}const Te=[];class Xe{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let i of this.children){if(i==t)return e;e+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let i,n=this.dom,s=null;for(let r of this.children){if(7&r.flags){if(!r.dom&&(i=s?s.nextSibling:n.firstChild)){let t=Xe.get(i);(!t||!t.parent&&t.canReuseDOM(r))&&r.reuseDOM(i)}r.sync(t,e),r.flags&=-8}if(i=s?s.nextSibling:n.firstChild,e&&!e.written&&e.node==n&&i!=r.dom&&(e.written=!0),r.dom.parentNode==n)for(;i&&i!=r.dom;)i=Ae(i);else n.insertBefore(r.dom,i);s=r.dom}for(i=s?s.nextSibling:n.firstChild,i&&e&&e.node==n&&(e.written=!0);i;)i=Ae(i)}else if(1&this.flags)for(let i of this.children)7&i.flags&&(i.sync(t,e),i.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let i;if(t==this.dom)i=this.dom.childNodes[e];else{let n=0==ve(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;0==n&&e.firstChild!=e.lastChild&&(n=t==e.firstChild?-1:1),t=e}i=n<0?t:t.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!Xe.get(i);)i=i.nextSibling;if(!i)return this.length;for(let n=0,s=0;;n++){let t=this.children[n];if(t.dom==i)return s;s+=t.length+t.breakAfter}}domBoundsAround(t,e,i=0){let n=-1,s=-1,r=-1,o=-1;for(let a=0,l=i,h=i;ae)return i.domBoundsAround(t,e,l);if(c>=t&&-1==n&&(n=a,s=l),l>e&&i.dom.parentNode==this.dom){r=a,o=h;break}h=c,l=c+i.breakAfter}return{from:s,to:o<0?i+this.length:o,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r=0?this.children[r].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=Te){this.markDirty();for(let n=t;nthis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Re(t,e,i,n,s,r,o,a,l){let{children:h}=t,c=h.length?h[e]:null,d=r.length?r[r.length-1]:null,f=d?d.breakAfter:o;if(!(e==n&&c&&!o&&!f&&r.length<2&&c.merge(i,s,r.length?d:null,0==i,a,l))){if(n0&&(!o&&r.length&&c.merge(i,c.length,r[0],!1,a,0)?c.breakAfter=r.shift().breakAfter:(i2);var Ne={mac:Ge||/Mac/.test(De.platform),windows:/Win/.test(De.platform),linux:/Linux|X11/.test(De.platform),ie:qe,ie_version:Ee?je.documentMode||6:ze?+ze[1]:Ue?+Ue[1]:0,gecko:_e,gecko_version:_e?+(/Firefox\/(\d+)/.exec(De.userAgent)||[0,0])[1]:0,chrome:!!Ie,chrome_version:Ie?+Ie[1]:0,ios:Ge,android:/Android\b/.test(De.userAgent),webkit:Ve,safari:Be,webkit_version:Ve?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=je.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Le extends Xe{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return!(8&this.flags||i&&(!(i instanceof Le)||this.length-(e-t)+i.length>256||8&i.flags))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new Le(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new Ye(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function(t,e,i){let n=t.nodeValue.length;e>n&&(e=n);let s=e,r=e,o=0;0==e&&i<0||e==n&&i>=0?Ne.chrome||Ne.gecko||(e?(s--,o=1):r=0)?0:a.length-1];Ne.safari&&!o&&0==l.width&&(l=Array.prototype.find.call(a,(t=>t.width))||l);return o?we(l,o<0):l||null}(this.dom,t,e)}}class Fe extends Xe{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let n of e)n.setParent(this)}setAttrs(t){if(Ze(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!(8&(this.flags|t.flags))}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,n,s,r){return(!i||!(!(i instanceof Fe&&i.mark.eq(this.mark))||t&&s<=0||et&&e.push(i=t&&(n=s),i=r,s++}let r=this.length-t;return this.length=t,n>-1&&(this.children.length=n,this.markDirty()),new Fe(this.mark,e,r)}domAtPos(t){return Ke(this,t)}coordsAt(t,e){return ei(this,t,e)}}class He extends Xe{static create(t,e,i){return new He(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=He.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,n,s,r){return!(i&&(!(i instanceof He&&this.widget.compare(i.widget))||t>0&&s<=0||e0)?Ye.before(this.dom):Ye.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let n=this.dom.getClientRects(),s=null;if(!n.length)return null;let r=this.side?this.side<0:t>0;for(let o=r?n.length-1:0;s=n[o],!(t>0?0==o:o==n.length-1||s.top0?Ye.before(this.dom):Ye.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return h.empty}get isHidden(){return!0}}function Ke(t,e){let i=t.dom,{children:n}=t,s=0;for(let r=0;sr&&e0;r--){let t=n[r-1];if(t.dom.parentNode==i)return t.domAtPos(t.length)}for(let r=s;r0&&e instanceof Fe&&s.length&&(n=s[s.length-1])instanceof Fe&&n.mark.eq(e.mark)?ti(n,e.children[0],i-1):(s.push(e),e.setParent(t)),t.length+=e.length}function ei(t,e,i){let n=null,s=-1,r=null,o=-1;!function t(e,a){for(let l=0,h=0;l=a&&(c.children.length?t(c,a-h):(!r||r.isHidden&&i>0)&&(d>a||h==d&&c.getSide()>0)?(r=c,o=a-h):(h-1?1:0)!=s.length-(i&&s.indexOf(i)>-1?1:0))return!1;for(let r of n)if(r!=i&&(-1==s.indexOf(r)||t[r]!==e[r]))return!1;return!0}function ri(t,e,i){let n=!1;if(e)for(let s in e)i&&s in i||(n=!0,"style"==s?t.style.cssText="":t.removeAttribute(s));if(i)for(let s in i)e&&e[s]==i[s]||(n=!0,"style"==s?t.style.cssText=i[s]:t.setAttribute(s,i[s]));return n}function oi(t){let e=Object.create(null);for(let i=0;i0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){si(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){ti(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=ii(e,this.attrs||{})),i&&(this.attrs=ii({class:i},this.attrs||{}))}domAtPos(t){return Ke(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?4&this.flags&&(Ze(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ri(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let n=this.dom.lastChild;for(;n&&Xe.get(n)instanceof Fe;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(i=Xe.get(n))||void 0===i?void 0:i.isEditable)||Ne.ios&&this.children.some((t=>t instanceof Le))))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t,e=0;for(let i of this.children){if(!(i instanceof Le)||/[^ -~]/.test(i.text))return null;let n=pe(i.dom);if(1!=n.length)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(t,e){let i=ei(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight=e){if(s instanceof ai)return s;if(r>e)break}n=r+s.breakAfter}return null}}class li extends Xe{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,n,s,r){return!(i&&(!(i instanceof li&&this.widget.compare(i.widget))||t>0&&s<=0||e0)}}class hi{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,i){return null}get isHidden(){return!1}destroy(t){}}var ci=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(ci||(ci={}));class di extends Rt{constructor(t,e,i,n){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(t){return new fi(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),i=!!t.block;return e+=i&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new pi(t,e,e,i,t.widget||null,!1)}static replace(t){let e,i,n=!!t.block;if(t.isBlockGap)e=-5e8,i=4e8;else{let{start:s,end:r}=Oi(t,n);e=(s?n?-3e8:-1:5e8)-1,i=1+(r?n?2e8:1:-6e8)}return new pi(t,e,i,n,t.widget||null,!0)}static line(t){return new ui(t)}static set(t,e=!1){return Ut.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}di.none=Ut.empty;class fi extends di{constructor(t){let{start:e,end:i}=Oi(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof fi&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(i=t.attrs)||void 0===i?void 0:i.class))&&si(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}fi.prototype.point=!1;class ui extends di{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof ui&&this.spec.class==t.spec.class&&si(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}ui.prototype.mapMode=X.TrackBefore,ui.prototype.point=!0;class pi extends di{constructor(t,e,i,n,s,r){super(e,i,s,t),this.block=n,this.isReplace=r,this.mapMode=n?e<=0?X.TrackBefore:X.TrackAfter:X.TrackDel}get type(){return this.startSide!=this.endSide?ci.WidgetRange:this.startSide<=0?ci.WidgetBefore:ci.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof pi&&(e=this.widget,i=t.widget,e==i||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide;var e,i}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function Oi(t,e=!1){let{inclusiveStart:i,inclusiveEnd:n}=t;return null==i&&(i=t.inclusive),null==n&&(n=t.inclusive),{start:null!=i?i:e,end:null!=n?n:e}}function gi(t,e,i,n=0){let s=i.length-1;s>=0&&i[s]+n>=t?i[s]=Math.max(i[s],e):i.push(t,e)}pi.prototype.point=!0;class mi{constructor(t,e,i,n){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof li&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ai),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(vi(new Je(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||t&&this.content.length&&this.content[this.content.length-1]instanceof li||this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=e,this.textOff=0}let n=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(vi(new Le(this.text.slice(this.textOff,this.textOff+n)),e),i),this.atCursorPos=!0,this.textOff+=n,t-=n,i=0}}span(t,e,i,n){this.buildText(e-t,i,n),this.pos=e,this.openStart<0&&(this.openStart=n)}point(t,e,i,n,s,r){if(this.disallowBlockEffectsFor[r]&&i instanceof pi){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=e-t;if(i instanceof pi)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new li(i.widget||new wi("div"),o,i));else{let r=He.create(i.widget||new wi("span"),o,o?0:i.startSide),a=this.atCursorPos&&!r.isEditable&&s<=n.length&&(t0),l=!r.isEditable&&(tn.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||a||r.isEditable||(this.pendingBuffer=0),this.flushBuffer(n),a&&(h.append(vi(new Je(1),n),s),s=n.length+Math.max(0,s-n.length)),h.append(vi(r,n),s),this.atCursorPos=l,this.pendingBuffer=l?tn.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=s)}static build(t,e,i,n,s){let r=new mi(t,e,i,s);return r.openEnd=Ut.spans(n,e,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function vi(t,e){for(let i of e)t=new Fe(i,[t],t.length);return t}class wi extends hi{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const bi=V.define(),Si=V.define(),Qi=V.define(),yi=V.define(),xi=V.define(),ki=V.define(),$i=V.define(),Pi=V.define({combine:t=>t.some((t=>t))}),Zi=V.define({combine:t=>t.some((t=>t))});class Ci{constructor(t,e="nearest",i="nearest",n=5,s=5,r=!1){this.range=t,this.y=e,this.x=i,this.yMargin=n,this.xMargin=s,this.isSnapshot=r}map(t){return t.empty?this:new Ci(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Ci(q.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Yi=St.define({map:(t,e)=>t.map(e)});function Ti(t,e,i){let n=t.facet(yi);n.length?n[0](e):window.onerror&&window.onerror(String(e),i,void 0,void 0,e)}const Xi=V.define({combine:t=>!t.length||t[0]});let Ai=0;const Wi=V.define();class Ri{constructor(t,e,i,n,s){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=n,this.extension=s(this)}static define(t,e){const{eventHandlers:i,eventObservers:n,provide:s,decorations:r}=e||{};return new Ri(Ai++,t,i,n,(t=>{let e=[Wi.of(t)];return r&&e.push(Ui.of((e=>{let i=e.plugin(t);return i?r(i):di.none}))),s&&e.push(s(t)),e}))}static fromClass(t,e){return Ri.define((e=>new t(e)),e)}}class Mi{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(Ti(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(xO){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Ti(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(i){Ti(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Di=V.define(),ji=V.define(),Ui=V.define(),Ei=V.define(),zi=V.define();function qi(t,e,i){let n=t.state.facet(zi);if(!n.length)return n;let s=n.map((e=>e instanceof Function?e(t):e)),r=[];return Ut.spans(s,e,i,{point(){},span(t,e,i,n){let s=r;for(let r=i.length-1;r>=0;r--,n--){let o,a=i[r].spec.bidiIsolate;if(null!=a)if(n>0&&s.length&&(o=s[s.length-1]).to==t&&o.direction==a)o.to=e,s=o.inner;else{let i={from:t,to:e,direction:a,inner:[]};s.push(i),s=i.inner}}}}),r}const _i=V.define();function Ii(t){let e=0,i=0,n=0,s=0;for(let r of t.state.facet(_i)){let o=r(t);o&&(null!=o.left&&(e=Math.max(e,o.left)),null!=o.right&&(i=Math.max(i,o.right)),null!=o.top&&(n=Math.max(n,o.top)),null!=o.bottom&&(s=Math.max(s,o.bottom)))}return{left:e,right:i,top:n,bottom:s}}const Vi=V.define();class Bi{constructor(t,e,i,n){this.fromA=t,this.toA=e,this.fromB=i,this.toB=n}join(t){return new Bi(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let n=t[e-1];if(!(n.fromA>i.toA)){if(n.toAh)break;s+=2}if(!a)return i;new Bi(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),r=a.toA,o=a.toB}}}class Gi{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=W.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let n=[];this.changes.iterChangedRanges(((t,e,i,s)=>n.push(new Bi(t,e,i,s)))),this.changedRanges=n}static create(t,e,i){return new Gi(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Ni=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Ni||(Ni={}));const Li=Ni.LTR,Fi=Ni.RTL;function Hi(t){let e=[];for(let i=0;i=e){if(o.level==i)return r;(s<0||(0!=n?n<0?o.frome:t[s].level>o.level))&&(s=r)}}if(s<0)throw new RangeError("Index out of range");return s}}function rn(t,e){if(t.length!=e.length)return!1;for(let i=0;il&&o.push(new sn(l,p.from,f)),ln(t,p.direction==Li!=!(f%2)?n+1:n,s,p.inner,p.from,p.to,o),l=p.to}u=p.to}else{if(u==i||(e?on[u]!=a:on[u]==a))break;u++}d?an(t,l,u,n+1,s,d,o):le;){let i=!0,c=!1;if(!h||l>r[h-1].to){let t=on[l-1];t!=a&&(i=!1,c=16==t)}let d=i||1!=a?null:[],f=i?n:n+1,u=l;t:for(;;)if(h&&u==r[h-1].to){if(c)break t;let p=r[--h];if(!i)for(let t=p.from,i=h;;){if(t==e)break t;if(!i||r[i-1].to!=t){if(on[t-1]==a)break t;break}t=r[--i].from}if(d)d.push(p);else{p.to=0;t-=3)if(en[t+1]==-i){let e=en[t+2],i=2&e?s:4&e?1&e?r:s:0;i&&(on[o]=on[en[t]]=i),a=t;break}}else{if(189==en.length)break;en[a++]=o,en[a++]=e,en[a++]=l}else if(2==(n=on[o])||1==n){let t=n==s;l=t?0:1;for(let e=a-3;e>=0;e-=3){let i=en[e+2];if(2&i)break;if(t)en[e+2]|=2;else{if(4&i)break;en[e+2]|=4}}}}}(t,s,r,n,a),function(t,e,i,n){for(let s=0,r=n;s<=i.length;s++){let o=s?i[s-1].to:t,a=sl;)e==r&&(e=i[--n].from,r=n?i[n-1].to:t),on[--e]=c;l=o}else r=o,l++}}}(s,r,n,a),an(t,s,r,e,i,n,o)}function hn(t){return[new sn(0,t,0)]}let cn="";function dn(t,e,i,n,s){var r;let o=n.head-t.from,a=-1;if(0==o){if(!s||!t.length)return null;e[0].level!=i&&(o=e[0].side(!1,i),a=0)}else if(o==t.length){if(s)return null;let t=e[e.length-1];t.level!=i&&(o=t.side(!0,i),a=e.length-1)}a<0&&(a=sn.find(e,o,null!==(r=n.bidiLevel)&&void 0!==r?r:-1,n.assoc));let l=e[a];o==l.side(s,i)&&(l=e[a+=s?1:-1],o=l.side(!s,i));let h=s==(l.dir==i),c=y(t.text,o,h);if(cn=t.text.slice(Math.min(o,c),Math.max(o,c)),c>l.from&&c0&&i.length&&(i.every((({fromA:t,toA:e})=>ethis.minWidthTo))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=-1;this.view.inputState.composing>=0&&((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?n=this.domChanged.newSel.head:function(t,e){let i=!1;e&&t.iterChangedRanges(((t,n)=>{te.from&&(i=!0)}));return i}(t.changes,this.hasComposition)||t.selectionSet||(n=t.state.selection.main.head));let s=n>-1?function(t,e,i){let n=pn(t,i);if(!n)return null;let{node:s,from:r,to:o}=n,a=s.nodeValue;if(/[\n\r]/.test(a))return null;if(t.state.doc.sliceString(n.from,n.to)!=a)return null;let l=e.invertedDesc,h=new Bi(l.mapPos(r),l.mapPos(o),r,o),c=[];for(let d=s.parentNode;;d=d.parentNode){let e=Xe.get(d);if(e instanceof Fe)c.push({node:d,deco:e.mark});else{if(e instanceof ai||"DIV"==d.nodeName&&d.parentNode==t.contentDOM)return{range:h,text:s,marks:c,line:d};if(d==t.contentDOM)return null;c.push({node:d,deco:new fi({inclusive:!0,attributes:oi(d),tagName:d.tagName.toLowerCase()})})}}}(this.view,t.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:e,to:n}=this.hasComposition;i=new Bi(e,n,t.changes.mapPos(e,-1),t.changes.mapPos(n,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Ne.ie||Ne.chrome)&&!s&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let r=function(t,e,i){let n=new gn;return Ut.compare(t,e,i,n),n.changes}(this.decorations,this.updateDeco(),t.changes);return i=Bi.extendWithRanges(i,r),!!(7&this.flags||0!=i.length)&&(this.updateInner(i,t.startState.doc.length,s),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,i);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=Ne.chrome||Ne.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=-8,t&&(t.written||n.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((t=>t.flags&=-9));let s=[];if(this.view.viewport.from||this.view.viewport.to=0?n[r]:null;if(!t)break;let e,o,a,l,{fromA:h,toA:c,fromB:d,toB:f}=t;if(i&&i.range.fromBd){let t=mi.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),n=mi.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);o=t.breakAtStart,a=t.openStart,l=n.openEnd;let s=this.compositionView(i);n.breakAtStart?s.breakAfter=1:n.content.length&&s.merge(s.length,s.length,n.content[0],!1,n.openStart,0)&&(s.breakAfter=n.content[0].breakAfter,n.content.shift()),t.content.length&&s.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),e=t.content.concat(s).concat(n.content)}else({content:e,breakAtStart:o,openStart:a,openEnd:l}=mi.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:u,off:p}=s.findPos(c,1),{i:O,off:g}=s.findPos(h,-1);Re(this,O,g,u,p,e,o,a,l)}i&&this.fixCompositionDOM(i)}compositionView(t){let e=new Le(t.text.nodeValue);e.flags|=8;for(let{deco:n}of t.marks)e=new Fe(n,[e],e.length);let i=new ai;return i.append(e,0),i}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some((t=>7&t.flags))?1:0),this.markedForComposition.add(e);let i=Xe.get(t);i&&i!=e&&(i.dom=null),e.setDOM(t)},i=this.childPos(t.range.fromB,1),n=this.children[i.i];e(t.line,n);for(let s=t.marks.length-1;s>=-1;s--)i=n.childPos(i.off,1),n=n.children[i.i],e(s>=0?t.marks[s].node:t.text,n)}updateSelection(t=!1,e=!1){!t&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let i=this.view.root.activeElement,n=i==this.dom,s=!n&&ue(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(n||e||s))return;let r=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(o.anchor)),l=o.empty?a:this.moveToLine(this.domAtPos(o.head));if(Ne.gecko&&o.empty&&!this.hasComposition&&(1==(h=a).node.nodeType&&h.node.firstChild&&(0==h.offset||"false"==h.node.childNodes[h.offset-1].contentEditable)&&(h.offset==h.node.childNodes.length||"false"==h.node.childNodes[h.offset].contentEditable))){let t=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(t,a.node.childNodes[a.offset]||null))),a=l=new Ye(t,0),r=!0}var h;let c=this.view.observer.selectionRange;!r&&c.focusNode&&Oe(a.node,a.offset,c.anchorNode,c.anchorOffset)&&Oe(l.node,l.offset,c.focusNode,c.focusOffset)||(this.view.observer.ignore((()=>{Ne.android&&Ne.chrome&&this.dom.contains(c.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=de(this.view.root);if(t)if(o.empty){if(Ne.gecko){let t=(e=a.node,n=a.offset,1!=e.nodeType?0:(n&&"false"==e.childNodes[n-1].contentEditable?1:0)|(no.head&&([a,l]=[l,a]),e.setEnd(l.node,l.offset),e.setStart(a.node,a.offset),t.removeAllRanges(),t.addRange(e)}else;var e,n;s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())})),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new Ye(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new Ye(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=de(t.root),{anchorNode:n,anchorOffset:s}=t.observer.selectionRange;if(!(i&&e.empty&&e.assoc&&i.modify))return;let r=ai.find(this,e.head);if(!r)return;let o=r.posAtStart;if(e.head==o||e.head==o+r.length)return;let a=this.coordsAt(e.head,-1),l=this.coordsAt(e.head,1);if(!a||!l||a.bottom>l.top)return;let h=this.domAtPos(e.head+e.assoc);i.collapse(h.node,h.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(n,s)}moveToLine(t){let e,i=this.dom;if(t.node!=i)return t;for(let n=t.offset;!e&&n=0;n--){let t=Xe.get(i.childNodes[n]);t instanceof ai&&(e=t.domAtPos(t.length))}return e?new Ye(e.node,e.offset,!0):t}nearest(t){for(let e=t;e;){let t=Xe.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;r--){let o=this.children[r],a=s-o.breakAfter,l=a-o.length;if(at||o.covers(1))&&(!i||o instanceof ai&&!(i instanceof ai&&e>=0))&&(i=o,n=l),s=l}return i?i.coordsAt(t-n,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),n=this.children[e];if(!(n instanceof ai))return null;for(;n.children.length;){let{i:t,off:e}=n.childPos(i,1);for(;;t++){if(t==n.children.length)return null;if((n=n.children[t]).length)break}i=e}if(!(n instanceof Le))return null;let s=y(n.text,i);if(s==i)return null;let r=$e(n.dom,i,s).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,a=this.view.textDirection==Ni.LTR;for(let l=0,h=0;hn)break;if(l>=i){let i=t.dom.getBoundingClientRect();if(e.push(i.height),r){let e=t.dom.lastChild,n=e?pe(e):[];if(n.length){let t=n[n.length-1],e=a?t.right-i.left:i.right-t.left;e>o&&(o=e,this.minWidth=s,this.minWidthFrom=l,this.minWidthTo=c)}}}l=c+t.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?Ni.RTL:Ni.LTR}measureTextSize(){for(let s of this.children)if(s instanceof ai){let t=s.measureTextSize();if(t)return t}let t,e,i,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let s=pe(n.firstChild)[0];t=n.getBoundingClientRect().height,e=s?s.width/27:7,i=s?s.height:t,n.remove()})),{lineHeight:t,charWidth:e,textHeight:i}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new We(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,n=0;;n++){let s=n==e.viewports.length?null:e.viewports[n],r=s?s.from-1:this.length;if(r>i){let n=(e.lineBlockAt(r).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(di.replace({widget:new un(n),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!s)break;i=s.to+1}return di.set(t)}updateDeco(){let t=this.view.state.facet(Ui).map(((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t));for(let e=t.length;ei.anchor?-1:1);if(!n)return;!i.empty&&(e=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(n={left:Math.min(n.left,e.left),top:Math.min(n.top,e.top),right:Math.max(n.right,e.right),bottom:Math.max(n.bottom,e.bottom)});let s=Ii(this.view),r={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom},{offsetWidth:o,offsetHeight:a}=this.view.scrollDOM;!function(t,e,i,n,s,r,o,a){let l=t.ownerDocument,h=l.defaultView||window;for(let c=t,d=!1;c&&!d;)if(1==c.nodeType){let t,f=c==l.body,u=1,p=1;if(f)t=be(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();({scaleX:u,scaleY:p}=Se(c,e)),t={left:e.left,right:e.left+c.clientWidth*u,top:e.top,bottom:e.top+c.clientHeight*p}}let O=0,g=0;if("nearest"==s)e.top0&&e.bottom>t.bottom+g&&(g=e.bottom-t.bottom+g+o)):e.bottom>t.bottom&&(g=e.bottom-t.bottom+o,i<0&&e.top-g0&&e.right>t.right+O&&(O=e.right-t.right+O+r)):e.right>t.right&&(O=e.right-t.right+r,i<0&&e.left0))break;n=n.childNodes[s-1],s=ve(n)}if(i>=0)for(let n=t,s=e;;){if(3==n.nodeType)return{node:n,offset:s};if(!(1==n.nodeType&&s=0))break;n=n.childNodes[s],s=0}return null}let gn=class{constructor(){this.changes=[]}compareRange(t,e){gi(t,e,this.changes)}comparePoint(t,e){gi(t,e,this.changes)}};function mn(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function vn(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function wn(t,e){return t.tope.top+1}function bn(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Qn(t,e,i){let n,s,r,o,a,l,h,c,d=!1;for(let u=t.firstChild;u;u=u.nextSibling){let t=pe(u);for(let f=0;fg||o==g&&r>O){n=u,s=p,r=O,o=g;let a=g?i0?f0)}0==O?i>p.bottom&&(!h||h.bottomp.top)&&(l=u,c=p):h&&wn(h,p)?h=Sn(h,p.bottom):c&&wn(c,p)&&(c=bn(c,p.top))}}if(h&&h.bottom>=i?(n=a,s=h):c&&c.top<=i&&(n=l,s=c),!n)return{node:t,offset:0};let f=Math.max(s.left,Math.min(s.right,e));return 3==n.nodeType?yn(n,f,i):d&&"false"!=n.contentEditable?Qn(n,f,i):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,n)+(e>=(s.left+s.right)/2?1:0)}}function yn(t,e,i){let n=t.nodeValue.length,s=-1,r=1e9,o=0;for(let a=0;ai?h.top-i:i-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&c=(h.left+h.right)/2,n=i;if(Ne.chrome||Ne.gecko){$e(t,a).getBoundingClientRect().left==h.right&&(n=!i)}if(c<=0)return{node:t,offset:a+(n?1:0)};s=a+(n?1:0),r=c}}}return{node:t,offset:s>-1?s:o>0?t.nodeValue.length:0}}function xn(t,e,i,n=-1){var s,r;let o,a=t.contentDOM.getBoundingClientRect(),l=a.top+t.viewState.paddingTop,{docHeight:h}=t.viewState,{x:c,y:d}=e,f=d-l;if(f<0)return 0;if(f>h)return t.state.doc.length;for(let b=t.viewState.heightOracle.textHeight/2,S=!1;o=t.elementAtHeight(f),o.type!=ci.Text;)for(;f=n>0?o.bottom+b:o.top-b,!(f>=0&&f<=h);){if(S)return i?null:0;S=!0,n=-n}d=l+f;let u=o.from;if(ut.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:kn(t,a,o,c,d);let p=t.dom.ownerDocument,O=t.root.elementFromPoint?t.root:p,g=O.elementFromPoint(c,d);g&&!t.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=O.elementFromPoint(c,d),g&&!t.contentDOM.contains(g)&&(g=null));let m,v=-1;if(g&&0!=(null===(s=t.docView.nearest(g))||void 0===s?void 0:s.isEditable))if(p.caretPositionFromPoint){let t=p.caretPositionFromPoint(c,d);t&&({offsetNode:m,offset:v}=t)}else if(p.caretRangeFromPoint){let e=p.caretRangeFromPoint(c,d);e&&(({startContainer:m,startOffset:v}=e),(!t.contentDOM.contains(m)||Ne.safari&&function(t,e,i){let n;if(3!=t.nodeType||e!=(n=t.nodeValue.length))return!1;for(let s=t.nextSibling;s;s=s.nextSibling)if(1!=s.nodeType||"BR"!=s.nodeName)return!1;return $e(t,n-1,n).getBoundingClientRect().left>i}(m,v,c)||Ne.chrome&&function(t,e,i){if(0!=e)return!1;for(let s=t;;){let t=s.parentNode;if(!t||1!=t.nodeType||t.firstChild!=s)return!1;if(t.classList.contains("cm-line"))break;s=t}let n=1==t.nodeType?t.getBoundingClientRect():$e(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-n.left>5}(m,v,c))&&(m=void 0))}if(!m||!t.docView.dom.contains(m)){let e=ai.find(t.docView,u);if(!e)return f>o.top+o.height/2?o.to:o.from;({node:m,offset:v}=Qn(e.dom,c,d))}let w=t.docView.nearest(m);if(!w)return null;if(w.isWidget&&1==(null===(r=w.dom)||void 0===r?void 0:r.nodeType)){let t=w.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;r+=Math.floor((s-i.top-.5*(t.defaultLineHeight-e))/e)*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(i.from,i.to);return i.from+Jt(o,r,t.state.tabSize)}function $n(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type))for(let n of i.type)if(n.to>e||n.to==e&&(n.to==i.to||n.type==ci.Text))return n;return i}function Pn(t,e,i,n){let s=t.state.doc.lineAt(e.head),r=t.bidiSpans(s),o=t.textDirectionAt(s.from);for(let a=e,l=null;;){let e=dn(s,r,o,a,i),h=cn;if(!e){if(s.number==(i?t.state.doc.lines:1))return a;h="\n",s=t.state.doc.line(s.number+(i?1:-1)),r=t.bidiSpans(s),e=q.cursor(i?s.from:s.to)}if(l){if(!l(h))return a}else{if(!n)return e;l=n(h)}a=e}}function Zn(t,e,i){for(;;){let n=0;for(let s of t)s.between(e-1,e+1,((t,s,r)=>{if(e>t&&ee(t))),i.from,e.head>i.from?-1:1);return n==i.from?i:q.cursor(n,nnull)),Ne.gecko&&(e=t.contentDOM.ownerDocument,is.has(e)||(is.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{}))))}handleEvent(t){(function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i,n=e.target;n!=t.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=Xe.get(n))&&i.ignoreEvent(e))return!1;return!0})(this.view,t)&&!this.ignoreDuringComposition(t)&&("keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t))}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=function(t){let e=Object.create(null);function i(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let n of t){let t=n.spec;if(t&&t.domEventHandlers)for(let e in t.domEventHandlers){let s=t.domEventHandlers[e];s&&i(e).handlers.push(Tn(n.value,s))}if(t&&t.domEventObservers)for(let e in t.domEventObservers){let s=t.domEventObservers[e];s&&i(e).observers.push(Tn(n.value,s))}}for(let n in Dn)i(n).handlers.push(Dn[n]);for(let n in jn)i(n).observers.push(jn[n]);return e}(t),i=this.handlers,n=this.view.contentDOM;for(let s in e)if("scroll"!=s){let t=!e[s].handlers.length,r=i[s];r&&t!=!r.handlers.length&&(n.removeEventListener(s,this.handleEvent),r=null),r||n.addEventListener(s,this.handleEvent,{passive:t})}for(let s in i)"scroll"==s||e[s]||n.removeEventListener(s,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))&&!t.ctrlKey||An.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,Pe(this.view.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(Ne.safari&&!Ne.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Tn(t,e){return(i,n)=>{try{return e.call(t,n,i)}catch(s){Ti(i.state,s)}}}const Xn=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],An="dthko",Wn=[16,17,18,20,91,92,224,225];function Rn(t){return.7*Math.max(0,t)+8}class Mn{constructor(t,e,i,n){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(t){let e=t.ownerDocument;for(let i=t.parentNode;i&&i!=e.body;)if(1==i.nodeType){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else{if(11!=i.nodeType)break;i=i.host}return null}(t.contentDOM),this.atoms=t.state.facet(Ei).map((e=>e(t)));let s=t.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(At.allowMultipleSelections)&&function(t,e){let i=t.state.facet(bi);return i.length?i[0](e):Ne.mac?e.metaKey:e.ctrlKey}(t,e),this.dragging=!(!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let n=de(t.root);if(!n||0==n.rangeCount)return!0;let s=n.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&t.top<=e.clientY&&t.bottom>=e.clientY)return!0}return!1}(t,e)||1!=Fn(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e,i,n;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(i=this.startEvent,n=t,Math.max(Math.abs(i.clientX-n.clientX),Math.abs(i.clientY-n.clientY))<10))return;this.select(this.lastEvent=t);let s=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=Ii(this.view);t.clientX-a.left<=o.left+6?s=-Rn(o.left-t.clientX):t.clientX+a.right>=o.right-6&&(s=Rn(t.clientX-o.right)),t.clientY-a.top<=o.top+6?r=-Rn(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-6&&(r=Rn(t.clientY-o.bottom)),this.setScrollSpeed(s,r)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;ithis.select(this.lastEvent)),20)}}const Dn=Object.create(null),jn=Object.create(null),Un=Ne.ie&&Ne.ie_version<15||Ne.ios&&Ne.webkit_version<604;function En(t,e){let i,{state:n}=t,s=1,r=n.toText(e),o=r.lines==n.selection.ranges.length;if(null!=Jn&&n.selection.ranges.every((t=>t.empty))&&Jn==r.toString()){let t=-1;i=n.changeByRange((i=>{let a=n.doc.lineAt(i.from);if(a.from==t)return{range:i};t=a.from;let l=n.toText((o?r.line(s++).text:e)+n.lineBreak);return{changes:{from:a.from,insert:l},range:q.cursor(i.from+l.length)}}))}else i=o?n.changeByRange((t=>{let e=r.line(s++);return{changes:{from:t.from,to:t.to,insert:e.text},range:q.cursor(t.from+e.length)}})):n.replaceSelection(r);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function zn(t,e,i,n){if(1==n)return q.cursor(e,i);if(2==n)return function(t,e,i=1){let n=t.charCategorizer(e),s=t.doc.lineAt(e),r=e-s.from;if(0==s.length)return q.cursor(e);0==r?i=1:r==s.length&&(i=-1);let o=r,a=r;i<0?o=y(s.text,r,!1):a=y(s.text,r);let l=n(s.text.slice(o,a));for(;o>0;){let t=y(s.text,o,!1);if(n(s.text.slice(t,o))!=l)break;o=t}for(;a{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},Dn.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&(t.inputState.lastEscPress=Date.now()),!1),jn.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},jn.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},Dn.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let n of t.state.facet(Qi))if(i=n(t,e),i)break;if(i||0!=e.button||(i=function(t,e){let i=Vn(t,e),n=Fn(e),s=t.state.selection;return{update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),s=s.map(t.changes))},get(e,r,o){let a,l=Vn(t,e),h=zn(t,l.pos,l.bias,n);if(i.pos!=l.pos&&!r){let e=zn(t,i.pos,i.bias,n),s=Math.min(e.from,h.from),r=Math.max(e.to,h.to);h=s1&&(a=function(t,e){for(let i=0;i=e)return q.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}(s,l.pos))?a:o?s.addRange(h):q.create([h])}}}(t,e)),i){let n=!t.hasFocus;t.inputState.startMouseSelection(new Mn(t,e,i,n)),n&&t.observer.ignore((()=>ke(t.contentDOM)));let s=t.inputState.mouseSelection;if(s)return s.start(e),!1===s.dragging}return!1};let qn=(t,e)=>t>=e.top&&t<=e.bottom,_n=(t,e,i)=>qn(e,i)&&t>=i.left&&t<=i.right;function In(t,e,i,n){let s=ai.find(t.docView,e);if(!s)return 1;let r=e-s.posAtStart;if(0==r)return 1;if(r==s.length)return-1;let o=s.coordsAt(r,-1);if(o&&_n(i,n,o))return-1;let a=s.coordsAt(r,1);return a&&_n(i,n,a)?1:o&&qn(n,o)?-1:1}function Vn(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:In(t,i,e.clientX,e.clientY)}}const Bn=Ne.ie&&Ne.ie_version<=11;let Gn=null,Nn=0,Ln=0;function Fn(t){if(!Bn)return t.detail;let e=Gn,i=Ln;return Gn=t,Ln=Date.now(),Nn=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Nn+1)%3:1}function Hn(t,e,i,n){if(!i)return;let s=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=t.inputState,o=n&&r&&function(t,e){let i=t.state.facet(Si);return i.length?i[0](e):Ne.mac?!e.altKey:!e.ctrlKey}(t,e)?{from:r.from,to:r.to}:null,a={from:s,insert:i},l=t.state.changes(o?[o,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(s,-1),head:l.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Dn.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let n=t.docView.nearest(e.target);if(n&&n.isWidget){let t=n.posAtStart,e=t+n.length;(t>=i.to||e<=i.from)&&(i=q.range(t,e))}}let{inputState:n}=t;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=i,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove"),!1},Dn.dragend=t=>(t.inputState.draggedContent=null,!1),Dn.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let n=Array(i.length),s=0,r=()=>{++s==i.length&&Hn(t,e,n.filter((t=>null!=t)).join(t.state.lineBreak),!1)};for(let t=0;t{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(n[t]=e.result),r()},e.readAsText(i[t])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return Hn(t,e,i,!0),!0}return!1},Dn.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=Un?null:e.clipboardData;return i?(En(t,i.getData("text/plain")||i.getData("text/uri-text")),!0):(function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((()=>{t.focus(),i.remove(),En(t,i.value)}),50)}(t),!1)};let Jn=null;Dn.copy=Dn.cut=(t,e)=>{let{text:i,ranges:n,linewise:s}=function(t){let e=[],i=[],n=!1;for(let s of t.selection.ranges)s.empty||(e.push(t.sliceDoc(s.from,s.to)),i.push(s));if(!e.length){let s=-1;for(let{from:n}of t.selection.ranges){let r=t.doc.lineAt(n);r.number>s&&(e.push(r.text),i.push({from:r.from,to:Math.min(t.doc.length,r.to+1)})),s=r.number}n=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:n}}(t.state);if(!i&&!s)return!1;Jn=s?i:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let r=Un?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",i),!0):(function(t,e){let i=t.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout((()=>{n.remove(),t.focus()}),50)}(t,i),!1)};const Kn=vt.define();function ts(t,e){let i=[];for(let n of t.facet($i)){let s=n(t,e);s&&i.push(s)}return i?t.update({effects:i,annotations:Kn.of(!0)}):null}function es(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=ts(t.state,e);i?t.dispatch(i):t.update([])}}),10)}jn.focus=t=>{t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),es(t)},jn.blur=t=>{t.observer.clearSelectionRange(),es(t)},jn.compositionstart=jn.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},jn.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ne.chrome&&Ne.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then((()=>t.observer.flush())):setTimeout((()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])}),50)},jn.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},Dn.beforeinput=(t,e)=>{var i;let n;if(Ne.chrome&&Ne.android&&(n=Xn.find((t=>t.inputType==e.inputType)))&&(t.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let e=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout((()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())}),100)}return!1};const is=new Set;const ns=["pre-wrap","normal","pre-line","break-spaces"];class ss{constructor(t){this.lineWrapping=t,this.doc=h.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return ns.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=e,this.charWidth=i,this.textHeight=n,this.lineLength=s,a){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>ls&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return hs.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,n){let s=this,r=i.doc;for(let o=n.length-1;o>=0;o--){let{fromA:a,toA:l,fromB:h,toB:c}=n[o],d=s.lineAt(a,as.ByPosNoHeight,i.setDoc(e),0,0),f=d.to>=l?d:s.lineAt(l,as.ByPosNoHeight,i,0,0);for(c+=f.to-l,l=f.to;o>0&&d.from<=n[o-1].toA;)a=n[o-1].fromA,h=n[o-1].fromB,o--,a2*s){let s=t[e-1];s.break?t.splice(--e,1,s.left,null,s.right):t.splice(--e,1,s.left,s.right),i+=1+s.break,n-=s.size}else{if(!(s>2*n))break;{let e=t[i];e.break?t.splice(i,1,e.left,null,e.right):t.splice(i,1,e.left,e.right),i+=2+e.break,s-=e.size}}else if(n=s&&r(this.blockAt(0,i,n,s))}updateHeight(t,e=0,i=!1,n){return n&&n.from<=e&&n.more&&this.setHeight(t,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ds extends cs{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,n){return new os(n,this.length,i,this.height,this.breaks)}replace(t,e,i){let n=i[0];return 1==i.length&&(n instanceof ds||n instanceof fs&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof fs?n=new ds(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):hs.of(i)}updateHeight(t,e=0,i=!1,n){return n&&n.from<=e&&n.more?this.setHeight(t,n.heights[n.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class fs extends hs{constructor(t){super(t,0)}heightMetrics(t,e){let i,n=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number,r=s-n+1,o=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*r);i=e/r,this.length>r+1&&(o=(this.height-e)/(this.length-r-1))}else i=this.height/r;return{firstLine:n,lastLine:s,perLine:i,perChar:o}}blockAt(t,e,i,n){let{firstLine:s,lastLine:r,perLine:o,perChar:a}=this.heightMetrics(e,n);if(e.lineWrapping){let s=n+Math.round(Math.max(0,Math.min(1,(t-i)/this.height))*this.length),r=e.doc.lineAt(s),l=o+r.length*a,h=Math.max(i,t-l/2);return new os(r.from,r.length,h,l,0)}{let n=Math.max(0,Math.min(r-s,Math.floor((t-i)/o))),{from:a,length:l}=e.doc.line(s+n);return new os(a,l,i+o*n,o,0)}}lineAt(t,e,i,n,s){if(e==as.ByHeight)return this.blockAt(t,i,n,s);if(e==as.ByPosNoHeight){let{from:e,to:n}=i.doc.lineAt(t);return new os(e,n-e,0,0,0)}let{firstLine:r,perLine:o,perChar:a}=this.heightMetrics(i,s),l=i.doc.lineAt(t),h=o+l.length*a,c=l.number-r,d=n+o*c+a*(l.from-s-c);return new os(l.from,l.length,Math.max(n,Math.min(d,n+this.height-h)),h,0)}forEachLine(t,e,i,n,s,r){t=Math.max(t,s),e=Math.min(e,s+this.length);let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(i,s);for(let h=t,c=n;h<=e;){let e=i.doc.lineAt(h);if(h==t){let i=e.number-o;c+=a*i+l*(t-s-i)}let n=a+l*e.length;r(new os(e.from,e.length,c,n,0)),c+=n,h=e.to+1}}replace(t,e,i){let n=this.length-e;if(n>0){let t=i[i.length-1];t instanceof fs?i[i.length-1]=new fs(t.length+n):i.push(null,new fs(n-1))}if(t>0){let e=i[0];e instanceof fs?i[0]=new fs(t+e.length):i.unshift(new fs(t-1),null)}return hs.of(i)}decomposeLeft(t,e){e.push(new fs(t-1),null)}decomposeRight(t,e){e.push(null,new fs(this.length-t-1))}updateHeight(t,e=0,i=!1,n){let s=e+this.length;if(n&&n.from<=e+this.length&&n.more){let i=[],r=Math.max(e,n.from),o=-1;for(n.from>e&&i.push(new fs(n.from-e-1).updateHeight(t,e));r<=s&&n.more;){let e=t.doc.lineAt(r).length;i.length&&i.push(null);let s=n.heights[n.index++];-1==o?o=s:Math.abs(s-o)>=ls&&(o=-2);let a=new ds(e,s);a.outdated=!1,i.push(a),r+=e+1}r<=s&&i.push(null,new fs(s-r).updateHeight(t,r));let a=hs.of(i);return(o<0||Math.abs(a.height-this.height)>=ls||Math.abs(o-this.heightMetrics(t,e).perLine)>=ls)&&(t.heightChanged=!0),a}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class us extends hs{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,n){let s=i+this.left.height;return to))return l;let h=e==as.ByPosNoHeight?as.ByPosNoHeight:as.ByPos;return a?l.join(this.right.lineAt(o,h,i,r,o)):this.left.lineAt(o,h,i,n,s).join(l)}forEachLine(t,e,i,n,s,r){let o=n+this.left.height,a=s+this.left.length+this.break;if(this.break)t=a&&this.right.forEachLine(t,e,i,o,a,r);else{let l=this.lineAt(a,as.ByPos,i,n,s);t=t&&l.from<=e&&r(l),e>l.to&&this.right.forEachLine(l.to+1,e,i,o,a,r)}}replace(t,e,i){let n=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-n,e-n,i));let s=[];t>0&&this.decomposeLeft(t,s);let r=s.length;for(let o of i)s.push(o);if(t>0&&ps(s,r-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,n=i+this.break;if(t>=n)return this.right.decomposeRight(t-n,e);t2*e.size||e.size>2*t.size?hs.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,n){let{left:s,right:r}=this,o=e+s.length+this.break,a=null;return n&&n.from<=e+s.length&&n.more?a=s=s.updateHeight(t,e,i,n):s.updateHeight(t,e,i),n&&n.from<=o+r.length&&n.more?a=r=r.updateHeight(t,o,i,n):r.updateHeight(t,o,i),a?this.balanced(s,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function ps(t,e){let i,n;null==t[e]&&(i=t[e-1])instanceof fs&&(n=t[e+1])instanceof fs&&t.splice(e-1,3,new fs(i.length+1+n.length))}class Os{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof ds?i.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new ds(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(n,s,r)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new ds(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new fs(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof ds)return t;let e=new ds(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,t),n.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof ds||this.isCovered?(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&"visible"!=i.overflow){let i=e.getBoundingClientRect();r=Math.max(r,i.left),o=Math.min(o,i.right),a=Math.max(a,i.top),l=h==t.parentNode?i.bottom:Math.min(l,i.bottom)}h="absolute"==i.position||"fixed"==i.position?e.offsetParent:e.parentNode}else{if(11!=h.nodeType)break;h=h.host}return{left:r-i.left,right:Math.max(r,o)-i.left,top:a-(i.top+e),bottom:Math.max(a,l)-(i.top+e)}}function vs(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class ws{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i"function"!=typeof t&&"cm-lineWrapping"==t.class));this.heightOracle=new ss(e),this.stateDeco=t.facet(Ui).filter((t=>"function"!=typeof t)),this.heightMap=hs.empty().applyChanges(this.stateDeco,h.empty,this.heightOracle.setDoc(t.doc),[new Bi(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=di.set(this.lineGaps.map((t=>t.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let n=i?e.head:e.anchor;if(!t.some((({from:t,to:e})=>n>=t&&n<=e))){let{from:e,to:i}=this.lineBlockAt(n);t.push(new Qs(e,i))}}this.viewports=t.sort(((t,e)=>t.from-e.from)),this.scaler=this.heightMap.height<=7e6?$s:new Ps(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(t=>{this.viewportLines.push(1==this.scaler.scale?t:Zs(t,this.scaler))}))}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ui).filter((t=>"function"!=typeof t));let n=t.changedRanges,s=Bi.extendWithRanges(n,function(t,e,i){let n=new gs;return Ut.compare(t,e,i,n,0),n.changes}(i,this.stateDeco,t?t.changes:W.empty(this.state.doc.length))),r=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=r&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=s.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));let l=!t.changes.empty||2&t.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Zi)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),n=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?Ni.RTL:Ni.LTR;let r=this.heightOracle.mustRefreshForWrapping(s),o=e.getBoundingClientRect(),a=r||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let l=0,c=0;if(o.width&&o.height){let{scaleX:t,scaleY:i}=Se(e,o);this.scaleX==t&&this.scaleY==i||(this.scaleX=t,this.scaleY=i,l|=8,r=a=!0)}let d=(parseInt(i.paddingTop)||0)*this.scaleY,f=(parseInt(i.paddingBottom)||0)*this.scaleY;this.paddingTop==d&&this.paddingBottom==f||(this.paddingTop=d,this.paddingBottom=f,l|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(n.lineWrapping&&(a=!0),this.editorWidth=t.scrollDOM.clientWidth,l|=8);let u=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=u&&(this.scrollAnchorHeight=-1,this.scrollTop=u),this.scrolledToBottom=Ce(t.scrollDOM);let p=(this.printing?vs:ms)(e,this.paddingTop),O=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let v=o.width;if(this.contentDOMWidth==v&&this.editorHeight==t.scrollDOM.clientHeight||(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,l|=8),a){let e=t.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(e)&&(r=!0),r||n.lineWrapping&&Math.abs(v-this.contentDOMWidth)>n.charWidth){let{lineHeight:i,charWidth:o,textHeight:a}=t.docView.measureTextSize();r=i>0&&n.refresh(s,i,o,a,v/o,e),r&&(t.docView.minWidth=0,l|=8)}O>0&&g>0?c=Math.max(O,g):O<0&&g<0&&(c=Math.min(O,g)),n.heightChanged=!1;for(let i of this.viewports){let s=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(r?hs.empty().applyChanges(this.stateDeco,h.empty,this.heightOracle,[new Bi(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(n,0,r,new rs(i.from,s))}n.heightChanged&&(l|=2)}let w=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return w&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&l||w)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,t)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),n=this.heightMap,s=this.heightOracle,{visibleTop:r,visibleBottom:o}=this,a=new Qs(n.lineAt(r-1e3*i,as.ByHeight,s,0,0).from,n.lineAt(o+1e3*(1-i),as.ByHeight,s,0,0).to);if(e){let{head:t}=e.range;if(ta.to){let i,r=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=n.lineAt(t,as.ByPos,s,0,0);i="center"==e.y?(o.top+o.bottom)/2-r/2:"start"==e.y||"nearest"==e.y&&t=o+Math.max(10,Math.min(i,250)))&&n>r-2e3&&s>1,r=n<<1;if(this.defaultTextDirection!=Ni.LTR&&!i)return[];let o=[],a=(n,r,l,h)=>{if(r-nn&&tt.from>=l.from&&t.to<=l.to&&Math.abs(t.from-n)t.frome))));if(!f){if(rt.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(q.cursor(r),!1,!0).head;t>n&&(r=t)}f=new ws(n,r,this.gapSize(l,n,r,h))}o.push(f)};for(let l of this.viewportLines){if(l.lengthl.from&&a(l.from,e,l,t),st.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];Ut.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some(((t,i)=>t.from!=e[i].from||t.to!=e[i].to));return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||Zs(this.heightMap.lineAt(t,as.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return Zs(this.heightMap.lineAt(this.scaler.fromDOM(t),as.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Zs(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Qs{constructor(t,e){this.from=t,this.to=e}}function ys(t,e,i){let n=[],s=t,r=0;return Ut.spans(i,t,e,{span(){},point(t,e){t>s&&(n.push({from:s,to:t}),r+=t-s),s=e}},20),s=1)return e[e.length-1].to;let n=Math.floor(t*i);for(let s=0;;s++){let{from:t,to:i}=e[s],r=i-t;if(n<=r)return t+n;n-=r}}function ks(t,e){let i=0;for(let{from:n,to:s}of t.ranges){if(e<=s){i+=e-n;break}i+=s-n}return i/t.total}const $s={toDOM:t=>t,fromDOM:t=>t,scale:1};class Ps{constructor(t,e,i){let n=0,s=0,r=0;this.viewports=i.map((({from:i,to:s})=>{let r=e.lineAt(i,as.ByPos,t,0,0).top,o=e.lineAt(s,as.ByPos,t,0,0).bottom;return n+=o-r,{from:i,to:s,top:r,bottom:o,domTop:0,domBottom:0}})),this.scale=(7e6-n)/(e.height-n);for(let o of this.viewports)o.domTop=r+(o.top-s)*this.scale,r=o.domBottom=o.domTop+(o.bottom-o.top),s=o.bottom}toDOM(t){for(let e=0,i=0,n=0;;e++){let s=eZs(t,e))):t._content)}const Cs=V.define({combine:t=>t.join(" ")}),Ys=V.define({combine:t=>t.indexOf(!0)>-1}),Ts=ie.newName(),Xs=ie.newName(),As=ie.newName(),Ws={"&light":"."+Xs,"&dark":"."+As};function Rs(t,e,i){return new ie(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,(e=>{if("&"==e)return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]})):t+" "+e})}const Ms=Rs("."+Ts,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Ws),Ds="￿";class js{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(At.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Ds}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let n=t;;){this.findPointBefore(i,n);let t=this.text.length;this.readNode(n);let s=n.nextSibling;if(s==e)break;let r=Xe.get(n),o=Xe.get(s);(r&&o?r.breakAfter:(r?r.breakAfter:Es(n))||Es(s)&&("BR"!=n.nodeName||n.cmIgnore)&&this.text.length>t)&&this.lineBreak(),n=s}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let s,r=-1,o=1;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(s=n.exec(e))&&(r=s.index,o=s[0].length),this.append(e.slice(i,r<0?e.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=o-1);i=r+o}}readNode(t){if(t.cmIgnore)return;let e=Xe.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(Us(t,i.node,i.offset)?e:0))}}function Us(t,e,i){for(;;){if(!e||i-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=s||r?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:n,focusNode:s,focusOffset:r}=t.observer.selectionRange;i&&(e.push(new zs(i,n)),s==i&&r==n||e.push(new zs(s,r)));return e}(t),i=new js(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,n=2==t.length?t[1].pos:i;return i>-1&&n>-1?q.single(i+e,n+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,i=s&&s.node==e.focusNode&&s.offset==e.focusOffset||!fe(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),n=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!fe(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);this.newSel=q.single(n,i)}}}function _s(t,e){let i,{newSel:n}=e,s=t.state.selection.main,r=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:n,to:o}=e.bounds,a=s.from,l=null;(8===r||Ne.android&&e.text.length0&&a>0&&t.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if("end"==n){i-=o+Math.max(0,r-Math.min(o,a))-r}if(o=o?r-i:0,a=r+(a-o),o=r}else if(a=a?r-i:0,o=r+(o-a),a=r}return{from:r,toA:o,toB:a}}(t.state.doc.sliceString(n,o,Ds),e.text,a-n,l);c&&(Ne.chrome&&13==r&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==Ds+Ds&&c.toB--,i={from:n+c.from,to:n+c.toA,insert:h.of(e.text.slice(c.from,c.toB).split(Ds))})}else n&&(!t.hasFocus&&t.state.facet(Xi)||n.main.eq(s))&&(n=null);if(!i&&!n)return!1;if(!i&&e.typeOver&&!s.empty&&n&&n.main.empty?i={from:s.from,to:s.to,insert:t.state.doc.slice(s.from,s.to)}:i&&i.from>=s.from&&i.to<=s.to&&(i.from!=s.from||i.to!=s.to)&&s.to-s.from-(i.to-i.from)<=4?i={from:s.from,to:s.to,insert:t.state.doc.slice(s.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,s.to))}:(Ne.mac||Ne.android)&&i&&i.from==i.to&&i.from==s.head-1&&/^\. ?$/.test(i.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(n&&2==i.insert.length&&(n=q.single(n.main.anchor-1,n.main.head-1)),i={from:s.from,to:s.to,insert:h.of([" "])}):Ne.chrome&&i&&i.from==i.to&&i.from==s.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(n&&(n=q.single(n.main.anchor-1,n.main.head-1)),i={from:s.from,to:s.to,insert:h.of([" "])}),i){if(Ne.ios&&t.inputState.flushIOSKey())return!0;if(Ne.android&&(i.from==s.from&&i.to==s.to&&1==i.insert.length&&2==i.insert.lines&&Pe(t.contentDOM,"Enter",13)||(i.from==s.from-1&&i.to==s.to&&0==i.insert.length||8==r&&i.insert.lengths.head)&&Pe(t.contentDOM,"Backspace",8)||i.from==s.from&&i.to==s.to+1&&0==i.insert.length&&Pe(t.contentDOM,"Delete",46)))return!0;let e,o=i.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a=()=>e||(e=function(t,e,i){let n,s=t.state,r=s.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=r.frome.to?s.sliceDoc(e.to,r.to):"";n=s.replaceSelection(t.state.toText(i+e.insert.sliceString(0,void 0,t.state.lineBreak)+o))}else{let o=s.changes(e),a=i&&i.main.to<=o.newLength?i.main:void 0;if(s.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let l,h=t.state.sliceDoc(e.from,e.to),c=i&&pn(t,i.main.head);if(c){let t=e.insert.length-(e.to-e.from);l={from:c.from,to:c.to-t}}else l=t.state.doc.lineAt(r.head);let d=r.to-e.to,f=r.to-r.from;n=s.changeByRange((i=>{if(i.from==r.from&&i.to==r.to)return{changes:o,range:a||i.map(o)};let n=i.to-d,c=n-h.length;if(i.to-i.from!=f||t.state.sliceDoc(c,n)!=h||i.to>=l.from&&i.from<=l.to)return{range:i};let u=s.changes({from:c,to:n,insert:e.insert}),p=i.to-r.to;return{changes:u,range:a?q.range(Math.max(0,a.anchor+p),Math.max(0,a.head+p)):i.map(u)}}))}else n={changes:o,selection:a&&s.selection.replaceRange(a)}}let o="input.type";(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,o+=".compose",t.inputState.compositionFirstChange&&(o+=".start",t.inputState.compositionFirstChange=!1));return s.update(n,{userEvent:o,scrollIntoView:!0})}(t,i,n));return t.state.facet(ki).some((e=>e(t,i.from,i.to,o,a)))||t.dispatch(a()),!0}if(n&&!n.main.eq(s)){let e=!1,i="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),i=t.inputState.lastSelectionOrigin),t.dispatch({selection:n,scrollIntoView:e,userEvent:i}),!0}return!1}const Is={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Vs=Ne.ie&&Ne.ie_version<=11;class Bs{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Qe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);(Ne.ie&&Ne.ie_version<=11||Ne.ios&&t.composing)&&e.some((t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),Vs&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,i)=>e!=t[i])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(Xi)?i.root.activeElement!=this.dom:!ue(i.dom,n))return;let s=n.anchorNode&&i.docView.nearest(n.anchorNode);s&&s.ignoreEvent(t)?e||(this.selectionChanged=!1):(Ne.ie&&Ne.ie_version<=11||Ne.android&&Ne.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Oe(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=Ne.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function i(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),!e)return null;let n=e.startContainer,s=e.startOffset,r=e.endContainer,o=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);Oe(a.node,a.offset,r,o)&&([n,s,r,o]=[r,o,n,s]);return{anchorNode:n,anchorOffset:s,focusNode:r,focusOffset:o}}(this.view)||de(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=ue(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&Pe(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,n=!1;for(let s of t){let t=this.readMutation(s);t&&(t.typeOver&&(n=!0),-1==e?({from:e,to:i}=t):(e=Math.min(t.from,e),i=Math.max(t.to,i)))}return{from:e,to:i,typeOver:n}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),n=this.selectionChanged&&ue(this.dom,this.selectionRange);if(t<0&&!n)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new qs(this.view,t,e,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,n=_s(this.view,e);return this.view.state==i&&this.view.update([]),n}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let i=Gs(e,t.previousSibling||t.target.previousSibling,-1),n=Gs(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:n?e.posBefore(n):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Gs(t,e,i){for(;e;){let n=Xe.get(e);if(n&&n.parent==t)return n;let s=e.parentNode;e=s!=t.dom?s:i>0?e.nextSibling:e.previousSibling}return null}class Ns{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:e}=t;this.dispatchTransactions=t.dispatchTransactions||e&&(t=>t.forEach((t=>e(t,this))))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new Ss(t.state||At.create(t)),t.scrollTo&&t.scrollTo.is(Yi)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Wi).map((t=>new Mi(t)));for(let i of this.plugins)i.update(this);this.observer=new Bs(this),this.inputState=new Yn(this),this.inputState.ensureHandlers(this.plugins),this.docView=new fn(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let e=1==t.length&&t[0]instanceof Qt?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e,i=!1,n=!1,s=this.state;for(let f of t){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed)return void(this.viewState.state=s);let r=this.hasFocus,o=0,a=null;t.some((t=>t.annotation(Kn)))?(this.inputState.notifiedFocused=r,o=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=ts(s,r),a||(o=1));let l=this.observer.delayedAndroidKey,h=null;if(l?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(h=null)):this.observer.clear(),s.facet(At.phrases)!=this.state.facet(At.phrases))return this.setState(s);e=Gi.create(this,s,t),e.flags|=o;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(c&&(c=c.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;c=new Ci(t.empty?t:q.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(Yi)&&(c=t.value.clip(this.state))}this.viewState.update(e,c),this.bidiCache=Hs.update(this.bidiCache,e.changes),e.empty||(this.updatePlugins(e),this.inputState.update(e)),i=this.docView.update(e),this.state.facet(Vi)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(i,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(e.startState.facet(Cs)!=e.state.facet(Cs)&&(this.viewState.mustMeasureContent=!0),(i||n||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!e.empty)for(let f of this.state.facet(xi))try{f(e)}catch(d){Ti(this.state,d,"update listener")}(a||h)&&Promise.resolve().then((()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!_s(this,h)&&l.force&&Pe(this.contentDOM,l.key,l.keyCode)}))}setState(t){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=t);this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Ss(t),this.plugins=t.facet(Wi).map((t=>new Mi(t))),this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy(),this.docView=new fn(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Wi),i=t.state.facet(Wi);if(e!=i){let n=[];for(let s of i){let i=e.indexOf(s);if(i<0)n.push(new Mi(s));else{let e=this.plugins[i];e.mustUpdate=t,n.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=t;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,n=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:r}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(r<0)if(Ce(i))s=-1,r=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(n);s=t.from,r=t.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>5)break;let l=[];4&a||([this.measureRequests,l]=[l,this.measureRequests]);let h=l.map((t=>{try{return t.read(this)}catch(e){return Ti(this.state,e),Fs}})),c=Gi.create(this,this.state,[]),d=!1;c.flags|=a,e?e.flags|=a:e=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),d=this.docView.update(c));for(let t=0;t1||t<-1){n+=t,i.scrollTop=n/this.scaleY,r=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let a of this.state.facet(xi))a(e)}get themeClasses(){return Ts+" "+(this.state.facet(Ys)?As:Xs)+" "+this.state.facet(Cs)}updateAttrs(){let t=Js(this,Di,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Xi)?"true":"false",class:"cm-content",style:`${Ne.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),Js(this,ji,e);let i=this.observer.ignore((()=>{let i=ri(this.contentDOM,this.contentAttrs,e),n=ri(this.dom,this.editorAttrs,t);return i||n}));return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let t of i.effects)if(t.is(Ns.announce)){e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(Vi);let t=this.state.facet(Ns.cspNonce);ie.mount(this.root,this.styleModules.concat(Ms).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),t){if(this.measureRequests.indexOf(t)>-1)return;if(null!=t.key)for(let e=0;ee.spec==t))||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return Cn(this,t,Pn(this,t,e,i))}moveByGroup(t,e){return Cn(this,t,Pn(this,t,e,(e=>function(t,e,i){let n=t.state.charCategorizer(e),s=n(i);return t=>{let e=n(t);return s==Ct.Space&&(s=e),s==e}}(this,t.head,e))))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,n){let s=$n(t,e.head),r=n&&s.type==ci.Text&&(t.lineWrapping||s.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head):null;if(r){let e=t.dom.getBoundingClientRect(),n=t.textDirectionAt(s.from),o=t.posAtCoords({x:i==(n==Ni.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(null!=o)return q.cursor(o,i?-1:1)}return q.cursor(i?s.to:s.from,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return Cn(this,t,function(t,e,i,n){let s=e.head,r=i?1:-1;if(s==(i?t.state.doc.length:0))return q.cursor(s,e.assoc);let o,a=e.goalColumn,l=t.contentDOM.getBoundingClientRect(),h=t.coordsAtPos(s,e.assoc||-1),c=t.documentTop;if(h)null==a&&(a=h.left-l.left),o=r<0?h.top:h.bottom;else{let e=t.viewState.lineBlockAt(s);null==a&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(s-e.from))),o=(r<0?e.top:e.bottom)+c}let d=l.left+a,f=null!=n?n:t.viewState.heightOracle.textHeight>>1;for(let u=0;;u+=10){let e=o+(f+u)*r,i=xn(t,{x:d,y:e},!1,r);if(el.bottom||(r<0?is)){let n=t.docView.coordsForChar(i),s=!n||e0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Pi)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>Ls)return hn(t.length);let e,i=this.textDirectionAt(t.from);for(let s of this.bidiCache)if(s.from==t.from&&s.dir==i&&(s.fresh||rn(s.isolates,e=qi(this,t.from,t.to))))return s.order;e||(e=qi(this,t.from,t.to));let n=function(t,e,i){if(!t)return[new sn(0,0,e==Fi?1:0)];if(e==Li&&!i.length&&!nn.test(t))return hn(t.length);if(i.length)for(;t.length>on.length;)on[on.length]=256;let n=[],s=e==Li?0:1;return ln(t,s,s,i,0,t.length,n),n}(t.text,i,e);return this.bidiCache.push(new Hs(t.from,t.to,i,e,!0,n)),n}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Ne.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{ke(this.contentDOM),this.docView.updateSelection()}))}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return Yi.of(new Ci("number"==typeof t?q.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return Yi.of(new Ci(q.cursor(i.from),"start","start",i.top-t,e,!0))}static domEventHandlers(t){return Ri.define((()=>({})),{eventHandlers:t})}static domEventObservers(t){return Ri.define((()=>({})),{eventObservers:t})}static theme(t,e){let i=ie.newName(),n=[Cs.of(i),Vi.of(Rs(`.${i}`,t))];return e&&e.dark&&n.push(Ys.of(!0)),n}static baseTheme(t){return st.lowest(Vi.of(Rs("."+Ts,t,Ws)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),n=i&&Xe.get(i)||Xe.get(t);return(null===(e=null==n?void 0:n.rootView)||void 0===e?void 0:e.view)||null}}Ns.styleModule=Vi,Ns.inputHandler=ki,Ns.focusChangeEffect=$i,Ns.perLineTextDirection=Pi,Ns.exceptionSink=yi,Ns.updateListener=xi,Ns.editable=Xi,Ns.mouseSelectionStyle=Qi,Ns.dragMovesSelection=Si,Ns.clickAddsSelectionRange=bi,Ns.decorations=Ui,Ns.atomicRanges=Ei,Ns.bidiIsolatedRanges=zi,Ns.scrollMargins=_i,Ns.darkTheme=Ys,Ns.cspNonce=V.define({combine:t=>t.length?t[0]:""}),Ns.contentAttributes=ji,Ns.editorAttributes=Di,Ns.lineWrapping=Ns.contentAttributes.of({class:"cm-lineWrapping"}),Ns.announce=St.define();const Ls=4096,Fs={};class Hs{constructor(t,e,i,n,s,r){this.from=t,this.to=e,this.dir=i,this.isolates=n,this.fresh=s,this.order=r}static update(t,e){if(e.empty&&!t.some((t=>t.fresh)))return t;let i=[],n=t.length?t[t.length-1].dir:Ni.LTR;for(let s=Math.max(0,t.length-10);s=0;s--){let e=n[s],r="function"==typeof e?e(t):e;r&&ii(r,i)}return i}const Ks=Ne.mac?"mac":Ne.windows?"win":Ne.linux?"linux":"key";function tr(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}const er=st.default(Ns.domEventHandlers({keydown:(t,e)=>ar(sr(e.state),t,e,"editor")})),ir=V.define({enables:er}),nr=new WeakMap;function sr(t){let e=t.facet(ir),i=nr.get(e);return i||nr.set(e,i=function(t,e=Ks){let i=Object.create(null),n=Object.create(null),s=(t,e)=>{let i=n[t];if(null==i)n[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},r=(t,n,r,o,a)=>{var l,h;let c=i[t]||(i[t]=Object.create(null)),d=n.split(/ (?!$)/).map((t=>function(t,e){const i=t.split(/-(?!$)/);let n,s,r,o,a=i[i.length-1];"Space"==a&&(a=" ");for(let l=0;l{let n=rr={view:e,prefix:i,scope:t};return setTimeout((()=>{rr==n&&(rr=null)}),or),!0}]})}let f=d.join(" ");s(f,!1);let u=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});r&&u.run.push(r),o&&(u.preventDefault=!0),a&&(u.stopPropagation=!0)};for(let o of t){let t=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let e in t)t[e].run.push(o.any)}let n=o[e]||o.key;if(n)for(let e of t)r(e,n,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(e,"Shift-"+n,o.shift,o.preventDefault,o.stopPropagation)}return i}(e.reduce(((t,e)=>t.concat(e)),[]))),i}let rr=null;const or=4e3;function ar(t,e,i,n){let s=function(t){var e=!(ae&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||le&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?oe:re)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(e),r=Y(Z(s,0))==s.length&&" "!=s,o="",a=!1,l=!1,h=!1;rr&&rr.view==i&&rr.scope==n&&(o=rr.prefix+" ",Wn.indexOf(e.keyCode)<0&&(l=!0,rr=null));let c,d,f=new Set,u=t=>{if(t){for(let n of t.run)if(!f.has(n)&&(f.add(n),n(i,e)))return t.stopPropagation&&(h=!0),!0;t.preventDefault&&(t.stopPropagation&&(h=!0),l=!0)}return!1},p=t[n];return p&&(u(p[o+tr(s,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ne.windows&&e.ctrlKey&&e.altKey)&&(c=re[e.keyCode])&&c!=s?(u(p[o+tr(c,e,!0)])||e.shiftKey&&(d=oe[e.keyCode])!=s&&d!=c&&u(p[o+tr(d,e,!1)]))&&(a=!0):r&&e.shiftKey&&u(p[o+tr(s,e,!0)])&&(a=!0),!a&&u(p._any)&&(a=!0)),l&&(a=!0),a&&h&&e.stopPropagation(),a}class lr{constructor(t,e,i,n,s){this.className=t,this.left=e,this.top=i,this.width=n,this.height=s}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let n=t.coordsAtPos(i.head,i.assoc||1);if(!n)return[];let s=hr(t);return[new lr(e,n.left-s.left,n.top-s.top,null,n.bottom-n.top)]}return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let n=Math.max(i.from,t.viewport.from),s=Math.min(i.to,t.viewport.to),r=t.textDirection==Ni.LTR,o=t.contentDOM,a=o.getBoundingClientRect(),l=hr(t),h=o.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),d=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=a.right-(c?parseInt(c.paddingRight):0),u=$n(t,n),p=$n(t,s),O=u.type==ci.Text?u:null,g=p.type==ci.Text?p:null;O&&(t.lineWrapping||u.widgetLineBreaks)&&(O=cr(t,n,O));g&&(t.lineWrapping||p.widgetLineBreaks)&&(g=cr(t,s,g));if(O&&g&&O.from==g.from)return v(w(i.from,i.to,O));{let e=O?w(i.from,null,O):b(u,!1),n=g?w(null,i.to,g):b(p,!0),s=[];return(O||u).to<(g||p).from-(O&&g?1:0)||u.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2h&&r.from=s)break;a>n&&l(Math.max(t,n),null==e&&t<=h,Math.min(a,s),null==i&&a>=c,o.dir)}if(n=r.to+1,n>=s)break}return 0==a.length&&l(h,null==e,c,null==i,t.textDirection),{top:s,bottom:o,horizontal:a}}function b(t,e){let i=a.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i)}}function hr(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ni.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function cr(t,e,i){let n=q.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(n,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(n,!0,!0).from),type:ci.Text}}class dr{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(fr)!=t.state.facet(fr)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let e=0,i=t.facet(fr);for(;e{return i=t,n=this.drawn[e],!(i.constructor==n.constructor&&i.eq(n));var i,n}))){let e=this.dom.firstChild,i=0;for(let n of t)n.update&&e&&n.constructor&&this.drawn[i].constructor&&n.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(n.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const fr=V.define();function ur(t){return[Ri.define((e=>new dr(e,t))),fr.of(t)]}const pr=!Ne.ios,Or=V.define({combine:t=>Wt(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function gr(t={}){return[Or.of(t),vr,br,Qr,Zi.of(!0)]}function mr(t){return t.startState.facet(Or)!=t.state.facet(Or)}const vr=ur({above:!0,markers(t){let{state:e}=t,i=e.facet(Or),n=[];for(let s of e.selection.ranges){let r=s==e.selection.main;if(s.empty?!r||pr:i.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",i=s.empty?s:q.cursor(s.head,s.head>s.anchor?-1:1);for(let s of lr.forRange(t,e,i))n.push(s)}}return n},update(t,e){t.transactions.some((t=>t.selection))&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=mr(t);return i&&wr(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){wr(e.state,t)},class:"cm-cursorLayer"});function wr(t,e){e.style.animationDuration=t.facet(Or).cursorBlinkRate+"ms"}const br=ur({above:!1,markers:t=>t.state.selection.ranges.map((e=>e.empty?[]:lr.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e))),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||mr(t),class:"cm-selectionLayer"}),Sr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};pr&&(Sr[".cm-line"].caretColor="transparent !important",Sr[".cm-content"]={caretColor:"transparent !important"});const Qr=st.highest(Ns.theme(Sr)),yr=St.define({map:(t,e)=>null==t?null:e.mapPos(t)}),xr=J.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce(((t,e)=>e.is(yr)?e.value:t),t))}),kr=Ri.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(xr);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(xr)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(xr),i=null!=e&&t.coordsAtPos(e);if(!i)return null;let n=t.scrollDOM.getBoundingClientRect();return{left:i.left-n.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-n.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/i+"px",this.cursor.style.height=t.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(xr)!=t&&this.view.dispatch({effects:yr.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function $r(t,e,i,n,s){e.lastIndex=0;for(let r,o=t.iterRange(i,n),a=i;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;r=e.exec(o.value);)s(a+r.index,r)}class Pr{constructor(t){const{regexp:e,decoration:i,decorate:n,boundary:s,maxLength:r=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,n)this.addMatch=(t,e,i,s)=>n(s,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,n,s)=>{let r=i(t,e,n);r&&s(n,n+t[0].length,r)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(t,e,n,s)=>s(n,n+t[0].length,i)}this.boundary=s,this.maxLength=r}createDeco(t){let e=new Et,i=e.add.bind(e);for(let{from:n,to:s}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let n=[];for(let{from:s,to:r}of i)s=Math.max(t.state.doc.lineAt(s).from,s-e),r=Math.min(t.state.doc.lineAt(r).to,r+e),n.length&&n[n.length-1].to>=s?n[n.length-1].to=r:n.push({from:s,to:r});return n}(t,this.maxLength))$r(t.state.doc,this.regexp,n,s,((e,n)=>this.addMatch(n,t,e,i)));return e.finish()}updateDeco(t,e){let i=1e9,n=-1;return t.docChanged&&t.changes.iterChanges(((e,s,r,o)=>{o>t.view.viewport.from&&r1e3?this.createDeco(t.view):n>-1?this.updateRange(t.view,e.map(t.changes),i,n):e}updateRange(t,e,i,n){for(let s of t.visibleRanges){let r=Math.max(s.from,i),o=Math.min(s.to,n);if(o>r){let i=t.state.doc.lineAt(r),n=i.toi.from;r--)if(this.boundary.test(i.text[r-1-i.from])){a=r;break}for(;oc.push(i.range(t,e));if(i==n)for(this.regexp.lastIndex=a-i.from;(h=this.regexp.exec(i.text))&&h.indexthis.addMatch(i,t,e,d)));e=e.update({filterFrom:a,filterTo:l,filter:(t,e)=>tl,add:c})}}return e}}const Zr=null!=/x/.unicode?"gu":"g",Cr=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Zr),Yr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Tr=null;const Xr=V.define({combine(t){let e=Wt(t,{render:null,specialChars:Cr,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==Tr&&"undefined"!=typeof document&&document.body){let e=document.body.style;Tr=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return Tr||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,Zr)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Zr)),e}});function Ar(t={}){return[Xr.of(t),Wr||(Wr=Ri.fromClass(class{constructor(t){this.view=t,this.decorations=di.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Xr)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Pr({regexp:t.specialChars,decoration:(e,i,n)=>{let{doc:s}=i.state,r=Z(e[0],0);if(9==r){let t=s.lineAt(n),e=i.state.tabSize,r=Ht(t.text,e,n-t.from);return di.replace({widget:new Mr((e-r%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=di.replace({widget:new Rr(t,r)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Xr);t.startState.facet(Xr)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let Wr=null;class Rr extends hi{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=function(t){return t>=32?"•":10==t?"␤":String.fromCharCode(9216+t)}(this.code),i=t.state.phrase("Control character")+" "+(Yr[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,i,e);if(n)return n;let s=document.createElement("span");return s.textContent=e,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class Mr extends hi{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const Dr=di.line({class:"cm-activeLine"}),jr=Ri.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let n of t.state.selection.ranges){let s=t.lineBlockAt(n.head);s.from>e&&(i.push(Dr.range(s.from)),e=s.from)}return di.set(i)}},{decorations:t=>t.decorations});class Ur extends hi{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let e=t.firstChild?pe(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode),n=we(e[0],"rtl"!=i.direction),s=parseInt(i.lineHeight);return n.bottom-n.top>1.5*s?{left:n.left,right:n.right,top:n.top,bottom:n.top+s}:n}ignoreEvent(){return!1}}const Er=2e3;function zr(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(i),s=i-n.from,r=s>Er?-1:s==n.length?function(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):Ht(n.text,t.state.tabSize,i-n.from);return{line:n.number,col:r,off:s}}function qr(t,e){let i=zr(t,e),n=t.state.selection;return i?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(i.line).from),s=t.state.doc.lineAt(e);i={line:s.number,col:i.col,off:Math.min(i.off,s.length)},n=n.map(t.changes)}},get(e,s,r){let o=zr(t,e);if(!o)return n;let a=function(t,e,i){let n=Math.min(e.line,i.line),s=Math.max(e.line,i.line),r=[];if(e.off>Er||i.off>Er||e.col<0||i.col<0){let o=Math.min(e.off,i.off),a=Math.max(e.off,i.off);for(let e=n;e<=s;e++){let i=t.doc.line(e);i.length<=a&&r.push(q.range(i.from+o,i.to+a))}}else{let o=Math.min(e.col,i.col),a=Math.max(e.col,i.col);for(let e=n;e<=s;e++){let i=t.doc.line(e),n=Jt(i.text,o,t.tabSize,!0);if(n<0)r.push(q.cursor(i.to));else{let e=Jt(i.text,a,t.tabSize);r.push(q.range(i.from+n,i.from+e))}}}return r}(t.state,i,o);return a.length?r?q.create(a.concat(n.ranges)):q.create(a):n}}:null}function _r(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return Ns.mouseSelectionStyle.of(((t,i)=>e(i)?qr(t,i):null))}const Ir={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},Vr={style:"cursor: crosshair"};function Br(t={}){let[e,i]=Ir[t.key||"Alt"],n=Ri.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[n,Ns.contentAttributes.of((t=>{var e;return(null===(e=t.plugin(n))||void 0===e?void 0:e.isDown)?Vr:null}))]}const Gr="-10000px";class Nr{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter((t=>t)),this.tooltipViews=this.tooltips.map(i)}update(t,e){var i;let n=t.state.facet(this.facet),s=n.filter((t=>t));if(n===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let r=[],o=e?[]:null;for(let a=0;ae[i]=t)),e.length=o.length),this.input=n,this.tooltips=s,this.tooltipViews=r,!0}}function Lr(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Fr=V.define({combine:t=>{var e,i,n;return{position:Ne.ios?"absolute":(null===(e=t.find((t=>t.position)))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find((t=>t.parent)))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(n=t.find((t=>t.tooltipSpace)))||void 0===n?void 0:n.tooltipSpace)||Lr}}}),Hr=new WeakMap,Jr=Ri.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Fr);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Nr(t,eo,(t=>this.createTooltip(t))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let i=e||t.geometryChanged,n=t.state.facet(Fr);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;i=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=Gr,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);this.parent&&this.container.remove(),null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,i=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(Ne.gecko)n=t.offsetParent!=this.container.ownerDocument.body;else if(t.style.top==Gr&&"0px"==t.style.left){let e=t.getBoundingClientRect();n=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(n||"absolute"==this.position)if(this.parent){let t=this.parent.getBoundingClientRect();t.width&&t.height&&(e=t.width/this.parent.offsetWidth,i=t.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:i}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map(((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(Fr).tooltipSpace(this.view),scaleX:e,scaleY:i,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let t of this.manager.tooltipViews)t.dom.style.position="absolute"}let{editor:i,space:n,scaleX:s,scaleY:r}=t,o=[];for(let a=0;a=Math.min(i.bottom,n.bottom)||d.rightMath.min(i.right,n.right)+.1){c.style.top=Gr;continue}let u=l.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,p=u?7:0,O=f.right-f.left,g=null!==(e=Hr.get(h))&&void 0!==e?e:f.bottom-f.top,m=h.offset||to,v=this.view.textDirection==Ni.LTR,w=f.width>n.right-n.left?v?n.left:n.right-f.width:v?Math.min(d.left-(u?14:0)+m.x,n.right-O):Math.max(n.left,d.left-O+(u?14:0)-m.x),b=this.above[a];!l.strictSide&&(b?d.top-(f.bottom-f.top)-m.yn.bottom)&&b==n.bottom-d.bottom>d.top-n.top&&(b=this.above[a]=!b);let S=(b?d.top-n.top:n.bottom-d.bottom)-p;if(Sw&&t.topQ&&(Q=b?t.top-g-2-p:t.bottom+p+2);if("absolute"==this.position?(c.style.top=(Q-t.parent.top)/r+"px",c.style.left=(w-t.parent.left)/s+"px"):(c.style.top=Q/r+"px",c.style.left=w/s+"px"),u){let t=d.left+(v?m.x:-m.x)-(w+14-7);u.style.left=t/s+"px"}!0!==h.overlap&&o.push({left:w,top:Q,right:y,bottom:Q+g}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),h.positioned&&h.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Gr}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Kr=Ns.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),to={x:0,y:0},eo=V.define({enables:[Jr,Kr]}),io=V.define();class no{static create(t){return new no(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Nr(t,io,(t=>this.createHostedView(t)))}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let i of this.manager.tooltipViews){let n=i[t];if(void 0!==n)if(void 0===e)e=n;else if(e!==n)return}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const so=eo.compute([io],(t=>{let e=t.facet(io).filter((t=>t));return 0===e.length?null:{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.map((t=>{var e;return null!==(e=t.end)&&void 0!==e?e:t.pos}))),create:no.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class ro{constructor(t,e,i,n,s){this.view=t,this.source=e,this.field=i,this.setHover=n,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||e.xi.right+t.defaultCharacterWidth)return;let r=t.bidiSpans(t.state.doc.lineAt(n)).find((t=>t.from<=n&&t.to>=n)),o=r&&r.dir==Ni.RTL?-1:1;s=e.x{this.pending==e&&(this.pending=null,i&&t.dispatch({effects:this.setHover.of(i)}))}),(e=>Ti(t.state,e,"hover tooltip")))}else r&&t.dispatch({effects:this.setHover.of(r)})}get tooltip(){let t=this.view.plugin(Jr),e=t?t.manager.tooltips.findIndex((t=>t.create==no.create)):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:n}=this;if(i&&n&&!function(t,e){let i=t.getBoundingClientRect();return e.clientX>=i.left-oo&&e.clientX<=i.right+oo&&e.clientY>=i.top-oo&&e.clientY<=i.bottom+oo}(n.dom,t)||this.pending){let{pos:n}=i||this.pending,s=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:n;(n==s?this.view.posAtCoords(this.lastMove)==n:function(t,e,i,n,s,r){let o=t.scrollDOM.getBoundingClientRect(),a=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>n||o.rights||Math.min(o.bottom,a)=e&&l<=i}(this.view,n,s,t.clientX,t.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e){let{tooltip:e}=this;e&&e.dom.contains(t.relatedTarget)?this.watchTooltipLeave(e.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let e=i=>{t.removeEventListener("mouseleave",e),this.active&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const oo=4;function ao(t,e={}){let i=St.define(),n=J.define({create:()=>null,update(t,n){if(t&&(e.hideOnChange&&(n.docChanged||n.selection)||e.hideOn&&e.hideOn(n,t)))return null;if(t&&n.docChanged){let e=n.changes.mapPos(t.pos,-1,X.TrackDel);if(null==e)return null;let i=Object.assign(Object.create(null),t);i.pos=e,null!=t.end&&(i.end=n.changes.mapPos(t.end)),t=i}for(let e of n.effects)e.is(i)&&(t=e.value),e.is(ho)&&(t=null);return t},provide:t=>io.from(t)});return[n,Ri.define((s=>new ro(s,t,n,i,e.hoverTime||300))),so]}function lo(t,e){let i=t.plugin(Jr);if(!i)return null;let n=i.manager.tooltips.indexOf(e);return n<0?null:i.manager.tooltipViews[n]}const ho=St.define(),co=V.define({combine(t){let e,i;for(let n of t)e=e||n.topContainer,i=i||n.bottomContainer;return{topContainer:e,bottomContainer:i}}});function fo(t,e){let i=t.plugin(uo),n=i?i.specs.indexOf(e):-1;return n>-1?i.panels[n]:null}const uo=Ri.fromClass(class{constructor(t){this.input=t.state.facet(go),this.specs=this.input.filter((t=>t)),this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(co);this.top=new po(t,!0,e.topContainer),this.bottom=new po(t,!1,e.bottomContainer),this.top.sync(this.panels.filter((t=>t.top))),this.bottom.sync(this.panels.filter((t=>!t.top)));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(co);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new po(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new po(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(go);if(i!=this.input){let e=i.filter((t=>t)),n=[],s=[],r=[],o=[];for(let i of e){let e,a=this.specs.indexOf(i);a<0?(e=i(t.view),o.push(e)):(e=this.panels[a],e.update&&e.update(t)),n.push(e),(e.top?s:r).push(e)}this.specs=e,this.panels=n,this.top.sync(s),this.bottom.sync(r);for(let t of o)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let n of this.panels)n.update&&n.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Ns.scrollMargins.of((e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}}))});class po{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=Oo(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=Oo(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function Oo(t){let e=t.nextSibling;return t.remove(),e}const go=V.define({enables:uo});class mo extends Rt{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}mo.prototype.elementClass="",mo.prototype.toDOM=void 0,mo.prototype.mapMode=X.TrackBefore,mo.prototype.startSide=mo.prototype.endSide=-1,mo.prototype.point=!0;const vo=V.define(),wo={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ut.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},bo=V.define();function So(t){return[yo(),bo.of(Object.assign(Object.assign({},wo),t))]}const Qo=V.define({combine:t=>t.some((t=>t))});function yo(t){let e=[xo];return t&&!1===t.fixed&&e.push(Qo.of(!0)),e}const xo=Ri.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(bo).map((e=>new Zo(t,e)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Qo),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,n=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(n<.8*(i.to-i.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Qo)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=Ut.iter(this.view.state.facet(vo),this.view.viewport.from),n=[],s=this.gutters.map((t=>new Po(t,this.view.viewport,-this.view.documentPadding.top)));for(let r of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(r.type)){let t=!0;for(let e of r.type)if(e.type==ci.Text&&t){$o(i,n,e.from);for(let t of s)t.line(this.view,e,n);t=!1}else if(e.widget)for(let t of s)t.widget(this.view,e)}else if(r.type==ci.Text){$o(i,n,r.from);for(let t of s)t.line(this.view,r,n)}else if(r.widget)for(let t of s)t.widget(this.view,r);for(let r of s)r.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(bo),i=t.state.facet(bo),n=t.docChanged||t.heightChanged||t.viewportChanged||!Ut.eq(t.startState.facet(vo),t.state.facet(vo),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let s of this.gutters)s.update(t)&&(n=!0);else{n=!0;let s=[];for(let n of i){let i=e.indexOf(n);i<0?s.push(new Zo(this.view,n)):(this.gutters[i].update(t),s.push(this.gutters[i]))}for(let t of this.gutters)t.dom.remove(),s.indexOf(t)<0&&t.destroy();for(let t of s)this.dom.appendChild(t.dom);this.gutters=s}return n}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Ns.scrollMargins.of((e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==Ni.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}:null}))});function ko(t){return Array.isArray(t)?t:[t]}function $o(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class Po{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=Ut.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:n}=this,s=(e.top-this.height)/t.scaleY,r=e.height/t.scaleY;if(this.i==n.elements.length){let e=new Co(t,r,s,i);n.elements.push(e),n.dom.appendChild(e.dom)}else n.elements[this.i].update(t,r,s,i);this.height=e.bottom,this.i++}line(t,e,i){let n=[];$o(this.cursor,n,e.from),i.length&&(n=n.concat(i));let s=this.gutter.config.lineMarker(t,e,n);s&&n.unshift(s);let r=this.gutter;(0!=n.length||r.config.renderEmptyElements)&&this.addElement(t,e,n)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e);i&&this.addElement(t,e,[i])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class Zo{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,(n=>{let s,r=n.target;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let t=r.getBoundingClientRect();s=(t.top+t.bottom)/2}else s=n.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);e.domEventHandlers[i](t,o,n)&&n.preventDefault()}));this.markers=ko(e.markers(t)),e.initialSpacer&&(this.spacer=new Co(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=ko(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!Ut.eq(this.markers,e,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class Co{constructor(t,e,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,n)}update(t,e,i,n){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(t,e){if(t.length!=e.length)return!1;for(let i=0;iWt(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let n in e){let t=i[n],s=e[n];i[n]=t?(e,i,n)=>t(e,i,n)||s(e,i,n):s}return i}})});class Xo extends mo{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function Ao(t,e){return t.state.facet(To).formatNumber(e,t.state)}const Wo=bo.compute([To],(t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(Yo),lineMarker:(t,e,i)=>i.some((t=>t.toDOM))?null:new Xo(Ao(t,t.state.doc.lineAt(e.from).number)),widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(To)!=t.state.facet(To),initialSpacer:t=>new Xo(Ao(t,Mo(t.state.doc.lines))),updateSpacer(t,e){let i=Ao(e.view,Mo(e.view.state.doc.lines));return i==t.number?t:new Xo(i)},domEventHandlers:t.facet(To).domEventHandlers})));function Ro(t={}){return[To.of(t),yo(),Wo]}function Mo(t){let e=9;for(;e{let e=[],i=-1;for(let n of t.selection.ranges){let s=t.doc.lineAt(n.head).from;s>i&&(i=s,e.push(Do.range(s)))}return Ut.of(e)}));const Uo=1024;let Eo=0;class zo{constructor(t,e){this.from=t,this.to=e}}class qo{constructor(t={}){this.id=Eo++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=Vo.match(t)),e=>{let i=t(e);return void 0===i?null:[this,i]}}}qo.closedBy=new qo({deserialize:t=>t.split(" ")}),qo.openedBy=new qo({deserialize:t=>t.split(" ")}),qo.group=new qo({deserialize:t=>t.split(" ")}),qo.contextHash=new qo({perNode:!0}),qo.lookAhead=new qo({perNode:!0}),qo.mounted=new qo({perNode:!0});class _o{constructor(t,e,i){this.tree=t,this.overlay=e,this.parser=i}static get(t){return t&&t.props&&t.props[qo.mounted.id]}}const Io=Object.create(null);class Vo{constructor(t,e,i,n=0){this.name=t,this.props=e,this.id=i,this.flags=n}static define(t){let e=t.props&&t.props.length?Object.create(null):Io,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),n=new Vo(t.name||"",e,t.id,i);if(t.props)for(let s of t.props)if(Array.isArray(s)||(s=s(n)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[s[0].id]=s[1]}return n}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(qo.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let n of i.split(" "))e[n]=t[i];return t=>{for(let i=t.prop(qo.group),n=-1;n<(i?i.length:0);n++){let s=e[n<0?t.name:i[n]];if(s)return s}}}}Vo.none=new Vo("",Object.create(null),0,8);class Bo{constructor(t){this.types=t;for(let e=0;e=e){let o=new na(t.tree,t.overlay[0].from+r.from,-1,r);(s||(s=[n])).push(ea(o,e,i,!1))}}return s?la(s):n}(this,t,e)}iterate(t){let{enter:e,leave:i,from:n=0,to:s=this.length}=t,r=t.mode||0,o=(r&Lo.IncludeAnonymous)>0;for(let a=this.cursor(r|Lo.IncludeAnonymous);;){let t=!1;if(a.from<=s&&a.to>=n&&(!o&&a.type.isAnonymous||!1!==e(a))){if(a.firstChild())continue;t=!0}for(;t&&i&&(o||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;t=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:pa(Vo.none,this.children,this.positions,0,this.children.length,0,this.length,((t,e,i)=>new Ho(this.type,t,e,i,this.propValues)),t.makeTree||((t,e,i)=>new Ho(Vo.none,t,e,i)))}static build(t){return function(t){var e;let{buffer:i,nodeSet:n,maxBufferLength:s=Uo,reused:r=[],minRepeatType:o=n.types.length}=t,a=Array.isArray(i)?new Jo(i,i.length):i,l=n.types,h=0,c=0;function d(t,e,i,v,w,b){let{id:S,start:Q,end:y,size:x}=a,k=c;for(;x<0;){if(a.next(),-1==x){let e=r[S];return i.push(e),void v.push(Q-t)}if(-3==x)return void(h=S);if(-4==x)return void(c=S);throw new RangeError(`Unrecognized record size: ${x}`)}let $,P,Z=l[S],C=Q-t;if(y-Q<=s&&(P=g(a.pos-e,w))){let e=new Uint16Array(P.size-P.skip),i=a.pos-P.size,s=e.length;for(;a.pos>i;)s=m(P.start,e,s);$=new Ko(e,y-P.start,n),C=P.start-t}else{let t=a.pos-x;a.next();let e=[],i=[],n=S>=o?S:-1,r=0,l=y;for(;a.pos>t;)n>=0&&a.id==n&&a.size>=0?(a.end<=l-s&&(p(e,i,Q,r,a.end,l,n,k),r=e.length,l=a.end),a.next()):b>2500?f(Q,t,e,i):d(Q,t,e,i,n,b+1);if(n>=0&&r>0&&r-1&&r>0){let t=u(Z);$=pa(Z,e,i,0,e.length,0,y-Q,t,t)}else $=O(Z,e,i,y-Q,k-y)}i.push($),v.push(C)}function f(t,e,i,r){let o=[],l=0,h=-1;for(;a.pos>e;){let{id:t,start:e,end:i,size:n}=a;if(n>4)a.next();else{if(h>-1&&e=0;t-=3)e[i++]=o[t],e[i++]=o[t+1]-s,e[i++]=o[t+2]-s,e[i++]=i;i.push(new Ko(e,o[2]-s,n)),r.push(s-t)}}function u(t){return(e,i,n)=>{let s,r,o=0,a=e.length-1;if(a>=0&&(s=e[a])instanceof Ho){if(!a&&s.type==t&&s.length==n)return s;(r=s.prop(qo.lookAhead))&&(o=i[a]+s.length+r)}return O(t,e,i,n,o)}}function p(t,e,i,s,r,o,a,l){let h=[],c=[];for(;t.length>s;)h.push(t.pop()),c.push(e.pop()+i-r);t.push(O(n.types[a],h,c,o-r,l-o)),e.push(r-i)}function O(t,e,i,n,s=0,r){if(h){let t=[qo.contextHash,h];r=r?[t].concat(r):[t]}if(s>25){let t=[qo.lookAhead,s];r=r?[t].concat(r):[t]}return new Ho(t,e,i,n,r)}function g(t,e){let i=a.fork(),n=0,r=0,l=0,h=i.end-s,c={size:0,start:0,skip:0};t:for(let s=i.pos-t;i.pos>s;){let t=i.size;if(i.id==e&&t>=0){c.size=n,c.start=r,c.skip=l,l+=4,n+=4,i.next();continue}let a=i.pos-t;if(t<0||a=o?4:0,f=i.start;for(i.next();i.pos>a;){if(i.size<0){if(-3!=i.size)break t;d+=4}else i.id>=o&&(d+=4);i.next()}r=f,n+=t,l+=d}return(e<0||n==t)&&(c.size=n,c.start=r,c.skip=l),c.size>4?c:void 0}function m(t,e,i){let{id:n,start:s,end:r,size:l}=a;if(a.next(),l>=0&&n4){let n=a.pos-(l-4);for(;a.pos>n;)i=m(t,e,i)}e[--i]=o,e[--i]=r-t,e[--i]=s-t,e[--i]=n}else-3==l?h=n:-4==l&&(c=n);return i}let v=[],w=[];for(;a.pos>0;)d(t.start||0,t.bufferStart||0,v,w,-1,0);let b=null!==(e=t.length)&&void 0!==e?e:v.length?w[0]+v[0].length:0;return new Ho(l[t.topID],v.reverse(),w.reverse(),b)}(t)}}Ho.empty=new Ho(Vo.none,[],[],0);class Jo{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Jo(this.buffer,this.index)}}class Ko{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return Vo.none}toString(){let t=[];for(let e=0;e0));a=r[a+3]);return o}slice(t,e,i){let n=this.buffer,s=new Uint16Array(e-t),r=0;for(let o=t,a=0;o=e&&ie;case 1:return i<=e&&n>e;case 2:return n>e;case 4:return!0}}function ea(t,e,i,n){for(var s;t.from==t.to||(i<1?t.from>=e:t.from>e)||(i>-1?t.to<=e:t.to0?o.length:-1;t!=l;t+=e){let l=o[t],h=a[t]+r.from;if(ta(n,i,h,h+l.length))if(l instanceof Ko){if(s&Lo.ExcludeBuffers)continue;let o=l.findChild(0,l.buffer.length,e,i-h,n);if(o>-1)return new aa(new oa(r,l,t,h),null,o)}else if(s&Lo.IncludeAnonymous||!l.type.isAnonymous||da(l)){let o;if(!(s&Lo.IgnoreMounts)&&(o=_o.get(l))&&!o.overlay)return new na(o.tree,h,t,r);let a=new na(l,h,t,r);return s&Lo.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?l.children.length-1:0,e,i,n)}}if(s&Lo.IncludeAnonymous||!r.type.isAnonymous)return null;if(t=r.index>=0?r.index+e:e<0?-1:r._parent._tree.children.length,r=r._parent,!r)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,i=0){let n;if(!(i&Lo.IgnoreOverlays)&&(n=_o.get(this._tree))&&n.overlay){let i=t-this.from;for(let{from:t,to:s}of n.overlay)if((e>0?t<=i:t=i:s>i))return new na(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function sa(t,e,i,n){let s=t.cursor(),r=[];if(!s.firstChild())return r;if(null!=i)for(;!s.type.is(i);)if(!s.nextSibling())return r;for(;;){if(null!=n&&s.type.is(n))return r;if(s.type.is(e)&&r.push(s.node),!s.nextSibling())return null==n?r:[]}}function ra(t,e,i=e.length-1){for(let n=t.parent;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[i]&&e[i]!=n.name)return!1;i--}}return!0}class oa{constructor(t,e,i,n){this.parent=t,this.buffer=e,this.index=i,this.start=n}}class aa extends ia{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:n}=this.context,s=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.context.start,i);return s<0?null:new aa(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,i=0){if(i&Lo.ExcludeBuffers)return null;let{buffer:n}=this.context,s=n.findChild(this.index+4,n.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return s<0?null:new aa(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new aa(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new aa(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,n=this.index+4,s=i.buffer[this.index+3];if(s>n){let r=i.buffer[this.index+1];t.push(i.slice(n,s,r)),e.push(0)}return new Ho(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function la(t){if(!t.length)return null;let e=0,i=t[0];for(let r=1;ri.from||n.to0){if(this.index-1)for(let n=e+t,s=t<0?-1:i._tree.children.length;n!=s;n+=t){let t=i._tree.children[n];if(this.mode&Lo.IncludeAnonymous||t instanceof Ko||!t.type.isAnonymous||da(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let r=t;r;r=r._parent)if(r.index==n){if(n==this.index)return r;e=r,i=s+1;break t}n=this.stack[--s]}for(let n=i;n=0;s--){if(s<0)return ra(this.node,t,n);let r=i[e.buffer[this.stack[s]]];if(!r.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}}function da(t){return t.children.some((t=>t instanceof Ko||!t.type.isAnonymous||da(t)))}const fa=new WeakMap;function ua(t,e){if(!t.isAnonymous||e instanceof Ko||e.type!=t)return 1;let i=fa.get(e);if(null==i){i=1;for(let n of e.children){if(n.type!=t||!(n instanceof Ho)){i=1;break}i+=ua(t,n)}fa.set(e,i)}return i}function pa(t,e,i,n,s,r,o,a,l){let h=0;for(let u=n;u=c)break;p+=e}if(h==s+1){if(p>c){let t=i[s];e(t.children,t.positions,0,t.children.length,n[s]+a);continue}d.push(i[s])}else{let e=n[h-1]+i[h-1].length-u;d.push(pa(t,i,n,s,h,u,e,null,l))}f.push(u+a-r)}}(e,i,n,s,0),(a||l)(d,f,o)}class Oa{constructor(){this.map=new WeakMap}setBuffer(t,e,i){let n=this.map.get(t);n||this.map.set(t,n=new Map),n.set(e,i)}getBuffer(t,e){let i=this.map.get(t);return i&&i.get(e)}set(t,e){t instanceof aa?this.setBuffer(t.context.buffer,t.index,e):t instanceof na&&this.map.set(t.tree,e)}get(t){return t instanceof aa?this.getBuffer(t.context.buffer,t.index):t instanceof na?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class ga{constructor(t,e,i,n,s=!1,r=!1){this.from=t,this.to=e,this.tree=i,this.offset=n,this.open=(s?1:0)|(r?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],i=!1){let n=[new ga(0,t.length,t,0,!1,i)];for(let s of e)s.to>t.length&&n.push(s);return n}static applyChanges(t,e,i=128){if(!e.length)return t;let n=[],s=1,r=t.length?t[0]:null;for(let o=0,a=0,l=0;;o++){let h=o=i)for(;r&&r.from=e.from||c<=e.to||l){let t=Math.max(e.from,a)-l,i=Math.min(e.to,c)-l;e=t>=i?null:new ga(t,i,e.tree,e.offset+l,o>0,!!h)}if(e&&n.push(e),r.to>c)break;r=snew zo(t.from,t.to))):[new zo(0,0)]:[new zo(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let n=this.startParse(t,e,i);for(;;){let t=n.advance();if(t)return t}}}class va{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new qo({perNode:!0});let wa=0;class ba{constructor(t,e,i){this.set=t,this.base=e,this.modified=i,this.id=wa++}static define(t){if(null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let e=new ba([],null,[]);if(e.set.push(e),t)for(let i of t.set)e.set.push(i);return e}static defineModifier(){let t=new Qa;return e=>e.modified.indexOf(t)>-1?e:Qa.get(e.base||e,e.modified.concat(t).sort(((t,e)=>t.id-e.id)))}}let Sa=0;class Qa{constructor(){this.instances=[],this.id=Sa++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find((i=>{return i.base==t&&(n=e,s=i.modified,n.length==s.length&&n.every(((t,e)=>t==s[e])));var n,s}));if(i)return i;let n=[],s=new ba(n,t,e);for(let o of e)o.instances.push(s);let r=function(t){let e=[[]];for(let i=0;ie.length-t.length))}(e);for(let o of t.set)if(!o.modified.length)for(let t of r)n.push(Qa.get(o,t));return s}}function ya(t){let e=Object.create(null);for(let i in t){let n=t[i];Array.isArray(n)||(n=[n]);for(let t of i.split(" "))if(t){let i=[],s=2,r=t;for(let e=0;;){if("..."==r&&e>0&&e+3==t.length){s=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(r);if(!n)throw new RangeError("Invalid path: "+t);if(i.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),e+=n[0].length,e==t.length)break;let o=t[e++];if(e==t.length&&"!"==o){s=0;break}if("/"!=o)throw new RangeError("Invalid path: "+t);r=t.slice(e)}let o=i.length-1,a=i[o];if(!a)throw new RangeError("Invalid path: "+t);let l=new ka(n,s,o>0?i.slice(0,o):null);e[a]=l.sort(e[a])}}return xa.add(e)}const xa=new qo;class ka{constructor(t,e,i,n){this.tags=t,this.mode=e,this.context=i,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth{let e=s;for(let n of t)for(let t of n.set){let n=i[t.id];if(n){e=e?e+" "+n:n;break}}return e},scope:n}}function Pa(t,e,i,n=0,s=t.length){let r=new Za(n,Array.isArray(e)?e:[e],i);r.highlightRange(t.cursor(),n,s,"",r.highlighters),r.flush(s)}ka.empty=new ka([],2,null);class Za{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,n,s){let{type:r,from:o,to:a}=t;if(o>=i||a<=e)return;r.isTop&&(s=this.highlighters.filter((t=>!t.scope||t.scope(r))));let l=n,h=function(t){let e=t.type.prop(xa);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||ka.empty,c=function(t,e){let i=null;for(let n of t){let t=n.style(e);t&&(i=i?i+" "+t:t)}return i}(s,h.tags);if(c&&(l&&(l+=" "),l+=c,1==h.mode&&(n+=(n?" ":"")+c)),this.startSpan(Math.max(e,o),l),h.opaque)return;let d=t.tree&&t.tree.prop(qo.mounted);if(d&&d.overlay){let r=t.node.enter(d.overlay[0].from+o,1),h=this.highlighters.filter((t=>!t.scope||t.scope(d.tree.type))),c=t.firstChild();for(let f=0,u=o;;f++){let p=f=O)&&t.nextSibling()););if(!p||O>i)break;u=p.to+o,u>e&&(this.highlightRange(r.cursor(),Math.max(e,p.from+o),Math.min(i,u),"",h),this.startSpan(Math.min(i,u),l))}c&&t.parent()}else if(t.firstChild()){d&&(n="");do{if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,n,s),this.startSpan(Math.min(i,t.to),l)}}while(t.nextSibling());t.parent()}}}const Ca=ba.define,Ya=Ca(),Ta=Ca(),Xa=Ca(Ta),Aa=Ca(Ta),Wa=Ca(),Ra=Ca(Wa),Ma=Ca(Wa),Da=Ca(),ja=Ca(Da),Ua=Ca(),Ea=Ca(),za=Ca(),qa=Ca(za),_a=Ca(),Ia={comment:Ya,lineComment:Ca(Ya),blockComment:Ca(Ya),docComment:Ca(Ya),name:Ta,variableName:Ca(Ta),typeName:Xa,tagName:Ca(Xa),propertyName:Aa,attributeName:Ca(Aa),className:Ca(Ta),labelName:Ca(Ta),namespace:Ca(Ta),macroName:Ca(Ta),literal:Wa,string:Ra,docString:Ca(Ra),character:Ca(Ra),attributeValue:Ca(Ra),number:Ma,integer:Ca(Ma),float:Ca(Ma),bool:Ca(Wa),regexp:Ca(Wa),escape:Ca(Wa),color:Ca(Wa),url:Ca(Wa),keyword:Ua,self:Ca(Ua),null:Ca(Ua),atom:Ca(Ua),unit:Ca(Ua),modifier:Ca(Ua),operatorKeyword:Ca(Ua),controlKeyword:Ca(Ua),definitionKeyword:Ca(Ua),moduleKeyword:Ca(Ua),operator:Ea,derefOperator:Ca(Ea),arithmeticOperator:Ca(Ea),logicOperator:Ca(Ea),bitwiseOperator:Ca(Ea),compareOperator:Ca(Ea),updateOperator:Ca(Ea),definitionOperator:Ca(Ea),typeOperator:Ca(Ea),controlOperator:Ca(Ea),punctuation:za,separator:Ca(za),bracket:qa,angleBracket:Ca(qa),squareBracket:Ca(qa),paren:Ca(qa),brace:Ca(qa),content:Da,heading:ja,heading1:Ca(ja),heading2:Ca(ja),heading3:Ca(ja),heading4:Ca(ja),heading5:Ca(ja),heading6:Ca(ja),contentSeparator:Ca(Da),list:Ca(Da),quote:Ca(Da),emphasis:Ca(Da),strong:Ca(Da),link:Ca(Da),monospace:Ca(Da),strikethrough:Ca(Da),inserted:Ca(),deleted:Ca(),changed:Ca(),invalid:Ca(),meta:_a,documentMeta:Ca(_a),annotation:Ca(_a),processingInstruction:Ca(_a),definition:ba.defineModifier(),constant:ba.defineModifier(),function:ba.defineModifier(),standard:ba.defineModifier(),local:ba.defineModifier(),special:ba.defineModifier()};var Va;$a([{tag:Ia.link,class:"tok-link"},{tag:Ia.heading,class:"tok-heading"},{tag:Ia.emphasis,class:"tok-emphasis"},{tag:Ia.strong,class:"tok-strong"},{tag:Ia.keyword,class:"tok-keyword"},{tag:Ia.atom,class:"tok-atom"},{tag:Ia.bool,class:"tok-bool"},{tag:Ia.url,class:"tok-url"},{tag:Ia.labelName,class:"tok-labelName"},{tag:Ia.inserted,class:"tok-inserted"},{tag:Ia.deleted,class:"tok-deleted"},{tag:Ia.literal,class:"tok-literal"},{tag:Ia.string,class:"tok-string"},{tag:Ia.number,class:"tok-number"},{tag:[Ia.regexp,Ia.escape,Ia.special(Ia.string)],class:"tok-string2"},{tag:Ia.variableName,class:"tok-variableName"},{tag:Ia.local(Ia.variableName),class:"tok-variableName tok-local"},{tag:Ia.definition(Ia.variableName),class:"tok-variableName tok-definition"},{tag:Ia.special(Ia.variableName),class:"tok-variableName2"},{tag:Ia.definition(Ia.propertyName),class:"tok-propertyName tok-definition"},{tag:Ia.typeName,class:"tok-typeName"},{tag:Ia.namespace,class:"tok-namespace"},{tag:Ia.className,class:"tok-className"},{tag:Ia.macroName,class:"tok-macroName"},{tag:Ia.propertyName,class:"tok-propertyName"},{tag:Ia.operator,class:"tok-operator"},{tag:Ia.comment,class:"tok-comment"},{tag:Ia.meta,class:"tok-meta"},{tag:Ia.invalid,class:"tok-invalid"},{tag:Ia.punctuation,class:"tok-punctuation"}]);const Ba=new qo;function Ga(t){return V.define({combine:t?e=>e.concat(t):void 0})}const Na=new qo;class La{constructor(t,e,i=[],n=""){this.data=t,this.name=n,At.prototype.hasOwnProperty("tree")||Object.defineProperty(At.prototype,"tree",{get(){return Ja(this)}}),this.parser=e,this.extension=[al.of(this),At.languageData.of(((t,e,i)=>{let n=Fa(t,e,i),s=n.type.prop(Ba);if(!s)return[];let r=t.facet(s),o=n.type.prop(Na);if(o){let s=n.resolve(e-n.from,i);for(let e of o)if(e.test(s,t)){let i=t.facet(e.facet);return"replace"==e.type?i:i.concat(r)}}return r}))].concat(i)}isActiveAt(t,e,i=-1){return Fa(t,e,i).type.prop(Ba)==this.data}findRegions(t){let e=t.facet(al);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],n=(t,e)=>{if(t.prop(Ba)==this.data)return void i.push({from:e,to:e+t.length});let s=t.prop(qo.mounted);if(s){if(s.tree.prop(Ba)==this.data){if(s.overlay)for(let t of s.overlay)i.push({from:t.from+e,to:t.to+e});else i.push({from:e,to:e+t.length});return}if(s.overlay){let t=i.length;if(n(s.tree,s.overlay[0].from+e),i.length>t)return}}for(let i=0;it.isTop?e:void 0))]}),t.name)}configure(t,e){return new Ha(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ja(t){let e=t.field(La.state,!1);return e?e.tree:Ho.empty}class Ka{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let tl=null;class el{constructor(t,e,i=[],n,s,r,o,a){this.parser=t,this.state=e,this.fragments=i,this.tree=n,this.treeLen=s,this.viewport=r,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new el(t,e,[],Ho.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Ka(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ho.empty&&this.isDone(null!=e?e:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var i;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((()=>{for(;!(e=this.parse.advance()););})),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(ga.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=tl;tl=this;try{return t()}finally{tl=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=il(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:n,treeLen:s,viewport:r,skipped:o}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges(((t,i,n,s)=>e.push({fromA:t,toA:i,fromB:n,toB:s}))),i=ga.applyChanges(i,e),n=Ho.empty,s=0,r={from:t.mapPos(r.from,-1),to:t.mapPos(r.to,1)},this.skipped.length){o=[];for(let e of this.skipped){let i=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);it.from&&(this.fragments=il(this.fragments,e,n),this.skipped.splice(i--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends ma{createParse(e,i,n){let s=n[0].from,r=n[n.length-1].to;return{parsedPos:s,advance(){let e=tl;if(e){for(let t of n)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=r,new Ho(Vo.none,[],[],r-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return tl}}function il(t,e,i){return ga.applyChanges(t,[{fromA:e,toA:i,fromB:e,toB:i}])}class nl{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new nl(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=el.create(t.facet(al).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new nl(i)}}La.state=J.define({create:nl.init,update(t,e){for(let i of e.effects)if(i.is(La.setState))return i.value;return e.startState.facet(al)!=e.state.facet(al)?nl.init(e.state):t.apply(e)}});let sl=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(sl=t=>{let e=-1,i=setTimeout((()=>{e=requestIdleCallback(t,{timeout:400})}),100);return()=>e<0?clearTimeout(i):cancelIdleCallback(e)});const rl="undefined"!=typeof navigator&&(null===(Va=navigator.scheduling)||void 0===Va?void 0:Va.isInputPending)?()=>navigator.scheduling.isInputPending():null,ol=Ri.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(La.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(La.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=sl(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndn+1e3,a=s.context.work((()=>rl&&rl()||Date.now()>r),n+(o?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:La.setState.of(new nl(s.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>Ti(this.view.state,t))).then((()=>this.workScheduled--)),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),al=V.define({combine:t=>t.length?t[0]:null,enables:t=>[La.state,ol,Ns.contentAttributes.compute([t],(e=>{let i=e.facet(t);return i&&i.name?{"data-language":i.name}:{}}))]});class ll{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const hl=V.define(),cl=V.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function dl(t){let e=t.facet(cl);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function fl(t,e){let i="",n=t.tabSize,s=t.facet(cl)[0];if("\t"==s){for(;e>=n;)i+="\t",e-=n;s=" "}for(let r=0;r=e?function(t,e,i){let n=e.resolveStack(i),s=n.node.enterUnfinishedNodesBefore(i);if(s!=n.node){let t=[];for(let e=s;e!=n.node;e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)n={node:t[e],next:n}}return gl(n,t,i)}(t,i,e):null}class pl{constructor(t,e={}){this.state=t,this.options=e,this.unit=dl(t)}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:n,simulateDoubleBreak:s}=this.options;return null!=n&&n>=i.from&&n<=i.to?s&&n==t?{text:"",from:t}:(e<0?n-1&&(s+=r-this.countColumn(i,i.search(/\S|$/))),s}countColumn(t,e=t.length){return Ht(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:n}=this.lineAt(t,e),s=this.options.overrideIndentation;if(s){let t=s(n);if(t>-1)return t}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ol=new qo;function gl(t,e,i){for(let n=t;n;n=n.next){let t=ml(n.node);if(t)return t(wl.create(e,i,n))}return 0}function ml(t){let e=t.type.prop(Ol);if(e)return e;let i,n=t.firstChild;if(n&&(i=n.type.prop(qo.closedBy))){let e=t.lastChild,n=e&&i.indexOf(e.name)>-1;return t=>Ql(t,!0,1,void 0,n&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(t)?e.from:void 0)}return null==t.parent?vl:null}function vl(){return 0}class wl extends pl{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i}get node(){return this.context.node}static create(t,e,i){return new wl(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(bl(i,t))break;e=this.state.doc.lineAt(i.from)}return this.lineIndent(e.from)}continue(){return gl(this.context.next,this.base,this.pos)}}function bl(t,e){for(let i=e;i;i=i.parent)if(t==i)return!0;return!1}function Sl({closing:t,align:e=!0,units:i=1}){return n=>Ql(n,e,i,t)}function Ql(t,e,i,n,s){let r=t.textAfter,o=r.match(/^\s*/)[0].length,a=n&&r.slice(o,o+n.length)==n||s==t.pos+o,l=e?function(t){let e=t.node,i=e.childAfter(e.from),n=e.lastChild;if(!i)return null;let s=t.options.simulateBreak,r=t.state.doc.lineAt(i.from),o=null==s||s<=r.from?r.to:Math.min(r.to,s);for(let a=i.to;;){let t=e.childAfter(a);if(!t||t==n)return null;if(!t.type.isSkipped)return t.from{let n=t&&t.test(i.textAfter);return i.baseIndent+(n?0:e*i.unit)}}const xl=V.define(),kl=new qo;function $l(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Pl(t,e,i){for(let n of t.facet(xl)){let s=n(t,e,i);if(s)return s}return function(t,e,i){let n=Ja(t);if(n.lengthi)continue;if(s&&o.from=e&&n.to>i&&(s=n)}}return s}(t,e,i)}function Zl(t,e){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return i>=n?void 0:{from:i,to:n}}const Cl=St.define({map:Zl}),Yl=St.define({map:Zl});function Tl(t){let e=[];for(let{head:i}of t.state.selection.ranges)e.some((t=>t.from<=i&&t.to>=i))||e.push(t.lineBlockAt(i));return e}const Xl=J.define({create:()=>di.none,update(t,e){t=t.map(e.changes);for(let i of e.effects)if(i.is(Cl)&&!Wl(t,i.value.from,i.value.to)){let{preparePlaceholder:n}=e.state.facet(Ul),s=n?di.replace({widget:new _l(n(e.state,i.value))}):ql;t=t.update({add:[s.range(i.value.from,i.value.to)]})}else i.is(Yl)&&(t=t.update({filter:(t,e)=>i.value.from!=t||i.value.to!=e,filterFrom:i.value.from,filterTo:i.value.to}));if(e.selection){let i=!1,{head:n}=e.selection.main;t.between(n,n,((t,e)=>{tn&&(i=!0)})),i&&(t=t.update({filterFrom:n,filterTo:n,filter:(t,e)=>e<=n||t>=n}))}return t},provide:t=>Ns.decorations.from(t),toJSON(t,e){let i=[];return t.between(0,e.doc.length,((t,e)=>{i.push(t,e)})),i},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let i=0;i{(!s||s.from>t)&&(s={from:t,to:e})})),s}function Wl(t,e,i){let n=!1;return t.between(e,e,((t,s)=>{t==e&&s==i&&(n=!0)})),n}function Rl(t,e){return t.field(Xl,!1)?e:e.concat(St.appendConfig.of(El()))}function Ml(t,e,i=!0){let n=t.state.doc.lineAt(e.from).number,s=t.state.doc.lineAt(e.to).number;return Ns.announce.of(`${t.state.phrase(i?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${s}.`)}const Dl=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of Tl(t)){let i=Pl(t.state,e.from,e.to);if(i)return t.dispatch({effects:Rl(t.state,[Cl.of(i),Ml(t,i)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(Xl,!1))return!1;let e=[];for(let i of Tl(t)){let n=Al(t.state,i.from,i.to);n&&e.push(Yl.of(n),Ml(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,i=[];for(let n=0;n{let e=t.state.field(Xl,!1);if(!e||!e.size)return!1;let i=[];return e.between(0,t.state.doc.length,((t,e)=>{i.push(Yl.of({from:t,to:e}))})),t.dispatch({effects:i}),!0}}],jl={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Ul=V.define({combine:t=>Wt(t,jl)});function El(t){let e=[Xl,Gl];return t&&e.push(Ul.of(t)),e}function zl(t,e){let{state:i}=t,n=i.facet(Ul),s=e=>{let i=t.lineBlockAt(t.posAtDOM(e.target)),n=Al(t.state,i.from,i.to);n&&t.dispatch({effects:Yl.of(n)}),e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,s,e);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",i.phrase("folded code")),r.title=i.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const ql=di.replace({widget:new class extends hi{toDOM(t){return zl(t,null)}}});class _l extends hi{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return zl(t,this.value)}}const Il={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Vl extends mo{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function Bl(t={}){let e=Object.assign(Object.assign({},Il),t),i=new Vl(e,!0),n=new Vl(e,!1),s=Ri.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(al)!=t.state.facet(al)||t.startState.field(Xl,!1)!=t.state.field(Xl,!1)||Ja(t.startState)!=Ja(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new Et;for(let s of t.viewportLineBlocks){let r=Al(t.state,s.from,s.to)?n:Pl(t.state,s.from,s.to)?i:null;r&&e.add(s.from,s.from,r)}return e.finish()}}),{domEventHandlers:r}=e;return[s,So({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.markers)||Ut.empty},initialSpacer:()=>new Vl(e,!1),domEventHandlers:Object.assign(Object.assign({},r),{click:(t,e,i)=>{if(r.click&&r.click(t,e,i))return!0;let n=Al(t.state,e.from,e.to);if(n)return t.dispatch({effects:Yl.of(n)}),!0;let s=Pl(t.state,e.from,e.to);return!!s&&(t.dispatch({effects:Cl.of(s)}),!0)}})}),El()]}const Gl=Ns.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Nl{constructor(t,e){let i;function n(t){let e=ie.newName();return(i||(i=Object.create(null)))["."+e]=t,e}this.specs=t;const s="string"==typeof e.all?e.all:e.all?n(e.all):void 0,r=e.scope;this.scope=r instanceof La?t=>t.prop(Ba)==r.data:r?t=>t==r:void 0,this.style=$a(t.map((t=>({tag:t.tag,class:t.class||n(Object.assign({},t,{tag:null}))}))),{all:s}).style,this.module=i?new ie(i):null,this.themeType=e.themeType}static define(t,e){return new Nl(t,e||{})}}const Ll=V.define(),Fl=V.define({combine:t=>t.length?[t[0]]:null});function Hl(t){let e=t.facet(Ll);return e.length?e:t.facet(Fl)}function Jl(t,e){let i,n=[th];return t instanceof Nl&&(t.module&&n.push(Ns.styleModule.of(t.module)),i=t.themeType),(null==e?void 0:e.fallback)?n.push(Fl.of(t)):i?n.push(Ll.computeN([Ns.darkTheme],(e=>e.facet(Ns.darkTheme)==("dark"==i)?[t]:[]))):n.push(Ll.of(t)),n}class Kl{constructor(t){this.markCache=Object.create(null),this.tree=Ja(t.state),this.decorations=this.buildDeco(t,Hl(t.state))}update(t){let e=Ja(t.state),i=Hl(t.state),n=i!=Hl(t.startState);e.length{i.add(t,e,this.markCache[n]||(this.markCache[n]=di.mark({class:n})))}),n,s);return i.finish()}}const th=st.high(Ri.fromClass(Kl,{decorations:t=>t.decorations})),eh=Nl.define([{tag:Ia.meta,color:"#404740"},{tag:Ia.link,textDecoration:"underline"},{tag:Ia.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ia.emphasis,fontStyle:"italic"},{tag:Ia.strong,fontWeight:"bold"},{tag:Ia.strikethrough,textDecoration:"line-through"},{tag:Ia.keyword,color:"#708"},{tag:[Ia.atom,Ia.bool,Ia.url,Ia.contentSeparator,Ia.labelName],color:"#219"},{tag:[Ia.literal,Ia.inserted],color:"#164"},{tag:[Ia.string,Ia.deleted],color:"#a11"},{tag:[Ia.regexp,Ia.escape,Ia.special(Ia.string)],color:"#e40"},{tag:Ia.definition(Ia.variableName),color:"#00f"},{tag:Ia.local(Ia.variableName),color:"#30a"},{tag:[Ia.typeName,Ia.namespace],color:"#085"},{tag:Ia.className,color:"#167"},{tag:[Ia.special(Ia.variableName),Ia.macroName],color:"#256"},{tag:Ia.definition(Ia.propertyName),color:"#00c"},{tag:Ia.comment,color:"#940"},{tag:Ia.invalid,color:"#f00"}]),ih=Ns.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),nh=1e4,sh="()[]{}",rh=V.define({combine:t=>Wt(t,{afterCursor:!0,brackets:sh,maxScanDistance:nh,renderMatch:lh})}),oh=di.mark({class:"cm-matchingBracket"}),ah=di.mark({class:"cm-nonmatchingBracket"});function lh(t){let e=[],i=t.matched?oh:ah;return e.push(i.range(t.start.from,t.start.to)),t.end&&e.push(i.range(t.end.from,t.end.to)),e}const hh=[J.define({create:()=>di.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let i=[],n=e.state.facet(rh);for(let s of e.state.selection.ranges){if(!s.empty)continue;let t=ph(e.state,s.head,-1,n)||s.head>0&&ph(e.state,s.head-1,1,n)||n.afterCursor&&(ph(e.state,s.head,1,n)||s.headNs.decorations.from(t)}),ih];function ch(t={}){return[rh.of(t),hh]}const dh=new qo;function fh(t,e,i){let n=t.prop(e<0?qo.openedBy:qo.closedBy);if(n)return n;if(1==t.name.length){let n=i.indexOf(t.name);if(n>-1&&n%2==(e<0?1:0))return[i[n+e]]}return null}function uh(t){let e=t.type.prop(dh);return e?e(t.node):t}function ph(t,e,i,n={}){let s=n.maxScanDistance||nh,r=n.brackets||sh,o=Ja(t),a=o.resolveInner(e,i);for(let l=a;l;l=l.parent){let n=fh(l.type,i,r);if(n&&l.from0?e>=s.from&&es.from&&e<=s.to))return Oh(t,e,i,l,s,n,r)}}return function(t,e,i,n,s,r,o){let a=i<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=i>0)return null;let h={from:i<0?e-1:e,to:i>0?e+1:e},c=t.doc.iterRange(e,i>0?t.doc.length:0),d=0;for(let f=0;!c.next().done&&f<=r;){let t=c.value;i<0&&(f+=t.length);let r=e+f*i;for(let e=i>0?0:t.length-1,a=i>0?t.length:-1;e!=a;e+=i){let a=o.indexOf(t[e]);if(!(a<0||n.resolveInner(r+e,1).type!=s))if(a%2==0==i>0)d++;else{if(1==d)return{start:h,end:{from:r+e,to:r+e+1},matched:a>>1==l>>1};d--}}i>0&&(f+=t.length)}return c.done?{start:h,matched:!1}:null}(t,e,i,o,a.type,s,r)}function Oh(t,e,i,n,s,r,o){let a=n.parent,l={from:s.from,to:s.to},h=0,c=null==a?void 0:a.cursor();if(c&&(i<0?c.childBefore(n.from):c.childAfter(n.to)))do{if(i<0?c.to<=n.from:c.from>=n.to){if(0==h&&r.indexOf(c.type.name)>-1&&c.from-1||vh.push(t)}function Qh(t,e){let i=[];for(let a of e.split(" ")){let e=[];for(let i of a.split(".")){let n=t[i]||Ia[i];n?"function"==typeof n?e.length?e=e.map(n):Sh(i):e.length?Sh(i):e=Array.isArray(n)?n:[n]:Sh(i)}for(let t of e)i.push(t)}if(!i.length)return 0;let n=e.replace(/ /g,"_"),s=n+" "+i.map((t=>t.id)),r=wh[s];if(r)return r.id;let o=wh[s]=Vo.define({id:mh.length,name:n,props:[ya({[n]:i})]});return mh.push(o),o.id}function yh(t,e){return({state:i,dispatch:n})=>{if(i.readOnly)return!1;let s=t(e,i);return!!s&&(n(i.update(s)),!0)}}const xh=yh(Yh,0),kh=yh(Ch,0),$h=yh(((t,e)=>Ch(t,e,function(t){let e=[];for(let i of t.selection.ranges){let n=t.doc.lineAt(i.from),s=i.to<=n.to?n:t.doc.lineAt(i.to),r=e.length-1;r>=0&&e[r].to>n.from?e[r].to=s.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:s.to})}return e}(e))),0);function Ph(t,e){let i=t.languageDataAt("commentTokens",e);return i.length?i[0]:{}}const Zh=50;function Ch(t,e,i=e.selection.ranges){let n=i.map((t=>Ph(e,t.from).block));if(!n.every((t=>t)))return null;let s=i.map(((t,i)=>function(t,{open:e,close:i},n,s){let r,o,a=t.sliceDoc(n-Zh,n),l=t.sliceDoc(s,s+Zh),h=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,d=a.length-h;if(a.slice(d-e.length,d)==e&&l.slice(c,c+i.length)==i)return{open:{pos:n-h,margin:h&&1},close:{pos:s+c,margin:c&&1}};s-n<=2*Zh?r=o=t.sliceDoc(n,s):(r=t.sliceDoc(n,n+Zh),o=t.sliceDoc(s-Zh,s));let f=/^\s*/.exec(r)[0].length,u=/\s*$/.exec(o)[0].length,p=o.length-u-i.length;return r.slice(f,f+e.length)==e&&o.slice(p,p+i.length)==i?{open:{pos:n+f+e.length,margin:/\s/.test(r.charAt(f+e.length))?1:0},close:{pos:s-u-i.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null}(e,n[i],t.from,t.to)));if(2!=t&&!s.every((t=>t)))return{changes:e.changes(i.map(((t,e)=>s[e]?[]:[{from:t.from,insert:n[e].open+" "},{from:t.to,insert:" "+n[e].close}])))};if(1!=t&&s.some((t=>t))){let t=[];for(let e,i=0;is&&(r==o||o>l.from)){s=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,r=l.text.slice(t,t+a.length)==a?t:-1;tt.comment<0&&(!t.empty||t.single)))){let t=[];for(let{line:e,token:s,indent:r,empty:o,single:a}of n)!a&&o||t.push({from:e.from+r,insert:s+" "});let i=e.changes(t);return{changes:i,selection:e.selection.map(i,1)}}if(1!=t&&n.some((t=>t.comment>=0))){let t=[];for(let{line:e,comment:i,token:s}of n)if(i>=0){let n=e.from+i,r=n+s.length;" "==e.text[r-e.from]&&r++,t.push({from:n,to:r})}return{changes:t}}return null}const Th=vt.define(),Xh=vt.define(),Ah=V.define(),Wh=V.define({combine:t=>Wt(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(i,n)=>t(i,n)||e(i,n)})}),Rh=J.define({create:()=>Jh.empty,update(t,e){let i=e.state.facet(Wh),n=e.annotation(Th);if(n){let s=qh.fromTransaction(e,n.selection),r=n.side,o=0==r?t.undone:t.done;return o=s?_h(o,o.length,i.minDepth,s):Gh(o,e.startState.selection),new Jh(0==r?n.rest:o,0==r?o:n.rest)}let s=e.annotation(Xh);if("full"!=s&&"before"!=s||(t=t.isolate()),!1===e.annotation(Qt.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let r=qh.fromTransaction(e),o=e.annotation(Qt.time),a=e.annotation(Qt.userEvent);return r?t=t.addChanges(r,o,a,i,e):e.selection&&(t=t.addSelection(e.startState.selection,o,a,i.newGroupDelay)),"full"!=s&&"after"!=s||(t=t.isolate()),t},toJSON:t=>({done:t.done.map((t=>t.toJSON())),undone:t.undone.map((t=>t.toJSON()))}),fromJSON:t=>new Jh(t.done.map(qh.fromJSON),t.undone.map(qh.fromJSON))});function Mh(t={}){return[Rh,Wh.of(t),Ns.domEventHandlers({beforeinput(t,e){let i="historyUndo"==t.inputType?jh:"historyRedo"==t.inputType?Uh:null;return!!i&&(t.preventDefault(),i(e))}})]}function Dh(t,e){return function({state:i,dispatch:n}){if(!e&&i.readOnly)return!1;let s=i.field(Rh,!1);if(!s)return!1;let r=s.pop(t,i,e);return!!r&&(n(r),!0)}}const jh=Dh(0,!1),Uh=Dh(1,!1),Eh=Dh(0,!0),zh=Dh(1,!0);class qh{constructor(t,e,i,n,s){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=n,this.selectionsAfter=s}setSelAfter(t){return new qh(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map((t=>t.toJSON()))}}static fromJSON(t){return new qh(t.changes&&W.fromJSON(t.changes),[],t.mapped&&A.fromJSON(t.mapped),t.startSelection&&q.fromJSON(t.startSelection),t.selectionsAfter.map(q.fromJSON))}static fromTransaction(t,e){let i=Vh;for(let n of t.startState.facet(Ah)){let e=n(t);e.length&&(i=i.concat(e))}return!i.length&&t.changes.empty?null:new qh(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,Vh)}static selection(t){return new qh(void 0,Vh,void 0,void 0,t)}}function _h(t,e,i,n){let s=e+1>i+20?e-i-1:0,r=t.slice(s,e);return r.push(n),r}function Ih(t,e){return t.length?e.length?t.concat(e):t:e}const Vh=[],Bh=200;function Gh(t,e){if(t.length){let i=t[t.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-Bh));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),_h(t,t.length-1,1e9,i.setSelAfter(n)))}return[qh.selection([e])]}function Nh(t){let e=t[t.length-1],i=t.slice();return i[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),i}function Lh(t,e){if(!t.length)return t;let i=t.length,n=Vh;for(;i;){let s=Fh(t[i-1],e,n);if(s.changes&&!s.changes.empty||s.effects.length){let e=t.slice(0,i);return e[i-1]=s,e}e=s.mapped,i--,n=s.selectionsAfter}return n.length?[qh.selection(n)]:Vh}function Fh(t,e,i){let n=Ih(t.selectionsAfter.length?t.selectionsAfter.map((t=>t.map(e))):Vh,i);if(!t.changes)return qh.selection(n);let s=t.changes.map(e),r=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(r):r;return new qh(s,St.mapEffects(t.effects,e),o,t.startSelection.map(r),n)}const Hh=/^(input\.type|delete)($|\.)/;class Jh{constructor(t,e,i=0,n=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new Jh(this.done,this.undone):this}addChanges(t,e,i,n,s){let r=this.done,o=r[r.length-1];return r=o&&o.changes&&!o.changes.empty&&t.changes&&(!i||Hh.test(i))&&(!o.selectionsAfter.length&&e-this.prevTimei.push(t,e))),e.iterChangedRanges(((t,e,s,r)=>{for(let o=0;o=t&&s<=e&&(n=!0)}})),n}(o.changes,t.changes))||"input.type.compose"==i)?_h(r,r.length-1,n.minDepth,new qh(t.changes.compose(o.changes),Ih(t.effects,o.effects),o.mapped,o.startSelection,Vh)):_h(r,r.length,n.minDepth,t),new Jh(r,Vh,e,i)}addSelection(t,e,i,n){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:Vh;return s.length>0&&e-this.prevTimet.empty!=o.ranges[e].empty)).length)?this:new Jh(Gh(this.done,t),this.undone,e,i);var r,o}addMapping(t){return new Jh(Lh(this.done,t),Lh(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,i){let n=0==t?this.done:this.undone;if(0==n.length)return null;let s=n[n.length-1],r=s.selectionsAfter[0]||e.selection;if(i&&s.selectionsAfter.length)return e.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:Th.of({side:t,rest:Nh(n),selection:r}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let i=1==n.length?Vh:n.slice(0,n.length-1);return s.mapped&&(i=Lh(i,s.mapped)),e.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:Th.of({side:t,rest:i,selection:r}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}Jh.empty=new Jh(Vh,Vh);const Kh=[{key:"Mod-z",run:jh,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Uh,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Uh,preventDefault:!0},{key:"Mod-u",run:Eh,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:zh,preventDefault:!0}];function tc(t,e){return q.create(t.ranges.map(e),t.mainIndex)}function ec(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ic({state:t,dispatch:e},i){let n=tc(t.selection,i);return!n.eq(t.selection)&&(e(ec(t,n)),!0)}function nc(t,e){return q.cursor(e?t.to:t.from)}function sc(t,e){return ic(t,(i=>i.empty?t.moveByChar(i,e):nc(i,e)))}function rc(t){return t.textDirectionAt(t.state.selection.main.head)==Ni.LTR}const oc=t=>sc(t,!rc(t)),ac=t=>sc(t,rc(t));function lc(t,e){return ic(t,(i=>i.empty?t.moveByGroup(i,e):nc(i,e)))}function hc(t,e,i){if(e.type.prop(i))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function cc(t,e,i){let n,s,r=Ja(t).resolveInner(e.head),o=i?qo.closedBy:qo.openedBy;for(let a=e.head;;){let e=i?r.childAfter(a):r.childBefore(a);if(!e)break;hc(t,e,o)?r=e:a=i?e.to:e.from}return s=r.type.prop(o)&&(n=i?ph(t,r.from,1):ph(t,r.to,-1))&&n.matched?i?n.end.to:n.end.from:i?r.to:r.from,q.cursor(s,i?-1:1)}function dc(t,e){return ic(t,(i=>{if(!i.empty)return nc(i,e);let n=t.moveVertically(i,e);return n.head!=i.head?n:t.moveToLineBoundary(i,e)}))}const fc=t=>dc(t,!1),uc=t=>dc(t,!0);function pc(t){let e,i=t.scrollDOM.clientHeighti.empty?t.moveVertically(i,e,n.height):nc(i,e)));if(r.eq(s.selection))return!1;if(n.selfScroll){let e=t.coordsAtPos(s.selection.main.head),o=t.scrollDOM.getBoundingClientRect(),a=o.top+n.marginTop,l=o.bottom-n.marginBottom;e&&e.top>a&&e.bottomOc(t,!1),mc=t=>Oc(t,!0);function vc(t,e,i){let n=t.lineBlockAt(e.head),s=t.moveToLineBoundary(e,i);if(s.head==e.head&&s.head!=(i?n.to:n.from)&&(s=t.moveToLineBoundary(e,i,!1)),!i&&s.head==n.from&&n.length){let i=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;i&&e.head!=n.from+i&&(s=q.cursor(n.from+i))}return s}function wc(t,e){let i=tc(t.state.selection,(t=>{let i=e(t);return q.range(t.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)}));return!i.eq(t.state.selection)&&(t.dispatch(ec(t.state,i)),!0)}function bc(t,e){return wc(t,(i=>t.moveByChar(i,e)))}const Sc=t=>bc(t,!rc(t)),Qc=t=>bc(t,rc(t));function yc(t,e){return wc(t,(i=>t.moveByGroup(i,e)))}function xc(t,e){return wc(t,(i=>t.moveVertically(i,e)))}const kc=t=>xc(t,!1),$c=t=>xc(t,!0);function Pc(t,e){return wc(t,(i=>t.moveVertically(i,e,pc(t).height)))}const Zc=t=>Pc(t,!1),Cc=t=>Pc(t,!0),Yc=({state:t,dispatch:e})=>(e(ec(t,{anchor:0})),!0),Tc=({state:t,dispatch:e})=>(e(ec(t,{anchor:t.doc.length})),!0),Xc=({state:t,dispatch:e})=>(e(ec(t,{anchor:t.selection.main.anchor,head:0})),!0),Ac=({state:t,dispatch:e})=>(e(ec(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function Wc(t,e){if(t.state.readOnly)return!1;let i="delete.selection",{state:n}=t,s=n.changeByRange((n=>{let{from:s,to:r}=n;if(s==r){let o=e(n);os&&(i="delete.forward",o=Rc(t,o,!0)),s=Math.min(s,o),r=Math.max(r,o)}else s=Rc(t,s,!1),r=Rc(t,r,!0);return s==r?{range:n}:{changes:{from:s,to:r},range:q.cursor(s,se(t))))n.between(e,e,((t,n)=>{te&&(e=i?n:t)}));return e}const Mc=(t,e)=>Wc(t,(i=>{let n,s,r=i.from,{state:o}=t,a=o.doc.lineAt(r);if(!e&&r>a.from&&rMc(t,!1),jc=t=>Mc(t,!0),Uc=(t,e)=>Wc(t,(i=>{let n=i.head,{state:s}=t,r=s.doc.lineAt(n),o=s.charCategorizer(n);for(let t=null;;){if(n==(e?r.to:r.from)){n==i.head&&r.number!=(e?s.doc.lines:1)&&(n+=e?1:-1);break}let a=y(r.text,n-r.from,e)+r.from,l=r.text.slice(Math.min(n,a)-r.from,Math.max(n,a)-r.from),h=o(l);if(null!=t&&h!=t)break;" "==l&&n==i.head||(t=h),n=a}return n})),Ec=t=>Uc(t,!1);function zc(t){let e=[],i=-1;for(let n of t.selection.ranges){let s=t.doc.lineAt(n.from),r=t.doc.lineAt(n.to);if(n.empty||n.to!=r.from||(r=t.doc.lineAt(n.to-1)),i>=s.number){let t=e[e.length-1];t.to=r.to,t.ranges.push(n)}else e.push({from:s.from,to:r.to,ranges:[n]});i=r.number+1}return e}function qc(t,e,i){if(t.readOnly)return!1;let n=[],s=[];for(let r of zc(t)){if(i?r.to==t.doc.length:0==r.from)continue;let e=t.doc.lineAt(i?r.to+1:r.from-1),o=e.length+1;if(i){n.push({from:r.to,to:e.to},{from:r.from,insert:e.text+t.lineBreak});for(let e of r.ranges)s.push(q.range(Math.min(t.doc.length,e.anchor+o),Math.min(t.doc.length,e.head+o)))}else{n.push({from:e.from,to:r.from},{from:r.to,insert:t.lineBreak+e.text});for(let t of r.ranges)s.push(q.range(t.anchor-o,t.head-o))}}return!!n.length&&(e(t.update({changes:n,scrollIntoView:!0,selection:q.create(s,t.selection.mainIndex),userEvent:"move.line"})),!0)}function _c(t,e,i){if(t.readOnly)return!1;let n=[];for(let s of zc(t))i?n.push({from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}):n.push({from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)});return e(t.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ic=Vc(!1);function Vc(t){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let n=e.changeByRange((i=>{let{from:n,to:s}=i,r=e.doc.lineAt(n),o=!t&&n==s&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let i,n=Ja(t).resolveInner(e),s=n.childBefore(e),r=n.childAfter(e);return s&&r&&s.to<=e&&r.from>=e&&(i=s.type.prop(qo.closedBy))&&i.indexOf(r.name)>-1&&t.doc.lineAt(s.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(s.to,r.from))?{from:s.to,to:r.from}:null}(e,n);t&&(n=s=(s<=r.to?r:e.doc.lineAt(s)).to);let a=new pl(e,{simulateBreak:n,simulateDoubleBreak:!!o}),l=ul(a,n);for(null==l&&(l=Ht(/^\s*/.exec(e.doc.lineAt(n).text)[0],e.tabSize));sr.from&&n{let s=[];for(let o=n.from;o<=n.to;){let r=t.doc.lineAt(o);r.number>i&&(n.empty||n.to>r.from)&&(e(r,s,n),i=r.number),o=r.to+1}let r=t.changes(s);return{changes:s,range:q.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}}))}const Gc=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Bc(t,((e,i)=>{i.push({from:e.from,insert:t.facet(cl)})})),{userEvent:"input.indent"})),!0),Nc=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Bc(t,((e,i)=>{let n=/^\s*/.exec(e.text)[0];if(!n)return;let s=Ht(n,t.tabSize),r=0,o=fl(t,Math.max(0,s-dl(t)));for(;ric(t,(e=>cc(t.state,e,!rc(t)))),shift:t=>wc(t,(e=>cc(t.state,e,!rc(t))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>ic(t,(e=>cc(t.state,e,rc(t)))),shift:t=>wc(t,(e=>cc(t.state,e,rc(t))))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>qc(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>_c(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>qc(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>_c(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let i=t.selection,n=null;return i.ranges.length>1?n=q.create([i.main]):i.main.empty||(n=q.create([q.cursor(i.main.head)])),!!n&&(e(ec(t,n)),!0)}},{key:"Mod-Enter",run:Vc(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let i=zc(t).map((({from:e,to:i})=>q.range(e,Math.min(i+1,t.doc.length))));return e(t.update({selection:q.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let i=tc(t.selection,(e=>{var i;for(let n=Ja(t).resolveStack(e.from,1);n;n=n.next){let{node:t}=n;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(i=t.parent)||void 0===i?void 0:i.parent))return q.range(t.to,t.from)}return e}));return e(ec(t,i)),!0},preventDefault:!0},{key:"Mod-[",run:Nc},{key:"Mod-]",run:Gc},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Object.create(null),n=new pl(t,{overrideIndentation:t=>{let e=i[t];return null==e?-1:e}}),s=Bc(t,((e,s,r)=>{let o=ul(n,e.from);if(null==o)return;/\S/.test(e.text)||(o=0);let a=/^\s*/.exec(e.text)[0],l=fl(t,o);(a!=l||r.from{if(t.state.readOnly)return!1;let{state:e}=t,i=e.changes(zc(e).map((({from:t,to:i})=>(t>0?t--:it.moveVertically(e,!0))).map(i);return t.dispatch({changes:i,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>function(t,e,i){let n=!1,s=tc(t.selection,(e=>{let s=ph(t,e.head,-1)||ph(t,e.head,1)||e.head>0&&ph(t,e.head-1,1)||e.head{let{state:e}=t,i=e.doc.lineAt(e.selection.main.from),n=Ph(t.state,i.from);return n.line?xh(t):!!n.block&&$h(t)}},{key:"Alt-A",run:kh}].concat([{key:"ArrowLeft",run:oc,shift:Sc,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>lc(t,!rc(t)),shift:t=>yc(t,!rc(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>ic(t,(e=>vc(t,e,!rc(t)))),shift:t=>wc(t,(e=>vc(t,e,!rc(t)))),preventDefault:!0},{key:"ArrowRight",run:ac,shift:Qc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>lc(t,rc(t)),shift:t=>yc(t,rc(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>ic(t,(e=>vc(t,e,rc(t)))),shift:t=>wc(t,(e=>vc(t,e,rc(t)))),preventDefault:!0},{key:"ArrowUp",run:fc,shift:kc,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Yc,shift:Xc},{mac:"Ctrl-ArrowUp",run:gc,shift:Zc},{key:"ArrowDown",run:uc,shift:$c,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Tc,shift:Ac},{mac:"Ctrl-ArrowDown",run:mc,shift:Cc},{key:"PageUp",run:gc,shift:Zc},{key:"PageDown",run:mc,shift:Cc},{key:"Home",run:t=>ic(t,(e=>vc(t,e,!1))),shift:t=>wc(t,(e=>vc(t,e,!1))),preventDefault:!0},{key:"Mod-Home",run:Yc,shift:Xc},{key:"End",run:t=>ic(t,(e=>vc(t,e,!0))),shift:t=>wc(t,(e=>vc(t,e,!0))),preventDefault:!0},{key:"Mod-End",run:Tc,shift:Ac},{key:"Enter",run:Ic},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Dc,shift:Dc},{key:"Delete",run:jc},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Ec},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>Uc(t,!0)},{mac:"Mod-Backspace",run:t=>Wc(t,(e=>{let i=t.moveToLineBoundary(e,!1).head;return e.head>i?i:Math.max(0,e.head-1)}))},{mac:"Mod-Delete",run:t=>Wc(t,(e=>{let i=t.moveToLineBoundary(e,!0).head;return e.headic(t,(e=>q.cursor(t.lineBlockAt(e.head).from,1))),shift:t=>wc(t,(e=>q.cursor(t.lineBlockAt(e.head).from)))},{key:"Ctrl-e",run:t=>ic(t,(e=>q.cursor(t.lineBlockAt(e.head).to,-1))),shift:t=>wc(t,(e=>q.cursor(t.lineBlockAt(e.head).to)))},{key:"Ctrl-d",run:jc},{key:"Ctrl-h",run:Dc},{key:"Ctrl-k",run:t=>Wc(t,(e=>{let i=t.lineBlockAt(e.head).to;return e.head{if(t.readOnly)return!1;let i=t.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:h.of(["",""])},range:q.cursor(t.from)})));return e(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let i=e.from,n=t.doc.lineAt(i),s=i==n.from?i-1:y(n.text,i-n.from,!1)+n.from,r=i==n.to?i+1:y(n.text,i-n.from,!0)+n.from;return{changes:{from:s,to:r,insert:t.doc.slice(i,r).append(t.doc.slice(s,i))},range:q.cursor(r)}}));return!i.changes.empty&&(e(t.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:mc}].map((t=>({mac:t.key,run:t.run,shift:t.shift}))))),Fc={key:"Tab",run:Gc,shift:Nc};function Hc(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,i=arguments[1];if(i&&"object"==typeof i&&null==i.nodeType&&!Array.isArray(i)){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n];"string"==typeof s?t.setAttribute(n,s):null!=s&&(t[n]=s)}e++}for(;et.normalize("NFKD"):t=>t;class td{constructor(t,e,i=0,n=t.length,s,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(i,n),this.bufferStart=i,this.normalize=s?t=>s(Kc(t)):Kc,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Z(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=C(t),i=this.bufferStart+this.bufferPos;this.bufferPos+=Y(t);let n=this.normalize(e);for(let s=0,r=i;;s++){let t=n.charCodeAt(s),o=this.match(t,r);if(s==n.length-1){if(o)return this.value=o,this;break}r==i&&sthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let i=this.curLineStart+e.index,n=i+e[0].length;if(this.matchPos=ad(this.text,n+(i==n?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,n,e)))return this.value={from:i,to:n,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||n.to<=e){let n=new rd(e,t.sliceString(e,i));return sd.set(t,n),n}if(n.from==e&&n.to==i)return n;let{text:s,from:r}=n;return r>e&&(s=t.sliceString(e,r)+s,r=e),n.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let t=this.flat.from+e.index,i=t+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(t,i,e)))return this.value={from:t,to:i,match:e},this.matchPos=ad(this.text,i+(t==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=rd.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function ad(t,e){if(e>=t.length)return e;let i,n=t.lineAt(e);for(;e=56320&&i<57344;)e++;return e}function ld(t){let e=Hc("input",{class:"cm-textfield",name:"line",value:String(t.state.doc.lineAt(t.state.selection.main.head).number)});function i(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!i)return;let{state:n}=t,s=n.doc.lineAt(n.selection.main.head),[,r,o,a,l]=i,h=a?+a.slice(1):0,c=o?+o:s.number;if(o&&l){let t=c/100;r&&(t=t*("-"==r?-1:1)+s.number/n.doc.lines),c=Math.round(n.doc.lines*t)}else o&&r&&(c=c*("-"==r?-1:1)+s.number);let d=n.doc.line(Math.max(1,Math.min(n.doc.lines,c))),f=q.cursor(d.from+Math.max(0,Math.min(h,d.length)));t.dispatch({effects:[hd.of(!1),Ns.scrollIntoView(f.from,{y:"center"})],selection:f}),t.focus()}return{dom:Hc("form",{class:"cm-gotoLine",onkeydown:e=>{27==e.keyCode?(e.preventDefault(),t.dispatch({effects:hd.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),i())},onsubmit:t=>{t.preventDefault(),i()}},Hc("label",t.state.phrase("Go to line"),": ",e)," ",Hc("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}"undefined"!=typeof Symbol&&(nd.prototype[Symbol.iterator]=od.prototype[Symbol.iterator]=function(){return this});const hd=St.define(),cd=J.define({create:()=>!0,update(t,e){for(let i of e.effects)i.is(hd)&&(t=i.value);return t},provide:t=>go.from(t,(t=>t?ld:null))}),dd=Ns.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),fd={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ud=V.define({combine:t=>Wt(t,fd,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})});function pd(t){let e=[wd,vd];return t&&e.push(ud.of(t)),e}const Od=di.mark({class:"cm-selectionMatch"}),gd=di.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function md(t,e,i,n){return!(0!=i&&t(e.sliceDoc(i-1,i))==Ct.Word||n!=e.doc.length&&t(e.sliceDoc(n,n+1))==Ct.Word)}const vd=Ri.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ud),{state:i}=t,n=i.selection;if(n.ranges.length>1)return di.none;let s,r=n.main,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return di.none;let t=i.wordAt(r.head);if(!t)return di.none;o=i.charCategorizer(r.head),s=i.sliceDoc(t.from,t.to)}else{let t=r.to-r.from;if(t200)return di.none;if(e.wholeWords){if(s=i.sliceDoc(r.from,r.to),o=i.charCategorizer(r.head),!md(o,i,r.from,r.to)||!function(t,e,i,n){return t(e.sliceDoc(i,i+1))==Ct.Word&&t(e.sliceDoc(n-1,n))==Ct.Word}(o,i,r.from,r.to))return di.none}else if(s=i.sliceDoc(r.from,r.to).trim(),!s)return di.none}let a=[];for(let l of t.visibleRanges){let t=new td(i.doc,s,l.from,l.to);for(;!t.next().done;){let{from:n,to:s}=t.value;if((!o||md(o,i,n,s))&&(r.empty&&n<=r.from&&s>=r.to?a.push(gd.range(n,s)):(n>=r.to||s<=r.from)&&a.push(Od.range(n,s)),a.length>e.maxMatches))return di.none}}return di.set(a)}},{decorations:t=>t.decorations}),wd=Ns.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const bd=V.define({combine:t=>Wt(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Ld(t),scrollToMatch:t=>Ns.scrollIntoView(t)})});class Sd{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(t){try{return new RegExp(t,id),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,((t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"))}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new Zd(this):new xd(this)}getCursor(t,e=0,i){let n=t.doc?t:At.create({doc:t});return null==i&&(i=n.doc.length),this.regexp?kd(this,n,e,i):yd(this,n,e,i)}}class Qd{constructor(t){this.spec=t}}function yd(t,e,i,n){return new td(e.doc,t.unquoted,i,n,t.caseSensitive?void 0:t=>t.toLowerCase(),t.wholeWord?(s=e.doc,r=e.charCategorizer(e.selection.main.head),(t,e,i,n)=>((n>t||n+i.length=e)return null;n.push(i.value)}return n}highlight(t,e,i,n){let s=yd(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,t.doc.length));for(;!s.next().done;)n(s.value.from,s.value.to)}}function kd(t,e,i,n){return new nd(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(s=e.charCategorizer(e.selection.main.head),(t,e,i)=>!i[0].length||(s($d(i.input,i.index))!=Ct.Word||s(Pd(i.input,i.index))!=Ct.Word)&&(s(Pd(i.input,i.index+i[0].length))!=Ct.Word||s($d(i.input,i.index+i[0].length))!=Ct.Word)):void 0},i,n);var s}function $d(t,e){return t.slice(y(t,e,!1),e)}function Pd(t,e){return t.slice(e,y(t,e))}class Zd extends Qd{nextMatch(t,e,i){let n=kd(this.spec,t,i,t.doc.length).next();return n.done&&(n=kd(this.spec,t,0,e).next()),n.done?null:n.value}prevMatchInRange(t,e,i){for(let n=1;;n++){let s=Math.max(e,i-1e4*n),r=kd(this.spec,t,s,i),o=null;for(;!r.next().done;)o=r.value;if(o&&(s==e||o.from>s+10))return o;if(s==e)return null}}prevMatch(t,e,i){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,i,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((e,i)=>"$"==i?"$":"&"==i?t.match[0]:"0"!=i&&+i=e)return null;n.push(i.value)}return n}highlight(t,e,i,n){let s=kd(this.spec,t,Math.max(0,e-250),Math.min(i+250,t.doc.length));for(;!s.next().done;)n(s.value.from,s.value.to)}}const Cd=St.define(),Yd=St.define(),Td=J.define({create:t=>new Xd(_d(t).create(),null),update(t,e){for(let i of e.effects)i.is(Cd)?t=new Xd(i.value.create(),t.panel):i.is(Yd)&&(t=new Xd(t.query,i.value?qd:null));return t},provide:t=>go.from(t,(t=>t.panel))});class Xd{constructor(t,e){this.query=t,this.panel=e}}const Ad=di.mark({class:"cm-searchMatch"}),Wd=di.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Rd=Ri.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Td))}update(t){let e=t.state.field(Td);(e!=t.startState.field(Td)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return di.none;let{view:i}=this,n=new Et;for(let s=0,r=i.visibleRanges,o=r.length;sr[s+1].from-500;)a=r[++s].to;t.highlight(i.state,e,a,((t,e)=>{let s=i.state.selection.ranges.some((i=>i.from==t&&i.to==e));n.add(t,e,s?Wd:Ad)}))}return n.finish()}},{decorations:t=>t.decorations});function Md(t){return e=>{let i=e.state.field(Td,!1);return i&&i.query.spec.valid?t(e,i):Bd(e)}}const Dd=Md(((t,{query:e})=>{let{to:i}=t.state.selection.main,n=e.nextMatch(t.state,i,i);if(!n)return!1;let s=q.single(n.from,n.to),r=t.state.facet(bd);return t.dispatch({selection:s,effects:[Kd(t,n),r.scrollToMatch(s.main,t)],userEvent:"select.search"}),Vd(t),!0})),jd=Md(((t,{query:e})=>{let{state:i}=t,{from:n}=i.selection.main,s=e.prevMatch(i,n,n);if(!s)return!1;let r=q.single(s.from,s.to),o=t.state.facet(bd);return t.dispatch({selection:r,effects:[Kd(t,s),o.scrollToMatch(r.main,t)],userEvent:"select.search"}),Vd(t),!0})),Ud=Md(((t,{query:e})=>{let i=e.matchAll(t.state,1e3);return!(!i||!i.length)&&(t.dispatch({selection:q.create(i.map((t=>q.range(t.from,t.to)))),userEvent:"select.search.matches"}),!0)})),Ed=Md(((t,{query:e})=>{let{state:i}=t,{from:n,to:s}=i.selection.main;if(i.readOnly)return!1;let r=e.nextMatch(i,n,n);if(!r)return!1;let o,a,l=[],h=[];if(r.from==n&&r.to==s&&(a=i.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:a}),r=e.nextMatch(i,r.from,r.to),h.push(Ns.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(n).number)+"."))),r){let e=0==l.length||l[0].from>=r.to?0:r.to-r.from-a.length;o=q.single(r.from-e,r.to-e),h.push(Kd(t,r)),h.push(i.facet(bd).scrollToMatch(o.main,t))}return t.dispatch({changes:l,selection:o,effects:h,userEvent:"input.replace"}),!0})),zd=Md(((t,{query:e})=>{if(t.state.readOnly)return!1;let i=e.matchAll(t.state,1e9).map((t=>{let{from:i,to:n}=t;return{from:i,to:n,insert:e.getReplacement(t)}}));if(!i.length)return!1;let n=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Ns.announce.of(n),userEvent:"input.replace.all"}),!0}));function qd(t){return t.state.facet(bd).createPanel(t)}function _d(t,e){var i,n,s,r,o;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let h=t.facet(bd);return new Sd({search:(null!==(i=null==e?void 0:e.literal)&&void 0!==i?i:h.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(n=null==e?void 0:e.caseSensitive)&&void 0!==n?n:h.caseSensitive,literal:null!==(s=null==e?void 0:e.literal)&&void 0!==s?s:h.literal,regexp:null!==(r=null==e?void 0:e.regexp)&&void 0!==r?r:h.regexp,wholeWord:null!==(o=null==e?void 0:e.wholeWord)&&void 0!==o?o:h.wholeWord})}function Id(t){let e=fo(t,qd);return e&&e.dom.querySelector("[main-field]")}function Vd(t){let e=Id(t);e&&e==t.root.activeElement&&e.select()}const Bd=t=>{let e=t.state.field(Td,!1);if(e&&e.panel){let i=Id(t);if(i&&i!=t.root.activeElement){let n=_d(t.state,e.query.spec);n.valid&&t.dispatch({effects:Cd.of(n)}),i.focus(),i.select()}}else t.dispatch({effects:[Yd.of(!0),e?Cd.of(_d(t.state,e.query.spec)):St.appendConfig.of(ef)]});return!0},Gd=t=>{let e=t.state.field(Td,!1);if(!e||!e.panel)return!1;let i=fo(t,qd);return i&&i.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Yd.of(!1)}),!0},Nd=[{key:"Mod-f",run:Bd,scope:"editor search-panel"},{key:"F3",run:Dd,shift:jd,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Dd,shift:jd,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Gd,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:t,dispatch:e})=>{let i=t.selection;if(i.ranges.length>1||i.main.empty)return!1;let{from:n,to:s}=i.main,r=[],o=0;for(let a=new td(t.doc,t.sliceDoc(n,s));!a.next().done;){if(r.length>1e3)return!1;a.value.from==n&&(o=r.length),r.push(q.range(a.value.from,a.value.to))}return e(t.update({selection:q.create(r,o),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:t=>{let e=fo(t,ld);if(!e){let i=[hd.of(!0)];null==t.state.field(cd,!1)&&i.push(St.appendConfig.of([cd,dd])),t.dispatch({effects:i}),e=fo(t,ld)}return e&&e.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:t,dispatch:e})=>{let{ranges:i}=t.selection;if(i.some((t=>t.from===t.to)))return(({state:t,dispatch:e})=>{let{selection:i}=t,n=q.create(i.ranges.map((e=>t.wordAt(e.head)||q.cursor(e.head))),i.mainIndex);return!n.eq(i)&&(e(t.update({selection:n})),!0)})({state:t,dispatch:e});let n=t.sliceDoc(i[0].from,i[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=n)))return!1;let s=function(t,e){let{main:i,ranges:n}=t.selection,s=t.wordAt(i.head),r=s&&s.from==i.from&&s.to==i.to;for(let o=!1,a=new td(t.doc,e,n[n.length-1].to);;){if(a.next(),!a.done){if(o&&n.some((t=>t.from==a.value.from)))continue;if(r){let e=t.wordAt(a.value.from);if(!e||e.from!=a.value.from||e.to!=a.value.to)continue}return a.value}if(o)return null;a=new td(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}}(t,n);return!!s&&(e(t.update({selection:t.selection.addRange(q.range(s.from,s.to),!1),effects:Ns.scrollIntoView(s.to)})),!0)},preventDefault:!0}];class Ld{constructor(t){this.view=t;let e=this.query=t.state.field(Td).query.spec;function i(t,e,i){return Hc("button",{class:"cm-button",name:t,onclick:e,type:"button"},i)}this.commit=this.commit.bind(this),this.searchField=Hc("input",{value:e.search,placeholder:Fd(t,"Find"),"aria-label":Fd(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Hc("input",{value:e.replace,placeholder:Fd(t,"Replace"),"aria-label":Fd(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Hc("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Hc("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Hc("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=Hc("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,i("next",(()=>Dd(t)),[Fd(t,"next")]),i("prev",(()=>jd(t)),[Fd(t,"previous")]),i("select",(()=>Ud(t)),[Fd(t,"all")]),Hc("label",null,[this.caseField,Fd(t,"match case")]),Hc("label",null,[this.reField,Fd(t,"regexp")]),Hc("label",null,[this.wordField,Fd(t,"by word")]),...t.state.readOnly?[]:[Hc("br"),this.replaceField,i("replace",(()=>Ed(t)),[Fd(t,"replace")]),i("replaceAll",(()=>zd(t)),[Fd(t,"replace all")])],Hc("button",{name:"close",onclick:()=>Gd(t),"aria-label":Fd(t,"close"),type:"button"},["×"])])}commit(){let t=new Sd({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:Cd.of(t)}))}keydown(t){var e,i,n;e=this.view,i=t,n="search-panel",ar(sr(e.state),i,e,n)?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?jd:Dd)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),Ed(this.view))}update(t){for(let e of t.transactions)for(let t of e.effects)t.is(Cd)&&!t.value.eq(this.query)&&this.setQuery(t.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(bd).top}}function Fd(t,e){return t.state.phrase(e)}const Hd=30,Jd=/[\s\.,:;?!]/;function Kd(t,{from:e,to:i}){let n=t.state.doc.lineAt(e),s=t.state.doc.lineAt(i).to,r=Math.max(n.from,e-Hd),o=Math.min(s,i+Hd),a=t.state.sliceDoc(r,o);if(r!=n.from)for(let l=0;la.length-Hd;l--)if(!Jd.test(a[l-1])&&Jd.test(a[l])){a=a.slice(0,l);break}return Ns.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${n.number}.`)}const tf=Ns.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ef=[Td,st.low(Rd),tf];class nf{constructor(t,e,i){this.state=t,this.pos=e,this.explicit=i,this.abortListeners=[]}tokenBefore(t){let e=Ja(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),n=e.text.slice(i-e.from,this.pos-e.from),s=n.search(lf(t,!1));return s<0?null:{from:i+s,to:this.pos,text:n.slice(s)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function sf(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function rf(t){let e=t.map((t=>"string"==typeof t?{label:t}:t)),[i,n]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),i=Object.create(null);for(let{label:s}of t){e[s[0]]=!0;for(let t=1;t{let s=t.matchBefore(n);return s||t.explicit?{from:s?s.from:t.pos,options:e,validFor:i}:null}}class of{constructor(t,e,i,n){this.completion=t,this.source=e,this.match=i,this.score=n}}function af(t){return t.selection.main.from}function lf(t,e){var i;let{source:n}=t,s=e&&"^"!=n[0],r="$"!=n[n.length-1];return s||r?new RegExp(`${s?"^":""}(?:${n})${r?"$":""}`,null!==(i=t.flags)&&void 0!==i?i:t.ignoreCase?"i":""):t}const hf=vt.define();const cf=new WeakMap;function df(t){if(!Array.isArray(t))return t;let e=cf.get(t);return e||cf.set(t,e=rf(t)),e}const ff=St.define(),uf=St.define();class pf{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&n<=57||n>=97&&n<=122?2:n>=65&&n<=90?1:0:(l=C(n))!=l.toLowerCase()?1:l!=l.toUpperCase()?2:0;(!m||1==v&&O||0==w&&0!=v)&&(e[c]==n||i[c]==n&&(d=!0)?r[c++]=m:r.length&&(g=!1)),w=v,m+=Y(n)}return c==a&&0==r[0]&&g?this.result((d?-200:0)-100,r,t):f==a&&0==u?this.ret(-200-t.length+(p==t.length?0:-100),[0,p]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):f==a?this.ret(-900-t.length,[u,p]):c==a?this.result((d?-200:0)-100-700+(g?0:-1100),r,t):2!=e.length&&this.result((n[0]?-700:0)-200-1100,n,t)}result(t,e,i){let n=[],s=0;for(let r of e){let t=r+(this.astral?Y(Z(i,r)):1);s&&n[s-1]==r?n[s-1]=t:(n[s++]=r,n[s++]=t)}return this.ret(t-i.length,n)}}const Of=V.define({combine:t=>Wt(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:mf,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>gf(t(i),e(i)),optionClass:(t,e)=>i=>gf(t(i),e(i)),addToOptions:(t,e)=>t.concat(e)})});function gf(t,e){return t?e?t+" "+e:t:e}function mf(t,e,i,n,s,r){let o,a,l=t.textDirection==Ni.RTL,h=l,c=!1,d="top",f=e.left-s.left,u=s.right-e.right,p=n.right-n.left,O=n.bottom-n.top;if(h&&f=O||t>e.top?o=i.bottom-e.top:(d="bottom",o=e.bottom-i.top)}return{style:`${d}: ${o/((e.bottom-e.top)/r.offsetHeight)}px; max-width: ${a/((e.right-e.left)/r.offsetWidth)}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":h?"left":"right")}}function vf(t,e,i){if(t<=i)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/i);return{from:t*i,to:(t+1)*i}}let n=Math.floor((t-e)/i);return{from:t-(n+1)*i,to:t-n*i}}class wf{constructor(t,e,i){this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let n=t.state.field(e),{options:s,selected:r}=n.open,o=t.state.facet(Of);this.optionContent=function(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t))),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,i,n){let s=document.createElement("span");s.className="cm-completionLabel";let r=t.displayLabel||t.label,o=0;for(let a=0;ao&&s.appendChild(document.createTextNode(r.slice(o,t)));let i=s.appendChild(document.createElement("span"));i.appendChild(document.createTextNode(r.slice(t,e))),i.className="cm-completionMatchedText",o=e}return ot.position-e.position)).map((t=>t.render))}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=vf(s.length,r,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(i=>{let{options:n}=t.state.field(e).open;for(let e,s=i.target;s&&s!=this.dom;s=s.parentNode)if("LI"==s.nodeName&&(e=/-(\d+)$/.exec(s.id))&&+e[1]{let i=t.state.field(this.stateField,!1);i&&i.tooltip&&t.state.facet(Of).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:uf.of(null)})})),this.showOptions(s,n.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let i=t.state.field(this.stateField),n=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=n){let{options:s,selected:r,disabled:o}=i.open;n.open&&n.open.options==s||(this.range=vf(s.length,r,t.state.facet(Of).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),o!=(null===(e=n.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=vf(e.options.length,e.selected,this.view.state.facet(Of).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:n}=i;if(!n)return;let s="string"==typeof n?document.createTextNode(n):n(i);if(!s)return;"then"in s?s.then((e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,i)})).catch((t=>Ti(this.view.state,t,"completion info"))):this.addInfoPane(s,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",null!=t.nodeType)i.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:n}=t;i.appendChild(e),this.infoDestroy=n||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,n=this.range.from;i;i=i.nextSibling,n++)"LI"==i.nodeName&&i.id?n==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected"):n--;return e&&function(t,e){let i=t.getBoundingClientRect(),n=e.getBoundingClientRect(),s=i.height/t.offsetHeight;n.topi.bottom&&(t.scrollTop+=(n.bottom-i.bottom)/s)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),n=t.getBoundingClientRect(),s=this.space;if(!s){let t=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}return n.top>Math.min(s.bottom,e.bottom)-10||n.bottomi.from||0==i.from))if(s=t,"string"!=typeof l&&l.header)n.appendChild(l.header(l));else{n.appendChild(document.createElement("completion-section")).textContent=t}}const h=n.appendChild(document.createElement("li"));h.id=e+"-"+r,h.setAttribute("role","option");let c=this.optionClass(o);c&&(h.className=c);for(let t of this.optionContent){let e=t(o,this.view.state,this.view,a);e&&h.appendChild(e)}}return i.from&&n.classList.add("cm-completionListIncompleteTop"),i.tonew wf(i,t,e)}function Sf(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class Qf{constructor(t,e,i,n,s,r){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=n,this.selected=s,this.disabled=r}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new Qf(this.options,kf(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,n,s){let r=function(t,e){let i=[],n=null,s=t=>{i.push(t);let{section:e}=t.completion;if(e){n||(n=[]);let t="string"==typeof e?e:e.name;n.some((e=>e.name==t))||n.push("string"==typeof e?{name:t}:e)}};for(let l of t)if(l.hasResult()){let t=l.result.getMatch;if(!1===l.result.filter)for(let e of l.result.options)s(new of(e,l.source,t?t(e):[],1e9-i.length));else{let i=new pf(e.sliceDoc(l.from,l.to));for(let e of l.result.options)if(i.match(e.label)){let n=e.displayLabel?t?t(e,i.matched):[]:i.matched;s(new of(e,l.source,n,i.score+(e.boost||0)))}}}if(n){let t=Object.create(null),e=0,s=(t,e)=>{var i,n;return(null!==(i=t.rank)&&void 0!==i?i:1e9)-(null!==(n=e.rank)&&void 0!==n?n:1e9)||(t.namee.score-t.score||a(t.completion,e.completion)))){let t=l.completion;!o||o.label!=t.label||o.detail!=t.detail||null!=o.type&&null!=t.type&&o.type!=t.type||o.apply!=t.apply||o.boost!=t.boost?r.push(l):Sf(l.completion)>Sf(o)&&(r[r.length-1]=l),o=l.completion}return r}(t,e);if(!r.length)return n&&t.some((t=>1==t.state))?new Qf(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let o=e.facet(Of).selectOnOpen?0:-1;if(n&&n.selected!=o&&-1!=n.selected){let t=n.options[n.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t),1e8),create:Wf,above:s.aboveCursor},n?n.timestamp:Date.now(),o,!1)}map(t){return new Qf(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class yf{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new yf($f,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,i=e.facet(Of),n=(i.override||e.languageDataAt("autocomplete",af(e)).map(df)).map((e=>(this.active.find((t=>t.source==e))||new Zf(e,this.active.some((t=>0!=t.state))?1:0)).update(t,i)));n.length==this.active.length&&n.every(((t,e)=>t==this.active[e]))&&(n=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||n.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!function(t,e){if(t==e)return!0;for(let i=0,n=0;;){for(;i1==t.state))&&(s=null),!s&&n.every((t=>1!=t.state))&&n.some((t=>t.hasResult()))&&(n=n.map((t=>t.hasResult()?new Zf(t.source,0):t)));for(let r of t.effects)r.is(Tf)&&(s=s&&s.setSelected(r.value,this.id));return n==this.active&&s==this.open?this:new yf(n,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:xf}}const xf={"aria-autocomplete":"list"};function kf(t,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(i["aria-activedescendant"]=t+"-"+e),i}const $f=[];function Pf(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class Zf{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=Pf(t),n=this;i?n=n.handleUserEvent(t,i,e):t.docChanged?n=n.handleChange(t):t.selection&&0!=n.state&&(n=new Zf(n.source,0));for(let s of t.effects)if(s.is(ff))n=new Zf(n.source,1,s.value?af(t.state):-1);else if(s.is(uf))n=new Zf(n.source,0);else if(s.is(Yf))for(let t of s.value)t.source==n.source&&(n=t);return n}handleUserEvent(t,e,i){return"delete"!=e&&i.activateOnTyping?new Zf(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(af(t.startState))?new Zf(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Zf(this.source,this.state,t.mapPos(this.explicitPos))}}class Cf extends Zf{constructor(t,e,i,n,s){super(t,2,e),this.result=i,this.from=n,this.to=s}hasResult(){return!0}handleUserEvent(t,e,i){var n;let s=t.changes.mapPos(this.from),r=t.changes.mapPos(this.to,1),o=af(t.state);if((this.explicitPos<0?o<=s:or||"delete"==e&&af(t.startState)==this.from)return new Zf(this.source,"input"==e&&i.activateOnTyping?1:0);let a,l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return function(t,e,i,n){if(!t)return!1;let s=e.sliceDoc(i,n);return"function"==typeof t?t(s,i,n,e):lf(t,!0).test(s)}(this.result.validFor,t.state,s,r)?new Cf(this.source,l,this.result,s,r):this.result.update&&(a=this.result.update(this.result,s,r,new nf(t.state,o,l>=0)))?new Cf(this.source,l,a,a.from,null!==(n=a.to)&&void 0!==n?n:af(t.state)):new Zf(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Zf(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Cf(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}const Yf=St.define({map:(t,e)=>t.map((t=>t.map(e)))}),Tf=St.define(),Xf=J.define({create:()=>yf.start(),update:(t,e)=>t.update(e),provide:t=>[eo.from(t,(t=>t.tooltip)),Ns.contentAttributes.from(t,(t=>t.attrs))]});function Af(t,e){const i=e.completion.apply||e.completion.label;let n=t.state.field(Xf).active.find((t=>t.source==e.source));return n instanceof Cf&&("string"==typeof i?t.dispatch(Object.assign(Object.assign({},function(t,e,i,n){let{main:s}=t.selection,r=i-s.from,o=n-s.from;return Object.assign(Object.assign({},t.changeByRange((a=>a!=s&&i!=n&&t.sliceDoc(a.from+r,a.from+o)!=t.sliceDoc(i,n)?{range:a}:{changes:{from:a.from+r,to:n==s.from?a.to:a.from+o,insert:e},range:q.cursor(a.from+r+e.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,i,n.from,n.to)),{annotations:hf.of(e.completion)})):i(t,e.completion,n.from,n.to),!0)}const Wf=bf(Xf,Af);function Rf(t,e="option"){return i=>{let n=i.state.field(Xf,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+r*(t?1:-1):t?0:o-1;return a<0?a="page"==e?0:o-1:a>=o&&(a="page"==e?o-1:0),i.dispatch({effects:Tf.of(a)}),!0}}class Mf{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const Df=Ri.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Xf).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(Xf);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Xf)==e)return;let i=t.transactions.some((t=>(t.selection||t.docChanged)&&!Pf(t)));for(let s=0;s50&&Date.now()-e.time>1e3){for(let t of e.context.abortListeners)try{t()}catch(n){Ti(this.view.state,n)}e.context.abortListeners=null,this.running.splice(s--,1)}else e.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some((t=>1==t.state&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let s of t.transactions)"input"==Pf(s)?this.composing=2:2==this.composing&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Xf);for(let i of e.active)1!=i.state||this.running.some((t=>t.active.source==i.source))||this.startQuery(i)}startQuery(t){let{state:e}=this.view,i=af(e),n=new nf(e,i,t.explicitPos==i),s=new Mf(t,n);this.running.push(s),Promise.resolve(t.source(n)).then((t=>{s.context.aborted||(s.done=t||null,this.scheduleAccept())}),(t=>{this.view.dispatch({effects:uf.of(null)}),Ti(this.view.state,t)}))}scheduleAccept(){this.running.every((t=>void 0!==t.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(Of).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],i=this.view.state.facet(Of);for(let n=0;nt.source==s.active.source));if(r&&1==r.state)if(null==s.done){let t=new Zf(s.active.source,0);for(let e of s.updates)t=t.update(e,i);1!=t.state&&e.push(t)}else this.startQuery(r)}e.length&&this.view.dispatch({effects:Yf.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Xf,!1);if(e&&e.tooltip&&this.view.state.facet(Of).closeOnBlur){let i=e.open&&lo(this.view,e.open.tooltip);i&&i.dom.contains(t.relatedTarget)||this.view.dispatch({effects:uf.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:ff.of(!1)})),20),this.composing=0}}}),jf=Ns.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Uf{constructor(t,e,i,n){this.field=t,this.line=e,this.from=i,this.to=n}}class Ef{constructor(t,e,i){this.field=t,this.from=e,this.to=i}map(t){let e=t.mapPos(this.from,-1,X.TrackDel),i=t.mapPos(this.to,1,X.TrackDel);return null==e||null==i?null:new Ef(this.field,e,i)}}class zf{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let i=[],n=[e],s=t.doc.lineAt(e),r=/^\s*/.exec(s.text)[0];for(let o of this.lines){if(i.length){let i=r,s=/^\t*/.exec(o)[0].length;for(let e=0;enew Ef(t.field,n[t.line]+t.from,n[t.line]+t.to)))}}static parse(t){let e,i=[],n=[],s=[];for(let r of t.split(/\r\n?|\n/)){for(;e=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(r);){let t=e[1]?+e[1]:null,o=e[2]||e[3]||"",a=-1;for(let e=0;e=a&&t.field++}s.push(new Uf(a,n.length,e.index,e.index+o.length)),r=r.slice(0,e.index)+o+r.slice(e.index+e[0].length)}for(let t;t=/\\([{}])/.exec(r);){r=r.slice(0,t.index)+t[1]+r.slice(t.index+t[0].length);for(let e of s)e.line==n.length&&e.from>t.index&&(e.from--,e.to--)}n.push(r)}return new zf(n,s)}}let qf=di.widget({widget:new class extends hi{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),_f=di.mark({class:"cm-snippetField"});class If{constructor(t,e){this.ranges=t,this.active=e,this.deco=di.set(t.map((t=>(t.from==t.to?qf:_f).range(t.from,t.to))))}map(t){let e=[];for(let i of this.ranges){let n=i.map(t);if(!n)return null;e.push(n)}return new If(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const Vf=St.define({map:(t,e)=>t&&t.map(e)}),Bf=St.define(),Gf=J.define({create:()=>null,update(t,e){for(let i of e.effects){if(i.is(Vf))return i.value;if(i.is(Bf)&&t)return new If(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Ns.decorations.from(t,(t=>t?t.deco:di.none))});function Nf(t,e){return q.create(t.filter((t=>t.field==e)).map((t=>q.range(t.from,t.to))))}function Lf(t){let e=zf.parse(t);return(t,i,n,s)=>{let{text:r,ranges:o}=e.instantiate(t.state,n),a={changes:{from:n,to:s,insert:h.of(r)},scrollIntoView:!0,annotations:i?hf.of(i):void 0};if(o.length&&(a.selection=Nf(o,0)),o.length>1){let e=new If(o,0),i=a.effects=[Vf.of(e)];void 0===t.state.field(Gf,!1)&&i.push(St.appendConfig.of([Gf,Kf,eu,jf]))}t.dispatch(t.state.update(a))}}function Ff(t){return({state:e,dispatch:i})=>{let n=e.field(Gf,!1);if(!n||t<0&&0==n.active)return!1;let s=n.active+t,r=t>0&&!n.ranges.some((e=>e.field==s+t));return i(e.update({selection:Nf(n.ranges,s),effects:Vf.of(r?null:new If(n.ranges,s)),scrollIntoView:!0})),!0}}const Hf=[{key:"Tab",run:Ff(1),shift:Ff(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(Gf,!1)&&(e(t.update({effects:Vf.of(null)})),!0)}],Jf=V.define({combine:t=>t.length?t[0]:Hf}),Kf=st.highest(ir.compute([Jf],(t=>t.facet(Jf))));function tu(t,e){return Object.assign(Object.assign({},e),{apply:Lf(t)})}const eu=Ns.domEventHandlers({mousedown(t,e){let i,n=e.state.field(Gf,!1);if(!n||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let s=n.ranges.find((t=>t.from<=i&&t.to>=i));return!(!s||s.field==n.active)&&(e.dispatch({selection:Nf(n.ranges,s.field),effects:Vf.of(n.ranges.some((t=>t.field>s.field))?new If(n.ranges,s.field):null),scrollIntoView:!0}),!0)}}),iu={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},nu=St.define({map(t,e){let i=e.mapPos(t,-1,X.TrackAfter);return null==i?void 0:i}}),su=new class extends Rt{};su.startSide=1,su.endSide=-1;const ru=J.define({create:()=>Ut.empty,update(t,e){if(t=t.map(e.changes),e.selection){let i=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=i.from&&t<=i.to})}for(let i of e.effects)i.is(nu)&&(t=t.update({add:[su.range(i.value,i.value+1)]}));return t}});const ou="()[]{}<>";function au(t){for(let e=0;e{if((hu?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let s=t.state.selection.main;if(n.length>2||2==n.length&&1==Y(Z(n,0))||e!=s.from||i!=s.to)return!1;let r=function(t,e){let i=lu(t,t.selection.main.head),n=i.brackets||iu.brackets;for(let s of n){let r=au(Z(s,0));if(e==s)return r==s?gu(t,s,n.indexOf(s+s+s)>-1,i):pu(t,s,r,i.before||iu.before);if(e==r&&fu(t,t.selection.main.from))return Ou(t,s,r)}return null}(t.state,n);return!!r&&(t.dispatch(r),!0)})),du=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=lu(t,t.selection.main.head).brackets||iu.brackets,n=null,s=t.changeByRange((e=>{if(e.empty){let n=function(t,e){let i=t.sliceString(e-2,e);return Y(Z(i,0))==i.length?i:i.slice(1)}(t.doc,e.head);for(let s of i)if(s==n&&uu(t.doc,e.head)==au(Z(s,0)))return{changes:{from:e.head-s.length,to:e.head+s.length},range:q.cursor(e.head-s.length)}}return{range:n=e}}));return n||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!n}}];function fu(t,e){let i=!1;return t.field(ru).between(0,t.doc.length,(t=>{t==e&&(i=!0)})),i}function uu(t,e){let i=t.sliceString(e,e+2);return i.slice(0,Y(Z(i,0)))}function pu(t,e,i,n){let s=null,r=t.changeByRange((r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:i,from:r.to}],effects:nu.of(r.to+e.length),range:q.range(r.anchor+e.length,r.head+e.length)};let o=uu(t.doc,r.head);return!o||/\s/.test(o)||n.indexOf(o)>-1?{changes:{insert:e+i,from:r.head},effects:nu.of(r.head+e.length),range:q.cursor(r.head+e.length)}:{range:s=r}}));return s?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Ou(t,e,i){let n=null,s=t.changeByRange((e=>e.empty&&uu(t.doc,e.head)==i?{changes:{from:e.head,to:e.head+i.length,insert:i},range:q.cursor(e.head+i.length)}:n={range:e}));return n?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function gu(t,e,i,n){let s=n.stringPrefixes||iu.stringPrefixes,r=null,o=t.changeByRange((n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:nu.of(n.to+e.length),range:q.range(n.anchor+e.length,n.head+e.length)};let o,a=n.head,l=uu(t.doc,a);if(l==e){if(mu(t,a))return{changes:{insert:e+e,from:a},effects:nu.of(a+e.length),range:q.cursor(a+e.length)};if(fu(t,a)){let n=i&&t.sliceDoc(a,a+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+n.length,insert:n},range:q.cursor(a+n.length)}}}else{if(i&&t.sliceDoc(a-2*e.length,a)==e+e&&(o=vu(t,a-2*e.length,s))>-1&&mu(t,o))return{changes:{insert:e+e+e+e,from:a},effects:nu.of(a+e.length),range:q.cursor(a+e.length)};if(t.charCategorizer(a)(l)!=Ct.Word&&vu(t,a,s)>-1&&!function(t,e,i,n){let s=Ja(t).resolveInner(e,-1),r=n.reduce(((t,e)=>Math.max(t,e.length)),0);for(let o=0;o<5;o++){let o=t.sliceDoc(s.from,Math.min(s.to,s.from+i.length+r)),a=o.indexOf(i);if(!a||a>-1&&n.indexOf(o.slice(0,a))>-1){let e=s.firstChild;for(;e&&e.from==s.from&&e.to-e.from>i.length+a;){if(t.sliceDoc(e.to-i.length,e.to)==i)return!1;e=e.firstChild}return!0}let l=s.to==e&&s.parent;if(!l)break;s=l}return!1}(t,a,e,s))return{changes:{insert:e+e,from:a},effects:nu.of(a+e.length),range:q.cursor(a+e.length)}}return{range:r=n}}));return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function mu(t,e){let i=Ja(t).resolveInner(e+1);return i.parent&&i.from==e}function vu(t,e,i){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=Ct.Word)return e;for(let s of i){let i=e-s.length;if(t.sliceDoc(i,e)==s&&n(t.sliceDoc(i-1,i))!=Ct.Word)return i}return-1}function wu(t={}){return[Xf,Of.of(t),Df,Su,jf]}const bu=[{key:"Ctrl-Space",run:t=>!!t.state.field(Xf,!1)&&(t.dispatch({effects:ff.of(!0)}),!0)},{key:"Escape",run:t=>{let e=t.state.field(Xf,!1);return!(!e||!e.active.some((t=>0!=t.state)))&&(t.dispatch({effects:uf.of(null)}),!0)}},{key:"ArrowDown",run:Rf(!0)},{key:"ArrowUp",run:Rf(!1)},{key:"PageDown",run:Rf(!0,"page")},{key:"PageUp",run:Rf(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(Xf,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.facet(Of).defaultKeymap?[bu]:[])));class Qu{constructor(t,e,i){this.from=t,this.to=e,this.diagnostic=i}}class yu{constructor(t,e,i){this.diagnostics=t,this.panel=e,this.selected=i}static init(t,e,i){let n=t,s=i.facet(Du).markerFilter;s&&(n=s(n));let r=di.set(n.map((t=>t.from==t.to||t.from==t.to-1&&i.doc.lineAt(t.from).to==t.from?di.widget({widget:new qu(t),diagnostic:t}).range(t.from):di.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity+(t.markClass?" "+t.markClass:"")},diagnostic:t}).range(t.from,t.to))),!0);return new yu(r,e,xu(r))}}function xu(t,e=null,i=0){let n=null;return t.between(i,1e9,((t,i,{spec:s})=>{if(!e||s.diagnostic==e)return n=new Qu(t,i,s.diagnostic),!1})),n}function ku(t,e){let i=t.startState.doc.lineAt(e.pos);return!(!t.effects.some((t=>t.is(Pu)))&&!t.changes.touchesRange(i.from,i.to))}function $u(t,e){return t.field(Yu,!1)?e:e.concat(St.appendConfig.of(ip))}const Pu=St.define(),Zu=St.define(),Cu=St.define(),Yu=J.define({create:()=>new yu(di.none,null,null),update(t,e){if(e.docChanged){let i=t.diagnostics.map(e.changes),n=null;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);n=xu(i,t.selected.diagnostic,s)||xu(i,null,s)}t=new yu(i,t.panel,n)}for(let i of e.effects)i.is(Pu)?t=yu.init(i.value,t.panel,e.state):i.is(Zu)?t=new yu(t.diagnostics,i.value?Iu.open:null,t.selected):i.is(Cu)&&(t=new yu(t.diagnostics,t.panel,i.value));return t},provide:t=>[go.from(t,(t=>t.panel)),Ns.decorations.from(t,(t=>t.diagnostics))]});const Tu=di.mark({class:"cm-lintRange cm-lintRange-active"});function Xu(t,e,i){let{diagnostics:n}=t.state.field(Yu),s=[],r=2e8,o=0;n.between(e-(i<0?1:0),e+(i>0?1:0),((t,n,{spec:a})=>{e>=t&&e<=n&&(t==n||(e>t||i>0)&&(e({dom:Au(t,s)})}:null}function Au(t,e){return Hc("ul",{class:"cm-tooltip-lint"},e.map((e=>zu(t,e,!1))))}const Wu=t=>{let e=t.state.field(Yu,!1);return!(!e||!e.panel)&&(t.dispatch({effects:Zu.of(!1)}),!0)},Ru=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(Yu,!1);e&&e.panel||t.dispatch({effects:$u(t.state,[Zu.of(!0)])});let i=fo(t,Iu.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(Yu,!1);if(!e)return!1;let i=t.state.selection.main,n=e.diagnostics.iter(i.to+1);return!(!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==i.from&&n.to==i.to))&&(t.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)}}],Mu=Ri.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Du);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(t(this.view))))).then((e=>{let i=e.reduce(((t,e)=>t.concat(e)));this.view.state.doc==t.doc&&this.view.dispatch(function(t,e){return{effects:$u(t,[Pu.of(e)])}}(this.view.state,i))}),(t=>{Ti(this.view.state,t)}))}}update(t){let e=t.state.facet(Du);(t.docChanged||e!=t.startState.facet(Du)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Du=V.define({combine:t=>Object.assign({sources:t.map((t=>t.source))},Wt(t.map((t=>t.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,e)=>t?e?i=>t(i)||e(i):t:e}))});function ju(t,e={}){return[Du.of({source:t,config:e}),Mu,ip]}function Uu(t){let e=t.plugin(Mu);e&&e.force()}function Eu(t){let e=[];if(t)t:for(let{name:i}of t){for(let t=0;tt.toLowerCase()==n.toLowerCase()))){e.push(n);continue t}}e.push("")}return e}function zu(t,e,i){var n;let s=i?Eu(e.actions):[];return Hc("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Hc("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(n=e.actions)||void 0===n?void 0:n.map(((i,n)=>{let r=!1,o=n=>{if(n.preventDefault(),r)return;r=!0;let s=xu(t.state.field(Yu).diagnostics,e);s&&i.apply(t,s.from,s.to)},{name:a}=i,l=s[n]?a.indexOf(s[n]):-1,h=l<0?a:[a.slice(0,l),Hc("u",a.slice(l,l+1)),a.slice(l+1)];return Hc("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${a}${l<0?"":` (access key "${s[n]})"`}.`},h)})),e.source&&Hc("div",{class:"cm-diagnosticSource"},e.source))}class qu extends hi{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Hc("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class _u{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=zu(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Iu{constructor(t){this.view=t,this.items=[];this.list=Hc("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:e=>{if(27==e.keyCode)Wu(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65&&e.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:i}=this.items[this.selectedIndex],n=Eu(i.actions);for(let s=0;s{for(let e=0;eWu(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Yu).selected;if(!t)return-1;for(let e=0;e{let a,l=-1;for(let e=i;ei&&(this.items.splice(i,l-i),n=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),s=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),i++}));i({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let i=e.height/this.list.offsetHeight;t.tope.bottom&&(this.list.scrollTop+=(t.bottom-e.bottom)/i)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;t!=i.dom;)e();t=i.dom.nextSibling}else this.list.insertBefore(i.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=xu(this.view.state.field(Yu).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Cu.of(e)})}static open(t){return new Iu(t)}}function Vu(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function Bu(t){return Vu(``,'width="6" height="3"')}const Gu=Ns.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Bu("#d11")},".cm-lintRange-warning":{backgroundImage:Bu("orange")},".cm-lintRange-info":{backgroundImage:Bu("#999")},".cm-lintRange-hint":{backgroundImage:Bu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Nu(t){return"error"==t?4:"warning"==t?3:"info"==t?2:1}class Lu extends mo{constructor(t){super(),this.diagnostics=t,this.severity=t.reduce(((t,e)=>Nu(t)function(t,e,i){function n(){let n=t.elementAtHeight(e.getBoundingClientRect().top+5-t.documentTop);t.coordsAtPos(n.from)&&t.dispatch({effects:Ku.of({pos:n.from,above:!1,create:()=>({dom:Au(t,i),getCoords:()=>e.getBoundingClientRect()})})}),e.onmouseout=e.onmousemove=null,function(t,e){let i=n=>{let s=e.getBoundingClientRect();if(!(n.clientX>s.left-10&&n.clientXs.top-10&&n.clientY{clearTimeout(r),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(r),r=setTimeout(n,s)}}(t,e,i)),e}}function Fu(t,e){let i=Object.create(null);for(let s of e){let e=t.lineAt(s.from);(i[e.from]||(i[e.from]=[])).push(s)}let n=[];for(let s in i)n.push(new Lu(i[s]).range(+s));return Ut.of(n,!0)}const Hu=So({class:"cm-gutter-lint",markers:t=>t.state.field(Ju)}),Ju=J.define({create:()=>Ut.empty,update(t,e){t=t.map(e.changes);let i=e.state.facet(np).markerFilter;for(let n of e.effects)if(n.is(Pu)){let s=n.value;i&&(s=i(s||[])),t=Fu(e.state.doc,s.slice(0))}return t}}),Ku=St.define(),tp=J.define({create:()=>null,update:(t,e)=>(t&&e.docChanged&&(t=ku(e,t)?null:Object.assign(Object.assign({},t),{pos:e.changes.mapPos(t.pos)})),e.effects.reduce(((t,e)=>e.is(Ku)?e.value:t),t)),provide:t=>eo.from(t)}),ep=Ns.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Vu('')},".cm-lint-marker-warning":{content:Vu('')},".cm-lint-marker-error":{content:Vu('')}}),ip=[Yu,Ns.decorations.compute([Yu],(t=>{let{selected:e,panel:i}=t.field(Yu);return e&&i&&e.from!=e.to?di.set([Tu.range(e.from,e.to)]):di.none})),ao(Xu,{hideOn:ku}),Gu],np=V.define({combine:t=>Wt(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function sp(t={}){return[np.of(t),Ju,Hu,ep,tp]}const rp=(()=>[Ro(),jo,Ar(),Mh(),Bl(),gr(),[xr,kr],At.allowMultipleSelections.of(!0),At.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let i=t.newDoc,{head:n}=t.newSelection.main,s=i.lineAt(n);if(n>s.from+200)return t;let r=i.sliceString(s.from,n);if(!e.some((t=>t.test(r))))return t;let{state:o}=t,a=-1,l=[];for(let{head:h}of o.selection.ranges){let t=o.doc.lineAt(h);if(t.from==a)continue;a=t.from;let e=ul(o,t.from);if(null==e)continue;let i=/^\s*/.exec(t.text)[0],n=fl(o,e);i!=n&&l.push({from:t.from,to:t.from+i.length,insert:n})}return l.length?[t,{changes:l,sequential:!0}]:t})),Jl(eh,{fallback:!0}),ch(),[cu,ru],wu(),_r(),Br(),jr,pd(),ir.of([...du,...Lc,...Nd,...Kh,...Dl,...bu,...Ru])])(),op=(()=>[Ar(),Mh(),gr(),Jl(eh,{fallback:!0}),ir.of([...Lc,...Kh])])();function ap(t,e={},i){const{props:n,domProps:s,on:r,...o}=e,a=r?(t=>t?Object.entries(t).reduce(((t,[e,i])=>({...t,[e=`on${e=e.charAt(0).toUpperCase()+e.slice(1)}`]:i})),{}):{})(r):{};return l(t,{...o,...n,...s,...a},i)}var lp=t({name:"CodeMirror",model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{type:String,default:""},theme:{type:Object,default:()=>{}},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:()=>{}},lang:{type:Object,default:()=>{}},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,defalt:!1},gutterConfig:{type:Object,default:()=>{}},tag:{type:String,default:"div"}},emits:{"update:modelValue":t=>!0,update:t=>!0,ready:t=>!0,focus:t=>!0,change:t=>!0,destroy:()=>!0},setup(t,l){const h=e(),c=e(t.modelValue),d=i(new Ns),f=n({get:()=>d.value.hasFocus,set:t=>{t&&d.value.focus()}}),u=n({get:()=>d.value.state.selection,set:t=>d.value.dispatch({selection:t})}),p=n({get:()=>d.value.state.selection.main.head,set:t=>d.value.dispatch({selection:{anchor:t}})}),O=n({get:()=>d.value.state.toJSON(),set:t=>d.value.setState(At.fromJSON(t))}),g=e(0),m=e(0),v=n((()=>{const e=new ot,i=new ot;return[t.basic?rp:void 0,t.minimal&&!t.basic?op:void 0,Ns.updateListener.of((e=>{l.emit("focus",d.value.hasFocus),g.value=d.value.state.doc.length,!e.changes.empty&&e.docChanged&&(t.linter&&(t.forceLinting&&Uu(d.value),m.value=t.linter(d.value).length),l.emit("update",e))})),Ns.theme(t.theme,{dark:t.dark}),t.wrap?Ns.lineWrapping:void 0,t.tab?ir.of([Fc]):void 0,At.allowMultipleSelections.of(t.allowMultipleSelections),t.tabSize?i.of(At.tabSize.of(t.tabSize)):void 0,t.phrases?At.phrases.of(t.phrases):void 0,At.readOnly.of(t.readonly),Ns.editable.of(!t.disabled),t.lineSeparator?At.lineSeparator.of(t.lineSeparator):void 0,t.lang?e.of(t.lang):void 0,t.linter?ju(t.linter,t.linterConfig):void 0,t.linter&&t.gutter?sp(t.gutterConfig):void 0,t.placeholder?(n=t.placeholder,Ri.fromClass(class{constructor(t){this.view=t,this.placeholder=n?di.set([di.widget({widget:new Ur(n),side:1}).range(0)]):di.none}get decorations(){return this.view.state.doc.length?di.none:this.placeholder}},{decorations:t=>t.decorations})):void 0,...t.extensions].filter((t=>!!t));var n}));s(v,(t=>{var e;null==(e=d.value)||e.dispatch({effects:St.reconfigure.of(t)})}),{immediate:!0}),s((()=>t.modelValue),(async e=>{d.value.composing||d.value.state.doc.toJSON().join(t.lineSeparator??"\n")===e||d.value.dispatch({changes:{from:0,to:d.value.state.doc.length,insert:e},selection:d.value.state.selection,scrollIntoView:!0})}),{immediate:!0}),r((async()=>{let t=c.value;h.value&&(h.value.childNodes[0]&&(c.value,t=h.value.childNodes[0].innerText.trim()),d.value=new Ns({parent:h.value,state:At.create({doc:t,extensions:v.value}),dispatch:t=>{d.value.update([t]),!t.changes.empty&&t.docChanged&&(l.emit("update:modelValue",t.state.doc.toString()),l.emit("change",t.state))}}),await o(),l.emit("ready",{view:d.value,state:d.value.state,container:h.value}))})),a((()=>{d.value.destroy(),l.emit("destroy")}));const w={editor:h,view:d,cursor:p,selection:u,focus:f,length:g,json:O,diagnosticCount:m,dom:d.value.contentDOM,lint:()=>{t.linter&&d.value&&(t.forceLinting&&Uu(d.value),m.value=function(t){let e=t.field(Yu,!1);return e?e.diagnostics.size:0}(d.value.state))},forceReconfigure:()=>{var t,e;null==(t=d.value)||t.dispatch({effects:St.reconfigure.of([])}),null==(e=d.value)||e.dispatch({effects:St.appendConfig.of(v.value)})},getRange:(t,e)=>d.value.state.sliceDoc(t,e),getLine:t=>d.value.state.doc.line(t+1).text,lineCount:()=>d.value.state.doc.lines,getCursor:()=>d.value.state.selection.main.head,listSelections:()=>{let t;return null!==(t=d.value.state.selection.ranges)&&void 0!==t?t:[]},getSelection:()=>{let t;return null!==(t=d.value.state.sliceDoc(d.value.state.selection.main.from,d.value.state.selection.main.to))&&void 0!==t?t:""},getSelections:()=>{const t=d.value.state;return t?t.selection.ranges.map((e=>t.sliceDoc(e.from,e.to))):[]},somethingSelected:()=>d.value.state.selection.ranges.some((t=>!t.empty)),replaceRange:(t,e,i)=>d.value.dispatch({changes:{from:e,to:i,insert:t}}),replaceSelection:t=>d.value.dispatch(d.value.state.replaceSelection(t)),setCursor:t=>d.value.dispatch({selection:{anchor:t}}),setSelection:(t,e)=>d.value.dispatch({selection:{anchor:t,head:e}}),setSelections:(t,e)=>d.value.dispatch({selection:q.create(t,e)}),extendSelectionsBy:t=>d.value.dispatch({selection:q.create(u.value.ranges.map((e=>e.extend(t(e)))))})};return l.expose(w),w},render(){return ap(this.$props.tag,{ref:"editor",class:"vue-codemirror"},this.$slots.default?ap("aside",{style:"display: none;","aria-hidden":"true"},"function"==typeof(t=this.$slots.default)?t():t):void 0);var t}});const hp="#e06c75",cp="#abb2bf",dp="#7d8799",fp="#d19a66",up="#2c313a",pp="#282c34",Op="#353a42",gp="#528bff",mp=[Ns.theme({"&":{color:cp,backgroundColor:pp},".cm-content":{caretColor:gp},".cm-cursor, .cm-dropCursor":{borderLeftColor:gp},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:cp},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:pp,color:dp,border:"none"},".cm-activeLineGutter":{backgroundColor:up},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Op},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Op,borderBottomColor:Op},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:up,color:cp}}},{dark:!0}),Jl(Nl.define([{tag:Ia.keyword,color:"#c678dd"},{tag:[Ia.name,Ia.deleted,Ia.character,Ia.propertyName,Ia.macroName],color:hp},{tag:[Ia.function(Ia.variableName),Ia.labelName],color:"#61afef"},{tag:[Ia.color,Ia.constant(Ia.name),Ia.standard(Ia.name)],color:fp},{tag:[Ia.definition(Ia.name),Ia.separator],color:cp},{tag:[Ia.typeName,Ia.className,Ia.number,Ia.changed,Ia.annotation,Ia.modifier,Ia.self,Ia.namespace],color:"#e5c07b"},{tag:[Ia.operator,Ia.operatorKeyword,Ia.url,Ia.escape,Ia.regexp,Ia.link,Ia.special(Ia.string)],color:"#56b6c2"},{tag:[Ia.meta,Ia.comment],color:dp},{tag:Ia.strong,fontWeight:"bold"},{tag:Ia.emphasis,fontStyle:"italic"},{tag:Ia.strikethrough,textDecoration:"line-through"},{tag:Ia.link,color:dp,textDecoration:"underline"},{tag:Ia.heading,fontWeight:"bold",color:hp},{tag:[Ia.atom,Ia.bool,Ia.special(Ia.variableName)],color:fp},{tag:[Ia.processingInstruction,Ia.string,Ia.inserted],color:"#98c379"},{tag:Ia.invalid,color:"#ffffff"}]))];var vp={};class wp{constructor(t,e,i,n,s,r,o,a,l,h=0,c){this.p=t,this.stack=e,this.state=i,this.reducePos=n,this.pos=s,this.score=r,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let n=t.parser.context;return new wp(t,[],e,i,i,0,[],0,n?new bp(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let i=t>>19,n=65535&t,{parser:s}=this.p,r=s.dynamicPrecedence(n);if(r&&(this.score+=r),0==i)return this.pushState(s.getGoto(this.state,n,!0),this.reducePos),n=2e3&&!(null===(e=this.p.parser.nodeSet.types[n])||void 0===e?void 0:e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(n,a)}storeNode(t,e,i,n=4,s=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==t.buffer[n-4]&&t.buffer[n-1]>-1){if(e==i)return;if(t.buffer[n-2]>=e)return void(t.buffer[n-2]=i)}}if(s&&this.pos!=i){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>i;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,n>4&&(n-=4);this.buffer[s]=t,this.buffer[s+1]=e,this.buffer[s+2]=i,this.buffer[s+3]=n}else this.buffer.push(t,e,i,n)}shift(t,e,i,n){if(131072&t)this.pushState(65535&t,this.pos);else if(0==(262144&t)){let s=t,{parser:r}=this.p;(n>this.pos||e<=r.maxNode)&&(this.pos=n,r.stateFlag(s,1)||(this.reducePos=n)),this.pushState(s,i),this.shiftContext(e,i),e<=r.maxNode&&this.buffer.push(e,i,n,4)}else this.pos=n,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,n,4)}apply(t,e,i,n){65536&t?this.reduce(t):this.shift(t,e,i,n)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let n=this.pos;this.reducePos=this.pos=n+t.length,this.pushState(e,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),n=t.bufferBase+e;for(;t&&n==t.bufferBase;)t=t.parent;return new wp(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new Sp(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==i)return!1;if(0==(65536&i))return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let n,s=0;s1&e&&t==n))||i.push(e[t],n)}e=i}let i=[];for(let n=0;n>19,n=65535&e,s=this.stack.length-3*i;if(s<0||t.getGoto(this.stack[s],n,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],i=(n,s)=>{if(!e.includes(n))return e.push(n),t.allActions(n,(e=>{if(393216&e);else if(65536&e){let i=(e>>19)-s;if(i>1){let n=65535&e,s=this.stack.length-3*i;if(s>=0&&t.getGoto(this.stack[s],n,!1)>=0)return i<<19|65536|n}}else{let t=i(e,s+1);if(null!=t)return t}}))};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class bp{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class Sp{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,i=t>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=n}}class Qp{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new Qp(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new Qp(this.stack,this.pos,this.index)}}function yp(t,e=Uint16Array){if("string"!=typeof t)return t;let i=null;for(let n=0,s=0;n=92&&e--,e>=34&&e--;let s=e-32;if(s>=46&&(s-=46,i=!0),r+=s,i)break;r*=46}i?i[s++]=r:i=new e(r)}return i}class xp{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const kp=new xp;class $p{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=kp,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,n=this.rangeIndex,s=this.pos+t;for(;si.to:s>=i.to;){if(n==this.ranges.length-1)return null;let t=this.ranges[++n];s+=t.from-i.to,i=t}return s}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e,i,n=this.chunkOff+t;if(n>=0&&n=this.chunk2Pos&&en.to&&(this.chunk2=this.chunk2.slice(0,n.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=kp,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let n of this.ranges){if(n.from>=e)break;n.to>t&&(i+=this.input.read(Math.max(n.from,t),Math.min(n.to,e)))}return i}}class Pp{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;Yp(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}Pp.prototype.contextual=Pp.prototype.fallback=Pp.prototype.extend=!1;class Zp{constructor(t,e,i){this.precTable=e,this.elseToken=i,this.data="string"==typeof t?yp(t):t}token(t,e){let i=t.pos,n=0;for(;;){let i=t.next<0,s=t.resolveOffset(1,1);if(Yp(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(i||n++,null==s)break;t.reset(s,t.token)}n&&(t.reset(i,t.token),t.acceptToken(this.elseToken,n))}}Zp.prototype.contextual=Pp.prototype.fallback=Pp.prototype.extend=!1;class Cp{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function Yp(t,e,i,n,s,r){let o=0,a=1<0){let i=t[d];if(l.allows(i)&&(-1==e.token.value||e.token.value==i||Xp(i,e.token.value,s,r))){e.acceptToken(i);break}}let n=e.next,h=0,c=t[o+2];if(!(e.next<0&&c>h&&65535==t[i+3*c-3])){for(;h>1,r=i+s+(s<<1),a=t[r],l=t[r+1]||65536;if(n=l)){o=t[r+2],e.advance();continue t}h=s+1}}break}o=t[i+3*c-1]}}function Tp(t,e,i){for(let n,s=e;65535!=(n=t[s]);s++)if(n==i)return s-e;return-1}function Xp(t,e,i,n){let s=Tp(i,n,e);return s<0||Tp(i,n,t)e)&&!n.type.isError)return i<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(i<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return i<0?0:t.length}}class Mp{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Rp(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Rp(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(s instanceof Ho){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+s.length}}}class Dp{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((t=>new xp))}getActions(t){let e=0,i=null,{parser:n}=t.p,{tokenizers:s}=n,r=n.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,a=0;for(let l=0;lh.end+25&&(a=Math.max(h.lookAhead,a)),0!=h.value)){let s=e;if(h.extended>-1&&(e=this.addActions(t,h.extended,h.end,e)),e=this.addActions(t,h.value,h.end,e),!n.extend&&(i=h,e>s))break}}for(;this.actions.length>e;)this.actions.pop();return a&&t.setLookAhead(a),i||t.pos!=this.stream.end||(i=new xp,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new xp,{pos:i,p:n}=t;return e.start=i,e.end=Math.min(i+1,n.stream.end),e.value=i==n.stream.end?n.parser.eofTerm:0,e}updateCachedToken(t,e,i){let n=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(n,t),i),t.value>-1){let{parser:e}=i.p;for(let n=0;n=0&&i.p.parser.dialect.allows(s>>1)){0==(1&s)?t.value=s>>1:t.extended=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(n+1)}putAction(t,e,i,n){for(let s=0;s4*t.bufferLength?new Mp(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,i=this.stacks,n=this.minStackPos,s=this.stacks=[];if(this.bigReductionCount>300&&1==i.length){let[t]=i;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;rn)s.push(o);else{if(this.advanceStack(o,s,i))continue;{t||(t=[],e=[]),t.push(o);let i=this.tokens.getMainToken(o);e.push(i.value,i.end)}}break}}if(!s.length){let e=t&&function(t){let e=null;for(let i of t){let t=i.p.stoppedAt;(i.pos==i.p.stream.end||null!=t&&i.pos>t)&&i.p.parser.stateFlag(i.state,2)&&(!e||e.scorethis.stoppedAt?t[0]:this.runRecovery(t,e,s);if(i)return this.stackToTree(i.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(s.length>t)for(s.sort(((t,e)=>e.score-t.score));s.length>t;)s.pop();s.some((t=>t.reducePos>n))&&this.recovering--}else if(s.length>1){t:for(let t=0;t500&&n.buffer.length>500){if(!((e.score-n.score||e.buffer.length-n.buffer.length)>0)){s.splice(t--,1);continue t}s.splice(i--,1)}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;rthis.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,i=e?t.curContext.hash:0;for(let r=this.fragments.nodeAt(n);r;){let n=this.parser.nodeSet.types[r.type.id]==r.type?s.getGoto(t.state,r.type.id):-1;if(n>-1&&r.length&&(!e||(r.prop(qo.contextHash)||0)==i))return t.useNode(r,n),!0;if(!(r instanceof Ho)||0==r.children.length||r.positions[0]>0)break;let o=r.children[0];if(!(o instanceof Ho&&0==r.positions[0]))break;r=o}}let r=s.stateSlot(t.state,4);if(r>0)return t.reduce(r),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;an?e.push(c):i.push(c)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return Up(t,e),!0}}runRecovery(t,e,i){let n=null,s=!1;for(let r=0;r ":"";if(o.deadEnd){if(s)continue;if(s=!0,o.restart(),this.advanceFully(o,i))continue}let c=o.split(),d=h;for(let t=0;c.forceReduce()&&t<10;t++){if(this.advanceFully(c,i))break;Ap&&(d=this.stackID(c)+" -> ")}for(let t of o.recoverByInsert(a))this.advanceFully(t,i);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),Up(o,i)):(!n||n.scoret;class qp extends ma{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let o=0;ot.topRules[e][1])),n=[];for(let o=0;o=0)s(i,t,o[e++]);else{let n=o[e+-i];for(let r=-i;r>0;r--)s(o[e++],t,n);e++}}}this.nodeSet=new Bo(e.map(((e,s)=>Vo.define({name:s>=this.minRepeatTerm?void 0:e,id:s,props:n[s],top:i.indexOf(s)>-1,error:0==s,skipped:t.skippedNodes&&t.skippedNodes.indexOf(s)>-1})))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Uo;let r=yp(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;o"number"==typeof t?new Pp(r,t):t)),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let n=new jp(this,t,e,i);for(let s of this.wrappers)n=s(n,t,e,i);return n}getGoto(t,e,i=!1){let n=this.goto;if(e>=n[0])return-1;for(let s=n[e+1];;){let e=n[s++],r=1&e,o=n[s++];if(r&&i)return o;for(let i=s+(e>>1);s0}validAction(t,e){return!!this.allActions(t,(t=>t==e||null))}allActions(t,e){let i=this.stateSlot(t,4),n=i?e(i):void 0;for(let s=this.stateSlot(t,1);null==n;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=_p(this.data,s+2)}n=e(_p(this.data,s+1))}return n}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=_p(this.data,i+2)}if(0==(1&this.data[i+2])){let t=this.data[i+1];e.some(((e,i)=>1&i&&e==t))||e.push(this.data[i],t)}}return e}configure(t){let e=Object.assign(Object.create(qp.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map((e=>{let i=t.tokenizers.find((t=>t.from==e));return i?i.to:e}))),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map(((i,n)=>{let s=t.specializers.find((t=>t.from==i.external));if(!s)return i;let r=Object.assign(Object.assign({},i),{external:s.to});return e.specializers[n]=Ip(r),r}))),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map((()=>!1));if(t)for(let s of t.split(" ")){let t=e.indexOf(s);t>=0&&(i[t]=!0)}let n=null;for(let s=0;st.external(i,n)<<1|e}return t.get}const Vp=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Bp=new class{constructor(t){this.start=t.start,this.shift=t.shift||zp,this.reduce=t.reduce||zp,this.reuse=t.reuse||zp,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}({start:!1,shift:(t,e)=>3==e||4==e||311==e?t:312==e,strict:!1}),Gp=new Cp(((t,e)=>{let{next:i}=t;(125==i||-1==i||e.context)&&t.acceptToken(309)}),{contextual:!0,fallback:!0}),Np=new Cp(((t,e)=>{let i,{next:n}=t;Vp.indexOf(n)>-1||(47!=n||47!=(i=t.peek(1))&&42!=i)&&(125==n||59==n||-1==n||e.context||t.acceptToken(308))}),{contextual:!0}),Lp=new Cp(((t,e)=>{let{next:i}=t;if((43==i||45==i)&&(t.advance(),i==t.next)){t.advance();let i=!e.context&&e.canShift(1);t.acceptToken(i?1:2)}}),{contextual:!0}),Fp=ya({"get set async static":Ia.modifier,"for while do if else switch try catch finally return throw break continue default case":Ia.controlKeyword,"in of await yield void typeof delete instanceof":Ia.operatorKeyword,"let var const using function class extends":Ia.definitionKeyword,"import export from":Ia.moduleKeyword,"with debugger as new":Ia.keyword,TemplateString:Ia.special(Ia.string),super:Ia.atom,BooleanLiteral:Ia.bool,this:Ia.self,null:Ia.null,Star:Ia.modifier,VariableName:Ia.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ia.function(Ia.variableName),VariableDefinition:Ia.definition(Ia.variableName),Label:Ia.labelName,PropertyName:Ia.propertyName,PrivatePropertyName:Ia.special(Ia.propertyName),"CallExpression/MemberExpression/PropertyName":Ia.function(Ia.propertyName),"FunctionDeclaration/VariableDefinition":Ia.function(Ia.definition(Ia.variableName)),"ClassDeclaration/VariableDefinition":Ia.definition(Ia.className),PropertyDefinition:Ia.definition(Ia.propertyName),PrivatePropertyDefinition:Ia.definition(Ia.special(Ia.propertyName)),UpdateOp:Ia.updateOperator,"LineComment Hashbang":Ia.lineComment,BlockComment:Ia.blockComment,Number:Ia.number,String:Ia.string,Escape:Ia.escape,ArithOp:Ia.arithmeticOperator,LogicOp:Ia.logicOperator,BitOp:Ia.bitwiseOperator,CompareOp:Ia.compareOperator,RegExp:Ia.regexp,Equals:Ia.definitionOperator,Arrow:Ia.function(Ia.punctuation),": Spread":Ia.punctuation,"( )":Ia.paren,"[ ]":Ia.squareBracket,"{ }":Ia.brace,"InterpolationStart InterpolationEnd":Ia.special(Ia.brace),".":Ia.derefOperator,", ;":Ia.separator,"@":Ia.meta,TypeName:Ia.typeName,TypeDefinition:Ia.definition(Ia.typeName),"type enum interface implements namespace module declare":Ia.definitionKeyword,"abstract global Privacy readonly override":Ia.modifier,"is keyof unique infer":Ia.operatorKeyword,JSXAttributeValue:Ia.attributeValue,JSXText:Ia.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ia.angleBracket,"JSXIdentifier JSXNameSpacedName":Ia.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ia.attributeName,"JSXBuiltin/JSXIdentifier":Ia.standard(Ia.tagName)}),Hp={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},Jp={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},Kp={__proto__:null,"<":139},tO=qp.deserialize({version:14,states:"$RQSO'#CcO>cQSO'#HZO>kQSO'#HaO>kQSO'#HcO`QUO'#HeO>kQSO'#HgO>kQSO'#HjO>pQSO'#HpO>uQ(C]O'#HvO%[QUO'#HxO?QQ(C]O'#HzO?]Q(C]O'#H|O9kQ(C[O'#IOO?hQ(CjO'#CgO@jQWO'#DgQOQSOOO%[QUO'#D}OAQQSO'#EQO:RQ,UO'#EhOA]QSO'#EhOAhQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Jm'#JmO%[QUO'#JmOOQO'#Jq'#JqOOQO'#Ia'#IaOBhQWO'#EaOOQ(CW'#E`'#E`OCdQ(C`O'#EaOCnQWO'#ETOOQO'#Jp'#JpODSQWO'#JqOEaQWO'#ETOCnQWO'#EaPEnO?MpO'#C`POOO)CDt)CDtOOOO'#IW'#IWOEyOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFXO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFgO07`O,59vOOQ(CY,59v,59vOFuQUO'#I[OGYQSO'#JkOI[QbO'#JkO+}QUO'#JkOIcQSO,59|OIyQSO'#EjOJWQSO'#JyOJcQSO'#JxOJcQSO'#JxOJkQSO,5;WOJpQSO'#JwOOQ(CY,5:X,5:XOJwQUO,5:XOLxQ(CjO,5:cOMiQSO,5:kONSQ(C[O'#JvONZQSO'#JuO9ZQSO'#JuONoQSO'#JuONwQSO,5;VON|QSO'#JuO!#UQbO'#JjOOQ(CY'#Cg'#CgO%[QUO'#EPO!#tQ`O,5:pOOQO'#Jr'#JrOOQO-ElOOQQ'#J_'#J_OOQQ,5>m,5>mOOQQ-EpQSO'#HPO9aQSO'#HRO!CgQSO'#HRO:RQ,UO'#HTO!ClQSO'#HTOOQQ,5=i,5=iO!CqQSO'#HUO!DSQSO'#CmO!DXQSO,58}O!DcQSO,58}O!FhQUO,58}OOQQ,58},58}O!FxQ(C[O,58}O%[QUO,58}O!ITQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IkQSO,5=uO`QUO,5={O`QUO,5=}O!IpQSO,5>PO`QUO,5>RO!IuQSO,5>UO!IzQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9kQ(C[O,5>dOOQQ,5>f,5>fO!NUQSO,5>fOOQQ,5>h,5>hO!NUQSO,5>hOOQQ,5>j,5>jO!NZQWO'#DYO%[QUO'#JmO!NxQWO'#JmO# gQWO'#DhO# xQWO'#DhO#$ZQUO'#DhO#$bQSO'#JlO#$jQSO,5:RO#$oQSO'#EnO#$}QSO'#JzO#%VQSO,5;XO#%[QWO'#DhO#%iQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%pQSO,5:lO>pQSO,5;SO!@}QWO,5;SO!AVQ,UO,5;SO:RQ,UO,5;SO#%xQSO,5@XO#%}Q!LQO,5:pOOQO-E<_-E<_O#'TQ(C`O,5:{OCnQWO,5:oO#'_QWO,5:oOCnQWO,5:{O!@rQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'lQ(C[O,5:{O#'wQ(C[O,5:{O!@}QWO,5:oOOQO,5;R,5;RO#(VQ(C[O,5:{POOO'#IU'#IUP#(kO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#)VQUO'#I[OOQO-EpQ(CjO1G0yO#>wQ(CjO1G0yO#@oQ(CjO1G0yO#CoQ$IUO'#CgO#EmQ$IUO1G1[O#EtQ$IUO'#JjO!,lQSO1G1bO#FUQ(CjO,5?SOOQ(CW-EkQSO1G3kO$1UQUO1G3mO$5YQUO'#HlOOQQ1G3p1G3pO$5gQSO'#HrO>pQSO'#HtOOQQ1G3v1G3vO$5oQUO1G3vO9kQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9kQ(C[O1G4QO9kQ(C[O1G4SO$9vQSO,5@XO!*fQUO,5;YO9ZQSO,5;YO>pQSO,5:SO!*fQUO,5:SO!@}QWO,5:SO$9{Q$IUO,5:SOOQO,5;Y,5;YO$:VQWO'#I]O$:mQSO,5@WOOQ(CY1G/m1G/mO$:uQWO'#IcO$;PQSO,5@fOOQ(CW1G0s1G0sO# xQWO,5:SOOQO'#I`'#I`O$;XQWO,5:nOOQ(CY,5:n,5:nO#%sQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>pQSO1G0nO!@}QWO1G0nO!AVQ,UO1G0nOOQ(CW1G5s1G5sO!@rQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$;`Q(C[O1G0gO$;kQ(C[O1G0gO!@}QWO1G0ZOCnQWO1G0ZO$;yQ(C[O1G0gOOQO1G0Z1G0ZO$<_Q(CjO1G0gPOOO-EvO$<{QSO1G5qO$=TQSO1G6OO$=]QbO1G6PO9ZQSO,5>|O$=gQ(CjO1G5|O%[QUO1G5|O$=wQ(C[O1G5|O$>YQSO1G5{O$>YQSO1G5{O9ZQSO1G5{O$>bQSO,5?PO9ZQSO,5?POOQO,5?P,5?PO$>vQSO,5?PO$'TQSO,5?POOQO-EWOOQQ,5>W,5>WO%[QUO'#HmO%6UQSO'#HoOOQQ,5>^,5>^O9ZQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%6ZQWO1G5sO%6oQ$IUO1G0tO%6yQSO1G0tOOQO1G/n1G/nO%7UQ$IUO1G/nO>pQSO1G/nO!*fQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EpQSO7+&YO!@}QWO7+&YOOQO7+%u7+%uO$<_Q(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%7`Q(C[O7+&RO!@rQ(C[O7+%uO!@}QWO7+%uO%7kQ(C[O7+&RO%7yQ(CjO7++hO%[QUO7++hO%8ZQSO7++gO%8ZQSO7++gOOQO1G4k1G4kO9ZQSO1G4kO%8cQSO1G4kOOQO7+%z7+%zO#%sQSO<xOOQO-E<[-E<[O%DoQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%DyQSO1G5uOOQ(CY<XOOQQ,5>Z,5>ZO&4ZQSO1G3xO9ZQSO7+&`O!*fQUO7+&`OOQO7+%Y7+%YO&4`Q$IUO1G6PO>pQSO7+%YOOQ(CY<pQSO<qQbO1G4eO&>{Q$IUO7+&ZO&APQ$IUO,5=QO&CWQ$IUO,5=SO&ChQ$IUO,5=QO&CxQ$IUO,5=SO&DYQ$IUO,59oO&F]Q$IUO,5pQSO7+)dO'%_QSO<{AN>{O%[QUOAN?XOOQO<a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#IpP#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:Bp,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[Fp],skippedNodes:[0,3,4,270],repeatNodeCount:37,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j(Q!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Q!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'}pOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'}pOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'}p(Q!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'}p(Q!b's(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(O#S$e&j't(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'}p(Q!b't(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'|$(n$e&j(Q!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j(Q!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j(Q!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ(Q!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t(Q!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'}p(Q!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS(Q!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'}pOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'}pOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'}p(Q!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j(Q!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(Q!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(Q!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(Q!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j(Q!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'}p(Q!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'}p(Q!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#Hp[t]||-1},{term:334,get:t=>Jp[t]||-1},{term:68,get:t=>Kp[t]||-1}],tokenPrec:14574}),eO=[tu("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),tu("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),tu("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),tu("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),tu("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),tu("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),tu("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),tu("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),tu("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),tu('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),tu('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],iO=eO.concat([tu("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),tu("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),tu("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),nO=new Oa,sO=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function rO(t){return(e,i)=>{let n=e.node.getChild("VariableDefinition");return n&&i(n,t),!0}}const oO=["FunctionDeclaration"],aO={FunctionDeclaration:rO("function"),ClassDeclaration:rO("class"),ClassExpression:()=>!0,EnumDeclaration:rO("constant"),TypeAliasDeclaration:rO("type"),NamespaceDeclaration:rO("namespace"),VariableDefinition(t,e){t.matchContext(oO)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function lO(t,e){let i=nO.get(e);if(i)return i;let n=[],s=!0;function r(e,i){let s=t.sliceString(e.from,e.to);n.push({label:s,type:i})}return e.cursor(Lo.IncludeAnonymous).iterate((e=>{if(s)s=!1;else if(e.name){let t=aO[e.name];if(t&&t(e,r)||sO.has(e.name))return!1}else if(e.to-e.from>8192){for(let i of lO(t,e.node))n.push(i);return!1}})),nO.set(e,n),n}const hO=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,cO=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function dO(t){let e=Ja(t.state).resolveInner(t.pos,-1);if(cO.indexOf(e.name)>-1)return null;let i="VariableName"==e.name||e.to-e.from<20&&hO.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let n=[];for(let s=e;s;s=s.parent)sO.has(s.name)&&(n=n.concat(lO(t.state.doc,s)));return{options:n,from:i?e.from:t.pos,validFor:hO}}const fO=Ha.define({name:"javascript",parser:tO.configure({props:[Ol.add({IfStatement:yl({except:/^\s*({|else\b)/}),TryStatement:yl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:t=>t.baseIndent,SwitchBody:t=>{let e=t.textAfter,i=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(i?0:n?1:2)*t.unit},Block:Sl({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":yl({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag":t=>t.column(t.node.from)+t.unit}),kl.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":function(t){let e=t.firstChild,i=t.lastChild;return e&&e.to({from:t.from+2,to:t.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),uO={test:t=>/^JSX/.test(t.name),facet:Ga({commentTokens:{block:{open:"{/*",close:"*/}"}}})},pO=fO.configure({dialect:"ts"},"typescript"),OO=fO.configure({dialect:"jsx",props:[Na.add((t=>t.isTop?[uO]:void 0))]}),gO=fO.configure({dialect:"jsx ts",props:[Na.add((t=>t.isTop?[uO]:void 0))]},"typescript");let mO=t=>({label:t,type:"keyword"});const vO="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(mO),wO=vO.concat(["declare","implements","private","protected","public"].map(mO));function bO(t={}){let e=t.jsx?t.typescript?gO:OO:t.typescript?pO:fO,i=t.typescript?iO.concat(wO):eO.concat(vO);return new ll(e,[fO.data.of({autocomplete:(n=cO,s=rf(i),t=>{for(let e=Ja(t.state).resolveInner(t.pos,-1);e;e=e.parent){if(n.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return s(t)})}),fO.data.of({autocomplete:dO}),t.jsx?yO:[]]);var n,s}function SO(t,e,i=t.length){for(let n=null==e?void 0:e.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return t.sliceString(n.from,Math.min(n.to,i));return""}const QO="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),yO=Ns.inputHandler.of(((t,e,i,n,s)=>{if((QO?t.composing:t.compositionStarted)||t.state.readOnly||e!=i||">"!=n&&"/"!=n||!fO.isActiveAt(t.state,e,-1))return!1;let r=s(),{state:o}=r,a=o.changeByRange((t=>{var e;let i,{head:s}=t,r=Ja(o).resolveInner(s-1,-1);if("JSXStartTag"==r.name&&(r=r.parent),o.doc.sliceString(s-1,s)!=n||"JSXAttributeValue"==r.name&&r.to>s);else{if(">"==n&&"JSXFragmentTag"==r.name)return{range:t,changes:{from:s,insert:""}};if("/"==n&&"JSXStartCloseTag"==r.name){let t=r.parent,n=t.parent;if(n&&t.from==s-2&&((i=SO(o.doc,n.firstChild,s))||"JSXFragmentTag"==(null===(e=n.firstChild)||void 0===e?void 0:e.name))){let t=`${i}>`;return{range:q.cursor(s+t.length,-1),changes:{from:s,insert:t}}}}else if(">"==n){let e=function(t){for(;;){if("JSXOpenTag"==t.name||"JSXSelfClosingTag"==t.name||"JSXFragmentTag"==t.name)return t;if("JSXEscape"==t.name||!t.parent)return null;t=t.parent}}(r);if(e&&!/^\/?>|^<\//.test(o.doc.sliceString(s,s+2))&&(i=SO(o.doc,e,s)))return{range:t,changes:{from:s,insert:``}}}}return{range:t}}));return!a.changes.empty&&(t.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));export{lp as C,bO as j,mp as o}; diff --git a/public/lib/assets/index-MX7YncXP.css b/public/lib/assets/index-MX7YncXP.css deleted file mode 100644 index 20c7dd1..0000000 --- a/public/lib/assets/index-MX7YncXP.css +++ /dev/null @@ -1 +0,0 @@ -.log[data-v-b01a1bda]{height:calc(100vh - 56px);color:#abb2bf;background-color:#282c34;position:relative!important;box-sizing:border-box;display:flex!important;flex-direction:column}.log[data-v-b01a1bda] ::-webkit-scrollbar{width:10px;height:10px}.log[data-v-b01a1bda] ::-webkit-scrollbar-track{width:16px;background:#101f1c1a;-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em}.log[data-v-b01a1bda] ::-webkit-scrollbar-thumb{background-color:#90939980;background-clip:padding-box;min-height:28px;-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em;transition:background-color .3s;cursor:pointer}.log[data-v-b01a1bda] ::-webkit-scrollbar-thumb:hover{background-color:#9093994d}.log[data-v-b01a1bda] ::-webkit-scrollbar-thumb{background-color:#252f4a;border-radius:20px}.log[data-v-b01a1bda] ::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:0;background:#0000001a}.log[data-v-b01a1bda] ::-webkit-scrollbar-corner{background-color:#161f35}.log .scroller[data-v-b01a1bda]{height:calc(100vh - 56px);width:100vw;overflow:auto;display:flex!important;align-items:flex-start!important;font-family:monospace;line-height:1.4;position:relative;z-index:0}.log .scroller .index[data-v-b01a1bda]{width:32px;min-width:32px;height:100%;background-color:#1e1f22;color:#7d8799;text-align:center;vertical-align:top;padding-top:4px;font-size:16px;z-index:200}.log .scroller .gutters[data-v-b01a1bda]{min-height:100%;position:sticky;background-color:#1e1f22;color:#7d8799;border:none;flex-shrink:0;display:flex;flex-direction:column;box-sizing:border-box;inset-inline-start:0;z-index:200}.log .scroller .gutters .gutter-element[data-v-b01a1bda]{height:25px;font-size:14px;padding:0 8px 0 5px;min-width:20px;text-align:right;white-space:nowrap;box-sizing:border-box;color:#7d8799;display:flex;align-items:center;justify-content:flex-end}.log .scroller .content[data-v-b01a1bda]{-moz-tab-size:4;tab-size:4;caret-color:transparent!important;margin:0;white-space:pre;padding:4px 8px;outline:none;color:#bcbec4}.log .scroller .content .line[data-v-b01a1bda]{height:25px;caret-color:transparent!important;font-size:16px;display:contents;padding:0 2px 0 6px}.log .scroller .content .line .flex[data-v-b01a1bda]{display:flex;align-items:center;gap:5px}.log .scroller .content .line .text[data-v-b01a1bda]{font-size:16px}.empty[data-v-d1a651dd]{display:flex;justify-content:center;align-items:center;height:calc(100% - 88px)}.icon[data-v-74f467a1]{margin:0;padding:0;display:flex;flex-wrap:wrap}.icon .anticon[data-v-74f467a1]{font-size:22px;justify-content:center;align-items:center}.icon p[data-v-74f467a1]{margin-bottom:0}.popover[data-v-c16efffd]{display:flex;align-items:center;justify-content:space-around}.popover .popover-item[data-v-c16efffd]{height:42px;display:flex;font-size:13px;align-items:center;justify-content:center;flex-direction:column;text-align:center}.popover .popover-item span[data-v-c16efffd]{margin-inline-start:0}.popover .popover-item .anticon[data-v-c16efffd]{font-size:22px;justify-content:center;align-items:center}.drawer-title[data-v-83531903]{display:flex;align-items:center;justify-content:space-between}.cm-scroller::-webkit-scrollbar{width:8px;height:8px}.cm-scroller::-webkit-scrollbar-thumb{background:#9c9c9c9c;-webkit-box-shadow:inset 0 0 3px rgba(0,0,0,.3)}.cm-scroller::-webkit-scrollbar-track{background:#282c34}.th[data-v-dc9046db],.th[data-v-9cc29834]{padding:16px 24px;color:#000000e0;font-weight:400;font-size:14px;line-height:1.57142857;text-align:start;box-sizing:border-box;background-color:#00000005;border-inline-end:1px solid rgba(5,5,5,.06)}.auto-judge[data-v-9cc29834]{white-space:pre}.top-tips[data-v-9cc29834]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#646a73}.or-branch-link-tip[data-v-9cc29834]{margin:10px 0;color:#646a73}.condition-group-editor[data-v-9cc29834]{-webkit-user-select:none;user-select:none;border-radius:4px;border:1px solid #e4e5e7;position:relative;margin-bottom:16px}.condition-group-editor .branch-delete-icon[data-v-9cc29834]{font-size:18px}.condition-group-editor .header[data-v-9cc29834]{background-color:#f4f6f8;padding:0 12px;font-size:14px;color:#171e31;height:36px;display:flex;align-items:center}.condition-group-editor .header span[data-v-9cc29834]{flex:1}.condition-group-editor .main-content[data-v-9cc29834]{padding:0 12px}.condition-group-editor .main-content .condition-relation[data-v-9cc29834]{color:#9ca2a9;align-items:center;height:36px;display:flex;justify-content:space-between;padding:0 2px}.condition-group-editor .main-content .condition-content-box[data-v-9cc29834]{display:flex;justify-content:space-between;align-items:center}.condition-group-editor .main-content .condition-content-box div[data-v-9cc29834]{width:100%;min-width:120px}.condition-group-editor .main-content .condition-content-box div[data-v-9cc29834]:not(:first-child){margin-left:16px}.condition-group-editor .main-content .cell-box div[data-v-9cc29834]{padding:16px 0;width:100%;min-width:120px;color:#909399;font-size:14px;font-weight:600;text-align:center}.condition-group-editor .main-content .condition-content[data-v-9cc29834]{display:flex;flex-direction:column}.condition-group-editor .main-content .condition-content[data-v-9cc29834] .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.condition-group-editor .main-content .condition-content .content[data-v-9cc29834]{flex:1;padding:0 0 4px;display:flex;align-items:center;min-height:31.6px;flex-wrap:wrap}.condition-group-editor .sub-content[data-v-9cc29834]{padding:12px}.node-disabled[data-v-9cc29834]{color:#8f959e}.node-disabled .content[data-v-9cc29834]{white-space:normal;word-break:break-word}.node-disabled .title .node-title[data-v-9cc29834]{color:#8f959e!important}.node-disabled[data-v-9cc29834]:hover{cursor:default}.popover[data-v-714c9e92]{display:flex;align-items:center;justify-content:space-around}.popover .popover-item[data-v-714c9e92]{height:42px;display:flex;font-size:13px;align-items:center;justify-content:center;flex-direction:column;text-align:center}.popover .popover-item span[data-v-714c9e92]{margin-inline-start:0}.popover .popover-item .anticon[data-v-714c9e92]{font-size:22px;justify-content:center;align-items:center}.cron-body-row{margin-bottom:8px}.cron-body-row .symbol{color:#1677ff;margin-right:6px}.content[data-v-c07f8c3a]{line-height:136%}.workflow-design{width:100%}.workflow-design .box-scale{display:inline-block;position:relative;width:100%;align-items:flex-start;justify-content:center;flex-wrap:wrap;min-width:min-content}.content_label{font-weight:700}.workflow-design .node-wrap{display:inline-flex;width:100%;flex-flow:column wrap;justify-content:flex-start;align-items:center;padding:0;position:relative;z-index:1}.workflow-design .node-wrap-box{display:inline-flex;flex-direction:column;position:relative;width:220px;min-height:72px;flex-shrink:0;background:#fff;border-radius:4px;cursor:pointer;box-shadow:0 2px 5px #0000001a}.workflow-design .node-wrap-box:before{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent}.workflow-design .start-node-disabled{border:1px solid #00000036;box-shadow:0 2px 5px #00000036}.workflow-design .node-wrap-box.start-node:before{content:none}.workflow-design .node-wrap-box .title{height:24px;line-height:24px;margin-top:8px;padding-left:16px;padding-right:30px;border-radius:4px 4px 0 0;position:relative;display:flex;align-items:center}.workflow-design .node-wrap-box .title .text{padding-left:5px;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .node-wrap-box .title .icon{margin-right:5px}.workflow-design .node-wrap-box .title .close{font-size:15px;position:absolute;top:50%;transform:translateY(-50%);right:10px;display:none}.workflow-design .node-wrap-box .content{position:relative;padding:13px 15px 15px}.workflow-design .node-wrap-box .content .placeholder{color:#999}.workflow-design .node-wrap-box-hover:hover .close{display:block}.workflow-design .add-node-btn-box{width:240px;display:inline-flex;flex-shrink:0;position:relative;z-index:1}.workflow-design .add-node-btn-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .add-node-btn{-webkit-user-select:none;user-select:none;width:240px;padding:32px 0;display:flex;justify-content:center;flex-shrink:0;flex-grow:1}.workflow-design .add-branch{justify-content:center;padding:0 10px;position:absolute;top:-16px;left:50%;transform:translate(-50%);transform-origin:center center;z-index:1;display:inline-flex;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:500;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;border-radius:20px;padding:8px 15px!important;color:#67c23a;background-color:#f0f9eb;border:1px solid #dcdfe6;border-color:#b3e19d}.workflow-design .add-branch:hover{color:#fff;border-color:#b3e19d;background-color:#67c23a}.workflow-design .branch-wrap{display:inline-flex;width:100%}.workflow-design .branch-box-wrap{display:flex;flex-flow:column wrap;align-items:center;min-height:270px;width:100%;flex-shrink:0}.workflow-design .col-box{display:inline-flex;flex-direction:column;align-items:center;position:relative}.workflow-design .branch-box{display:flex;overflow:visible;min-height:180px;height:auto;border-bottom:2px solid #ccc;border-top:2px solid #ccc;position:relative}.workflow-design .branch-box .col-box{background-color:#f0f2f5}.workflow-design .branch-box .col-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .condition-node{display:inline-flex;flex-direction:column;min-height:280px}.workflow-design .condition-node-box{padding-top:30px;padding-right:50px;padding-left:50px;justify-content:center;align-items:center;flex-grow:1;position:relative;display:inline-flex;flex-direction:column}.workflow-design .condition-node-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.workflow-design .auto-judge{position:relative;width:220px;min-height:72px;background:#fff;border-radius:4px;padding:15px;cursor:pointer;box-shadow:0 2px 5px #0000001a}.workflow-design .auto-judge:before{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent;background:#efefef}.workflow-design .auto-judge .title{line-height:16px}.workflow-design .auto-judge .title .text{width:139px;display:block;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .auto-judge .title .node-title{width:130px;color:#15bc83;display:block;text-overflow:ellipsis;overflow:hidden;word-break:break-all;white-space:nowrap}.workflow-design .auto-judge .title .close{font-size:15px;position:absolute;top:15px;right:15px;color:#999;display:none}.workflow-design .auto-judge .title .priority-title{position:absolute;top:15px;right:15px;color:#999}.workflow-design .auto-judge .content{line-height:136%;position:relative;padding-top:15px;min-height:59px}.workflow-design .auto-judge .content .placeholder{color:#999}.workflow-design .auto-judge-hover:hover .close{display:block}.workflow-design .auto-judge-hover:hover .priority-title{display:none}.workflow-design .top-left-cover-line,.workflow-design .top-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f0f2f5;top:-2px}.workflow-design .bottom-left-cover-line,.workflow-design .bottom-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f0f2f5;bottom:-2px}.workflow-design .top-left-cover-line{left:-1px}.workflow-design .top-right-cover-line{right:-1px}.workflow-design .bottom-left-cover-line{left:-1px}.workflow-design .bottom-right-cover-line{right:-1px}.workflow-design .end-node{border-radius:50%;font-size:14px;color:#191f2566;text-align:left}.workflow-design .end-node-circle{width:10px;height:10px;margin:auto;border-radius:50%;background:#ccc}.workflow-design .end-node-text{margin-top:5px;text-align:center}.workflow-design .auto-judge-hover:hover .sort-left,.workflow-design .auto-judge-hover:hover .sort-right{display:flex}.workflow-design .auto-judge .sort-left{position:absolute;top:0;bottom:0;z-index:1;left:0;display:none;justify-content:center;align-items:center;flex-direction:column}.workflow-design .auto-judge .sort-right{position:absolute;top:0;bottom:0;z-index:1;right:0;display:none;justify-content:center;align-items:center;flex-direction:column}.workflow-design .auto-judge .sort-left:hover,.workflow-design .auto-judge .sort-right:hover{background:#eee}.workflow-design .auto-judge:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;transition:all .1s}.workflow-design .auto-judge-def:hover:after{border:1px solid #3296fa;box-shadow:0 0 6px #3296fa4d}.workflow-design .node-wrap-box:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;transition:all .1s}.workflow-design .node-wrap-box-hover:hover:after{border:1px solid #3296fa;box-shadow:0 0 6px #3296fa4d}.workflow-design .node-error-skip:after,.workflow-design .node-error-default:after{border:1px solid #00000036;box-shadow:0 0 10px #00000069}.workflow-design .node-error-waiting:after{border:1px solid #64a6ea;box-shadow:0 0 6px #64a6ea}.workflow-design .node-error-running:after{border:1px solid #1b7ee5;box-shadow:0 0 6px #1b7ee5}.workflow-design .node-error-success:after{border:1px solid #087da1;box-shadow:0 0 6px #087da1}.workflow-design .node-error-fail:after{border:1px solid #f52d80;box-shadow:0 0 6px #f52d80}.workflow-design .node-error-stop:after{border:1px solid #ac2df5;box-shadow:0 0 6px #ac2df5}.workflow-design .node-error-cancel:after{border:1px solid #f5732d;box-shadow:0 0 6px #f5732d}.workflow-design .node-error-decision-failed:after{border:1px solid #f5732d;box-shadow:0 0 6px #f5732d}.workflow-design .error-tip{cursor:default;position:absolute;top:0;right:0;transform:translate(150%);font-size:24px}.tags-list{margin-top:15px;width:100%}.add-node-popover-body li{display:inline-block;width:80px;text-align:center;padding:10px 0}.add-node-popover-body li i{border:1px solid var(--el-border-color-light);width:40px;height:40px;border-radius:50%;text-align:center;line-height:38px;font-size:18px;cursor:pointer}.add-node-popover-body li i:hover{border:1px solid #3296fa;background:#3296fa;color:#fff!important}.add-node-popover-body li p{font-size:12px;margin-top:5px}.node-wrap-drawer__title{padding-right:40px}.node-wrap-drawer__title label{cursor:pointer}.node-wrap-drawer__title label:hover{border-bottom:1px dashed #409eff}.node-wrap-drawer__title .node-wrap-drawer__title-edit{color:#409eff;margin-left:10px;vertical-align:middle}.dark .workflow-design .node-wrap-box,.dark .workflow-design .auto-judge{background:#2b2b2b}.dark .workflow-design .col-box{background:var(--el-bg-color)}.dark .workflow-design .top-left-cover-line,.dark .workflow-design .top-right-cover-line,.dark .workflow-design .bottom-left-cover-line,.dark .workflow-design .bottom-right-cover-line{background-color:var(--el-bg-color)}.dark .workflow-design .node-wrap-box:before,.dark .workflow-design .auto-judge:before{background-color:var(--el-bg-color)}.dark .workflow-design .branch-box .add-branch{background:var(--el-bg-color)}.dark .workflow-design .end-node .end-node-text{color:#ccc}.dark .workflow-design .auto-judge .sort-left:hover,.dark .workflow-design .auto-judge .sort-right:hover{background:var(--el-bg-color)}.header[data-v-87877839]{display:flex;justify-content:space-between;align-items:center;width:100vw;box-shadow:0 1px 4px #00152914;background-color:#fff;box-sizing:border-box;padding:8px 16px}body{background-color:#f0f2f5}body .work-flow{margin-top:16px}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} diff --git a/public/lib/assets/index-QMlLtH5y.js b/public/lib/assets/index-QMlLtH5y.js deleted file mode 100644 index 37c40f4..0000000 --- a/public/lib/assets/index-QMlLtH5y.js +++ /dev/null @@ -1,8 +0,0 @@ -import{d as e,l as t,Y as a,Z as n,u as l,f as o,w as i,o as s,j as u,_ as d,k as r,$ as c,a0 as p,F as g,a1 as m,a2 as v,a3 as f,a4 as y,a5 as h,a6 as b,n as C,a7 as k,a8 as _,a9 as w,G as N,O as x,aa as S,B as V,ab as T,r as I,c as O,S as E}from"./vue--_kkPoVD.js";import{d as U,s as j,c as M,a as $}from"./pinia-_F_MrjSh.js";import{m as R,W as D,C as P,a as A,b as L,S as B,M as F,I as Y,L as z,_ as W,c as q,d as K,R as J,D as G,e as H,f as X,g as Z,B as Q,h as ee,i as te,j as ae,T as ne,k as le,P as oe,U as ie,l as se,n as ue,o as de,p as re,q as ce,r as pe,s as ge,t as me,u as ve,F as fe,v as ye,w as he,x as be,y as Ce,z as ke,A as _e,E as we,G as Ne,H as xe,J as Se,K as Ve,N as Te,O as Ie,Q as Oe,V as Ee,X as Ue,Y as je,Z as Me,$ as $e}from"./antdv-3leNc9CG.js";import{C as Re,j as De,o as Pe}from"./codemirror-tLd6xVyG.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const a of e)if("childList"===a.type)for(const e of a.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Ae=U("main",{state:()=>({id:"",type:0,mode:"development",token:"",nameSpaceId:"",groupName:"",jobList:[]}),persist:!0,getters:{ID:e=>e.id,TYPE:e=>e.type,TOKEN:e=>e.token,NAME_SPACE_ID:e=>e.nameSpaceId,GROUP_NAME:e=>e.groupName,JOB_LIST:e=>e.jobList},actions:{clear(){this.id="",this.type=0,this.mode="development",this.token="",this.nameSpaceId="",this.groupName="",this.jobList=[]},setId(e){this.id=e},setType(e){this.type=e},setMode(e){this.mode=e},setToken(e){e&&(this.token=e.replace(/"|\\/g,""))},setNameSpaceId(e){e&&(this.nameSpaceId=e.replace(/"|\\/g,""))},setGroupName(e){this.groupName=e},setJobList(e){this.jobList=e}}}),Le=(e,t="get",a,n)=>{const l=Ae(),{token:o,nameSpaceId:i,mode:s}=j(l);return new Promise(((l,u)=>{fetch(("production"===s.value?"/snail-job":"/proxy-default")+e,{signal:n,method:t,headers:{"Content-Type":"application/json","Snail-Job-Auth":o.value,"Snail-Job-Namespace-Id":i.value},body:a?JSON.stringify(a):null}).then((e=>e.json())).then((e=>{1===e.status?(e.page&&l(e),l(e.data)):(R.error(e.message||"未知错误,请联系管理员"),u())})).catch((()=>{u()}))}))}; -/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ -function Be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(l[a]=e[a]);return l}const ze={silent:!1,logLevel:"warn"},We=["validator"],qe=Object.prototype,Ke=qe.toString,Je=qe.hasOwnProperty,Ge=/^\s*function (\w+)/;function He(e){var t;const a=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(a){const e=a.toString().match(Ge);return e?e[1]:""}return""}const Xe=function(e){var t,a;return!1!==Be(e)&&(void 0===(t=e.constructor)||!1!==Be(a=t.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))};let Ze=e=>e;const Qe=(e,t)=>Je.call(e,t),et=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},tt=Array.isArray||function(e){return"[object Array]"===Ke.call(e)},at=e=>"[object Function]"===Ke.call(e),nt=(e,t)=>Xe(e)&&Qe(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),lt=e=>Xe(e)&&(Qe(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>Qe(e,t))));function ot(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function it(e,t,a=!1){let n,l=!0,o="";n=Xe(e)?e:{type:e};const i=nt(n)?n._vueTypes_name+" - ":"";if(lt(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return l;if(!n.required&&null==t)return l;tt(n.type)?(l=n.type.some((e=>!0===it(e,t,!0))),o=n.type.map((e=>He(e))).join(" or ")):(o=He(n),l="Array"===o?tt(t):"Object"===o?Xe(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return"";const t=e.constructor.toString().match(Ge);return t?t[1].replace(/^Async/,""):""}(t)===o:t instanceof n.type)}if(!l){const e=`${i}value "${t}" should be of type "${o}"`;return!1===a?(Ze(e),!1):e}if(Qe(n,"validator")&&at(n.validator)){const e=Ze,o=[];if(Ze=e=>{o.push(e)},l=n.validator(t),Ze=e,!l){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===a?(Ze(e),l):e}}return l}function st(e,t){const a=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(Qe(this,"default")&&delete this.default,this):at(e)||!0===it(this,e,!0)?(this.default=tt(e)?()=>[...e]:Xe(e)?()=>Object.assign({},e):e,this):(Ze(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=a;return at(n)&&(a.validator=ot(n,a)),a}function ut(e,t){const a=st(e,t);return Object.defineProperty(a,"validate",{value(e){return at(this.validator)&&Ze(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=ot(e,this),this}})}function dt(e,t,a){const n=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((a=>{t[a]=Object.getOwnPropertyDescriptor(e,a)})),Object.defineProperties({},t)}(t);if(n._vueTypes_name=e,!Xe(a))return n;const{validator:l}=a,o=Ye(a,We);if(at(l)){let{validator:e}=n;e&&(e=null!==(s=(i=e).__original)&&void 0!==s?s:i),n.validator=ot(e?function(t){return e.call(this,t)&&l.call(this,t)}:l,n)}var i,s;return Object.assign(n,o)}function rt(e){return e.replace(/^(?!\s*$)/gm," ")}const ct=()=>ut("any",{}),pt=()=>ut("boolean",{type:Boolean}),gt=()=>ut("string",{type:String}),mt=()=>ut("number",{type:Number}),vt=()=>ut("array",{type:Array}),ft=()=>ut("object",{type:Object});function yt(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return st(e.name||"<>",{type:null,validator(a){const n=e(a);return n||Ze(`${this._vueTypes_name} - ${t}`),n}})}function ht(e){if(!tt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map((e=>"symbol"==typeof e?e.toString():e)).join('", "')}".`,a={validator(a){const n=-1!==e.indexOf(a);return n||Ze(t),n}};if(-1===e.indexOf(null)){const t=e.reduce(((e,t)=>{if(null!=t){const a=t.constructor;-1===e.indexOf(a)&&e.push(a)}return e}),[]);t.length>0&&(a.type=t)}return st("oneOf",a)}function bt(e){if(!tt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,a=!1,n=[];for(let o=0;on.indexOf(e)===t));const l=!1===a&&n.length>0?n:null;return st("oneOfType",t?{type:l,validator(t){const a=[],n=e.some((e=>{const n=it(e,t,!0);return"string"==typeof n&&a.push(n),!0===n}));return n||Ze(`oneOfType - provided value does not match any of the ${a.length} passed-in validators:\n${rt(a.join("\n"))}`),n}}:{type:l})}function Ct(e){return st("arrayOf",{type:Array,validator(t){let a="";const n=t.every((t=>(a=it(e,t,!0),!0===a)));return n||Ze(`arrayOf - value validation error:\n${rt(a)}`),n}})}function kt(e){return st("instanceOf",{type:e})}function _t(e){return st("objectOf",{type:Object,validator(t){let a="";const n=Object.keys(t).every((n=>(a=it(e,t[n],!0),!0===a)));return n||Ze(`objectOf - value validation error:\n${rt(a)}`),n}})}function wt(e){const t=Object.keys(e),a=t.filter((t=>{var a;return!(null===(a=e[t])||void 0===a||!a.required)})),n=st("shape",{type:Object,validator(n){if(!Xe(n))return!1;const l=Object.keys(n);if(a.length>0&&a.some((e=>-1===l.indexOf(e)))){const e=a.filter((e=>-1===l.indexOf(e)));return Ze(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return l.every((a=>{if(-1===t.indexOf(a))return!0===this._vueTypes_isLoose||(Ze(`shape - shape definition does not include a "${a}" property. Allowed keys: "${t.join('", "')}".`),!1);const l=it(e[a],n[a],!0);return"string"==typeof l&&Ze(`shape - "${a}" property validation error:\n ${rt(l)}`),!0===l}))}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const Nt=["name","validate","getter"],xt=(()=>{var e;return(e=class{static get any(){return ct()}static get func(){return ut("function",{type:Function}).def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?pt():pt().def(this.defaults.bool)}static get string(){return gt().def(this.defaults.string)}static get number(){return mt().def(this.defaults.number)}static get array(){return vt().def(this.defaults.array)}static get object(){return ft().def(this.defaults.object)}static get integer(){return st("integer",{type:Number,validator(e){const t=et(e);return!1===t&&Ze(`integer - "${e}" is not an integer`),t}}).def(this.defaults.integer)}static get symbol(){return st("symbol",{validator(e){const t="symbol"==typeof e;return!1===t&&Ze(`symbol - invalid value "${e}"`),t}})}static get nullable(){return Object.defineProperty({type:null,validator(e){const t=null===e;return!1===t&&Ze("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})}static extend(e){if(Ze("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),tt(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:a=!1,getter:n=!1}=e,l=Ye(e,Nt);if(Qe(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:o}=l;if(nt(o))return delete l.type,Object.defineProperty(this,t,n?{get:()=>dt(t,o,l)}:{value(...e){const a=dt(t,o,l);return a.validator&&(a.validator=a.validator.bind(a,...e)),a}});let i;return i=n?{get(){const e=Object.assign({},l);return a?ut(t,e):st(t,e)},enumerable:!0}:{value(...e){const n=Object.assign({},l);let o;return o=a?ut(t,n):st(t,n),n.validator&&(o.validator=n.validator.bind(o,...e)),o},enumerable:!0},Object.defineProperty(this,t,i)}}).defaults={},e.sensibleDefaults=void 0,e.config=ze,e.custom=yt,e.oneOf=ht,e.instanceOf=kt,e.oneOfType=bt,e.arrayOf=Ct,e.objectOf=_t,e.shape=wt,e.utils={validate:(e,t)=>!0===it(t,e,!0),toType:(e,t,a=!1)=>a?ut(e,t):st(e,t)},e})();!function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;(t=class extends xt{static get sensibleDefaults(){return Fe({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?Fe({},!0!==t?t:e):{}}}).defaults=Fe({},e)}();const St=e({__name:"AntdIcon",props:{modelValue:ct(),size:gt(),color:gt()},setup(o){const i=e({props:{value:ct(),size:gt(),color:gt()},setup:e=>()=>{const{value:a}=e;return a?t(a,{style:{fontSize:e.size,color:e.color}},{}):null}});return(e,t)=>(a(),n(l(i),{value:o.modelValue,size:o.size,color:o.color},null,8,["value","size","color"]))}});var Vt=(e=>(e[e.SpEl=1]="SpEl",e[e.Aviator=2]="Aviator",e[e.QL=3]="QL",e))(Vt||{}),Tt=(e=>(e[e["固定时间"]=2]="固定时间",e[e["CRON表达式"]=3]="CRON表达式",e))(Tt||{}),It=(e=>(e[e["丢弃"]=1]="丢弃",e[e["覆盖"]=2]="覆盖",e[e["并行"]=3]="并行",e))(It||{}),Ot=(e=>(e[e["跳过"]=1]="跳过",e[e["阻塞"]=2]="阻塞",e))(Ot||{}),Et=(e=>(e[e["关闭"]=0]="关闭",e[e["开启"]=1]="开启",e))(Et||{}),Ut=(e=>(e[e.and=1]="and",e[e.or=2]="or",e))(Ut||{}),jt=(e=>(e[e["application/json"]=1]="application/json",e[e["application/x-www-form-urlencoded"]=2]="application/x-www-form-urlencoded",e))(jt||{});const Mt={1:{title:"待处理",name:"waiting",color:"#64a6ea",icon:D},2:{title:"运行中",name:"running",color:"#1b7ee5",icon:P},3:{title:"成功",name:"success",color:"#087da1",icon:A},4:{title:"失败",name:"fail",color:"#f52d80",icon:L},5:{title:"停止",name:"stop",color:"#ac2df5",icon:B},6:{title:"取消",name:"cancel",color:"#f5732d",icon:F},98:{title:"判定未通过",name:"decision-failed",color:"#b63f1a",icon:Y},99:{title:"跳过",name:"skip",color:"#00000036",icon:z}},$t={1:{name:"Java",color:"#d06892"}},Rt={0:{name:"无",color:"#f5f5f5"},1:{name:"执行超时",color:"#64a6ea"},2:{name:"无客户端节点",color:"#1b7ee5"},3:{name:"任务已关闭",color:"#087da1"},4:{name:"任务丢弃",color:"#3a2f81"},5:{name:"任务被覆盖",color:"#c2238a"},6:{name:"无可执行任务项",color:"#23c28a"},7:{name:"任务执行期间发生非预期异常",color:"#bdc223"},8:{name:"手动停止",color:"#23c28a"},9:{name:"条件节点执行异常",color:"#23c28a"},10:{name:"任务中断",color:"#bdc223"},11:{name:"回调节点执行异常",color:"#bdc223"},12:{name:"无需处理",color:"#23c28a"},13:{name:"节点关闭跳过执行",color:"#3a2f81"},14:{name:"判定未通过",color:"#b63f1a"}},Dt={2:{name:"运行中",color:"#1b7ee5"},3:{name:"成功",color:"#087da1"},4:{name:"失败",color:"#f52d80"},5:{name:"停止",color:"#ac2df5"},6:{name:"取消",color:"#7e7286"}},Pt={DEBUG:{name:"DEBUG",color:"#2647cc"},INFO:{name:"INFO",color:"#5c962c"},WARN:{name:"WARN",color:"#da9816"},ERROR:{name:"ERROR",color:"#dc3f41"}},At={0:{name:"关闭",color:"#dc3f41"},1:{name:"开启",color:"#1b7ee5"}},Lt=(e=>{const t={};return Object.keys(e).forEach((a=>{const n=e[parseInt(a,10)];t[parseInt(a,10)]={name:n.title,color:n.color}})),t})(Mt),Bt={class:"log"},Ft={class:"scroller"},Yt={class:"index"},zt={class:"content"},Wt={class:"line"},qt={class:"flex"},Kt={class:"text",style:{color:"#2db7f5"}},Jt={class:"text",style:{color:"#00a3a3"}},Gt={class:"text",style:{color:"#a771bf","font-weight":"500"}},Ht=(e=>(y("data-v-b01a1bda"),e=e(),h(),e))((()=>p("div",{class:"text"},":",-1))),Xt={class:"text",style:{"font-size":"16px"}},Zt={class:"text",style:{"font-size":"16px"}},Qt=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},ea=Qt(e({__name:"LogModal",props:{open:pt().def(!1),record:ft().def({}),modalValue:vt().def([])},emits:["update:open"],setup(e,{emit:t}){const n=t,y=e,h=o(!1),b=o([]);i((()=>y.open),(e=>{h.value=e}),{immediate:!0}),i((()=>y.modalValue),(e=>{b.value=e}),{immediate:!0,deep:!0});const C=o();s((()=>{S()})),u((()=>{V()}));const k=()=>{V(),n("update:open",!1)},_=new AbortController,w=o(!1);let N=0,x=0;const S=()=>{Le(`/job/log/list?taskBatchId=${y.record.taskBatchId}&jobId=${y.record.jobId}&taskId=${y.record.id}&startId=${N}&fromIndex=${x}&size=50`,"get",void 0,_.signal).then((e=>{w.value=e.finished,N=e.nextStartId,x=e.fromIndex,e.message&&(b.value.push(...e.message),b.value.sort(((e,t)=>e.time_stamp-t.time_stamp))),w.value||(clearTimeout(C.value),C.value=setTimeout(S,1e3))})).catch((()=>{w.value=!0}))},V=()=>{w.value=!0,_.abort(),clearTimeout(C.value),C.value=void 0},T=e=>{const t=new Date(Number.parseInt(e.toString()));return`${t.getFullYear()}-${1===(t.getMonth()+1).toString().length?"0"+(t.getMonth()+1):(t.getMonth()+1).toString()}-${t.getDate()} ${t.getHours()}:${1===t.getMinutes().toString().length?"0"+t.getMinutes():t.getMinutes().toString()}:${1===t.getSeconds().toString().length?"0"+t.getSeconds():t.getSeconds().toString()}.${t.getMilliseconds()}`};return(e,t)=>{const n=W;return a(),d("div",null,[r(n,{open:h.value,"onUpdate:open":t[0]||(t[0]=e=>h.value=e),height:"100vh",footer:null,title:"日志详情",placement:"bottom",destroyOnClose:"",bodyStyle:{padding:0},onClose:k},{default:c((()=>[p("div",Bt,[p("table",Ft,[p("tbody",null,[(a(!0),d(g,null,m(b.value,((e,t)=>(a(),d("tr",{key:t},[p("td",Yt,v(t+1),1),p("td",null,[p("div",zt,[p("div",Wt,[p("div",qt,[p("div",Kt,v(T(e.time_stamp)),1),p("div",{class:"text",style:f({color:l(Pt)[e.level].color})},v(4===e.level.length?e.level+" ":e.level),5),p("div",Jt,"["+v(e.thread)+"]",1),p("div",Gt,v(e.location),1),Ht]),p("div",Xt,v(e.message),1),p("div",Zt,v(e.throwable),1)])])])])))),128))])])])])),_:1},8,["open"])])}}}),[["__scopeId","data-v-b01a1bda"]]),ta={key:0},aa={style:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},na=(e=>(y("data-v-d1a651dd"),e=e(),h(),e))((()=>p("span",{style:{"padding-left":"18px"}},"任务项列表",-1))),la={style:{"padding-left":"6px"}},oa={key:0,style:{"padding-left":"6px"}},ia=["onClick"],sa={key:0},ua=Qt(e({__name:"DetailCard",props:{id:gt(),ids:vt().def([]),open:pt().def(!1)},emits:["update:open"],setup(e,{emit:u}){const y=u,h=e,S=b(),V=q.PRESENTED_IMAGE_SIMPLE,T=Ae(),I=o(!1),O=o(!1),E=o(!1),U=o(!1),j=o(1),M=o({}),$=o([]),D=o({current:1,defaultPageSize:10,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:e=>`共 ${e} 条`});i((()=>h.open),(e=>{I.value=e}),{immediate:!0});const P=o([]);s((()=>{h.ids.length>1&&(document.querySelector(".ant-pagination-prev").title="上一个",document.querySelector(".ant-pagination-next").title="下一个"),P.value=h.ids,C((()=>{h.ids.length>0?(B(h.ids[0]),F(h.ids[0])):h.id&&(P.value=[M.value.taskBatchId],L(h.id),F(M.value.taskBatchId))}))}));const A=()=>{y("update:open",!1)},L=e=>{E.value=!0,Le(`/job/${e}`).then((e=>{M.value=e,E.value=!1}))},B=e=>{E.value=!0,Le(`/job/batch/${e}`).then((e=>{M.value=e,E.value=!1}))},F=(e,t=1)=>{U.value=!0,Le(`/job/task/list?groupName=${T.GROUP_NAME}&taskBatchId=${e??"0"}&page=${t}`).then((e=>{D.value.total=e.total,$.value=e.data,U.value=!1}))},Y=o({}),z=e=>{const t=h.ids[e-1];B(t),F(t)},oe=o([{title:"日志",dataIndex:"log",width:"5%"},{title:"ID",dataIndex:"id",width:"10%"},{title:"组名称",dataIndex:"groupName"},{title:"地址",dataIndex:"clientInfo"},{title:"参数",dataIndex:"argsStr",ellipsis:!0},{title:"结果",dataIndex:"resultMessage",ellipsis:!0},{title:"状态",dataIndex:"taskStatus"},{title:"重试次数",dataIndex:"retryCount"},{title:"开始执行时间",dataIndex:"createDt",sorter:!0,width:"12%"}]);return(o,i)=>{const s=G,u=H,y=X,h=Z,b=Q,C=ee,L=te,B=ae,ie=ne,se=q,ue=le,de=W;return a(),d(g,null,[r(de,{title:"任务批次详情",placement:"right",width:800,open:I.value,"onUpdate:open":i[3]||(i[3]=e=>I.value=e),"destroy-on-close":"",onClose:A},k({default:c((()=>[P.value&&P.value.length>0?(a(),d("div",ta,[r(ie,{activeKey:j.value,"onUpdate:activeKey":i[1]||(i[1]=e=>j.value=e),animated:""},{renderTabBar:c((()=>[])),default:c((()=>[(a(!0),d(g,null,m(P.value,((e,m)=>(a(),n(B,{key:m+1,tab:e},{default:c((()=>{return[r(h,{spinning:E.value},{default:c((()=>[r(y,{bordered:"",column:2},{default:c((()=>[r(s,{label:"组名称"},{default:c((()=>[N(v(M.value.groupName),1)])),_:1}),M.value.jobName?(a(),n(s,{key:0,label:"任务名称"},{default:c((()=>[N(v(M.value.jobName),1)])),_:1})):_("",!0),M.value.nodeName?(a(),n(s,{key:1,label:"节点名称"},{default:c((()=>[N(v(M.value.nodeName),1)])),_:1})):_("",!0),r(s,{label:"状态"},{default:c((()=>[null!=M.value.taskBatchStatus?(a(),n(u,{key:0,color:l(Lt)[M.value.taskBatchStatus].color},{default:c((()=>[N(v(l(Lt)[M.value.taskBatchStatus].name),1)])),_:1},8,["color"])):_("",!0),null!=M.value.jobStatus?(a(),n(u,{key:1,color:l(At)[M.value.jobStatus].color},{default:c((()=>[N(v(l(At)[M.value.jobStatus].name),1)])),_:1},8,["color"])):_("",!0)])),_:1}),l(S).default?_("",!0):(a(),n(s,{key:2,label:"执行器类型"},{default:c((()=>[M.value.executorType?(a(),n(u,{key:0,color:l($t)[M.value.executorType].color},{default:c((()=>[N(v(l($t)[M.value.executorType].name),1)])),_:1},8,["color"])):_("",!0)])),_:1})),r(s,{label:"操作原因"},{default:c((()=>[void 0!==M.value.operationReason?(a(),n(u,{key:0,color:l(Rt)[M.value.operationReason].color,style:f(0===M.value.operationReason?{color:"#1e1e1e"}:{})},{default:c((()=>[N(v(l(Rt)[M.value.operationReason].name),1)])),_:1},8,["color","style"])):_("",!0)])),_:1}),l(S).default?_("",!0):(a(),n(s,{key:3,label:"执行器名称",span:2},{default:c((()=>[N(v(M.value.executorInfo),1)])),_:1})),r(s,{label:"开始执行时间"},{default:c((()=>[N(v(M.value.executionAt),1)])),_:1}),r(s,{label:"创建时间"},{default:c((()=>[N(v(M.value.createDt),1)])),_:1})])),_:1})])),_:1},8,["spinning"]),x(o.$slots,"default",{},void 0,!0),p("div",aa,[na,p("span",la,[r(C,{title:"刷新",placement:"bottom"},{default:c((()=>[r(b,{type:"text",icon:t(l(K)),onClick:t=>F(e)},null,8,["icon","onClick"])])),_:2},1024)]),(m=M.value.taskBatchStatus,4===m||5===m||6===m?(a(),d("span",oa,[r(C,{title:"重试",placement:"bottom"},{default:c((()=>[r(b,{type:"text",icon:t(l(J)),onClick:i[0]||(i[0]=e=>(e=>{Le(`/workflow/node/retry/${e.workflowNodeId}/${T.id}`,"post").then((e=>{const{status:t}=e;0!==t&&R.success("执行重试成功")}))})(M.value))},null,8,["icon"])])),_:1})])):_("",!0))]),r(L,{dataSource:$.value,columns:oe.value,loading:U.value,scroll:{x:1200},"row-key":"id",onChange:t=>{return a=e,n=t,D.value=n,void F(a,n.current);var a,n},pagination:D.value},{bodyCell:c((({column:e,record:t,text:o})=>["log"===e.dataIndex?(a(),d("a",{key:0,onClick:e=>{return a=t,Y.value=a,void(O.value=!0);var a}},"点击查看",8,ia)):_("",!0),"taskStatus"===e.dataIndex?(a(),d(g,{key:1},[o?(a(),n(u,{key:0,color:l(Dt)[o].color},{default:c((()=>[N(v(l(Dt)[o].name),1)])),_:2},1032,["color"])):_("",!0)],64)):_("",!0),"clientInfo"===e.dataIndex?(a(),d(g,{key:2},[N(v(""!==o?o.split("@")[1]:""),1)],64)):_("",!0)])),_:2},1032,["dataSource","columns","loading","onChange","pagination"])];var m})),_:2},1032,["tab"])))),128))])),_:3},8,["activeKey"])])):(a(),n(se,{key:1,class:"empty",image:l(V),description:"暂无数据"},null,8,["image"]))])),_:2},[e.ids&&e.ids.length>0?{name:"footer",fn:c((()=>[r(ue,{style:{"text-align":"center"},current:j.value,"onUpdate:current":i[2]||(i[2]=e=>j.value=e),total:e.ids.length,pageSize:1,hideOnSinglePage:"",onChange:z},{itemRender:c((({page:e,type:t,originalElement:l})=>["page"===t?(a(),d("a",sa,v(e),1)):(a(),n(w(l),{key:1}))])),_:1},8,["current","total"])])),key:"0"}:void 0]),1032,["open"]),O.value&&Y.value?(a(),n(ea,{key:0,open:O.value,"onUpdate:open":i[4]||(i[4]=e=>O.value=e),record:Y.value},null,8,["open","record"])):_("",!0)],64)}}}),[["__scopeId","data-v-d1a651dd"]]),da=e=>(y("data-v-74f467a1"),e=e(),h(),e),ra={class:"add-node-btn-box"},ca={class:"add-node-btn"},pa={class:"add-node-popover-body"},ga={class:"icon"},ma=da((()=>p("p",null,"任务节点",-1))),va=da((()=>p("p",null,"决策节点",-1))),fa=da((()=>p("p",null,"回调通知",-1))),ya=Qt(e({__name:"AddNode",props:{modelValue:ft(),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:o}){const i=o,s=e,u=e=>{let t={};1===e?t={nodeName:"任务节点",nodeType:1,conditionNodes:[{nodeName:"任务1",failStrategy:1,priorityLevel:1,workflowNodeStatus:1,jobTask:{jobId:void 0}}],childNode:s.modelValue}:2===e?t={nodeName:"决策节点",nodeType:2,conditionNodes:[{nodeName:"条件1",priorityLevel:1,decision:{expressionType:1,nodeExpression:void 0,logicalCondition:1,defaultDecision:0}},{nodeName:"其他情况",priorityLevel:2,decision:{expressionType:1,nodeExpression:"#true",logicalCondition:1,defaultDecision:1}}],childNode:s.modelValue}:3===e&&(t={nodeName:"回调通知",nodeType:3,conditionNodes:[{nodeName:"回调通知",workflowNodeStatus:1,callback:{webhook:void 0,contentType:void 0,secret:void 0}}],childNode:s.modelValue}),i("update:modelValue",t)};return(o,i)=>{const s=Q,g=oe;return a(),d("div",ra,[p("div",ca,[e.disabled?_("",!0):(a(),n(g,{key:0,placement:"rightTop",trigger:"click","overlay-style":{width:"296px"}},{content:c((()=>[p("div",pa,[p("ul",ga,[p("li",null,[r(s,{shape:"circle",size:"large",onClick:i[0]||(i[0]=e=>u(1))},{default:c((()=>[r(l(ie),{style:{color:"#3296fa"}})])),_:1}),ma]),p("li",null,[r(s,{shape:"circle",size:"large",onClick:i[1]||(i[1]=e=>u(2))},{default:c((()=>[r(l(se),{style:{color:"#15bc83"}})])),_:1}),va]),p("li",null,[r(s,{shape:"circle",size:"large",onClick:i[2]||(i[2]=e=>u(3))},{default:c((()=>[r(l(ue),{style:{color:"#935af6"}})])),_:1}),fa])])])])),default:c((()=>[r(s,{type:"primary",icon:t(l(de)),shape:"circle"},null,8,["icon"])])),_:1}))])])}}}),[["__scopeId","data-v-74f467a1"]]),ha=e=>{const t=[];for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const n=e[a];"number"==typeof n&&t.push({name:a,value:n})}return t},ba=e({__name:"TaskDrawer",props:{open:pt().def(!1),len:mt().def(0),modelValue:ft().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const u=t,p=e,f=Ae(),y=o(!1),h=o({}),b=o([]);s((()=>{b.value=f.JOB_LIST})),i((()=>p.open),(e=>{y.value=e}),{immediate:!0}),i((()=>p.modelValue),(e=>{h.value=e}),{immediate:!0,deep:!0});const C=()=>{u("update:modelValue",h.value)},k=o(),_=()=>{var e;null==(e=k.value)||e.validate().then((()=>{w(),u("save",h.value)})).catch((()=>{R.warning("请检查表单信息")}))},w=()=>{u("update:open",!1),y.value=!1},x={failStrategy:[{required:!0,message:"请选择失败策略",trigger:"change"}],workflowNodeStatus:[{required:!0,message:"请选择工作流状态",trigger:"change"}]},S=(e,t)=>{h.value.jobTask.jobName=t.title};return(t,o)=>{const i=re,s=ce,u=pe,p=ge,f=me,V=ve,T=fe,I=Q,O=W;return a(),n(O,{open:y.value,"onUpdate:open":o[5]||(o[5]=e=>y.value=e),"destroy-on-close":"",width:500,onClose:w},{title:c((()=>[r(i,{style:{margin:"0",width:"412px"},ellipsis:"",content:h.value.nodeName,"onUpdate:content":o[0]||(o[0]=e=>h.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:C},null,8,["content"])])),extra:c((()=>[r(u,{value:h.value.priorityLevel,"onUpdate:value":o[1]||(o[1]=e=>h.value.priorityLevel=e),style:{width:"110px"}},{default:c((()=>[(a(!0),d(g,null,m(e.len,(e=>(a(),n(s,{key:e,value:e},{default:c((()=>[N("优先级 "+v(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),footer:c((()=>[r(I,{type:"primary",onClick:_},{default:c((()=>[N("保存")])),_:1}),r(I,{style:{"margin-left":"12px"},onClick:w},{default:c((()=>[N("取消")])),_:1})])),default:c((()=>[r(T,{ref_key:"formRef",ref:k,rules:x,layout:"vertical",model:h.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:c((()=>[r(p,{name:["jobTask","jobId"],label:"所属任务",placeholder:"请选择任务",rules:[{required:!0,message:"请选择任务",trigger:"change"}]},{default:c((()=>[r(u,{value:h.value.jobTask.jobId,"onUpdate:value":o[2]||(o[2]=e=>h.value.jobTask.jobId=e),onChange:S},{default:c((()=>[(a(!0),d(g,null,m(b.value,(e=>(a(),n(s,{key:e.id,value:e.id,title:e.jobName},{default:c((()=>[N(v(e.jobName),1)])),_:2},1032,["value","title"])))),128))])),_:1},8,["value"])])),_:1}),r(p,{name:"failStrategy",label:"失败策略"},{default:c((()=>[r(V,{value:h.value.failStrategy,"onUpdate:value":o[3]||(o[3]=e=>h.value.failStrategy=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Ot)),(e=>(a(),n(f,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),r(p,{name:"workflowNodeStatus",label:"节点状态"},{default:c((()=>[r(V,{value:h.value.workflowNodeStatus,"onUpdate:value":o[4]||(o[4]=e=>h.value.workflowNodeStatus=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Et)),(e=>(a(),n(f,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),Ca=e({__name:"TaskDetail",props:{modelValue:ft().def({}),open:pt().def(!1)},emits:["update:open"],setup(e,{emit:t}){const s=t,u=e,d=Ae(),p=o(!1);i((()=>u.open),(e=>{p.value=e}),{immediate:!0});const g=()=>{s("update:open",!1)},m=e=>{var t;return null==(t=d.JOB_LIST.find((t=>t.id===e)))?void 0:t.jobName};return(t,o)=>{const i=G,s=X,u=W;return a(),n(u,{title:"任务详情",placement:"right",width:500,open:p.value,"onUpdate:open":o[0]||(o[0]=e=>p.value=e),"destroy-on-close":"",onClose:g},{default:c((()=>[r(s,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:c((()=>[r(i,{label:"节点名称"},{default:c((()=>[N(v(e.modelValue.nodeName),1)])),_:1}),r(i,{label:"任务 ID"},{default:c((()=>{var t;return[N(v(null==(t=e.modelValue.jobTask)?void 0:t.jobId),1)]})),_:1}),r(i,{label:"任务名称"},{default:c((()=>{var t;return[N(v(m(null==(t=e.modelValue.jobTask)?void 0:t.jobId)),1)]})),_:1}),r(i,{label:"失败策略"},{default:c((()=>[N(v(l(Ot)[e.modelValue.failStrategy]),1)])),_:1}),r(i,{label:"工作流状态"},{default:c((()=>[N(v(l(Et)[e.modelValue.workflowNodeStatus]),1)])),_:1})])),_:1})])),_:1},8,["open"])}}}),ka=e=>(y("data-v-c16efffd"),e=e(),h(),e),_a={class:"node-wrap"},wa={class:"branch-box"},Na={class:"condition-node"},xa={class:"condition-node-box"},Sa={class:"popover"},Va=ka((()=>p("span",null,"重试",-1))),Ta=ka((()=>p("span",null,"停止",-1))),Ia=["onClick"],Oa=["onClick"],Ea={class:"title"},Ua={class:"text",style:{color:"#3296fa"}},ja={class:"priority-title"},Ma={class:"content",style:{"min-height":"81px"}},$a={key:0,class:"placeholder"},Ra=ka((()=>p("span",{class:"content_label"},"任务名称: ",-1))),Da=ka((()=>p("span",{class:"content_label"},"失败策略: ",-1))),Pa=ka((()=>p("div",null,".........",-1))),Aa=["onClick"],La={key:1,class:"top-left-cover-line"},Ba={key:2,class:"bottom-left-cover-line"},Fa={key:3,class:"top-right-cover-line"},Ya={key:4,class:"bottom-right-cover-line"},za=Qt(e({__name:"TaskNode",props:{modelValue:ft().def({}),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,u=e,f=Ae(),y=o({}),h=o({});i((()=>u.modelValue),(e=>{y.value=e}),{immediate:!0,deep:!0});const b=()=>{var e;const t=y.value.conditionNodes.length+1;null==(e=y.value.conditionNodes)||e.push({nodeName:"任务"+t,priorityLevel:t,failStrategy:1,workflowNodeStatus:1,jobTask:{jobId:void 0}}),s("update:modelValue",y.value)},k=(e,t)=>{e.childNode?k(e.childNode,t):e.childNode=t},w=(e,t=1)=>{var a;y.value.conditionNodes[e]=y.value.conditionNodes.splice(e+t,1,y.value.conditionNodes[e])[0],null==(a=y.value.conditionNodes)||a.map(((e,t)=>{e.priorityLevel=t+1})),s("update:modelValue",y.value)},T=o(0),I=o(!1),O=o({}),E=e=>{const t=y.value.conditionNodes[T.value].priorityLevel,a=e.priorityLevel;y.value.conditionNodes[T.value]=e,t!==a&&w(T.value,a-t),s("update:modelValue",y.value)},U=e=>u.disabled?2===f.TYPE?`node-error node-error-${e.taskBatchStatus&&Mt[e.taskBatchStatus]?Mt[e.taskBatchStatus].name:"default"}`:"node-error":"auto-judge-def auto-judge-hover",j=o(),M=o(),$=o(!1),D=o([]),P=(e,t)=>{var a,n,l,o;M.value=[],2===f.TYPE?(null==(a=e.jobBatchList)||a.sort(((e,t)=>e.taskBatchStatus-t.taskBatchStatus)).forEach((e=>{var t;e.id?null==(t=M.value)||t.push(e.id):e.jobId&&(j.value=e.jobId.toString())})),(null==(n=e.jobTask)?void 0:n.jobId)&&(j.value=null==(l=e.jobTask)?void 0:l.jobId.toString()),$.value=!0):1===f.TYPE?D.value[t]=!0:(o=t,u.disabled||(T.value=o,O.value=JSON.parse(JSON.stringify(y.value.conditionNodes[o])),I.value=!0))},A=e=>4===e||5===e||6===e,L=e=>1===e||2===e;return(t,o)=>{const i=Q,u=_e,T=Ce,F=ke,Y=ee,z=oe;return a(),d("div",_a,[p("div",wa,[e.disabled?_("",!0):(a(),n(i,{key:0,class:"add-branch",primary:"",onClick:b},{default:c((()=>[N("添加任务")])),_:1})),(a(!0),d(g,null,m(y.value.conditionNodes,((o,m)=>(a(),d("div",{class:"col-box",key:m},[p("div",Na,[p("div",xa,[r(z,{open:h.value[m]&&2===l(f).TYPE,getPopupContainer:e=>e.parentNode,onOpenChange:e=>h.value[m]=e},{content:c((()=>[p("div",Sa,[A(o.taskBatchStatus)?(a(),n(u,{key:0,type:"vertical"})):_("",!0),A(o.taskBatchStatus)?(a(),n(i,{key:1,type:"text",class:"popover-item",onClick:e=>(e=>{Le(`/workflow/node/retry/${e.id}/${f.id}`,"post").then((e=>{const{status:t}=e;0!==t&&R.success("执行重试成功")}))})(o)},{default:c((()=>[r(l(J)),Va])),_:2},1032,["onClick"])):_("",!0),L(o.taskBatchStatus)?(a(),n(u,{key:2,type:"vertical"})):_("",!0),L(o.taskBatchStatus)?(a(),n(i,{key:3,type:"text",class:"popover-item",onClick:e=>(e=>{Le(`/workflow/node/stop/${e.id}/${f.id}`,"post").then((e=>{const{status:t}=e;0!==t&&R.success("停止任务成功")}))})(o)},{default:c((()=>[r(l(B)),Ta])),_:2},1032,["onClick"])):_("",!0)])])),default:c((()=>{var t,i,u,h;return[p("div",{class:S(["auto-judge",U(o)]),style:{cursor:"pointer"},onClick:e=>P(o,m)},[0!=m?(a(),d("div",{key:0,class:"sort-left",onClick:V((e=>w(m,-1)),["stop"])},[r(l(ye))],8,Oa)):_("",!0),p("div",Ea,[p("span",Ua,[r(T,{status:"processing",color:1===o.workflowNodeStatus?"#52c41a":"#ff4d4f"},null,8,["color"]),N(" "+v(o.nodeName),1)]),p("span",ja,"优先级"+v(o.priorityLevel),1),e.disabled?_("",!0):(a(),n(l(he),{key:0,class:"close",onClick:V((e=>(e=>{var t;1===y.value.conditionNodes.length?(y.value.childNode&&(y.value.conditionNodes[0].childNode?k(y.value.conditionNodes[0].childNode,y.value.childNode):y.value.conditionNodes[0].childNode=y.value.childNode),C((()=>{s("update:modelValue",y.value.conditionNodes[0].childNode)}))):null==(t=y.value.conditionNodes)||t.splice(e,1)})(m)),["stop"])},null,8,["onClick"]))]),p("div",Ma,[(null==(t=o.jobTask)?void 0:t.jobId)?_("",!0):(a(),d("div",$a,"请选择任务")),(null==(i=o.jobTask)?void 0:i.jobId)?(a(),d(g,{key:1},[p("div",null,[Ra,r(F,{style:{width:"126px"},ellipsis:"",content:`${null==(u=o.jobTask)?void 0:u.jobName}(${null==(h=o.jobTask)?void 0:h.jobId})`},null,8,["content"])]),p("div",null,[Da,N(v(l(Ot)[o.failStrategy]),1)]),Pa],64)):_("",!0)]),m!=y.value.conditionNodes.length-1?(a(),d("div",{key:1,class:"sort-right",onClick:V((e=>w(m)),["stop"])},[r(l(be))],8,Aa)):_("",!0),2===l(f).TYPE&&o.taskBatchStatus?(a(),n(Y,{key:2},{title:c((()=>[N(v(l(Mt)[o.taskBatchStatus].title),1)])),default:c((()=>[r(l(St),{class:"error-tip",color:l(Mt)[o.taskBatchStatus].color,size:"24px",onClick:V((()=>{}),["stop"]),"model-value":l(Mt)[o.taskBatchStatus].icon},null,8,["color","model-value"])])),_:2},1024)):_("",!0)],10,Ia)]})),_:2},1032,["open","getPopupContainer","onOpenChange"]),r(ya,{disabled:e.disabled,modelValue:o.childNode,"onUpdate:modelValue":e=>o.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),o.childNode?x(t.$slots,"default",{key:0,node:o},void 0,!0):_("",!0),0==m?(a(),d("div",La)):_("",!0),0==m?(a(),d("div",Ba)):_("",!0),m==y.value.conditionNodes.length-1?(a(),d("div",Fa)):_("",!0),m==y.value.conditionNodes.length-1?(a(),d("div",Ya)):_("",!0),0!==l(f).type&&D.value[m]?(a(),n(Ca,{key:5,open:D.value[m],"onUpdate:open":e=>D.value[m]=e,modelValue:y.value.conditionNodes[m],"onUpdate:modelValue":e=>y.value.conditionNodes[m]=e},null,8,["open","onUpdate:open","modelValue","onUpdate:modelValue"])):_("",!0)])))),128))]),y.value.conditionNodes.length>1?(a(),n(ya,{key:0,disabled:e.disabled,modelValue:y.value.childNode,"onUpdate:modelValue":o[0]||(o[0]=e=>y.value.childNode=e)},null,8,["disabled","modelValue"])):_("",!0),0===l(f).TYPE&&I.value?(a(),n(ba,{key:1,open:I.value,"onUpdate:open":o[1]||(o[1]=e=>I.value=e),modelValue:O.value,"onUpdate:modelValue":o[2]||(o[2]=e=>O.value=e),len:y.value.conditionNodes.length,"onUpdate:len":o[3]||(o[3]=e=>y.value.conditionNodes.length=e),onSave:E},null,8,["open","modelValue","len"])):_("",!0),0!==l(f).TYPE&&$.value?(a(),n(l(ua),{key:2,open:$.value,"onUpdate:open":o[4]||(o[4]=e=>$.value=e),id:j.value,ids:M.value},null,8,["open","id","ids"])):_("",!0)])}}}),[["__scopeId","data-v-c16efffd"]]),Wa=Qt(e({__name:"BranchDrawer",props:{open:pt().def(!1),len:mt().def(0),modelValue:ft().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const s=t,u=e,p=o(!1),f=o({}),y=o({".cm-line":{fontSize:"18px"},".cm-scroller":{height:"500px",overflowY:"auto",overflowX:"hidden"}});i((()=>u.open),(e=>{p.value=e}),{immediate:!0}),i((()=>u.modelValue),(e=>{f.value=e}),{immediate:!0,deep:!0});const h=()=>{s("update:modelValue",f.value)},b=o(),C=()=>{var e;null==(e=b.value)||e.validate().then((()=>{_(),s("save",f.value)})).catch((()=>{R.warning("请检查表单信息")}))},k=async()=>{const{key:e,value:t}=await Le("/workflow/check-node-expression","post",f.value.decision);return 1!==e?Promise.reject(t??"请检查条件表达式"):Promise.resolve()},_=()=>{s("update:open",!1),p.value=!1};return(t,o)=>{const i=re,s=ce,u=pe,w=me,x=ve,S=ge,V=fe,T=Q,I=W;return a(),n(I,{open:p.value,"onUpdate:open":o[5]||(o[5]=e=>p.value=e),"destroy-on-close":"",width:500,onClose:_},{title:c((()=>[r(i,{style:{margin:"0",width:"412px"},ellipsis:"",content:f.value.nodeName,"onUpdate:content":o[0]||(o[0]=e=>f.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:h},{editableEnterIcon:c((()=>[N(v(null))])),_:1},8,["content"])])),extra:c((()=>[r(u,{value:f.value.priorityLevel,"onUpdate:value":o[1]||(o[1]=e=>f.value.priorityLevel=e),style:{width:"110px"}},{default:c((()=>[(a(!0),d(g,null,m(e.len-1,(e=>(a(),n(s,{key:e,value:e},{default:c((()=>[N("优先级 "+v(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),footer:c((()=>[r(T,{type:"primary",onClick:C},{default:c((()=>[N("保存")])),_:1}),r(T,{style:{"margin-left":"12px"},onClick:_},{default:c((()=>[N("取消")])),_:1})])),default:c((()=>[r(V,{layout:"vertical",ref_key:"formRef",ref:b,model:f.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:c((()=>[r(S,{name:["decision","logicalCondition"],label:"判定逻辑",rules:[{required:!0,message:"请选择判定逻辑",trigger:"change"}]},{default:c((()=>[r(x,{value:f.value.decision.logicalCondition,"onUpdate:value":o[2]||(o[2]=e=>f.value.decision.logicalCondition=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Ut)),(e=>(a(),n(w,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),r(S,{name:["decision","expressionType"],label:"表达式类型",rules:[{required:!0,message:"请选择表达式类型",trigger:"change"}]},{default:c((()=>[r(x,{value:f.value.decision.expressionType,"onUpdate:value":o[3]||(o[3]=e=>f.value.decision.expressionType=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Vt)),(e=>(a(),n(w,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),r(S,{name:["decision","nodeExpression"],label:"条件表达式",rules:[{required:!0,message:"请填写条件表达式",trigger:"change"},{validator:k,trigger:"blur"}]},{default:c((()=>[r(l(Re),{modelValue:f.value.decision.nodeExpression,"onUpdate:modelValue":o[4]||(o[4]=e=>f.value.decision.nodeExpression=e),theme:y.value,basic:"",lang:l(De)(),extensions:[l(Pe)]},null,8,["modelValue","theme","lang","extensions"])])),_:1},8,["rules"])])),_:1},8,["model"])])),_:1},8,["open"])}}}),[["__scopeId","data-v-83531903"]]),qa=Qt(e({__name:"BranchDesc",props:{modelValue:ft().def({})},setup(e){const t=e,i=o("");s((()=>{var e;C((()=>{d()})),(null==(e=t.modelValue.decision)?void 0:e.nodeExpression)&&(i.value=t.modelValue.decision.nodeExpression)}));const u=o({".cm-line":{fontSize:"18px"},".cm-scroller":{height:"520px",overflowY:"auto",overflowX:"hidden"}}),d=()=>{const e=document.getElementById("branch-desc"),t=null==e?void 0:e.querySelector(".ant-descriptions-view"),a=null==t?void 0:t.querySelector("tbody"),n=document.createElement("tr");n.className="ant-descriptions-row";const l=document.createElement("th");l.className="ant-descriptions-item-label",l.innerHTML="条件表达式",l.setAttribute("colspan","4"),n.appendChild(l),null==a||a.insertBefore(n,null==a?void 0:a.childNodes[3]);const o=(null==a?void 0:a.getElementsByClassName("ant-descriptions-row"))[3];o.childNodes[2].remove();const i=o.querySelector(".ant-descriptions-item-content");i.setAttribute("style","padding: 0"),null==i||i.setAttribute("colspan","4")};return(t,o)=>{const s=G,d=X;return a(),n(d,{id:"branch-desc",column:2,bordered:"",labelStyle:{width:"120px"}},{default:c((()=>[r(s,{label:"节点名称",span:2},{default:c((()=>[N(v(e.modelValue.nodeName),1)])),_:1}),r(s,{label:"判定逻辑"},{default:c((()=>{var t;return[N(v(l(Ut)[null==(t=e.modelValue.decision)?void 0:t.logicalCondition]),1)]})),_:1}),r(s,{label:"表达式类型"},{default:c((()=>{var t;return[N(v(l(Vt)[null==(t=e.modelValue.decision)?void 0:t.expressionType]),1)]})),_:1}),r(s,{label:"条件表达式",span:2},{default:c((()=>[r(l(Re),{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),readonly:"",disabled:"",theme:u.value,basic:"",lang:l(De)(),extensions:[l(Pe)]},null,8,["modelValue","theme","lang","extensions"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-dc9046db"]]),Ka=e({__name:"BranchDetail",props:{modelValue:ft().def({}),open:pt().def(!1)},emits:["update:open"],setup(e,{emit:t}){const l=t,s=e,u=o(!1);i((()=>s.open),(e=>{u.value=e}),{immediate:!0});const d=()=>{l("update:open",!1)};return(t,l)=>{const o=W;return a(),n(o,{title:"决策详情",placement:"right",width:500,open:u.value,"onUpdate:open":l[0]||(l[0]=e=>u.value=e),"destroy-on-close":"",onClose:d},{default:c((()=>[r(qa,{"model-value":e.modelValue},null,8,["model-value"])])),_:1},8,["open"])}}}),Ja={class:"branch-wrap"},Ga={class:"branch-box-wrap"},Ha={class:"branch-box"},Xa={class:"condition-node"},Za={class:"condition-node-box"},Qa=["onClick"],en=["onClick"],tn={class:"title"},an={class:"node-title"},nn={class:"priority-title"},ln={class:"content"},on=["innerHTML"],sn={key:1,class:"placeholder"},un=["onClick"],dn={key:1,class:"top-left-cover-line"},rn={key:2,class:"bottom-left-cover-line"},cn={key:3,class:"top-right-cover-line"},pn={key:4,class:"bottom-right-cover-line"},gn=(e=>(y("data-v-9cc29834"),e=e(),h(),e))((()=>p("div",{style:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},[p("span",{style:{"padding-left":"18px"}},"决策节点详情")],-1))),mn=Qt(e({__name:"BranchNode",props:{modelValue:ft().def({}),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,u=e,f=Ae(),y=o({});i((()=>u.modelValue),(e=>{y.value=e}),{immediate:!0,deep:!0});const h=()=>{const e=y.value.conditionNodes.length;y.value.conditionNodes.splice(-1,0,{nodeName:"条件"+e,priorityLevel:e,decision:{expressionType:1,nodeExpression:void 0,logicalCondition:1,defaultDecision:0}}),y.value.conditionNodes[e].priorityLevel=e+1},b=(e,t)=>{e.childNode?b(e.childNode,t):e.childNode=t},k=(e,t=1)=>{var a;y.value.conditionNodes[e]=y.value.conditionNodes.splice(e+t,1,y.value.conditionNodes[e])[0],null==(a=y.value.conditionNodes)||a.map(((e,t)=>{e.priorityLevel=t+1})),s("update:modelValue",y.value)},w=(e,t)=>{const{nodeName:a,decision:n}=e.conditionNodes[t],{logicalCondition:l,expressionType:o,nodeExpression:i}=n;if(i){if("其他情况"!==a){return`${Ut[l]}\n${Vt[o]}\n${i}`}return"如存在未满足其他分支条件的情况,则进入此分支"}if("其他情况"===a)return"如存在未满足其他分支条件的情况,则进入此分支"},T=o(0),I=o(!1),O=o([]),E=o({}),U=e=>{const t=y.value.conditionNodes[T.value].priorityLevel,a=e.priorityLevel;y.value.conditionNodes[T.value]=e,t!==a&&k(T.value,a-t),s("update:modelValue",y.value)},j=o([]),M=o(""),$=o([]),R=(e,t)=>{var a,n;if($.value=[],"其他情况"!==e.nodeName)if(2===f.TYPE){if(null==(a=e.jobBatchList)||a.forEach((e=>{var t;e.id?null==(t=$.value)||t.push(e.id):e.jobId&&(M.value=e.jobId.toString())})),0===$.value.length)return void(O.value[t]=!0);j.value[t]=!0}else 1===f.TYPE?O.value[t]=!0:(n=t,u.disabled||n===y.value.conditionNodes.length-1?0!==f.TYPE&&(O.value[n]=!0):(T.value=n,E.value=JSON.parse(JSON.stringify(y.value.conditionNodes[n])),I.value=!0))},D=e=>u.disabled?2===f.TYPE?"其他情况"===e.nodeName?`node-disabled node-error node-error-${e.taskBatchStatus?Mt[e.taskBatchStatus].name:"default"}`:`node-error node-error-${e.taskBatchStatus?Mt[e.taskBatchStatus].name:"default"}`:"其他情况"===e.nodeName?"node-disabled":"node-error":"其他情况"===e.nodeName?"node-disabled":"auto-judge-def auto-judge-hover";return(t,o)=>{const i=Q,u=Ce,T=ee;return a(),d("div",Ja,[p("div",Ga,[p("div",Ha,[e.disabled?_("",!0):(a(),n(i,{key:0,class:"add-branch",primary:"",onClick:h},{default:c((()=>[N("添加条件")])),_:1})),(a(!0),d(g,null,m(y.value.conditionNodes,((o,i)=>(a(),d("div",{class:"col-box",key:i},[p("div",Xa,[p("div",Za,[p("div",{class:S(["auto-judge",D(o)]),onClick:e=>R(o,i)},[0!==i?(a(),d("div",{key:0,class:"sort-left",onClick:V((e=>k(i,-1)),["stop"])},[r(l(ye))],8,en)):_("",!0),p("div",tn,[p("span",an,[r(u,{status:"processing",color:"#52c41a"}),N(" "+v(o.nodeName)+" ",1),"其他情况"===o.nodeName?(a(),n(T,{key:0},{title:c((()=>[N(" 该分支为系统默认创建,与其他分支互斥。只有当其他分支都无法运行时,才会运行该分支。 ")])),default:c((()=>[r(l(we),{style:{"margin-left":"3px"}})])),_:1})):_("",!0)]),p("span",nn,"优先级"+v(o.priorityLevel),1),e.disabled?_("",!0):(a(),n(l(he),{key:0,class:"close",onClick:V((e=>{return t=i,null==(a=y.value.conditionNodes)||a.splice(t,1),void(1===y.value.conditionNodes.length&&(y.value.childNode&&(y.value.conditionNodes[0].childNode?b(y.value.conditionNodes[0].childNode,y.value.childNode):y.value.conditionNodes[0].childNode=y.value.childNode),C((()=>{s("update:modelValue",y.value.conditionNodes[0].childNode)}))));var t,a}),["stop"])},null,8,["onClick"]))]),p("div",ln,[w(y.value,i)?(a(),d("span",{key:0,innerHTML:w(y.value,i)},null,8,on)):(a(),d("span",sn," 请设置条件 "))]),i!==y.value.conditionNodes.length-2?(a(),d("div",{key:1,class:"sort-right",onClick:V((e=>k(i)),["stop"])},[r(l(be))],8,un)):_("",!0),2===l(f).TYPE&&o.taskBatchStatus?(a(),n(T,{key:2},{title:c((()=>[N(v(l(Mt)[o.taskBatchStatus].title),1)])),default:c((()=>[r(l(St),{class:"error-tip",color:l(Mt)[o.taskBatchStatus].color,size:"24px",onClick:V((()=>{}),["stop"]),"model-value":l(Mt)[o.taskBatchStatus].icon},null,8,["color","model-value"])])),_:2},1024)):_("",!0)],10,Qa),r(ya,{disabled:e.disabled,modelValue:o.childNode,"onUpdate:modelValue":e=>o.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),o.childNode?x(t.$slots,"default",{key:0,node:o},void 0,!0):_("",!0),0==i?(a(),d("div",dn)):_("",!0),0==i?(a(),d("div",rn)):_("",!0),i==y.value.conditionNodes.length-1?(a(),d("div",cn)):_("",!0),i==y.value.conditionNodes.length-1?(a(),d("div",pn)):_("",!0),0!==l(f).type&&O.value[i]?(a(),n(Ka,{key:5,open:O.value[i],"onUpdate:open":e=>O.value[i]=e,modelValue:y.value.conditionNodes[i],"onUpdate:modelValue":e=>y.value.conditionNodes[i]=e},null,8,["open","onUpdate:open","modelValue","onUpdate:modelValue"])):_("",!0),0!==l(f).TYPE&&j.value[i]?(a(),n(l(ua),{key:6,open:j.value[i],"onUpdate:open":e=>j.value[i]=e,id:M.value,ids:$.value},{default:c((()=>[gn,r(qa,{modelValue:y.value.conditionNodes[i],"onUpdate:modelValue":e=>y.value.conditionNodes[i]=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["open","onUpdate:open","id","ids"])):_("",!0)])))),128))]),r(ya,{disabled:e.disabled,modelValue:y.value.childNode,"onUpdate:modelValue":o[0]||(o[0]=e=>y.value.childNode=e)},null,8,["disabled","modelValue"])]),r(Wa,{open:I.value,"onUpdate:open":o[1]||(o[1]=e=>I.value=e),modelValue:E.value,"onUpdate:modelValue":o[2]||(o[2]=e=>E.value=e),len:y.value.conditionNodes.length,"onUpdate:len":o[3]||(o[3]=e=>y.value.conditionNodes.length=e),onSave:U},null,8,["open","modelValue","len"])])}}}),[["__scopeId","data-v-9cc29834"]]),vn=e({__name:"CallbackDrawer",props:{open:pt().def(!1),len:mt().def(0),modelValue:ft().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const s=t,u=e,p=o(!1),f=o({});i((()=>u.open),(e=>{p.value=e}),{immediate:!0}),i((()=>u.modelValue),(e=>{f.value=e}),{immediate:!0,deep:!0});const y=()=>{s("update:modelValue",f.value)},h=o(),b=()=>{var e;null==(e=h.value)||e.validate().then((()=>{C(),s("save",f.value)})).catch((()=>{R.warning("请检查表单信息")}))},C=()=>{s("update:open",!1),p.value=!1};return(e,t)=>{const o=re,i=Ne,s=ge,u=ce,k=pe,_=me,w=ve,x=fe,S=Q,V=W;return a(),n(V,{open:p.value,"onUpdate:open":t[5]||(t[5]=e=>p.value=e),"destroy-on-close":"",width:500,onClose:C},{title:c((()=>[r(o,{style:{margin:"0",width:"412px"},ellipsis:"",content:f.value.nodeName,"onUpdate:content":t[0]||(t[0]=e=>f.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:y},null,8,["content"])])),footer:c((()=>[r(S,{type:"primary",onClick:b},{default:c((()=>[N("保存")])),_:1}),r(S,{style:{"margin-left":"12px"},onClick:C},{default:c((()=>[N("取消")])),_:1})])),default:c((()=>[r(x,{ref_key:"formRef",ref:h,layout:"vertical",model:f.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:c((()=>[r(s,{name:["callback","webhook"],label:"webhook",rules:[{required:!0,message:"请输入 webhook",trigger:"change"}]},{default:c((()=>[r(i,{value:f.value.callback.webhook,"onUpdate:value":t[1]||(t[1]=e=>f.value.callback.webhook=e),placeholder:"请输入 webhook"},null,8,["value"])])),_:1}),r(s,{name:["callback","contentType"],label:"请求类型",rules:[{required:!0,message:"请选择请求类型",trigger:"change"}]},{default:c((()=>[r(k,{value:f.value.callback.contentType,"onUpdate:value":t[2]||(t[2]=e=>f.value.callback.contentType=e),placeholder:"请选择请求类型"},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(jt)),(e=>(a(),n(u,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),r(s,{name:["callback","secret"],label:"秘钥",rules:[{required:!0,message:"请输入秘钥",trigger:"change"}]},{default:c((()=>[r(i,{value:f.value.callback.secret,"onUpdate:value":t[3]||(t[3]=e=>f.value.callback.secret=e),placeholder:"请输入秘钥"},null,8,["value"])])),_:1}),r(s,{name:"workflowNodeStatus",label:"工作流状态",rules:[{required:!0,message:"请选择工作流状态",trigger:"change"}]},{default:c((()=>[r(w,{value:f.value.workflowNodeStatus,"onUpdate:value":t[4]||(t[4]=e=>f.value.workflowNodeStatus=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Et)),(e=>(a(),n(_,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),fn=e({__name:"CallbackDetail",props:{modelValue:ft().def({}),open:pt().def(!1)},emits:["update:open"],setup(e,{emit:t}){const s=t,u=e,d=o(!1);i((()=>u.open),(e=>{d.value=e}),{immediate:!0});const p=()=>{s("update:open",!1)};return(t,o)=>{const i=G,s=X,u=W;return a(),n(u,{title:"决策详情",placement:"right",width:500,open:d.value,"onUpdate:open":o[0]||(o[0]=e=>d.value=e),"destroy-on-close":"",onClose:p},{default:c((()=>[r(s,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:c((()=>[r(i,{label:"节点名称"},{default:c((()=>[N(v(e.modelValue.nodeName),1)])),_:1}),r(i,{label:"webhook"},{default:c((()=>{var t;return[N(v(null==(t=e.modelValue.callback)?void 0:t.webhook),1)]})),_:1}),r(i,{label:"请求类型"},{default:c((()=>{var t;return[N(v(l(jt)[null==(t=e.modelValue.callback)?void 0:t.contentType]),1)]})),_:1}),r(i,{label:"密钥"},{default:c((()=>{var t;return[N(v(null==(t=e.modelValue.callback)?void 0:t.secret),1)]})),_:1})])),_:1})])),_:1},8,["open"])}}}),yn=e=>(y("data-v-714c9e92"),e=e(),h(),e),hn={class:"node-wrap"},bn={class:"branch-box"},Cn={class:"condition-node",style:{"min-height":"230px"}},kn={class:"condition-node-box",style:{"padding-top":"0"}},_n={class:"popover"},wn=yn((()=>p("span",null,"重试",-1))),Nn=yn((()=>p("span",null,"忽略",-1))),xn=["onClick"],Sn={class:"title"},Vn={class:"text",style:{color:"#935af6"}},Tn={class:"content",style:{"min-height":"81px"}},In={key:0,class:"placeholder"},On={style:{display:"flex","justify-content":"space-between"}},En=yn((()=>p("span",{class:"content_label"},"Webhook:",-1))),Un=yn((()=>p("span",{class:"content_label"},"请求类型: ",-1))),jn=yn((()=>p("div",null,".........",-1))),Mn={key:1,class:"top-left-cover-line"},$n={key:2,class:"bottom-left-cover-line"},Rn={key:3,class:"top-right-cover-line"},Dn={key:4,class:"bottom-right-cover-line"},Pn=yn((()=>p("div",{style:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},[p("span",{style:{"padding-left":"18px"}},"回调节点详情")],-1))),An=Qt(e({__name:"CallbackNode",props:{modelValue:ft().def({}),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,u=e,f=Ae(),y=o({}),h=o({});i((()=>u.modelValue),(e=>{y.value=e}),{immediate:!0,deep:!0});const b=()=>{y.value.childNode&&(y.value.conditionNodes[0].childNode?k(y.value.conditionNodes[0].childNode,y.value.childNode):y.value.conditionNodes[0].childNode=y.value.childNode),C((()=>{s("update:modelValue",y.value.conditionNodes[0].childNode)}))},k=(e,t)=>{e.childNode?k(e.childNode,t):e.childNode=t},w=o(0),T=o(!1),I=o(!1),O=o({}),E=e=>{y.value.conditionNodes[w.value]=e,s("update:modelValue",y.value)},U=o(!1),j=o(""),M=o([]),$=(e,t)=>{var a,n;if(M.value=[],2===f.TYPE){if(null==(a=e.jobBatchList)||a.forEach((e=>{var t;e.id?null==(t=M.value)||t.push(e.id):e.jobId&&(j.value=e.jobId.toString())})),0===M.value.length)return void(I.value=!0);U.value=!0}else 1===f.TYPE?I.value=!0:(n=t,0===f.TYPE?(w.value=n,O.value=JSON.parse(JSON.stringify(y.value.conditionNodes[n])),T.value=!0):I.value=!0)},R=e=>u.disabled?2===f.TYPE?`node-error node-error-${e.taskBatchStatus?Mt[e.taskBatchStatus].name:"default"}`:"node-error":"auto-judge-def auto-judge-hover";return(t,o)=>{const i=_e,s=Q,u=Ce,C=ke,k=ee,w=oe,D=G,P=X;return a(),d("div",hn,[p("div",bn,[(a(!0),d(g,null,m(y.value.conditionNodes,((o,m)=>(a(),d("div",{class:"col-box",key:m},[p("div",Cn,[p("div",kn,[r(w,{open:h.value[m]&&2===l(f).TYPE,getPopupContainer:e=>e.parentNode,onOpenChange:e=>h.value[m]=e},{content:c((()=>[p("div",_n,[r(i,{type:"vertical"}),r(s,{type:"text",class:"popover-item"},{default:c((()=>[r(l(J)),wn])),_:1}),r(i,{type:"vertical"}),r(s,{type:"text",class:"popover-item"},{default:c((()=>[r(l(xe)),Nn])),_:1})])])),default:c((()=>{var t,i;return[p("div",{class:S(["auto-judge",R(o)]),onClick:e=>$(o,m)},[p("div",Sn,[p("span",Vn,[r(u,{status:"processing",color:1===o.workflowNodeStatus?"#52c41a":"#ff4d4f"},null,8,["color"]),N(" "+v(o.nodeName),1)]),e.disabled?_("",!0):(a(),n(l(he),{key:0,class:"close",onClick:V(b,["stop"])}))]),p("div",Tn,[(null==(t=o.callback)?void 0:t.webhook)?_("",!0):(a(),d("div",In,"请配置回调通知")),(null==(i=o.callback)?void 0:i.webhook)?(a(),d(g,{key:1},[p("div",On,[En,r(C,{style:{width:"116px"},ellipsis:"",content:o.callback.webhook},null,8,["content"])]),p("div",null,[Un,N(" "+v(l(jt)[o.callback.contentType]),1)]),jn],64)):_("",!0)]),2===l(f).TYPE&&o.taskBatchStatus?(a(),n(k,{key:0},{title:c((()=>[N(v(l(Mt)[o.taskBatchStatus].title),1)])),default:c((()=>[r(l(St),{class:"error-tip",color:l(Mt)[o.taskBatchStatus].color,size:"24px",onClick:V((()=>{}),["stop"]),"model-value":l(Mt)[o.taskBatchStatus].icon},null,8,["color","model-value"])])),_:2},1024)):_("",!0)],10,xn)]})),_:2},1032,["open","getPopupContainer","onOpenChange"]),r(ya,{disabled:e.disabled,modelValue:o.childNode,"onUpdate:modelValue":e=>o.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),o.childNode?x(t.$slots,"default",{key:0,node:o},void 0,!0):_("",!0),0==m?(a(),d("div",Mn)):_("",!0),0==m?(a(),d("div",$n)):_("",!0),m==y.value.conditionNodes.length-1?(a(),d("div",Rn)):_("",!0),m==y.value.conditionNodes.length-1?(a(),d("div",Dn)):_("",!0)])))),128))]),y.value.conditionNodes.length>1?(a(),n(ya,{key:0,disabled:e.disabled,modelValue:y.value.childNode,"onUpdate:modelValue":o[0]||(o[0]=e=>y.value.childNode=e)},null,8,["disabled","modelValue"])):_("",!0),0!==l(f).type?(a(),n(fn,{key:1,open:I.value,"onUpdate:open":o[1]||(o[1]=e=>I.value=e),modelValue:y.value.conditionNodes[0],"onUpdate:modelValue":o[2]||(o[2]=e=>y.value.conditionNodes[0]=e)},null,8,["open","modelValue"])):_("",!0),r(vn,{open:T.value,"onUpdate:open":o[3]||(o[3]=e=>T.value=e),modelValue:O.value,"onUpdate:modelValue":o[4]||(o[4]=e=>O.value=e),onSave:E},null,8,["open","modelValue"]),0!==l(f).TYPE&&U.value?(a(),n(l(ua),{key:2,open:U.value,"onUpdate:open":o[5]||(o[5]=e=>U.value=e),id:j.value,ids:M.value},{default:c((()=>[Pn,r(P,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:c((()=>[r(D,{label:"节点名称"},{default:c((()=>[N(v(y.value.conditionNodes[0].nodeName),1)])),_:1}),r(D,{label:"webhook"},{default:c((()=>{var e;return[N(v(null==(e=y.value.conditionNodes[0].callback)?void 0:e.webhook),1)]})),_:1}),r(D,{label:"请求类型"},{default:c((()=>{var e;return[N(v(l(jt)[null==(e=y.value.conditionNodes[0].callback)?void 0:e.contentType]),1)]})),_:1}),r(D,{label:"密钥"},{default:c((()=>{var e;return[N(v(null==(e=y.value.conditionNodes[0].callback)?void 0:e.secret),1)]})),_:1})])),_:1})])),_:1},8,["open","id","ids"])):_("",!0)])}}}),[["__scopeId","data-v-714c9e92"]]),Ln=e({__name:"NodeWrap",props:{modelValue:ft().def({}),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,s=e,u=o({});return i((()=>s.modelValue),(e=>{u.value=e}),{immediate:!0,deep:!0}),i((()=>u.value),(e=>{l("update:modelValue",e)})),(t,l)=>{const o=T("node-wrap",!0);return a(),d(g,null,[1==u.value.nodeType?(a(),n(za,{key:0,modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=e=>u.value=e),disabled:e.disabled},{default:c((t=>[t.node?(a(),n(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):_("",!0)])),_:1},8,["modelValue","disabled"])):_("",!0),2==u.value.nodeType?(a(),n(mn,{key:1,modelValue:u.value,"onUpdate:modelValue":l[1]||(l[1]=e=>u.value=e),disabled:e.disabled},{default:c((t=>[t.node?(a(),n(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):_("",!0)])),_:1},8,["modelValue","disabled"])):_("",!0),3==u.value.nodeType?(a(),n(An,{key:2,modelValue:u.value,"onUpdate:modelValue":l[2]||(l[2]=e=>u.value=e),disabled:e.disabled},{default:c((t=>[t.node?(a(),n(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):_("",!0)])),_:1},8,["modelValue","disabled"])):_("",!0),u.value.childNode?(a(),n(o,{key:3,modelValue:u.value.childNode,"onUpdate:modelValue":l[3]||(l[3]=e=>u.value.childNode=e),disabled:e.disabled},null,8,["modelValue","disabled"])):_("",!0)],64)}}}),Bn="*",Fn="/",Yn="-",zn=",",Wn="?",qn="L",Kn="W",Jn="#",Gn="",Hn="LW",Xn=(new Date).getFullYear();function Zn(e){return"number"==typeof e||/^\d+(\.\d+)?$/.test(e)}const{hasOwnProperty:Qn}=Object.prototype;function el(e,t){return Object.keys(t).forEach((a=>{!function(e,t,a){const n=t[a];(function(e){return null!=e})(n)&&(Qn.call(e,a)&&function(e){return null!==e&&"object"==typeof e}(n)?e[a]=el(Object(e[a]),t[a]):e[a]=n)}(e,t,a)})),e}const tl={common:{from:"从",fromThe:"从第",start:"开始",every:"每",between:"在",and:"到",end:"之间的",specified:"固定的",symbolTip:"通配符支持",valTip:"值为",nearest:"最近的",current:"本",nth:"第",index:"个",placeholder:"请选择",placeholderMulti:"请选择(支持多选)",help:"帮助",wordNumError:"格式不正确,必须有6或7位",reverse:"反向解析",reset:"重置",tagError:"表达式不正确",numError:"含有非法数字",use:"使用",inputPlaceholder:"Cron表达式"},custom:{unspecified:"不固定",workDay:"工作日",lastTh:"倒数第",lastOne:"最后一个",latestWorkday:"最后一个工作日",empty:"不配置"},second:{title:"秒",val:"0 1 2...59"},minute:{title:"分",val:"0 1 2...59"},hour:{title:"时",val:"0 1 2...23"},dayOfMonth:{timeUnit:"日",title:"日",val:"1 2...31"},month:{title:"月",val:"1 2...12,或12个月的缩写(JAN ... DEC)"},dayOfWeek:{timeUnit:"日",title:"周",val:"1 2...7或星期的缩写(SUN ... SAT)",SUN:"星期天",MON:"星期一",TUE:"星期二",WED:"星期三",THU:"星期四",FRI:"星期五",SAT:"星期六"},year:{title:"年",val:Xn+" ... 2099"},period:{startError:"开始格式不符",cycleError:"循环格式不符"},range:{lowerError:"下限格式不符",upperError:"上限格式不符",lowerBiggerThanUpperError:"下限不能比上限大"},weekDay:{weekDayNumError:"周数格式不符",nthError:"天数格式不符"},app:{title:"基于Vue&Element-ui实现的Cron表达式生成器",next10FireTimes:"最近10次执行时刻"},daysOfWeekOptions:[{label:"星期天",value:1},{label:"星期一",value:2},{label:"星期二",value:3},{label:"星期三",value:4},{label:"星期四",value:5},{label:"星期五",value:6},{label:"星期六",value:7}]},al=o("zh-CN"),nl=I({"zh-CN":tl}),ll={messages:()=>nl[al.value],use(e,t){al.value=e,this.add({[e]:t})},add(e={}){el(nl,e)}},ol=ll.messages(),il=e({components:{Radio:me},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:Bn},tag:{type:String,default:Bn},onChange:{type:Function}},setup:e=>({Message:ol,change:function(){e.onChange&&e.onChange({tag:Bn,type:Bn})},EVERY:Bn})}),sl={class:"cron-body-row"},ul={class:"symbol"};const dl=Qt(il,[["render",function(e,t,n,l,o,i){const s=T("Radio");return a(),d("div",sl,[r(s,{checked:e.type===e.EVERY,onClick:e.change},{default:c((()=>[p("span",ul,v(e.EVERY),1),N(v(e.Message.common.every)+v(e.timeUnit),1)])),_:1},8,["checked","onClick"])])}]]),rl=ll.messages(),cl=e({components:{Radio:me,InputNumber:Se},props:{startConfig:{type:Object,default:null},cycleConfig:{type:Object,default:null},timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:Fn},tag:{type:String,default:Fn},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(0);a.value`${a.value}${Fn}${n.value}`));function u(t){if(e.type!==Fn)return;const l=t.split(Fn);2===l.length?(l[0]===Bn&&(l[0]=0),!Zn(l[0])||parseInt(l[0])e.startConfig.max?R.error(`${rl.period.startError}:${l[0]}`):!Zn(l[1])||parseInt(l[1])e.cycleConfig.max?R.error(`${rl.period.cycleError}:${l[1]}`):(a.value=parseInt(l[0]),n.value=parseInt(l[1]))):R.error(`${rl.common.tagError}:${t}`)}return s((()=>{u(e.tag)})),i((()=>e.tag),(e=>{u(e)}),{deep:!0}),i((()=>e.type),(()=>{u(e.tag)}),{deep:!0}),{Message:rl,type_:t,start:a,cycle:n,tag_:l,PERIOD:Fn,change:function(){e.onChange&&e.onChange({type:Fn,tag:l.value})},changeTag:u}}}),pl={class:"cron-body-row"},gl={class:"symbol"};const ml=Qt(cl,[["render",function(e,t,n,l,o,i){const s=T("InputNumber"),u=T("Radio");return a(),d("div",pl,[r(u,{checked:e.type===e.PERIOD,onChange:e.change},{default:c((()=>[p("span",gl,v(e.tag_),1),N(" "+v(e.Message.common.fromThe)+" ",1),r(s,{size:"small",value:e.start,"onUpdate:value":t[0]||(t[0]=t=>e.start=t),min:e.startConfig.min,step:e.startConfig.step,max:e.startConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.timeUnit)+v(e.Message.common.start)+v(e.Message.common.every)+" ",1),r(s,{size:"small",value:e.cycle,"onUpdate:value":t[1]||(t[1]=t=>e.cycle=t),min:e.cycleConfig.min,step:e.cycleConfig.step,max:e.cycleConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),vl=ll.messages(),fl=e({components:{Radio:me,InputNumber:Se},props:{upper:{type:Number,default:1},lowerConfig:{type:Object,default:null},upperConfig:{type:Object,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Yn},tag:{type:String,default:Yn},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=o(0);n.value`${n.value}${Yn}${a.value}`));function d(t){if(e.type!==Yn)return;const l=t.split(Yn);2===l.length&&(l[0]===Yn&&(l[0]=0),!Zn(l[0])||parseInt(l[0])e.lowerConfig.max||!Zn(l[1])||parseInt(l[1])e.upperConfig.max||(n.value=parseInt(l[0]),a.value=parseInt(l[1])))}return s((()=>{d(e.tag)})),i((()=>e.tag),(e=>{d(e)}),{deep:!0}),i((()=>e.type),(()=>{d(e.tag)}),{deep:!0}),{Message:vl,type_:t,lower:n,cycle:l,tag_:u,upper_:a,RANGE:Yn,change:function(){e.onChange&&e.onChange({type:Yn,tag:u.value})}}}}),yl={class:"cron-body-row"},hl={class:"symbol"};const bl=Qt(fl,[["render",function(e,t,n,l,o,i){const s=T("InputNumber"),u=T("Radio");return a(),d("div",yl,[r(u,{checked:e.type===e.RANGE,onChange:e.change},{default:c((()=>[p("span",hl,v(e.tag_),1),N(" "+v(e.Message.common.between)+" ",1),r(s,{size:"small",value:e.lower,"onUpdate:value":t[0]||(t[0]=t=>e.lower=t),min:e.lowerConfig.min,step:e.lowerConfig.step,max:e.upper_,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.timeUnit)+v(e.Message.common.and)+" ",1),r(s,{size:"small",value:e.upper_,"onUpdate:value":t[1]||(t[1]=t=>e.upper_=t),min:e.lower,step:e.upperConfig.step,max:e.upperConfig.max,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.Message.common.end)+v(e.Message.common.every)+v(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Cl=ll.messages(),kl=e({components:{Radio:me,ASelect:pe,Tooltip:ee},props:{nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:zn},tag:{type:String,default:zn},onChange:{type:Function}},setup(e){const t=o(e.type),a=O((()=>{let e="";if(n.value&&n.value.length){n.value.sort();for(let t=0;t{Zn(t)&&parseInt(t)>=parseInt(e.nums[0].value)&&parseInt(t)<=parseInt(e.nums[e.nums.length-1].value)&&n.value.push(parseInt(t))}))}}return s((()=>{u()})),i((()=>e.tag),(()=>u()),{deep:!0}),i((()=>e.type),(()=>u()),{deep:!0}),{Message:Cl,type_:t,tag_:a,open:l,FIXED:zn,change:function(){e.onChange&&e.onChange({type:zn,tag:a.value||zn})},numArray:n,changeTag:u}}}),_l={class:"cron-body-row"},wl=p("span",{class:"symbol"},",",-1);const Nl=Qt(kl,[["render",function(e,t,n,l,o,i){const s=T("Tooltip"),u=T("Radio"),p=pe;return a(),d("div",_l,[r(u,{checked:e.type===e.FIXED,onChange:e.change},{default:c((()=>[r(s,{title:e.tag_},{default:c((()=>[wl])),_:1},8,["title"]),N(" "+v(e.Message.common.specified),1)])),_:1},8,["checked","onChange"]),r(p,{size:"small",mode:"tags",placeholder:e.Message.common.placeholder,style:{width:"300px"},options:e.nums,disabled:e.type!==e.FIXED,value:e.numArray,"onUpdate:value":t[0]||(t[0]=t=>e.numArray=t),onChange:e.change},null,8,["placeholder","options","disabled","value","onChange"])])}]]),xl={watch:{tag(e){this.resolveTag(e)}},mounted(){this.resolveTag(this.tag)},methods:{resolveTag(e){null==e&&(e=Gn);let t=null;(e=this.resolveCustom(e))===Gn?t=Gn:e===Wn?t=Wn:e===Bn?t=Bn:e===Hn&&(t=Hn),null==t&&(t=e.startsWith("L-")||e.endsWith(qn)?qn:e.endsWith(Kn)&&e.length>1?Kn:e.indexOf(Jn)>0?Jn:e.indexOf(Fn)>0?Fn:e.indexOf(Yn)>0?Yn:zn),this.type_=t,this.tag_=e},resolveCustom:e=>e}},Sl=ll.messages();const Vl=Qt(e({components:{Every:dl,Period:ml,Range:bl,Fixed:Nl},mixins:[xl],props:{tag:{type:String,default:Bn},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},a={min:1,step:1,max:59},n={min:0,step:1,max:59},l={min:0,step:1,max:59},i=[];for(let o=0;o<60;o++){const e={label:o.toString(),value:o};i.push(e)}const s=o(Bn),u=o(e.tag);return{Message:Sl,startConfig:t,cycleConfig:a,lowerConfig:n,upperConfig:l,nums:i,type_:s,tag_:u,change:function(t){s.value=t.type,u.value=t.tag,e.onChange&&e.onChange({type:s.value,tag:u.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed");return a(),d(g,null,[r(s,{"time-unit":e.Message.second.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.second.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Tl=ll.messages();const Il=Qt(e({components:{Every:dl,Period:ml,Range:bl,Fixed:Nl},mixins:[xl],props:{tag:{type:String,default:Bn},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},a={min:1,step:1,max:59},n={min:0,step:1,max:59},l={min:0,step:1,max:59},i=[];for(let o=0;o<60;o++){const e={label:o.toString(),value:o};i.push(e)}const s=o(Bn),u=o(e.tag);return{Message:Tl,startConfig:t,cycleConfig:a,lowerConfig:n,upperConfig:l,nums:i,type_:s,tag_:u,change:function(t){s.value=t.type,u.value=t.tag,e.onChange&&e.onChange({type:s.value,tag:u.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed");return a(),d(g,null,[r(s,{"time-unit":e.Message.minute.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.minute.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Ol=ll.messages();const El=Qt(e({components:{Every:dl,Period:ml,Range:bl,Fixed:Nl},mixins:[xl],props:{tag:{type:String,default:Bn},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:23},a={min:1,step:1,max:23},n={min:0,step:1,max:23},l={min:0,step:1,max:23},i=[];for(let o=0;o<24;o++){const e={label:o.toString(),value:o};i.push(e)}const s=o(Bn),u=o(e.tag);return{Message:Ol,startConfig:t,cycleConfig:a,lowerConfig:n,upperConfig:l,nums:i,type_:s,tag_:u,change:function(t){s.value=t.type,u.value=t.tag,e.onChange&&e.onChange({type:s.value,tag:u.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed");return a(),d(g,null,[r(s,{"time-unit":e.Message.hour.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.hour.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),Ul=ll.messages(),jl=e({components:{Radio:me},props:{type:{type:String,default:Wn},tag:{type:String,default:Wn},onChange:{type:Function}},setup:e=>({Message:Ul,change:function(){e.onChange&&e.onChange({tag:Wn,type:Wn})},UNFIXED:Wn})}),Ml={class:"cron-body-row"},$l={class:"symbol"};const Rl=Qt(jl,[["render",function(e,t,n,l,o,i){const s=T("Radio");return a(),d("div",Ml,[r(s,{checked:e.type===e.UNFIXED,onClick:e.change},{default:c((()=>[p("span",$l,v(e.UNFIXED),1),N(v(e.Message.custom.unspecified),1)])),_:1},8,["checked","onClick"])])}]]),Dl=ll.messages(),Pl=e({components:{Radio:me,InputNumber:Se},props:{lastConfig:{type:Object,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:qn},tag:{type:String,default:qn},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=O((()=>1===a.value?qn:"L-"+(a.value-1)));function l(t){if(e.type!==qn)return;if(t===qn)return void(a.value=1);const n=t.substring(2);Zn(n)&&parseInt(n)>=e.lastConfig.min&&parseInt(n)<=e.lastConfig.max?a.value=parseInt(n)+1:R.error(Dl.common.numError+":"+n)}return s((()=>{l(e.tag)})),i((()=>e.tag),(e=>{l(e)}),{deep:!0}),i((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:Dl,type_:t,tag_:n,LAST:qn,lastNum:a,change:function(){e.onChange&&e.onChange({type:qn,tag:n.value})},changeTag:l}}}),Al={class:"cron-body-row"},Ll={class:"symbol"};const Bl=Qt(Pl,[["render",function(e,t,n,l,o,i){const s=T("InputNumber"),u=T("Radio");return a(),d("div",Al,[r(u,{checked:e.type===e.LAST,onChange:e.change},{default:c((()=>[p("span",Ll,v(e.tag_),1),N(" "+v(e.Message.common.current)+v(e.targetTimeUnit)+v(e.Message.custom.lastTh)+" ",1),r(s,{size:"small",value:e.lastNum,"onUpdate:value":t[0]||(t[0]=t=>e.lastNum=t),min:e.lastConfig.min,step:e.lastConfig.step,max:e.lastConfig.max,disabled:e.type!==e.LAST,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Fl=ll.messages(),Yl=e({components:{Radio:me,InputNumber:Se},props:{targetTimeUnit:{type:String,default:null},startDateConfig:{type:Object,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Kn},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=o(1),l=O((()=>`${a.value}${Kn}`));function u(t){if(e.type!==Kn)return;const n=t.substring(0,t.length-1);!Zn(n)||parseInt(n)e.startDateConfig.max?R.error(`${Fl.common.numError}:${n}`):a.value=parseInt(n)}return s((()=>{u(e.tag)})),i((()=>e.tag),(e=>{u(e)}),{deep:!0}),i((()=>e.type),(()=>{u(e.tag)}),{deep:!0}),{Message:Fl,type_:t,startDate:a,weekDayNum:n,tag_:l,WORK_DAY:Kn,change:function(){e.onChange&&e.onChange({type:Kn,tag:l.value})},changeTag:u}}}),zl={class:"cron-body-row"},Wl={class:"symbol"};const ql=Qt(Yl,[["render",function(e,t,n,l,o,i){const s=T("Radio"),u=T("InputNumber");return a(),d("div",zl,[r(s,{checked:e.type===e.WORK_DAY,onChange:e.change},{default:c((()=>[p("span",Wl,v(e.tag_),1),N(" "+v(e.Message.common.every)+v(e.targetTimeUnit),1)])),_:1},8,["checked","onChange"]),r(u,{size:"small",value:e.startDate,"onUpdate:value":t[0]||(t[0]=t=>e.startDate=t),min:e.startDateConfig.min,step:e.startDateConfig.step,max:e.startDateConfig.max,disabled:e.type!==e.WORK_DAY,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.timeUnit)+v(e.Message.common.nearest)+v(e.Message.custom.workDay),1)])}]]),Kl=ll.messages(),Jl=e({components:{Radio:me},props:{targetTimeUnit:{type:String,default:null},type:{type:String,default:Hn},tag:{type:String,default:Hn},onChange:{type:Function}},setup:e=>({Message:Kl,change:function(){e.onChange&&e.onChange({tag:Hn,type:Hn})},LAST_WORK_DAY:Hn})}),Gl={class:"cron-body-row"},Hl={class:"symbol"};const Xl=Qt(Jl,[["render",function(e,t,n,l,o,i){const s=T("Radio");return a(),d("div",Gl,[r(s,{checked:e.type===e.LAST_WORK_DAY,onClick:e.change},{default:c((()=>[p("span",Hl,v(e.LAST_WORK_DAY),1),N(" "+v(e.Message.common.current)+v(e.targetTimeUnit)+v(e.Message.custom.latestWorkday),1)])),_:1},8,["checked","onClick"])])}]]),Zl=ll.messages(),Ql=31;const eo=Qt(e({components:{Every:dl,Period:ml,Range:bl,Fixed:Nl,UnFixed:Rl,Last:Bl,WorkDay:ql,LastWorkDay:Xl},mixins:[xl],props:{tag:{type:String,default:Bn},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:Ql},a={min:1,step:1,max:Ql},n={min:1,step:1,max:Ql},l={min:1,step:1,max:Ql},i={min:1,step:1,max:Ql},s=[];for(let o=1;o<32;o++){const e={label:o.toString(),value:o};s.push(e)}const u=o(Bn),d=o(e.tag);return{Message:Zl,startConfig:t,cycleConfig:a,lowerConfig:n,upperConfig:l,lastConfig:i,nums:s,type_:u,tag_:d,change:function(t){u.value=t.type,d.value=t.tag,e.onChange&&e.onChange({type:u.value,tag:d.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed"),m=T("UnFixed"),v=T("Last"),f=T("WorkDay"),y=T("LastWorkDay");return a(),d(g,null,[r(s,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),r(m,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),r(v,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"last-config":e.lastConfig,onChange:e.change},null,8,["time-unit","type","tag","target-time-unit","last-config","onChange"]),r(f,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"start-date-config":e.startConfig,onChange:e.change},null,8,["time-unit","type","tag","target-time-unit","start-date-config","onChange"]),r(y,{type:e.type_,tag:e.tag_,"target-time-unit":e.Message.month.title,"start-date-config":e.startConfig,onChange:e.change},null,8,["type","tag","target-time-unit","start-date-config","onChange"])],64)}]]),to=ll.messages();const ao=Qt(e({components:{Every:dl,Period:ml,Range:bl,Fixed:Nl},mixins:[xl],props:{tag:{type:String,default:Bn},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:12},a={min:1,step:1,max:12},n={min:1,step:1,max:12},l={min:1,step:1,max:12},i=[];for(let o=1;o<13;o++){const e={label:o.toString(),value:o};i.push(e)}const s=o(Bn),u=o(e.tag);return{Message:to,startConfig:t,cycleConfig:a,lowerConfig:n,upperConfig:l,nums:i,type_:s,tag_:u,change:function(t){s.value=t.type,u.value=t.tag,e.onChange&&e.onChange({type:s.value,tag:u.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed");return a(),d(g,null,[r(s,{"time-unit":e.Message.month.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"])],64)}]]),no=ll.messages(),lo=e({components:{Radio:me},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:Gn},tag:{type:String,default:Gn},onChange:{type:Function}},setup:e=>({Message:no,change:function(){e.onChange&&e.onChange({tag:Gn,type:Gn})},EMPTY:Gn})}),oo={class:"cron-body-row"},io={class:"symbol"};const so=Qt(lo,[["render",function(e,t,n,l,o,i){const s=T("Radio");return a(),d("div",oo,[r(s,{checked:e.type===e.EMPTY,onClick:e.change},{default:c((()=>[p("span",io,v(e.Message.custom.empty),1)])),_:1},8,["checked","onClick"])])}]]),uo=ll.messages(),ro=Xn,co=2099;const po=Qt(e({components:{Every:dl,Period:ml,Range:bl,Fixed:Nl,Empty:so},mixins:[xl],props:{tag:{type:String,default:Gn},onChange:{type:Function}},setup(e){const t={min:ro,step:1,max:co},a={min:1,step:1,max:co},n={min:ro,step:1,max:co},l={min:ro,step:1,max:co},i=[];for(let o=ro;o<2100;o++){const e={label:o.toString(),value:o};i.push(e)}const s=o(Gn),u=o(e.tag);return{Message:uo,startConfig:t,cycleConfig:a,lowerConfig:n,upperConfig:l,nums:i,type_:s,tag_:u,change:function(t){s.value=t.type,u.value=t.tag,e.onChange&&e.onChange({type:s.value,tag:u.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed"),m=T("Empty");return a(),d(g,null,[r(s,{"time-unit":e.Message.year.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.year.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),r(m,{type:e.type_,tag:e.tag_,onChange:e.change},null,8,["type","tag","onChange"])],64)}]]),go=ll.messages(),mo=e({components:{Radio:me,InputNumber:Se,ASelect:pe},props:{nums:{type:Array,default:null},startConfig:{type:Object,default:null},cycleConfig:{type:Object,default:null},timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:Fn},tag:{type:String,default:Fn},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=o(1),l=O((()=>`${a.value}${Fn}${n.value}`));function u(t){if(e.type!==Fn)return;const l=t.split(Fn);2===l.length?!Zn(l[0])||parseInt(l[0])e.startConfig.max?R.error(`${go.period.startError}:${l[0]}`):!Zn(l[1])||parseInt(l[1])e.cycleConfig.max?R.error(`${go.period.cycleError}:${l[1]}`):(a.value=parseInt(l[0]),n.value=parseInt(l[1])):R.error(`${go.common.tagError}:${t}`)}return s((()=>{u(e.tag)})),i((()=>e.tag),(e=>{u(e)}),{deep:!0}),i((()=>e.type),(()=>{u(e.tag)}),{deep:!0}),{Message:go,type_:t,start:a,cycle:n,tag_:l,PERIOD:Fn,change:function(){e.onChange&&e.onChange({type:Fn,tag:l.value})},changeTag:u}}}),vo={class:"cron-body-row"},fo={class:"symbol"};const yo=Qt(mo,[["render",function(e,t,n,l,o,i){const s=T("Radio"),u=pe,g=T("InputNumber");return a(),d("div",vo,[r(s,{checked:e.type===e.PERIOD,onChange:e.change},{default:c((()=>[p("span",fo,v(e.tag_),1),N(" "+v(e.Message.common.from),1)])),_:1},8,["checked","onChange"]),r(u,{size:"small",style:{width:"100px"},value:e.start,"onUpdate:value":t[0]||(t[0]=t=>e.start=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"]),N(" "+v(e.Message.common.start)+v(e.Message.common.every)+" ",1),r(g,{size:"small",value:e.cycle,"onUpdate:value":t[1]||(t[1]=t=>e.cycle=t),min:e.cycleConfig.min,step:e.cycleConfig.step,max:e.cycleConfig.max,disabled:e.type!==e.PERIOD,onChange:e.change},null,8,["value","min","step","max","disabled","onChange"]),N(" "+v(e.timeUnit),1)])}]]),ho=ll.messages(),bo=pe.Option,Co=e({components:{Radio:me,ASelect:pe,AOption:bo},props:{nums:{type:Array,default:null},upper:{type:Number,default:1},lowerConfig:{type:Object,default:null},upperConfig:{type:Object,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Yn},tag:{type:String,default:Yn},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=o(0);n.value`${n.value}${Yn}${a.value}`));function d(t){if(e.type!==Yn)return;const l=t.split(Yn);2===l.length&&(l[0]===Yn&&(l[0]=0),!Zn(l[0])||parseInt(l[0])e.lowerConfig.max||!Zn(l[1])||parseInt(l[1])e.upperConfig.max||(n.value=parseInt(l[0]),a.value=parseInt(l[1])))}return s((()=>{d(e.tag)})),i((()=>e.tag),(e=>{d(e)}),{deep:!0}),i((()=>e.type),(()=>{d(e.tag)}),{deep:!0}),{Message:ho,type_:t,lower:n,cycle:l,tag_:u,upper_:a,RANGE:Yn,change:function(){e.onChange&&e.onChange({type:Yn,tag:u.value})}}}}),ko={class:"cron-body-row"},_o={class:"symbol"};const wo=Qt(Co,[["render",function(e,t,l,o,i,s){const u=T("Radio"),f=T("AOption"),y=pe;return a(),d("div",ko,[r(u,{checked:e.type===e.RANGE,onChange:e.change},{default:c((()=>[p("span",_o,v(e.tag_),1),N(" "+v(e.Message.common.between),1)])),_:1},8,["checked","onChange"]),r(y,{size:"small",style:{width:"100px"},value:e.lower,"onUpdate:value":t[0]||(t[0]=t=>e.lower=t),placeholder:e.Message.common.placeholder,disabled:e.type!==e.RANGE,onChange:e.change},{default:c((()=>[(a(!0),d(g,null,m(e.nums,(t=>(a(),n(f,{key:t.value,value:t.value,disabled:Number(t.value)>e.upper_},{default:c((()=>[N(v(t.label),1)])),_:2},1032,["value","disabled"])))),128))])),_:1},8,["value","placeholder","disabled","onChange"]),N(" "+v(e.timeUnit)+v(e.Message.common.and)+" ",1),r(y,{size:"small",style:{width:"100px"},value:e.upper_,"onUpdate:value":t[1]||(t[1]=t=>e.upper_=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.RANGE,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"]),N(" "+v(e.Message.common.end)+v(e.Message.common.every)+v(e.timeUnit),1)])}]]),No=ll.messages(),xo=e({components:{Radio:me,ASelect:pe},props:{nums:{type:Array,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:qn},tag:{type:String,default:qn},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=O((()=>(a.value>=1&&a.value<7?a.value:"")+qn));function l(t){if(e.type!==qn)return;if(t===qn)return void(a.value=7);const n=t.substring(0,t.length-1);Zn(n)&&parseInt(n)>=parseInt(e.nums[0].value)&&parseInt(n)<=parseInt(e.nums[e.nums.length-1].value)?a.value=parseInt(n):R.error(No.common.numError+":"+n)}return s((()=>{l(e.tag)})),i((()=>e.tag),(e=>{l(e)}),{deep:!0}),i((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:No,type_:t,tag_:n,LAST:qn,lastNum:a,change:function(){e.onChange&&e.onChange({type:qn,tag:n.value})},changeTag:l}}}),So={class:"cron-body-row"},Vo={class:"symbol"};const To=Qt(xo,[["render",function(e,t,n,l,o,i){const s=T("Radio"),u=pe;return a(),d("div",So,[r(s,{checked:e.type===e.LAST,onChange:e.change},{default:c((()=>[p("span",Vo,v(e.tag_),1),N(" "+v(e.Message.common.current)+v(e.targetTimeUnit)+v(e.Message.custom.lastTh),1)])),_:1},8,["checked","onChange"]),r(u,{size:"small",style:{width:"100px"},value:e.lastNum,"onUpdate:value":t[0]||(t[0]=t=>e.lastNum=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.LAST,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"])])}]]),Io=ll.messages(),Oo=e({components:{Radio:me,InputNumber:Se,ASelect:pe},props:{targetTimeUnit:{type:String,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:Jn},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=o(e.type),a=o(1),n=o(1),l=O((()=>`${a.value}${Jn}${n.value}`));function u(t){if(e.type!==Jn)return;const l=t.split(Jn);2===l.length?!Zn(l[0])||parseInt(l[0])parseInt(e.nums[e.nums.length-1].value)?R.error(`${Io.period.startError}:${l[0]}`):!Zn(l[1])||parseInt(l[1])<1||parseInt(l[1])>5?R.error(`${Io.period.cycleError}:${l[1]}`):(a.value=parseInt(l[0]),n.value=parseInt(l[1])):R.error(`${Io.common.tagError}:${t}`)}return s((()=>{u(e.tag)})),i((()=>e.tag),(e=>{u(e)}),{deep:!0}),i((()=>e.type),(()=>{u(e.tag)}),{deep:!0}),{Message:Io,type_:t,nth:a,weekDayNum:n,tag_:l,WEEK_DAY:Jn,change:function(){e.onChange&&e.onChange({type:Jn,tag:l.value})},changeTag:u}}}),Eo={class:"cron-body-row"},Uo={class:"symbol"};const jo=Qt(Oo,[["render",function(e,t,n,l,o,i){const s=T("Radio"),u=T("InputNumber"),g=pe;return a(),d("div",Eo,[r(s,{checked:e.type===e.WEEK_DAY,onChange:e.change},{default:c((()=>[p("span",Uo,v(e.tag_),1),N(" "+v(e.Message.common.current)+v(e.targetTimeUnit)+v(e.Message.common.nth),1)])),_:1},8,["checked","onChange"]),r(u,{size:"small",value:e.nth,"onUpdate:value":t[0]||(t[0]=t=>e.nth=t),min:1,step:1,max:5,disabled:e.type!==e.WEEK_DAY,onChange:e.change},null,8,["value","disabled","onChange"]),N(" "+v(e.Message.common.index)+" ",1),r(g,{size:"small",style:{width:"100px"},value:e.weekDayNum,"onUpdate:value":t[1]||(t[1]=t=>e.weekDayNum=t),options:e.nums,placeholder:e.Message.common.placeholder,disabled:e.type!==e.WEEK_DAY,onChange:e.change},null,8,["value","options","placeholder","disabled","onChange"])])}]]),Mo=ll.messages();const $o=Qt(e({components:{Every:dl,Period:yo,Range:wo,Fixed:Nl,UnFixed:Rl,Last:To,WeekDay:jo},mixins:[xl],props:{tag:{type:String,default:Wn},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:7},a={min:1,step:1,max:7},n={min:1,step:1,max:7},l={min:1,step:1,max:7},i={min:1,step:1,max:7},s=Mo.daysOfWeekOptions,u=o(Bn),d=o(e.tag);return{Message:Mo,startConfig:t,cycleConfig:n,lowerConfig:l,upperConfig:i,startDateConfig:a,nums:s,type_:u,tag_:d,change:function(t){u.value=t.type,d.value=t.tag,e.onChange&&e.onChange({type:u.value,tag:d.value})}}}}),[["render",function(e,t,n,l,o,i){const s=T("Every"),u=T("Period"),c=T("Range"),p=T("Fixed"),m=T("UnFixed"),v=T("Last"),f=T("WeekDay");return a(),d(g,null,[r(s,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),r(u,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,"start-config":e.startConfig,"cycle-config":e.cycleConfig,onChange:e.change},null,8,["time-unit","type","tag","nums","start-config","cycle-config","onChange"]),r(c,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,tag:e.tag_,nums:e.nums,"lower-config":e.lowerConfig,"upper-config":e.upperConfig,onChange:e.change},null,8,["time-unit","type","tag","nums","lower-config","upper-config","onChange"]),r(p,{"time-unit":e.Message.dayOfWeek.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","type","tag","nums","onChange"]),r(m,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),r(v,{"time-unit":e.Message.dayOfWeek.title,"target-time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,"last-config":e.startDateConfig,onChange:e.change},null,8,["time-unit","target-time-unit","type","tag","nums","last-config","onChange"]),r(f,{"time-unit":e.Message.dayOfWeek.title,"target-time-unit":e.Message.month.title,type:e.type_,tag:e.tag_,nums:e.nums,onChange:e.change},null,8,["time-unit","target-time-unit","type","tag","nums","onChange"])],64)}]]),Ro=ll.messages(),Do=e({name:"VueCron",components:{AInput:Ne,Popover:oe,Card:Ve,Seconds:Vl,Minutes:Il,Hours:El,Days:eo,Months:ao,Years:po,WeekDays:$o,CalendarOutlined:Te},props:{value:{type:String,default:"* * * * * ? *"}},setup(e,{emit:t}){const a=o(""),n=o([]),l=[{key:"seconds",tab:Ro.second.title},{key:"minutes",tab:Ro.minute.title},{key:"hours",tab:Ro.hour.title},{key:"days",tab:Ro.dayOfMonth.title},{key:"months",tab:Ro.month.title},{key:"weekdays",tab:Ro.dayOfWeek.title},{key:"years",tab:Ro.year.title}],s=I({second:Bn,minute:Bn,hour:Bn,dayOfMonth:Bn,month:Bn,dayOfWeek:Wn,year:Gn}),u=o("seconds");function d(e){Le(`/job/cron?cron=${e}`).then((e=>{n.value=e})).catch((()=>{R.destroy(),n.value=["Cron 表达式有误"]})).finally((()=>{if(0===n.value.length){const e="* * * * * ?";a.value=e,d(e),t("update:value",e),t("change",e)}}))}return i((()=>e.value),(e=>{a.value=e}),{immediate:!0}),{cronStr:a,list:n,tabList:l,activeTabKey:u,tag:s,changeTime:function(e){const n=e.trim().split(" ");if(!e||e.trim().length<11||6!==n.length&&7!==n.length){const e="* * * * * ?";return a.value=e,d(e),R.error(Ro.common.tagError),t("update:value",e),void t("change",e)}d(e),s.second=n[0],s.minute=n[1],s.hour=n[2],s.dayOfMonth=n[3],s.month=n[4],s.dayOfWeek=n[5],s.year=7===n.length?n[6]:""},timeChange:function(e,a){const n={...s};n[e]=a,"dayOfWeek"===e&&"*"!==a&&"?"!==a?n.dayOfMonth="?":"dayOfMonth"===e&&"*"!==a&&"?"!==a&&(n.dayOfWeek="?");let l=[];l.push(n.second),l.push(n.minute),l.push(n.hour),l.push(n.dayOfMonth),l.push(n.month),l.push(n.dayOfWeek),l.push(n.year),d(l.join(" ").trim()),t("update:value",l.join(" ").trim()),t("change",l.join(" ").trim())}}}}),Po={key:0},Ao={key:1},Lo={key:2},Bo={key:3},Fo={key:4},Yo={key:5},zo={key:6},Wo={style:{display:"flex","align-items":"center","justify-content":"space-between"}},qo=p("span",{style:{width:"150px","font-weight":"600"}},"CRON 表达式: ",-1),Ko=p("div",{style:{margin:"20px 0","border-left":"#1677ff 5px solid","font-size":"medium","font-weight":"bold"}},"    近5次的运行时间: ",-1),Jo={key:0},Go={key:1},Ho={key:2,style:{color:"#ff4d4f"}};const Xo=Qt(Do,[["render",function(e,t,l,o,i,s){const u=Ne,f=Te,y=T("Seconds"),h=T("Minutes"),b=T("Hours"),C=T("Days"),k=T("Months"),w=T("WeekDays"),x=T("Years"),S=ae,V=ne,I=_e,O=Ne,E=Q,U=T("Card"),j=T("Popover");return a(),n(j,{placement:"bottom",trigger:"click"},{content:c((()=>[r(U,{size:"small"},{default:c((()=>[r(V,{activeKey:e.activeTabKey,"onUpdate:activeKey":t[7]||(t[7]=t=>e.activeTabKey=t),type:"card"},{default:c((()=>[(a(!0),d(g,null,m(e.tabList,(l=>(a(),n(S,{key:l.key},{tab:c((()=>[p("span",null,[r(f),N(" "+v(l.tab),1)])])),default:c((()=>["seconds"===e.activeTabKey?(a(),d("div",Po,[r(y,{tag:e.tag.second,onChange:t[0]||(t[0]=t=>e.timeChange("second",t.tag))},null,8,["tag"])])):"minutes"===e.activeTabKey?(a(),d("div",Ao,[r(h,{tag:e.tag.minute,onChange:t[1]||(t[1]=t=>e.timeChange("minute",t.tag))},null,8,["tag"])])):"hours"===e.activeTabKey?(a(),d("div",Lo,[r(b,{tag:e.tag.hour,onChange:t[2]||(t[2]=t=>e.timeChange("hour",t.tag))},null,8,["tag"])])):"days"===e.activeTabKey?(a(),d("div",Bo,[r(C,{tag:e.tag.dayOfMonth,onChange:t[3]||(t[3]=t=>e.timeChange("dayOfMonth",t.tag))},null,8,["tag"])])):"months"===e.activeTabKey?(a(),d("div",Fo,[r(k,{tag:e.tag.month,onChange:t[4]||(t[4]=t=>e.timeChange("month",t.tag))},null,8,["tag"])])):"weekdays"===e.activeTabKey?(a(),d("div",Yo,[r(w,{tag:e.tag.dayOfWeek,onChange:t[5]||(t[5]=t=>e.timeChange("dayOfWeek",t.tag))},null,8,["tag"])])):"years"===e.activeTabKey?(a(),d("div",zo,[r(x,{tag:e.tag.year,onChange:t[6]||(t[6]=t=>e.timeChange("year",t.tag))},null,8,["tag"])])):_("",!0)])),_:2},1024)))),128))])),_:1},8,["activeKey"]),r(I),p("div",Wo,[qo,r(O,{value:e.cronStr,"onUpdate:value":t[8]||(t[8]=t=>e.cronStr=t)},null,8,["value"]),r(E,{type:"primary",style:{"margin-left":"16px"},onClick:t[9]||(t[9]=t=>e.changeTime(e.cronStr))},{default:c((()=>[N("保存")])),_:1})]),r(I),Ko,(a(!0),d(g,null,m(e.list,((t,n)=>(a(),d("div",{key:t,style:{"margin-top":"10px"}},[e.list.length>1?(a(),d("span",Jo,"第"+v(n+1)+"次: ",1)):_("",!0),e.list.length>1?(a(),d("span",Go,v(t),1)):(a(),d("span",Ho,v(t),1))])))),128))])),_:1})])),default:c((()=>[r(u,{readonly:"",value:e.value},null,8,["value"])])),_:1})}]]),Zo=e({__name:"StartDrawer",props:{open:pt().def(!1),modelValue:ft().def({})},emits:["update:open","save"],setup(e,{emit:t}){const u=t,p=e,f=Ae();let y="";const h=o(!1),b=o({}),k=o([]);i((()=>p.open),(e=>{h.value=e}),{immediate:!0}),i((()=>p.modelValue),(e=>{b.value=e,y=e.workflowName?e.workflowName:e.groupName?e.groupName:"请选择组"}),{immediate:!0,deep:!0});const _=o(),w=()=>{var e;null==(e=_.value)||e.validate().then((()=>{x(),u("save",b.value)})).catch((()=>{R.warning("请检查表单信息")}))},x=()=>{u("update:open",!1),h.value=!1};s((()=>{C((()=>{S()}))}));const S=()=>{Le("/group/all/group-name/list").then((e=>{k.value=e}))},V=e=>{1===e?b.value.triggerInterval="* * * * * ?":2===e&&(b.value.triggerInterval="60")},T={groupName:[{required:!0,message:"请选择组",trigger:"change"}],triggerType:[{required:!0,message:"请选择触发类型",trigger:"change"}],triggerInterval:[{required:!0,message:"请输入触发间隔",trigger:"change"}],executorTimeout:[{required:!0,message:"请输入执行超时时间",trigger:"change"}],blockStrategy:[{required:!0,message:"请选择阻塞策略",trigger:"change"}],workflowStatus:[{required:!0,message:"请选择工作流状态",trigger:"change"}]};return(e,t)=>{const o=Ne,i=ge,s=ce,u=pe,p=Ie,C=Se,S=Oe,I=Ee,O=me,E=ve,U=Ue,j=fe,M=Q,$=W;return a(),n($,{open:h.value,"onUpdate:open":t[9]||(t[9]=e=>h.value=e),title:l(y),"destroy-on-close":"",width:610,onClose:x},{footer:c((()=>[r(M,{type:"primary",onClick:w},{default:c((()=>[N("保存")])),_:1}),r(M,{style:{"margin-left":"12px"},onClick:x},{default:c((()=>[N("取消")])),_:1})])),default:c((()=>[r(j,{ref_key:"formRef",ref:_,layout:"vertical",model:b.value,rules:T,"label-align":"left","label-col":{style:{width:"100px"}}},{default:c((()=>[r(i,{name:"workflowName",label:"工作流名称"},{default:c((()=>[r(o,{value:b.value.workflowName,"onUpdate:value":t[0]||(t[0]=e=>b.value.workflowName=e),placeholder:"请输入工作流名称"},null,8,["value"])])),_:1}),r(i,{name:"groupName",label:"组名称"},{default:c((()=>[r(u,{ref:"select",value:b.value.groupName,"onUpdate:value":t[1]||(t[1]=e=>b.value.groupName=e),placeholder:"请选择组",disabled:0===l(f).TYPE&&void 0!==l(f).ID&&null!==l(f).ID&&""!==l(f).ID&&"undefined"!==l(f).ID},{default:c((()=>[(a(!0),d(g,null,m(k.value,(e=>(a(),n(s,{key:e,value:e},{default:c((()=>[N(v(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value","disabled"])])),_:1}),r(I,{gutter:24},{default:c((()=>[r(p,{span:8},{default:c((()=>[r(i,{name:"triggerType",label:"触发类型"},{default:c((()=>[r(u,{ref:"select",value:b.value.triggerType,"onUpdate:value":t[2]||(t[2]=e=>b.value.triggerType=e),placeholder:"请选择触发类型",onChange:V},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Tt)),(e=>(a(),n(s,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1}),r(p,{span:16},{default:c((()=>[r(i,{name:"triggerInterval",label:"触发间隔"},{default:c((()=>[r(S,null,{default:c((()=>[3===b.value.triggerType?(a(),n(l(Xo),{key:0,value:b.value.triggerInterval,"onUpdate:value":t[3]||(t[3]=e=>b.value.triggerInterval=e)},null,8,["value"])):(a(),n(C,{key:1,addonAfter:"秒",style:{width:"-webkit-fill-available"},value:b.value.triggerInterval,"onUpdate:value":t[4]||(t[4]=e=>b.value.triggerInterval=e),placeholder:"请输入触发间隔"},null,8,["value"]))])),_:1})])),_:1})])),_:1})])),_:1}),r(I,{gutter:24},{default:c((()=>[r(p,{span:8},{default:c((()=>[r(i,{name:"executorTimeout",label:"执行超时时间"},{default:c((()=>[r(C,{addonAfter:"秒",value:b.value.executorTimeout,"onUpdate:value":t[5]||(t[5]=e=>b.value.executorTimeout=e),placeholder:"请输入超时时间"},null,8,["value"])])),_:1})])),_:1}),r(p,{span:16},{default:c((()=>[r(i,{name:"blockStrategy",label:"阻塞策略"},{default:c((()=>[r(E,{value:b.value.blockStrategy,"onUpdate:value":t[6]||(t[6]=e=>b.value.blockStrategy=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(It)),(e=>(a(),n(O,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1})])),_:1}),r(i,{name:"workflowStatus",label:"节点状态"},{default:c((()=>[r(E,{value:b.value.workflowStatus,"onUpdate:value":t[7]||(t[7]=e=>b.value.workflowStatus=e)},{default:c((()=>[(a(!0),d(g,null,m(l(ha)(l(Et)),(e=>(a(),n(O,{key:e.value,value:e.value},{default:c((()=>[N(v(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),r(i,{name:"description",label:"描述"},{default:c((()=>[r(U,{value:b.value.description,"onUpdate:value":t[8]||(t[8]=e=>b.value.description=e),"auto-size":{minRows:5},placeholder:"请输入描述"},null,8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open","title"])}}}),Qo=e({__name:"StartDetail",props:{modelValue:ft().def({}),open:pt().def(!1)},emits:["update:open"],setup(e,{emit:t}){const s=t,u=e,d=o(!1);i((()=>u.open),(e=>{d.value=e}),{immediate:!0});const p=()=>{s("update:open",!1)};return(t,o)=>{const i=G,s=X,u=W;return a(),n(u,{title:"工作流详情",placement:"right",width:500,open:d.value,"onUpdate:open":o[0]||(o[0]=e=>d.value=e),"destroy-on-close":"",onClose:p},{default:c((()=>[r(s,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:c((()=>[r(i,{label:"工作流名称"},{default:c((()=>[N(v(e.modelValue.workflowName),1)])),_:1}),r(i,{label:"组名称"},{default:c((()=>[N(v(e.modelValue.groupName),1)])),_:1}),r(i,{label:"触发类型"},{default:c((()=>[N(v(l(Tt)[e.modelValue.triggerType]),1)])),_:1}),r(i,{label:"触发间隔"},{default:c((()=>[N(v(e.modelValue.triggerInterval)+" "+v(2===e.modelValue.triggerType?"秒":null),1)])),_:1}),r(i,{label:"执行超时时间"},{default:c((()=>[N(v(e.modelValue.executorTimeout)+" 秒 ",1)])),_:1}),r(i,{label:"阻塞策略"},{default:c((()=>[N(v(l(It)[e.modelValue.blockStrategy]),1)])),_:1}),r(i,{label:"工作流状态"},{default:c((()=>[N(v(l(Et)[e.modelValue.workflowStatus]),1)])),_:1})])),_:1})])),_:1},8,["open"])}}}),ei=e=>(y("data-v-c07f8c3a"),e=e(),h(),e),ti={class:"node-wrap"},ai={class:"title",style:{background:"#ffffff"}},ni={class:"text",style:{color:"#ff943e"}},li={key:0,class:"content"},oi=ei((()=>p("span",{class:"content_label"},"组名称: ",-1))),ii=ei((()=>p("span",{class:"content_label"},"阻塞策略: ",-1))),si=ei((()=>p("div",null,".........",-1))),ui={key:1,class:"content"},di=[ei((()=>p("span",{class:"placeholder"}," 请配置工作流 ",-1)))],ri=Qt(e({__name:"StartNode",props:{modelValue:ft().def({}),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,u=e,g=o({}),m=o({});i((()=>u.modelValue),(e=>{m.value=e}),{immediate:!0,deep:!0}),i((()=>m.value),(e=>{s("update:modelValue",e)}));const f=Ae();i((()=>m.value.groupName),(e=>{e&&(f.setGroupName(e),Le(`/job/list?groupName=${e}`).then((e=>{f.setJobList(e)})))}),{immediate:!0});const y=o(!1),h=o(!1),b=e=>{m.value=e},C=()=>{0===f.TYPE?(g.value=JSON.parse(JSON.stringify(m.value)),y.value=!0):h.value=!0};return(t,o)=>{const i=Ce,s=ke,u=ee;return a(),d("div",ti,[p("div",{class:S([e.disabled?"start-node-disabled":"node-wrap-box-hover","node-wrap-box start-node node-error-success"]),onClick:C},[p("div",ai,[p("span",ni,[r(i,{status:"processing",color:1===m.value.workflowStatus?"#52c41a":"#ff000d"},null,8,["color"]),N(" "+v(m.value.workflowName?m.value.workflowName:"请选择组"),1)])]),m.value.groupName?(a(),d("div",li,[p("div",null,[oi,r(s,{style:{width:"135px"},ellipsis:"",content:m.value.groupName},null,8,["content"])]),p("div",null,[ii,N(v(l(It)[m.value.blockStrategy]),1)]),si])):(a(),d("div",ui,di)),2===l(f).TYPE?(a(),n(u,{key:2},{title:c((()=>[N(v(l(Mt)[3].title),1)])),default:c((()=>[r(l(St),{class:"error-tip",color:l(Mt)[3].color,size:"24px",onClick:V((()=>{}),["stop"]),"model-value":l(Mt)[3].icon},null,8,["color","model-value"])])),_:1})):_("",!0)],2),r(ya,{disabled:e.disabled,modelValue:m.value.nodeConfig,"onUpdate:modelValue":o[0]||(o[0]=e=>m.value.nodeConfig=e)},null,8,["disabled","modelValue"]),0!==l(f).TYPE?(a(),n(Qo,{key:0,open:h.value,"onUpdate:open":o[1]||(o[1]=e=>h.value=e),modelValue:m.value,"onUpdate:modelValue":o[2]||(o[2]=e=>m.value=e)},null,8,["open","modelValue"])):_("",!0),r(Zo,{open:y.value,"onUpdate:open":o[3]||(o[3]=e=>y.value=e),modelValue:g.value,"onUpdate:modelValue":o[4]||(o[4]=e=>g.value=e),onSave:b},null,8,["open","modelValue"])])}}}),[["__scopeId","data-v-c07f8c3a"]]),ci={class:"workflow-design"},pi={class:"box-scale"},gi=p("div",{class:"end-node"},[p("div",{class:"end-node-circle"}),p("div",{class:"end-node-text"},"流程结束")],-1),mi=e({__name:"WorkFlow",props:{modelValue:ft().def({}),disabled:pt().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,s=e,u=o({});return i((()=>s.modelValue),(e=>{u.value=e}),{immediate:!0,deep:!0}),i((()=>u.value),(e=>{l("update:modelValue",e)})),(t,l)=>(a(),d("div",ci,[p("div",pi,[r(ri,{modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=e=>u.value=e),disabled:e.disabled},null,8,["modelValue","disabled"]),u.value.nodeConfig?(a(),n(Ln,{key:0,modelValue:u.value.nodeConfig,"onUpdate:modelValue":l[1]||(l[1]=e=>u.value.nodeConfig=e),disabled:e.disabled},null,8,["modelValue","disabled"])):_("",!0),gi])]))}}),vi={style:{width:"calc(100vw - 16px)",height:"calc(100vh - 48px)"}},fi={class:"header"},yi={key:0,class:"buttons"},hi={style:{overflow:"auto",width:"100vw",height:"calc(100vh - 48px)"}},bi=Qt(e({__name:"App",setup(e){const n=e=>{const t={},a=window.location.href.split("?")[1];if(a){a.split("&").forEach((e=>{const a=e.split("=")[1],n=e.split("=")[0];t[n]=a}))}return t[e]},i=Ae(),u=o(100);let g=n("id");const m=localStorage.getItem("token"),y=n("mode"),h=localStorage.getItem("namespaceId"),b="xkjIc2ZHZ0"===n("x1c2Hdd6"),C="kaxC8Iml"===n("x1c2Hdd6")||b,k="wA4wN1nZ"===n("x1c2Hdd6");s((()=>{if(i.clear(),!["D7Rzd7Oe","kaxC8Iml","xkjIc2ZHZ0","wA4wN1nZ"].includes(n("x1c2Hdd6")))return w.value=!0,void R.error({content:"未知错误,请联系管理员",duration:0});i.setToken(m),i.setMode(y),i.setNameSpaceId(h),i.setType(C?b?2:1:0),x.value=C,g&&"undefined"!==g&&(i.setId(k?"":g),b?O():I())}));const w=o(!1),x=o(!1),S=o({workflowStatus:1,blockStrategy:1,description:void 0,executorTimeout:60}),V=()=>{"undefined"===g||k?(S.value.id=void 0,Le("/workflow","post",S.value).then((()=>{window.parent.postMessage({code:"SV5ucvLBhvFkOftb",data:JSON.stringify(S.value)})}))):Le("/workflow","put",S.value).then((()=>{window.parent.postMessage({code:"8Rr3XPtVVAHfduQg",data:JSON.stringify(S.value)})}))},T=()=>{window.parent.postMessage({code:"kb4DO9h6WIiqFhbp"})},I=()=>{w.value=!0,Le(`/workflow/${g}`).then((e=>{S.value=e})).finally((()=>{w.value=!1}))},O=()=>{w.value=!0,Le(`/workflow/batch/${g}`).then((e=>{S.value=e})).finally((()=>{w.value=!1}))},E=e=>{u.value+=10*e,u.value<=10?u.value=10:u.value>=300&&(u.value=300)};return(e,n)=>{const o=Q,i=ee,s=Me,g=Z;return a(),d("div",vi,[r(s,{"offset-top":0},{default:c((()=>[p("div",fi,[p("div",null,[r(i,{title:"缩小"},{default:c((()=>[r(o,{type:"primary",icon:t(l(je)),onClick:n[0]||(n[0]=e=>E(-1))},null,8,["icon"])])),_:1}),N(" "+v(u.value)+"% ",1),r(i,{title:"放大"},{default:c((()=>[r(o,{type:"primary",icon:t(l(de)),onClick:n[1]||(n[1]=e=>E(1))},null,8,["icon"])])),_:1})]),x.value?_("",!0):(a(),d("div",yi,[r(o,{type:"primary",siz:"large",onClick:V},{default:c((()=>[N("保存")])),_:1}),r(o,{siz:"large",style:{"margin-left":"16px"},onClick:T},{default:c((()=>[N("取消")])),_:1})]))])])),_:1}),p("div",hi,[r(g,{spinning:w.value},{default:c((()=>[r(l(mi),{class:"work-flow",modelValue:S.value,"onUpdate:modelValue":n[2]||(n[2]=e=>S.value=e),disabled:x.value,style:f([{"transform-origin":"0 0"},`transform: scale(${u.value/100})`])},null,8,["modelValue","disabled","style"])])),_:1},8,["spinning"])])])}}}),[["__scopeId","data-v-87877839"]]),Ci=M();Ci.use($);const ki=E(bi);ki.use($e),ki.use(Ci),ki.mount("#app"); diff --git a/public/lib/assets/pinia-_F_MrjSh.js b/public/lib/assets/pinia-_F_MrjSh.js deleted file mode 100644 index 51baf50..0000000 --- a/public/lib/assets/pinia-_F_MrjSh.js +++ /dev/null @@ -1,7 +0,0 @@ -import{U as t,f as e,V as n,W as s,e as r,J as o,H as a,X as c,z as i,w as u,r as l,M as f,N as p,n as h,I as d,c as y}from"./vue--_kkPoVD.js"; -/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */ -let b;const g=t=>b=t,v=Symbol();function _(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var $,O;function j(){const s=t(!0),r=s.run((()=>e({})));let o=[],a=[];const c=n({install(t){g(c),c._a=t,t.provide(v,c),t.config.globalProperties.$pinia=c,a.forEach((t=>o.push(t))),a=[]},use(t){return this._a?o.push(t):a.push(t),this},_p:o,_a:null,_e:s,_s:new Map,state:r});return c}(O=$||($={})).direct="direct",O.patchObject="patch object",O.patchFunction="patch function";const m=()=>{};function R(t,e,n,s=m){t.push(e);const r=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&f()&&p(r),r}function S(t,...e){t.slice().forEach((t=>{t(...e)}))}const z=t=>t();function E(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];_(r)&&_(s)&&t.hasOwnProperty(n)&&!a(s)&&!c(s)?t[n]=E(r,s):t[n]=s}return t}const P=Symbol();const{assign:k}=Object;function w(n,s,r={},i,f,p){let d;const y=k({actions:{}},r),b={deep:!0};let v,O,j,w=[],A=[];const I=i.state.value[n];let x;function J(t){let e;v=O=!1,"function"==typeof t?(t(i.state.value[n]),e={type:$.patchFunction,storeId:n,events:j}):(E(i.state.value[n],t),e={type:$.patchObject,payload:t,storeId:n,events:j});const s=x=Symbol();h().then((()=>{x===s&&(v=!0)})),O=!0,S(w,e,i.state.value[n])}p||I||(i.state.value[n]={}),e({});const M=p?function(){const{state:t}=r,e=t?t():{};this.$patch((t=>{k(t,e)}))}:m;function N(t,e){return function(){g(i);const s=Array.from(arguments),r=[],o=[];let a;S(A,{args:s,name:t,store:H,after:function(t){r.push(t)},onError:function(t){o.push(t)}});try{a=e.apply(this&&this.$id===n?this:H,s)}catch(c){throw S(o,c),c}return a instanceof Promise?a.then((t=>(S(r,t),t))).catch((t=>(S(o,t),Promise.reject(t)))):(S(r,a),a)}}const F={_p:i,$id:n,$onAction:R.bind(null,A),$patch:J,$reset:M,$subscribe(t,e={}){const s=R(w,t,e.detached,(()=>r())),r=d.run((()=>u((()=>i.state.value[n]),(s=>{("sync"===e.flush?O:v)&&t({storeId:n,type:$.direct,events:j},s)}),k({},b,e))));return s},$dispose:function(){d.stop(),w=[],A=[],i._s.delete(n)}},H=l(F);i._s.set(n,H);const W=(i._a&&i._a.runWithContext||z)((()=>i._e.run((()=>(d=t()).run(s)))));for(const t in W){const e=W[t];if(a(e)&&(!a(U=e)||!U.effect)||c(e))p||(!I||_(C=e)&&C.hasOwnProperty(P)||(a(e)?e.value=I[t]:E(e,I[t])),i.state.value[n][t]=e);else if("function"==typeof e){const n=N(t,e);W[t]=n,y.actions[t]=e}}var C,U;return k(H,W),k(o(H),W),Object.defineProperty(H,"$state",{get:()=>i.state.value[n],set:t=>{J((e=>{k(e,t)}))}}),i._p.forEach((t=>{k(H,d.run((()=>t({store:H,app:i._a,pinia:i,options:y}))))})),I&&p&&r.hydrate&&r.hydrate(H.$state,I),v=!0,O=!0,H}function A(t,e,o){let a,c;const i="function"==typeof e;function u(t,o){const u=s();(t=t||(u?r(v,null):null))&&g(t),(t=b)._s.has(a)||(i?w(a,e,c,t):function(t,e,s,r){const{state:o,actions:a,getters:c}=e,i=s.state.value[t];let u;u=w(t,(function(){i||(s.state.value[t]=o?o():{});const e=d(s.state.value[t]);return k(e,a,Object.keys(c||{}).reduce(((e,r)=>(e[r]=n(y((()=>{g(s);const e=s._s.get(t);return c[r].call(e,e)}))),e)),{}))}),e,s,0,!0)}(a,c,t));return t._s.get(a)}return"string"==typeof t?(a=t,c=i?o:e):(c=t,a=t.id),u.$id=a,u}function I(t){{t=o(t);const e={};for(const n in t){const s=t[n];(a(s)||c(s))&&(e[n]=i(t,n))}return e}}function x(t,e){var n;return t="object"==typeof(n=t)&&null!==n?t:Object.create(null),new Proxy(t,{get:(t,n,s)=>"key"===n?Reflect.get(t,n,s):Reflect.get(t,n,s)||Reflect.get(e,n,s)})}function J(t,{storage:e,serializer:n,key:s,debug:r}){try{const r=null==e?void 0:e.getItem(s);r&&t.$patch(null==n?void 0:n.deserialize(r))}catch(o){}}function M(t,{storage:e,serializer:n,key:s,paths:r,debug:o}){try{const o=Array.isArray(r)?function(t,e){return e.reduce(((e,n)=>{const s=n.split(".");return function(t,e,n){return e.slice(0,-1).reduce(((t,e)=>/^(__proto__)$/.test(e)?{}:t[e]=t[e]||{}),t)[e[e.length-1]]=n,t}(e,s,function(t,e){return e.reduce(((t,e)=>null==t?void 0:t[e]),t)}(t,s))}),{})}(t,r):t;e.setItem(s,n.serialize(o))}catch(a){}}var N=function(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:s=n},store:r,pinia:o}=e;if(!s)return;if(!(r.$id in o.state.value)){const t=o._s.get(r.$id.replace("__hot:",""));return void(t&&Promise.resolve().then((()=>t.$persist())))}const a=(Array.isArray(s)?s.map((e=>x(e,t))):[x(s,t)]).map((({storage:e=localStorage,beforeRestore:n=null,afterRestore:s=null,serializer:o={serialize:JSON.stringify,deserialize:JSON.parse},key:a=r.$id,paths:c=null,debug:i=!1})=>{var u;return{storage:e,beforeRestore:n,afterRestore:s,serializer:o,key:(null!=(u=t.key)?u:t=>t)("string"==typeof a?a:a(r.$id)),paths:c,debug:i}}));r.$persist=()=>{a.forEach((t=>{M(r.$state,t)}))},r.$hydrate=({runHooks:t=!0}={})=>{a.forEach((n=>{const{beforeRestore:s,afterRestore:o}=n;t&&(null==s||s(e)),J(r,n),t&&(null==o||o(e))}))},a.forEach((t=>{const{beforeRestore:n,afterRestore:s}=t;null==n||n(e),J(r,t),null==s||s(e),r.$subscribe(((e,n)=>{M(n,t)}),{detached:!0})}))}}();export{N as a,j as c,A as d,I as s}; diff --git a/public/lib/assets/vue--_kkPoVD.js b/public/lib/assets/vue--_kkPoVD.js deleted file mode 100644 index e5797e2..0000000 --- a/public/lib/assets/vue--_kkPoVD.js +++ /dev/null @@ -1,2 +0,0 @@ -function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}const t={},n=[],o=()=>{},r=()=>!1,s=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),i=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},a=Object.prototype.hasOwnProperty,u=(e,t)=>a.call(e,t),f=Array.isArray,p=e=>"[object Map]"===b(e),d=e=>"[object Set]"===b(e),h=e=>"function"==typeof e,g=e=>"string"==typeof e,v=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,y=e=>(m(e)||h(e))&&h(e.then)&&h(e.catch),_=Object.prototype.toString,b=e=>_.call(e),x=e=>b(e).slice(8,-1),C=e=>"[object Object]"===b(e),S=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,w=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},k=/-(\w)/g,E=A((e=>e.replace(k,((e,t)=>t?t.toUpperCase():"")))),F=/\B([A-Z])/g,O=A((e=>e.replace(F,"-$1").toLowerCase())),T=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=A((e=>e?`on${T(e)}`:"")),L=(e,t)=>!Object.is(e,t),$=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},R=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j=e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t};let N;const V=()=>N||(N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function I(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(B);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function z(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;ng(e)?e:null==e?"":f(e)||m(e)&&(e.toString===_||!h(e.toString))?JSON.stringify(e,G,2):String(e),G=(e,t)=>t&&t.__v_isRef?G(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[J(t,o)+" =>"]=n,e)),{})}:d(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>J(e)))}:v(t)?J(t):!m(t)||f(t)||C(t)?t:String(t),J=(e,t="")=>{var n;return v(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let X;class Z{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=X,!e&&X&&(this.index=(X.scopes||(X.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=X;try{return X=this,e()}finally{X=t}}}on(){X=this}off(){X=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ne=e=>(e.w&le)>0,oe=e=>(e.n&le)>0,re=new WeakMap;let se=0,le=1;const ie=30;let ce;const ae=Symbol(""),ue=Symbol("");class fe{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=X){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ce,t=de;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ce,ce=this,de=!0,le=1<<++se,se<=ie?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||!v(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(l.get(n)),t){case"add":f(e)?S(n)&&i.push(l.get("length")):(i.push(l.get(ae)),p(e)&&i.push(l.get(ue)));break;case"delete":f(e)||(i.push(l.get(ae)),p(e)&&i.push(l.get(ue)));break;case"set":p(e)&&i.push(l.get(ae))}if(1===i.length)i[0]&&be(i[0]);else{const e=[];for(const t of i)t&&e.push(...t);be(te(e))}}function be(e,t){const n=f(e)?e:[...e];for(const o of n)o.computed&&xe(o);for(const o of n)o.computed||xe(o)}function xe(e,t){(e!==ce||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ce=e("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(v)),we=Ae();function Ae(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ft(this);for(let t=0,r=this.length;t{e[t]=function(...e){ge();const n=ft(this)[t].apply(this,e);return ve(),n}})),e}function ke(e){const t=ft(this);return me(t,0,e),t.hasOwnProperty(e)}class Ee{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,r=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?ot:nt:r?tt:et).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=f(e);if(!o){if(s&&u(we,t))return Reflect.get(we,t,n);if("hasOwnProperty"===t)return ke}const l=Reflect.get(e,t,n);return(v(t)?Se.has(t):Ce(t))?l:(o||me(e,0,t),r?l:mt(l)?s&&S(t)?l:l.value:m(l)?o?st(l):rt(l):l)}}class Fe extends Ee{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(ct(r)&&mt(r)&&!mt(n))return!1;if(!this._shallow&&(at(n)||ct(n)||(r=ft(r),n=ft(n)),!f(e)&&mt(r)&&!mt(n)))return r.value=n,!0;const s=f(e)&&S(t)?Number(t)e,Me=e=>Reflect.getPrototypeOf(e);function Re(e,t,n=!1,o=!1){const r=ft(e=e.__v_raw),s=ft(t);n||(L(t,s)&&me(r,0,t),me(r,0,s));const{has:l}=Me(r),i=o?$e:n?ht:dt;return l.call(r,t)?i(e.get(t)):l.call(r,s)?i(e.get(s)):void(e!==r&&e.get(t))}function je(e,t=!1){const n=this.__v_raw,o=ft(n),r=ft(e);return t||(L(e,r)&&me(o,0,e),me(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ne(e,t=!1){return e=e.__v_raw,!t&&me(ft(e),0,ae),Reflect.get(e,"size",e)}function Ve(e){e=ft(e);const t=ft(this);return Me(t).has.call(t,e)||(t.add(e),_e(t,"add",e,e)),this}function Ie(e,t){t=ft(t);const n=ft(this),{has:o,get:r}=Me(n);let s=o.call(n,e);s||(e=ft(e),s=o.call(n,e));const l=r.call(n,e);return n.set(e,t),s?L(t,l)&&_e(n,"set",e,t):_e(n,"add",e,t),this}function Ue(e){const t=ft(this),{has:n,get:o}=Me(t);let r=n.call(t,e);r||(e=ft(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&_e(t,"delete",e,void 0),s}function Be(){const e=ft(this),t=0!==e.size,n=e.clear();return t&&_e(e,"clear",void 0,void 0),n}function De(e,t){return function(n,o){const r=this,s=r.__v_raw,l=ft(s),i=t?$e:e?ht:dt;return!e&&me(l,0,ae),s.forEach(((e,t)=>n.call(o,i(e),i(t),r)))}}function We(e,t,n){return function(...o){const r=this.__v_raw,s=ft(r),l=p(s),i="entries"===e||e===Symbol.iterator&&l,c="keys"===e&&l,a=r[e](...o),u=n?$e:t?ht:dt;return!t&&me(s,0,c?ue:ae),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function He(){const e={get(e){return Re(this,e)},get size(){return Ne(this)},has:je,add:Ve,set:Ie,delete:Ue,clear:Be,forEach:De(!1,!1)},t={get(e){return Re(this,e,!1,!0)},get size(){return Ne(this)},has:je,add:Ve,set:Ie,delete:Ue,clear:Be,forEach:De(!1,!0)},n={get(e){return Re(this,e,!0)},get size(){return Ne(this,!0)},has(e){return je.call(this,e,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:De(!0,!1)},o={get(e){return Re(this,e,!0,!0)},get size(){return Ne(this,!0)},has(e){return je.call(this,e,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:De(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=We(r,!1,!1),n[r]=We(r,!0,!1),t[r]=We(r,!1,!0),o[r]=We(r,!0,!0)})),[e,n,t,o]}const[Ke,qe,Ge,Je]=He();function Xe(e,t){const n=t?e?Je:Ge:e?qe:Ke;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(u(n,o)&&o in t?n:t,o,r)}const Ze={get:Xe(!1,!1)},Qe={get:Xe(!1,!0)},Ye={get:Xe(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,ot=new WeakMap;function rt(e){return ct(e)?e:lt(e,!1,Te,Ze,et)}function st(e){return lt(e,!0,Pe,Ye,nt)}function lt(e,t,n,o,r){if(!m(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(x(i));var i;if(0===l)return e;const c=new Proxy(e,2===l?o:n);return r.set(e,c),c}function it(e){return ct(e)?it(e.__v_raw):!(!e||!e.__v_isReactive)}function ct(e){return!(!e||!e.__v_isReadonly)}function at(e){return!(!e||!e.__v_isShallow)}function ut(e){return it(e)||ct(e)}function ft(e){const t=e&&e.__v_raw;return t?ft(t):e}function pt(e){return M(e,"__v_skip",!0),e}const dt=e=>m(e)?rt(e):e,ht=e=>m(e)?st(e):e;function gt(e){de&&ce&&ye((e=ft(e)).dep||(e.dep=te()))}function vt(e,t){const n=(e=ft(e)).dep;n&&be(n)}function mt(e){return!(!e||!0!==e.__v_isRef)}function yt(e){return bt(e,!1)}function _t(e){return bt(e,!0)}function bt(e,t){return mt(e)?e:new xt(e,t)}class xt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ft(e),this._value=t?e:dt(e)}get value(){return gt(this),this._value}set value(e){const t=this.__v_isShallow||at(e)||ct(e);e=t?e:ft(e),L(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:dt(e),vt(this))}}function Ct(e){vt(e)}function St(e){return mt(e)?e.value:e}const wt={get:(e,t,n)=>St(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return mt(r)&&!mt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function At(e){return it(e)?e:new Proxy(e,wt)}function kt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Tt(e,n);return t}class Et{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=ft(this._object),t=this._key,null==(n=re.get(e))?void 0:n.get(t);var e,t,n}}class Ft{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ot(e,t,n){return mt(e)?e:h(e)?new Ft(e):m(e)&&arguments.length>1?Tt(e,t,n):yt(e)}function Tt(e,t,n){const o=e[t];return mt(o)?o:new Et(e,t,n)}class Pt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new fe(e,(()=>{this._dirty||(this._dirty=!0,vt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=ft(this);return gt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Lt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Mt(s,t,n)}return r}function $t(e,t,n,o){if(h(e)){const r=Lt(e,t,n,o);return r&&y(r)&&r.catch((e=>{Mt(e,t,n)})),r}const r=[];for(let s=0;s>>1,r=Nt[o],s=Jt(r);sJt(e)-Jt(t))),Bt=0;Btnull==e.id?1/0:e.id,Xt=(e,t)=>{const n=Jt(e)-Jt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Zt(e){jt=!1,Rt=!0,Nt.sort(Xt);try{for(Vt=0;Vtg(e)?e.trim():e))),n&&(s=o.map(R))}let c,a=r[c=P(n)]||r[c=P(E(n))];!a&&l&&(a=r[c=P(O(n))]),a&&$t(a,e,6,s);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,$t(u,e,6,s)}}function Yt(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let l={},c=!1;if(!h(e)){const o=e=>{const n=Yt(e,t,!0);n&&(c=!0,i(l,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||c?(f(s)?s.forEach((e=>l[e]=null)):i(l,s),m(e)&&o.set(e,l),l):(m(e)&&o.set(e,null),null)}function en(e,t){return!(!e||!s(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,O(t))||u(e,t))}let tn=null,nn=null;function on(e){const t=tn;return tn=e,nn=e&&e.type.__scopeId||null,t}function rn(e){nn=e}function sn(){nn=null}function ln(e,t=tn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&mr(-1);const r=on(t);let s;try{s=e(...n)}finally{on(r),o._d&&mr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function cn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:c,attrs:a,emit:u,render:f,renderCache:p,data:d,setupState:h,ctx:g,inheritAttrs:v}=e;let m,y;const _=on(e);try{if(4&n.shapeFlag){const e=r||o,t=e;m=Pr(f.call(t,e,p,s,h,d,g)),y=a}else{const e=t;0,m=Pr(e.length>1?e(s,{attrs:a,slots:c,emit:u}):e(s,null)),y=t.props?a:an(a)}}catch(x){dr.length=0,Mt(x,e,1),m=Er(fr)}let b=m;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(l)&&(y=un(y,i)),b=Fr(b,y))}return n.dirs&&(b=Fr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,on(_),m}const an=e=>{let t;for(const n in e)("class"===n||"style"===n||s(n))&&((t||(t={}))[n]=e[n]);return t},un=(e,t)=>{const n={};for(const o in e)l(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function fn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.value,v=at(e)):it(e)?(d=()=>e,s=!0):f(e)?(m=!0,v=e.some((e=>it(e)||at(e))),d=()=>e.map((e=>mt(e)?e.value:it(e)?An(e):h(e)?Lt(e,p,2):void 0))):d=h(e)?n?()=>Lt(e,p,2):()=>{if(!p||!p.isUnmounted)return g&&g(),$t(e,p,3,[_])}:o,n&&s){const e=d;d=()=>An(e())}let y,_=e=>{g=S.onStop=()=>{Lt(e,p,4),g=S.onStop=void 0}};if(Kr){if(_=o,n?r&&$t(n,p,3,[d(),m?[]:void 0,_]):d(),"sync"!==l)return o;{const e=es();y=e.__watcherHandles||(e.__watcherHandles=[])}}let b=m?new Array(e.length).fill(bn):bn;const x=()=>{if(S.active)if(n){const e=S.run();(s||v||(m?e.some(((e,t)=>L(e,b[t]))):L(e,b)))&&(g&&g(),$t(n,p,3,[e,b===bn?void 0:m&&b[0]===bn?[]:b,_]),b=e)}else S.run()};let C;x.allowRecurse=!!n,"sync"===l?C=x:"post"===l?C=()=>Yo(x,p&&p.suspense):(x.pre=!0,p&&(x.id=p.uid),C=()=>Ht(x));const S=new fe(d,C);n?r?x():b=S.run():"post"===l?Yo(S.run.bind(S),p&&p.suspense):S.run();const w=()=>{S.stop(),p&&p.scope&&c(p.scope.effects,S)};return y&&y.push(w),w}function Sn(e,t,n){const o=this.proxy,r=g(e)?e.includes(".")?wn(o,e):()=>o[e]:e.bind(o,o);let s;h(t)?s=t:(s=t.handler,n=t);const l=Nr;Dr(this);const i=Cn(r,s.bind(o),n);return l?Dr(l):Wr(),i}function wn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{An(e,t)}));else if(C(e))for(const n in e)An(e[n],t);return e}function kn(e,n){const o=tn;if(null===o)return e;const r=Xr(o)||o.proxy,s=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0})),Yn((()=>{e.isUnmounting=!0})),e}const Pn=[Function,Array],Ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pn,onEnter:Pn,onAfterEnter:Pn,onEnterCancelled:Pn,onBeforeLeave:Pn,onLeave:Pn,onAfterLeave:Pn,onLeaveCancelled:Pn,onBeforeAppear:Pn,onAppear:Pn,onAfterAppear:Pn,onAppearCancelled:Pn},$n={name:"BaseTransition",props:Ln,setup(e,{slots:t}){const n=Vr(),o=Tn();let r;return()=>{const s=t.default&&In(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1)for(const e of s)if(e.type!==fr){l=e;break}const i=ft(e),{mode:c}=i;if(o.isLeaving)return jn(l);const a=Nn(l);if(!a)return jn(l);const u=Rn(a,i,o,n);Vn(a,u);const f=n.subTree,p=f&&Nn(f);let d=!1;const{getTransitionKey:h}=a.type;if(h){const e=h();void 0===r?r=e:e!==r&&(r=e,d=!0)}if(p&&p.type!==fr&&(!Cr(a,p)||d)){const e=Rn(p,i,o,n);if(Vn(p,e),"out-in"===c)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},jn(l);"in-out"===c&&a.type!==fr&&(e.delayLeave=(e,t,n)=>{Mn(o,p)[String(p.key)]=p,e[Fn]=()=>{t(),e[Fn]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function Mn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Rn(e,t,n,o){const{appear:r,mode:s,persisted:l=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:a,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:v,onAppear:m,onAfterAppear:y,onAppearCancelled:_}=t,b=String(e.key),x=Mn(n,e),C=(e,t)=>{e&&$t(e,o,9,t)},S=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:s,persisted:l,beforeEnter(t){let o=i;if(!n.isMounted){if(!r)return;o=v||i}t[Fn]&&t[Fn](!0);const s=x[b];s&&Cr(e,s)&&s.el[Fn]&&s.el[Fn](),C(o,[t])},enter(e){let t=c,o=a,s=u;if(!n.isMounted){if(!r)return;t=m||c,o=y||a,s=_||u}let l=!1;const i=e[On]=t=>{l||(l=!0,C(t?s:o,[e]),w.delayedLeave&&w.delayedLeave(),e[On]=void 0)};t?S(t,[e,i]):i()},leave(t,o){const r=String(e.key);if(t[On]&&t[On](!0),n.isUnmounting)return o();C(p,[t]);let s=!1;const l=t[Fn]=n=>{s||(s=!0,o(),C(n?g:h,[t]),t[Fn]=void 0,x[r]===e&&delete x[r])};x[r]=e,d?S(d,[t,l]):l()},clone:e=>Rn(e,t,n,o)};return w}function jn(e){if(Dn(e))return(e=Fr(e)).children=null,e}function Nn(e){return Dn(e)?e.children?e.children[0]:void 0:e}function Vn(e,t){6&e.shapeFlag&&e.component?Vn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function In(e,t=!1,n){let o=[],r=0;for(let s=0;s1)for(let s=0;si({name:e.name},t,{setup:e}))():e}const Bn=e=>!!e.type.__asyncLoader,Dn=e=>e.type.__isKeepAlive;function Wn(e,t){Hn(e,"a",t)}function zn(e,t){Hn(e,"da",t)}function Hn(e,t,n=Nr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(qn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Dn(e.parent.vnode)&&Kn(o,t,n,e),e=e.parent}}function Kn(e,t,n,o){const r=qn(t,e,o,!0);eo((()=>{c(o[t],r)}),n)}function qn(e,t,n=Nr,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ge(),Dr(n);const r=$t(t,n,e,o);return Wr(),ve(),r});return o?r.unshift(s):r.push(s),s}}const Gn=e=>(t,n=Nr)=>(!Kr||"sp"===e)&&qn(e,((...e)=>t(...e)),n),Jn=Gn("bm"),Xn=Gn("m"),Zn=Gn("bu"),Qn=Gn("u"),Yn=Gn("bum"),eo=Gn("um"),to=Gn("sp"),no=Gn("rtg"),oo=Gn("rtc");function ro(e,t=Nr){qn("ec",e,t)}function so(e,t,n,o){let r;const s=n&&n[o];if(f(e)||g(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function io(e,t,n={},o,r){if(tn.isCE||tn.parent&&Bn(tn.parent)&&tn.parent.isCE)return"default"!==t&&(n.name=t),Er("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),gr();const l=s&&co(s(n)),i=br(ar,{key:n.key||l&&l.key||`_${t}`},l||(o?o():[]),l&&1===e._?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),s&&s._c&&(s._d=!0),i}function co(e){return e.some((e=>!xr(e)||e.type!==fr&&!(e.type===ar&&!co(e.children))))?e:null}const ao=e=>e?zr(e)?Xr(e)||e.proxy:ao(e.parent):null,uo=i(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ao(e.parent),$root:e=>ao(e.root),$emit:e=>e.emit,$options:e=>Co(e),$forceUpdate:e=>e.f||(e.f=()=>Ht(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>Sn.bind(e)}),fo=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),po={get({_:e},n){const{ctx:o,setupState:r,data:s,props:l,accessCache:i,type:c,appContext:a}=e;let f;if("$"!==n[0]){const c=i[n];if(void 0!==c)switch(c){case 1:return r[n];case 2:return s[n];case 4:return o[n];case 3:return l[n]}else{if(fo(r,n))return i[n]=1,r[n];if(s!==t&&u(s,n))return i[n]=2,s[n];if((f=e.propsOptions[0])&&u(f,n))return i[n]=3,l[n];if(o!==t&&u(o,n))return i[n]=4,o[n];yo&&(i[n]=0)}}const p=uo[n];let d,h;return p?("$attrs"===n&&me(e,0,n),p(e)):(d=c.__cssModules)&&(d=d[n])?d:o!==t&&u(o,n)?(i[n]=4,o[n]):(h=a.config.globalProperties,u(h,n)?h[n]:void 0)},set({_:e},n,o){const{data:r,setupState:s,ctx:l}=e;return fo(s,n)?(s[n]=o,!0):r!==t&&u(r,n)?(r[n]=o,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(l[n]=o,!0))},has({_:{data:e,setupState:n,accessCache:o,ctx:r,appContext:s,propsOptions:l}},i){let c;return!!o[i]||e!==t&&u(e,i)||fo(n,i)||(c=l[0])&&u(c,i)||u(r,i)||u(uo,i)||u(s.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ho(){return vo().slots}function go(){return vo().attrs}function vo(){const e=Vr();return e.setupContext||(e.setupContext=Jr(e))}function mo(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let yo=!0;function _o(e){const t=Co(e),n=e.proxy,r=e.ctx;yo=!1,t.beforeCreate&&bo(t.beforeCreate,e,"bc");const{data:s,computed:l,methods:i,watch:c,provide:a,inject:u,created:p,beforeMount:d,mounted:g,beforeUpdate:v,updated:y,activated:_,deactivated:b,beforeDestroy:x,beforeUnmount:C,destroyed:S,unmounted:w,render:A,renderTracked:k,renderTriggered:E,errorCaptured:F,serverPrefetch:O,expose:T,inheritAttrs:P,components:L,directives:$,filters:M}=t;if(u&&function(e,t,n=o){f(e)&&(e=ko(e));for(const o in e){const n=e[o];let r;r=m(n)?"default"in n?Ro(n.from||o,n.default,!0):Ro(n.from||o):Ro(n),mt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,r,null),i)for(const o in i){const e=i[o];h(e)&&(r[o]=e.bind(n))}if(s){const t=s.call(n,n);m(t)&&(e.data=rt(t))}if(yo=!0,l)for(const f in l){const e=l[f],t=h(e)?e.bind(n,n):h(e.get)?e.get.bind(n,n):o,s=!h(e)&&h(e.set)?e.set.bind(n):o,i=Zr({get:t,set:s});Object.defineProperty(r,f,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(const o in c)xo(c[o],r,n,o);if(a){const e=h(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{Mo(t,e[t])}))}function R(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&bo(p,e,"c"),R(Jn,d),R(Xn,g),R(Zn,v),R(Qn,y),R(Wn,_),R(zn,b),R(ro,F),R(oo,k),R(no,E),R(Yn,C),R(eo,w),R(to,O),f(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});A&&e.render===o&&(e.render=A),null!=P&&(e.inheritAttrs=P),L&&(e.components=L),$&&(e.directives=$)}function bo(e,t,n){$t(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function xo(e,t,n,o){const r=o.includes(".")?wn(n,o):()=>n[o];if(g(e)){const n=t[e];h(n)&&xn(r,n)}else if(h(e))xn(r,e.bind(n));else if(m(e))if(f(e))e.forEach((e=>xo(e,t,n,o)));else{const o=h(e.handler)?e.handler.bind(n):t[e.handler];h(o)&&xn(r,o,e)}}function Co(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,i=s.get(t);let c;return i?c=i:r.length||n||o?(c={},r.length&&r.forEach((e=>So(c,e,l,!0))),So(c,t,l)):c=t,m(t)&&s.set(t,c),c}function So(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&So(e,s,n,!0),r&&r.forEach((t=>So(e,t,n,!0)));for(const l in t)if(o&&"expose"===l);else{const o=wo[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const wo={data:Ao,props:Oo,emits:Oo,methods:Fo,computed:Fo,beforeCreate:Eo,created:Eo,beforeMount:Eo,mounted:Eo,beforeUpdate:Eo,updated:Eo,beforeDestroy:Eo,beforeUnmount:Eo,destroyed:Eo,unmounted:Eo,activated:Eo,deactivated:Eo,errorCaptured:Eo,serverPrefetch:Eo,components:Fo,directives:Fo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=i(Object.create(null),e);for(const o in t)n[o]=Eo(e[o],t[o]);return n},provide:Ao,inject:function(e,t){return Fo(ko(e),ko(t))}};function Ao(e,t){return t?e?function(){return i(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function ko(e){if(f(e)){const t={};for(let n=0;n(s.has(e)||(e&&h(e.install)?(s.add(e),e.install(c,...t)):h(e)&&(s.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(s,i,a){if(!l){const u=Er(n,o);return u.appContext=r,i&&t?t(u,s):e(u,s,a),l=!0,c._container=s,s.__vue_app__=c,Xr(u.component)||u.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c),runWithContext(e){$o=c;try{return e()}finally{$o=null}}};return c}}let $o=null;function Mo(e,t){if(Nr){let n=Nr.provides;const o=Nr.parent&&Nr.parent.provides;o===n&&(n=Nr.provides=Object.create(o)),n[e]=t}else;}function Ro(e,t,n=!1){const o=Nr||tn;if(o||$o){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:$o._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&h(t)?t.call(o&&o.proxy):t}}function jo(){return!!(Nr||tn||$o)}function No(e,t,n,o=!1){const r={},s={};M(s,Sr,1),e.propsDefaults=Object.create(null),Vo(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:lt(r,!1,Le,Qe,tt):e.type.props?e.props=r:e.props=s,e.attrs=s}function Vo(e,n,o,r){const[s,l]=e.propsOptions;let i,c=!1;if(n)for(let t in n){if(w(t))continue;const a=n[t];let f;s&&u(s,f=E(t))?l&&l.includes(f)?(i||(i={}))[f]=a:o[f]=a:en(e.emitsOptions,t)||t in r&&a===r[t]||(r[t]=a,c=!0)}if(l){const n=ft(o),r=i||t;for(let t=0;t{d=!0;const[t,n]=Uo(e,o,!0);i(a,t),n&&p.push(...n)};!r&&o.mixins.length&&o.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!d)return m(e)&&s.set(e,n),n;if(f(c))for(let n=0;n-1,o[1]=n<0||t-1||u(o,"default"))&&p.push(e)}}}const g=[a,p];return m(e)&&s.set(e,g),g}function Bo(e){return"$"!==e[0]}function Do(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Wo(e,t){return Do(e)===Do(t)}function zo(e,t){return f(t)?t.findIndex((t=>Wo(t,e))):h(t)&&Wo(t,e)?0:-1}const Ho=e=>"_"===e[0]||"$stable"===e,Ko=e=>f(e)?e.map(Pr):[Pr(e)],qo=(e,t,n)=>{if(t._n)return t;const o=ln(((...e)=>Ko(t(...e))),n);return o._c=!1,o},Go=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ho(r))continue;const n=e[r];if(h(n))t[r]=qo(0,n,o);else if(null!=n){const e=Ko(n);t[r]=()=>e}}},Jo=(e,t)=>{const n=Ko(t);e.slots.default=()=>n},Xo=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ft(t),M(t,"_",n)):Go(t,e.slots={})}else e.slots={},t&&Jo(e,t);M(e.slots,Sr,1)},Zo=(e,n,o)=>{const{vnode:r,slots:s}=e;let l=!0,c=t;if(32&r.shapeFlag){const e=n._;e?o&&1===e?l=!1:(i(s,n),o||1!==e||delete s._):(l=!n.$stable,Go(n,s)),c=n}else n&&(Jo(e,n),c={default:1});if(l)for(const t in s)Ho(t)||null!=c[t]||delete s[t]};function Qo(e,n,o,r,s=!1){if(f(e))return void e.forEach(((e,t)=>Qo(e,n&&(f(n)?n[t]:n),o,r,s)));if(Bn(r)&&!s)return;const l=4&r.shapeFlag?Xr(r.component)||r.component.proxy:r.el,i=s?null:l,{i:a,r:p}=e,d=n&&n.r,v=a.refs===t?a.refs={}:a.refs,m=a.setupState;if(null!=d&&d!==p&&(g(d)?(v[d]=null,u(m,d)&&(m[d]=null)):mt(d)&&(d.value=null)),h(p))Lt(p,a,12,[i,v]);else{const t=g(p),n=mt(p);if(t||n){const r=()=>{if(e.f){const n=t?u(m,p)?m[p]:v[p]:p.value;s?f(n)&&c(n,l):f(n)?n.includes(l)||n.push(l):t?(v[p]=[l],u(m,p)&&(m[p]=v[p])):(p.value=[l],e.k&&(v[e.k]=p.value))}else t?(v[p]=i,u(m,p)&&(m[p]=i)):n&&(p.value=i,e.k&&(v[e.k]=i))};i?(r.id=-1,Yo(r,o)):r()}}}const Yo=function(e,t){var n;t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?It.push(...n):Ut&&Ut.includes(n,n.allowRecurse?Bt+1:Bt)||It.push(n),Kt())};function er(e){return function(e,r){V().__VUE__=!0;const{insert:s,remove:l,patchProp:i,createElement:c,createText:a,createComment:f,setText:p,setElementText:d,parentNode:h,nextSibling:g,setScopeId:v=o,insertStaticContent:m}=e,_=(e,t,n,o=null,r=null,s=null,l=!1,i=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Cr(e,t)&&(o=Y(e),q(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:f}=t;switch(a){case ur:b(e,t,n,o);break;case fr:x(e,t,n,o);break;case pr:null==e&&C(t,n,o,l);break;case ar:j(e,t,n,o,r,s,l,i,c);break;default:1&f?k(e,t,n,o,r,s,l,i,c):6&f?N(e,t,n,o,r,s,l,i,c):(64&f||128&f)&&a.process(e,t,n,o,r,s,l,i,c,te)}null!=u&&r&&Qo(u,e&&e.ref,s,t||e,!t)},b=(e,t,n,o)=>{if(null==e)s(t.el=a(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},x=(e,t,n,o)=>{null==e?s(t.el=f(t.children||""),n,o):t.el=e.el},C=(e,t,n,o)=>{[e.el,e.anchor]=m(e.children,t,n,o,e.el,e.anchor)},S=({el:e,anchor:t},n,o)=>{let r;for(;e&&e!==t;)r=g(e),s(e,n,o),e=r;s(t,n,o)},A=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),l(e),e=n;l(t)},k=(e,t,n,o,r,s,l,i,c)=>{l=l||"svg"===t.type,null==e?F(t,n,o,r,s,l,i,c):L(e,t,r,s,l,i,c)},F=(e,t,n,o,r,l,a,u)=>{let f,p;const{type:h,props:g,shapeFlag:v,transition:m,dirs:y}=e;if(f=e.el=c(e.type,l,g&&g.is,g),8&v?d(f,e.children):16&v&&P(e.children,f,null,o,r,l&&"foreignObject"!==h,a,u),y&&En(e,null,o,"created"),T(f,e,e.scopeId,a,o),g){for(const t in g)"value"===t||w(t)||i(f,t,null,g[t],l,e.children,o,r,Q);"value"in g&&i(f,"value",null,g.value),(p=g.onVnodeBeforeMount)&&Mr(p,o,e)}y&&En(e,null,o,"beforeMount");const _=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,m);_&&m.beforeEnter(f),s(f,t,n),((p=g&&g.onVnodeMounted)||_||y)&&Yo((()=>{p&&Mr(p,o,e),_&&m.enter(f),y&&En(e,null,o,"mounted")}),r)},T=(e,t,n,o,r)=>{if(n&&v(e,n),o)for(let s=0;s{for(let a=c;a{const a=n.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:p}=n;u|=16&e.patchFlag;const h=e.props||t,g=n.props||t;let v;o&&tr(o,!1),(v=g.onVnodeBeforeUpdate)&&Mr(v,o,n,e),p&&En(n,e,o,"beforeUpdate"),o&&tr(o,!0);const m=s&&"foreignObject"!==n.type;if(f?M(e.dynamicChildren,f,a,o,r,m,l):c||W(e,n,a,null,o,r,m,l,!1),u>0){if(16&u)R(a,n,h,g,o,r,s);else if(2&u&&h.class!==g.class&&i(a,"class",null,g.class,s),4&u&&i(a,"style",h.style,g.style,s),8&u){const t=n.dynamicProps;for(let n=0;n{v&&Mr(v,o,n,e),p&&En(n,e,o,"updated")}),r)},M=(e,t,n,o,r,s,l)=>{for(let i=0;i{if(o!==r){if(o!==t)for(const t in o)w(t)||t in r||i(e,t,o[t],null,c,n.children,s,l,Q);for(const t in r){if(w(t))continue;const a=r[t],u=o[t];a!==u&&"value"!==t&&i(e,t,u,a,c,n.children,s,l,Q)}"value"in r&&i(e,"value",o.value,r.value)}},j=(e,t,n,o,r,l,i,c,u)=>{const f=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(s(f,n,o),s(p,n,o),P(t.children,n,p,r,l,i,c,u)):d>0&&64&d&&h&&e.dynamicChildren?(M(e.dynamicChildren,h,n,r,l,i,c),(null!=t.key||r&&t===r.subTree)&&nr(e,t,!0)):W(e,t,n,p,r,l,i,c,u)},N=(e,t,n,o,r,s,l,i,c)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,c):I(t,n,o,r,s,l,c):U(e,t,c)},I=(e,n,o,r,s,l,i)=>{const c=e.component=function(e,n,o){const r=e.type,s=(n?n.appContext:e.appContext)||Rr,l={uid:jr++,vnode:e,type:r,parent:n,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Z(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uo(r,s),emitsOptions:Yt(r,s),emit:null,emitted:null,propsDefaults:t,inheritAttrs:r.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};l.ctx={_:l},l.root=n?n.root:l,l.emit=Qt.bind(null,l),e.ce&&e.ce(l);return l}(e,r,s);if(Dn(e)&&(c.ctx.renderer=te),function(e,t=!1){Kr=t;const{props:n,children:o}=e.vnode,r=zr(e);No(e,n,r,t),Xo(e,o);const s=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,po));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Jr(e):null;Dr(e),ge();const r=Lt(o,e,0,[e.props,n]);if(ve(),Wr(),y(r)){if(r.then(Wr,Wr),t)return r.then((n=>{qr(e,n,t)})).catch((t=>{Mt(t,e,0)}));e.asyncDep=r}else qr(e,r,t)}else Gr(e,t)}(e,t):void 0;Kr=!1}(c),c.asyncDep){if(s&&s.registerDep(c,B),!e.el){const e=c.subTree=Er(fr);x(null,e,n,o)}}else B(c,e,n,o,s,l,i)},U=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:l,children:i,patchFlag:c}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!i||i&&i.$stable)||o!==l&&(o?!l||fn(o,l,a):!!l);if(1024&c)return!0;if(16&c)return o?fn(o,l,a):!!l;if(8&c){const e=t.dynamicProps;for(let t=0;tVt&&Nt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},B=(e,t,n,o,r,s,l)=>{const i=()=>{if(e.isMounted){let t,{next:n,bu:o,u:i,parent:c,vnode:a}=e,u=n;tr(e,!1),n?(n.el=a.el,D(e,n,l)):n=a,o&&$(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Mr(t,c,n,a),tr(e,!0);const f=cn(e),p=e.subTree;e.subTree=f,_(p,f,h(p.el),Y(p),e,r,s),n.el=f.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,f.el),i&&Yo(i,r),(t=n.props&&n.props.onVnodeUpdated)&&Yo((()=>Mr(t,c,n,a)),r)}else{let l;const{el:i,props:c}=t,{bm:a,m:u,parent:f}=e,p=Bn(t);if(tr(e,!1),a&&$(a),!p&&(l=c&&c.onVnodeBeforeMount)&&Mr(l,f,t),tr(e,!0),i&&oe){const n=()=>{e.subTree=cn(e),oe(i,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=cn(e);_(null,l,n,o,e,r,s),t.el=l.el}if(u&&Yo(u,r),!p&&(l=c&&c.onVnodeMounted)){const e=t;Yo((()=>Mr(l,f,e)),r)}(256&t.shapeFlag||f&&Bn(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Yo(e.a,r),e.isMounted=!0,t=n=o=null}},c=e.effect=new fe(i,(()=>Ht(a)),e.scope),a=e.update=()=>c.run();a.id=e.uid,tr(e,!0),a()},D=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,i=ft(r),[c]=e.propsOptions;let a=!1;if(!(o||l>0)||16&l){let o;Vo(e,t,r,s)&&(a=!0);for(const s in i)t&&(u(t,s)||(o=O(s))!==s&&u(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Io(c,i,s,void 0,e,!0)):delete r[s]);if(s!==i)for(const e in s)t&&u(t,e)||(delete s[e],a=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,f,n,o,r,s,l,i,c);if(256&p)return void z(a,f,n,o,r,s,l,i,c)}8&h?(16&u&&Q(a,r,s),f!==a&&d(n,f)):16&u?16&h?H(a,f,n,o,r,s,l,i,c):Q(a,r,s,!0):(8&u&&d(n,""),16&h&&P(f,n,o,r,s,l,i,c))},z=(e,t,o,r,s,l,i,c,a)=>{t=t||n;const u=(e=e||n).length,f=t.length,p=Math.min(u,f);let d;for(d=0;df?Q(e,s,l,!0,!1,p):P(t,o,r,s,l,i,c,a,p)},H=(e,t,o,r,s,l,i,c,a)=>{let u=0;const f=t.length;let p=e.length-1,d=f-1;for(;u<=p&&u<=d;){const n=e[u],r=t[u]=a?Lr(t[u]):Pr(t[u]);if(!Cr(n,r))break;_(n,r,o,null,s,l,i,c,a),u++}for(;u<=p&&u<=d;){const n=e[p],r=t[d]=a?Lr(t[d]):Pr(t[d]);if(!Cr(n,r))break;_(n,r,o,null,s,l,i,c,a),p--,d--}if(u>p){if(u<=d){const e=d+1,n=ed)for(;u<=p;)q(e[u],s,l,!0),u++;else{const h=u,g=u,v=new Map;for(u=g;u<=d;u++){const e=t[u]=a?Lr(t[u]):Pr(t[u]);null!=e.key&&v.set(e.key,u)}let m,y=0;const b=d-g+1;let x=!1,C=0;const S=new Array(b);for(u=0;u=b){q(n,s,l,!0);continue}let r;if(null!=n.key)r=v.get(n.key);else for(m=g;m<=d;m++)if(0===S[m-g]&&Cr(n,t[m])){r=m;break}void 0===r?q(n,s,l,!0):(S[r-g]=u+1,r>=C?C=r:x=!0,_(n,t[r],o,null,s,l,i,c,a),y++)}const w=x?function(e){const t=e.slice(),n=[0];let o,r,s,l,i;const c=e.length;for(o=0;o>1,e[n[i]]0&&(t[o]=n[s-1]),n[s]=o)}}s=n.length,l=n[s-1];for(;s-- >0;)n[s]=l,l=t[l];return n}(S):n;for(m=w.length-1,u=b-1;u>=0;u--){const e=g+u,n=t[e],p=e+1{const{el:l,type:i,transition:c,children:a,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,n,o);if(128&u)return void e.suspense.move(t,n,o);if(64&u)return void i.move(e,t,n,te);if(i===ar){s(l,t,n);for(let e=0;ec.enter(l)),r);else{const{leave:e,delayLeave:o,afterLeave:r}=c,i=()=>s(l,t,n),a=()=>{e(l,(()=>{i(),r&&r()}))};o?o(l,i,a):a()}else s(l,t,n)},q=(e,t,n,o=!1,r=!1)=>{const{type:s,props:l,ref:i,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:f,dirs:p}=e;if(null!=i&&Qo(i,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const d=1&u&&p,h=!Bn(e);let g;if(h&&(g=l&&l.onVnodeBeforeUnmount)&&Mr(g,t,e),6&u)X(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);d&&En(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,te,o):a&&(s!==ar||f>0&&64&f)?Q(a,t,n,!1,!0):(s===ar&&384&f||!r&&16&u)&&Q(c,t,n),o&&G(e)}(h&&(g=l&&l.onVnodeUnmounted)||d)&&Yo((()=>{g&&Mr(g,t,e),d&&En(e,null,t,"unmounted")}),n)},G=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===ar)return void J(n,o);if(t===pr)return void A(e);const s=()=>{l(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,l=()=>t(n,s);o?o(e.el,s,l):l()}else s()},J=(e,t)=>{let n;for(;e!==t;)n=g(e),l(e),e=n;l(t)},X=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:l,um:i}=e;o&&$(o),r.stop(),s&&(s.active=!1,q(l,e,t,n)),i&&Yo(i,t),Yo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Q=(e,t,n,o=!1,r=!1,s=0)=>{for(let l=s;l6&e.shapeFlag?Y(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),qt(),Gt(),t._vnode=e},te={p:_,um:q,m:K,r:G,mt:I,mc:P,pc:W,pbc:M,n:Y,o:e};let ne,oe;r&&([ne,oe]=r(te));return{render:ee,hydrate:ne,createApp:Lo(ee,ne)}}(e)}function tr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nr(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let s=0;se&&(e.disabled||""===e.disabled),rr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,sr=(e,t)=>{const n=e&&e.to;if(g(n)){if(t){return t(n)}return null}return n};function lr(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:l,anchor:i,shapeFlag:c,children:a,props:u}=e,f=2===s;if(f&&o(l,t,n),(!f||or(u))&&16&c)for(let p=0;p{16&y&&u(_,e,t,r,s,l,i,c)};m?v(n,a):f&&v(f,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,d=t.targetAnchor=e.targetAnchor,g=or(e.props),v=g?n:u,y=g?o:d;if(l=l||rr(u),b?(p(e.dynamicChildren,b,v,r,s,l,i),nr(e,t,!0)):c||f(e,t,v,y,r,s,l,i,!1),m)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=sr(t.props,h);e&&lr(t,e,null,a,0)}else g&&lr(t,u,d,a,1)}cr(t)},remove(e,t,n,o,{um:r,o:{remove:s}},l){const{shapeFlag:i,children:c,anchor:a,targetAnchor:u,target:f,props:p}=e;if(f&&s(u),l&&s(a),16&i){const e=l||!or(p);for(let o=0;o0?hr||n:null,dr.pop(),hr=dr[dr.length-1]||null,vr>0&&hr&&hr.push(e),e}function _r(e,t,n,o,r,s){return yr(kr(e,t,n,o,r,s,!0))}function br(e,t,n,o,r){return yr(Er(e,t,n,o,r,!0))}function xr(e){return!!e&&!0===e.__v_isVNode}function Cr(e,t){return e.type===t.type&&e.key===t.key}const Sr="__vInternal",wr=({key:e})=>null!=e?e:null,Ar=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||mt(e)||h(e)?{i:tn,r:e,k:t,f:!!n}:e:null);function kr(e,t=null,n=null,o=0,r=null,s=(e===ar?0:1),l=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wr(t),ref:t&&Ar(t),scopeId:nn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:tn};return i?($r(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),vr>0&&!l&&hr&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&hr.push(c),c}const Er=function(e,t=null,n=null,o=0,r=null,s=!1){e&&e!==hn||(e=fr);if(xr(e)){const o=Fr(e,t,!0);return n&&$r(o,n),vr>0&&!s&&hr&&(6&o.shapeFlag?hr[hr.indexOf(e)]=o:hr.push(o)),o.patchFlag|=-2,o}l=e,h(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?ut(e)||Sr in e?i({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=z(e)),m(n)&&(ut(n)&&!f(n)&&(n=i({},n)),t.style=I(n))}const c=g(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:m(e)?4:h(e)?2:0;return kr(e,t,n,o,r,c,s,!0)};function Fr(e,t,n=!1){const{props:o,ref:r,patchFlag:l,children:i}=e,c=t?function(...e){const t={};for(let n=0;nNr||tn;let Ir,Ur,Br="__VUE_INSTANCE_SETTERS__";(Ur=V()[Br])||(Ur=V()[Br]=[]),Ur.push((e=>Nr=e)),Ir=e=>{Ur.length>1?Ur.forEach((t=>t(e))):Ur[0](e)};const Dr=e=>{Ir(e),e.scope.on()},Wr=()=>{Nr&&Nr.scope.off(),Ir(null)};function zr(e){return 4&e.vnode.shapeFlag}let Hr,Kr=!1;function qr(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:m(t)&&(e.setupState=At(t)),Gr(e,n)}function Gr(e,t,n){const r=e.type;if(!e.render){if(!t&&Hr&&!r.render){const t=r.template||Co(e).template;if(t){const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,c=i(i({isCustomElement:n,delimiters:s},o),l);r.render=Hr(t,c)}}e.render=r.render||o}Dr(e),ge();try{_o(e)}finally{ve(),Wr()}}function Jr(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(me(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Xr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(At(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in uo?uo[n](e):void 0,has:(e,t)=>t in e||t in uo}))}const Zr=(e,t)=>function(e,t,n=!1){let r,s;const l=h(e);return l?(r=e,s=o):(r=e.get,s=e.set),new Pt(r,s,l||!s,n)}(e,0,Kr);function Qr(e,t,n){const o=arguments.length;return 2===o?m(t)&&!f(t)?xr(t)?Er(e,null,[t]):Er(e,t):Er(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&xr(n)&&(n=[n]),Er(e,t,n))}const Yr=Symbol.for("v-scx"),es=()=>Ro(Yr),ts="3.3.11",ns="undefined"!=typeof document?document:null,os=ns&&ns.createElement("template"),rs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?ns.createElementNS("http://www.w3.org/2000/svg",e):ns.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>ns.createTextNode(e),createComment:e=>ns.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ns.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{os.innerHTML=o?`${e}`:e;const r=os.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ss="transition",ls="animation",is=Symbol("_vtc"),cs=(e,{slots:t})=>Qr($n,ds(e),t);cs.displayName="Transition";const as={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},us=cs.props=i({},Ln,as),fs=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},ps=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function ds(e){const t={};for(const i in e)i in as||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:u=l,appearToClass:f=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(m(e))return[hs(e.enter),hs(e.leave)];{const t=hs(e);return[t,t]}}(r),v=g&&g[0],y=g&&g[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:S,onBeforeAppear:w=_,onAppear:A=b,onAppearCancelled:k=x}=t,E=(e,t,n)=>{vs(e,t?f:c),vs(e,t?u:l),n&&n()},F=(e,t)=>{e._isLeaving=!1,vs(e,p),vs(e,h),vs(e,d),t&&t()},O=e=>(t,n)=>{const r=e?A:b,l=()=>E(t,e,n);fs(r,[t,l]),ms((()=>{vs(t,e?a:s),gs(t,e?f:c),ps(r)||_s(t,o,v,l)}))};return i(t,{onBeforeEnter(e){fs(_,[e]),gs(e,s),gs(e,l)},onBeforeAppear(e){fs(w,[e]),gs(e,a),gs(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>F(e,t);gs(e,p),Ss(),gs(e,d),ms((()=>{e._isLeaving&&(vs(e,p),gs(e,h),ps(C)||_s(e,o,y,n))})),fs(C,[e,n])},onEnterCancelled(e){E(e,!1),fs(x,[e])},onAppearCancelled(e){E(e,!0),fs(k,[e])},onLeaveCancelled(e){F(e),fs(S,[e])}})}function hs(e){return j(e)}function gs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[is]||(e[is]=new Set)).add(t)}function vs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[is];n&&(n.delete(t),n.size||(e[is]=void 0))}function ms(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ys=0;function _s(e,t,n,o){const r=e._endId=++ys,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:l,timeout:i,propCount:c}=bs(e,t);if(!l)return o();const a=l+"end";let u=0;const f=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=c&&f()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${ss}Delay`),s=o(`${ss}Duration`),l=xs(r,s),i=o(`${ls}Delay`),c=o(`${ls}Duration`),a=xs(i,c);let u=null,f=0,p=0;t===ss?l>0&&(u=ss,f=l,p=s.length):t===ls?a>0&&(u=ls,f=a,p=c.length):(f=Math.max(l,a),u=f>0?l>a?ss:ls:null,p=u?u===ss?s.length:c.length:0);return{type:u,timeout:f,propCount:p,hasTransform:u===ss&&/\b(transform|all)(,|$)/.test(o(`${ss}Property`).toString())}}function xs(e,t){for(;e.lengthCs(t)+Cs(e[n]))))}function Cs(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ss(){return document.body.offsetHeight}const ws=Symbol("_vod"),As={beforeMount(e,{value:t},{transition:n}){e[ws]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ks(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ks(e,!0),o.enter(e)):o.leave(e,(()=>{ks(e,!1)})):ks(e,t))},beforeUnmount(e,{value:t}){ks(e,t)}};function ks(e,t){e.style.display=t?e[ws]:"none"}const Es=/\s*!important$/;function Fs(e,t,n){if(f(n))n.forEach((n=>Fs(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ts[t];if(n)return n;let o=E(t);if("filter"!==o&&o in e)return Ts[t]=o;o=T(o);for(let r=0;r{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();$t(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ns(),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,l,i)}else l&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,i),s[t]=void 0)}}const Ms=/(?:Once|Passive|Capture)$/;let Rs=0;const js=Promise.resolve(),Ns=()=>Rs||(js.then((()=>Rs=0)),Rs=Date.now());const Vs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Is=new WeakMap,Us=new WeakMap,Bs=Symbol("_moveCb"),Ds=Symbol("_enterCb"),Ws={name:"TransitionGroup",props:i({},us,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Vr(),o=Tn();let r,s;return Qn((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[is];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:l}=bs(o);return s.removeChild(o),l}(r[0].el,n.vnode.el,t))return;r.forEach(Hs),r.forEach(Ks);const o=r.filter(qs);Ss(),o.forEach((e=>{const n=e.el,o=n.style;gs(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Bs]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Bs]=null,vs(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const l=ft(e),i=ds(l);let c=l.tag||ar;r=s,s=t.default?In(t.default()):[];for(let e=0;ee.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Gs.some((n=>e[`${n}Key`]&&!t.includes(n)))},Xs=(e,t)=>e._withMods||(e._withMods=(n,...o)=>{for(let e=0;e{"class"===t?function(e,t,n){const o=e[is];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=g(n);if(n&&!r){if(t&&!g(t))for(const e in t)null==n[e]&&Fs(o,e,"");for(const e in n)Fs(o,e,n[e])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),ws in e&&(o.display=s)}}(e,n,o):s(t)?l(t)||$s(e,t,0,o,c):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Vs(t)&&h(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Vs(t)&&g(n))return!1;return t in e}(e,t,o,r))?function(e,t,n,o,r,s,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,s),void(e[t]=null==n?"":n);const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){e._value=n;const o=null==n?"":n;return("OPTION"===i?e.getAttribute("value"):e.value)!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}let c=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=K(n):null==n&&"string"===o?(n="",c=!0):"number"===o&&(n=0,c=!0)}try{e[t]=n}catch(a){}c&&e.removeAttribute(t)}(e,t,o,i,c,a,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Ps,t.slice(6,t.length)):e.setAttributeNS(Ps,t,n);else{const o=H(t);null==n||o&&!K(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},rs);let Qs;function Ys(){return Qs||(Qs=er(Zs))}const el=(...e)=>{Ys().render(...e)},tl=(...e)=>{const t=Ys().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(g(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;h(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};export{ln as $,As as A,Xs as B,fr as C,Jn as D,ir as E,ar as F,Or as G,mt as H,kt as I,ft as J,go as K,Zn as L,Y as M,ee as N,io as O,zs as P,Wn as Q,zn as R,tl as S,ur as T,Q as U,pt as V,jo as W,it as X,gr as Y,br as Z,_r as _,Qn as a,kr as a0,so as a1,q as a2,I as a3,rn as a4,sn as a5,ho as a6,lo as a7,Tr as a8,gn as a9,z as aa,dn as ab,eo as b,Zr as c,Un as d,Ro as e,yt as f,Vr as g,_n as h,xr as i,Yn as j,Er as k,Qr as l,kn as m,zt as n,Xn as o,Mo as p,vn as q,rt as r,_t as s,Ct as t,St as u,cs as v,xn as w,Fr as x,el as y,Ot as z}; diff --git a/public/lib/index.html b/public/lib/index.html deleted file mode 100644 index dcb7ffb..0000000 --- a/public/lib/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - Easy Retry - - - - - - - - - -
- - - -